/* BREMAWOOD · SITO 2 «alla DOH» (3/12/2026)
   Primo tempo: un palco fermo dove i pezzi veri volano a scorrimento (volo.js). Secondo tempo: il sito serio (serio.js).
   Colori: bianco, bruno del marchio #5D4B3F, sabbia #CABAA0; il rosso vino #6E1F2B solo per la terza riga del titolo, la frase
   delle botti e i passi. Niente sfocature ne' ombre grandi su quello che scorre. */
:root { --lato: clamp(18px, 5vw, 84px); --crema: #F7F1E8; --scuro: #2A211B; }
html { background: var(--sabbia); }
body { font-family: var(--bastone); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--inchiostro); background: var(--sabbia); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.salta { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--inchiostro); color: var(--carta); padding: 12px 18px; }
.salta:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; }

/* ---------- i bottoni ---------- */
.bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent;
  font-family: var(--bastone); font-weight: 600; font-size: 14px; line-height: 1.15; letter-spacing: .02em; text-decoration: none; text-align: center; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.bottone.pieno { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--carta); }
.bottone.vino { background: var(--vino); border-color: var(--vino); color: var(--carta); }
.bottone.chiaro { color: var(--crema); }
.bottone.chiaro.pieno { background: var(--crema); border-color: var(--crema); color: var(--scuro); }
@media (hover: hover) {
  .bottone:hover { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--carta); }
  .bottone.pieno:hover { background: var(--vino); border-color: var(--vino); color: var(--carta); }
  .bottone.chiaro:hover { background: var(--crema); border-color: var(--crema); color: var(--scuro); }
  .bottone.chiaro.pieno:hover, .bottone.vino:hover { background: transparent; color: var(--crema); border-color: var(--crema); }
}

/* ---------- la testata: tre pillole bianche, si leggono su ogni fondo ---------- */
.testa { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 68px; padding: 0 var(--lato); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--inchiostro); pointer-events: none; }
.testa > * { pointer-events: auto; }
.testa-marchio { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--carta); }
.testa-marchio img { width: 96px; height: auto; }
.testa-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--carta); }
.testa-nav a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.testa-destra { display: flex; align-items: center; gap: 8px; }
.testa-wa { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--vino); color: var(--carta); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--carta); }
.testa-wa svg { width: 22px; height: 22px; flex: none; }
.testa-wa .wa-corto { display: none; }
/* l'anello che pulsa: solo trasformazione e trasparenza */
.testa-wa::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--carta); opacity: 0; animation: anello 2.6s ease-out infinite; pointer-events: none; }
@keyframes anello { 0% { transform: scale(.96); opacity: .7; } 70%, 100% { transform: scale(1.14); opacity: 0; } }
.testa-menu { display: none; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--carta); font-size: 14px; font-weight: 600; }
@media (hover: hover) { .testa-nav a:hover { background: var(--sabbia); } .testa-wa:hover { background: var(--inchiostro); } }
@media (max-width: 1080px) {
  .testa-menu { display: inline-block; }
  .testa-nav { position: absolute; left: var(--lato); right: var(--lato); top: 64px; flex-direction: column; gap: 0; padding: 8px; border-radius: 22px; box-shadow: 0 10px 30px rgba(42, 33, 27, .18);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .testa-nav.aperto { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .testa-nav a { padding: 14px 16px; font-size: 16px; }
}
@media (max-width: 560px) {
  .testa { height: 62px; padding: 0 12px; gap: 8px; }
  .testa-marchio { height: 42px; padding: 0 12px; } .testa-marchio img { width: 84px; }
  .testa-wa { height: 42px; padding: 0 14px 0 10px; gap: 6px; } .testa-wa .wa-lungo { display: none; } .testa-wa .wa-corto { display: inline; }
  .testa-menu { height: 42px; padding: 0 14px; }
  .testa-nav { top: 58px; left: 12px; right: 12px; }
}

/* =====================================================================================================================================
   PRIMO TEMPO · IL PALCO
   ===================================================================================================================================== */
.volo { position: relative; height: 1440vh; height: 1440svh; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--inchiostro); }
.fondo { position: absolute; inset: 0; background: var(--sabbia); pointer-events: none; overflow: hidden; }
.fondo i { position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.fondo i.pieno { inset: 0; border-radius: 0; }

/* le righe: una fessura, la scritta entra dal basso e esce in alto */
.riga { display: block; overflow: hidden; }
.riga > span { display: block; }
.js .palco .riga > span { transform: translateY(112%); will-change: transform; }

.gigante { position: absolute; left: var(--lato); top: clamp(86px, 12svh, 130px); font-family: var(--titoli); font-weight: 800; font-size: min(14.4vw, 23svh); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; color: var(--inchiostro); }
.gigante .riga { padding: .02em .04em .05em 0; margin-bottom: -.05em; }
.gigante .vino { color: var(--vino); }

.pezzi { position: absolute; inset: 0; pointer-events: none; }
.pavimento { position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: rgba(93, 75, 63, .38); opacity: 0; will-change: opacity; pointer-events: none; }
.pz { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; opacity: 0; }
.pz img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; }
.pz .ombra { position: absolute; left: 6%; right: 6%; bottom: -3.5%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 33, 27, .34), rgba(42, 33, 27, .12) 60%, rgba(42, 33, 27, 0)); }
.pz .olio { position: absolute; inset: 0; overflow: hidden; will-change: transform; transform: translateX(-100%); }
.pz .olio img { will-change: transform; transform: translateX(100%); }
.pz .lama { position: absolute; inset: 0; overflow: hidden; -webkit-mask: url(volo/sgabello-sagoma.webp) center / 100% 100% no-repeat; mask: url(volo/sgabello-sagoma.webp) center / 100% 100% no-repeat; opacity: 0; will-change: opacity; }
.pz .lama i { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; margin-left: -11%; background: linear-gradient(90deg, rgba(255, 244, 222, 0), rgba(255, 244, 222, .8) 50%, rgba(255, 244, 222, 0)); will-change: transform; }
html:not(.js) .pz[data-k="sgabello"] { opacity: 1; }

.bollino { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: var(--vino); color: var(--carta); display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--titoli); font-weight: 700; font-size: 24px; line-height: 1; transform: rotate(-12deg); will-change: opacity; }

/* l'apertura */
.ap { position: absolute; left: var(--lato); bottom: 7svh; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 40vw; }
.ap-occ { font-size: clamp(17px, 1.35vw, 21px); font-weight: 600; line-height: 1.3; max-width: 24em; }
.ap-bottoni { display: flex; flex-wrap: wrap; gap: 10px; }

/* i nastri dei legni */
.nastri { position: absolute; inset: 0; pointer-events: none; }
.nastro { position: absolute; left: 0; right: 0; top: 50%; margin-top: -.68em; padding: .14em 0; font-family: var(--titoli); font-weight: 800; font-size: min(17vw, 30svh); line-height: 1.1; white-space: nowrap; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: -.03em; }
.nastro b { display: inline-block; font-weight: inherit; will-change: transform; }

/* il carosello */
.ca-titolo { position: absolute; left: var(--lato); top: clamp(84px, 12svh, 122px); font-family: var(--titoli); font-weight: 600; font-size: clamp(28px, 3vw, 48px); line-height: 1.08; }
.ca-nomi li { position: absolute; left: var(--lato); bottom: clamp(26px, 5svh, 52px); pointer-events: none; }
.ca-nomi h3 { font-family: var(--titoli); font-weight: 700; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; padding-bottom: .08em; }
.ca-nomi p { font-size: 16px; font-weight: 600; margin-top: 4px; }
.ca-pallini { position: absolute; left: 50%; bottom: clamp(34px, 6svh, 60px); transform: translateX(-50%); display: flex; gap: 24px; align-items: center; opacity: 0; will-change: opacity; }
.ca-pallini li { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; }
.ca-pallini .pallino { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ca-pallini li i { position: absolute; inset: -1.5px; border-radius: 50%; background: currentColor; opacity: 0; }
.ca-chiedi { position: absolute; right: var(--lato); bottom: clamp(22px, 4.5svh, 46px); opacity: 0; will-change: opacity; }

/* l'azione: la finitura */
.az { position: absolute; left: var(--lato); top: 50%; transform: translateY(-50%); max-width: 40vw; display: grid; color: var(--crema); }
.az-g { grid-area: 1 / 1; align-self: center; }
.az .az-t { font-family: var(--titoli); font-weight: 700; font-size: clamp(42px, 5.6vw, 96px); line-height: .98; padding-bottom: .1em; letter-spacing: -.02em; }
.az .az-s { font-size: clamp(17px, 1.4vw, 22px); font-weight: 600; margin-top: 12px; }

/* le lavorazioni, alla Ferralto */
.fe { position: absolute; inset: 0; color: var(--crema); pointer-events: none; }
.fe-quadro { position: absolute; left: 50%; top: 50%; border-radius: 22px; overflow: hidden; background: var(--scuro); opacity: 0; will-change: transform, opacity; }
.fe-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.fe-quadro::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(42, 33, 27, 0), rgba(42, 33, 27, .72)); pointer-events: none; }
.fe-occ { position: absolute; left: var(--lato); top: clamp(88px, 12.5svh, 126px); font-family: var(--titoli); font-weight: 600; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.1; max-width: calc((100vw - 58vw) / 2 - var(--lato) - 16px); }
.fe-parole li { position: absolute; left: var(--fe-l, 40px); bottom: var(--fe-b, 120px); max-width: var(--fe-w, 40vw); text-shadow: 0 2px 16px rgba(42, 33, 27, .6); }
.fe-parole h3 { font-family: var(--titoli); font-weight: 700; font-size: clamp(44px, 5.4vw, 92px); line-height: 1; padding-bottom: .08em; letter-spacing: -.02em; }
.fe-parole p { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; margin-top: 8px; }
.fe-conta { position: absolute; right: var(--lato); top: clamp(88px, 12.5svh, 126px); display: flex; align-items: baseline; gap: 6px; font-family: var(--titoli); font-weight: 600; opacity: 0; will-change: opacity; }
.fe-conta span { position: relative; display: inline-block; width: 1.25em; height: 1em; font-size: clamp(40px, 4vw, 64px); line-height: 1; }
.fe-conta span b { position: absolute; left: 0; top: 0; font-weight: inherit; opacity: 0; }
.fe-conta i { font-style: normal; font-size: 20px; opacity: .7; }
.fe-riga { position: absolute; left: var(--lato); right: var(--lato); bottom: clamp(36px, 6.5svh, 64px); height: 2px; background: rgba(247, 241, 232, .22); opacity: 0; will-change: opacity; }
.fe-riga i { position: absolute; inset: 0; background: var(--crema); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

/* il palco in piedi: telefono e tavoletta in verticale */
@media (max-width: 860px) {
  .gigante { left: 16px; top: 74px; font-size: min(22vw, 11.5svh); }
  .ap { left: 16px; right: 16px; bottom: max(16px, 2.6svh); max-width: none; gap: 10px; }
  .ap-occ { font-size: 16px; }
  .ap-bottoni .bottone { padding: 0 18px; font-size: 14px; min-height: 46px; }
  .bollino { width: 84px; height: 84px; font-size: 18px; }
  .ca-titolo { left: 16px; right: 16px; top: 74px; font-size: clamp(24px, 7vw, 34px); }
  .ca-nomi li { left: 16px; right: 16px; bottom: 92px; text-align: center; }
  .ca-nomi h3 { font-size: clamp(24px, 7vw, 34px); }
  .ca-pallini { bottom: auto; top: 144px; }
  .ca-chiedi { right: auto; left: 50%; transform: translateX(-50%); bottom: max(18px, 3svh); }
  .nastro { font-size: min(30vw, 22svh); }
  .az { left: 16px; right: 16px; top: 76px; transform: none; max-width: none; text-align: center; }
  .az .az-t { font-size: clamp(34px, 10vw, 60px); }
  .az .az-s { font-size: 16px; margin-top: 6px; }
  .fe-occ { left: 16px; top: 74px; font-size: 20px; max-width: 58vw; }
  .fe-conta { right: 16px; top: 70px; }
  .fe-conta span { font-size: 40px; }
  .fe-parole h3 { font-size: clamp(36px, 10vw, 54px); }
  .fe-parole h3 { font-size: clamp(38px, 11vw, 60px); }
  .fe-parole p { font-size: 16px; }
  .fe-riga { left: 16px; right: 16px; bottom: 40px; }
}

/* =====================================================================================================================================
   SECONDO TEMPO · IL SITO
   ===================================================================================================================================== */
.scegli { position: relative; z-index: 2; }
.frase, .passi, .video, .stampa, .piede { position: relative; z-index: 4; }

/* la scheda: fondo scuro come le lavorazioni, niente linea */
.scegli { background: var(--scuro); color: var(--crema); height: 330vh; height: 330svh; }
.sg-fermo { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px var(--lato) 4svh; }
.sg-testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; margin-bottom: clamp(16px, 3svh, 34px); }
.sg-testa h2, .passi h2, .video h2, .stampa h2, .domande h2 { font-family: var(--titoli); font-weight: 700; font-size: clamp(40px, 5.2vw, 84px); line-height: .98; letter-spacing: -.02em; }
.sg-testa h2 span { display: block; color: var(--sabbia); }
.sg-sotto { font-size: 18px; max-width: 26em; }
.sg-carta { contain: layout paint; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); border-radius: 26px; overflow: hidden; background: var(--carta); color: var(--inchiostro); max-height: 64svh; }
.sg-foto { position: relative; background: var(--tinta, #E3BA7D); display: flex; align-items: center; justify-content: center; padding: clamp(14px, 2.4vw, 36px); min-height: 0; }
.sg-foto img { width: 100%; height: 100%; max-height: calc(64svh - 2 * clamp(14px, 2.4vw, 36px)); max-width: 540px; object-fit: cover; border-radius: 16px; }
.sg-foto img.cambia { opacity: 0; }
.sg-num { position: absolute; left: 14px; top: 12px; font-family: var(--titoli); font-weight: 700; font-size: 20px; line-height: 1; padding: 7px 11px 8px; border-radius: 999px; background: var(--carta); font-variant-numeric: lining-nums; }
.sg-lato { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2.4vw, 34px); min-width: 0; overflow: auto; }
.sg-elenco { border-top: 1px solid rgba(93, 75, 63, .18); }
.sg-elenco button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 50px; padding: 6px 14px 6px 0; border: 0; border-bottom: 1px solid rgba(93, 75, 63, .18); background: transparent; text-align: left;
  font-family: var(--titoli); font-weight: 600; font-size: clamp(22px, 2vw, 32px); line-height: 1.05; }
.sg-elenco button::after { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--tinta, transparent); border: 1px solid rgba(93, 75, 63, .3); }
.sg-elenco button { padding-left: 14px; }
.sg-elenco button[aria-current="true"] { background: var(--tinta, var(--sabbia)); }
.sg-scelta { margin-top: 16px; }
.sg-scelta h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sg-scelta p { font-size: 16px; line-height: 1.45; margin-top: 6px; max-width: 34em; min-height: 2.9em; }
.sg-scelta .bottone { margin-top: 12px; background: var(--inchiostro); border-color: var(--inchiostro); color: var(--carta); }
.sg-allaga, .sg-ponte { position: fixed; left: 0; top: 0; width: 0; height: 0; overflow: visible; visibility: hidden; z-index: 5; pointer-events: none; }
.sg-allaga img, .sg-ponte img { position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; transform-origin: 0 0; will-change: transform; }
html.ponte-scheda #fe-quadro, html.ponte-scheda .fe-parole, html.ponte-scheda .fe-riga, html.ponte-scheda .fe-conta, html.ponte-scheda .fe-occ, html.ponte-scheda .pz[data-k="sgabello"] { visibility: hidden !important; }
html.ponte-scheda #sg-img, html.ponte-frase #fr-img { opacity: 0; }
html.ponte-pieno .scegli { background: var(--vino); }
html.ponte-pieno .sg-fermo { visibility: hidden; }
@media (max-width: 860px) {
  .sg-fermo { padding: 72px 14px 14px; justify-content: flex-start; }
  .sg-testa { margin-bottom: 12px; }
  .sg-testa h2 { font-size: clamp(32px, 9vw, 46px); }
  .sg-sotto { font-size: 16px; }
  .sg-carta { grid-template-columns: minmax(0, 1fr); max-height: none; border-radius: 20px; }
  .sg-foto { height: 30svh; padding: 10px; }
  .sg-foto img { max-height: none; height: 100%; width: auto; max-width: 100%; }
  .sg-lato { padding: 12px 14px 14px; }
  .sg-elenco { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .sg-elenco li { flex: none; }
  .sg-elenco button { min-height: 40px; width: auto; padding: 0 12px; border: 1px solid rgba(93, 75, 63, .3); border-radius: 999px; font-family: var(--bastone); font-size: 14px; font-weight: 600; }
  .sg-elenco button::after { display: none; }
  .sg-elenco button[aria-current="true"] { padding-left: 12px; }
  .sg-scelta { margin-top: 10px; }
  .sg-scelta p { font-size: 15px; min-height: 0; }
  .sg-scelta .bottone { width: 100%; }
}
@media (max-width: 860px) and (max-height: 700px) { .sg-foto { height: 24svh; } .sg-sotto { display: none; } }

/* la frase sul vino */
.frase { background: var(--vino); color: var(--crema); min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: 100px var(--lato) 60px; overflow: hidden; }
.fr-occ { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sabbia); }
.frase h2 { font-family: var(--titoli); font-weight: 700; font-size: clamp(36px, 4.2vw, 74px); line-height: 1; letter-spacing: -.02em; margin-top: 18px; }
.frase h2 em { font-style: normal; color: var(--sabbia); }
.fr-firma { font-size: 16px; font-weight: 600; margin-top: 18px; opacity: .85; }
.fr-riga { font-size: 18px; line-height: 1.45; margin-top: 18px; max-width: 30em; }
.fr-foto { justify-self: center; width: min(46vw, 82svh * 1.145); }
.fr-foto img { width: 100%; height: auto; border-radius: 18px; }
.fr-bollino { position: absolute; right: calc(var(--lato) * .6); top: 96px; width: 118px; height: 118px; border-radius: 50%; background: var(--sabbia); color: var(--vino); display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--titoli); font-weight: 700; font-size: 20px; line-height: 1.05; transform: rotate(10deg); }
@media (max-width: 860px) {
  .frase { grid-template-columns: minmax(0, 1fr); padding: 86px 16px 40px; gap: 26px; align-content: center; }
  .frase h2 { font-size: clamp(32px, 9vw, 48px); }
  .fr-riga { font-size: 16px; }
  .fr-foto { width: 100%; max-width: 520px; }
  .fr-bollino { display: none; }
}

/* i passi: quattro carte che si impilano, sul vino */
.passi { background: var(--vino); color: var(--crema); padding: 40px var(--lato) clamp(40px, 8svh, 90px); }
.passi h2 span { display: block; color: var(--sabbia); }
.pa-fermo { display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.pa-lato { position: sticky; top: 110px; }
.pa-elenco { margin-top: clamp(18px, 4svh, 40px); }
.pa-elenco li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(247, 241, 232, .2); font-size: 18px; font-weight: 600; opacity: .5; transition: opacity .3s; }
.pa-elenco li.qui { opacity: 1; }
.pa-elenco i { font-family: var(--titoli); font-style: normal; font-weight: 700; font-size: 20px; font-variant-numeric: lining-nums; }
.pa-carta { position: sticky; top: 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(18px, 3vw, 44px); min-height: min(64svh, 540px);
  padding: clamp(22px, 3vw, 40px); border-radius: 26px; background: var(--carta); color: var(--inchiostro); margin-bottom: 22svh; }
.pa-carta.c2 { top: 126px; background: var(--sabbia); }
.pa-carta.c3 { top: 142px; background: #F1E4CF; }
.pa-carta.c4 { top: 158px; background: var(--crema); margin-bottom: 6svh; }
.pa-num { grid-column: 1; font-family: var(--titoli); font-weight: 700; font-size: clamp(54px, 6vw, 96px); line-height: .9; font-variant-numeric: lining-nums; color: var(--vino); }
.pa-carta h3 { grid-column: 1; font-family: var(--titoli); font-weight: 700; font-size: clamp(32px, 3.6vw, 58px); line-height: 1; margin-top: 12px; letter-spacing: -.01em; }
.pa-carta p:not(.pa-num) { grid-column: 1; font-size: 17px; line-height: 1.45; margin-top: 12px; max-width: 22em; }
.pa-carta img { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; width: 100%; max-width: 480px; height: auto; max-height: calc(min(64svh, 540px) - 2 * clamp(22px, 3vw, 40px)); object-fit: cover; border-radius: 18px; }
@media (max-width: 860px) {
  .passi { padding: 20px 14px 30px; }
  .pa-fermo { grid-template-columns: minmax(0, 1fr); }
  .passi h2 { font-size: clamp(32px, 9vw, 46px); }
  .pa-lato { position: static; }
  .pa-elenco { display: none; }
  .pa-pila { margin-top: 20px; }
  .pa-carta { top: 74px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; min-height: 0; height: min(76svh, 600px); padding: 18px; border-radius: 22px; margin-bottom: 26svh; }
  .pa-carta.c2 { top: 84px; } .pa-carta.c3 { top: 94px; } .pa-carta.c4 { top: 104px; }
  .pa-num { font-size: 42px; }
  .pa-carta h3 { font-size: clamp(28px, 8vw, 40px); margin-top: 4px; }
  .pa-carta p:not(.pa-num) { font-size: 16px; margin-top: 8px; }
  .pa-carta img { grid-column: 1; grid-row: 4; justify-self: center; align-self: center; margin-top: 12px; width: auto; max-width: 100%; max-height: calc(min(76svh, 600px) - 230px); border-radius: 14px; }
}

/* il video, un pannello che sale come nel reel */
.video { background: var(--sabbia); display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: clamp(80px, 12svh, 130px) var(--lato); border-radius: 28px 28px 0 0; margin-top: -28px; }
.video h2 span { display: block; color: var(--vino); }
.vi-riga { font-size: 19px; line-height: 1.45; margin-top: 18px; max-width: 26em; }
.vi-nota { font-size: 15px; margin-top: 16px; }

.telefono { justify-self: center; width: min(340px, 26vw, 40svh); }
.vi-quadro { position: relative; display: block; }
.telefono video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 30px; border: 7px solid var(--scuro); background: var(--scuro) center / cover no-repeat; object-fit: cover; }
.vi-bottoni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vi-via { position: absolute; right: 14px; top: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--carta); color: var(--inchiostro); display: flex; align-items: center; justify-content: center; }
.vi-via svg { width: 20px; height: 20px; margin-left: 2px; }
@media (max-width: 860px) {
  .video { grid-template-columns: minmax(0, 1fr); padding: 60px 16px 50px; border-radius: 22px 22px 0 0; }
  .video h2 { font-size: clamp(32px, 9vw, 46px); }
  .vi-riga { font-size: 16px; }
  .telefono { width: min(300px, 62vw, 56svh); }
  .telefono video { border-radius: 22px; border-width: 5px; }
}

/* la stampa e le domande: pannello bianco */
.stampa { background: var(--carta); padding: clamp(70px, 12svh, 120px) var(--lato); border-radius: 28px 28px 0 0; margin-top: -28px; }
.st-voci { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(20px, 4svh, 40px); }
.st-voci li { padding: 22px; border-radius: 22px; background: var(--crema); display: flex; flex-direction: column; gap: 6px; }
.st-sigla { width: 52px; height: 52px; border-radius: 50%; background: var(--inchiostro); color: var(--carta); display: flex; align-items: center; justify-content: center; font-family: var(--titoli); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.st-testata { font-weight: 700; font-size: 17px; }
.st-data { font-size: 14px; opacity: .8; }
.st-tit { font-family: var(--titoli); font-weight: 600; font-size: 21px; line-height: 1.2; margin-top: 4px; }
.domande { margin-top: clamp(40px, 8svh, 80px); max-width: 980px; }
.domande h2 { font-size: clamp(32px, 3.6vw, 56px); margin-bottom: 14px; }
.domande details { border-bottom: 1px solid rgba(93, 75, 63, .2); }
.domande summary { cursor: pointer; padding: 16px 0; font-family: var(--titoli); font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: '+'; font-family: var(--bastone); font-weight: 500; }
.domande details[open] summary::after { content: '−'; }
.domande details p { padding: 0 0 18px; font-size: 17px; line-height: 1.5; max-width: 44em; }
@media (max-width: 1100px) { .st-voci { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .stampa { padding: 56px 16px 50px; border-radius: 22px 22px 0 0; }
  .stampa h2 { font-size: clamp(32px, 9vw, 46px); }
  .st-voci { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-voci li { padding: 16px 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .st-sigla { width: 44px; height: 44px; font-size: 16px; grid-row: 1 / 4; margin: 0; }
  .st-tit { font-size: 18px; }
}

/* il piede col marchio enorme */
.piede { background: var(--scuro); color: var(--crema); padding: clamp(64px, 11svh, 120px) var(--lato) 26px; border-radius: 28px 28px 0 0; margin-top: -28px; overflow: hidden; }
.pi-alto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.pi-frase { font-family: var(--titoli); font-weight: 700; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -.02em; }
.pi-bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.pi-colonne { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(30px, 6svh, 60px); }
.pi-colonne h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sabbia); margin-bottom: 8px; }
.pi-colonne p { font-size: 17px; line-height: 1.55; }
.pi-nome-box { margin: clamp(30px, 6svh, 64px) 0 0; overflow: hidden; }
.pi-nome { width: 100%; height: auto; }
@supports (animation-timeline: view()) {
  .pi-nome { animation: pi-sale linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes pi-sale { from { transform: translateY(40%); opacity: .2; } to { transform: none; opacity: 1; } }
}
.pi-fondo { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(247, 241, 232, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 14px; line-height: 1.5; }
.pf-legale { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pf-legale a, .pf-legale button { padding: 6px 0; border: 0; background: none; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .piede { padding: 56px 16px 22px; border-radius: 22px 22px 0 0; }
  .pi-frase { font-size: clamp(34px, 10vw, 50px); }
  .pi-bottoni .bottone { width: 100%; }
  .pi-colonne { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) { .testa-nav, .testa-wa::after { transition: none; animation: none; } }
.palco [data-via] { will-change: opacity; }
.palco .bottone { transition: none; }
/* sul palco prendono i tocchi solo bottoni e link */
.palco.tocchi-stretti > * { pointer-events: none; }
.palco.tocchi-stretti a, .palco.tocchi-stretti button { pointer-events: auto; }
/* schermi bassi al computer (1280x720): la carta della scheda sta tutta, bottone compreso */
@media (min-width: 861px) and (max-height: 800px) {
  .sg-fermo { padding-top: 76px; padding-bottom: 2svh; }
  .sg-testa { margin-bottom: 12px; }
  .sg-testa h2 { font-size: clamp(34px, 4.2vw, 60px); }
  .sg-carta { max-height: 72svh; }
  .sg-foto img { max-height: calc(72svh - 2 * clamp(14px, 2.4vw, 36px)); }
  .sg-elenco button { min-height: 38px; font-size: clamp(19px, 1.6vw, 24px); }
  .sg-scelta { margin-top: 10px; }
  .sg-scelta p { min-height: 0; font-size: 15px; }
  .sg-scelta .bottone { min-height: 42px; margin-top: 8px; }
}
