/* BABULANDIA · SITO 2 «alla DOH» (2/12/2026)
   Primo tempo: il palco fermo dove vola il trono vero (volo.js). Secondo tempo: il sito serio, ogni parte col suo cartello (serio.js).
   Colori dal logo e dalla sala: turchese #2FB3A6 (il fondo dell'apertura e il piede), blu notte #17304A (l'inchiostro),
   giallo trono #F7C81E (una parola del titolo e i palloncini), fucsia #D81B72 SOLO per «Blocca la data».
   I colori dei temi entrano solo nel carosello. Niente sfocature ne' ombre grandi su quello che scorre. */
:root { --lato: clamp(16px, 4.6vw, 76px); --notte: #17304A; --chiaro: #EAF7F5; --tondo: clamp(24px, 2.6vw, 36px); }
html { background: var(--carta); }
body { font-family: var(--bastone); font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--inchiostro); background: var(--carta); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.salta { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--inchiostro); color: #fff; padding: 12px 18px; }
.salta:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; }

/* ---------- i bottoni ---------- */
.bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 2px solid currentColor; border-radius: 999px; background: transparent;
  font-family: var(--bastone); font-weight: 800; font-size: 16px; line-height: 1.15; letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.bottone.fucsia { background: var(--fucsia); border-color: var(--fucsia); color: #fff; }
.bottone.chiaro { color: #fff; }
.bottone.grande { min-height: 58px; padding: 0 30px; font-size: 18px; }
@media (hover: hover) {
  .bottone:hover { background: var(--inchiostro); border-color: var(--inchiostro); color: #fff; }
  .bottone.fucsia:hover { background: #B3125D; border-color: #B3125D; }
  .bottone.chiaro:hover { background: #fff; border-color: #fff; color: var(--inchiostro); }
}

/* ---------- la testata ---------- */
.testa { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 68px; padding: 0 var(--lato); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--inchiostro); }
.testa-fondo { position: absolute; inset: 0; z-index: -1; background: var(--carta); border-bottom: 1px solid rgba(23, 48, 74, .1); opacity: 0; pointer-events: none; }
.testa-logo { display: block; flex: none; border-radius: 10px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 2px #fff; opacity: 0; transition: opacity .3s; }
.logo-pronto .testa-logo { opacity: 1; }
.testa-logo img { width: 124px; height: auto; }
.testa-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.testa-nav a { font-size: 15px; font-weight: 800; text-decoration: none; padding: 9px 15px; border-radius: 999px; white-space: nowrap; }
@media (hover: hover) { .testa-nav a:hover { background: var(--chiaro); } }
.testa-destra { display: flex; align-items: center; gap: 10px; }
.testa-menu { display: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; }
.blocca { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--fucsia); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px #fff; }
.blocca .pallone { position: absolute; left: -19px; top: -5px; width: 22px; height: 34px; transform-origin: 50% 100%; animation: dondola 3.2s ease-in-out infinite; }
@keyframes dondola { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-3px); } }
@media (hover: hover) { .blocca:hover { background: #B3125D; } }
@media (max-width: 1080px) {
  .testa-menu { display: inline-block; }
  .testa-nav { position: absolute; left: 12px; right: 12px; top: 100%; flex-direction: column; gap: 0; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(23, 48, 74, .18);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .testa-nav.aperto { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .testa-nav a { padding: 14px 16px; font-size: 17px; }
}
@media (max-width: 520px) {
  .testa { height: 62px; gap: 8px; }
  .testa-logo img { width: 96px; }
  .testa-menu { padding: 0 13px; font-size: 14px; min-height: 42px; }
  .blocca { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .blocca .pallone { left: -15px; top: -4px; width: 18px; height: 29px; }
}

/* =====================================================================================================================================
   PRIMO TEMPO · IL PALCO
   ===================================================================================================================================== */
.volo { position: relative; height: 1232vh; height: 1232svh; }   /* LS (1032, lo scorrimento del palco in volo.js) + 200 */
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; color: var(--inchiostro); }
.fondo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fondo .strato { position: absolute; inset: 0; will-change: opacity; }
.fondo .base { background: var(--turchese); }
.fondo .notte { background: var(--turchese); opacity: 0; z-index: 3; }
.fondo .onda { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }

/* le righe: una fessura, la scritta entra dal basso e esce in alto */
.riga { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.riga > span { display: block; }
.js .palco .riga > span { transform: translateY(112%); will-change: transform; }

.gigante { position: absolute; left: var(--lato); top: clamp(96px, 19svh, 190px); z-index: 6; font-family: var(--titoli); font-weight: 800; font-size: min(8.3vw, 16svh); line-height: .9; text-transform: uppercase;
  color: #fff; text-shadow: 0 .05em 0 var(--notte); white-space: nowrap; pointer-events: none; }
.gigante .giallo { color: var(--giallo); }

.bande { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tema { z-index: 0; }
.banda { position: absolute; left: 0; top: 50%; white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.banda span { display: block; margin-top: -.5em; font-family: var(--titoli); font-weight: 800; font-size: min(22vw, 30svh); line-height: 1; text-transform: uppercase; }
.temi { position: absolute; inset: 0; pointer-events: none; }   /* niente z-index: ogni tema sta davanti o dietro la parola enorme da solo */
.tema { position: absolute; left: 50%; top: 50%; max-width: none; opacity: 0; will-change: transform, opacity; -webkit-user-select: none; user-select: none; }

.cornice { position: absolute; z-index: 3; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; opacity: 0; will-change: opacity; background: #E8E2D8; box-shadow: 0 0 0 4px #fff; }
.cornice img { display: block; width: 100%; height: 100%; }
.trono { position: absolute; left: 50%; top: 50%; z-index: 4; max-width: none; will-change: transform; -webkit-user-select: none; user-select: none; pointer-events: none; }
.corona { position: absolute; left: 50%; top: 50%; z-index: 5; width: 157px; height: 106px; margin: -53px 0 0 -78.5px; max-width: none; will-change: transform; pointer-events: none; }
.coriandoli { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.coriandoli i { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
html:not(.js) .trono { transform: translate(18vw, 4vh) scale(.5); }

/* l'apertura */
.ap { position: absolute; left: var(--lato); bottom: 7svh; z-index: 8; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 42vw; }
.ap-occ { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--notte); }
.ap-sotto { font-weight: 800; font-size: clamp(19px, 1.8vw, 28px); line-height: 1.2; max-width: 20em; color: var(--notte); }
.ap-bottoni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ap-bottoni .bottone:not(.fucsia) { background: #fff; border-color: #fff; color: var(--notte); }

/* l'incoronazione */
.az { position: absolute; left: var(--lato); top: 50%; z-index: 8; transform: translateY(-50%); max-width: 44vw; color: #fff; }
.az-t { font-family: var(--titoli); font-weight: 800; font-size: clamp(42px, 5.2vw, 88px); line-height: .98; text-shadow: 0 .05em 0 var(--notte); }
.az-s { font-size: 15px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 16px; color: var(--notte); }

/* il carosello */
.ca { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.ca-titolo { position: absolute; left: 0; right: 0; top: clamp(78px, 10svh, 108px); text-align: center; }
.ca-titolo > span { display: inline-block; padding: 8px 18px 9px; border-radius: 999px; background: #fff; color: var(--notte); font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ca-nomi li { position: absolute; left: 0; right: 0; bottom: clamp(58px, 8svh, 86px); text-align: center; }
.ca-nomi h3 { font-family: var(--titoli); font-weight: 800; font-size: clamp(32px, 4.2vw, 70px); line-height: 1; }
.ca-nomi p { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.ca-pallini { position: absolute; left: 50%; bottom: clamp(12px, 2svh, 22px); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 9px 13px; border-radius: 999px; background: #fff; visibility: hidden; will-change: opacity; }
.ca-pallini li { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--notte); }
.ca-pallini li i { position: absolute; inset: -2px; border-radius: 50%; background: var(--notte); opacity: 0; }

/* la sala vera: il contatore e la carta */
.sa { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.sa-lato { position: absolute; left: var(--lato); top: clamp(86px, 13svh, 128px); width: min(28vw, 400px); padding: 20px 22px 22px; border-radius: 24px; background: #fff; color: var(--notte); opacity: 0; will-change: opacity; }
.sa-titolo { font-family: var(--titoli); font-weight: 800; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; }
.sa-sotto { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.sa-conta { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; opacity: 0; will-change: opacity; }
.sa-conta b { position: relative; display: inline-block; min-width: .6em; font-family: var(--titoli); font-weight: 800; font-size: clamp(56px, 5.4vw, 84px); line-height: .9; font-variant-numeric: tabular-nums; }
.sa-conta .n { opacity: 0; }
.sa-conta .n + .n { position: absolute; left: 0; top: 0; }
.sa-conta i { font-family: var(--titoli); font-style: normal; font-weight: 800; font-size: clamp(26px, 2.4vw, 38px); opacity: .55; }
.sa-conta .v { display: none !important; }
.sa-gettoni { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; opacity: 0; will-change: opacity; }
.sa-gettoni li { position: relative; font-size: 14px; font-weight: 800; line-height: 1; padding: 9px 12px; border: 2px solid rgba(23, 48, 74, .25); border-radius: 999px; background: #fff; color: rgba(23, 48, 74, .62); white-space: nowrap; }
.sa-gettoni li i { position: absolute; inset: -2px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--turchese); color: #fff; font-style: normal; opacity: 0; }
.sa-carta { position: absolute; left: var(--lato); bottom: 5svh; width: min(28vw, 400px); padding: 20px 22px 22px; border-radius: 24px; background: #fff; color: var(--notte); opacity: 0; will-change: transform, opacity; }
.sa-carta h3 { font-family: var(--titoli); font-weight: 800; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.02; }
.sa-riga { font-size: 15px; line-height: 1.4; margin-top: 8px; }
.sa-bottoni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sa-bottoni .bottone { padding: 0 18px; min-height: 46px; font-size: 15px; }

/* il palco in piedi: telefono e tavoletta in verticale */
@media (max-width: 860px) {
  .gigante { left: 16px; right: 16px; top: 78px; font-size: min(12.4vw, 7.6svh); }
  .ap { left: 16px; right: 16px; bottom: max(16px, 2.6svh); max-width: none; align-items: center; text-align: center; gap: 7px; }
  .ap-occ { font-size: 12.5px; }
  .ap-sotto { font-size: clamp(16px, 4.4vw, 22px); }
  .ap-bottoni { justify-content: center; gap: 8px; margin-top: 4px; }
  .ap-bottoni .bottone { padding: 0 18px; min-height: 46px; font-size: 15px; }
  .az { left: 16px; right: 16px; top: 80px; transform: none; max-width: none; text-align: center; }
  .az-t { font-size: clamp(32px, 9vw, 64px); }
  .az-s { font-size: 13px; margin-top: 8px; }
  .ca-titolo { top: 76px; }
  .ca-titolo > span { font-size: 13px; padding: 7px 14px 8px; }
  .ca-nomi li { bottom: clamp(150px, 21svh, 190px); padding: 0 14px; }
  .ca-nomi h3 { font-size: clamp(30px, 8.6vw, 60px); }
  .ca-nomi p { font-size: 12.5px; }
  .ca-pallini { bottom: auto; top: 122px; }
  .sa-lato { left: 12px; right: 12px; top: 70px; width: auto; padding: 12px 16px 13px; border-radius: 18px; }
  .sa-titolo { font-size: clamp(22px, 6.2vw, 34px); }
  .sa-sotto { display: none; }
  .sa-conta { margin-top: 4px; gap: 4px; }
  .sa-conta b { font-size: 34px; }
  .sa-conta i { font-size: 20px; }
  .sa-conta .v { display: block; position: absolute; left: 96px; right: 0; bottom: 14px; font-weight: 800; font-size: 17px; line-height: 1.15; opacity: 0; }
  .sa-gettoni { position: absolute; left: 0; right: 0; top: auto; justify-content: center; gap: 6px; margin: 0; }
  .sa-gettoni li { font-size: 13px; padding: 8px 10px; }
  .sa-gettoni { padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .92); }
  .sa-carta { left: 12px; right: 12px; bottom: max(12px, 2svh); width: auto; padding: 14px 16px 16px; border-radius: 18px; text-align: center; }
  .sa-carta h3 { font-size: 25px; }
  .sa-riga { font-size: 14px; margin-top: 4px; }
  .sa-bottoni { justify-content: center; gap: 8px; margin-top: 10px; }
  .sa-bottoni .bottone { padding: 0 14px; font-size: 14px; min-height: 44px; }
}

/* =====================================================================================================================================
   SECONDO TEMPO · IL SITO (ogni parte si annuncia col suo cartello)
   ===================================================================================================================================== */
.parte, .piede { position: relative; z-index: 2; border-radius: var(--tondo) var(--tondo) 0 0; margin-top: calc(-1 * var(--tondo)); }
.parte { background: var(--carta); padding: clamp(70px, 9svh, 110px) var(--lato) clamp(44px, 7svh, 90px); }
.p-sala { margin-top: -100vh; margin-top: -100svh; }
.p-passi { background: var(--chiaro); }
.p-recensioni { background: var(--notte); color: #fff; }

/* il palloncino che passa da una parte all'altra: sta a cavallo del giunto e sale mentre la parte arriva */
.pallone-ponte { position: absolute; right: 9vw; top: -64px; z-index: 3; width: 66px; height: 82px; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 26%), var(--c); border-radius: 50% 50% 47% 47% / 56% 56% 44% 44%; }
.pallone-ponte::before { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 9px; margin-left: -6px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pallone-ponte::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 96px; margin: 6px 0 0 -1px; background: linear-gradient(rgba(23, 48, 74, .55), rgba(23, 48, 74, 0)); }
@media (max-width: 860px) { .pallone-ponte { right: 4vw; width: 50px; height: 62px; top: -50px; } .pallone-ponte::after { height: 70px; } }
@supports (animation-timeline: view()) {
  .pallone-ponte { animation: ponte linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes ponte { from { transform: translateY(80px) rotate(-7deg); } to { transform: translateY(-40px) rotate(6deg); } }
}

.cartello { margin-bottom: clamp(22px, 4svh, 50px); }
.ct-passo { font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: clamp(12px, 2vw, 22px); opacity: .78; }
.ct-passo b { color: var(--oro-t); font-weight: 900; }
.p-recensioni .ct-passo b, .piede .ct-passo b { color: var(--giallo); }
.cartello h2 { font-family: var(--titoli); font-weight: 800; font-size: clamp(46px, 7.6vw, 124px); line-height: .92; letter-spacing: -.01em; max-width: 13em; }
.ct-riga { margin-top: 16px; font-size: 16px; font-weight: 700; max-width: 40em; opacity: .8; }
.ct-poi { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 48px); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; padding: 11px 18px; }
.ct-poi { margin-top: clamp(20px, 3vw, 40px); }
.ct-poi::after { content: '\2193'; font-size: 17px; color: var(--oro-t); }
.p-recensioni .ct-poi::after { color: var(--giallo); }
@media (hover: hover) { .ct-poi:hover { border-color: currentColor; } }
/* l'entrata del cartello: i pezzi arrivano uno dopo l'altro */
.js .cartello > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .cartello > *:nth-child(2) { transition-delay: .1s; }
.js .cartello > *:nth-child(3) { transition-delay: .22s; }
.js .cartello > *:nth-child(n+4) { transition-delay: .32s; }
.js .cartello.dentro > * { opacity: 1; transform: none; }
.js .cartello.dentro > .ct-passo { opacity: .78; }
.js .cartello.dentro > .ct-riga { opacity: .8; }

/* 01 · la sala in tre ambienti */
.ambienti { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.amb img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; background: var(--chiaro); }
.amb:nth-child(2) img { object-position: 60% 50%; }
.amb figcaption { margin-top: 12px; }
.amb figcaption b { display: block; font-family: var(--titoli); font-weight: 800; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.05; }
.amb figcaption span { display: block; font-size: 16px; margin-top: 2px; }
.amb:nth-child(2) { margin-top: clamp(30px, 6vw, 90px); }
@media (max-width: 860px) {
  .ambienti { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .amb:nth-child(2) { margin-top: 0; }
  .amb img { aspect-ratio: 16 / 10; border-radius: 18px; }
}

/* 02 · i passi: quattro carte che si impilano */
.pila { position: relative; }
.carta { position: sticky; top: 92px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(18px, 3vw, 48px);
  min-height: min(56svh, 480px); padding: clamp(22px, 3vw, 44px); border-radius: 28px; background: #fff; border: 2px solid rgba(23, 48, 74, .08); margin-bottom: 16svh; }
.carta.c2 { top: 110px; background: #FFF6D6; }
.carta.c3 { top: 128px; background: var(--turchese); color: #fff; border-color: var(--turchese); }
.carta.c4 { top: 146px; background: #FFE9DA; margin-bottom: 2svh; }
.ca-num { grid-column: 1; font-family: var(--titoli); font-weight: 800; font-size: clamp(52px, 6vw, 96px); line-height: .9; opacity: .45; }
.carta h3 { grid-column: 1; font-family: var(--titoli); font-weight: 800; font-size: clamp(34px, 3.8vw, 64px); line-height: 1; margin-top: 10px; }
.carta > p:not(.ca-num) { grid-column: 1; font-size: 18px; line-height: 1.45; margin-top: 12px; max-width: 24em; }
.carta > img, .carta > .chat-finta, .carta > .gettoni-temi { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; }
.carta > img { width: 100%; max-width: 440px; height: auto; max-height: calc(min(56svh, 480px) - 2 * clamp(22px, 3vw, 44px)); object-fit: cover; border-radius: 20px; }
.chat-finta { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 440px; padding: 26px; border-radius: 22px; background: #E8F3E4; }
.chat-finta .bol { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 19px; line-height: 1.35; }
.chat-finta .mia { align-self: flex-end; background: #D6F5C8; border-bottom-right-radius: 4px; }
.chat-finta .loro { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.gettoni-temi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 360px; }
.gettoni-temi span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.gettoni-temi img { max-width: 74%; max-height: 80%; width: auto; height: auto; }
@media (max-width: 860px) {
  .carta { top: 76px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; min-height: 0; height: auto; padding: 18px 18px 20px; border-radius: 22px; margin-bottom: 12svh; }
  .carta.c4 { margin-bottom: 2svh; }
  .carta.c2 { top: 88px; } .carta.c3 { top: 100px; } .carta.c4 { top: 112px; }
  .ca-num { font-size: 42px; }
  .carta h3 { font-size: clamp(30px, 8.4vw, 46px); margin-top: 4px; }
  .carta > p:not(.ca-num) { font-size: 16px; margin-top: 8px; }
  .carta > img, .carta > .chat-finta, .carta > .gettoni-temi { grid-column: 1; grid-row: 4; justify-self: center; align-self: center; margin-top: 12px; }
  .carta > img { width: auto; max-width: 100%; max-height: 34svh; border-radius: 16px; }
  .chat-finta { padding: 14px; }
  .chat-finta .bol { font-size: 15px; }
  .gettoni-temi { max-width: 300px; gap: 8px; }
}

/* 03 · il video vero, solo e grande nel riquadro telefono */
.vi-griglia { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; gap: clamp(20px, 4vw, 64px); }
.vi-griglia .cartello { margin-bottom: 0; }
.vi-frasi { margin-top: clamp(16px, 3svh, 30px); }
.vi-frasi li { font-family: var(--titoli); font-weight: 800; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; padding: 10px 0; border-bottom: 2px solid rgba(23, 48, 74, .1); }
.telefono { justify-self: center; width: min(400px, 30vw, calc((100svh - 150px) * .5625)); }
.vi-quadro { position: relative; display: block; }
.telefono video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 34px; border: 8px solid var(--notte); background: var(--notte) center / cover no-repeat; object-fit: cover; }
.vi-tasto { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 0; border-radius: 50%; background: #fff; color: var(--notte); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.vi-tasto svg { width: 28px; height: 28px; }
.vi-tasto.gira { left: auto; top: auto; right: 16px; bottom: 16px; width: 48px; height: 48px; margin: 0; opacity: .9; }
.vi-tasto.gira svg { width: 20px; height: 20px; }
.telefono figcaption { font-size: 14px; margin-top: 12px; text-align: center; }
@media (max-width: 860px) {
  .vi-griglia { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vi-frasi { display: none; }
  .telefono { width: min(300px, 68vw); }
  .telefono video { border-radius: 26px; border-width: 6px; }
}

/* 04 · le formule: tre tavole che si coprono */
.p-formule { padding-bottom: 0; }
.tavola { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: center; gap: clamp(20px, 4vw, 64px);
  margin: 0 calc(-1 * var(--lato)); padding: 92px var(--lato) 5svh; border-radius: var(--tondo) var(--tondo) 0 0; background: #FFE9EE; }
.tavola.t2 { background: #FBE3F1; }
@media (max-width: 860px) { .tavola { will-change: transform; } }   /* lastra propria: arriva gia' dipinta quando sale */
.tavola.t3 { background: #E3F0FB; }
.tv-occ { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.tavola h2 { font-family: var(--titoli); font-weight: 800; font-size: clamp(48px, 7vw, 116px); line-height: .94; margin-top: 8px; }
.tv-riga { font-size: 19px; line-height: 1.45; margin-top: 12px; max-width: 24em; }
.tv-bottoni { margin-top: 22px; }
.tv-foto { justify-self: center; }
.tv-foto img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 150px); border-radius: 24px; }
.tavola.t1 .tv-foto img { max-height: calc(100svh - 170px); }
.tv-fine { position: relative; padding: 30px 0 clamp(70px, 10svh, 110px); background: var(--carta); margin: 0 calc(-1 * var(--lato)); padding-left: var(--lato); padding-right: var(--lato); }
@media (max-width: 860px) {
  .tavola { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 14px; padding: 76px 16px 16px; border-radius: 22px 22px 0 0; }
  .tavola h2 { font-size: clamp(40px, 11vw, 72px); margin-top: 2px; }
  .tv-riga { font-size: 16px; margin-top: 6px; }
  .tv-bottoni { margin-top: 12px; }
  .tv-bottoni .bottone { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .tv-foto { align-self: start; justify-self: stretch; }
  /* al telefono la foto grande sta subito sotto il titolo, poi la riga e il bottone */
  .tavola { row-gap: 0; grid-template-rows: none; }
  .tavola .tv-testo { display: contents; }
  .tv-occ { order: 1; } .tavola h2 { order: 2; } .tv-foto { order: 3; margin: 12px 0 0; } .tv-riga { order: 4; margin-top: 12px; } .tv-bottoni { order: 5; }
  .tv-foto img { width: 100%; height: auto; max-height: calc(100svh - 300px); object-fit: cover; border-radius: 18px; }
}

/* 05 · recensioni vere e la data */
.recensioni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.rec { padding: clamp(22px, 2.6vw, 36px); border-radius: 24px; background: #23436A; }
.rec p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; font-weight: 600; }
.rec p::before { content: '«'; }
.rec p::after { content: '»'; }
.rec footer { margin-top: 14px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--giallo); }
.prenota { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 8svh, 110px); }
.pr-t { font-family: var(--titoli); font-weight: 800; font-size: clamp(46px, 6.4vw, 104px); line-height: .94; }
.pr-riga { font-size: 18px; line-height: 1.45; margin-top: 14px; max-width: 26em; }
.pr-riga.piccola { font-size: 16px; opacity: .8; }
@media (max-width: 860px) {
  .recensioni { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rec { padding: 18px 20px; }
  .rec p { font-size: 17px; }
  .prenota { grid-template-columns: minmax(0, 1fr); }
}

/* la chat per bloccare la data (modello Drago, pelle Babulandia) */
.ch-app { width: 100%; max-width: 460px; justify-self: center; border-radius: 30px; overflow: hidden; background: #ECE5DA; color: var(--notte); border: 8px solid #0F2236; }
.ch-testa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--turchese); color: #fff; }
.ch-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
.ch-avatar img { width: 120%; height: auto; max-width: none; }
.ch-testa b { display: block; font-size: 17px; line-height: 1.1; }
.ch-testa span { display: block; font-size: 13px; opacity: .9; }
.ch-corpo { height: 330px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.ch-data { align-self: center; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: #DCEFF3; text-transform: uppercase; letter-spacing: .08em; }
.ch-m { max-width: 82%; padding: 8px 11px 7px; border-radius: 14px; font-size: 16px; line-height: 1.35; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.ch-m i { display: block; font-style: normal; font-size: 12px; text-align: right; opacity: .6; margin-top: 2px; }
.ch-m.loro { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.ch-m.mio { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.ch-m.scrive { display: flex; gap: 4px; padding: 12px 14px; }
.ch-m.scrive span { width: 7px; height: 7px; border-radius: 50%; background: #8A9AA8; animation: puntini 1s infinite ease-in-out; }
.ch-m.scrive span:nth-child(2) { animation-delay: .15s; } .ch-m.scrive span:nth-child(3) { animation-delay: .3s; }
@keyframes puntini { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.ch-piede { padding: 12px; background: #F6F2EC; min-height: 72px; }
.ch-rapide { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-rapida { min-height: 44px; padding: 0 14px; border: 2px solid var(--turchese); border-radius: 999px; background: #fff; color: var(--notte); font-weight: 800; font-size: 15px; }
.ch-giorni { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ch-g { flex: none; width: 62px; min-height: 70px; border: 2px solid var(--turchese); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ch-g .dd { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ch-g .nn { font-family: var(--titoli); font-weight: 800; font-size: 26px; }
.ch-g .mm { font-size: 12px; }
.ch-nome { display: flex; gap: 8px; }
.ch-nome input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--turchese); border-radius: 999px; font: inherit; font-size: 17px; background: #fff; color: var(--notte); }
.ch-nome button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--turchese); color: #fff; font-weight: 800; font-size: 16px; }
.ch-fine { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ch-fine .bottone { width: 100%; }
.ch-alt { text-align: center; font-size: 15px; font-weight: 700; }
.ch-ric { align-self: center; border: 0; background: none; font-size: 14px; text-decoration: underline; padding: 6px; }
.ch-esito { text-align: center; font-size: 14px; min-height: 1.3em; }
@media (max-width: 520px) { .ch-corpo { height: 300px; } .ch-app { border-width: 6px; border-radius: 24px; } }

/* 06 · il piede col logo enorme */
.piede { background: var(--turchese); color: #fff; padding: clamp(70px, 9svh, 110px) var(--lato) 22px; overflow-x: clip; }
.piede .ct-passo { opacity: .9; }
.pi-alto { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 28px; }
.pi-frase { font-family: var(--titoli); font-weight: 800; font-size: clamp(38px, 5.4vw, 88px); line-height: .98; max-width: 11em; text-shadow: 0 .05em 0 rgba(23, 48, 74, .6); }
.pi-riga { font-size: 17px; font-weight: 700; margin-top: 12px; }
.pi-bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.domande { margin-top: clamp(40px, 7svh, 80px); max-width: 760px; }
.dm-t { font-family: var(--titoli); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; margin-bottom: 10px; }
.domande details { border-bottom: 2px solid rgba(255, 255, 255, .3); }
.domande summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; position: relative; font-weight: 800; font-size: 18px; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 26px; font-weight: 800; }
.domande details[open] summary::after { content: '−'; }
.domande details p { padding: 0 0 16px; font-size: 17px; line-height: 1.5; }
.pi-logo { margin: clamp(40px, 7svh, 80px) auto 0; max-width: 1080px; }
.pi-logo img { width: 100%; height: auto; border-radius: clamp(18px, 2.4vw, 34px); box-shadow: 0 0 0 4px #fff; }
@supports (animation-timeline: view()) {
  .pi-logo img { animation: pi-sale linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes pi-sale { from { transform: translateY(18%) scale(.9); } to { transform: none; } }
}
/* il piede: voci e ordine del sito 1, colori di questo sito */
.pi-su { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 26px 32px; margin-top: 34px; padding-top: 26px; border-top: 2px solid rgba(255, 255, 255, .3); }
.pi-col h4 { margin: 0 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.pi-col a, .pi-col button { display: block; padding: 5px 0; border: 0; background: none; font-size: 16px; font-weight: 700; text-decoration: none; text-align: left; overflow-wrap: anywhere; }
@media (hover: hover) { .pi-col a:hover, .pi-col button:hover { text-decoration: underline; text-underline-offset: 4px; } }
.pi-missione p { margin-top: 0; font-size: 16px; font-weight: 700; max-width: 18em; }
.pi-giu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 26px; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .3); font-size: 14px; font-weight: 700; }
.pi-temi { display: flex; align-items: center; gap: 12px; }
.pi-etich { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.pi-sel { position: relative; }
.pi-sel summary { cursor: pointer; list-style: none; padding: 9px 16px; border: 2px solid #fff; border-radius: 999px; font-size: 15px; font-weight: 800; }
.pi-sel summary::-webkit-details-marker { display: none; }
.pi-sel summary::after { content: ' \25BE'; }
.pi-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 220px; padding: 8px; border-radius: 16px; background: #fff; color: var(--notte); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.pi-menu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 800; text-decoration: none; }
@media (hover: hover) { .pi-menu a:hover { background: var(--chiaro); } }
.pi-diritti { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pi-segni { display: flex; gap: 8px; }
.pi-segni i { font-style: normal; padding: 5px 10px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; font-size: 13px; font-weight: 800; }
@media (max-width: 860px) { .pi-su { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; padding-top: 20px; } .pi-missione { grid-column: 1 / -1; } .pi-missione p { margin-top: 0; } .pi-col a, .pi-col button { padding: 4px 0; font-size: 15px; } .pi-giu { margin-top: 20px; }
  /* i contatti su tutta la riga, in due colonne; la mail intera su una riga sola */
  .pi-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } .pi-col:last-child h4, .pi-col:last-child a[href^="mailto"] { grid-column: 1 / -1; } .pi-col a[href^="mailto"] { overflow-wrap: normal; white-space: nowrap; } }
@media (max-width: 860px) { .pi-bottoni { width: 100%; } .pi-bottoni .bottone { flex: 1 1 auto; } }

@media (prefers-reduced-motion: reduce) {
  .testa-nav, .js .cartello > * { transition: none; }
  .blocca .pallone, .ch-m.scrive span { animation: none; }
}
.palco [data-via] { will-change: opacity; }
.palco .bottone { transition: none; }
.palco.tocchi-stretti > * { pointer-events: none; }
.palco.tocchi-stretti a, .palco.tocchi-stretti button { pointer-events: auto; }



/* il secondo tempo non si impagina finche' non e' vicino (era quasi un secondo di impaginazione all'avvio a CPU x4).
   Sui blocchi interni, non sulle parti: le parti hanno il palloncino che esce sopra e verrebbe tagliato */
.ambienti, .pila, .vi-griglia, .tavola, .recensioni, .prenota, .domande, .pi-logo, .parte > .cartello, .pi-alto, .pi-su, .pi-giu { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.parte > .cartello, .pi-alto, .pi-su, .pi-giu { contain-intrinsic-size: auto 300px; }
.tavola { contain-intrinsic-size: auto 100svh; }
