/* Carattere: stesso dell'app (Plus Jakarta Sans). Se i file non sono presenti si usa Poppins, incluso. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.woff) format('woff'); }

:root {
  --bg: #f6f4fb; --surface: #fff; --text: #150f2e; --muted: #5f5a78; --border: #e8e4f3;
  --primary: #6c47f2; --tint: #ece8ff; --tint-text: #4a2fc4; --logo: #111;
  --ok-bg: #d9f3ec; --ok: #0b6f5d; --warn-bg: #ffecc2; --warn: #7a4b00; --blue-bg: #dbeeff; --blue: #0b5cad;
  --shadow: 0 1px 2px rgba(21, 15, 46, .05), 0 10px 30px rgba(21, 15, 46, .08);
  --glow: rgba(108, 71, 242, .22);
  --wrap: min(1120px, calc(100% - 40px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b24; --surface: #1a1438; --text: #f1effa; --muted: #b3aed0; --border: #34304a;
    --primary: #7a5cf5; --tint: #2a2260; --tint-text: #cfc4ff; --logo: #fff;
    --ok-bg: #10332e; --ok: #5fe0c4; --warn-bg: #3b2d0c; --warn: #ffd37a; --blue-bg: #14294d; --blue: #8fbcff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --glow: rgba(108, 71, 242, .28);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.6 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--wrap); margin: 0 auto; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* logo: nero sul chiaro, bianco sullo scuro; centro sempre nel colore del marchio */
.lg { stroke: var(--logo); }
.ink { stop-color: var(--logo); }
@keyframes sa { 0%, 100% { stop-color: #8b5cf6 } 33% { stop-color: #14c9a8 } 66% { stop-color: #0ea5ff } }
.s-a { animation: sa 12s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .s-a { animation: none; } html { scroll-behavior: auto; } }

/* barra */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: block; line-height: 0; margin-right: auto; }
.links { display: flex; gap: 26px; font-weight: 700; font-size: 15px; color: var(--muted); }
.links a { text-decoration: none; } .links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 700 16px 'Plus Jakarta Sans', 'Poppins', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: filter .15s, transform .15s; }
.btn-main { background: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-main:hover { filter: brightness(1.08); }
.btn-main:disabled { opacity: .6; cursor: wait; }
.btn-light { background: #fff; color: #2b1a80; }
.btn-light:hover { filter: brightness(.96); }

/* hero */
.hero { background: radial-gradient(900px 420px at 85% -10%, var(--glow), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--tint-text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #14c9a8; }
h1 { margin: 0; font-weight: 800; font-size: clamp(64px, 10vw, 132px); line-height: .88; letter-spacing: -0.045em; }
h1 span { display: block; }
.h-a { font-weight: 500; color: var(--muted); letter-spacing: -0.04em; }
.oo { display: inline-block; height: .574em; width: auto; vertical-align: -0.008em; margin: 0 .035em 0 .025em; overflow: visible; }
.lead { max-width: 33em; margin: 26px 0 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--muted); }

/* modulo */
.signup { margin-top: 28px; max-width: 540px; }
.who { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.who label { cursor: pointer; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s; }
.who input:checked + span { border-color: var(--primary); background: var(--tint); color: var(--tint-text); }
.who label:nth-child(3) input:checked + span { border-color: #14c9a8; background: var(--ok-bg); color: var(--ok); }
.who input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: 500 16px 'Plus Jakarta Sans', 'Poppins', sans-serif; }
.row input::placeholder { color: var(--muted); opacity: .7; }
.row input:focus { border-color: var(--primary); outline: none; }
.row .btn { min-height: 52px; white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.status { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; font-weight: 700; }
.status.ok { color: var(--ok); } .status.err { color: #c0392b; }
.thanks { margin: 0; padding: 22px 26px; border-radius: 22px; background: var(--ok-bg); color: var(--ok); font-size: 18px; }

/* carte "flusso" nella hero */
.flow { display: grid; gap: 14px; }
.fc { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.fc-in { margin-left: 28px; }
.fc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc b { font-weight: 800; font-size: 16px; line-height: 1.3; }
.fc small { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.bar { display: block; height: 7px; margin-top: 10px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.bar u { display: block; width: 62%; height: 100%; background: var(--primary); border-radius: 99px; }
.tile { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.t-ok { background: var(--ok-bg); color: var(--ok); } .t-warn { background: var(--warn-bg); color: var(--warn); } .t-blue { background: var(--blue-bg); color: var(--blue); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-bg); color: var(--ok); } .chip-warn { background: var(--warn-bg); color: var(--warn); }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 0 8px; border-top: 1px solid var(--border); }
.stats b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--tint-text); }
.stats span { color: var(--muted); font-weight: 700; font-size: 15px; }

/* sezioni */
.sec { padding: clamp(48px, 7vw, 88px) 0; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec h2 { margin: 0 0 32px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio .card { border-top: 6px solid var(--c); }
.c-1 { --c: #8b5cf6; } .c-2 { --c: #14c9a8; } .c-3 { --c: #0ea5ff; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .card { border-left: 6px solid var(--c); }
.duo h3 { margin-top: 0; }
.d-c { --c: #8b5cf6; } .d-p { --c: #14c9a8; }
.tags { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--tint-text); font-size: 14px; font-weight: 700; }
.d-p .tags li { background: var(--ok-bg); color: var(--ok); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps .card { display: flex; flex-direction: column; gap: 6px; }
.steps i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--tint-text); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.steps b { font-weight: 800; font-size: 18px; line-height: 1.3; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* banda finale */
.band-wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 32px; color: #fff; background: radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(135deg, #5b35e6, #7a4bff); }
.band h2 { margin: 0 0 6px; color: #fff; }
.band p { margin: 0; color: #e6defd; }

/* piè di pagina */
.foot { padding: 28px 0 56px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500; }
.foot-mark { display: block; }
.foot p { margin: 14px 0 0; }
.info { margin-top: 14px; }
.info summary { cursor: pointer; color: var(--text); font-weight: 700; }
.info div { max-width: 62ch; margin-top: 10px; line-height: 1.6; }
.info div p { margin: 0 0 10px; }
.ph { background: #ffe58a; color: #3d2f00; padding: 0 4px; border-radius: 4px; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .links { display: none; }
  .trio, .duo { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand svg { height: 32px; width: auto; }
  .nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .fc-in { margin-left: 14px; }
  .band .btn { width: 100%; }
}
