/* ==========================================================================
   Chiarezza in Bolletta — foglio di stile principale
   Struttura: 1. Font e variabili · 2. Base · 3. Layout · 4. Componenti
              5. Sezioni Home · 6. Pagine legali · 7. Cookie banner · 8. Responsive
   ========================================================================== */

/* 1. FONT E VARIABILI ---------------------------------------------------- */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette brand (dal logo) */
  --coral: #E54848;
  --red: #D63C3C;
  --red-dark: #B92F2F;      /* testo rosso su crema: contrasto AA */
  --cream: #FFF5EF;
  --cream-2: #FCEBE1;
  --peach: #F5D3C3;
  --brown: #8B4A2B;
  --brown-dark: #5E3019;
  --yellow: #F4C95D;
  --white: #FFFFFF;

  /* Testo */
  --ink: #2B1A12;
  --ink-soft: #5B4438;
  --line: #EBD6CA;

  /* WhatsApp (solo per l'icona) */
  --wa: #1FA855;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(91, 48, 25, .05), 0 8px 24px rgba(91, 48, 25, .06);
  --shadow-hover: 0 2px 4px rgba(91, 48, 25, .06), 0 14px 34px rgba(91, 48, 25, .10);

  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-weight: 750; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
ul { padding-left: 1.2em; }
strong { font-weight: 700; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--soft { background: var(--cream-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--coral); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; background: var(--coral); border-radius: 2px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 4. COMPONENTI ----------------------------------------------------------- */
/* Pulsanti */
.btn {
  --btn-bg: var(--red);
  white-space: nowrap;
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s, color .2s, border-color .2s;
  box-shadow: 0 6px 18px rgba(214, 60, 60, .22);
}
.btn:hover { --btn-bg: var(--red-dark); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(214, 60, 60, .28); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--ink); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--red-dark); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn--light:hover { --btn-bg: var(--cream); --btn-fg: var(--red-dark); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row .btn, .cta-actions .btn, .privacy-help .btn, .form-aside .btn, .center .btn, .questions .btn { white-space: normal; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Card */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; }
.card--cream { background: var(--cream); }

.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cream-2); color: var(--red); margin-bottom: 18px; flex: none;
}
.icon svg { width: 26px; height: 26px; }
.icon--sm { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.icon--sm svg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 245, 239, .88);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(91,48,25,.05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.1; }
.brand-name span { color: var(--red-dark); }

/* WhatsApp icon colour inside light buttons */
.wa-ico { color: currentColor; }

/* 5. SEZIONI HOME --------------------------------------------------------- */
/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(245, 211, 195, .65), rgba(245, 211, 195, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 600px; }
.hero-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 560px;
  font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.7);
  border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  padding: 14px 18px; border-radius: 14px; margin: 8px 0 30px;
}
.hero-note p { margin: 0; }
.hero-target { margin: 18px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-target svg { width: 18px; height: 18px; color: var(--brown); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-visual__frame {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  padding: clamp(14px, 2vw, 22px); background: var(--white);
  box-shadow: 0 30px 60px rgba(139, 74, 43, .14);
}
.hero-visual__frame img { width: 100%; height: 100%; border-radius: 50%; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: .875rem; font-weight: 650; color: var(--ink);
  white-space: nowrap;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.hero-chip--1 { left: -8%; top: 14%; }
.hero-chip--2 { right: -6%; top: 50%; }
.hero-chip--3 { left: 2%; bottom: 4%; }

/* Chiarezza prima di tutto */
.intro-text { font-size: 1.125rem; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* Come funziona */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.125rem; margin: 0; }
.center { text-align: center; }

/* A chi è rivolto */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 32px; }
.audience li {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-weight: 650;
  box-shadow: var(--shadow);
}
.audience-note { text-align: center; max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: 1.0625rem; }

/* Broker */
.broker { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.broker-text p { color: var(--ink-soft); font-size: 1.0625rem; }
.highlight {
  position: relative; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 26px 28px 26px 30px; margin-top: 28px; font-size: 1.125rem; font-weight: 600; line-height: 1.5;
}
.highlight::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; background: var(--yellow); border-radius: 0 4px 4px 0; }
.highlight p { margin: 0; color: #fff; }
.questions { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); }
.questions h3 { font-size: 1.3rem; margin-bottom: 20px; }
.questions ol { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; counter-reset: q; }
.questions li {
  counter-increment: q; position: relative; padding: 16px 18px 16px 62px;
  background: var(--cream); border-radius: 14px; font-weight: 600; line-height: 1.45;
}
.questions li::before {
  content: counter(q); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--coral); color: var(--red-dark); font-weight: 800; font-size: .9rem;
}

/* Privacy bolletta */
.privacy-bill { background: var(--white); }
.privacy-wrap {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
}
.privacy-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.privacy-top .lead { font-size: 1.125rem; color: var(--ink-soft); }
.reassure {
  display: flex; gap: 16px; background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.reassure .icon { margin: 0; background: #EAF6EE; color: #1E7A43; }
.reassure p { margin: 0 0 .7em; }
.reassure p:last-child { margin: 0; color: var(--ink-soft); }
.check-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); }
.check-card h3 { display: flex; align-items: center; gap: 12px; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.check-card h3 .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-card h3 .dot svg { width: 16px; height: 16px; }
.check-card--hide h3 .dot { background: var(--ink); color: #fff; }
.check-card--show h3 .dot { background: #1E7A43; color: #fff; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; }
.check-card--hide .check-list li::before {
  content: ""; width: 44px; height: 12px; border-radius: 4px; background: var(--ink); flex: none; opacity: .85;
}
.check-card--show .check-list li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: #EAF6EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.privacy-help {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-radius: var(--radius); background: var(--peach);
}
.privacy-help p { margin: 0; font-weight: 650; }

/* Perché richiedere una verifica */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.reasons li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); font-weight: 650; line-height: 1.4; }
.reasons .icon { margin-bottom: 16px; }

/* CTA intermedia */
.cta-band { padding: 0 0 var(--section); }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red) 0%, #C73434 100%); /* contrasto AA per testo bianco */
  color: #fff; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-box::after {
  content: ""; position: absolute; left: -120px; top: -160px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 201, 93, .28), rgba(244, 201, 93, 0));
  pointer-events: none;
}
.cta-box h2 { color: #fff; max-width: 680px; }
.cta-box p { margin: 0; font-size: 1.125rem; color: #fff; max-width: 600px; }
.cta-actions { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; }
.cta-actions small { font-size: .875rem; color: #fff; opacity: .95; text-align: center; max-width: 280px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item h3 { margin: 0; font-size: 1.0625rem; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.0625rem;
  color: var(--ink); text-align: left; cursor: pointer; line-height: 1.4;
}
.faq-btn:hover { color: var(--red-dark); }
.faq-btn:focus-visible { outline-offset: -3px; border-radius: 16px; }
.faq-sign { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); flex: none; transition: background-color .2s; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--red-dark); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s; }
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-sign { background: var(--red); }
.faq-btn[aria-expanded="true"] .faq-sign::before, .faq-btn[aria-expanded="true"] .faq-sign::after { background: #fff; }
.faq-btn[aria-expanded="true"] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-panel { padding: 0 22px 22px; color: var(--ink-soft); }
.faq-panel p { margin: 0; }
.faq-panel[hidden] { display: none; }

/* Instagram */
.insta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.insta-left { display: flex; align-items: center; gap: 16px; }
.insta-left p { margin: 0; color: var(--ink-soft); }
.insta-left strong { display: block; color: var(--ink); font-size: 1.125rem; }

/* Modulo */
.form-section .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-aside p { color: var(--ink-soft); font-size: 1.125rem; }
.form-aside .mini-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.form-aside .mini-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.form-aside .mini-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .9375rem; }
.field .req { color: var(--red-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; min-height: 50px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #DCBBA9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brown); background: #fff; box-shadow: 0 0 0 4px rgba(139, 74, 43, .14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-hint { font-size: .8125rem; color: var(--ink-soft); }
.field-error { font-size: .875rem; color: var(--red-dark); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.consent-field { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--cream); }
.consent-field input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--red); cursor: pointer; }
.consent-field label { font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.form-foot { grid-column: 1 / -1; display: grid; gap: 12px; }
.form-foot small { color: var(--ink-soft); font-size: .8125rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #EADBD2; padding: 56px 0 32px; font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-size: 1.125rem; display: block; }
.footer-brand span { color: #CDB8AC; font-size: .875rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; }
.footer-ig svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 24px; color: #BFA79A; font-size: .8125rem; }
.footer-bottom p { margin: 0; }

/* Floating WhatsApp (solo mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; }
body.cc-open .wa-float { display: none !important; }

/* 6. PAGINE LEGALI E GRAZIE ----------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: var(--ink-soft); }
.legal { padding-bottom: var(--section); }
.legal-body {
  max-width: 820px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow);
}
.legal-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.8em; padding-top: .2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-body ul { margin: 0 0 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-body .callout { background: var(--cream); border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 1.2em 0; }
.legal-body .callout p:last-child { margin: 0; }
.toc { background: var(--cream); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2em; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: .9375rem; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status--on { background: #EAF6EE; color: #1E6B3C; }
.status--off { background: var(--cream-2); color: var(--brown-dark); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; margin-bottom: 18px; }

.thanks { min-height: calc(100vh - 76px - 180px); display: grid; place-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); box-shadow: var(--shadow); }
.thanks-check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; background: #EAF6EE; color: #1E7A43; }
.thanks-check svg { width: 38px; height: 38px; }
.thanks-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.thanks-card p { color: var(--ink-soft); font-size: 1.125rem; }
.thanks-divider { height: 1px; background: var(--line); margin: 28px 0; }
.thanks-card .btn-row { justify-content: center; }

/* 7. COOKIE BANNER E PREFERENZE ------------------------------------------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 980px; margin: 0 auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 20px 60px rgba(43, 26, 18, .22);
  padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center;
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner h2 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.cc-banner p { margin: 0; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; }
.cc-banner p a { font-weight: 600; }
.cc-actions { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }
/* Pari evidenza: i tre pulsanti hanno identico stile, dimensione e colore */
.cc-btn {
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.cc-btn:hover { background: var(--ink); color: #fff; }

.cc-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(43, 26, 18, .5); }
.cc-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--white); border-radius: 24px; padding: clamp(22px, 4vw, 32px); box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.cc-dialog h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cc-dialog > p { color: var(--ink-soft); font-size: .9375rem; }
.cc-cat { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 12px; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-cat-head label, .cc-cat-head .cc-cat-title { font-weight: 700; cursor: pointer; }
.cc-cat p { margin: 6px 0 0; font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.cc-always { font-size: .8125rem; font-weight: 700; color: #1E6B3C; background: #EAF6EE; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
/* Toggle switch accessibile (checkbox nativo) */
.cc-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #CDBAAF; transition: background-color .2s; }
.cc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cc-switch input:checked + span { background: var(--red); }
.cc-switch input:checked + span::after { transform: translateX(22px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--brown); outline-offset: 3px; }
.cc-dialog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.cc-close {
  position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.cc-close svg { width: 18px; height: 18px; }

/* 8. RESPONSIVE ----------------------------------------------------------- */
@media (hover: hover) {
  .card:hover, .step:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
}

@media (max-width: 1080px) {
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .hero-chip--1 { left: -2%; }
  .hero-chip--2 { right: -2%; }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(56vw, 260px); margin-bottom: 0; }
  .hero-chip { display: none; }
  .split, .broker, .privacy-top, .form-section .wrap { grid-template-columns: 1fr; }
  .grid-4, .steps, .audience { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-items: start; }
  .cta-actions small { text-align: left; }
  .cc-banner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons li:last-child { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
  .wa-float { display: flex; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .reassure { flex-direction: column; }
  .cc-actions, .cc-dialog-actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .95rem; white-space: nowrap; }
  .hero-visual { width: min(48vw, 200px); }
  .hero { padding-top: 28px; }
  .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; gap: 14px; }
  .cc-btn { min-height: 42px; padding: 8px 16px; }
  .site-header .btn { padding: 9px 16px; min-height: 42px; font-size: .875rem; }
  .site-header .btn svg { display: none; }
  .hero .btn-row .btn { width: 100%; }
  .steps, .audience { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr 1fr; gap: 10px; }
  .audience li { padding: 14px 12px; gap: 10px; font-size: .9375rem; flex-direction: column; align-items: flex-start; }
  .reasons { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .privacy-help .btn { width: 100%; }
  .insta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand-name { font-size: .85rem; }
  .site-header .btn { padding: 8px 12px; font-size: .8125rem; }
}

@media print {
  .site-header, .site-footer, .cc-banner, .cc-modal, .wa-float { display: none !important; }
  body { background: #fff; }
  .legal-body { box-shadow: none; border: 0; padding: 0; }
}
