/* ==========================================================================
   Ventiquattro V2 — "Inverno gentile"
   Cielo ghiacciato, neve, abeti in silhouette, rosso Natale e verde salvia.
   Titoli grossi e geometrici (Poppins), scritte spaziate (Montserrat), corsivo a mano (Caveat).
   Questo file va caricato DOPO style.css / calendar.css: ridefinisce i token e i componenti.
   ========================================================================== */

@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* palette ricavata dai tre riferimenti */
  --sky: #b0dce1;          /* cielo (cartolina 1) */
  --sky-soft: #d6eef1;
  --cyan: #aaf3ff;         /* azzurro vivo (cartolina 2) */
  --cyan-soft: #d9f8fd;
  --teal: #334e5a;         /* testo e titoli */
  --teal-deep: #243b45;
  --red: #e8352f;          /* rosso Natale */
  --red-deep: #b72621;
  --brick: #b73f2f;        /* rosso mattone (cartolina 3) */
  --sage: #6a7f5c;         /* verde salvia (cartolina 3) */
  --sage-light: #8ba67d;
  --sage-deep: #52663f;
  --charcoal: #3d393b;     /* abeti */
  --peach: #f6bfa4;
  --snow: #ffffff;

  /* ri-mappatura dei token storici: tutto il sito si colora di conseguenza */
  --night-900: #1f343e; --night-800: #28434f; --night-700: #334e5a; --night-600: #416071;
  --pine: var(--sage); --pine-light: var(--sage-light);
  --red-900: #5c1511; --red-700: #a3201c; --red-600: #c92a25; --red-500: var(--red); --red-400: #f2625c;
  --gold-100: #ffffff; --gold-200: #e9fafc; --gold-300: var(--cyan); --gold-400: #5fb9c7; --gold-500: #3b94a3; --gold-600: #2c7482;
  --cream-50: #ffffff; --cream-100: #eef9fb; --cream-200: #dcf1f4; --cream-300: #bfe0e6;
  --ink: var(--teal); --ink-soft: #4a6772; --ink-mute: #567380;

  --gold-foil: linear-gradient(135deg, #e4fbff, var(--cyan));
  --gold-text: linear-gradient(120deg, var(--cyan), var(--cyan));
  --red-velvet: linear-gradient(140deg, #f0463f, #d62d27);

  --font-display: 'Poppins', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;

  --radius-sm: 12px; --radius: 22px; --radius-lg: 34px;
  --shadow-soft: 0 18px 36px -22px rgba(36, 59, 69, .45);
  --shadow-deep: 0 30px 60px -24px rgba(36, 59, 69, .55);
  --glow-gold: 0 0 0 3px rgba(255, 255, 255, .8);
}

body { background: var(--sky); color: var(--teal); font-size: 16.5px; line-height: 1.7; font-weight: 400; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; font-variation-settings: normal; color: var(--teal); }
.hero h1, .section-head h2, .final-cta h2, .auth-box h1, .page-title h1 {
  font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.04;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
h1 em, h2 em, h3 em, .section-head em {
  font-family: var(--font-script); font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0;
  color: var(--red); font-size: 1.28em; line-height: .8; display: inline-block; transform: rotate(-3deg) translateY(.04em); padding: 0 .06em;
}
.dark h2 em, .dark h3 em, .sage-bg h2 em { color: var(--cyan); }
.gold-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--cyan); animation: none; }
.script { font-weight: 700; }
.script-red { color: var(--red); }
.eyebrow {
  font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before, .eyebrow::after { width: 22px; height: 2px; border-radius: 2px; opacity: 1; background: var(--red); }
.lead { color: var(--ink-soft); font-weight: 400; }
.dark .lead { color: rgba(255, 255, 255, .88); }
.link { color: var(--red-600); font-weight: 700; }
.dark .link { color: var(--cyan); }
.muted { color: var(--ink-mute); }

/* ---------- Pulsanti: adesivi piatti, con "spessore" ---------- */
.btn {
  --bg: var(--red);
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 1em 1.8em; border-radius: 999px; color: #fff;
  box-shadow: 0 5px 0 var(--red-deep);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .2s;
}
.btn::after { display: none; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--red-deep); filter: none; background: #f04640; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--red-deep); }
.btn-ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2.5px var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; box-shadow: inset 0 0 0 2.5px var(--teal); transform: none; }
.dark .btn-ghost, .sage-bg .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2.5px #fff; }
.dark .btn-ghost:hover, .sage-bg .btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-gold { background: #fff; color: var(--red); box-shadow: 0 5px 0 rgba(36, 59, 69, .28); }
.btn-gold:hover { background: #fff; box-shadow: 0 3px 0 rgba(36, 59, 69, .28); }
.btn-dark { background: var(--teal); box-shadow: 0 5px 0 var(--teal-deep); }
.btn-dark:hover { background: #3d5e6c; box-shadow: 0 3px 0 var(--teal-deep); }
.btn-sm { padding: .72em 1.3em; font-size: .78rem; }
.btn-lg { padding: 1.15em 2.2em; font-size: .95rem; }
.btn-danger { background: #fff; box-shadow: inset 0 0 0 2.5px var(--red); color: var(--red-600); }
.btn-danger:hover { background: var(--red); color: #fff; transform: none; }

/* ---------- Header ---------- */
.site-header::before { background: rgba(255, 255, 255, .88); box-shadow: 0 2px 0 rgba(51, 78, 90, .08); }
.logo { color: var(--teal); font-family: var(--font-display); font-size: 1.1rem; gap: 11px; }
.logo b { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.12em; }
.logo i { font-family: var(--font-script); font-weight: 700; color: var(--red); font-size: 1.75em; margin-left: 2px; line-height: .6; }
.logo-mark { width: 40px; height: 40px; filter: drop-shadow(0 3px 0 rgba(36, 59, 69, .18)); }
.nav { gap: 24px; }
.nav a:not(.btn) { color: var(--teal); font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a:not(.btn)::after { height: 3px; border-radius: 3px; background: var(--red); bottom: -7px; }
.nav a:not(.btn):hover { color: var(--red-600); }
/* Chi è entrato: piccola icona accanto a "I miei calendari" (e un puntino verde di "collegato") */
.nav a.is-in { display: inline-flex; align-items: center; gap: .5em; }
.nav a.is-in .auth-ico { width: 1.35em; height: 1.35em; flex: none; }
.nav a.is-in::before { content: ''; order: 2; width: .55em; height: .55em; border-radius: 50%; background: #2fb86c; box-shadow: 0 0 0 3px rgba(47, 184, 108, .22); }
.nav-toggle { color: var(--teal); }
@media (max-width: 920px) {
  .nav { background: var(--sky); }
  .nav a:not(.btn) { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
  .nav-close { color: var(--teal); }
}
.app-body .site-header { background: #fff; box-shadow: 0 3px 0 var(--sky); }
.app-body .site-header::before { display: none; }

/* ---------- Sezioni ---------- */
.dark { color: #fff; }
.light { background: var(--cream-100); }
.light-paper { background: #fff; color: var(--teal); }
.scallop-top::before { background: radial-gradient(circle at 15px -4px, transparent 16px, var(--edge, #fff) 17px) repeat-x; background-size: 30px 22px; }
.section-head h2 { margin-top: .4em; }

/* ---------- HERO: cielo, neve, abeti ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 80% 30%, rgba(255, 255, 255, .55), transparent 62%),
    linear-gradient(180deg, #a7d8de 0%, var(--sky) 55%, #c4e6ea 100%);
  color: var(--teal); min-height: 100svh; padding: 140px 0 clamp(150px, 20vw, 250px);
}
.hero::after { display: none; }
.hero h1 { color: var(--teal); font-size: clamp(2.35rem, 5.2vw, 4.5rem); margin: .55em 0 .3em; }
.hero h1 .script { text-transform: none; font-size: 1.32em; display: block; margin-top: .08em; transform: rotate(-3deg); color: var(--red); line-height: .85; }
.hero .lead { color: var(--teal); font-weight: 500; max-width: 46ch; }
.hero .eyebrow { color: var(--teal); }
.hero-note { color: var(--teal); font-weight: 500; }
.hero-note .stars { color: var(--red); }
.trust-row { color: var(--teal); font-weight: 500; }
.trust-row svg { color: var(--red); }
.garland, #stars { display: none; }
#snow { opacity: 1; }
.bokeh { display: none; }

.hero-scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 22vw, 270px); z-index: 1; pointer-events: none; display: block; }
.hero-visual { z-index: 3; }

/* il calendario: una tavola scura con la "glassa" di neve in cima, caselle piatte a colori */
.hero-cal {
  background: var(--teal); border-radius: 30px; padding: 26px 22px 22px;
  box-shadow: 0 0 0 7px #fff, 0 7px 0 7px rgba(36, 59, 69, .22), 0 40px 60px -26px rgba(36, 59, 69, .7);
  transform: rotate(2.2deg); animation: floaty2 7s ease-in-out infinite;
}
.hero-cal::before { /* neve sul bordo superiore: fascia bianca ... */
  content: ''; position: absolute; left: -7px; right: -7px; top: -17px; height: 32px; z-index: 3; pointer-events: none;
  background: #fff; border-radius: 30px 30px 0 0;
}
.hero-cal::after { /* ... con le gocce che scendono */
  content: ''; position: absolute; left: -7px; right: -7px; top: 14px; height: 24px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 15px 13px at 22px 0, #fff 98%, transparent 100%) 0 0 / 44px 24px repeat-x,
    radial-gradient(ellipse 9px 22px at 8px 0, #fff 98%, transparent 100%) 0 0 / 118px 24px repeat-x;
}
@keyframes floaty2 { 0%, 100% { transform: rotate(2.2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
.hero-cal .cal-title { font-family: var(--font-script); font-weight: 700; color: #fff; font-size: 2.5rem; text-shadow: none; margin: 4px 0 12px; }
.hero-grid { gap: 10px; }
.hero-door { border-radius: 14px; background: #fff; box-shadow: none; }
.hero-door .leaf {
  border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: #fff;
  background: var(--red); box-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}
.hero-door:nth-child(3n) .leaf { background: var(--sage); }
.hero-door:nth-child(4n+1) .leaf { background: var(--sky); color: var(--teal); }
.hero-door:nth-child(5n+2) .leaf { background: #fff; color: var(--red); }
.hero-door.open .leaf { box-shadow: -8px 0 16px rgba(0, 0, 0, .25); }
.hero-door.big .leaf { background: var(--red); font-size: 2.4rem; }
.hero-door.big .leaf::before, .hero-door.big .leaf::after { background: #fff; }
.hero-door.big .leaf::before { width: 14px; } .hero-door.big .leaf::after { height: 14px; }
.hero-door.big .leaf span { background: var(--red); color: #fff; padding: 2px 14px; border-radius: 12px; box-shadow: 0 0 0 4px #fff; }
.hero-tag { background: #fff; color: var(--teal); border-radius: 20px; box-shadow: 0 14px 0 -8px rgba(36, 59, 69, .22), 0 26px 40px -22px rgba(36, 59, 69, .55); font-weight: 500; }
.hero-tag b { font-family: var(--font-display); font-weight: 800; color: var(--red); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
.hero-tag .tag-photo { border-radius: 12px; box-shadow: none; }

/* decorazioni illustrate: gnomo, bastoncino a cuore, macchie di neve */
.hero-blob {
  position: absolute; z-index: -1; width: 118%; aspect-ratio: 1; left: -9%; top: -8%;
  background: var(--sage); border-radius: 58% 42% 47% 53% / 52% 56% 44% 48%;
  opacity: .92; animation: blobmove 18s ease-in-out infinite alternate;
}
.hero-blob.two { width: 70%; left: auto; right: -14%; top: auto; bottom: -12%; background: var(--sage-light); border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; z-index: -2; animation-duration: 24s; }
@keyframes blobmove { to { border-radius: 46% 54% 56% 44% / 58% 46% 54% 42%; transform: rotate(8deg) scale(1.03); } }
.gnome { position: absolute; z-index: 5; right: -26px; bottom: -34px; width: clamp(120px, 15vw, 190px); filter: drop-shadow(0 12px 0 rgba(36, 59, 69, .14)); animation: bob2 5s ease-in-out infinite; }
.candy-heart { position: absolute; z-index: 5; left: -34px; bottom: 6%; width: clamp(80px, 9vw, 120px); transform: rotate(-12deg); animation: bob2 6s ease-in-out infinite -2s; filter: drop-shadow(0 8px 0 rgba(36, 59, 69, .14)); }
@keyframes bob2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.dot { position: absolute; border-radius: 50%; background: #fff; z-index: 4; }
.hero-visual .dot.a { width: 26px; height: 26px; top: 2%; right: 8%; }
.hero-visual .dot.b { width: 14px; height: 14px; top: 20%; left: -3%; }
.hero-visual .dot.c { width: 20px; height: 20px; bottom: 34%; right: -5%; }
@media (max-width: 960px) { .hero { padding-top: 150px; } .hero h1 .script { display: inline-block; } .gnome { right: 0; } .candy-heart { left: 0; } }
@media (max-width: 560px) { .hero-cal { transform: none; animation: none; } .gnome, .candy-heart { display: none; } .hero-blob { width: 100%; left: 0; top: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: #fff; color: var(--teal); padding: 14px 0 46px; }
.marquee-track { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; }
.marquee-track span::after { content: '❄'; color: var(--red); font-size: 1rem; letter-spacing: 0; }

/* ---------- Caratteristiche ---------- */
.features { gap: 24px; }
.feature { background: var(--cream-100); border-radius: var(--radius-lg); box-shadow: none; padding: 34px 30px 30px; transition: transform .3s var(--ease-spring); }
.feature:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: none; }
.feature:nth-child(3n+2) { background: var(--cyan-soft); }
.feature:nth-child(3n) { background: #fdf0ea; }
.feature-ico { background: var(--red); border-radius: 50%; width: 62px; height: 62px; color: #fff; box-shadow: 0 5px 0 var(--red-deep); }
.feature:nth-child(3n+2) .feature-ico { background: var(--sage); box-shadow: 0 5px 0 var(--sage-deep); }
.feature:nth-child(3n) .feature-ico { background: var(--teal); box-shadow: 0 5px 0 var(--teal-deep); color: #fff; }
.feature p { color: var(--ink-soft); }
.feature .new { background: var(--teal); font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; }

/* ---------- Ricordo (casella con lo scroll) ---------- */
#ricordo { background: #fff; }
.memory-door::before { background: var(--teal); box-shadow: 0 40px 60px -30px rgba(36, 59, 69, .6), 0 0 0 6px #fff, 0 0 0 9px var(--sky); inset: -14px; border-radius: 34px; }
.memory-inside { background: radial-gradient(circle at 50% 45%, #fff 0%, var(--cyan-soft) 45%, var(--sky) 100%); }
.memory-inside .rays { background: repeating-conic-gradient(rgba(255, 255, 255, .8) 0deg 5deg, transparent 5deg 20deg); }
.m-leaf { background: linear-gradient(140deg, #ee3f39, #d62d27); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25); }
.m-leaf::before, .m-leaf::after { border: 3px solid rgba(255, 255, 255, .55); box-shadow: none; border-radius: 14px; }
.m-leaf .knob { background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.memory-plate { background: #fff; color: var(--red); border-radius: 16px; box-shadow: 0 6px 0 rgba(0, 0, 0, .22); }
.memory-plate b { font-family: var(--font-display); font-weight: 800; }
.memory-plate small { font-weight: 700; letter-spacing: .2em; }
.memory-text li b { color: var(--teal); }

/* ---------- Demo: sezione salvia con palle di neve ---------- */
.demo-section {
  --edge: var(--sage-light);
  background:
    radial-gradient(circle at 6% 14%, #fff 0 14px, transparent 15px),
    radial-gradient(circle at 93% 9%, #fff 0 26px, transparent 27px),
    radial-gradient(circle at 88% 22%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 3% 66%, #fff 0 22px, transparent 23px),
    radial-gradient(circle at 96% 78%, #fff 0 16px, transparent 17px),
    radial-gradient(circle at 50% 97%, #fff 0 30px, transparent 31px),
    radial-gradient(circle at 10% 92%, #fff 0 12px, transparent 13px),
    var(--sage-light);
  overflow: hidden;
}
.demo-section::after { /* grande macchia scura (cartolina 3) */
  content: ''; position: absolute; z-index: 0; width: 120%; height: 70%; left: -10%; top: 16%;
  background: var(--sage); border-radius: 46% 54% 38% 62% / 52% 38% 62% 48%;
}
.demo-section { --sage-light: #5f7b53; --sage: #4b6140; }   /* un verde un po' più scuro: il testo bianco sopra deve leggersi bene */
.demo-section .container { position: relative; z-index: 1; }
.demo-section .section-head h2, .demo-section .section-head .eyebrow { color: #fff; }
.demo-section .eyebrow::before, .demo-section .eyebrow::after { background: #fff; }
.control-group label.group-label { color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .16em; }
.chip { font-family: var(--font-body); font-weight: 600; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.chip:hover { background: rgba(255, 255, 255, .28); }
.chip[aria-pressed='true'] { background: #fff; color: var(--red); box-shadow: 0 4px 0 rgba(36, 59, 69, .28); }
.light .chip, .ideas .chip { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--cream-300); }
.light .chip[aria-pressed='true'], .ideas .chip[aria-pressed='true'] { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-deep); }
.swatch { border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--sage), 0 0 0 6px #fff; }
.swatch .sw-name { color: #fff; opacity: 1; font-weight: 600; }
.demo-hint { color: #fff; }
.demo-hint .pulse-dot { background: #fff; }

/* ---------- Come funziona ---------- */
#come { --edge: #fff; background: var(--cyan-soft); }
.steps::before { border-top: 3px dotted var(--red); opacity: .5; }
.step-num { background: #fff; box-shadow: 0 6px 0 rgba(36, 59, 69, .16); font-size: 2.3rem; }
.step-num::after { background: var(--red); box-shadow: 0 3px 0 var(--red-deep); font-family: var(--font-display); font-weight: 800; }
.step h3 { font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- Cosa regalare ---------- */
#idee { background: #fff; }
.gift { border-radius: var(--radius-lg); color: #fff; }
.gift h3 { color: #fff; font-weight: 800; }
.gift:nth-child(1) { background: var(--red); }
.gift:nth-child(2) { background: var(--sage); }
.gift:nth-child(3) { background: var(--teal); }
.gift:nth-child(4) { background: var(--brick); }
.gift:nth-child(5) { background: var(--sky); color: var(--teal); }
.gift:nth-child(5) h3 { color: var(--teal); }
.gift .g-ico { filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .18)); }
.ideas { background: var(--cream-100); box-shadow: none; }
.idea { background: #fff; box-shadow: 0 5px 0 rgba(36, 59, 69, .08); }
.idea .tag { color: var(--red-600); font-family: var(--font-display); font-weight: 800; }
.idea p { font-family: var(--font-body); font-weight: 500; font-size: 1rem; }

/* ---------- Prezzi: cielo, schede bianche, la più scelta in rosso ---------- */
.pricing-section { --edge: var(--sky); background: var(--sky); color: var(--teal); }
.pricing-section .section-head h2 { color: var(--teal) !important; }
.pricing-section .lead { color: var(--teal); }
.pricing-section .eyebrow { color: var(--teal); }
.price-card { background: #fff; color: var(--teal); box-shadow: 0 8px 0 rgba(36, 59, 69, .16); backdrop-filter: none; border-radius: var(--radius-lg); }
.price-card .sub { opacity: .8; }
.price-card.featured { background: var(--red); color: #fff; box-shadow: 0 10px 0 var(--red-deep), 0 0 0 5px #fff; transform: translateY(-14px); }
.price-card.featured h3 { color: #fff; }
.price-card .ribbon { background: #fff; color: var(--red); font-family: var(--font-display); font-weight: 800; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.price-card h3 { font-weight: 800; text-transform: uppercase; }
.price .amount { font-weight: 800; letter-spacing: -.04em; }
.price-card li::before { background-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.price-card.featured li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8352f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.price-card li.muted::before { background: var(--cream-300); }
.price-card.featured .btn { background: #fff; color: var(--red); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.price-card .btn-ghost { box-shadow: inset 0 0 0 2.5px var(--teal); color: var(--teal); }
.price-card .btn-ghost:hover { color: #fff; }
.price-save { color: var(--red-600); }
.price-card.featured .price-save { color: #fff; text-decoration: underline; }
.addon { background: rgba(255, 255, 255, .7); box-shadow: none; color: var(--teal); border-radius: var(--radius); }
.addon b { font-family: var(--font-display); font-weight: 700; }
.addon .a-price { color: var(--red-600); font-family: var(--font-display); font-weight: 800; }
.pay-methods { color: var(--teal); font-weight: 500; }

/* ---------- Privacy: teal profondo ---------- */
.privacy-section { background: var(--teal) !important; position: relative; overflow: hidden; }
.privacy-section::before { content: ''; position: absolute; width: 55%; aspect-ratio: 1; right: -14%; top: -30%; background: #3d5d6b; border-radius: 52% 48% 40% 60% / 46% 58% 42% 54%; }
.privacy-section .privacy-band { position: relative; }
.privacy-item { background: rgba(255, 255, 255, .09); box-shadow: none; border-radius: var(--radius); }
.privacy-item .pi-ico { background: #fff; color: var(--red); border-radius: 50%; }
.privacy-item b { color: #fff; }
.privacy-item span { color: rgba(255, 255, 255, .82); }
.privacy-section h2 { color: #fff !important; }
.privacy-section .eyebrow { color: var(--cyan); }

/* ---------- FAQ ---------- */
#faq { background: var(--cream-100); }
.faq details { background: #fff; box-shadow: 0 5px 0 rgba(36, 59, 69, .08); border-radius: var(--radius); }
.faq details[open] { box-shadow: 0 5px 0 var(--red); }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.faq summary::after { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq .answer { color: var(--ink-soft); }

/* ---------- CTA finale: azzurro vivo con lo gnomo ---------- */
.final-cta { background: var(--cyan); color: var(--teal); text-align: left; padding-bottom: clamp(120px, 14vw, 180px); }
.final-cta .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.final-cta h2 { color: var(--red); max-width: 14ch; margin-inline: 0; font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
.final-cta h2 em { color: var(--teal); }
.final-cta .eyebrow { color: var(--teal); }
.final-cta .lead { color: var(--teal); font-weight: 500; margin: 0 0 30px !important; }
.final-cta .btn-gold { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-deep); }
.final-cta .btn-gold:hover { background: #f04640; box-shadow: 0 3px 0 var(--red-deep); }
.final-cta .gnome-big { width: min(340px, 100%); justify-self: center; filter: drop-shadow(0 14px 0 rgba(36, 59, 69, .14)); animation: bob2 6s ease-in-out infinite; }
.final-cta .scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(110px, 16vw, 190px); z-index: 1; pointer-events: none; }
.final-cta .container { z-index: 2; }
@media (max-width: 800px) { .final-cta .container { grid-template-columns: 1fr; text-align: center; } .final-cta h2 { margin-inline: auto; } .final-cta .gnome-big { order: -1; width: 200px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .75); }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .18em; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--cyan); }
.site-footer .logo { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .14); }

/* ---------- Pagine dell'app: accesso, bacheca, editor, account ---------- */
.app-body { background: var(--cream-100); }
.card { background: #fff; box-shadow: 0 6px 0 rgba(36, 59, 69, .08); border-radius: var(--radius-lg); }
.input, .textarea, .select { background: #fff; box-shadow: inset 0 0 0 2.5px var(--cream-300); border-radius: 16px; font-family: var(--font-body); }
.input:focus, .textarea:focus, .select:focus { background: #fff; box-shadow: inset 0 0 0 2.5px var(--red), 0 0 0 5px rgba(232, 53, 47, .15); }
.textarea { font-family: var(--font-body); font-size: 1rem; }
.field > span, .field-label { color: var(--teal); font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.check input { accent-color: var(--red); }
.auth-art { background: var(--sky); }
.auth-art.photo::after { background: linear-gradient(180deg, rgba(36, 59, 69, .1) 0%, rgba(36, 59, 69, .45) 55%, rgba(36, 59, 69, .88) 100%); }
.auth-art blockquote { font-family: var(--font-display); font-style: normal; font-weight: 700; }
.auth-art blockquote span { font-family: var(--font-script); color: #fff; font-size: 2.6rem; font-weight: 700; }
.auth-panel { background: #fff; }
.auth-box .logo { color: var(--teal); }
.cal-card { background: #fff; box-shadow: 0 7px 0 rgba(36, 59, 69, .1); }
.cal-card .thumb .mini-grid i.f { background: #fff; }
.status { background: var(--cream-200); color: var(--teal); font-family: var(--font-display); font-weight: 700; }
.status.pub { background: #dff2e1; color: #2f6b3c; }
.status.magia { background: var(--red); color: #fff; }
.progress { background: var(--cream-200); }
.progress i { background: var(--red); }
.new-card { border: 3px dashed var(--cream-300); }
.new-card:hover { border-color: var(--red); }
.new-card .plus { background: var(--red); box-shadow: 0 5px 0 var(--red-deep); }
.credits-note { background: var(--cyan); color: var(--teal); border-radius: var(--radius); }
.door-picker button { background: var(--cream-100); box-shadow: inset 0 0 0 2px var(--cream-300); font-family: var(--font-display); font-weight: 700; }
.door-picker button:hover { box-shadow: inset 0 0 0 2px var(--red); }
.door-picker button.filled { background: #fff; box-shadow: inset 0 0 0 2px var(--sage); }
.door-picker button.active { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-deep); }
.door-picker button.d24 { background: var(--red); color: #fff; }
.door-picker button.d24.active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--red); }
.type-tab[aria-pressed='true'], .opt[aria-pressed='true'], .plan-opt[aria-pressed='true'] { color: var(--red-600); box-shadow: inset 0 0 0 2.5px var(--red); }
.door-badge { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-deep); font-family: var(--font-display); font-weight: 800; }
.recorder { background: var(--teal); }
.rec-bars i { background: var(--cyan); }
.editor-toolbar { background: rgba(238, 249, 251, .92); border-bottom-color: var(--cream-300); }
.modal-backdrop { background: rgba(36, 59, 69, .68); }
.modal { background: #fff; }
.modal-close { background: var(--cream-200); }
.toast { background: var(--teal); }
.toast.err { background: var(--red-600); }
.callout { box-shadow: inset 5px 0 0 var(--red), 0 0 0 0 transparent; background: #fff; }
.legal h1 { text-transform: none; }
.legal .toc { background: #fff; box-shadow: none; }
.center-page { background: var(--sky); color: var(--teal); }
.center-page h1 { color: var(--teal); }
.page-title h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.plan-opt b, .plan-opt .pp { font-family: var(--font-display); font-weight: 800; }

/* nav compatta: mai a capo */
.nav a:not(.btn) { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 921px) { .nav { gap: 16px; } .nav a:not(.btn) { font-size: .7rem; letter-spacing: .1em; } }

/* ==========================================================================
   Temi del calendario (demo e anteprima editor) in versione "cartolina"
   caselle piatte con "spessore", colori pieni, palline di neve
   ========================================================================== */
.sw-notte { background: radial-gradient(circle at 30% 30%, #4a6c7b, #243b45); }
.sw-velluto { background: radial-gradient(circle at 30% 30%, #f2584f, #c4271f); }
.sw-bosco { background: radial-gradient(circle at 30% 30%, #8ba67d, #52663f); }
.sw-neve { background: radial-gradient(circle at 30% 30%, #e4f6f8, #a9d6dc); }

.door .num { font-weight: 800; text-shadow: none; }
.door:nth-child(3n) .num { font-style: normal; }

.theme-neve {
  --cal-bg: linear-gradient(180deg, #a9d6dc 0%, #b0dce1 55%, #cbe9ec 100%);
  --cal-pattern:
    radial-gradient(circle at 8% 12%, #fff 0 7px, transparent 8px), radial-gradient(circle at 91% 8%, #fff 0 11px, transparent 12px),
    radial-gradient(circle at 96% 46%, #fff 0 6px, transparent 7px), radial-gradient(circle at 3% 58%, #fff 0 9px, transparent 10px),
    radial-gradient(circle at 15% 94%, #fff 0 6px, transparent 7px), radial-gradient(circle at 84% 95%, #fff 0 9px, transparent 10px);
  --cal-ink: #334e5a; --accent: #e8352f; --accent-glow: none;
  --frame: #fff; --frame-line: rgba(51, 78, 90, .18);
  --door-bg: #fff; --door-ink: #334e5a; --door-edge: rgba(51, 78, 90, .12); --door-dash: rgba(51, 78, 90, .22);
  --door-shadow: 0 5px 0 rgba(36, 59, 69, .22); --door-back: radial-gradient(circle, #fff, #d6eef1); --knob: #b0dce1; --num-shadow: none;
  --d24-bg: #e8352f; --d24-ink: #fff;
}
.theme-neve .door:nth-child(5n+1) { --door-bg: #e8352f; --door-ink: #fff; --door-dash: rgba(255, 255, 255, .45); --knob: #fff; }
.theme-neve .door:nth-child(7n+4) { --door-bg: #6a7f5c; --door-ink: #fff; --door-dash: rgba(255, 255, 255, .4); --knob: #fff; }
.theme-neve .door:nth-child(6n+3) { --door-bg: #334e5a; --door-ink: #fff; --door-dash: rgba(255, 255, 255, .35); --knob: #aaf3ff; }

.theme-notte {
  --cal-bg: radial-gradient(130% 100% at 50% 0%, #476a79 0%, #334e5a 55%, #243b45 100%);
  --cal-pattern:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.9) 0 5px, transparent 6px), radial-gradient(circle at 90% 14%, rgba(255,255,255,.9) 0 8px, transparent 9px),
    radial-gradient(circle at 95% 62%, rgba(255,255,255,.8) 0 5px, transparent 6px), radial-gradient(circle at 4% 70%, rgba(255,255,255,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 98%, rgba(255,255,255,.7) 0 6px, transparent 7px);
  --cal-ink: #fff; --accent: #aaf3ff; --accent-glow: none;
  --frame: #1c2f38; --frame-line: rgba(255, 255, 255, .35);
  --door-bg: #4d7080; --door-ink: #fff; --door-edge: rgba(255, 255, 255, .22); --door-dash: rgba(255, 255, 255, .35);
  --door-shadow: 0 5px 0 rgba(0, 0, 0, .3); --door-back: radial-gradient(circle, #fff, #aaf3ff); --knob: #aaf3ff; --num-shadow: none;
  --d24-bg: #e8352f; --d24-ink: #fff;
}
.theme-notte .door:nth-child(3n) { --door-bg: #e8352f; --door-dash: rgba(255, 255, 255, .45); --knob: #fff; }
.theme-notte .door:nth-child(4n+1) { --door-bg: #fff; --door-ink: #334e5a; --door-dash: rgba(51, 78, 90, .25); --knob: #e8352f; }

.theme-velluto {
  --cal-bg: radial-gradient(120% 100% at 50% 0%, #f0463f 0%, #d9332d 50%, #b72621 100%);
  --cal-pattern:
    radial-gradient(circle at 7% 9%, #fff 0 6px, transparent 7px), radial-gradient(circle at 92% 12%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 97% 55%, #fff 0 5px, transparent 6px), radial-gradient(circle at 3% 66%, #fff 0 8px, transparent 9px),
    radial-gradient(circle at 80% 97%, #fff 0 7px, transparent 8px);
  --cal-ink: #fff; --accent: #fff; --accent-glow: none;
  --frame: #8e1b17; --frame-line: rgba(255, 255, 255, .45);
  --door-bg: #fff; --door-ink: #c92a25; --door-edge: rgba(0, 0, 0, .08); --door-dash: rgba(201, 42, 37, .3);
  --door-shadow: 0 5px 0 rgba(94, 18, 15, .45); --door-back: radial-gradient(circle, #fff, #ffd6d3); --knob: #e8352f; --num-shadow: none;
  --d24-bg: #6a7f5c; --d24-ink: #fff;
}
.theme-velluto .door:nth-child(4n+2) { --door-bg: #b0dce1; --door-ink: #334e5a; --door-dash: rgba(51, 78, 90, .3); }
.theme-velluto .door:nth-child(5n) { --door-bg: #6a7f5c; --door-ink: #fff; --door-dash: rgba(255, 255, 255, .4); --knob: #fff; }

.theme-bosco {
  --cal-bg: radial-gradient(120% 100% at 50% 0%, #84a176 0%, #6a7f5c 55%, #52663f 100%);
  --cal-pattern:
    radial-gradient(circle at 6% 10%, #fff 0 8px, transparent 9px), radial-gradient(circle at 93% 7%, #fff 0 12px, transparent 13px),
    radial-gradient(circle at 98% 50%, #fff 0 6px, transparent 7px), radial-gradient(circle at 2% 62%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 12% 97%, #fff 0 7px, transparent 8px), radial-gradient(circle at 88% 96%, #fff 0 9px, transparent 10px);
  --cal-ink: #fff; --accent: #fff; --accent-glow: none;
  --frame: #3f5233; --frame-line: rgba(255, 255, 255, .4);
  --door-bg: #fff; --door-ink: #52663f; --door-edge: rgba(0, 0, 0, .08); --door-dash: rgba(82, 102, 63, .3);
  --door-shadow: 0 5px 0 rgba(40, 56, 30, .4); --door-back: radial-gradient(circle, #fff, #dfeadb); --knob: #b73f2f; --num-shadow: none;
  --d24-bg: #b73f2f; --d24-ink: #fff;
}
.theme-bosco .door:nth-child(3n+1) { --door-bg: #b73f2f; --door-ink: #fff; --door-dash: rgba(255, 255, 255, .4); --knob: #fff; }
.theme-bosco .door:nth-child(7n+3) { --door-bg: #b0dce1; --door-ink: #334e5a; --door-dash: rgba(51, 78, 90, .3); --knob: #334e5a; }
.door.d24.style-fiocco .leaf .ribbon-v, .door.d24.style-fiocco .leaf .ribbon-h { background: #fff; box-shadow: none; }
.door.d24.style-fiocco .num { background: var(--red); color: #fff; box-shadow: 0 0 0 4px #fff; }
.door.d24.style-oro .leaf { background: #fff; animation: none; }
.door.d24.style-oro .num { color: var(--red); text-shadow: none; }
.door .today-tag { background: var(--red) !important; font-family: var(--font-display); }

/* posizionamento etichette hero */
.hero-tag.t1 { left: -64px; top: 9%; }
.hero-tag.t2 { right: -30px; bottom: auto; top: 47%; }
.gnome { right: -34px; bottom: -48px; }

/* ---------- Rifiniture mobile ---------- */
.section { overflow-x: clip; }
.final-cta .container { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.final-cta .container > div { min-width: 0; }
@media (max-width: 800px) { .final-cta .container { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .btn-lg { white-space: normal; text-align: center; padding: 1em 1.6em; }
  .eyebrow { letter-spacing: .24em; font-size: .72rem; text-align: center; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .hero-ctas .btn { width: 100%; }
}

/* ==========================================================================
   Editor: dal bosco notturno al cielo d'inverno
   ========================================================================== */
.editor-page { color: var(--teal); background: linear-gradient(180deg, #a7d8de 0%, var(--sky) 45%, #cbe9ec 100%); background-attachment: fixed; }
.scene #sceneStars, .scene .bokeh { display: none; }
.scene .forest { height: 190px; opacity: 1; }
.scene .forest path:first-child { fill: #8fc3cb; opacity: .55; }
.scene .forest path:last-child { fill: #fff; }
.ed-top::before { background: rgba(255, 255, 255, .9); border-bottom: 3px solid rgba(51, 78, 90, .08); }
.ed-back { color: var(--teal); box-shadow: inset 0 0 0 2.5px var(--teal); }
.ed-back:hover { background: var(--teal); color: #fff; }
.ed-title h1 { color: var(--teal); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: -.005em; }
.ed-title h1 .script { color: var(--red); text-shadow: none; text-transform: none; font-size: 1.7em; font-weight: 700; }
.ed-eyebrow { color: var(--ink-mute); font-family: var(--font-body); font-weight: 600; letter-spacing: .26em; }
.ed-eyebrow.pub { color: var(--sage); }
.ed-ghost { color: var(--teal); }
.editor-page .save-state { color: var(--ink-mute); }
.ed-panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 7px 0 rgba(36, 59, 69, .14); border-radius: var(--radius-lg); }
.panel-head h2 { color: var(--teal); font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
.count-pill { background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; }
.picker-board .door-picker button { font-weight: 800; box-shadow: inset 0 0 0 0 transparent, 0 3px 0 rgba(36, 59, 69, .25); }
.picker-board .door-picker button.filled::after { color: var(--red); text-shadow: none; }
.picker-board .door-picker button.filled { box-shadow: 0 0 0 2px var(--sage), 0 3px 0 rgba(36, 59, 69, .25); }
.picker-board .door-picker button.active { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--red); filter: none; }
.picker-board .door-picker button.d24 { background: var(--red); color: #fff; }
.picker-board .door-picker button.d24 .rib { background: #fff; opacity: 1; }
.picker-board .door-picker button.opened::before { color: var(--sage); }
.tree-text b { color: var(--teal); font-weight: 800; }
.tree-text span { color: var(--ink-soft); }
.tree-text .progress { background: var(--cream-200); }
.settings-panel details { border-bottom: 2px solid var(--cream-200); }
.settings-panel summary { color: var(--teal); font-weight: 700; font-size: .98rem; }
.settings-panel summary::after { color: var(--red); }
.editor-page .field > span, .editor-page .field-label { color: var(--teal); }
.settings-panel .input, .settings-panel .textarea { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2.5px var(--cream-300); }
.settings-panel .input:focus, .settings-panel .textarea:focus { background: #fff; box-shadow: inset 0 0 0 2.5px var(--red), 0 0 0 5px rgba(232, 53, 47, .15); }
.settings-panel .input::placeholder, .settings-panel .textarea::placeholder { color: var(--ink-mute); opacity: .7; }
.settings-panel .opt { background: var(--cream-100); color: var(--teal); }
.settings-panel .opt[aria-pressed='true'] { background: #fff; color: var(--red-600); box-shadow: inset 0 0 0 2.5px var(--red); }
.settings-panel .swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--red); }
.settings-panel .hint { color: var(--ink-mute); }
.ed-paper { background: #fff; box-shadow: 0 9px 0 rgba(36, 59, 69, .14); border-radius: var(--radius-lg); }
.ed-paper::before { border: 3px dotted var(--sky); border-radius: 24px; }
.bauble::before { background: var(--teal); }
.bauble .cap { background: var(--teal); }
.bauble.gold .ball { background: radial-gradient(circle at 32% 28%, #ff8a82 0%, #e8352f 45%, #b72621 100%); color: #fff; font-weight: 800; }
.bauble.green .ball { background: radial-gradient(circle at 32% 28%, #b2cba6 0%, #6a7f5c 50%, #52663f 100%); font-weight: 800; }
.door-head h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.door-head h2 em, .door-head h2 .script { color: var(--red); }
.type-bar { background: var(--cream-100); }
.type-bar .ind { box-shadow: 0 5px 0 rgba(36, 59, 69, .12), inset 0 0 0 2.5px var(--red); }
.type-bar .lock { background: var(--teal); color: #fff; }
.ed-paper .textarea.letter { background: linear-gradient(transparent 0, transparent calc(2em - 1px), rgba(51, 78, 90, .1) calc(2em - 1px), rgba(51, 78, 90, .1) 2em) 0 .9em / 100% 2em, #fff; font-family: var(--font-body); }
.dropzone.magic { border: 3px dashed var(--sky); background: var(--cyan-soft); }
.dropzone.magic.drag { box-shadow: 0 0 0 6px rgba(232, 53, 47, .18); border-color: var(--red); }
.dropzone.magic::after { background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); background-size: 250% 100%; }
.photo-card { box-shadow: 0 8px 0 rgba(36, 59, 69, .12); }
.photo-card .rm { background: var(--red); }
.recorder.magic { background: var(--teal); }
.rec-btn { background: var(--red); }
.song-box { background: var(--teal); box-shadow: none; }
.door-nav-row { border-top: 3px dotted var(--sky); }
.locked-note { background: #e4f3e6; color: #2f6b3c; }
.garland-mini { display: none; }

/* ==========================================================================
   Icone illustrate (piatte, a colori) al posto di icone a linea ed emoji
   ========================================================================== */
.ico { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(36, 59, 69, .16)); overflow: visible; }
.feature-ico, .feature:nth-child(3n+2) .feature-ico, .feature:nth-child(3n) .feature-ico {
  width: 76px; height: 76px; border-radius: 0; background: none; box-shadow: none; margin-bottom: 18px; place-items: stretch;
  transition: transform .4s var(--ease-spring);
}
.feature-ico svg { width: 100%; height: 100%; }
.feature:hover .feature-ico { transform: rotate(-7deg) scale(1.08); }
.step-num .ico { width: 56px; height: 56px; filter: drop-shadow(0 3px 0 rgba(36, 59, 69, .14)); }
.step-num { font-size: 0; }
.gift .g-ico { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 0; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); filter: none; }
.gift .g-ico .ico { width: 42px; height: 42px; filter: none; }
.memory-text li > span:first-child { width: 38px; height: 38px; flex: none; font-size: 0; }
.memory-text li > span:first-child .ico { width: 38px; height: 38px; }
.privacy-item .pi-ico { width: 50px; height: 50px; border-radius: 16px; background: #fff; }
.privacy-item .pi-ico .ico { width: 34px; height: 34px; filter: none; }

/* logo: Fiocco + corsivo */
.logo i { font-size: 1.55em; }
@media (max-width: 420px) { .logo i { display: none; } }
@media (max-width: 1240px) { .site-header .logo i { display: none; } }
.gift { min-height: 300px; }

/* ==========================================================================
   Animazioni della V1 rimesse (con i colori nuovi)
   ========================================================================== */
#stars { display: block; }
.garland { display: block; top: 66px; height: 56px; opacity: 1; }
.bokeh { display: block; }
.bokeh i { background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .3) 55%, transparent 72%); }
.bokeh i.red { background: radial-gradient(circle at 40% 40%, rgba(255, 140, 130, .8), rgba(232, 53, 47, .2) 55%, transparent 72%); }
.btn::after { display: block; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }
.btn-ghost::after { display: none; }

/* Casella 24: la foglia d'oro è davvero oro, come nella V1 */
:root { --real-gold: linear-gradient(135deg, #fff3d1 0%, #ecc56c 22%, #b5852c 45%, #f6dfa0 62%, #c99a3c 80%, #8a6420 100%); }
.door.d24.style-oro .leaf { background: var(--real-gold); background-size: 200% 200%; animation: foil 5s ease-in-out infinite; }
.door.d24.style-oro .num { color: #8f1426; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.door.d24.style-fiocco .leaf .ribbon-v, .door.d24.style-fiocco .leaf .ribbon-h { background: var(--real-gold); box-shadow: 0 0 8px rgba(0, 0, 0, .3); }
.door.d24.style-fiocco .num { background: var(--red-600); color: #fff3d1; box-shadow: 0 0 0 3px #ecc56c; }

/* ornamenti che dondolano nell'ultima sezione */
.final-cta .ornaments { position: absolute; top: 0; right: 7%; z-index: 3; display: flex; gap: 26px; margin: 0; pointer-events: none; }
.final-cta .ornament { width: 52px; }
.final-cta .ornament:nth-child(2) { width: 62px; }
@media (max-width: 800px) { .final-cta .ornaments { right: 50%; transform: translateX(50%); } }

/* ==========================================================================
   "Provalo adesso": pannello comandi
   ========================================================================== */
.demo-controls { gap: 18px; }
.demo-card {
  background: #fff; color: var(--teal); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 9px 0 rgba(36, 59, 69, .22); display: grid; gap: 26px;
}
.demo-card .control-group { display: block; }
.demo-card label.group-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
}
.demo-card label.group-label::before { content: ''; width: 16px; height: 4px; border-radius: 4px; background: var(--red); flex: none; }
.demo-card .swatches { gap: 10px; padding-bottom: 26px; justify-content: space-between; }
.demo-card .swatch { width: 50px; height: 50px; box-shadow: 0 4px 0 rgba(36, 59, 69, .22), inset 0 0 0 3px rgba(255, 255, 255, .55); }
.demo-card .swatch .sw-name { color: var(--ink-soft); font-weight: 600; font-size: .7rem; margin-top: 9px; }
.demo-card .swatch[aria-pressed='true'] { box-shadow: 0 4px 0 rgba(36, 59, 69, .22), 0 0 0 3px #fff, 0 0 0 6px var(--red); transform: translateY(-2px); }
.demo-card .swatch[aria-pressed='true'] .sw-name { color: var(--red-600); font-weight: 800; }
.demo-card .chips { gap: 9px; }
.demo-card .chip {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.05em .55em .75em; font-size: .85rem; font-weight: 600;
  background: var(--cream-100); color: var(--teal); box-shadow: inset 0 0 0 2px var(--cream-300);
  transition: transform .25s var(--ease-spring), background .2s, box-shadow .2s, color .2s;
}
.demo-card .chip:hover { background: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--teal); }
.demo-card .chip[aria-pressed='true'] { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-deep); transform: translateY(-1px); }
.ci { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: -5px; overflow: visible; }
.demo-card .chip[aria-pressed='true'] .ci { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .0)); }
.demo-card .btn-block { width: 100%; }
.demo-card .demo-hint { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }
.demo-card .demo-hint .ci { width: 18px; height: 18px; margin-top: 1px; }
/* equalizzatore: si anima solo quando la musica suona */
.eq-live { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; margin-left: auto; opacity: .35; transition: opacity .3s; }
.eq-live i { width: 3.5px; height: 4px; border-radius: 2px; background: var(--red); }
.is-playing .eq-live { opacity: 1; }
.is-playing .eq-live i { animation: eqbar .9s ease-in-out infinite; }
.is-playing .eq-live i:nth-child(2) { animation-delay: -.3s; } .is-playing .eq-live i:nth-child(3) { animation-delay: -.6s; } .is-playing .eq-live i:nth-child(4) { animation-delay: -.15s; }
@keyframes eqbar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
/* suggerimento sotto la scheda */
.demo-tip {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-radius: var(--radius); font-size: .88rem; line-height: 1.45;
  background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.demo-tip .tip-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; animation: tippulse 2.4s ease-in-out infinite; }
.demo-tip .tip-ico .ci { width: 24px; height: 24px; vertical-align: 0; }
.demo-tip b { font-weight: 800; }
@keyframes tippulse { 50% { transform: scale(1.1) rotate(8deg); } }
.demo-card .swatches { gap: 8px; justify-content: space-between; }
.demo-card .swatch { width: 44px; height: 44px; }
.demo-card .chip .ci { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: #fff; box-sizing: border-box; vertical-align: middle; filter: none; box-shadow: 0 2px 0 rgba(36, 59, 69, .12); }
.demo-card .chip { padding: .4em 1.05em .4em .4em; }

/* barra del menu più larga del contenuto: il logo sta vicino al bordo sinistro */
.site-header > .container { width: 100%; max-width: none; margin: 0; padding-left: clamp(18px, 2.6vw, 44px); padding-right: clamp(18px, 2.6vw, 44px); }

/* il calendario vero (lo stesso della demo) nella prima schermata */
.hero-cal-live { position: relative; z-index: 2; margin-inline: auto; margin-inline: auto; transform: rotate(1.6deg); animation: floaty2 8s ease-in-out infinite; }
.hero-cal-live #heroCal { width: 520px; transform-origin: 0 0; }
.hero-cal-live .door { cursor: pointer; }
@media (max-width: 560px) { .hero-cal-live { transform: none; animation: none; } }
.hero-visual .gnome { right: -92px; bottom: -64px; width: clamp(110px, 12vw, 160px); }
.hero-visual .candy-heart { left: -52px; bottom: 2%; }
@media (max-width: 1100px) { .hero-visual .gnome { right: -20px; bottom: -48px; } }

/* ---- Telefono: aree di tocco comode per i collegamenti piccoli ---- */
@media (max-width: 760px) {
  .site-footer a, .recipient-foot a, .legal a.link { display: inline-block; padding: 8px 2px; }
  .site-footer .cols a, .site-footer ul a { padding: 9px 0; }
  .link, .link-btn { padding: 6px 2px; }
  .hero h1 + .lead, .hero h1 .script { margin-top: .25em; }
}

/* ==========================================================================
   "Provalo adesso" su telefono: il calendario resta in alto, fisso, mentre scorri i comandi sotto:
   quando scegli un tema o un'apertura lo vedi cambiare subito. Su computer non cambia nulla.
   ========================================================================== */
@media (max-width: 960px) {
  .demo-wrap { display: flex; flex-direction: column; gap: 0; }
  .demo-wrap > .reveal:last-child {
    order: -1; position: sticky; top: var(--hdr-h, 66px); z-index: 6; margin: 0 -20px 18px; padding: 10px 20px 14px;
    background: color-mix(in srgb, var(--sage, #6a7f5c) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px; box-shadow: 0 14px 22px -14px rgba(20, 40, 30, .6);
    transition: box-shadow .4s ease;
  }
  .demo-wrap > .reveal:last-child.flash { box-shadow: 0 14px 22px -14px rgba(20, 40, 30, .6), inset 0 0 0 3px rgba(255, 255, 255, .9); }
  .demo-wrap > .reveal:last-child #demoCal { transform-origin: top center; }
}

@media (max-width: 960px) {
  html, body { overflow-x: clip; }
  .demo-wrap > .reveal:last-child { overflow: hidden; }
  /* il calendario della demo si disegna sempre largo 860px (poi si rimpicciolisce): stesso aspetto del computer, in miniatura leggibile */
  .demo-wrap #demoCal { width: 860px; max-width: none; margin-left: 0; padding: 44px 40px 40px; }
  .demo-wrap #demoCal .door-grid {
    grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(108px, auto); gap: 14px;
    grid-template-areas: "d7 d15 d15 d2 d22 d18" "d4 d1 d1 d13 d10 d18" "d20 d9 d9 d24 d24 d5" "d16 d11 d8 d24 d24 d14" "d16 d3 d3 d21 d21 d19" "d6 d12 d12 d23 d17 d17";
  }
  .demo-wrap #demoCal .cal-header .for { font-size: 3.2rem; }
  .demo-wrap #demoCal .cal-header .sub { font-size: .76rem; }
  .demo-wrap #demoCal .door .num { font-size: 2.4rem; }
  .demo-wrap #demoCal .door.h2 .num, .demo-wrap #demoCal .door.w2 .num { font-size: 3.2rem; }
  .demo-wrap #demoCal .door.fs-script .num { font-size: 3.1rem !important; }
  .demo-wrap #demoCal .door.has-deco .num { font-size: 2rem; }
  /* la casella 24 è la più grande: il suo numero deve restare ben leggibile anche quando il calendario si rimpicciolisce */
  .demo-wrap #demoCal .door.d24 .num { font-size: 5.6rem; }
  .demo-wrap #demoCal .door.d24.style-fiocco .num { font-size: 4rem; }
}

@media (max-width: 960px) {
  .demo-wrap { align-items: stretch; }
  .demo-wrap > .reveal:last-child { width: auto; min-width: 0; align-self: stretch; }
}
@media (max-width: 960px) { .demo-section { overflow: clip; } }

/* "Provalo adesso" su telefono: mentre si scorre in giù la barra di Kalendo si nasconde e il calendario si ancora in cima;
   appena si scorre in su la barra torna al suo posto e il calendario scende sotto di lei */
@media (max-width: 960px) {
  .demo-wrap > .reveal:last-child { transition: top .35s cubic-bezier(.3, 1, .4, 1), box-shadow .4s ease; }
  .site-header { transition: translate .35s cubic-bezier(.3, 1, .4, 1), background .3s, box-shadow .3s, padding .3s; }
  html.demo-focus .site-header { translate: 0 -110%; }
  html.demo-focus .demo-wrap > .reveal:last-child { top: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
}


.price-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 28px; position: relative; }
.price-steps > div { position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 66px; border-radius: 20px; background: #fff; color: var(--teal); box-shadow: 0 5px 0 rgba(36, 59, 69, .14); }
.price-steps b { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1rem var(--font-display); box-shadow: 0 3px 0 var(--red-deep, #b72621); }
.price-steps span { font: 800 1rem var(--font-display); }
.price-steps small { font-size: .86rem; color: var(--ink-soft); line-height: 1.4; }
.price-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.price-extras .px { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .7); color: var(--teal); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 5px 0 rgba(36, 59, 69, .1); }
.price-extras .px div { font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.price-extras .px b { display: block; margin-bottom: 2px; color: var(--teal); font: 800 .98rem var(--font-display); }
.price-extras .a-price { font: 800 1.05rem var(--font-display); color: var(--red); white-space: nowrap; }
@media (max-width: 900px) {
  .price-hero { grid-template-columns: 1fr; padding-top: 38px; }
  .ph-list { grid-template-columns: 1fr; }
  .price-steps, .price-extras { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .ph-list li { opacity: 1; transform: none; } html:not(.force-motion) .ph-list i svg { stroke-dashoffset: 0; } }
.price-extras .px .a-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; font-size: 1.5rem; line-height: 1; box-shadow: 0 3px 0 rgba(36, 59, 69, .12); }

/* ==========================================================================
   Prezzi: un biglietto piatto (come le altre schede del sito): una parte rossa col prezzo e una bianca con quello che c'è dentro
   ========================================================================== */
.ticket { position: relative; display: grid; grid-template-columns: minmax(270px, 350px) 1fr; max-width: 1000px; margin: 8px auto 34px; border-radius: 30px; background: #fff;
  box-shadow: 0 0 0 7px #fff, 0 9px 0 7px rgba(36, 59, 69, .2), 0 44px 56px -30px rgba(36, 59, 69, .55); transition: transform .5s var(--spring); }
.ticket:hover { transform: translateY(-4px) rotate(-.3deg); }
.tk-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 28px 34px; border-radius: 30px 0 0 30px; background: var(--red); color: #fff; text-align: center; }
/* neve sul bordo superiore, come sul calendario */
.tk-stub::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: #fff; border-radius: 30px 0 0 0; }
.tk-stub::after { content: ''; position: absolute; left: 0; right: 0; top: 24px; height: 24px; pointer-events: none; background: radial-gradient(ellipse 15px 13px at 22px 0, #fff 98%, transparent 100%) 0 0 / 44px 24px repeat-x, radial-gradient(ellipse 9px 22px at 8px 0, #fff 98%, transparent 100%) 0 0 / 118px 24px repeat-x; }
.tk-stub > * { position: relative; z-index: 1; }
.tk-kicker { font: 700 .72rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; opacity: .92; }
.tk-price { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 10px 0 0; font-family: var(--font-display); }
.tk-price .amount { font-size: clamp(5rem, 8vw, 6.6rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.tk-price .cur { margin-top: .5em; font-size: 2.1rem; font-weight: 800; }
.tk-script { display: block; margin-top: 2px; font: 700 1.7rem/1 var(--font-script); transform: rotate(-3deg); }
.tk-vat { margin: 12px 0 22px; font-size: .86rem; opacity: .88; }
.tk-cta { background: #fff; color: var(--red-600); box-shadow: 0 6px 0 rgba(0, 0, 0, .22); }
.tk-cta:hover { background: #fff; transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .22); }
.tk-note { margin: 14px 0 0; font-size: .86rem; font-weight: 600; opacity: .95; }
.tk-body { position: relative; padding: 38px clamp(24px, 4vw, 48px) 30px; border-left: 3px dashed #cfe2e6; margin: 14px 0; }
.tk-body h3 { margin: 0 0 18px; font: 800 1.5rem/1.1 var(--font-display); color: var(--teal); text-transform: none; letter-spacing: 0; }
.tk-body h3 em { font: 700 2.1rem/1 var(--font-script); font-style: normal; color: var(--red); }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.tk-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .96rem; line-height: 1.35; color: var(--teal); opacity: 0; transform: translateY(8px); }
.ticket.in .tk-list li { animation: tkIn .55s var(--spring) both; animation-delay: calc(var(--i) * 60ms + .2s); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tk-list i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0; border-radius: 50%; background: var(--sage); box-shadow: 0 3px 0 var(--sage-deep, #52663f); }
.tk-list i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.ticket.in .tk-list i svg { animation: tkTick .45s ease forwards; animation-delay: calc(var(--i) * 60ms + .45s); }
@keyframes tkTick { to { stroke-dashoffset: 0; } }
.tk-foot { margin: 22px 0 0; padding-top: 16px; border-top: 2px dotted #cfe2e6; font: 700 1.25rem/1.2 var(--font-script); color: var(--ink-soft); }
.tk-gnome { position: absolute; z-index: 3; right: -58px; bottom: -34px; width: clamp(110px, 12vw, 150px); filter: drop-shadow(0 10px 0 rgba(36, 59, 69, .14)); animation: bob2 5s ease-in-out infinite; }
@media (max-width: 960px) {
  .ticket { grid-template-columns: 1fr; margin-inline: 8px; }
  .tk-stub { border-radius: 30px 30px 0 0; padding-top: 56px; }
  .tk-stub::before { border-radius: 30px 30px 0 0; }
  .tk-body { border-left: 0; border-top: 3px dashed #cfe2e6; margin: 0 14px; padding: 28px 14px 26px; }
  .tk-list { grid-template-columns: 1fr; }
  .tk-gnome { right: -14px; bottom: -44px; width: 100px; }
}
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .tk-list li { opacity: 1; transform: none; } html:not(.force-motion) .tk-list i svg { stroke-dashoffset: 0; } html:not(.force-motion) .tk-gnome { animation: none; } }
