/* archetype: warm-trattoria */
/* ===================================================
   Al San Giovanni — Ristorante Pizzeria
   Palette: Warm Trattoria / Italian Heritage
   Ispirazione: Pizzeria Bianco, Mari & Monti, 50 Kalò
   =================================================== */

/* ── Design Tokens ── */
:root {
  /* Colori principali */
  --bg:          #F7F5EE;
  --bg-elev:     #FFFFFF;
  --bg-dark:     #2D2322;
  --text:        #2D2D2D;
  --text-mute:   #6B6B6B;
  --text-light:  #F7F5EE;

  /* Accenti */
  --accent:      #8B3E2F;   /* mattone italiano */
  --accent-2:    #C4933F;   /* oro/ocra */
  --accent-hover:#6E3125;

  /* Overlay */
  --overlay:     rgba(30, 20, 15, 0.55);
  --border:      rgba(45,45,45,0.15);

  /* Spacing scale (base 8) */
  --sp1:  4px;
  --sp2:  8px;
  --sp3:  12px;
  --sp4:  16px;
  --sp5:  24px;
  --sp6:  32px;
  --sp7:  48px;
  --sp8:  64px;
  --sp9:  80px;
  --sp10: 120px;

  /* Layout */
  --max-w: 1280px;
  --max-narrow: 820px;
  --nav-h: 76px;

  /* Radii */
  --r0: 0;
  --r1: 2px;
  --r2: 4px;
  --r-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.30s ease;
  --t-slow: 0.60s ease;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.875rem;
  --fs-2xl:  2.75rem;
  --fs-hero: clamp(2.8rem, 7vw, 6.5rem);

  --lh-tight: 1.1;
  --lh-snug:  1.3;
  --lh-base:  1.65;
  --tracking-wide:  0.08em;
  --tracking-wider: 0.18em;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-base);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp4);
  background: var(--accent);
  color: #fff;
  padding: var(--sp2) var(--sp4);
  border-radius: var(--r2);
  font-size: var(--fs-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp4); }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp6);
}
@media (max-width: 768px) { .container { padding: 0 var(--sp4); } }

.section-pad { padding: var(--sp10) 0; }
@media (max-width: 768px) { .section-pad { padding: var(--sp8) 0; } }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent);
  padding-top: 22px;
  position: relative;
  margin-bottom: var(--sp3);
}
.kicker::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--accent);
}

.section-header { text-align: center; margin-bottom: var(--sp8); }
.section-header .kicker { margin-bottom: var(--sp3); }
.section-header .kicker::before { left: 50%; transform: translateX(-50%); }
.section-header h2 { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: var(--lh-snug); }
.section-header .section-desc { max-width: 560px; margin: var(--sp4) auto 0; color: var(--text-mute); }

/* ── Buttons ── */
.btn-primary, .btn-ghost, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.85em 2.2em;
  border-radius: var(--r1);
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,62,47,0.30);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; }
.link-text {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-text:hover { color: var(--accent-hover); }

/* ── Fade-in on scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp7);
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.site-nav.is-scrolled {
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

/* Logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-inner { display: flex; align-items: center; gap: var(--sp3); }
.logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  transition: color var(--t-base);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--t-base);
}
.logo-sub {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.75);
  transition: color var(--t-base);
}
.site-nav.is-scrolled .logo-name { color: var(--text); }
.site-nav.is-scrolled .logo-sub { color: var(--text-mute); }

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp6);
}
.primary-nav a {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t-base);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent-2);
  transition: width var(--t-base);
}
.primary-nav a:hover::after { width: 100%; }
.primary-nav a:hover { color: #fff; }
.site-nav.is-scrolled .primary-nav a { color: var(--text-mute); }
.site-nav.is-scrolled .primary-nav a:hover { color: var(--text); }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.6em 1.5em;
  border: 1.5px solid rgba(255,255,255,0.75);
  color: #fff;
  border-radius: var(--r1);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.site-nav.is-scrolled .nav-cta {
  border-color: var(--accent);
  color: var(--accent);
}
.site-nav.is-scrolled .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.site-nav.is-scrolled .hamburger span { background: var(--text); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .primary-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .site-nav { padding: 0 var(--sp5); }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp6);
  transform: translateX(100%);
  transition: transform var(--t-slow);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp5);
}
.mobile-link {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text-light);
  text-decoration: none;
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-2);
  transition: width var(--t-base);
}
.mobile-link:hover::after { width: 100%; }
.mobile-cta { margin-top: var(--sp4); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  /* Fallback gradient se immagine non caricata */
  background: linear-gradient(135deg, #3d1c12 0%, #1a0e0a 50%, #2d1a10 100%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 8s ease-out;
  will-change: transform;
}
.hero-img.is-loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  background: linear-gradient(
    to bottom,
    rgba(30,20,15,0.30) 0%,
    rgba(30,20,15,0.50) 50%,
    rgba(30,20,15,0.80) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp5);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent-2);
  margin-bottom: var(--sp3);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: var(--sp4);
}
.hero-sub {
  font-size: var(--fs-md);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp7);
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: var(--sp4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: var(--sp6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp2);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  transition: color var(--t-base);
}
.scroll-down:hover { color: rgba(255,255,255,1); }
.scroll-arrow {
  width: 1.5px;
  height: 32px;
  background: rgba(255,255,255,0.5);
  position: relative;
  animation: bounceArrow 1.8s ease-in-out infinite;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255,255,255,0.7);
  border-bottom: 1.5px solid rgba(255,255,255,0.7);
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ═══════════════════════════════════════════
   INFO BAR
═══════════════════════════════════════════ */
.info-bar {
  background: var(--bg-dark);
  color: rgba(247,245,238,0.85);
  padding: var(--sp4) 0;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.info-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp5);
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: var(--sp2);
}
.info-item a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}
.info-item a:hover { text-decoration: underline; }
.info-sep { color: var(--accent); font-size: 1.2rem; }
@media (max-width: 640px) { .info-sep { display: none; } .info-bar-inner { flex-direction: column; gap: var(--sp3); } }

/* ═══════════════════════════════════════════
   STORIA
═══════════════════════════════════════════ */
.storia { background: var(--bg); }
.storia-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp8);
  align-items: start;
  margin-bottom: var(--sp10);
}
.storia-text h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: var(--sp3) 0 var(--sp5);
  position: relative;
}
.storia-text h2::after {
  content: '';
  display: block;
  width: 56px; height: 2px;
  background: var(--accent-2);
  margin-top: var(--sp4);
}
.storia-text p {
  color: var(--text-mute);
  line-height: var(--lh-base);
  margin-bottom: var(--sp4);
  max-width: 560px;
}
.storia-firma {
  margin-top: var(--sp5) !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--accent) !important;
  font-weight: 600;
}
.storia-gallery { position: relative; display: flex; flex-direction: column; gap: var(--sp4); }
.storia-img-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r2);
  background: linear-gradient(135deg, #c4933f33 0%, #8b3e2f33 100%);
  min-height: 200px;
}
.storia-img-sec img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r2);
  background: linear-gradient(135deg, #8b3e2f33 0%, #2d2322 100%);
  min-height: 100px;
}

/* Values Row */
.values-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp5);
  border-top: 1px solid var(--border);
  padding-top: var(--sp8);
}
.value-item { text-align: center; padding: var(--sp4); }
.value-icon { display: block; font-size: 2.2rem; margin-bottom: var(--sp3); }
.value-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp2);
}
.value-item p { font-size: var(--fs-sm); color: var(--text-mute); line-height: 1.55; }

@media (max-width: 900px) {
  .storia-grid { grid-template-columns: 1fr; gap: var(--sp6); }
  .storia-img-sec { display: none; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) { .values-row { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════
   MENU
═══════════════════════════════════════════ */
.menu-section { background: var(--bg-elev); }

/* Tabs */
.tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--sp7);
  scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  min-width: max-content;
  margin: 0 auto;
  justify-content: center;
}
.tabs [role="tab"] {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-mute);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: var(--sp4) var(--sp6);
  cursor: pointer;
  margin-bottom: -2px;
  transition: color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tab Panels */
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp7);
  align-items: start;
}
.tab-panel[hidden] { display: none; }

.menu-image-col img {
  width: 100%;
  border-radius: var(--r2);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, #c4933f22 0%, #8b3e2f22 100%);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp5));
}

/* Dishes */
.menu-items { display: flex; flex-direction: column; gap: 0; }
.dish {
  padding: var(--sp4) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.dish:first-child { padding-top: 0; }
.dish:last-child { border-bottom: none; }
.dish.featured { background: rgba(139,62,47,0.04); border-radius: var(--r2); padding: var(--sp4) var(--sp4); margin: 0 calc(-1 * var(--sp4)); }
.dish header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp3);
  margin-bottom: var(--sp1);
}
.dish h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp2);
  flex-wrap: wrap;
}
.dish h4 {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp2);
}
.price {
  font-weight: 700;
  color: var(--accent);
  font-size: var(--fs-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.dish p { font-size: var(--fs-sm); color: var(--text-mute); line-height: 1.55; }
.badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
}

.allergen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--text-mute);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-mute);
  cursor: default;
  vertical-align: middle;
}

/* Vini */
.vini-category { margin-bottom: var(--sp5); }
.vini-cat-title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--accent);
  margin-bottom: var(--sp3);
  padding-bottom: var(--sp2);
  border-bottom: 1px solid var(--border);
}

/* Allergen legend */
.allergen-legend {
  margin-top: var(--sp7);
  padding: var(--sp5) var(--sp6);
  background: var(--bg);
  border-radius: var(--r2);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  display: flex;
  gap: var(--sp4);
  align-items: center;
  flex-wrap: wrap;
}
.allergen-legend span { display: flex; align-items: center; gap: var(--sp1); }
.allergen-legend em { flex-basis: 100%; font-style: italic; margin-top: var(--sp2); }

@media (max-width: 768px) {
  .tab-panel { grid-template-columns: 1fr; }
  .menu-image-col { display: none; }
  .tabs { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════
   GALLERIA
═══════════════════════════════════════════ */
.galleria { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: var(--sp3);
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--r2);
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #c4933f22 0%, #8b3e2f22 100%);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  will-change: transform;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30,20,15,0.85), transparent);
  color: #fff;
  padding: var(--sp5) var(--sp4) var(--sp3);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  opacity: 0;
  transition: opacity var(--t-base);
}
.gallery-item:hover figcaption { opacity: 1; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}

/* ═══════════════════════════════════════════
   PRENOTA
═══════════════════════════════════════════ */
.prenota { background: var(--bg-dark); color: var(--text-light); }
.prenota .kicker { color: var(--accent-2); }
.prenota .kicker::before { background: var(--accent-2); }
.prenota-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp8);
  align-items: start;
}
.prenota-left h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: var(--sp3) 0 var(--sp5);
}
.prenota-left p { color: rgba(247,245,238,0.75); line-height: var(--lh-base); margin-bottom: var(--sp4); }
.prenota-info { margin: var(--sp6) 0; display: flex; flex-direction: column; gap: var(--sp3); }
.pi-item { display: flex; gap: var(--sp3); align-items: baseline; }
.pi-item strong { color: var(--accent-2); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; min-width: 60px; }
.pi-item span { color: rgba(247,245,238,0.80); font-size: var(--fs-sm); }
.prenota-alt { font-size: var(--fs-sm); color: rgba(247,245,238,0.65); }
.prenota-alt .tel-link, .prenota-alt .mail-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.booking-form {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: var(--sp7);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp4); margin-bottom: var(--sp4); }
.form-group { display: flex; flex-direction: column; gap: var(--sp2); }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mute);
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 0.65em 0.9em;
  transition: border-color var(--t-base);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: rgba(45,45,45,0.35); }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  background: var(--bg-elev);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.5em;
}
textarea { resize: vertical; min-height: 80px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp3);
  font-size: var(--fs-sm);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-mute);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
  margin-top: 2px;
  padding: 0;
}
.form-privacy { margin-bottom: var(--sp5); }

/* Success */
.booking-success {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: var(--sp8) var(--sp7);
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.success-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp5);
}
.booking-success h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: var(--sp3); }
.booking-success p { color: var(--text-mute); margin-bottom: var(--sp6); }

@media (max-width: 860px) {
  .prenota-inner { grid-template-columns: 1fr; }
  .booking-form { padding: var(--sp5); }
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   CONTATTI
═══════════════════════════════════════════ */
.contatti { background: var(--bg); }
.contatti-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp8);
  align-items: start;
}
.contatti-info h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: var(--sp3) 0 var(--sp6);
}
.contact-block { font-style: normal; display: flex; flex-direction: column; gap: var(--sp5); }
.contact-item {
  display: flex;
  gap: var(--sp4);
  align-items: flex-start;
}
.contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-item strong { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 4px; }
.contact-item a { color: var(--text); font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: var(--accent); text-decoration: underline; }
.hours-table { border-collapse: collapse; font-size: var(--fs-sm); }
.hours-table td { padding: 2px 0; }
.hours-table td:first-child { padding-right: var(--sp5); color: var(--text-mute); }
.hours-table td:last-child { font-weight: 600; }

.social-links {
  display: flex;
  gap: var(--sp4);
  margin-top: var(--sp6);
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-mute);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Mappa */
.mappa { display: flex; flex-direction: column; gap: var(--sp4); }
.map-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r2);
  overflow: hidden;
  background: #e8e0d4;
  box-shadow: var(--shadow-md);
}
.map-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c4933f22 0%, #8b3e2f22 100%);
  background-color: #e8e0d4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp3);
  cursor: pointer;
  color: var(--text-mute);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--t-base);
  z-index: 5;
}
.map-cover svg { opacity: 0.5; color: var(--accent); }
.map-cover:hover { background-color: #ddd5c8; }
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-directions-btn { align-self: flex-start; }

@media (max-width: 860px) {
  .contatti-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(247,245,238,0.75);
  font-size: var(--fs-sm);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp7);
  padding-top: var(--sp9);
  padding-bottom: var(--sp8);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  margin-bottom: var(--sp4);
}
.footer-logo .logo-icon { font-size: 1.4rem; color: var(--accent); }
.footer-logo-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-light);
}
.footer-tagline { font-size: var(--fs-xs); color: rgba(247,245,238,0.55); line-height: 1.6; margin-bottom: var(--sp5); }
.footer-social { display: flex; gap: var(--sp3); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(247,245,238,0.2);
  border-radius: 50%;
  color: rgba(247,245,238,0.6);
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}
.footer-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-2);
  margin-bottom: var(--sp4);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp3); }
.footer-links a {
  color: rgba(247,245,238,0.65);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--t-base);
}
.footer-links a:hover { color: var(--text-light); }
.footer-address { font-style: normal; color: rgba(247,245,238,0.65); line-height: 1.7; }
.footer-address a { color: rgba(247,245,238,0.65); text-decoration: none; transition: color var(--t-base); }
.footer-address a:hover { color: var(--accent-2); }
.footer-hours { border-collapse: collapse; font-size: var(--fs-sm); color: rgba(247,245,238,0.65); }
.footer-hours td { padding: 2px 0; }
.footer-hours td:first-child { padding-right: var(--sp4); }
.footer-hours td:last-child { color: rgba(247,245,238,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(247,245,238,0.08);
  padding: var(--sp4) 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp4);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(247,245,238,0.40); }
.footer-legal { display: flex; gap: var(--sp4); }
.footer-legal a { font-size: var(--fs-xs); color: rgba(247,245,238,0.40); text-decoration: none; transition: color var(--t-base); }
.footer-legal a:hover { color: rgba(247,245,238,0.75); }

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp6); } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .footer-bottom-inner { flex-direction: column; align-items: flex-start; } }

/* ═══════════════════════════════════════════
   STICKY CTA MOBILE
═══════════════════════════════════════════ */
.cta-mobile {
  display: none;
  position: fixed;
  left: var(--sp4);
  right: var(--sp4);
  bottom: var(--sp4);
  z-index: 150;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  padding: 0.9em 1.5em;
  border-radius: var(--r1);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: background var(--t-base), transform var(--t-fast);
}
.cta-mobile:hover { background: var(--accent-hover); transform: translateY(-2px); }
@media (max-width: 980px) { .cta-mobile { display: block; } }

/* ═══════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg-dark);
  color: rgba(247,245,238,0.85);
  padding: var(--sp4) var(--sp6);
  display: flex;
  align-items: center;
  gap: var(--sp5);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.45s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 200px; }
.cookie-banner p + p { font-size: var(--fs-xs); color: rgba(247,245,238,0.55); margin-top: var(--sp1); }
.cookie-actions { display: flex; gap: var(--sp3); flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55em 1.4em;
  border-radius: var(--r1);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background var(--t-base);
}
.btn-cookie-accept:hover { background: var(--accent-hover); }
.btn-cookie-decline {
  background: transparent;
  color: rgba(247,245,238,0.65);
  border: 1px solid rgba(247,245,238,0.3);
  padding: 0.55em 1.4em;
  border-radius: var(--r1);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color var(--t-base), border-color var(--t-base);
}
.btn-cookie-decline:hover { color: rgba(247,245,238,0.90); border-color: rgba(247,245,238,0.55); }

/* ═══════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp6);
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--t-fast);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: var(--sp4); right: var(--sp4); }
.lightbox-prev { left: var(--sp4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sp4); top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════
   PRINT
═══════════════════════════════════════════ */
@media print {
  .site-nav, .hero, .cookie-banner, .cta-mobile, .lightbox { display: none !important; }
  body { color: #000; background: #fff; }
  .section-pad { padding: 20px 0; }
  .container { max-width: 100%; padding: 0 20px; }
}
