﻿/* =========================================================================
   LA TANA DELLE FESTE · SITO B, IL FILM CORTO (27/11/2026)
   Nasce dal codice di La Locura (sito1b), alleggerito: niente palco unico con dieci strati accesi, ogni capitolo e' una sezione
   con la sua scena ferma (sticky: la tiene il browser) e la sua altezza in --alto (vh). Cosi' le forbici della regia tolgono
   un capitolo intero col display:none e il resto non si accorge di niente.
   Tre colori: blu notte #10283B (fondo), bianco (inchiostro), fucsia del logo #E8047F solo per Prenota.
   Caratteri: Baloo 2 800 per i titoli, Caveat per le battute e la frase sul muro, Nunito per i testi.
   Le regole del telefono stanno in fondo, coi selettori uguali a quelli del computer.
   ========================================================================= */
@font-face { font-family: 'Baloo 2'; src: url(font/baloo2.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(font/nunito.woff2) format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url(font/caveat.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --notte: #10283B;
  --bianco: #FFFFFF;
  --fucsia: #E8047F;
  /* i nomi che usa il pacchetto legale (legale.css): gli stessi tre colori */
  --carta: #FFFFFF; --inchiostro: #10283B; --brace: #E8047F; --fondo: #10283B;
  --serif: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bastone: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titolo: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --mano: 'Caveat', 'Segoe Print', cursive;
  --lato: 5vw;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--notte); overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--notte); color: var(--bianco); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: fixed; left: 12px; top: -60px; z-index: 500; background: var(--bianco); color: var(--notte); padding: 10px 16px; font-weight: 800; }
.salta:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--bianco); outline-offset: 3px; }
.occhiello { font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.3; }

/* le battute: entrano dal basso dopo 0,3 s, restano ferme, escono in alto in 0,2 s */
.batt { opacity: 0; transform: translateY(18px); transition: opacity .2s linear, transform .2s ease-in; }
.batt.su { opacity: 1; transform: none; transition: opacity .3s ease-out .3s, transform .3s cubic-bezier(.2, .7, .2, 1) .3s; }
.batt.via { transform: translateY(-14px); }

/* ---------- 0 · il caricamento a quattro riquadri ---------- */
#velo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0; transition: opacity .25s linear, visibility .25s; }
#velo.via { opacity: 0; visibility: hidden; pointer-events: none; }
.ve-q { position: relative; overflow: hidden; background: #0b1c29; }
.ve-q img { width: 100%; height: 100%; object-fit: cover; }
.ve-q::after { content: ''; position: absolute; inset: 0; background: #06121b; opacity: .78; transition: opacity .18s linear; }
.ve-q.acceso::after { opacity: 0; }
.ve-giro { position: absolute; left: 50%; bottom: 14%; width: 26px; height: 26px; margin-left: -13px; z-index: 2; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.ve-nome { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2.3vw, 36px); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }

/* ---------- la testata: il logo dorme sull'apertura, Prenota sempre ---------- */
#testa { position: fixed; left: 0; right: 0; top: 0; z-index: 200; display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 2.2vw 0; pointer-events: none; }
.te-logo { pointer-events: auto; width: 62px; opacity: 0; visibility: hidden; transition: opacity .25s linear, visibility .25s; }
.te-logo img { width: 62px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
html.oltre .te-logo { opacity: 1; visibility: visible; }
.prenota { pointer-events: auto; display: inline-flex; align-items: center; min-height: 46px; padding: 10px 24px; border-radius: 99px; background: var(--fucsia); color: #fff;
  font-family: var(--titolo); font-weight: 800; font-size: 18px; letter-spacing: .01em; text-decoration: none; line-height: 1; position: relative; }
/* il lampeggio: un anello su un livello suo che cresce e sparisce (solo transform e opacity, niente ridipintura della barra) */
.prenota::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 3px solid var(--fucsia); opacity: 0; will-change: transform, opacity; animation: pulsa 2.6s ease-out infinite; pointer-events: none; }
.prenota:hover { background: #fff; color: var(--fucsia); }
@keyframes pulsa { 0% { transform: scale(1); opacity: .7; } 60%, 100% { transform: scale(1.22, 1.45); opacity: 0; } }

/* il programma della festa, fisso in basso a sinistra (la guida fissa di Eppiness) */
#programma { position: fixed; left: 2.2vw; bottom: 14px; z-index: 210; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s linear; pointer-events: none; }
#programma i { width: 26px; height: 2px; background: #fff; }
#programma .pr-ora { font-family: var(--mano); font-weight: 600; font-size: 22px; letter-spacing: 0; text-transform: none; }
html.oltre #programma.su { opacity: 1; }

/* ---------- la pista: ogni capitolo ha la sua altezza e la sua scena ferma ---------- */
.cap { position: relative; height: calc(var(--alto) * 1vh); }
.pal { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--notte); contain: layout paint; }
.cap.tolto { display: none !important; }

/* ---------- 1 · il volo ---------- */
.vo-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vo-vid.sfoca { animation: afuoco .5s ease-out both; }
@keyframes afuoco { from { filter: blur(14px); } to { filter: blur(0); } }
.vo-buio { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.vo-apre { position: absolute; left: var(--lato); right: var(--lato); bottom: 7%; transition: opacity .25s linear; }
.vo-apre.via { opacity: 0; pointer-events: none; }
#c1 h1 { font-family: var(--titolo); font-weight: 800; font-size: clamp(30px, 4.2vw, 64px); line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); max-width: 15em; }
#c1 h1 span { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: .02em; margin-top: 10px; }
.vo-scorri { margin-top: 18px; font-weight: 800; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
/* il nome in piedi sul pavimento, le lettere arrivano non in ordine */
.vo-nome { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; color: #fff; line-height: .9;
  font-size: 7.6vw; letter-spacing: -.01em; perspective: 600px; text-shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 18px 30px rgba(0, 0, 0, .45); pointer-events: none; }
.vo-nome span { display: inline-block; transform: rotateX(14deg); transform-origin: 50% 100%; }
.vo-nome b { display: inline-block; font-weight: 800; visibility: hidden; transform: translateY(.18em) scale(.7); }
.vo-nome b.su { visibility: visible; transform: none; transition: transform .16s cubic-bezier(.2, 1.4, .4, 1); }

/* ---------- 2 · la carta strappata ---------- */
#c2 .pal { background: #f6f3ee; }
.ca-dentro { position: absolute; left: 50%; top: 50%; width: 46vw; height: 84vh; transform: translate(-50%, -50%); overflow: hidden; background: #000; }
.ca-dentro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.ca-sfoc { filter: blur(5px); transform: scale(1.03); }
.ca-foto { opacity: 0; transition: opacity .5s ease-out; }
#c2.fuoco .ca-foto { opacity: 1; }
.ca-carta { position: absolute; inset: 0; width: 100%; height: 100%; }
#c2.pieno .ca-dentro { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
#c2.pieno .ca-carta, #c2.pieno .ca-batt { visibility: hidden; }
.ca-foglio { fill: #f6f3ee; fill-rule: evenodd; }
.ca-bordo { fill: #d9d2c6; fill-rule: evenodd; }
.ca-batt { position: absolute; left: 0; right: 0; bottom: 3.5%; text-align: center; font-family: var(--mano); font-weight: 600; font-size: clamp(34px, 3.6vw, 58px); line-height: 1; color: var(--notte); }

/* ---------- 3 · i vassoi ---------- */
#c3 .pal { background: #000; }
.va-vid { position: absolute; top: 0; bottom: 0; right: 0; width: 58vw; height: 100%; object-fit: cover; background: #000; opacity: 0; }
#c3.parte .va-vid { opacity: 1; }
.va-invito { position: absolute; inset: 0; z-index: 2; background: #000 url(img/vassoi-poster.webp) 50% 50% / cover no-repeat; transition: opacity .12s linear; }
/* terzo giro: mai nero; sotto l'invito c'e' il primo vassoio, scurito, cosi' il titolo e il dito restano leggibili come sul nero del reel */
.va-invito::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .74); }
#c3.parte .va-invito { opacity: 0; visibility: hidden; }
.va-tit { position: absolute; left: 0; right: 0; top: 9%; text-align: center; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; color: #F7962E; line-height: 1; font-size: clamp(30px, 3.4vw, 56px); }
.va-tit span { display: block; }
.va-dito { position: absolute; left: 50%; top: 52%; width: min(34vh, 300px); height: min(34vh, 300px); transform: translate(-30%, -40%); overflow: visible; }
.va-dito path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.va-dito .d2 { visibility: hidden; }
.va-dito.alza .d1 { visibility: hidden; }
.va-dito.alza .d2 { visibility: visible; }
.va-riga { position: absolute; z-index: 3; top: 11%; right: 0; width: 58vw; text-align: center; font-family: var(--mano); font-weight: 600; font-size: clamp(22px, 2vw, 32px); line-height: 1.1;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); padding: 0 20px; opacity: 0; transition: opacity .25s linear; }
#c3.ultimo .va-riga { opacity: 1; }
.va-lato { position: absolute; left: var(--lato); top: 0; bottom: 0; width: 32vw; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.va-lato p:first-child { font-family: var(--titolo); font-weight: 800; font-size: clamp(32px, 3.6vw, 60px); line-height: 1; }
.va-lato p + p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; opacity: .92; }
#c3 .pal::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 42vw; background: var(--notte); }

/* i capitoli che partono da soli: al computer il video sta in un riquadro largo il 58% a destra, il testo a sinistra */
.fu-vid, .pa-vid { position: absolute; top: 0; bottom: 0; right: 0; width: 58vw; height: 100%; object-fit: cover; background: #000; }
.fu-lato, .pa-lato, .gr-lato { position: absolute; left: var(--lato); top: 0; bottom: 0; width: 32vw; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.fu-tit, .pa-tit, .gr-tit { font-family: var(--titolo); font-weight: 800; font-size: clamp(32px, 3.6vw, 60px); line-height: 1; letter-spacing: -.01em; }
.fu-dati, .pa-dati, .gr-dati { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; max-width: 26em; opacity: .92; }

/* ---------- 6 · il palloncino verso la camera ---------- */
.pl-a, .pl-b { position: absolute; top: 0; height: 100%; left: 21vw; width: 58vw; object-fit: cover; }
.pl-a { object-position: 50% 42%; }
.pl-b { object-position: 50% 48%; visibility: hidden; }
#c6.cambio .pl-a { visibility: hidden; }
#c6.cambio .pl-b { visibility: visible; }
.pl-p { position: absolute; left: 0; top: 0; width: 40vw; height: auto; transform-origin: 50% 55%; }
#c6.vivo .pl-p { will-change: transform, opacity; }

/* ---------- 7 · prima, durante, dopo: al computer tre colonne ---------- */
#c7 .pal { background: #000; }
/* terzo giro: le fasce non ancora accese restano visibili ma spente (mai nero) */
.tr-f { position: absolute; top: 0; bottom: 0; width: 33.334vw; opacity: .16; }
.tr-f.su { opacity: 1; }
.tr-f:not(.su) figcaption { visibility: hidden; }
.tr-1 { left: 0; } .tr-2 { left: 33.333vw; } .tr-3 { left: 66.666vw; }
.tr-f img { width: 100%; height: 100%; object-fit: cover; }
.tr-f figcaption { position: absolute; top: 46%; font-family: var(--mano); font-weight: 600; font-size: clamp(28px, 2.4vw, 40px); line-height: 1; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .75); }
.tr-1 figcaption, .tr-3 figcaption { left: 7%; } .tr-2 figcaption { right: 7%; }
.tr-batt { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-family: var(--titolo); font-weight: 800; font-size: clamp(28px, 3.2vw, 54px); line-height: 1.3; padding: 0 6vw; }
.tr-batt span { background: rgba(16, 40, 59, .86); padding: .08em .34em; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 6px; }

/* ---------- 8 · la griglia viva ---------- */
.gr-box { position: absolute; right: 6vw; top: 50%; width: min(86vh, 52vw); height: min(86vh, 52vw); transform: translateY(-50%); }
.gr-vid { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- 9 · la giornata ---------- */
#c9 .pal { background: var(--notte); }
.gi-tit { position: absolute; left: var(--lato); top: 12%; width: 26vw; font-family: var(--titolo); font-weight: 800; font-size: clamp(34px, 3.8vw, 64px); line-height: 1; }
.gi-tit span { display: block; font-family: var(--mano); font-weight: 600; font-size: .62em; margin-top: 10px; }
.gi-linea { position: absolute; left: 34vw; right: 4vw; top: 0; will-change: transform; }
.gi-linea::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .55); }
.gi-t { position: relative; width: 50%; display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 10px 28px; min-height: 128px;
  opacity: 0; transform: translateX(-24px); transition: opacity .35s ease-out, transform .35s ease-out; }
.gi-t:nth-child(even) { margin-left: 50%; transform: translateX(24px); }
.gi-t.su { opacity: 1; transform: none; }
.gi-t::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; }
.gi-t:nth-child(odd)::after { right: -6px; } .gi-t:nth-child(even)::after { left: -6px; }
.gi-t img { grid-row: 1 / 3; width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.gi-t b { font-family: var(--titolo); font-weight: 800; font-size: clamp(22px, 1.9vw, 32px); line-height: 1; align-self: end; }
.gi-t span { font-size: 16px; line-height: 1.35; align-self: start; opacity: .9; }

/* ---------- 10 · il listino: il pannello sale sopra la giornata e la copre ---------- */
#c10 { margin-top: -100vh; margin-top: -100svh; z-index: 2; }
#c10 .pal { background: #0b1e2d; }
.li-pan { position: absolute; inset: 0; padding: 13vh var(--lato) 6vh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 6vw; row-gap: 4vh; }
.li-tit { grid-column: 1 / 3; font-family: var(--titolo); font-weight: 800; font-size: clamp(44px, 5.6vw, 96px); line-height: .92; letter-spacing: -.01em; }
.li-tit span { font-family: var(--mano); font-weight: 600; font-size: .78em; margin-left: .25em; }
.li-pall { position: absolute; right: 7vw; top: 9vh; width: min(18vh, 14vw); height: auto; }
.li-col { border-top: 2px solid rgba(255, 255, 255, .6); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.li-col h3 { font-family: var(--titolo); font-weight: 800; font-size: clamp(26px, 2.3vw, 38px); line-height: 1; }
.li-col p { font-size: 17px; line-height: 1.45; }
.li-prezzo { font-family: var(--titolo); font-weight: 800; font-size: clamp(40px, 4vw, 66px) !important; line-height: 1 !important; }
.li-prezzo small { display: block; font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .04em; margin-bottom: 4px; }
.li-riga { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted rgba(255, 255, 255, .45); padding-bottom: 6px; }
.li-riga b { font-family: var(--titolo); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; }
.li-nota { grid-column: 1 / 3; font-family: var(--mano); font-weight: 600; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; }

/* ---------- 11 · la busta e il nome ---------- */
#c11 .pal { background: var(--notte); }
.bu-carta { position: absolute; left: 50%; top: 49%; width: min(460px, 84vw); height: min(620px, 72vh); transform: translate(-50%, -50%); border-radius: 18px; background: #eaf2f8; color: var(--notte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2vh; padding: 4vh 26px; will-change: transform; }
.bu-busta { position: absolute; inset: 0; perspective: 900px; z-index: 3; will-change: transform; }
.bu-busta i { position: absolute; left: 0; right: 0; display: block; }
.bu-dietro { inset: 0; border-radius: 18px; background: #dfe9f1; }
.bu-fronte { top: 34%; bottom: 0; border-radius: 0 0 18px 18px; background: #cfdde9; clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%); }
.bu-aletta { top: 0; height: 58%; transform-origin: 50% 0; background: #bccede; clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 2; backface-visibility: visible; }
.bu-nome { font-family: var(--mano); font-weight: 600; font-size: clamp(40px, 4.6vh, 56px); line-height: 1; opacity: 0; transition: opacity .3s; }
.bu-tondo { width: min(300px, 38vh); height: min(300px, 38vh); border-radius: 50%; overflow: hidden; background: #d3e0eb; box-shadow: inset 0 0 0 2px rgba(16, 40, 59, .15); }
.bu-tondo img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); }
.bu-dove { font-weight: 800; font-size: 16px; letter-spacing: .02em; text-align: center; opacity: 0; transition: opacity .3s; }
.bu-bot { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 28px; border-radius: 99px; background: var(--notte); color: #fff; font-family: var(--titolo); font-weight: 800; font-size: 19px; text-decoration: none; line-height: 1;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.bu-bot:hover { background: var(--fucsia); }
#c11.n .bu-nome, #c11.d .bu-dove { opacity: 1; }
#c11.b .bu-bot { opacity: 1; visibility: visible; }
.bu-gigante { position: absolute; left: 0; right: 0; bottom: -2vh; text-align: center; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; white-space: nowrap; line-height: .85;
  font-size: 16vw; letter-spacing: -.02em; color: #8a99a6; transform: translateY(130%); will-change: transform; }
#c11.bianco .bu-gigante { color: #fff; }

/* ---------- i contatti e il piede ---------- */
#contatti { position: relative; z-index: 3; background: var(--notte); padding: 12vh var(--lato) 8vh; text-align: center; }
#co-tit { font-family: var(--titolo); font-weight: 800; font-size: clamp(34px, 4vw, 64px); line-height: 1; max-width: 14em; margin: 0 auto 5vh; }
.co-wa { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 16px 34px; border-radius: 99px; background: #fff; color: var(--notte); font-family: var(--titolo); font-weight: 800; font-size: 22px; text-decoration: none; line-height: 1; }
.co-wa svg { width: 28px; height: 28px; fill: currentColor; }
.co-wa:hover { background: #dfe9f1; }
.co-tel { margin-top: 16px; font-size: 18px; }
.co-tel a { font-weight: 800; }
.co-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5vw; text-align: left; max-width: 1100px; margin: 9vh auto 0; }
.co-griglia h3 { margin-bottom: 12px; }
.co-griglia p { margin-bottom: 8px; font-size: 17px; }
.co-link { font-weight: 800; text-underline-offset: 3px; }
.domande { max-width: 760px; margin: 9vh auto 0; text-align: left; }
.domande h2 { font-family: var(--titolo); font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1; margin-bottom: 18px; }
.domande details { border-top: 1px solid rgba(255, 255, 255, .3); }
.domande details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.domande summary { cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 18px; list-style-position: outside; }
.domande details p { padding: 0 0 16px; font-size: 17px; }
.co-muro { font-family: var(--mano); font-weight: 600; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.15; max-width: 22em; margin: 10vh auto 0; }
.piede { position: relative; z-index: 3; background: #0b1e2d; padding: 28px var(--lato) 70px; text-align: center; font-size: 14px; line-height: 1.6; }
.pi-legale { display: flex; justify-content: center; gap: 22px; margin: 10px 0; flex-wrap: wrap; }
.pi-legale a, .pi-legale button { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pi-nota { opacity: .75; }
.wa-fisso { display: none; }

/* =========================================================================
   IL TELEFONO (e ogni schermo stretto o in piedi): stessi selettori, uno per uno
   ========================================================================= */
@media (max-width: 759px), (max-aspect-ratio: 1/1) {
  :root { --lato: 6vw; }
  .ve-nome { font-size: 4.6vw; letter-spacing: .12em; }
  #testa { padding: 10px 12px 0; }
  .te-logo, .te-logo img { width: 50px; }
  .prenota { min-height: 44px; padding: 9px 20px; font-size: 17px; }
  /* terzo giro: al telefono la barra ha un fondo, i titoli che salgono le passano sotto e non si leggono mai doppi */
  #testa { height: 72px; transition: background-color .2s linear; }
  html.oltre #testa { background: var(--notte); box-shadow: 0 8px 12px -6px rgba(0, 0, 0, .35); }
  .wa-fisso { display: flex; position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 190; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 99px;
    background: #fff; color: var(--notte); font-family: var(--titolo); font-weight: 800; font-size: 19px; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .25s linear, transform .25s ease-out, visibility .25s; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
  .wa-fisso svg { width: 24px; height: 24px; fill: currentColor; }
  html.fine .wa-fisso { opacity: 1; visibility: visible; transform: none; }
  .piede { padding-bottom: 96px; }
  #programma { left: 70px; top: 22px; bottom: auto; max-width: 180px; white-space: nowrap; }
  #programma .pr-cosa, #programma i { display: none; }
  #programma .pr-ora { font-size: 20px; }
  .vo-apre { bottom: 9%; }
  .vo-nome { top: 36%; font-size: 15.5vw; }
  .vo-nome span { white-space: nowrap; }
  .vo-nome span { display: block; }
  .ca-dentro { width: 86vw; height: 72vh; top: 46%; }
  .ca-batt { bottom: 5%; padding: 0 6vw; font-size: 36px; }
  .va-vid { width: 100%; }
  .va-riga { width: 100%; top: 12%; font-size: 24px; }
  #c3 .pal::before, .va-lato { display: none; }
  .va-tit { top: 13%; font-size: 30px; padding: 0 5vw; }
  .va-dito { width: 96vw; height: 96vw; left: auto; right: -14vw; top: 40%; transform: none; }
  .fu-vid, .pa-vid { width: 100%; }
  .fu-lato, .pa-lato { left: var(--lato); right: var(--lato); top: auto; bottom: 0; width: auto; padding-bottom: 12vh; justify-content: flex-end; gap: 10px; }
  .fu-tit, .pa-tit { font-size: 32px; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
  .fu-dati, .pa-dati { display: none; }
  .pl-a, .pl-b { left: 0; width: 100%; }
  .tr-f { left: 0 !important; width: 100%; height: 33.334%; bottom: auto; }
  .tr-1 { top: 0; } .tr-2 { top: 33.333%; } .tr-3 { top: 66.666%; }
  .tr-f figcaption { top: 50%; margin-top: -.5em; font-size: 30px; }
  .tr-batt { bottom: 37%; font-size: 30px; }
  .gr-box { left: 0; right: 0; top: 0; width: 100%; height: 100%; transform: none; }
  .gr-lato { display: none; }
  .gr-tit { font-size: 28px; }
  .gr-dati { font-size: 15px; }
  .gr-lato .gr-dati { position: fixed; display: none; }
  .gi-tit { left: 0; right: 0; width: auto; top: 0; padding: 84px var(--lato) 10px; font-size: 30px; z-index: 2; background: var(--notte); }
  .gi-tit span { display: inline; margin-left: .2em; }
  .gi-linea { left: 4vw; right: 4vw; }
  .gi-t { grid-template-columns: 1fr; grid-template-rows: auto auto auto; column-gap: 0; row-gap: 4px; padding: 10px 14px; min-height: 0; justify-items: start; }
  .gi-t:nth-child(even) { justify-items: end; text-align: right; }
  .gi-t img { grid-row: auto; width: 110px; height: 110px; }
  .gi-t b { font-size: 20px; }
  .gi-t span { font-size: 14px; }
  .li-pan { grid-template-columns: 1fr; padding: 92px var(--lato) 4vh; row-gap: 2.6vh; align-content: start; }
  .li-tit, .li-nota { grid-column: 1; }
  .li-tit { font-size: 46px; }
  .li-pall { right: 6vw; top: 10.5vh; width: 18vw; }
  .li-col { padding-top: 12px; gap: 6px; }
  .li-col p { font-size: 15px; }
  .li-col h3 { font-size: 26px; }
  .li-prezzo { font-size: 40px !important; }
  .li-riga b { font-size: 19px; }
  .li-nota { font-size: 23px; }
  .bu-carta { top: 44%; height: min(560px, 68vh); gap: 1.8vh; }
  .bu-tondo { width: min(240px, 31vh); height: min(240px, 31vh); }
  .bu-gigante { font-size: 23vw; bottom: 1vh; }
  #contatti { padding: 10vh var(--lato) 6vh; }
  .co-wa { width: 100%; font-size: 21px; }
  .co-griglia { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .ca-dentro { height: 58vh; }
  .li-pan { padding-top: 86px; row-gap: 1.6vh; }
  .li-tit { font-size: 40px; }
  .li-col p { font-size: 14px; }
  .li-nota { font-size: 21px; }
  .bu-carta { gap: 1.4vh; }
  .bu-tondo { width: 29vh; height: 29vh; }
  .gi-t { padding: 6px 12px; }
  .gi-t img { width: 100px; height: 100px; }
  .gi-t span { font-size: 13px; }
  .li-pall { display: none; }
  #c11 .bu-carta { height: 64vh; top: 47%; }
}
@media (prefers-reduced-motion: reduce) {
  .prenota::after { animation: none; }
  .ve-giro { animation: none; }
}
