/* =========================================================
   SO.FIN.COOP S.P.A — Foglio di stile principale
   Design premium adattato dalla maquette (palette rossa #df0a0a)
   Font: Sora (titoli) + Plus Jakarta Sans (testo)
   ========================================================= */

:root {
  /* Brand — rosso */
  --brand: #df0a0a;
  --brand-dark: #b00808;
  --brand-darker: #8c0606;
  --brand-soft: #fdecec;      /* sfondo icone / badge */
  --brand-pale: #fbe3e3;
  --brand-border: #f5cfcf;

  /* Neutri */
  --ink: #1c1b22;             /* titoli */
  --body: #4c4a52;            /* testo corrente */
  --muted: #7a7883;           /* testo secondario tenue */
  --line: #e9e6ea;            /* bordi */
  --line-soft: #f0edf1;
  --bg: #ffffff;
  --bg-soft: #f7f4f5;         /* sezioni alternate */
  --surface-soft: #faf8f9;    /* card tenui */

  /* Scuro (footer / sezioni scure) */
  --dark-1: #221a1d;
  --dark-2: #17110f;
  --dark-3: #2a1e21;
  --on-dark: #c9c1c4;
  --on-dark-muted: #9c9297;

  /* Stati */
  --success: #189b63;
  --success-soft: #e8fbf1;
  --error: #d93b3b;

  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 10px rgba(28, 27, 34, 0.05);
  --shadow-md: 0 18px 36px rgba(28, 27, 34, 0.1);
  --shadow-lg: 0 30px 60px rgba(28, 27, 34, 0.14);
  --shadow-brand: 0 12px 26px rgba(223, 10, 10, 0.32);

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

/* ------------------ Reset & base ------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* rete di sicurezza: evita lo scroll orizzontale su mobile */
}
h1, h2, h3, h4 { font-family: 'Sora', system-ui, sans-serif; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
input, textarea, select, button { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--brand-pale); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.bg-soft { background: var(--bg-soft); }

/* Eyebrow / etichette */
.eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--brand-soft);
  color: var(--brand); border-radius: 100px; font-weight: 700; font-size: 13px;
  letter-spacing: .6px; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow--outline { border: 1px solid var(--brand-border); }

.section-head { max-width: 640px; }
.section-head h2 {
  font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  margin: 0 0 14px; letter-spacing: -.3px;
}
.section-head p { font-size: 16px; color: var(--body); margin: 0; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--body); }

/* ------------------ Bottoni ------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius); font-weight: 700; font-size: 15.5px;
  text-decoration: none; cursor: pointer; border: none; transition: all .22s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #f0261f 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(223, 10, 10, .42), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:active { transform: translateY(-1px) scale(.98); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost.btn-ondark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost.btn-ondark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-whatsapp {
  background: #25d366; color: #fff; box-shadow: 0 10px 22px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: #1fbe5b; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--brand);
  font-weight: 700; font-size: 14.5px; text-decoration: none; transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: 11px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ------------------ Header ------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo--footer { height: 46px; }
@media (max-width: 520px) { .brand-logo { height: 36px; } }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 14px rgba(223, 10, 10, .3);
}
.brand-mark svg { width: 60%; height: 60%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .2px; }
.brand-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--brand); }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); }
.nav a { font-weight: 600; font-size: 14.5px; color: var(--body); text-decoration: none; white-space: nowrap; transition: color .18s; }
.nav a:hover, .nav a.is-active { color: var(--brand); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav { display: none; }
.mobile-nav.open { display: flex; }
.nav-overlay { position: fixed; inset: 66px 0 0 0; background: rgba(28, 27, 34, .35); z-index: 998; }
.mobile-nav {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 999;
  flex-direction: column; gap: 2px; padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(28, 27, 34, .15);
  max-height: calc(100vh - 66px); overflow-y: auto;
}
.mobile-nav a { padding: 14px 8px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 10px; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ------------------ Hero ------------------ */
.hero {
  scroll-margin-top: 80px;
  padding-top: clamp(128px, 15vw, 156px); padding-bottom: clamp(40px, 5vw, 60px);
  background: linear-gradient(180deg, #fdf6f6 0%, #ffffff 100%);
  position: relative; overflow: hidden;
}

/* Hero a tutta pagina con immagine di sfondo responsive */
.hero.hero--full {
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding-top: clamp(120px, 16vw, 160px); padding-bottom: clamp(64px, 9vw, 110px);
  background: #140c0c;
}
.hero--full .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero--full .hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(18, 10, 10, .92) 0%, rgba(18, 10, 10, .74) 40%, rgba(18, 10, 10, .34) 100%);
}
.hero--full .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero--full .hero-copy { max-width: 700px; animation: fadeUp .8s ease both; }
.hero.hero--full h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
.hero.hero--full h1 .accent { color: #ff9d9d; }
.hero--full .lead { color: #f2e9ea; }
.hero--full .hero-actions { margin-top: 4px; }
.eyebrow--ondark {
  display: inline-block; padding: 6px 14px; border-radius: 100px; font-weight: 700; font-size: 13px;
  letter-spacing: .6px; text-transform: uppercase; margin-bottom: 16px;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
}
.hero-points li { display: flex; align-items: center; gap: 8px; color: #f3ebec; font-weight: 600; font-size: 14.5px; }
.hero-points svg { width: 19px; height: 19px; stroke: #ff8f8f; flex-shrink: 0; }
@media (max-width: 720px) {
  .hero--full .hero-veil { background: linear-gradient(180deg, rgba(18, 10, 10, .84) 0%, rgba(18, 10, 10, .72) 100%); }
}
.blob { position: absolute; border-radius: 100%; filter: blur(34px); z-index: 0; pointer-events: none; }
.blob-1 { width: 460px; height: 460px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(223, 10, 10, .12), transparent 70%); animation: floatSlow 9s ease-in-out infinite; }
.blob-2 { width: 340px; height: 340px; bottom: -120px; left: -90px; background: radial-gradient(circle, rgba(223, 10, 10, .1), transparent 70%); animation: floatSlow 11s ease-in-out infinite 1s; }
.hero-grid {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-copy { flex: 1 1 480px; animation: fadeUp .8s ease both; }
.hero h1 {
  font-weight: 700; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem); line-height: 1.1;
  margin: 0 0 20px; letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--brand); }
.hero p { margin: 0 0 32px; max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media { flex: 1 1 420px; position: relative; min-width: 280px; animation: fadeUp .9s ease .15s both; }
.hero-media .frame { position: absolute; inset: -16px; background: linear-gradient(135deg, var(--brand-soft), transparent 60%); border-radius: 32px; z-index: 0; }
.hero-media img { position: relative; z-index: 1; width: 100%; height: clamp(280px, 32vw, 420px); object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; max-width: 260px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 16px 34px rgba(28, 27, 34, .18);
}
.hero-badge .ico { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand), var(--brand-darker)); display: flex; align-items: center; justify-content: center; color: #fff; }
.hero-badge .ico svg { width: 18px; height: 18px; }
.hero-badge strong { display: block; font-size: 13.5px; color: var(--ink); }
.hero-badge span { font-size: 11.5px; color: var(--muted); }

/* ------------------ Trust bar ------------------ */
.trust { padding: clamp(28px, 3.5vw, 40px) 0; background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 48px); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-soft), var(--brand-pale)); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.trust-item .ico svg { width: 20px; height: 20px; }
.trust-item span { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }

/* ------------------ Grid & cards ------------------ */
.cards-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: all .3s var(--ease);
}
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), #ff6a6a); }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(28, 27, 34, .12); border-color: var(--brand-border); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-soft), var(--brand-pale));
  display: flex; align-items: center; justify-content: center; color: var(--brand); box-shadow: 0 6px 16px rgba(223, 10, 10, .12);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-weight: 700; font-size: 18px; margin: 0; }
.card p { font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }

/* ------------------ About / split ------------------ */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 60px); }
.split > * { flex: 1 1 420px; min-width: 280px; }
.split img { width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--body); }
.check-list .tick { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.check-list .tick svg { width: 15px; height: 15px; }
.check-list strong { color: var(--ink); }

/* ------------------ Steps ------------------ */
.steps-wrap { position: relative; margin-bottom: 28px; }
.steps-line { position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); border-radius: 100px; z-index: 0; }
.steps-line--fill { right: auto; width: 0; background: linear-gradient(90deg, var(--brand), #ff7a45); transition: width 1.1s var(--ease) .35s; }
.steps-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: all .25s ease; }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(28, 27, 34, .1); }
.step-num { width: 44px; height: 44px; border-radius: 100px; background: linear-gradient(135deg, var(--brand), var(--brand-darker)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; box-shadow: 0 8px 18px rgba(223, 10, 10, .3); }
.step-card svg.step-ico { width: 22px; height: 22px; stroke: var(--brand); }
.step-card h3 { font-weight: 700; font-size: 16.5px; margin: 0; }
.note {
  display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px;
  width: fit-content; max-width: 100%; margin: 0 auto;
}
.note svg { width: 19px; height: 19px; flex-shrink: 0; stroke: var(--muted); }
.note p { font-size: 13.5px; line-height: 1.6; color: var(--body); margin: 0; font-style: italic; }

/* ------------------ Stats (dark) ------------------ */
.dark-section { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-1) 55%, var(--dark-2) 100%); }
.dark-section .blob-light { position: absolute; width: 380px; height: 380px; border-radius: 100%; background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 70%); top: -140px; left: 10%; pointer-events: none; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat {
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.stat .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; color: #ff8a8a; }
.stat .ico svg { width: 21px; height: 21px; }
.stat .num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); color: #fff; }
.stat .lbl { font-size: 13.5px; color: var(--on-dark); }

/* ------------------ Simulator ------------------ */
.sim-card {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 40px; box-shadow: var(--shadow-md);
}
.sim-controls { flex: 1 1 380px; display: flex; flex-direction: column; gap: 26px; }
.sim-controls .row-between { display: flex; justify-content: space-between; margin-bottom: 10px; }
.sim-controls label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.sim-value { font-weight: 700; font-size: 14.5px; color: var(--brand); }
.sim-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sim-result {
  flex: 1 1 320px; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); color: #fff;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-1) 60%, var(--dark-2));
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between; box-shadow: 0 20px 44px rgba(28, 27, 34, .25);
}
.sim-result .cap { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #ff8a8a; margin-bottom: 10px; }
.sim-result .big { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); margin-bottom: 4px; }
.sim-result .sub { font-size: 14.5px; color: var(--on-dark); margin-bottom: 18px; }
.sim-rate { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.sim-rate strong { color: #fff; }
.sim-bar { height: 8px; border-radius: 100px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sim-bar > i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #ff5a5a, var(--brand)); transition: width .3s ease; }
.sim-fine { font-size: 12.5px; line-height: 1.6; color: var(--on-dark-muted); margin: 0; }

/* Range input */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; cursor: pointer; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 4px 12px rgba(223, 10, 10, .45); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 4px 12px rgba(223, 10, 10, .45); cursor: pointer; border: 3px solid var(--brand); }
input[type="range"]::-moz-range-track { background: transparent; }

/* Representative example */
.rep-example { margin-top: 28px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: 13px; line-height: 1.7; color: var(--body); }
.rep-example strong { color: var(--ink); }

/* ------------------ CTA band ------------------ */
.cta-band { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .veil { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(23, 17, 15, .95) 30%, rgba(34, 26, 29, .55) 100%); }
.cta-band .inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px); width: 100%; }
.cta-glass { max-width: 600px; padding: 0; background: transparent; border: none; box-shadow: none; }
.cta-glass h2 { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem); margin: 0 0 14px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.cta-glass p { color: #f0e9ea; font-size: 16px; margin: 0 0 28px; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }

/* ------------------ Forms ------------------ */
.field { margin-bottom: 0; }
.field label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--brand); }
.control, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: 14.5px; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 10, 10, .14); outline: none; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; stroke: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.error-msg { color: var(--error); font-size: 12.5px; margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--body); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 3.5vw, 44px); box-shadow: 0 24px 60px rgba(28, 27, 34, .08); }
.form-panel { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 40px); }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; margin-bottom: 22px; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-soft); color: #0f6b45; border: 1px solid #b8ecd2; }
.alert-error { background: #fdecec; color: #a01414; border: 1px solid var(--brand-border); }

/* Success state */
.success-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.success-icon { width: 64px; height: 64px; border-radius: 100px; background: var(--success-soft); display: flex; align-items: center; justify-content: center; color: var(--success); }
.success-icon svg { width: 30px; height: 30px; }

/* Contact info list */
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand), var(--brand-darker)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 22px rgba(223, 10, 10, .28); }
.contact-info .ico svg { width: 20px; height: 20px; }
.contact-info .ico--wa { background: #25d366; box-shadow: 0 10px 22px rgba(37, 211, 102, .28); }
.contact-info .ico--wa svg { width: 22px; height: 22px; }
.contact-info .lbl { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.contact-info .val, .contact-info .val a { font-size: 14.5px; color: var(--body); line-height: 1.5; text-decoration: none; }
.contact-info .val a:hover { color: var(--brand); }

/* ------------------ Wizard (apply) ------------------ */
.wizard-progress { height: 5px; border-radius: 100px; background: var(--line-soft); margin-bottom: 28px; overflow: hidden; }
.wizard-progress > i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #ff5a5a, var(--brand)); transition: width .4s ease; }
.wizard-steps { display: flex; align-items: flex-start; margin-bottom: 32px; }
.wizard-steps .st { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wizard-steps .st:not(:first-child)::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.wizard-steps .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 100px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #fff; color: var(--muted); border: 2px solid var(--line); transition: all .25s ease; }
.wizard-steps .st.active .dot { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border: none; box-shadow: 0 6px 16px rgba(223, 10, 10, .38); }
.wizard-steps .st.done .dot { background: linear-gradient(135deg, var(--brand-darker), #6b0505); color: #fff; border: none; }
.wizard-steps .st-label { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.wizard-steps .st.active .st-label { color: var(--ink); }
.step-pane { display: none; flex-direction: column; gap: 20px; }
.step-pane.active { display: flex; }
.step-pane h2 { font-weight: 700; font-size: 19px; margin: 0; }

/* ------------------ Modulo richiesta a un passaggio ------------------ */
.apply-form { display: flex; flex-direction: column; gap: 22px; }
.apply-form .form-block-title {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .6px;
  text-transform: uppercase; color: var(--brand); margin: 0 0 4px;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
}
/* La prima sezione (subito dopo i campi di sicurezza nascosti) senza separatore/spazio extra */
.apply-form input[type="hidden"] + .form-block-title { padding-top: 0; border-top: none; }
.apply-form .grid-2 { gap: 20px 22px; }
.apply-form .field label { margin-bottom: 8px; }
.apply-form .field input, .apply-form .field select, .apply-form .field textarea { padding: 14px 15px; }
.apply-form .consent { margin-top: 6px; }
.apply-form .btn-block { margin-top: 8px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.recap { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.recap .r { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.recap .r span { color: var(--muted); }
.recap .r strong { color: var(--ink); }
.recap .divider { height: 1px; background: var(--line); }

/* ------------------ FAQ ------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; box-shadow: var(--shadow-sm); }
.faq-item:hover { border-color: var(--brand-border); box-shadow: 0 14px 30px rgba(223, 10, 10, .1); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: transparent; border: none; text-align: left; cursor: pointer; }
.faq-q:hover { background: var(--surface-soft); }
.faq-q span { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.faq-q .chev { flex-shrink: 0; display: flex; transition: transform .25s ease; stroke: var(--brand); width: 20px; height: 20px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a > div { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--body); }

/* ------------------ Page hero (inner pages) ------------------ */
.page-hero { padding-top: clamp(120px, 14vw, 144px); padding-bottom: clamp(40px, 5vw, 56px); background: linear-gradient(180deg, #fdf6f6 0%, #ffffff 100%); }
.page-hero h1 { font-weight: 700; font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.4px; max-width: 760px; }
.page-hero p { font-size: 16px; color: var(--body); margin: 0; max-width: 640px; }

/* ------------------ Legal / prose ------------------ */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--body); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--brand); }
.prose .meta { color: var(--muted); font-size: 13.5px; }
.prose table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; overflow-wrap: anywhere; word-break: break-word; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.prose p, .prose li, .prose a { overflow-wrap: break-word; }
@media (max-width: 520px) {
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 8px 9px; }
}

/* ------------------ Footer ------------------ */
.site-footer { background: var(--dark-1); color: var(--on-dark); padding: 0 0 28px; }
.footer-rule { height: 3px; background: linear-gradient(90deg, var(--brand), #ff6a6a, var(--brand-darker)); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { max-width: 300px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; color: var(--on-dark-muted); margin: 14px 0 0; }
.footer-col h3 { font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 14px; letter-spacing: .4px; text-transform: uppercase; }
.footer-col .links { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.6; }
.footer-contact a { color: var(--on-dark-muted); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-contact .fc-item { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 11px; }
.footer-contact .fc-item:last-child { margin-bottom: 0; }
.footer-contact .fc-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: #ff8a8a; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social .soc {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social .soc:hover { background: var(--brand); transform: translateY(-3px); }
.footer-social .soc svg { width: 19px; height: 19px; }
.footer-social .soc--wa { background: #25d366; color: #fff; }
.footer-social .soc--wa:hover { background: #1fbe5b; }
.footer-contact .fc-item--wa svg { color: #25d366; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; font-size: 12.5px; color: var(--on-dark-muted); }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-id { font-size: 11.5px; color: #6f666a; margin-top: 14px; line-height: 1.6; }

/* WhatsApp float — pillola con logo chiaro, in basso a sinistra */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px 11px 13px; border-radius: 100px;
  background: #25d366; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14.5px; line-height: 1;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 211, 102, .55); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.wa-float-label { white-space: nowrap; }
@media (max-width: 520px) {
  .wa-float { padding: 13px; gap: 0; }
  .wa-float-label { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* Torna su — in basso a destra */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 46px; height: 46px; border-radius: 13px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f0261f 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top.show:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 520px) {
  .to-top { width: 42px; height: 42px; }
}

/* ------------------ Cookie banner ------------------ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(28, 27, 34, .2); padding: 20px 22px; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 11px 20px; font-size: 14px; }

/* ------------------ Reveal animation ------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------ Responsive tweaks ------------------ */
@media (max-width: 720px) {
  .wizard-steps .st-label { font-size: 10.5px; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .wizard-steps .st-label { display: none; }
  .btn { padding: 15px 22px; }
}

/* ------------------ Simulatore: stime evidenziate ------------------ */
.sim-estimates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.est { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.est-label { font-size: 12px; color: var(--on-dark); line-height: 1.3; }
.est-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.7rem); color: #fff; }
.est--primary { background: linear-gradient(135deg, rgba(223, 10, 10, .3), rgba(223, 10, 10, .08)); border-color: rgba(255, 138, 138, .45); }
.sim-sub { font-size: 13.5px; color: var(--on-dark); margin-bottom: 14px; }
@media (max-width: 460px) { .sim-estimates { grid-template-columns: 1fr; } }

/* ------------------ Banda immagine a tutta larghezza ------------------ */
.fullbleed-band { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; min-height: clamp(300px, 38vw, 460px); }
.fullbleed-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fullbleed-veil { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(23, 17, 15, .9) 22%, rgba(34, 26, 29, .5) 100%); }
.fullbleed-content { position: relative; z-index: 1; width: 100%; text-align: left; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.fullbleed-content .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.fullbleed-content h2 { color: #fff; font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); margin: 0 0 12px; max-width: 640px; letter-spacing: -.3px; }
.fullbleed-content p { color: #e9e2e4; font-size: 16px; line-height: 1.6; margin: 0 0 24px; max-width: 560px; }
