/* =========================================================================
   BREMAWOOD · SITO 3 · il film corto (3/12/2026)
   NORDA (fb-1Fk5PKgWsj) rifatto per una falegnameria: la meta' verde diventa il bruno del marchio.
   Tre colori: bianco pieno (fondo), bruno del marchio #5D4B3F (inchiostro e meta' scura), rosso vino #6E1F2B
   (SOLO il quadratino dei bottoni WhatsApp). La sabbia #CABAA0 del marchio resta nei filetti.
   Caratteri in casa: Anton (titoli, il condensato di NORDA), Inter (testi), JetBrains Mono (etichette).
   Etichette mai sotto 12px, testi mai sotto 14px.
   ========================================================================= */
@font-face { font-family: 'Anton'; src: url(../font/anton.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../font/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url(../font/jbmono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url(../font/jbmono-500.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --bianco: #FFFFFF;
  --bruno: #5D4B3F;
  --bruno-cupo: #4C3D33;
  --sabbia: #CABAA0;
  --vino: #6E1F2B;
  --latte: #F6F1EA;          /* il bianco caldo delle scritte sulla meta' bruna */
  --grigio: rgba(93, 75, 63, .74);
  --riga: rgba(93, 75, 63, .16);
  --titoli: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --testo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JB Mono', ui-monospace, 'Consolas', monospace;
  --cont: min(1180px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --testa: 72px;
  /* variabili lette da legale.css (pannello del consenso e pagine legali) */
  --fondo: var(--bruno); --inchiostro: var(--bruno); --brace: var(--bruno); --serif: var(--testo); --bastone: var(--mono); --carta: #F7F4EF; --nero: var(--bruno);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; touch-action: manipulation; }
body { margin: 0; background: var(--bianco); color: var(--bruno); font-family: var(--testo); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--vino); outline-offset: 3px; }
.nascosto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salta { position: absolute; left: 12px; top: -60px; z-index: 500; background: var(--bruno); color: var(--bianco); padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.salta:focus { top: 12px; }
.cont { width: var(--cont); margin-left: auto; margin-right: auto; }
.occhio { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grigio); }

/* ---------- i bottoni a due parti (NORDA: scritta mono + quadratino con la freccia) ---------- */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 3px 0 16px; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; border: 1.5px solid currentColor; transition: background .3s, color .3s; }
.btn span { padding-right: 16px; }
.btn i { display: grid; place-items: center; width: 31px; height: 31px; flex: none; transition: transform .35s var(--ease); }
.btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover i { transform: translateX(3px); }
.btn-chiaro { background: var(--latte); color: var(--bruno); border-color: var(--latte); }
.btn-chiaro i { background: var(--bruno); color: var(--latte); }
.btn-scuro { background: var(--bruno); color: var(--bianco); border-color: var(--bruno); }
.btn-scuro i { background: var(--bianco); color: var(--bruno); }
.btn-scuro:hover { background: var(--bruno-cupo); border-color: var(--bruno-cupo); }
.btn-vino i { background: var(--vino); color: var(--bianco); }

/* ---------- i titoli: Anton maiuscolo, come NORDA ---------- */
.tit-sez { font-family: var(--titoli); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.7vw, 58px); line-height: 1; letter-spacing: .004em; }
.tit-centro { text-align: center; }
.js .sale { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.js .sale.in { opacity: 1; transform: none; }
.testa-sez { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* =========================================================================
   1 · IL CARICAMENTO (RISE 0,0-2,4 s)
   ========================================================================= */
#velo { display: none; }
.carica #velo, #velo.via { display: block; position: fixed; inset: 0; z-index: 95; }
#velo .carta { position: absolute; inset: 0; background: var(--bianco); clip-path: inset(0); }
#velo .nome { position: absolute; left: 50%; top: 47%; width: min(46vw, 760px); aspect-ratio: 1300 / 510; transform: translate(-50%, -50%); transform-origin: 0 0; }
#velo .nome img { position: absolute; inset: 0; width: 100%; height: 100%; }
#velo .pieno { clip-path: inset(100% 0 0 0); }
#velo .bianco { opacity: 0; }
#velo .conta { position: absolute; right: 7vw; bottom: 8vh; display: flex; font-family: var(--titoli); font-size: clamp(30px, 3.2vw, 56px); line-height: 1; height: 1em; overflow: hidden; color: var(--bruno); }
#velo .conta i { display: block; width: .56em; text-align: center; font-style: normal; }
#velo .conta b { display: block; font-weight: 400; will-change: transform; }
#velo .conta span { display: block; height: 1em; }
#velo.via { pointer-events: none; }
.carica body { overflow: hidden; }
.calmo #velo { display: none; }

/* =========================================================================
   LA TESTATA: marchio vero a sinistra, menu, WhatsApp in alto a destra (si nota, non copre il pezzo)
   ========================================================================= */
.testa { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--testa); display: flex; align-items: center; gap: clamp(22px, 3vw, 52px); padding: 0 clamp(20px, 3.4vw, 50px);
  transition: background .35s, box-shadow .35s; }
.marchio { position: relative; display: block; width: clamp(112px, 9.4vw, 150px); aspect-ratio: 420 / 165; flex: none; }
.marchio img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.marchio .m-bruno { opacity: 0; }
.menu { display: flex; gap: clamp(16px, 1.8vw, 28px); }
.menu a { position: relative; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 241, 234, .86); padding: 6px 0; transition: color .3s; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
.wa { margin-left: auto; display: inline-flex; align-items: center; height: 42px; padding: 0 3px 0 16px; background: var(--bruno); color: var(--bianco); font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(60, 40, 30, .7); }
.wa span { padding-right: 14px; }
.wa .corto { display: none; }
.wa i { width: 36px; height: 36px; display: grid; place-items: center; background: var(--vino); }
.wa svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.menu-apri { display: none; width: 44px; height: 44px; place-items: center; color: var(--latte); }
.menu-apri svg, .menu-chiudi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* fuori dall'eroe la testata diventa chiara */
.testa.scura { background: rgba(76, 61, 51, .97); }
.testa.chiara { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--riga); }
.testa.chiara .m-bianco { opacity: 0; }
.testa.chiara .m-bruno { opacity: 1; }
.testa.chiara .menu a { color: var(--bruno); }
.testa.chiara .menu-apri { color: var(--bruno); }
.carica .testa .marchio { opacity: 0; }

.menu-tel { position: fixed; inset: 0; z-index: 90; background: var(--bruno); color: var(--latte); display: flex; flex-direction: column; justify-content: center; padding: 84px 28px 44px; overflow-y: auto; }
.menu-tel[hidden] { display: none; }
.menu-tel ul { display: flex; flex-direction: column; gap: 4px; }
.menu-tel li a { display: inline-block; padding: 4px 0; font-family: var(--titoli); font-size: min(13vw, 62px); line-height: 1.05; text-transform: uppercase; }
.menu-tel .btn { margin-top: 30px; align-self: flex-start; }
.menu-tel-dati { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; font-family: var(--mono); font-size: 14px; }
.menu-chiudi { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--latte); }

/* =========================================================================
   I PALCHI FERMI: la sezione e' lunga, dentro un riquadro alto uno schermo resta fermo (sticky)
   e lo scorrimento comanda cosa succede dentro (js/sito.js)
   ========================================================================= */
.palco { position: relative; }
.palco-a { height: calc(100vh + 420vh); height: calc(100svh + 420vh); }
.palco-b { height: calc(100vh + 1000vh); height: calc(100svh + 1000vh); }
.fermo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ancora { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
#lavori { top: 365vh; }
#botti { top: 560vh; }
#stampa { top: 900vh; }

/* =========================================================================
   PALCO A · 2 · L'EROE A META' (NORDA 0-6 s): la meta' bruna e' il 74% della larghezza
   ========================================================================= */
.a-eroe { position: absolute; inset: 0; will-change: transform; }
.a-scuro { position: absolute; inset: 0 auto 0 0; width: 74%; color: var(--latte);
  background: radial-gradient(38% 62% at 82% 56%, rgba(246, 241, 234, .12) 0%, rgba(246, 241, 234, 0) 72%), radial-gradient(120% 90% at 20% 16%, #6A574A 0%, var(--bruno) 58%, var(--bruno-cupo) 100%); }
.a-chiaro { position: absolute; inset: 0 0 0 auto; width: 26%; background: var(--bianco); }
.a-testo { position: absolute; left: clamp(20px, 3.4vw, 50px); top: 24%; width: 42%; z-index: 4; }
.eroe-titolo { font-family: var(--titoli); font-weight: 400; text-transform: uppercase; font-size: min(8.2vw, 14.4vh); line-height: .96; letter-spacing: .004em; white-space: nowrap; }
.eroe-titolo .riga { display: block; width: max-content; }
.eroe-par { margin-top: clamp(18px, 3.6vh, 36px); max-width: 320px; font-size: 15.5px; line-height: 1.5; color: rgba(246, 241, 234, .8); }
.a-testo .btn { margin-top: clamp(18px, 3.4vh, 32px); }
.anno { display: flex; align-items: center; gap: 12px; margin-top: clamp(26px, 6vh, 60px); line-height: 1; }
.anno b { font-family: var(--titoli); font-weight: 400; font-size: 26px; letter-spacing: .01em; }
.anno small { max-width: 170px; font-family: var(--mono); font-size: 12px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 241, 234, .7); }
.scelte { position: absolute; right: clamp(16px, 2.6vw, 40px); top: 52%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.scelta { position: relative; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; }
.scelta::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--bruno); opacity: 0; transform: scale(.86); transition: opacity .35s, transform .45s var(--ease); }
.scelta.su::before { opacity: 1; transform: none; }
.scelta img { width: 54px; height: 54px; object-fit: contain; transition: transform .35s var(--ease); }
.scelta:hover img { transform: translateY(-3px); }
.cartellino { position: absolute; right: clamp(16px, 2.6vw, 40px); bottom: 5.5%; z-index: 6; text-align: right; line-height: 1; white-space: nowrap; transition: opacity .25s; }
.cartellino.via { opacity: 0; }
.ca-nome { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.ca-legno { display: block; margin-top: 9px; font-family: var(--titoli); font-weight: 400; font-size: 21px; letter-spacing: .01em; }

/* i pezzi: grandi, a cavallo tra la meta' bruna e la colonna bianca, con l'ombra morbida cotta nel file */
.a-pezzi { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.alone { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 241, 234, .5), rgba(246, 241, 234, .2) 55%, rgba(246, 241, 234, 0)); will-change: transform, opacity; }
.pezzo { position: absolute; left: 0; top: 0; height: calc(var(--h) * 1vh); width: auto; max-width: none; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity; }

/* PALCO A · 4 · LA FILA (NORDA 6,8-9,5 s) */
.a-fila { position: absolute; inset: 0; background: var(--bianco); display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--testa) + 2vh); padding-bottom: 7vh; transform: translateY(100%); will-change: transform; z-index: 3; }
.fila { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); margin-top: clamp(28px, 5vh, 58px); }
.voce a { display: block; }
.v-foto { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.02; }
.v-foto img { position: absolute; inset: 0; margin: auto; max-width: 86%; max-height: 86%; width: auto; height: auto; object-fit: contain; transition: transform .6s var(--ease); }
.voce a:hover .v-foto img { transform: translateY(-6px) scale(1.03); }
.voce h3 { margin-top: 14px; font-family: var(--titoli); font-weight: 400; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.v-legno { margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--grigio); }
.v-riga { margin-top: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--grigio); }
.voce { will-change: transform, opacity; }

/* =========================================================================
   PALCO B · 5 XSTREET · 6 MOSAICO · 7 LA FOTO CHE SI ALLARGA · 8 LE BOTTI · 9 LA STAMPA
   Tutto a posizione assoluta dentro il palco fermo: i rettangoli li calcola js/sito.js
   ========================================================================= */
.palco-b .fermo { background: var(--bianco); }
.b-testo { position: absolute; left: max(32px, calc((100vw - 1180px) / 2)); top: 50%; width: min(30vw, 400px); transform: translateY(-46%); z-index: 3; will-change: transform; }
.b-testo .tit-sez { margin-top: 14px; font-size: clamp(48px, 6vw, 96px); line-height: .92; }
.b-par { margin-top: 20px; max-width: 330px; font-size: 16px; line-height: 1.5; }
.b-par.piccolo { margin-top: 10px; font-size: 14px; color: var(--grigio); }
.b-testo .btn { margin-top: 26px; }
.b-col { position: absolute; top: 0; display: flex; flex-direction: column; gap: 22px; will-change: transform; z-index: 2; }
.b-col1 { left: 41vw; width: 25vw; }
.b-col2 { left: 69vw; width: 25vw; }
@media (min-width: 1500px) { .b-col1 { left: calc(50vw - 110px); width: 360px; } .b-col2 { left: calc(50vw + 280px); width: 360px; } }
.b-col figure { position: relative; }
.b-col img { width: 100%; height: auto; }
.b-col figcaption { margin-top: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); }
.quadro { position: absolute; left: 0; top: 0; width: 100px; height: 100px; overflow: hidden; z-index: 4; visibility: hidden; will-change: transform; background: #3b2c22; }
.q-strato { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; max-width: none; }
.q-video { opacity: 1; inset: auto; }
.q-soff, .q-doghe { will-change: transform; }
.q-tasselli { position: absolute; inset: 0; }
.q-tass { position: absolute; overflow: hidden; visibility: hidden; }
.q-tass img { position: absolute; max-width: none; object-fit: cover; }
.q-griglia { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .55) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: calc(100% / var(--cx, 10)) 100%, 100% calc(100% / var(--cy, 7)); }
.b-sotto { display: none; }
.q-dida { position: absolute; left: 0; top: 0; z-index: 4; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); opacity: 0; white-space: nowrap; }
.b-parole { position: absolute; left: 0; right: 0; top: calc(var(--testa) + 7vh); z-index: 5; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  font-family: var(--titoli); font-weight: 400; text-transform: uppercase; color: #fff; font-size: min(8.4vw, 14.5vh); line-height: .92; text-align: center;
  filter: drop-shadow(0 4px 26px rgba(40, 26, 18, .55)); }
.b-parole span { display: block; opacity: 0; will-change: transform, opacity; }
.b-botti { position: absolute; z-index: 5; left: max(32px, calc((100vw - 1180px) / 2)); top: 50%; width: 300px; visibility: hidden; will-change: transform; }
.b-botti .tit-sez { margin-top: 12px; font-size: clamp(30px, 2.9vw, 46px); }
.frasi { position: relative; margin-top: 26px; min-height: 190px; }
.frase { position: absolute; left: 0; right: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.frase blockquote { padding-left: 16px; border-left: 2px solid var(--sabbia); font-size: 18px; line-height: 1.5; }
.firma { margin-top: 12px; padding-left: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); }
.b-tritt { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.b-tritt.vivo { pointer-events: auto; }
.t-testa { position: absolute; left: max(32px, calc((100vw - 1180px) / 2)); right: max(32px, calc((100vw - 1180px) / 2)); top: calc(var(--testa) + 3vh); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; visibility: hidden; }
.t-testa .tit-sez { max-width: 760px; font-size: clamp(28px, 2.9vw, 46px); }
.b-tritt figure { position: absolute; visibility: hidden; will-change: transform; }
.t-foto { position: absolute; inset: 0; overflow: hidden; background: #e9e2d8; }
.t-foto img { width: 100%; height: 100%; object-fit: cover; }
.t3 .t-foto img, .s1 .s-foto img { object-position: 82% 50%; }
.b-tritt figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 8px); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio); line-height: 1.3; }
.b-tritt figcaption b { display: block; margin-bottom: 3px; font-family: var(--titoli); font-weight: 400; font-size: 18px; letter-spacing: .02em; color: var(--bruno); }
/* 9 · le tre schede della stampa (NORDA 15-17 s) */
.stampa { position: absolute; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; }
.stampa.vivo { pointer-events: auto; }
.s-testa { position: absolute; left: 0; right: 0; top: calc(var(--testa) + 3vh); text-align: center; }
.stampa-sotto { margin-top: 12px; padding: 0 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); }
.schede { position: absolute; inset: 0; }
.s1 { z-index: 2; }
.scheda { position: absolute; left: 0; top: 0; background: #F7F4EF; box-shadow: 0 30px 50px -34px rgba(70, 50, 38, .5); display: flex; flex-direction: column; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.s-foto { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #e9e2d8; }
.s-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-testo { flex: 0 0 auto; display: flex; flex-direction: column; padding: 16px 22px 18px; }
.s-tit { font-family: var(--titoli); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.22; letter-spacing: .02em; text-transform: uppercase; }
.scheda .chi { margin-top: 12px; padding-top: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.scheda .quando { margin-top: 5px; font-family: var(--mono); font-size: 12.5px; color: var(--grigio); }

/* =========================================================================
   10 · LA CARTA SULLA FOTO (NORDA 17 s): la foto sta nei margini, mai a tutta larghezza
   ========================================================================= */
.carta-foto { padding: 0 0 clamp(70px, 7vw, 110px); }
.cf-box { position: relative; }
.cf-foto { width: 100%; height: clamp(460px, 74vh, 760px); object-fit: cover; object-position: 50% 60%; }
.cf-carta { position: absolute; left: 50%; top: 50%; width: min(620px, 56%); padding: clamp(26px, 2.4vw, 36px) clamp(26px, 2.6vw, 40px) clamp(24px, 2.2vw, 32px); background: var(--bianco);
  box-shadow: 0 30px 60px -34px rgba(50, 34, 26, .5); }
.js .cf-carta.sale { transform: translate(-50%, calc(-50% + 26px)); }
.js .cf-carta.sale.in, .cf-carta { transform: translate(-50%, -50%); }
.cf-tit { font-family: var(--titoli); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; text-transform: uppercase; }
.cf-giu { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(16px, 1.8vw, 24px); }
.cf-giu p { max-width: 320px; font-size: 15px; line-height: 1.5; color: var(--grigio); }

/* =========================================================================
   11 · IL PIEDE: il marchio vero enorme che sale (RISE 18-19,7 s)
   ========================================================================= */
.piede { padding: clamp(60px, 6vw, 90px) 0 26px; border-top: 1px solid var(--riga); }
.piede-alto { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(28px, 5vw, 90px); align-items: start; }
.piede-tel { display: inline-block; margin-top: 10px; font-family: var(--titoli); font-size: clamp(32px, 3vw, 46px); line-height: 1.05; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.piede-ind { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--grigio); }
.piede-ind a:hover { color: var(--bruno); text-decoration: underline; }
.piede-menu a { display: inline-block; font-family: var(--titoli); font-size: 17px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.5; }
.piede-menu a:hover { text-decoration: underline; text-underline-offset: 3px; }
.piede-marchio { margin-top: clamp(40px, 5vw, 70px); overflow: hidden; }
.enorme { width: 100%; height: auto; }
.enorme.giu { transform: translateY(42%); opacity: .25; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.enorme.giu.su { transform: none; opacity: 1; }
.piede-legale-riga { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--riga); font-family: var(--mono); font-size: 12px; color: var(--grigio); }
.piede-legale-riga .voci { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.piede-legale-riga a, .piede-legale-riga button { font-size: 12px; font-family: var(--mono); color: var(--grigio); }
.piede-legale-riga a:hover, .piede-legale-riga button:hover { color: var(--bruno); text-decoration: underline; }

/* pagine legali (privacy.html e cookie.html) */
.pagina-legale { background: var(--bianco); }
.foglio { max-width: 760px; margin: 0 auto; padding: 44px 22px 60px; font-size: 16px; line-height: 1.6; }
.foglio .torna { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.foglio .torna svg { width: 16px; height: 16px; }
.foglio .occhiello { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grigio); }
.foglio h1 { font-family: var(--titoli); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1.02; text-transform: uppercase; margin: 10px 0 26px; }
.foglio h1 em { font-style: normal; }
.carta-legale h2 { font-family: var(--titoli); font-weight: 400; font-size: 24px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; margin: 38px 0 12px; }
.carta-legale h2 .num { font-family: var(--mono); font-size: 13px; color: var(--grigio); margin-right: 12px; vertical-align: middle; }
.carta-legale h3 { font-size: 17px; font-weight: 650; margin: 22px 0 8px; }
.carta-legale p { margin: 0 0 12px; }
.carta-legale ul, .carta-legale ol { padding-left: 22px; margin: 0 0 12px; }
.carta-legale ul { list-style: disc; }
.carta-legale ol { list-style: decimal; }
.carta-legale li { margin-bottom: 6px; }
.carta-legale a { text-decoration: underline; text-underline-offset: 3px; }
.carta-legale .sommario { font-size: 18px; }
.carta-legale .aggiornata { font-family: var(--mono); font-size: 13px; color: var(--grigio); }
.carta-legale .scheda-dati { padding: 16px 18px; background: #F7F4EF; border-left: 3px solid var(--bruno); margin: 0 0 14px; }
.carta-legale .scheda-dati p { margin: 0 0 4px; }
.carta-legale .tabella-scorre { overflow-x: auto; margin: 0 0 14px; }
.carta-legale table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.carta-legale th, .carta-legale td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--riga); }
.carta-legale th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.carta-legale .azione .bottoni { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.carta-legale button, .carta-legale .come-bottone { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--bruno); font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.piede-legale { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--riga); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-family: var(--mono); font-size: 13px; }
.piede-legale .voci { display: flex; gap: 16px; }

/* =========================================================================
   COMPUTER STRETTO E TABLET
   ========================================================================= */
@media (max-width: 1100px) {
  .menu { gap: 14px; }
  .menu a { letter-spacing: .1em; }
}
@media (max-width: 960px) { .menu { display: none; } .menu-apri { display: grid; } }

/* =========================================================================
   TELEFONO (fino a 700): la meta' bruna sopra, il pezzo a cavallo, le miniature in riga
   ========================================================================= */
@media (max-width: 700px) {
  :root { --cont: calc(100vw - 36px); --testa: 60px; }
  .testa { padding: 0 12px 0 16px; gap: 8px; }
  .marchio { width: 104px; }
  .wa { height: 40px; padding-left: 12px; font-size: 12px; letter-spacing: .08em; }
  .wa span { padding-right: 10px; }
  .wa .lungo { display: none; }
  .wa .corto { display: inline; }
  .wa i { width: 34px; height: 34px; }
  .menu-apri { margin-right: -6px; }
  .tit-sez { font-size: clamp(30px, 8.6vw, 40px); }
  .testa-sez { flex-direction: column; align-items: flex-start; gap: 14px; }

  #velo .nome { width: 80vw; }
  #velo .conta { right: 22px; bottom: 26px; font-size: 32px; }

  .palco-a { height: calc(100svh + 360vh); }
  .palco-b { height: calc(100svh + 900vh); }
  #lavori { top: 310vh; }
  #botti { top: 505vh; }
  #stampa { top: 810vh; }
  .a-scuro { inset: 0 0 auto 0; width: 100%; height: 58%;
    background: radial-gradient(70% 40% at 60% 100%, rgba(246, 241, 234, .12) 0%, rgba(246, 241, 234, 0) 72%), radial-gradient(120% 90% at 20% 16%, #6A574A 0%, var(--bruno) 58%, var(--bruno-cupo) 100%); }
  .a-chiaro { inset: 58% 0 0 0; width: 100%; height: auto; }
  .a-testo { left: 18px; right: 18px; width: auto; top: calc(var(--testa) + 2.4vh); }
  .eroe-titolo { font-size: min(19.5vw, 10.6vh); }
  .eroe-par { margin-top: 1.8vh; font-size: 15px; max-width: 30ch; }
  .a-testo .btn { margin-top: 2vh; }
  .anno { display: none; }
  .scelte { right: auto; left: 50%; top: auto; bottom: max(10px, 1.6vh); transform: translateX(-50%); flex-direction: row; gap: 4px; }
  .scelta { width: 58px; height: 58px; }
  .scelta img { width: 44px; height: 44px; }
  .cartellino { right: auto; left: 18px; bottom: calc(58px + max(10px, 1.6vh) + 1.6vh); }
  .ca-legno { font-size: 18px; margin-top: 6px; }
  .pezzo { height: calc(var(--hm) * 1vh); }

  .a-fila { padding-top: var(--testa); padding-bottom: 3vh; justify-content: flex-end; }
  .b-sotto { display: block; position: absolute; left: 18px; right: 18px; top: 0; z-index: 4; opacity: 0; visibility: hidden; }
  .b-sotto p { font-size: 15px; line-height: 1.45; color: var(--grigio); margin-bottom: 14px; }
  .a-fila .testa-sez { margin-top: 3vh; }
  .a-fila .tit-sez br { display: none; }
  .fila { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3vh; }
  .fila .voce:first-child { grid-column: 1 / -1; }
  .v-foto { aspect-ratio: auto; height: 18vh; }
  .voce h3 { margin-top: 6px; font-size: 16px; }
  .v-legno { margin-top: 3px; font-size: 14px; }
  .v-riga { margin-top: 2px; }

  .b-testo { left: 0; right: 0; width: auto; top: var(--testa); transform: none; padding: 2vh 18px 14px; background: var(--bianco); }
  .b-testo .tit-sez { margin-top: 6px; font-size: 13vw; }
  .b-par { margin-top: 10px; font-size: 15px; }
  .b-par.piccolo, .b-testo .btn { display: none; }
  .b-col { gap: 12px; }
  .b-col1 { left: 18px; width: calc(50vw - 24px); }
  .b-col2 { left: calc(50vw + 6px); width: calc(50vw - 24px); }
  .b-col figcaption { font-size: 12px; letter-spacing: .02em; margin-top: 5px; }
  .b-parole { top: calc(var(--testa) + 5vh); font-size: 17vw; }
  .b-botti { left: 18px; right: 18px; width: auto; top: 0; }
  .b-botti .occhio { display: none; }
  .b-botti .tit-sez { font-size: 7.6vw; margin-top: 0; }
  .frasi { margin-top: 12px; min-height: 0; }
  .frase blockquote { font-size: 15px; }
  .firma { margin-top: 6px; }
  .t-testa { left: 18px; right: 18px; top: calc(var(--testa) + 1.6vh); flex-direction: column; align-items: flex-start; gap: 12px; }
  .t-testa .tit-sez { font-size: 7.4vw; }
  .t-testa .btn { display: none; }
  .b-tritt figcaption { top: calc(100% + 5px); }
  .b-tritt figcaption b { font-size: 16px; margin-bottom: 2px; }
  .s-testa { top: calc(var(--testa) + 1.6vh); }
  .stampa-sotto { margin-top: 6px; font-size: 12px; letter-spacing: .04em; }
  .scheda { box-shadow: 0 14px 24px -18px rgba(70, 50, 38, .45); }
  .s-testo { padding: 12px 14px; }
  .s-tit { font-size: 16px; }
  .cf-foto { height: auto; aspect-ratio: 820 / 1001; }
  .cf-carta, .js .cf-carta.sale, .js .cf-carta.sale.in { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -110px 14px 0; }
  .cf-giu { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cf-carta { box-shadow: 0 1px 0 var(--riga); }
  .js .cf-carta.sale { opacity: 1; transition: none; }
  .js .sale { transform: none; transition: opacity .45s var(--ease); }
  .piede-alto { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .piede-dati { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .btn { font-size: 12px; letter-spacing: .08em; padding-left: 12px; }
  .btn span { padding-right: 10px; }
}
/* telefono coricato: un terzo dispositivo, misure sull'altezza */
@media (orientation: landscape) and (max-height: 560px) {
  .eroe-titolo { font-size: 13vh; }
  .anno { display: none; }
  .b-parole { font-size: 13vh; }
  .b-testo .tit-sez { font-size: 13vh; }
  .b-par.piccolo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sale { transition: none; opacity: 1; transform: none; }
}
/* la penna di regia: le parole grandi si possono toccare */
.penna-on .b-parole { pointer-events: auto; }
@media (max-width: 700px) { .testa:not(.chiara) .wa { background: var(--latte); color: var(--bruno); } .testa:not(.chiara) .wa i { color: var(--bianco); } }
