/* ==========================================================================
   ELIANTE — Redesign · Fase 1: Fondamenta
   Livello di anteprima caricato DOPO lo stile originale di ogni pagina.
   Si disattiva con il pulsante "Prima" nella barra di anteprima.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT — i nomi originali vengono rimappati sui nuovi caratteri.
   Montserrat (interfaccia) e Lora (testo) -> Instrument Sans.
   Fraunces (titoli) -> scelto dal file fonts-*.css attivo.
   -------------------------------------------------------------------------- */
/* Font di riserva con le stesse misure dei font veri: niente "salti" mentre i font arrivano */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 90.4%; }
@font-face { font-family: 'Fraunces Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 97.4%; }
@font-face { font-family: 'Sans Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 90.3%; }
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/instrument-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/instrument-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/instrument-sans.woff2) format('woff2');
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKEN
   -------------------------------------------------------------------------- */
:root {
  /* Marca — campionati dal logo */
  --brand-navy: #1F3A7A;
  --brand-orange: #E8621B;

  /* Neutri caldi */
  --paper: #FFFFFF;
  --paper-2: #F3F5F9;
  --surface: #FFFFFF;
  --line: #E4E8EF;
  --line-strong: #CBD2DE;

  /* Testo */
  --ink: #14213D;
  --ink-2: #2B3650;
  --muted: #4C566B;

  /* Navy */
  --navy: #1F3A7A;
  --navy-700: #1A3168;
  --navy-900: #0F1B36;
  --navy-tint: #EEF2F9;

  /* Arancio — #E8621B per accenti grandi, la versione profonda per testo su bianco e pulsanti (AA) */
  --orange: #E8621B;
  --orange-text: #C94E14;
  --orange-cta: #C94E14;
  --orange-cta-hover: #B04310;
  --orange-on-dark: #F49158;
  --orange-tint: #FDF0E7;

  /* Scala tipografica (fluida) */
  --fs-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.6vw, 2.75rem);
  --fs-h3: 1.3125rem;
  --fs-h4: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Spaziature (base 4) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  /* Raggi: tre valori, niente "bolle" */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Ombre: tinta navy, due livelli */
  --sh-1: 0 1px 2px rgba(15, 27, 54, .05), 0 2px 8px rgba(15, 27, 54, .04);
  --sh-2: 0 2px 4px rgba(15, 27, 54, .04), 0 12px 32px -8px rgba(15, 27, 54, .14);

  /* Movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  /* ---- Rimappatura delle variabili originali del sito ---- */
  --verde-tenue: var(--paper-2);
  --verde-chiaro: var(--line);
  --verde-scritta: var(--navy);
  --verde-scuro: var(--navy);
  --blu-tenue: var(--paper-2);
  --blu-chiaro: var(--line-strong);
  --blu-scritta: var(--navy);
  --sabbia: var(--paper);
  --testo-scuro: var(--ink);
  --testo-chiaro: var(--muted);
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
html.rd body {
  background: var(--paper) !important;
  color: var(--ink-2);
  font-size: var(--fs-body) !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}
html.rd ::selection { background: var(--orange-tint); color: var(--ink); }
html.rd :focus-visible { outline: 2px solid var(--orange-cta) !important; outline-offset: 3px; border-radius: 4px; }

/* Numeri tabellari dove contano */
html.rd [class*="stat"], html.rd [class*="num"], html.rd [class*="value"], html.rd [class*="pct"] {
  font-variant-numeric: lining-nums tabular-nums;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA — tracking e interlinea dipendenti dalla misura
   -------------------------------------------------------------------------- */
html.rd h1, html.rd h2 {
  color: var(--ink);
  letter-spacing: -0.02em !important;
  word-spacing: 0.02em;
  font-weight: 600;
  text-wrap: balance;
}
html.rd h3 {
  letter-spacing: -0.01em !important;
  line-height: 1.3;
  text-wrap: balance;
}
html.rd p { text-wrap: pretty; }

/* Titolo hero / display */
html.rd .hero h1,
html.rd [class*="-hero"] h1,
html.rd .page-header h1 {
  font-size: var(--fs-h1) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
}
html.rd .hero h1 { font-size: var(--fs-display) !important; line-height: 1.02 !important; }

/* Titoli di sezione */
html.rd :is(.section-title, [class*="-head"], .chi-siamo-content, .cta, .cta-banner, .faq-cta) h2,
html.rd .simulatore-title {
  font-size: var(--fs-h2) !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  color: var(--ink);
}

/* Parola in evidenza nei titoli: corsivo arancio (come nel mockup) */
html.rd :is(h1, h2) strong,
html.rd :is(h1, h2) em {
  font-style: italic;
  font-weight: 500 !important;
  color: var(--orange-text) !important;
}

/* Titoli card: sans, una misura sola */
html.rd :is(.service-card, .target-card, [class*="-card"], [class*="-item"]) h3 {
  font-size: var(--fs-h3) !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

/* Sottotitoli / lead */
html.rd .section-title p,
html.rd .page-header p, html.rd .page-header .subtitle,
html.rd .simulatore-subtitle {
  font-size: var(--fs-lead) !important;
  color: var(--muted) !important;
  line-height: 1.6;
}

/* Eyebrow: piccolo, maiuscolo, arancio profondo */
html.rd [class*="eyebrow"] {
  font-size: var(--fs-eyebrow) !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--orange-text) !important;
  background: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}


/* --------------------------------------------------------------------------
   5. LOGO — versione senza slogan nell'header, completa nel footer
   -------------------------------------------------------------------------- */
html.rd img.logo {
  content: url("logo-mark.webp");
  height: 34px !important;
  width: auto !important;
}
html.rd img.footer-logo,
html.rd .site-footer .footer-logo {
  content: url("logo-full.webp");
  height: 52px !important;
  width: auto !important;
}

/* --------------------------------------------------------------------------
   6. PULSANTI — capsula, risposta immediata alla pressione, niente salti
   -------------------------------------------------------------------------- */
html.rd :is(.btn, .popup-btn, .popup-btn-primary, .btn-submit, .partner-btn, .agg-newsletter-btn,
            .fv-rep-cta, .inc-bonus-cta, .btn-download, .progetti-link-btn, .modal-lavaggio-cta) {
  font-family: 'Montserrat', 'Sans Fallback', sans-serif;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0 !important;
  border-radius: var(--r-pill) !important;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out) !important;
}
html.rd :is(.btn, .btn-primary, .btn-outline, .popup-btn, .popup-btn-primary, .btn-submit, .partner-btn,
            .agg-newsletter-btn, .fv-rep-cta, .inc-bonus-cta, .btn-download, .progetti-link-btn):hover {
  transform: none !important;
}
html.rd :is(.btn, .popup-btn, .popup-btn-primary, .btn-submit, .partner-btn, .agg-newsletter-btn,
            .fv-rep-cta, .inc-bonus-cta, .btn-download, .progetti-link-btn):active {
  transform: scale(0.97) !important;
  transition-duration: 80ms !important;
}

/* Primario: arancio */
html.rd :is(.btn-primary, .popup-btn, .popup-btn-primary, .btn-submit, .fv-rep-cta, .inc-bonus-cta,
            .agg-newsletter-btn, .modal-lavaggio-cta),
html.rd .hero .btn-primary,
html.rd .cta .btn-primary {
  background: var(--orange-cta) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(15,27,54,.10), 0 6px 16px -6px rgba(201,78,20,.45) !important;
}
html.rd :is(.btn-primary, .popup-btn, .popup-btn-primary, .btn-submit, .fv-rep-cta, .inc-bonus-cta,
            .agg-newsletter-btn, .modal-lavaggio-cta):hover,
html.rd .hero .btn-primary:hover,
html.rd .cta .btn-primary:hover {
  background: var(--orange-cta-hover) !important;
  box-shadow: 0 1px 2px rgba(15,27,54,.10), 0 8px 20px -6px rgba(176,67,16,.5) !important;
}

/* Secondario: contorno navy */
html.rd .btn-outline,
html.rd :is(.partner-btn, .btn-download, .progetti-link-btn) {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
}
html.rd .btn-outline:hover,
html.rd :is(.partner-btn, .btn-download, .progetti-link-btn):hover {
  background: var(--surface) !important;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
/* Secondario su fondo scuro */
html.rd .hero .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(255,255,255,.06) !important;
}
html.rd .hero .btn-outline:hover { background: #fff !important; color: var(--navy) !important; border-color: #fff !important; }

/* Link testuali */
html.rd :is(.service-link, .target-link, .chi-siamo-link, .vantaggio-link, .progetti-cta a) {
  color: var(--navy) !important;
  font-weight: 600;
  text-decoration: none;
}
html.rd :is(.service-link, .chi-siamo-link)::after { display: none !important; }
html.rd .chi-siamo-link { border-bottom: 1px solid var(--line-strong) !important; }
html.rd .chi-siamo-link:hover { border-bottom-color: var(--orange-cta) !important; }
html.rd main p a:not([class]) {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
html.rd main p a:not([class]):hover { text-decoration-color: var(--orange-cta); }

/* --------------------------------------------------------------------------
   7. SUPERFICI — card, contenitori, raggi, ombre
   -------------------------------------------------------------------------- */
html.rd :is(.service-card, .target-card, .progetto-card, .simulatore-card,
            [class$="-card"], [class*="-card "]) {
  border-radius: var(--r-lg) !important;
  background-color: var(--surface);
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh-1) !important;
}
html.rd :is(.service-card, .target-card, .progetto-card):hover {
  transform: none !important;
  box-shadow: var(--sh-2) !important;
  border-color: var(--line-strong) !important;
}
/* Contenitori grandi: da 60px a 28px */
html.rd :is(.chi-siamo-grid, .simulatore-container, .cta-banner, .progetti-slider, .progetti-track .progetto-card) {
  border-radius: 28px !important;
}
html.rd .chi-siamo-grid { background: var(--surface) !important; border: 1px solid var(--line); }
html.rd .simulatore-container { background: var(--paper-2) !important; }

/* Immagini nei contenuti: raggio coerente */
html.rd :is(.chi-siamo-image, .hero-image, [class*="-image"]) img { border-radius: var(--r-lg) !important; }

/* Icone: niente riquadri colorati pesanti */
html.rd :is(.service-icon, .target-icon, .vantaggio-icon) {
  background: var(--paper) !important;
  color: var(--navy) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-md) !important;
  width: 56px !important;
  height: 56px !important;
}
html.rd :is(.service-icon, .target-icon, .vantaggio-icon) .ph { font-size: 1.6rem !important; color: var(--navy) !important; }
html.rd .target-card { text-align: left !important; }
html.rd .target-icon { margin: 0 0 1.5rem !important; }

/* Etichette/badge */
html.rd :is(.progetto-categoria, .incentivo-badge, .partner-badge, .fv-rep-badge, .pill, .inc-persona-tag, .agg-filter-chip) {
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}
html.rd .progetto-categoria { background: rgba(255,255,255,.92) !important; color: var(--navy) !important; backdrop-filter: blur(8px); }

/* --------------------------------------------------------------------------
   8. SEZIONI — fondi pieni e calmi al posto dei gradienti pastello
   -------------------------------------------------------------------------- */
html.rd .services,
html.rd .progetti-evidenza { background: transparent !important; }
html.rd .services::before { display: none !important; }
html.rd .target { background: var(--paper-2) !important; }

/* Fascia finale: navy profondo */
html.rd .cta {
  background: var(--navy-900) !important;
  color: rgba(255,255,255,.78);
}
html.rd .cta h2 { color: #fff !important; }
html.rd .cta p { color: rgba(255,255,255,.72) !important; }
html.rd .cta::before, html.rd .cta::after { display: none !important; }

/* Hero home: velo navy al posto del verde */
html.rd .hero {
  background: linear-gradient(100deg, rgba(15,27,54,.86) 0%, rgba(15,27,54,.62) 50%, rgba(15,27,54,.28) 100%), url('../IMG_tetto.webp') center/cover no-repeat !important;
}
html.rd .hero h1 { color: #fff !important; text-shadow: none !important; }
html.rd .hero h1 strong { color: var(--orange-on-dark) !important; }
html.rd .hero p { color: rgba(255,255,255,.86) !important; }
html.rd .hero-stats { border-top-color: rgba(255,255,255,.16) !important; }
html.rd .hero-stat-num { font-size: 1.75rem !important; }
html.rd .hero-stat-label { font-size: 0.75rem !important; letter-spacing: .08em !important; color: rgba(255,255,255,.7) !important; }

/* Intestazione pagine interne */
html.rd .page-header { background: var(--paper) !important; border-bottom: 1px solid var(--line); }
html.rd .page-header::before, html.rd .page-header::after { display: none !important; }

/* Header */
html.rd header {
  background: rgba(246,243,236,.82) !important;
  backdrop-filter: saturate(160%) blur(16px) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px) !important;
  border-bottom: 1px solid rgba(20,33,61,.08) !important;
  box-shadow: none !important;
}
html.rd .menu-item > a { color: var(--ink-2) !important; font-weight: 500 !important; letter-spacing: 0 !important; }
html.rd .menu-item > a.active, html.rd .menu-item > a:hover { color: var(--navy) !important; }
html.rd .menu-item > a::after { background: var(--orange) !important; height: 2px !important; }
html.rd .dropdown {
  border-radius: var(--r-md) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--sh-2) !important;
  padding: .5rem !important;
}
html.rd .dropdown a { border-radius: var(--r-sm); padding-left: 1rem !important; }
html.rd .dropdown a:hover { background: var(--paper) !important; color: var(--navy) !important; padding-left: 1rem !important; }

/* Footer */
html.rd .site-footer, html.rd footer { background: var(--paper) !important; border-top: 1px solid var(--line) !important; }
html.rd .site-footer .footer-tagline strong { color: var(--orange-text) !important; }

/* --------------------------------------------------------------------------
   9. PULIZIA — decorazioni rimosse
   -------------------------------------------------------------------------- */
html.rd :is(.hero-rays, .hero-glow, .footer-deco, .section-divider, .scroll-progress, .reading-progress) { display: none !important; }
html.rd .progetti-evidenza { background-image: none !important; }
html.rd .target::before, html.rd .target::after,
html.rd .chi-siamo-grid::before,
html.rd .target-card::after,
html.rd .service-card::before { display: none !important; }

/* Elementi flottanti */
html.rd .back-to-top { background: var(--navy) !important; box-shadow: var(--sh-2) !important; width: 44px !important; height: 44px !important; }
html.rd .back-to-top:hover { background: var(--navy-700) !important; transform: none !important; }

/* Slider */
html.rd .slider-dot { background: var(--line-strong) !important; }
html.rd .slider-dot.active { background: var(--navy) !important; }
html.rd .slider-arrow { border-color: var(--line-strong) !important; color: var(--navy) !important; }
html.rd .slider-arrow:hover { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; transform: none !important; }

/* Moduli */
html.rd :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  border-radius: var(--r-md) !important;
  border-color: var(--line-strong) !important;
  font-family: 'Lora', 'Sans Fallback', sans-serif;
}
html.rd :is(input, select, textarea):focus { border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(31,58,122,.12) !important; }
html.rd input[type="range"] { accent-color: var(--orange-cta); }

/* Residui verdi e aloni */
html.rd .simulatore-container::before, html.rd .simulatore-container::after,
html.rd .site-footer::before, html.rd .site-footer::after,
html.rd .footer-bottom::after, html.rd .hero::after { display: none !important; }
html.rd .footer-bottom { background: var(--navy-900) !important; }
html.rd .footer-bottom, html.rd .footer-bottom * { color: rgba(255,255,255,.72) !important; }
html.rd .footer-bottom strong { color: #fff !important; }
html.rd .footer-col-title, html.rd .site-footer .footer-col-title { color: var(--ink) !important; }
html.rd :is(.agg-feed-card, .pi-benefit-card, .prm-benefit-card, .service-card)::before { display: none !important; }
html.rd [class*="-icon"]:not(.ph):not(i) { background-color: var(--paper) !important; }

/* Primo schermo visibile subito (anticipo dalla Fase 6): niente attesa dell'animazione */
html.rd .hero, html.rd .page-header, html.rd main > section:first-of-type,
html.rd .hero h1 .word, html.rd .hero p, html.rd .hero-buttons, html.rd .hero-stats {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.rd main { animation: none !important; }

/* ==========================================================================
   v2 — Più bianco, più colore di marca (blu + arancio), ritmo tra le sezioni
   ========================================================================== */

/* Fasce a tutta larghezza anche per le sezioni con contenitore a 1280px */
html.rd :is(.services, .processo-section, .fv-process-section, .progetti-evidenza) {
  box-shadow: 0 0 0 100vmax var(--band-bg, transparent);
  clip-path: inset(0 -100vmax);
}

/* Ritmo: bianco · grigio caldo leggerissimo · blu · bianco · grigio · bianco · blu notte */
html.rd .services { --band-bg: var(--paper-2); background: var(--paper-2) !important; }
html.rd .target { background: var(--surface) !important; }
html.rd .progetti-evidenza { --band-bg: var(--paper-2); background-color: var(--paper-2) !important; }
html.rd .chi-siamo-grid { background: var(--paper-2) !important; border: 0 !important; }

/* Titoli card: serif blu, come nel mockup */
html.rd :is(.service-card, .target-card, .progetto-card, [class$="-card"], [class*="-card "]) h3 {
  font-family: 'Fraunces', 'Fraunces Fallback', serif !important;
  font-variation-settings: "opsz" 48 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  color: var(--navy) !important;
}

/* Icone: tessera arancio chiaro, icona arancio */
html.rd :is(.service-icon, .target-icon, .vantaggio-icon, [class*="-icon"]:not(.ph):not(i)) {
  background: var(--orange-tint) !important;
  border: 0 !important;
}
html.rd :is(.service-icon, .target-icon, .vantaggio-icon, [class*="-icon"]) .ph { color: var(--orange-text) !important; }

/* Link "Scopri": maiuscoletto blu, freccia arancio */
html.rd :is(.service-link, .target-link, .vantaggio-link) {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--navy) !important;
}
html.rd .target-link::after { color: var(--orange) !important; }
html.rd .target-card:hover .target-link { color: var(--orange-text) !important; }

/* Card in evidenza: la terza dei servizi è blu pieno */
html.rd .services-grid > .service-card:nth-child(3) {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  box-shadow: 0 20px 40px -18px rgba(31,58,122,.55) !important;
}
html.rd .services-grid > .service-card:nth-child(3) h3 { color: #fff !important; }
html.rd .services-grid > .service-card:nth-child(3) p { color: rgba(255,255,255,.78) !important; }
html.rd .services-grid > .service-card:nth-child(3) .service-link { color: var(--orange-on-dark) !important; }
html.rd .services-grid > .service-card:nth-child(3) .service-icon { background: rgba(255,255,255,.1) !important; }
html.rd .services-grid > .service-card:nth-child(3) .service-icon .ph { color: var(--orange-on-dark) !important; }

/* Sezione "metodo": fascia blu, numeri arancio, schede traslucide */
html.rd :is(.processo-section, .fv-process-section) {
  --band-bg: var(--navy);
  background: var(--navy) !important;
  color: rgba(255,255,255,.75);
}
html.rd :is(.processo-section, .fv-process-section) :is(h2, h3) { color: #fff !important; }
html.rd :is(.processo-section, .fv-process-section) :is(.section-title p, .fv-process-head p, p) { color: rgba(255,255,255,.72) !important; }
html.rd :is(.processo-section, .fv-process-section) [class*="eyebrow"] { color: var(--orange-on-dark) !important; }
html.rd :is(.processo-section, .fv-process-section) :is(h2 strong, h2 em) { color: var(--orange-on-dark) !important; }
html.rd :is(.processo-grid, .fv-process-grid) { gap: 1rem !important; }
html.rd :is(.processo-grid, .fv-process-grid)::before { display: none !important; }
html.rd :is(.processo-step, .fv-process-step) {
  align-items: flex-start !important;
  text-align: left !important;
  padding: 1.75rem 1.5rem !important;
  border-radius: var(--r-lg) !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  gap: 0 !important;
}
html.rd :is(.processo-step-num, .fv-process-num) {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  justify-content: flex-start !important;
  margin: 0 0 1rem !important;
  font-family: 'Fraunces', 'Fraunces Fallback', serif !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--orange-on-dark) !important;
}
html.rd :is(.processo-step, .fv-process-step) h3 {
  font-family: 'Montserrat', 'Sans Fallback', sans-serif !important;
  font-size: 1.125rem !important;
  margin-bottom: .5rem !important;
}
html.rd :is(.processo-step, .fv-process-step) p { font-size: .9375rem !important; line-height: 1.55 !important; }
@media (max-width: 900px) {
  html.rd :is(.processo-step, .fv-process-step) { flex-direction: column !important; }
}

/* Numeri: serif arancio */
html.rd :is(.chi-siamo-mini-stat-num, .cs-stat-num, .stat-value, .inc-stat-num, .pi-number-big, .fv-lav-stat-num, .fv-rep-stats-num) {
  color: var(--orange-text) !important;
}

/* Simulatore: riquadro arancio chiaro */
html.rd .simulatore-container { background: var(--orange-tint) !important; }

/* Fascia finale: blu notte, contrasto con il blu di marca del metodo */
html.rd .cta { background: var(--navy-900) !important; }

/* Header e intestazioni interne su bianco */
html.rd header { background: rgba(255,255,255,.86) !important; }
html.rd .page-header { background: var(--paper-2) !important; }
html.rd .popup-header { background: var(--navy) !important; }
html.rd .popup-header, html.rd .popup-header * { color: #fff !important; }
html.rd .popup-consulenza { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-2) !important; overflow: hidden; }

/* ==========================================================================
   FASE 2 — Header, menu, footer, elementi flottanti
   ========================================================================== */

/* Elementi aggiunti dall'anteprima: visibili solo in modalità "Dopo" */
html:not(.rd) :is(.rd-nav-cta, .rd-mobile-foot) { display: none !important; }

/* ---------- Header ---------- */
html.rd header {
  background: rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(20,33,61,.07) !important;
}
html.rd header nav {
  max-width: 1280px !important;
  height: 76px;
  padding: 0 2rem !important;
  gap: 2rem;
}
html.rd .logo-container { flex: 0 0 auto; }
html.rd img.logo { height: 32px !important; }

/* Menu al centro, voci più ariose */
html.rd .menu { gap: .25rem !important; margin-left: auto; margin-right: auto; }
html.rd .menu-item > a {
  font-size: .9375rem !important;
  padding: .5rem .875rem !important;
  border-radius: var(--r-pill);
  display: inline-flex !important;
  align-items: center;
  gap: .375rem;
  color: var(--ink-2) !important;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out) !important;
}
html.rd .menu-item > a:hover,
html.rd .menu-item.has-dropdown:hover > a { background: var(--paper-2); color: var(--navy) !important; }
html.rd .menu-item > a.active { color: var(--navy) !important; font-weight: 600 !important; }
/* Indicatore pagina attiva: puntino arancio sotto la voce */
html.rd .menu-item > a::after {
  width: 4px !important; height: 4px !important; border-radius: 50%;
  left: 50% !important; bottom: -2px !important; transform: translateX(-50%);
  background: var(--orange) !important; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out) !important;
}
html.rd .menu-item > a.active::after { opacity: 1; width: 4px !important; }
html.rd .menu-item > a:hover::after { width: 4px !important; }
/* Freccia del sottomenu a destra, più sottile */
html.rd .menu-item.has-dropdown > a::before {
  order: 2;
  width: 5px !important; height: 5px !important;
  border-right-width: 1.5px !important; border-bottom-width: 1.5px !important;
  border-color: currentColor !important;
  margin: -3px 0 0 2px !important;
  opacity: .55;
  transition: transform var(--dur) var(--ease-out) !important;
}
html.rd .menu-item.has-dropdown:hover > a::before { transform: rotate(225deg) translate(-2px,-2px); opacity: .9; }
/* Home (c'è il logo) e Instagram (è nel footer) escono dal menu */
html.rd .menu > .menu-item:first-child:has(> a[href="index.html"]),
html.rd .menu .social-menu-item { display: none !important; }

/* Sottomenu: ancorato alla voce, entra in scala dall'alto */
html.rd .dropdown {
  top: calc(100% + 10px) !important;
  left: 50% !important;
  min-width: 248px !important;
  padding: .5rem !important;
  background: rgba(255,255,255,.96) !important;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 8px rgba(15,27,54,.04), 0 24px 48px -12px rgba(15,27,54,.18) !important;
  transform-origin: top center;
  transform: translateX(-50%) translateY(-4px) scale(.98) !important;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms !important;
}
html.rd .dropdown::before { /* ponte invisibile: il menu non si chiude passando dalla voce al pannello */
  content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
html.rd .menu-item:hover .dropdown,
html.rd .menu-item:focus-within .dropdown {
  opacity: 1 !important; visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s !important;
}
html.rd .dropdown a {
  font-size: .9375rem !important;
  color: var(--ink-2) !important;
  padding: .625rem .875rem !important;
  border-radius: 10px !important;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out) !important;
}
html.rd .dropdown a:hover { background: var(--paper-2) !important; color: var(--navy) !important; padding-left: .875rem !important; }

/* Pulsante consulenza nell'header */
html.rd .rd-nav-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 1.25rem;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff !important;
  font: 600 .9rem/1 'Montserrat', sans-serif;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,27,54,.12), 0 6px 14px -6px rgba(31,58,122,.5);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
html.rd .rd-nav-cta:hover { background: var(--navy-700); }
html.rd .rd-nav-cta:active { transform: scale(.97); transition-duration: 80ms; }

/* Hamburger: due linee, niente bolla colorata */
html.rd .hamburger {
  background: transparent !important;
  width: 44px !important; height: 44px !important;
  border-radius: 12px !important;
  position: relative;
}
html.rd .hamburger:hover { background: var(--paper-2) !important; }
html.rd .hamburger.active { background: var(--paper-2) !important; }
html.rd .hamburger span { background: var(--ink) !important; height: 1.75px !important; width: 20px !important; }
html.rd .hamburger span:nth-child(1) { top: 17px !important; }
html.rd .hamburger span:nth-child(2) { display: none !important; }
html.rd .hamburger span:nth-child(3) { top: 25px !important; }
html.rd .hamburger.active span { background: var(--ink) !important; }
html.rd .hamburger.active span:nth-child(1),
html.rd .hamburger.active span:nth-child(3) { top: 21px !important; }

@media (max-width: 1100px) {
  html.rd .menu-item > a { padding: .5rem .6rem !important; font-size: .875rem !important; }
}
@media (max-width: 900px) {
  html.rd header nav { height: 64px; padding: 0 1rem 0 1.25rem !important; gap: .5rem; }
  html.rd img.logo { height: 28px !important; }
  html.rd .rd-nav-cta { margin-left: auto; height: 38px; padding: 0 1rem; font-size: .8125rem; }
}
@media (max-width: 420px) {
  html.rd .rd-nav-cta { display: none !important; } /* su telefoni stretti il pulsante vive nel menu */
}

/* ---------- Menu mobile: foglio laterale ---------- */
html.rd .mobile-menu {
  width: min(88vw, 400px) !important;
  max-width: none !important;
  background: #fff !important;
  border-left: 0 !important;
  box-shadow: -24px 0 60px -20px rgba(15,27,54,.35) !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
  display: flex !important; flex-direction: column;
  transition: right 380ms var(--ease-out) !important;
}
html.rd .mobile-menu::before {
  background-image: url('logo-mark.webp') !important;
  height: 28px !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}
html.rd .overlay { background: rgba(15,27,54,.4) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.rd .mobile-menu ul { border-top: 1px solid var(--line); padding-top: .5rem !important; }
html.rd .mobile-menu-item { margin: 0 !important; }
html.rd .mobile-menu-item .main-link { border-radius: 12px !important; padding: 0 !important; }
html.rd .mobile-menu-item .main-link:hover { background: var(--paper-2) !important; }
html.rd .mobile-menu-item .main-link a {
  font-family: 'Fraunces', 'Fraunces Fallback', serif !important;
  font-size: 1.375rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  padding: .8rem .75rem !important;
}
html.rd .mobile-menu-item .main-link a.active-mobile { color: var(--orange-text) !important; }
html.rd .mobile-menu-item .dropdown-arrow {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  width: 34px !important; height: 34px !important;
  margin-right: .5rem;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) !important;
}
html.rd .mobile-menu-item.active .dropdown-arrow { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
html.rd .mobile-dropdown { background: transparent !important; margin: 0 0 .5rem .75rem !important; border-left: 2px solid var(--orange-tint); border-radius: 0 !important; }
html.rd .mobile-dropdown a {
  font-size: 1rem !important; color: var(--muted) !important;
  padding: .6rem 1rem !important; border-bottom: 0 !important;
}
html.rd .mobile-dropdown a:hover { color: var(--navy) !important; background: transparent !important; padding-left: 1rem !important; }
html.rd .social-mobile-item { display: none !important; }
html.rd .rd-mobile-foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
html.rd .rd-mobile-cta {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: var(--r-pill);
  background: var(--orange-cta); color: #fff !important;
  font: 600 1rem/1 'Montserrat', sans-serif; text-decoration: none;
}
html.rd .rd-mobile-cta:active { transform: scale(.98); }
html.rd .rd-mobile-mail { text-align: center; font-size: .875rem; color: var(--muted) !important; text-decoration: none; }

/* ---------- Footer: chiusura scura, continua la fascia finale ---------- */
html.rd .site-footer {
  background: var(--navy-900) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.66);
}
html.rd .site-footer .footer-main { padding: 4.5rem 2rem 3.5rem !important; gap: 4rem !important; }
html.rd img.footer-logo, html.rd .site-footer .footer-logo { content: url("logo-full-white.webp") !important; height: 48px !important; }
html.rd .site-footer .footer-tagline {
  color: #fff !important;
  font-size: 1.375rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  font-weight: 500 !important;
  max-width: 22ch;
}
html.rd .site-footer .footer-tagline strong { color: var(--orange-on-dark) !important; font-style: italic; font-weight: 500 !important; }
html.rd .site-footer .footer-contact-list li,
html.rd .site-footer .footer-contact-list a { color: rgba(255,255,255,.72) !important; }
html.rd .site-footer .footer-contact-list a:hover { color: #fff !important; border-bottom-color: var(--orange) !important; }
html.rd .site-footer .footer-contact-list li i { color: var(--orange-on-dark) !important; }
html.rd .site-footer .footer-social a {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
}
html.rd .site-footer .footer-social a:hover { background: var(--orange-cta) !important; border-color: var(--orange-cta) !important; transform: none !important; box-shadow: none !important; }
html.rd .site-footer .footer-col-title {
  color: #fff !important;
  font-size: .75rem !important;
  letter-spacing: .14em !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  padding-bottom: .875rem !important;
  margin-bottom: 1.125rem !important;
}
html.rd .site-footer .footer-col a { color: rgba(255,255,255,.68) !important; font-size: .9375rem !important; }
html.rd .site-footer .footer-col a:hover { color: #fff !important; }
html.rd .site-footer .footer-col a::before { display: none !important; }
html.rd .site-footer .iubenda-embed.iubenda-nostyle { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; font: inherit !important; color: rgba(255,255,255,.68) !important; }
html.rd .site-footer .footer-bottom {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}
html.rd .site-footer .footer-bottom-inner { padding: 1.5rem 2rem !important; }
html.rd .site-footer .footer-company, html.rd .site-footer .footer-copyright { color: rgba(255,255,255,.5) !important; font-size: .8125rem !important; letter-spacing: 0 !important; }
html.rd .site-footer .footer-company strong { color: rgba(255,255,255,.85) !important; }
html.rd .site-footer .footer-company i { color: rgba(255,255,255,.45) !important; }
/* La fascia "Pronto a iniziare?" e il footer diventano un unico blocco */
html.rd .cta { border-bottom: 0 !important; padding-bottom: 5.5rem !important; }

/* Footer su mobile: allineato a sinistra, due colonne */
@media (max-width: 900px) {
  html.rd .site-footer .footer-main { padding: 3.5rem 1.5rem 2.5rem !important; gap: 2.5rem !important; text-align: left !important; align-items: stretch !important; }
  html.rd .site-footer .footer-brand { align-items: flex-start !important; text-align: left !important; max-width: none !important; }
  html.rd .site-footer .footer-logo-link { align-self: flex-start !important; margin: 0 0 1rem !important; }
  html.rd .site-footer .footer-logo { margin: 0 !important; }
  html.rd .site-footer .footer-tagline { text-align: left !important; margin: 0 0 1.25rem !important; }
  html.rd .site-footer .footer-contact-list { margin: 0 0 1rem !important; max-width: none !important; }
  html.rd .site-footer .footer-social { justify-content: flex-start !important; margin: 0 !important; }
  html.rd .site-footer .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)) !important; max-width: none !important; gap: 2rem 1.5rem !important; }
  html.rd .site-footer .footer-col { text-align: left !important; align-items: flex-start !important; }
  html.rd .site-footer .footer-col-title { text-align: left !important; }
  html.rd .site-footer .footer-col ul { align-items: flex-start !important; }
  html.rd .site-footer .footer-bottom-inner { text-align: left !important; align-items: flex-start !important; padding: 1.25rem 1.5rem 5rem !important; }
  html.rd .site-footer .footer-company { justify-content: flex-start !important; }
}

/* ---------- Elementi flottanti ---------- */
html.rd .back-to-top {
  width: 44px !important; height: 44px !important;
  background: rgba(255,255,255,.88) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  color: var(--navy) !important;
  border: 1px solid rgba(20,33,61,.1);
  box-shadow: 0 8px 24px -8px rgba(15,27,54,.35) !important;
  font-size: 1.15rem !important;
}
html.rd .back-to-top:hover { background: #fff !important; }
html.rd .back-to-top:active { transform: scale(.94) !important; }

/* Popup consulenza: più compatto, sopra l'icona dei cookie */
html.rd .popup-consulenza { max-width: 320px !important; bottom: 4.5rem !important; }
html.rd .popup-consulenza .popup-header { padding: 1rem 1.25rem !important; }
@media (max-width: 900px) { html.rd .popup-consulenza { bottom: 4rem !important; } }

/* ---------- Banner cookie ---------- */
html.rd .elc-cookie-banner {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 8px rgba(15,27,54,.04), 0 24px 56px -16px rgba(15,27,54,.28) !important;
  max-width: 420px !important;
}
html.rd .elc-cookie-icon { color: var(--ink) !important; }
html.rd .elc-cookie-icon i { color: var(--orange) !important; }
html.rd .elc-cookie-banner p { color: var(--muted) !important; font-size: .9375rem !important; line-height: 1.55 !important; }
html.rd .elc-cookie-banner a { color: var(--navy) !important; }
html.rd .elc-cookie-btn { border-radius: var(--r-pill) !important; font-weight: 600 !important; transition: background-color var(--dur-fast), transform var(--dur-fast) !important; }
html.rd .elc-cookie-btn:active { transform: scale(.97) !important; }
/* Accetta e rifiuta con lo stesso peso visivo */
html.rd .elc-cookie-btn-primary { background: var(--navy) !important; color: #fff !important; box-shadow: none !important; }
html.rd .elc-cookie-btn-primary:hover { background: var(--navy-700) !important; transform: none !important; }
html.rd .elc-cookie-btn-secondary { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--line-strong) !important; flex-grow: 1; }
html.rd .elc-cookie-btn-secondary:hover { border-color: var(--navy) !important; background: #fff !important; }
html.rd .elc-cookie-btn-link { color: var(--muted) !important; }
html.rd .elc-cookie-modal { background: rgba(15,27,54,.45) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.rd .elc-cookie-modal-content { border-radius: var(--r-lg) !important; }
html.rd .elc-cookie-toggle-row { background: var(--paper-2) !important; border-radius: var(--r-md) !important; }
html.rd .elc-cookie-switch input:checked + span { background: var(--navy) !important; }
html.rd .elc-cookie-fab { border-color: var(--line) !important; box-shadow: 0 6px 16px -6px rgba(15,27,54,.3) !important; }
html.rd .elc-cookie-fab:hover { transform: none !important; }
html.rd .elc-cookie-fab i { color: var(--navy) !important; }
html.rd .site-footer .iubenda-embed.iubenda-nostyle { font-family: 'Montserrat', 'Sans Fallback', sans-serif !important; font-size: .9375rem !important; font-weight: 400 !important; line-height: 1.4 !important; }
html.rd .site-footer .iubenda-embed.iubenda-nostyle:hover { color: #fff !important; }
html.rd .mobile-dropdown { margin: 0 0 0 .75rem !important; border-left-color: transparent; transition: max-height 320ms var(--ease-out), border-color 200ms !important; }
html.rd .mobile-menu-item.active .mobile-dropdown { margin-bottom: .5rem !important; border-left-color: var(--orange-tint); }
@media (max-width: 900px) { html.rd .site-footer .footer-bottom-inner { padding-bottom: 1.5rem !important; } }

/* ==========================================================================
   FASE 3 — Homepage
   ========================================================================== */
html:not(.rd) :is(.rd-hero-eyebrow, .rd-hero-media, .rd-card-media, .rd-cta-secondary, .rd-eyebrow) { display: none !important; }

/* Ritmo verticale delle sezioni */
html.rd :is(.chi-siamo-section, .services, .processo-section, .target, .progetti-evidenza) {
  padding-top: clamp(4rem, 3rem + 4vw, 7rem) !important;
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem) !important;
}

/* ---------- Hero split (predefinita) ---------- */
html.rd:not(.rd-hero-photo) .hero {
  background: #fff !important;
  min-height: 0 !important;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 2rem clamp(3.5rem, 2rem + 4vw, 6rem) !important;
  display: block !important;
}
html.rd:not(.rd-hero-photo) .hero-content {
  max-width: 1280px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: clamp(2rem, 1rem + 4vw, 5rem) !important;
  align-items: center !important;
}
html.rd:not(.rd-hero-photo) .hero h1 { color: var(--ink) !important; text-shadow: none !important; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.375rem) !important; }
html.rd:not(.rd-hero-photo) .hero h1 strong { color: var(--orange-text) !important; }
html.rd:not(.rd-hero-photo) .hero p { color: var(--muted) !important; font-size: var(--fs-lead) !important; max-width: 34em; }
html.rd:not(.rd-hero-photo) .hero .btn-outline { color: var(--navy) !important; border-color: var(--line-strong) !important; background: #fff !important; }
html.rd:not(.rd-hero-photo) .hero .btn-outline:hover { border-color: var(--navy) !important; }
html.rd:not(.rd-hero-photo) .hero-stats {
  border-top: 1px solid var(--line) !important;
  margin-top: 2.75rem !important; padding-top: 1.75rem !important;
  display: grid !important; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem 2.5rem !important;
}
html.rd:not(.rd-hero-photo) .hero-stat-num { color: var(--navy) !important; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem) !important; }
html.rd:not(.rd-hero-photo) .hero-stat:nth-child(even) .hero-stat-num { color: var(--orange-text) !important; }
html.rd:not(.rd-hero-photo) .hero-stat-label { color: var(--muted) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .875rem !important; margin-top: .35rem; }

html.rd .rd-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem; margin-bottom: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font: 600 .75rem/1 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: #fff;
}
html.rd .rd-hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Foto ad arco */
html.rd .rd-hero-media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 4.6;
  max-height: 640px;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,27,54,.45);
  isolation: isolate;
}
html.rd .rd-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; }
html.rd .rd-hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,27,54,0) 45%, rgba(15,27,54,.85) 100%);
}
html.rd .rd-hero-media figcaption {
  position: absolute; left: 2rem; right: 2rem; bottom: 1.75rem; z-index: 2;
  color: #fff; font-family: 'Fraunces', 'Fraunces Fallback', serif; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); line-height: 1.25; letter-spacing: -0.01em;
}
html.rd .rd-hero-media figcaption span {
  display: block; margin-bottom: .5rem;
  font: 600 .75rem/1 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-on-dark);
}

/* Variante "Foto piena" */
html.rd.rd-hero-photo .rd-hero-media, html.rd.rd-hero-photo .rd-hero-eyebrow { display: none !important; }

@media (max-width: 900px) {
  html.rd:not(.rd-hero-photo) .hero { padding: 2rem 1.25rem 3.5rem !important; }
  html.rd:not(.rd-hero-photo) .hero-content { grid-template-columns: 1fr !important; }
  html.rd:not(.rd-hero-photo) .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem !important; }
  html.rd .rd-hero-media { aspect-ratio: 4 / 3.4; border-radius: 999px 999px 22px 22px; max-height: 420px; }
  html.rd .rd-hero-media figcaption { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
}

/* ---------- Intestazioni editoriali ---------- */
html.rd .section-title.rd-split-head,
html.rd .section-title.rd-left-head {
  max-width: none !important;
  text-align: left !important;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem) !important;
}
html.rd .section-title.rd-split-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end;
}
html.rd .rd-split-head h2, html.rd .rd-left-head h2 { margin: 0 !important; }
html.rd .rd-split-head > p { margin: 0 0 .4rem !important; max-width: 30em !important; justify-self: end; }
html.rd .rd-left-head p { margin: 1rem 0 0 !important; max-width: 36em !important; }
html.rd .rd-eyebrow, html.rd .rd-left-head .processo-eyebrow {
  display: block; margin-bottom: .875rem !important;
  font: 600 .75rem/1 'Montserrat', sans-serif; letter-spacing: .14em !important; text-transform: uppercase;
  color: var(--orange-text);
}
@media (max-width: 900px) {
  html.rd .section-title.rd-split-head { grid-template-columns: 1fr; }
  html.rd .rd-split-head > p { justify-self: start; }
}

/* ---------- Chi siamo ---------- */
html.rd .chi-siamo-mini-stats { display: none !important; } /* i numeri sono già nella hero */
html.rd .chi-siamo-grid { padding: clamp(2rem, 1rem + 3vw, 3.5rem) !important; }

/* ---------- Soluzioni: card con foto ---------- */
html.rd .target-card { padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column; }
html.rd .target-card .target-icon { display: none !important; }
html.rd .rd-card-media { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 1.5rem; }
html.rd .rd-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.rd .target-card > :is(h3, p, .target-link) { margin-left: 1.75rem !important; margin-right: 1.75rem !important; }
html.rd .target-card > .target-link { margin-top: auto !important; margin-bottom: 1.75rem !important; }
html.rd .target-card > p { margin-bottom: 1.5rem !important; }

/* ---------- Progetti: griglia al posto dello slider ---------- */
html.rd .progetti-slider { max-width: none !important; overflow: visible !important; border-radius: 0 !important; margin-top: 0 !important; }
html.rd .progetti-track {
  display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem;
  transform: none !important; transition: none !important;
}
html.rd .progetti-track .progetto-card {
  display: flex !important; flex-direction: column; min-height: 0 !important;
  border-radius: var(--r-lg) !important; flex: none !important;
}
html.rd .progetti-track .progetto-image { min-height: 0 !important; height: auto !important; aspect-ratio: 16 / 10; position: relative; }
html.rd .progetti-track .progetto-image img { border-radius: 0 !important; }
/* Il logo vivaCER non è una foto: va contenuto, non ritagliato */
html.rd .progetti-track .progetto-image img[src*="vivacer"] { object-fit: contain !important; padding: 2.5rem; background: #fff; }
html.rd .progetti-track .progetto-content { padding: 1.5rem 1.5rem 1.75rem !important; flex: 1; display: flex !important; flex-direction: column; justify-content: flex-start !important; }
html.rd .progetti-track .progetto-content h3 { font-size: 1.375rem !important; margin-bottom: .35rem !important; }
html.rd .progetto-location { color: var(--muted) !important; font-size: .875rem !important; }
html.rd .progetti-track .progetto-content p { font-size: .9375rem !important; color: var(--muted) !important; }
html.rd .progetto-stats { margin-top: auto !important; border-top-color: var(--line) !important; color: var(--navy) !important; font-weight: 600; }
html.rd .progetto-stats i { color: var(--orange-text); }
html.rd .slider-controls { display: none !important; }
html.rd .progetti-cta { margin-top: 2.5rem !important; }
html.rd .progetti-cta .btn { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--line-strong) !important; }
html.rd .progetti-cta .btn:hover { border-color: var(--navy) !important; }
@media (max-width: 900px) {
  html.rd .progetti-track { grid-template-columns: 1fr; }
}

/* ---------- Simulatore unito all'invito finale ---------- */
html.rd .simulatore-section { display: none !important; }
html.rd .cta-content { max-width: 720px !important; }
html.rd .cta .btn { margin: .375rem; }
html.rd .cta .rd-cta-secondary {
  background: transparent !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.35) !important;
}
html.rd .cta .rd-cta-secondary:hover { background: #fff !important; color: var(--navy) !important; border-color: #fff !important; }
html.rd .rd-hero-eyebrow {
  padding: .55rem 1rem !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--navy) !important;
  box-shadow: 0 1px 2px rgba(15,27,54,.04) !important;
}
html.rd .target-content { max-width: 1216px !important; }

/* ==========================================================================
   MOBILE — blocchi compatti: niente riquadri che occupano tutto lo schermo
   ========================================================================== */
@media (max-width: 900px) {
  /* Sezioni meno alte */
  html.rd :is(.chi-siamo-section, .services, .processo-section, .target, .progetti-evidenza, .cta) {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }
  html.rd :is(.services, .target, .progetti-evidenza, .processo-section, .chi-siamo-section) {
    padding-left: 1.25rem !important; padding-right: 1.25rem !important;
  }
  html.rd .section-title.rd-split-head, html.rd .section-title.rd-left-head { margin-bottom: 1.75rem !important; gap: .75rem !important; }
  html.rd :is(.section-title, [class*="-head"]) h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.125rem) !important; }
  html.rd .rd-split-head > p, html.rd .rd-left-head p { font-size: 1rem !important; }

  /* Hero con foto: pulsanti e numeri più compatti */
  html.rd .hero { min-height: 0 !important; padding: 3.5rem 1.25rem 2.75rem !important; }
  html.rd .hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 2.75rem) !important; margin-bottom: 1rem !important; }
  html.rd .hero p { font-size: 1rem !important; margin-bottom: 1.75rem !important; }
  html.rd .hero-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: .625rem !important; }
  html.rd .hero-buttons .btn { padding: .85rem .75rem !important; font-size: .875rem !important; text-align: center; white-space: nowrap; }
  html.rd .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem !important; margin-top: 2rem !important; padding-top: 1.5rem !important; }
  html.rd .hero-stat-num { font-size: 1.5rem !important; }
  html.rd .hero-stat-label { font-size: .6875rem !important; }

  /* Chi siamo */
  html.rd .chi-siamo-grid { padding: 1.5rem !important; gap: 1.5rem !important; border-radius: var(--r-lg) !important; }
  html.rd .chi-siamo-content h2 { margin-bottom: 1rem !important; }
  html.rd .chi-siamo-content p { font-size: 1rem !important; margin-bottom: 1.25rem !important; }
  html.rd .chi-siamo-image img { aspect-ratio: 16 / 10; object-fit: cover; }

  /* Servizi: riga compatta, icona a sinistra */
  html.rd .services-grid { gap: .75rem !important; }
  html.rd .service-card:has(> .service-icon) {
    display: grid !important;
    grid-template-columns: 48px 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.25rem !important;
  }
  html.rd .service-card .service-icon { width: 48px !important; height: 48px !important; margin: 0 !important; grid-row: span 3; }
  html.rd .service-card h3 { font-size: 1.25rem !important; margin: .1rem 0 .3rem !important; }
  html.rd .service-card p { font-size: .9375rem !important; margin: 0 0 .6rem !important; }

  /* Metodo: numero a sinistra, testo a destra */
  html.rd .processo-grid { gap: .625rem !important; }
  html.rd .processo-step {
    display: grid !important;
    grid-template-columns: 2.75rem 1fr;
    column-gap: .75rem;
    padding: 1rem 1.125rem !important;
  }
  html.rd .processo-step-num { grid-row: span 2; font-size: 1.75rem !important; margin: 0 !important; }
  html.rd .processo-step h3 { margin: .15rem 0 .25rem !important; font-size: 1.0625rem !important; }
  html.rd .processo-step p { font-size: .875rem !important; margin: 0 !important; }

  /* Soluzioni e progetti: carosello orizzontale (scorri col dito) */
  html.rd :is(.target-grid, .progetti-track) {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none !important;
    gap: .875rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    margin: 0 -1.25rem !important;
    padding: 0 1.25rem .5rem !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html.rd :is(.target-grid, .progetti-track)::-webkit-scrollbar { display: none; }
  html.rd :is(.target-grid, .progetti-track) > * { scroll-snap-align: start; }
  html.rd .rd-card-media { aspect-ratio: 16 / 10; margin-bottom: 1rem !important; }
  html.rd .target-card > :is(h3, p, .target-link) { margin-left: 1.25rem !important; margin-right: 1.25rem !important; }
  html.rd .target-card > p { font-size: .9375rem !important; margin-bottom: 1rem !important; }
  html.rd .target-card > .target-link { margin-bottom: 1.25rem !important; }
  html.rd .progetti-track .progetto-content { padding: 1.125rem 1.25rem 1.25rem !important; }
  html.rd .progetti-track .progetto-content p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html.rd .progetti-cta { margin-top: 1.5rem !important; }

  /* Fascia finale */
  html.rd .cta .btn { display: block !important; margin: .5rem auto 0 !important; max-width: 320px; }
}

/* Regola generale per tutte le pagine su telefono: card meno imbottite */
@media (max-width: 600px) {
  html.rd :is([class$="-card"], [class*="-card "]):not(.target-card):not(.progetto-card) { padding: 1.25rem !important; }
  html.rd :is([class$="-card"], [class*="-card "]) h3 { font-size: 1.25rem !important; }
}
@media (max-width: 900px) {
  /* Metodo su telefono: elenco leggero con separatori, non cinque riquadri */
  html.rd .processo-grid { gap: 0 !important; border-top: 1px solid rgba(255,255,255,.12); }
  html.rd .processo-step {
    background: none !important; border: 0 !important; border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    padding: 1rem 0 !important;
  }
}
@media (max-width: 900px) {
  html.rd .chi-siamo-image img { height: auto !important; aspect-ratio: 16 / 10 !important; object-fit: cover !important; }
  html.rd .chi-siamo-image { max-height: none !important; }
}

/* ==========================================================================
   MOBILE v2 — hero a tutto schermo ben distribuita, elenchi al posto dei caroselli
   ========================================================================== */
@media (max-width: 900px) {
  /* Hero: occupa lo schermo, contenuto distribuito dall'alto al basso */
  html.rd .hero {
    min-height: calc(100svh - 64px) !important;
    padding: 2.5rem 1.25rem 2rem !important;
    display: flex !important;
    align-items: stretch !important;
    background-position: 62% center !important;
  }
  html.rd .hero-content { display: flex !important; width: 100%; }
  html.rd .hero-content > div {
    display: flex; flex-direction: column; width: 100%;
  }
  html.rd .hero h1 {
    font-size: clamp(2.5rem, 1.6rem + 4.2vw, 3.125rem) !important;
    line-height: 1.04 !important;
    margin: auto 0 1.25rem !important; /* spinge il blocco testo verso il centro */
  }
  html.rd .hero p { font-size: 1.0625rem !important; line-height: 1.55 !important; margin-bottom: 2rem !important; }
  html.rd .hero-buttons { grid-template-columns: 1fr !important; gap: .75rem !important; }
  html.rd .hero-buttons .btn { padding: 1rem 1rem !important; font-size: .9375rem !important; }
  html.rd .hero-stats {
    margin-top: auto !important; /* i numeri si appoggiano al fondo */
    padding-top: 1.5rem !important;
    gap: 1.25rem 1rem !important;
  }
  html.rd .hero-buttons { margin-bottom: 2.5rem; }
  html.rd .hero-stat-num { font-size: 1.75rem !important; }
  html.rd .hero-stat-label { font-size: .6875rem !important; line-height: 1.35 !important; }

  /* Soluzioni e progetti: elenco compatto, foto a sinistra */
  html.rd :is(.target-grid, .progetti-track) {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: .75rem !important;
  }
  html.rd .target-card,
  html.rd .progetti-track .progetto-card {
    display: grid !important;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 1rem;
    padding: .75rem !important;
    align-items: start;
  }
  html.rd .target-card .rd-card-media,
  html.rd .progetti-track .progetto-image {
    grid-row: 1 / -1;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    height: auto !important;
  }
  html.rd .target-card > :is(h3, p, .target-link) { margin: 0 !important; }
  html.rd .target-card > h3 { margin-top: .25rem !important; font-size: 1.1875rem !important; }
  html.rd .target-card > p { font-size: .875rem !important; line-height: 1.45 !important; margin: .25rem 0 .5rem !important; }
  html.rd .target-card > .target-link { font-size: .75rem !important; align-self: end; }

  html.rd .progetti-track .progetto-content { padding: .25rem 0 0 !important; display: block !important; }
  html.rd .progetti-track .progetto-content h3 { font-size: 1.1875rem !important; margin-bottom: .15rem !important; }
  html.rd .progetto-location { font-size: .8125rem !important; margin-bottom: .35rem !important; }
  html.rd .progetti-track .progetto-content p { font-size: .875rem !important; line-height: 1.45 !important; margin-bottom: .5rem !important; -webkit-line-clamp: 2; }
  html.rd .progetto-stats { padding-top: .5rem !important; font-size: .8125rem !important; gap: .875rem !important; }
  html.rd .progetto-categoria { display: none !important; } /* l'etichetta copriva metà della foto piccola */
  html.rd .progetti-track .progetto-image img[src*="vivacer"] { padding: .75rem !important; }
}
@media (max-width: 900px) { html.rd .progetto-stats i, html.rd .progetto-location i { font-size: .95rem !important; } }

/* ==========================================================================
   FASE 4 — Pagine interne
   ========================================================================== */

/* ---------- Intestazione pagina: fascia blu con percorso integrato ---------- */
html.rd .breadcrumb {
  max-width: none !important;
  margin: 0 !important;
  padding: 1.25rem max(2rem, calc((100% - 1216px) / 2)) 0 !important;
  background: var(--navy) !important;
  color: rgba(255,255,255,.55) !important;
  font-size: .8125rem !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem;
}
html.rd .breadcrumb a { color: rgba(255,255,255,.7) !important; }
html.rd .breadcrumb a:hover { color: #fff !important; }
html.rd .breadcrumb .separator { color: rgba(255,255,255,.35) !important; margin: 0 .35rem !important; }
html.rd .breadcrumb .current { color: var(--orange-on-dark) !important; font-weight: 600 !important; }

html.rd .page-header {
  background: var(--navy) !important;
  background-image: none !important;
  text-align: left !important;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) max(2rem, calc((100% - 1216px) / 2)) clamp(3rem, 2rem + 3vw, 4.5rem) !important;
  border-bottom: 0 !important;
}
html.rd .page-header h1 {
  color: #fff !important;
  font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.75rem) !important;
  max-width: 18ch;
  margin-bottom: 1rem !important;
}
html.rd .page-header h1 strong, html.rd .page-header h1 em { color: var(--orange-on-dark) !important; }
html.rd .page-header :is(p, .subtitle) {
  color: rgba(255,255,255,.78) !important;
  max-width: 38em; margin-left: 0 !important; margin-right: 0 !important;
}
html.rd .page-header [class*="eyebrow"] { color: var(--orange-on-dark) !important; margin-bottom: 1rem !important; display: block !important; }

/* Intestazioni speciali (Aggiornamenti, Incentivi, Simulatore) allineate allo stesso linguaggio */
html.rd :is(.agg-hero, .inc-hero, .sim-hero) {
  background: var(--navy) !important;
  background-image: none !important;
}
html.rd :is(.agg-hero, .inc-hero, .sim-hero) :is(h1, h2) { color: #fff !important; }
html.rd :is(.agg-hero, .inc-hero, .sim-hero) :is(h1, h2) :is(strong, em) { color: var(--orange-on-dark) !important; }
html.rd :is(.agg-hero, .inc-hero, .sim-hero) p { color: rgba(255,255,255,.78) !important; }
html.rd :is(.agg-hero, .inc-hero, .sim-hero) [class*="eyebrow"] { color: var(--orange-on-dark) !important; }
html.rd :is(.agg-hero, .inc-hero, .sim-hero)::before,
html.rd :is(.agg-hero, .inc-hero, .sim-hero)::after { display: none !important; }

/* ---------- Sezioni di contenuto: ritmo e fasce alternate ---------- */
html.rd .content-section {
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) !important;
  padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) !important;
}
html.rd .content-section:nth-of-type(odd) {
  background: var(--paper-2);
  box-shadow: 0 0 0 100vmax var(--paper-2);
  clip-path: inset(0 -100vmax);
}
/* Titoli con icona davanti: l'icona esce, resta il titolo */
html.rd :is(h1, h2) > i.ph:first-child { display: none !important; }

/* Pulsanti generici dentro i contenuti: blu pieno */
html.rd main .btn:not(.btn-primary):not(.btn-outline):not(.rd-cta-secondary) {
  background: var(--navy) !important; color: #fff !important; border: 1px solid var(--navy) !important;
  padding: .9rem 1.6rem !important;
}
html.rd main .btn:not(.btn-primary):not(.btn-outline):not(.rd-cta-secondary):hover { background: var(--navy-700) !important; }
/* Nella fascia finale: arancio */
html.rd .cta .btn:not(.rd-cta-secondary):not(.btn-outline) {
  background: var(--orange-cta) !important; border-color: var(--orange-cta) !important; color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(201,78,20,.5) !important;
}
html.rd .cta .btn:not(.rd-cta-secondary):not(.btn-outline):hover { background: var(--orange-cta-hover) !important; }

/* Badge incentivi (pillole) */
html.rd .incentivo-badge {
  background: #fff !important; color: var(--navy) !important;
  border: 1px solid var(--line-strong) !important;
  padding: .6rem 1.1rem !important; font-size: .875rem !important;
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast) !important;
}
html.rd .incentivo-badge:hover { border-color: var(--orange-cta) !important; color: var(--orange-text) !important; transform: none !important; }
html.rd .content-section:nth-of-type(odd) { background: var(--paper-2) !important; }
html.rd .content-section:nth-of-type(even) { background: transparent !important; }
html.rd body .cta .btn:not(.rd-cta-secondary):not(.btn-outline) {
  background: var(--orange-cta) !important; border-color: var(--orange-cta) !important; color: #fff !important;
}
html.rd body .cta .btn:not(.rd-cta-secondary):not(.btn-outline):hover { background: var(--orange-cta-hover) !important; }
/* Chi siamo: partner e team */
html.rd .partner-card { background: #fff !important; background-image: none !important; }
html.rd .partner-card::before, html.rd .partner-card::after { display: none !important; }
html.rd .partner-badge { background: var(--navy-tint) !important; color: var(--navy) !important; }
html.rd .team-grid { justify-content: center !important; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)) !important; }
html.rd .team-role { color: var(--orange-text) !important; }
html.rd :is(.cs-stats-section, .stats-section) { background: #fff !important; background-image: none !important; border-bottom: 1px solid var(--line); }
html.rd :is(.info-card, .form-card, .partner-highlight, .simulatore, .stats-section)::before,
html.rd :is(.info-card, .form-card, .partner-highlight, .simulatore, .stats-section)::after { display: none !important; }
html.rd :is(.info-card, .form-card, .partner-highlight) { background-image: none !important; }
html.rd :is(.agg-hero, .inc-hero, .sim-hero) {
  border-radius: 0 !important;
  box-shadow: 0 0 0 100vmax var(--navy) !important;
  clip-path: inset(0 -100vmax) !important;
  margin-top: 0 !important;
}
html.rd [class*="inc-sim"]::before, html.rd [class*="inc-sim"]::after,
html.rd .inc-simulatore::before, html.rd .inc-simulatore::after { display: none !important; }
/* Riquadro finale delle FAQ: card blu */
html.rd .faq-cta { background: var(--navy) !important; background-image: none !important; border: 0 !important; color: rgba(255,255,255,.78); }
html.rd .faq-cta::before, html.rd .faq-cta::after { display: none !important; }
html.rd .faq-cta h2 { color: #fff !important; }
html.rd .faq-cta p { color: rgba(255,255,255,.75) !important; }
html.rd .faq-cta .btn, html.rd .faq-cta a[class*="btn"] { background: var(--orange-cta) !important; border-color: var(--orange-cta) !important; color: #fff !important; }
html.rd :is(.fv-lavaggio-new, .fv-repowering-new, .pc-r290-section, .vivacer-section, .az-rischi-section) [class*="-card"],
html.rd :is(.fv-lavaggio-new, .fv-repowering-new) > div { background-image: none !important; }
html.rd :is(.fv-lavaggio-new, .fv-repowering-new) *::before,
html.rd :is(.fv-lavaggio-new, .fv-repowering-new)::before,
html.rd :is(.fv-lavaggio-new, .fv-repowering-new)::after { background-image: none !important; }
html.rd .fv-lavaggio-card { background: var(--paper-2) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
html.rd .fv-lavaggio-card::before, html.rd .fv-lavaggio-card::after { display: none !important; }
html.rd .fv-lavaggio-icon-big { background: var(--orange-tint) !important; color: var(--orange-text) !important; box-shadow: none !important; }
/* Aggiornamenti: articolo in evidenza su blu */
html.rd .agg-featured-card h2, html.rd .agg-featured-card h3 { color: #fff !important; }
html.rd .agg-featured-card :is(p, span, li) { color: rgba(255,255,255,.8); }
/* Logo vivaCER sempre intero */
html.rd img[src*="vivacer"] { object-fit: contain !important; background: #fff; padding: 1.5rem; }
/* Card scure: restano scure, in blu notte */
html.rd .az-rischi-card {
  background: var(--navy-900) !important; background-image: none !important;
  border: 0 !important; border-radius: 28px !important;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem) !important;
}
html.rd .az-rischi-card::before, html.rd .az-rischi-card::after { display: none !important; }
html.rd .az-rischi-head h2 { color: #fff !important; }
html.rd :is(.az-rischi-head h2 strong, .az-rischi-head p strong, .az-rischio-pill i) { color: var(--orange-on-dark) !important; }
html.rd .az-rischi-eyebrow { background: rgba(244,145,88,.14) !important; color: var(--orange-on-dark) !important; padding: .5rem 1rem !important; border-radius: 999px !important; }
html.rd .az-rischi-cta { background: var(--orange-cta) !important; color: #fff !important; }
html.rd .az-rischi-cta:hover { background: var(--orange-cta-hover) !important; transform: none !important; box-shadow: none !important; }
html.rd .az-opzione.good .az-opzione-icon { background: var(--orange-tint) !important; color: var(--orange-text) !important; }
html.rd .az-opzione.good .az-opzione-label { color: var(--orange-text) !important; }
html.rd .az-opzione.good .az-opzione-mark { background: var(--navy) !important; }
html.rd .agg-featured-card { background: var(--navy) !important; background-image: none !important; border: 0 !important; }
html.rd .agg-featured-card::before, html.rd .agg-featured-card::after { display: none !important; }
/* Banner vivaCER: blu, raggio coerente (il giallo è il colore di vivaCER e resta) */
html.rd .vivacer-banner { background: var(--navy) !important; border-radius: 28px !important; border: 0 !important; }
/* Ultimi verdi residui (stati hover e riquadri) */
html.rd .pc-r290-highlight { background: var(--navy) !important; background-image: none !important; }
html.rd :is(.btn:not(.btn-outline):not(.btn-primary):not(.rd-cta-secondary), .newsletter-form button, .fv-lavaggio-cta a, .pi-sim-cta a, .btn-back, .mobile-menu-cta):hover { background-color: var(--navy-700) !important; background-image: none !important; }
html.rd :is(.fv-lavaggio-cta a, .pi-sim-cta a, .newsletter-form button, .btn-back) { background: var(--navy) !important; background-image: none !important; color: #fff !important; border-radius: 999px !important; }
html.rd :is(.btn-primary, .popup-btn, .popup-btn-primary, .btn-submit, .fv-rep-cta):hover { background-color: var(--orange-cta-hover) !important; background-image: none !important; }
html.rd .faq-cta a:hover { background: var(--orange-cta-hover) !important; }
html.rd :is(.pc-r290-section, .pi-sim-section) > div::before,
html.rd :is(.pc-r290-section, .pi-sim-section) > div::after { display: none !important; }
html.rd :is(.pc-r290-section, .pi-sim-section) > div { background-image: none !important; }
/* Home: "Scopri tutti i progetti" resta pulsante a contorno */
html.rd body .progetti-cta .btn.btn.btn.btn { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--line-strong) !important; }
html.rd body .progetti-cta .btn.btn.btn.btn:hover { background: #fff !important; border-color: var(--navy) !important; }
html.rd h2 { line-height: 1.15 !important; }
@media (max-width: 900px) {
  html.rd .content-section { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  html.rd .page-header { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  html.rd .breadcrumb { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  html.rd .two-column { gap: 1.75rem !important; }
  html.rd .two-column img { aspect-ratio: 16 / 10; object-fit: cover; height: auto !important; }
}
@media (max-width: 900px) {
  html.rd .fv-repowering-image { height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 3; }
  html.rd .fv-repowering-image img { height: 100% !important; width: 100%; object-fit: cover; object-position: center 30%; }
  html.rd .fv-repowering-card { padding: 1.5rem !important; }
  html.rd .az-rischi-card { border-radius: var(--r-lg) !important; }
}

/* ==========================================================================
   FASE 5 — Fotografia e icone
   ========================================================================== */
html:not(.rd) .rd-duo { display: none !important; }

/* Trattamento colore comune: meno saturazione "da stock", contrasto morbido, tono caldo */
html.rd main img:not([src*="logo"]):not([src*="vivacer"]):not([src*="1716"]) {
  filter: saturate(.86) contrast(1.04) brightness(1.01) sepia(.05);
}
html.rd .hero { filter: none; }

/* Home, Chi siamo: i due volti reali di Eliante */
html.rd .rd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
html.rd .rd-duo figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
html.rd .rd-duo figure:nth-child(2) { margin-top: 2.5rem; }
html.rd .rd-duo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: 0 !important; box-shadow: none !important; }
html.rd .rd-duo figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,27,54,.75)); }
html.rd .rd-duo figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1;
  color: #fff; font: 600 .9375rem/1.25 'Montserrat', sans-serif;
}
html.rd .rd-duo figcaption span { display: block; font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-on-dark); margin-top: .2rem; }
html.rd .chi-siamo-image:has(.rd-duo) { box-shadow: none !important; }
@media (max-width: 900px) {
  html.rd .rd-duo figure { aspect-ratio: 3 / 4; }
  html.rd .rd-duo figure:nth-child(2) { margin-top: 1.5rem; }
}

/* Icone: un solo stile (contorno), niente mix pieno/contorno */
html.rd .ph-fill { font-family: 'Phosphor' !important; }
html.rd .chi-siamo-image:has(.rd-duo) > :not(.rd-duo) { display: none !important; }
html.rd .chi-siamo-image:has(.rd-duo) { background: transparent !important; border-radius: 0 !important; overflow: visible !important; }

/* ==========================================================================
   FASE 6 — Movimento e rifinitura (principi Apple: risposta immediata,
   niente rimbalzi senza slancio, movimento breve e coerente)
   ========================================================================== */
:root {
  --ease-emph: cubic-bezier(.22, 1, .36, 1);   /* uscita morbida, smorzamento critico */
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);  /* curva dei pannelli iOS */
}

/* ---------- Comparsa delle sezioni: dissolvenza + 16px, nessun rimbalzo ---------- */
html.rd .reveal:not([class*="hero"]):not(.page-header) {
  opacity: 0;
  transform: translateY(16px) !important;
  transition: opacity 640ms var(--ease-emph), transform 760ms var(--ease-emph) !important;
}
html.rd .reveal.active:not([class*="hero"]):not(.page-header) { opacity: 1 !important; transform: none !important; }
/* Elementi a cascata: ritardi brevi (60ms), non mezzo secondo */
html.rd .reveal :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > * {
  transform: translateY(12px) !important;
  transition: opacity 560ms var(--ease-emph), transform 680ms var(--ease-emph), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out) !important;
}
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > * { transform: none !important; }
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > :nth-child(1) { transition-delay: 0ms, 0ms, 0ms, 0ms !important; }
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > :nth-child(2) { transition-delay: 60ms, 60ms, 0ms, 0ms !important; }
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > :nth-child(3) { transition-delay: 120ms, 120ms, 0ms, 0ms !important; }
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > :nth-child(4) { transition-delay: 180ms, 180ms, 0ms, 0ms !important; }
html.rd .reveal.active :is(.services-grid, .target-grid, .progetti-grid, .processo-grid) > :nth-child(n+5) { transition-delay: 240ms, 240ms, 0ms, 0ms !important; }

/* Nessuna transizione "all": solo le proprietà che cambiano davvero */
html.rd :is(a, button, .btn, .service-card, .target-card, .progetto-card) {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform !important;
  transition-duration: var(--dur-fast) !important;
  transition-timing-function: var(--ease-out) !important;
}

/* ---------- Feedback al tocco e al passaggio ---------- */
html.rd { -webkit-tap-highlight-color: transparent; }
html.rd :is(.service-card, .target-card, .progetto-card, [class$="-card"]):is(a, :has(> a)):active { transform: scale(.985) !important; transition-duration: 90ms !important; }
html.rd :is(.menu-item > a, .dropdown a, .mobile-menu-item .main-link a, .footer-col a):active { opacity: .6; transition-duration: 60ms !important; }
html.rd .incentivo-badge:active, html.rd .slider-arrow:active { transform: scale(.96) !important; }
/* Le immagini nelle card si avvicinano appena (solo con mouse vero) */
@media (hover: hover) and (pointer: fine) {
  /* zoom al passaggio con la proprietà 'scale': si somma alla parallasse (transform) senza scatti */
  html.rd :is(.progetto-card, .target-card) img { transition: scale 700ms var(--ease-emph) !important; }
  html.rd :is(.progetto-card, .target-card):hover img { scale: 1.035; }
}
@media (hover: none) {
  html.rd :is(.progetto-card, .target-card):hover img { scale: 1; }
}

/* ---------- Menu mobile e sottomenu ---------- */
html.rd .mobile-menu { transition: right 460ms var(--ease-sheet) !important; }
html.rd .overlay { transition: opacity 360ms var(--ease-out), visibility 0s linear 360ms !important; }
html.rd .overlay.active { transition: opacity 360ms var(--ease-out), visibility 0s !important; }
html.rd .mobile-menu-item .dropdown-arrow { transition: transform 320ms var(--ease-emph), background-color 160ms, color 160ms !important; }

/* ---------- FAQ: apertura fluida, icona che ruota ---------- */
html.rd .faq-item {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  transition: border-color 200ms var(--ease-out), box-shadow 240ms var(--ease-out) !important;
}
html.rd .faq-item:hover { border-color: var(--line-strong) !important; }
html.rd .faq-item.open { border-color: var(--navy) !important; box-shadow: var(--sh-1) !important; }
html.rd .faq-question { color: var(--ink) !important; font-weight: 600 !important; }
html.rd .faq-item.open .faq-question { color: var(--navy) !important; }
html.rd .faq-icon { background: var(--paper-2) !important; transition: background-color 200ms, transform 320ms var(--ease-emph) !important; }
html.rd .faq-icon::before, html.rd .faq-icon::after { background: var(--navy) !important; transition: transform 320ms var(--ease-emph), opacity 200ms !important; }
html.rd .faq-item.open .faq-icon { background: var(--navy) !important; }
html.rd .faq-item.open .faq-icon::before, html.rd .faq-item.open .faq-icon::after { background: #fff !important; }
html.rd .faq-answer { transition: max-height 420ms var(--ease-emph) !important; }
html.rd .faq-answer-inner { color: var(--muted) !important; }
html.rd .faq-answer-inner strong { color: var(--navy) !important; }

/* ---------- Header: compare il bordo solo dopo lo scroll ---------- */
html.rd header { transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 240ms !important; }
html.rd:not(.rd-scrolled) header { border-bottom-color: transparent !important; }
html.rd.rd-scrolled header { box-shadow: 0 1px 0 rgba(20,33,61,.06), 0 8px 24px -16px rgba(15,27,54,.25) !important; }

/* ---------- Rifiniture ---------- */
html.rd [id] { scroll-margin-top: 96px; }
html.rd main img { background-color: var(--paper-2); } /* segnaposto mentre l'immagine carica */
html.rd :is(p, li) { hanging-punctuation: first; }
html.rd :is(.hero-stat-num, .chi-siamo-mini-stat-num, [class*="stat-num"], [class*="-num"]) { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Accessibilità ---------- */
@media (prefers-reduced-motion: reduce) {
  html.rd .reveal, html.rd .reveal * { opacity: 1 !important; transform: none !important; transition: opacity 200ms linear !important; }
  html.rd :is(.progetto-card, .target-card):hover img { scale: 1; }
  html.rd .mobile-menu { transition: none !important; }
  html.rd html, html.rd { scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html.rd header, html.rd .dropdown, html.rd .back-to-top, html.rd .progetto-categoria {
    background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}
@media (prefers-contrast: more) {
  html.rd { --line: #9AA3B5; --line-strong: #5B6478; --muted: #2B3650; }
  html.rd :is([class$="-card"], .faq-item, .incentivo-badge) { border-width: 1.5px !important; }
}

/* ==========================================================================
   FASE WOW — sezione 3D "Anatomia dell'impianto" nella home
   ========================================================================== */
html:not(.rd) #anatomia { display: none !important; }
html.rd #anatomia .anat-step h2 { line-height: 1.06 !important; }
html.rd #anatomia .anat-sticky { top: 0; }
/* Parallasse delle foto originale: spenta con "Riduci movimento"; inclinazione 3D delle card mai attiva */
@media (prefers-reduced-motion: reduce) { html.rd :is(.chi-siamo-image, .progetto-image) img { transform: none !important; } }
html.rd :is(.service-card, .target-card) { transform: none !important; }

/* ==========================================================================
   UNIFORMAZIONE PAGINE — residui del vecchio verde e testi troppo piccoli
   ========================================================================== */
html.rd :is(.agg-hero-meta, .ct-faq-cta, .ct-faq-item, .filters, .inc-stat, .partner-highlight, .pc-r290-feat, .project-stats, .contact-info p, .info-card p) {
  border-color: var(--line) !important;
}
html.rd :is(.project-category, .agg-news-cat) { background: var(--navy-tint) !important; color: var(--navy) !important; }
html.rd .agg-hero-meta { border-color: rgba(255,255,255,.18) !important; }
/* Etichette: mai sotto i 12px */
html.rd :is(.partner-badge, .fv-rep-badge, .fv-rep-stats-label, .agg-news-cat, .agg-feed-source, .az-opzione-label, .inc-altro-tag, .project-category, .stat-label, .cs-stat-label, .hero-stat-label, .chi-siamo-mini-stat-label) {
  font-size: .75rem !important;
}
html.rd .chart-year-label { font-size: .6875rem !important; }

/* Schede con foto anche nelle pagine indice (Servizi, Soluzioni) */
html.rd .service-card:has(> .rd-card-media) { padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column; }
html.rd .service-card:has(> .rd-card-media) .service-icon { display: none !important; }
html.rd .service-card:has(> .rd-card-media) > :is(h3, p, .service-link) { margin-left: 1.75rem !important; margin-right: 1.75rem !important; }
html.rd .service-card:has(> .rd-card-media) > .service-link { margin-top: auto !important; margin-bottom: 1.75rem !important; }
html.rd .service-card:has(> .rd-card-media) > p { margin-bottom: 1.25rem !important; }
html.rd .service-card:has(> .rd-card-media) .rd-card-media { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 1.5rem; }
html.rd .service-card:has(> .rd-card-media):nth-child(3) .rd-card-media img { opacity: .92; }
@media (hover: hover) and (pointer: fine) {
  html.rd .service-card .rd-card-media img { transition: scale 700ms var(--ease-emph); }
  html.rd .service-card:hover .rd-card-media img { scale: 1.035; }
}
@media (max-width: 900px) {
  html.rd .service-card:has(> .rd-card-media) { display: grid !important; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; padding: .75rem !important; align-items: start; }
  html.rd .service-card:has(> .rd-card-media) > .service-link { align-self: end; }
  html.rd .service-card:has(> .rd-card-media) .rd-card-media { grid-row: 1 / -1; aspect-ratio: 1; margin: 0; border-radius: 12px; }
  html.rd .service-card:has(> .rd-card-media) > :is(h3, p, .service-link) { margin: 0 !important; }
  html.rd .service-card:has(> .rd-card-media) > h3 { margin-top: .25rem !important; font-size: 1.1875rem !important; }
  html.rd .service-card:has(> .rd-card-media) > p { font-size: .875rem !important; line-height: 1.45 !important; margin: .25rem 0 .5rem !important; }
}

/* "I nostri progetti realizzati": fascia orizzontale invece del riquadro vuoto */
html.rd .progetti-link-section {
  display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 2.5rem;
  text-align: left !important; max-width: 1216px; margin: 0 auto;
  padding: 2rem 2.25rem !important; border-radius: var(--r-lg) !important;
  background: var(--navy) !important; border: 0 !important; box-shadow: none !important;
}
html.rd .progetti-link-section .progetti-link-title { grid-column: 1; color: #fff !important; margin: 0 !important; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important; text-align: left !important; justify-content: flex-start !important; }
html.rd .progetti-link-section .progetti-link-text { grid-column: 1; color: rgba(255,255,255,.75) !important; margin: 0 !important; max-width: 38em; text-align: left !important; }
html.rd .progetti-link-section .progetti-link-btn { grid-column: 2; grid-row: 1 / span 2; background: var(--orange-cta) !important; color: #fff !important; border: 0 !important; padding: .9rem 1.5rem !important; white-space: nowrap; }
html.rd .progetti-link-section .progetti-link-btn:hover { background: var(--orange-cta-hover) !important; }
@media (max-width: 700px) {
  html.rd .progetti-link-section { grid-template-columns: 1fr; padding: 1.5rem !important; }
  html.rd .progetti-link-section .progetti-link-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .75rem; }
}

/* Icone quadrate (es. pilastri di Sostenibilità) */
html.rd .value-icon { width: 56px !important; height: 56px !important; margin: 0 auto 1.25rem !important; display: grid !important; place-items: center; border-radius: var(--r-md) !important; }

/* ==========================================================================
   MOBILE — schede con icona: una colonna, icona a sinistra (come i servizi in home)
   ========================================================================== */
@media (max-width: 600px) {
  html.rd :is(.prm-benefits-grid, .values-grid, .vantaggi-grid, .energia-grid, .pc-r290-grid, .pi-benefits-grid, .vantaggi-list) { grid-template-columns: 1fr !important; gap: .75rem !important; }
  html.rd main [style*="grid-template-columns: repeat(3"], html.rd main [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  html.rd :is(.prm-benefit-card, .value-card, .vantaggio-card, .vantaggio-item, .energia-card, .pc-r290-feat, .pi-benefit-card):has(> [class*="-icon"]) {
    display: grid !important; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start;
    padding: 1.1rem 1.15rem !important; text-align: left !important;
  }
  html.rd :is(.prm-benefit-card, .value-card, .vantaggio-card, .vantaggio-item, .energia-card, .pc-r290-feat, .pi-benefit-card) > [class*="-icon"] {
    grid-row: span 3; width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 12px !important;
  }
  html.rd :is(.prm-benefit-card, .value-card, .vantaggio-card, .vantaggio-item, .energia-card, .pc-r290-feat, .pi-benefit-card) > [class*="-icon"] .ph { font-size: 1.3rem !important; }
  html.rd :is(.prm-benefit-card, .value-card, .vantaggio-card, .vantaggio-item, .energia-card, .pc-r290-feat, .pi-benefit-card):has(> [class*="-icon"]) > h3 { margin: .1rem 0 .3rem !important; font-size: 1.125rem !important; text-align: left !important; }
  html.rd :is(.prm-benefit-card, .value-card, .vantaggio-card, .vantaggio-item, .energia-card, .pc-r290-feat, .pi-benefit-card):has(> [class*="-icon"]) > p { margin: 0 !important; font-size: .9375rem !important; line-height: 1.5 !important; text-align: left !important; }
  html.rd :is(.vantaggio-card, .energia-card) > :is(.vantaggio-link, [class*="link"]) { grid-column: 2; margin-top: .5rem !important; }
}
@media (max-width: 600px) {
  /* Incentivi: i 4 numeri in apertura su una griglia 2×2 invece di 4 riquadri impilati */
  html.rd .inc-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: .625rem !important; }
  html.rd .inc-stat { padding: .9rem .75rem !important; }
  /* Aggiornamenti: l'icona decorativa dell'articolo in evidenza occupa solo spazio */
  html.rd .agg-featured-visual, html.rd .agg-featured-icon { display: none !important; }
}
/* Indirizzi email lunghi: vanno a capo invece di uscire dalla scheda */
html.rd :is(.info-card, .contact-info, .footer-contact-list, .rd-mobile-foot) a[href^="mailto"] { overflow-wrap: anywhere; }
/* Energia 360: riquadro finale blu con testo leggibile; icone quadrate */
html.rd .cta-banner { background: var(--navy) !important; background-image: none !important; color: rgba(255,255,255,.78); }
html.rd .cta-banner::before, html.rd .cta-banner::after { display: none !important; }
html.rd .cta-banner h2 { color: #fff !important; }
html.rd .cta-banner p { color: rgba(255,255,255,.78) !important; }
html.rd .cta-banner :is(.btn, a[class*="btn"]) { background: var(--orange-cta) !important; color: #fff !important; border-color: var(--orange-cta) !important; }
html.rd :is(.energia-icon, .value-icon, .vantaggio-icon, .prm-benefit-icon) { width: 56px !important; height: 56px !important; flex: none; display: grid !important; place-items: center; border-radius: var(--r-md) !important; }
@media (max-width: 600px) {
  /* Numeri grandi nelle griglie 2×2: devono stare nella scheda (es. "20000" in Sostenibilità) */
  html.rd :is(.prm-num-big, .pi-number-big, .cs-stat-num, .stat-value, .inc-stat-num) { font-size: clamp(1.5rem, 1rem + 3.2vw, 1.875rem) !important; letter-spacing: -0.02em !important; overflow-wrap: anywhere; }
  html.rd :is(.prm-numbers-grid, .pi-numbers-grid) > * { padding: 1rem .75rem !important; min-width: 0; }
}
