/* =============================================================
   Agriturismo Le Cantine — Del Zanna Pietro
   Foglio di stile principale · impostazione editoriale
   ============================================================= */

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Palette naturale */
  --paper:      #f5efe4;   /* bianco caldo / crema — base */
  --paper-2:    #efe7d8;   /* crema alternata */
  --paper-3:    #e7dccb;   /* beige piu profondo */
  --paper-warm: #faf6ee;   /* crema chiarissima */

  --ink:        #2a2620;   /* testo primario, bruno quasi nero */
  --ink-2:      #5c5648;   /* testo secondario */
  --ink-3:      #857d6d;   /* testo terziario / didascalie */

  --olive:      #55593c;   /* verde oliva profondo — accento */
  --olive-2:    #6b7049;   /* oliva medio */
  --sage:       #9aa07f;   /* verde salvia del logo */
  --wood:       #7b5a38;   /* marrone legno */
  --wood-2:     #6f4f30;
  --bordeaux:   #3a1a22;   /* bordeaux molto scuro */
  --stone:      #8b8578;   /* grigio pietra */

  --line:       rgba(42, 38, 32, .16);   /* filetti */
  --line-soft:  rgba(42, 38, 32, .09);
  --line-light: rgba(245, 239, 228, .28);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Scala fluida (clamp min .. max) */
  --fs-eyebrow: .75rem;
  --fs-body:    clamp(1rem, .96rem + .2vw, 1.12rem);
  --fs-lead:    clamp(1.18rem, 1.08rem + .5vw, 1.5rem);
  --fs-h4:      clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-h3:      clamp(1.8rem, 1.4rem + 1.6vw, 2.9rem);
  --fs-h2:      clamp(2.3rem, 1.6rem + 3vw, 4.5rem);
  --fs-display: clamp(3rem, 1.6rem + 6vw, 7.5rem);

  /* Spaziature */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(4.5rem, 4rem + 6vw, 11rem);
  --maxw: 82.5rem;      /* 1320px */
  --maxw-wide: 96rem;   /* 1536px */
  --maxw-text: 40rem;

  --nav-h: 5.25rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-2: cubic-bezier(.16, 1, .3, 1);
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 100%;
}
@media (min-width: 1600px) { html { font-size: 106.25%; } } /* 17px */
@media (min-width: 2000px) { html { font-size: 112.5%; } }  /* 18px */
@media (min-width: 2560px) { html { font-size: 125%; } }    /* 20px */

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--olive); color: var(--paper-warm); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper-warm);
  padding: .6rem 1.1rem; z-index: 2000; border-radius: 2px;
  transition: top .2s var(--ease); font-size: .85rem; letter-spacing: .04em;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------
   3. Tipografia
   ------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }

.display { font-size: var(--fs-display); font-weight: 500; line-height: .98; letter-spacing: -.015em; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: var(--olive);
  opacity: .6;
}
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 300;
}

.section-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage);
  letter-spacing: .02em;
}

p + p { margin-top: 1.15em; }

/* -------------------------------------------------------------
   4. Layout helpers
   ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.bg-2 { background: var(--paper-2); }
.bg-3 { background: var(--paper-3); }
.bg-dark { background: var(--bordeaux); color: var(--paper-warm); }

.measure { max-width: var(--maxw-text); }

/* Link editoriale con sottolineatura animata */
.link-underline {
  position: relative;
  font-family: var(--sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 500;
  padding-bottom: .35rem;
  display: inline-block;
  color: var(--ink);
}
.link-underline::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1); transform-origin: right;
  transition: transform .5s var(--ease-2);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: left; }
.link-underline .arrow { transition: transform .4s var(--ease-2); display: inline-block; }
.link-underline:hover .arrow { transform: translateX(.35rem); }

/* Bottone primario minimale */
.btn {
  --btn-fg: var(--paper-warm);
  --btn-bg: var(--olive);
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--btn-fg); background: var(--btn-bg);
  padding: 1.1rem 2.1rem;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: color .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease-2);
}
.btn:hover { border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }

.btn-ghost {
  --btn-fg: var(--ink);
  --btn-bg: transparent;
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--paper-warm); }

.btn-light {
  --btn-fg: var(--ink);
  --btn-bg: var(--paper-warm);
  border-color: var(--paper-warm);
}
.btn-light:hover { color: var(--paper-warm); }

/* -------------------------------------------------------------
   5. Reveal on scroll
   ------------------------------------------------------------- */
/* Stato nascosto applicato SOLO quando il JS conferma di poter animare (.reveal-on).
   Senza JS / con reduced-motion / se l'observer non parte, il contenuto resta visibile. */
.reveal-on .reveal { opacity: 0; transform: translateY(1.8rem); transition: opacity .9s var(--ease-2), transform .9s var(--ease-2); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.reveal-on .reveal.d1 { transition-delay: .08s; }
.reveal-on .reveal.d2 { transition-delay: .16s; }
.reveal-on .reveal.d3 { transition-delay: .24s; }
.reveal-on .reveal.d4 { transition-delay: .32s; }

.reveal-on .line-grow { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-2); }
.reveal-on .line-grow.is-in { transform: scaleX(1); }

/* -------------------------------------------------------------
   6. Navbar
   ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), height .4s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--maxw-wide); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 2.05rem; width: auto; transition: opacity .4s var(--ease); }
.nav__logo .logo-dark { position: absolute; opacity: 0; }

.nav__menu { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.6rem); }
.nav__link {
  font-family: var(--sans); font-size: .82rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-warm);
  position: relative; padding: .3rem 0;
  transition: color .4s var(--ease), opacity .4s var(--ease);
  opacity: .92;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -.05rem;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-2);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-warm);
  border: 1px solid var(--line-light);
  padding: .7rem 1.35rem; border-radius: 2px;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.nav__cta:hover { background: var(--paper-warm); color: var(--ink); border-color: var(--paper-warm); }

/* Stato scrolled: fondo crema, testo scuro */
.nav.is-scrolled {
  background: var(--paper-warm);
  height: 4.4rem;
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 40px rgba(42, 38, 32, .06);
}
.nav.is-scrolled .nav__link,
.nav.is-scrolled .nav__cta { color: var(--ink); }
.nav.is-scrolled .nav__cta { border-color: var(--line); }
.nav.is-scrolled .nav__cta:hover { background: var(--olive); color: var(--paper-warm); border-color: var(--olive); }
.nav.is-scrolled .logo-light { opacity: 0; }
.nav.is-scrolled .logo-dark { opacity: 1; position: static; }
.nav.is-scrolled .nav__burger span { background: var(--ink); }

/* Burger mobile */
.nav__burger { display: none; width: 2.4rem; height: 2.4rem; position: relative; z-index: 1200; }
.nav__burger span {
  position: absolute; left: 50%; width: 1.5rem; height: 1.5px; background: var(--paper-warm);
  transform: translateX(-50%); transition: transform .4s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.nav__burger span:nth-child(1) { top: .85rem; }
.nav__burger span:nth-child(2) { top: 1.2rem; }
.nav__burger span:nth-child(3) { top: 1.55rem; }
body.menu-open .nav__burger span:nth-child(1) { top: 1.2rem; transform: translateX(-50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { top: 1.2rem; transform: translateX(-50%) rotate(-45deg); }
body.menu-open .nav__burger span { background: var(--ink); }

/* -------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--paper-warm);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 12, 8, .82) 0%, rgba(16, 12, 8, .58) 26%, rgba(16, 12, 8, .40) 50%, rgba(16, 12, 8, .34) 100%),
    linear-gradient(to right, rgba(16, 12, 8, .42) 0%, rgba(16, 12, 8, .12) 45%, rgba(16, 12, 8, 0) 72%);
}
.hero__inner {
  width: 100%; max-width: var(--maxw-wide); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(3.5rem, 7vh, 7rem);
  padding-top: calc(var(--nav-h) + 2rem);
}
.hero__eyebrow { color: var(--paper-warm); opacity: .9; margin-bottom: 1.8rem; }
.hero__eyebrow::before { background: var(--paper-warm); opacity: .55; }
.hero__title {
  color: var(--paper-warm);
  font-size: var(--fs-display);
  font-weight: 500; line-height: .98; letter-spacing: -.015em;
  max-width: 16ch;
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 3px 34px rgba(0,0,0,.4);
}
.hero__title em { font-style: italic; color: #ecdcb4; }
.hero__sub {
  margin-top: 1.8rem; max-width: 40ch;
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.55;
  color: rgba(245, 239, 228, .94);
  text-shadow: 0 1px 20px rgba(0,0,0,.4);
}
.hero__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.hero__actions .link-underline { color: var(--paper-warm); }

/* -------------------------------------------------------------
   8. Proverbio (banda quieta)
   ------------------------------------------------------------- */
.proverb { text-align: center; }
.proverb__mark { font-family: var(--serif); font-size: clamp(3rem,5vw,5rem); line-height: 0; color: var(--sage); display: block; height: .5em; }
.proverb blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.4rem);
  line-height: 1.28; color: var(--ink); max-width: 22ch; margin: 1.5rem auto 1.6rem;
  letter-spacing: -.01em;
}
.proverb cite {
  font-family: var(--sans); font-style: normal; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .26em; color: var(--ink-3);
}

/* -------------------------------------------------------------
   9. Blocco editoriale (immagine + testo alternati)
   ------------------------------------------------------------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.editorial--reverse .editorial__media { order: 2; }
.editorial__media { position: relative; }
.editorial__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.editorial__media.tall img { aspect-ratio: 3/4; }
.editorial__figtag {
  position: absolute; bottom: 1.1rem; left: 1.1rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-warm); background: rgba(30,24,18,.4);
  backdrop-filter: blur(3px); padding: .5rem .85rem; border-radius: 2px;
}
.editorial__head { margin-bottom: 1.8rem; display: flex; align-items: baseline; gap: 1.2rem; }
.editorial__body p { color: var(--ink-2); }
.editorial__body .h2 { margin: 1rem 0 1.6rem; }
.editorial__foot { margin-top: 2.2rem; }

.dropcap::first-letter {
  font-family: var(--serif); font-weight: 500;
  font-size: 3.6em; line-height: .72; float: left;
  padding: .1em .12em 0 0; color: var(--olive);
}

/* Doppia immagine impilata */
.stack-media { display: grid; gap: 1.2rem; }
.stack-media .offset { margin-top: clamp(1rem, 4vw, 3.5rem); }

/* -------------------------------------------------------------
   10. Prodotti (carta editoriale, niente card)
   ------------------------------------------------------------- */
.products { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.products__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.products__intro { margin-top: 1.4rem; color: var(--ink-2); max-width: 34ch; }
.products__origin { margin-top: 2.4rem; padding-left: 1.2rem; border-left: 1px solid var(--olive); }
.products__origin-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.products__origin-note { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.38; color: var(--ink-2); margin-top: .6rem; max-width: 24ch; }

.wine-list { border-top: 1px solid var(--line); }
.wine {
  display: grid; grid-template-columns: 2.4rem 1fr; align-items: start;
  gap: 0 1.5rem; padding: clamp(1.8rem, 3.2vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-2);
}
.wine:hover { padding-left: .7rem; }
.wine__num { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--sage); }
.wine--rosso  .wine__num { color: var(--bordeaux); }
.wine--bianco .wine__num { color: #b0863b; }
.wine--dolce  .wine__num { color: #9a6b2f; }
.wine--olio   .wine__num { color: var(--olive); }
.wine__body { min-width: 0; }
.wine__name { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 500; color: var(--ink); line-height: 1.06; letter-spacing: -.01em; }
.wine__cat { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: .7rem; }
.wine__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; color: var(--ink-2); margin-top: .9rem; max-width: 48ch; }

.products__coda {
  margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 2.2rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); line-height: 1.25; color: var(--ink);
  max-width: 30ch;
}

/* -------------------------------------------------------------
   11. Appartamenti
   ------------------------------------------------------------- */
.apt { padding-block: clamp(3rem, 5vw, 5.5rem); border-bottom: 1px solid var(--line); }
.apt:last-child { border-bottom: 0; }
.apt__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.apt--reverse .apt__gallery { order: 2; }

.apt__gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; height: clamp(22rem, 42vw, 34rem); }
.apt__gallery .g-main { grid-row: 1 / 3; }
.apt__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; cursor: pointer; transition: filter .5s var(--ease); }
.apt__gallery button { position: relative; overflow: hidden; border-radius: 2px; }
.apt__gallery button:hover img { filter: brightness(1.06); }
.apt__gallery .g-more { position: relative; }
.apt__gallery .g-more::after {
  content: attr(data-more); position: absolute; inset: 0;
  display: grid; place-items: center; background: rgba(30,24,18,.5);
  color: var(--paper-warm); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background .4s var(--ease);
}
.apt__gallery .g-more:hover::after { background: rgba(30,24,18,.62); }

.apt__name { display: flex; align-items: baseline; gap: 1rem; }
.apt__price { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--olive); margin-top: 1rem; }
.apt__price b { font-style: normal; font-weight: 500; }
.apt__desc { margin-top: 1.2rem; color: var(--ink-2); max-width: 42ch; }
.apt__specs { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.apt__specs li { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: .6rem; }
.apt__specs li::before { content: ""; width: .32rem; height: .32rem; background: var(--sage); border-radius: 50%; }
.apt__foot { margin-top: 2rem; }

/* -------------------------------------------------------------
   12. Ospitalità — full bleed
   ------------------------------------------------------------- */
.fullbleed { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; }
.fullbleed__media { position: absolute; inset: 0; z-index: -1; }
.fullbleed__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.fullbleed__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,12,.7), rgba(20,16,12,.05) 60%); }
.fullbleed__content { color: var(--paper-warm); padding-block: clamp(3rem, 6vw, 6rem); }
.fullbleed__content .h2 { color: var(--paper-warm); max-width: 18ch; }
.fullbleed__content p { color: rgba(245,239,228,.9); max-width: 46ch; margin-top: 1.4rem; }

.ospitalita__extra { margin-top: var(--section-y); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.ospitalita__extra img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: 2px; }

/* -------------------------------------------------------------
   13. Territorio / Esperienze
   ------------------------------------------------------------- */
.territory { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,6rem); align-items: start; }
.territory__media { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.territory__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.places { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.place {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.place__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.place__dist { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* -------------------------------------------------------------
   14. Gallery
   ------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 12.5rem;
  gap: .9rem;
}
.gallery-grid button { position: relative; overflow: hidden; border-radius: 2px; height: 100%; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-2), filter .5s var(--ease); }
.gallery-grid button::after {
  content: ""; position: absolute; inset: 0; background: rgba(30,24,18,0); transition: background .5s var(--ease);
}
.gallery-grid button:hover img { transform: scale(1.05); }
.gallery-grid button:hover::after { background: rgba(30,24,18,.12); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* -------------------------------------------------------------
   15. Contatti + Form
   ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 6rem); }
.contact__info .h3 { margin: 1.2rem 0 2rem; }
.contact__block { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact__block:last-of-type { border-bottom: 1px solid var(--line); }
.contact__label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.contact__value { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.35; }
.contact__value a { transition: color .35s var(--ease); }
.contact__value a:hover { color: var(--olive); }

/* Form */
.form { }
.form__set { border: 0; padding: 0; margin: 0 0 2.4rem; }
.form__legend {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .9rem; width: 100%;
}
.form__legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.4rem; align-items: start; }
.form__row.one { grid-template-columns: 1fr; }
.form__row.stay { grid-template-columns: repeat(3, 1fr); }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .5rem;
}
.field label .req { color: var(--wood); }
.field input[type=text],
.field input[type=email],
.field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: .65rem 0; font-size: 1rem; color: var(--ink);
  transition: border-color .4s var(--ease);
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .55; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--olive); }
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.6; }
.field.invalid input, .field.invalid textarea, .field.invalid .picker__trigger, .field.invalid .stepper { border-bottom-color: var(--wood); }
.field__err { font-size: .72rem; color: var(--wood); margin-top: .4rem; min-height: 1rem; opacity: 0; transform: translateY(-2px); transition: opacity .3s, transform .3s; }
.field.invalid .field__err { opacity: 1; transform: none; }

/* Stepper custom (Persone) */
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding: .25rem 0; gap: 1rem; min-height: 3.15rem;
  transition: border-color .4s var(--ease);
}
.stepper:focus-within { border-bottom-color: var(--olive); }
.stepper__btn { width: 2.1rem; height: 2.1rem; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.stepper__btn:hover { background: var(--olive); color: var(--paper-warm); border-color: var(--olive); }
.stepper__btn svg { width: .8rem; height: .8rem; }
.stepper__val { font-family: var(--serif); font-size: 1.35rem; display: inline-flex; align-items: baseline; justify-content: center; gap: .4rem; white-space: nowrap; }
.stepper__val small { font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Date picker custom (HUD) */
.picker { position: relative; }
.picker__trigger {
  width: 100%; min-width: 0; text-align: left; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: .5rem 0; min-height: 3.15rem; font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  transition: border-color .4s var(--ease); position: relative;
}
.picker__trigger [data-picker-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__trigger:focus { outline: none; border-bottom-color: var(--olive); }
.picker__trigger.is-empty { color: var(--ink-3); }
.picker__trigger .cal-ico { width: 1rem; height: 1rem; color: var(--ink-3); flex: none; }

.calendar {
  position: absolute; z-index: 60; top: calc(100% + .6rem); left: 0;
  width: min(21rem, 88vw);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px -20px rgba(42,38,32,.4);
  border-radius: 3px; padding: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(-.5rem) scale(.98);
  transform-origin: top left;
  transition: opacity .35s var(--ease), transform .35s var(--ease-2), visibility .35s;
}
.calendar.open { opacity: 1; visibility: visible; transform: none; }
/* La Partenza è l'ultima colonna: apri il calendario verso sinistra per non uscire dallo schermo */
[data-picker="partenza"] .calendar { left: auto; right: 0; transform-origin: top right; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar__title { font-family: var(--serif); font-size: 1.25rem; text-transform: capitalize; }
.calendar__nav { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; transition: background .35s var(--ease); }
.calendar__nav:hover { background: var(--paper-3); }
.calendar__nav svg { width: .85rem; height: .85rem; }
.calendar__nav[disabled] { opacity: .3; pointer-events: none; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15rem; }
.calendar__dow { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: .3rem 0 .5rem; }
.calendar__day {
  aspect-ratio: 1; display: grid; place-items: center; font-size: .85rem;
  border-radius: 50%; color: var(--ink); position: relative;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.calendar__day:hover:not([disabled]) { background: var(--paper-3); }
.calendar__day[disabled] { color: var(--line); pointer-events: none; }
.calendar__day.is-selected { background: var(--olive); color: var(--paper-warm); }
.calendar__day.is-today { font-weight: 500; }
.calendar__day.is-today::after { content:""; position:absolute; bottom:.35rem; width:.28rem; height:.28rem; border-radius:50%; background: var(--sage); }
.calendar__day.is-selected.is-today::after { background: var(--paper-warm); }

.acceptance { display: flex; flex-direction: row; gap: .9rem; align-items: flex-start; margin: 1rem 0 2rem; cursor: pointer; position: relative; }
.acceptance input { position: absolute; opacity: 0; width: 0; height: 0; }
.acceptance .box {
  flex: none; width: 1.25rem; height: 1.25rem; border: 1px solid var(--line);
  border-radius: 2px; display: grid; place-items: center; margin-top: .15rem;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.acceptance .box svg { width: .8rem; height: .8rem; color: var(--paper-warm); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease-2); }
.acceptance input:checked + .box { background: var(--olive); border-color: var(--olive); }
.acceptance input:checked + .box svg { opacity: 1; transform: none; }
.acceptance input:focus-visible + .box { outline: 2px solid var(--olive); outline-offset: 2px; }
.acceptance span.txt { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.field.invalid.acceptance-field .box { border-color: var(--wood); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.form__note { font-size: .74rem; color: var(--ink-3); max-width: 30ch; line-height: 1.5; }

.form__success {
  display: none; text-align: center; padding: 3rem 1rem;
}
.form__success.show { display: block; animation: fadeUp .7s var(--ease-2); }
.form__success .h3 { margin-bottom: 1rem; }
.form__success p { color: var(--ink-2); max-width: 36ch; margin-inline: auto; }
.form__success .mark { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--olive); display: grid; place-items: center; margin: 0 auto 1.6rem; color: var(--olive); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(1.5rem); } }

/* -------------------------------------------------------------
   16. CTA finale
   ------------------------------------------------------------- */
.cta-final { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; overflow: hidden; text-align: center; color: var(--paper-warm); }
.cta-final__media { position: absolute; inset: 0; z-index: -1; }
.cta-final__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cta-final__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,12,.5); }
.cta-final__inner { width: 100%; }
.cta-final .h2 { color: var(--paper-warm); max-width: 20ch; margin-inline: auto; }
.cta-final__sub { margin: 1.6rem auto 2.6rem; max-width: 42ch; color: rgba(245,239,228,.9); font-size: var(--fs-lead); font-weight: 300; }

/* -------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------- */
.footer { background: var(--bordeaux); color: var(--paper-warm); padding-block: clamp(3.5rem, 5vw, 5.5rem) 2.2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer__logo img { height: 2.2rem; margin-bottom: 1.5rem; }
.footer__tag { color: rgba(245,239,228,.6); max-width: 30ch; font-size: .92rem; font-weight: 300; }
.footer__col h5 { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,239,228,.5); margin-bottom: 1.2rem; }
.footer__col p, .footer__col a { color: rgba(245,239,228,.85); font-size: .95rem; font-weight: 300; line-height: 1.8; display: block; }
.footer__col a { transition: color .35s var(--ease); }
.footer__col a:hover { color: var(--sage); }
.footer__nav a { color: rgba(245,239,228,.85); font-size: .95rem; font-weight: 300; line-height: 2; transition: color .35s var(--ease); }
.footer__nav a:hover { color: var(--sage); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; }
.footer__bottom p, .footer__bottom a { font-size: .74rem; color: rgba(245,239,228,.5); letter-spacing: .04em; }
.footer__bottom a:hover { color: var(--sage); }
.footer__credit { display: flex; gap: 1.4rem; }

/* -------------------------------------------------------------
   18. Lightbox
   ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(18,14,10,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lbin .55s var(--ease-2); }
@keyframes lbin { from { opacity: 0; transform: scale(.96); } }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(245,239,228,.08); border: 1px solid var(--line-light);
  color: var(--paper-warm); width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center; transition: background .35s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(245,239,228,.2); }
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__nav.prev { left: clamp(1rem,3vw,2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: clamp(1rem,3vw,2rem); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%; transform: translateX(-50%); font-size: .78rem; letter-spacing: .18em; color: rgba(245,239,228,.7); }
.lightbox__nav svg, .lightbox__close svg { width: 1.1rem; height: 1.1rem; }

/* -------------------------------------------------------------
   19. Mobile navigation drawer
   ------------------------------------------------------------- */
.nav__drawer {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--paper-warm);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  transition: clip-path .7s var(--ease-2);
  pointer-events: none;
}
body.menu-open .nav__drawer { clip-path: circle(150% at calc(100% - 3rem) 3rem); pointer-events: auto; }
.nav__drawer ul { display: flex; flex-direction: column; gap: .3rem; }
.nav__drawer a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); color: var(--ink);
  display: inline-block; padding: .3rem 0; opacity: 0; transform: translateY(1rem);
}
body.menu-open .nav__drawer a { animation: drawerItem .6s var(--ease-2) forwards; }
.nav__drawer li:nth-child(1) a { animation-delay: .15s; }
.nav__drawer li:nth-child(2) a { animation-delay: .22s; }
.nav__drawer li:nth-child(3) a { animation-delay: .29s; }
.nav__drawer li:nth-child(4) a { animation-delay: .36s; }
.nav__drawer li:nth-child(5) a { animation-delay: .43s; }
.nav__drawer li:nth-child(6) a { animation-delay: .5s; }
@keyframes drawerItem { to { opacity: 1; transform: none; } }
.nav__drawer .drawer__contacts { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); opacity: 0; }
body.menu-open .nav__drawer .drawer__contacts { animation: drawerItem .6s var(--ease-2) .58s forwards; }
.nav__drawer .drawer__contacts a { font-family: var(--sans); font-size: 1rem; letter-spacing: .04em; color: var(--ink-2); display: block; line-height: 2; }

/* -------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products { grid-template-columns: 1fr; }
  .products__aside { position: static; }
  .products__img { max-width: 26rem; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 4.6rem; }
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .editorial, .apt__grid, .territory, .ospitalita__extra, .footer__top { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media, .apt--reverse .apt__gallery { order: 0; }
  .editorial__media img, .editorial__media.tall img { aspect-ratio: 4/3; }
  .editorial { gap: 2.5rem; }
  .apt__grid { gap: 2rem; }
  .apt__gallery { height: clamp(18rem, 60vw, 26rem); }

  .footer__top { gap: 2.2rem; padding-bottom: 2.4rem; }
  .footer__logo { grid-column: 1 / -1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
  .gallery-grid .wide { grid-column: span 2; }
  .gallery-grid .tall { grid-row: span 2; }

  .form__row { grid-template-columns: 1fr; }
  .form__row.stay { grid-template-columns: 1fr; }

  .hero { align-items: flex-end; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .form__row.stay { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 14rem; }
  .gallery-grid .wide, .gallery-grid .tall { grid-column: auto; grid-row: auto; }
  .wine { grid-template-columns: auto 1fr; column-gap: 1rem; }
  .place { flex-direction: column; gap: .2rem; }
}

/* Rotazione telefono (landscape, poca altezza) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__inner { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 1.5rem; }
  .hero__title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero__sub { display: none; }
  .hero__scroll { display: none; }
  .fullbleed, .cta-final { min-height: 118vh; }
  .calendar { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.98); max-height: 88vh; overflow: auto; }
  .calendar.open { transform: translate(-50%,-50%); }
}

/* Accessibilità: riduzione movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-grow { transform: none; }
  .hero__scroll .bar::after { display: none; }
}
