/* Edil Gomes DJ · la hero del casco che si apre (pagina a sé, /hero-casco/)
   Colori del design (home-approvata.png), in #hex qui in :root. Font serviti dal sito (/assets/fonts/), nessuna
   chiamata a terzi: Cormorant Garamond (titoli), Barlow Condensed (etichette e pulsanti), Figtree (testo).
   Il movimento: solo transform e opacity, un requestAnimationFrame (hero-casco.js). Senza JavaScript o con
   «riduci il movimento» la scena resta ferma sul casco aperto e le scritte stanno una sotto l'altra. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }

:root {
  /* colori del design */
  --cioccolato: #221915;      /* fondo, intestazione, piede */
  --cioccolato-2: #362E29;    /* superfici */
  --cioccolato-3: #503A2F;    /* sezioni scure */
  --nocciola: #936D54;        /* filetti, testo secondario */
  --sabbia: #E8D8C5;          /* testo su fondo scuro */
  --crema: #F6ECDF;           /* titoli su fondo scuro */
  --arancione: #FB5C03;       /* pulsante principale, nodo attivo */
  --bianco: #FFFFFF;
  --notte: #120B07;           /* il velo della stanza spenta */

  --f-titoli: "Cormorant Garamond", "Times New Roman", serif;
  --f-etichette: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-testo: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --testata: 72px;
  --bordo: clamp(16px, 4.4vw, 64px);
  --contenitore: 1320px;
  --curva: cubic-bezier(0.23, 1, 0.32, 1);

  /* la scena da computer (immagini 2048 × 1152): perno della calotta sul centro del bordo, zoom sul divano */
  --perno-x: 68.65%; --perno-y: 42.97%;
  /* 01/12 (Domenico): un casco solo, sempre lo stesso; ruota e si rimpicciolisce attorno al punto in cui il braccio
     esce dal bordo destro, così il braccio non si stacca mai dal bordo */
  --mano-x: 100%;    --mano-y: 45.05%;
  --zoom-x: 62.7%;   --zoom-y: 67.5%;
  --int-x: 58.5%;    --int-y: 67.5%;
  --chiusa: translate(-4%, 30.25%) rotate(-6.25deg) scale(1.288);
  --bagliore: radial-gradient(34% 30% at 66% 52%, rgba(255, 176, 92, .85) 0%, rgba(251, 92, 3, .42) 42%, rgba(251, 92, 3, 0) 100%);
  --schermo: linear-gradient(90deg, rgba(18, 11, 7, .86) 0%, rgba(18, 11, 7, .62) 30%, rgba(18, 11, 7, 0) 60%);
}
@media (max-aspect-ratio: 1/1) {
  :root {
    /* la scena da telefono (immagini 1152 × 2048) */
    --perno-x: 49.31%; --perno-y: 62.99%;
    --mano-x: 100%;    --mano-y: 64.5%;
    --zoom-x: 41.3%;   --zoom-y: 77.5%;
    --int-x: 56.9%;    --int-y: 72%;
    --chiusa: translate(-4%, 16%) rotate(-8deg) scale(1.3);
    --bagliore: radial-gradient(58% 17% at 50% 66%, rgba(255, 176, 92, .85) 0%, rgba(251, 92, 3, .42) 42%, rgba(251, 92, 3, 0) 100%);
    --schermo: linear-gradient(180deg, rgba(18, 11, 7, .78) 0%, rgba(18, 11, 7, .46) 34%, rgba(18, 11, 7, 0) 58%);
  }
}
@media (max-width: 860px) { :root { --testata: 62px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cioccolato); -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; overflow-x: clip; }
html.menu-aperto { overflow: hidden; }
body { margin: 0; background: var(--cioccolato); color: var(--sabbia); font-family: var(--f-testo); font-size: 17px;
  line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--arancione); outline-offset: 3px; }
h1, h2, p, ul, ol { margin: 0; }
.hc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.hc-salta { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--arancione);
  color: var(--bianco); font-family: var(--f-etichette); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; }
.hc-salta:focus { top: 12px; }

/* ---------------------------------------------------------------- intestazione */
.testata { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--testata);
  background: rgba(34, 25, 21, .94); box-shadow: inset 0 -2px 0 var(--arancione);
  padding-top: env(safe-area-inset-top); }
.testata__dentro { height: 100%; max-width: var(--contenitore); margin: 0 auto; padding: 0 var(--bordo);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.testata__marchio { display: block; flex: none; }
.testata .logo { height: 42px; width: auto; }

.menu__voci { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.menu__voci > li > a, .menu__etichetta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  font-family: var(--f-etichette); font-weight: 600; font-size: 19px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--crema); text-decoration: none; cursor: pointer; transition: color .2s ease; }
.menu__etichetta svg { width: 12px; height: 12px; transition: transform .25s var(--curva); }
.menu__tendina { position: relative; }
.menu__tendina.aperta .menu__etichetta svg { transform: rotate(180deg); }
.menu__sotto { list-style: none; position: absolute; top: calc(100% + 14px); left: -20px; min-width: 290px; padding: 10px 0;
  background: var(--cioccolato); border-top: 2px solid var(--arancione); box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.menu__sotto::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu__sotto a { display: block; padding: 11px 20px; font-family: var(--f-etichette); font-weight: 500; font-size: 18px;
  letter-spacing: .03em; text-transform: uppercase; color: var(--sabbia); text-decoration: none; transition: color .2s ease; }
.menu__tendina.aperta .menu__sotto { opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s var(--curva), transform .22s var(--curva), visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .menu__voci > li > a:hover, .menu__etichetta:hover, .menu__sotto a:hover { color: var(--arancione); }
  .menu__tendina:hover .menu__sotto { opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--curva), transform .22s var(--curva), visibility 0s; }
}
.testata__apri { display: none; }

@media (max-width: 860px) {
  .testata .logo { height: 34px; }
  .testata__apri { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0;
    background: none; cursor: pointer; }
  .testata__apri span, .testata__apri span::before, .testata__apri span::after {
    display: block; width: 24px; height: 2px; background: var(--crema); border-radius: 2px;
    transition: transform .25s var(--curva), opacity .2s ease; }
  .testata__apri span { position: relative; }
  .testata__apri span::before, .testata__apri span::after { content: ""; position: absolute; left: 0; }
  .testata__apri span::before { transform: translateY(-7px); }
  .testata__apri span::after { transform: translateY(7px); }
  .testata__apri[aria-expanded="true"] span { background: transparent; }
  .testata__apri[aria-expanded="true"] span::before { transform: rotate(45deg); background: var(--crema); }
  .testata__apri[aria-expanded="true"] span::after { transform: rotate(-45deg); background: var(--crema); }
  .menu { position: fixed; inset: var(--testata) 0 0 0; z-index: 39; overflow-y: auto; padding: 18px var(--bordo) 40px;
    background: var(--cioccolato); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .menu-aperto .menu { opacity: 1; visibility: visible; transform: none;
    transition: opacity .26s var(--curva), transform .26s var(--curva), visibility 0s; }
  .menu__voci { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__voci > li { border-bottom: 1px solid rgba(232, 216, 197, .14); }
  .menu__voci > li > a, .menu__etichetta { width: 100%; min-height: 58px; font-size: 24px; justify-content: space-between; }
  .menu__sotto { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; display: none;
    opacity: 1; visibility: visible; transform: none; transition: none; }
  .menu__sotto::before { display: none; }
  .menu__tendina.aperta .menu__sotto { display: block; }
  .menu__sotto a { padding: 10px 0 10px 14px; font-size: 19px; }
}

/* ---------------------------------------------------------------- pulsanti (parallelogramma del design) */
.pulsante { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 9px 30px 9px 22px; font-family: var(--f-etichette); font-weight: 600; font-size: 19px; line-height: 1.04;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none; text-align: left;
  transition: transform .16s var(--curva); -webkit-user-select: none; user-select: none; }
.pulsante::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px; transform: skewX(-12deg);
  transition: background-color .2s ease, box-shadow .25s ease, border-color .2s ease; }
.pulsante:active { transform: scale(.97); }
.pulsante--whatsapp { color: var(--bianco); }
.pulsante--whatsapp::before { background: var(--arancione); box-shadow: 0 10px 30px rgba(251, 92, 3, .28); }
.pulsante--whatsapp svg { width: 30px; height: 30px; flex: none; }
.pulsante--chiama { color: var(--crema); min-height: 50px; padding: 8px 26px 8px 20px; font-size: 18px; }
.pulsante--chiama::before { border: 1.5px solid rgba(246, 236, 223, .78); background: rgba(18, 11, 7, .18); }
.pulsante--chiama img { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .pulsante--whatsapp:hover::before { background: #FF6A14; box-shadow: 0 14px 38px rgba(251, 92, 3, .42); }
  .pulsante--chiama:hover::before { border-color: var(--crema); background: rgba(18, 11, 7, .38); }
}

/* ---------------------------------------------------------------- la hero: modo fermo (senza JS o col movimento ridotto) */
.hc { position: relative; background: var(--cioccolato); }
.hc-fermo { position: relative; overflow: hidden; background: #1F110B; }
.hc-quadro { position: absolute; left: 50%; top: 0; transform: translateX(-50%); overflow: hidden;
  width: max(100vw, 100svh * 16 / 9); height: max(100svh, 100vw * 9 / 16); pointer-events: none; }
/* nel modo fermo la scena da computer va un poco a destra (dentro il margine tagliato), per lasciare spazio ai testi */
@media (min-aspect-ratio: 1001/1000) {
  .hc-quadro { transform: translateX(calc(-50% + min(56px, (max(100vw, 100svh * 16 / 9) - 100vw) / 2))); }
}
/* da telefono il casco aperto scende sotto i testi d'apertura, che restano sull'immagine */
@media (max-aspect-ratio: 1/1) {
  .hc-quadro { top: calc(522px - 40.8svh); width: max(100vw, 100svh * 9 / 16); height: max(100svh, 100vw * 16 / 9); }
}
.hc-scena { position: absolute; inset: 0; transform-origin: var(--zoom-x) var(--zoom-y); }
.hc-livello { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc-livello img { width: 100%; height: 100%; object-fit: cover; }
.hc-velo { background: var(--notte); opacity: 0; }
.hc-bagliore { background: var(--bagliore); mix-blend-mode: screen; opacity: 0; }
.hc-calotta { transform-origin: var(--perno-x) var(--perno-y); }
.hc-vuoto, .hc-chiuso { display: none; } /* il casco chiuso d'apertura: solo col movimento e col JS */
.hc-chiuso { transform-origin: var(--mano-x) var(--mano-y); }
.hc-interno { display: none; transform-origin: var(--int-x) var(--int-y); }
.hc-schermo { display: none; }
@media (prefers-reduced-motion: reduce) { .hc-calotta { display: none; } }

.hc-testi { position: relative; z-index: 2; max-width: var(--contenitore); margin: 0 auto; padding: 0 var(--bordo); }
.hc-apertura { min-height: 100vh; min-height: 100svh; padding: calc(var(--testata) + 32px) 0 40px;
  display: flex; flex-direction: column; justify-content: center; max-width: min(580px, 41vw); }

.hc-occhiello { display: flex; align-items: center; gap: 12px; font-family: var(--f-etichette); font-weight: 600;
  font-size: 21px; letter-spacing: .06em; text-transform: uppercase; color: var(--crema); }
.hc-occhiello img { width: 15px; height: auto; flex: none; }
.hc-titolo { margin: 14px 0 18px; font-family: var(--f-titoli); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.3rem, 3.65vw, 4.1rem); line-height: .98; letter-spacing: .005em; color: var(--crema);
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hc-insieme { white-space: nowrap; }
.hc-sotto { max-width: 34em; font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.5; color: var(--sabbia); }
.hc-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 0 6px; }
/* i tre punti uno sotto l'altro: nella colonna accanto al casco in riga non stanno (andavano 2+1) */
.hc-punti { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; margin-top: 24px;
  font-family: var(--f-etichette); font-weight: 600; font-size: 16.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--crema); }
.hc-punti li { display: flex; align-items: center; gap: 9px; }
.hc-punti img { height: 19px; width: auto; flex: none; opacity: .95; }

/* le tre fasi: nel modo fermo una sotto l'altra, su fondo pieno */
.hc-fasi { position: relative; display: grid; gap: 48px; padding: 72px 0 88px; }
.hc-fasi::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--cioccolato); }
.hc-fase__segno { width: 40px; height: auto; margin-bottom: 14px; }
.hc-fase__parola { font-family: var(--f-titoli); font-weight: 600; font-size: clamp(3.1rem, 6.4vw, 7.4rem); line-height: .94;
  letter-spacing: -.005em; color: var(--crema); }
.hc-fase__riga { max-width: 33ch; margin-top: 16px; font-size: clamp(1.04rem, 1.22vw, 1.24rem); line-height: 1.5;
  color: var(--sabbia); }
.hc-fase__pulsante { margin: 30px 0 0 6px; }
.hc-avanzamento { display: none; }

/* ---------------------------------------------------------------- la hero a scroll (JS e movimento pieno) */
@media (prefers-reduced-motion: no-preference) {
  .js .hc { height: 400vh; height: 400svh; }
  .js .hc-fermo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; container-type: size; }
  .js .hc-quadro { top: 50%; transform: translate(-50%, -50%);
    width: max(100cqw, 100cqh * 16 / 9); height: max(100cqh, 100cqw * 9 / 16); }
  .js .hc-scena { will-change: transform; }
  .js .hc-velo { opacity: .76; will-change: opacity; }
  .js .hc-bagliore { will-change: opacity; }
  .js .hc-calotta { transform: var(--chiusa); opacity: 0; will-change: transform, opacity; }
  .js .hc-vuoto, .js .hc-chiuso { display: block; will-change: opacity, transform; }
  .js .hc-interno { display: block; opacity: 0; transform: scale(1.26); will-change: transform, opacity; }
  .js .hc-schermo { display: block; position: absolute; inset: 0; z-index: 1; background: var(--schermo); opacity: 0;
    pointer-events: none; will-change: opacity; }

  .js .hc-testi { position: absolute; inset: var(--testata) 0 0 0; margin: 0 auto; display: grid;
    grid-template-rows: minmax(0, 1fr) auto; }
  .js .hc-apertura, .js .hc-fasi { grid-area: 1 / 1; }
  .js .hc-apertura { min-height: 0; padding: 12px 0 8px; will-change: transform, opacity; }
  .js .hc-apertura > * { will-change: transform, opacity; }
  .js .hc-fasi { display: grid; padding: 0; gap: 0; align-items: center; }
  .js .hc-fasi::before { display: none; }
  .js .hc-fase { grid-area: 1 / 1; max-width: min(640px, 44vw); opacity: 0; visibility: hidden;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
  .js .hc-fase > * { will-change: transform, opacity; }

  .js .hc-avanzamento { display: block; grid-area: 2 / 1; position: relative; width: min(600px, 44vw);
    margin: 0 0 clamp(18px, 3.4vh, 36px); }
  .hc-avanzamento__tappe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .hc-tappa { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .hc-tappa__nome { font-family: var(--f-etichette); font-weight: 600; font-size: 17px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--crema); opacity: .55; transition: opacity .35s var(--curva);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
  .hc-tappa__nodo { position: relative; width: 18px; height: 18px; }
  .hc-tappa__nodo img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hc-tappa__attivo { opacity: 0; transform: scale(.6); transition: opacity .3s var(--curva), transform .3s var(--curva); }
  .hc-tappa.attiva .hc-tappa__nome { opacity: 1; }
  .hc-tappa.attiva .hc-tappa__attivo, .hc-tappa.fatta .hc-tappa__attivo { opacity: 1; transform: none; }
  .hc-avanzamento__linea { position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: rgba(147, 109, 84, .55); }
  .hc-avanzamento__pieno { position: absolute; inset: 0; background: var(--arancione); transform-origin: 0 50%;
    transform: scaleX(.1667); will-change: transform; }
}

/* da computer la colonna dei testi la misura hero-casco.js (--colonna): finisce sempre prima della tesa */
@media (prefers-reduced-motion: no-preference) and (min-aspect-ratio: 1001/1000) {
  .js .hc-apertura { max-width: min(580px, var(--colonna, 41vw)); }
  .js .hc-titolo { font-size: min(clamp(2.3rem, 3.65vw, 4.1rem), calc(var(--colonna, 100vw) / 9.6)); }
  .js .hc-fase { max-width: min(640px, var(--colonna, 44vw)); }
  .js .hc-fase__parola { font-size: min(clamp(3.1rem, 6.4vw, 7.4rem), calc(var(--colonna, 100vw) / 6.1)); }
  .js .hc-avanzamento { width: min(600px, max(390px, var(--colonna, 44vw))); }
}

/* ---------------------------------------------------------------- telefono (verticale) */
@media (max-aspect-ratio: 1/1) {
  .hc-apertura { max-width: 560px; justify-content: flex-start; padding-top: calc(var(--testata) + 20px);
    min-height: calc(522px + 49svh); }
  .hc-occhiello { font-size: 16px; gap: 10px; }
  .hc-occhiello img { width: 12px; }
  .hc-titolo { margin: 10px 0 12px; font-size: clamp(1.85rem, 8.1vw, 2.6rem); line-height: 1; }
  .hc-sotto { font-size: clamp(.97rem, 4vw, 1.08rem); line-height: 1.45; }
  .hc-azioni { flex-direction: column; align-items: flex-start; gap: 10px; margin: 18px 0 0 5px; }
  .pulsante { min-height: 52px; font-size: 18px; padding: 8px 26px 8px 18px; }
  .pulsante--whatsapp svg { width: 27px; height: 27px; }
  .pulsante--chiama { min-height: 46px; font-size: 17px; }
  .hc-punti { flex-direction: column; gap: 6px; margin-top: 16px; font-size: 15px; }
  .hc-punti img { height: 16px; width: 20px; object-fit: contain; }
  .hc-fase__parola { font-size: clamp(2.8rem, 13.6vw, 5.2rem); }
  .hc-fase__riga { font-size: clamp(1rem, 4.2vw, 1.15rem); }
}
@media (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 1/1) {
  /* 01/12 (Domenico, 16:26): la scena riempie lo schermo intero anche quando le barre del browser si chiudono
     (100lvh): niente striscia vuota sotto. Il casco lo mette hero-casco.js nella parte visibile con le barre aperte. */
  .js .hc-fermo { height: 100vh; height: 100lvh; }
  /* senza i tre punti, quando il casco chiuso non ci starebbe intero sotto i testi (sono anche più giù nella pagina) */
  .js .hc--stretto .hc-punti { display: none; }
  /* 01/12 (il Direttore, 21:38): sugli schermi bassi il titolo in tre righe, perché il casco resti intero sotto i pulsanti */
  .js .hc--compatto .hc-titolo { font-size: clamp(1.45rem, 6.5vw, 2.1rem); margin: 8px 0 10px; }
  .js .hc--strettissimo .hc-sotto { display: none; }
  /* la scena più piccola dello schermo: i bordi sfumano nel fondo, mai un bordo tagliato */
  .js .hc--sfuma .hc-scena {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 6%, #000 94%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, #000 89%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 6%, #000 94%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, #000 89%, rgba(0, 0, 0, 0) 100%);
    mask-composite: intersect; }
  .js .hc-quadro { width: max(100cqw, 100cqh * 9 / 16); height: max(100cqh, 100cqw * 16 / 9); }
  .js .hc-scena { transform: translate3d(0, 12svh, 0) scale(.92); } /* la posa d'apertura, prima del JS */
  .js .hc-testi { grid-template-rows: minmax(0, 1fr); }
  .js .hc-apertura { padding-top: 18px; align-self: start; }
  .js .hc-fasi { align-items: start; padding-top: 86px; }
  .js .hc-fase { max-width: 560px; }
  .js .hc-avanzamento { grid-area: auto; position: absolute; top: 20px; left: var(--bordo); right: var(--bordo); width: auto;
    max-width: 520px; margin: 0; opacity: 0; }
  .hc-tappa__nome { font-size: 14.5px; }
  .hc-tappa { gap: 8px; }
  .hc-tappa__nodo { width: 16px; height: 16px; }
  .hc-avanzamento__linea { bottom: 7px; }
}

/* computer con lo schermo basso (1366 × 640, 1280 × 720): i testi stanno fra la testata e la linea delle fasi, mai
   sotto l'una né sopra l'altra; sotto i 680 px di altezza i tre punti si tolgono (sono anche più giù nella pagina) */
@media (min-aspect-ratio: 1001/1000) and (max-height: 800px) {
  .hc-apertura, .js .hc-apertura { justify-content: center; justify-content: safe center; }
  .hc-titolo, .js .hc-titolo { font-size: min(clamp(2.3rem, 3.65vw, 4.1rem), 7vh, calc(var(--colonna, 100vw) / 9.6));
    margin: 10px 0 14px; }
  .hc-occhiello { font-size: 18px; }
  .hc-azioni { margin-top: 20px; gap: 10px 18px; }
  .hc-azioni .pulsante { min-height: 50px; }
  .hc-azioni .pulsante--chiama { min-height: 46px; }
  .hc-punti { gap: 6px; margin-top: 16px; font-size: 15px; }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 680px) {
  .hc-punti { display: none; }
}

/* telefono girato e schermi bassi: tutto più compatto */
@media (min-aspect-ratio: 1001/1000) and (max-height: 620px) {
  .hc-titolo, .js .hc-titolo { font-size: min(clamp(1.7rem, 6.4vh, 3rem), calc(var(--colonna, 100vw) / 9.6)); margin: 8px 0 10px; }
  .hc-sotto { font-size: 15px; }
  .hc-azioni { margin-top: 14px; gap: 10px 16px; }
  .pulsante { min-height: 46px; font-size: 16px; }
  .hc-punti { display: none; }
  .js .hc-apertura { justify-content: flex-start; padding-top: 10px; }
  .hc-occhiello { font-size: 15px; }
  .hc-fase__parola, .js .hc-fase__parola { font-size: min(clamp(2.6rem, 13vh, 5rem), calc(var(--colonna, 100vw) / 6.1)); }
}

/* ---------------------------------------------------------------- piede minimo */
.piede { position: relative; z-index: 2; background: var(--cioccolato); box-shadow: inset 0 2px 0 var(--arancione);
  padding: 34px 0 calc(30px + env(safe-area-inset-bottom)); font-family: var(--f-etichette); }
.piede__dentro { max-width: var(--contenitore); margin: 0 auto; padding: 0 var(--bordo); display: flex; flex-wrap: wrap;
  align-items: center; gap: 14px 30px; }
.piede .logo { height: 38px; width: auto; }
.thk-riga-legale { font-size: 16px; letter-spacing: .03em; color: var(--sabbia); }
.piede__legali { display: flex; gap: 20px; }
.piede__legali a, .piede__firma { font-size: 16px; letter-spacing: .03em; color: rgba(232, 216, 197, .78); }
.piede__legali a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.piede__firma { margin-left: auto; }
.piede__firma a { color: var(--crema); }
@media (hover: hover) and (pointer: fine) { .piede__legali a:hover { color: var(--arancione); } }
@media (max-width: 860px) {
  .piede__dentro { flex-direction: column; align-items: flex-start; gap: 10px; }
  .piede__firma { margin-left: 0; }
}
