/* ==========================================================================
   CENTRO IDEA CASA — Landing B2B
   Foglio di stile unico, mobile-first.
   Palette e font derivati dall'identità visiva del sito aziendale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABILI (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colori brand (estratti dal sito centroideacasa.it) */
  --brand:        #a60b16;   /* rosso principale — CTA, accenti */
  --brand-dark:   #5b0100;   /* rosso scuro — hover, sezione dark */
  --ink:          #2a2a2a;   /* testo principale */
  --ink-soft:     #383838;
  --muted:        #5e5e5e;   /* testo secondario */
  --paper:        #efede8;   /* sfondo caldo premium */
  --paper-2:      #f7f6f3;   /* sfondo alternativo chiaro */
  --line:         #dbd9d4;   /* bordi sottili */
  --white:        #ffffff;

  /* Tipografia */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spaziature / raggi / ombre */
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 10px 40px rgba(30, 20, 15, 0.08);
  --shadow-soft: 0 4px 18px rgba(30, 20, 15, 0.06);
  --maxw:        1160px;
  --gutter:      20px;

  /* Ritmo verticale sezioni */
  --section-y:   64px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Layout container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }
.muted  { color: var(--muted); font-weight: 400; }
.accent { color: var(--brand); }

/* --------------------------------------------------------------------------
   3. BOTTONI / CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(166, 11, 22, 0.28);
}
.btn--primary:hover { background: var(--brand-dark); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover { background: var(--brand); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }
.btn--sm    { padding: 11px 18px; font-size: .9rem; }

/* --------------------------------------------------------------------------
   4. HEADER (sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;   /* header più alto per dare respiro al logo */
  gap: 16px;
}
.header__logo img { width: auto; height: 78px; object-fit: contain; } /* logo grande e ben leggibile */
.header__cta { flex-shrink: 0; }

/* Nasconde la CTA header su mobile molto stretto (c'è la sticky-cta) */
@media (max-width: 520px) {
  .header__cta { display: none; }
  .header__inner { min-height: 84px; }
  .header__logo img { height: 60px; }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  /* Foto di sfondo (3.webp) inquadrata sulla parte centrale, schiarita da un
     velo chiaro per la leggibilità del testo. */
  background:
    linear-gradient(100deg,
      rgba(248, 245, 240, 0.86) 0%,
      rgba(248, 245, 240, 0.74) 45%,
      rgba(248, 245, 240, 0.55) 100%),
    url('../img/3HD.png') center center / cover no-repeat;
  background-color: var(--paper);
  padding: 40px 0 56px;
}
/* Su MOBILE stesso scatto, velo un po' più coprente, sempre inquadratura centrale */
@media (max-width: 899px) {
  .hero {
    background:
      linear-gradient(180deg,
        rgba(248, 245, 240, 0.90) 0%,
        rgba(248, 245, 240, 0.82) 55%,
        rgba(248, 245, 240, 0.90) 100%),
      url('../img/3HD.png') center center / cover no-repeat;
    background-color: var(--paper);
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}
.hero__content { max-width: 620px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; }
.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: .8em;
}
.hero__text { color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.hero__microcopy { font-size: .88rem; color: var(--muted); margin: 0; }

/* Pill */
.pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(166, 11, 22, 0.08);
  border: 1px solid rgba(166, 11, 22, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-bar li { display: flex; align-items: baseline; gap: 6px; }
.trust-bar li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  transform: translateY(-1px);
}
.trust-bar__num { font-weight: 700; color: var(--brand); }

/* --------------------------------------------------------------------------
   6. FORM CARD (usata in hero e sezione form)
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.form-card__title { font-size: 1.35rem; }
.form-card__sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.lead-form .field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.lead-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lead-form .opt { font-weight: 400; color: var(--muted); }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 11, 22, 0.12);
}
.lead-form textarea { resize: vertical; min-height: 80px; }

/* --------------------------------------------------------------------------
   Stato di errore — deve saltare all'occhio: bordo rosso spesso, sfondo
   rosato, etichetta rossa e messaggio esplicito su cosa manca.
   Le classi sono aggiunte da main3.js.
   -------------------------------------------------------------------------- */
.lead-form .field--error input,
.lead-form .field--error select,
.lead-form .field--error textarea {
  border-color: var(--brand);
  border-width: 2px;
  background: #fdf3f3;
  box-shadow: 0 0 0 3px rgba(166, 11, 22, 0.10);
}
.lead-form .field--error > label { color: var(--brand); }

/* Messaggio di errore sotto il campo */
.field__err {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 6px;
}
.field__err::before {
  content: "!";
  flex-shrink: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* La privacy non è dentro un .field: le diamo un'evidenza dedicata */
.privacy.field--error {
  flex-wrap: wrap;
  background: #fdf3f3;
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.privacy.field--error > span { color: var(--brand) !important; }
.privacy.field--error .field__err { width: 100%; margin-top: 8px; }

/* Privacy checkbox */
.privacy {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  margin: 8px 0 18px;
  line-height: 1.45;
}
.privacy input { width: auto; margin-top: 2px; accent-color: var(--brand); }
.privacy a { color: var(--brand); text-decoration: underline; }

/* Messaggio di esito */
.form-status { margin: 14px 0 0; font-size: .9rem; font-weight: 500; min-height: 1em; }
.form-status.is-ok  { color: #1f7a34; }
.form-status.is-err { color: var(--brand); }

/* Honeypot: nascosto agli umani, visibile ai bot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. SEZIONI generiche
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--narrow { max-width: 760px; }

.section__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section__eyebrow--light { color: #ff9ba2; }

.section__title { font-size: clamp(1.5rem, 3.6vw, 2.15rem); max-width: 22ch; }
.section--narrow .section__title,
.section--form .section__title { max-width: none; }
.section__title--light { color: var(--white); }

.section__text { color: var(--muted); max-width: 62ch; margin-bottom: 24px; }
.section__text--light { color: rgba(255,255,255,0.8); }

.section__closing {
  margin-top: 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   8. CARDS (target + cosa facciamo)
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 18px; margin-top: 32px; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
/* Al passaggio del mouse: stessa ombra piena + sollevamento delle card di index2 */
.card--flat:hover { box-shadow: var(--shadow); }
.card__title { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.card__icon {
  width: 46px; height: 46px;
  color: var(--brand);
  margin-bottom: 14px;
}
.card__icon svg { width: 100%; height: 100%; }

/* Badge numerico */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(166, 11, 22, 0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   9. TIMELINE (metodo)
   -------------------------------------------------------------------------- */
.timeline {
  margin-top: 34px;
  display: grid;
  gap: 6px;
  position: relative;
}
.timeline__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 16px 0;
  position: relative;
}
.timeline__step:not(:last-child) { border-bottom: 1px dashed var(--line); }
.timeline__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeline__body h3 { font-size: 1.1rem; margin-bottom: .2em; }
.timeline__body p { color: var(--muted); margin: 0; }
.center { margin-top: 34px; }

/* --------------------------------------------------------------------------
   10. PARTNER (split + checklist)
   -------------------------------------------------------------------------- */
.section--split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 900px) {
  .section--split { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.checklist { display: grid; gap: 16px; }
.checklist li {
  position: relative;
  padding: 18px 20px 18px 54px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.checklist li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 18px; top: 18px;
  width: 24px; height: 24px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. SEZIONE DARK (credibilità)
   -------------------------------------------------------------------------- */
/* "Perché sceglierci": foto DESKTOP (stanza-d) schiarita, testo scuro leggibile. */
.section--proof {
  background:
    linear-gradient(180deg, rgba(248,245,240,0.82) 0%, rgba(248,245,240,0.70) 100%),
    url('../img/stanza-d.png') center / cover no-repeat;
  background-color: var(--paper);
  color: var(--ink);
}
/* Su MOBILE la versione verticale (stanza-m) */
@media (max-width: 899px) {
  .section--proof {
    background:
      linear-gradient(180deg, rgba(248,245,240,0.86) 0%, rgba(248,245,240,0.78) 100%),
      url('../img/stanza-m.png') center / cover no-repeat;
    background-color: var(--paper);
  }
}
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow-soft);
}
.pillar h3 { color: var(--brand); font-size: 1.1rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .92rem; }

/* --------------------------------------------------------------------------
   12. SEZIONE FORM
   -------------------------------------------------------------------------- */
.section--form { background: var(--paper); }
.form-section__grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 900px) {
  .form-section__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}
.mini-trust { display: grid; gap: 10px; margin-top: 8px; }
.mini-trust li { position: relative; padding-left: 26px; color: var(--ink-soft); font-weight: 500; }
.mini-trust li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 24px;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}
.footer__logo {
  height: 72px; width: auto;   /* logo footer più grande, senza riquadro bianco */
  margin-bottom: 16px;
}
.footer__brand p { max-width: 34ch; margin-bottom: 18px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__list { display: grid; gap: 12px; }
.footer__list a:hover { color: var(--white); }
.footer__legal { display: flex; gap: 18px; margin-top: 18px; font-size: .85rem; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   14. STICKY CTA (mobile)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  display: none;
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(166, 11, 22, 0.4);
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 84px; } /* spazio per non coprire il footer */
}

/* --------------------------------------------------------------------------
   15. DESKTOP: hero a due colonne
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root { --section-y: 88px; }
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero__form-wrap { position: sticky; top: 128px; } /* allineato al nuovo header più alto */
}

/* --------------------------------------------------------------------------
   16. ACCESSIBILITÀ / MOTION
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid rgba(166, 11, 22, 0.45); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Rivelazione soft delle sezioni allo scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   17. RECENSIONI + FAQ (aggiunti nella variante 3, palette rossa del brand)
   ========================================================================== */

/* --- Barra statistiche --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center;
  padding: 22px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.stat__n { font-size: 2rem; font-weight: 700; color: var(--brand); line-height: 1; }
.stat__l { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* --- Box recensioni / testimonianze --- */
.quotes {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.quote p { color: var(--ink-soft); font-style: italic; margin-bottom: 14px; }
.quote__who { font-size: .85rem; color: var(--brand); font-weight: 600; }
.quote__src { color: var(--muted); font-weight: 500; }
.quote__stars { color: #e2a400; letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px; }

/* --- FAQ (accordion con <details>/<summary>) --- */
.faq {
  max-width: 820px;
  margin: 32px auto 0;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  position: relative;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brand);
}
.faq__item[open] .faq__q::after { content: "\2013"; } /* trattino quando aperto */
.faq__a { padding: 0 20px 18px; color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   18. EXTRA VARIANTE 3: bottone bianco footer + trust bar scorrevole
   ========================================================================== */

/* Bottone a sfondo bianco (footer): bianco di base, rosso in hover */
.btn--white {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* --- Marquee: i punti di forza scorrono in loop continuo --- */
.marquee {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  /* sfumatura ai bordi per un ingresso/uscita morbido */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; } /* si ferma al passaggio del mouse */

.marquee li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-right: 40px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.marquee li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* La traccia contiene 2 serie identiche: scorrendo di metà larghezza il loop è continuo */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accessibilità: se l'utente preferisce meno animazioni, i punti restano fermi e a capo */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; gap: 10px 24px; }
  .marquee li[aria-hidden="true"] { display: none; } /* nasconde i duplicati quando non scorre */
}

/* ==========================================================================
   19. VARIANTE 3: Metodo con foto di sfondo schiarita (progetto-d / progetto-m)
   ========================================================================== */
/* #metodo ha già .section--paper: qui sovrascriviamo lo sfondo con la foto.
   Velo chiaro un po' più coperto perché la sezione contiene molto testo. */
#metodo {
  background:
    linear-gradient(180deg, rgba(248,245,240,0.88) 0%, rgba(248,245,240,0.80) 100%),
    url('../img/progetto-d.png') center / cover no-repeat;
  background-color: var(--paper);
}
/* Le card della timeline restano ariose sopra la foto */
#metodo .timeline__step { position: relative; }

@media (max-width: 899px) {
  #metodo {
    background:
      linear-gradient(180deg, rgba(248,245,240,0.90) 0%, rgba(248,245,240,0.84) 100%),
      url('../img/progetto-m.png') center / cover no-repeat;
    background-color: var(--paper);
  }
}

/* Spazio sopra il link "tutte le recensioni" */
.reviews__more { margin-top: 34px; }

/* ==========================================================================
   20. BANNER COOKIE + PAGINE LEGALI
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  animation: cookie-in .3s ease;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cookie-banner__box {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(30, 20, 15, 0.22);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-banner__text strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie-banner__text p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.cookie-banner__text a { color: var(--brand); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 760px) {
  .cookie-banner__box { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  /* La sticky-cta non deve coprire il banner */
  .cookie-banner ~ .sticky-cta { display: none; }
}

/* Pagine legali (privacy / cookie) */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--brand); margin-bottom: 8px; }
.legal .legal__updated { color: var(--muted); font-size: .88rem; margin-bottom: 36px; }
.legal h2 {
  font-size: 1.15rem; margin: 36px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .88rem;
}
.legal th, .legal td {
  padding: 10px 12px; text-align: left; border: 1px solid var(--line); vertical-align: top;
}
.legal th { background: var(--paper); font-weight: 600; }
.legal .callout {
  background: var(--paper); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0;
}
.legal .callout p { margin: 0; }

/* Riga finale del footer con i dati fiscali */
.footer__rights { margin: 4px 0 0; opacity: .7; }
