/* Conti Chiari — tema WordPress del sito di vendita. Palette "Notte & Salvia" del prodotto. Nessun font esterno. */
:root {
  --navy: #1E2A47;
  --navy-2: #141C31;
  --navy-3: #0E1424;
  --sage: #6E9C82;
  --sage-2: #8DB89F;
  --coral: #E2725B;
  --coral-2: #EC8A75;
  --gold: #D9A441;
  --powder: #8FA9C9;
  --cream: #F7F4EF;
  --cream-2: #EFE9E1;
  --line: #E4DDD2;
  --ink: #23201D;
  --muted: #6B645C;
  --white: #FFFFFF;
  --ok: #2E8B57;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(20, 28, 49, .06);
  --shadow: 0 20px 50px -20px rgba(20, 28, 49, .35);
  --shadow-xl: 0 50px 120px -30px rgba(5, 10, 25, .65);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ bozza */
.bozza-ribbon {
  display: none; position: relative; z-index: 60; background: var(--gold); color: var(--navy-2);
  text-align: center; font-size: 13.5px; font-weight: 600; padding: 6px 16px;
}
body.bozza .bozza-ribbon { display: block; }
.solo-bozza { display: none; }
body.bozza .solo-bozza { display: inline; }
body.bozza .avviso.solo-bozza { display: block; }

/* ------------------------------------------------------------------ navigazione */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, transform .3s;
}
body.bozza .nav { top: 31px; }
/* barra di amministrazione di WordPress (solo per chi ha fatto l'accesso) */
.admin-bar .nav, .admin-bar .progress { top: 32px; }
.admin-bar.bozza .nav { top: 63px; }
@media (max-width: 782px) { .admin-bar .nav, .admin-bar .progress { top: 46px; } .admin-bar.bozza .nav { top: 77px; } }
.nav__offerta {
  font-size: 13.5px; font-weight: 600; color: #F1C98A; white-space: nowrap; font-variant-numeric: tabular-nums;
  padding: 6px 12px; border-radius: 999px; background: rgba(217,164,65,.12); box-shadow: inset 0 0 0 1px rgba(217,164,65,.4);
}
@media (max-width: 1100px) { .nav__offerta { display: none; } }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav.is-scrolled { background: rgba(20, 28, 49, .78); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 8px 30px -12px rgba(0,0,0,.45); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav__links a { color: #C9D3E4; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ------------------------------------------------------------------ bottoni */
.btn {
  --bg: var(--coral);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--white); font: 600 16.5px/1 var(--font); text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(226, 114, 91, .65); overflow: hidden; isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn::after { /* riflesso che attraversa il bottone */
  content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(226, 114, 91, .75); background: var(--coral-2); }
.btn--ghost { --bg: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--dark { --bg: var(--navy); box-shadow: 0 12px 30px -12px rgba(20,28,49,.6); }
.btn--dark:hover { background: #2A3A60; box-shadow: 0 18px 40px -14px rgba(20,28,49,.7); }
.btn--lg { padding: 19px 34px; font-size: 18px; }
.btn small { font-weight: 500; opacity: .85; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
/* pulsanti d'acquisto: si avvicinano al cursore, con una luce che lo segue, e "respirano" */
.btn--magnet { transition: transform .2s ease, box-shadow .2s ease, background .2s, translate .25s cubic-bezier(.2,.7,.2,1); }
.btn--magnet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.38), transparent 60%);
}
.btn--magnet:hover::before { opacity: 1; }
.btn--pulse { animation: pulse 2.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 12px 30px -10px rgba(226,114,91,.65), 0 0 0 0 rgba(226,114,91,.55); }
  70%, 100% { box-shadow: 0 12px 30px -10px rgba(226,114,91,.65), 0 0 0 18px rgba(226,114,91,0); }
}
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn[disabled]::after { display: none; }
.btn.is-loading { color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; top: calc(50% - 11px); left: calc(50% - 11px); width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; color: var(--white); padding: 150px 0 0; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(110,156,130,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(226,114,91,.22), transparent 60%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%, #24345A 100%);
}
.hero::before { /* griglia sottile */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 460px; height: 460px; background: #6E9C82; top: -120px; right: 8%; }
.blob--2 { width: 380px; height: 380px; background: #E2725B; top: 280px; left: -140px; animation-duration: 22s; opacity: .35; }
.blob--3 { width: 300px; height: 300px; background: #D9A441; top: 520px; right: -80px; animation-duration: 26s; opacity: .28; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px, 60px) scale(1.15); } }

.hero__copy { position: relative; text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  font-size: 14px; color: #D6DEEA; font-weight: 500;
}
.eyebrow b { background: var(--sage); color: var(--white); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; letter-spacing: .02em; }
.eyebrow b { white-space: nowrap; }
@media (max-width: 560px) { .eyebrow { font-size: 13px; } }
.eyebrow--offerta { text-decoration: none; color: #F6E3BF; box-shadow: inset 0 0 0 1px rgba(241,201,138,.45), 0 0 30px -8px rgba(217,164,65,.55); transition: background .2s; }
.eyebrow--offerta:hover { background: rgba(255,255,255,.14); }
.eyebrow--offerta b { background: linear-gradient(90deg, var(--coral), var(--gold)); }

/* conto alla rovescia dell'offerta di lancio */
.countdown {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: fit-content; margin: 30px auto 0;
  padding: 16px 24px 14px; border-radius: 22px; background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(241,201,138,.35), 0 24px 60px -34px rgba(217,164,65,.8);
}
.countdown__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F1C98A; }
.countdown__units { display: flex; gap: 10px; }
.countdown__units span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 6px 6px; border-radius: 14px; background: rgba(9,13,24,.35); }
.countdown__units b { font-family: var(--font-display); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #fff; }
.countdown__units small { margin-top: 5px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9FB0C8; }
.countdown__note { font-size: 13.5px; color: #B8C4D6; }
@media (max-width: 560px) { .countdown__units span { min-width: 56px; } .countdown__units b { font-size: 26px; } }

/* neve dorata nell'hero delle feste (disegnata da main.js) */
.neve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(42px, 7vw, 84px); margin: 22px 0 18px;
}
.grad {
  background: linear-gradient(92deg, #A9D3B8 0%, #F1C98A 45%, #F2A08C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: grad 8s ease-in-out infinite alternate;
}
@keyframes grad { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero__lead { font-size: clamp(18px, 2.2vw, 21px); color: #CBD5E4; max-width: 680px; margin: 0 auto 32px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #B8C4D6; font-size: 14.5px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { width: 18px; height: 18px; color: var(--sage-2); flex: none; }

/* finestra del prodotto con prospettiva */
.stage { position: relative; margin: 64px auto 0; max-width: 1120px; perspective: 1600px; padding-bottom: 90px; }
.window {
  position: relative; border-radius: 16px; background: #fff; box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.08);
  transform-origin: 50% 0; transform: rotateX(var(--tilt, 22deg)) scale(var(--scale, .9)) translateY(var(--lift, 0px));
  will-change: transform; overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: #F3EFE9; border-bottom: 1px solid #E5DED4; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E0D9CF; }
.window__bar i:nth-child(1) { background: #EE7B66; } .window__bar i:nth-child(2) { background: #E8B64C; } .window__bar i:nth-child(3) { background: #7FB38F; }
.window__bar span { margin-left: 10px; font-size: 13px; color: #8A8178; font-weight: 600; }
.window__bar .excel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8A8178; }
.window__bar .excel b { background: #1E7145; color: #fff; border-radius: 3px; padding: 0 5px; font-size: 11px; }
.window img { width: 100%; height: auto; }
.window::after { /* riflesso */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.18) 0%, transparent 35%, transparent 70%, rgba(255,255,255,.06) 100%);
}

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -18px rgba(5,10,25,.55), 0 0 0 1px rgba(255,255,255,.6);
  font-size: 14px; line-height: 1.3; animation: bob 6s ease-in-out infinite; will-change: transform;
}
.float strong { display: block; font-size: 19px; letter-spacing: -.01em; }
.float small { color: var(--muted); font-size: 12.5px; }
.float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.float--a { left: -34px; top: 18%; } .float--a .ico { background: var(--sage); }
.float--b { right: -30px; top: 8%; animation-delay: -2s; } .float--b .ico { background: var(--gold); }
.float--c { right: 6%; bottom: 112px; animation-delay: -4s; background: rgba(30,42,71,.92); color: #fff; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.float--c small { color: #B9C5D8; } .float--c .ico { background: var(--coral); }
.float--d { left: 9%; bottom: 124px; animation-delay: -1s; } .float--d .ico { background: var(--navy); }
.float strong.ok { color: var(--ok); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 1240px) { .float--a { left: 10px; } .float--b { right: 10px; } }
@media (max-width: 980px) {
  .float--a { left: 6px; top: -36px; } .float--b { display: none; }
  .float--c { right: 6px; bottom: 96px; } .float--d { display: none; }
}
@media (max-width: 560px) { .float { padding: 10px 12px; font-size: 12.5px; } .float strong { font-size: 16px; } .float .ico { width: 32px; height: 32px; } }

/* ------------------------------------------------------------------ numeri */
.numbers { background: var(--navy-2); color: #fff; padding: 46px 0; position: relative; }
.numbers ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; text-align: center; }
.numbers b { display: block; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.numbers b em { font-style: normal; color: var(--sage-2); }
.numbers span { display: block; margin-top: 8px; color: #AEB9CC; font-size: 15px; }
@media (max-width: 720px) { .numbers ul { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* ------------------------------------------------------------------ sezioni */
section { position: relative; }
section[id], .calc[id] { scroll-margin-top: 76px; }
.section { padding: 110px 0; }
.section--white { background: var(--white); }
.section--dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.kicker { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.section--dark .kicker { color: var(--gold); }
.h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 700; color: var(--navy); }
.section--dark .h2 { color: #fff; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0; }
.section--dark .lead { color: #B9C5D8; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* reveal allo scorrimento */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }

/* ------------------------------------------------------------------ problema → soluzione */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.pain article { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.pain h3 { margin: 14px 0 8px; font-size: 20px; color: var(--navy); letter-spacing: -.01em; }
.pain p { margin: 0; color: var(--muted); font-size: 16px; }
.pain .q { font-size: 15px; color: #9A928A; text-decoration: line-through; text-decoration-color: rgba(226,114,91,.6); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.icon svg { width: 24px; height: 24px; }
.i-sage { background: var(--sage); } .i-coral { background: var(--coral); } .i-gold { background: var(--gold); } .i-navy { background: var(--navy); } .i-powder { background: var(--powder); }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ livelli (tab) */
.levels { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.tabs { display: flex; flex-direction: column; gap: 12px; }
.tab {
  text-align: left; border: 0; cursor: pointer; padding: 20px 22px; border-radius: var(--radius);
  background: transparent; color: var(--ink); font: inherit; transition: background .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.tab h3 { margin: 0 0 4px; font-size: 21px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.tab h3 span { font-size: 13px; color: var(--white); background: var(--navy); border-radius: 999px; padding: 2px 10px; letter-spacing: .03em; }
.tab p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tab[aria-selected="true"] { background: var(--white); box-shadow: var(--shadow); }
.tab[aria-selected="true"] h3 span { background: var(--coral); }
.tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--coral); }
.tab[aria-selected="true"] .bar { animation: progress 7s linear forwards; }
.levels.paused .tab .bar { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.screens { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 2418 / 1534; border: 1px solid var(--line); }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform 1.2s ease; }
.screens img.is-on { opacity: 1; transform: none; }
@media (max-width: 980px) { .levels { grid-template-columns: 1fr; } .tabs { flex-direction: row; overflow-x: auto; } .tab { min-width: 240px; } }

/* ------------------------------------------------------------------ calcolatore */
.calc { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.calc__card {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 34px; backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.field { margin-bottom: 26px; }
.field label { display: flex; justify-content: space-between; font-size: 15px; color: #C9D3E4; margin-bottom: 10px; font-weight: 500; }
.field label { gap: 12px; }
.field output { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--sage) var(--p, 50%), rgba(255,255,255,.15) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(110,156,130,.35), 0 4px 10px rgba(0,0,0,.3); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(110,156,130,.35), 0 4px 10px rgba(0,0,0,.3); cursor: grab; }
.result { text-align: center; }
.result .label { color: #B9C5D8; font-size: 16px; }
.result .big { font-family: var(--font-display); font-size: clamp(54px, 8vw, 92px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 10px; font-variant-numeric: tabular-nums; color: #fff; transition: color .3s; }
.result .big.ko { color: var(--coral-2); }
.result .msg { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15.5px; background: rgba(110,156,130,.18); color: #BFE0CB; box-shadow: inset 0 0 0 1px rgba(110,156,130,.45); }
.result .msg.ko { background: rgba(226,114,91,.16); color: #F7B9AA; box-shadow: inset 0 0 0 1px rgba(226,114,91,.5); }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; text-align: left; }
.meter span { display: flex; justify-content: space-between; font-size: 13.5px; color: #AEB9CC; margin-bottom: 7px; }
.meter i { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter i b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--sage-2)); transition: width .6s cubic-bezier(.2,.7,.2,1), background .3s; }
.meter i b.warn { background: linear-gradient(90deg, var(--gold), #EFC46B); }
.meter i b.ko { background: linear-gradient(90deg, var(--coral), var(--coral-2)); }
.formula { margin-top: 22px; font-size: 13.5px; color: #8E9BB2; }
.formula code { color: #D6DEEA; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 6px; font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 12.5px; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ bento funzionalità */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile {
  grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile::after { /* luce che segue il cursore */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(217,164,65,.13), transparent 45%);
}
.tile:hover::after { opacity: 1; }
.tile h3 { font-size: 21px; color: var(--navy); margin: 16px 0 8px; letter-spacing: -.015em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile--wide { grid-column: span 4; }
.tile--full { grid-column: span 6; }
.tile--tall { grid-row: span 2; }
.tile .shot { margin: 22px -28px -28px; border-top: 1px solid var(--line); background: var(--cream); }
.tile .shot img { width: 100%; }
.tile--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile--dark h3 { color: #fff; } .tile--dark p { color: #B9C5D8; }
.tile ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.tile ul li { padding: 4px 0 4px 24px; position: relative; }
.tile ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
/* mini timeline dei debiti nel riquadro scuro */
.debts { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.debts__head { display: flex; flex-direction: column; margin-bottom: 14px; }
.debts__head span { font-size: 13px; color: #9FB0C8; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.debts__head b { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; color: #fff; }
.debt { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 12px 0; font-size: 13.5px; color: #D6DEEA; }
.debt i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--coral-2)); width: 0; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.reveal.is-in .debt i { width: var(--w); }
.debt small { color: #9FB0C8; font-size: 12.5px; }
.debts__note { font-size: 13px !important; color: #9FB0C8 !important; margin-top: 14px !important; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile--wide, .tile--full { grid-column: span 2; } .tile--tall { grid-row: auto; } }

/* ------------------------------------------------------------------ Italia (marquee) */
.italy { padding: 90px 0; overflow: hidden; background: var(--cream-2); }
.marquee { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.pill { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 12px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: 16px; box-shadow: var(--shadow-sm); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.pill:nth-child(3n) i { background: var(--coral); } .pill:nth-child(3n+1) i { background: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ setup in 5 passi */
.steps { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 50px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--coral); line-height: 1; }
.steps h3 { margin: 2px 0 4px; font-size: 19px; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps .frame { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(1.2deg); transition: transform .5s; }
.steps .frame:hover { transform: rotate(0) scale(1.01); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ privacy */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.trust div { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.trust h3 { margin: 14px 0 6px; font-size: 18px; color: #fff; }
.trust p { margin: 0; color: #AEB9CC; font-size: 15px; }
@media (max-width: 980px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ prezzo */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 50px; }
.price-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
/* cornice che ruota attorno alla scheda prezzo, con alone */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-wrap {
  position: relative; isolation: isolate; padding: 3px; border-radius: calc(var(--radius-lg) + 3px);
  background: conic-gradient(from var(--ang), var(--sage), var(--gold), var(--coral), var(--powder), var(--sage));
  animation: giro 6s linear infinite;
}
.price-wrap::before { content: ""; position: absolute; inset: 14px; z-index: -1; border-radius: inherit; background: inherit; filter: blur(30px); opacity: .5; }
.price-wrap .price-card { border: 0; }
@keyframes giro { to { --ang: 360deg; } }
.ribbon {
  position: absolute; top: 26px; right: -48px; transform: rotate(35deg); z-index: 2;
  padding: 7px 56px; background: linear-gradient(90deg, var(--coral), var(--gold)); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(226,114,91,.7);
}
.price-card__offerta {
  display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(217,164,65,.1); border: 1px dashed rgba(217,164,65,.6); font-size: 14.5px; color: #6B4A06;
}
.price-card__timer b { color: var(--coral); font-variant-numeric: tabular-nums; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--sage), var(--gold), var(--coral)); }
.price-card .tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); background: rgba(110,156,130,.12); padding: 5px 12px; border-radius: 999px; }
.price-card h3 { font-size: 26px; color: var(--navy); margin: 16px 0 4px; letter-spacing: -.02em; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.price b { font-family: var(--font-display); font-size: 68px; line-height: 1; letter-spacing: -.04em; color: var(--navy); }
.price span { color: var(--muted); font-size: 15px; line-height: 1.3; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.price-card li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed var(--line); font-size: 16px; }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); transform: rotate(-45deg); }
.price-card .btn { width: 100%; }
.price-card .fine { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.req { background: var(--cream); border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); }
.req h3 { margin: 0 0 14px; color: var(--navy); font-size: 21px; }
.req dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; font-size: 15.5px; }
.req dt { color: var(--muted); font-weight: 600; }
.req dd { margin: 0; }
.req .no { color: #A0453A; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 46px auto 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy); font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ------------------------------------------------------------------ CTA finale + footer */
.final { padding: 120px 0; text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(800px 400px at 50% 120%, rgba(226,114,91,.4), transparent 70%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.final .h2 { color: #fff; max-width: 800px; margin-inline: auto; }
.final .lead { margin: 0 auto 34px; color: #B9C5D8; }
.final__nota { margin: 18px 0 0; color: #F1C98A; font-size: 14.5px; font-variant-numeric: tabular-nums; }
footer { background: var(--navy-3); color: #8E9BB2; padding: 50px 0 40px; font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: #C9D3E4; text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { font-size: 17px; }
.foot p { margin: 6px 0 0; }
.foot .seller { color: var(--gold); }

/* ------------------------------------------------------------------ modale */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgba(9,13,24,.6); backdrop-filter: blur(6px); }
.modal.is-open { display: grid; animation: fade .25s ease; }
.modal__box { max-width: 480px; background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-xl); position: relative; animation: pop .35s cubic-bezier(.2,.8,.2,1.2); }
.modal__box h3 { margin: 0 0 10px; color: var(--navy); font-size: 24px; }
.modal__box p { color: var(--muted); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-2); cursor: pointer; font-size: 20px; color: var(--navy); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* ------------------------------------------------------------------ pagine legali */
.doc { padding: 140px 0 80px; }
.doc .container { max-width: 820px; }
.doc h1 { font-family: var(--font-display); color: var(--navy); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.03em; margin: 0 0 10px; }
.doc h2 { color: var(--navy); font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: #4A443E; }
.avviso { background: #FCEFD2; border: 1px solid #E3A21A; color: #6B4A06; border-radius: 14px; padding: 16px 20px; margin: 22px 0; font-size: 15.5px; }
.nav--solid { background: var(--navy-2); }

/* ------------------------------------------------------------------ feste (Natale e anno nuovo) */
.feste {
  color: #fff; overflow: hidden;
  background: radial-gradient(900px 420px at 50% 0%, rgba(217,164,65,.2), transparent 70%), linear-gradient(180deg, var(--navy-2) 0%, #18233D 100%);
}
.feste .h2 { color: #fff; } .feste .lead { color: #B9C5D8; } .feste .kicker { color: var(--gold); }
.feste__stelle {
  position: absolute; inset: 0; pointer-events: none; animation: brilla 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #F1C98A, transparent), radial-gradient(1.2px 1.2px at 22% 64%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 37% 12%, #fff, transparent), radial-gradient(1.2px 1.2px at 48% 82%, #F1C98A, transparent),
    radial-gradient(1.6px 1.6px at 63% 28%, #fff, transparent), radial-gradient(1.2px 1.2px at 74% 70%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 86% 16%, #F1C98A, transparent), radial-gradient(1.2px 1.2px at 94% 58%, #fff, transparent);
}
@keyframes brilla { from { opacity: .35; } to { opacity: .9; } }
.feste__timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 56px 0 0; padding: 0; }
.feste__timeline::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 9px; height: 2px; opacity: .7;
  background: linear-gradient(90deg, transparent, var(--gold), var(--coral), var(--sage), transparent);
}
.feste__timeline li {
  position: relative; padding: 40px 24px 26px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.feste__timeline li::before { /* stella sulla linea del tempo */
  content: ""; position: absolute; top: 2px; left: 24px; width: 16px; height: 16px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: brilla 2.4s ease-in-out infinite alternate;
}
.feste__timeline li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 0%), rgba(241,201,138,.12), transparent 50%);
}
.feste__timeline time { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.feste__timeline h3 { margin: 6px 0 6px; font-size: 20px; color: #fff; letter-spacing: -.01em; }
.feste__timeline p { margin: 0; color: #AEB9CC; font-size: 15px; }
@media (max-width: 980px) { .feste__timeline { grid-template-columns: 1fr 1fr; } .feste__timeline::before { display: none; } }
@media (max-width: 560px) { .feste__timeline { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ barra di avanzamento della pagina */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--sage), var(--gold), var(--coral)); }

/* ------------------------------------------------------------------ barra d'acquisto (telefono) */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 55; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,28,49,.94); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 -12px 30px -16px rgba(0,0,0,.6);
  transform: translateY(120%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.buybar.is-on { transform: none; }
.buybar__inner { display: flex; align-items: center; gap: 12px; }
.buybar__info { flex: 1; display: flex; flex-direction: column; color: #fff; line-height: 1.25; min-width: 0; }
.buybar__info small { color: #F1C98A; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info small[data-dopo-offerta] { color: #AEB9CC; }
.buybar .btn { flex: none; padding: 11px 16px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 400px) { .buybar img { display: none; } }
@media (min-width: 861px) { .buybar { display: none; } }

/* ------------------------------------------------------------------ riepilogo prima del pagamento */
.checkout { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.checkout h3 { font-size: 26px; }
.checkout__items { list-style: none; margin: 0 0 18px; padding: 0; }
.checkout__items li { position: relative; padding: 6px 0 6px 28px; color: var(--ink); font-size: 15.5px; }
.checkout__items li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 6px; border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); transform: rotate(-45deg); }
.checkout__totale { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout__totale span { font-weight: 700; color: var(--navy); }
.checkout__totale small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.checkout__totale b { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.checkout__offerta { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(217,164,65,.12); color: #6B4A06 !important; font-size: 14px; font-variant-numeric: tabular-nums; }
.consenso {
  display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 16px; padding: 14px 16px; cursor: pointer;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); font-size: 14.5px; line-height: 1.45; transition: border-color .2s, background .2s;
}
.consenso input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--coral); cursor: pointer; }
.consenso:has(input:checked) { border-color: var(--sage); background: rgba(110,156,130,.08); }
.checkout .btn { width: 100%; }
.checkout .fine { margin: 14px 0 0; font-size: 13px; text-align: center; }

/* ------------------------------------------------------------------ coriandoli */
.coriandoli { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }

/* ------------------------------------------------------------------ pagina "Grazie" (download dopo il pagamento) */
.grazie { padding: 130px 0 90px; min-height: 72vh; background: radial-gradient(900px 380px at 50% 0%, rgba(110,156,130,.16), transparent 70%); }
.grazie .container { max-width: 720px; }
.grazie__box { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 46px); box-shadow: var(--shadow); }
.grazie h1 { font-family: var(--font-display); color: var(--navy); font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; }
.grazie h2 { color: var(--navy); font-size: 20px; margin: 34px 0 6px; }
.grazie p, .grazie li { color: #4A443E; }
.grazie__scarica { margin: 26px 0 12px; }
.grazie__scarica .btn { width: 100%; flex-wrap: wrap; }
.grazie__nota { font-size: 14.5px; color: var(--muted) !important; }
.grazie__passi { counter-reset: passo; list-style: none; margin: 10px 0 18px; padding: 0; }
.grazie__passi li { position: relative; padding: 11px 0 11px 46px; border-top: 1px solid var(--line); }
.grazie__passi li::before {
  counter-increment: passo; content: counter(passo); position: absolute; left: 0; top: 10px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(110,156,130,.16); color: var(--sage); font-weight: 700; font-size: 15px;
}

/* ------------------------------------------------------------------ movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}
