/* Zollo · direzione editoriale v4 · sistema condiviso dalle pagine interne */
@property --arch { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --frame: #2c1c28;        /* prugna dell'etichetta: la cornice di ogni pagina */
  --frame-deep: #211520;
  --paper: #f2eadb;
  --paper-2: #e8dec9;
  --ink: #2c1c28;
  --ink-soft: #5e4d55;
  --cream: #f3e9d2;
  --cream-soft: #bfafa6;
  --gold: #c4a96d;         /* oro dell'etichetta, solo su fondo scuro */
  --gold-ink: #7a6220;     /* oro su carta */
  --night: #0b0908;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --bar: 128px;
  --gut: clamp(16px, 4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--frame); color: var(--cream); -webkit-text-size-adjust: 100%; }
body { font: 400 19px/1.5 var(--display); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 12px; font: 500 12px var(--mono); }
.skip:focus { top: 8px; }

.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: -.012em; }
.display em, em.display { font-style: italic; }
.dots { font: 500 12px/1 var(--mono); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: .8em; padding: .95em 1.6em; border: 1px solid currentColor; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .4s, color .4s; }
.btn:hover { background: var(--cream); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.btn[aria-disabled="true"]:hover { background: none; color: inherit; }
.soon { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-left: .6em; }

/* ── Barra: la cornice prugna resta sempre ── */
.bar { position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gut); background: var(--frame); color: var(--cream); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.bar__menu { justify-self: start; text-transform: inherit; letter-spacing: inherit; font: inherit; display: flex; gap: .7em; align-items: center; }
.bar__menu i { display: inline-block; width: 22px; height: 7px; border-block: 1px solid currentColor; transition: transform .5s var(--ease), height .5s var(--ease); }
.bar__logo { display: block; align-self: center; justify-self: center; line-height: 0; }
.bar__logo img { height: calc(var(--bh, var(--bar)) * .78); width: auto; }   /* il logo è sempre il 78% della barra: proporzioni intatte, mai fuori */
.bar__cart { justify-self: end; text-decoration: none; }
.bar__cart span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); color: var(--ink); margin-left: .5em; }

/* ── Menu a tutta pagina ── */
.menu { position: fixed; z-index: 45; inset: 0; background: var(--frame-deep); color: var(--cream); padding: calc(var(--bar) + 4vh) var(--gut) 32px;
  display: grid; grid-template-rows: 1fr auto; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden; }
.menu.open { clip-path: inset(0); visibility: visible; }
.menu ol { list-style: none; align-self: center; }
.menu li { overflow: hidden; }
.menu ol a { display: inline-flex; align-items: baseline; text-decoration: none; font: 400 clamp(34px, min(6vw, 9.4vh), 96px)/1 var(--display); text-transform: uppercase;
  transform: translateY(105%); transition: transform .9s var(--ease-out), font-style 0s; transition-delay: calc(.06s * var(--i) + .2s); }
.menu.open ol a { transform: none; }
.menu ol a:hover, .menu ol a:focus-visible, .menu ol a[aria-current] { font-style: italic; }
.menu ol a[aria-current]::after { content: "●"; font-size: .18em; margin-left: .5em; color: var(--gold); align-self: center; }
.menu__foot a { text-decoration: none; }
.menu__foot a[aria-disabled] { opacity: .6; }
.menu__foot { gap: 1rem 2.4rem !important; justify-content: flex-start !important; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; color: var(--cream-soft); }

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar) + 6vh) var(--gut) 10vh; display: grid; align-content: center; justify-items: center; text-align: center; overflow: clip; }
.hero .kicker { color: var(--gold); margin-bottom: 3vh; }
.hero__title { font-size: clamp(64px, 15.2vw, 250px); text-transform: uppercase; line-height: .84; position: relative; }
.hero__title .line { display: block; overflow: clip; padding-bottom: .04em; position: relative; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease-out) forwards; }
.hero__title .line { z-index: 3; }                         /* il titolo passa davanti alla stampa: la parola resta intera */
.hero__title .line:nth-child(2) > span { animation-delay: .15s; }
.hero__print { position: absolute; z-index: 1; width: clamp(120px, 14vw, 230px); left: 50%; top: 50%; translate: -8% -54%;
  rotate: -5deg; opacity: 0; animation: drop 1.3s .2s var(--ease-out) forwards; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero__foot { margin-top: 6vh; display: grid; gap: 2.4vh; justify-items: center; }
.hero__lede { font: italic 400 clamp(24px, 2.6vw, 40px)/1.15 var(--display); max-width: 22ch; }
@keyframes rise { to { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) rotate(-9deg); } to { opacity: 1; transform: none; } }

/* ── Citazione: il testo è la composizione ── */
.quote { padding: 14vh var(--gut) 22vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.quote blockquote { grid-column: 2 / 12; font: 400 clamp(28px, 3.6vw, 58px)/1.14 var(--display); text-indent: -.42em; }
.quote figcaption { grid-column: 7 / 12; margin-top: 6vh; display: flex; gap: 1.2rem; align-items: baseline; }
.quote figcaption b { font: italic 400 clamp(26px, 2.4vw, 38px) var(--display); }
.quote figcaption span { color: var(--cream-soft); }

/* ── Il foglio: sale sulla cornice con l'arco del cartiglio dell'etichetta ── */
.sheet { position: relative; background: var(--paper); color: var(--ink); --arch: 14vh;
  border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0; margin-top: -8vh; }
.sheet__head { padding: 22vh var(--gut) 10vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; position: relative; z-index: 1; }
.sheet__head .kicker { grid-column: 1 / -1; text-align: center; color: var(--gold-ink); margin-bottom: 4vh; }
.sheet__head h2 { grid-column: 1 / -1; text-align: center; font-size: clamp(54px, 10vw, 170px); }
.sheet__head p { grid-column: 4 / 10; text-align: center; margin-top: 5vh; color: var(--ink-soft); }

/* ── Timeline: palcoscenico fermo, cambiano anno, stampa e racconto ── */
.tl { position: relative; }
.ch { padding: 6vh var(--gut) 12vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3vh 24px; align-items: start; }
.ch__year { grid-column: 1 / -1; font: 400 clamp(96px, 20vw, 300px)/.8 var(--display); }
.ch figure { grid-column: 1 / 8; }
.ch__text { grid-column: 8 / 13; }
.ch__text .kicker { color: var(--gold-ink); }
.ch__text h3 { font: italic 400 clamp(34px, 3.4vw, 54px)/1 var(--display); margin: .4em 0 .55em; }
.ch__text p { max-width: 36ch; }
.print { background: #fbf7ef; padding: 10px; box-shadow: 0 1px 0 rgba(44,28,40,.08), 0 24px 50px -12px rgba(44,28,40,.28); position: relative; }
.print--own { background: none; padding: 0; box-shadow: none; filter: drop-shadow(0 24px 30px rgba(44,28,40,.3)); }
.tl__ground { display: none; }
.tl__odo, .tl__nav { display: none; }

/* versione animata (JS attivo e movimento consentito) */
.live .tl { height: calc(var(--n) * 95vh + 100vh); }
.live .tl__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.live .ch { position: absolute; inset: 0; padding: 0; display: block; pointer-events: none; }
.live .ch__year { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.live .tl__ground { display: block; position: absolute; right: -6vw; bottom: 4vh; width: min(70vw, 1100px); opacity: .13;
  transform: translateX(calc(var(--i, 0) * -2.2vw)); transition: transform 1.6s var(--ease); pointer-events: none; }
.tl__stage { position: relative; }

.live .tl__odo { display: flex; position: absolute; left: var(--gut); bottom: 7vh; z-index: 1; font: 500 clamp(110px, 22vw, 340px)/1 var(--display); font-variation-settings: 'opsz' 28; color: var(--ink); }
.tl__odo .col + .col { margin-left: -.03em; }   /* cifre in Bodoni a ottica media: filetti robusti, il 4 resta leggibile */
.tl__odo .col { display: block; height: .78em; overflow: clip; }
.tl__odo .col > span { display: flex; flex-direction: column; transform: translateY(calc(var(--k, 0) * -1em)); transition: transform 1.15s var(--ease); transition-delay: calc(var(--d) * 70ms); margin-top: -.17em; }
.tl__odo .col > span > span { height: 1em; line-height: 1; }

.live .ch figure { position: absolute; z-index: 2; left: calc(var(--gut) + 15vw); top: calc(var(--bar) + 7vh); width: var(--w, 34vw);
  transform: translate(var(--x, 0), 120vh) rotate(calc(var(--r, 0deg) + 10deg)); transition: transform 1.25s var(--ease), opacity .8s; opacity: 0; }
.live .ch.past figure { transform: translate(calc(var(--x, 0) - 3vw), -2vh) rotate(calc(var(--r, 0deg) - 4deg)); opacity: 1; }
.live .ch.past2 figure { opacity: 0; transform: translate(calc(var(--x, 0) - 5vw), -6vh) rotate(calc(var(--r, 0deg) - 7deg)); }
.live .ch.on figure { transform: translate(var(--x, 0), 0) rotate(var(--r, 0deg)); opacity: 1; z-index: 3; }

.live .ch__text { position: absolute; z-index: 4; right: var(--gut); top: calc(var(--bar) + 16vh); width: min(31vw, 460px); }
.live .ch__text > * { opacity: 0; transform: translateY(26px); transition: opacity .55s, transform .9s var(--ease-out); }
.live .ch.on .ch__text > * { opacity: 1; transform: none; transition-delay: calc(.35s + var(--j, 0) * .08s); }
.live .ch__text > :nth-child(2) { --j: 1; } .live .ch__text > :nth-child(3) { --j: 2; }

.live .tl__nav { display: flex; position: absolute; z-index: 5; right: var(--gut); bottom: 7vh; gap: 1.4rem; list-style: none; }
.tl__nav button { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.tl__nav button[aria-current="step"] { color: var(--ink); border-color: var(--ink); }

/* ── Dedica: 'Onna Rachele ── */
.dedica { position: relative; background: var(--night); color: var(--cream); min-height: 100svh; display: grid; overflow: clip; }
.dedica__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 27% 50%; }
.dedica__text { position: relative; align-self: center; margin-left: auto; width: min(40vw, 560px); padding: 12vh var(--gut); }
.dedica__text .kicker { color: var(--gold); }
.dedica__text h2 { font-size: clamp(60px, 8.2vw, 136px); margin: .3em 0 .35em; }
.dedica__text blockquote { color: var(--cream); max-width: 34ch; }
.dedica__text .src { margin-top: .8em; color: var(--cream-soft); font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.formats { display: flex; gap: 2.4rem; margin: 2.2rem 0 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(243,233,210,.2); }
.formats span { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-soft); }
.formats b { display: block; font: 500 24px/1.1 var(--mono); color: var(--cream); letter-spacing: 0; text-transform: none; margin-top: .2em; }

/* ── Famiglia ── */
.famiglia { background: var(--paper); color: var(--ink); padding: 18vh var(--gut) 16vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; position: relative; overflow: clip; }
.famiglia .kicker { grid-column: 1 / -1; color: var(--gold-ink); }
.famiglia h2 { grid-column: 1 / -1; font-size: clamp(56px, 11vw, 190px); margin-top: 3vh; position: relative; z-index: 2; }
.famiglia__img { grid-column: 4 / 13; margin-top: -9vw; position: relative; z-index: 1; mix-blend-mode: multiply; }   /* lo sfumato bianco del ritratto diventa carta */
.famiglia__text { grid-column: 1 / 5; margin-top: -14vw; position: relative; z-index: 2; align-self: start; }
.famiglia__text p { margin-bottom: 1.6rem; max-width: 26ch; }
.famiglia .btn:hover { background: var(--ink); color: var(--paper); }

/* ── Prossimo capitolo ── */
.next { background: var(--frame); padding: 10vh var(--gut) 12vh; }
.next__panel { position: relative; display: grid; place-items: center; text-align: center; min-height: 82svh; border-radius: 28px; overflow: clip; color: var(--cream); }
.next__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.next__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(33,21,32,.78), rgba(33,21,32,.15) 70%); }
.next__panel > div { position: relative; z-index: 1; display: grid; gap: 3.2vh; justify-items: center; padding: 0 var(--gut); }
.next__panel h2 { font-size: clamp(48px, 7.6vw, 128px); }

/* ── Piede (ridisegnato 2026-11-23): firma del marchio, quattro colonne leggibili, base con i dati aziendali ── */
.foot { background: var(--frame-deep); color: var(--cream); padding: 12vh var(--gut) 5vh; font: 400 19px/1.5 var(--display); }
.foot__top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4vw; padding-bottom: 9vh; border-bottom: 1px solid rgba(243,233,210,.14); }
.foot__motto { font: italic 400 clamp(30px, 3.4vw, 54px)/1.12 var(--display); }
.foot__motto em { font-style: normal; }
.foot .btn { min-height: 54px; padding: 0 30px; justify-content: center; font-size: 14px; letter-spacing: .1em; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5vh 3vw; padding: 8vh 0 9vh; }
.foot__cols h2 { font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.4vh; }
.foot__cols ul { list-style: none; display: grid; gap: .45em; }
.foot__cols li { font: 400 21px/1.35 var(--display); color: var(--cream-soft); }
.foot__cols li a { color: var(--cream); }
.foot a { text-decoration: none; }
.foot__cols a, .foot__base a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.foot__cols a:hover, .foot__cols a:focus-visible { background-size: 100% 1px; }
.foot a[aria-current] { font-style: italic; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6em 3em; padding-top: 3.4vh; border-top: 1px solid rgba(243,233,210,.14); }
.foot__base small { font: 400 15px/1.5 var(--display); color: var(--cream-soft); }
.foot__credit a { display: inline-flex; align-items: center; min-height: 24px; color: var(--cream-soft); }
.foot__credit a:hover, .foot__credit a:focus-visible { color: var(--cream); background-size: 100% 1px; }
.foot__credit svg { flex: none; color: var(--cream); }

/* ── Movimento legato allo scroll (dove il browser lo supporta) ── */
@supports (animation-timeline: view()) {
  .live .sheet { animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes flatten { from { --arch: 40vh; } to { --arch: 0px; } }
  .live .hero__title .line:first-child { animation: apart-l linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .live .hero__title .line:nth-child(2) { animation: apart-r linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes apart-l { to { translate: -9vw 0; } }
  @keyframes apart-r { to { translate: 9vw 0; } }
  .live .quote .w { animation: ink linear both; animation-timeline: view(); animation-range: entry 70% cover 42%; }
  @keyframes ink { from { opacity: .2; } to { opacity: 1; } }
  .live .dedica__img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  @keyframes settle { from { clip-path: inset(9% 9% round 24px); scale: 1.08; } to { clip-path: inset(0 round 0); scale: 1; } }
  .live .famiglia__img { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes lift { from { translate: 0 12vh; } to { translate: 0 0; } }
  .live .next__panel { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes open { from { clip-path: inset(0 12% round 28px); } to { clip-path: inset(0 0 round 28px); } }
}

/* ── Movimento ridotto: tutto fermo, la pagina resta completa ── */
@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .hero__print { animation: none; transform: none; opacity: 1; }
  .menu, .menu a { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 760px) {
  :root { --bar: 88px; }
  body { font-size: 17px; }
  .hero__print { width: 30vw; translate: -6% -56%; }
  .hero__title { font-size: 17.6vw; }
  .quote blockquote { grid-column: 1 / -1; }
  .quote figcaption { grid-column: 1 / -1; flex-direction: column; gap: .3rem; }
  .sheet__head p { grid-column: 1 / -1; }
  .ch figure, .ch__text { grid-column: 1 / -1; }
  .live .tl { height: calc(var(--n) * 100vh + 100vh); }
  .live .tl__odo { font-size: 27vw; top: calc(var(--bar) + 2.5vh); bottom: auto; left: 16px; }
  .live .ch figure { left: 8vw; top: calc(var(--bar) + 27vw + 4vh); width: var(--wm, 72vw); }
  .live .ch__text { left: 16px; right: 16px; width: auto; top: auto; bottom: 64px; }
  .live .ch__text h3 { font-size: 32px; margin: .3em 0 .4em; }
  .live .ch__text p { font-size: 16px; line-height: 1.45; }
  .live .tl__nav { left: 16px; right: 16px; bottom: 18px; justify-content: space-between; gap: 0; }
  .live .tl__ground { width: 120vw; right: -30vw; bottom: 30vh; }
  .dedica { min-height: auto; }
  .dedica__img { position: relative; height: 70svh; object-position: 25% 50%; }
  .dedica__text { width: auto; padding: 6vh 16px 10vh; margin: 0; }
  .famiglia__img { grid-column: 1 / -1; margin-top: 2vh; }
  .famiglia__text { grid-column: 1 / -1; margin-top: 4vh; }
  .next__panel { min-height: 70svh; border-radius: 18px; }
  .foot { padding-top: 9vh; }
  .foot__top { grid-template-columns: 1fr; justify-items: start; gap: 4vh; padding-bottom: 6vh; }
  .foot__motto { font-size: 30px; } .foot__motto br { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 6vh 6vw; padding: 6vh 0 7vh; }
  .foot__cols li { font-size: 19px; }
  .foot__base { flex-direction: column; }
}

/* ════════════════════════ HOME ════════════════════════ */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

/* Apertura: tre righe pubblicate dal cliente, i tre oli in piedi come una natura morta */
.h-open { position: relative; background: var(--paper); color: var(--ink); min-height: 100svh; padding: calc(var(--bar) + 9vh) var(--gut) 8vh; overflow: clip; }
.h-open h1 { font-size: clamp(46px, 6.7vw, 124px); line-height: .98; position: relative; z-index: 2; }
.h-open h1 .line { display: block; overflow: clip; padding-bottom: .06em; }
.h-open h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease-out) forwards; }
.h-open h1 .line:nth-child(2) { padding-left: 1.2em; } .h-open h1 .line:nth-child(2) > span { animation-delay: .12s; }
.h-open h1 .line:nth-child(3) > span { animation-delay: .24s; }
.h-open__foot { margin-top: 7vh; display: grid; gap: 3vh; justify-items: start; position: relative; z-index: 2; }
.h-open__foot .dots { color: var(--gold-ink); }
.still { position: absolute; z-index: 1; right: 7vw; bottom: 9vh; height: 58vh; display: flex; align-items: flex-end; }
.still img { height: var(--h); width: auto; position: relative; transform: translateY(14vh); opacity: 0; animation: stand 1.5s var(--ease-out) forwards; animation-delay: var(--d); }
.still img + img { margin-left: -1.2vh; }
.still::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -2.2vh; height: 4.4vh; background: radial-gradient(closest-side, rgba(44,28,40,.28), transparent); z-index: -1; }
@keyframes stand { to { transform: none; opacity: 1; } }

/* Dal 1949: le cifre salgono dalla loro fessura, la stampa si posa */
.h-1949 { position: relative; padding: 16vh var(--gut) 24vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; overflow: clip; }
.h-1949__year { grid-column: 1 / 9; display: flex; font: 500 clamp(120px, 27vw, 420px)/.8 var(--display); font-variation-settings: 'opsz' 28; color: var(--cream); }
.h-1949__year > span { display: block; overflow: clip; padding: .04em 0 .02em; }
.h-1949__year > span > span { display: block; }
.live .h-1949__year > span > span { transform: translateY(102%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d) * 90ms); }
.live .h-1949.in .h-1949__year > span > span { transform: none; }
.h-1949__print { position: absolute; width: clamp(150px, 15vw, 240px); left: 34vw; top: 12vh; rotate: 4deg; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.live .h-1949__print { opacity: 0; transform: translateY(-30px) rotate(6deg); transition: opacity .9s .5s, transform 1.4s .5s var(--ease-out); }
.live .h-1949.in .h-1949__print { opacity: 1; transform: none; }
.h-1949__text { grid-column: 9 / 13; padding-bottom: 2vh; }
.h-1949__text p { margin-bottom: 1.8rem; max-width: 30ch; }

/* Il frantoio: finestre ad arco come il cartiglio, tre misure */
.h-mill { padding-bottom: 16vh; }
.h-mill__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 20vh var(--gut) 0; position: relative; z-index: 1; }
.h-mill h2 { grid-column: 1 / 8; font-size: clamp(54px, 8.4vw, 150px); }
.h-mill__text { grid-column: 9 / 13; align-self: end; }
.h-mill__text p { margin-bottom: 1.8rem; color: var(--ink); }
.arches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-top: 10vh; align-items: start; }
.arch { margin: 0; }
.arch__win { border-radius: 50% 50% 0 0 / 22% 22% 0 0; overflow: clip; background: var(--paper-2); }
.arch__win img { width: 100%; height: 100%; object-fit: cover; }
.arch figcaption { font: italic 400 clamp(22px, 1.9vw, 32px)/1.2 var(--display); margin-top: .6em; }
.arch:nth-child(1) { grid-column: 1 / 7; } .arch:nth-child(1) .arch__win { height: 74vh; }
.arch:nth-child(2) { grid-column: 7 / 10; margin-top: 22vh; } .arch:nth-child(2) .arch__win { height: 48vh; }
.arch:nth-child(3) { grid-column: 10 / 13; margin-top: 8vh; } .arch:nth-child(3) .arch__win { height: 36vh; }

/* 'Onna Rachele: il nome si apre e lascia la scena alla bottiglia */
.h-onna { position: relative; background: var(--night); color: var(--cream); padding: 14vh var(--gut) 12vh; overflow: clip; text-align: center; }
.h-onna__stage { position: relative; height: 78vh; display: grid; place-items: center; }
.h-onna__stage::before { content: ""; position: absolute; width: 70vh; height: 70vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(199,122,67,.26), rgba(199,122,67,0)); }
.h-onna__bottle { position: relative; z-index: 2; height: 76vh; width: auto; }
.h-onna__name { position: absolute; z-index: 1; inset: 0; display: flex; justify-content: center; align-items: center; gap: 22vh; font: italic 400 clamp(64px, 12vw, 210px)/1 var(--display); pointer-events: none; }
.h-onna__name span:first-child { font-style: normal; }
.h-onna__info { display: grid; justify-items: center; gap: 2.2rem; margin-top: 6vh; }
.h-onna__info p { max-width: 42ch; }
.h-onna .formats { margin: 0; justify-content: center; }

/* Il Classico: la gamma in fila, alla sua scala */
.h-classico { background: var(--paper); color: var(--ink); padding: 18vh var(--gut) 16vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.h-classico h2 { grid-column: 1 / 6; grid-row: 1; align-self: start; font-size: clamp(44px, 5.4vw, 100px); }
.h-classico__text { grid-row: 2; }
.h-classico__text { grid-column: 1 / 5; margin-top: 6vh; }
.h-classico__text p { margin-bottom: 1.2rem; max-width: 32ch; }
.h-classico__text .note { font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 2rem 0; }
.lineup { grid-column: 6 / 13; grid-row: 1 / 3; display: flex; align-items: flex-end; justify-content: space-around; gap: 3vw; height: 72vh; border-bottom: 1px solid rgba(44,28,40,.2); padding-bottom: 0; }
.lineup figure { display: flex; flex-direction: column; align-items: center; position: relative; }
.lineup img { height: var(--h); width: auto; }
.lineup figcaption { position: absolute; top: 100%; margin-top: 1.4rem; white-space: nowrap; text-align: center; font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lineup figcaption b { display: block; font: 500 18px/1.4 var(--mono); color: var(--ink); letter-spacing: 0; }
.live .lineup img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--d) * 140ms); }
.live .lineup.in img { clip-path: inset(0 0 0 0); }

/* Il negozio: indice tipografico, l'immagine segue il puntatore */
.h-shop { padding: 16vh var(--gut) 14vh; position: relative; }
.h-shop h2 { font-size: clamp(54px, 8vw, 140px); margin-bottom: 6vh; }
.shop-list { list-style: none; border-top: 1px solid rgba(243,233,210,.18); }
.shop-list a { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 3vw; padding: 2.6vh 0; border-bottom: 1px solid rgba(243,233,210,.18); text-decoration: none; }
.shop-list b { font: 400 clamp(36px, 5.2vw, 88px)/1 var(--display); transition: transform .6s var(--ease-out); }
.shop-list a:hover b, .shop-list a:focus-visible b { font-style: italic; transform: translateX(1.2vw); }
.shop-list span { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-soft); text-align: right; }
.shop-list em { font: 500 16px/1 var(--mono); font-style: normal; color: var(--cream); min-width: 8ch; text-align: right; }
.shop-list img { display: none; }
.shop-peek { position: fixed; z-index: 30; left: 0; top: 0; height: 42vh; width: auto; pointer-events: none; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 24px 30px rgba(0,0,0,.4)); }
.shop-peek.on { opacity: 1; }

/* Chiusura: il Sannio */
.h-close .next__panel img { object-position: 50% 60%; }
.h-close p.lede { max-width: 40ch; }

@media (max-width: 760px) {
  .h-open { padding-top: calc(var(--bar) + 6vh); min-height: auto; }
  .h-open h1 { font-size: 11.4vw; }
  .h-open h1 .line:nth-child(2) { padding-left: .6em; }
  .still { position: relative; right: auto; bottom: auto; height: 48vh; justify-content: center; margin: 7vh auto 6vh; }
  .h-1949 { padding: 12vh 16px; }
  .h-1949__year { grid-column: 1 / -1; font-size: 30vw; }
  .h-1949__print { position: relative; grid-column: 1 / -1; justify-self: end; left: auto; top: auto; width: 40vw; margin: -6vh 4vw 0 0; }
  .h-1949__text { grid-column: 1 / -1; margin-top: 5vh; }
  .h-mill h2, .h-mill__text { grid-column: 1 / -1; }
  .h-mill__text { margin-top: 4vh; }
  .arch:nth-child(1) { grid-column: 1 / -1; } .arch:nth-child(1) .arch__win { height: 62vh; }
  .arch:nth-child(2) { grid-column: 1 / 7; margin-top: 6vh; } .arch:nth-child(2) .arch__win { height: 32vh; }
  .arch:nth-child(3) { grid-column: 7 / 13; margin-top: 14vh; } .arch:nth-child(3) .arch__win { height: 26vh; }
  .h-onna__stage { height: 66vh; }
  .h-onna__bottle { height: 56vh; }
  .h-onna__name { flex-direction: column; justify-content: space-between; gap: 0; font-size: 19vw; }
  .h-classico h2, .h-classico__text, .lineup { grid-column: 1 / -1; grid-row: auto; }
  .lineup { height: 44vh; margin: 6vh 0 10vh; }
  .shop-list a { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: .6rem 1rem; }
  .shop-list span { grid-column: 1; text-align: left; }
  .shop-list em { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .shop-peek { display: none; }
}

/* ════════════════════════ IL FRANTOIO ════════════════════════ */
/* Apertura: la finestra ad arco si allarga fino a far entrare nel frantoio */
.f-hero { position: relative; height: 200vh; }
.f-hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: clip; }
.f-hero__win { position: absolute; width: 34vw; height: 64vh; border-radius: 50% 50% 0 0 / 30% 30% 0 0; overflow: clip; }
.f-hero__win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 16, .12) 0%, rgba(20, 10, 16, .28) 55%, rgba(20, 10, 16, .62) 100%); pointer-events: none; }
.f-hero__win img { width: 100%; height: 100%; object-fit: cover; }
.f-hero h1 { position: relative; z-index: 2; text-align: center; font-size: clamp(60px, 14.5vw, 250px); text-transform: uppercase; line-height: .86; color: var(--cream); text-shadow: 0 4px 28px rgba(20, 10, 16, .35); }
.f-hero h1 small { display: block; font: italic 400 .32em/1 var(--display); text-transform: none; }
.f-hero__lede { position: absolute; z-index: 2; bottom: 7vh; left: 50%; translate: -50% 0; width: min(90vw, 560px); text-align: center; font: italic 400 clamp(20px, 1.8vw, 28px)/1.3 var(--display); color: var(--cream); text-shadow: 0 2px 18px rgba(20, 10, 16, .65); }
.f-hero h1 .line { display: block; overflow: clip; }
.f-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease-out) forwards; }
.f-hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.calm-static .f-hero, html:not(.live) .f-hero { height: auto; }
html:not(.live) .f-hero__stage { position: relative; min-height: 100svh; }

/* Ieri e oggi: lo stesso riquadro passa dagli anni '70 alla linea attuale */
.f-then { padding-bottom: 6vh; }
.f-then__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 20vh var(--gut) 0; position: relative; z-index: 1; }
.f-then__head h2 { grid-column: 1 / 9; font-size: clamp(52px, 8vw, 140px); }
.f-then__head p { grid-column: 8 / 13; margin-top: 5vh; }
.wipe { position: relative; height: 230vh; view-timeline: --wipe block; }
.wipe__stage { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); display: grid; place-items: center; }
.wipe__frame { position: relative; width: min(78vw, 140vh); aspect-ratio: 1400 / 824; }
.wipe__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe__frame .now { clip-path: inset(0 0 0 100%); }
.wipe__label { position: absolute; bottom: -3.2rem; font: italic 400 clamp(22px, 2vw, 32px) var(--display); }
.wipe__label--then { left: 0; } .wipe__label--now { right: 0; }
html:not(.live) .wipe { height: auto; padding: 6vh var(--gut); }
html:not(.live) .wipe__stage { position: static; height: auto; display: grid; gap: 7vh; }
html:not(.live) .wipe__frame .now { clip-path: none; position: relative; }
html:not(.live) .wipe__frame { aspect-ratio: auto; display: grid; gap: 4.5rem; }
html:not(.live) .wipe__frame img { position: relative; }
html:not(.live) .wipe__label { position: static; display: block; margin-top: -3.6rem; }


/* La frase dell'etichetta */
.f-claim { padding: 20vh var(--gut); text-align: center; }
.f-claim p { font: italic 400 clamp(40px, 6.4vw, 112px)/1.02 var(--display); max-width: 15ch; margin: 0 auto; }
.f-claim .line { display: block; overflow: clip; padding-bottom: .05em; }
.live .f-claim .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.live .f-claim.in .line > span { transform: none; }
.live .f-claim.in .line:nth-child(2) > span { transition-delay: .12s; } .live .f-claim.in .line:nth-child(3) > span { transition-delay: .24s; }

@supports (animation-timeline: view()) {
  .live .f-hero__win { animation: widen linear both; animation-timeline: view(); animation-range: contain 0% contain 70%; }
  @keyframes widen { to { width: 100vw; height: 100vh; border-radius: 0 0 0 0 / 0 0 0 0; } }
  .live .f-hero h1, .live .f-hero__lede { animation: lift-out linear both; animation-timeline: view(); animation-range: contain 30% contain 75%; }
  @keyframes lift-out { to { opacity: 0; translate: 0 -8vh; } }
  .live .f-hero__lede { animation-name: lift-out-c; } @keyframes lift-out-c { to { opacity: 0; translate: -50% -8vh; } }
  .live .wipe__frame .now { animation: wipe linear both; animation-timeline: --wipe; animation-range: contain 15% contain 85%; }
  @keyframes wipe { to { clip-path: inset(0 0 0 0); } }
  .live .arch__win img { animation: unzoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes unzoom { from { scale: 1.16; } to { scale: 1; } }
  .live .h-onna__name span:first-child { animation: part-l linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  .live .h-onna__name span:last-child { animation: part-r linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes part-l { from { translate: 22vh 0; } to { translate: 0 0; } }
  @keyframes part-r { from { translate: -22vh 0; } to { translate: 0 0; } }
  .live .still { animation: still-rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes still-rise { to { translate: 0 -10vh; } }
}

@media (max-width: 760px) {
  .f-hero__win { width: 70vw; height: 52vh; }
  .f-hero h1 { font-size: 13.4vw; }
  .f-then__head h2, .f-then__head p { grid-column: 1 / -1; }
  .wipe__frame { width: 92vw; }
  .live .h-onna__name span { translate: none !important; animation: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le date nei titoli: cifre diritte a ottica media, il 4 di Bodoni resta leggibile anche in corsivo */
.num { font-style: normal; font-variation-settings: 'opsz' 28; font-weight: 500; }

/* ════════════════════════ COMMERCIO ════════════════════════ */
:root { --bar-c: 100px; --line: rgba(44,28,40,.18); --line-dark: rgba(243,233,210,.22); --alert: #8a2b2b; }

/* Barra compatta: cambia solo l'elemento fisso; il logo scala in proporzione */
/* Barra compatta: barra e logo cambiano altezza insieme (stessa curva e durata); niente scale, niente sporgenze */
.bar { --bh: var(--bar); height: var(--bh); overflow: clip; transition: height .55s var(--ease); }
.bar__logo img { transition: height .55s var(--ease); }
.bar--compact { --bh: var(--bar-c); }
.bar__cart { justify-self: end; font: inherit; letter-spacing: inherit; text-transform: inherit; display: flex; align-items: center; }
.bar__cart span.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.45); } }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); justify-content: center; }
.btn--solid:hover { background: var(--frame-deep); color: var(--paper); }
.btn--solid[aria-disabled="true"]:hover { background: var(--ink); color: var(--paper); }

/* Carrello laterale */
#cart { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s .7s; }
#cart.open { visibility: visible; transition: none; }
.cart__scrim { position: absolute; inset: 0; background: rgba(33,21,32,.55); opacity: 0; transition: opacity .6s; }
#cart.open .cart__scrim { opacity: 1; }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto; transform: translateX(100%); transition: transform .7s var(--ease); }
#cart.open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: baseline; padding: 30px 28px 22px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font: 400 42px/1 var(--display); }
.cart__lines { overflow-y: auto; padding: 4px 28px; overscroll-behavior: contain; }
.cart__empty { padding: 48px 0; font: italic 400 28px/1.2 var(--display); }
.cart__empty a { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; display: inline-block; margin-top: 1.2rem; }
.cline { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cline img { width: 56px; height: 80px; object-fit: contain; }
.cline b { font: 400 22px/1.1 var(--display); display: block; }
.cline small { display: block; font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: .2rem 0 .7rem; }
.cline__price { font: 500 15px var(--mono); text-align: right; display: grid; gap: .5rem; justify-items: end; }
.cline__price button { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; }
.cart__foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.cart__foot .kicker { color: var(--ink-soft); }
.cart__sub { display: flex; justify-content: space-between; align-items: baseline; font: italic 400 24px var(--display); }
.cart__sub b { font: 500 22px var(--mono); font-style: normal; }
.ship-bar { height: 2px; background: var(--line); }
.ship-bar i { display: block; height: 100%; background: var(--gold-ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }

/* Quantità */
.qty { display: inline-flex; align-items: center; border: 1px solid currentColor; height: 40px; }
.qty button { width: 40px; height: 100%; font: 500 18px/1 var(--mono); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 3ch; border: 0; background: none; color: inherit; text-align: center; font: 500 15px var(--mono); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--l { height: 56px; } .qty--l button { width: 52px; }

/* ── Catalogo ── */
.shop-hero { background: var(--paper); color: var(--ink); padding: calc(var(--bar) + 9vh) var(--gut) 7vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.shop-hero h1 { grid-column: 1 / 9; font-size: clamp(64px, 12.6vw, 220px); }
.shop-hero p { grid-column: 9 / 13; max-width: 34ch; padding-bottom: 2vh; }
.filters { position: sticky; top: var(--bar-c); z-index: 20; background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: 8px; padding: 14px var(--gut); border-block: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters output { margin-left: auto; flex: none; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }

.coll { background: var(--paper); color: var(--ink); padding: 12vh var(--gut) 14vh; scroll-margin-top: calc(var(--bar-c) + 50px); }
.coll[hidden] { display: none; }
.coll--tint { background: var(--paper-2); }
.coll--night { background: var(--night); color: var(--cream); }
.coll__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-bottom: 9vh; }
.coll__head h2 { grid-column: 1 / 8; font-size: clamp(48px, 7.2vw, 124px); }
.coll__head p { grid-column: 9 / 13; align-self: end; max-width: 34ch; }
.objs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10vh 24px; align-items: end; }
.obj { grid-column: var(--col, span 4); display: grid; }
.obj__img { display: flex; align-items: flex-end; justify-content: center; height: var(--h, 52vh); border-bottom: 1px solid var(--line); text-decoration: none; }
.coll--night .obj__img { border-color: var(--line-dark); }
.obj__img img { max-height: 100%; max-width: 100%; width: auto; transition: transform .9s var(--ease-out); }
.obj__img:hover img, .obj__img:focus-visible img { transform: translateY(-1.4vh); }
.obj__img--print img { height: 100%; width: 100%; object-fit: cover; }
.obj__body { padding-top: 20px; display: grid; gap: 10px; }
.obj h3 { font: 400 clamp(30px, 2.6vw, 46px)/1.02 var(--display); }
.obj h3 a { text-decoration: none; }
.obj h3 a:hover, .obj h3 a:focus-visible { font-style: italic; }
.obj__spec { font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.coll--night .obj__spec { color: var(--cream-soft); }
.obj__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.obj__buy select { font: 500 13px var(--mono); color: inherit; background: transparent; border: 1px solid currentColor; height: 40px; padding: 0 34px 0 12px; appearance: none; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.obj__buy select option { color: var(--ink); }
.obj__price { font: 500 18px var(--mono); min-width: 7ch; }
.obj__buy .add-q { height: 40px; padding: 0 18px; border: 1px solid currentColor; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s; }
.obj__buy .add-q:hover { background: var(--ink); color: var(--paper); }
.coll--night .obj__buy .add-q:hover { background: var(--cream); color: var(--ink); }
.live .obj__img img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease), transform .9s var(--ease-out); }
.live .obj.in .obj__img img { clip-path: inset(0); }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }

/* ── Scheda prodotto ── */
.pdp { background: var(--paper); color: var(--ink); }
.pdp--night { background: var(--night); color: var(--cream); }
.pdp__hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pdp__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: calc(var(--bar) + 3vh) 3vw 5vh; overflow: clip; }
.pdp__stage .main { max-height: 78vh; max-width: 100%; width: auto; transition: opacity .45s; }
.pdp__stage .main.swap { opacity: 0; }
.pdp__stage--print .main { max-height: 70vh; background: #fbf7ef; padding: 12px; box-shadow: 0 30px 60px -20px rgba(44,28,40,.35); }
.thumbs { position: absolute; left: 3vw; bottom: 5vh; display: flex; gap: 8px; }
.thumbs button { width: 64px; height: 64px; border: 1px solid var(--line); background: #fbf7ef; padding: 4px; opacity: .6; transition: opacity .3s; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: currentColor; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp--night .thumbs button { background: #15110f; border-color: var(--line-dark); }
.pdp__buy { padding: calc(var(--bar) + 8vh) var(--gut) 12vh 2vw; display: grid; align-content: start; gap: 22px; }
.crumbs { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: flex; gap: .8em; color: var(--ink-soft); }
.pdp--night .crumbs { color: var(--cream-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.pdp h1 { font-size: clamp(50px, 5.4vw, 96px); }
.pdp__sub { font: italic 400 clamp(22px, 1.8vw, 28px)/1.25 var(--display); margin-top: -8px; }
.pdp__price { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; padding-top: 6px; }
.pdp__price b { font: 500 32px var(--mono); }
.pdp__price span { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.pdp--night .pdp__price span { color: var(--cream-soft); }
.opt { border: 0; display: grid; gap: 10px; min-width: 0; }
.opt legend { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label { display: grid; gap: 4px; padding: 12px 16px; min-width: 88px; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.pdp--night .opt label { border-color: var(--line-dark); }
.opt label b { font: 400 22px/1 var(--display); }
.opt label small { font: 500 11px var(--mono); letter-spacing: .04em; opacity: .75; }
.opt label:hover { border-color: currentColor; }
.opt input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pdp--night .opt input:checked + label { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.opt input:focus-visible + label { outline: 1px solid currentColor; outline-offset: 3px; }
.opt input:disabled + label { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.opt--swatch label { grid-template-columns: 34px auto; align-items: center; gap: 12px; }
.opt--swatch label img { width: 34px; height: 34px; object-fit: cover; }
.buyrow { display: flex; gap: 12px; align-items: stretch; }
.add { flex: 1; min-height: 56px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: background .3s; }
.add:hover { background: var(--frame-deep); }
.pdp--night .add { background: var(--cream); color: var(--ink); }
.pdp--night .add:hover { background: #fff; }
.add:disabled { opacity: .45; cursor: not-allowed; }
.stock { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; display: flex; gap: .6em; align-items: center; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4e5a17; }
.stock--out { color: var(--alert); } .stock--out::before { background: var(--alert); }
.pdp--night .stock::before { background: #a8b860; }
.pdp--night .stock--out { color: #e8a7a0; }
.note { font: 500 12px/1.7 var(--mono); letter-spacing: .04em; color: var(--ink-soft); }
.pdp--night .note { color: var(--cream-soft); }
.pdp details { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.pdp--night details { border-color: var(--line-dark); }
.pdp details:last-of-type { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.pdp--night details:last-of-type { border-color: var(--line-dark); }
.pdp summary { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp summary::after { content: "+"; } .pdp details[open] summary::after { content: "–"; }
.pdp summary::-webkit-details-marker { display: none; }
.pdp details > div { padding: 14px 0 8px; display: grid; gap: .8em; max-width: 46ch; }
.pdp details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; }
.pdp details dt { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.pending { font: italic 400 16px var(--display); opacity: .8; }
.sku { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }   /* contrasto AA: niente opacità */
.pdp--night .sku { color: var(--cream-soft); }

/* Barra d'acquisto mobile: compare quando il pulsante principale esce dallo schermo */
.buybar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease); }
.pdp--night ~ .buybar, .buybar--night { background: #15110f; color: var(--cream); border-color: var(--line-dark); }
.buybar.on { transform: none; }
.buybar b { font: 500 18px var(--mono); }
.buybar small { display: block; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.buybar .add { min-height: 48px; }

/* Registro 'Onna Rachele: luce radente sulla bottiglia reale */
.lit { position: relative; display: inline-block; line-height: 0; }
.lit img { max-height: 78vh; width: auto; }
.lit__glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 0 42%, rgba(255,236,206,.0) 44%, rgba(255,236,206,.55) 50%, rgba(255,236,206,0) 56%, transparent 58%);
  background-size: 300% 100%; background-position: var(--lx, 120%) 0;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; transition: background-position .9s var(--ease-out); }
.pdp__stage--night::before { content: ""; position: absolute; width: 80vh; height: 80vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(199,122,67,.24), rgba(199,122,67,0)); }
.pdp__stage--night > :not(.thumbs) { position: relative; }

/* Racconto sotto la scheda */
.pstory { position: relative; }
.pstory--still { min-height: 100svh; display: grid; background: var(--night); color: var(--cream); overflow: clip; }
.pstory--still > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 27% 50%; }
.pstory--still > div { position: relative; align-self: center; margin-left: auto; width: min(42vw, 560px); padding: 12vh var(--gut); }
.pstory--still h2 { font-size: clamp(48px, 6.4vw, 108px); margin-bottom: .4em; }
.pstory--facts { background: var(--paper-2); color: var(--ink); padding: 16vh var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.pstory--facts figure { grid-column: 1 / 7; margin: 0; }
.pstory--facts ul { grid-column: 8 / 13; list-style: none; display: grid; gap: .5em; font: italic 400 clamp(30px, 3.4vw, 56px)/1.05 var(--display); }
.pstory--facts p { grid-column: 8 / 13; margin-top: 4vh; }
.pstory--more { background: var(--paper); color: var(--ink); padding: 14vh var(--gut); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.pstory--more.pstory--dark { background: var(--frame); color: var(--cream); }
.pstory--more h2 { grid-column: 1 / 7; font-size: clamp(44px, 5.6vw, 96px); }
.pstory--more > div { grid-column: 8 / 13; display: grid; gap: 1.4rem; justify-items: start; }
.pstory--more img.side { grid-column: 8 / 13; max-height: 60vh; width: auto; justify-self: center; }
.related { background: var(--paper); color: var(--ink); padding: 14vh var(--gut); }
.related h2 { font-size: clamp(40px, 4.8vw, 80px); margin-bottom: 8vh; }

@media (max-width: 760px) {
  :root { --bar-c: 76px; }
  .cart__panel { width: 100vw; }
  .shop-hero { padding-top: calc(var(--bar) + 6vh); }
  .shop-hero h1, .shop-hero p { grid-column: 1 / -1; }
  .shop-hero p { margin-top: 3vh; }
  .filters { padding: 12px 16px; }
  .filters output { display: none; }
  .coll { padding: 9vh 16px 10vh; }
  .coll__head h2, .coll__head p { grid-column: 1 / -1; }
  .coll__head p { margin-top: 2vh; }
  .objs { gap: 8vh 16px; }
  .obj { grid-column: 1 / -1; }
  .obj__img { height: var(--hm, 46vh); }
  .pdp__hero { grid-template-columns: 1fr; }
  .pdp__stage { position: relative; height: auto; min-height: 66svh; padding: calc(var(--bar) + 3vh) 16px 4vh; }
  .pdp__stage .main, .lit img { max-height: 54svh; }
  .thumbs { position: static; margin-top: 3vh; justify-content: center; }
  .pdp__stage { grid-template-rows: 1fr auto; }
  .pdp__buy { padding: 4vh 16px 10vh; }
  .buybar { display: flex; }
  .pstory--still { min-height: auto; }
  .pstory--still > img { position: relative; height: 64svh; }
  .pstory--still > div { width: auto; margin: 0; padding: 6vh 16px 10vh; }
  .pstory--facts figure, .pstory--facts ul, .pstory--facts p, .pstory--more h2, .pstory--more > div, .pstory--more img.side { grid-column: 1 / -1; }
  .pstory--facts ul { margin-top: 5vh; }
  .pstory--more > div { margin-top: 4vh; }
  .related { padding: 10vh 16px; }
}
@media (prefers-reduced-motion: reduce) { .bar, .bar__logo img, .cart__panel, .cart__scrim, .buybar, .lit__glint { transition: none; } }
.pdp:not(.pdp--night) .pdp__stage:not(.pdp__stage--print) .main { filter: drop-shadow(0 34px 28px rgba(44,28,40,.16)); }   /* ombra di appoggio, il prodotto resta intatto */
.pnum { font: 500 .86em var(--mono); white-space: nowrap; }   /* il simbolo € di Bodoni nel corpo testo sembra una C */
@media (max-width: 760px) { .pdp ~ .foot { padding-bottom: calc(4vh + 80px); } }
.add-error { font: 500 12px/1.6 var(--mono); color: var(--alert); margin-top: -10px; }
.add-error:empty { display: none; }
.pdp--night .add-error { color: #e8a7a0; }

/* ── Leggibilità dei componenti condivisi (2026-11-23): barra, carrello, piè di pagina.
   Pubblico anche di mezza età: prezzi in Bodoni a grandezza di lettura, etichette mono ≥ 13px, pulsanti ≥ 52px.
   Limitato a .bar / .cart / .foot: il contenuto della Storia non cambia. ── */
.bar { font-size: 13px; letter-spacing: .12em; }
.bar__cart span { width: 22px; height: 22px; font-size: 12px; }
.cart__head .kicker { font-size: 13px; }
.cart .cline b { font-size: 23px; }
.cart .cline small { font: 400 17px/1.4 var(--display); letter-spacing: 0; text-transform: none; }
.cart .cline__price { font: 400 22px/1.1 var(--display); }
.cart .cline__price button { font: 500 12px var(--mono); letter-spacing: .08em; }
.cart .qty { height: 44px; } .cart .qty button { width: 44px; } .cart .qty input { font-size: 17px; }
.cart__foot .kicker { font: 400 17px/1.4 var(--display); letter-spacing: 0; text-transform: none; }
.cart__sub { font-size: 26px; } .cart__sub b { font: 400 30px var(--display); }
.cart__empty a { font-size: 14px; letter-spacing: .1em; }
.cart .btn { min-height: 56px; justify-content: center; font-size: 14px; letter-spacing: .1em; }
.cart__head .kicker { letter-spacing: .1em; }

/* «Negozio» accanto a «Carrello» nella barra, solo da desktop */
.bar__end { justify-self: end; display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.bar__shop { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding: 4px 0; }
.bar__shop:hover, .bar__shop:focus-visible, .bar__shop[aria-current] { background-size: 100% 1px; }
@media (max-width: 760px) { .bar__shop { display: none; } }
