@font-face { font-family: "Source Sans"; src: url(fonts/sourcesans3.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(fonts/sourceserif4.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #1E2B27;
  --slate: #55625E;
  --line: #D6DEDA;
  --mist: #F1F5F3;
  --paper: #FFFFFF;
  --sage: #DCEEE3;
  --sage-mid: #A9D1BA;
  --leaf: #2E6E50;
  --leaf-dark: #23573F;
  --cta: #C4532F; /* terracotta: solo per le azioni principali */
  --cta-dark: #A9442A;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-dark); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Barra istituzionale */
.notice { background: var(--ink); color: #E3EBE7; font-size: .875rem; padding: 7px 0; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--sans); font-weight: 700; font-size: 1.12rem; line-height: .98; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--leaf); text-decoration: underline; }
/* Cambio lingua IT / ES */
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 2px; font-size: .9rem; font-weight: 700; flex: none; }
.lang-switch a, .lang-switch span { padding: 4px 10px; border-radius: 99px; text-decoration: none; line-height: 1.2; }
.lang-switch a { color: var(--slate); }
.lang-switch a:hover { color: var(--leaf); background: var(--sage); }
.lang-switch [aria-current] { background: var(--leaf); color: #fff; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  background: var(--leaf); color: #fff; border: 2px solid var(--leaf); border-radius: var(--r-sm);
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }
.btn-small { gap: 0; min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--leaf); }
.btn-ghost:hover { background: var(--sage); color: var(--leaf-dark); }
.btn-light { background: #fff; color: var(--leaf-dark); border-color: #fff; }
.btn-light:hover { background: var(--sage); border-color: var(--sage); color: var(--leaf-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
/* Azione principale (test, WhatsApp, pagamento): terracotta, complementare al verde */
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.btn-cta:focus-visible { outline: 3px solid #F2B8A6; outline-offset: 2px; }
.ico { width: 20px; height: 20px; fill: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 34em; }
.assurances { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.assurances li { padding-left: 30px; position: relative; }
.assurances li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%232E6E50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.hero-visual { position: relative; padding-bottom: 64px; }
.hero-visual > img { border-radius: var(--r-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }

/* Il fascicolo: l'elemento distintivo */
.pratica {
  position: absolute; left: -36px; bottom: 0; width: min(360px, 92%);
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--leaf);
  border-radius: var(--r-md); padding: 18px 20px 14px;
  box-shadow: 0 18px 40px -18px rgba(30, 43, 39, .35);
}
.pratica-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pratica-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.pratica-id { font-size: .8rem; color: var(--slate); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.pratica-steps { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.pratica-steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.pratica-steps li:first-child { border-top: 0; }
.pratica-steps em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--leaf-dark); background: var(--sage); border-radius: 99px; padding: 1px 9px; }
.tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.done .tick { background: var(--leaf); border-color: var(--leaf); }
.done .tick::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat;
}
.now .tick { border-color: var(--leaf); border-style: dashed; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Unico momento animato: i passaggi della pratica si spuntano uno dopo l'altro */
.js .pratica-steps li { opacity: .35; transition: opacity .4s ease; }
.js .pratica-steps li.on { opacity: 1; }
.js .pratica-steps li .tick { transition: background-color .3s, border-color .3s; }
.js .pratica-steps li.done:not(.on) .tick { background: transparent; border-color: var(--line); }
.js .pratica-steps li.done:not(.on) .tick::after { opacity: 0; }

/* Sezioni */
.section { padding: 88px 0; }
.band { padding: 80px 0; background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--slate); font-size: 1.2rem; margin-bottom: 40px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.fact-ico { width: 40px; height: 40px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.fact p { color: var(--slate); }

/* Passaggi: sequenza reale, quindi numerati */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: var(--leaf-dark);
  font: 600 1.35rem/46px var(--serif); text-align: center;
}
.steps li::after { content: ""; position: absolute; top: 23px; left: 58px; right: -16px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--slate); font-size: 1.02rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.split-col { padding: 32px 36px; }
.split-you { background: var(--paper); }
.split-we { background: var(--sage); }
.split-time { color: var(--slate); margin-top: -.3em; }
.split-we .split-time { color: var(--leaf-dark); }

.list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list li { padding-left: 28px; position: relative; }
.list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-mid); }
.split-we .list li::before { background: var(--leaf); }

/* Canali */
.canali-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.canali-img { border-radius: var(--r-lg); }
.note { color: var(--slate); font-size: 1rem; border-left: 3px solid var(--sage-mid); padding-left: 14px; }

/* Test */
.test-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.test-intro p { color: var(--slate); }
.test { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.test fieldset { border: 0; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.test legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.test input[type="date"] {
  font: inherit; color: var(--ink); padding: 10px 12px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
}
.help { font-size: .9rem; color: var(--slate); margin: 6px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 18px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
.choices label:hover { border-color: var(--sage-mid); }
.choices input { accent-color: var(--leaf); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--leaf); background: var(--sage); }
.form-error { color: #9B2C2C; margin: 14px 0 0; font-size: 1rem; }

.result { grid-column: 2; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--leaf); border-radius: var(--r-md); padding: 26px 28px; }
.result:focus { outline: none; }
.result h3 { margin-bottom: .4em; }
.result .deadline { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--leaf-dark); margin: .2em 0 .6em; }
.result.warn { border-left-color: #B7791F; }
.result.warn .deadline { color: #8A5A12; }
.result .cta-row { margin: 18px 0 0; }
.result-reset { background: none; border: 0; color: var(--leaf); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 14px; }

/* Prezzo */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.price { margin: 8px 0 6px; }
.price-num { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--leaf-dark); }
.price-tax { color: var(--slate); font-size: 1rem; }
.price-sub { color: var(--slate); }
.price-other { font-size: .98rem; color: var(--slate); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.price-side h3 { margin-top: 8px; }
.compare { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.compare th, .compare td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.compare td { text-align: right; font-variant-numeric: tabular-nums; }
.compare tr.us th, .compare tr.us td { font-weight: 700; color: var(--leaf-dark); }
.small { font-size: .92rem; color: var(--slate); }
.price-side .small { margin-bottom: 32px; }

/* Guide in home */
.home-guides { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.home-guides a { display: block; height: 100%; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; text-decoration: none; color: var(--ink); }
.home-guides a:hover { border-color: var(--sage-mid); }
.home-guides a:hover strong { text-decoration: underline; }
.home-guides strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--leaf-dark); margin-bottom: 4px; }
.home-guides span { color: var(--slate); font-size: 1rem; }
@media (max-width: 720px) { .home-guides { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.12rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(45deg);
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--slate); padding-right: 40px; }

/* Chiusura */
.closing { background: var(--leaf); color: #fff; padding: 64px 0; }
.closing-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing h2 { margin: 0; color: #fff; }
.closing .cta-row { margin: 0; }
.canali-cta { margin: 22px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D4CF; padding: 40px 0; }
.site-footer .brand-name { color: #fff; margin-bottom: 8px; }
.site-footer .small { color: #C9D4CF; }
.site-footer a { color: #fff; margin-right: 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .canali-grid, .test-wrap, .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .result { grid-column: 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .pratica { left: 16px; }
  .hero-visual { max-width: 600px; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .nav { display: none; }
  .header-row { justify-content: space-between; min-height: 64px; gap: 12px; }
  .lang-switch { margin-left: auto; }
  .brand-name { font-size: 1.15rem; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 64px 0; }
  .band { padding: 60px 0; }
  .three, .steps, .split, .footer-grid { grid-template-columns: 1fr; }
  .three { gap: 28px; }
  .split-col { padding: 26px 22px; }
  .pratica { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -40px; }
  .hero-visual { padding-bottom: 0; }
  .hero-visual > img { margin: 0 0 0; }
  .pratica { width: calc(100% - 24px); margin-left: 12px; }
  .test, .price-card { padding: 22px; }
  .cta-row .btn { width: 100%; }
  .closing-grid { flex-direction: column; align-items: stretch; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .btn-small { padding: 8px 12px; font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
}

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

/* Confronto dei costi */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 14px; }
.compare-big { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 1rem; }
.compare-big th, .compare-big td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare-big thead th { font-size: .9rem; color: var(--slate); font-weight: 700; background: var(--mist); }
.compare-big tbody th { font-weight: 700; white-space: nowrap; }
.compare-big tr.us { background: var(--sage); }
.compare-big tr.us th, .compare-big tr.us td { color: var(--leaf-dark); }
.compare-big sup { font-size: .7em; }
.compare-note { padding-left: 1.2em; color: var(--slate); }
.compare-note li { margin: 4px 0; }
@media (max-width: 720px) {
  .compare-big { min-width: 0; border: 0; background: none; }
  .compare-big thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-big tbody tr { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 16px; }
  .compare-big tbody tr.us { background: var(--sage); border-color: var(--sage-mid); }
  .compare-big tbody th { display: block; padding: 10px 0 6px; border: 0; font-size: 1.1rem; white-space: normal; }
  .compare-big tbody td { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .compare-big tbody tr td:last-child { border-bottom: 0; }
  .compare-big tbody td::before { content: attr(data-label); color: var(--slate); font-size: .9rem; }
  .table-scroll { overflow: visible; }
}

/* Invito al test (home) */
.teaser { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
  background: var(--leaf-dark); color: #fff; border-radius: var(--r-lg); padding: 52px 56px; }
.teaser::before, .teaser::after { content: ""; position: absolute; border-radius: 50%; background: rgba(147, 196, 169, .16); pointer-events: none; }
.teaser::before { width: 360px; height: 360px; right: -90px; top: -140px; }
.teaser::after { width: 220px; height: 220px; left: -70px; bottom: -120px; }
.teaser-text, .teaser-preview { position: relative; z-index: 1; }
.teaser-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.teaser h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.teaser-lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin: 0 0 20px; max-width: 34em; }
.teaser-points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.teaser-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.teaser-points li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: #93C4A9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D38' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.teaser-btn { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.teaser-btn span { transition: transform .2s ease; }
.teaser-btn:hover span { transform: translateX(4px); }
.teaser-preview { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 26px 28px; box-shadow: 0 18px 40px rgba(10, 30, 20, .28); transform: rotate(1.5deg); max-width: 360px; justify-self: end; width: 100%; }
.teaser-preview-label { margin: 0 0 10px; font-size: .8rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
.teaser-preview-title { margin: 0 0 4px; font-weight: 700; }
.teaser-preview-date { margin: 0 0 16px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--leaf-dark); line-height: 1.25; }
.teaser-preview-bar { height: 8px; border-radius: 99px; background: var(--sage); overflow: hidden; }
.teaser-preview-bar span { display: block; width: 28%; height: 100%; background: var(--leaf); border-radius: 99px; }
.teaser-preview-days { margin: 8px 0 0; font-size: .9rem; color: var(--slate); }
@media (max-width: 900px) {
  .teaser { grid-template-columns: 1fr; gap: 32px; padding: 36px 26px; }
  .teaser-preview { justify-self: start; transform: rotate(0); max-width: none; }
  .teaser-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .teaser-btn span { transition: none; } }

/* Testata: il bottone non va a capo; tra 720 e 960 px il menu lascia spazio */
.header-row .btn-small { white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 960px) { .nav { display: none; } .lang-switch { margin-left: auto; } }

/* ===== Home semplificata (25-10-2026) ===== */
.hero .lead { font-size: 1.3rem; color: var(--ink); }
.assurances li { font-weight: 700; }

/* Come funziona: 3 passi grandi e numerati */
.passi3 { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passi3 li { counter-increment: p; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.passi3 li::before { content: counter(p); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--leaf); color: #fff; font: 700 1.5rem/1 var(--serif); margin-bottom: 18px; }
.passi3 h3 { font-size: 1.35rem; margin-bottom: 8px; }
.passi3 p { margin: 0; color: var(--slate); font-size: 1.1rem; }

/* WhatsApp */
.wa-text { font-size: 1.2rem; }
.canali-cta .btn .ico { width: 22px; height: 22px; }

/* Prezzo e confronto: barre facili da leggere */
.prezzo-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.confronto-box, .price-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.confronto-titolo { font-weight: 700; margin: 0 0 20px; }
.bars { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; }
.bar-label { font-weight: 700; }
.bar-track { height: 18px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #B9C4BF; border-radius: 99px; }
.bar-amount { font-weight: 700; color: var(--slate); white-space: nowrap; min-width: 6.5em; text-align: right; }
.bar-row.us .bar-label, .bar-row.us .bar-amount { color: var(--cta); font-size: 1.2rem; }
.bar-row.us .bar-fill { background: var(--cta); }
.bar-row.us { background: #FBEDE8; margin: 0 -14px; padding: 12px 14px; border-radius: var(--r-md); }
.fonti { border: 0; margin: 0; }
.fonti summary { font-size: .95rem; color: var(--slate); padding: 8px 0; }
.fonti ol { padding-left: 1.2em; color: var(--slate); margin: 4px 0 0; }
.fonti li { margin: 6px 0; }
.price-box .price-num { color: var(--ink); }
.price-sub { font-weight: 700; color: var(--ink); margin: 14px 0 10px; }
.checks-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks-list li { padding-left: 32px; position: relative; font-size: 1.1rem; }
.checks-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%232E6E50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.price-btn { width: 100%; }

/* Garanzie */
.garanzie .fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.garanzie .fact p { font-size: 1.05rem; }

/* Problema: testo più grande */
.band .fact h3 { font-size: 1.35rem; }
.band .fact p { font-size: 1.1rem; }

@media (max-width: 900px) {
  .passi3, .prezzo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .confronto-box, .price-box { padding: 22px; }
  .bar-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-row.us { margin: 0 -10px; padding: 10px; }
  .hero .lead { font-size: 1.15rem; }
}
.risparmio { margin: 4px 0 14px; padding: 14px 18px; border-radius: var(--r-md); background: var(--leaf-dark); color: #fff; font-size: 1.2rem; text-align: center; }
.risparmio strong { font-size: 1.45rem; color: #fff; }

/* Test passo per passo (pagina /test/) */
.wiz-wrap { max-width: 640px; }
.wiz-titolo { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 20px; }
.test.wizard { padding: 32px; box-shadow: 0 10px 30px rgba(30, 43, 39, .06); }
.wiz-head { margin-bottom: 26px; display: none; }
.wiz-on .wiz-head { display: block; }
.wiz-step { margin: 0 0 8px; font-size: .95rem; font-weight: 700; color: var(--slate); }
.wiz-bar { height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: 99px; transition: width .3s ease; }
.wiz-on fieldset { border: 0; padding: 0; margin: 0; }
.wiz-on legend { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.25; margin-bottom: 22px; }
.wiz-on .choices { flex-direction: column; gap: 12px; }
.wiz-on .choices label { min-height: 62px; padding: 14px 20px; font-size: 1.15rem; font-weight: 700; border-radius: var(--r-md); }
.wiz-on input[type="date"] { width: 100%; min-height: 60px; font-size: 1.2rem; }
.wiz-next { width: 100%; margin-top: 16px; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.wizard:not(.wiz-on) .wiz-back { display: none; }
.wiz-back { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; color: var(--slate); cursor: pointer; }
.wiz-back:hover { color: var(--leaf); }
.wiz-back[hidden], .wiz-submit[hidden] { display: none; }
.wiz-on .wiz-submit { margin-left: auto; }
.wiz-wrap .result { grid-column: auto; padding: 32px; }
@media (max-width: 720px) { .test.wizard, .wiz-wrap .result { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .wiz-bar span { transition: none; } }

/* Nella pagina del test il bottone «Fai il test» in testata non serve */
body:has(.pagina-test) .site-header .btn-small { display: none; }

/* Calendario del test */
.cal { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal button { font: inherit; cursor: pointer; border: 0; background: none; color: var(--ink); }
.cal button:disabled { color: #C3CBC7; cursor: default; }
.cal-nav { width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem !important; line-height: 1; }
.cal-nav:not(:disabled):hover { background: var(--sage); }
.cal-titolo { flex: 1; min-height: 48px; border-radius: var(--r-sm); font-weight: 700; font-size: 1.15rem; text-transform: capitalize; }
.cal-titolo:hover { background: var(--mist); }
.cal-titolo::after { content: " ▾"; color: var(--slate); font-size: .8em; }
.cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-gs { text-align: center; font-size: .85rem; font-weight: 700; color: var(--slate); padding: 4px 0; text-transform: uppercase; }
.cal-g { aspect-ratio: 1; min-height: 42px; border-radius: 50%; font-size: 1.1rem; font-weight: 600; }
.cal-g:not(:disabled):hover { background: var(--sage); }
.cal-g.oggi { box-shadow: inset 0 0 0 1.5px var(--sage-mid); }
.cal-g.on { background: var(--leaf) !important; color: #fff; }
.cal-mesi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal-mese { min-height: 56px; border-radius: var(--r-md); font-weight: 700; font-size: 1.05rem; text-transform: capitalize; border: 1.5px solid var(--line) !important; }
.cal-mese:not(:disabled):hover { background: var(--sage); }
.cal-mese.on { border-color: var(--leaf) !important; background: var(--sage); }
.cal-scelta { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; color: var(--leaf-dark); }
.wiz-next:disabled { opacity: .45; cursor: default; }
.wiz-on fieldset { min-width: 0; }
.cal-g { min-height: 0; }
@media (max-width: 720px) { .cal { padding: 8px; } .cal-griglia { gap: 2px; } }

.wiz-help { margin: -12px 0 20px; color: var(--slate); font-size: 1.05rem; }

/* Risultato del test: chiaro e con un solo passo successivo */
.wiz-wrap:has(.result:not([hidden])) .wiz-titolo { display: none; }
.wiz-wrap .result { border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--r-lg); padding: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(30, 43, 39, .08); }
.res-head { display: flex; align-items: center; gap: 14px; padding: 24px 28px; background: var(--sage); }
.res-warn .res-head { background: #FBEDE8; }
.res-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf); color: #fff; font: 700 1.3rem/1 var(--serif); }
.res-warn .res-badge { background: var(--cta); }
.res-h { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; }
.res-count, .res-why, .res-avviso, .res-list, .res-price, .res-cta, .res-come, .result-reset { margin-left: 28px; margin-right: 28px; }
.res-count { display: grid; justify-items: center; text-align: center; margin-top: 24px; padding: 20px; border-radius: var(--r-md); background: var(--mist); }
.res-num { font: 600 3.6rem/1 var(--serif); color: var(--leaf-dark); }
.res-warn .res-num, .res-date-big { color: var(--cta); }
.res-unit { font-weight: 700; font-size: 1.15rem; margin-top: 4px; }
.res-date { color: var(--slate); margin-top: 6px; }
.res-date-big { font: 600 1.5rem/1.2 var(--serif); }
.res-why { margin-top: 20px; font-size: 1.15rem; }
.res-avviso { margin-top: 0; font-weight: 700; color: var(--cta-dark); }
.res-list { list-style: none; padding: 0; margin-top: 4px; margin-bottom: 18px; display: grid; gap: 10px; }
.res-list li { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; }
.res-list svg { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--sage); color: var(--leaf); }
.res-price { padding-top: 16px; border-top: 1px solid var(--line); color: var(--slate); margin-bottom: 18px; }
.res-price strong { color: var(--ink); font-size: 1.2rem; }
.res-cta { display: flex; width: auto; min-height: 58px; font-size: 1.15rem; }
.res-cta .ico { width: 22px; height: 22px; }
.res-come { display: block; text-align: center; margin-top: 14px; font-weight: 700; color: var(--leaf); }
.wiz-wrap .result-reset { display: block; margin: 8px auto 24px; font-size: .95rem; color: var(--slate); }
@media (max-width: 720px) {
  .res-head { padding: 20px; }
  .res-count, .res-why, .res-avviso, .res-list, .res-price, .res-cta, .res-come { margin-left: 20px; margin-right: 20px; }
}
.res-wa { display: flex; margin: 12px 28px 0; }
.res-err { margin: 10px 28px 0; }
@media (max-width: 720px) { .res-wa, .res-err { margin-left: 20px; margin-right: 20px; } }

/* Accesso all'area personale nell'intestazione */
.accedi { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 12px; color: var(--leaf-dark); font-weight: 700; font-size: .95rem; text-decoration: none; min-height: 44px; }
.accedi:hover { color: var(--leaf); text-decoration: underline; }
.accedi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.nav + .accedi { margin-left: 18px; }
@media (max-width: 560px) {
  .accedi { margin-right: 6px; padding: 0 6px; }
  .accedi span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.accedi + .lang-switch { margin-left: 0 !important; }
@media (max-width: 960px) { .nav + .accedi { margin-left: auto; } }
@media (max-width: 560px) { .header-row .accedi { margin: 0 0 0 auto; padding: 0 4px; } }
@media (max-width: 420px) {
  .header-row { gap: 8px; }
  .header-row .lang-switch a, .header-row .lang-switch span { padding: 4px 7px; }
}

/* Pagina del test: domanda e pulsante sempre nello schermo, senza scorrere (PC e telefono) */
.pagina-test .notice { display: none; }
.pagina-test #test.section { padding: 20px 0 24px; }
.pagina-test .wiz-titolo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.pagina-test .test.wizard { padding: 24px 28px; }
.pagina-test .wiz-head { margin-bottom: 16px; }
.pagina-test.pagina-test .wiz-on legend { margin-bottom: 14px; }
.pagina-test .wiz-help { margin: -6px 0 14px; }
.pagina-test .cal { padding: 10px 12px; }
.pagina-test .cal-head { margin-bottom: 4px; }
.pagina-test .cal-nav { width: 42px; height: 42px; }
.pagina-test .cal-titolo { min-height: 42px; }
.pagina-test .cal-gs { padding: 2px 0; }
/* I giorni prendono la misura dall'altezza dello schermo, non dalla larghezza */
.pagina-test { --cel: clamp(30px, calc((100dvh - 440px) / 6.4), 50px); }
.pagina-test .cal-griglia { row-gap: 2px; }
.pagina-test .cal-g { aspect-ratio: auto; width: var(--cel); height: var(--cel); justify-self: center; }
.pagina-test .cal-mese { min-height: calc(var(--cel) + 4px); }
.pagina-test .cal-scelta { margin: 8px 0 0; min-height: 1.4em; }
.pagina-test .wiz-next { margin-top: 10px; }
.pagina-test .wiz-nav { margin-top: 14px; }
/* Rete di sicurezza: se lo schermo è più basso del previsto, il pulsante resta visibile in fondo */
.pagina-test .wiz-on .wiz-next, .pagina-test .wiz-on .wiz-nav { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 16px -6px rgba(255,255,255,.95); }
.pagina-test .wiz-on .wiz-nav { background: #fff; padding: 10px 0 4px; }
@media (max-width: 720px) {
  .pagina-test .header-row { min-height: 56px; }
  .pagina-test #test.section { padding: 10px 0 16px; }
  .pagina-test .test.wizard { padding: 16px 14px; }
  .pagina-test { --cel: clamp(30px, calc((100dvh - 430px) / 6.4), 46px); }
  .pagina-test .cal { padding: 6px; }
}

/* Date in tre caselle (giorno, mese, anno): al posto del calendario */
.d-data { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
.d-data input { width: 100%; min-height: 60px; padding: 10px; font-size: 1.5rem; font-weight: 700; text-align: center; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; font-variant-numeric: tabular-nums; }
.d-data input:focus { outline: 3px solid rgba(31,77,56,.18); border-color: var(--leaf); }
.d-data-etichetta { display: block; text-align: center; font-weight: 700; margin: 0 0 6px; }
.d-data input::placeholder { color: #C3CBC7; font-weight: 400; font-size: 1.1rem; }

/* Landing delle campagne (/inizia/, /es/empieza/): la prima domanda del test è già nella prima schermata */
.landing .lp-hero { background: var(--mist); padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 56px; align-items: center; }
.lp-chiama { margin: 0 0 14px; font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--leaf); }
.lp-testo h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 0 0 18px; text-wrap: balance; }
.lp-sotto { margin: 0; font-size: 1.2rem; color: var(--slate); max-width: 34em; }
.landing .lp-wiz { max-width: none; }
.landing .test.wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-sez { padding: 64px 0; }
.lp-sez-tinta { background: var(--mist); }
.lp-sez h2 { margin-bottom: 28px; }
.lp-passi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-passi li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.lp-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sage); color: var(--leaf-dark); font-weight: 800; font-size: 1.3rem; }
.lp-passi h3, .lp-fatti h3 { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; margin: 8px 0 6px; }
.lp-passi p, .lp-fatti p { margin: 0; font-size: 1.08rem; color: var(--slate); }
.lp-fatti { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-fatti li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.lp-fatti h3 { margin-top: 0; }
.lp-fine { margin: 36px 0 0; text-align: center; }
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .lp-passi, .lp-fatti { grid-template-columns: 1fr; }
  .landing .lp-hero { padding: 16px 0 28px; }
  .lp-chiama { font-size: 1rem; margin-bottom: 6px; }
  .lp-testo h1 { font-size: 1.5rem; margin-bottom: 6px; text-wrap: pretty; }
  .lp-sotto { font-size: 1rem; }
  /* Una volta iniziato, sul telefono restano solo le domande (niente scorrimento) */
  .landing.avviato .lp-testo { display: none; }
  .landing .lp-wiz .test.wizard { padding: 14px 14px; }
  .lp-sez { padding: 44px 0; }
}
@media (max-width: 900px) and (max-height: 720px) { .lp-sotto { display: none; } }
