/* ==========================================================================
   Mavalà — Reggiolo (RE)
   Foglio di stile unico. Nessuna dipendenza esterna.
   Palette e carattere ripresi dalla nuova identità di @mavala_reggiolo.
   ========================================================================== */

/* ---------- Font self-hosted (nessuna chiamata a Google) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design token ---------- */
/* ══════════════════════════════════════════════════════════════════
   LA TAVOLOZZA — da qui si cambiano TUTTI i colori del sito
   ──────────────────────────────────────────────────────────────────
   Questi sono i cinque colori ufficiali del marchio, con i nomi che
   hanno sulla tavolozza che ci è stata consegnata. Tutto il resto del
   sito — ombre, bordi, velature sulle foto, testi smorzati — viene
   calcolato a partire da qui, quindi non devi andare a caccia di
   colori in giro per il foglio di stile.
   ══════════════════════════════════════════════════════════════════ */
:root {
  /* ---- i cinque colori ufficiali ---- */
  --terracotta-sun: #b95f2e;   /* Terracotta Sun — il colore del marchio */
  --natural-oak:    #a37253;   /* Natural Oak    — il bruno caldo di appoggio */
  --white-sand:     #fbecdf;   /* White Sand     — i fondi chiari */
  --wild-olive:     #637b3b;   /* Wild Olive     — il verde del giardinetto */
  --salt-air:       #d9eded;   /* Salt Air       — l'azzurro freddo */

  /* ---- i due scuri ----
     Sulla tavolozza non c'era un colore per il testo e per i fondi
     scuri (barra, enoteca, piè di pagina): li ho ricavati scurendo
     il Natural Oak, così restano in famiglia. */
  --inchiostro: #312219;   /* il testo e i fondi scuri */
  --notte:      #241912;   /* il fondo più scuro di tutti */

  /* ---- i ruoli ----
     Qui si decide quale colore fa cosa. Se un giorno vuoi provare a
     invertire qualcosa, è questa manciata di righe da toccare. */
  --arancio:       var(--terracotta-sun);
  --arancio-scuro: #8c4620;                 /* Terracotta Sun scurito, per prezzi e passaggio del mouse */
  --crema:         var(--white-sand);
  --carta:         #fefaf5;                 /* White Sand schiarito, il fondo della pagina */
  --verde:         var(--wild-olive);
  --sabbia:        var(--natural-oak);
  /* Salt Air non è ancora usato da nessuna parte: non c'era un posto dove
     metterlo senza cambiare l'impaginazione. I due punti dove funzionerebbe
     meglio sono il riquadro degli orari (.hours-card) e le etichette chiare
     sui fondi scuri. */
  --aria:          var(--salt-air);
}

/* ---------- colori derivati: di norma non si toccano ---------- */
:root {
  --ink:        var(--inchiostro);
  --terra:      var(--arancio);
  --terra-deep: var(--arancio-scuro);
  --cream:      var(--crema);
  --paper:      var(--carta);
  --night:      var(--notte);
  --sage:       var(--verde);

  --ink-soft:   color-mix(in srgb, var(--ink) 74%, transparent);
  --ink-faint:  color-mix(in srgb, var(--ink) 50%, transparent);
  --line:       color-mix(in srgb, var(--ink) 16%, transparent);
  --espresso:   color-mix(in srgb, var(--ink) 74%, var(--arancio) 26%);
  --tan:        var(--sabbia);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --pad-x: 5vw;
  --radius: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, blockquote, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { color: var(--cream); background: var(--terra); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  color: var(--cream);
  background: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* le ancore non devono finire sotto l'header fisso */
section[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   TIPOGRAFIA CONDIVISA
   ========================================================================== */
.kicker {
  margin-bottom: 14px;
  color: var(--terra);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.kicker.light { color: var(--tan); }
.kicker em { font-family: var(--font-display); font-size: 1.25em; letter-spacing: .06em; }

.section-number {
  margin-bottom: 28px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
}
h2 { font-size: clamp(34px, 5.6vw, 66px); }
h2 em, h1 em { font-weight: 400; font-style: italic; letter-spacing: -.01em; }

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.light-button { color: var(--espresso); background: var(--cream); }
.light-button:hover { background: #fff; }
.dark-button  { color: var(--cream); background: var(--espresso); }
.dark-button:hover { background: var(--terra); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--terra);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: gap .25s ease, color .25s ease;
}
.text-link:hover { gap: 14px; color: var(--terra-deep); }

/* comparsa progressiva */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.7vw;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 8%, transparent);
}

/* il marchio scritto a mano: scuro sui fondi chiari, crema su quelli scuri */
.brand { display: flex; align-items: center; }
.brand-logo { width: clamp(132px, 13.5vw, 178px); height: auto; }

/* sui fondi scuri e sulle foto basta il logo in crema, con un'ombra morbida */
.logo-plate { display: block; }
.logo-plate img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 26px color-mix(in srgb, var(--night) 55%, transparent));
}
.logo-plate-hero   { width: min(76vw, 420px); margin: 0 auto; }
.logo-plate-footer { width: clamp(210px, 26vw, 280px); flex: 0 0 auto; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  position: relative;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

/* rimanda all'altro locale, passando dalla pagina di scelta */
.nav-home {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-home::after { display: none; }
.nav-home:hover { color: var(--cream) !important; background: var(--espresso); border-color: var(--espresso); }

.nav-book {
  padding: 11px 20px;
  border-radius: 999px;
  color: var(--cream) !important;
  background: var(--terra);
}
.nav-book::after { display: none; }
.nav-book:hover { background: var(--espresso); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
}
.menu-toggle span {
  width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ==========================================================================
   00 · HERO — dal mattino a notte
   ========================================================================== */
.experience-scroll { height: 340vh; }

.experience-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--night);
}

.journey-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  will-change: opacity, transform;
}
.journey-morning { background-image: url('../img/mavala-sala.webp'); }
.journey-garden  { background-image: url('../img/mavala-giardino.webp'); opacity: 0; }
.journey-night   { background-image: url('../img/mavala-enoteca-sera.webp'); opacity: 0; }

.cinema-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night) 62%, transparent) 0%, transparent 30%, transparent 55%, color-mix(in srgb, var(--night) 82%, transparent) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 40%, color-mix(in srgb, var(--night) 50%, transparent) 100%);
}
.cinema-grain {
  position: absolute;
  inset: -50%;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* velo morbido dietro al testo: garantisce la leggibilità su qualsiasi foto */
.journey-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -34% -16%;
  background: radial-gradient(64% 60% at 50% 50%,
              color-mix(in srgb, var(--night) 74%, transparent) 0%, color-mix(in srgb, var(--night) 52%, transparent) 46%, transparent 78%);
}

.journey-copy {
  position: absolute;
  isolation: isolate;   /* così il velo qui sopra resta sopra alle foto */
  left: 50%;
  top: 50%;
  width: min(90vw, 940px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--cream);
  will-change: opacity;
}

.intro-copy h1 {
  font-size: clamp(52px, 11vw, 138px);
  text-shadow: 0 2px 40px color-mix(in srgb, var(--night) 45%, transparent);
}
.intro-lead {
  margin-top: 26px;
  text-shadow: 0 1px 18px color-mix(in srgb, var(--night) 70%, transparent);
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 300;
  letter-spacing: .01em;
  opacity: .9;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.garden-copy p:last-child {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .72;
}

.reveal-lead {
  margin-top: 26px;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  opacity: .9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: 36px;
}
.story-link { color: var(--tan); }
.story-link:hover { color: var(--cream); }

.scroll-rail {
  position: absolute;
  right: 3.7vw;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}
.scroll-rail i {
  position: relative;
  display: block;
  width: 1px;
  height: 84px;
  background: color-mix(in srgb, var(--cream) 28%, transparent);
}
.scroll-rail b {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--terra);
  transform: scaleY(0);
  transform-origin: top;
}
#railClock { font-variant-numeric: tabular-nums; color: var(--tan); }

/* ==========================================================================
   01 · IL LOCALE
   ========================================================================== */
.intro-section {
  padding: clamp(80px, 11vw, 150px) var(--pad-x) 0;
  background: var(--paper);
}
.intro-grid {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}
.intro-words .intro-text { margin-top: 30px; }

/* le due colonne di foto, sfalsate come sul sito di una volta */
.intro-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.gallery-col { display: grid; gap: 14px; align-content: start; }
.gallery-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--cream);
}
.gallery-col-offset { padding-top: clamp(20px, 4vw, 48px); }

.intro-text p {
  margin-bottom: 20px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}
.intro-text strong { font-weight: 600; color: var(--ink); }
.intro-text .text-link { margin-top: 10px; }

/* nastro scorrevole */
.marquee {
  margin-top: clamp(64px, 9vw, 120px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: slide 44s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track i { color: var(--terra); font-size: 13px; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   02 · LA GIORNATA
   ========================================================================== */
.day-section {
  padding: clamp(80px, 11vw, 140px) var(--pad-x);
  background: var(--paper);
}
.day-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 76px); }
.day-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

.day-grid {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  grid-template-columns: 1fr;
}

.moment {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.moment-photos {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.moment-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  aspect-ratio: 1 / 1;
}
.moment-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}
.moment:hover .moment-photo img { transform: scale(1.05); }



.moment-time {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--terra);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.moment-body h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.6vw, 32px);
}
.moment-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}
.moment-body strong { font-weight: 600; color: var(--ink); }
.moment-note {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terra) !important;
}

/* ==========================================================================
   03 · I MENÙ
   ========================================================================== */
.menu-section {
  padding: clamp(80px, 11vw, 140px) var(--pad-x);
  background: var(--cream);
}
.menu-head { max-width: 680px; margin-bottom: clamp(44px, 5vw, 68px); }
.menu-lead {
  margin-top: 24px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

.menu-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), background .35s ease, border-color .35s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--espresso);
  background: var(--espresso);
  color: var(--cream);
}
.menu-card-photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.menu-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.menu-card:hover .menu-card-photo img { transform: scale(1.07); }
.menu-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
}
.menu-card-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--terra);
}
.menu-card h3 { font-size: clamp(22px, 2.2vw, 27px); }
.menu-card p {
  flex: 1;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  transition: color .35s ease;
}
.menu-card:hover p { color: color-mix(in srgb, var(--cream) 78%, transparent); }
.menu-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .35s ease, border-color .35s ease;
}
.menu-card:hover .menu-card-meta { color: var(--tan); border-color: color-mix(in srgb, var(--cream) 22%, transparent); }
.menu-card-meta b { font-size: 15px; }

/* striscia dello chef */
.chef-strip {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  margin-top: clamp(44px, 5vw, 70px);
  padding: clamp(32px, 4vw, 52px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--espresso);
  color: var(--cream);
}
.chef-strip-head h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.06;
}
.chef-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
}
.chef-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.chef-list span { font-size: 15px; font-weight: 500; }
.chef-list small {
  grid-column: 1;
  font-size: 12.5px;
  font-weight: 300;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
}
.chef-list b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tan);
}

/* ==========================================================================
   04 · GLI SPAZI
   ========================================================================== */
.spaces-section {
  padding: clamp(80px, 11vw, 140px) var(--pad-x);
  background: var(--paper);
}
.spaces-heading { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }

.spaces-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.space-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius);
  background: var(--cream) center / cover no-repeat;
  color: var(--cream);
}
.image-dehors  { background-image: url('../img/mavala-dehors.webp'); }
.image-veranda { background-image: url('../img/mavala-veranda.webp'); }
.image-banco   { background-image: url('../img/mavala-banco.webp'); }
.image-tavola  { background-image: url('../img/mavala-tavola.webp'); }

.space-card:not(.text-card)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 12%, transparent) 30%, color-mix(in srgb, var(--night) 84%, transparent) 100%);
  transition: background .4s ease;
}
.space-card:hover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--night) 30%, transparent) 20%, color-mix(in srgb, var(--night) 90%, transparent) 100%); }

.space-card-overlay {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px;
}
.space-card-overlay span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--tan);
}
.space-card-overlay h3 { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 30px); }
.space-card-overlay p {
  max-width: 34ch;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
}

.text-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--terra);
  color: var(--cream);
}
.text-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 29px);
  font-style: italic;
  line-height: 1.24;
}
.text-card small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .75;
}

/* ==========================================================================
   05 · L'ENOTECA
   ========================================================================== */
.wine-section {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--night);
  color: var(--cream);
}
.wine-image {
  min-height: 56vw;
  background: url('../img/mavala-enoteca.webp') center / cover no-repeat;
}
.wine-copy { padding: clamp(56px, 8vw, 110px) var(--pad-x); }
.wine-copy .section-number { color: color-mix(in srgb, var(--cream) 50%, transparent); }
.wine-copy h2 { margin-bottom: 26px; }
.wine-copy > p {
  max-width: 52ch;
  margin-bottom: 18px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: color-mix(in srgb, var(--cream) 76%, transparent);
}

.wine-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 34px 0;
  padding: 26px 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}
.wine-stats dt {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: var(--tan);
}
.wine-stats dd {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.wine-copy .dark-button { color: var(--espresso); background: var(--cream); }
.wine-copy .dark-button:hover { color: var(--cream); background: var(--terra); }

/* ==========================================================================
   06 · MUSIC &CO.
   ========================================================================== */
.music-section { padding: clamp(60px, 8vw, 110px) var(--pad-x); background: var(--paper); }

.music-panel {
  position: relative;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
  border-radius: calc(var(--radius) + 10px);
  background: var(--terra);
  color: var(--cream);
}
/* firma decorativa ripresa dall'anello di vino del logo */
.music-panel::before {
  content: '';
  position: absolute;
  right: -12%;
  top: -40%;
  width: 62%;
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--cream) 14%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.music-copy { position: relative; z-index: 1; }
.music-copy h2 { margin-bottom: 22px; }
.music-copy p {
  max-width: 48ch;
  margin-bottom: 30px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: color-mix(in srgb, var(--cream) 86%, transparent);
}

.music-roundel {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-self: start;
  gap: 4px;
  width: clamp(150px, 17vw, 196px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent);
  border-radius: 50%;
  text-align: center;
}
.music-roundel span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .8;
}
.music-roundel strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   07 · INSTAGRAM
   ========================================================================== */
.instagram-section {
  padding: clamp(70px, 10vw, 130px) var(--pad-x);
  background: var(--cream);
}
.instagram-heading {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.instagram-heading p:not(.kicker):not(.section-number) {
  max-width: 46ch;
  margin-bottom: 20px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

.post-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.post-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--espresso) center / cover no-repeat;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-brunch { background-image: url('../img/mavala-waffle.webp'); }
.post-garden { background-image: url('../img/mavala-giardino.webp'); }
.post-bar    { background-image: url('../img/mavala-banco.webp'); }
.post-wine   { background-image: url('../img/mavala-enoteca.webp'); }
.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 50%, transparent) 0%, color-mix(in srgb, var(--night) 82%, transparent) 100%);
  transition: background .4s ease;
}
.post-card:hover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--terra) 42%, transparent) 0%, color-mix(in srgb, var(--night) 88%, transparent) 100%); }
.post-card > * { position: relative; z-index: 1; }
.post-index { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--tan); }
.post-card small {
  display: block;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
}
.post-card h3 { font-size: clamp(24px, 2.6vw, 32px); }
.post-arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 20px;
  transition: transform .3s ease;
}
.post-card:hover .post-arrow { transform: translate(4px, -4px); }

/* ==========================================================================
   08 · CONTATTI
   ========================================================================== */
.booking-section {
  padding: clamp(80px, 11vw, 150px) var(--pad-x);
  background: var(--paper);
  text-align: center;
}
.booking-section h2 { margin-bottom: 22px; }
.booking-address {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 38px 0 clamp(44px, 5vw, 62px);
}
.booking-button  { color: var(--cream); background: var(--espresso); }
.booking-button:hover { background: var(--terra); }
.whatsapp-button { color: var(--espresso); background: transparent; border: 1px solid var(--line); }
.whatsapp-button:hover { color: var(--cream); background: var(--sage); border-color: var(--sage); }

.hours-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--cream);
  text-align: left;
}
.hours-card h3 {
  margin-bottom: 20px;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terra);
}
.hours-list div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.hours-list div:last-child { border-bottom: 0; }
.hours-list dt { font-size: 14px; font-weight: 600; }
.hours-list dd {
  font-size: 13.5px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.hours-list .is-late dd { color: var(--terra); font-weight: 500; }
.hours-note {
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-faint);
}

.booking-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 38px;
}
.booking-note span {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: clamp(56px, 7vw, 92px) var(--pad-x) 34px;
  background: var(--night);
  color: var(--cream);
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding-bottom: clamp(36px, 4vw, 54px);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  line-height: 1.15;
  color: var(--tan);
}

.footer-columns {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding: clamp(36px, 4vw, 54px) 0;
}
.footer-columns small {
  display: block;
  margin-bottom: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terra);
}
.footer-columns p, .footer-columns a {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream) 76%, transparent);
}
.footer-columns a { transition: color .2s ease; }
.footer-columns a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  font-size: 11px;
  font-weight: 300;
  color: color-mix(in srgb, var(--cream) 48%, transparent);
}

/* ==========================================================================
   BREAKPOINT
   ========================================================================== */
@media (min-width: 620px) {
  .menu-grid    { grid-template-columns: repeat(2, 1fr); }
  .post-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .wine-stats   { gap: 14px 56px; }
}

@media (min-width: 860px) {
  .moment {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
  }
  .moment:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .moment:nth-child(even) .moment-photos { order: 2; }

  .spaces-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
  }
  .space-card-tall { grid-row: span 2; }

  .chef-strip { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 56px; }
  .post-grid  { grid-template-columns: repeat(4, 1fr); }
  .instagram-heading { grid-template-columns: repeat(2, 1fr); gap: 56px; }
  .music-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; }
  .music-roundel { justify-self: end; }
}

@media (min-width: 1000px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .menu-grid  { grid-template-columns: repeat(4, 1fr); }
  .wine-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wine-image   { min-height: 100%; }
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

/* --- Navigazione mobile --- */
@media (max-width: 1240px) {
  .menu-toggle { display: flex; }
  .brand-place { display: none; }

  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 90px 8vw 40px;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-size: 15px; letter-spacing: .2em; }
  .nav-book { margin-top: 10px; padding: 14px 26px; }
}

@media (max-width: 620px) {
  .experience-scroll { height: 300vh; }
  .scroll-rail { right: 5vw; bottom: 26px; }
  .scroll-rail i { height: 56px; }
  .space-card { min-height: 280px; }
  .hours-list div { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* --- Preferenza: meno animazioni --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .experience-scroll { height: auto; }
  .experience-stage { position: relative; height: 100vh; }
  .journey-copy { transition: none; }
}

/* --- Stampa --- */
@media print {
  .site-header, .scroll-rail, .marquee, .experience-scroll { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- il credito di chi ha fatto il sito ---------- */
.footer-credit { width: 100%; text-align: center; }
.footer-credit a {
  color: var(--tan);
  border-bottom: 1px solid color-mix(in srgb, var(--tan) 45%, transparent);
  transition: color .2s ease, border-color .2s ease;
}
.footer-credit a:hover { color: var(--cream); border-bottom-color: var(--cream); }

@media (min-width: 720px) {
  .footer-credit { width: auto; text-align: right; }
}
