/* ============================================================
   PIETRAVIVA — Cantina d'Ossola
   Design system + layout
   ============================================================ */

/* ============================================================
   0. FONT DI MARCA
   Due woff2 variabili self-hosted in assets/fonts/:
     • Fraunces      → titoli (var(--serif))
     • InterVariable → testo e interfaccia (var(--sans))

   font-display: swap — il testo resta leggibile con il fallback di sistema
   mentre il font scarica, invece di restare invisibile.
   unicode-range copre latin + latin-ext: serve la "ü" di Prünent.

   Se un giorno questi file venissero rimossi, vanno tolti anche questi due
   blocchi E i <link rel="preload"> negli head: un @font-face che punta a un
   file assente fa scaricare (e fallire) la richiesta a ogni caricamento.
   ============================================================ */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces.woff2') format('woff2-variations'),
       url('../fonts/Fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20BF, U+2122;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/InterVariable.woff2') format('woff2-variations'),
       url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20A0-20BF, U+2122;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* colori */
  --ink:        #16110f;
  --ink-soft:   #2a211d;
  --granite:    #63676a; /* scurito da #6d716f: 4.47:1 su --cream non bastava per WCAG AA (4.5:1); ora 5.16:1 */
  --granite-lt: #a9adaa;
  --cream:      #f7f3ec;
  --cream-2:    #efe8dc;
  --paper:      #ffffff;
  --wine:       #7b1e2b;
  --wine-deep:  #4d1119;
  --wine-lt:    #a33648;
  --gold:       #c8a24a;
  --gold-lt:    #e2c887;
  --moss:       #4a5b45;
  --ok:         #2f6b46;
  --err:        #b02a2a;

  --bg:         var(--cream);
  --fg:         var(--ink);
  --line:       rgba(22, 17, 15, .14);
  --line-soft:  rgba(22, 17, 15, .08);

  /* tipografia — i font di marca in testa, stack di sistema come fallback */
  --serif: 'Fraunces', "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  'InterVar', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* transizione unica di marca */
  --ease: cubic-bezier(.2, .8, .25, 1);
  --dur:  280ms;

  /* spazi */
  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4.5rem; --sp-9: 7rem;

  --radius:    2px;
  --radius-lg: 4px;
  --shadow-1:  0 1px 2px rgba(22,17,15,.05), 0 8px 24px -12px rgba(22,17,15,.12);
  --shadow-2:  0 24px 60px -20px rgba(22,17,15,.18);

  --maxw: 1240px;
  --header-h: 74px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.14; margin: 0 0 .5em; letter-spacing: -.01em; }
/* ---- Gestione a-capo e sillabazione ----
   Niente sillabazione automatica: il dizionario italiano spezzava parole
   correnti a fine riga ("Domo-dossola", "sostenibi-lità", "mu-retti",
   "tem-po"), che su un sito di questo tono legge male.
   overflow-wrap: break-word resta come UNICA rete di sicurezza per i composti
   tedeschi ("Temperaturschwankungen"), che altrimenti sfondano il box sugli
   schermi stretti generando scroll orizzontale: non inserisce trattini e non
   entra mai in gioco per una parola che nella riga ci sta. */
h1, h2, h3, h4, p, li, dd, dt, blockquote, figcaption, summary, label, td, th,
.lead, .tl2-desc, .wine-card__name, .exp__title, .btn, .eyebrow {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
/* l'allineamento resta a sinistra (mai giustificato): specificità di solo
   elemento, così le utility .center/.center-line continuano a vincere */
h1, h2, h3, h4, p, li, dd, dt { text-align: left; }

/* titoli: righe visivamente equilibrate, senza parole orfane in fondo */
h1, h2, h3, h4, .hero-title, .section-title, .hero__sub, .lead, .manifesto__quote {
  text-wrap: balance;
}
/* testo corrente: evita la riga finale con una parola sola */
p, li, dd, figcaption, .tl2-desc, .section-description, .page-intro {
  text-wrap: pretty;
}

/* URL, e-mail e stringhe tecniche lunghe: unica eccezione in cui la divisione
   è ammessa, e solo quando la stringa non entra davvero nella riga */
a[href^="mailto:"], a[href^="tel:"], code, kbd, samp, .break-long {
  overflow-wrap: anywhere;
}

/* .no-hyphens è ora ridondante (la sillabazione è disattivata ovunque): la
   classe resta definita perché è presente nelle stringhe i18n IT/DE/EN. */
.no-hyphens { hyphens: none; -webkit-hyphens: none; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
::selection { background: var(--gold-lt); color: var(--ink); }
/* oro e non bordeaux: sulle sezioni con fondo --ink l'anello vinaccia era invisibile */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- 3. Utility ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--cream-2); }

/* grana carta al 3% sulle sezioni crema: dà materia senza sporcare il testo */
.section--stone, .hero__panel, body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

/* ---- trust strip: le quattro rassicurazioni, ripetute nei punti di decisione ---- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  border-block: 1px solid var(--line); padding: var(--sp-4) 0;
}
.trust__item { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--ink-soft); }
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--wine); }
.section--dark .trust { border-color: rgba(247,243,236,.18); }
.section--dark .trust__item { color: rgba(247,243,236,.82); }
.section--dark .trust__item svg { color: var(--gold); }
.trust--stack { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .trust__item { font-size: .78rem; }
}
.center { text-align: center; }
.muted { color: var(--granite); }
.section--dark .muted { color: rgba(247,243,236,.62); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.flex { display: flex; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- utility di layout (sostituiscono gli style="" inline, che non potevano
   essere sovrascritti dai media query — vedi A2) ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.measure { max-width: 640px; }
.measure-sm { max-width: 620px; }
.measure-lg { max-width: 720px; }
.center-block { margin-inline: auto; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); }
.row-between {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-6); flex-wrap: wrap;
}
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.field-row { display: flex; gap: .5rem; }
.field-row > input { flex: 1; min-width: 0; }
.select--block { width: 100%; }
.prose { max-width: 70ch; }
.guarantees--narrow { max-width: 520px; }
.exp-teaser-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(247,243,236,.14);
}
.co-line { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.co-line__art { width: 38px; flex: none; }
.co-line__txt { flex: 1; font-size: .86rem; min-width: 0; }
.co-line__price { font-family: var(--serif); }
.sort-label { display: flex; align-items: center; gap: .6rem; }
.agecheck__note { display: block; margin-top: .5rem; }
.co-step__title { margin: 0; font-size: 1.15rem; font-family: var(--serif); font-weight: 400; }
.cal-legend { display: flex; gap: 1.2rem; margin-top: .6rem; font-size: .76rem; flex-wrap: wrap; }
.cal-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i { width: 12px; height: 12px; display: inline-block; }
.cal-legend__free { background: rgba(74,91,69,.35); }
.cal-legend__busy { background: rgba(109,113,111,.2); }
/* la voce "Area riservata" vive nella barra su desktop e nel menu su mobile */
.nav-account { display: none; }
@media (max-width: 900px) { .nav-account { display: block; } }
.ok-mark {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(47,107,70,.12);
  color: var(--ok); display: grid; place-items: center; margin: 0 auto var(--sp-5);
}
.done-box { max-width: 640px; margin: 0 auto; padding: var(--sp-7) 0; }
@media (max-width: 900px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 480px) {
  /* in tedesco le etichette sono lunghe: su schermi stretti il campo va sotto */
  .field-row { flex-wrap: wrap; }
  .field-row > .btn { width: 100%; }
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;   /* 11.5 → 12.5px */
  color: var(--wine); font-weight: 600; margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.center-line { justify-content: center; }
.section--dark .eyebrow { color: var(--gold); }
/* C1 — su fondo scuro il bordeaux dava 1.96:1 (serve 4.5:1). .hero e .pagehead
   non hanno la classe .section--dark, quindi non erano coperti dalla regola. */
.hero .eyebrow, .pagehead .eyebrow { color: var(--gold-lt); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.section--dark .lead { color: rgba(247,243,236,.8); }

/* Firma grafica: il profilo spezzato dei muretti a secco al posto del filetto
   dritto. È l'elemento ricorrente che rende riconoscibile il marchio. */
.rule-gold {
  width: 88px; height: 14px; border: 0; margin: var(--sp-4) 0; background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 14' fill='none' stroke='%23c8a24a' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M0 11h18l4-4h16l4-4h18l4 4h16l4 4h4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 88px 14px;
}
.center .rule-gold, .rule-gold.is-center { margin-inline: auto; }
/* divisore a tutta larghezza tra le sezioni */
.wall-divider {
  height: 18px; border: 0; margin: 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 18' fill='none' stroke='%23c8a24a' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M0 14h36l8-5h32l8-5h36l8 5h32l8 5h8'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center; background-size: 176px 18px;
}

/* ---------- 4. Bottoni ---------- */
.btn {
  --btn-bg: var(--wine); --btn-fg: #fff; --btn-bd: var(--wine);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem; min-height: 46px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.btn:hover { --btn-bg: var(--wine-deep); --btn-bd: var(--wine-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(22,17,15,.35); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: rgba(247,243,236,.45); }
.btn--light:hover { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-lt); --btn-bd: var(--gold-lt); }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1.05rem; min-height: 38px; font-size: .72rem; }
.btn--lg { padding: 1.05rem 2.2rem; min-height: 54px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Badge / pill ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .62rem; border-radius: 999px;
  font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; /* 9.6 → 11px */
  background: rgba(123,30,43,.1); color: var(--wine);
}
.badge--gold { background: rgba(200,162,74,.2); color: #7a611f; }
.badge--moss { background: rgba(74,91,69,.14); color: var(--moss); }
.badge--stock { background: rgba(47,107,70,.12); color: var(--ok); }
.badge--out { background: rgba(109,113,111,.16); color: var(--granite); }
/* "Ultime unità" è una leva di urgenza: non può avere lo stesso grigio spento
   di "Esaurito", che invece è una notizia negativa. */
.badge--urgent { background: rgba(123,30,43,.10); color: var(--wine); }
.badge--award { background: rgba(200,162,74,.18); color: #6f5613; }

/* ============================================================
   6. HEADER
   ============================================================ */
.topbar {
  background: var(--ink); color: rgba(247,243,236,.78);
  font-size: .74rem; letter-spacing: .06em;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 38px; }
.topbar__tools { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

/* ---- ticker scorrevole (testo → icona) ---- */
.ticker { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .6rem; }
.ticker__viewport {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__track {
  display: flex; width: max-content; will-change: transform;
  animation: pv-ticker 34s linear infinite;
}
/* WCAG 2.2.2: controllo esplicito e raggiungibile da tastiera, non solo hover */
.ticker__toggle {
  flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center;
  border-radius: 50%; color: rgba(247,243,236,.78); border: 1px solid rgba(247,243,236,.3);
}
.ticker__toggle:hover, .ticker__toggle:focus-visible { color: var(--gold); border-color: var(--gold); }
.ticker__toggle svg { width: 12px; height: 12px; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .55rem;
  padding-right: 1.6rem; margin-right: 1.6rem; white-space: nowrap;
  border-right: 1px solid rgba(247,243,236,.18);
}
.ticker__item strong { color: var(--gold); font-weight: 600; }
.ticker__item svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
@keyframes pv-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.langsel { position: relative; }
.langsel__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  color: inherit; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem 0;
}
.langsel__btn:hover { color: var(--gold); }
.langsel__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--paper); color: var(--ink); min-width: 140px;
  border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: .35rem;
}
.langsel__list[hidden] { display: none; }
.langsel__list button {
  display: flex; width: 100%; align-items: center; gap: .5rem;
  padding: .5rem .6rem; font-size: .8rem; letter-spacing: .04em; text-align: left;
}
.langsel__list button:hover { background: var(--cream-2); }
.langsel__list button[aria-current="true"] { color: var(--wine); font-weight: 700; }

/* A1 — Lo sticky deve stare sul CONTENITORE, non su .header: #site-header è alto
   ~103px e un figlio sticky può scorrere al massimo dentro il padre, quindi
   l'header spariva dopo pochi pixel. Sticky qui = topbar + header restano in alto.
   Nota: .header ha backdrop-filter, che crea un containing block per i
   discendenti position:fixed — per questo la .nav mobile è absolute su questo
   contenitore (vedi media query) e non fixed sul viewport. */
#site-header { position: sticky; top: 0; z-index: 50; }
.header {
  background: rgba(247,243,236,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__txt { line-height: 1.05; }
.logo__name { font-family: var(--serif); font-size: 1.34rem; letter-spacing: .04em; display: block; }
.logo__sub { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--granite); }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  padding: .5rem 0; position: relative; color: var(--ink-soft);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--wine); transition: right .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--wine); }

/* "La Cantina" + sottomenu: il toggle e le sotto-voci esistono solo in mobile */
.nav-item--sub { display: contents; }
.nav-sub-toggle, .nav-sub { display: none; }

.header__tools { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 50%; position: relative; color: var(--ink-soft); transition: background .2s;
}
.icon-btn:hover { background: rgba(22,17,15,.06); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--wine); color: #fff; border-radius: 999px;
  font-size: .64rem; font-weight: 700; display: grid; place-items: center;
}
.cart-total { font-size: .78rem; font-weight: 600; margin-left: .1rem; }
.burger { display: none; }

/* ricerca overlay */
.searchbar {
  border-bottom: 1px solid var(--line-soft); background: var(--paper);
}
.searchbar[hidden] { display: none; }
.searchbar form { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4) 0; flex-wrap: wrap; }
.searchbar input {
  flex: 1 1 12rem; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  font-family: var(--serif); font-size: 1.4rem; padding: .4rem 0;
}
.searchbar input:focus { outline: 0; border-bottom-color: var(--wine); }
/* B3 — l'icona lente era renderizzata 0×0: nessuna regola le dava dimensioni */
.searchbar form > svg { width: 20px; height: 20px; flex: none; color: var(--granite); }
@media (max-width: 640px) {
  /* la riga chiedeva 461px in 343px: input sopra, pulsanti sotto */
  .searchbar input { flex: 1 0 100%; order: -1; }
  .searchbar form > svg { display: none; }
  .searchbar form .btn { flex: 1; }
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; }
.hero__art { position: absolute; inset: 0; }
.hero__art svg, .hero__art img, .hero__art video { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,8,7,.86) 0%, rgba(10,8,7,.55) 48%, rgba(10,8,7,.15) 100%),
    linear-gradient(to top, rgba(10,8,7,.7), transparent 55%);
}
.hero__in { position: relative; padding: clamp(4.5rem, 13vh, 9rem) 0 clamp(3.5rem, 9vh, 6rem); }
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero__sub { font-size: 1.1rem; color: rgba(247,243,236,.82); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); align-items: center; }

/* badge del riconoscimento più forte, sopra il titolo */
.hero__award {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  border: 1px solid var(--gold); color: var(--cream);
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: var(--sp-4);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.hero__award svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* CTA secondaria come link testuale sottolineato oro */
.hero__link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-lt);
  font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.hero__link:hover { color: #fff; border-bottom-color: #fff; }

/* i quattro numeri: striscia orizzontale con snap, non una griglia da 243px */
.hero__facts {
  display: flex; gap: var(--sp-6); margin-top: var(--sp-6);
  padding-top: var(--sp-4); border-top: 1px solid rgba(247,243,236,.18);
}
.fact__n { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-lt); display: block; line-height: 1; }
.fact__l { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.72); }

@media (max-width: 1079px) {
  /* l'hero non deve superare la piega: CTA primaria sempre visibile */
  .hero__in { padding: var(--sp-6) 0 var(--sp-5); min-height: min(88svh, 720px); display: flex; flex-direction: column; justify-content: center; }
  .hero__content { display: flex; flex-direction: column; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .hero__cta .btn { width: 100%; }
  .hero__link { justify-content: center; align-self: center; }
  .hero__facts {
    gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x proximity;
    max-height: 56px; padding-bottom: 2px; scrollbar-width: none;
    margin-top: var(--sp-5);
  }
  .hero__facts::-webkit-scrollbar { display: none; }
  .hero__facts .fact { flex: none; scroll-snap-align: start; display: flex; align-items: baseline; gap: .4rem; }
  .fact__n { font-size: 1.25rem; display: inline; }
  .fact__l { font-size: .7rem; letter-spacing: .1em; white-space: nowrap; }
}

/* Desktop: split 40/60 — il testo su fondo crema risolve il contrasto per
   costruzione, senza dipendere dallo scrim sull'immagine. */
@media (min-width: 1080px) {
  .hero { display: grid; grid-template-columns: 40% 60%; min-height: 620px; background: var(--cream); }
  .hero__panel {
    grid-column: 1; grid-row: 1; background: var(--cream); color: var(--ink);
    display: flex; align-items: center; padding: var(--sp-8) var(--sp-7);
  }
  .hero__art { grid-column: 2; grid-row: 1; position: relative; inset: auto; }
  .hero__scrim { display: none; }
  .hero__in { padding: 0; width: 100%; }
  .hero__content { max-width: 30rem; }
  .hero h1 { color: var(--ink); text-shadow: none; }
  .hero h1 em { color: var(--wine); }
  .hero__sub { color: var(--ink-soft); }
  .hero__award { color: var(--ink-soft); border-color: var(--gold); }
  .hero__link { color: var(--wine); }
  .hero__link:hover { color: var(--ink); border-bottom-color: var(--ink); }
  .hero__facts { border-top-color: var(--line); }
  .fact__n { color: var(--wine); }
  .fact__l { color: var(--granite); }
}

/* page hero (interne) */
.pagehead { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
/* opacity:.5 è tarata sull'illustrazione SVG astratta delle altre pagine
   interne: una fotografia vera va invece a piena opacità con un velo scuro
   sopra, altrimenti risulta slavata. :has() isola le due modalità senza
   toccare le pagine che non hanno ancora una foto. */
.pagehead__art { position: absolute; inset: 0; opacity: .5; }
.pagehead__art:has(img) { opacity: 1; }
.pagehead__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pagehead__art:has(img)::after {
  content: ""; position: absolute; inset: 0; background: rgba(10,8,7,.62);
}
.pagehead__in { position: relative; padding: var(--sp-8) 0 var(--sp-7); max-width: 720px; }
.pagehead h1 { color: #fff; }
/* il sottotitolo eredita lo stesso bianco del titolo: la regola generica .lead
   usa --ink-soft (scuro), illeggibile sul fondo --ink del pagehead */
.pagehead .lead { color: #fff; }
.breadcrumb { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,236,.55); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .45rem; }

/* ============================================================
   8. CARD VINO
   ============================================================ */
.wine-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* shop: griglia più fitta, più bottiglie visibili per riga */
#results.wine-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: var(--sp-4); }

.wine-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; position: relative;
  /* min-width:0 — senza, la denominazione in nowrap qualche riga più sotto
     impone la propria larghezza intera (es. "VALLI OSSOLANE DOC NEBBIOLO
     SUPERIORE") come minimo a questa card, alla sua colonna nella griglia
     #results e a sua volta al layout .shop: su mobile l'intera pagina andava
     in overflow orizzontale invece di lasciar lavorare l'ellissi. */
  min-width: 0;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.wine-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--line); }

/* badge sotto il titolo: mai sopra l'illustrazione della bottiglia */
.wine-card__flags {
  display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
  min-height: 1.4rem; margin-bottom: .1rem;
}
.wine-card__flags .badge { font-size: .6rem; padding: .22rem .5rem; }

.wine-card__media {
  position: relative; aspect-ratio: 3/4; display: grid; place-items: center; padding: var(--sp-5);
  background: linear-gradient(170deg, #fbf8f2, #ece5d8);
  overflow: hidden;
}
.wine-card__media svg { height: 100%; width: auto; transition: transform .4s ease; filter: drop-shadow(0 12px 18px rgba(22,17,15,.18)); }
.wine-card:hover .wine-card__media svg { transform: translateY(-6px) scale(1.03); }

/* ---- fotografie di prodotto ----
   Sono scatti d'ambiente (muro, tavolo), non ritagli su fondo neutro: riempiono
   il riquadro a tutta pagina. Le foto sono già 3:4 come il contenitore, quindi
   "cover" di fatto non taglia nulla. */
.bottle-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wine-card__media:has(.bottle-photo) { padding: 0; background: none; }
.wine-card__media .bottle-photo { transition: transform .5s ease; }
.wine-card:hover .wine-card__media .bottle-photo { transform: scale(1.04); }
.wine-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: .35rem; min-width: 0; }
/* La denominazione va a capo secondo la larghezza disponibile: con
   white-space:nowrap + ellipsis, a 320px ogni card mostrava solo
   "Valli Ossolane…" e le denominazioni diventavano indistinguibili.
   Il clamp a 4 righe non entra in gioco a nessuna delle larghezze reali
   (max 4 righe a 320px, 2 a 375-430, 1 da 768 in su): resta solo come
   guardia contro denominazioni anomale. */
.wine-card__deno {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--granite);
  max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
/* riga valutazione sotto il nome */
.wine-card__rating { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--granite); }
.stars { color: var(--gold); letter-spacing: .08em; font-size: .82rem; line-height: 1; }
.wine-card__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; margin: 0; }
.wine-card__name a:hover { color: var(--wine); }
.wine-card__meta { font-size: .8rem; color: var(--granite); }
.wine-card__foot {
  margin-top: auto; padding-top: var(--sp-4); display: flex; flex-direction: column;
  align-items: center; gap: .6rem;
}
.price { font-family: var(--serif); font-size: 1.25rem; }
.price__old { font-size: .85rem; color: var(--granite); text-decoration: line-through; margin-right: .4rem; }
.price__unit { font-size: .7rem; color: var(--granite); letter-spacing: .06em; }

/* prezzo: niente corsivo bordeaux (competeva col nome), peso deciso in inchiostro
   e il trattino oro come firma */
.wine-card__price {
  position: relative; width: 100%; text-align: center; padding-top: .65rem;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  letter-spacing: .01em; color: var(--ink); line-height: 1;
}
.wine-card__price::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 2px;
  background: var(--gold); transform: translateX(-50%);
}
.wine-card__price .price__old { font-size: .8rem; font-weight: 400; color: var(--granite); }

/* pulsante d'acquisto: etichetta esplicita a piena larghezza, non più un tondo
   da 40px con sola icona (sotto soglia tattile e ambiguo) */
.addcart {
  position: relative; width: 100%; min-height: 44px; border-radius: var(--radius);
  background: var(--wine); color: #fff; border: 1px solid var(--wine);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.addcart svg { width: 17px; height: 17px; flex: none; }
.addcart:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.addcart[disabled] {
  background: transparent; color: var(--granite);
  border-color: var(--line); cursor: not-allowed;
}
/* conferma in loco: il bottone stesso diventa una spunta per 1,2s */
.addcart.is-added { background: var(--ok); border-color: var(--ok); }
.addcart .addcart__done { display: none; align-items: center; gap: .5rem; }
.addcart.is-added .addcart__label { display: none; }
.addcart.is-added .addcart__done { display: inline-flex; }

/* pulsazione del contatore in header quando cambia il carrello */
@keyframes cart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-count.is-bumped { animation: cart-pop 420ms var(--ease); }

/* ============================================================
   9. SHOP: layout + filtri
   ============================================================ */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-7); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-4); }
.filters__head h2 { font-size: 1.05rem; margin: 0; }
.fgroup { border-top: 1px solid var(--line); padding: var(--sp-4) 0; }
.fgroup > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "+"; font-size: 1.1rem; color: var(--granite); font-weight: 400; }
.fgroup[open] > summary::after { content: "–"; }
.fgroup__body { padding-top: var(--sp-3); display: grid; gap: .45rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .88rem; cursor: pointer; color: var(--ink-soft); }
.check input { width: 16px; height: 16px; accent-color: var(--wine); flex: none; }
.check span.count { margin-left: auto; font-size: .74rem; color: var(--granite-lt); }
.check:hover { color: var(--wine); }

.shop__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.shop__count { font-size: .85rem; color: var(--granite); }
.select {
  border: 1px solid var(--line); background: var(--paper); padding: .55rem 2rem .55rem .8rem;
  font-size: .85rem; border-radius: var(--radius); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d716f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 11px;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp-4); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem;
  background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 999px; font-size: .76rem;
}
.chip button { color: var(--granite); font-size: 1rem; line-height: 1; }
.chip button:hover { color: var(--wine); }
.filters-toggle { display: none; }

/* ============================================================
   10. PRODOTTO
   ============================================================ */
/* min-width:0 sulle colonne, altrimenti il min-content delle miniature
   (4×78px + gap = 348px) allarga la griglia oltre il contenitore su schermi stretti */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.product > * { min-width: 0; }
.gallery__main {
  background: linear-gradient(170deg, #fbf8f2, #e8e0d1); aspect-ratio: 1/1;
  display: grid; place-items: center; padding: var(--sp-7); border: 1px solid var(--line-soft);
}
.gallery__main svg, .gallery__main img { max-height: 100%; width: auto; }
/* con la fotografia lo scatto riempie il riquadro, senza cornice né padding */
.gallery__main:has(.bottle-photo) { padding: 0; background: none; aspect-ratio: 3/4; }
.gallery__main .bottle-photo { max-height: none; }
.gallery__thumbs { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap; }
.gallery__thumbs button {
  width: 78px; height: 78px; border: 1px solid var(--line); background: var(--cream-2);
  display: grid; place-items: center; padding: 8px; overflow: hidden;
}
.gallery__thumbs button[aria-selected="true"] { border-color: var(--wine); }
.gallery__thumbs svg { height: 100%; width: auto; }
.gallery__thumbs button:has(.bottle-photo) { padding: 0; }

.pdp__deno { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.pdp h1 { margin: .3rem 0 .2rem; }
.pdp__vintage { font-family: var(--serif); font-size: 1.3rem; color: var(--granite); }
.pdp__price { display: flex; align-items: baseline; gap: .6rem; margin: var(--sp-4) 0; }
.pdp__price .price { font-size: 2rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: var(--sp-3); margin: var(--sp-5) 0; }
.spec { border-top: 1px solid var(--line); padding-top: .6rem; }
.spec__k { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); display: block; }
.spec__v { font-family: var(--serif); font-size: 1.05rem; }

.buybox { background: var(--paper); border: 1px solid var(--line); padding: var(--sp-5); margin: var(--sp-5) 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.qty button { width: 42px; height: 46px; font-size: 1.15rem; color: var(--granite); }
.qty button:hover { color: var(--wine); background: var(--cream-2); }
.qty input { width: 48px; height: 46px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buybox__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.buybox__row .btn { flex: 1; min-width: 180px; }
.bulk {
  display: flex; align-items: center; gap: .6rem; margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px dashed var(--line); font-size: .86rem; color: var(--ink-soft);
}
/* senza dimensioni esplicite l'SVG dell'icona si espandeva a tutta larghezza */
.bulk svg { width: 18px; height: 18px; flex: none; color: var(--wine); }
.guarantees { display: grid; gap: .7rem; margin-top: var(--sp-5); }
.guarantee { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); }
.guarantee svg { width: 18px; height: 18px; flex: none; color: var(--moss); margin-top: 3px; }

.tabs { border-top: 1px solid var(--line); margin-top: var(--sp-6); }
.tabs__nav { display: flex; gap: var(--sp-5); flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs__nav button {
  padding: var(--sp-4) 0; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--granite); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__nav button[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--wine); }
/* B10 — su mobile le 4 tab andavano su 3 righe (131px di altezza): scroller
   orizzontale con snap, così restano su una riga sola */
@media (max-width: 640px) {
  .tabs__nav {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    gap: var(--sp-4); -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* maschera sfumata ai bordi: segnala che la riga continua */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  }
  .tabs__nav::-webkit-scrollbar { display: none; }
  .tabs__nav button { flex: none; white-space: nowrap; scroll-snap-align: start; min-height: 44px; }
}

/* B10 — barra acquisto sempre raggiungibile su mobile: la buybox esce subito
   dallo schermo appena si scorre la scheda */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; gap: var(--sp-3);
    padding: .6rem var(--sp-4); padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(247,243,236,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(22,17,15,.1);
  }
  .buybar__price { font-family: var(--serif); font-size: 1.25rem; color: var(--wine); flex: none; }
  .buybar .btn { flex: 1; min-height: 48px; }
  body.has-buybar { padding-bottom: 76px; }
}
.tabs__panel { padding: var(--sp-5) 0; }
.tabs__panel[hidden] { display: none; }

.datasheet { width: 100%; border-collapse: collapse; }
.datasheet th, .datasheet td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: top; }
.datasheet th { width: 42%; font-weight: 600; color: var(--granite); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.tasting { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--sp-5); }
.tasting__item h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); font-family: var(--sans); font-weight: 700; }
.pairings { display: flex; flex-wrap: wrap; gap: .5rem; }
.pairing {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border: 1px solid var(--line); background: var(--paper); font-size: .85rem;
}

/* ============================================================
   11. ESPERIENZE / BOOKING
   ============================================================ */
.exp-list { display: grid; gap: var(--sp-6); }
.exp {
  display: grid; grid-template-columns: 320px 1fr auto; gap: var(--sp-6);
  background: var(--paper); border: 1px solid var(--line-soft); padding: var(--sp-5); align-items: center;
}
.exp__art { aspect-ratio: 4/3; background: var(--cream-2); overflow: hidden; }
.exp__art svg { width: 100%; height: 100%; }
.exp__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp__flags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.exp__title { margin: 0; }
.exp__tagline { margin: .4rem 0 0; }
.exp__inclTitle { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); }
.exp__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: .8rem; color: var(--granite); margin: var(--sp-3) 0; }
.exp__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.exp__meta svg { width: 15px; height: 15px; color: var(--wine); }
.exp__incl { display: grid; gap: .3rem; font-size: .88rem; color: var(--ink-soft); padding-left: 1.1rem; margin: 0 0 var(--sp-4); }
.exp__incl li::marker { color: var(--gold); }
.exp__buy { text-align: right; min-width: 190px; display: grid; gap: var(--sp-3); justify-items: end; }
.exp__price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.exp__price small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); margin-top: .35rem; }

.booking {
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
}
.booking__form { padding: var(--sp-6); }
/* pietra calda invece del nero pieno: il pannello resta un blocco distinto
   ma non schiaccia la pagina, e il pulsante oro risalta molto di più */
.booking__summary {
  background: var(--cream-2); color: var(--ink);
  border-left: 1px solid var(--line);
}
/* Il pannello è alto quanto il modulo (oltre 1500px) ma il riepilogo ne
   occupa 400: da nero non si notava, da chiaro restava un vuoto che sembrava
   un errore. Il contenuto scorre insieme alla pagina e resta sempre a vista
   insieme al pulsante di conferma. */
.booking__sticky { position: sticky; top: calc(var(--header-h) + 16px); padding: var(--sp-6); }
.booking__summary h3 { color: var(--ink); }
.booking__summary .form-note { color: var(--granite); }

/* ---- calendario compatto ----
   max-width 340px: con 7 colonne, i padding e i gap restano celle da ~44px,
   cioè la soglia tattile minima. Senza questo vincolo il calendario prendeva
   tutta la colonna (648px) con celle da 88px: enorme per due date libere. */
.cal { border: 1px solid var(--line); background: var(--paper); max-width: 340px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.cal__head strong { font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.cal__nav { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--granite); }
.cal__nav:hover:not([disabled]) { background: var(--cream-2); color: var(--wine); }
.cal__nav[disabled] { opacity: .3; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: .5rem; }
.cal__dow { text-align: center; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--granite-lt); padding: .25rem 0; }
.cal__day {
  aspect-ratio: 1/1; display: grid; place-items: center; font-size: .82rem;
  border: 1px solid transparent; border-radius: var(--radius); position: relative;
  color: var(--ink-soft); transition: background .15s, color .15s, border-color .15s;
}
/* i giorni chiusi non sono un errore: si smorzano, senza gridare */
.cal__day:disabled { color: var(--granite-lt); opacity: .45; cursor: default; }
.cal__day.is-open { background: rgba(74,91,69,.10); color: var(--ink); font-weight: 600; }
.cal__day.is-open:hover { background: rgba(123,30,43,.10); border-color: var(--wine); color: var(--wine); }
.cal__day.is-selected,
.cal__day.is-selected:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal__day.is-selected.is-today::after { background: #fff; }

/* ---- scorciatoie: prime date davvero disponibili ----
   Le date libere sono poche e sparse nel mese: offrirle in chiaro evita
   di farle cercare a mano nella griglia. */
.cal-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.cal-quick__btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  min-height: 44px; padding: .4rem .7rem;
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  line-height: 1.15; transition: border-color .15s, background .15s, color .15s;
}
.cal-quick__btn:hover { border-color: var(--wine); color: var(--wine); }
.cal-quick__btn[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.cal-quick__d { font-family: var(--serif); font-size: 1.05rem; }
.cal-quick__m { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cal-quick__lbl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--granite); align-self: center; margin-right: .2rem; }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  padding: .55rem .9rem; border: 1px solid var(--line); background: var(--paper);
  font-size: .85rem; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--wine); }
.slot[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }
.slot[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
/* colori tarati sul fondo chiaro: prima erano bianchi trasparenti, pensati
   per il pannello nero, e su pietra sarebbero risultati quasi invisibili */
.sum-line { display: flex; justify-content: space-between; gap: var(--sp-4); padding: .5rem 0; font-size: .92rem; border-bottom: 1px solid var(--line-soft); }
.sum-line span:first-child { color: var(--granite); }
.sum-line span:last-child { text-align: right; font-weight: 600; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.5rem;
}
.sum-total span:last-child { color: var(--wine); }

/* ---- passi numerati della prenotazione ---- */
.bk-step { border-top: 1px solid var(--line-soft); padding-top: var(--sp-5); margin-top: var(--sp-5); }
.bk-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.bk-step__h {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 var(--sp-4);
  font-family: var(--sans); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; color: var(--ink);
}
.bk-step__n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
  background: var(--cream-2); color: var(--granite); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.bk-step.is-done .bk-step__n { background: var(--ok); border-color: var(--ok); color: #fff; }
.bk-step.is-done .bk-step__n::before { content: "✓"; }
.bk-step.is-done .bk-step__n span { display: none; }

/* ============================================================
   12. FORM
   ============================================================ */
.field { display: grid; gap: .35rem; margin-bottom: var(--sp-4); }
.field > label, .label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--granite);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123,30,43,.09); }
.field .hint { font-size: .76rem; color: var(--granite); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--err); }
.field .err { font-size: .76rem; color: var(--err); }
.field .err[hidden] { display: none; }
.check.is-error span, .agecheck.is-error span { color: var(--err); }
.check .err, .agecheck .err { display: block; font-size: .76rem; color: var(--err); }
/* B7 — riepilogo errori annunciato dagli screen reader */
.form-errors {
  background: rgba(176,42,42,.08); border-left: 3px solid var(--err);
  color: var(--err); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
  font-size: .88rem;
}
.form-errors[hidden] { display: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-4); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
legend { padding: 0; }

.opt {
  display: flex; gap: .8rem; align-items: flex-start; padding: var(--sp-4);
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; margin-bottom: .6rem;
  transition: border-color .2s, background .2s;
}
.opt:hover { border-color: var(--granite); }
.opt:has(input:checked) { border-color: var(--wine); background: rgba(123,30,43,.03); box-shadow: inset 3px 0 0 var(--wine); }
.opt input { margin-top: 4px; accent-color: var(--wine); width: 17px; height: 17px; flex: none; }
.opt__body { flex: 1; }
.opt__title { display: flex; justify-content: space-between; gap: var(--sp-4); font-weight: 600; }
.opt__desc { font-size: .84rem; color: var(--granite); }

.newsletter { display: flex; gap: var(--sp-3); flex-wrap: wrap; max-width: 520px; }
.newsletter input {
  flex: 1; min-width: 220px; min-height: 52px; padding: .9rem 1rem;
  border: 1px solid rgba(247,243,236,.3); background: rgba(247,243,236,.06); color: var(--cream);
}
.newsletter input::placeholder { color: rgba(247,243,236,.45); }
.newsletter .btn { min-height: 52px; }
@media (max-width: 640px) {
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
}

/* ---- manifesto full-bleed: spezza l'alternanza crema/bianco/ink/pietra ---- */
.manifesto {
  position: relative; min-height: 70svh; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); overflow: hidden; text-align: center;
}
.manifesto__art { position: absolute; inset: 0; }
.manifesto__art svg, .manifesto__art img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,7,.55), rgba(10,8,7,.75));
}
/* NB: niente "ch" qui — l'unità si risolve sul font-size del contenitore (16px
   sans), non su quello della citazione (fino a 3rem): dava una colonna da ~196px
   con la frase spezzata carattere per carattere. */
.manifesto__in { position: relative; padding: var(--sp-8) var(--sp-5); max-width: min(92vw, 640px); }
.manifesto__quote {
  font-family: var(--serif); font-size: clamp(1.7rem, 5.5vw, 3rem);
  line-height: 1.12; color: #fff; margin: 0 0 var(--sp-4);
  /* sillabazione e bilanciamento righe arrivano dalla base (sezione 2) */
}
.manifesto__by { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); }

/* la soglia di spedizione gratuita è un argomento di vendita: va vista */
.freeship {
  background: rgba(200,162,74,.14); border: 1px solid rgba(200,162,74,.5);
  padding: var(--sp-3) var(--sp-4); font-size: .86rem; margin: var(--sp-3) 0;
  border-radius: var(--radius);
}
.freeship strong { color: var(--wine); }
.drawer__foot .freeship { order: -1; }
/* riga appena aggiunta nel drawer, evidenziata per 2s */
@keyframes row-flash { from { background: rgba(200,162,74,.28); } to { background: transparent; } }
.cart-item.is-new { animation: row-flash 2s var(--ease); }
.form-note { font-size: .78rem; color: var(--granite); }
.section--dark .form-note { color: rgba(247,243,236,.55); }

/* ============================================================
   13. CARRELLO / CHECKOUT
   ============================================================ */
.cartlayout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-7); align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__art { background: var(--cream-2); aspect-ratio: 3/4; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.cart-item__art svg { height: 100%; width: auto; }
.cart-item__art:has(.bottle-photo) { padding: 0; }
.cart-item__name { font-family: var(--serif); font-size: 1.08rem; }
.cart-item__meta { font-size: .8rem; color: var(--granite); }
.cart-item__actions { display: flex; align-items: center; gap: var(--sp-4); }
.cart-item__rm { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--granite); border-bottom: 1px solid transparent; }
.cart-item__rm:hover { color: var(--err); border-bottom-color: currentColor; }
.cart-item .price { min-width: 90px; text-align: right; }

.summary { background: var(--paper); border: 1px solid var(--line); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 16px); }
.summary h2 { font-size: 1.25rem; }
.summary__line { display: flex; justify-content: space-between; gap: var(--sp-3); padding: .45rem 0; font-size: .92rem; }
.summary__line--total { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-4); font-family: var(--serif); font-size: 1.45rem; }
.freeship { background: var(--cream-2); padding: var(--sp-3); font-size: .82rem; margin: var(--sp-3) 0; }
.progress { height: 5px; background: rgba(22,17,15,.1); margin-top: .5rem; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); transition: width .4s; }

.steps { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.step {
  display: flex; align-items: center; gap: .5rem; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--granite-lt); font-weight: 600;
}
.step + .step::before { content: "—"; color: var(--granite-lt); margin-right: .5rem; }
.step__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-size: .7rem; }
.step.is-active { color: var(--wine); }
.step.is-done { color: var(--ok); }

.co-step { border: 1px solid var(--line); background: var(--paper); margin-bottom: var(--sp-4); }
.co-step__head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); width: 100%; text-align: left; }
.co-step__head h3 { margin: 0; font-size: 1.15rem; }
.co-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; }
.co-step.is-done .co-step__num { background: var(--ok); }
.co-step__edit { margin-left: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); }
.co-step__body { padding: 0 var(--sp-5) var(--sp-5); }
.co-step__body[hidden] { display: none; }
.co-step__recap { margin-left: auto; font-size: .84rem; color: var(--granite); }

.agecheck { display: flex; gap: .8rem; align-items: flex-start; padding: var(--sp-4); background: rgba(200,162,74,.1); border-left: 3px solid var(--gold); }
.agecheck input { width: 20px; height: 20px; accent-color: var(--wine); flex: none; margin-top: 2px; }

/* Metodi di pagamento — trattamento tipografico.
   Niente riquadri: prima erano scatole bianche vuote che su fondo scuro
   sembravano pulsanti da premere. Qui sono maiuscoletto spaziato separato
   da filetti sottili: sobrio, leggibile ovunque e senza riprodurre marchi
   registrati in modo impreciso.
   Se un giorno arrivano gli asset ufficiali dei circuiti, basta metterli in
   assets/img/pay/ e inserire una <img> dentro .paylogo: la regola sotto la
   dimensiona già correttamente. */
/* Separazione affidata alla spaziatura, non a filetti: con un separatore in
   ::before ogni riga mandata a capo (footer stretto, mobile, tedesco) si
   apriva con un filetto orfano — il CSS non sa dove cade l'a-capo. */
.paylogos { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.15rem; }
.paylogo {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--granite); white-space: nowrap;
}
.paylogo img { height: 22px; width: auto; display: block; }

/* sul fondo scuro del footer serve più luce */
.footer .paylogo, .section--dark .paylogo { color: rgba(247,243,236,.72); }

.empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.empty svg { width: 68px; height: 68px; margin: 0 auto var(--sp-4); color: var(--granite-lt); }

/* mini cart drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr min(420px, 88vw); }
/* B1/B5 — a menu o drawer aperti il fondo non deve scorrere sotto l'overlay */
body.is-locked { overflow: hidden; }
.drawer[hidden] { display: none; }
.drawer__scrim { background: rgba(22,17,15,.5); animation: fade .25s; }
.drawer__panel { background: var(--bg); display: flex; flex-direction: column; animation: slide .3s cubic-bezier(.2,.7,.3,1); box-shadow: var(--shadow-2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.2rem; }
.drawer__body { flex: 1; overflow: auto; padding: 0 var(--sp-5); }
.drawer__foot { padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: var(--sp-3); }
@keyframes fade { from { opacity: 0 } }
@keyframes slide { from { transform: translateX(100%) } }

/* toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: .6rem; justify-items: end; }
.toast {
  background: var(--ink); color: var(--cream); padding: .85rem 1.2rem; box-shadow: var(--shadow-2);
  font-size: .88rem; display: flex; align-items: center; gap: .7rem; animation: pop .25s; max-width: 340px;
}
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) } }

/* ============================================================
   QUIZ "TROVA IL TUO VINO"
   ============================================================ */
.quiz-teaser {
  display: flex; align-items: center; gap: var(--sp-6);
  background: linear-gradient(120deg, var(--cream-2), var(--cream));
  border: 1px solid var(--line-soft); padding: var(--sp-5) var(--sp-6);
}
.quiz-teaser__art {
  flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold-lt); background: var(--paper);
}
.quiz-teaser__art .scene-svg { width: 100%; height: 100%; }
.quiz-teaser__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-teaser__body { flex: 1; min-width: 0; }
.quiz-teaser__body h2 { margin: .1rem 0 .3rem; }
.quiz-teaser__body p { margin: 0; }
.quiz-teaser .btn { flex: none; }

.quizmodal {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center;
  padding: var(--sp-4);
}
.quizmodal__scrim { position: absolute; inset: 0; background: rgba(22,17,15,.6); }
.quizmodal__panel {
  position: relative; background: var(--paper); width: min(560px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-2); animation: pop .25s;
}
.quizmodal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line);
}
.quizmodal__head h2 { margin: 0; font-size: 1.1rem; }
.quizmodal__progress { height: 4px; background: var(--line-soft); }
.quizmodal__progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); transition: width .3s ease; }
.quizmodal__body { padding: var(--sp-5); }

.quiz-back {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--granite);
  margin-bottom: 1rem; display: inline-block;
}
.quiz-back:hover { color: var(--wine); }
.quiz-q__text { font-family: var(--serif); font-size: 1.35rem; margin: .3rem 0 1.3rem; }
.quiz-opts { display: grid; gap: .6rem; }
.quiz-opt {
  text-align: left; padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--paper);
  font-size: .95rem; transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.quiz-opt:hover { border-color: var(--wine); background: rgba(123,30,43,.05); transform: translateX(3px); }

.quiz-results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); margin: 1.2rem 0; align-items: stretch; }
/* card della stessa riga alla stessa altezza, così i badge "perché" restano allineati */
.quiz-result { display: flex; flex-direction: column; }
.quiz-result .wine-card { flex: 1; }
.quiz-result .wine-card:hover { transform: none; }
.quiz-why { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.quiz-why .badge { font-size: .6rem; }

@media (max-width: 640px) {
  .quiz-teaser { flex-direction: column; text-align: center; padding: var(--sp-5); }
  .quiz-teaser .btn { width: 100%; }
  .quiz-results__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  /* i risultati sono il momento clou del quiz: su schermi stretti due colonne
     lasciano ~157px per card e le denominazioni vanno a capo su 3 righe.
     Una colonna sola dà respiro e allinea naturalmente badge e prezzi. */
  .quiz-results__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .quiz-result .wine-card__media { aspect-ratio: 3/2; }
  .quiz-result .wine-card__body { padding-bottom: var(--sp-4); }
}

/* ============================================================
   14. BLOCCHI EDITORIALI
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media svg { width: 100%; height: auto; }
.split__caption { font-size: .76rem; color: var(--granite); margin-top: .6rem; letter-spacing: .04em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--sp-6); }
.feature svg.ico { width: 30px; height: 30px; color: var(--wine); margin-bottom: var(--sp-3); }
.section--dark .feature svg.ico { color: var(--gold); }
.feature h3 { font-size: 1.15rem; }

/* Riconoscimenti come medaglioni: leggono come onorificenze, non come elenco */
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6) var(--sp-4); justify-items: center; }
.award { text-align: center; max-width: 150px; }
.award__medal {
  width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-content: center; margin: 0 auto var(--sp-3);
  font-family: var(--serif); line-height: 1.05; color: var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.award:hover .award__medal { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.award__medal b { display: block; font-size: 1.45rem; font-weight: 600; }
.award__medal span { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--granite); margin-top: .15rem; }
.award__src { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; color: var(--granite); }
.section--dark .award__medal { color: var(--cream); }
.section--dark .award__medal span, .section--dark .award__src { color: rgba(247,243,236,.7); }
@media (min-width: 900px) { .awards { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 400px) { .awards { grid-template-columns: repeat(2, 1fr); } }

/* Prova sociale: prima il dato aggregato, poi le voci singole */
.rating-hero { text-align: center; margin-bottom: var(--sp-6); }
.rating-hero__score { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); }
.rating-hero__stars { color: var(--gold); font-size: 1.15rem; letter-spacing: .18em; display: block; margin: .4rem 0 .3rem; }
.rating-hero__meta { font-size: .82rem; color: var(--granite); }
.section--dark .rating-hero__score { color: var(--cream); }
.section--dark .rating-hero__meta { color: rgba(247,243,236,.72); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: var(--sp-5); }
.quote { background: var(--paper); border: 1px solid var(--line-soft); padding: var(--sp-5); }
.quote__stars { color: var(--gold); letter-spacing: .15em; font-size: .95rem; }
.quote p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.quote__who { font-size: .78rem; color: var(--granite); }
.quote__author { display: flex; align-items: center; gap: .7rem; margin-top: var(--sp-4); }
.quote__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--cream-2); color: var(--wine); display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.05rem; border: 1px solid var(--line);
}
.quote__name { font-size: .88rem; font-weight: 600; color: var(--ink); }

/* Rassegna stampa (pagina Cantina): estratti grandi su fondo scuro */
.press { display: grid; gap: var(--sp-6); }
.press__item { border-left: 2px solid var(--gold); padding-left: var(--sp-5); }
.press__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--cream); margin: 0 0 var(--sp-3); }
.press__src { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 860px) { .press { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }

/* ============================================================
   TIMELINE "SERPENTINA" — storia della cantina (pagina Cantina)
   Zig-zag alternato con linea centrale, pallino che segue lo scroll
   e tappe che si illuminano quando attraversano il centro schermo.
   ============================================================ */
/* overflow-x:clip — rete di sicurezza per l'ingrandimento scale(1.12) della
   tappa attiva: su mobile il layout è a colonna quasi piena larghezza, quindi
   qualunque direzione di crescita rischia di sfondare il bordo. Il taglio è
   di pochi pixel e invisibile: molto più robusto che inseguire l'origine di
   trasformazione giusta per ogni combinazione di lato e breakpoint. */
.tl2-wrap { position: relative; padding: var(--sp-4) 0 var(--sp-3); overflow: clip; }
.tl2 { position: relative; }
.tl2__track {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--line); transform: translateX(-50%);
}
.tl2__fill {
  position: absolute; left: 50%; top: 0; width: 2px; height: 0;
  background: linear-gradient(var(--gold), var(--wine)); transform: translateX(-50%);
  transition: height .08s linear; z-index: 1;
}
.tl2__dot {
  position: absolute; left: 50%; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wine); border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(123, 30, 43, .12);
  transform: translate(-50%, -50%); transition: top .08s linear; z-index: 3;
}

.tl2-item {
  position: relative; width: 44%; padding: 0 0 var(--sp-8);
}
/* classi esplicite (non :nth-child) perché #tl2 contiene anche track/fill/dot
   prima delle tappe: l'indice di nascita nel DOM non coincide con l'ordine visivo */
.tl2-item--l { margin-right: 56%; }
.tl2-item--r { margin-left: 56%; }
.tl2-item:last-child { padding-bottom: var(--sp-4); }

.tl2-item::before {
  content: ""; position: absolute; top: 1.7rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--granite-lt); z-index: 2;
  transition: border-color .35s, background .35s;
}
.tl2-item::after {
  content: ""; position: absolute; top: calc(1.7rem + 1px); width: 40px; height: 2px;
  background: var(--line); transition: background .35s;
}
.tl2-item--l::before { right: -46px; }
.tl2-item--l::after  { right: -40px; }
.tl2-item--r::before { left: -46px; }
.tl2-item--r::after  { left: -40px; }

.tl2-year {
  font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--granite-lt);
  transition: color .4s ease, transform .4s ease;
  /* .is-active lo ingrandisce (scale 1.12): l'origine deve puntare verso la
     linea centrale, l'unico lato dove il layout a zig-zag riserva sempre
     spazio libero. Verso l'esterno no: le tappe di destra sfondavano il
     bordo destro della pagina (scrollWidth > clientWidth). */
  transform-origin: right center;
}
.tl2-item--l .tl2-year { transform-origin: left center; }

/* ---- racconto a fasi ----
   1. stato iniziale: si vedono SOLO le date (la card è trasparente)
   2. .is-revealed: la card compare e la piccola foto si ingrandisce da 0.3x a 1x
   3. il testo arriva dopo, con l'effetto macchina da scrivere (gestito in pages.js) */
.tl2-card {
  display: flex; gap: 1rem; align-items: flex-start; margin-top: .8rem;
  background: var(--paper); border: 1px solid var(--line-soft); padding: 1rem 1.1rem;
  box-shadow: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease, border-color .4s ease, box-shadow .4s ease;
}
/* le tappe a sinistra della linea mostrano l'immagine sul lato destro (verso la linea), e viceversa */
.tl2-item--l .tl2-card { flex-direction: row-reverse; }

.tl2-img {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--cream-2); background: var(--cream-2);
  opacity: 0; transform: scale(.3);
  transition: transform .6s cubic-bezier(.2,.8,.25,1), opacity .45s ease, border-color .4s ease;
}
.tl2-img svg { width: 100%; height: 100%; }
.tl2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl2-desc { font-size: .92rem; color: var(--ink-soft); margin: 0; min-height: 1.4em; }
.tl2-desc.is-typing::after {
  content: "▍"; color: var(--wine); margin-left: 2px; animation: tl2-caret .8s step-end infinite;
}
@keyframes tl2-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* fase 2: card e foto entrano in scena */
.tl2-item.is-revealed .tl2-card { opacity: 1; transform: none; }
.tl2-item.is-revealed .tl2-img { opacity: 1; transform: scale(1); }

/* fase 3: la tappa al centro dello schermo viene enfatizzata
   (dopo .is-revealed, così vince sul transform di scala) */
.tl2-item.is-active .tl2-year { color: var(--wine); transform: scale(1.12); }
.tl2-item.is-revealed.is-active .tl2-card { border-color: var(--gold); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.tl2-item.is-revealed.is-active .tl2-img { transform: scale(1.2); border-color: var(--gold); }
.tl2-item.is-active::before { border-color: var(--gold); background: var(--gold); }
.tl2-item.is-active::after { background: var(--gold); }

@media (max-width: 760px) {
  .tl2__track, .tl2__fill, .tl2__dot { left: 20px; }
  .tl2-item, .tl2-item--l, .tl2-item--r {
    width: auto; margin-left: 46px; margin-right: 0; padding-bottom: var(--sp-6);
  }
  .tl2-item::before, .tl2-item--l::before, .tl2-item--r::before { left: -34px; right: auto; }
  .tl2-item::after, .tl2-item--l::after, .tl2-item--r::after { left: -28px; right: auto; width: 28px; }
  .tl2-year { font-size: 1.9rem; }
  .tl2-year, .tl2-item--l .tl2-year { transform-origin: left center; }
  .tl2-card { padding: .8rem .9rem; }
  /* colonna unica: l'immagine resta sempre sul lato vicino alla linea (sinistra) */
  .tl2-item--l .tl2-card { flex-direction: row; }
  .tl2-img { width: 52px; height: 52px; }
  /* stessa specificità della regola desktop (.is-revealed.is-active), altrimenti
     su mobile vincerebbe lo zoom 1.2 invece dell'1.1 */
  .tl2-item.is-revealed.is-active .tl2-img { transform: scale(1.1); }
}

.newsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: var(--sp-5); }
.newscard { background: var(--paper); border: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.newscard__art { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.newscard__art svg { width: 100%; height: 100%; }
.newscard__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.newscard__date { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--granite); }
.newscard h3 { font-size: 1.2rem; margin: .4rem 0; }
.newscard .link-arrow { margin-top: auto; align-self: flex-start; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp-4) 0; font-family: var(--serif); font-size: 1.15rem; display: flex; justify-content: space-between; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: var(--sp-4); color: var(--ink-soft); max-width: 70ch; }

.infocard { background: var(--paper); border: 1px solid var(--line-soft); padding: var(--sp-5); }
.infocard h3 { font-size: 1.1rem; }
.map { aspect-ratio: 16/9; background: var(--cream-2); border: 1px solid var(--line-soft); overflow: hidden; }
.map svg { width: 100%; height: 100%; }

/* ============================================================
   CONTATTI
   ============================================================ */

/* ---- tre azioni rapide: telefono, email, prenotazione ---- */
.cq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.cq__card {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); padding: var(--sp-5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cq__card:hover { border-color: var(--wine); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.cq__card--accent { background: linear-gradient(150deg, var(--cream-2), var(--cream)); border-color: var(--gold); }
.cq__card--accent:hover { border-color: var(--wine); }
.cq__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(123,30,43,.08); color: var(--wine); }
.cq__ico svg { width: 21px; height: 21px; }
.cq__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cq__h { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--granite); }
.cq__v { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); overflow-wrap: anywhere; }
.cq__card:hover .cq__v { color: var(--wine); }
.cq__s { font-size: .8rem; color: var(--granite); }

/* ---- mappa ----
   La mappa di Google è incorporata direttamente: il consenso ai suoi cookie
   è gestito dal CMP (Iubenda), che blocca l'iframe finché l'utente non ha
   scelto, quindi il velo con il pulsante "carica mappa" non serve più.
   A tutta larghezza invece che in colonna: la mappa è il contenuto della
   sezione, e la colonna stretta di prima comprimeva anche le due schede. */
.mapbox {
  position: relative; height: clamp(340px, 52vh, 540px);
  border: 1px solid var(--line); overflow: hidden; background: var(--cream-2);
}
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.mapinfo {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
  margin-top: var(--sp-5); align-items: start;
}
/* il pulsante non è più a tutta larghezza: sotto la mappa la scheda è larga
   il doppio e un bottone da 600px sembrava un errore */
.mapinfo__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); }
.mapside__addr { margin: 0; line-height: 1.6; }
.mapside__geo { margin: .6rem 0 0; font-family: var(--mono); font-size: .78rem; color: var(--granite); }

/* punti di riferimento: distanza in colonna fissa, così i numeri si allineano */
.lm { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.lm__i { display: grid; grid-template-columns: 4.2rem 1fr; gap: .6rem; align-items: baseline; font-size: .9rem; }
.lm__d {
  font-family: var(--serif); font-size: .95rem; color: var(--wine);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ---- come raggiungerci ---- */
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.reach__i svg { width: 30px; height: 30px; color: var(--wine); margin-bottom: var(--sp-3); }
.reach__i h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.reach__i p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.reach__note {
  margin: var(--sp-6) 0 0; padding: var(--sp-4) var(--sp-5);
  background: rgba(200,162,74,.12); border-left: 3px solid var(--gold);
  font-size: .88rem; color: var(--ink-soft);
}

/* stato apertura calcolato al volo */
.hours__now { margin: var(--sp-4) 0 0; font-size: .86rem; font-weight: 600; }
.hours__now[hidden] { display: none; }
.hours__now--open { color: var(--ok); }
.hours__now--closed { color: var(--granite); }

@media (max-width: 900px) {
  .mapinfo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cq__card { padding: var(--sp-4); }
  /* su telefono 52vh rendeva la mappa più alta che larga (ritratto): una
     mappa si legge meglio in formato quadrato o leggermente panoramico */
  .mapbox { height: clamp(280px, 68vw, 380px); }
  .reach { gap: var(--sp-5); }
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(247,243,236,.7); padding: var(--sp-8) 0 var(--sp-5); font-size: .88rem; }
.footer a:hover { color: var(--gold); }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-6); }
.footer h4 { color: var(--cream); font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer .logo__name { color: var(--cream); }
.footer .logo__sub { color: rgba(247,243,236,.45); }
.socials { display: flex; gap: .6rem; margin-top: var(--sp-4); }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(247,243,236,.22); display: grid; place-items: center; border-radius: 50%; }
.socials a:hover { background: rgba(247,243,236,.1); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1px solid rgba(247,243,236,.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: .78rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.drink-note { font-size: .72rem; color: rgba(247,243,236,.4); margin-top: var(--sp-4); max-width: 60ch; }

/* age gate */
.agegate { position: fixed; inset: 0; z-index: 300; background: rgba(12,9,8,.94); display: grid; place-items: center; padding: var(--sp-4); }
.agegate[hidden] { display: none; }
.agegate__box { background: var(--cream); max-width: 460px; padding: var(--sp-7) var(--sp-6); text-align: center; box-shadow: var(--shadow-2); }
.agegate__box .logo { justify-content: center; margin-bottom: var(--sp-4); }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .exp { grid-template-columns: 260px 1fr; }
  .exp__buy { grid-column: 1 / -1; justify-items: start; text-align: left; }
  /* Sotto i 1080px l'hero non è più a due colonne: il testo occupa quasi
     tutta la larghezza (eyebrow misurata a 343px su un viewport di 375px).
     Il gradiente orizzontale di .hero__scrim è tarato per la colonna stretta
     desktop e sulla destra scende fino a .15 di opacità: lì sopra il video in
     movimento il contrasto scendeva sotto la soglia leggibile (4,6:1 misurato,
     con punte peggiori a seconda del fotogramma). Un velo uniforme protegge
     il testo su tutta la sua larghezza, non solo vicino al bordo sinistro. */
  .hero__scrim {
    background: rgba(10,8,7,.68);
  }
  /* minmax(0,1fr) e non 1fr: una colonna 1fr non scende sotto il proprio
     min-content, e il modulo di prenotazione sforava il contenitore a 320px */
  .booking { grid-template-columns: minmax(0, 1fr); }
  /* in colonna singola il riepilogo sta già in fondo al modulo: tenerlo
     "appiccicato" non servirebbe a nulla e romperebbe lo scorrimento */
  .booking__sticky { position: static; }
  .booking__summary { border-left: 0; border-top: 1px solid var(--line); }
  .booking__form, .booking__summary { min-width: 0; }
  .cartlayout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
/* D8 — Il menu passa a hamburger già a 1080px: in tedesco le voci sono più
   lunghe (logo 186 + nav 655 + tools 184 > 1080) e andavano a capo su due righe. */
@media (max-width: 1080px) {
  .nav {
    /* absolute sul contenitore sticky #site-header, non fixed: .header ha
       backdrop-filter e farebbe da containing block, sganciando il menu dal
       viewport. Così il pannello resta sempre agganciato sotto la barra. */
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-4) 1.25rem var(--sp-6);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    max-height: 72vh; max-height: 72dvh; overflow: auto;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
  .nav a::after { display: none; }
  .burger { display: inline-grid; }

  /* sottomenu "La Cantina": stesso colore del link principale, solo indentato */
  .nav-item--sub { display: block; position: relative; }
  .nav-item--sub > a { display: block; padding-right: 3rem; }
  .nav-sub-toggle {
    display: inline-grid; place-items: center; position: absolute; right: 0; top: 0;
    width: 44px; height: 44px; color: var(--granite);
  }
  .nav-sub-toggle svg { width: 18px; height: 18px; transition: transform .25s ease; }
  .nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-sub {
    display: grid; gap: .1rem; margin: 0 0 .6rem; padding-left: 1rem;
    border-left: 2px solid var(--line);
  }
  .nav-sub[hidden] { display: none; }
  .nav-sub a {
    padding: .7rem 0; border-bottom: 0; font-size: .82rem; font-weight: 500;
    text-transform: none; letter-spacing: 0; color: var(--ink-soft); /* stesso colore del titolo "La Cantina" */
  }

  /* B8 — aree toccabili ad almeno 44px senza ingrandire il testo.
     Il breakpoint è lo stesso del menu mobile: sotto 1080px si tocca. */
  .icon-btn { width: 44px; height: 44px; }
  .logo { min-height: 44px; }
  .footer ul { gap: 0; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  /* telefono ed email nel footer: sono link da toccare, non testo */
  .footer a[href^="tel:"], .footer a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb a, .breadcrumb > span { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow { min-height: 44px; align-items: center; }
  .langsel__btn { min-height: 44px; padding-inline: .5rem; }
  .ticker__toggle { width: 44px; height: 44px; }
  /* NON forzare .addcart a 44×44: da quando il pulsante è "Aggiungi" a piena
     larghezza (non più un tondo con la sola icona) quel riquadro tagliava il
     testo a metà. La regola desktop (width:100%; min-height:44px) rispetta
     già da sola la soglia tattile, anche su mobile. */
  .cart-item__rm, .link-reset { display: inline-flex; align-items: center; min-height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .quiz-opt, .slot, .btn, .select, .filters-toggle { min-height: 44px; }
  /* flex:none, altrimenti i pulsanti si comprimono a 33px dentro .qty */
  .qty button { width: 44px; height: 44px; flex: none; }
  .qty input { height: 44px; }
  .check input, .opt input, .agecheck input { width: 24px; height: 24px; }
  .cal__nav { width: 44px; height: 44px; }
  /* le caselle: il bersaglio reale è la riga etichetta, portata a 44px */
  .check, .opt, .agecheck { min-height: 44px; }
  .check input, .opt input, .agecheck input { width: 22px; height: 22px; }
  .tabs__nav button { min-height: 44px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  /* A3 — a 375px logo(186) + tools(185) + gap sforavano il .wrap da 343px.
     Si comprime il logo e si alleggerisce la barra, senza toccare il carattere. */
  .header__in { gap: var(--sp-3); }
  .logo { gap: .5rem; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__sub { display: none; }
  .logo__name { font-size: 1.2rem; }
  .header__tools { gap: 0; }
  .icon-btn { width: 44px; height: 44px; }           /* B8: target ≥44px */
  .header__tools .icon-btn--account { display: none; } /* spostata nel menu */

  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters[hidden] { display: none; }
  .filters-toggle { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split--rev .split__media { order: 0; }
  .ticker__item { padding-right: 1.1rem; margin-right: 1.1rem; }
  .ticker__track { animation-duration: 26s; }

}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--maxw)); }
  .section { padding: var(--sp-7) 0; }
  .wine-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: var(--sp-4); }
  #results.wine-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .wine-card__price { font-size: 1.3rem; }
  .exp { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .cart-total { display: none; }
  .hero__facts { gap: var(--sp-5); }

  /* B4 — giorni del calendario sotto i 44px: prenotare era un tiro al bersaglio.
     L'altezza da sola non bastava: le celle restavano larghe 34px e schiacciate.
     Qui si recupera larghezza togliendo il cappello di 340px (inutile quando lo
     schermo è già stretto), alleggerendo il padding del modulo e stringendo i
     gap: le celle tornano quasi quadrate e comode da toccare. */
  .booking__form, .booking__sticky { padding: var(--sp-4); }
  /* su riga propria: in linea rubava spazio e mandava a capo l'ultima data */
  .cal-quick__lbl { flex-basis: 100%; margin: 0 0 .15rem; }
  .cal { max-width: none; }
  .cal__grid { gap: 2px; padding: .3rem; }
  .cal__day { min-height: 44px; aspect-ratio: auto; }
}

/* A 320px non ci stanno logo (160px) + tre pulsanti da 44px dentro un .wrap di
   288px: si comprime solo il marchio, i bersagli restano a 44px. */
@media (max-width: 400px) {
  .logo { gap: .4rem; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__name { font-size: 1.02rem; letter-spacing: .02em; }
  .header__in { gap: .25rem; }
  .buybar { padding-inline: var(--sp-3); gap: var(--sp-2); }
  .buybar__price { font-size: 1.05rem; }
}

/* A5 — il carrello scrollava in orizzontale: senza wrap il min-content della
   riga azioni (qty + prezzo + Rimuovi) faceva da pavimento alla colonna 1fr. */
.cart-item__actions { flex-wrap: wrap; }
.cart-item > div { min-width: 0; }
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 56px 1fr; gap: var(--sp-3); }
  .cart-item .price { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  /* senza iteration-count le 18 animazioni "infinite" si riavviavano di continuo
     a .01ms, bruciando CPU invece di fermarsi */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HERO ANIMATO — loop perfetto di 5 secondi
   Ogni animazione dura 5s (o un suo sottomultiplo: 0,5s per le ali)
   così l'intera scena si richiude esattamente sul fotogramma iniziale.
   ============================================================ */
.pvh { display: block; }
.pvh-far      { animation: pvh-far   5s ease-in-out infinite; }
.pvh-peaks    { animation: pvh-peaks 5s ease-in-out infinite; }
.pvh-snow     { animation: pvh-snow  5s ease-in-out infinite; }
.pvh-mist     { animation: pvh-mist  5s linear infinite; }
.pvh-sweep    { animation: pvh-sweep 5s linear infinite; }
.pvh-haze     { animation: pvh-haze  5s ease-in-out infinite; }
.pvh-bird     { animation: pvh-fly   5s linear infinite; }
.pvh-wing     { animation: pvh-wing  .5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pvh-row      { animation: pvh-sway  5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.pvh-terraces { animation: pvh-terraces 5s ease-in-out infinite; }

@keyframes pvh-far   { 0%, 100% { transform: translateX(0) translateY(0); }
                       50%      { transform: translateX(-16px) translateY(3px); } }
@keyframes pvh-peaks { 0%, 100% { transform: translateX(0); }
                       50%      { transform: translateX(7px); } }
@keyframes pvh-snow  { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
@keyframes pvh-mist  { 0%   { transform: translateX(-70px); opacity: 0; }
                       30%  { opacity: .6; }
                       70%  { opacity: .45; }
                       100% { transform: translateX(230px); opacity: 0; } }
@keyframes pvh-sweep { 0% { transform: translateX(0); } 100% { transform: translateX(1900px); } }
@keyframes pvh-haze  { 0%, 100% { opacity: .05; } 50% { opacity: .12; } }
@keyframes pvh-sway  { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(.9deg); } }
@keyframes pvh-wing  { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.3); } }
@keyframes pvh-fly   { 0%   { transform: translate(-90px, 250px); opacity: 0; }
                       12%  { opacity: .8; }
                       86%  { opacity: .7; }
                       100% { transform: translate(1290px, 170px); opacity: 0; } }
/* terrazzamenti: scivolano a destra e tornano — loop chiuso sui 5s, come il resto della scena */
@keyframes pvh-terraces { 0%, 100% { transform: translateX(0); }
                          50%      { transform: translateX(22px); } }

/* illustrazioni generate */
.scene { overflow: hidden; background: var(--cream-2); }
/* object-fit non ha effetto sull'SVG inline che normalmente popola questa
   classe (si scala da solo via viewBox/preserveAspectRatio): la regola serve
   solo alle <img> con fotografie reali (es. box "Chi siamo" in home) */
.scene-svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.pagehead__art svg, .hero__art svg { width: 100%; height: 100%; }
.split__media .scene { border: 1px solid var(--line-soft); }
.exp__art .scene-svg, .newscard__art .scene-svg, .map .scene-svg { object-fit: cover; }
.gallery__thumbs .scene-svg { width: 100%; height: 100%; }

/* reveal on scroll — D1: l'opacità 0 vale SOLO se il JS è attivo (classe .js
   messa da uno script inline nel <head>), altrimenti senza JS la pagina
   resterebbe bianca perché nessuno aggiunge mai .is-in */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* C2 — link "salta al contenuto", visibile solo al focus da tastiera */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--wine); color: #fff; padding: .8rem 1.2rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* E2 — "Azzera filtri" riusava .cart-item__rm, che ha l'hover rosso da eliminazione */
.link-reset {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--granite);
  border-bottom: 1px solid transparent;
}
.link-reset:hover { color: var(--wine); border-bottom-color: currentColor; }

/* messaggio per chi naviga senza JavaScript */
.noscript-note {
  background: var(--cream-2); border-bottom: 1px solid var(--line);
  padding: var(--sp-4); text-align: center; font-size: .9rem;
}

@media print {
  .header, .topbar, .footer, .drawer, .toasts, .btn { display: none !important; }
}
