/* =========================================================================
   L'INVITTA — Azienda Agricola Morigerati
   Design system in stile editoriale caldo (ispirazione Anthropic / Claude)
   Palette campionata dai materiali originali del brand.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Carta e inchiostro — toni di arenaria/sandstone del Cilento (non l'ivory di Anthropic) */
  --paper:        #F3EBDA;   /* arenaria chiara, sfondo principale */
  --paper-sink:   #EBE0CA;   /* sezioni alternate / superfici incassate */
  --paper-card:   #FBF6EA;   /* card più chiare */
  --ink:          #21221A;   /* near-black caldo con cast oliva, testo */
  --ink-soft:     #57543F;   /* testo secondario, oliva-grigio */
  --ink-faint:    #65614A;   /* didascalie, label — scurito per AA (≥4.5:1 su carta) */

  /* Due accenti mediterranei: oro (interazione) + oliva (decorazione) */
  --gold:         #C39A38;   /* oro — accento principale (fill) */
  --gold-deep:    #A07B22;   /* oro profondo — hover */
  --gold-text:    #80610F;   /* oro scuro, leggibile su carta (testi/link) */
  --olive:        #5E6233;   /* oliva del Cilento — accento decorativo */
  --olive-deep:   #474a25;
  --ochre:        #DDB94A;   /* oro/ocra — terzo accento, highlight */
  --stone:        #A39B82;   /* taupe caldo */
  --stone-soft:   #C7BEA6;
  --night:        #191C12;   /* verde-notte profondo per le fasce scure */

  /* Linee — separazione con hairline, senza ombre (stile Anthropic, carta e inchiostro) */
  --line:         rgba(26, 27, 23, 0.14);
  --line-strong:  rgba(26, 27, 23, 0.24);
  --shadow-sm:    none;
  --shadow-md:    none;
  --shadow-lg:    none;

  /* Tipografia — Cormorant Garamond (display, contrasto alto) + Hanken Grotesk (testo, calda) */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Geometria — card morbide, bottoni crisp (tensione voluta) */
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-btn: 10px;
  --tile-r:    22px;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 11vh, 144px);

  --nav-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }

/* Focus: anello oro + alone d'inchiostro — leggibile su carta, su oro e sulle fasce scure */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 5px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 40%, transparent);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
.display {
  font-size: clamp(3.4rem, 11.5vw, 9rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.012em;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}
.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lede { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); }
p + p { margin-top: 1em; }
.prose p { max-width: 64ch; text-wrap: pretty; }
.lede, .card p, .tl__body p, .scheda__intro p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--sink { background: var(--paper-sink); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head .lede { margin-top: 1.2rem; }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.82em 1.5em;
  border-radius: var(--radius-btn);
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 540;
  letter-spacing: 0.005em;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-text); color: var(--paper-card); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--ink) 40%, transparent); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Tiles (sistema geometrico) ---------- */
.tile { width: var(--s, 64px); height: var(--s, 64px); border-radius: var(--tile-r); flex: none; }
.tile-row { display: flex; gap: clamp(10px, 1.4vw, 18px); flex-wrap: wrap; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__brand img { height: 22px; width: auto; }
.nav__brand .crest { width: 26px; height: 26px; }
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__links a {
  font-size: 0.9rem; font-weight: 480; color: var(--ink-soft);
  position: relative; padding-block: 4px; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 19px; height: 1.6px; background: var(--ink); position: relative; transition: .25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 19px; height: 1.6px; background: var(--ink); transition: .25s; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 70px)); padding-bottom: clamp(48px, 9vh, 110px); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero__wordmark { margin: 0 0 1.9rem; width: clamp(258px, 44vw, 560px); }
.hero__wordmark img { width: 100%; height: auto; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem); line-height: 1.35; color: var(--ink-soft);
  max-width: 30ch; margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__media { position: relative; justify-self: center; }
.hero__bottle {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); rotate: 1.4deg; transition: rotate .6s ease;
  max-width: 380px;
}
.hero__bottle:hover { rotate: 0deg; }
.hero__bottle img { width: 100%; height: auto; }
.hero__watermark {
  position: absolute; right: -8%; top: 50%; translate: 0 -50%;
  width: min(46vw, 560px); opacity: 0.05; pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; margin-top: 3rem; color: var(--ink-faint); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll .line { width: 38px; height: 1px; background: var(--ink-faint); position: relative; overflow: hidden; }
.hero__scroll .line::after { content:""; position:absolute; inset:0; width:14px; background: var(--gold); animation: scrolldot 2.4s ease-in-out infinite; }
@keyframes scrolldot { 0%{transform:translateX(-16px)} 60%,100%{transform:translateX(40px)} }

/* ---------- Crest stage (hero media) ---------- */
.crest-stage {
  position: relative; width: min(100%, 430px); aspect-ratio: 1; margin-inline: auto;
  background: radial-gradient(125% 125% at 50% 28%, var(--paper-card), var(--paper-sink) 92%);
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.crest-stage::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 1px solid var(--line); }
.crest-stage__fig { width: 62%; height: auto; position: relative; z-index: 2; }
.crest-stage__tile { position: absolute; z-index: 3; box-shadow: var(--shadow-sm); }
.crest-stage__tile.t1 { top: 2%; left: 0%; animation: float 6s ease-in-out infinite; }
.crest-stage__tile.t2 { bottom: 5%; right: -2%; animation: float 7.5s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .crest-stage__tile { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.9rem, 2vw, 1.3rem); }
.stat { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 2.2vw, 1.7rem); display: grid; }
.stat .tile { margin-bottom: .9rem; }
.stat .n { font-family: var(--serif); font-weight: 560; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: var(--ink); }
.stat .l { font-size: .78rem; letter-spacing: .05em; color: var(--ink-faint); margin-top: .4rem; }

/* ---------- Pull quote ---------- */
.pullquote { max-width: 60ch; margin-inline: auto; text-align: center; }
.pullquote blockquote {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.55rem, 3.1vw, 2.35rem); line-height: 1.32; letter-spacing: 0; color: var(--ink);
}
.pullquote blockquote::first-letter { color: var(--gold-deep); }
.pq-cite { margin-top: 1.4rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Language switch ---------- */
.langswitch { display: inline-flex; gap: 2px; background: rgba(26,27,23,.07); border-radius: 9px; padding: 3px; }
.langswitch button { padding: .34em .64em; border-radius: 7px; font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); transition: background-color .2s, color .2s; }
.langswitch button:hover { color: var(--ink); }
.langswitch button.is-active { background: var(--paper-card); color: var(--ink); }
.langswitch--panel { margin-top: 1.6rem; }
.langswitch--panel button { font-size: .98rem; padding: .5em 1.1em; border-radius: 9px; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .big {
  font-family: var(--serif); font-weight: 520;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.16; letter-spacing: -0.005em;
  max-width: 24ch; margin-inline: auto;
}
.manifesto .big em { color: var(--gold-deep); }
.manifesto .sign { margin-top: 2.4rem; }
.manifesto .sign img { height: 30px; width: auto; margin-inline: auto; opacity: .8; }

/* ---------- Il Vino (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-card);
}
.frame img { width: 100%; height: auto; }
.figure-cap { margin-top: .9rem; font-size: .82rem; color: var(--ink-faint); }

.pairs { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
.pair { border-top: 1px solid var(--line); padding-top: .8rem; }
.pair dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.pair dd { font-family: var(--serif); font-weight: 540; font-size: 1.4rem; margin-top: .2rem; }

/* ---------- Cards (vigne / valori) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: clamp(1.1rem, 2.2vw, 1.7rem); }
/* Le 4 vigne sempre su una sola riga (desktop); impilano su schermi piccoli */
#vigne .cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { #vigne .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #vigne .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card__icon { margin-bottom: 1.2rem; }
.card__index { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--olive); font-style: italic; }
.card h3 { margin: .35rem 0 .7rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .tag { display: inline-block; margin-top: 1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); border: 1px solid color-mix(in srgb, var(--olive) 32%, var(--line)); border-radius: 999px; padding: .3em .8em; }

/* ---------- Timeline (storia) ---------- */
.timeline { position: relative; display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
.timeline::before { content:""; position:absolute; left: 11px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--olive), var(--line)); }
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start; }
.tl__year { position: relative; }
.tl__year .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); display: grid; place-items: center; }
.tl__year .dot::after { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tl__body .y { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; color: var(--gold-text); line-height: 1; }
.tl__body h3 { margin: .5rem 0 .4rem; font-size: 1.35rem; }
.tl__body p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Scheda tecnica ---------- */
.scheda { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.scheda__card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); }
.spec { display: grid; gap: .2rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.spec:first-child { padding-top: 0; }
.spec:last-child { border-bottom: none; padding-bottom: 0; }
.spec dt { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.spec dd { font-family: var(--serif); font-weight: 540; font-size: 1.3rem; margin-top: .1rem; line-height: 1.3; }

/* ---------- Poesia ---------- */
.poem { background: var(--night); color: #ECE3CC; border-radius: var(--radius-xl); padding: clamp(2.4rem, 6vw, 5rem); position: relative; overflow: hidden; }
.poem__wm { position:absolute; right: -4%; bottom: -10%; width: min(40vw, 420px); opacity: .07; pointer-events: none; filter: brightness(2.5); }
.poem .eyebrow { color: var(--ochre); }
.poem__text { margin-top: 1.6rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 2.05rem); line-height: 1.45; }
.poem__text p { max-width: 36ch; }
.poem__text .v { display: block; }
.poem__text em { color: var(--ochre); font-style: italic; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact__info .line { display: flex; gap: .9rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__info .line .label { min-width: 110px; }
.contact__info a:hover { color: var(--gold-text); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 14px;
  padding: .8em 1em; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); }
.form .consent input { margin-top: .25em; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #C5BEA6; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .crest { width: 54px; height: 54px; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 38ch; color: #A39E8E; font-size: .92rem; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #87826f; font-weight: 600; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: .6rem; font-size: .94rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: .82rem; color: #87826f; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer .drink { display: inline-flex; align-items: center; gap: .5rem; }
.footer .drink b { color: #C8C1AE; font-weight: 600; }

/* ---------- Age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.agegate.is-open { opacity: 1; visibility: visible; }
.agegate__card {
  background: var(--paper); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.4rem);
  max-width: 460px; width: 100%; text-align: center; border: 1px solid var(--line-strong);
  transform: translateY(14px) scale(.98); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.agegate.is-open .agegate__card { transform: none; }
.agegate .crest { width: 64px; height: 64px; margin: 0 auto 1.4rem; }
.agegate h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .6rem; }
.agegate p { color: var(--ink-soft); font-size: .95rem; max-width: 34ch; margin-inline: auto; }
.agegate__actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.agegate__deny { color: var(--ink-faint); font-size: .82rem; margin-top: 1.2rem; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__scroll .line::after { animation: none; } }

/* ---------- Mobile nav panel ---------- */
.mobile-panel {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55;
  background: var(--paper); padding: 2rem var(--gutter);
  display: grid; align-content: start; gap: .4rem;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s;
}
body.menu-open .mobile-panel { transform: none; opacity: 1; visibility: visible; }
.mobile-panel a { font-family: var(--serif); font-size: 1.8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 1.4rem; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__media { order: -1; justify-self: start; }
  .hero__bottle { max-width: 280px; rotate: 0deg; }
  .hero__watermark { display: none; }
  .split, .split--reverse .split__media, .scheda, .contact, .footer__top { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer__top { gap: 2rem; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn, .nav__cta .langswitch { display: none; }
  .nav__toggle { display: flex; }
  .pairs { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 40px 1fr; }
}
@media (min-width: 761px) { .mobile-panel { display: none; } }

/* ---------- Rifiniture: de-inline + form ---------- */
.split__copy > h2, .scheda__intro h2 { margin: .8rem 0 1.2rem; }
#vino .hero__bottle { rotate: -1.5deg; max-width: none; }
.scheda__intro p:not(.lede) { margin-top: 1.4rem; color: var(--ink-soft); }
.scheda__intro .btn { margin-top: 1.8rem; }
#filosofia .cards { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.consent a { color: var(--gold-text); }
.form button[type="submit"] { justify-self: start; }
.form__req { font-size: .78rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: .2rem; }
.form__req span { color: var(--gold-text); font-weight: 700; }
.form__msg { font-size: .88rem; color: var(--ink-soft); }
.field--req > label::after { content: " *"; color: var(--gold-text); font-weight: 700; }

/* Skip link — visibile solo al focus da tastiera */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: .7em 1.1em; border-radius: var(--radius-btn);
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  transform: translateY(-160%); transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.skip-link:focus-visible { transform: none; }
