/* ==========================================================================
   MOVENTA — Design System
   "La finanza che ti mette in moto."
   Palette: Ink #0A1626 · Blue #2E5BFF · Volt #00E5A0 · Cloud #F4F6FB · Slate #64748B
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2-variations'),
       url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2-variations'),
       url('../fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0A1626;
  --ink-70: #24344A;
  --blue: #2E5BFF;
  --blue-dark: #1D42D6;
  --blue-soft: #E7ECFF;
  --volt: #00E5A0;
  --volt-dark: #00B37D;
  --volt-soft: #DFFBF1;
  --cloud: #F4F6FB;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --line: #E2E7F1;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 38, .06), 0 2px 8px rgba(10, 22, 38, .04);
  --shadow: 0 4px 12px rgba(10, 22, 38, .07), 0 16px 40px rgba(10, 22, 38, .07);
  --shadow-lg: 0 8px 24px rgba(10, 22, 38, .1), 0 32px 64px rgba(10, 22, 38, .12);
  --shadow-blue: 0 8px 24px rgba(46, 91, 255, .28);

  --container: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--slate); line-height: 1.6; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--cloud { background: var(--cloud); }
.section--ink { background: var(--ink); color: #C9D3E4; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink .lead { color: #A9B7CE; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--volt); border-radius: 2px; }
.section--ink .eyebrow { color: var(--volt); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,91,255,.36); }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: var(--volt-dark); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.section--ink .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.24); }
.section--ink .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(10,22,38,.05); }
.header__inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-display); font-weight: 500; font-size: .97rem; white-space: nowrap;
  color: var(--ink); padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.nav > .btn { display: none; }   /* la CTA nel menu serve solo su mobile */
.nav a.btn--primary { color: var(--white); }
.nav a.btn--primary:hover { color: var(--white); background: var(--blue-dark); }
.nav a:hover { background: var(--cloud); }
.nav a.is-active { color: var(--blue); background: var(--blue-soft); }
.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px;
}
.nav-toggle:hover { background: var(--cloud); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 16px 24px 26px; box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 1.06rem; border-radius: var(--radius); }
  .nav > .btn { display: inline-flex; margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #C9D3E4;
  padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 10vw, 120px);
}
.hero::before {
  content: ""; position: absolute; top: -30%; right: -12%;
  width: 62vw; height: 62vw; max-width: 860px; max-height: 860px;
  background: radial-gradient(circle at 40% 40%, rgba(46,91,255,.55), rgba(46,91,255,0) 62%);
  filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -34%; left: -14%;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,160,.24), rgba(0,229,160,0) 64%);
  filter: blur(24px); pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 68px); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--volt); }
.hero__lead { margin-top: 22px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #A9B7CE; max-width: 40ch; }
.hero .btn-row { margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: #A9B7CE; }
.hero__badge svg { width: 18px; height: 18px; color: var(--volt); flex-shrink: 0; }
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.26); }
.hero .btn--ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.07); }
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px 8px 10px; border-radius: 999px; font-size: .88rem; color: #C9D3E4;
  margin-bottom: 26px;
}
.hero__chip b { color: var(--volt); font-family: var(--font-mono); font-weight: 400; font-size: .8rem; letter-spacing: .06em; }
.hero__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(0,229,160,.18); }
@media (max-width: 620px) { .hero__chip .chip-extra { display: none; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  height: 100%; display: flex; flex-direction: column;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 20px; flex-shrink: 0;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--volt { background: var(--volt-soft); color: var(--volt-dark); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }
.card__link { margin-top: auto; padding-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.card ul li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--slate); }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 14px; height: 8px;
  border-left: 2px solid var(--volt-dark); border-bottom: 2px solid var(--volt-dark);
  transform: rotate(-45deg);
}
.card--ink { background: var(--ink); border-color: transparent; color: #C9D3E4; }
.card--ink h3 { color: var(--white); }
.card--ink p, .card--ink ul li { color: #A9B7CE; }
.card--feature { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%); border-color: transparent; color: #fff; }
.card--feature h3 { color: #fff; }
.card--feature p, .card--feature ul li { color: rgba(255,255,255,.86); }
.card--feature ul li::before { border-color: var(--volt); }
.card--feature .card__icon { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .82rem; color: var(--blue);
  position: absolute; top: 0; left: 0; letter-spacing: .08em;
}
.step::after { content: ""; position: absolute; top: 12px; left: 34px; right: -12px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 980px) { .step::after { display: none; } }
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .96rem; }
.section--ink .step::after { background: rgba(255,255,255,.14); }
.section--ink .step::before { color: var(--volt); }
.section--ink .step p { color: #A9B7CE; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat__value span { color: var(--blue); }
.stat__label { margin-top: 10px; font-size: .9rem; color: var(--slate); }
.section--ink .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--ink .stat__value { color: var(--white); }
.section--ink .stat__value span { color: var(--volt); }
.section--ink .stat__label { color: #A9B7CE; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--reverse .split__media { order: -1; }
@media (max-width: 900px) { .split--reverse .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--slate); }
.checklist li strong { color: var(--ink); display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--volt-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 10px; height: 5px;
  border-left: 2px solid var(--volt-dark); border-bottom: 2px solid var(--volt-dark); transform: rotate(-45deg);
}
.section--ink .checklist li { color: #A9B7CE; }
.section--ink .checklist li strong { color: var(--white); }
.section--ink .checklist li::before { background: rgba(0,229,160,.16); }

/* ---------- Simulator ---------- */
.sim { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
@media (max-width: 940px) { .sim { grid-template-columns: 1fr; } }
.sim__panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow-sm);
}
.sim__result {
  background: var(--ink); color: #C9D3E4; border-radius: var(--radius-xl);
  padding: clamp(24px, 3.4vw, 38px); position: relative; overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
@media (max-width: 940px) { .sim__result { position: static; } }
.sim__result::before {
  content: ""; position: absolute; top: -50%; right: -30%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(46,91,255,.45), transparent 65%); pointer-events: none;
}
.sim__result > * { position: relative; z-index: 1; }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.field__label label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.field__hint { font-size: .82rem; color: var(--slate-light); }
.field__value {
  font-family: var(--font-mono); font-size: 1.02rem; color: var(--blue);
  background: var(--blue-soft); padding: 4px 12px; border-radius: 8px; white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px;
  background: var(--line); outline-offset: 6px; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue); box-shadow: var(--shadow-sm); cursor: grab;
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--blue); box-shadow: var(--shadow-sm); cursor: grab;
}
.range-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: .74rem; color: var(--slate-light); }

.input-text, select.input-text, textarea.input-text {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-size: 1rem; transition: border-color .18s, box-shadow .18s;
}
.input-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,91,255,.12); }
textarea.input-text { min-height: 128px; resize: vertical; }
select.input-text {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2364748B' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: .93rem; cursor: pointer; transition: .18s;
}
.chip:hover { border-color: var(--slate-light); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.sim__rata-label { font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); color: #8C9BB4; }
.sim__rata {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(3rem, 7vw, 4.4rem); color: var(--white); margin: 10px 0 4px;
}
.sim__rata sup { font-size: .38em; font-weight: 500; vertical-align: super; margin-right: 4px; color: var(--volt); }
.sim__rata-sub { font-size: .95rem; color: #A9B7CE; }
.sim__breakdown { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.13); }
.sim__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.sim__row span:first-child { color: #A9B7CE; }
.sim__row span:last-child { font-family: var(--font-mono); color: var(--white); }
.sim__row--total span:last-child { color: var(--volt); }
.sim__note { margin-top: 22px; font-size: .78rem; line-height: 1.55; color: #7E8DA6; }
.sim__actions { margin-top: 26px; display: grid; gap: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--cloud); font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--slate); position: sticky; top: 0; }
tbody td { font-family: var(--font-mono); font-size: .86rem; }
table.table--text tbody td { font-family: var(--font-body); font-size: .94rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cloud); }

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion summary:hover { color: var(--blue); }
.accordion__body { padding: 0 44px 24px 0; color: var(--slate); }
.accordion__body p + p { margin-top: 12px; }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; }
.logo-chip {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--slate-light);
  letter-spacing: -.01em; padding: 10px 18px; border-radius: var(--radius); border: 1px dashed var(--line);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #1B3AC4 100%);
  border-radius: var(--radius-xl); padding: clamp(36px, 5vw, 66px); color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -90px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,229,160,.32), transparent 65%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 14px; max-width: 52ch; }
.cta-band .btn-row { margin-top: 30px; }

/* ---------- Page header ---------- */
.page-head { background: var(--cloud); padding: clamp(48px, 6.5vw, 82px) 0 clamp(40px, 5.5vw, 62px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-head .lead { margin-top: 18px; max-width: 62ch; }
.breadcrumb { font-size: .84rem; color: var(--slate); margin-bottom: 18px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .93rem; margin-bottom: 8px; }
.form-field label .req { color: var(--blue); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .87rem; color: var(--slate); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }

/* ---------- Contact cards ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: .95rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--slate); font-size: .96rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8C9BB4; padding: clamp(52px, 6vw, 76px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo img { height: 32px; margin-bottom: 18px; }
.footer__pitch { font-size: .93rem; color: #8C9BB4; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { color: #8C9BB4; font-size: .94rem; }
.footer a:hover { color: var(--volt); }
.footer__bottom {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
  font-size: .82rem;
}
.footer__legal { max-width: 78ch; font-size: .78rem; line-height: 1.6; color: #6B7A93; margin-top: 22px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #C9D3E4; transition: .18s;
}
.social-row a:hover { background: var(--blue); color: #fff; }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Lead generation ---------- */

/* Kicker con le keyword dentro l'H1 */
.h1-kicker {
  display: block; font-family: var(--font-mono); font-size: clamp(.72rem, 1.1vw, .82rem);
  letter-spacing: .16em; text-transform: uppercase; color: var(--volt);
  font-weight: 400; margin-bottom: 14px;
}

/* Banda "fatti richiamare" in home */
.callback { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
@media (max-width: 900px) { .callback { grid-template-columns: 1fr; } }
.lead-quick__row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 1080px) { .lead-quick__row { grid-template-columns: 1fr 1fr; } .lead-quick__row .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lead-quick__row { grid-template-columns: 1fr; } }
.lead-quick .btn { height: 52px; }

/* Banda lead nel simulatore e nelle landing */
.lead-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  background: var(--cloud); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 940px) { .lead-band { grid-template-columns: 1fr; } }
.lead-band__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.lead-band__recap {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: .82rem; color: var(--slate); line-height: 1.9;
}
.lead-band__recap:empty { display: none; }
.lead-band__recap b { color: var(--ink); }

/* Messaggio di stato dei form */
.form-alert {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--volt-soft); color: #0B5B43; font-size: .92rem; line-height: 1.55;
}
.form-alert--error { background: #FFE9E9; color: #9B1C1C; }

/* Campo non valido dopo il primo tentativo di invio */
.was-validated .input-text:invalid { border-color: #E05252; box-shadow: 0 0 0 4px rgba(224,82,82,.1); }

/* CTA fissa su mobile */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(10,22,38,.08);
  }
  .sticky-cta .btn { flex: 1; justify-content: center; }
  .sticky-cta .btn--ghost { flex: 0 0 42%; background: var(--white); }
  body { padding-bottom: 78px; }
}

/* ---------- Barra anteprima (solo finché mancano i dati regolamentari) ---------- */
.preview-bar {
  background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #F2DFA6;
  padding: 10px 20px; font-size: .84rem; line-height: 1.5; text-align: center;
}
.preview-bar code { font-family: var(--font-mono); font-size: .92em; background: rgba(107,78,0,.1); padding: 1px 5px; border-radius: 4px; }
.da-compilare { color: #B45309; font-weight: 600; }
@media print { .preview-bar { display: none; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.muted { color: var(--slate); }
.small { font-size: .87rem; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 6px; background: var(--volt-soft); color: var(--volt-dark);
}
.tag--blue { background: var(--blue-soft); color: var(--blue); }
.prose { max-width: 76ch; }
.prose h2 { margin: 44px 0 14px; font-size: 1.55rem; }
.prose h3 { margin: 30px 0 10px; font-size: 1.18rem; }
.prose p, .prose li { color: #46536B; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Reveal on scroll (solo con JS attivo) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  .sim__result { background: #fff !important; color: #000 !important; }
}

/* ---------- Layout articolo (guide) ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1.75fr) 330px;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 1040px) { .article-layout { grid-template-columns: 1fr; } }
.article-layout .prose { max-width: 72ch; }
.article-layout .prose p, .article-layout .prose li { font-size: 1.02rem; }

/* ---------- Striscia banca convenzionata ---------- */
.partner-strip {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px);
  align-items: center; padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--cloud); border: 1px solid var(--line);
}
@media (max-width: 780px) { .partner-strip { grid-template-columns: 1fr; gap: 16px; } }
.label-mono {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate-light); margin-bottom: 6px;
}
.partner-strip__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.02em; color: var(--ink);
}
.partner-strip__text { color: var(--slate); font-size: .96rem; max-width: 62ch; }
