/* =====================================================================
   Pignoramento.info — Foglio di stile principale
   Mobile-first, accessibile, performante.
   Palette: Blu navy (fiducia) · Verde smeraldo (soluzione) · Bianco ·
            Grigio antracite · Arancio (urgenza, in piccole dosi)
   ===================================================================== */

/* ---------- Font self-hosted (Inter) — niente Google CDN: più veloce e GDPR-safe ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variabili / Design tokens ---------- */
:root {
  --navy:        #0c2f54;   /* blu navy primario  */
  --navy-deep:   #0a2540;
  --navy-dark:   #06203a;   /* sfondi scuri       */
  --emerald:     #1f9e55;   /* verde smeraldo     */
  --emerald-dark:#157a40;
  --emerald-soft:#e8f6ee;
  --white:       #ffffff;
  --anthracite:  #2b3138;   /* testo serio        */
  --gray-900:    #1c2530;
  --gray-700:    #41505f;
  --gray-500:    #6b7785;
  --gray-300:    #d6dde5;
  --gray-100:    #f2f5f8;
  --gray-50:     #f8fafc;
  --urgency:     #e8590c;   /* arancio urgenza    */
  --urgency-soft:#fdeee4;

  --whatsapp:    #25d366;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(10,37,64,.08);
  --shadow:      0 6px 24px rgba(10,37,64,.10);
  --shadow-lg:   0 18px 50px rgba(10,37,64,.16);
  --container:   1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(22px, 5.5vw, 40px); }
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #dfe8f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.18rem; color: var(--gray-700); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--emerald-dark); margin-bottom: .6rem;
}
.muted { color: var(--gray-500); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Pulsanti / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Verde pulsanti scurito per contrasto AA (testo bianco ≥ 4.5:1) */
.btn--primary { background: #157a40; color: #fff; box-shadow: 0 8px 22px rgba(21,122,64,.32); }
.btn--primary:hover { background: #0e5d31; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--whatsapp { background: #0e7a4d; color: #fff; }
.btn--whatsapp:hover { background: #0a6440; }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn .ico { width: 20px; height: 20px; }

.microcopy {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center;
  margin-top: 14px; font-size: .9rem; color: var(--gray-500);
}
.microcopy span { display: inline-flex; align-items: center; gap: .35rem; }
.microcopy span::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* ---------- Header / Navigazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding: 10px clamp(16px, 4vw, 32px); max-width: 1260px; margin: 0 auto; flex-wrap: nowrap; }
.logo { flex: 0 0 auto; }
.logo img { height: 42px; width: auto; max-width: 240px; }
.header-spacer { flex: 1; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav a { font-weight: 600; font-size: .92rem; color: var(--gray-900); padding: 6px 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--emerald-dark); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .btn { padding: 11px 16px; font-size: .9rem; white-space: nowrap; }
.header-phone {
  display: none; align-items: center; gap: 8px; font-weight: 800; color: var(--navy);
  white-space: nowrap;
}
.header-phone small { display: block; font-weight: 600; font-size: .68rem; color: var(--gray-500); letter-spacing: .04em; text-transform: uppercase; }

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0;
  padding: 10px; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--white);
  transform: translateX(100%); transition: transform .28s ease; z-index: 200;
  box-shadow: var(--shadow-lg); padding: 20px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-nav__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy); padding: 4px 10px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 18px; }
.mobile-nav li { border-bottom: 1px solid var(--gray-100); margin: 0; }
.mobile-nav a { display: block; padding: 13px 4px; font-weight: 600; color: var(--gray-900); }
.mobile-nav .btn { margin-bottom: 10px; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(6,32,58,.5); opacity: 0; visibility: hidden;
  transition: .28s; z-index: 150;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,158,85,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: #eaf1f8; overflow: hidden;
}
.hero__inner { display: grid; gap: 30px; padding-block: 48px 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p.lead { color: #cfe0f0; }
.hero .hl { color: #7ee0a6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(4px);
}
.hero-visual {
  background: #fff; border-radius: var(--radius); padding: 26px; color: var(--gray-900);
  box-shadow: var(--shadow-lg);
}
.hero-visual h3 { display: flex; align-items: center; gap: 10px; }
.hero-checklist { list-style: none; padding: 0; margin: 0; }
.hero-checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); margin: 0; }
.hero-checklist li:last-child { border-bottom: 0; }
.hero-checklist .tick {
  flex: 0 0 24px; height: 24px; background: var(--emerald-soft); color: var(--emerald-dark);
  border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--gray-50); border-bottom: 1px solid var(--gray-300); padding: 14px 0; }
.trust-strip img { margin: 0 auto; max-height: 64px; width: auto; }
/* La strip "fiducia" è molto larga: sotto i 720px diventa illeggibile,
   quindi la nascondiamo (i badge trust restano visibili più in basso) */
@media (max-width: 719px) { .trust-strip { display: none; } }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white);
  border: 1px solid var(--gray-300); color: var(--navy); font-weight: 700; font-size: .85rem;
  padding: 8px 14px; border-radius: 50px; box-shadow: var(--shadow-sm);
}
.badge::before { content: "●"; color: var(--emerald); font-size: .6rem; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s;
}
.card h3 { font-size: 1.12rem; }
.card p { margin-bottom: 0; color: var(--gray-700); font-size: .98rem; }
.card .ico-circle {
  width: 46px; height: 46px; border-radius: 12px; background: var(--emerald-soft);
  display: grid; place-items: center; margin-bottom: 12px; font-size: 1.4rem;
}
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--emerald); }
a.card .arrow { color: var(--emerald-dark); font-weight: 800; margin-top: 12px; display: inline-block; }

/* Situazione cards (selettore problema) */
.situazioni { display: grid; gap: 14px; grid-template-columns: 1fr; }
.situazione {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gray-300);
  border-left: 4px solid var(--emerald); border-radius: var(--radius-sm); padding: 16px 18px;
  font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); transition: .15s;
}
.situazione:hover { text-decoration: none; transform: translateX(3px); box-shadow: var(--shadow); }
.situazione .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: .9rem; font-weight: 800;
}
.situazione .chev { margin-left: auto; color: var(--emerald-dark); font-weight: 800; }

/* ---------- Soluzioni list ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.checklist li::before { content: "✓"; color: var(--emerald-dark); font-weight: 800; }

/* ---------- Urgenza ---------- */
.urgency {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #eaf1f8; border-radius: var(--radius); padding: 34px;
  border-left: 6px solid var(--urgency);
}
.urgency h2 { color: #fff; }
.urgency .pill { display:inline-block; background: var(--urgency-soft); color: #9a3412; font-weight: 800; font-size:.8rem; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; text-transform: uppercase; letter-spacing:.05em; }

/* ---------- Recensioni ---------- */
.reviews { display: grid; gap: 18px; grid-template-columns: 1fr; }
.review {
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); position: relative;
}
.review .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.review .tag-example {
  position: absolute; top: 14px; right: 14px; background: var(--urgency-soft); color: var(--urgency);
  font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 50px; text-transform: uppercase; letter-spacing:.04em;
}
.review p { color: var(--gray-700); font-style: italic; }
.review .who { font-weight: 700; color: var(--navy); font-style: normal; font-size: .92rem; }

/* ---------- Form ---------- */
.form-wrap { background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field .req { color: var(--urgency); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); background: var(--gray-50); color: var(--gray-900); width: 100%;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--urgency); background: var(--urgency-soft); }
.field .error-msg { color: var(--urgency); font-size: .82rem; font-weight: 600; display: none; }
.field .error-msg.show { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--gray-700); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--emerald); }
.consent label { font-weight: 500; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-feedback { padding: 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-feedback.success { display: block; background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald); }
.form-feedback.error   { display: block; background: var(--urgency-soft); color: var(--urgency); border: 1px solid var(--urgency); }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--navy);
  padding: 18px 50px 18px 18px; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--emerald-dark); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--gray-700); }
.faq-a.open { padding: 0 18px 18px; max-height: 600px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-final { background: linear-gradient(135deg, #0e5d31, #157a40); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final .btn--primary { background: #fff; color: #0e5d31; }
.cta-final .btn--primary:hover { background: var(--navy); color: #fff; }
.cta-final .microcopy { color: rgba(255,255,255,.85); }
.cta-final .microcopy span::before { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aebfd1; padding: 48px 0 30px; font-size: .94rem; }
.site-footer a { color: #cfe0f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-logo { height: 52px; width: auto; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-weight: 800; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-contact a { display: block; margin-bottom: 8px; font-weight: 600; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: .82rem; color: #8aa0b8; }
.footer-disclaimer { background: rgba(255,255,255,.04); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .82rem; line-height: 1.55; margin-top: 16px; }

/* ---------- Sticky CTA mobile + WhatsApp flottante ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex;
  background: #fff; border-top: 1px solid var(--gray-300); box-shadow: 0 -4px 18px rgba(10,37,64,.12);
  padding: 8px; gap: 8px;
}
.mobile-cta-bar .btn { flex: 1; padding: 13px 8px; font-size: .92rem; border-radius: var(--radius-sm); }
.wa-float {
  position: fixed; right: 16px; bottom: 78px; z-index: 91; width: 56px; height: 56px;
  background: var(--whatsapp); border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.5); color: #fff;
}
.wa-float:hover { text-decoration: none; transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; background: #fff;
  border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; color: var(--gray-700); margin-bottom: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { padding: 11px 18px; font-size: .9rem; flex: 1; min-width: 130px; }

/* ---------- Pagine contenuto / Articoli SEO ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #eaf1f8; padding: 44px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0f0; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: #9fb6cf; margin-bottom: 12px; }
.breadcrumb a { color: #cfe0f0; }
.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul li, .article ol li { color: var(--gray-700); }
.inline-cta {
  background: var(--emerald-soft); border: 1px solid #c7e8d4; border-radius: var(--radius);
  padding: 22px; margin: 28px 0; text-align: center;
}
.inline-cta h3 { margin-bottom: 8px; }
.legal { max-width: 800px; }
.legal h2 { margin-top: 1.5em; font-size: 1.35rem; }
.legal h3 { font-size: 1.1rem; }
.legal .placeholder { background: var(--urgency-soft); border: 1px dashed var(--urgency); color: var(--urgency); padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .92em; }
.toc { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc ul { margin: 0; }

.update-note { font-size: .85rem; color: var(--gray-500); font-style: italic; }

/* ---------- Strumenti interattivi (calcolatori / quiz) ---------- */
.tool-wrap { background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 760px; margin: 0 auto; }
.tool-wrap .field label { font-size: .95rem; }
.tool-range { width: 100%; accent-color: var(--emerald-dark); }
.tool-range-val { font-weight: 800; color: var(--navy); }
.tool-result { margin-top: 18px; border-radius: var(--radius); padding: 22px; background: var(--emerald-soft); border: 1px solid #c7e8d4; display: none; }
.tool-result.show { display: block; animation: toolfade .25s ease; }
@keyframes toolfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tool-result h3 { margin-bottom: 6px; }
.tool-bignum { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; color: var(--emerald-dark); line-height: 1.1; }
.tool-bignum.navy { color: var(--navy); }
.tool-subnum { font-weight: 700; color: var(--navy); }
.tool-bar { height: 12px; border-radius: 8px; background: var(--gray-300); overflow: hidden; margin: 10px 0; }
.tool-bar > span { display: block; height: 100%; background: var(--emerald); border-radius: 8px; transition: width .4s ease; }
.tool-note { font-size: .85rem; color: var(--gray-500); margin-top: 8px; }
.tool-disclaimer { font-size: .82rem; color: var(--gray-500); background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px; }

/* Quiz */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: toolfade .25s ease; }
.quiz-progress { height: 8px; border-radius: 6px; background: var(--gray-300); margin-bottom: 18px; overflow: hidden; }
.quiz-progress > span { display: block; height: 100%; background: var(--emerald); transition: width .3s ease; }
.quiz-q { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { text-align: left; background: #fff; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 14px 16px; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: .15s; }
.quiz-option:hover { border-color: var(--emerald); background: var(--emerald-soft); transform: translateX(3px); }
.quiz-back { background: none; border: 0; color: var(--gray-500); cursor: pointer; font-family: inherit; font-size: .9rem; margin-top: 14px; padding: 6px; }
.quiz-result { display: none; }
.quiz-result.show { display: block; }
.tool-cta { margin-top: 18px; }

/* Griglia hub strumenti (riusa .card) */
.tool-emoji { font-size: 1.8rem; }

/* ---------- Componenti articoli / guide SEO ---------- */
.box-attenzione, .box-documenti {
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0;
  border: 1px solid var(--gray-300);
}
.box-attenzione { background: var(--urgency-soft); border-color: #f3c4a3; }
.box-documenti  { background: var(--emerald-soft); border-color: #c7e8d4; }
.box-attenzione h3, .box-documenti h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: 10px; }
.box-attenzione h3 { color: var(--urgency); }
.box-documenti h3 { color: var(--emerald-dark); }
.box-attenzione p:last-child, .box-documenti p:last-child, .box-documenti ul:last-child { margin-bottom: 0; }
.box-documenti ul { margin-bottom: 0; }

.related-box { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.related-box h3 { font-size: 1.05rem; margin-bottom: 12px; }
.related-box ul { list-style: none; padding: 0; margin: 0; }
.related-box li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.related-box li::before { content: "→"; position: absolute; left: 0; color: var(--emerald-dark); font-weight: 800; }

/* Titoli "finti" (non headings) per non rompere l'ordine delle intestazioni */
.hero-visual-title { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.25rem; line-height: 1.22; margin: 0 0 .6em; letter-spacing: -.01em; }
.toc__title { font-weight: 800; color: var(--navy); font-size: 1rem; margin: 0 0 8px; }

/* Link nel testo distinguibili anche senza colore (accessibilità) */
.article p a, .article li a, .legal p a, .legal li a, .faq-a a, .related-box a, .footer-disclaimer a, .breadcrumb a, .consent a, .cookie-banner p a { text-decoration: underline; }

.article .toc { margin-top: 0; }
.article .toc h3 { font-size: 1rem; margin-bottom: 8px; }
.article .toc ol { margin: 0; padding-left: 1.1rem; }
.article .toc a { color: var(--gray-700); }

/* ---------- Spaziatura per barra mobile fissa ---------- */
body { padding-bottom: 0; }

/* =====================================================================
   BREAKPOINT — Tablet
   ===================================================================== */
@media (min-width: 680px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .situazioni { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cookie-banner { left: auto; right: 20px; max-width: 460px; }
}

/* =====================================================================
   BREAKPOINT — Desktop
   ===================================================================== */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .section { padding: 72px 0; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; padding-block: 64px 72px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  /* Barra CTA mobile e WhatsApp flottante nascosti su desktop */
  .mobile-cta-bar { display: none; }
  .wa-float { bottom: 24px; right: 24px; }
  .legal, .article { font-size: 1.02rem; }
}

/* Su mobile lasciamo spazio in fondo per la barra CTA fissa */
@media (max-width: 959px) {
  body { padding-bottom: 64px; }
  .site-footer { padding-bottom: 80px; }
  /* Header compatto: il drawer + la barra CTA fissa + il pulsante WhatsApp
     flottante coprono già queste azioni, quindi togliamo i bottoni dall'header */
  .header-actions .btn { display: none; }
  .header-inner { gap: 8px; }
}

/* La barra di navigazione orizzontale compare solo quando c'è spazio sufficiente
   (sotto i 1100px si usa il menu hamburger, così i bottoni non si tagliano mai) */
@media (min-width: 1240px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}
/* Telefono nell'header solo quando c'è spazio reale (nav a 9 voci + 2 bottoni) */
@media (min-width: 1440px) { .header-phone { display: flex; } }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
