/* Quanto Manca — sito. Palette e tipografia come in Shared/Brand.swift. */
:root {
  --night: #0A1433;
  --midnight: #050A1C;
  --deep: #0E1A40;
  --card: rgba(255, 250, 242, 0.06);
  --card-strong: rgba(255, 250, 242, 0.10);
  --line: rgba(255, 250, 242, 0.12);
  --red: #C70F2E;
  --deep-red: #730217;
  --pine: #0F5C38;
  --gold: #F2C261;
  --warm-gold: #FF9E3D;
  --snow: #FFFAF2;
  --ice: #BFE0FF;
  --muted: rgba(255, 250, 242, 0.72);
  --soft: rgba(255, 250, 242, 0.55);
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --radius: 22px;
  --wrap: 1160px;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--snow);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(26, 46, 102, 0.9), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(115, 2, 23, 0.35), transparent 60%),
    linear-gradient(180deg, var(--night), var(--midnight) 70%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--snow); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--midnight); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Intestazione */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 28, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; font: 800 20px/1 var(--serif); white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font: 600 15px/1 var(--rounded); padding: 10px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--snow); background: var(--card); }
.site-nav .nav-cta { background: var(--gold); color: var(--midnight); }
.site-nav .nav-cta:hover { background: var(--snow); color: var(--midnight); }
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--rounded); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold); color: var(--midnight); }
.btn-primary:hover { background: var(--snow); color: var(--midnight); }
.btn-ghost { background: var(--card); color: var(--snow); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--card-strong); color: var(--snow); }
.btn-soon { background: var(--snow); color: var(--midnight); cursor: default; }
.btn-soon:hover { transform: none; color: var(--midnight); }
.btn-soon small { display: block; font: 600 12px/1 var(--rounded); opacity: .65; margin-bottom: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--rounded); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40em; }

/* Conto alla rovescia */
.countdown { display: flex; gap: clamp(8px, 1.6vw, 14px); flex-wrap: wrap; margin: 26px 0 22px; }
.countdown .unit {
  min-width: clamp(70px, 11vw, 110px); padding: 14px 10px 12px; text-align: center;
  background: rgba(255, 250, 242, 0.07); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line);
}
.countdown .num { display: block; font: 800 clamp(34px, 5.4vw, 58px)/1 var(--rounded); font-variant-numeric: tabular-nums; color: var(--snow); }
.countdown .lbl { display: block; margin-top: 8px; font: 600 13px/1 var(--rounded); color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.countdown .unit:first-child .num { color: var(--accent, var(--gold)); }
.countdown-today { display: none; font: 800 clamp(30px, 5vw, 52px)/1.1 var(--serif); color: var(--accent, var(--gold)); margin: 26px 0 22px; }
.is-today .countdown { display: none; }
.is-today .countdown-today { display: block; }
.countdown-caption { font: 600 15px/1.4 var(--rounded); color: var(--soft); margin: -8px 0 26px; }

/* Hero della home */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 .hl { color: var(--gold); display: block; }
.hero-card {
  margin-top: 30px; padding: 20px 22px 4px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(199, 15, 46, 0.18), rgba(255, 250, 242, 0.04));
  box-shadow: inset 0 0 0 1px var(--line); max-width: 560px;
}
.hero-card .countdown { margin: 14px 0 18px; }
.hero-card .countdown .unit { min-width: 0; flex: 1; }
.hero-card .countdown .num { font-size: clamp(30px, 4vw, 44px); }
.hero-card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font: 700 15px/1.3 var(--rounded); color: var(--muted); }
.hero-card-title a { font-weight: 700; text-decoration: none; }
.hero-card .countdown-today { font-size: 34px; margin: 14px 0 18px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* iPhone di esempio */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  --c1: #1A2E66; --c2: #0A1433; --c3: #050A1C; --accent: #F2C261;
  position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 19.5;
  border-radius: 54px; padding: 12px;
  background: linear-gradient(145deg, #3a3f4c, #15171d 40%, #2a2e37);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 43px; overflow: hidden;
  background: linear-gradient(180deg, var(--c1), var(--c2) 55%, var(--c3));
  transition: background .6s ease;
  isolation: isolate;
}
.phone canvas, .scene-bg, .scene-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phone-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 14px 18px 22px; text-align: center; }
.phone-status { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 700 13px/1 var(--rounded); padding: 4px 10px 0; }
.island { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone-status .bars { display: flex; gap: 3px; align-items: flex-end; }
.phone-status .bars i { width: 3px; background: var(--snow); border-radius: 1px; }
.phone-brand { margin-top: 20px; display: flex; align-items: center; gap: 7px; font: 800 14px/1 var(--serif); color: rgba(255, 250, 242, .9); }
.phone-brand img { width: 20px; height: 20px; border-radius: 5px; }
.phone-holiday { margin-top: auto; font: 800 26px/1.1 var(--serif); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.phone-holiday .em { display: block; font-size: 34px; margin-bottom: 6px; }
.phone-days { font: 800 92px/0.95 var(--rounded); font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 4px 30px rgba(0, 0, 0, .45); margin-top: 8px; }
.phone-days-lbl { font: 700 15px/1 var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 250, 242, .85); }
.phone-hms { margin-top: 14px; font: 700 22px/1 var(--rounded); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: rgba(255, 250, 242, .95); }
.phone-bar { margin-top: 16px; width: 78%; height: 8px; border-radius: 99px; background: rgba(255, 250, 242, .18); overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--snow)); }
.phone-quote { margin-top: auto; width: 100%; padding: 12px 14px; border-radius: 18px; background: rgba(5, 10, 28, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 600 12.5px/1.35 var(--rounded); color: rgba(255, 250, 242, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.phone-quote b { display: block; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; }
.demo-chips button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s ease, background .15s ease;
}
.demo-chips button:hover { transform: scale(1.08); }
.demo-chips button[aria-pressed="true"] { background: var(--card-strong); box-shadow: inset 0 0 0 2px var(--gold); }
.demo-caption { font: 600 13px/1.3 var(--rounded); color: var(--soft); margin: 0; text-align: center; }

/* Sezioni */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 19px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(242, 194, 97, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F2C261' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks li strong { color: var(--snow); }

/* Feste */
.holiday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.holiday-card {
  --c1: #1A2E66; --c2: #0A1433; --accent: #F2C261;
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 196px;
  border-radius: var(--radius); text-decoration: none; color: var(--snow); overflow: hidden;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.holiday-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .35)); pointer-events: none; }
.holiday-card > * { position: relative; z-index: 1; }
.holiday-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 18px 40px -18px rgba(0, 0, 0, .8); color: var(--snow); }
.holiday-card img { width: 54px; height: 54px; border-radius: 13px; margin-bottom: auto; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.holiday-card .hc-name { font: 800 21px/1.15 var(--serif); margin-top: 18px; }
.holiday-card .hc-date { font: 600 14px/1.3 var(--rounded); color: rgba(255, 250, 242, .78); }
.holiday-card .hc-days { position: absolute; top: 16px; right: 16px; text-align: right; font: 800 30px/1 var(--rounded); font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.holiday-card .hc-days small { display: block; font: 700 11px/1.4 var(--rounded); color: rgba(255, 250, 242, .75); letter-spacing: .08em; text-transform: uppercase; }
.holiday-card.is-next { grid-column: span 2; }
.holiday-card.is-next .hc-name { font-size: 28px; }
.holiday-card.is-next .hc-days { font-size: 46px; }
.holiday-card .hc-badge { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--rounded); background: rgba(255, 250, 242, .16); }
.holiday-card .hc-badge[hidden] { display: none; }
.holiday-card.custom { --c1: #4A2B8C; --c2: #1B0F3A; border: 1px dashed rgba(255, 250, 242, .35); box-shadow: none; }
@media (max-width: 520px) { .holiday-card.is-next { grid-column: auto; } .holiday-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .holiday-card { min-height: 172px; padding: 14px; } .holiday-card .hc-days { font-size: 24px; top: 12px; right: 12px; } .holiday-card img { width: 44px; height: 44px; } .holiday-card .hc-name { font-size: 18px; } .holiday-card.is-next { grid-column: span 2; } }

/* Galleria sfondi */
.scene-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.scene-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--c1), var(--c2) 60%, var(--c3)); box-shadow: inset 0 0 0 1px var(--line); }
.scene-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; font: 700 15px/1.25 var(--rounded); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.scene-tile figcaption span { display: block; font-weight: 600; font-size: 13px; color: rgba(255, 250, 242, .75); }
.scene-tile { margin: 0; }
@media (max-width: 900px) { .scene-tiles { grid-template-columns: repeat(2, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 14px/1 var(--rounded); color: var(--muted); }

/* Widget */
.widget-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wall { border-radius: 34px; padding: 20px 20px 44px; min-height: 360px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.wall-home { background: radial-gradient(120% 90% at 20% 0%, #2c4aa0, #0c1a45 55%, #060c22); }
.wall-lock { background: radial-gradient(120% 90% at 80% 0%, #6b1630, #2a0b20 55%, #0c0612); text-align: center; }
.wall-lock .time { font: 700 76px/1 var(--rounded); letter-spacing: -0.02em; margin-top: 14px; color: rgba(255, 250, 242, .95); }
.wall-lock .date { font: 600 17px/1 var(--rounded); color: rgba(255, 250, 242, .85); margin-top: 10px; }
.wall-title { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 600 13px/1 var(--rounded); color: rgba(255, 250, 242, .65); }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-dot { aspect-ratio: 1; border-radius: 22%; background: rgba(255, 250, 242, .14); }
.w { border-radius: 24px; padding: 14px; color: var(--snow); position: relative; overflow: hidden; background: linear-gradient(160deg, #1A2E66, #0A1433 60%, #050A1C); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.w-small { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; display: flex; flex-direction: column; }
.w-medium { grid-column: span 4; grid-row: span 2; display: flex; align-items: center; gap: 16px; min-height: 140px; background: linear-gradient(135deg, #730217, #3a0410 60%, #1a0208); }
.w .w-name { font: 800 14px/1.2 var(--serif); display: flex; align-items: center; gap: 6px; }
.w .w-days { font: 800 50px/1 var(--rounded); font-variant-numeric: tabular-nums; color: var(--gold); margin-top: auto; }
.w .w-lbl { font: 700 11px/1 var(--rounded); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 250, 242, .75); }
.w-medium .w-days { margin-top: 6px; font-size: 56px; }
.w-medium .w-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.w-bar { height: 7px; border-radius: 99px; background: rgba(255, 250, 242, .2); overflow: hidden; }
.w-bar i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--gold), var(--snow)); border-radius: 99px; }
.w-buttons { display: flex; gap: 8px; }
.w-buttons span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 250, 242, .16); font-size: 15px; }
.w-quote { font: 600 12px/1.35 var(--rounded); color: rgba(255, 250, 242, .85); }
.lock-widgets { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.lw { border-radius: 18px; background: rgba(255, 250, 242, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 14px; text-align: left; font: 700 13px/1.3 var(--rounded); }
.lw-rect { min-width: 170px; }
.lw-rect .big { font: 800 22px/1.1 var(--rounded); font-variant-numeric: tabular-nums; }
.lw-rect .w-bar { margin-top: 6px; height: 5px; }
.lw-rect .w-bar i { background: var(--snow); }
.lw-circle { width: 70px; height: 70px; border-radius: 50%; padding: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.lw-circle b { display: block; font: 800 24px/1 var(--rounded); }
.lw-circle small { font-size: 10px; opacity: .8; }
.lock-quote { margin: 14px auto 0; max-width: 260px; text-align: left; }
@media (max-width: 900px) { .widget-stage { grid-template-columns: 1fr; } }

/* Avvento */
.advent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 18px; border-radius: 30px; background: linear-gradient(160deg, #0F5C38, #052b1b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.door { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font: 800 20px/1 var(--rounded); color: var(--gold); background: linear-gradient(160deg, rgba(199, 15, 46, .9), rgba(115, 2, 23, .9)); box-shadow: inset 0 0 0 1px rgba(242, 194, 97, .45), 0 4px 10px rgba(0, 0, 0, .25); position: relative; }
.door.open { background: rgba(5, 10, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 250, 242, .15); font-size: 24px; }
.door.today { box-shadow: inset 0 0 0 2px var(--snow), 0 0 0 3px rgba(242, 194, 97, .5), 0 0 24px rgba(242, 194, 97, .55); animation: pulse 2.4s ease-in-out infinite; }
.door.gold { background: linear-gradient(160deg, #F2C261, #b9812a); color: var(--midnight); }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .door.today { animation: none; } }
@media (max-width: 420px) { .advent { gap: 7px; padding: 12px; } .door { border-radius: 10px; font-size: 16px; } }

/* Frase del giorno */
.quote-card { position: relative; padding: clamp(28px, 5vw, 52px); border-radius: 30px; background: linear-gradient(135deg, rgba(242, 194, 97, .14), rgba(255, 250, 242, .03)); box-shadow: inset 0 0 0 1px rgba(242, 194, 97, .3); }
.quote-card::before { content: "\201C"; position: absolute; top: -10px; left: 22px; font: 800 130px/1 var(--serif); color: rgba(242, 194, 97, .35); }
.quote-card blockquote { margin: 0; font: italic 600 clamp(22px, 2.8vw, 32px)/1.35 var(--serif); position: relative; }
.quote-card figcaption { margin-top: 18px; font: 700 16px/1.4 var(--rounded); color: var(--gold); }
.quote-card figcaption cite { display: block; font-style: normal; font-weight: 600; color: var(--soft); font-size: 14px; }
.quote-card .q-label { font: 700 13px/1 var(--rounded); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0 0 16px; }

/* La tua festa e icone */
.custom-demo { padding: 26px; border-radius: 30px; background: linear-gradient(135deg, #FF5CA8, #8A3FFC 60%, #2A0E63); box-shadow: 0 30px 60px -30px rgba(138, 63, 252, .8); display: flex; align-items: center; gap: 18px; }
.custom-demo .em { font-size: 46px; }
.custom-demo .t { font: 800 26px/1.1 var(--serif); }
.custom-demo .d { font: 700 16px/1.3 var(--rounded); color: rgba(255, 250, 242, .85); margin-top: 6px; }
.custom-demo .n { margin-left: auto; text-align: right; font: 800 54px/1 var(--rounded); color: #FFE04C; }
.custom-demo .n small { display: block; font: 700 12px/1.4 var(--rounded); color: rgba(255, 250, 242, .8); letter-spacing: .1em; text-transform: uppercase; }
.icon-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.icon-row figure { margin: 0; text-align: center; }
.icon-row img { width: 100%; max-width: 92px; margin: 0 auto 8px; border-radius: 22%; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.icon-row figcaption { font: 600 13px/1.2 var(--rounded); color: var(--soft); }
@media (max-width: 520px) { .icon-row { gap: 10px; } .custom-demo { flex-wrap: wrap; } .custom-demo .n { margin-left: 0; text-align: left; } }

/* Prezzi */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { padding: 30px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan.plus { background: linear-gradient(150deg, rgba(115, 2, 23, .85), rgba(10, 20, 51, .9)); box-shadow: inset 0 0 0 1px rgba(242, 194, 97, .55), 0 30px 70px -35px rgba(199, 15, 46, .9); }
.plan h3 { font-size: 26px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan .price { font: 800 30px/1 var(--rounded); color: var(--gold); }
.plan .price small { font: 600 14px/1 var(--rounded); color: var(--soft); }
.plan p { color: var(--muted); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 700 18px/1.35 var(--rounded); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 600 26px/1 var(--rounded); color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Chiusura */
.cta-band { text-align: center; padding: clamp(44px, 6vw, 72px) var(--gutter); border-radius: 36px; background: radial-gradient(120% 140% at 50% 0%, rgba(199, 15, 46, .55), rgba(10, 20, 51, .6) 60%); box-shadow: inset 0 0 0 1px var(--line); }
.cta-band img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); }
.cta-band p { color: var(--muted); max-width: 34em; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* Pagina festa */
.h-hero { --c1: #1A2E66; --c2: #0A1433; --c3: #050A1C; --accent: #F2C261; position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(44px, 7vw, 90px); background: linear-gradient(170deg, var(--c1), var(--c2) 55%, var(--c3)); border-bottom: 1px solid var(--line); }
.h-hero .wrap { position: relative; z-index: 2; }
.h-hero h1 { max-width: 15em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.h-hero .lead { color: rgba(255, 250, 242, .85); }
.h-hero .lead strong { color: var(--snow); }
.h-hero .eyebrow { color: var(--accent); }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 10, 28, .55), rgba(5, 10, 28, 0.05) 70%); pointer-events: none; }
.breadcrumb { font: 600 14px/1.4 var(--rounded); color: rgba(255, 250, 242, .7); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255, 250, 242, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--snow); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .6; }
.h-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(44px, 6vw, 80px); }
.prose p { color: var(--muted); font-size: 18px; }
.prose h2 { margin-top: 0; }
.side { position: sticky; top: 90px; display: grid; gap: 18px; }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.side-card h2 { font-size: 22px; }
.dates { width: 100%; border-collapse: collapse; font: 600 15px/1.3 var(--rounded); }
.dates th { text-align: left; color: var(--soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 0 8px; }
.dates td { padding: 10px 0; border-top: 1px solid var(--line); }
.dates td:last-child { text-align: right; color: var(--muted); }
.dates tr:first-child td { color: var(--gold); }
.app-card { padding: 22px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(115, 2, 23, .8), rgba(10, 20, 51, .9)); box-shadow: inset 0 0 0 1px rgba(242, 194, 97, .4); }
.app-card img { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 14px; }
.app-card h2 { font-size: 22px; }
.app-card p { color: var(--muted); font-size: 15px; }
.app-card .btn { padding: 13px 18px; font-size: 15px; }
@media (max-width: 960px) { .h-body { grid-template-columns: 1fr; } .side { position: static; } }

/* Pagine di testo */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 28px; margin-top: 1.6em; }
.page p, .page li { color: var(--muted); }
.page .card { padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin: 20px 0; }
.page .card p:last-child { margin: 0; }
.updated { font: 600 14px/1 var(--rounded); color: var(--soft); }

/* Piè di pagina */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; margin-top: clamp(40px, 6vw, 80px); background: rgba(5, 10, 28, .6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 700 13px/1 var(--rounded); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--snow); }
.site-footer p { color: var(--soft); font-size: 14px; }
.site-footer .footer-cols { display: block; columns: 2; column-gap: 24px; }
.footer-cols li { break-inside: avoid; margin-bottom: 8px; }
.copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--soft); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Icona della festa nell'intestazione */
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.h-hero-icon { width: clamp(150px, 18vw, 220px); border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .h-hero-icon { animation: none; } }
@media (max-width: 760px) { .h-hero-grid { grid-template-columns: 1fr; } .h-hero-icon { display: none; } }

/* Profili social nel piè di pagina */
.site-footer .social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-footer .social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s ease, background .15s ease, transform .15s ease; }
.site-footer .social a:hover { color: var(--midnight); background: var(--gold); transform: translateY(-2px); }
.site-footer .social svg { width: 20px; height: 20px; }
