/* B&C · bedandconnect.com — foglio di stile unico.
   Disegno: «una notte in un B&B». Hero e privacy sono notte, il resto è un foglio chiaro
   che sale sopra la fascia blu, come nell'App Host. Manrope per i testi, JetBrains Mono per le didascalie. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Marchio (fissi, uguali in tutti i temi) */
  --blu: #1D4FD7;
  --blu-scuro: #163FB0;
  --menta: #A7E3B4;
  --notte: #0F1B2D;
  --notte-testo: #F4F7FC;
  --notte-tenue: #B9C6DE;
  --giallo: #FFD56A;
  --corallo: #FF8A6B;
  --arancio: #F2A65A;

  /* Superfici chiare (cambiano col tema) */
  --fondo: #F4F7FC;
  --superficie: #FFFFFF;
  --crema: #FFF6EA;
  --testo: #0F1B2D;
  --tenue: #42536B;
  --linea: #E6ECF5;
  --linea-forte: #D3DCEA;
  --pastello: #DCE6FB;
  --accento-testo: #1D4FD7;
  --ombra: 0 8px 24px -18px rgba(15, 27, 45, .45);
  --ombra-blu: 0 14px 30px -14px rgba(29, 79, 215, .65);

  --f-testo: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-cjk: "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans JP", "Microsoft YaHei", "PingFang SC", sans-serif;

  --larghezza: 1160px;
  --gutter-sx: max(20px, env(safe-area-inset-left, 0px));
  --gutter-dx: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0B1424;
    --superficie: #132038;
    --crema: #1B1A1E;
    --testo: #EAF0FA;
    --tenue: #A8B6CC;
    --linea: #22314D;
    --linea-forte: #2E4064;
    --pastello: #1B2C55;
    --accento-testo: #9DB8FF;
    --ombra: 0 10px 28px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0B1424;
  --superficie: #132038;
  --crema: #1B1A1E;
  --testo: #EAF0FA;
  --tenue: #A8B6CC;
  --linea: #22314D;
  --linea-forte: #2E4064;
  --pastello: #1B2C55;
  --accento-testo: #9DB8FF;
  --ombra: 0 10px 28px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--notte);
  color: var(--testo);
  font-family: var(--f-testo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accento-testo); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
p { margin: 0; }
:lang(ja), :lang(zh) { font-family: var(--f-testo), var(--f-cjk); }

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--superficie); color: var(--testo); padding: 10px 14px; border-radius: 10px;
}
.salta:focus { top: 12px; }

.etichetta {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accento-testo);
  display: inline-flex; align-items: center; gap: 10px;
}
.etichetta-notte { color: var(--menta); }
.pallino { width: 8px; height: 8px; border-radius: 50%; background: var(--menta); box-shadow: 0 0 0 0 rgba(167, 227, 180, .6); animation: segnale 2.4s ease-out infinite; }
@keyframes segnale { 0% { box-shadow: 0 0 0 0 rgba(167, 227, 180, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(167, 227, 180, 0); } }

.dentro {
  width: 100%;
  max-width: calc(var(--larghezza) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter-sx);
  padding-right: var(--gutter-dx);
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 700 16px/1 var(--f-testo); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primario { background: var(--blu); color: #FFFFFF; box-shadow: var(--ombra-blu); }
.btn-primario:hover { background: var(--blu-scuro); }
.btn-vetro { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: rgba(255, 255, 255, .28); }
.btn-vetro:hover { background: rgba(255, 255, 255, .18); }
.btn-largo { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Testata */
.testata {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}
.testata-dentro {
  max-width: calc(var(--larghezza) + 40px); margin: 0 auto;
  padding: 18px var(--gutter-dx) 0 var(--gutter-sx);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marchio { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.marchio-segno { width: 40px; height: 40px; flex: none; }
.marchio-fondo { fill: rgba(255, 255, 255, .13); }
.marchio-testo { display: flex; flex-direction: column; line-height: 1; }
.marchio-testo b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.marchio-testo small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em; color: #C9D6F5; margin-top: 5px; }

/* Intro A1 */
.intro {
  position: fixed; inset: 0; z-index: 90;
  background: var(--notte);
  display: grid; place-items: center;
  transition: opacity .45s ease;
}
.intro.via { opacity: 0; pointer-events: none; }
.intro-logo { width: 112px; height: 112px; overflow: visible; }
.intro-quadrato { transform-origin: 60px 60px; transform-box: view-box; opacity: 0; animation: intro-quadrato .5s .05s ease-out forwards; }
.intro-tetto { stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-tetto .6s .3s cubic-bezier(.6, 0, .3, 1) forwards; }
.intro-arco { opacity: 0; transform-origin: 60px 80px; transform-box: view-box; animation: intro-arco .55s .85s ease-out forwards; }
.intro-punto { opacity: 0; transform-box: view-box; animation: intro-punto .6s 1.15s cubic-bezier(.3, 0, .4, 1) forwards; }
.intro.via .intro-quadrato { animation: intro-espandi .5s ease-in forwards; }
@keyframes intro-quadrato { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-tetto { to { stroke-dashoffset: 0; } }
@keyframes intro-arco { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes intro-punto { 0% { opacity: 0; transform: translateY(-46px); } 55% { opacity: 1; transform: translateY(0); } 72% { transform: translateY(-7px); } 86% { transform: translateY(0); } 93% { transform: translateY(-2px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes intro-espandi { to { transform: scale(14); opacity: .2; } }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(620px, 94svh, 920px);
  background: linear-gradient(180deg, var(--blu-scuro) 0%, var(--notte) 100%);
  color: var(--notte-testo);
  display: flex; align-items: center;
  padding-top: calc(110px + env(safe-area-inset-top, 0px));
  padding-bottom: 120px;
  overflow: hidden;
}
.hero-arte { position: absolute; inset: 0; z-index: -2; }
.hero-arte svg { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
html[data-stagione="primavera"] .hero-arte .s-primavera,
html[data-stagione="estate"] .hero-arte .s-estate,
html[data-stagione="autunno"] .hero-arte .s-autunno,
html[data-stagione="inverno"] .hero-arte .s-inverno { display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 27, 45, .88) 0%, rgba(15, 27, 45, .55) 38%, rgba(15, 27, 45, 0) 62%);
}
.particelle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-testo {
  width: 100%; max-width: calc(var(--larghezza) + 40px); margin: 0 auto;
  padding-left: var(--gutter-sx); padding-right: var(--gutter-dx);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero-testo > * { max-width: 620px; }
.hero h1 { display: flex; flex-direction: column; gap: 14px; }
.hero-ora { font-family: var(--f-mono); font-weight: 600; font-size: clamp(18px, 2vw, 22px); letter-spacing: .04em; color: var(--menta); }
.due-punti { animation: lampeggia 1s steps(1) infinite; }
@keyframes lampeggia { 50% { opacity: 0; } }
.hero-frase { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-frase em { font-style: normal; color: var(--menta); }
.hero-sotto { font-size: clamp(17px, 1.6vw, 20px); color: var(--notte-tenue); max-width: 520px; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-stagione {
  position: absolute; right: var(--gutter-dx); bottom: 64px;
  font-size: 11px; color: rgba(167, 227, 180, .8);
}

/* Hero: Alfred vivo (A2) */
.hero-arte .alfred-occhi, .alfred-pulsante .alfred-occhi, .attesa-alfred .alfred-occhi { transform-box: fill-box; transform-origin: center; }
.alfred-occhi.batte { animation: palpebre .16s ease-in-out; }
@keyframes palpebre { 50% { transform: scaleY(.1); } }
.alfred-papillon { transform-box: fill-box; transform-origin: 50% 50%; animation: papillon 3.2s ease-in-out infinite; }
@keyframes papillon { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.hero-glow { transform-box: fill-box; transform-origin: center; animation: respiro 5s ease-in-out infinite; }
@keyframes respiro { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
.stella { animation: scintilla 3.6s ease-in-out infinite; }
.stella:nth-of-type(3n) { animation-delay: -1.2s; }
.stella:nth-of-type(3n+1) { animation-delay: -2.4s; }
@keyframes scintilla { 0%, 100% { opacity: .9; } 50% { opacity: .3; } }

/* Foglio chiaro che sale (A10) */
.foglio {
  position: relative; z-index: 2;
  background: var(--fondo);
  border-radius: 32px 32px 0 0;
  margin-top: -48px;
}
.foglio-dopo-notte { margin-top: -40px; }
.sezione { padding-block: clamp(72px, 10vw, 128px); }
.sezione .etichetta + h2 { margin-top: 14px; }
.grande { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--testo); }
.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.due-colonne > * { min-width: 0; }

/* Problema */
.problema h2 { max-width: 760px; }
.scene { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scena {
  background: var(--superficie); border: 1px solid var(--linea); border-radius: 20px;
  padding: 26px 24px 22px; box-shadow: var(--ombra);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.scena-ora { font-family: var(--f-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--testo); font-variant-numeric: tabular-nums; }
.scena-voce { font-size: 19px; font-weight: 700; line-height: 1.35; }
.scena-nota { color: var(--tenue); font-size: 15.5px; }
.scena-risolta {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--linea-forte);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accento-testo);
  display: flex; align-items: center; gap: 8px;
}
.scena-risolta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--menta); }
.chiusa { margin-top: 48px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }

/* Alfred */
.sezione-alfred { background: var(--crema); }
.alfred-palco { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.alfred-pulsante {
  position: relative; width: min(100%, 460px); aspect-ratio: 374 / 254;
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 24px;
}
.posa { position: absolute; inset: 0; opacity: 0; transition: opacity .28s ease; }
.posa svg { width: 100%; height: 100%; display: block; }
.posa-attiva { opacity: 1; }
.alfred-pulsante .alfred { animation: galleggia 4s ease-in-out infinite; }
@keyframes galleggia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.alfred-suggerimento { color: var(--tenue); }
.alfred-testo { display: flex; flex-direction: column; gap: 18px; }
.alfred-testo .etichetta + h2 { margin-top: -4px; }
.alfred-testo p:last-child { color: var(--tenue); }

/* Lingue */
.due-colonne-inverse .traduttore { order: 2; }
.lingue-testo { display: flex; flex-direction: column; gap: 18px; }
.traduttore { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.bolla {
  background: linear-gradient(160deg, var(--blu) 0%, var(--blu-scuro) 100%);
  color: #FFFFFF; border-radius: 28px 28px 28px 8px; padding: 26px 28px 30px;
  box-shadow: var(--ombra-blu); min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.bolla-chi { color: var(--menta); }
.bolla-testo { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; min-height: 2.4em; overflow-wrap: anywhere; }
.bolla-testo.decodifica { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; }
.lingue-codici { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lingue-codici li {
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--linea-forte); color: var(--tenue);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.lingue-codici li.attiva { background: var(--blu); border-color: var(--blu); color: #FFFFFF; }
.lingue-elenco { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; }

/* Ponte */
.ponte { padding-top: 0; }
.ponte-testo { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.ponte-scena {
  margin-top: 44px; background: var(--superficie); border: 1px solid var(--linea);
  border-radius: 28px; box-shadow: var(--ombra); padding: clamp(16px, 3vw, 36px);
}
.ponte-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ponte-arco { stroke: var(--linea-forte); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.ponte-particella { fill: var(--menta); stroke: #FFFFFF; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.ponte-scena.p-andata .ponte-particella, .ponte-scena.p-ritorno .ponte-particella { opacity: 1; }
.tel-cornice { fill: var(--notte); }
.tel-schermo { fill: #F4F7FC; }
.tel-isola { fill: var(--notte); }
.tel-notifica { fill: #FFFFFF; stroke: #D3DCEA; stroke-width: 1.5; }
.bolla-svg-ospite { fill: var(--pastello); }
.bolla-svg-host { fill: var(--blu); }
.svg-testo { font-family: var(--f-testo); font-weight: 700; font-size: 15px; fill: var(--testo); }
.tel-notifica ~ .svg-testo, .ponte-notifica .svg-testo { fill: #0F1B2D; }
.svg-testo-chiaro { fill: #FFFFFF; }
.svg-piccolo { font-size: 12.5px; }
.svg-mono { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; fill: #1D4FD7; }
.ponte-msg { opacity: 1; transition: opacity .35s ease, transform .35s ease; }
.js .ponte-scena .ponte-msg { opacity: 0; }
.js .ponte-scena.s1 .ponte-msg-ospite,
.js .ponte-scena.s2 .ponte-notifica,
.js .ponte-scena.s3 .ponte-risposta,
.js .ponte-scena.s4 .ponte-msg-risposta-alfred { opacity: 1; }
.ponte-telefono-corpo { transform-box: fill-box; transform-origin: center; }
.ponte-scena.vibra .ponte-telefono-corpo { animation: vibra .42s linear; }
@keyframes vibra { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-4px) rotate(-1.5deg); } 40%, 80% { transform: translateX(4px) rotate(1.5deg); } }

/* Notte: privacy */
.notte {
  position: relative; z-index: 1;
  background: radial-gradient(120% 90% at 20% 30%, #14275A 0%, var(--notte) 62%);
  color: var(--notte-testo);
  padding-top: calc(clamp(72px, 10vw, 128px) + 48px);
  padding-bottom: calc(clamp(72px, 10vw, 128px) + 40px);
  margin-top: -48px;
}
.privacy-alfred { width: min(100%, 440px); justify-self: center; }
.privacy-alfred svg { width: 100%; height: auto; display: block; }
.privacy-alfred .alfred-adesivo { transform-box: fill-box; transform-origin: center; }
.js .privacy-alfred.applica .alfred-adesivo { animation: adesivo .7s .15s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes adesivo { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.privacy h2 { margin-top: 14px; color: #FFFFFF; }
.privacy-righe { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-direction: column; gap: 22px; }
.privacy-righe li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; font-size: 18px; color: var(--notte-tenue); }
.privacy-righe .icona { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(167, 227, 180, .12); stroke: var(--menta); }

/* Icone (stile Lucide) */
.icona { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Sipario */
.sipario h2 { max-width: 780px; }
.tessere { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tessera {
  position: relative; min-width: 0; min-height: 196px;
  background: var(--superficie); border: 1px solid var(--linea); border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--ombra);
  overflow: hidden;
}
.tessera > .icona { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--pastello); stroke: var(--accento-testo); }
.tessera h3 { font-size: 21px; margin-top: 6px; }
.tessera p { color: var(--tenue); font-size: 15.5px; }
.tessera-coperta { background: repeating-linear-gradient(135deg, var(--superficie) 0 14px, var(--fondo) 14px 28px); padding: 0; }
.tessera-velo {
  all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
  padding: 24px; border-radius: 20px;
  transition: opacity .3s ease, transform .3s ease;
}
.tessera-velo:focus-visible { outline: 3px solid var(--blu); outline-offset: -3px; }
.tessera-velo .icona { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--testo); stroke: var(--fondo); }
.tessera-tocca { font-size: 14px; color: var(--tenue); }
.tessera-indizio {
  position: absolute; inset: 0; padding: 24px; display: flex; align-items: center;
  font-size: 19px !important; font-weight: 700; line-height: 1.35; color: var(--testo) !important;
  background: var(--superficie);
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.tessera-coperta.aperta .tessera-velo { opacity: 0; transform: translateY(-10px); }
.tessera-coperta.aperta .tessera-indizio { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) {
  .tessera-coperta:not(.aperta):hover { animation: trema .4s ease; }
}
@keyframes trema { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }

/* Lista d'attesa */
.attesa { padding-top: 0; }
.attesa-scheda {
  background: var(--superficie); border: 1px solid var(--linea); border-radius: 32px; box-shadow: var(--ombra);
  padding: clamp(24px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.attesa-scheda > * { min-width: 0; }
.attesa-intro { display: flex; flex-direction: column; gap: 14px; }
.attesa-intro > p:last-child { color: var(--tenue); }
.attesa-intro h2 { font-size: clamp(30px, 3.6vw, 44px); }
.attesa-alfred { position: relative; width: 200px; aspect-ratio: 374 / 254; margin-bottom: 6px; }
.attesa-alfred .posa svg { width: 100%; height: 100%; }
.modulo { display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo label, .campo legend { font-weight: 700; font-size: 15px; padding: 0; }
.campo legend { margin-bottom: 8px; }
.campo input[type="email"] {
  height: 54px; border-radius: 14px; border: 1.5px solid var(--linea-forte);
  background: var(--fondo); color: var(--testo); padding: 0 16px; font: 500 16px var(--f-testo); width: 100%;
}
.campo input[type="email"]:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 4px rgba(29, 79, 215, .18); }
.campo input[aria-invalid="true"] { border-color: #C2362B; }
.pastiglie { display: flex; flex-wrap: wrap; gap: 8px; }
.pastiglie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastiglie label {
  font-weight: 600 !important; font-size: 14.5px !important; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--linea-forte); background: var(--superficie); color: var(--testo);
  transition: background-color .15s, border-color .15s, color .15s;
}
.pastiglie input:checked + label { background: var(--blu); border-color: var(--blu); color: #FFFFFF; }
.pastiglie input:focus-visible + label { outline: 3px solid var(--menta); outline-offset: 2px; }
.campo-nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consenso { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--tenue); }
.consenso input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blu); }
.modulo-esito { font-size: 14.5px; min-height: 1.4em; color: var(--tenue); }
.modulo-esito.errore { color: #C2362B; }
.modulo-esito strong { color: var(--testo); user-select: all; }
.attesa-grazie { display: flex; flex-direction: column; gap: 10px; align-self: center; outline: none; }
.attesa-grazie-titolo { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.attesa-grazie p:last-child { color: var(--tenue); }

.contatto { display: flex; flex-direction: column; gap: 14px; align-self: center; min-width: 0; }
.contatto-email { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; user-select: all; }
.contatto-nota { color: var(--tenue); font-size: 14.5px; }

/* Footer */
.piede {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--blu) 0%, var(--blu-scuro) 100%);
  color: #FFFFFF;
  margin-top: -32px; padding-top: 104px;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
.piede-arte { position: absolute; right: 0; bottom: 0; width: min(46vw, 420px); z-index: -1; opacity: .9; }
.piede-arte svg { width: 100%; height: auto; display: block; }
.piede-arte [data-stagione-angolo] { display: none; }
html[data-stagione="primavera"] .piede-arte [data-stagione-angolo="primavera"],
html[data-stagione="estate"] .piede-arte [data-stagione-angolo="estate"],
html[data-stagione="autunno"] .piede-arte [data-stagione-angolo="autunno"],
html[data-stagione="inverno"] .piede-arte [data-stagione-angolo="inverno"] { display: inline; }
.piede-dentro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.piede-saluto { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.piede-link { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.piede-link a { color: #FFFFFF; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.piede-copy { color: #C9D6F5; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .scene, .tessere { grid-template-columns: 1fr 1fr; }
  .scene .scena:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .due-colonne, .attesa-scheda { grid-template-columns: 1fr; }
  .due-colonne-inverse .traduttore { order: 0; }
  .hero { align-items: flex-start; padding-bottom: 0; flex-direction: column; min-height: 0; }
  .hero-arte { position: relative; order: 2; width: 100%; aspect-ratio: 1 / 1; max-height: 520px; margin-top: 8px; }
  .hero-arte::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: 1;
    background: linear-gradient(180deg, var(--notte) 0%, rgba(15, 27, 45, 0) 100%);
  }
  .hero::after { display: none; }
  .hero { background: var(--notte); }
  .particelle { z-index: 1; }
  .hero-stagione { display: none; }
  .privacy-alfred { width: min(80%, 360px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .scene, .tessere { grid-template-columns: 1fr; }
  .tessera { min-height: 170px; }
  .azioni { width: 100%; }
  .azioni .btn { flex: 1 1 100%; }
  .marchio-testo small { display: none; }
}

/* A movimento ridotto: tutto fermo e leggibile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
  .particelle { display: none; }
  .js .ponte-scena .ponte-msg { opacity: 1; }
  .ponte-particella { display: none; }
  .js .privacy-alfred .alfred-adesivo { transform: none; }
}

/* Pagine di testo (informativa, 404) */
.pagina-testo { background: var(--fondo); }
.testo-lungo { max-width: 760px; padding-block: 64px 96px; display: flex; flex-direction: column; gap: 16px; }
.testo-lungo h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 8px; }
.testo-lungo h2 { font-size: 22px; margin-top: 18px; }
.testo-lungo p { color: var(--tenue); }
.testo-lungo strong { color: var(--testo); }
