/* ==========================================================
   VOYA – Little World Adventures
   Colori del personaggio: arancio volpe, rosso basco, blu notte, crema
   ========================================================== */
:root {
  --cream: #FEFAF1;      /* = sfondo delle pose di Voya: non cambiarlo */
  --sand: #F7ECDC;
  --line: #F0E3CF;
  --navy: #1B2A55;
  --navy-deep: #14204A;
  --navy-ink: #2E3B63;
  --navy-soft: #D3DBF2;
  --red: #C8322B;
  --orange: #D9620F;
  --orange-ink: #B4500C;
  --amber: #F2A541;
  --amber-light: #F6B25E;
  --peach: #FFF1DC;
  --brown: #6B4A1E;
  --white: #FFFFFF;
  --f-display: 'VOYA Display', 'Fredoka', 'Nunito', 'Voya KO', system-ui, sans-serif;
  --f-body: 'Nunito', 'Voya KO', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Voya KO Hand', 'Comic Sans MS', cursive;
  --wrap: 1200px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .29 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Lenis (scroll.js): quando e' attivo gestisce lui lo scorrimento, quello nativo smorzato va spento */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* Coreano: si va a capo tra le parole (non dentro), niente corsivo finto né spaziature pensate per il latino */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; font-synthesis: none; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { line-height: 1.25; }
html:lang(ko) body :not(.logo-word) { letter-spacing: 0 !important; }   /* le spaziature larghe sono per il maiuscolo latino: sull'hangul staccano le sillabe */
html:lang(ko) .nav a { font-size: 14px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.08; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }
.kicker { font-family: var(--f-hand); font-weight: 700; font-size: 28px; color: var(--orange-ink); line-height: 1.1; }
.h2 { font-weight: 600; font-size: clamp(32px, 4vw, 50px); }
.lead { font-size: 18px; color: var(--navy-ink); }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 700px; }
.section-head.center { margin-bottom: 38px; }
.section { padding: 80px 0; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 999px; font: 800 17px var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #A9271F; color: var(--white); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header { background: transparent; }
.flap { position: relative; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: 1px; color: var(--orange); }
.logo-tag { font-family: var(--f-hand); font-weight: 700; font-size: 20px; color: var(--navy); }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-weight: 700; }
.nav a { text-decoration: none; padding: 10px 0; display: inline-block; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--navy); font-weight: 800; font-size: 14px; text-decoration: none; }
.lang:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.pill-red { background: var(--red); color: var(--white); }
.hero-when { font-weight: 800; font-size: 15px; color: var(--brown); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.hero-lead { font-size: 20px; max-width: 34ch; color: var(--navy-ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta { font-size: 15px; font-weight: 700; color: var(--brown); }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.hero-fox { width: 34%; max-width: 200px; margin-bottom: -6px; filter: drop-shadow(0 10px 12px rgba(27,42,85,.12)); }
.postcard { position: relative; width: 62%; max-width: 380px; transform: rotate(2.5deg); }
.postcard img { width: 100%; aspect-ratio: 1000 / 1414; object-fit: cover; border: 10px solid var(--white); border-radius: 6px; box-shadow: 0 24px 50px rgba(27, 42, 85, .22); }
.stamp { position: absolute; top: -18px; right: -22px; width: 92px; height: 104px; background: var(--white); border: 2px dashed var(--red); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg); box-shadow: 0 8px 18px rgba(27, 42, 85, .15); }
.stamp b { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--red); line-height: 1; }
.stamp span { font-size: 12px; font-weight: 800; margin-top: 4px; }

/* ---------- Viaggio (blu) ---------- */
.journey { background: var(--navy); color: var(--white); padding: 72px 0 84px; }
.journey .wrap { display: flex; flex-direction: column; gap: 36px; }
.journey .kicker { color: var(--amber-light); }
.journey .lead { color: var(--navy-soft); }
.journey-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.progress { font-weight: 800; color: var(--orange-ink); }

.route-scroll { overflow-x: auto; padding-bottom: 6px; }
.route { list-style: none; margin: 0; padding: 0; min-width: 1000px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.route li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.route .mm { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--navy-soft); }
.route .track { height: 36px; width: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(#45558A, #45558A) center / 100% 2px no-repeat; }
.route .dot { border-radius: 999px; display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; background: var(--navy); border: 2px solid #6E7DAE; }
.route .is-done .dot { width: 16px; height: 16px; background: var(--amber-light); border: 0; }
.route .is-now .dot { width: 34px; height: 34px; background: var(--amber-light); border: 0; box-shadow: 0 0 0 6px rgba(246, 178, 94, .25); }
.route .is-next .dot { width: 16px; height: 16px; border: 2px dashed var(--amber-light); }
.route .name { font-size: 14px; font-weight: 700; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.card.is-now { outline: 4px solid var(--amber-light); outline-offset: 4px; }
.card-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-badge { position: absolute; top: 10px; left: 10px; font-size: 13px; font-weight: 800; padding: 6px 11px; border-radius: 999px; z-index: 1; }
.b-now { background: var(--red); color: var(--white); }
.b-done { background: #E3F1DE; color: #24501F; }
.b-next { background: var(--peach); color: #7A3F06; }
.b-later { background: #EEF0F6; color: var(--navy-ink); }
.locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 15px;
  background: radial-gradient(circle at 20% 25%, rgba(255,255,255,.9) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 18%, rgba(255,255,255,.7) 0 1px, transparent 1.5px), radial-gradient(circle at 82% 62%, rgba(255,255,255,.8) 0 1.5px, transparent 2px), radial-gradient(circle at 35% 75%, rgba(255,255,255,.6) 0 1px, transparent 1.5px), radial-gradient(circle at 55% 45%, rgba(246,178,94,.9) 0 1.5px, transparent 2px), var(--navy-deep); }
.locked .lock { width: 52px; height: 52px; border-radius: 999px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.card-body { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.card-meta { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A4A0B; }
.card h3 { font-weight: 600; font-size: 24px; line-height: 1.15; }
/* il "?" del font VOYA Display ha un disegno che si legge male: i punti interrogativi usano il font del testo */
.qqq { font-family: var(--f-body); font-weight: 800; letter-spacing: .12em; }
.card-title { font-size: 15px; color: #3B4466; }
.card-clue { font-family: var(--f-hand); font-weight: 700; font-size: 22px; line-height: 1.15; color: #8A4A0B; }
.card-link { margin-top: auto; padding-top: 8px; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* tutta la card cliccabile */

/* ---------- In ogni tappa ---------- */
.inside { background: var(--sand); }
.inside .wrap { display: flex; flex-direction: column; gap: 40px; }
.inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.inside-item { display: flex; flex-direction: column; gap: 14px; }
.inside-media { background: var(--white); border-radius: 18px; padding: 18px; display: flex; justify-content: center; gap: 10px; }
.inside-media img { border-radius: 4px; box-shadow: 0 10px 24px rgba(27, 42, 85, .16); aspect-ratio: 595 / 842; object-fit: cover; }
.inside-media .one { width: 70%; }
.inside-media .two { width: 47%; }
.tilt-l { transform: rotate(-2.5deg); } .tilt-r { transform: rotate(2deg); }
.num { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--red); }
.inside-item h3 { font-weight: 600; font-size: 26px; }
.inside-item p { color: var(--navy-ink); }
.price-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border-radius: 18px; padding: 20px 24px; font-weight: 700; }

/* ---------- Chi è Voya ---------- */
.meet .wrap { display: flex; flex-direction: column; gap: 40px; }
.meet-head { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: center; }
.meet-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.meet-fox { flex: 0 1 340px; width: 100%; max-width: 340px; margin: 0 auto; }
.meet-fox img { width: 100%; height: auto; }
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.trait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.trait img { width: auto; max-width: 100%; height: 230px; object-fit: contain; }
.trait h3, .trait h2 { font-weight: 600; font-size: 24px; color: var(--orange); }
.trait p { font-size: 16px; color: var(--navy-ink); max-width: 26ch; }

/* ---------- Doni ---------- */
.gifts { background: var(--white); border-top: 1px solid var(--line); }
.gifts .wrap { display: flex; flex-direction: column; gap: 36px; }
.gifts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.gift-count { font-family: var(--f-display); font-weight: 600; font-size: 22px; background: var(--peach); padding: 10px 18px; border-radius: 999px; }
.gift-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.gift-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gift-coin { width: 96px; height: 96px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 30px; background: var(--amber); color: var(--navy); }
.gift-list .is-locked .gift-coin { background: var(--white); color: #8A93B5; border: 3px dashed #C7CCE0; }
.gift-name { font-weight: 800; }
.gift-where { font-size: 13px; font-weight: 700; color: var(--brown); }

/* ---------- Newsletter ---------- */
.news { background: var(--amber); padding: 64px 0; }
.news .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.news-fox { width: 170px; height: auto; }
.news-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.news-text h2 { font-weight: 600; font-size: clamp(28px, 3vw, 40px); }
.news-form { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.news-form label { font-weight: 800; font-size: 15px; }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.news-row input { flex: 1 1 220px; min-width: 0; height: 52px; border: 2px solid var(--navy); border-radius: 999px; padding: 0 20px; font: 600 16px var(--f-body); background: var(--white); color: var(--navy); }
.consent { display: flex; gap: 8px; align-items: flex-start; min-height: 44px; padding: 4px 0; font-size: 13px; font-weight: 600; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.small { font-size: 13px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--navy-soft); padding: 84px 0 28px; border-top: 1px solid rgba(246,178,94,.35); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px 64px; }
.foot-brand { max-width: 360px; }
.site-footer .logo-word { color: var(--amber-light); font-size: 44px; letter-spacing: .28em; display: block; }
.foot-rule { display: block; width: 56px; height: 1px; background: var(--amber-light); margin: 18px 0; opacity: .8; }
.foot-brand p { margin: 0; font-size: 15px; line-height: 1.7; font-style: italic; color: var(--navy-soft); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px clamp(36px, 6vw, 88px); }
.foot-col { display: flex; flex-direction: column; gap: 0; }
.foot-col a { color: var(--white); text-decoration: none; padding: 7px 0; min-height: 44px; display: flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .86; transition: color .2s, opacity .2s, transform .2s; }
.foot-col a:hover, .foot-col a:focus-visible { color: var(--amber-light); opacity: 1; transform: translateX(3px); }
.site-footer .foot-legal { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(211,219,242,.18); align-items: center; font-size: 12px; letter-spacing: .06em; color: rgba(211,219,242,.7); }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-legal a { color: inherit; text-decoration: none; padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }
.foot-legal a:hover { color: var(--amber-light); }
/* animazioni del footer */
.site-footer .logo-word { background: linear-gradient(100deg, #F6B25E 0%, #FFE2A8 45%, #F6B25E 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foot-shine 7s ease-in-out infinite; }
@keyframes foot-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.foot-col a, .foot-legal-links a { position: relative; }
.foot-col > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--amber-light); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.foot-col > a:hover::after, .foot-col > a:focus-visible::after { transform: scaleX(1); }
.foot-write { color: var(--white); }
.foot-write summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 7px 0; min-height: 44px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .86; transition: color .2s, opacity .2s; }
.foot-write summary::-webkit-details-marker { display: none; }
.foot-write summary:hover, .foot-write[open] summary { color: var(--amber-light); opacity: 1; }
.foot-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.foot-plus::before, .foot-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.foot-plus::after { transform: rotate(90deg); }
.foot-write[open] .foot-plus::after { transform: rotate(0); }
.foot-write { position: relative; }
.foot-write summary { position: relative; z-index: 2; }
.foot-write[open] summary { color: var(--navy); opacity: 1; transition: color .15s ease; }
.foot-write-panel { position: absolute; z-index: 1; left: -14px; top: -8px; min-width: 270px; padding: 54px 14px 14px; border: 1.5px solid rgba(217, 160, 70, .75); border-radius: 24px; background: var(--grain) 0 0 / 160px, var(--cream); box-shadow: 0 14px 30px rgba(14, 24, 56, .35); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer .foot-write-panel a { color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: none; opacity: 1; padding: 0; }
.foot-copy { font: 700 11px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); background: transparent; border: 1px solid rgba(27,42,85,.35); border-radius: 999px; padding: 6px 14px; min-height: 44px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.foot-copy:hover { border-color: var(--orange); color: var(--orange-ink); }
.foot-copy.is-ok { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.foot-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246,178,94,.5); background: transparent; color: var(--amber-light); display: grid; place-items: center; cursor: pointer; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s; }
.foot-top:hover, .foot-top:focus-visible { background: var(--amber-light); color: var(--navy); transform: translateY(-4px); }
.foot-rule { transform-origin: left; }
.site-footer.is-armed .foot-brand .logo-word, .site-footer.is-armed .foot-brand p, .site-footer.is-armed .foot-col, .site-footer.is-armed .foot-legal { opacity: 0; transform: translateY(22px); }
.site-footer.is-armed .foot-rule { transform: scaleX(0); }
.site-footer.is-in .foot-brand .logo-word, .site-footer.is-in .foot-brand p, .site-footer.is-in .foot-col, .site-footer.is-in .foot-legal { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.site-footer.is-in .foot-rule { transform: none; transition: transform 1s .25s cubic-bezier(.2,.8,.2,1); }
.site-footer.is-in .foot-brand p { transition-delay: .35s; }
.site-footer.is-in .foot-col:nth-child(1) { transition-delay: .2s; }
.site-footer.is-in .foot-col:nth-child(2) { transition-delay: .32s; }
.site-footer.is-in .foot-col:nth-child(3) { transition-delay: .44s; }
.site-footer.is-in .foot-legal { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .site-footer .logo-word { animation: none; } }
@media (max-width: 640px) { .site-footer { padding-top: 60px; } .site-footer .logo-word { font-size: 36px; } .site-footer .foot-legal { margin-top: 40px; } }

/* ---------- Pagina tappa ---------- */
.stop-hero { padding: 24px 0 40px; border-bottom: 1px solid var(--line); }
.stop-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; min-height: 44px; }
a.postcard { display: block; transition: transform .2s ease; }
a.postcard:hover { transform: rotate(1deg) scale(1.02); }

.stop-main { padding: 56px 0 72px; }
.stop-main .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.story-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.letter { background: var(--white); border-radius: 22px; padding: 30px 32px; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; gap: 16px; }
.letter .hello, .letter .sign { font-family: var(--f-hand); font-weight: 700; font-size: 30px; color: var(--red); }
.letter .sign { align-self: flex-end; }
.letter p { font-size: 19px; line-height: 1.65; color: var(--navy-ink); }
.story-page { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red); min-height: 44px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.info { border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.info-gift { background: var(--peach); }
.info-facts { background: #E8EEFB; }
.info-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #7A3F06; }
.info-facts .info-label { color: var(--navy); }
.info-title { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.info ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; color: var(--navy-ink); }

.buy { flex: 1 1 340px; min-width: 0; background: var(--white); border-radius: 24px; padding: 22px; box-shadow: 0 18px 40px rgba(27, 42, 85, .12); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.buy-cover { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; border-radius: 14px; }
.buy-kicker { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8A4A0B; }
.buy h2 { font-weight: 600; font-size: 28px; line-height: 1.15; }
.buy-price { font-family: var(--f-display); font-weight: 700; font-size: 34px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; color: var(--navy-ink); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { color: #2F7A2A; margin-top: 2px; }
.buy-note { font-size: 14px; font-weight: 600; color: #3B4466; text-align: center; }
.buy .btn { width: 100%; }

.gallery { background: var(--sand); padding: 72px 0; }
.gallery .wrap { display: flex; flex-direction: column; gap: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figure img { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; background: var(--white); border-radius: 8px; box-shadow: 0 10px 22px rgba(27, 42, 85, .14); }
.gallery figcaption b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.gallery figcaption span { font-size: 14px; font-weight: 700; color: var(--brown); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--white); font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; }

.next { background: var(--navy); color: var(--white); padding: 72px 0; }
.next .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.next-card { width: 240px; height: 170px; flex-shrink: 0; border-radius: 12px; overflow: hidden; transform: rotate(-3deg); border: 8px solid var(--cream); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); position: relative; }
.next-card .locked { font-family: var(--f-display); font-size: 64px; }
.next-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.next-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.next-kicker { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-light); }
.next-clue { font-family: var(--f-hand); font-weight: 700; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.next-text p:last-child { color: var(--navy-soft); }

/* ---------- Pagine testo (privacy, condizioni) ---------- */
.prose { max-width: 760px; padding: 64px 24px 96px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: clamp(34px, 4vw, 48px); }
.todo { background: var(--peach); border-radius: 14px; padding: 18px 20px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 4px 16px; }
  .logo-word { font-size: 30px; }
  .logo-tag { font-size: 17px; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; gap: 0 18px; font-size: 15px; }
  .hero { padding-top: 32px; }
  .stamp { right: -8px; width: 76px; height: 88px; }
  .stamp b { font-size: 22px; }
  .letter { padding: 24px 22px; }
  .banner-text { padding: 20px; }
}

/* ==========================================================
   Viaggio per posta: come funziona, busta, prezzi, recensioni
   ========================================================== */
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.center { text-align: center; align-items: center; margin-inline: auto; }
.muted { color: var(--brown); }

/* bordo "posta aerea" nei colori di Voya: rosso basco, bianco, blu sciarpa */
.airmail { height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 26px, #2343A6 26px 40px, var(--cream) 40px 52px); }

.how { background: var(--white); padding: 0; }
.how .wrap { display: flex; flex-direction: column; gap: 36px; padding-top: 72px; padding-bottom: 72px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: none; }
.step { position: relative; background: var(--cream); border-radius: var(--radius); padding: 30px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { position: absolute; top: -16px; left: 24px; width: 40px; height: 40px; border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step-ico { color: var(--orange-ink); }
.step h3 { font-weight: 600; font-size: 24px; }
.step p { color: var(--navy-ink); }

.box { background: var(--sand); }
.box .wrap { display: flex; flex-direction: column; gap: 32px; }
.box-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.postmark { width: 128px; height: 128px; flex-shrink: 0; border-radius: 999px; border: 3px solid var(--red); outline: 2px solid var(--red); outline-offset: 5px; display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-12deg); color: var(--red); font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.1; padding: 16px; opacity: .85; }
.box-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.kit { flex: 999 1 560px; min-width: 0; margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(27, 42, 85, .18); }
.kit img { width: 100%; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 999px; background: var(--amber); color: var(--navy); border: 3px solid var(--white); font: 800 15px var(--f-body); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.kit-list { flex: 1 1 300px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kit-list li { display: flex; gap: 14px; align-items: flex-start; }
.kit-n { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--amber); color: var(--navy); font: 800 14px var(--f-body); display: flex; align-items: center; justify-content: center; }
.kit-list b { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.kit-list p { font-size: 15px; color: var(--navy-ink); }
.box-online { display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: 18px; padding: 18px 22px; font-weight: 700; }
.box-online .icon { width: 26px; height: 26px; color: var(--red); }

.pricing .wrap { display: flex; flex-direction: column; gap: 36px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 900px; width: 100%; margin: 0 auto; align-items: stretch; }
.plan { position: relative; background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-main { border-color: var(--red); box-shadow: 0 18px 40px rgba(200, 50, 43, .14); }
.plan-badge { position: absolute; top: -14px; left: 26px; background: var(--red); color: var(--white); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.plan-img { height: 150px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; border-radius: 8px; }
.plan h3, .plan h2 { font-weight: 600; font-size: 26px; }
.plan-price { font-family: var(--f-display); font-weight: 700; font-size: 30px; }
.plan .btn { width: 100%; margin-top: 6px; }

.reviews { background: var(--white); }
.reviews .wrap { display: flex; flex-direction: column; gap: 32px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 17px; }

.buy-mail { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.buy-mail img { width: 72px; border-radius: 6px; }
.buy-mail div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.buy-mail a { font-weight: 800; color: var(--red); display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.archive .wrap { display: flex; flex-direction: column; gap: 32px; }
.archive .card { border: 1px solid var(--line); }

@media (max-width: 900px) {
  .head-cta { order: 2; }
  .site-header .lang { order: 3; }
  .nav { order: 4; width: 100%; gap: 0 18px; font-size: 15px; }
}
@media (max-width: 640px) {
  .postmark { display: none; }
  .hotspot { width: 26px; height: 26px; font-size: 12px; border-width: 2px; }
}
.step-ico svg { width: 28px; height: 28px; }
/* logo e motto impilati: lasciano spazio al menu */
.logo { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.logo-tag { font-size: 17px; margin-top: 2px; }
.nav { gap: 0 20px; }
.hero-art { padding-right: 22px; } .hero { overflow-x: clip; }

/* ==========================================================
   Pagine separate: intestazioni, teaser, busta, passaporto
   ========================================================== */
.nav a[aria-current="page"] { color: var(--red); }
.h1 { font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; text-wrap: balance; }
.h2 { text-wrap: balance; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }
.center.btn-row { justify-content: center; }

.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.page-hero .section-head { flex: 1 1 460px; max-width: 720px; }
.page-hero-img { flex: 1 1 320px; margin: 0; max-width: 460px; }
.page-hero-img img { width: 100%; transform: rotate(-2deg); filter: drop-shadow(0 18px 30px rgba(27, 42, 85, .2)); }

.teaser .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.teaser-img { flex: 1 1 460px; min-width: 0; margin: 0; }
.teaser-img img { width: 100%; border-radius: 18px; box-shadow: 0 18px 40px rgba(27, 42, 85, .15); }
.teaser-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.build { background: var(--white); }
.build .wrap { display: flex; flex-direction: column; gap: 32px; }
.kit-folder { background: #F6F3EC; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.specs div { background: var(--cream); border-radius: 14px; padding: 14px 18px; }
.specs dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); }
.specs dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.open-it { background: var(--cream); padding: 0; }
.open-it .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
.open-it .step { background: var(--white); }

/* Passaporto */
.pass-sec { background: var(--navy); color: var(--white); }
.pass-sec .wrap { display: flex; flex-direction: column; gap: 32px; }
.pass-sec .kicker { color: var(--amber-light); }
.pass-sec .lead { color: var(--navy-soft); max-width: 62ch; }
.pass-sec .muted { color: var(--navy-soft); }
.pass-sec .btn-line { color: var(--white); border-color: var(--white); }
.pass-sec .btn-line:hover { background: var(--white); color: var(--navy); }
.pass-head { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; }
.pass-head .section-head { flex: 1 1 460px; }
.pass-rules { flex: 1 1 320px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pass-rules li { display: flex; gap: 12px; align-items: flex-start; }
.pass-rules b { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.pass-rules p { color: var(--navy-soft); font-size: 15px; }

.passport { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); color: var(--navy); }
.pass-cover { flex: 1 1 240px; max-width: 320px; background: #2E5A44; color: #F3E3B5; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; text-align: center; border-right: 3px dashed rgba(243, 227, 181, .35); }
.pass-label { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.pass-cover img { width: 150px; height: auto; }
.pass-line { width: 100%; border-bottom: 2px solid rgba(243, 227, 181, .6); padding-bottom: 6px; font-family: var(--f-hand); font-size: 22px; color: rgba(243, 227, 181, .85); }
.pass-owner { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.pass-page { flex: 999 1 480px; min-width: 0; background: #FBF4E4 repeating-linear-gradient(0deg, transparent 0 27px, rgba(27, 42, 85, .05) 27px 28px); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pass-count { font-weight: 700; color: var(--brown); }
.pass-count b { font-family: var(--f-display); font-size: 22px; color: var(--red); margin-right: 4px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.slot b { font-size: 13px; font-weight: 800; }
.slot small { font-size: 11px; font-weight: 600; color: var(--brown); line-height: 1.25; }
.slot.is-got { filter: drop-shadow(0 4px 6px rgba(27, 42, 85, .25)); }
.slot.is-got:nth-child(odd) .perf { transform: rotate(-4deg); }
.slot.is-got:nth-child(even) .perf { transform: rotate(3deg); }
/* bordo dentellato da francobollo */
.perf { --r: 4px; position: relative; width: 84px; aspect-ratio: 3 / 4; padding: 7px; background: var(--white); display: block;
  -webkit-mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.perf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.perf-n { position: absolute; right: 9px; bottom: 9px; background: var(--red); color: var(--white); font: 800 11px var(--f-body); border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.perf.empty { background: transparent; -webkit-mask: none; mask: none; border: 2px dashed #C9B48A; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.perf.empty span { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: #C9B48A; }
.passport.is-compact .pass-cover { max-width: 260px; }
.passport.is-compact .pass-cover img { width: 110px; }

.why .wrap { display: flex; flex-direction: column; gap: 32px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-grid.two { max-width: 900px; margin: 0 auto; width: 100%; }
.why-item { background: var(--white); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.why-item img { height: 150px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; border-radius: 8px; }
.why-item h3 { font-weight: 600; font-size: 22px; }
.why-item p { color: var(--navy-ink); }
.cta-band { padding: 48px 0 72px; }
@media (max-width: 640px) {
  .pass-cover { max-width: none; border-right: 0; border-bottom: 3px dashed rgba(243, 227, 181, .35); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perf { width: 76px; }
}
@media (max-width: 900px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================
   Prologo (homepage prima della partenza)
   Senza .is-live: storia ferma, tutta leggibile. Con .is-live: sequenza guidata dallo scroll.
   ========================================================== */
.prologo { background: radial-gradient(120% 80% at 70% 10%, #2B3D78 0%, var(--navy) 45%, #0F1838 100%); color: var(--white); }
.pro-sticky { max-width: var(--wrap); margin: 0 auto; padding: 64px 24px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.pro-stage { position: relative; flex: 1 1 360px; max-width: 520px; aspect-ratio: 2 / 3; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); background: #0F1838; isolation: isolate; }
.pro-scene { position: absolute; inset: 0; }
.pro-zoom { position: absolute; inset: 0; transform-origin: 78% 24%; will-change: transform; }
.pro-s2 .pro-zoom { transform-origin: 45% 45%; }
.pro-zoom img { width: 100%; height: 100%; object-fit: cover; }
.pro-s2 img { object-position: 42% 50%; }
.pro-stars i { position: absolute; width: 6px; height: 6px; border-radius: 999px; background: #FFF6D8; box-shadow: 0 0 10px 3px rgba(255, 236, 170, .75); animation: pro-twinkle 2.6s ease-in-out infinite; }
@keyframes pro-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
.pro-letter { position: absolute; left: 7%; right: 7%; bottom: 5%; max-height: 82%; overflow: hidden; background: #FBF4E4; color: var(--navy); border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(-1.5deg); }
.pro-text { white-space: pre-line; font-family: var(--f-hand); font-weight: 700; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.25; color: #23347A; }
.pro-text.is-writing span:first-child::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--red); margin-left: 1px; vertical-align: -0.15em; animation: pro-blink .7s steps(1) infinite; }
@keyframes pro-blink { 50% { opacity: 0; } }
.pro-rest { color: transparent; }
.pro-sign { margin-top: 10px; text-align: right; transition: opacity .5s ease, transform .5s ease; font-family: var(--f-hand); font-weight: 700; font-size: 26px; color: var(--red); }
.pro-envelope { position: absolute; left: 50%; top: 27%; width: 72%; aspect-ratio: 606 / 414; translate: -50% -50%; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .45)); }
.env-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.env-to { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--f-hand); font-weight: 700; font-size: clamp(16px, 1.9vw, 24px); color: #fff; text-shadow: 0 1px 3px rgba(14, 40, 20, .45); }
.pro-shoot { position: absolute; top: 6%; right: -6%; width: 140px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FFF6D8, rgba(255, 246, 216, 0)); box-shadow: 0 0 12px 2px rgba(255, 236, 170, .6); opacity: 0; z-index: 3; }
.pro-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.prologo .kicker { color: var(--amber-light); }
.pro-cap { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; text-wrap: balance; }
.pro-count { display: flex; flex-direction: column; gap: 14px; }
.pro-presto { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--f-display); color: var(--amber-light); }
.pro-count-t { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-light); font-size: 14px; }
.pro-digits { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-digits span { min-width: 78px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; }
.pro-digits b { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.pro-digits small { font-size: 12px; font-weight: 700; color: var(--navy-soft); text-transform: uppercase; letter-spacing: .06em; }
.pro-done { font-family: var(--f-display); font-size: 28px; }
.prologo .btn-line { color: var(--white); border-color: var(--white); }
.prologo .btn-line:hover { background: var(--white); color: var(--navy); }
.pro-hint { display: none; }

/* versione ferma (senza JS o con riduci movimento) */
.prologo:not(.is-live) .pro-s2, .prologo:not(.is-live) .pro-envelope, .prologo:not(.is-live) .pro-shoot { display: none; }

/* versione animata */
.prologo.is-live { height: 260vh; }
.prologo.is-live .pro-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 24px; padding-bottom: 24px; flex-wrap: nowrap; justify-content: center; gap: 32px 72px; }
.prologo.is-live .pro-stage { height: min(86svh, 780px); flex: 0 0 auto; width: auto; order: 2; }
.prologo.is-live .pro-copy { display: grid; grid-template-rows: 1fr auto minmax(0, 1fr); align-self: stretch; padding-block: 8vh; max-width: 480px; }
.prologo.is-live .pro-copy > .kicker { grid-area: 1 / 1; align-self: end; }
.prologo.is-live .pro-copy > .pro-cap, .prologo.is-live .pro-copy > .pro-count { grid-area: 2 / 1; align-self: start; }
.prologo.is-live .pro-letter:not(.is-signed) .pro-sign { opacity: 0; transform: translateY(6px); }
.prologo.is-live .pro-hint { display: block; grid-area: 3 / 1; align-self: end; font-weight: 700; color: var(--navy-soft); }
.prologo.is-live [data-r] { opacity: 0; visibility: hidden; }
.prologo.is-live .pro-s1, .prologo.is-live .pro-hint { opacity: 1; visibility: visible; }
@media (max-width: 899px) {
  .prologo.is-live .pro-sticky { flex-direction: column; gap: 14px; padding: 14px 16px 18px; }
  .prologo.is-live .pro-stage { order: 0; height: auto; width: 100%; flex: 1 1 auto; min-height: 0; aspect-ratio: auto; max-width: none; border-radius: 20px; }
  .prologo.is-live .pro-copy { flex: 0 0 auto; padding-block: 0; min-height: 210px; }
  .prologo.is-live .pro-copy .kicker { display: none; }
  .pro-cap { font-size: 21px; }
  .pro-digits span { min-width: 64px; }
  .pro-digits b { font-size: 28px; }
  .pro-letter { padding: 16px; }
  .pro-text { font-size: 17px; }
}
.pro-s2 .pro-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pro-count .pro-cap { margin-bottom: 6px; }

/* ---------- La cameretta magica ---------- */
.pro-magic { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.pro-magic * { transform-box: view-box; }
.mg-snow { fill: #FFFFFF; opacity: .85; animation: mg-fall var(--d) linear var(--del) infinite; }
@keyframes mg-fall { from { transform: translate(0, 0); } to { transform: translate(var(--dx), 600px); } }
.mg-tw { fill: #FFF6D8; animation: mg-tw 2.8s ease-in-out var(--del) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mg-tw { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.25); } }
.mg-shoot { animation: mg-shoot 9s ease-in 2s infinite; opacity: 0; }
@keyframes mg-shoot { 0% { transform: translate(940px, 180px) rotate(150deg); opacity: 0; } 2% { opacity: 1; } 9% { transform: translate(660px, 330px) rotate(150deg); opacity: 0; } 100% { transform: translate(660px, 330px) rotate(150deg); opacity: 0; } }
.mg-lamp { mix-blend-mode: screen; animation: mg-flicker 3.2s steps(1) var(--del) infinite; }
@keyframes mg-flicker { 0% { opacity: .75; } 12% { opacity: .95; } 21% { opacity: .7; } 33% { opacity: 1; } 47% { opacity: .82; } 58% { opacity: .96; } 70% { opacity: .74; } 84% { opacity: .9; } }
.mg-hang circle { mix-blend-mode: screen; animation: mg-pulse 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mg-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: .95; transform: scale(1.1); } }
.mg-sheen { mix-blend-mode: screen; opacity: .55; animation: mg-sheen 6s linear infinite; }
@keyframes mg-sheen { from { transform: translateX(-80px); } to { transform: translateX(80px); } }
.mg-globe-orb { filter: drop-shadow(0 0 4px #FFD98A); }
.mg-orbit { transform-origin: 832px 700px; animation: mg-orbit var(--d) linear infinite; }
@keyframes mg-orbit { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg * var(--dir))); } }
.mg-steam path { fill: none; stroke: #FFF4E6; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: mg-steam 3.4s ease-out infinite; }
@keyframes mg-steam { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .55; } 100% { opacity: 0; transform: translateY(-34px); } }
.mg-spark { fill: #FFE7A3; animation: mg-rise var(--d) ease-out var(--del) infinite; }
@keyframes mg-rise { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -150px); } }
.mg-dust { fill: #FFE2A0; opacity: .5; animation: mg-dust var(--d) ease-in-out var(--del) infinite alternate; }
@keyframes mg-dust { 0% { transform: translate(0, 0); opacity: .15; } 50% { opacity: .7; } 100% { transform: translate(24px, -46px); opacity: .2; } }
.mg-lid { transform: translateY(calc(var(--h) * -1)); animation: mg-blink 5.4s ease-in-out infinite; }
@keyframes mg-blink { 0%, 88%, 100% { transform: translateY(calc(var(--h) * -1)); } 90.5% { transform: translateY(0); } 93% { transform: translateY(calc(var(--h) * -1)); } 95% { transform: translateY(0); } 97.5% { transform: translateY(calc(var(--h) * -1)); } }
.mg-lash { opacity: 0; animation: mg-lash 5.4s ease-in-out infinite; }
@keyframes mg-lash { 0%, 89%, 92%, 94%, 96.5%, 100% { opacity: 0; } 90.5%, 95% { opacity: .85; } }
.prologo.is-paused .pro-magic * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pro-magic * { animation: none !important; } .mg-shoot, .mg-spark { display: none; } }
.mg-bookglow { mix-blend-mode: screen; animation: mg-breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mg-breathe { 0%, 100% { opacity: .25; transform: scale(.9); } 50% { opacity: .7; transform: scale(1.05); } }

/* Selettore lingua IT · EN · FR */
/* selettore lingua a tendina: <details>, funziona anche senza JavaScript */
.langs { position: relative; }
.langs > summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; padding: 9px 13px; border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; font-size: 15px; line-height: 1; }
.langs > summary::-webkit-details-marker { display: none; }
.langs[open] > summary, .langs > summary:hover { background: var(--navy); color: var(--white); }
/* profondità: con il menu lingua aperto il resto della barra si riduce e si sfoca, il pannello resta nitido */
.logo, .nav, .head-cta { transition: filter .5s cubic-bezier(.3, 1.2, .45, 1), transform .5s cubic-bezier(.3, 1.2, .45, 1), opacity .5s ease; }
.site-header.is-deep .logo, .site-header.is-deep .nav, .site-header.is-deep .head-cta { filter: blur(2.5px); transform: scale(.94); opacity: .75; pointer-events: none; }
.site-header.is-deep .logo { transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .logo, .nav, .head-cta { transition: none; } }
.langs[open]:not(.is-anim) > summary { visibility: hidden; }
/* durante l'animazione la pastiglia resta nel suo aspetto da chiusa (niente blu da "aperto" o da hover) */
.langs.is-anim > summary, .langs.is-anim > summary:hover { background: transparent; color: var(--navy); border-color: var(--navy); transition: none; }
body.has-alba .site-header:not(.is-scrolled) .langs.is-anim > summary, body.has-alba .site-header:not(.is-scrolled) .langs.is-anim > summary:hover { background: transparent; color: var(--white); border-color: var(--white); }
.langs-menu { position: absolute; right: 0; top: 0; z-index: 30; display: flex; flex-direction: column; min-width: 160px; padding: 8px; background: var(--grain) 0 0 / 160px, var(--cream); border: 1.5px solid rgba(217, 160, 70, .75); border-radius: 24px; box-shadow: 0 14px 30px rgba(27, 42, 85, .16); }
.langs-menu .lang { display: block; min-width: 0; height: auto; border: 0; border-radius: 10px; padding: 10px 14px; text-align: left; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; }
.langs-menu a.lang:hover { background: rgba(242, 165, 65, .22); }
.langs-menu .lang.is-current { background: var(--navy); color: var(--white); }
@media (max-width: 900px) { .site-header .langs { order: 3; } }
/* domande e risposte */
.faq-wrap { max-width: 820px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group .h3 { margin-bottom: 14px; color: var(--orange-ink); }
.faq-q { border-bottom: 2px solid var(--line); }
.faq-q > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; padding: 18px 2px; font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q > summary::after { content: '+'; flex-shrink: 0; font-family: var(--f-body); font-weight: 800; font-size: 26px; line-height: 1; color: var(--red); transition: transform .2s ease; }
.faq-q[open] > summary::after { content: '\2013'; }
.faq-q > summary:hover { color: var(--red); }
.faq-q > div { padding: 0 2px 20px; }
.faq-q p { margin: 0; color: var(--navy-ink); max-width: 68ch; }
.faq-more { margin-top: 36px; text-align: center; color: var(--navy-ink); }
.faq-more a { color: var(--red); font-weight: 800; }
@media (max-width: 480px) { .head-cta { display: none; } }

/* ---------- La magia di una lettera ---------- */
.magic { background: var(--white); }
.magic .wrap { display: flex; flex-direction: column; gap: 64px; }
.magic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.magic-text { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; margin-inline: auto; }
.magic-kicker { font-weight: 800; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-ink); }
.magic-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 5.5vw, 68px); line-height: 1; color: var(--navy); margin-top: -6px; }
.magic-text p:not(.magic-kicker) { font-size: 18px; line-height: 1.7; color: var(--navy-ink); }
.magic-collage { flex: 1 1 420px; min-width: 0; position: relative; aspect-ratio: 5 / 4; max-width: 560px; margin-inline: auto; width: 100%; }
.mc-a { position: absolute; left: 0; top: 18%; width: 74%; height: auto; transform: rotate(-4deg); border-radius: 10px; filter: drop-shadow(0 18px 30px rgba(27, 42, 85, .22)); z-index: 1; }
.mc-b { position: absolute; right: 0; top: 0; width: 42%; height: auto; transform: rotate(5deg); border: 8px solid var(--white); border-radius: 6px; box-shadow: 0 18px 34px rgba(27, 42, 85, .2); }
.why-block { display: flex; flex-direction: column; gap: 24px; }
.why-title { font-family: var(--f-display); font-weight: 600; font-size: 28px; text-align: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-list li { background: var(--cream); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.why-ico { width: 48px; height: 48px; border-radius: 999px; background: var(--peach); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; }
.why-list b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.why-list p { font-size: 15px; color: var(--navy-ink); }

/* ---------- Perché nasce Voya (carta antica) ---------- */
.origin { background:
  radial-gradient(circle at 12% 18%, rgba(120, 82, 40, .10) 0 1.5px, transparent 2.5px) 0 0 / 46px 46px,
  radial-gradient(circle at 70% 60%, rgba(120, 82, 40, .08) 0 1px, transparent 2px) 0 0 / 31px 31px,
  radial-gradient(120% 90% at 50% 40%, #F6EAD2 0%, #EEDCBB 100%); }
.origin .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.origin-head { display: flex; align-items: center; justify-content: center; gap: 12px 28px; }
.origin-titles { text-align: center; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.origin-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; text-wrap: balance; }
.origin-fox { width: 150px; height: auto; flex-shrink: 0; }
.origin-fox.is-right { width: 170px; }
.origin-text { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.origin-text p { font-size: 18px; line-height: 1.75; color: var(--navy-ink); }
.origin-founder { font-style: italic; background: rgba(255, 255, 255, .55); border-left: 3px solid #C9A86E; border-radius: 4px 12px 12px 4px; padding: 14px 18px; }
.origin-sign { font-family: var(--f-hand); font-weight: 700; font-size: 26px !important; color: var(--red) !important; }
@media (max-width: 760px) {
  .origin-head { flex-wrap: wrap; }
  .origin-fox { width: 110px; } .origin-fox.is-right { display: none; }
  .origin-titles { order: -1; }
}

/* ---------- Barra che si nasconde e ricompare ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: transform .28s ease, box-shadow .28s ease; }
/* carta: filo dorato che segue la punta + ombra morbida di carta sollevata */
.site-header { filter: drop-shadow(0 1px 0 rgba(217, 160, 70, .75)) drop-shadow(0 3px 5px rgba(27, 42, 85, .08)); transition: filter .28s ease; }
.site-header.is-scrolled { filter: drop-shadow(0 1px 0 rgba(217, 160, 70, .75)) drop-shadow(0 8px 12px rgba(27, 42, 85, .13)); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* La barra come la pattina di una busta: lo sfondo ha una punta al centro e, scorrendo in giù, si stringe verso il centro
   fino a diventare una linguetta a punta; risalendo (o toccandola) si riapre. Solo CSS: la forma è un clip-path animato. */
.flap::before { content: ""; position: absolute; inset: 0 0 -14px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(217, 160, 70, .55), rgba(217, 160, 70, .55)) 0 calc(100% - 15px) / 100% 1px no-repeat,
    var(--grain) 0 0 / 160px, var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(50% + 48px) calc(100% - 14px), 50% 100%, calc(50% - 48px) calc(100% - 14px), 0 calc(100% - 14px));
  transition: clip-path .55s cubic-bezier(.65, 0, .25, 1), background-color .3s ease; }
/* in apertura voci e pulsanti rientrano dopo che il logo in viaggio ha attraversato la barra (altrimenti ci passa sopra) */
.flap > .wrap { transition: opacity .3s ease .22s, transform .45s cubic-bezier(.65, 0, .25, 1) .15s, visibility 0s linear 0s; }
/* testi e pulsanti della barra: maiuscoletto spaziato, filo dorato che scorre da una voce all'altra */
.nav { position: relative; }
.nav a { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .25s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--orange-ink); }
.nav-ink { position: absolute; left: 0; top: 0; height: 2px; width: var(--iw, 0); transform: translate(var(--ix, 0), var(--iy, 0)); background: var(--amber); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.25, .45, 1), width .5s cubic-bezier(.3, 1.25, .45, 1), opacity .25s ease, background-color .25s ease; }
.nav-ink.is-on { opacity: 1; }
.nav-ink.no-anim { transition: none; }
.nav-ink.is-page { background: var(--red); }
.head-cta { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 14px rgba(200, 50, 43, .25); transition: background .25s ease, transform .5s cubic-bezier(.3, 1.25, .45, 1), box-shadow .3s ease, filter .5s ease, opacity .5s ease; }
.head-cta:hover, .head-cta:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 178, 94, .85), 0 10px 20px rgba(200, 50, 43, .3); }
.langs > summary { min-height: 44px; border-width: 1.5px; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 800; transition: background .25s ease, color .25s ease; }
@media (max-width: 900px) { .nav a { font-size: 11.5px; letter-spacing: .1em; } }
@media (max-width: 520px) { .nav { gap: 0 13px; } .nav a { font-size: 10.5px; letter-spacing: .07em; } }
.flap-mark { position: absolute; left: 50%; top: 0; z-index: 2; width: 168px; height: 46px; padding: 0 0 4px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: 1px; color: var(--orange); opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
.site-header.is-closed { pointer-events: none; }
.site-header.is-closed .flap::before { clip-path: polygon(calc(50% - 84px) 0, calc(50% + 84px) 0, calc(50% + 84px) 40px, calc(50% + 42px) 47px, 50% 54px, calc(50% - 42px) 47px, calc(50% - 84px) 40px); }
.site-header.is-closed .flap > .wrap { opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .2s ease, transform .45s cubic-bezier(.65, 0, .25, 1), visibility 0s linear .3s; }
.site-header.is-closed .flap-mark { opacity: 1; visibility: visible; pointer-events: auto; transition: none; } /* nessuna dissolvenza: il passaggio dal logo in viaggio alla linguetta è istantaneo */
/* mentre il logo-clone viaggia, gli originali restano nascosti (il clone li sostituisce) */
.site-header.is-landing .logo-word, .site-header.is-landing .flap-mark { visibility: hidden !important; }

/* ---------- Hero a tutto schermo: l'alba (pre-lancio) ---------- */
/* Solo proprietà leggere da animare (transform e opacity): niente fusioni di colore né sfocature. */
/* La barra sta sopra l'immagine, trasparente, finché non si scorre */
/* sull'alba la carta della barra è ripiegata sul centro; uscendo dall'hero si spiega verso i lati (stesso clip-path della pattina) */
body.has-alba .site-header:not(.is-scrolled) .flap::before { clip-path: polygon(50% 0, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0); transition-duration: .7s; }
body.has-alba .site-header:not(.is-scrolled) .logo-tag,
body.has-alba .site-header:not(.is-scrolled) .nav a { color: var(--white); text-shadow: 0 1px 8px rgba(27, 42, 85, .45); }
body.has-alba .site-header:not(.is-scrolled) .nav-ink { background: var(--white); }
body.has-alba .site-header:not(.is-scrolled) .langs > summary { border-color: var(--white); color: var(--white); }
body.has-alba .site-header:not(.is-scrolled) .langs[open] > summary { background: var(--navy); border-color: var(--navy); }
body.has-alba .site-header:not(.is-scrolled) .lang.is-current { background: var(--white); color: var(--navy); }

body.ha-mappa { overflow-x: hidden; }

.alba { position: relative; height: 100vh; height: 100svh; min-height: 600px; margin-top: calc(-1 * var(--head-h, 77px)); overflow: hidden; background: #c98a6a; color: var(--white); display: flex; align-items: center; justify-content: center; isolation: isolate; }
/* lo "stage" copre tutto lo schermo con le proporzioni del video: gli uccelli restano nel cielo */
.alba-stage { position: absolute; z-index: -2; left: 50%; top: 50%; aspect-ratio: 1664 / 936; width: max(100%, calc(max(100svh, 600px) * 1.7778)); transform: translate(-50%, -50%); }
.alba-par { position: absolute; inset: 0; transform: translate3d(0, calc(var(--sy, 0) * 14%), 0); }
.alba-kb { position: absolute; inset: 0; transform-origin: 24% 62%; animation: albaKB 24s cubic-bezier(.3, .1, .3, 1) both; }
.alba-still, .alba-still img, .alba-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.alba-fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.alba-flock { transform-box: view-box; animation: albaFlock 34s linear 8s infinite; opacity: 0; }
.alba-flock path { fill: none; stroke: #3b2d3a; stroke-width: 2.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: albaFlap .5s ease-in-out infinite alternate; }
.alba-motes { position: absolute; inset: 0; width: 100%; height: 100%; }

/* velatura per leggere il testo */
.alba-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 62% 56% at 50% 58%, rgba(34, 24, 52, .62), rgba(34, 24, 52, 0) 74%), linear-gradient(180deg, rgba(34, 24, 52, .45) 0, rgba(34, 24, 52, 0) 22%, rgba(34, 24, 52, 0) 72%, rgba(34, 24, 52, .4) 100%); }

.alba-text { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: calc(var(--head-h, 77px) + 12px); padding-bottom: 56px; transform: translate3d(0, calc(var(--sy, 0) * -60px), 0); opacity: calc(1 - var(--sy, 0) * 1.6); }
.alba h1 { font-weight: 700; font-size: clamp(42px, 7vw, 92px); line-height: 1; max-width: 14ch; text-shadow: 0 2px 24px rgba(40, 20, 50, .45), 0 1px 2px rgba(40, 20, 50, .3); }
.alba-lead { font-size: clamp(18px, 2vw, 22px); max-width: 38ch; font-weight: 600; text-shadow: 0 1px 14px rgba(40, 20, 50, .6); }
.alba-meta { font-weight: 800; text-shadow: 0 1px 12px rgba(40, 20, 50, .85), 0 0 3px rgba(40, 20, 50, .6); font-size: 15px; color: #FFE9C2; text-shadow: 0 1px 10px rgba(40, 20, 50, .6); }
.alba .hero-ctas { justify-content: center; }
.alba .btn-line { color: var(--white); border-color: var(--white); background: rgba(27, 42, 85, .3); }
.alba .btn-line:hover { background: var(--white); color: var(--navy); }
.alba-in { opacity: 0; animation: albaUp 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
.alba-in:nth-child(1) { animation-delay: .5s; }
.alba-in:nth-child(2) { animation-delay: .8s; }
.alba-in:nth-child(3) { animation-delay: 1.2s; }
.alba-in:nth-child(4) { animation-delay: 1.6s; }
.alba-in:nth-child(5) { animation-delay: 1.9s; }

.alba-down { position: absolute; left: 50%; bottom: 10px; padding: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--white); text-decoration: none; font-family: var(--f-hand); font-size: 22px; text-shadow: 0 1px 8px rgba(40, 20, 50, .6); opacity: 0; animation: albaIn 1s ease 3s forwards; }
.alba-down > * { opacity: calc(1 - var(--sy, 0) * 4); }
.alba-down svg { width: 28px; height: 28px; animation: albaBob 1.8s ease-in-out infinite; }

@keyframes albaIn { to { opacity: 1; } }
@keyframes albaUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes albaKB { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes albaFlap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes albaFlock { 0% { opacity: 0; transform: translate(1720px, 330px) scale(1.3); } 4% { opacity: .85; } 40% { opacity: .85; } 48% { opacity: 0; transform: translate(760px, 120px) scale(1.9); } 100% { opacity: 0; transform: translate(760px, 120px) scale(1.9); } }
@keyframes albaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 900px) {
  /* video verticale già inquadrato su Voya */
  .alba { min-height: 600px; align-items: stretch; }
  .alba-stage { aspect-ratio: 560 / 940; width: max(100%, calc(max(100svh, 600px) * .5957)); }
  .alba-kb { transform-origin: 45% 66%; }
  .alba-fx { display: none; }
  .alba-shade { background: linear-gradient(180deg, rgba(34, 24, 52, .55) 0, rgba(34, 24, 52, .4) 42%, rgba(34, 24, 52, 0) 58%, rgba(34, 24, 52, 0) 68%, rgba(34, 24, 52, .6) 100%); }
  /* su telefono: titolo in alto, pulsanti in basso, Voya libera nel mezzo */
  .alba-text { gap: 12px; padding-top: calc(var(--head-h, 77px) + 18px); padding-bottom: 64px; }
  .alba h1 { font-size: clamp(34px, 10vw, 46px); }
  .alba-lead { font-size: 16px; }
  .alba .hero-ctas { margin-top: auto; }
  .alba .hero-ctas .btn { width: 100%; justify-content: center; }
  .alba-meta { font-size: 13px; }
  .alba-down span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .alba-video, .alba-fx, .alba-motes { display: none; }
  .alba-kb, .alba-down svg { animation: none; }
  .alba-in, .alba-down { animation: none; opacity: 1; }
  .alba-par, .alba-text { transform: none; opacity: 1; }
}

/* ---------- Regala Voya ---------- */
.h3 { font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.section-tight { padding: 8px 0 56px; }
.plans-3 { max-width: 1120px; }
.plan-tag { margin-top: -8px; color: var(--brown); font-weight: 700; }
.plan .checks { margin-top: 4px; }
.gift-hero-img { max-width: 300px; }
.gift-note { max-width: 60ch; margin: 28px auto 0; }
.gift-teaser { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; max-width: 900px; margin: 0 auto; background: var(--white); border: 2px dashed var(--amber); border-radius: 24px; padding: 20px 28px; }
.gift-teaser img { width: 96px; height: auto; }
.gift-teaser p { color: var(--navy-ink); }
.manage-line { text-align: center; margin-top: 22px; font-weight: 700; }
.manage-line a { color: var(--red); }
@media (max-width: 700px) {
  .gift-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---------- Grazie ---------- */
.thanks { padding: 56px 0 96px; }
.thanks .wrap { display: flex; flex-direction: column; gap: 28px; }
.thanks-card { max-width: 720px; margin: 0 auto 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.thanks-fox { width: 150px; height: auto; animation: thanksHop 2.4s ease-in-out infinite; }
.thanks .steps { margin-top: 12px; }
.thanks [hidden] { display: none !important; }
@keyframes thanksHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .thanks-fox { animation: none; } }

/* ---------- HOME atto 3: la busta che si apre scorrendo ---------- */
/* Passi: 0 busta chiusa · 1 via il sigillo · 2 su la pattina · 3 la cartellina si apre in 3 parti
   4 cartolina · 5 stella (si gira) · 6 carta d'imbarco · 7 passaporto (si apre, arriva il francobollo) · 8 quaderno */
.bs { position: relative; overflow-x: clip; /* i pezzi della busta fuori scena allargavano la pagina su iPhone; clip (non hidden) non rompe lo sticky */ background: linear-gradient(180deg, #FFF7EA 0%, #F6E8D3 100%); }
.bs-sticky { padding: 72px 0; }
.bs-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 32px 56px; }
.bs-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; perspective: 1800px; }
.bs-stage img { display: block; width: 100%; height: auto; }
.bs-floor { position: absolute; left: 4%; right: 4%; top: 90%; height: 10%; background: radial-gradient(closest-side, rgba(27, 42, 85, .22), transparent); }
:root { --bs-ease: cubic-bezier(.2, .8, .2, 1); }

/* busta chiusa: corpo, pattina (due facce) e sigillo */
.bs-env { position: absolute; left: 14%; top: 13%; width: 72%; transform-style: preserve-3d; transition: opacity .6s ease, transform .9s var(--bs-ease); filter: drop-shadow(0 22px 26px rgba(27, 42, 85, .22)); }
.bs-flap { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 5.9%; transform-style: preserve-3d; transition: transform 1.1s var(--bs-ease); }
.bs-flap img { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bs-flap-b { transform: rotateX(180deg); }
.bs-seal { position: absolute; left: 42.5%; top: 47%; width: 17% !important; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transition: transform .9s var(--bs-ease), opacity .4s ease .45s; }

/* cartellina aperta: tre pannelli che si dispiegano */
.bs-folder { position: absolute; left: 2%; top: 47%; width: 96%; height: 51.4%; transform-style: preserve-3d; opacity: 0; transform: translateY(-8%) scale(.92); transition: opacity .5s ease .15s, transform .9s var(--bs-ease) .15s; }
.bs-panel { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transition: transform 1.7s var(--bs-ease) .45s; }
.bs-panel img { position: absolute; inset: 0; height: 100% !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bs-back { position: absolute; inset: 0; background: #4F6E5C; border-radius: 4px; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bs-panel-l { left: 0; width: 23.42%; transform-origin: right center; transform: rotateY(178deg); }
.bs-panel-c { left: 23.42%; width: 34.83%; }
.bs-panel-r { left: 58.25%; width: 41.75%; transform-origin: left center; transform: rotateY(-178deg); }

/* i contenuti partono dalla tasca (pannello destro) */
.bs-p { position: absolute; left: 74%; top: 72%; width: 8%; opacity: 0; transform: rotate(0deg); filter: drop-shadow(0 10px 14px rgba(27, 42, 85, .28)); transition: left 1s var(--bs-ease), top 1s var(--bs-ease), width 1s var(--bs-ease), opacity .45s ease, transform 1s var(--bs-ease); z-index: 2; }
.bs-stella { transform-style: preserve-3d; filter: none; }
.bs-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 8px 10px rgba(27, 42, 85, .25)); }
.bs-face-b { position: absolute; left: 0; top: 0; transform: rotateY(180deg); }
.bs-pass { aspect-ratio: 900 / 613; transform-style: preserve-3d; filter: none; }
.bs-pass-in { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; box-shadow: 0 12px 22px rgba(27, 42, 85, .25); border-radius: 6px; }
.bs-pass-cover { position: absolute; left: 50%; top: 0; width: 50% !important; height: 100% !important; object-fit: cover; border-radius: 4px 8px 8px 4px; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 18px rgba(27, 42, 85, .3); transition: transform 1.4s cubic-bezier(.5, 0, .3, 1); }
.bs-stamp { position: absolute; left: 6.4%; top: 8.5%; width: 9% !important; opacity: 0; transform: translate(220%, -260%) rotate(-30deg) scale(1.4); transition: opacity .3s ease, transform .8s var(--bs-ease); }

/* ---- stati raggiunti (JS) o composizione finale (senza JS) ---- */
.bs.is-s1 .bs-seal, .bs-static .bs-seal { transform: translate(140%, -190%) rotate(40deg) scale(.85); opacity: 0; }
.bs.is-s2 .bs-flap, .bs-static .bs-flap { transform: rotateX(172deg); }
.bs.is-s3 .bs-env, .bs-static .bs-env { opacity: 0; transform: translateY(16%) scale(.86); pointer-events: none; }
.bs.is-s3 .bs-folder, .bs-static .bs-folder { opacity: 1; transform: none; }
.bs.is-s3 .bs-panel-l, .bs.is-s3 .bs-panel-r, .bs-static .bs-panel-l, .bs-static .bs-panel-r { transform: rotateY(0deg); }
.bs.is-s4 .bs-cartolina, .bs-static .bs-cartolina { left: 2%; top: 0%; width: 42%; opacity: 1; transform: rotate(-4deg); }
.bs.is-s5 .bs-stella, .bs-static .bs-stella { left: 44%; top: 3%; width: 16%; opacity: 1; transform: rotate(8deg) rotateY(180deg); transition: left 1s var(--bs-ease), top 1s var(--bs-ease), width 1s var(--bs-ease), opacity .45s ease, transform 1.4s var(--bs-ease) .2s; }
.bs.is-s6 .bs-imbarco, .bs-static .bs-imbarco { left: 61%; top: 5%; width: 37%; opacity: 1; transform: rotate(5deg); }
.bs.is-s7 .bs-pass, .bs-static .bs-pass { left: 45%; top: 21%; width: 40%; opacity: 1; transform: rotate(-2deg); }
.bs.is-s7 .bs-pass-cover, .bs-static .bs-pass-cover { transform: rotateY(-180deg); transition-delay: .9s; }
.bs.is-s7 .bs-pass-in, .bs-static .bs-pass-in { opacity: 1; transition-delay: .95s; }
.bs.is-s7 .bs-stamp, .bs-static .bs-stamp { opacity: 1; transform: rotate(-4deg); transition-delay: 2.3s; }
.bs.is-s8 .bs-quaderno, .bs-static .bs-quaderno { left: 27%; top: 7%; width: 16%; opacity: 1; transform: rotate(-6deg); }
/* il pezzo del passo attuale sta sopra gli altri */
.bs[data-step="4"] .bs-cartolina, .bs[data-step="5"] .bs-stella, .bs[data-step="6"] .bs-imbarco, .bs[data-step="7"] .bs-pass, .bs[data-step="8"] .bs-quaderno { z-index: 6; }

/* didascalie: una alla volta, nello stesso punto */
.bs-caps { list-style: none; margin: 0; padding: 0; display: grid; }
.bs-cap { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.bs-cap p { font-size: 18px; color: var(--navy-ink); max-width: 44ch; }
.bs-cap .btn-row { margin-top: 8px; }
.bs-live .bs-cap { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.bs-live .bs-cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bs-dots { display: none; }
.bs-live .bs-dots { display: flex; gap: 8px; grid-column: 2; }
.bs-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(27, 42, 85, .2); transition: width .3s ease, background .3s ease; }
.bs-dots span.is-on { width: 24px; background: var(--red); }

/* modalità scorrimento: la sezione è alta, il contenuto resta fermo mentre si scorre */
.bs-live { height: calc(var(--n) * 32vh + 100vh); }
.bs-live .bs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0; }
.bs-live .bs-sticky > .wrap { width: 100%; }

/* senza JavaScript: tutte le didascalie in elenco */
.bs-static .bs-caps { gap: 26px; }
.bs-static .bs-cap { grid-area: auto; }

@media (max-width: 900px) {
  .bs-grid { grid-template-columns: 1fr; gap: 16px; }
  .bs-live .bs-stage { width: min(100%, calc(48svh * 4 / 3)); margin: 0 auto; }
  .bs-live .bs-sticky { align-items: flex-start; padding-top: 64px; }
  .bs-cap p { font-size: 16px; }
  .bs-cap .h2 { font-size: 30px; }
  .bs-live .bs-dots { grid-column: 1; justify-content: center; order: -1; }
}

/* ---------- HOME atto 4: il viaggio nel passaporto ---------- */
.trip .slot b { white-space: nowrap; }
.trip .pass-head { align-items: flex-end; }

/* ---------- HOME atto 5 ---------- */
.why-3 { width: 100%; max-width: 1000px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.origin .why-3 li { background: var(--white); }
.pro-meet { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--amber-light); font-weight: 800; text-decoration: none; }
.pro-meet:hover { text-decoration: underline; }

/* ---------- HOME chiusura: scegli come partire ---------- */
.plans-2 { max-width: 840px; }
/* selettore mensile / annuale */
.cycle { position: relative; display: flex; justify-content: center; gap: 6px; margin: -16px auto 30px; padding: 6px; background: var(--grain) 0 0 / 160px, var(--sand); border: 1px solid rgba(217, 160, 70, .55); border-radius: 999px; width: fit-content; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.cycle-b { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: transparent; color: var(--navy-ink); font: 800 16px var(--f-body); padding: 10px 20px; border-radius: 999px; transition: background-color .18s ease, color .18s ease; }
.cycle-b em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--orange-ink); background: var(--peach); padding: 3px 9px; border-radius: 999px; }
.cycle-b.is-on { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(27, 42, 85, .12); }
/* con JavaScript la pastiglia è un elemento a parte che scorre in orizzontale sotto i pulsanti */
.cycle-pill { display: none; }
.cycle.has-pill .cycle-pill { display: block; position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--pw, 0); transform: translateX(var(--px, 0)); background: var(--grain) 0 0 / 160px, #fff; border: 1px solid rgba(217, 160, 70, .75); border-radius: 999px; box-shadow: 0 2px 8px rgba(27, 42, 85, .12); transition: transform .55s cubic-bezier(.3, 1.25, .45, 1), width .55s cubic-bezier(.3, 1.25, .45, 1); }
.cycle.has-pill.no-anim .cycle-pill, html.morphing .cycle.has-pill .cycle-pill { transition: none; }
.cycle.has-pill .cycle-pill { view-transition-name: cycle-pill; }
/* i pulsanti hanno un nome loro: nell'ordine del documento vengono dopo la pastiglia, quindi le scritte restano sopra mentre scorre */
.cycle.has-pill .cycle-b[data-ciclo="mese"] { view-transition-name: cycle-b-mese; }
.cycle.has-pill .cycle-b[data-ciclo="anno"] { view-transition-name: cycle-b-anno; }
.cycle.has-pill .cycle-b.is-on { background: transparent; box-shadow: none; }
.pricing[data-ciclo="anno"] .p-mese, .pricing[data-ciclo="mese"] .p-anno { display: none; }
.plan-note { margin: -8px 0 0; color: var(--navy-ink); font-size: 15px; }
.plan-cta { margin-top: auto; }
.plan .plan-cta .btn { margin-top: 10px; }
.plan-main { background: linear-gradient(var(--peach), var(--white) 220px); box-shadow: 0 18px 40px rgba(27, 42, 85, .10); }
.plan h3 small, .plan h2 small { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 700; font-size: 15px; color: var(--navy-ink); }
.plan-top { margin: -4px 0 2px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.plan-top .plan-price { margin: 0; }
.plan-top .plan-note { margin: 2px 0 0; }
.plan-strike { margin: 2px 0 0; color: #8A8578; font-size: 15px; font-weight: 700; }
.plan-strike s { text-decoration-thickness: 2px; }
.plus-label { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font: 800 13px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.plus-label::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.checks-plus li { font-weight: 700; }
.checks-plus svg { color: var(--amber); }
.checks li.is-off { color: #8A8578; }
.checks li.is-off svg { color: #B9B2A3; }
.plan-lock { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--orange-ink); background: var(--peach); padding: 3px 10px; border-radius: 999px; }
.garanzia { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 760px; margin: 26px auto 0; text-align: center; color: var(--navy-ink); font-size: 15px; }
.garanzia svg { flex-shrink: 0; }
.pricing .garanzia { align-items: center; }
.garanzia a { color: var(--navy-ink); }
/* striscia di rassicurazioni sotto i piani */
.rass { list-style: none; margin: 34px auto 0; padding: 22px 0 0; max-width: 980px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 32px; }
.rass li { display: flex; align-items: flex-start; gap: 10px; color: var(--navy-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.rass li svg { flex-shrink: 0; margin-top: 2px; color: var(--orange-ink); }
.rass a { color: var(--navy-ink); }
.rass-faq { margin: 18px 0 0; text-align: center; font-weight: 800; font-size: 15px; }
.rass-faq a { display: inline-flex; align-items: center; gap: 8px; color: var(--red); text-decoration: none; }
.rass-faq a:hover { text-decoration: underline; }
.rass-faq .icon { width: 16px; height: 16px; }
.plans-2 ~ .rass { max-width: 840px; }
/* Abbonati: mosaico sfalsato (il viaggio completo a sinistra per tutta l'altezza; a destra la busta, un po' più in basso, e il regalo) */
.plans-mosaico { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 24px; max-width: 1060px; margin: 0 auto; align-items: stretch; }
.plans-mosaico > .plan-main { grid-row: 1 / span 2; }
.plans-mosaico > .plan:not(.plan-main) { margin-top: 26px; }
.plans-mosaico > .plan-regalo { min-height: 140px; }
.plans-mosaico .plan .plan-img { height: auto; width: 100%; max-width: 250px; align-self: center; }
.plans-mosaico .plan-main .pdf-img { display: block; width: 100%; } .plans-mosaico .plan.plan-main .plan-img { max-width: 100%; }
.plans-mosaico ~ .rass { max-width: 1060px; }
@media (max-width: 860px) { .plans-mosaico { grid-template-columns: 1fr; grid-template-rows: none; max-width: 520px; } .plans-mosaico > .plan-main { grid-row: auto; } .plans-mosaico > .plan:not(.plan-main) { margin-top: 0; } }   /* stessa larghezza e stessi bordi delle card sopra */
.plans-3 ~ .rass { max-width: 1120px; }
@media (max-width: 760px) { .rass { grid-template-columns: 1fr; max-width: 440px; } }
/* una sola tappa: proposta d'ingresso, sotto gli abbonamenti */
.pdf-line { display: flex; align-items: center; gap: 22px; max-width: 840px; margin: 44px auto 0; padding: 20px 24px; background: var(--white); border: 2px dashed var(--line); border-radius: 24px; }
.pdf-line img { width: 86px; height: auto; border-radius: 10px; flex-shrink: 0; }
.pdf-line div { flex: 1 1 240px; }
.pdf-line b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.pdf-line p { margin: 4px 0 0; color: var(--navy-ink); }
.pdf-line .btn { flex-shrink: 0; }
@media (max-width: 680px) { .pdf-line { flex-direction: column; text-align: center; }  }
.start-pdf { text-align: center; margin: 30px 0 0; color: var(--navy-ink); }
.start-pdf a { color: var(--red); font-weight: 800; text-decoration: none; white-space: nowrap; }
.start-pdf a:hover { text-decoration: underline; }
.start-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red) !important; }

/* passaporto: copertina vera (gialla) */
.pass-cover.is-real { padding: 0; background: #F3B01C; border-right: 0; justify-content: center; }
.pass-cover.is-real img { width: 100%; max-width: 280px; height: 100%; max-height: 420px; object-fit: contain; }
.pass-page { background-color: #FCEFD2; }

/* ======================= IL VIAGGIO: il mondo a tutto schermo ======================= */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mappa { position: relative; width: 100%;
  background: #0E1838; overflow: clip; isolation: isolate; }
/* fondale: la stessa illustrazione sfocata riempie lo schermo, cosi' la mappa vera non va mai tagliata */
.mappa::before { content: ''; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background: #0E1838 url('/img/mappa/planisfero-900.webp') center / cover no-repeat;
  filter: blur(38px) saturate(.9) brightness(.42) hue-rotate(-6deg); transform: scale(1.08); }
.mappa::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 74% 84% at 50% 50%, rgba(10,18,48,.18) 30%, rgba(10,18,48,.74) 100%); }
.m-scorri { position: relative; aspect-ratio: 1672/941; z-index: 1; }
/* lo stage tiene le proporzioni dell'illustrazione e copre lo schermo: taglia solo il minimo */
.m-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  aspect-ratio: 1672/941; width: 100%; }
/* La telecamera: mondo e continente usano la stessa durata e lo stesso ritmo, cosi' restano sovrapposti
   mentre uno si ingrandisce e l'altro cresce fino alla sua misura. */
.mappa { --m-dur: 1.3s; --m-ease: cubic-bezier(.65, .02, .22, 1); }
.m-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease .5s, visibility 0s linear 1.1s, transform var(--m-dur) var(--m-ease), --mf var(--m-dur) var(--m-ease); }
.m-layer.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .2s, visibility 0s linear 0s, transform var(--m-dur) var(--m-ease), --mf var(--m-dur) var(--m-ease); }
.m-layer[hidden] { display: none; }
/* il mondo: resta visibile finche' il primo piano non lo copre del tutto, e rientra subito quando si torna */
.m-layer[data-layer="mondo"] { transition: opacity .5s ease .75s, visibility 0s linear 1.3s; }
.m-layer[data-layer="mondo"].is-on { transition: opacity .2s ease 0s, visibility 0s linear 0s; }
/* il primo piano parte piccolo, sopra il continente, e cresce fino a riempire lo schermo */
.m-cont { transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform, opacity;
  transform: translate(var(--ctx, 0%), var(--cty, 0%)) scale(var(--ck, 1)); }
.m-cont.is-on { transform: none; --mf: 0%; }
/* bordo sfumato finche' il primo piano e' piu' piccolo dello schermo: niente rettangolo con gli spigoli */
@property --mf { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.m-cont { --mf: 26%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--mf), #000 calc(100% - var(--mf)), transparent), linear-gradient(to bottom, transparent, #000 var(--mf), #000 calc(100% - var(--mf)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--mf), #000 calc(100% - var(--mf)), transparent), linear-gradient(to bottom, transparent, #000 var(--mf), #000 calc(100% - var(--mf)), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* le nuvole si aprono verso i bordi (translate e scale propri: l'animazione di galleggiamento usa transform) */
.m-cont .m-nuvola { translate: var(--cx, 0%) var(--cy, 0%); scale: var(--cs, 1); --cf: 34%;
  -webkit-mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 var(--cf), transparent calc(var(--cf) + 24%));
  mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 var(--cf), transparent calc(var(--cf) + 24%));
  transition: translate 1.5s cubic-bezier(.2, .75, .25, 1) .45s, scale 1.5s cubic-bezier(.2, .75, .25, 1) .45s, --cf 1.5s ease .45s; }
@property --cf { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.m-cont.is-on .m-nuvola { translate: 0 0; scale: 1; --cf: 110%; }
.m-cont:not(.is-on) .m-nuvola { transition-delay: 0s; transition-duration: .9s; }
.mappa.no-anim, .mappa.no-anim * { transition: none !important; }
.m-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--k, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: transform var(--m-dur) var(--m-ease); will-change: transform; }

/* zone cliccabili sopra il planisfero */
.mz { position: absolute; inset: 0; display: block; text-decoration: none; color: inherit; pointer-events: none; }
.mz-hit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--k, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform var(--m-dur) var(--m-ease); }
.mz-hit path { fill: #fff; fill-opacity: 0; stroke: #FFF2C3; stroke-opacity: 0; stroke-width: 6; stroke-linejoin: round;
  pointer-events: all; cursor: pointer; transition: fill-opacity .2s ease, stroke-opacity .2s ease; }
.mz:hover .mz-hit path, .mz:focus-visible .mz-hit path { fill-opacity: .14; stroke-opacity: .95; }
.mz.is-now .mz-hit path { stroke: var(--amber); }
.mz.is-now:hover .mz-hit path, .mz.is-now:focus-visible .mz-hit path { stroke: #FFF2C3; fill-opacity: .14; stroke-opacity: .95; }
/* segno a riposo: si vede che il continente e' vivo anche senza passarci sopra */
.mz-pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(12, 22, 54, .66); border: 2px solid rgba(255, 242, 195, .85); color: var(--cream);
  font-weight: 800; font-size: 15px; box-shadow: 0 4px 16px rgba(8, 15, 38, .5);
  transition: opacity .2s ease, transform .2s ease; }
.mz-pin::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(255, 242, 195, .55);
  animation: pin-onda 3s ease-out infinite; }
.mz.is-empty .mz-pin { width: 16px; height: 16px; border-width: 2px; opacity: .6; }
.mz.is-empty .mz-pin::after { animation-duration: 4.6s; opacity: .5; }
.mz.is-now .mz-pin { background: var(--red); border-color: var(--cream); box-shadow: 0 4px 18px rgba(8,15,38,.5), 0 0 34px 10px rgba(242,165,65,.45); }
.mz.is-now .mz-pin::after { border-color: rgba(242,165,65,.8); }
.mz:hover .mz-pin, .mz:focus-visible .mz-pin { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
@keyframes pin-onda { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
.mz-tag { position: absolute; transform: translate(-50%, -50%) scale(.92); display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; border-radius: 999px; background: rgba(14, 24, 56, .84); backdrop-filter: blur(6px); color: var(--cream);
  pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.mz:hover .mz-tag, .mz:focus-visible .mz-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mz-tag b { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.1; }
.mz-tag em { font-style: normal; font-size: 13px; font-weight: 700; color: #A9B3D6; }
.mz-done { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 999px; background: var(--amber);
  color: var(--navy); font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* Voya: elemento unico, vola da una tappa all'altra */
.voya { position: absolute; z-index: 4; transform: translate(-50%, -50%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  transition: left .9s cubic-bezier(.5,.02,.2,1), top .9s cubic-bezier(.5,.02,.2,1), opacity .35s ease; }
.voya img { position: relative; width: clamp(50px, 5.2vw, 86px); height: auto; animation: voya-fluttua 3.4s ease-in-out infinite; }
.voya-stella { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); width: clamp(104px, 11vw, 172px); height: auto;
  fill: var(--amber); opacity: .9; filter: drop-shadow(0 0 26px rgba(242,165,65,.7)); animation: voya-gira 26s linear infinite; }
.voya em { font-style: normal; margin-top: 4px; padding: 5px 13px; border-radius: 999px; background: var(--red); color: var(--white);
  font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(14,24,56,.4); }
.voya.in-volo img { animation: none; }
@keyframes voya-fluttua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes voya-gira { to { transform: translate(-50%, -50%) rotate(360deg); } }

.m-nuvola { position: absolute; z-index: 2; pointer-events: none; object-fit: contain;
  animation: nuvola-va 34s ease-in-out infinite alternate; will-change: transform; }
.m-nuvola.n1 { animation-duration: 46s; animation-delay: -6s; }
.m-nuvola.n2 { animation-duration: 40s; animation-delay: -14s; }
.m-nuvola.n3 { animation-duration: 52s; animation-delay: -22s; }
@keyframes nuvola-va { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(2.2%, -1.4%, 0) scale(1.05); } }

/* casa di Voya (Loira): un punto fisso, non una tappa. Il punto è l'icona; l'etichetta le sta a sinistra */
.mc { position: absolute; width: 0; height: 0; text-decoration: none; color: var(--cream); z-index: 3; }
.mc b { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--red); border: 3px solid var(--amber); box-shadow: 0 0 0 6px rgba(255, 214, 120, .25), 0 6px 18px rgba(14,24,56,.5); transition: transform .2s ease; }
.mc span { position: absolute; right: 30px; top: 0; transform: translateY(-50%); padding: 4px 11px; border-radius: 999px; background: rgba(14,24,56,.84); font-size: 13px; font-weight: 800; white-space: nowrap; }
.mc:hover b { transform: scale(1.14); }
@media (max-width: 640px) { .mc span { display: none; } .mc b { left: -15px; top: -15px; width: 30px; height: 30px; } .mc svg { width: 16px; height: 16px; } }
/* puntini delle tappe dentro il continente */
.mp { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--cream); z-index: 3; }
.mp b { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; border: 3px solid var(--cream); box-shadow: 0 6px 18px rgba(14,24,56,.5); transition: transform .2s ease; }
.mp span { padding: 4px 11px; border-radius: 999px; background: rgba(14,24,56,.84); font-size: 13px; font-weight: 800; white-space: nowrap; }
.mp.in-basso { flex-direction: column-reverse; }
/* etichetta a destra del pin (campo "lato": "dx" in tappe.json), per non finire sotto il ritratto di Voya o un altro pin; il pin resta dov'e' */
.mp.lato-dx { flex-direction: row; gap: 8px; transform: translate(-20px, calc(-50% - 16px)); }
.mp.is-done b { background: var(--amber); color: var(--navy); }
.mp.is-now b { background: var(--red); color: var(--white); animation: mp-pulsa 2.2s ease-in-out infinite; }
.mp.is-next b, .mp.is-later b { background: rgba(14,24,56,.72); color: #A9B3D6; border-style: dashed; }
.mp.is-next span, .mp.is-later span { color: #A9B3D6; }
.mp:hover b { transform: scale(1.14); }
@keyframes mp-pulsa { 0%, 100% { box-shadow: 0 6px 18px rgba(14,24,56,.5), 0 0 0 0 rgba(200,50,43,.5); } 50% { box-shadow: 0 6px 18px rgba(14,24,56,.5), 0 0 0 18px rgba(200,50,43,0); } }

/* testo sopra la mappa */
.m-ui { position: sticky; bottom: 0; height: 0; z-index: 5; pointer-events: none; }
.m-ui > .m-info { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(18px, 3vh, 34px); }
.m-ui::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,15,38,.70), rgba(8,15,38,0)); }

.m-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.m-pill { margin: 0; display: inline-flex; align-items: baseline; gap: 10px; padding: 9px 18px; border-radius: 999px;
  background: rgba(8,15,38,.72); backdrop-filter: blur(8px); color: var(--cream); font-weight: 700; font-size: 15px; max-width: 62ch; }
.m-pill b { font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--amber); }
.m-pill b:empty { display: none; }

.m-head .kicker { color: var(--amber); }


.m-back { pointer-events: all; background: rgba(254,250,241,.92); }
.m-back[hidden] { display: none; }
.m-scroll { position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(14px, 2.6vh, 28px); pointer-events: all; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--cream); text-decoration: none; font-weight: 800; font-size: 14px; opacity: .85; }
.m-scroll svg { width: 22px; height: 22px; animation: scendi 2.2s ease-in-out infinite; }
@keyframes scendi { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.mappa:not([data-stato="mondo"]) .m-scroll { opacity: 0; pointer-events: none; }
.m-scroll span, .m-scroll svg { filter: drop-shadow(0 2px 10px rgba(8,15,38,.8)); }

/* elenco sotto la mappa */
.m-sotto-h { margin-bottom: 20px; }
.mc-vuoto { display: flex; align-items: center; gap: 22px; max-width: 720px; margin: 0 auto; padding: 24px 28px; background: var(--peach); border-radius: 24px; }
.mc-vuoto img { width: 96px; height: auto; flex-shrink: 0; }
.mc-vuoto b { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.mc-vuoto p { margin: 4px 0 0; color: var(--navy-ink); }

@media (max-width: 860px) {
  /* sul telefono il mondo non si taglia: si trascina */
  .mappa { display: flex; flex-direction: column; aspect-ratio: auto; height: auto; min-height: 0; margin-top: 0; }
  .m-scorri { position: relative; inset: auto; }
  .m-scorri { position: relative; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .m-scorri::-webkit-scrollbar { display: none; }
  .m-stage { position: relative; left: auto; top: auto; transform: none; width: 168%; }
  .m-img { object-fit: fill; }
  .m-ui { position: static; height: auto; display: block; padding: 16px 20px 20px; background: #0E1838; }
  .m-ui::after { display: none; }
  .m-ui > .m-info { position: static; }
  .m-pill { background: none; padding: 0; font-size: 15px; backdrop-filter: none; }
  .m-info { gap: 8px; }
  .m-scroll { display: none; }
  .m-trascina { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; color: #A9B3D6; font-weight: 700; font-size: 14px; }
  .mz-tag { opacity: 1; transform: translate(-50%, -50%) scale(.86); padding: 5px 11px; }
  .mz-pin { display: none; }
  .mz-tag b { font-size: 15px; } .mz-tag em { display: none; }
  .mp span { display: none; } .mp b { width: 32px; height: 32px; font-size: 13px; border-width: 2px; }
  .mc-vuoto { flex-direction: column; text-align: center; }
}
@media (min-width: 861px) { .m-trascina { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .m-img, .mz-hit, .voya, .m-layer, .m-cont .m-nuvola { transition: none; }
  .voya img, .voya-stella, .mp.is-now b, .m-scroll svg, .m-nuvola, .mz-pin::after { animation: none; }
}
::view-transition-old(mappa), ::view-transition-new(mappa) { animation-duration: .4s; }

/* Pagina "Come funziona" */
.how-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.how-facts li { background: var(--white); color: var(--navy-ink); font-weight: 700; padding: 8px 16px; border-radius: 999px; }

/* "Come funziona": la carta si trasforma scorrendo (motore di busta.js, classi is-s0…is-s4) */
.hm-stage { --sh: clamp(280px, 56vh, 520px); position: relative; height: var(--sh); width: 100%; display: flex; align-items: center; justify-content: center; }
.hm-card { --hh: .62; --ratio: 1.6; position: relative; height: calc(var(--sh) * var(--hh)); width: calc(var(--sh) * var(--hh) * var(--ratio)); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 24px 40px rgba(27, 42, 85, .24); transform: rotate(-3deg); transition: width 1s var(--bs-ease), height 1s var(--bs-ease), transform 1s var(--bs-ease), opacity .6s ease, border-radius .8s ease; }
.hm-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1s var(--bs-ease); }
.hm-face-0, .hm.bs-static .hm-face-1 { opacity: 1; transform: none; }
.hm.bs-static .hm-face-0 { opacity: 0; }
.hm.bs-static .hm-card { --hh: .96; --ratio: .707; }
.hm[data-step="1"] .hm-card { --hh: .96; --ratio: .707; transform: rotate(2deg); }
.hm[data-step="2"] .hm-card { --hh: .96; --ratio: .707; transform: rotate(-2deg); }
.hm[data-step="3"] .hm-card { --hh: .96; --ratio: .706; transform: rotate(1.5deg); }
.hm[data-step="4"] .hm-card { --hh: .96; --ratio: .706; opacity: 0; transform: scale(.4) rotate(6deg); }
.hm[data-step] .hm-face { opacity: 0; transform: scale(1.06); }
.hm[data-step="0"] .hm-face-0, .hm[data-step="1"] .hm-face-1, .hm[data-step="2"] .hm-face-2, .hm[data-step="3"] .hm-face-3, .hm[data-step="4"] .hm-face-3 { opacity: 1; transform: none; }
/* scintille quando arriva il diploma */
.hm-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.hm-burst i { position: absolute; left: 0; top: 0; font-style: normal; font-size: 26px; color: var(--amber); opacity: 0; transform: translate(0, 0) scale(.3); }
.hm[data-step="3"] .hm-burst i { animation: hmBurst 1.1s var(--bs-ease) forwards; animation-delay: calc(.5s + var(--k) * .05s); }
.hm-burst i:nth-child(1) { --k: 0; --x: -230px; --y: -150px; } .hm-burst i:nth-child(2) { --k: 1; --x: 220px; --y: -170px; }
.hm-burst i:nth-child(3) { --k: 2; --x: -260px; --y: 20px; } .hm-burst i:nth-child(4) { --k: 3; --x: 260px; --y: 40px; }
.hm-burst i:nth-child(5) { --k: 4; --x: -170px; --y: 170px; } .hm-burst i:nth-child(6) { --k: 5; --x: 180px; --y: 160px; }
.hm-burst i:nth-child(7) { --k: 6; --x: 0; --y: -210px; }
@keyframes hmBurst { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(160deg); } }
/* le 12 tappe */
.hm-row { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; align-content: center; padding: 4% 6%; pointer-events: none; }
.hm-row > span { display: block; height: calc(var(--sh) * .27); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 16px rgba(27, 42, 85, .2); opacity: 0; transform: translateY(24px) scale(.7) rotate(-6deg); transition: opacity .5s ease, transform .7s var(--bs-ease); transition-delay: calc(var(--i) * .07s); }
.hm-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-row > .hm-secret { position: relative; background: var(--cream); border: 3px dashed var(--amber); display: flex; align-items: center; justify-content: center; }
.hm-secret b { position: absolute; left: 10px; top: 6px; font: 800 16px var(--f-body); color: var(--orange-ink); }
.hm-secret i { font: 800 clamp(28px, 4vw, 48px) var(--f-body); font-style: normal; color: var(--red); }
.hm[data-step="4"] .hm-row > span, .hm.bs-static .hm-row > span { opacity: 1; transform: none; }
.hm.bs-static .hm-row { display: none; }
@media (max-width: 900px) { .hm-stage { --sh: clamp(240px, 40svh, 400px); } }
@media (prefers-reduced-motion: reduce) { .hm-burst, .hm-card, .hm-face, .hm-row > span { transition: none; animation: none; } }

/* ---------- Morphing (motore: static/js/morph.js) ---------- */
/* la pastiglia del selettore: niente fotografie dentro (si deformerebbero), il gruppo stesso è la pastiglia e scorre in orizzontale */
html.morphing::view-transition-old(cycle-pill), html.morphing::view-transition-new(cycle-pill) { display: none; }
html.morphing::view-transition-group(cycle-pill) { background: var(--grain) 0 0 / 160px, #fff; border: 1px solid rgba(217, 160, 70, .75); border-radius: 999px; box-shadow: 0 2px 8px rgba(27, 42, 85, .12); animation-duration: .4s; animation-timing-function: cubic-bezier(.3, 1.15, .45, 1); }
/* la pagina intera resta ferma: si muovono solo i contenitori con un nome */
html.morphing::view-transition-old(root), html.morphing::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* posizione e dimensione: una molla morbida con un lieve rimbalzo */
html.morphing::view-transition-group(*) { animation-duration: .45s; animation-timing-function: linear(0, .4 8%, .72 18%, .9 30%, .98 42%, 1.008 55%, 1 70%, 1); }
/* il contenuto che cambia davvero (classe morph-swap, messa dal motore su [data-morph]) esce sfocandosi e entra dal lato opposto;
   tutto il resto fa una dissolvenza semplice, così immagini e titoli che non cambiano restano fermi */
html.morphing::view-transition-old(.morph-swap) { animation: morph-out .14s ease both; mix-blend-mode: normal; }
html.morphing::view-transition-new(.morph-swap) { animation: morph-in .26s ease .05s both; mix-blend-mode: normal; }
@keyframes morph-out { to { opacity: 0; filter: blur(6px); transform: scale(.97); } }
@keyframes morph-in { from { opacity: 0; filter: blur(6px); transform: scale(1.03); } }
/* un pannello che compare o scompare (menu, risposta della FAQ): entra ed esce dal suo contenitore */
html.morphing::view-transition-new(*):only-child { animation: morph-scopri .45s linear(0, .4 8%, .72 18%, .9 30%, .98 42%, 1.008 55%, 1 70%, 1) both, hero-in .22s ease .03s both; mix-blend-mode: normal; }
html.morphing::view-transition-old(*):only-child { animation: morph-copri .45s linear(0, .4 8%, .72 18%, .9 30%, .98 42%, 1.008 55%, 1 70%, 1) both, hero-out .14s ease both; mix-blend-mode: normal; }
/* si scopre dall'alto con la stessa molla del contenitore che cresce: il bordo del ritaglio viaggia insieme al fondo della scheda */
@keyframes morph-scopri { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes morph-copri { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
/* il contenitore stesso (morph-box): la fotografia contiene solo sfondo e bordo, quindi segue il gruppo stirandosi. Il bordo cresce con la scheda */
html.morphing::view-transition-old(.morph-box), html.morphing::view-transition-new(.morph-box) { width: 100%; height: 100%; object-fit: fill; }
/* un pezzo che cambia misura (morph-clip): il gruppo lo ritaglia, il contenuto si scopre mentre il gruppo cresce */
html.morphing::view-transition-group(.morph-clip) { overflow: clip; }
html.morphing::view-transition-old(.morph-clip), html.morphing::view-transition-new(.morph-clip) { height: auto; }
html.morphing::view-transition-old(.morph-clip) { animation: hero-out .12s ease both; mix-blend-mode: normal; }
html.morphing::view-transition-new(.morph-clip) { animation: hero-in .2s ease .04s both; mix-blend-mode: normal; }
/* la barra fissa: ferma, sopra a tutto */
html.morphing::view-transition-group(.morph-top) { animation: none; z-index: 5; }
html.morphing::view-transition-old(.morph-top) { display: none; }
html.morphing::view-transition-new(.morph-top) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .cycle.has-pill .cycle-pill { transition: none; } }
@media (prefers-reduced-motion: reduce) { html.morphing::view-transition-group(*), html.morphing::view-transition-old(*), html.morphing::view-transition-new(*) { animation: none; } }

/* ---------- Mappa: la scheda della tappa (il pin si trasforma in scheda, motore Morph hero) ---------- */
.m-schede { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.m-schede[hidden], .m-scheda[hidden] { display: none; }
.m-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(14, 24, 56, .55); cursor: default; }
.m-schede:not([hidden]) .m-scrim { view-transition-name: m-scrim; }
.m-scheda { position: relative; width: min(340px, 100%); max-height: 88vh; max-height: 88svh; overflow: auto; background: var(--white); border-radius: 24px; box-shadow: 0 30px 60px rgba(14, 24, 56, .45); }
.m-scheda .card { border-radius: 24px; }
.m-scheda-x { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy); font: 800 24px/1 var(--f-body); cursor: pointer; box-shadow: 0 2px 8px rgba(14, 24, 56, .25); }
.m-scheda-x:hover { background: var(--white); color: var(--red); }
.mp.is-aperto b { visibility: hidden; }
/* il pin diventa scheda: il gruppo "hero" è il contenitore bianco che cresce (o rimpicciolisce), con gli angoli arrotondati (un cerchio a 40px, una scheda a pieno formato) e le due immagini si dissolvono una nell'altra */
html.morphing::view-transition-group(hero) { background: var(--hero-bg, var(--white)); border-radius: 24px; overflow: clip; box-shadow: 0 30px 60px rgba(14, 24, 56, .45); animation-duration: .48s; }
html.morphing::view-transition-old(hero) { animation: hero-out .1s ease both; mix-blend-mode: normal; }
html.morphing::view-transition-new(hero) { animation: hero-in .26s ease .07s both; mix-blend-mode: normal; }
@keyframes hero-out { to { opacity: 0; } }
@keyframes hero-in { from { opacity: 0; } }
html.morphing::view-transition-old(m-scrim), html.morphing::view-transition-new(m-scrim) { animation-name: none; mix-blend-mode: normal; }
html.morphing::view-transition-old(m-scrim):only-child { animation: hero-out .2s ease both; }
html.morphing::view-transition-new(m-scrim):only-child { animation: hero-in .26s ease both; }
@media (prefers-reduced-motion: reduce) { html.morphing::view-transition-group(hero), html.morphing::view-transition-old(hero), html.morphing::view-transition-new(hero) { animation: none; } }

/* ---------- Mappa: la camera con zoom esponenziale ----------
   Lo zoom naturale è esponenziale: scala k^zt (non lineare). Lo calcola mappa.js e lo anima con la Web Animations API:
   36 keyframe di transform (e del bordo sfumato) che il browser esegue sulla GPU, senza ricalcolare gli stili a ogni
   fotogramma (con una proprietà CSS animata il Mac del cliente andava a scatti). Con la classe .cam-js le vecchie
   transizioni lineari sono spente; senza JavaScript restano quelle di riserva più in alto.
   Il continente resta ancorato (traslazione proporzionale a 1 - 1/scala), il primo piano ha la stessa formula divisa per k
   e il suo bordo sfumato dipende dalla scala reale: finché è più piccolo dello schermo non si vede il rettangolo. */
.cam-js .m-img, .cam-js .mz-hit { transition: none; }
/* il bordo sfumato è una maschera FISSA (niente proprietà animate: Safari non le aggiorna e rifà il disegno a ogni fotogramma);
   a fine apertura la classe .pieno la toglie, perché il continente riempie lo schermo */
.cam-js .m-cont { --mf: 12%; }
.cam-js .m-cont.pieno { -webkit-mask-image: none; mask-image: none; }
.cam-js .m-cont { transform-origin: 50% 50%; transform: translate(calc(var(--ox, 50%) - 50%), calc(var(--oy, 50%) - 50%)) scale(var(--ck, 1)); }
.cam-js .m-cont.is-on { transform: none; }
.cam-js .m-layer { transition: opacity .5s ease .5s, visibility 0s linear 1.1s; }
.cam-js .m-layer.is-on { transition: opacity .6s ease .2s, visibility 0s linear 0s; }
.cam-js .m-layer[data-layer="mondo"] { transition: opacity 0s linear 1.3s, visibility 0s linear 1.3s; }
.cam-js .m-layer[data-layer="mondo"].is-on { transition: opacity .2s ease 0s, visibility 0s linear 0s; }
/* le nuvole: la maschera che le "apriva" era animata su ogni nuvola (~13 per continente) a ogni fotogramma sul thread principale.
   Ora resta fissa e sfumata; si muovono solo translate e scale (sulla GPU). */
.cam-js .m-cont .m-nuvola, .cam-js .m-cont.is-on .m-nuvola { --cf: 72%; transition: translate 1.5s cubic-bezier(.2, .75, .25, 1) .45s, scale 1.5s cubic-bezier(.2, .75, .25, 1) .45s; }
.cam-js .m-cont:not(.is-on) .m-nuvola { transition-delay: 0s; transition-duration: .9s; }
/* durante lo zoom le decorazioni che non servono si fermano: meno lavoro per la GPU */
.zooming .m-nuvola, .zooming .mp.is-now b, .zooming .mz-pin, .zooming .mz-pin::after, .zooming .voya img { animation-play-state: paused; }
.zooming .mz-tag { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* le nuvole hanno tagli netti sui bordi del loro rettangolo: li sfumo sempre, oltre alla maschera che le apre */
.m-cont .m-nuvola {
  -webkit-mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 var(--cf), transparent calc(var(--cf) + 24%)), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: radial-gradient(ellipse farthest-corner at 50% 50%, #000 var(--cf), transparent calc(var(--cf) + 24%)), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect, intersect; }

/* regalo e quaderno singolo: due proposte secondarie affiancate */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.extra { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 18px; padding: 18px 20px; background: var(--white); border: 2px dashed var(--line); border-radius: 22px; }
.extra-gift { border-color: var(--amber); }
.extra img { width: 72px; height: auto; border-radius: 8px; }
.extra b { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.extra p { margin: 4px 0 0; color: var(--navy-ink); font-size: 15px; }
.extra .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } }

.plus-base { margin-top: 4px; color: var(--navy-ink); }

/* Abbonati: scheda corta e aspirazionale + tabella di confronto */
.pricing { padding-top: clamp(28px, 5vh, 56px); }
.plans-head { margin-bottom: 8px; }
.plans-head .h2 { margin-top: 4px; }
/* scadenza vera, prima della partenza: una riga sotto il titolo, compare solo finché Voya non è partita (build) */
.plans-scadenza { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 0; max-width: 640px; color: var(--orange-ink); font-weight: 800; font-size: 17px; line-height: 1.35; text-align: center; text-wrap: balance; }
.plans-scadenza .icon { flex-shrink: 0; }
.plan-promise { margin: -6px 0 0; color: var(--navy-ink); font-size: 17px; line-height: 1.45; }
.plan .plan-img { height: 170px; align-self: center; }
.plan .checks { margin: 6px 0 12px; }
.compare { padding-top: 8px; }
.compare .h3 { margin-bottom: 18px; }
.cmp { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp thead th { font: 800 14px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-ink); }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--navy); }
.cmp .is-best { background: var(--peach); }
.cmp thead .is-best { color: var(--red); border-radius: 14px 14px 0 0; }
.cmp-yes svg { color: #2F7A2A; }
.cmp-no svg { color: #B9B2A3; }
@media (max-width: 560px) { .cmp th, .cmp td { padding: 12px 6px; font-size: 15px; } .cmp thead th { font-size: 12px; } }

/* Regala: elementi comuni detti una volta sola, passaggi in riga, note leggibili */
.steps-line { gap: 20px 40px; }
.steps-line .step { background: none; padding: 0 0 0 58px; min-height: 44px; gap: 4px; }
.steps-line .step-n { top: 0; left: 0; }
.steps-line .step-ico { display: none; }
.steps-line .step h3 { font-size: 21px; }
.gift-note, .box .small.muted { font-size: 16px; color: var(--navy-ink); opacity: .85; }

/* ---------- Morph tra pagine: la copertina della scheda diventa la cartolina della pagina tappa ---------- */
/* Solo dove il browser lo supporta (Chrome/Edge/Safari recenti); altrove la navigazione resta normale. Il nome "tappa"
   sta su un solo elemento per pagina: sull'uscita lo mette morph.js sulla copertina cliccata, sull'arrivo è sulla cartolina. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.stop-hero .postcard img { view-transition-name: tappa; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(tappa) { animation-duration: .55s; animation-timing-function: linear(0, .4 8%, .72 18%, .9 30%, .98 42%, 1.008 55%, 1 70%, 1); overflow: clip; border-radius: 6px; }
::view-transition-old(tappa), ::view-transition-new(tappa) { height: 100%; object-fit: cover; mix-blend-mode: normal; }
html.lang-vt::view-transition-old(root) { animation: morph-out .18s ease both; mix-blend-mode: normal; }
html.lang-vt::view-transition-new(root) { animation: morph-in .3s ease .04s both; mix-blend-mode: normal; }
html.lang-vt::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, 1.05, .45, 1); }
html.lang-vt::view-transition-old(*):not(:only-child), html.lang-vt::view-transition-new(*):not(:only-child) { mix-blend-mode: normal; }
html.lang-vt::view-transition-old(l-h1), html.lang-vt::view-transition-old(l-lead) { animation: morph-out .18s ease both; }
html.lang-vt::view-transition-new(l-h1), html.lang-vt::view-transition-new(l-lead) { animation: morph-in .28s ease .07s both; }

/* "Tutto quello che include": la scheda del piano si allarga in morphing (details + Morph) */
.plan-more { border-top: 1px solid var(--line); }
.plan-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 4px; min-height: 48px; font-weight: 800; font-size: 14px; color: var(--navy); }
.plan-more > summary::-webkit-details-marker { display: none; }
.plan-more > summary:hover { color: var(--red); }
.plan-more .foot-plus { color: var(--red); }
.plan-more[open] .foot-plus::after { transform: rotate(0); }
.plan-all { padding: 10px 0 4px; }

/* telefono: il pannello "Contatti" sta nel flusso sotto la voce (a destra usciva dallo schermo) */
@media (max-width: 640px) {
  .foot-write-panel { position: relative; left: auto; top: auto; margin-top: 6px; min-width: 0; width: min(300px, calc(100vw - 48px)); padding: 16px; }
  .foot-write[open] summary { color: var(--amber-light); }
}

/* ---------- HOME: il viaggio di quest'anno, il passaporto come oggetto ---------- */
.trip { position: relative; background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(242, 165, 65, .16), transparent 70%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); overflow: hidden; }
.trip .pass-head .section-head { position: relative; padding-bottom: 22px; }
.trip .pass-head .section-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 1px; background: var(--amber-light); }
.trip .passport { background: none; box-shadow: none; overflow: visible; align-items: center; flex-wrap: nowrap; gap: 0; }
.trip .pass-cover.is-real { flex: 0 0 250px; max-width: 250px; padding: 0; background: none; border: 0; position: relative; z-index: 2; margin-right: -44px; transform: rotate(-4deg); transition: transform .6s cubic-bezier(.3, 1.2, .45, 1); filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .5)); }
.trip .pass-cover.is-real img { width: 100%; max-width: none; height: auto; max-height: none; border-radius: 10px; display: block; }
.trip .passport:hover .pass-cover.is-real { transform: rotate(-2deg) translateY(-6px); }
.trip .pass-page { position: relative; flex: 1 1 auto; padding: 38px 36px 34px 74px; border-radius: 18px; background: var(--grain) 0 0 / 160px, linear-gradient(180deg, #FCF3DD, #F6E7C6); border: 1px solid rgba(217, 160, 70, .8); box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 7px #FCF3DD, inset 0 0 0 8px rgba(217, 160, 70, .45); }
.trip .pass-count { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }
.trip .pass-count b { font-size: 26px; letter-spacing: 0; margin: 0; }
.trip .pass-count::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217, 160, 70, .8), transparent); }
.trip .slots { gap: 26px 12px; margin-top: 8px; }
.trip .slot { gap: 10px; }
.trip .perf { width: 90px; }
.trip .perf.empty { border: 1.5px dashed rgba(176, 128, 52, .55); background: rgba(255, 255, 255, .4); border-radius: 8px; transition: transform .35s cubic-bezier(.3, 1.3, .45, 1), box-shadow .35s ease, background .3s; }
.trip .perf.empty span { font-size: 30px; color: rgba(176, 128, 52, .7); }
.trip .slot b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); font-weight: 800; }
.trip .slot small { display: none; }
.trip .slot:hover .perf.empty { transform: translateY(-5px) rotate(-1.5deg); background: rgba(255, 255, 255, .7); box-shadow: 0 10px 18px rgba(27, 42, 85, .14); }
.trip .slot.is-next .perf.empty { border-style: solid; border-color: var(--amber); background: rgba(242, 165, 65, .18); animation: trip-glow 3.2s ease-in-out infinite; }
.trip .slot.is-next .perf.empty span { color: var(--orange); }
@keyframes trip-glow { 0%, 100% { box-shadow: 0 0 0 5px rgba(242, 165, 65, .12), 0 0 14px rgba(242, 165, 65, .3); } 50% { box-shadow: 0 0 0 8px rgba(242, 165, 65, .18), 0 0 30px rgba(242, 165, 65, .6); } }
.trip.is-armed .passport { opacity: 0; transform: translateY(26px); }
.trip.is-armed .slot { opacity: 0; transform: translateY(18px) scale(.94); }
.trip.is-in .passport { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.trip.is-in .slot { opacity: 1; transform: none; transition: opacity .6s ease calc(.35s + var(--i, 0) * 70ms), transform .7s cubic-bezier(.3, 1.2, .45, 1) calc(.35s + var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .trip .slot.is-next .perf.empty { animation: none; } }
@media (max-width: 900px) {
  .trip .passport { flex-direction: column; }
  .trip .pass-cover.is-real { flex: 0 0 auto; width: 128px; max-width: 128px; margin: 0 0 -26px; transform: rotate(-3deg); align-self: flex-start; margin-left: 14px; }
  .trip .pass-page { width: 100%; padding: 44px 18px 26px; }
  .trip .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .trip .perf { width: 76px; }
}

/* ---------- Letter Club (pagina «Come funziona»): tre cose che lo rendono un club ---------- */
.lc-hero .kicker:empty { display: none; }
.lc-hero .section-head { flex: 1 1 360px; }
.lc-hero-art { flex: 0 1 400px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lc-hero-art > img { width: 100%; height: auto; border-radius: 22px; border: 6px solid #fff; box-shadow: 0 24px 40px rgba(27, 42, 85, .24); transform: rotate(2deg); }
.lc-rows .wrap { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); }
.lc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); max-width: 1040px; margin: 0 auto; width: 100%; }
.lc-row.is-flip .lc-fig { order: 2; }
.lc-txt .h2 { margin-bottom: 14px; text-wrap: balance; }
.lc-txt .lead { max-width: 44ch; }
.lc-fig { display: grid; place-items: center; }
.lc-env { position: relative; width: min(100%, 470px); aspect-ratio: 606 / 414; transform: rotate(-3deg); filter: drop-shadow(0 22px 24px rgba(27, 42, 85, .28)); }
.lc-env > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; }
.lc-env .bx-nome { transform: rotate(-1.5deg); font-size: calc(min(46px, 9vw) * var(--nz, 1)); }
.lc-pdf { position: relative; display: flex; justify-content: center; align-items: flex-end; width: min(100%, 420px); height: 300px; }
.lc-pdf img { position: absolute; bottom: 0; height: 100%; width: auto; border-radius: 6px; filter: drop-shadow(0 12px 16px rgba(27, 42, 85, .25)); }
.lc-pdf-a { left: calc(50% - 175px); transform: rotate(-5deg); }
.lc-pdf-b { left: calc(50% - 20px); transform: rotate(5deg); height: 92% !important; }
.lc-pdf .pdf-tag { position: absolute; right: 2%; bottom: -8px; }
.lc-card { position: relative; display: block; width: min(100%, 470px); aspect-ratio: 1000 / 665; perspective: 1600px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lc-card-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotate(-3deg); transition: transform .9s cubic-bezier(.3, 1.15, .4, 1); }
.lc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 30px -8px rgba(14, 24, 56, .35); }
.lc-card-b { transform: rotateY(180deg); }
.lc-card input:checked + .lc-card-in { transform: rotate(2deg) rotateY(180deg); }
@media (hover: hover) { .lc-card:hover .lc-card-in { transform: rotate(-1deg) translateY(-6px); } .lc-card:hover input:checked + .lc-card-in { transform: rotate(1deg) translateY(-6px) rotateY(180deg); } }
.lc-card:active .lc-card-in { transform: rotate(-2deg) scale(.97); transition-duration: .12s; }
.lc-card:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 10px; border-radius: 12px; }
.lc-fig:has(.lc-card) { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lc-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 800; color: var(--orange-ink); }
.lc-pass { width: min(100%, 480px); height: auto; transform: rotate(-4deg); filter: drop-shadow(0 16px 20px rgba(27, 42, 85, .25)); }
/* pioggia di adesivi intorno all'invito finale */
.lc-end { position: relative; overflow: hidden; }
.lc-end .wrap { position: relative; z-index: 1; }
.lc-rain { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* niente filter: Safari lascia scie grigie sugli elementi con drop-shadow che si muovono; ogni adesivo ha il suo strato (translateZ) */
.lc-rain { contain: paint; }
.lc-rain img { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; transform: translateZ(0) rotate(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.lc-rain img:active, .lc-rain img.is-presa { cursor: grabbing; transform: translateZ(0) rotate(var(--r)) scale(1.1); }
.lc-end.is-armed .lc-rain img { visibility: hidden; }
@media (max-width: 1100px) { .lc-rain img { width: calc(var(--w) * .72); } }
@media (max-width: 820px) {
  .lc-end { padding-top: 120px; padding-bottom: 120px; }
  .lc-rain img { left: var(--mx); top: var(--my); width: 58px; }
  .lc-rain img.no-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lc-card-in { transition: none; } }
.lc-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.lc-quando { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--navy-ink); }
.lc-quando .icon { width: 18px; height: 18px; color: var(--orange-ink); flex: none; }
.lc-regalo { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--navy-ink); max-width: 56ch; }
.lc-regalo b { color: var(--navy); }
.lc-regalo a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red); text-decoration: none; white-space: nowrap; }
.lc-regalo a:hover { text-decoration: underline; }
.lc-regalo a:active { opacity: .7; }
.lc-regalo .icon { width: 15px; height: 15px; }
.lc-pratica { padding-top: 0; }
.lc-pratica .wrap { max-width: 1040px; }
.lc-pratica .h2 { margin-bottom: 22px; }
.lc-qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 40px; margin: 0; }
.lc-qa > div { padding-top: 16px; border-top: 2px solid var(--amber); }
.lc-qa dt { font: 600 22px/1.2 var(--f-display); color: var(--navy); margin-bottom: 8px; }
.lc-qa dd { margin: 0; color: var(--navy-ink); line-height: 1.55; }
.lc-qa dd b { display: block; margin-top: 6px; color: var(--orange-ink); font-weight: 800; }
@media (max-width: 820px) { .lc-qa { grid-template-columns: 1fr; } }
.lc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 0; font-weight: 800; }
.lc-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--red); text-decoration: none; }
.lc-links a:hover { text-decoration: underline; }
.lc-links .icon { width: 16px; height: 16px; }
.lc-end-box { display: flex; align-items: center; gap: 36px; max-width: 880px; margin: 0 auto; padding: 36px 44px; border: 2px solid var(--amber); border-radius: 30px; background: linear-gradient(135deg, var(--peach), var(--white)); }
.lc-end-box .h2 { margin-bottom: 8px; }
.lc-end-box .btn-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .lc-row { grid-template-columns: 1fr; gap: 28px; } .lc-row.is-flip .lc-fig { order: 0; } .lc-end-box { padding: 28px 22px; } }

/* prenotazione: lo sconto per chi prenota, ben visibile (prezzi.json → fondatori) */
.ck-fond { display: flex; align-items: center; gap: 20px; max-width: 640px; margin-top: 22px; padding: 16px 22px 16px 16px; background: var(--peach); border: 2px dashed var(--amber); border-radius: 22px; }
.ck-fond-b { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 999px; background: var(--red); color: var(--white); font: 700 30px/1 var(--f-display); letter-spacing: -.02em; transform: rotate(-8deg); box-shadow: 0 10px 18px rgba(200, 50, 43, .3); }
.ck-fond p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-fond b { font: 600 21px/1.2 var(--f-display); color: var(--navy); }
.ck-fond p span { color: var(--navy-ink); line-height: 1.45; }
.ck-fond.is-centro { margin: 22px auto 0; text-align: left; }
.is-natale .ck-fond { box-shadow: 0 12px 26px rgba(80, 10, 10, .25); }
@media (max-width: 520px) { .ck-fond { gap: 14px; padding: 14px; } .ck-fond-b { width: 70px; height: 70px; font-size: 22px; } .ck-fond b { font-size: 18px; } }

/* codice personale: «Hai un codice?» e le sorprese */
.ck-codice { margin: 4px 0 6px; border: 1.5px dashed var(--amber); border-radius: 18px; background: var(--peach); }
.ck-codice > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 18px; }
.ck-codice > summary::-webkit-details-marker { display: none; }
.ck-codice > summary::after { content: '+'; font: 700 22px/1 var(--f-display); color: var(--orange-ink); transition: transform .3s var(--pronto, ease); }
.ck-codice[open] > summary::after { transform: rotate(45deg); }
.ck-codice > summary:active { transform: scale(.99); }
.ck-codice-in { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.ck-codice-campi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.ck-codice-campi input[name=codice] { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.ck-codice-vai { align-self: flex-start; }
.ck-codice-vai .icon, .ck-codice-vai svg { width: 18px; height: 18px; }
.ck-sorprese { position: relative; margin: 4px 0 8px; padding: 22px 22px 18px; border-radius: 22px; background: linear-gradient(135deg, var(--peach), var(--white)); border: 2px solid var(--amber); box-shadow: 0 16px 30px rgba(217, 160, 70, .22); }
.ck-sorprese-b { position: absolute; top: -18px; right: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--red); color: var(--white); box-shadow: 0 8px 16px rgba(200, 50, 43, .3); transform: rotate(8deg); }
.ck-sorprese-b svg { width: 22px; height: 22px; }
.ck-sorprese-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.ck-sorprese h3 { margin: 4px 0 10px; font: 700 26px/1.15 var(--f-display); color: var(--navy); }
.ck-sorprese blockquote { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--white); font: 700 21px/1.3 var(--f-hand); color: var(--navy-ink); }
.ck-sorprese .ck-ricevi { margin: 0 0 10px; }
.ck-sorprese-p { margin: 6px 0 10px; font-weight: 700; color: var(--navy); }
.ck-sorprese .btn { margin: 2px 0 10px; }
.ck-sorprese [data-ck=cod-togli] { display: inline; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-sorprese [data-ck=cod-togli]:active { opacity: .6; }
.ck-riga.ck-omaggio b, .ck-riga b.ck-gratis { color: var(--green, #2E7D4F); }
@media (max-width: 560px) { .ck-codice-campi { grid-template-columns: 1fr; } }

/* ---------- Ordine: modulo + pagamento incorporato ---------- */
.ck { padding-top: 40px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.ck-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 18px 40px rgba(27, 42, 85, .08); }
.ck-card[hidden] { display: none; }
.ck-form-card form { display: flex; flex-direction: column; gap: 20px; }
.ck-campo { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.ck-campo[hidden] { display: none; }
.ck-campo > span, .ck-campo > legend { font-weight: 800; font-size: 15px; padding: 0; }
.ck-campo input:not([type="radio"]), .ck-campo textarea { width: 100%; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 16px; min-height: 48px; font: 600 16px var(--f-body); background: var(--white); color: var(--navy); }
.ck-campo textarea { resize: vertical; min-height: 110px; }
.ck-campo input:focus-visible, .ck-campo textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ck-campo small { color: var(--navy-ink); font-weight: 600; font-size: 13px; opacity: .8; }
.ck-scelta { flex-direction: row; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ck-scelta legend { flex-basis: 100%; margin-bottom: 4px; }
.ck-scelta label { position: relative; cursor: pointer; }
.ck-scelta input { position: absolute; opacity: 0; inset: 0; }
.ck-scelta span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--cream); transition: none; }
.ck-scelta input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ck-scelta input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.ck-consenso { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 4px 0; font-weight: 600; font-size: 14px; }
.ck-consenso input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.ck-errore { color: var(--red); font-weight: 800; font-size: 14px; min-height: 18px; margin: 0; }
.ck-vai { align-self: flex-start; }
.ck-vai[disabled] { opacity: .6; pointer-events: none; }
/* il riepilogo è un foglio di carta: stessa grana e filo dorato della barra */
.ck-riepilogo { position: sticky; top: 96px; background: var(--grain) 0 0 / 160px, var(--cream); border: 1px solid rgba(217, 160, 70, .75); border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 14px 30px rgba(27, 42, 85, .1); display: flex; flex-direction: column; gap: 10px; }
.ck-rt { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin-bottom: 4px; }
/* riepilogo completo: cosa si compra (immagine, nome, promessa), prezzo al mese, vantaggi, conto */
.ck-testa { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; }
.ck-testa img { width: 112px; flex: 0 0 auto; border-radius: 10px; filter: drop-shadow(0 8px 14px rgba(27, 42, 85, .18)); }
.ck-testa img.ck-tappa-img { width: 74px; border-radius: 6px; rotate: -3deg; }
.ck-testa .ck-rt { margin: 0; line-height: 1.15; }
.ck-promessa { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--navy-ink); }
.ck-prezzo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.ck-prezzo b { font: 700 38px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ck-prezzo span { font-weight: 800; font-size: 16px; color: var(--navy-ink); }
.ck-prezzo em { align-self: center; font-style: normal; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--red); color: var(--white); }
.ck-prezzo-sub { margin-top: -2px; font-size: 14px; font-weight: 700; color: var(--brown); }
.ck-sez { margin-top: 10px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.ck-prima { margin-left: 6px; font: 600 15px var(--f-body); color: rgba(46, 59, 99, .55); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(200, 50, 43, .7); font-variant-numeric: tabular-nums; }
.ck-riga .ck-prima { margin: 0 4px 0 0; font-size: 14px; }
.ck-sconto { font-size: 15px; color: var(--red); }
.ck-ricevi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ck-ricevi li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--navy-ink); }
.ck-ricevi svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: #2E8B57; }
.ck-conto { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed rgba(176, 128, 52, .55); }
.ck-annuale { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: 6px; padding: 12px 16px; border: 2px dashed var(--red); border-radius: 16px; background: var(--peach); color: var(--navy); font: 600 14px/1.4 var(--f-body); text-align: left; cursor: pointer; transition: background-color .2s, transform .15s; }
.ck-annuale b { color: var(--red); font-weight: 800; }
@media (hover: hover) { .ck-annuale:hover { background: #FFE7C4; } }
.ck-annuale:active { transform: scale(.98); transition-duration: .08s; }
.ck-riga { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 700; }
.ck-riga b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-prodotto { padding-bottom: 12px; border-bottom: 1px dashed rgba(176, 128, 52, .55); }
.ck-totale { font-size: 20px; padding-top: 6px; }
.ck-totale small { font-size: 13px; font-weight: 700; color: var(--brown); }
.ck-nota { font-size: 14px; font-weight: 600; color: var(--navy-ink); margin: 4px 0 0; }
.ck-stripe { font-size: 13px; opacity: .8; }
.ck-cambia { font-weight: 800; font-size: 14px; margin-top: 6px; }
.ck-faq { display: block; font-weight: 600; margin-top: 4px; }
.ck-pay { padding: 20px 20px 28px; }
/* registro dei viaggiatori (vendite chiuse): la scheda del modulo diventa la conferma */
.ck-fatto { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 36px 28px; }
.ck-fatto[hidden] { display: none; }
.ck-fatto img { width: 150px; height: auto; }
.ck-fatto h2 { margin: 0; overflow-wrap: anywhere; }
.ck-fatto p { margin: 0 0 8px; max-width: 34ch; color: var(--navy-ink); }
.ck-fatto:focus { outline: none; }
.ck-passi { margin: 4px 0 10px; padding-left: 22px; display: grid; gap: 8px; font-weight: 600; color: var(--navy); }
.ck-reg-nota { font-weight: 700; color: var(--navy); }
.ck-indietro { margin-bottom: 14px; }
.ck-riepilogo.ck-compatto { display: none; }
.ck-grid:has(.ck-compatto) { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ck-grid { grid-template-columns: 1fr; } .ck-riepilogo { position: static; order: -1; } .ck-card { padding: 22px 18px; } }
.ck-riepilogo[hidden], .ck-campo[hidden], .ck-card[hidden] { display: none !important; }
.ck .section-head { margin-bottom: 28px; }
.buy-mail > div { display: flex; flex-direction: column; gap: 6px; }

.prose h2 { font-size: 22px; margin-top: 18px; }
.segnaposto { background: var(--peach); border-radius: 6px; padding: 0 4px; color: inherit; }

/* ---------- Tatto: ogni cosa cliccabile risponde al puntatore e alla pressione ---------- */
:root { --pronto: cubic-bezier(.2, .8, .2, 1); }
.btn { transition: transform .35s var(--pronto), background-color .15s ease, box-shadow .35s var(--pronto); }
.btn:active, .head-cta:active, .cycle-b:active, .lang:active, .foot-copy:active, .foot-top:active { transform: scale(.96); transition-duration: .08s; }
.faq-q > summary, .plan-more > summary { transition: color .15s ease, transform .3s var(--pronto); }
.faq-q > summary:active, .plan-more > summary:active { transform: scale(.985); transition-duration: .08s; }
.cycle-b { transition: background-color .18s ease, color .18s ease, transform .3s var(--pronto); }
.card { transition: transform .45s var(--pronto), box-shadow .45s var(--pronto); }
.card-media img { transition: transform .7s var(--pronto); }
.card:has(a):active { transform: scale(.98); transition-duration: .1s; }
.plan { transition: transform .45s var(--pronto), box-shadow .45s var(--pronto); }
/* luce che segue il puntatore su schede e piani (coordinate da tatto.js) */
.plan::before, .card:has(a)::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 165, 65, .13), transparent 70%); }
@media (hover: hover) {
  .btn:hover { box-shadow: 0 10px 22px rgba(27, 42, 85, .16); }
  .card:has(a):hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(14, 24, 56, .18); }
  .card:has(a):hover .card-media img { transform: scale(1.05); }
  .plan:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(27, 42, 85, .12); }
  .plan-main:hover { box-shadow: 0 24px 48px rgba(200, 50, 43, .18); }
  .plan:hover::before, .card:has(a):hover::before { opacity: 1; }
}
/* durante una trasformazione le schede non devono anche sollevarsi: una cosa alla volta */
html.morphing .plan, html.morphing .card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .card-media img, .plan, .cycle-b, .faq-q > summary, .plan-more > summary { transition: none; }
  .btn:active, .head-cta:active, .cycle-b:active, .lang:active, .foot-copy:active, .foot-top:active, .card:has(a):active, .faq-q > summary:active, .plan-more > summary:active,
  .card:has(a):hover, .plan:hover, .card:has(a):hover .card-media img { transform: none; }
}

/* ---------- Tappe singole (pagina Abbonati) ---------- */
.sing-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 26px auto 0; }
.sing { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--white); border: 2px solid var(--line); border-radius: 22px; }
.sing-nome { display: flex; flex-direction: column; }
.sing-nome b { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.sing-nome span { color: var(--navy-ink); font-size: 14px; }
.sing-sc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.sing-sc .btn { flex-direction: column; gap: 2px; min-height: 56px; line-height: 1.15; }
.sing-sc .btn small { font: 700 12px var(--f-body); opacity: .85; }
.sing-prima { text-align: center; max-width: 620px; margin: 18px auto 0; color: var(--navy-ink); font-size: 17px; }
@media (max-width: 720px) { .sing { grid-template-columns: 1fr; } .sing-sc { justify-content: stretch; } .sing-sc .btn { flex: 1 1 100%; } }

/* ---------- Busta che si apre (pagina Abbonati): busta chiusa → pannello a tutto schermo, pezzi che escono uno a uno ---------- */
.bx-sec .section-head { margin-bottom: 26px; }
.bx-closed { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0 auto; padding: 8px; border: 0; background: none; cursor: pointer; width: min(520px, 100%); font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
/* busta a due facce che si può girare: davanti l'indirizzo, dietro la pattina. I ritagli sono della stessa foto (busta/lapponia-kit.webp) */
.bx-env { position: relative; display: block; width: 100%; aspect-ratio: 540 / 374; perspective: 1600px; transform-style: preserve-3d; transition: transform .55s var(--pronto); }
.bx-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 28px -6px rgba(14, 24, 56, .34); transition: box-shadow .55s var(--pronto); } /* niente filter sul contenitore: appiattirebbe il 3D e si vedrebbe il dietro a specchio */
.bx-retro { transform: rotateY(180deg); }
.bx-hint { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--white); border: 1px solid rgba(217, 160, 70, .75); font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px rgba(27, 42, 85, .1); transition: transform .3s var(--pronto), box-shadow .3s var(--pronto); }
.bx-hint::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--red); animation: bx-batte 1.8s ease-in-out infinite; }
@keyframes bx-batte { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .35; } }
@media (hover: hover) {
  .bx-closed:hover .bx-env { transform: translateY(-8px) rotateY(-9deg) rotateX(3deg); }
  .bx-closed:hover .bx-face { box-shadow: 0 34px 36px -8px rgba(14, 24, 56, .36); }
  .bx-closed:hover .bx-hint { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27, 42, 85, .14); }
}
.bx-closed:active .bx-env { transform: scale(.97); transition-duration: .08s; }
.bx-closed:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; border-radius: 24px; }

/* il pannello: sopra a tutto, la pagina sotto sfuma (la sfocatura è dello scrim) */
.bx { position: fixed; inset: 0; z-index: 90; display: grid; }
.bx[hidden] { display: none; }
.bx-scrim { position: absolute; inset: 0; background: rgba(14, 24, 56, .52); animation: bx-vela .45s ease both; }
@keyframes bx-vela { from { opacity: 0; } }
/* la sfocatura è un livello a parte: entra solo a morphing finito (opacità) ed esce prima della chiusura, mai insieme al morphing */
.bx-blur { position: absolute; inset: 0; pointer-events: none; opacity: 0; -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); transition: opacity .45s ease; }
.bx-blur.is-on { opacity: 1; }
html.bx-lite .bx-scrim { background: rgba(14, 24, 56, .72); }
html.bx-lite .bx-blur { display: none; }
@media (prefers-reduced-transparency: reduce) { .bx-scrim { background: rgba(14, 24, 56, .72); } .bx-blur { display: none; } }
.bx-sheet { position: relative; margin: 14px; border-radius: 28px; overflow: auto; overscroll-behavior: contain; background: var(--grain) 0 0 / 160px, var(--sand); box-shadow: 0 40px 90px rgba(7, 12, 32, .5); padding: clamp(22px, 4vw, 48px); display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: minmax(280px, 5fr) 7fr; grid-template-areas: 'stage items' 'stage online'; align-content: center; }
.bx-sheet:focus { outline: none; }
.bx-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--white); color: var(--navy); font: 800 28px/1 var(--f-body); cursor: pointer; box-shadow: 0 2px 10px rgba(27, 42, 85, .2); transition: transform .3s var(--pronto), color .15s ease; }
.bx-x:hover { color: var(--red); transform: rotate(90deg); }
.bx-x:active { transform: scale(.92); }
.bx-stage { grid-area: stage; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.bx-intro { display: flex; flex-direction: column; gap: 10px; }
.bx-env-open { width: min(440px, 100%); align-self: center; transition: none; }
.bx-lettera { width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 4px 8px rgba(27, 42, 85, .25); }
.bx-items { grid-area: items; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; }
.bx-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border: 2px solid var(--line); border-radius: 20px; }
.bx-pic { flex: 0 0 96px; height: 78px; display: flex; align-items: center; justify-content: center; }
.bx-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(27, 42, 85, .22)); }
.bx-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bx-txt b { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.bx-txt span { font-size: 13.5px; line-height: 1.35; color: var(--navy-ink); }
.bx-online { grid-area: online; }
.bx-online p { margin: 0; font-size: 15px; }
.bx-online .muted { display: block; font-weight: 600; opacity: .8; font-size: 13.5px; margin-top: 4px; }
@media (max-width: 900px) {
  .bx-sheet { grid-template-columns: 1fr; grid-template-areas: 'stage' 'items' 'online'; align-content: start; margin: 0; border-radius: 0; padding-top: 64px; }
  .bx-stage { gap: 18px; }
  .bx-env-open { width: min(300px, 80%); }
  .bx-items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bx-hint::before { animation: none; } .bx-scrim { animation: none; } .bx-env, .bx-hint, .bx-x { transition: none; } }

/* ---------- Altri modi per iniziare: regalo grande + tappa singola che si apre in morphing ---------- */
.alt-sec { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.alt-sec .section-head { margin-bottom: 30px; }
.alt-col { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 0 auto; }
.alt-regalo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 32px; padding: 28px 36px 28px 28px; background: linear-gradient(135deg, #FFF4DC, var(--white) 70%); border: 2px solid var(--amber); border-radius: 28px; }
.alt-regalo img { height: clamp(130px, 16vw, 190px); width: auto; margin: -8px 0; }
.alt-regalo h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }
.alt-regalo p { margin: 8px 0 0; color: var(--navy-ink); font-size: 17px; max-width: 46ch; }
.alt-tappa { background: var(--white); border: 2px solid var(--line); border-radius: 22px; }
.alt-tappa > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 20px; transition: background-color .15s ease, transform .3s var(--pronto); }
.alt-tappa > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .alt-tappa > summary:hover { background: var(--cream); } }
.alt-tappa > summary:active { transform: scale(.99); transition-duration: .08s; }
.alt-tappa > summary:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.alt-riga { display: flex; flex-direction: column; gap: 2px; }
.alt-riga b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.alt-riga small { font-size: 15px; font-weight: 600; color: var(--navy-ink); }
.alt-tappa .foot-plus { color: var(--red); width: 18px; height: 18px; }
.alt-tappa .foot-plus::before, .alt-tappa .foot-plus::after { height: 2px; }
.alt-tappa[open] .foot-plus::after { transform: rotate(0); }
.alt-corpo { padding: 4px 24px 24px; }
/* regalo sotto i piani (pagina Abbonati) */
:root { --gap-sez: clamp(56px, 7vw, 88px); }
.pricing { padding-bottom: var(--gap-sez); }
.bx-sec { padding: var(--gap-sez) 0; }
.regalo-sec { padding: var(--gap-sez) 0; }
.regalo-sec .alt-regalo { max-width: 880px; margin: 0 auto; }
.regalo-alt { text-align: center; margin: 18px 0 0; font-weight: 600; color: var(--navy-ink); }
.regalo-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red); text-decoration: none; }
.regalo-alt a:hover { text-decoration: underline; }
/* ---------- Negozio ---------- */
@media (max-width: 720px) { .alt-regalo { grid-template-columns: 1fr; justify-items: start; padding: 24px; } .alt-regalo img { height: 130px; margin: 0; } }
.btn.is-off { background: var(--sand); color: var(--navy-ink); border-color: transparent; cursor: default; box-shadow: none; pointer-events: none; }
@media (max-width: 760px) { .alt-formati { grid-template-columns: 1fr; } .alt-f { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; } .alt-vai .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .alt-f, .alt-tappa > summary { transition: none; } }

/* ---------- Pastiglia "Cosa c'è in ciascun viaggio" → pannello con la tabella ---------- */
.bx-centro { place-items: center; }
.bx-card { margin: 14px; width: min(900px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100svh - 28px); display: block; background: var(--grain) 0 0 / 160px, #fff; padding: clamp(24px, 4vw, 44px); }
.bx-card > h2 { margin: 0 44px 18px 0; }
.bx-card .cmp { max-width: none; }
@media (max-width: 640px) { .bx-card .cmp th, .bx-card .cmp td { padding: 11px 6px; } .bx-card .cmp { font-size: 15px; } }

/* Container transform pulito: le fotografie del contenitore (hero) NON si stirano. Restano alla loro misura naturale, al centro,
   e il gruppo (che cresce) le ritaglia: il contenuto si scopre invece di deformarsi. Meno pixel da scalare = più fluido. */
html.morphing::view-transition-old(.morph-hero), html.morphing::view-transition-new(.morph-hero) {
  inset: auto; left: 50%; top: 50%; width: auto; height: auto; max-width: none; transform: translate(-50%, -50%); }
/* pezzi condivisi (busta, titolo): volano con la molla; le due fotografie si fondono senza scatti */
html.morphing::view-transition-group(.morph-shared) { animation-duration: .5s; z-index: 3; }
html.morphing::view-transition-old(.morph-shared) { animation: hero-out .3s ease both; mix-blend-mode: normal; }
html.morphing::view-transition-new(.morph-shared) { animation: hero-in .3s ease both; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { html.morphing::view-transition-group(.morph-shared), html.morphing::view-transition-old(.morph-shared), html.morphing::view-transition-new(.morph-shared) { animation: none; } }
.bx-card > h2 { width: fit-content; } /* la scatola del titolo = il suo testo: il pezzo condiviso con la pastiglia non si stira */

/* ---------- Home "in viaggio": una cartolina dalla tappa (solo l'inizio della storia, mai l'indizio per la tappa dopo) ---------- */
.hero-art-now { position: relative; align-items: center; padding: 8px 0 34px; }
.viaggio-card { position: relative; width: min(100%, 500px); margin: 0 0 0 auto; transform: rotate(2deg); background: var(--white); padding: 11px; border-radius: 8px; box-shadow: 0 28px 56px rgba(27, 42, 85, .24), 0 2px 6px rgba(27, 42, 85, .08); transition: transform .5s var(--pronto, ease); }
@media (hover: hover) { .viaggio-card:hover { transform: rotate(.5deg) translateY(-4px); } }
/* il bordo "posta aerea" delle cartoline di Voya */
.vc-bordo { padding: 9px; border-radius: 4px; background: repeating-linear-gradient(135deg, #C8322B 0 13px, #fff 13px 26px, #2D4C9E 26px 39px, #fff 39px 52px); }
.vc-bordo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 0; border-radius: 2px; background: var(--white); }
.vc-didascalia { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 8px 4px 28%; }       /* a sinistra resta libero lo spazio per la volpe */
.vc-luogo { font-family: var(--f-hand); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1; color: var(--navy); }
.vc-paese { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8A4A0B; }
.hero-art-now .hero-fox { position: absolute; left: 0; bottom: 0; z-index: 2; width: 30%; max-width: 190px; margin: 0; }
@media (max-width: 760px) { .hero-art-now { padding-bottom: 40px; } .viaggio-card { margin: 0 auto; width: 100%; transform: rotate(1deg); } .hero-art-now .hero-fox { width: 28%; left: -2%; } }
@media (prefers-reduced-motion: reduce) { .viaggio-card { transition: none; } }
.stop-hero .viaggio-card { display: block; text-decoration: none; color: inherit; }
.stop-hero .viaggio-card .vc-bordo { display: block; } .stop-hero .viaggio-card .vc-bordo img { view-transition-name: tappa; }
.stop-hero .viaggio-card .vc-didascalia { display: flex; }
.buy-cover-crop { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 0; border-radius: 12px; }

/* pannello d'acquisto della tappa: uguale per tutte */
.buy-opts { display: flex; flex-direction: column; gap: 8px; }
.buy-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); color: var(--navy); text-decoration: none; transition: transform .25s var(--pronto, ease), border-color .15s ease, box-shadow .25s var(--pronto, ease); }
.buy-opt .bo-t { display: flex; flex-direction: column; gap: 2px; } .buy-opt b { font-weight: 800; font-size: 15px; line-height: 1.2; } .buy-opt small { font-size: 12.5px; font-weight: 600; color: var(--navy-ink); }
.buy-opt em { font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 20px; white-space: nowrap; }
@media (hover: hover) { a.buy-opt:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: 0 10px 22px rgba(27, 42, 85, .12); } }
a.buy-opt:active { transform: scale(.98); transition-duration: .08s; }
.buy-opt.is-best { background: var(--red); border-color: var(--red); color: var(--white); } .buy-opt.is-best small { color: var(--white); }
.buy-opt.is-off { background: var(--cream); border-style: dashed; color: var(--navy-ink); cursor: default; opacity: .8; }
.buy-mail-line { margin: 2px 0 0; text-align: center; font-size: 14px; font-weight: 800; } .buy-mail-line a { color: var(--red); text-decoration: none; } .buy-mail-line a:hover { text-decoration: underline; }
/* Payhip inietta uno stile verde sul suo pulsante: qui ripristiniamo l'aspetto delle altre opzioni */
a.buy-opt.payhip-buy-button { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; width: auto !important; padding: 12px 14px !important; margin: 0 !important; border: 2px solid var(--line) !important; border-radius: 16px !important; background: var(--white) !important; color: var(--navy) !important; font: inherit !important; text-align: left !important; text-shadow: none !important; box-shadow: none !important; line-height: 1.2 !important; }
a.buy-opt.payhip-buy-button b { font-weight: 800 !important; font-size: 15px !important; }
a.buy-opt.payhip-buy-button small { font-size: 12.5px !important; font-weight: 600 !important; color: var(--navy-ink) !important; }
a.buy-opt.payhip-buy-button em { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 20px !important; }
@media (hover: hover) { a.buy-opt.payhip-buy-button:hover { transform: translateY(-2px); border-color: var(--navy) !important; box-shadow: 0 10px 22px rgba(27, 42, 85, .12) !important; background: var(--white) !important; } }



/* ---------- Voya in viaggio: il ritratto vive in ogni livello della mappa; il motore (voya-viaggio.js) ne imposta posizione e immagine ---------- */
.mv { position: absolute; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; text-decoration: none; }
.mv.is-nascosto { visibility: hidden; }
.mv.in-moto { transition: left 20s linear, top 20s linear; }
.mv img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(14, 24, 56, .45)); animation: voya-fluttua 3.4s ease-in-out infinite; }
.mv em { position: absolute; left: 50%; bottom: 100%; translate: -50% 0; margin-bottom: 2px; font-style: normal; padding: 5px 12px; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 18px rgba(14, 24, 56, .4); animation: voya-fluttua 3.4s ease-in-out infinite; }
.mv-mondo { will-change: translate; width: clamp(38px, 3.6vw, 62px); }
.mv-mondo em { font-size: 11px; padding: 3px 9px; opacity: calc(1 - var(--w, 0) * 1.7); }
/* touch: niente cursore che lo sposti, quindi lo scostiamo di base per non coprire la targhetta del continente */
@media (hover: none) { .mv-mondo { translate: -12px -20px; } }
.mv-cont { pointer-events: auto; width: clamp(52px, 5.6vw, 96px); }
/* Voya ferma in una tappa uscita: anche sul mondo diventa un link alla pagina della tappa */
.mv-mondo.va-tappa { pointer-events: auto; cursor: pointer; }
.mv-mondo.va-tappa img, .mv-cont.va-tappa img { transition: scale .3s var(--pronto, ease); }   /* scale, non transform: transform e' gia' del fluttuare */
@media (hover: hover) { .mv-mondo.va-tappa:hover img { scale: 1.08; } }
.mv.va-tappa:active img { scale: .94; }
.mv-cont .mv-box { display: block; transition: transform .3s var(--pronto, ease); transform-origin: 50% 100%; }
@media (hover: hover) { .mv-cont:hover .mv-box { transform: scale(1.08); } }
.mv-cont:focus-visible .mv-box { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 16px; }
/* la didascalia della casa si vede solo finche' Voya e' a casa */
.mv-cap { display: none; position: absolute; right: calc(50% + clamp(26px, 2.8vw, 48px) + 6px); top: 55%; padding: 4px 11px; border-radius: 999px; background: rgba(14, 24, 56, .84); color: var(--cream); font-size: 12px; font-weight: 800; white-space: nowrap; }
.mv.a-casa .mv-cap { display: block; }
.zooming .mv img, .zooming .mv em { animation-play-state: paused; }
@media (max-width: 640px) { .mv-cap { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mv img, .mv em { animation: none; } .mv.in-moto { transition: none; } }
/* a casa, nel primo piano: niente scritta rossa (c'e' la didascalia) e il ritratto sta un po' staccato dalle tappe vicine */
.mv-cont.a-casa em { display: none; }
.mv-cont.a-casa { translate: -22px 12px; }

/* strumento di prova del viaggio (compare solo su localhost) */
.vl-dev { position: absolute; left: 16px; top: 16px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(14, 24, 56, .88); color: var(--cream); font-size: 13px; font-weight: 700; box-shadow: 0 8px 22px rgba(14, 24, 56, .4); }
.vl-dev button, .vl-dev select { font: inherit; color: var(--navy); background: var(--cream); border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.vl-dev input[type=range] { width: clamp(80px, 9vw, 130px); accent-color: var(--amber); }
.vl-dev output { min-width: 88px; text-align: center; }
@media (max-width: 700px) { .vl-dev { flex-wrap: wrap; border-radius: 18px; } }

/* fermo in una tappa: il ritratto sta sopra il pin, senza coprirne il numero */
.mv.in-sosta { translate: 0 -62%; }
.mv-cont.in-sosta { translate: 0 -58%; }

/* ---------- Il viaggio su telefono: invito a ruotare e schermo intero ---------- */
.m-ruota, .m-esci { display: none; }
.m-ruota:not([hidden]) { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; justify-content: center; padding: 4px 0 16px; color: var(--white); position: relative; z-index: 6; text-align: left; pointer-events: auto; }
.m-ruota p { flex: 1 1 200px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.m-ruota-ico { width: 40px; height: 40px; flex-shrink: 0; color: var(--amber-light); }
.m-esci:not([hidden]) { display: inline-flex; position: fixed; top: 10px; right: 10px; z-index: 1010; background: rgba(14, 24, 56, .72); color: var(--white); border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.m-esci:active { transform: scale(.96); transition-duration: .08s; }
.m-ruota .btn:active { transform: scale(.96); transition-duration: .08s; }
html.m-full, html.m-full body { overflow: hidden; }
.mappa.schermo-intero { position: fixed; inset: 0; z-index: 1000; display: block; width: 100%; height: 100vh; height: 100dvh; margin: 0; }
.mappa.schermo-intero .m-scorri { position: absolute; inset: 0; aspect-ratio: auto; overflow: hidden; }
.mappa.schermo-intero .m-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, calc(100dvh * 1672 / 941)); }
.mappa.schermo-intero .m-ui { position: absolute; inset: 0; height: auto; padding: 0; background: none; pointer-events: none; }
.mappa.schermo-intero .m-ui::after { display: block; }
.mappa.schermo-intero .m-ui > .m-info { position: absolute; left: 20px; bottom: 12px; }
.mappa.schermo-intero .m-trascina { display: none; }
/* a schermo intero ma in verticale: si chiede di ruotare, la mappa resta sotto */
.mappa.schermo-intero .m-ruota:not([hidden]) { position: fixed; inset: 0; z-index: 1005; flex-direction: column; justify-content: center; text-align: center; background: rgba(14, 24, 56, .94); padding: 32px; pointer-events: auto; }
.mappa.schermo-intero .m-ruota p { flex: 0 0 auto; font-size: 18px; max-width: 26ch; }
.mappa.schermo-intero .m-ruota [data-schermo] { display: none; }
.mappa.schermo-intero .m-ruota-ico { width: 64px; height: 64px; }
@media (prefers-reduced-motion: no-preference) { .mappa.schermo-intero .m-ruota-ico { animation: ruotaTel 2.4s ease-in-out infinite; } }
@keyframes ruotaTel { 0%, 20% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

/* ---------- Home: cosa c'è nella busta (statica) ---------- */
.bsl { background: var(--sand); }
.bsl-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.bsl-img { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.bsl-img img { width: 100%; max-width: 540px; filter: drop-shadow(0 22px 34px rgba(27, 42, 85, .22)); transform: rotate(-3deg); }
.bsl-fig { margin: 0; width: 100%; max-width: 460px; }
.bsl-fig img { display: block; width: 100%; height: auto; max-width: none; transform: rotate(-1.5deg); border-radius: 22px; border: 6px solid #fff; box-shadow: 0 22px 34px rgba(27, 42, 85, .22); filter: none; }
.bsl-fig figcaption { margin-top: 14px; text-align: center; font-family: var(--f-hand); font-size: 20px; color: var(--navy-ink); }
.bsl-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bsl-list { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bsl-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 3px solid var(--amber); }
.bsl-list b { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.bsl-list span { color: var(--navy-ink); }

/* ---------- La busta: identità da corrispondenza (bordo posta aerea, timbro, etichette) ---------- */
.box-hero { border-bottom: 0; background: var(--grain) 0 0 / 160px, var(--cream); position: relative; padding: 48px 0 56px; }
.box-hero .bh-art { position: relative; flex: 1 1 320px; max-width: 460px; }
.box-hero .page-hero-img { max-width: none; }
.bh-timbro { position: absolute; right: -18px; bottom: -22px; display: flex; align-items: center; transform: rotate(-8deg); color: var(--red); pointer-events: none; }
.bh-timbro .postmark { display: flex; width: 104px; height: 104px; font-size: 15px; padding: 10px; background: rgba(254, 250, 241, .82); transform: none; }
.bh-onde { width: 100px; height: 46px; margin-left: -6px; opacity: .8; }
.airmail { height: 14px; }
.open-it .step { border: 2px dashed rgba(200, 50, 43, .38); background: var(--cream); }
.open-it .step:nth-child(odd) { transform: rotate(-.6deg); }
.open-it .step:nth-child(even) { transform: rotate(.6deg); }
.open-it .step-n { box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px rgba(200, 50, 43, .45); }
.build .kit { outline: 2px solid var(--line); outline-offset: 6px; }
@media (max-width: 720px) { .bh-timbro { right: -6px; bottom: -18px; transform: rotate(-8deg) scale(.82); } .open-it .step:nth-child(n) { transform: none; } }

/* ==========================================================
   Pagina tappa ("Voya è qui, adesso"): modello unico per le 12 tappe (stopPage in build.mjs, tappa.js)
   Hero = primo piano del continente inquadrato sul punto della tappa (--px/--py dal punto in tappe.json, --z zoom, --tx/--ty
   dove cade il punto nell'hero); il riquadro della mappa resta sempre a coprire l'hero (clamp). Colore della busta: --tp-busta.
   ========================================================== */
.tp-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--cream); min-height: clamp(640px, calc(100svh - 84px), 860px); display: flex; align-items: center; }
.tp-mappa { position: absolute; inset: 0; overflow: hidden; container-type: size; --z: 1.4; --tx: 51; --ty: 40; --cima: 0px; }
.tp-mappa-img { position: absolute; width: calc(var(--z) * 100cqw); aspect-ratio: 1672 / 941;
  left: clamp(calc(100cqw - var(--z) * 100cqw), calc(var(--tx) * 1cqw - var(--px) * var(--z) * 1cqw), 0px);
  top: clamp(calc(100cqh - var(--z) * 56.28cqw), calc(var(--ty) * 1cqh - var(--py) * var(--z) * .5628cqw), var(--cima)); }
.tp-mappa-img > img { width: 100%; height: 100%; }
/* velo: a sinistra per leggere il diario, in alto per fondere il bordo della mappa con il cielo, in basso verso la pagina */
.tp-mappa::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--navy-deep) 0, rgba(20, 32, 74, 0) 22%),
              linear-gradient(90deg, rgba(20, 32, 74, .95) 0, rgba(20, 32, 74, .86) 36%, rgba(20, 32, 74, .28) 62%, rgba(20, 32, 74, .45) 100%),
              linear-gradient(0deg, rgba(20, 32, 74, .75) 0, rgba(20, 32, 74, 0) 32%); }
.tp-voya { position: absolute; z-index: 2; left: calc(var(--px) * 1%); top: calc(var(--py) * 1%); width: clamp(84px, 8vw, 128px); translate: -50% -74%; }
.tp-voya img { width: 100%; filter: drop-shadow(0 12px 16px rgba(5, 10, 30, .5)); animation: voya-fluttua 3.4s ease-in-out infinite; }
.tp-voya em { position: absolute; left: 50%; bottom: 96%; translate: -50% 0; font: 800 13px/1 var(--f-body); font-style: normal; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--red); color: var(--white); box-shadow: 0 6px 16px rgba(5, 10, 30, .4); }
.tp-voya.is-via { opacity: .8; }
.tp-voya.is-via em { background: var(--navy); }
.tp-hero-in { position: relative; z-index: 3; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 48px; padding-top: 40px; padding-bottom: 56px; }
.tp-diario { flex: 1 1 520px; max-width: 640px; }
.tp-indietro { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--navy-soft); text-decoration: none; }
.tp-indietro:hover { color: var(--amber); }
.tp-indietro:active { transform: scale(.97); }
.tp-live { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 800; font-size: 15px; color: var(--amber); }
.tp-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: tp-pulsa 2.4s ease-in-out infinite; }
.tp-live.is-fatto { color: var(--navy-soft); }
.tp-live.is-fatto i { animation: none; background: var(--navy-soft); }
@keyframes tp-pulsa { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .7; } }
.tp-hero h1 { margin: 14px 0 20px; font-weight: 700; font-size: clamp(44px, 6vw, 88px); line-height: .98; color: var(--cream); text-wrap: balance; }
.tp-lead { max-width: 36ch; font-size: clamp(18px, 1.45vw, 21px); color: var(--navy-soft); }
.tp-giorni { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 32px 0 0; padding-top: 18px; border-top: 2px dashed rgba(211, 219, 242, .35); }
.tp-giorni [hidden] { display: none; }
/* la linea del soggiorno: tratteggiata fino alla partenza, piena fino a oggi (--p da 0 a 1), la stella sul giorno di oggi */
.tp-linea { position: relative; height: 34px; margin: 30px 17px 0; background: linear-gradient(90deg, rgba(211, 219, 242, .45) 0 8px, transparent 8px) 0 50% / 16px 2px repeat-x; }
.tp-linea i { position: absolute; left: -17px; top: 15.5px; height: 3px; width: calc(17px + var(--p) * 100%); border-radius: 3px; background: var(--amber); }
.tp-linea svg { position: absolute; left: calc(var(--p) * 100%); top: 0; width: 34px; height: 34px; translate: -50% 0; fill: var(--amber); stroke: var(--navy-deep); stroke-width: 1.4; stroke-linejoin: round; }
.tp-linea.is-fatta i { background: var(--navy-soft); }
.tp-linea.is-fatta svg { fill: var(--navy-soft); }
.tp-giorni.con-linea { justify-content: space-between; margin-top: 6px; padding-top: 0; border-top: 0; }
@media (max-width: 720px) { .tp-giorni.con-linea { gap: 14px 12px; } .tp-giorni.con-linea dt { font-size: 12px; letter-spacing: .03em; } .tp-giorni.con-linea [data-tp-v="dove"] { flex-basis: 100%; } }
.tp-giorni.con-linea > div:not([hidden]) ~ div[data-tp-v="parte"] { text-align: right; }
.tp-giorni dt { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-soft); }
.tp-giorni dd { margin: 4px 0 0; font: 700 clamp(24px, 2.2vw, 30px)/1.1 var(--f-display); color: var(--cream); }
.tp-giorni dd a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 800 17px var(--f-body); color: var(--amber); text-decoration: none; }
.tp-giorni dd a:hover, .tp-pross-aperta:hover { color: var(--amber-light); }
.tp-giorni dd a:active { transform: scale(.97); }

/* il biglietto */
.tp-biglietto { position: relative; isolation: isolate; max-width: 560px; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 18px; color: var(--navy); scroll-margin-top: calc(var(--head-h, 80px) + 16px); }
/* il "foglio" del biglietto (fondo, angoli, ombra) è un livello a parte: aprendo e chiudendo si allunga e si accorcia lui (tappa.js),
   così gli angoli restano tondi e l'ombra segue il bordo invece di essere tagliata */
.tp-biglietto::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 24px; background: var(--cream); box-shadow: 0 30px 70px rgba(5, 10, 30, .5); }
.tp-b-testa { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.tp-b-testa img { width: 76px; flex: 0 0 auto; border-radius: 6px; rotate: -4deg; box-shadow: 0 8px 18px rgba(27, 42, 85, .22); }
.tp-b-mese { font: 700 23px/1 var(--f-hand); color: var(--orange-ink); }
.tp-biglietto h2 { margin-top: 4px; font-weight: 700; font-size: 25px; line-height: 1.1; text-wrap: balance; }
.tp-opzioni { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 4px 0 0; border: 0; min-width: 0; }
.tp-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border: 2px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.tp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tp-opt-t { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 30px; }
.tp-opt-t::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--navy-soft); background: var(--white); transition: border-width .2s, border-color .2s; }
.tp-opt b { font-size: 16px; font-weight: 800; }
.tp-opt small { font-size: 13px; line-height: 1.35; color: var(--brown); }
.tp-opt em { font: 700 22px var(--f-display); font-style: normal; white-space: nowrap; }
.tp-opt:has(input:checked) { border-color: var(--navy); background: var(--white); }
.tp-opt:has(input:checked) .tp-opt-t::before { border: 6px solid var(--red); }
.tp-opt:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (hover: hover) { .tp-opt:not(.is-off):hover { border-color: var(--navy-soft); } .tp-opt:has(input:checked):hover { border-color: var(--navy); } }
.tp-opt:not(.is-off):active { transform: scale(.98); transition-duration: .08s; }
.tp-opt.is-off { opacity: .55; cursor: default; }
.tp-cta { display: none; width: 100%; margin-top: 4px; }
.tp-cta[data-tp-cta="bundle"] { display: flex; }
.tp-biglietto:has(input[value="busta"]:checked) .tp-cta[data-tp-cta="bundle"], .tp-biglietto:has(input[value="pdf"]:checked) .tp-cta[data-tp-cta="bundle"] { display: none; }
.tp-biglietto:has(input[value="busta"]:checked) .tp-cta[data-tp-cta="busta"], .tp-biglietto:has(input[value="pdf"]:checked) .tp-cta[data-tp-cta="pdf"] { display: flex; }
.tp-abbo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 16px; background: var(--peach); color: var(--navy); text-decoration: none; transition: background-color .2s, transform .15s; }
.tp-abbo > span { display: flex; flex-direction: column; gap: 1px; }
.tp-abbo[data-tp-abbo="busta"], .tp-biglietto:has(input[value="busta"]:checked) .tp-abbo[data-tp-abbo="bundle"] { display: none; }
.tp-biglietto:has(input[value="busta"]:checked) .tp-abbo[data-tp-abbo="busta"] { display: flex; }
.tp-abbo b { font-size: 15px; font-weight: 800; }
.tp-abbo small { font-size: 13px; color: var(--brown); }
.tp-abbo .icon { color: var(--red); flex: 0 0 auto; }
@media (hover: hover) { .tp-abbo:hover { background: #FFE7C4; color: var(--navy); } }
.tp-abbo:active { transform: scale(.98); transition-duration: .08s; }
/* cosa ricevi: una lista per scelta, si vede quella dell'opzione scelta (come il bottone) */
.tp-dett { padding-top: 4px; }
.tp-dett-h { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; }
.tp-lista { display: none; list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.tp-lista li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; color: var(--navy-ink); }
.tp-lista svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: #2E8B57; }
.tp-lista[data-tp-lista="bundle"] { display: grid; }
.tp-biglietto:has(input[value="busta"]:checked) .tp-lista[data-tp-lista="bundle"], .tp-biglietto:has(input[value="pdf"]:checked) .tp-lista[data-tp-lista="bundle"] { display: none; }
.tp-biglietto:has(input[value="busta"]:checked) .tp-lista[data-tp-lista="busta"], .tp-biglietto:has(input[value="pdf"]:checked) .tp-lista[data-tp-lista="pdf"] { display: grid; }

/* la colonna del biglietto: su schermo stretto subito sotto l'hero, sul blu */
.tp-colonna { background: var(--navy-deep); padding: 0 0 56px; }
/* su schermo largo: colonna sovrapposta a hero + storia + busta, il biglietto resta agganciato in alto (tappa.js lo raddrizza e lo apre) */
@media (min-width: 1180px) {
  .tp-corsa { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tp-corsa > .tp-hero { grid-row: 1; grid-column: 1; }
  .tp-corsa > .tp-storia { grid-row: 2; grid-column: 1; }
  .tp-corsa > .tp-kit { grid-row: 3; grid-column: 1; }
  .tp-colonna { grid-row: 1 / 4; grid-column: 1; position: relative; z-index: 5; padding: 0; background: none; pointer-events: none; }
  .tp-colonna .wrap { height: 100%; display: flex; justify-content: flex-end; align-items: flex-start; }
  .tp-biglietto { position: sticky; top: calc(var(--head-h, 80px) + 18px); width: 460px; margin-top: var(--tp-b-top, 150px); margin-bottom: 72px; pointer-events: auto; rotate: var(--tp-rot, 1.5deg); }
  .tp-corsa .tp-dett { display: none; }
  .tp-biglietto.is-aperto .tp-dett { display: block; }
  .tp-hero-in { justify-content: flex-start; }
  .tp-corsa .tp-storia .wrap, .tp-corsa .tp-kit .wrap { padding-right: calc(24px + 460px + 64px); }
  .tp-corsa .tp-storia .wrap { flex-direction: column; align-items: stretch; gap: 48px; }
  .tp-corsa .tp-tavola { flex: none; width: min(100%, 620px); rotate: -1.2deg; }
  .tp-corsa .tp-tavola img { aspect-ratio: 1000 / 640; }
  .tp-corsa .tp-lettera { flex: none; max-width: 620px; }
  .tp-corsa .tp-pezzi { grid-template-columns: repeat(6, 1fr); gap: 48px 28px; }
  .tp-corsa .tp-pezzo-1, .tp-corsa .tp-pezzo-2 { grid-column: span 3; }
  .tp-corsa .tp-pezzo-4 { grid-column: span 2; }
  .tp-corsa .tp-pezzo-3, .tp-corsa .tp-pezzo-5 { grid-column: span 4; }
  .tp-corsa .tp-pezzo-6 { grid-column: span 2; }
}
@media (max-width: 1179px) { .tp-hero { min-height: 0; } .tp-hero-in { padding-bottom: 40px; } .tp-colonna .wrap { display: flex; justify-content: center; } .tp-biglietto { width: 100%; } }
@media (min-width: 1180px) { .tp-corsa .tp-lettera .h2 { font-size: clamp(30px, 2.8vw, 40px); } }
/* schermi bassi: il biglietto agganciato e aperto deve stare tutto nello schermo */
@media (min-width: 1180px) and (max-height: 900px) {
  .tp-biglietto { gap: 10px; padding: 20px 24px 14px; }
  .tp-b-testa { padding-bottom: 12px; }
  .tp-b-testa img { width: 52px; }
  .tp-biglietto h2 { font-size: 22px; }
  .tp-opzioni { gap: 8px; }
  .tp-opt { padding: 9px 14px; }
  .tp-lista { gap: 4px 16px; }
}

/* la storia */
.tp-storia { padding: 96px 0 88px; }
.tp-storia .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 56px 80px; }
.tp-tavola { flex: 0 1 420px; padding: 10px; border-radius: 8px; background: var(--white); box-shadow: 0 24px 50px rgba(27, 42, 85, .22); rotate: -2deg; transition: rotate .4s var(--pronto, ease), translate .4s var(--pronto, ease); }
/* solo l'inizio della tavola: in fondo Voya nomina la tappa dopo, che resta segreta finché non esce (si legge aprendo la pagina intera) */
.tp-tavola img { width: 100%; aspect-ratio: 1000 / 980; object-fit: cover; object-position: top; border-radius: 4px; }
@media (hover: hover) { .tp-tavola:hover { rotate: -.5deg; translate: 0 -4px; } }
.tp-tavola:active { scale: .98; }
.tp-lettera { flex: 1 1 440px; max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.tp-lettera .h2 { margin-bottom: 10px; text-wrap: balance; }
.tp-ciao, .tp-firma { font: 700 32px/1.1 var(--f-hand); color: var(--red); }
.tp-firma { align-self: flex-end; }
.tp-lettera > p:not([class]) { font-size: 19px; line-height: 1.7; color: var(--navy-ink); }
.tp-leggi { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; color: var(--red); text-decoration: none; }
.tp-leggi:active { transform: scale(.97); }

/* cosa c'è nella busta, sul colore della busta della tappa */
.tp-kit { padding: 96px 0 104px; background: var(--tp-busta, var(--navy)); color: var(--cream); }
.tp-kit-testa { max-width: 640px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.tp-kit .lead { color: rgba(254, 250, 241, .86); }
.tp-pezzi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 56px 32px; }
.tp-pezzo { display: flex; flex-direction: column; gap: 16px; }
.tp-pezzo img { width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38)); }
.tp-pezzo p { display: flex; flex-direction: column; gap: 3px; }
.tp-pezzo b { font: 600 21px/1.15 var(--f-display); }
.tp-pezzo span { font-size: 15px; line-height: 1.45; color: rgba(254, 250, 241, .8); max-width: 34ch; }
.tp-pezzo-1 { grid-column: span 5; order: 1; } .tp-pezzo-1 img { rotate: -3deg; }
.tp-pezzo-2 { grid-column: span 4; order: 2; } .tp-pezzo-2 img { rotate: 2deg; }
.tp-pezzo-4 { grid-column: span 3; order: 3; } .tp-pezzo-4 img { width: 74%; rotate: 8deg; }
.tp-pezzo-3 { grid-column: span 5; order: 4; } .tp-pezzo-3 img { rotate: 1.5deg; }
.tp-pezzo-5 { grid-column: span 5; order: 5; } .tp-pezzo-5 img { rotate: -2deg; }
.tp-pezzo-6 { grid-column: span 2; order: 6; } .tp-pezzo-6 img { width: 64px; rotate: 6deg; }
.tp-kit-solo { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.tp-kit-solo img { flex: 0 1 420px; }
.tp-kit-solo ul { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }

/* il quaderno */
.tp-quaderno { padding: 96px 0; background: var(--sand); }
.tp-q-testa { max-width: 680px; margin-bottom: 44px; display: flex; flex-direction: column; gap: 12px; }
.tp-pagine { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 26px; }
.tp-pagine figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tp-pagine figure:nth-child(odd) img { rotate: -1.5deg; }
.tp-pagine figure:nth-child(even) img { rotate: 1.2deg; }
.tp-pagine img { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; padding: 6px; border-radius: 6px; background: var(--white); box-shadow: 0 12px 26px rgba(27, 42, 85, .16); }
.tp-pagine b { display: block; font: 600 19px var(--f-display); }
.tp-pagine figcaption span { font-size: 14px; font-weight: 700; color: var(--brown); }
.tp-missioni { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tp-missioni li { padding: 10px 16px; border-radius: 999px; background: var(--white); font-weight: 800; font-size: 15px; }

/* il dono e le curiosità */
.tp-dono { padding: 88px 0; }
.tp-dono .wrap { display: flex; flex-wrap: wrap; gap: 40px 88px; }
.tp-dono-dono, .tp-dono-sapevi { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.tp-dono-et { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.tp-dono-sapevi .tp-dono-et { color: var(--navy); }
.tp-dono-h { font: 700 clamp(40px, 4.4vw, 58px)/1.02 var(--f-hand); color: var(--red); }
.tp-dono-dono p:last-child { max-width: 40ch; font-size: 19px; color: var(--navy-ink); }
.tp-dono-sapevi ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: var(--navy-ink); }

/* chiusura: la prossima tappa e l'abbonamento */
.tp-fine { padding: 88px 0 96px; background: var(--navy); color: var(--cream); }
.tp-fine .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.tp-pross { flex: 1 1 400px; display: flex; align-items: center; gap: 26px; color: var(--cream); text-decoration: none; }
.tp-pross > span:last-child, .tp-pross > div { display: flex; flex-direction: column; gap: 6px; }
.tp-segreto { flex: 0 0 auto; display: grid; place-items: center; width: 150px; height: 112px; border: 6px solid var(--cream); border-radius: 12px; background: var(--navy-deep); rotate: -4deg; font: 700 56px var(--f-display); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.tp-pross-aperta img { width: 150px; flex: 0 0 auto; border: 6px solid var(--cream); border-radius: 10px; rotate: -3deg; }
.tp-pross-aperta:active { transform: scale(.98); }
.tp-pross-et { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-light); }
.tp-indizio { font: 700 clamp(30px, 3.2vw, 42px)/1.1 var(--f-hand); }
.tp-pross p:last-child { color: var(--navy-soft); }
.tp-abbonati { flex: 1 1 460px; display: flex; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 24px; background: var(--navy-deep); }
.tp-abbonati img { width: 132px; flex: 0 0 auto; }
.tp-abbonati .h2 { font-size: clamp(28px, 3vw, 38px); text-wrap: balance; }
.tp-abbonati p { margin: 10px 0 18px; color: var(--navy-soft); }
.tp-fine-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-fine .btn-line { color: var(--cream); border-color: var(--cream); }
.tp-fine .btn-line:hover { background: var(--cream); color: var(--navy); }

/* barra in basso quando il biglietto non è agganciato (schermi sotto i 1180px) */
.tp-barra { display: none; }
@media (max-width: 1179px) {
  .tp-barra { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--red); color: var(--white); text-decoration: none; box-shadow: 0 14px 30px rgba(27, 42, 85, .35); translate: 0 160%; transition: translate .45s cubic-bezier(.2, .8, .2, 1); }
  .tp-barra.on { translate: 0 0; }
  .tp-barra:hover { color: var(--white); }
  .tp-barra:active { scale: .98; }
  .tp-barra b { display: block; font-size: 15px; }
  .tp-barra small { font-size: 12px; opacity: .9; }
  .tp-barra em { padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--red); font: 700 20px var(--f-display); font-style: normal; }
}

@media (max-width: 899px) {
  .tp-hero { display: block; min-height: 0; }
  .tp-mappa { bottom: auto; height: 340px; --z: 2.4; --tx: 60; --ty: 55; --cima: 36px; }
  .tp-mappa::after { background: linear-gradient(180deg, var(--navy-deep) 0, rgba(20, 32, 74, .35) 18%, rgba(20, 32, 74, 0) 34%), linear-gradient(0deg, var(--navy-deep) 0, rgba(20, 32, 74, .15) 42%); }
  .tp-pagine { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 8px 24px 18px; scroll-padding: 0 24px; scrollbar-width: none; }
  .tp-pagine::-webkit-scrollbar { display: none; }
  .tp-pagine figure { flex: 0 0 62%; scroll-snap-align: start; }
  .tp-hero-in { padding-top: 250px; padding-bottom: 40px; gap: 32px; }
  .tp-indietro { position: absolute; top: 8px; }
  .tp-biglietto { flex: 1 1 100%; rotate: 0deg; padding: 22px 20px 14px; }
  .tp-storia, .tp-kit, .tp-quaderno { padding: 64px 0; }
  .tp-dono, .tp-fine { padding: 64px 0; }
  .tp-pezzi { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .tp-pezzi .tp-pezzo { grid-column: span 1; }
  .tp-pezzi .tp-pezzo-1 { grid-column: span 2; }
  .tp-pezzo-4 img { width: 80%; }
}
@media (max-width: 520px) {
  .tp-abbonati { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .tp-abbonati img { width: 110px; }
  .tp-pross { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-voya img, .tp-live i { animation: none; }
  .tp-barra { transition: none; }
}

/* confronto: un link sotto le card, dove si decide */
.cmp-link { text-align: center; margin-top: 22px; }
.cmp-text { border: 0; background: none; padding: 8px 6px; cursor: pointer; font: 800 16px var(--f-body); color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .15s ease, transform .3s var(--pronto); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .cmp-text:hover { color: var(--red); } }
.cmp-text:active { transform: scale(.97); transition-duration: .08s; }
.cmp-text:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

/* "lettera con il suo nome" (Abbonati): il nome scritto compare sulla busta, a mano, sulla riga dell'indirizzo */
.bx-sec .section-head .lead { max-width: 560px; }
.let-form { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 34px; }
.let-form label { font-weight: 800; font-size: 15px; color: var(--navy-ink); }
.let-form input { width: min(340px, 100%); min-height: 54px; padding: 0 22px; text-align: center; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); font: 700 26px/1 var(--f-hand); }
.let-form input::placeholder { color: rgba(46, 59, 99, .42); }
.let-form input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
/* nome scritto a mano, in bianco, sul verde sotto il sigillo; affrancatura e francobollo Lapponia 1 in alto a destra */
.bx-nome { position: absolute; left: 14%; top: 44%; width: 72%; height: 24%; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font: 700 calc(min(54px, 9vw) * var(--nz, 1))/1 var(--f-hand); color: #fff; text-shadow: 0 1px 3px rgba(14, 40, 20, .4); transform: translateZ(1px) rotate(-1.5deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; }
.bx-aff, .bx-fr { position: absolute; top: 6%; height: auto; transform: translateZ(1px); backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(14, 40, 20, .35)); }
.bx-aff { right: 4%; width: 33%; }
.bx-fr { right: 38.5%; }
.let-vai { margin: 28px 0 0; text-align: center; }
.let-vai .btn { max-width: 100%; }

/* ---------- Zona di consegna ("Spediamo in: Francia | Altro paese UE") ---------- */
.zona { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 20px; text-align: center; }
.zona-riga { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; }
.zona-l { font-weight: 800; font-size: 15px; color: var(--navy-ink); }
.zona-b { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--sand); border: 1px solid rgba(217, 160, 70, .55); }
.zona-b button { border: 0; border-radius: 999px; padding: 9px 18px; background: transparent; color: var(--navy-ink); font: 800 14px var(--f-body); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .3s var(--pronto); -webkit-tap-highlight-color: transparent; }
.zona-b button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
@media (hover: hover) { .zona-b button[aria-pressed="false"]:hover { background: var(--white); color: var(--navy); } }
.zona-b button:active { transform: scale(.96); transition-duration: .08s; }
.zona-b button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.zona-nota { margin: 0; max-width: 46ch; font-size: 14px; font-weight: 600; color: var(--navy-ink); }
.zona-mini { margin: 0 0 12px; align-items: flex-start; }
.zona-mini .zona-riga { justify-content: flex-start; gap: 6px 10px; }
.zona-mini .zona-l { font-size: 13px; }
.zona-mini .zona-b button { padding: 6px 12px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .zona-b button { transition: none; } }

/* ---------- Negozio "La valigia di Voya" ---------- */
.nv { padding-top: 40px; }
.nv-hero { text-align: center; max-width: 760px; margin: 0 auto; }
.nv-hero .h1 { margin-top: 6px; }
.nv-hero .lead { margin: 14px auto 0; max-width: 46ch; }
.nv-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.nv-nav a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); color: var(--navy); background: var(--white); transition: border-color .15s ease, transform .3s var(--pronto); }
.nv-nav a:hover { border-color: var(--navy); }
.nv-nav a:active { transform: scale(.96); transition-duration: .08s; }
.nv-nav a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.nv-gar { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; padding: 0; margin: 20px 0 0; list-style: none; font-weight: 700; font-size: 15px; color: var(--navy-ink); }
.nv-gar li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 9px; }
.nv-sez { padding-top: var(--gap-sez); scroll-margin-top: 24px; }
.nv-h { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.nv-h p { margin: 8px 0 0; max-width: 52ch; color: var(--navy-ink); }
.nv-n { font-weight: 800; font-size: 14px; color: var(--orange-ink); }
.nv-sez .zona { align-items: flex-start; margin: 0 0 18px; }
.nv-sez .zona-riga { justify-content: flex-start; }
.nv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nv-g2, .nv-c1, .nv-c2 { grid-template-columns: repeat(2, 1fr); }
.nv-st { height: 88%; width: auto; left: 50%; top: 6%; transform: translateX(-50%); border-radius: 10px; }
.nv-card { background: var(--white); border: 2px solid var(--line); border-radius: 28px; padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nv-art { height: 230px; border-radius: 20px; background: var(--peach); position: relative; overflow: hidden; display: grid; place-items: center; }
.nv-sand { background: var(--sand); }
.nv-art img { position: absolute; height: auto; filter: drop-shadow(0 14px 16px rgba(27, 42, 85, .26)); transition: transform .45s var(--pronto), opacity .3s ease; }
.nv-b { width: 64%; left: 6%; top: 24%; transform: rotate(-6deg); }
.nv-q { width: 36%; right: 8%; top: 16%; transform: rotate(6deg); }
.nv-card:has(input[value="busta"]:checked) .nv-q { opacity: 0; transform: translateX(30px) rotate(10deg); }
.nv-card:has(input[value="pdf"]:checked) .nv-b { opacity: 0; transform: translateX(-30px) rotate(-10deg); }
.nv-card:has(input[value="pdf"]:checked) .nv-q { width: 40%; right: 30%; top: 14%; transform: rotate(-3deg); }
.nv-chip { position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--white); color: var(--navy); font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.nv-chip.is-ok { background: var(--navy); color: var(--white); }
.nv-info { padding-inline: 10px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.nv-k { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.nv-info h3, .nv-big h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; margin: -6px 0 0; color: var(--navy); text-wrap: balance; }
.nv-d { margin: 0; font-size: 15px; color: var(--navy-ink); }
.nv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--sand); border-radius: 16px; padding: 4px; border: 0; margin: 0; min-width: 0; }
.nv-seg label { position: relative; display: flex; min-width: 0; }
.nv-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nv-seg span { flex: 1; display: grid; place-items: center; text-align: center; min-height: 46px; padding: 4px 6px; border-radius: 12px; font-weight: 800; font-size: 13px; line-height: 1.15; color: var(--navy-ink); transition: background .2s ease, color .2s ease, transform .3s var(--pronto); }
.nv-seg input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(27, 42, 85, .16); }
.nv-seg input:disabled + span { opacity: .45; cursor: default; }
.nv-seg input:disabled { cursor: default; }
.nv-seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 1px; }
.nv-seg label:active input:not(:disabled) + span { transform: scale(.96); transition-duration: .08s; }
.nv-f { display: none; flex-direction: column; gap: 12px; flex: 1; }
.nv-card:has(input[value="busta"]:checked) .nv-f-busta, .nv-card:has(input[value="bundle"]:checked) .nv-f-bundle, .nv-card:has(input[value="pdf"]:checked) .nv-f-pdf { display: flex; }
.nv-buy { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.nv-buy .btn { flex: 1; min-width: 0; padding-inline: 18px; text-align: center; }
.nv-pr { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); white-space: nowrap; }
.nv-pr small { display: block; margin-top: 4px; font: 700 12px var(--f-body); color: var(--navy-ink); white-space: normal; max-width: 12ch; }
.nv-nota { margin: 0; font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.nv-pross { background: transparent; border-style: dashed; }
.nv-pross .nv-art { background: var(--sand); }
.nv-data { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-ink); text-align: center; }
.nv-data b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 72px; line-height: .95; letter-spacing: 0; color: var(--navy); }
.nv-more { margin-top: 22px; }
.nv-more > summary { list-style: none; display: flex; width: fit-content; margin-inline: auto; cursor: pointer; }
.nv-more > summary::-webkit-details-marker { display: none; }
.nv-more .nv-meno, .nv-more[open] .nv-piu { display: none; }
.nv-more[open] .nv-meno { display: inline; }
.nv-more > .nv-grid { margin-top: 20px; }
.nv-fut { text-align: center; margin: 22px 0 0; font-weight: 700; color: var(--navy-ink); }
.nv-bg { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nv-bc { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nv-bc img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; display: block; }
.nv-bc h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.15; margin: 4px 8px 0; color: var(--navy); text-wrap: balance; }
.nv-bc .nv-buy { margin: auto 8px 0; padding-top: 4px; flex-wrap: wrap; } .nv-bc .nv-pr { font-size: 22px; }
.ck-big { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.ck-big legend { font-weight: 800; padding: 0; margin-bottom: 2px; }
.ck-hint { margin: 0; font-size: 14px; color: var(--navy-ink); }
.ck-hint:empty { display: none; }
.ck-big-riga { display: flex; align-items: center; gap: 12px; }
.ck-big-riga img { width: 48px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.ck-big-riga select { flex: 1; min-width: 0; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 16px; min-height: 48px; font: 600 16px var(--f-body); background: var(--white); color: var(--navy); }
.nv-ap { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; transition: transform .35s var(--pronto); }
.nv-ap:hover { transform: translateY(-3px); }
.nv-ap:active { transform: scale(.985); }
.nv-ap:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.nv-bc .nv-buy .btn { white-space: nowrap; }
.nv-scelto { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; background: var(--sand); color: var(--navy); font-weight: 700; }
.nv-scelto[hidden] { display: none; }
.nv-bg + .nv-more { margin-top: 20px; }
.nv-more:has(.nv-bg) summary { margin-inline: auto; }
.bg-dlg { border: 0; padding: 0; background: var(--white); color: var(--navy); border-radius: 28px; width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(27, 42, 85, .35); margin: auto; }
.bg-dlg::backdrop { background: rgba(27, 42, 85, .55); }
.bg-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 20px; align-items: center; }
.bg-img { width: 100%; max-height: calc(100dvh - 72px); object-fit: contain; border-radius: 16px; display: block; background: var(--sand); }
.bg-info { display: flex; flex-direction: column; gap: 14px; padding-right: 12px; }
.bg-info h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 0; text-wrap: balance; }
.bg-info .nv-d { margin: 0; }
.bg-info .nv-nota { margin: -4px 0 0; }
.bg-pr { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1; }
.bg-pr small { font: 700 13px var(--f-body); color: var(--navy-ink); margin-left: 6px; }
.bg-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(27, 42, 85, .25); transition: transform .2s var(--pronto); }
.bg-x:active { transform: scale(.92); }
.bg-x:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 720px) { .bg-corpo { grid-template-columns: 1fr; gap: 16px; padding: 14px; } .bg-img { max-height: 52dvh; } .bg-info { padding: 0 4px 6px; } }
.nv-bigl { display: flex; align-items: center; }
.nv-bigl > div { width: 124px; aspect-ratio: 4 / 5; background: var(--white); border-radius: 6px; box-shadow: 0 12px 20px rgba(27, 42, 85, .2); display: grid; place-items: center; transform: rotate(-4deg); padding: 10px; text-align: center; color: var(--navy); }
.nv-bigl > .nv-bigl2 { transform: rotate(5deg); margin-left: 4px; background: var(--peach); }
.nv-bigl b { font-family: var(--f-hand); font-weight: 700; font-size: 22px; line-height: 1.05; }
.nv-cart { width: 44%; left: 28%; top: 14%; transform: rotate(5deg); }
.nv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.nv-big { border-radius: 28px; background: var(--sand); padding: 32px; min-height: 260px; display: flex; flex-direction: column; gap: 10px; }
.nv-big h3 { max-width: 16ch; margin: 0; }
.nv-big p { margin: 0; max-width: 30ch; color: var(--navy-ink); }
.nv-big a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; color: var(--red); text-decoration: none; padding: 8px 0; min-height: 44px; }
.nv-big a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nv-big a:active { transform: translateX(2px); }
.nv-navy { background: var(--navy); }
.nv-navy h3, .nv-navy p { color: var(--cream); }
.nv-navy .nv-k, .nv-navy a { color: var(--amber); }
@media (hover: hover) { .nv-card:not(.nv-pross):hover { border-color: var(--navy-soft); } }
@media (max-width: 960px) { .nv-grid, .nv-c1, .nv-c2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .nv-bg { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .nv-grid.nv-bg { grid-template-columns: repeat(2, 1fr); gap: 12px; } .nv-bc h3 { font-size: 17px; margin-inline: 4px; } .nv-bc .nv-buy { flex-direction: column; align-items: stretch; gap: 8px; margin-inline: 4px; } .nv-bc .nv-buy .btn { flex: none; } .nv-grid, .nv-g2, .nv-c1, .nv-c2, .nv-duo { grid-template-columns: 1fr; } .nv-art { height: 210px; } .nv-big { padding: 24px; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .nv-art img, .nv-seg span, .nv-nav a { transition: none; } }
:lang(ko) .nv-k, :lang(ko) .nv-data { letter-spacing: 0; }

/* ===== Benvenuto: Voya chiede da dove scrive il visitatore (benvenuto.js) ===== */
.zp-dlg { border: 0; padding: 0; margin: auto; width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--cream); color: var(--navy); border-radius: 26px; box-shadow: 0 30px 80px rgba(27, 42, 85, .3); position: relative; }
/* bordo da busta aerea: strisce rosse e blu a distanza, come sulle buste "par avion" */
.zp-dlg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 7px; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--red) 0 14px, var(--cream) 14px 22px, var(--navy) 22px 36px, var(--cream) 36px 44px);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.zp-dlg:focus { outline: none; }
.zp-dlg::backdrop { background: rgba(254, 250, 241, .38); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
@supports not (backdrop-filter: blur(1px)) { .zp-dlg::backdrop { background: rgba(27, 42, 85, .5); } }
.zp-corpo { padding: 30px 26px 28px; display: grid; grid-template-columns: 150px 1fr; grid-template-areas: "voya testo" "scelta scelta" "indietro indietro"; gap: 8px 22px; align-items: center; }
.zp-voya { grid-area: voya; width: 150px; height: auto; justify-self: center; transform-origin: 50% 90%; animation: zp-saluta 3.6s ease-in-out infinite; }
.zp-testo { grid-area: testo; }
.zp-testo h2 { margin: 0 0 6px; font: 700 clamp(28px, 5vw, 36px)/1.05 var(--f-hand); color: var(--orange-ink); }
.zp-testo p { margin: 0; font-weight: 700; font-size: 17px; color: var(--navy-ink); max-width: 28ch; }
.zp-scelta { grid-area: scelta; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
/* due francobolli: bordo a pizzo, leggermente storti, si raddrizzano e si sollevano al passaggio */
.zp-st { --pizzo: 6px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 16px 12px; border: 0; cursor: pointer; font: 800 16px/1.2 var(--f-body); color: var(--navy); text-align: center;
  background: var(--white); border-radius: 6px; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(180, 80, 12, .45), 0 10px 22px rgba(27, 42, 85, .14);
  outline: 2px dashed rgba(180, 80, 12, .5); outline-offset: -9px; transform: rotate(-1.6deg); transition: transform .35s var(--pronto), box-shadow .3s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.zp-st + .zp-st, .zp-ue { transform: rotate(1.4deg); }
.zp-st:hover { transform: rotate(0) translateY(-3px); background: var(--peach); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(180, 80, 12, .6), 0 16px 28px rgba(27, 42, 85, .18); }
.zp-st:active { transform: rotate(0) translateY(1px) scale(.96); transition-duration: .08s; }
.zp-st:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.zp-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--peach); color: var(--orange-ink); transition: transform .4s var(--pronto); }
.zp-st:hover .zp-ico { transform: rotate(-8deg) scale(1.08); }
@keyframes zp-saluta { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2.2deg) translateY(-3px); } }
@media (max-width: 520px) {
  .zp-corpo { grid-template-columns: 1fr; grid-template-areas: "voya" "testo" "scelta" "indietro"; text-align: center; padding: 24px 18px 22px; gap: 6px; }
  .zp-voya { width: 112px; } .zp-testo p { max-width: none; margin: 0 auto; }
  .zp-st { min-height: 96px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .zp-voya { animation: none; } .zp-st, .zp-ico { transition: none; } }
/* il sito dietro il popup sta fermo: animazioni in pausa (quelle del popup continuano) */
html.zp-open *, html.zp-open *::before, html.zp-open *::after { animation-play-state: paused !important; }
html.zp-open .zp-dlg .zp-voya { animation-play-state: running !important; }
/* piccolo "Consegna in: Francia · cambia" nel piè di pagina */
.foot-zona { border: 0; background: none; padding: 4px 0; font: 600 13.5px var(--f-body); color: inherit; opacity: .8; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.foot-zona:hover, .foot-zona:focus-visible { opacity: 1; } .foot-zona:active { transform: scale(.97); }
.foot-zona u { text-underline-offset: 3px; }
html[data-zona="FR"] [data-zona-n="UE"], html[data-zona="UE"] [data-zona-n="FR"] { display: none; }

/* ---- Popup di benvenuto, due passi: prima la lingua, poi il paese ---- */
.zp-corpo[data-passo="1"] .zp-p2, .zp-corpo[data-passo="2"] .zp-p1 { display: none; }
.zp-lingue { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.zp-lingue .zp-lg { flex: 0 1 calc((100% - 24px) / 3); }
.zp-testo.zp-p1 h2 { font-size: clamp(22px, 4.2vw, 27px); line-height: 1.2; margin: 0; }
.zp-lg { min-height: 66px; padding: 12px 8px; font-size: 17px; text-decoration: none; }
.zp-lg:nth-child(even) { transform: rotate(1.4deg); }
.zp-lg[aria-current] { background: var(--peach); }
@media (max-width: 520px) { .zp-lingue .zp-lg { flex-basis: calc((100% - 12px) / 2); min-height: 58px; } }
.zp-indietro { grid-area: indietro; justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 700 14px var(--f-body); color: var(--navy-ink); transition: background-color .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.zp-indietro svg { width: 16px; height: 16px; }
.zp-indietro u { text-underline-offset: 3px; }
.zp-indietro:hover { background: var(--peach); }
.zp-indietro:active { transform: scale(.96); transition-duration: .08s; }
.zp-indietro:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.zp-pl { display: none; }
.zp-corpo[data-sel="it"] .zp-pl[data-pl="it"], .zp-corpo[data-sel="en"] .zp-pl[data-pl="en"], .zp-corpo[data-sel="fr"] .zp-pl[data-pl="fr"],
.zp-corpo[data-sel="es"] .zp-pl[data-pl="es"], .zp-corpo[data-sel="ko"] .zp-pl[data-pl="ko"] { display: contents; }

/* ---------- HOME: scegli come viaggiare (una card grande, due sobrie) ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 22px; max-width: 1060px; margin: 8px auto 0; }
.sg-main { grid-row: 1 / span 2; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 30px 26px; border: 2px solid var(--red); border-radius: 30px; text-decoration: none; color: var(--navy);
  background: radial-gradient(120% 70% at 50% 0%, var(--peach) 0%, var(--white) 70%); box-shadow: 0 22px 48px rgba(200, 50, 43, .12); transition: transform .3s var(--pronto, ease), box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
.sg-main:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(200, 50, 43, .18); }
.sg-main:active { transform: translateY(0) scale(.99); transition-duration: .08s; }
.sg-badge { position: absolute; top: -15px; left: 28px; padding: 6px 14px; border-radius: 999px; background: var(--red); color: var(--white); font: 800 13px var(--f-body); letter-spacing: .04em; box-shadow: 0 6px 14px rgba(200, 50, 43, .3); }
.sg-art { display: grid; place-items: center; padding: 6px 0 0; }
.sg-art img { width: min(100%, 380px); height: auto; transform: rotate(-3deg); filter: drop-shadow(0 18px 22px rgba(27, 42, 85, .22)); transition: transform .5s var(--pronto, ease); }
.sg-main:hover .sg-art img { transform: rotate(0) scale(1.04); }
.sg-body { display: flex; flex-direction: column; gap: 10px; }
.sg-body h3 { margin: 6px 0 0; font: 700 clamp(28px, 3.2vw, 36px)/1.05 var(--f-display); }
.sg-promise { margin: 0; font-size: 17px; color: var(--navy-ink); }
.sg-checks { margin: 4px 0 2px; }
.sg-cta { width: 100%; justify-content: center; padding: 16px 24px; font-size: 18px; }
.sg-lock { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy-ink); }
.sg-lock svg { width: 15px; height: 15px; color: var(--green, #2E7D4F); }
.sg-side { display: flex; align-items: center; gap: 18px; padding: 22px; border: 2px solid var(--line); border-radius: 26px; background: var(--white); text-decoration: none; color: var(--navy); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; -webkit-tap-highlight-color: transparent; }
/* periodo di Natale: la card del regalo diventa rossa */
.sg-side.sg-natale { background: var(--red, #C8362E); border-color: var(--red, #C8362E); color: var(--white); }
.sg-side.sg-natale > div > span { color: var(--white); opacity: .95; }
.sg-side.sg-natale .sg-go { background: var(--white); color: var(--red, #C8362E); border-color: var(--white); }
.sg-side.sg-natale:hover { border-color: var(--red, #C8362E); box-shadow: 0 18px 40px rgba(200, 54, 46, .32); }
.sg-side.sg-natale img { margin-block: -14px; max-height: 170px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.sg-side:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27, 42, 85, .12); border-color: var(--amber); }
.sg-side:active { transform: scale(.985); transition-duration: .08s; }
.sg-side img { flex: 0 0 38%; width: 38%; max-height: 150px; object-fit: contain; }
.sg-side > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sg-side b { font: 600 22px/1.15 var(--f-display); }
.sg-side > div > span { font-size: 15px; color: var(--navy-ink); }
.sg-go { margin-top: 6px; padding: 9px 16px; font-size: 15px; font-style: normal; }
@media (max-width: 880px) {
  .start-grid { grid-template-columns: 1fr; grid-template-rows: none; max-width: 560px; }
  .sg-main { grid-row: auto; padding: 26px 20px 22px; }
}
@media (max-width: 420px) { .sg-side { flex-direction: column; text-align: center; } .sg-side > div { align-items: center; } .sg-side img { flex-basis: auto; width: 60%; } }
@media (prefers-reduced-motion: reduce) { .sg-main, .sg-side, .sg-art img { transition: none; } .sg-main:hover .sg-art img { transform: rotate(-3deg); } }

/* ---- Pagina d'ordine: niente salti di contenuto. ck-pre.js scrive il tipo su <html data-ck> prima del primo disegno: i campi degli altri tipi non compaiono mai; titolo, sottotitolo e riepilogo (riempiti da checkout.js) restano invisibili finché non sono pronti ---- */
html[data-ck="abbonamento"] .ck-form-card [data-solo]:not([data-solo~="abbonamento"]),
html[data-ck="regalo"] .ck-form-card [data-solo]:not([data-solo~="regalo"]),
html[data-ck="tappa"] .ck-form-card [data-solo]:not([data-solo~="tappa"]),
html[data-ck="biglietto"] .ck-form-card [data-solo]:not([data-solo~="biglietto"]),
html[data-ck="registro"] .ck-form-card [data-solo]:not([data-solo~="registro"]),
html[data-ck="tappa-reg"] .ck-form-card [data-solo]:not([data-solo~="tappa-reg"]),
html[data-ck="x"] .ck-form-card [data-solo] { display: none; }
html:not(.ck-pronto) [data-ck="titolo"], html:not(.ck-pronto) [data-ck="sub"], html:not(.ck-pronto) .ck-riepilogo { visibility: hidden; }

/* ---- Pagina d'ordine: la miniatura del biglietto si ingrandisce ---- */
.ck-big-zoom { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 6px; cursor: zoom-in; transition: transform .2s ease; -webkit-tap-highlight-color: transparent; }
.ck-big-zoom[hidden] { display: none; }
.ck-big-zoom img { display: block; box-shadow: 0 3px 10px rgba(27, 42, 85, .18); }
.ck-big-zoom:hover { transform: scale(1.06); }
.ck-big-zoom:active { transform: scale(.94); }
.ck-big-zoom:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.ck-big-lente { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--navy); border: 1.5px solid rgba(217, 160, 70, .9); box-shadow: 0 2px 6px rgba(27, 42, 85, .2); }
.ck-zoom { width: min(520px, calc(100vw - 32px)); }
.ck-zoom-in { margin: 0; padding: 56px 28px 26px; display: grid; justify-items: center; gap: 14px; }
.ck-zoom-in img { width: min(100%, 380px); max-height: calc(100dvh - 180px); height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 14px 34px rgba(27, 42, 85, .2); }
.ck-zoom-in figcaption { font: 800 18px var(--f-body); color: var(--navy); text-align: center; }

/* ---- Home: rassicurazioni e regalo di Natale sotto "Scegli come viaggiare" ---- */
.start-rass { margin-top: 28px; }
.start-natale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; max-width: 980px; margin: 28px auto 0; padding: 18px 28px 18px 20px; border-radius: 24px; background: var(--red, #C8362E); color: var(--white); text-decoration: none; box-shadow: 0 14px 34px rgba(200, 54, 46, .25); transition: transform .2s ease, box-shadow .2s ease; }
.start-natale img { width: 96px; height: auto; margin: -30px 0 -10px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.start-natale b { display: block; font: 700 24px/1.15 var(--f-display); margin-bottom: 4px; }
.start-natale span { font-size: 15px; line-height: 1.45; opacity: .95; }
.start-natale .btn { background: var(--white); color: var(--red, #C8362E); border-color: var(--white); white-space: nowrap; }
.start-natale:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(200, 54, 46, .32); }
.start-natale:active { transform: scale(.98); }
.start-natale:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 700px) {
  .start-natale { grid-template-columns: auto 1fr; padding: 18px; gap: 14px 16px; }
  .start-natale img { width: 64px; margin: -26px 0 0; align-self: start; }
  .start-natale b { font-size: 20px; }
  .start-natale .btn { grid-column: 1 / -1; justify-self: start; }
}
.btn-natale { background: var(--white); color: var(--red); border-color: var(--white); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-natale:hover { background: #FFF4EE; color: var(--red); }
.btn-natale:active { transform: scale(.96); }
.btn-natale svg { margin-right: 2px; }

/* ---- Regala: solo busta / busta + quaderno (data-formato, prezzi.js), risparmio, promessa, domande ---- */
.gift-pricing .cycle { margin: 0 auto 28px; }
.gift-pricing .g-busta, .gift-pricing .g-bundle { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gift-pricing .g-busta .btn, .gift-pricing .g-bundle .btn { margin-top: auto; }
.g-perbusta { font-size: 14px; color: var(--navy-ink); font-weight: 600; margin: -4px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.g-perbusta s { color: var(--muted, #8a8f9c); font-weight: 500; }
.g-perbusta em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--white); background: var(--red); border-radius: 999px; padding: 2px 9px; }
/* riquadri sotto le card (stile Apple): 3 colonne, il primo alto due righe */
.gift-bento { width: 100%; list-style: none; margin: 16px auto 0; padding: 0; max-width: 1120px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 16px; }
.gb-tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--white); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.gb-txt { display: flex; flex-direction: column; gap: 4px; position: relative; }
.gb-txt b { font: 700 21px/1.15 var(--f-display); color: var(--navy); }
.gb-txt span { font-size: 15px; line-height: 1.45; color: var(--navy-ink); }
.gb-main { grid-row: span 2; background: var(--navy); border-color: var(--navy); justify-content: space-between; }
.gb-main .gb-txt b { color: var(--white); font-size: clamp(30px, 3vw, 40px); }
.gb-main .gb-txt span { color: rgba(255, 255, 255, .82); font-size: 17px; }
.gb-big { font: 700 clamp(90px, 10vw, 140px)/1 var(--f-display); color: var(--amber-light, #F5C26B); letter-spacing: -.02em; }
.gb-pics { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.gb-pics img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(27, 42, 85, .18)); }
.gb-sorprese .gb-pics img:first-child { transform: rotate(-5deg); }
.gb-sorprese .gb-pics img:last-child { height: 70%; transform: rotate(8deg); margin-left: -18px; }
.gb-nota { align-self: flex-start; max-width: 230px; background: #FBF4E4; border-radius: 6px; padding: 14px 16px; transform: rotate(-3deg); box-shadow: 0 8px 18px rgba(27, 42, 85, .14); font: 700 21px/1.2 var(--f-hand); color: #23347A; }
.gb-nota i { font-style: normal; color: var(--red); margin-left: 6px; }
.gb-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #EAF1FF; color: var(--navy); }
.gb-ico svg { width: 30px; height: 30px; }
@media (max-width: 900px) {
  .gift-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 12px; }
  .gb-main { grid-column: 1 / -1; grid-row: auto; }
  .gb-big { font-size: 80px; }
  .gb-tile { padding: 20px; border-radius: 22px; }
  .gb-txt b { font-size: 18px; }
  .gb-txt span { font-size: 14px; }
  .gb-pics { height: 72px; }
}
.gift-faq .faq-wrap { max-width: 760px; }
.gift-faq .faq-more { text-align: center; margin-top: 22px; }

/* ---- Regala: il ventaglio dei biglietti d'auguri ---- */
.gb-sped { grid-column: span 2; }
.rb { width: 100%; max-width: 1120px; margin: 44px auto 0; padding: 48px 24px 40px 48px; border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 24px; align-items: center; background: radial-gradient(90% 120% at 75% 40%, #FFE3B4 0%, #FFF3DF 60%); }
.rb-info { display: flex; flex-direction: column; gap: 12px; }
.rb-t { font: 700 clamp(32px, 3.2vw, 42px)/1.08 var(--f-display); color: var(--navy); text-wrap: balance; }
.rb-p { color: var(--navy-ink); font-size: 17px; line-height: 1.5; }
.rb-prezzo { display: flex; align-items: baseline; gap: 10px; }
.rb-prezzo b { font: 700 34px/1 var(--f-display); color: var(--navy); }
.rb-prezzo s { color: #6B5B45; font-size: 15px; }
.rb-scegli, .rb-durata { display: flex; flex-direction: column; gap: 12px; }
.rb-scegli[hidden], .rb-durata[hidden], .rb-nav [hidden] { display: none; }
.rb-scegli .btn { justify-content: center; }
.rb:not(.is-js) [data-rb-aggiungi], .rb:not(.is-js) .rb-nav > button { visibility: hidden; }
.rb-durata { background: var(--white); border-radius: 26px; padding: 18px; gap: 14px; box-shadow: 0 16px 38px rgba(27, 42, 85, .12); }
.rb-durata .rb-t { font-size: 27px; padding-inline: 4px; outline: none; }
.rb-ok { display: flex; align-items: center; gap: 8px; padding: 0 4px; min-height: 44px; color: var(--navy); font-size: 15px; line-height: 1.25; }
.rb-ok b { flex: 1; min-width: 0; }
.rb-ok-i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #2F7A3B; color: var(--white); }
.rb-ok-i svg { width: 14px; height: 14px; }
.rb-ok button, .rb-altro { border: 0; padding: 0 4px; min-height: 44px; background: none; color: var(--navy-ink); font: 700 15px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rb-ok button:active, .rb-altro:active { opacity: .6; }
.rb-m[hidden] { display: none; }
.rb-durata .rb-m:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.rb-righe { list-style: none; margin: 0; padding: 0 4px; }
.rb-righe li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; border-top: 1px solid var(--line); color: var(--navy); }
.rb-righe li > :first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 60px; line-height: 1.3; color: inherit; text-decoration: none; }
.rb-righe b { font-size: 16px; } .rb-righe small { font-size: 14px; color: var(--navy-ink); }
.rb-righe li > span { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-righe a:active { opacity: .6; }
.rb-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px 0; border-top: 1px solid var(--line); color: var(--navy); font-size: 15px; line-height: 1.3; }
.rb-tot b { font: 700 28px/1 var(--f-display); white-space: nowrap; }
.rb-durata .btn { justify-content: center; }
.rb-senza { display: block; padding: 11px 0; min-height: 44px; line-height: 22px; color: var(--navy); font-weight: 700; font-size: 15px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.rb-senza:active { opacity: .6; }
.rb-nota { text-align: center; padding-inline: 4px; font-size: 14px; line-height: 1.4; color: var(--navy-ink); }
.gift-pricing[data-formato="busta"] .rb-f-bundle, .gift-pricing[data-formato="bundle"] .rb-f-busta { display: none; }
.rb-vetrina { min-width: 0; --cw: 244px; --passo: 72px; }
.rb-palco { position: relative; height: calc(var(--cw) * 1.5 + 44px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rb-carta { position: absolute; left: 50%; top: 16px; width: var(--cw); aspect-ratio: 2 / 3; margin-left: calc(var(--cw) / -2); padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; --o: 0; --a: 0;
  transform: translate(calc(var(--o) * var(--passo)), calc(var(--a) * 9px)) rotate(calc(var(--o) * 5deg)) scale(calc(1 - var(--a) * .09)); z-index: calc(5 - var(--a)); }
.rb-carta img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 10px 26px rgba(27, 42, 85, .24); pointer-events: none; }
.rb-carta[data-o="-3"] { --o: -3; --a: 3; } .rb-carta[data-o="-2"] { --o: -2; --a: 2; } .rb-carta[data-o="-1"] { --o: -1; --a: 1; }
.rb-carta[data-o="1"] { --o: 1; --a: 1; } .rb-carta[data-o="2"] { --o: 2; --a: 2; } .rb-carta[data-o="3"] { --o: 3; --a: 3; }
.rb-carta[data-o="0"] { cursor: default; }
.rb-carta:not([data-o="0"]):hover img { filter: brightness(1.06); }
.rb-carta:active img { filter: brightness(.94); }
.rb-carta:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.rb-carta.is-scelto::after { content: '✓'; position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #2F7A3B; color: var(--white); font: 800 18px/1 var(--f-body); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.rb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rb-nav p { width: 250px; text-align: center; display: flex; flex-direction: column; }
.rb-nav b { font: 700 20px/1.2 var(--f-display); color: var(--navy); }
.rb-nav small { font-size: 14px; color: #6B5B45; font-variant-numeric: tabular-nums; }
.rb-nav > button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(27, 42, 85, .12); }
.rb-nav > button:hover { background: var(--navy); color: var(--white); }
.rb-nav > button:active { transform: scale(.92); }
.rb-nav > button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 1080px) { .rb-vetrina { --cw: 200px; --passo: 52px; } .rb { grid-template-columns: 300px minmax(0, 1fr); padding: 36px 16px 32px 32px; } }
@media (max-width: 840px) {
  .rb { grid-template-columns: minmax(0, 1fr); padding: 30px 20px 26px; border-radius: 24px; }
  .rb-vetrina { grid-row: 1; --cw: 188px; --passo: 34px; }
  .rb-nav { gap: 8px; } .rb-nav p { flex: 1; width: auto; min-height: 48px; justify-content: center; }
}
.rb { min-height: 580px; }
.rb-nav p { min-height: 68px; justify-content: center; align-items: center; }
.rb-nav b { text-wrap: balance; }
.rb-palco { isolation: isolate; }
/* scelto il biglietto, il ventaglio si chiude dietro di lui e lui viene avanti */
.rb-palco.is-chiuso .rb-carta { transform: translate(0, 0) rotate(0deg) scale(.94); visibility: hidden; pointer-events: none; }
.rb-palco.is-chiuso .rb-carta[data-o="0"] { transform: translate(0, 0) rotate(0deg) scale(1.08); visibility: visible; pointer-events: auto; cursor: pointer; }
.rb-carta img { transition: box-shadow .4s ease; }
.rb-palco.is-chiuso .rb-carta[data-o="0"] img { box-shadow: 0 22px 46px rgba(27, 42, 85, .32); }
.is-chiusa .rb-nav { padding-top: 10px; } .is-chiusa .rb-nav > button { display: none; }
.rb-palco.si-muove .rb-carta { transition: transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.rb-palco.si-muove.is-chiuso .rb-carta { transition: transform .55s cubic-bezier(.22, 1, .36, 1), visibility 0s .4s; }
.rb-palco.si-muove.is-chiuso .rb-carta[data-o="0"] { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
/* il ventaglio e la barra si vedono dal vivo mentre il bottone diventa la scelta della durata */
html.rb-fase.morphing::view-transition-old(.morph-shared) { display: none; animation: none; }
html.rb-fase.morphing::view-transition-new(.morph-shared) { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rb-palco.si-muove .rb-carta, .rb-palco.si-muove.is-chiuso .rb-carta, .rb-palco.si-muove.is-chiuso .rb-carta[data-o="0"] { transition: none; } }
@media (max-width: 840px) { .rb { min-height: 0; } .rb-durata { margin-inline: -8px; } }
@media (max-width: 1080px) and (min-width: 841px), (max-width: 380px) { .rb-durata { padding: 14px; } .rb-durata .rb-t { font-size: 24px; } }
/* Regala: le card sono il selettore della durata (quella scelta ha il bordo rosso, la spunta e il bottone pieno) */
.g-card { cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .45s var(--pronto); }
.g-card.is-scelta { border-color: var(--red); box-shadow: 0 18px 40px rgba(200, 50, 43, .14); background: linear-gradient(var(--peach), var(--white) 220px); }
.g-card.is-scelta .btn { background: var(--red); border-color: var(--red); color: var(--white); }
.g-card:active { transform: scale(.99); }
.g-spunta { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; background: var(--white); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.g-spunta svg { width: 18px; height: 18px; }
.g-card.is-scelta .g-spunta { background: #2F7A3B; border-color: #2F7A3B; color: var(--white); }
/* Regala nel periodo di Natale: il titolo sul rosso dei bottoni */
.page-hero.is-natale { background: var(--red); border-bottom: 0; color: var(--white); }
.page-hero.is-natale .h1, .page-hero.is-natale .lead { color: var(--white); }
.page-hero.is-natale .kicker { color: #FFE3B4; }
.page-hero.is-natale .page-hero-img img { filter: drop-shadow(0 18px 30px rgba(70, 8, 4, .45)); }
/* ---- Neve di Natale (neve.js): due canvas dentro la pagina, sopra le card e sotto la barra ---- */
.con-neve #main { position: relative; }
.neve { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; max-width: none; }
.con-neve .g-card:hover, .con-neve .gift-pricing .plans .btn:hover { transform: none; }      /* la neve è appoggiata: ciò che la regge non si solleva */
.con-neve .page-hero.is-natale .lead, .con-neve .page-hero.is-natale .kicker { position: relative; z-index: 5; }      /* i fiocchi passano dietro al testo */

/* ---- Il PDF non è un quaderno di carta: etichetta sulla copertina, nelle immagini busta + PDF ---- */
.pdf-img { position: relative; display: inline-block; align-self: center; line-height: 0; }
.pdf-tag { position: absolute; right: -6px; bottom: 2%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font: 800 13px/1.1 var(--f-body); white-space: nowrap; box-shadow: 0 6px 16px rgba(27, 42, 85, .28); z-index: 2; }
.pdf-tag svg { width: 15px; height: 15px; flex: none; }
.nv-art .nv-pdf { right: auto; left: 50%; bottom: 12px; transform: translateX(-50%); }
.nv-card:has(input[value="busta"]:checked) .nv-pdf { display: none; }
.checks li > svg { flex: none; }

/* ---------- Tra una pagina e l'altra (pagine.js) ---------- */
/* il vecchio contenuto resta fermo sotto e il nuovo gli affiora sopra: mai uno schermo vuoto */
html.vt-pagina::view-transition-old(root) { animation: vt-fermo .34s both; }
html.vt-pagina::view-transition-new(root) { animation: vt-affiora .34s cubic-bezier(.3, 0, .2, 1) both; }
html.vt-pagina::view-transition-group(v-barra) { z-index: 10; animation-duration: .34s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
html.vt-pagina::view-transition-old(v-barra), html.vt-pagina::view-transition-new(v-barra) { height: auto; animation-duration: .24s; }
@keyframes vt-fermo { from, to { opacity: 1; } }
@keyframes vt-affiora { from { opacity: 0; } to { opacity: 1; } }
/* i nomi fissi di Morph non partecipano: diventerebbero pezzi staccati sopra la pagina */
html.vt-pagina .cycle .cycle-pill, html.vt-pagina .cycle .cycle-b, html.vt-pagina .m-scrim { view-transition-name: none !important; }

/* Regala, cambio formato dal vivo (prezzi.js): le due versioni occupano lo stesso spazio e sfumano una nell'altra; pastiglia e testi sono elementi veri */
.g-v { display: grid; flex: 1; }
.g-v > div { grid-area: 1 / 1; min-width: 0; }
.g-v .plan-price, .g-v .g-perbusta, .g-v .checks li + li { transition: opacity .26s ease, filter .26s ease, transform .42s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.gift-pricing[data-formato="busta"] .g-bundle, .gift-pricing[data-formato="bundle"] .g-busta { pointer-events: none; }
/* bottone, "N buste" e "2 mesi in regalo" sono identici nelle due versioni: si scambiano senza sfumare. Cambiano solo prezzi e riga del PDF */
.gift-pricing[data-formato="busta"] .g-bundle > *, .gift-pricing[data-formato="bundle"] .g-busta > * { visibility: hidden; }
.gift-pricing[data-formato="busta"] .g-bundle :is(.plan-price, .g-perbusta, .checks li + li), .gift-pricing[data-formato="bundle"] .g-busta :is(.plan-price, .g-perbusta, .checks li + li) { visibility: hidden; opacity: 0; filter: blur(3px); transform: translateY(5px); transition: opacity .22s ease, filter .22s ease, transform .22s ease, visibility 0s .22s; }
.gift-pricing .cycle .cycle-pill { view-transition-name: none; }
.gift-pricing .rb-f-busta, .gift-pricing .rb-f-bundle { animation: g-entra .3s ease both; }
@keyframes g-entra { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gift-pricing[data-formato] .g-v :is(.plan-price, .g-perbusta, .checks li + li) { transition: none; } .gift-pricing .rb-f-busta, .gift-pricing .rb-f-bundle { animation: none; } }

/* ---- Illustrazioni protette dai gesti normali (immagini.js): niente trascinamento, pressione lunga o selezione ---- */
img, picture, canvas, video, svg image { -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
a:has(img), button:has(img) { -webkit-touch-callout: none; }
button.tp-tavola, button.tp-leggi { border: 0; font: inherit; cursor: zoom-in; text-align: left; }
button.tp-tavola { display: block; } button.tp-leggi { background: none; padding: 0; font-weight: 800; cursor: pointer; }
.tav-dlg { width: min(760px, calc(100vw - 32px)); } .tav-dlg img { display: block; width: 100%; height: auto; }
.tav-dlg .bg-x { position: sticky; float: right; margin: 12px 12px -56px 0; right: 12px; font-size: 18px; }

/* ---------- I doni di Voya (doni.js): collezione, pagina tappa, pagina del QR ---------- */
.gifts { scroll-margin-top: 70px; }
.gift-list li { display: block; }
.dn-voce { width: 100%; padding: 12px 6px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.dn-voce .gift-coin { transition: transform .4s var(--pronto); position: relative; }
.dn-voce:hover .gift-coin { transform: translateY(-4px); } .dn-voce:active .gift-coin { transform: scale(.94); }
.dn-voce:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.dn-voce.is-segreto .gift-coin { background: var(--white); color: #6B7499; border: 3px dashed #C7CCE0; }
.dn-voce.is-arrivato .gift-coin { background: radial-gradient(circle at 50% 45%, #FFF6DF, #FFDDA0); }
.dn-voce.is-arrivato .gift-coin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--amber); animation: dn-respiro 2.6s ease-in-out infinite; }
@keyframes dn-respiro { 0%, 100% { transform: scale(.96); opacity: .25; } 50% { transform: scale(1.07); opacity: .9; } }
.dn-voce .dn-pacco { width: 58px; height: 58px; overflow: visible; }
.dn-voce.is-arrivato:hover .dn-coperchio { transform: translateY(-7px) rotate(-5deg); }
.dn-pacco .dn-coperchio { transform-origin: 20% 60%; transform-box: fill-box; transition: transform .45s var(--pronto); }
.dn-voce.is-arrivato .gift-name { color: var(--orange-ink); }
.dn-voce.is-scoperto .gift-coin { background: none; }
.dn-medaglia { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #FFE9B8, #F5B94F 55%, #D98E2B); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), inset 0 0 0 7px rgba(160, 92, 12, .25), 0 10px 22px rgba(160, 92, 12, .3); color: #6E3B06; }
.dn-medaglia svg { width: 50%; height: 50%; } .dn-medaglia path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dn-voce.is-nuovo .dn-medaglia { animation: dn-posa .7s .35s var(--pronto) both; }
@keyframes dn-posa { 50% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(245, 185, 79, .3), 0 10px 30px rgba(160, 92, 12, .4); } }
.dn-tutti { text-align: center; font-size: 19px; color: var(--navy); }
.dn-riga { flex-direction: row; text-align: left; gap: 22px; padding: 6px 0; max-width: 560px; } .dn-riga .gift-coin { flex: none; }
.dn-riga .gift-name { display: block; font: 700 clamp(30px, 3.2vw, 42px)/1.05 var(--f-hand); color: var(--red) !important; margin-bottom: 6px; }
.dn-riga .gift-where { display: block; font-size: 18px; font-weight: 400; line-height: 1.45; color: var(--navy-ink); }
.dn-dlg { width: min(460px, calc(100vw - 32px)); }
.dn-dlg-in { padding: 52px 32px 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; } .dn-dlg-in[hidden] { display: none; }
.dn-dlg-in .dn-pacco { width: 130px; height: 130px; overflow: visible; } .dn-dlg-in h3 { font: 700 28px/1.1 var(--f-display); } .dn-dlg-in p { font-size: 17px; color: var(--navy-ink); line-height: 1.5; }
.dn-carta { color: var(--navy); } .dn-carta .dn-medaglia { width: 116px; height: 116px; }
.dn-da { font-weight: 800; font-size: 14px; color: var(--orange-ink); }
.dn-carta .dn-titolo { font: 700 clamp(34px, 8vw, 46px)/1.02 var(--f-display); text-wrap: balance; }
.dn-carta .dn-frase { font: 700 25px/1.25 var(--f-hand); color: #23347A; text-wrap: balance; }
.dn-domanda { width: 100%; margin-top: 8px; padding: 16px 18px; border-radius: 18px; background: #FFF3DF; } .dn-domanda small { font-weight: 800; font-size: 14px; color: var(--orange-ink); } .dn-domanda p { margin-top: 4px; font-weight: 700; font-size: 18px; color: var(--navy); }
.dn-quando { font-size: 14px; color: var(--navy-ink); }
/* la pagina del QR */
body.ha-dono { background: #0F1838; } body.ha-dono .site-header, body.ha-dono .site-footer { display: none; }
.dn { --p: 0; position: relative; min-height: 100svh; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; overflow: hidden; color: var(--white); background: radial-gradient(90% 70% at 50% 48%, rgba(245, 185, 79, calc(.1 + var(--p) * .5)), transparent 65%), radial-gradient(120% 90% at 50% 0, #2B3D78, #0F1838 70%); }
.dn.is-aperto { --p: .5 !important; }
.dn-cielo i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 6px 1px rgba(255, 236, 170, .6); animation: pro-twinkle 3.2s ease-in-out var(--d) infinite; }
.dn-chiuso { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; } .dn-chiuso[hidden], .dn-carta[hidden], .dn-vai[hidden] { display: none; }
.dn h1 { font: 700 clamp(34px, 8.5vw, 56px)/1.08 var(--f-display); text-wrap: balance; max-width: 14ch; }
.dn-tieni { position: relative; width: 250px; height: 250px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.dn-tieni:focus-visible { outline: 3px solid #F5C26B; outline-offset: 6px; }
.dn .dn-pacco { width: 190px; height: 190px; overflow: visible; }
.dn-tieni .dn-pacco { transform: scale(calc(1 + var(--p) * .16)); filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .4)); animation: dn-galleggia 3.4s ease-in-out infinite; }
.dn-tieni.is-giu .dn-pacco { animation: dn-trema .12s linear infinite; } .dn-tieni.is-giu .dn-coperchio { transform: translateY(calc(var(--p) * -10px)) rotate(calc(var(--p) * -4deg)); transition: none; }
.dn-alone { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 222, 150, .95), rgba(245, 185, 79, .35) 45%, transparent 70%); opacity: calc(.12 + var(--p) * .88); transform: scale(calc(.8 + var(--p) * .7)); }
.dn-tieni.is-esplode .dn-pacco { animation: none; } .dn-tieni.is-esplode .dn-coperchio { transform: translateY(-120px) rotate(-38deg); opacity: 0; transition: transform .5s cubic-bezier(.2, .9, .3, 1), opacity .4s .12s; }
.dn-tieni.is-esplode .dn-alone { transform: scale(2.6); opacity: 1; transition: transform .5s ease-out; }
@keyframes dn-galleggia { 50% { translate: 0 -9px; } }
@keyframes dn-trema { 0%, 100% { rotate: calc(var(--p) * -3.5deg); } 50% { rotate: calc(var(--p) * 3.5deg); } }
.dn-invito { font: 700 27px/1.2 var(--f-hand); color: #FFE3B4; min-height: 1.3em; }
.dn-scintille { position: fixed; inset: 0; pointer-events: none; z-index: 30; } .dn-scintille i { position: absolute; background: #FFE08A; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.dn-scheda { position: relative; width: min(480px, 100%); padding: 34px 28px 28px; border-radius: 30px; background: var(--white); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); outline: none; }
.dn-vai { position: relative; } .dn-attesa { max-width: 34ch; font-size: 19px; line-height: 1.45; } .dn .btn-line { color: var(--white); border-color: var(--white); } .dn .btn-line:hover { background: var(--white); color: var(--navy); }
.dn-conto { display: flex; gap: 10px; } .dn-conto span { min-width: 70px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; } .dn-conto b { font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; } .dn-conto small { font-size: 13px; color: #D5DBF0; }
html.vt-pagina::view-transition-group(dono-volo) { z-index: 20; animation-duration: .8s; animation-timing-function: cubic-bezier(.3, 1.15, .4, 1); }
html.vt-pagina::view-transition-old(dono-volo), html.vt-pagina::view-transition-new(dono-volo) { width: 100%; height: 100%; animation-duration: .4s; }
@media (prefers-reduced-motion: reduce) { .dn-tieni .dn-pacco, .dn-cielo i, .dn-voce.is-arrivato .gift-coin::after, .dn-voce.is-nuovo .dn-medaglia { animation: none; } }
@media (max-width: 520px) { .gift-list { grid-template-columns: repeat(3, 1fr); gap: 10px 6px; } .dn-voce .gift-coin, .dn-voce .dn-medaglia { width: 82px; height: 82px; } .dn-dlg-in { padding-inline: 22px; } }
.gift-conti { display: flex; align-items: center; gap: 18px; }
.gift-testi { display: flex; flex-direction: column; gap: 4px; max-width: 190px; }
.gift-conti .gift-count { padding: 0; background: none; border-radius: 0; font-size: 21px; line-height: 1.2; text-wrap: balance; color: var(--navy); }
.gift-mia { font-weight: 800; font-size: 15px; color: var(--red); } .gift-mia[hidden] { display: none; }
.dn-anello { flex: none; width: 124px; height: 124px; overflow: visible; }
.dn-anello path { fill: none; stroke-linecap: round; }
.dn-anello .is-pieno { stroke: #EFA63A; stroke-width: 8.5; }
.dn-anello .is-punti { stroke: #C3C9DE; stroke-width: 3.6; stroke-dasharray: 0 5.6; }
.dn-anello-mio { display: none; } .dn-anello-mio.is-on { display: block; }
.dn-anello-mio .is-pieno { stroke: var(--red); stroke-width: 6.5; } .dn-anello-mio .is-punti { stroke: #E5C9C4; stroke-width: 2.8; stroke-dasharray: 0 5.6; }
.dn-anello text { font: 700 40px var(--f-display); fill: var(--navy); }
.gift-conti.is-armato .is-pieno { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; opacity: 0; }
.gift-conti.is-armato.is-in .is-pieno { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .5s cubic-bezier(.3, .8, .3, 1) calc(.15s + var(--i) * .09s), opacity .05s calc(.15s + var(--i) * .09s); }
.gift-conti.is-armato .dn-anello-mio .is-pieno { transition-delay: calc(.5s + var(--i) * .09s) !important; }
.dn-carta .dn-passaporto { font-size: 15px; line-height: 1.45; color: var(--navy-ink); text-wrap: balance; }

@media (min-width: 861px) { .gifts-head { flex-wrap: nowrap; } .gifts-head .section-head { flex: 0 1 auto; min-width: 0; } .gift-conti { flex: none; margin-left: auto; } }
/* Il viaggio: la collezione si vede dal planisfero intero, non dentro un continente */
main:has(.mappa:not([data-stato="mondo"])) #doni { display: none; }
.gifts-mini .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px 48px; } .gifts-mini .gift-conti { margin: 0; } .gm-testo { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Home "Voya è in …!": la scena della tappa di oggi (data/scene.mjs + ora.js) ---------- */
.ora { position: relative; isolation: isolate; overflow: hidden; overflow: clip; color: var(--white); background: linear-gradient(180deg, #081036 0, #122563 38%, #2C4B9C 66%, #7C7BC4 88%); min-height: clamp(640px, calc(100svh - 84px), 900px); display: flex; }
.ora ::selection { background: var(--amber); color: var(--navy-deep); }
.ora-scena, .ora-scena > *, .ora-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ora-scena { z-index: -1; }
.ora-scena > .ora-stelle { object-fit: cover; object-position: 50% 0; max-width: none; }
.ora-scena > .ora-aurora { height: 92%; }
/* il paesaggio è UNA immagine ferma: più livelli a tutto schermo che si muovono riempiono la memoria della scheda grafica e i monti lampeggiano */
.ora-scena > .ora-terra { inset: auto 0 0; height: clamp(480px, 33.34vw, 82%); }  /* niente aspect-ratio: con min-height Safari allargava il riquadro oltre lo schermo */
.ora-terra img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 100%; }
/* crepuscolo rosa di mezzogiorno */
.ora-rosa { background: linear-gradient(180deg, rgba(88, 92, 190, .5) 0, rgba(232, 138, 170, .62) 52%, rgba(255, 190, 150, .55) 74%, rgba(255, 200, 190, .12) 100%); opacity: 0; visibility: hidden; transition: opacity 2s, visibility 0s 2s; }
.ora[data-luce="rosa"] .ora-rosa { opacity: 1; visibility: visible; transition-delay: 0s; } .ora[data-luce="rosa"] .ora-aurora { opacity: .3; } .ora[data-luce="rosa"] .ora-stelle { opacity: .25; }
.ora-velo { background: radial-gradient(ellipse 66% 58% at 10% 42%, rgba(8, 15, 52, .84) 0, rgba(8, 15, 52, .74) 50%, rgba(8, 15, 52, .36) 78%, rgba(8, 15, 52, 0) 100%); }  /* finisce prima della neve: lì il bianco resta bianco */
@media (min-width: 761px) { .ora-scena > .ora-velo { height: calc(100% - 100px); bottom: auto; } }
.ora-fx { z-index: 2; }
.ora > .wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 116px; }
.ora-testo { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ora h1 { font-weight: 700; font-size: clamp(46px, 5.4vw, 78px); line-height: 1; text-shadow: 0 3px 26px rgba(4, 8, 34, .5); }
.ora-riga { font: 700 clamp(25px, 2.2vw, 32px)/1.15 var(--f-hand); color: #FFD98C; max-width: 24em; text-wrap: balance; min-height: 2.3em; text-shadow: 0 1px 12px rgba(4, 8, 34, .6); }
.ora-lead { font-size: 19px; max-width: 38ch; color: #E3EAFB; text-shadow: 0 1px 10px rgba(4, 8, 34, .5); }
.ora-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.ora-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 217, 140, .7); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ora-link:hover { color: #FFD98C; } .ora-link:active { transform: scale(.97); }
.ora-meta { font-size: 15px; font-weight: 700; color: #D3DEF8; text-shadow: 0 1px 10px rgba(4, 8, 34, .7); }
.ora-art { position: relative; align-self: stretch; z-index: 3; }
.ora-voya { position: absolute; left: 4%; top: 2%; width: min(58%, 360px); padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ora-volpe { display: block; transform-origin: 50% 80%; }
.ora-volpe img { display: block; width: 100%; height: auto; animation: voya-fluttua 3.8s ease-in-out infinite; will-change: transform; }
.ora-voya:active .ora-volpe img { scale: .97; }
.ora.is-attesa .ora-voya { visibility: hidden; }
.ora.is-via .ora-voya { display: none; }
.ora-ciao { position: absolute; left: 74%; top: -2%; padding: 8px 16px 10px; border-radius: 22px 22px 22px 4px; background: var(--white); color: var(--navy); pointer-events: none; font: 700 26px/1 var(--f-hand); white-space: nowrap; opacity: 0; transform: translateY(8px) scale(.8); transform-origin: 0 100%; transition: opacity .25s, transform .5s cubic-bezier(.3, 1.35, .45, 1); }
.is-ciao .ora-ciao { opacity: 1; transform: none; }
.ora-cart { position: absolute; right: 0; top: 30%; width: min(34%, 208px); padding: 8px; border: 0; border-radius: 8px; background: var(--white); color: var(--navy); cursor: pointer; text-align: left; font: inherit; transform: rotate(5deg); box-shadow: 0 24px 44px rgba(4, 8, 34, .5); transition: transform .5s cubic-bezier(.3, 1.35, .45, 1); }
@media (hover: hover) { .ora-cart:hover { transform: rotate(1deg) translateY(-7px); } }
.ora-cart:active { transform: rotate(3deg) scale(.97); }
.ora-cart .vc-bordo { display: block; padding: 6px; } .ora-cart .vc-finestra { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 2px; } .ora-cart .vc-bordo img { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 0; }  /* solo Voya sulla stella: niente foglietti, che sono in italiano */
.ora-cart .vc-didascalia { display: flex; flex-wrap: wrap; padding: 8px 6px 2px; gap: 0 10px; } .ora-cart .vc-luogo { font-size: 25px; } .ora-cart-apri { font-weight: 800; font-size: 13px; color: var(--orange-ink); }
.ora-cart .stamp { width: 62px; right: -16px; top: -18px; }
.ora a:focus-visible, .ora button:focus-visible { outline: 3px solid #FFD98C; outline-offset: 4px; border-radius: 8px; }
/* la busta della sezione dopo si affaccia sulla neve */
@media (min-width: 900px) { .ora ~ .bsl .bsl-grid { align-items: flex-start; } .ora ~ .bsl .bsl-img { margin-top: -138px; } }
/* la neve scende oltre il bordo della scena, invece di finire con un taglio dritto */
.ora ~ .bsl { position: relative; z-index: 1; }
.ora ~ .bsl::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: clamp(34px, 4vw, 72px); pointer-events: none; filter: drop-shadow(0 5px 7px rgba(90, 110, 170, .16));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V22C1340 10 1260 52 1130 46S930 14 800 24 600 58 460 44 260 12 150 26 50 46 0 38Z' fill='%23FBFDFF'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.ora ~ .bsl > .wrap { position: relative; }
/* i pezzi veri che escono dalla busta: riempiono la colonna fino in fondo al testo */
.bsl-kit { position: relative; display: block; max-width: 560px; aspect-ratio: 540 / 752; align-self: flex-start; }
.bsl-img.bsl-kit img { position: absolute; max-width: none; height: auto; filter: drop-shadow(0 14px 18px rgba(27, 42, 85, .2)); transition: transform .5s cubic-bezier(.3, 1.35, .45, 1); }
.bsl-img.bsl-kit .k-busta { width: 100%; left: 0; top: 0; z-index: 3; filter: drop-shadow(0 22px 30px rgba(27, 42, 85, .26)); }
.bsl-img.bsl-kit .k-pass { width: 33%; left: 2%; top: 46%; z-index: 2; transform: rotate(-7deg); }
.bsl-img.bsl-kit .k-cart { width: 72%; right: 0; left: auto; top: 46.5%; z-index: 1; transform: rotate(4deg); }
.bsl-img.bsl-kit .k-imb { width: 66%; right: 3%; left: auto; top: 79%; z-index: 4; transform: rotate(-4deg); }
@media (hover: hover) { .bsl-img.bsl-kit .k-pass:hover { transform: rotate(-4deg) translateY(10px); } .bsl-img.bsl-kit .k-cart:hover { transform: rotate(2deg) translateY(10px); } .bsl-img.bsl-kit .k-imb:hover { transform: rotate(-1deg) translateY(-6px); } }
@media (max-width: 899px) { .bsl-kit { flex: 0 0 100%; width: 100%; margin-inline: auto; } .ora ~ .bsl { padding-top: 96px; } }
@media (prefers-reduced-motion: reduce) { .bsl-img.bsl-kit img { transition: none; } }
/* retro della cartolina */
.ora-dlg { border: 0; padding: 12px; width: min(800px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; border-radius: 10px; color: var(--navy); background: repeating-linear-gradient(135deg, #C8322B 0 13px, #fff 13px 26px, #2D4C9E 26px 39px, #fff 39px 52px); box-shadow: 0 30px 80px rgba(8, 15, 52, .5); }
.ora-dlg::backdrop { background: rgba(8, 15, 52, .68); }
.ora-retro { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; background: var(--cream); border-radius: 4px; min-height: 400px; }
.ora-scrive { padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; font: 700 27px/1.22 var(--f-hand); color: #23408E; text-wrap: pretty; }
.ora-firma { margin-top: auto; padding-top: 8px; font-size: 36px; color: var(--orange-ink); }
.ora-indirizzo { border-left: 2px solid var(--line); margin: 28px 0; padding: 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ora-indirizzo .stamp { position: static; align-self: flex-end; margin: 34px 4px auto 0; }
.ora-indirizzo img { width: 108px; align-self: center; }
.ora-indirizzo .btn { width: 100%; justify-content: center; } .ora-indirizzo .ora-link { align-self: center; color: var(--navy); }
.ora-x { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font: 400 30px/1 var(--f-body); color: var(--navy); cursor: pointer; } .ora-x:hover { color: var(--red); } .ora-x:active { transform: scale(.92); }
@media (max-width: 760px) {
  .ora > .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 34px; padding-bottom: 84px; gap: 0; }
  .ora-testo { display: contents; } .ora-testo > * { order: 2; margin-bottom: 14px; } .ora h1, .ora-riga { order: 0; }
  .ora h1 { font-size: clamp(42px, 13vw, 60px); } .ora-art { order: 1; height: 268px; margin: 14px 0 22px; }
  .ora-voya { left: 0; top: 0; width: 220px; } .ora-cart { bottom: 0; } .ora-ciao { left: 70%; top: 2%; } .ora-ctas .btn { width: 100%; justify-content: center; padding-inline: 14px; }
  .ora-ctas { justify-content: center; justify-self: stretch; } .ora-velo { background: linear-gradient(180deg, rgba(8, 15, 52, .5) 0, rgba(8, 15, 52, .15) 45%, rgba(8, 15, 52, .72) 70%, rgba(8, 15, 52, .1) 100%); }
  .ora-retro { grid-template-columns: 1fr; } .ora-scrive { padding: 40px 20px 18px; font-size: 25px; } .ora-indirizzo { border: 0; border-top: 2px solid var(--line); margin: 0 18px; padding: 18px 0 14px; gap: 10px; } .ora-indirizzo .stamp, .ora-indirizzo img { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ora-volpe img { animation: none; } .ora-cart, .ora-ciao, .ora-rosa { transition: none; } }

@media (max-width: 760px) { .ora .ora-ctas .btn { font-size: 15.5px; gap: 8px; } .ora-cart { right: 8px; top: auto; width: 132px; } .ora-cart .stamp { right: -12px; width: 50px; padding: 8px 2px; } .ora-cart .stamp b { font-size: 15px; } .ora-cart .vc-luogo { font-size: 22px; } .ora-cart .vc-didascalia { gap: 0; } }
.ora-indirizzo .btn { text-align: center; }
@media (max-width: 760px) { .ora > .wrap { padding-bottom: 285px; } .ora-scena > .ora-terra { height: 400px; } .ora-velo { background: linear-gradient(180deg, rgba(8, 15, 52, .5) 0, rgba(8, 15, 52, .15) 45%, rgba(8, 15, 52, .6) 62%, rgba(8, 15, 52, .3) 74%, rgba(8, 15, 52, 0) 82%); } }
@media (min-width: 761px) { .ora.is-via h1 { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.08; } }
.ora.is-via h1 { text-wrap: balance; }
@media (max-width: 1100px) { .ora-cart { right: 14px; } }
/* fuori schermo o a pannello aperto la scena non lavora (ora.js) */
.ora.is-ferma .ora-volpe img { animation-play-state: paused; }
.ora.is-subito .ora-rosa { transition: none; }
@media (min-width: 761px) and (max-width: 1180px) { .ora > .wrap { gap: 20px; } .ora-voya { left: 0; width: min(54%, 320px); } .ora-cart { top: 44%; width: 32%; max-width: 180px; } .ora-ctas .btn { padding-inline: 20px; } }
@media (max-width: 760px) {
  .ora > .wrap { padding-top: 30px; } .ora-riga { min-height: 3.45em; } .ora-art { --a: clamp(170px, 31svh, 268px); height: var(--a); margin: 8px 0 18px; } .ora-voya { width: min(calc(var(--a) * .82), 54vw); } .ora-cart { width: min(132px, 34vw); }
}
@media (max-width: 380px) { .ora .ora-ctas .btn { font-size: 14px; padding-inline: 10px; } .ora h1 { font-size: 38px; } .ora-riga { font-size: 23px; } .ora-art { --a: clamp(150px, 27svh, 230px); } .ora-cart { width: 112px; } .ora-cart-apri { font-size: 12px; } }
@media (max-width: 340px) { .ora .ora-ctas .btn { font-size: 13px; gap: 6px; } .ora h1 { font-size: 34px; } .ora-riga { font-size: 21px; } .ora-art { --a: 140px; } .ora-cart { width: 84px; } .ora-cart .vc-luogo { font-size: 17px; } .ora-cart-apri { font-size: 11px; line-height: 1.2; } .ora-cart .stamp { display: none; } }
@media (min-width: 761px) and (max-width: 1180px) { .ora-cart { width: 152px; } .ora-cart .stamp { width: 52px; height: 66px; right: -12px; } .ora-cart .stamp b { font-size: 16px; } .ora-ctas .btn { font-size: 16px; padding-inline: 16px; gap: 8px; } }
.ora-terra::after { content: ''; position: absolute; inset: auto 0 0; height: 44px; background: linear-gradient(rgba(251, 253, 255, 0), #FBFDFF); }
@media (min-width: 761px) { .ora > .wrap { padding-bottom: 158px; } .ora-scena > .ora-velo { height: calc(100% - 70px); background: radial-gradient(ellipse 68% 60% at 10% 40%, rgba(8, 15, 52, .84) 0, rgba(8, 15, 52, .78) 60%, rgba(8, 15, 52, .56) 82%, rgba(8, 15, 52, 0) 100%); } .ora-meta { color: var(--white); text-shadow: 0 0 3px rgba(8, 15, 52, .9), 0 1px 10px rgba(8, 15, 52, .95); } }

/* ---------- Biglietto del regalo da stampare (pageGiftCard, biglietto-regalo.js) ----------
   Il biglietto è un "container": testi in cqw, così l'anteprima e la stampa (190 mm) hanno le stesse proporzioni. */
.br .section-head { margin-bottom: 28px; }
.br-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.br-form { display: grid; gap: 18px; }
.br-form select { width: 100%; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 16px; min-height: 48px; font: 600 16px var(--f-body); background: var(--white); color: var(--navy); }
.br-form select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.br-form .small { margin: 0; }
.br-anteprima { position: sticky; top: 110px; }
.br-taglio { border: 2px dashed #bdb5a4; border-radius: 6px; padding: 10px; background: var(--white); }
.br-carta { container-type: inline-size; aspect-ratio: 190 / 128; display: grid; grid-template-columns: 40% minmax(0, 1fr); background: #FBF6EC; border-radius: 4px; overflow: hidden; color: var(--navy); }
.br-arte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; background: radial-gradient(circle at 35% 25%, #2e4a86, var(--navy) 72%); padding: 3cqw; }
.br-arte img { width: 88%; height: auto; }
.br-logo { font: 700 4.4cqw/1 var(--f-display); letter-spacing: .3em; margin-right: -.3em; color: var(--amber-light); }
.br-testo { display: flex; flex-direction: column; justify-content: center; gap: 1cqw; padding: 4.5cqw 5cqw; min-width: 0; overflow: hidden; }
.br-testo p { margin: 0; }
.br-k { font: 700 3.8cqw/1.1 var(--f-hand); color: var(--orange-ink); }
.br-nome { font: 700 calc(var(--nome, 7) * 1cqw)/1.05 var(--f-display); overflow-wrap: anywhere; }
.br-nome.vuoto { opacity: .3; }
.br-parte { font: 700 3.3cqw/1.2 var(--f-display); margin-top: 1.4cqw !important; }
.br-desc { font: 600 2.3cqw/1.45 var(--f-body); color: var(--navy-ink); }
.br-durata { font: 800 1.9cqw/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: .6cqw !important; }
.br-msg { font: 700 3.3cqw/1.2 var(--f-hand); white-space: pre-line; overflow-wrap: anywhere; margin-top: 1cqw !important; }
.br-da { font: 600 2.2cqw/1.3 var(--f-body); }
.br-da b { font: 700 3.3cqw/1 var(--f-hand); }
.br-msg[hidden], .br-da[hidden] { display: none; }
@media (max-width: 860px) { .br-grid { grid-template-columns: 1fr; } .br-anteprima { position: static; order: -1; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body.pag-br { background: #fff; }
  body.pag-br > :not(main), body.pag-br .section-head, body.pag-br .br-form { display: none !important; }
  body.pag-br main, body.pag-br .section, body.pag-br .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.pag-br .br-grid { display: block; }
  body.pag-br .br-anteprima { position: static; }
  body.pag-br .br-taglio { width: 190mm; box-sizing: border-box; padding: 0; border-color: #999; }
  body.pag-br .br-carta, body.pag-br .br-arte { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
