/* =========================================================
   EROSIAM · Landing Creator Founder
   Mobile-first: gli stili base sono per smartphone,
   i media query allargano il layout su tablet e desktop.
   ========================================================= */

:root {
  --bg: #08060C;
  --bg-alt: #0B0812;
  --card: #140E24;
  --input: #08060C;
  --input-focus: #150F26;
  --menu: #16112A;
  --text: #F2EEF9;
  --text-2: #D6CCE8;
  --muted: #A79BBD;
  --muted-2: #8F84A6;
  --accent: #C7A6FF;
  --accent-2: #B489F5;
  --accent-3: #7C43E0;
  --green: #8DE8B0;
  --line: rgba(180,137,245,0.16);
  --line-soft: rgba(180,137,245,0.12);
  --line-strong: rgba(180,137,245,0.24);
  --grad-btn: linear-gradient(180deg, #9B5DF0, #6E2FCF);
  --font-head: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Manrope, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans", sans-serif;
  --topbar-h: 60px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* spazio per il pulsante fisso su mobile */
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #E4D4FF; }
::selection { background: var(--accent-3); color: #fff; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
s { text-decoration-color: rgba(124,67,224,0.55); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.hi { color: var(--accent); }
/* Giapponese: va a capo tra le parole, non a metà */
:lang(ja) { word-break: auto-phrase; }

@keyframes eroGlow { 0%,100% { opacity: .5 } 50% { opacity: .85 } }

/* ---------- Elementi comuni ---------- */
.kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.kicker--muted { color: var(--muted-2); }

.h2 {
  font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 16px; text-wrap: balance;
}
.h2--sm { font-size: 30px; margin-bottom: 26px; }
.lead { font-size: 16.5px; line-height: 1.5; font-weight: 600; margin-bottom: 16px; text-wrap: pretty; }
.body { font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.num {
  font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--accent-2); flex: 0 0 auto;
}
.num--muted { color: var(--muted-2); min-width: 22px; }

.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(180,137,245,0.22); flex: 0 0 auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px; border: 0; border-radius: 12px;
  font-family: var(--font-head); font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer; transition: filter .2s, transform .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px rgba(124,67,224,0.32); }
.btn--primary:hover { color: #fff; filter: brightness(1.07); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: .65; cursor: progress; }
.btn--block { width: 100%; }
.btn--sm { height: 46px; padding: 0 26px; font-size: 14.5px; border-radius: 11px; }

.section { position: relative; padding: 52px 0; border-top: 1px solid var(--line-soft); }
.section--alt { background: var(--bg-alt); }

/* ---------- Barra superiore ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 60;
  background: rgba(8,6,12,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar__logo img { height: 28px; width: auto; filter: drop-shadow(0 0 12px rgba(150,90,240,0.5)); }
.topbar__sep, .topbar__tagline { display: none; }
.topbar__sep { width: 1px; height: 26px; background: var(--line-strong); flex: 0 0 auto; }
.topbar__tagline {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__nav { display: flex; align-items: center; gap: 26px; }
.topbar__link { display: none; font-size: 14px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.topbar__link:hover { color: var(--text); }

.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
  border: 1px solid rgba(180,137,245,0.26); border-radius: 10px; background: rgba(255,255,255,0.05);
  color: var(--text); font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--accent-2); color: var(--accent); }
.lang__flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }
.lang__caret { font-size: 9px; color: var(--muted-2); }
.lang__menu {
  position: absolute; top: 46px; right: 0; width: 186px; z-index: 70;
  border: 1px solid rgba(180,137,245,0.18); border-radius: 14px; background: var(--menu);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55); overflow: hidden;
}
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0;
  background: transparent; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--text);
}
.lang__menu button:hover, .lang__menu button:focus-visible, .lang__menu button[aria-selected="true"] { background: rgba(255,255,255,0.06); outline: none; }
.lang__menu img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }

main { padding-top: var(--topbar-h); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 52px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 460px; max-width: 160vw; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,67,224,0.30), rgba(8,6,12,0) 68%);
  animation: eroGlow 9s ease-in-out infinite;
}
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero__copy { min-width: 0; }
.hero__title {
  font-family: var(--font-head); font-weight: 800; font-size: 38px; line-height: 1.04;
  letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance;
}
.hero__sub {
  font-family: var(--font-head); font-size: 23px; font-weight: 800; line-height: 1.18;
  letter-spacing: -0.025em; color: var(--accent); margin-bottom: 20px; text-wrap: pretty;
}
.hero__p1 {
  font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.015em; margin-bottom: 12px; text-wrap: pretty;
}
.hero__p2 { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; text-wrap: pretty; }
.hero__formula {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.hero__formula:hover { color: var(--text); }

.cmp { display: grid; grid-template-columns: auto 1px auto; gap: 0 24px; align-items: end; justify-content: start; margin-bottom: 20px; }
.cmp__col { min-width: 0; }
.cmp__lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; max-width: 150px; }
.cmp__lbl--ero { color: var(--accent-2); }
.cmp__other {
  font-family: var(--font-head); font-size: 42px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--muted-2); white-space: nowrap;
  text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(143,132,166,0.6);
}
.cmp__sep { align-self: stretch; background: rgba(180,137,245,0.22); }
.cmp__ero { font-family: var(--font-head); font-size: 68px; font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); }
.cmp__only { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 24px; }
.cmp__more {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid rgba(180,137,245,0.35); padding-bottom: 4px;
}
.cmp__more:hover { color: var(--text); border-bottom-color: var(--accent); }
.cmp__arrow { font-size: 16px; color: var(--accent); }

/* ---------- Calcolatore ---------- */
.calc {
  min-width: 0; padding: 24px 20px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5);
  transition: box-shadow .4s ease, border-color .4s ease, transform .4s ease;
}
.calc.is-highlight {
  border-color: rgba(199,166,255,0.9); transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(199,166,255,0.55), 0 0 80px rgba(124,67,224,0.75), 0 26px 60px rgba(0,0,0,0.5);
}
.calc__label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.calc__inputs { display: flex; gap: 10px; margin-bottom: 14px; }
.calc__amount {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #100B1C;
}
.calc__amount:focus-within { border-color: var(--accent-2); }
.calc__symbol { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--muted-2); margin-right: 8px; white-space: nowrap; }
.calc__amount input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 50px; border: 0; background: transparent; outline: none;
  font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
  -moz-appearance: textfield; appearance: textfield;
}
.calc__amount input::-webkit-outer-spin-button,
.calc__amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__currency {
  flex: 0 0 auto; height: 52px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #100B1C; color: var(--text); font-family: var(--font-body); font-size: 14.5px; font-weight: 700;
  cursor: pointer; outline: none;
}
.calc__currency:focus { border-color: var(--accent-2); }
.calc__range { width: 100%; accent-color: var(--accent-2); margin: 0 0 24px; cursor: pointer; height: 28px; }
.calc__row { margin-bottom: 20px; }
.calc__row--ero { margin-bottom: 24px; }
.calc__rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.calc__name { font-size: 14.5px; font-weight: 600; color: var(--muted-2); }
.calc__name--ero { font-weight: 700; color: var(--text); }
.calc__val { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--muted-2); white-space: nowrap; }
.calc__val--ero { color: var(--accent); }
.bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; }
.bar__fill--other { width: 70%; background: var(--muted-2); }
.bar__fill--ero { width: 90%; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); }
.calc__diff { padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.calc__diffval { font-family: var(--font-head); font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
.calc__note { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.calc__note strong { color: var(--text); font-weight: 700; }

/* ---------- Referral ---------- */
.referral { overflow: hidden; }
.referral__glow {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 1200px; height: 700px; max-width: 200vw; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,67,224,0.16), rgba(8,6,12,0) 65%);
}
.referral__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.referral__title {
  font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 30px; max-width: 760px; text-wrap: balance;
}
.referral__big { font-family: var(--font-head); font-size: 104px; font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); margin-bottom: 22px; }
.referral__lead {
  font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
  margin-bottom: 14px; max-width: 620px; text-wrap: pretty;
}
.referral__p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin-bottom: 36px; max-width: 620px; text-wrap: pretty; }

.card { width: 100%; max-width: 860px; text-align: left; border-radius: 20px; padding: 24px 20px; }
.card--lock {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px;
  border: 1px solid rgba(180,137,245,0.28);
  background: linear-gradient(160deg, rgba(124,67,224,0.22), rgba(124,67,224,0.05));
}
.card__icon { width: 46px; height: 46px; color: var(--accent); }
.card__body { min-width: 0; }
.card__body .kicker { margin-bottom: 10px; }
.card__lead {
  font-family: var(--font-head); font-size: 19px; font-weight: 800; line-height: 1.28; letter-spacing: -0.015em;
  margin-bottom: 12px; text-wrap: pretty;
}
.card__p { font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.card__p + .card__p { margin-top: 10px; }
.card__p--muted { color: var(--muted); }
.card--law { border: 1px solid var(--line); background: rgba(255,255,255,0.035); }
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__head svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.card__title { font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Cos'è EROSIAM ---------- */
.split { display: grid; gap: 24px; margin-bottom: 32px; }
.split > * { min-width: 0; }
.features { display: flex; flex-direction: column; }
.feature { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .num { padding-top: 4px; }
.feature__title { font-family: var(--font-head); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; text-wrap: pretty; }
.feature__p { font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.already { display: flex; flex-direction: column; gap: 8px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.already__title { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.already__p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Primi 100 ---------- */
.first__grid { display: grid; gap: 36px; }
.first__grid > * { min-width: 0; }
.first__title { font-family: var(--font-head); font-size: 44px; font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 20px; }
.first__p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.once { display: flex; flex-direction: column; }
.once li { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--muted-2); }
.once__note { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted-2); }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 26px; }
.step { padding-top: 18px; border-top: 2px solid var(--accent-3); }
.step--2 { border-top-color: rgba(124,67,224,0.65); }
.step--3 { border-top-color: rgba(124,67,224,0.4); }
.step--4 { border-top-color: rgba(124,67,224,0.22); }
.step__num { font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; color: var(--accent-2); margin-bottom: 10px; }
.step__title { font-family: var(--font-head); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step__p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Candidatura ---------- */
.apply__inner { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.apply__head { text-align: center; }
.apply__title { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 12px; text-wrap: balance; }
.apply__sub { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--accent); text-wrap: pretty; }
.form-card { border: 1px solid rgba(180,137,245,0.18); border-radius: 20px; background: var(--card); padding: 24px 18px; box-shadow: 0 26px 60px rgba(0,0,0,0.5); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__time { font-size: 14px; color: var(--muted-2); text-align: center; margin-bottom: 4px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--input); color: var(--text); outline: none;
  /* 16px evita lo zoom automatico di iOS sui campi */
  font-family: var(--font-body); font-size: 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { font-weight: 600; cursor: pointer; padding: 0 10px; }
.field input::placeholder { color: #6E6585; }
.field input:focus, .field select:focus { border-color: var(--accent-2); background: var(--input-focus); box-shadow: 0 0 0 3px rgba(124,67,224,0.16); }
.field input.is-invalid, .field select.is-invalid, .check.is-invalid input { border-color: #F07A9B; box-shadow: 0 0 0 3px rgba(240,122,155,0.14); }
.field__row { display: flex; flex-direction: column; gap: 10px; }
.field__extra { margin-top: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-2); cursor: pointer; flex: 0 0 auto; }
.check > span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.check.is-invalid > span { color: #F4A3BA; }
.form__nocontract { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.tick {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(141,232,176,0.16); border: 1px solid rgba(141,232,176,0.4); color: var(--green); font-size: 12px; flex: 0 0 auto;
}
.form__error {
  padding: 12px 14px; border-radius: 11px; font-size: 14px; line-height: 1.45;
  background: rgba(240,122,155,0.10); border: 1px solid rgba(240,122,155,0.35); color: #F7C2D1;
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 26px 4px; text-align: center; }
.sent__icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(141,232,176,0.14); border: 1px solid rgba(141,232,176,0.35); font-size: 26px; color: var(--green);
}
.sent__title { font-family: var(--font-head); font-size: 23px; font-weight: 800; margin-bottom: 12px; }
.sent__p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 360px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { padding: 30px 0 34px; border-top: 1px solid var(--line-soft); }
.footer__inner { display: flex; flex-direction: column; gap: 16px; }
.footer__brand { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted-2); }
.footer__brand img { height: 28px; width: auto; filter: drop-shadow(0 0 12px rgba(150,90,240,0.5)); }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; }
.footer__ig {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid rgba(180,137,245,0.20); color: var(--accent);
}
.footer__ig:hover { border-color: var(--accent-2); background: rgba(124,67,224,0.18); }

/* ---------- CTA fissa (solo mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: rgba(8,6,12,0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .3s ease, opacity .3s ease;
}
.sticky-cta .btn { height: 52px; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* =========================================================
   ≥ 480px — telefoni grandi
   ========================================================= */
@media (min-width: 480px) {
  .field__row { flex-direction: row; }
  .field__row select { flex: 0 0 150px; width: 150px; }
  .field__row input { flex: 1 1 auto; min-width: 0; }
  .card--lock { grid-template-columns: 52px 1fr; gap: 20px; }
  .card__icon { width: 52px; height: 52px; }
  .cmp { gap: 0 32px; }
  .cmp__lbl { max-width: none; }
}

/* =========================================================
   ≥ 768px — tablet
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .hero__title { font-size: 50px; }
  .hero__sub { font-size: 27px; }
  .hero__p1 { font-size: 21px; }
  .hero__p2 { font-size: 18px; }
  .cmp__other { font-size: 52px; }
  .cmp__ero { font-size: 88px; }
  .calc { padding: 32px; }
  .h2 { font-size: 40px; }
  .h2--sm { font-size: 36px; margin-bottom: 36px; }
  .referral__title { font-size: 38px; margin-bottom: 40px; }
  .referral__big { font-size: 140px; }
  .referral__lead { font-size: 23px; }
  .referral__p { font-size: 16.5px; margin-bottom: 48px; }
  .card { padding: 30px 34px; }
  .card--lock { grid-template-columns: 64px 1fr; gap: 26px; }
  .card__icon { width: 64px; height: 64px; }
  .card__lead { font-size: 22px; }
  .card__p { font-size: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .first__title { font-size: 56px; }
  .apply__title { font-size: 40px; }
  .apply__sub { font-size: 20px; }
  .form-card { padding: 34px; }
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .footer__brand img { height: 34px; }
}

/* =========================================================
   ≥ 1024px — desktop (layout del design v5)
   ========================================================= */
@media (min-width: 1024px) {
  :root { --topbar-h: 84px; --gutter: 20px; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .topbar__logo img { height: 40px; filter: drop-shadow(0 0 14px rgba(150,90,240,0.55)); }
  .topbar__link { display: inline; }
  .section { padding: 84px 0; }

  .hero { padding: 96px 0 88px; }
  .hero__glow { top: -280px; width: 1100px; height: 640px; background: radial-gradient(ellipse at center, rgba(124,67,224,0.34), rgba(8,6,12,0) 68%); }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero__title { font-size: 58px; line-height: 1.02; margin-bottom: 18px; }
  .hero__sub { font-size: 30px; line-height: 1.15; margin-bottom: 26px; max-width: 600px; }
  .hero__p1 { font-size: 22px; margin-bottom: 14px; max-width: 560px; }
  .hero__p2 { font-size: 19px; margin-bottom: 22px; max-width: 560px; }
  .hero__formula { font-size: 14px; margin-bottom: 40px; }
  .cmp { gap: 0 36px; margin-bottom: 22px; }
  .cmp__lbl { font-size: 12.5px; letter-spacing: 0.14em; }
  .cmp__other { font-size: 56px; text-decoration-thickness: 4px; }
  .cmp__ero { font-size: 96px; }
  .cmp__only { font-size: 15.5px; margin-bottom: 30px; }
  .cmp__more { font-size: 15px; }
  .kicker { font-size: 12.5px; margin-bottom: 18px; }
  .calc { padding: 34px; border-radius: 22px; }
  .calc__label { font-size: 14.5px; }
  .calc__amount { padding: 0 14px; }
  .calc__symbol { font-size: 19px; }
  .calc__amount input { height: 52px; font-size: 25px; }
  .calc__range { margin-bottom: 26px; }
  .calc__name { font-size: 15px; }
  .calc__val { font-size: 22px; }
  .calc__diff { padding-top: 22px; gap: 16px; }
  .calc__diffval { font-size: 40px; }
  .calc__note { font-size: 13.5px; }

  .referral__title { font-size: 44px; margin-bottom: 48px; }
  .referral__big { font-size: 168px; margin-bottom: 28px; }
  .referral__lead { font-size: 25px; line-height: 1.28; margin-bottom: 18px; }
  .referral__p { font-size: 17px; margin-bottom: 56px; }
  .card { border-radius: 22px; padding: 32px 36px; }
  .card--lock { margin-bottom: 22px; }
  .card__body .kicker { margin-bottom: 12px; }
  .card__lead { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
  .card--law { padding: 30px 36px; }
  .card__title { font-size: 19px; }

  #programma, #come-funziona { padding: 78px 0; }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 80px; margin-bottom: 50px; }
  .h2 { font-size: 46px; line-height: 1.05; margin-bottom: 18px; }
  .lead { font-size: 18px; margin-bottom: 20px; }
  .body { font-size: 16px; }
  .features { padding-top: 6px; }
  .feature { grid-template-columns: 32px 1fr; gap: 18px; padding: 24px 0; }
  .feature .num { font-size: 13px; padding-top: 5px; }
  .feature__title { font-size: 20px; }
  .feature__p { font-size: 15.5px; }
  .already { flex-direction: row; align-items: baseline; gap: 24px; padding-top: 30px; }
  .already__title { font-size: 19px; white-space: nowrap; }
  .already__p { font-size: 15.5px; }

  .first { padding: 96px 0 100px; }
  .first__grid { grid-template-columns: 1.15fr 0.85fr; gap: 90px; align-items: start; }
  .first .kicker { margin-bottom: 22px; }
  .first__title { font-size: 68px; margin-bottom: 26px; }
  .first__p { font-size: 17px; }
  .once li { gap: 18px; padding: 20px 0; font-size: 16px; }
  .once__note { margin-top: 20px; font-size: 13.5px; }

  .h2--sm { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { padding-top: 22px; }
  .step__num { font-size: 13px; margin-bottom: 14px; }
  .step__title { font-size: 19px; margin-bottom: 10px; }

  .apply__inner { max-width: 600px; gap: 36px; }
  .apply__title { font-size: 44px; line-height: 1.06; margin-bottom: 14px; }
  .apply__sub { font-size: 21px; }
  .form-card { border-radius: 22px; padding: 36px; }
  .form__time { margin-bottom: 8px; }
  .field__row select { flex-basis: 160px; width: 160px; }
  .field input, .field select { font-size: 15px; padding: 0 16px; }
  .field select { padding: 0 12px; }
  .sent { padding: 30px 6px; }
  .sent__title { font-size: 24px; }


  .footer { padding: 54px 0 40px; }
  .footer__links { gap: 26px; }
}

@media (min-width: 1240px) {
  .hero__grid { gap: 72px; }
}

/* Utenti che preferiscono meno animazioni */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
