/* LA TANA DELLE FESTE · SITO 2 alla DOH · lo stile (27/11/2026)
   Tre colori (SCELTE): fondo azzurro del logo #1FA8DB, inchiostro bianco e blu notte #12324A, giallo #F4E62D SOLO per «Prenota».
   Nel carosello il fondo prende il colore del tema (eccezione DOH). Secondo tempo su carta #FFF6EA con inchiostro #12324A.
   Caratteri: Fredoka (titoli), Nunito (testi), serviti da qui. */
@font-face { font-family: 'Fredoka'; src: url(font/fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(font/nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }
:root {
  --azzurro: #1FA8DB; --notte: #12324A; --giallo: #F4E62D; --carta: #FFF6EA; --bianco: #fff;
  --tit: 'Fredoka', 'Nunito', system-ui, sans-serif; --testo: 'Nunito', system-ui, sans-serif;
  /* le variabili che usa legale.css */
  --fondo: var(--notte); --inchiostro: var(--notte); --brace: #1789B5; --serif: var(--testo); --bastone: var(--testo);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carta); color: var(--notte); font-family: var(--testo); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
em { font-style: normal; }
.occhiello { margin: 0; font-family: var(--testo); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 2px solid currentColor; border-radius: 999px;
  font-family: var(--testo); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; background: none; color: inherit; transition: transform .2s, background .2s; }
.bottone:hover { transform: translateY(-2px); }
.bottone.pieno { background: var(--notte); border-color: var(--notte); color: #fff; }
.bottone.chiaro { color: #fff; }
.vb { display: block; overflow: hidden; visibility: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.vb > span { display: block; transform: translateY(112%); }
.bt { display: block; overflow: hidden; visibility: hidden; padding-bottom: .12em; }
.bt > span { display: block; transform: translateY(112%); }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; }

/* ---------------- il caricamento (RISE) ---------------- */
#velo .ve-nome { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 clamp(64px, 15vw, 210px)/1 var(--tit); letter-spacing: -.02em; white-space: nowrap; transition: all .75s cubic-bezier(.7, 0, .2, 1); }
#velo .ve-vuoto { color: transparent; -webkit-text-stroke: 1.5px rgba(18, 50, 74, .16); }
#velo .ve-pieno { position: absolute; left: 0; top: 0; color: var(--notte); clip-path: inset(100% 0 0 0); }
#velo .ve-num { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 48px); font: 700 clamp(30px, 3vw, 44px)/1 var(--tit); color: var(--notte); font-variant-numeric: tabular-nums; }
#velo .ve-num small { font-size: 12px; margin-left: 3px; }
#velo .ve-nome { transition: left .25s cubic-bezier(.6, 0, .2, 1), top .25s cubic-bezier(.6, 0, .2, 1), transform .25s cubic-bezier(.6, 0, .2, 1); }
#velo.piccolo .ve-nome, #velo.via .ve-nome { left: clamp(16px, 3vw, 40px); top: 39px; transform: translate(0, -50%) scale(.22); transform-origin: 0 50%; }
#velo.piccolo .ve-num { opacity: 0; transition: opacity .2s; }
@media (max-width: 819px), (max-aspect-ratio: 9/10) { #velo.piccolo .ve-nome, #velo.via .ve-nome { top: 32px; transform: translate(0, -50%) scale(.3); } }

/* ---------------- la barra ---------------- */
#barra { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 78px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 40px); pointer-events: none; }
#barra > * { pointer-events: auto; }
#barra .marchio { display: block; height: 62px; }
#barra .marchio img { height: 100%; width: auto; display: block; filter: drop-shadow(0 3px 6px rgba(18, 50, 74, .25)); }
#barra .nav { margin: 0 auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 24px -10px rgba(18, 50, 74, .45); }
#barra .nav a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; color: var(--notte); }
#barra .nav a:hover { background: rgba(31, 168, 219, .16); }
.prenota { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--giallo); color: var(--notte); font: 700 17px/1 var(--tit); text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(18, 50, 74, .6); position: relative; }
.prenota::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 9px rgba(244, 230, 45, .75); opacity: 0; transform: scale(.86); animation: lampo 2.4s ease-in-out infinite; pointer-events: none; will-change: transform, opacity; }
@keyframes lampo { 0%, 100% { opacity: 0; transform: scale(.86); } 10% { opacity: .9; transform: scale(.88); } 50% { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .prenota::after { animation: none; } }

/* ---------------- il volo ---------------- */
#volo { position: relative; }
.vo-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.vo-palco.chiaro { color: var(--notte); }
.vo-fondo { position: absolute; inset: 0; background: var(--azzurro); }
.vo-onda { position: absolute; left: 0; top: 0; width: 480px; height: 480px; border-radius: 50%; background: var(--azzurro); visibility: hidden; transform-origin: 50% 50%; }
.vo-parola { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; white-space: nowrap; pointer-events: none; opacity: 0; }
.vo-parola span { display: inline-block; font: 700 clamp(110px, 19vw, 300px)/1 var(--tit); letter-spacing: -.02em; color: rgba(255, 255, 255, .9); will-change: transform; }
.vo-palco.chiaro .vo-parola span { color: rgba(255, 255, 255, .82); }
.vo-gl, .vo-giro, .vo-cor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vo-cor-dietro { z-index: 3; } .vo-gl { z-index: 5; } .vo-giro { z-index: 6; display: none; } .vo-cor-davanti { z-index: 7; }
.vo-contorno { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.vo-contorno .acc { position: absolute; left: 0; top: 0; width: auto; max-width: none; visibility: hidden; }
.vo-apre { position: absolute; z-index: 9; left: clamp(22px, 6vw, 100px); top: calc(50% + 30px); transform: translateY(-50%); width: min(50vw, 680px); }
.vo-apre h1.occhiello { margin-bottom: 18px; }
.vo-titolo { margin: 0; font: 700 clamp(56px, min(8.6vw, 15vh), 150px)/.9 var(--tit); letter-spacing: -.015em; text-shadow: 0 4px 0 rgba(18, 50, 74, .18); }
.vo-titolo .ultima { color: var(--notte); text-shadow: none; }
.vo-sotto { margin: 22px 0 0; max-width: 30em; font-size: 18px; font-weight: 600; line-height: 1.45; }
.vo-bott { margin-top: 26px; }
.vo-bott > span { display: flex; gap: 12px; flex-wrap: wrap; }
.vo-bott .bottone:not(.pieno) { color: #fff; }
.vo-bollino { position: absolute; z-index: 9; right: clamp(24px, 5vw, 90px); top: 104px; width: 118px; height: 118px; padding: 0; margin: 0; }
.vo-bollino svg { width: 100%; height: 100%; display: block; transform: rotate(-12deg); }
.vo-bollino circle { fill: #fff; }
.vo-bollino text { fill: var(--notte); font: 800 9.6px var(--testo); letter-spacing: .18em; }
.vo-bollino .bn { font: 700 34px var(--tit); letter-spacing: 0; text-anchor: middle; }
.vo-bollino .bm { font: 800 12px var(--testo); letter-spacing: .2em; text-anchor: middle; }
.vo-ctit { position: absolute; z-index: 9; left: clamp(22px, 5vw, 80px); top: 104px; margin: 0; font: 600 clamp(28px, 2.8vw, 44px)/1.05 var(--tit); letter-spacing: -.01em; max-width: 60vw; }
.vo-ctit em { opacity: .78; }
/* il nome del tema piccolo in basso a sinistra, i pallini in basso al centro (Piumino) */
.vo-nomi { position: absolute; z-index: 9; left: clamp(22px, 5vw, 80px); bottom: clamp(24px, 4.5vh, 44px); width: min(420px, 38vw); height: 64px; pointer-events: none; }
.vo-nome { position: absolute; left: 0; bottom: 0; }
.vo-nome .nome { margin: 0; font: 700 clamp(20px, 1.7vw, 26px)/1.05 var(--tit); }
.vo-nome .dato { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.vo-punti { position: absolute; z-index: 9; left: 50%; bottom: clamp(30px, 5vh, 50px); transform: translateX(-50%); display: flex; gap: 10px; visibility: hidden; }
.vo-punti i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; transition: transform .25s; }   /* il colore cambia di colpo, la scala resta animata (sul compositore): la transizione del colore ridipingeva il palco per 15 fotogrammi a ogni cambio */
.vo-punti i.su { background: currentColor; transform: scale(1.25); }
.vo-pillola { position: fixed; left: 0; top: 0; z-index: 60; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--notte); font-weight: 800; font-size: 14px; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.vo-pillola.su { opacity: 1; }
.vo-az { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.az-blocco { position: absolute; left: clamp(22px, 6vw, 100px); top: 34%; width: min(46vw, 640px); }
.az-tit { margin: 0; font: 700 clamp(46px, 5.6vw, 92px)/.95 var(--tit); letter-spacing: -.015em; }
.az-tit em, .az-racc em { color: var(--notte); }
.az-bott { margin-top: 26px; pointer-events: auto; }
.az-racc { position: absolute; left: clamp(22px, 6vw, 100px); top: 34%; margin: 0; font: 700 clamp(46px, 5.6vw, 92px)/.95 var(--tit); }
.az-racc2 { top: calc(34% + clamp(46px, 5.6vw, 92px)); }

/* la scatola */
.vo-scatola { position: absolute; inset: 0; z-index: 10; visibility: hidden; pointer-events: none; }
.sc-sala { position: absolute; left: 0; top: 0; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 8px #fff, 0 40px 80px -30px rgba(10, 30, 50, .6); will-change: transform; }
.sc-sala > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-buio { position: absolute; inset: 0; background: #0b1f2e; opacity: 0; }
.sc-sala .sc-logo { inset: auto; left: 50%; top: 50%; width: auto; height: 62%; transform: translate(-50%, -50%); opacity: 0; object-fit: contain; }
.sc-ospite { position: absolute; left: 0; top: 0; z-index: 11; visibility: hidden; transform-origin: 0 0; }
/* il vassoio 3x2 disegnato in codice dentro la foto della sala (misure uguali a VAS in scatola.js) */
.sc-vassoio { position: absolute; left: 5%; right: 5%; top: 34%; bottom: 5%; padding: 2%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  background: #fff; border-radius: 18px; box-shadow: 0 14px 30px -16px rgba(10, 30, 50, .6); }
.sc-cella { position: relative; overflow: hidden; border-radius: 12px; background: #FFF6EA; box-shadow: inset 0 3px 8px rgba(18, 50, 74, .18); }
.sc-cella img, .sc-cella canvas { position: absolute; visibility: hidden; max-width: none; }
.sc-cella img[data-ancora="basso"] { left: 6%; right: 6%; bottom: 0; height: 92%; width: 88%; object-fit: contain; object-position: 50% 100%; }
.sc-cella img[data-ancora="alto"] { left: 6%; right: 6%; top: 0; height: 96%; width: 88%; object-fit: contain; object-position: 50% 0; }
.sc-cella img[data-ancora="copri"] { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-cella img[data-ancora="taglio"] { left: 6%; right: 6%; top: 7%; height: 113%; width: 88%; object-fit: contain; object-position: 50% 0; }
.sc-cella canvas { inset: 0; width: 100%; height: 100%; }
.sc-testo { position: absolute; z-index: 11; left: clamp(22px, 6vw, 100px); top: 24%; width: min(40vw, 540px); visibility: hidden; }
.sc-testo .occhiello { margin-bottom: 14px; }
.sc-tit { margin: 0; font: 700 clamp(44px, 5vw, 82px)/.95 var(--tit); letter-spacing: -.015em; }
.sc-tit em { color: var(--notte); }
.sc-lista { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-lista li { position: relative; padding: 11px 12px 11px 40px; border-radius: 16px; background: rgba(255, 255, 255, .22); border: 2px dashed rgba(255, 255, 255, .6); }   /* i gettoni si accendono di colpo, come in DOH */
.sc-lista li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid currentColor; }
.sc-lista li.si { background: #fff; border: 2px solid #fff; color: var(--notte); }
.sc-lista li.si::before { background: var(--azzurro); border-color: var(--azzurro); box-shadow: inset 0 0 0 3px #fff; }
.sc-lista b { display: block; font: 600 17px/1.15 var(--tit); }
.sc-lista small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.sc-conta { position: absolute; z-index: 12; left: 0; top: 0; width: 0; display: flex; justify-content: center; white-space: nowrap; visibility: hidden; font: 700 clamp(130px, 12vw, 180px)/1 var(--tit); color: var(--giallo); -webkit-text-stroke: 5px var(--notte); paint-order: stroke fill; letter-spacing: -.02em; }
.sc-conta small { font-size: .42em; color: #fff; -webkit-text-stroke: 3px var(--notte); align-self: flex-end; margin-bottom: .2em; }
.sc-carta { position: absolute; z-index: 12; left: clamp(22px, 6vw, 100px); top: 50%; margin-top: -190px; width: min(420px, 86vw); padding: 30px 32px 28px; border-radius: 26px; background: #fff; color: var(--notte); visibility: hidden; opacity: 0;
  box-shadow: 0 40px 80px -30px rgba(10, 30, 50, .55); }
.sc-nome { margin: 10px 0 0; font: 700 44px/1 var(--tit); }
.sc-prezzo { margin: 6px 0 0; font: 700 64px/1 var(--tit); color: var(--azzurro); }
.sc-prezzo small { display: block; font: 800 14px/1.4 var(--testo); color: var(--notte); text-transform: uppercase; letter-spacing: .12em; }
.sc-nota { margin: 12px 0 18px; font-size: 16px; font-weight: 600; }
.sc-bott { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- il secondo tempo ---------------- */
.cap { position: relative; }
.quinta { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
h2 { font-family: var(--tit); }

/* 6. le tre sale */
#ambienti { height: 220vh; background: var(--notte); color: #fff; }
.am-quinta { display: grid; grid-template-rows: auto 1fr; padding: 104px clamp(20px, 6vw, 100px) 40px; gap: 22px; }
.am-testa h2 { margin: 6px 0 0; font: 700 clamp(44px, 5vw, 84px)/.95 var(--tit); }
.am-testa h2 em { color: var(--azzurro); }
.am-carta { --am: var(--azzurro); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 3vw, 40px); min-height: 0; background: #fff; color: var(--notte); border-radius: 28px; padding: clamp(14px, 1.6vw, 22px); }
.am-foto { position: relative; border-radius: 20px; overflow: hidden; background: var(--am); transition: background .4s; min-height: 0; }
.am-foto img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: cover; border-radius: 16px; opacity: 0; transform: scale(.96) rotate(-1.5deg); transition: opacity .45s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.am-foto img.su { opacity: 1; transform: none; }
.am-righe { list-style: none; margin: 0; padding: 0; align-self: center; }
.am-righe li { position: relative; padding: 18px 20px; border-top: 2px solid rgba(18, 50, 74, .12); cursor: pointer; border-radius: 0; transition: background .35s, color .35s; }
.am-righe li:last-child { border-bottom: 2px solid rgba(18, 50, 74, .12); }
.am-righe li.su { background: var(--am); color: #fff; border-color: transparent; border-radius: 16px; }
.am-n { font-size: 13px; font-weight: 800; letter-spacing: .16em; opacity: .7; }
.am-righe b { display: block; font: 600 clamp(24px, 2.4vw, 36px)/1.05 var(--tit); }
.am-righe small { display: block; margin-top: 6px; max-height: 0; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.45; opacity: 0; transition: opacity .35s; }
.am-righe li.su small { opacity: 1; }
.am-righe li.su small { max-height: 120px; }

/* 7. la frase */
#frase { height: 150vh; background: var(--giallo); color: var(--notte); }
.fr-quinta { display: grid; place-items: center; }
.fr-testo { margin: 0; text-align: left; font: 700 clamp(58px, 9.4vw, 160px)/.92 var(--tit); letter-spacing: -.02em; }
.fr-testo em { color: #E8047F; }
#frase .bt { overflow: visible; }
#frase .bt > span { transform: translate3d(0, 34%, 0); opacity: 0; }
.fr-bollino { position: absolute; right: clamp(16px, 8vw, 150px); top: 20%; width: clamp(110px, 13vw, 200px); height: auto; opacity: 0; }

/* 8. i passi */
#passi { height: 300vh; background: var(--azzurro); color: var(--notte); }
.pa-quinta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 5vw, 90px); padding: 90px clamp(20px, 6vw, 100px) 40px; }
.pa-sx h2 { margin: 8px 0 24px; font: 700 clamp(44px, 5.2vw, 88px)/.95 var(--tit); }
.pa-sx h2 em { color: #fff; }
.pa-elenco { list-style: none; margin: 0; padding: 0; }
.pa-elenco li { display: flex; gap: 16px; align-items: baseline; padding: 12px 16px; border-radius: 14px; font: 600 clamp(20px, 1.8vw, 26px)/1.1 var(--tit); opacity: .45; transition: opacity .3s, background .3s; }
.pa-elenco li span { font: 800 13px var(--testo); letter-spacing: .14em; }
.pa-elenco li.su { opacity: 1; background: #fff; box-shadow: 0 10px 30px -18px rgba(18, 50, 74, .6); }
.pa-mazzo { position: relative; height: min(64vh, 560px); }
.pa-carta { position: absolute; inset: 0; padding: clamp(24px, 3vw, 40px); border-radius: 28px; color: var(--notte); box-shadow: 0 30px 60px -34px rgba(18, 50, 74, .7); will-change: transform; overflow: hidden; }
.pa-carta:nth-child(1) { background: #fff; }
.pa-carta:nth-child(2) { background: var(--carta); }
.pa-carta:nth-child(3) { background: var(--giallo); }
.pa-carta:nth-child(4) { background: var(--notte); color: #fff; }
.pa-num { font: 700 80px/1 var(--tit); opacity: .22; }
.pa-carta h3 { margin: 6px 0 12px; font: 700 clamp(30px, 3vw, 48px)/1 var(--tit); }
.pa-carta p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; max-width: 30em; }
.pa-gratta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; width: 100%; }
.pa-gratta div { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--carta); border: 2px solid rgba(18, 50, 74, .15); display: grid; place-content: center; text-align: center; }
.pa-gratta b { font: 800 12px var(--testo); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.pa-gratta i { font: 600 clamp(20px, 2vw, 30px)/1.1 var(--tit); font-style: normal; color: var(--azzurro); }
.pa-gratta canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; touch-action: none; cursor: crosshair; }
.pa-mini { margin-top: 10px !important; font-size: 14px !important; opacity: .7; }
.pa-programma { --tondo: 104px; list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.pa-programma::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.pa-programma li { position: relative; display: flex; align-items: center; width: 50%; height: calc(var(--tondo) * .56); font: 600 clamp(17px, 1.5vw, 22px)/1.1 var(--tit);
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.pa-programma li:last-child { height: var(--tondo); }
.pa-programma li:nth-child(odd) { justify-content: flex-end; text-align: right; padding-right: calc(var(--tondo) + 12px); }
.pa-programma li:nth-child(even) { margin-left: 50%; padding-left: calc(var(--tondo) + 12px); }
.pa-programma li i { position: absolute; top: 0; width: var(--tondo); height: var(--tondo); border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid var(--azzurro); z-index: 1; }
.pa-programma li:nth-child(odd) i { right: 0; }
.pa-programma li:nth-child(even) i { left: 0; }
.pa-programma li span { display: block; margin-top: calc(var(--tondo) * .44); }
.pa-programma li:last-child span { margin-top: 0; }
.pa-programma li i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-programma li i.chiaro img { object-fit: contain; padding: 8%; }
.pa-carta.programma .pa-num { display: none; }
.pa-programma li.su { opacity: 1; transform: none; }

/* 9. il listino: sale dal basso sopra i passi */
#listino { position: relative; z-index: 3; margin-top: -60vh; }
.li-pannello { position: relative; min-height: 100vh; background: var(--notte); color: #fff; border-radius: 36px 36px 0 0; padding: 110px clamp(20px, 6vw, 100px) 90px; }
.li-pannello h2 { margin: 8px 0 34px; font: 700 clamp(48px, 6vw, 100px)/.95 var(--tit); }
.li-pannello h2 em { color: var(--azzurro); }
.li-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); margin-bottom: 40px; }
.li-col h3 { margin: 0 0 8px; font: 600 26px var(--tit); color: var(--azzurro); }
.li-riga { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); font-size: 18px; font-weight: 700; }
.li-riga small { display: block; font-size: 14px; font-weight: 600; opacity: .72; }
.li-riga b { font: 600 22px var(--tit); white-space: nowrap; text-align: right; }
.li-riga b.li-chiedi { font-size: 18px; white-space: normal; max-width: 40%; }
.li-bollino { position: absolute; right: clamp(20px, 6vw, 100px); top: 60px; width: clamp(90px, 9vw, 140px); height: auto; transform: rotate(10deg); }

/* 10. le domande */
#domande { background: #fff; position: relative; z-index: 3; }
.do-foglio { max-width: 980px; margin: 0 auto; padding: 120px clamp(20px, 6vw, 60px) 120px; }
.do-foglio h2 { margin: 0 0 30px; font: 700 clamp(48px, 6vw, 96px)/.95 var(--tit); }
.do-foglio h2 em { color: var(--azzurro); }
details { border-top: 2px solid rgba(18, 50, 74, .12); }
details:last-child { border-bottom: 2px solid rgba(18, 50, 74, .12); }
summary { list-style: none; cursor: pointer; padding: 22px 50px 22px 0; position: relative; font: 600 clamp(21px, 2vw, 28px)/1.15 var(--tit); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 32px var(--tit); color: var(--azzurro); transition: transform .3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 22px; font-size: 18px; font-weight: 600; max-width: 40em; }

/* 11. la busta */
#invito { height: 220vh; background: var(--azzurro); color: #fff; position: relative; z-index: 3; }
.in-quinta { display: grid; place-items: center; perspective: 1400px; }
.in-tit { position: absolute; top: 96px; left: 0; right: 0; text-align: center; margin: 0; font: 700 clamp(40px, 5vw, 80px)/1 var(--tit); }
.in-busta { position: relative; width: min(560px, 86vw); aspect-ratio: 1.45; margin-top: 30vh; transform-style: preserve-3d; }
.in-dietro { position: absolute; inset: 0; background: #0e7fa9; border-radius: 14px; }
.in-davanti { position: absolute; inset: 0; z-index: 4; border-radius: 14px; background:
  linear-gradient(to top right, #F2F7FA 49.6%, transparent 50%) left bottom / 51% 100% no-repeat,
  linear-gradient(to top left, #F2F7FA 49.6%, transparent 50%) right bottom / 51% 100% no-repeat,
  linear-gradient(to top, #E8F1F6 38%, transparent 38.2%); filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, .08)); pointer-events: none; }
.in-aletta { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 5; transform-origin: 50% 0; background: linear-gradient(to bottom, #DDEBF2, #F7FBFD); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.in-carta { position: absolute; left: 5%; right: 5%; top: 6%; height: 128%; z-index: 2; background: #fff; color: var(--notte); border-radius: 12px; padding: 22px 20px; text-align: center; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .4); }
.in-tondo { width: 40%; aspect-ratio: 1; margin: 6px auto 12px; border-radius: 50%; border: 3px dashed rgba(18, 50, 74, .25); overflow: hidden; }
.in-tondo { position: relative; transform: scale(.82); }
.in-tondo .in-velo { display: none; }
.in-tondo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-velo { position: absolute; inset: 0; background: #fff; will-change: transform; }
.in-nome { margin: 0; font: 700 clamp(30px, 3vw, 42px)/1.05 var(--tit); color: var(--azzurro); }
.in-dato { margin: 6px 0 16px; font-size: 15px; font-weight: 700; }
.in-bott > span { display: flex; justify-content: center; }

/* il piede */
.piede { position: relative; z-index: 3; background: var(--notte); color: #fff; padding: 90px clamp(20px, 6vw, 100px) 30px; overflow: hidden; }
.pi-colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pi-colonne h3 { margin: 0 0 10px; font: 600 15px var(--testo); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--azzurro); }
.pi-colonne p { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.6; }
.pi-wa { display: none; }
.pi-nome { margin: 0 0 40px; overflow: hidden; line-height: .82; padding-bottom: .1em; }
/* RISE 18,00-18,50: il nome sale dal basso grigio e in 0,25 s diventa bianco, a tempo d'orologio quando entra in vista */
.pi-nome span { display: block; font: 700 clamp(60px, 19vw, 330px)/.82 var(--tit); letter-spacing: -.03em; color: #5d7487; white-space: nowrap; text-align: center;
  transform: translateY(55%); transition: transform .5s cubic-bezier(.2, .7, .2, 1), color .25s linear .3s; }
.pi-nome span.su { transform: none; color: #fff; }
.pi-mucchio { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 30px; position: relative; }
.pi-mucchio img { height: clamp(70px, 9vw, 140px); width: auto; margin: 0 -10px; }
.pi-mucchio img:nth-child(odd) { transform: rotate(-8deg); } .pi-mucchio img:nth-child(even) { transform: rotate(7deg) translateY(6px); }
.pi-fondo { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; opacity: .85; }
.pi-fondo p { margin: 0; }
.pi-legale { display: flex; gap: 18px; }
.pi-legale a, .pi-pref { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.vo-titolo, .az-tit, .sc-tit, .am-testa h2, .pa-sx h2, .li-pannello h2, .do-foglio h2, .in-tit, summary { text-wrap: balance; }

/* ================= il telefono ================= */
@media (max-width: 819px), (max-aspect-ratio: 9/10) {
  #barra { height: 64px; gap: 10px; }
  #barra .nav { display: none; }
  #barra .marchio { height: 50px; margin-right: auto; }
  .prenota { min-height: 42px; padding: 0 20px; font-size: 16px; }
  .vo-apre { left: 20px; right: 20px; width: auto; top: 76px; transform: none; }
  .vo-apre h1.occhiello { font-size: 11.5px; margin-bottom: 10px; letter-spacing: .12em; }
  .vo-titolo { font-size: clamp(44px, 13vw, 60px); }
  .vo-sotto { margin-top: 12px; font-size: 15px; }
  .vo-bott { margin-top: 14px; }
  .vo-bott .bottone { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .vo-bollino { width: 82px; height: 82px; top: auto; bottom: 22px; right: 16px; }
  .vo-ctit { top: 78px; left: 20px; right: 20px; max-width: none; font-size: 28px; }
  .vo-nomi { left: 18px; right: auto; width: 60vw; bottom: 46px; height: 52px; }
  .vo-nome .nome { font-size: 19px; }
  .vo-nome .dato { font-size: 12.5px; }
  .vo-punti { bottom: 18px; }
  .vo-parola span { font-size: 34vw; }
  .az-blocco { left: 20px; right: 20px; top: 84px; width: auto; }
  .az-tit { font-size: clamp(36px, 10.4vw, 50px); }
  .az-bott { position: fixed; left: 20px; bottom: 30px; }
  .az-racc { left: 20px; top: 84px; font-size: clamp(36px, 10.4vw, 50px); }
  .az-racc2 { top: calc(84px + clamp(36px, 10.4vw, 50px)); }
  .sc-testo { left: 20px; right: 20px; width: auto; top: 74px; }
  .sc-testo .occhiello { margin-bottom: 6px; font-size: 11.5px; }
  .sc-tit { font-size: clamp(32px, 9.4vw, 42px); }
  .sc-lista { margin-top: 12px; gap: 6px; }
  .sc-lista li { padding: 7px 8px 7px 30px; border-radius: 12px; }
  .sc-lista li::before { left: 9px; width: 13px; height: 13px; margin-top: -6.5px; }
  .sc-lista b { font-size: 14.5px; }
  .sc-lista small { font-size: 12px; }
  .sc-conta { font-size: 96px; -webkit-text-stroke: 4px var(--notte); }
  .sc-carta { left: 16px; right: 16px; width: auto; top: 84px; margin-top: 0; padding: 22px 22px 20px; }
  .sc-nome { font-size: 34px; } .sc-prezzo { font-size: 48px; }
  .sc-bott .bottone { min-height: 44px; padding: 0 16px; font-size: 14px; }
  #ambienti { height: 240vh; }
  .am-quinta { padding: 78px 16px 18px; gap: 12px; }
  .am-testa h2 { font-size: 40px; }
  .am-testa .occhiello { font-size: 11.5px; }
  .am-carta { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 10px; gap: 10px; border-radius: 22px; }
  .am-righe li { padding: 10px 14px; }
  .am-righe b { font-size: 22px; }
  .am-righe small { font-size: 13.5px; }
  .am-righe li.su small { max-height: 90px; }
  .fr-testo { font-size: clamp(50px, 15vw, 70px); }
  .fr-bollino { top: auto; bottom: 12%; right: 20px; width: 96px; }
  #passi { height: 310vh; }
  .pa-quinta { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 14px; padding: 76px 16px 22px; }
  .pa-sx h2 { font-size: 36px; margin: 4px 0 8px; }
  .pa-sx .occhiello { font-size: 11.5px; }
  .pa-elenco { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .pa-elenco li { padding: 6px 10px; font-size: 16px; gap: 8px; }
  .pa-mazzo { height: 100%; min-height: 300px; }
  .pa-carta { padding: 22px 20px; }
  .pa-num { font-size: 54px; }
  .pa-carta h3 { font-size: 28px; }
  .pa-carta p { font-size: 16px; }
  .pa-gratta { gap: 8px; margin-top: 12px; }
  .pa-gratta i { font-size: 17px; }
  .pa-programma { --tondo: 64px; }
  .pa-programma li { font-size: 15px; gap: 6px; }
  .li-pannello { padding: 90px 18px 60px; border-radius: 26px 26px 0 0; }
  .li-colonne { grid-template-columns: 1fr; gap: 26px; }
  .li-riga { font-size: 16px; }
  .li-riga b { font-size: 18px; }
  .li-riga b.li-chiedi { font-size: 15px; }
  .li-bollino { top: 70px; width: 76px; }
  .do-foglio { padding: 90px 18px 80px; }
  summary { font-size: 20px; }
  details p { font-size: 16px; }
  .in-tit { top: 80px; font-size: 34px; padding: 0 16px; }
  .in-busta { margin-top: 10vh; }
  .in-carta { padding: 14px 12px; }
  .in-nome { font-size: 28px; }
  .in-dato { font-size: 13px; margin-bottom: 10px; }
  .pi-colonne { grid-template-columns: 1fr; gap: 6px; }
  .pi-wa { display: flex; flex-direction: column; align-items: center; margin: 26px 0 0; padding: 18px; border-radius: 20px; background: #25D366; color: #08341a; font: 700 22px/1.1 var(--tit); text-decoration: none; }
  .pi-wa small { font: 800 16px var(--testo); margin-top: 4px; }
  .piede { display: flex; flex-direction: column; padding-top: 70px; }
  .pi-colonne { order: 1; } .pi-wa { order: 2; } .pi-nome { order: 3; margin: 34px 0 0; } .pi-mucchio { order: 4; } .pi-fondo { order: 5; }
  .pi-mucchio { margin-top: 18px; }
  .pi-mucchio img { height: 64px; margin: 0 -8px; }
  .pi-nome span { font-size: 22vw; }
}
@media (max-width: 819px) and (max-height: 700px) {
  .vo-apre { top: 70px; }
  .vo-titolo { font-size: clamp(38px, 11vw, 48px); }
  .vo-sotto { font-size: 14px; }
  .vo-bollino { display: none; }
  .sc-lista small { display: none; }
  .sc-tit { font-size: 32px; }
  .am-righe small { font-size: 12.5px; }
  .am-righe li.su small { max-height: 70px; }
  .pa-gratta { gap: 6px; }
  .pa-carta p { font-size: 15px; }
  .in-busta { width: min(420px, 78vw); }
}
@media (orientation: landscape) and (max-height: 560px) {
  .vo-apre { top: 64px; width: 54vw; }
  .vo-titolo { font-size: 40px; }
  .vo-sotto { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vb > span, .bt > span { transition: none; } }

/* =====================================================================================================================================
   LE PAGINE LEGALI (privacy.html, cookie.html), dal pacchetto di La Bottega del Decoro con i colori della Tana
   ===================================================================================================================================== */
body.pagina-legale { background: var(--carta); color: var(--inchiostro); -webkit-font-smoothing: antialiased; }
.pagina-legale .foglio { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.pagina-legale .torna { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bastone); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brace); text-decoration: none; padding: 10px 0; margin-bottom: 34px; }
.pagina-legale .torna svg { width: 16px; height: 16px; flex: none; }
.pagina-legale .occhiello { color: var(--brace); font-size: 12px; letter-spacing: .26em; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.pagina-legale .occhiello::before { content: ''; width: 34px; height: 2px; background: var(--brace); flex: none; }
.pagina-legale h1 { font-family: var(--tit); font-weight: 600; font-size: clamp(40px, 7.4vw, 66px); line-height: 1.02; margin: 0 0 20px; }
.pagina-legale h1 em { color: var(--brace); }
.pagina-legale .piede-legale { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(18, 50, 74, .16); display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(18, 50, 74, .6); }
.pagina-legale .piede-legale a { text-decoration: none; }
.pagina-legale .piede-legale .voci { display: flex; gap: 22px; flex-wrap: wrap; }
.carta-legale { font-family: var(--testo); font-size: 17px; line-height: 1.7; color: var(--inchiostro); --linea: rgba(18, 50, 74, .16); --testo-leg: rgba(18, 50, 74, .88); }
.carta-legale .sommario { color: rgba(18, 50, 74, .78); font-size: 19px; line-height: 1.6; padding-bottom: 30px; margin: 0 0 8px; border-bottom: 1px solid var(--linea); }
.carta-legale .aggiornata { font-weight: 800; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(18, 50, 74, .55); margin: 16px 0 0; }
.carta-legale h2 { font-family: var(--tit); font-weight: 600; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.18; margin: 50px 0 14px; color: var(--inchiostro); }
.carta-legale h2 .num { display: inline-block; color: var(--brace); font-family: var(--testo); font-weight: 800; font-size: 12px; letter-spacing: .14em; margin-right: 14px; vertical-align: .22em; }
.carta-legale h3 { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 30px 0 10px; }
.carta-legale p { margin: 0 0 15px; color: var(--testo-leg); }
.carta-legale ul, .carta-legale ol { margin: 0 0 16px; padding: 0; list-style: none; }
.carta-legale li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--testo-leg); }
.carta-legale ul > li::before { content: ''; position: absolute; left: 3px; top: .78em; width: 6px; height: 6px; background: var(--brace); border-radius: 50%; }
.carta-legale ol { counter-reset: passo; }
.carta-legale ol > li { counter-increment: passo; padding-left: 32px; }
.carta-legale ol > li::before { content: counter(passo); position: absolute; left: 0; top: .08em; font-weight: 800; font-size: 13px; color: var(--brace); }
.carta-legale a { color: var(--brace); text-underline-offset: 3px; }
.carta-legale .scheda { border: 1px solid var(--linea); border-left: 3px solid var(--brace); padding: 22px 26px; margin: 20px 0 10px; background: rgba(18, 50, 74, .035); }
.carta-legale .scheda p { margin-bottom: 7px; }
.carta-legale .tabella-scorre { overflow-x: auto; margin: 18px 0 22px; }
.carta-legale table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.55; }
.carta-legale th, .carta-legale td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--linea); }
.carta-legale th { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brace); }
.carta-legale td:first-child { font-weight: 800; white-space: nowrap; }
.carta-legale .azione { border: 1px solid rgba(23, 137, 181, .45); background: rgba(23, 137, 181, .07); padding: 24px 26px; margin: 22px 0 10px; }
.carta-legale .azione .bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.carta-legale .azione button, .carta-legale .azione .come-bottone { font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 14px 24px; cursor: pointer; border: 1px solid var(--inchiostro); background: none; color: var(--inchiostro); text-decoration: none; display: inline-block; font-family: var(--testo); }
.carta-legale .azione button#revoca { background: var(--inchiostro); color: var(--carta); }
.carta-legale #esito { display: block; margin-top: 12px; font-size: 15px; min-height: 1.3em; }
@media (max-width: 640px) { .pagina-legale .foglio { padding: 38px 20px 72px; } .carta-legale { font-size: 16.5px; } }

/* la carta dei cookie: velo pieno dietro, niente sfocatura a tutta pagina (regola del 12/11) */
#lg-banner { background: rgba(18, 50, 74, .9); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* fluido al telefono (27/11 notte): chi cambia opacita' o posizione durante lo scroll sta sul suo livello, gli altri no */
.vo-parola, .sc-testo, .sc-conta, .sc-carta, .sc-buio, .sc-sala .sc-logo, .vo-pillola, .vo-onda { will-change: opacity, transform; }
.vb.mv > span, .bt.mv > span, .vo-contorno .acc.mv, .sc-oggetti > .mv { will-change: transform; }
/* il palco del volo e le quinte sono livelli loro: quello che cambia dentro non ridipinge la pagina intera */
.vo-palco { will-change: transform; contain: layout paint; }
.quinta { contain: layout paint; }

/* sulla frase gialla e nei passi il bottone Prenota si inverte per non confondersi col fondo */
#barra.su-giallo .prenota { background: var(--notte); color: var(--giallo); }

/* quinto giro: fondo pieno della barra dai passi in giu' (colore della sezione sotto, scelto da serio.js) */
#barra::before { content: ""; position: absolute; inset: 0; background: var(--fondo-barra, transparent); visibility: hidden; pointer-events: none; z-index: -1; }
#barra.pieno::before { visibility: visible; }
