/* ============================================================
   RIORGANIZZAZIONE DELLE PAGINE (proposte di STRATEGIA-PAGINE.md)
   Caricato dopo redesign.css. Togliendo questo file e strategia.js
   le pagine tornano allo stile della fase precedente.
   ============================================================ */
:root { --rd-hh: 72px; }

/* ---------- Schede con foto: stesso schema della home ---------- */
html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) {
  padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column;
  border-radius: var(--r-lg, 22px) !important; text-decoration: none;
}
html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) :is(.vantaggio-icon, .energia-icon) { display: none !important; }
html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) > :not(.rd-card-media) { margin-left: 1.75rem !important; margin-right: 1.75rem !important; }
html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) > :last-child { margin-bottom: 1.75rem !important; }
html.rd :is(.vantaggio-card, .energia-card) .rd-card-media { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 1.5rem !important; }
html.rd :is(.vantaggio-card, .energia-card) .rd-card-media img { transition: scale 700ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.rd :is(.vantaggio-card, .energia-card):hover .rd-card-media img { scale: 1.035; }
}
/* Energia 360: le 4 "porte" della sezione, grandi, 2 × 2 */
html.rd .energia-grid.rd-doors { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem !important; max-width: 1100px; margin-inline: auto; }
html.rd .rd-doors .rd-card-media { aspect-ratio: 16 / 9; }

/* ---------- "Soluzioni per ogni esigenza": schede con foto al posto delle pillole ---------- */
html.rd .target-links.rd-tl-cards {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem !important;
  max-width: 1100px; margin: 0 auto !important;
}
html.rd .rd-tl-cards .target-link {
  position: relative; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem;
  padding: 0 1.25rem 1.1rem !important; border-radius: var(--r-md, 14px) !important; overflow: hidden;
  background: #fff !important; border: 1px solid var(--line) !important; color: var(--navy) !important;
  font-weight: 600 !important; font-size: 1.0625rem !important; text-align: left !important; box-shadow: none !important;
}
html.rd .rd-tl-cards .target-link::after { content: '→'; color: var(--orange); transition: translate 250ms cubic-bezier(.2,.8,.2,1); }
html.rd .rd-tl-cards .target-link:hover::after { translate: 4px 0; }
html.rd .rd-tl-cards .rd-tl-media { grid-column: 1 / -1; margin: 0 -1.25rem .35rem; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
html.rd .rd-tl-cards .rd-tl-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 700ms cubic-bezier(.2,.8,.2,1); }
html.rd .rd-tl-cards .target-link i { color: var(--orange) !important; font-size: 1.25rem !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.rd .rd-tl-cards .target-link:hover .rd-tl-media img { scale: 1.035; }
}
html:not(.rd) .rd-tl-media { display: none; }

/* ---------- Fotovoltaico: "Hai già un impianto?" ---------- */
html.rd .rd-gia { padding: 4.5rem 0 1rem; background: var(--paper-2); }
html.rd .rd-gia-head { max-width: 1200px; margin: 0 auto 1rem; padding: 0 2rem; }
html.rd .rd-gia-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem) !important; color: var(--ink) !important; margin: 0 !important; }
html.rd .rd-gia-head h2::before {
  content: 'Repowering · Lavaggio pannelli'; display: block; margin-bottom: .6rem;
  font: 600 .75rem/1 var(--font-sans, 'Instrument Sans', sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text);
}
html.rd .rd-gia > section.rd-gia-s.rd-gia-s, html.rd .rd-gia > section:nth-of-type(n) { box-shadow: none !important; clip-path: none !important; background: transparent !important; padding-top: 1.5rem !important; padding-bottom: 2.5rem !important; }

/* ---------- Condomini: Comunità energetiche + progetti affiancati ---------- */
@media (min-width: 900px) {
  html.rd .rd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; align-items: stretch; }
  html.rd .rd-pair > section:nth-of-type(n) { box-shadow: none !important; clip-path: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; display: flex; }
  html.rd .rd-pair > section:first-child:nth-of-type(n) {
    flex-direction: column; justify-content: center; align-items: flex-start; text-align: left !important;
    background: var(--orange-tint) !important; border-radius: var(--r-lg, 22px) !important; padding: 2.75rem !important;
  }
  html.rd .rd-pair > section:first-child > * { margin-left: 0 !important; max-width: 46ch !important; }
  html.rd .rd-pair > section:first-child h2 { margin-bottom: .75rem !important; }
  html.rd .rd-pair > section:last-child > .progetti-link-section { flex: 1; margin: 0 !important; max-width: none !important; }
  html.rd .rd-pair section .progetti-link-section.progetti-link-section { grid-template-columns: 1fr !important; align-content: center; justify-items: start; }
}

/* ---------- Pulsanti doppi nelle fasce finali ---------- */
html.rd .rd-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
html.rd .rd-cta-actions .download-section { margin: 0 !important; padding: 0 !important; }
html.rd section a.btn.rd-btn-secondary.rd-btn-secondary {
  background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important;
  display: inline-flex !important; align-items: center; gap: .5rem;
}
html.rd section a.btn.rd-btn-secondary.rd-btn-secondary:hover { background: rgba(255,255,255,.1) !important; border-color: #fff !important; }

/* ---------- Materiali da scaricare: riquadro "documento" ---------- */
html.rd .btn-download {
  display: inline-flex !important; align-items: center; gap: .85rem; padding: .7rem 1.1rem .7rem .7rem !important;
  border-radius: var(--r-md, 14px) !important; background: #fff !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; font-weight: 600 !important; text-align: left;
}
html.rd .btn-download i {
  width: 40px; height: 40px; border-radius: 10px; display: grid !important; place-items: center; flex: none;
  background: var(--orange-tint) !important; color: var(--orange-text) !important; font-size: 1.25rem !important;
}
html.rd .btn-download::after {
  content: 'PDF'; margin-left: .35rem; padding: .25rem .45rem; border-radius: 6px;
  font-size: .6875rem; letter-spacing: .08em; font-weight: 700; background: var(--navy-tint); color: var(--navy);
}
html.rd .btn-download:hover { border-color: var(--navy) !important; }
html.rd .download-section { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Pagine incentivo: modello unico ---------- */
/* Numeri chiave subito sotto l'intestazione, sovrapposti al blu */
html.rd section.rd-keyfig.rd-keyfig { box-shadow: none !important; clip-path: none !important; background: transparent !important; padding-top: 0 !important; padding-bottom: 1rem !important; margin-top: -3.5rem !important; position: relative; z-index: 2; }
html.rd section.rd-keyfig.rd-keyfig :is(.prm-num-card, .pi-number-card) { background: #fff !important; box-shadow: 0 18px 40px -22px rgba(15,27,54,.35) !important; }
/* Fascia finale: blu con invito e guida */
html.rd section.rd-final-cta.rd-final-cta {
  box-shadow: none !important; clip-path: none !important;
  max-width: 1100px; margin: 2rem auto 5rem !important; padding: 3.5rem 2rem !important; border-radius: var(--r-lg, 22px);
  background: var(--navy) !important; color: #fff; text-align: center !important;
}
html.rd section.rd-final-cta.rd-final-cta h2 { color: #fff !important; }
html.rd section.rd-final-cta.rd-final-cta p { color: rgba(255,255,255,.78) !important; }
html.rd main section.rd-final-cta.rd-final-cta a.btn.btn.btn { background: var(--orange-cta) !important; color: #fff !important; border-color: transparent !important; }
html.rd main section.rd-final-cta.rd-final-cta a.btn.btn.btn:hover { background: var(--orange-cta-hover) !important; }
html.rd section.rd-final-cta.rd-final-cta .btn-download { border-color: transparent !important; }
@media (max-width: 900px) { html.rd section.rd-final-cta.rd-final-cta { margin: 1.5rem 1rem 4rem !important; padding: 2.5rem 1.25rem !important; } }

/* ---------- Servizi: fascia "Come lavoriamo" ---------- */
/* stesso aspetto della home (fascia blu) */

/* ---------- Simulatore: nota ---------- */
html.rd .rd-note {
  max-width: 720px; margin: -.5rem auto 1.75rem !important; display: flex; gap: .6rem; align-items: flex-start; justify-content: center;
  font-size: .9375rem !important; color: var(--muted) !important; text-align: left;
}
html.rd .rd-note i { color: var(--navy); font-size: 1.15rem; margin-top: .15rem; }
html:not(.rd) .rd-note { display: none; }

/* ---------- Incentivi: indice che resta visibile ---------- */
html.rd .rd-toc {
  position: sticky; top: var(--rd-hh); z-index: 40; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
html.rd .rd-toc-inner { max-width: 1200px; margin: 0 auto; padding: .6rem 2rem; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; justify-content: center; }
html.rd .rd-toc-inner::-webkit-scrollbar { display: none; }
html.rd .rd-toc a {
  flex: none; padding: .5rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: background-color 200ms, color 200ms;
}
html.rd .rd-toc a:hover { color: var(--navy); background: var(--navy-tint); }
html.rd .rd-toc a[aria-current="true"] { background: var(--navy); color: #fff; }
html.rd .rd-toc a:active { scale: .97; }
html:not(.rd) .rd-toc { display: none; }
html.rd :is(#quale-incentivo, #dettaglio, #calcola, #scadenze, #altri-aiuti, #domande, #hai-gia-un-impianto) { scroll-margin-top: calc(var(--rd-hh) + 64px); }
@media (max-width: 900px) { html.rd .rd-toc-inner { justify-content: flex-start; padding: .5rem 1rem; } }
@media (prefers-reduced-transparency: reduce) { html.rd .rd-toc { background: #fff; backdrop-filter: none; } }

/* ---------- Aggiornamenti: 6 notizie + "Mostra altre" ---------- */
html.rd .rd-agg-collapsed .agg-news-item.rd-extra { display: none !important; }
html.rd .rd-more-wrap { text-align: center; margin-top: 2rem; }
.rd-more-btn {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line-strong, #CBD2DE); color: var(--navy, #1F3A7A); font-weight: 600; font-size: .9375rem;
  transition: background-color 200ms, border-color 200ms, scale 100ms;
}
.rd-more-btn:hover { border-color: var(--navy, #1F3A7A); background: var(--navy-tint, #EEF2F9); }
.rd-more-btn:active { scale: .97; }
.rd-more-btn:focus-visible { outline: 2px solid var(--navy, #1F3A7A); outline-offset: 3px; }
@media (max-width: 900px) {
  html.rd .agg-filter {
    position: sticky; top: var(--rd-hh); z-index: 30; flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important;
    margin: 0 -1rem 2rem !important; padding: .6rem 1rem !important; background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); scrollbar-width: none; border-bottom: 1px solid var(--line);
  }
  html.rd .agg-filter::-webkit-scrollbar { display: none; }
  html.rd .agg-filter-chip { flex: none; }
}
/* FAQ: le categorie restano sotto l'header, alla quota giusta */
html.rd .faq-tabs { top: var(--rd-hh) !important; }

/* ---------- Chi siamo: biografie con "Leggi di più" su telefono ---------- */
@media (max-width: 700px) {
  html.rd .team-bio.rd-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
}
html.rd .rd-bio-more { margin-top: .5rem; padding: .35rem 0; border: 0; font-size: .875rem; color: var(--orange-text, #C94E14); }
html.rd .rd-bio-more:hover { background: transparent; text-decoration: underline; }
@media (min-width: 701px) { .rd-bio-more { display: none !important; } }

/* ---------- Consulenza: modulo in due passaggi su telefono ---------- */
.rd-step-hidden { display: none !important; }
.rd-steps { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; font-size: .8125rem; font-weight: 600; color: var(--muted, #4C566B); }
.rd-steps-track { flex: 1; height: 4px; border-radius: 4px; background: var(--line, #E4E8EF); overflow: hidden; }
.rd-steps-track i { display: block; height: 100%; width: 50%; background: var(--orange, #E8621B); border-radius: 4px; transition: width 350ms cubic-bezier(.2,.8,.2,1); }
.rd-step-nav { display: flex; gap: .75rem; margin-top: 1rem; }
.rd-step-nav .rd-more-btn { justify-content: center; }
.rd-step-next { width: 100%; justify-content: center; background: var(--navy, #1F3A7A); color: #fff !important; border-color: var(--navy, #1F3A7A); padding: 1rem; box-sizing: border-box; }
.rd-step-next:hover { background: var(--navy-700, #18306A); }

/* ---------- Telefono ---------- */
@media (max-width: 900px) {
  html.rd .energia-grid.rd-doors { grid-template-columns: 1fr !important; }
  html.rd .target-links.rd-tl-cards { grid-template-columns: 1fr; gap: .75rem !important; }
  html.rd .rd-tl-cards .target-link { grid-template-columns: 88px auto 1fr auto; padding: .6rem 1rem .6rem .6rem !important; }
  html.rd .rd-tl-cards .rd-tl-media { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 1; border-radius: 10px; }
  html.rd .rd-gia { padding-top: 3rem; }
  html.rd .rd-gia-head { padding: 0 1.25rem; }
  html.rd .rd-keyfig { margin-top: -2.5rem !important; }
}
@media (max-width: 600px) {
  html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) {
    display: grid !important; grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr; column-gap: 1rem; padding: .75rem !important; align-items: start;
  }
  html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) .rd-card-media { grid-row: 1 / -1; aspect-ratio: 1; margin: 0 !important; border-radius: 12px; }
  html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) > :not(.rd-card-media) { margin: 0 !important; }
  html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) > h3 { font-size: 1.1875rem !important; margin-top: .2rem !important; }
  html.rd :is(.vantaggio-card, .energia-card):has(> .rd-card-media) > p { font-size: .875rem !important; line-height: 1.45 !important; margin-top: .25rem !important; }
  html.rd .rd-cta-actions { flex-direction: column; align-items: stretch; }
  html.rd .rd-cta-actions > * { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html.rd :is(.rd-tl-media, .rd-card-media) img { transition: none !important; }
  .rd-steps-track i { transition: none; }
}
.form-grid > :is(.rd-steps, .rd-step-nav, .rd-step-back) { grid-column: 1 / -1; }
.rd-step-back { justify-self: start; padding: .5rem 0; border: 0; font-size: .875rem; }

/* ---------- Stili di base delle fasce copiate da altre pagine (metodo della home, numeri di "Perché installare") ---------- */
.processo-section{padding:6rem 2rem;max-width:1280px;margin:0 auto;position:relative}
.processo-section .section-title{margin-bottom:4rem}
.processo-section .section-title h2{font-family:'Fraunces','Fraunces Fallback',serif;font-variation-settings:"opsz" 144;font-weight:500}
.processo-eyebrow{display:inline-block;font-family:'Montserrat',sans-serif;font-size:0.78rem;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;color:var(--verde-scuro);margin-bottom:0.8rem}
.processo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0;position:relative;margin-top:2rem}
.processo-grid::before{content:'';position:absolute;top:38px;left:10%;right:10%;height:2px;background:linear-gradient(90deg,transparent 0%,var(--verde-chiaro) 10%,var(--verde-scuro) 50%,var(--verde-chiaro) 90%,transparent 100%);z-index:0}
.processo-step{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 0.8rem}
.processo-step-num{width:76px;height:76px;border-radius:50%;background:white;border:2px solid var(--verde-chiaro);display:flex;align-items:center;justify-content:center;font-family:'Fraunces','Fraunces Fallback',serif;font-variation-settings:"opsz" 144;font-size:1.8rem;font-weight:600;color:var(--verde-scuro);margin-bottom:1.5rem;position:relative;z-index:1;transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);box-shadow:0 8px 24px -10px rgba(45,90,61,0.2)}
.processo-step:hover .processo-step-num{background:var(--verde-scuro);color:white;border-color:var(--verde-scuro);transform:translateY(-4px) scale(1.05);box-shadow:0 18px 35px -10px rgba(45,90,61,0.45)}
.processo-step-num i{font-size:1.5rem;display:none}
.processo-step h3{font-family:'Montserrat',sans-serif;font-size:1.05rem;font-weight:600;color:var(--testo-scuro);margin-bottom:0.5rem;letter-spacing:-0.2px}
.processo-step p{font-size:0.88rem;color:var(--testo-chiaro);line-height:1.5}
@media (max-width:900px){.processo-section{padding:4rem 1.2rem}.processo-grid{grid-template-columns:1fr;gap:0}.processo-grid::before{top:0;bottom:0;left:38px;right:auto;width:2px;height:auto;background:linear-gradient(180deg,transparent 0%,var(--verde-chiaro) 5%,var(--verde-scuro) 50%,var(--verde-chiaro) 95%,transparent 100%)}.processo-step{flex-direction:row;align-items:flex-start;text-align:left;gap:1.2rem;padding:1rem 0}.processo-step-num{margin-bottom:0;flex-shrink:0;width:76px;height:76px}.processo-step-content{padding-top:0.8rem}}
.pi-numbers-section{padding:5rem 2rem;background:linear-gradient(135deg,var(--sabbia) 0%,#ffffff 50%,var(--verde-tenue) 100%);position:relative;overflow:hidden;isolation:isolate}
.pi-numbers-section::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 30%,rgba(45,90,61,0.08) 0%,transparent 50%),radial-gradient(circle at 20% 80%,rgba(184,210,224,0.18) 0%,transparent 50%);pointer-events:none;z-index:-1}
.pi-numbers-head{text-align:center;max-width:700px;margin:0 auto 3.5rem}
.pi-numbers-head h2{font-family:'Fraunces','Fraunces Fallback',serif;font-variation-settings:"opsz" 144;font-size:2.4rem;font-weight:500;color:var(--testo-scuro);letter-spacing:-1px;line-height:1.15;margin-bottom:0.7rem}
.pi-numbers-head h2 strong{color:var(--verde-scuro);font-weight:700}
.pi-numbers-head p{color:var(--testo-chiaro);font-size:1.05rem}
.pi-numbers-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.pi-number-card{background:white;border-radius:24px;padding:2rem 1.5rem;text-align:center;border:1px solid rgba(184,217,198,0.5);position:relative;overflow:hidden;transition:all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);isolation:isolate}
.pi-number-card::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,transparent 60%,rgba(45,90,61,0.04) 100%);pointer-events:none;z-index:-1}
.pi-number-card:hover{transform:translateY(-6px);border-color:var(--verde-chiaro);box-shadow:0 28px 60px -22px rgba(45,90,61,0.25)}
.pi-number-icon{width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,var(--verde-tenue),#d4e8dd);display:flex;align-items:center;justify-content:center;color:var(--verde-scuro);font-size:1.4rem;margin:0 auto 1.2rem}
.pi-number-prefix{font-family:'Montserrat',sans-serif;font-size:0.78rem;font-weight:500;color:var(--testo-chiaro);text-transform:uppercase;letter-spacing:1.5px;display:block;margin-bottom:0.3rem}
.pi-number-big{font-family:'Fraunces','Fraunces Fallback',serif;font-variation-settings:"opsz" 144;font-size:4rem;font-weight:700;color:var(--verde-scuro);line-height:1;letter-spacing:-3px;margin-bottom:0.4rem;display:block}
.pi-number-big small{font-size:2rem;font-weight:600;opacity:0.85;letter-spacing:0;margin-left:0.1rem}
.pi-number-label{font-family:'Montserrat',sans-serif;font-size:0.82rem;color:var(--testo-chiaro);text-transform:uppercase;letter-spacing:1.3px;font-weight:500;line-height:1.3}
@media (max-width:900px){.pi-numbers-grid{grid-template-columns:repeat(2,1fr);gap:1rem}.pi-numbers-head h2{font-size:1.8rem}.pi-number-big{font-size:3rem;letter-spacing:-2px}.pi-number-big small{font-size:1.5rem}}
@media (max-width:480px){.pi-numbers-section{padding:3rem 1rem}.pi-number-card{padding:1.5rem 1rem}}

/* ---------- Correzioni di leggibilità trovate in questo giro ---------- */
html.rd section.inc-crosslink h2, html.rd section.inc-crosslink h2 * { color: #fff !important; }
html.rd section.inc-crosslink h2 em { color: var(--orange-on-dark) !important; }
html.rd main .cta-banner a.btn.btn.btn.btn { background: var(--orange-cta) !important; color: #fff !important; border-color: transparent !important; padding: .9rem 1.6rem !important; border-radius: 999px !important; }
html.rd main .cta-banner a.btn.btn.btn.btn:hover { background: var(--orange-cta-hover) !important; }

/* ---------- Energia 360: riquadro grafico per "Aggiornamenti" (in attesa di una foto dedicata) ---------- */
html.rd .rd-media-icon {
  display: grid !important; place-items: center; position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(232,98,27,.28), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%) !important;
}
html.rd .rd-media-icon::before {
  content: ''; position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 28px);
}
html.rd .rd-media-icon i { position: relative; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); color: var(--orange-on-dark); }

/* ---------- Chi siamo: schede del team ---------- */
html.rd .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.75rem !important;
  max-width: 1100px; margin-inline: auto !important; align-items: stretch;
}
html.rd .team-card {
  padding: 0 !important; overflow: hidden; text-align: left !important; display: flex; flex-direction: column;
  border-radius: var(--r-lg, 22px) !important; border: 1px solid var(--line) !important; background: #fff !important;
  box-shadow: 0 1px 2px rgba(15,27,54,.04), 0 18px 40px -30px rgba(15,27,54,.35) !important;
}
html.rd .team-card .team-image {
  width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; margin: 0 !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; overflow: hidden; background: var(--paper-2);
}
html.rd .team-card .team-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
html.rd .team-card .team-image img[src*="gaia"] { object-position: 78% 28%; }
html.rd .team-card .team-image img[src*="massimo"] { object-position: 50% 6%; }
html.rd .team-card > h3 { margin: 1.75rem 2rem 0 !important; font-size: 1.625rem !important; text-align: left !important; }
html.rd .team-card > .team-role {
  margin: .4rem 2rem 0 !important; text-align: left !important;
  font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .12em; text-transform: uppercase;
}
html.rd .team-card > .team-bio {
  margin: 1.1rem 2rem 2rem !important; text-align: left !important; font-size: 1rem !important; line-height: 1.65 !important;
  color: var(--muted) !important; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
html.rd .team-card > .rd-bio-more { margin: -1.25rem 2rem 1.75rem !important; align-self: flex-start; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.rd .team-card .team-image img { transition: scale 700ms cubic-bezier(.2,.8,.2,1); }
  html.rd .team-card:hover .team-image img { scale: 1.03; }
}
@media (max-width: 760px) {
  html.rd .team-grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  html.rd .team-card > h3 { margin: 1.25rem 1.25rem 0 !important; font-size: 1.375rem !important; }
  html.rd .team-card > .team-role { margin: .35rem 1.25rem 0 !important; }
  html.rd .team-card > .team-bio { margin: 1rem 1.25rem 1.5rem !important; font-size: .9375rem !important; }
  html.rd .team-card > .rd-bio-more { margin: -1rem 1.25rem 1.25rem !important; }
}

/* ---------- Condomini: foto dell'intro in proporzione col testo ---------- */
html.rd .two-column img[src="IMG_n_condominio.webp"] { aspect-ratio: 4 / 3.4; height: auto !important; width: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 900px) { html.rd .two-column img[src="IMG_n_condominio.webp"] { aspect-ratio: 4 / 3; } }
html.rd main .team-grid .team-card.team-card { padding: 0 !important; }
html.rd main .team-grid .team-card .team-image.team-image { margin: 0 !important; width: 100% !important; border-radius: 0 !important; }

/* ======================================================================
   NUOVO DESIGN DELLE SEZIONI A SCHEDE (proposte A1 · A2 · A3 · B · C · D)
   Anteprima: redesign/proposte-sezioni.html
   ====================================================================== */
/* base comune: via le "scatole" */
html.rd main .rd-grid { counter-reset: rd; }
html.rd main .rd-grid.rd-grid > * {
  counter-increment: rd; background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0 !important; transform: none !important; min-height: 0 !important; text-align: left !important;
  position: relative; overflow: visible !important;
}
html.rd main .rd-grid.rd-grid > *::after { content: none !important; }
html.rd main .rd-grid > * h3 { text-align: left !important; }

/* ---------- A1 · elenco editoriale con titolo fermo ---------- */
@media (min-width: 901px) {
  html.rd main section.rd-sec-a1 { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  html.rd main section.rd-sec-a1 > :not(.rd-grid) {
    grid-column: 1; position: sticky; top: calc(var(--rd-hh) + 40px); text-align: left !important;
    margin: 0 !important; max-width: 30rem !important;
  }
  html.rd main section.rd-sec-a1 > :not(.rd-grid) :is(h2, p, span) { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
  html.rd main section.rd-sec-a1 > .rd-grid { grid-column: 2; grid-row: 1 / span 4; }
}
html.rd main .rd-grid.rd-a1 { display: block !important; border-top: 1px solid var(--line-strong); max-width: none !important; margin: 0 !important; }
html.rd main .rd-grid.rd-a1 > * {
  display: grid !important; grid-template-columns: 88px 1fr; column-gap: 24px; padding: 30px 0 !important; margin: 0 !important;
  border-bottom: 1px solid var(--line-strong) !important;
}
html.rd main .rd-grid.rd-a1 > *::before {
  content: counter(rd, decimal-leading-zero) !important; grid-row: 1 / span 4; display: block !important;
  font: 500 44px/1 var(--font-serif, 'Fraunces', Georgia, serif); color: var(--orange); letter-spacing: -.03em; font-variant-numeric: lining-nums;
  position: static !important; width: auto !important; height: auto !important; background: none !important; opacity: 1 !important; transform: none !important;
}
html.rd main .rd-grid.rd-a1 > * > :is([class*="-icon"], i, .ph, .ph-fill) { display: none !important; }
html.rd main .rd-grid.rd-a1 > * h3 { grid-column: 2; margin: 0 !important; font-size: 1.5rem !important; line-height: 1.2 !important; color: var(--navy) !important; }
html.rd main .rd-grid.rd-a1 > * h3 i { display: none !important; }
html.rd main .rd-grid.rd-a1 > * p { grid-column: 2; margin: .5rem 0 0 !important; color: var(--muted) !important; max-width: 52ch; font-size: 1rem !important; }

/* ---------- A2 · tre colonne con la linea in alto ---------- */
html.rd main .rd-grid.rd-a2 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(28px, 3vw, 48px) !important; }
html.rd main .rd-grid.rd-a2 > * { padding: 24px 0 0 !important; border-top: 2px solid var(--ink) !important; display: block !important; }
html.rd main .rd-grid.rd-a2 > *::before {
  content: counter(rd, decimal-leading-zero) !important; display: block !important; font: 700 .8125rem/1 var(--font-sans, 'Instrument Sans', sans-serif);
  letter-spacing: .12em; color: var(--orange-text); position: static !important; width: auto !important; height: auto !important; background: none !important; opacity: 1 !important;
}
html.rd main .rd-grid.rd-a2 > * > [class*="-icon"] {
  position: absolute !important; top: 18px; right: 0; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; display: block !important;
}
html.rd main .rd-grid.rd-a2 > * > [class*="-icon"] i { font-size: 1.6rem !important; color: var(--navy) !important; opacity: .85; }
html.rd main .rd-grid.rd-a2 > * h3 { margin: 1.5rem 0 0 !important; font-size: 1.625rem !important; line-height: 1.15 !important; color: var(--ink) !important; }
html.rd main .rd-grid.rd-a2 > * p { margin: .6rem 0 0 !important; color: var(--muted) !important; font-size: 1rem !important; }
html.rd main .rd-grid.rd-a2 > * > :is(.pi-benefit-list, ul) { margin-top: .8rem !important; }

/* ---------- A3 · griglia a linee, primo in evidenza ---------- */
html.rd main .rd-grid.rd-a3 {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important;
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
}
html.rd main .rd-grid.rd-a3.agg-feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
html.rd main .rd-grid.rd-a3 > * {
  padding: 32px 30px 36px !important; margin: 0 !important; display: flex !important; flex-direction: column; align-items: flex-start;
  border-right: 1px solid var(--line-strong) !important; border-bottom: 1px solid var(--line-strong) !important;
  transition: background-color 350ms cubic-bezier(.2,.8,.2,1) !important;
}
html.rd main .rd-grid.rd-a3 > *:hover { background: var(--paper-2) !important; }
html.rd main .rd-grid.rd-a3 > *::before {
  content: counter(rd, decimal-leading-zero) !important; display: block !important; font: 600 .9375rem/1 var(--font-serif, 'Fraunces', serif); color: var(--orange);
  position: static !important; width: auto !important; height: auto !important; background: none !important; opacity: 1 !important; margin-bottom: 2rem;
}
html.rd main .rd-grid.rd-a3:is(.inc-altri-grid, .agg-feed-grid) > *::before { content: none !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid, .pc-r290-grid) > * > [class*="-icon"] { display: none !important; }
html.rd main .rd-grid.rd-a3 > * h3 { font-size: 1.375rem !important; line-height: 1.2 !important; color: var(--navy) !important; margin: 0 !important; }
html.rd main .rd-grid.rd-a3 > * p { color: var(--muted) !important; font-size: .9375rem !important; margin: .5rem 0 0 !important; }
/* primo riquadro blu */
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :first-child { background: var(--navy) !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :first-child h3 { color: #fff !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :first-child p { color: rgba(255,255,255,.75) !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :first-child::before { color: var(--orange-on-dark); }
/* R290: il riquadro è bianco, la griglia sta dentro */
html.rd main .rd-grid.rd-a3.pc-r290-grid { margin-top: 2.5rem !important; }
html.rd main .rd-grid.rd-a3.pc-r290-grid > * > .pc-r290-feat-content { display: block; }

/* ---------- B · soluzioni con foto ---------- */
html.rd main .rd-grid.rd-b { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px !important; max-width: 1200px; margin-inline: auto; }
html.rd main .rd-grid.rd-b:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html.rd main .rd-grid.rd-b > .service-card {
  display: grid !important; grid-template-columns: 44% 1fr; grid-template-rows: auto auto 1fr; column-gap: 0;
  padding: 0 !important; overflow: hidden !important; min-height: 260px !important; text-decoration: none;
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg, 22px) !important;
  transition: border-color 300ms, box-shadow 450ms cubic-bezier(.2,.8,.2,1) !important;
}
html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; }
html.rd main .rd-grid.rd-b > .service-card:hover { border-color: var(--line-strong) !important; box-shadow: 0 24px 48px -32px rgba(15,27,54,.45) !important; }
html.rd main .rd-grid.rd-b > .service-card:active { scale: .99; }
html.rd main .rd-grid.rd-b .rd-b-media { grid-column: 1; grid-row: 1 / -1; overflow: hidden; display: block; min-height: 100%; }
html.rd main .rd-grid.rd-b:has(> :nth-child(3)) .rd-b-media { grid-row: 1; aspect-ratio: 16 / 10; }
html.rd main .rd-grid.rd-b .rd-b-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 800ms cubic-bezier(.2,.8,.2,1); }
html.rd main .rd-grid.rd-b > .service-card:hover .rd-b-media img { scale: 1.04; }
html.rd main .rd-grid.rd-b > .service-card > :is(.service-icon, h3 i) { display: none !important; }
html.rd main .rd-grid.rd-b > .service-card h3 i { display: none !important; }
html.rd main .rd-grid.rd-b > .service-card > h3 { grid-column: 2; margin: 2rem 2rem 0 !important; font-size: 1.75rem !important; line-height: 1.1 !important; color: var(--navy) !important; }
html.rd main .rd-grid.rd-b > .service-card > p { grid-column: 2; margin: .75rem 2rem 0 !important; color: var(--muted) !important; font-size: 1rem !important; }
html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card > :is(h3, p, .rd-b-go) { grid-column: 1; }
html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card > h3 { margin-top: 1.5rem !important; font-size: 1.5rem !important; }
html.rd main .rd-grid.rd-b > .service-card > p strong { color: var(--ink); }
html.rd main .rd-grid.rd-b .rd-b-go {
  grid-column: 2; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 1.25rem 2rem 1.75rem; font-weight: 600; font-size: .9375rem; color: var(--navy);
}
html.rd main .rd-grid.rd-b .rd-b-go .arr {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy);
  transition: background-color 300ms, color 300ms, translate 300ms cubic-bezier(.2,.8,.2,1);
}
html.rd main .rd-grid.rd-b > .service-card:hover .rd-b-go .arr { background: var(--orange); color: #fff; translate: 4px 0; }
html.rd main .rd-grid.rd-b > .service-card > .service-link { display: none !important; }
html:not(.rd) :is(.rd-b-media, .rd-b-go) { display: none; }

/* ---------- C · elenco con spunte ---------- */
html.rd main .rd-grid.rd-c { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 56px !important; row-gap: 0 !important; max-width: 1040px; margin-inline: auto !important; }
html.rd main .rd-grid.rd-c > * {
  display: grid !important; grid-template-columns: 30px 1fr; column-gap: 16px; padding: 24px 0 !important; margin: 0 !important;
  border-top: 1px solid var(--line-strong) !important;
}
html.rd main .rd-grid.rd-c > *::before {
  content: '' !important; display: block !important; grid-row: 1 / span 4; width: 28px !important; height: 28px !important; border-radius: 50%; margin-top: 2px;
  position: static !important; opacity: 1 !important; transform: none !important;
  background: var(--orange-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C94E14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 15px no-repeat !important;
}
html.rd main .rd-grid.rd-c > * > [class*="-icon"], html.rd main .rd-grid.rd-c > * h3 i { display: none !important; }
html.rd main .rd-grid.rd-c > * h3 { grid-column: 2; margin: 0 !important; font-family: var(--font-sans, 'Instrument Sans', sans-serif) !important; font-size: 1.125rem !important; font-weight: 600 !important; color: var(--ink) !important; letter-spacing: 0 !important; }
html.rd main .rd-grid.rd-c > * p { grid-column: 2; margin: .3rem 0 0 !important; color: var(--muted) !important; font-size: 1rem !important; }

/* ---------- D · partner in una fascia ---------- */
html.rd main .rd-grid.rd-d { display: block !important; border-top: 1px solid var(--line-strong); max-width: 1200px; margin-inline: auto !important; }
html.rd main .rd-grid.rd-d > .partner-card {
  display: grid !important; grid-template-columns: 180px 170px 1fr auto; grid-template-rows: auto auto; column-gap: 32px; align-items: center;
  padding: 26px 12px !important; margin: 0 !important; border-bottom: 1px solid var(--line-strong) !important;
  transition: background-color 300ms cubic-bezier(.2,.8,.2,1) !important;
}
html.rd main .rd-grid.rd-d > .partner-card:hover { background: var(--paper-2) !important; }
html.rd main .rd-grid.rd-d .partner-logo { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; height: 48px !important; width: auto !important; display: flex !important; align-items: center; justify-content: flex-start !important; background: none !important; padding: 0 !important; }
html.rd main .rd-grid.rd-d .partner-logo img { max-height: 46px !important; max-width: 150px !important; width: auto !important; height: auto !important; object-fit: contain; }
html.rd main .rd-grid.rd-d .partner-badge {
  grid-column: 2; grid-row: 1 / span 2; justify-self: start; margin: 0 !important; padding: 0 !important; background: none !important; color: var(--muted) !important;
  font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .12em; text-transform: uppercase;
}
html.rd main .rd-grid.rd-d .partner-card > h3 { grid-column: 3; grid-row: 1; margin: 0 !important; font-size: 1.375rem !important; color: var(--navy) !important; align-self: end; }
html.rd main .rd-grid.rd-d .partner-card > p { grid-column: 3; grid-row: 2; margin: .2rem 0 0 !important; color: var(--muted) !important; font-size: 1rem !important; align-self: start; max-width: 60ch; }
html.rd main .rd-grid.rd-d .partner-card > :is(.partner-btn, a:last-child) { grid-column: 4; grid-row: 1 / span 2; margin: 0 !important; white-space: nowrap; }
html.rd main .rd-grid.rd-d .partner-card:hover > .partner-btn { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
html.rd main .rd-grid.rd-d .partner-card > :not(.partner-logo):not(.partner-badge):not(h3):not(p):not(.partner-btn) { grid-column: 3 / span 2; }


/* ---------- telefono ---------- */
@media (max-width: 900px) {
  html.rd main .rd-grid.rd-a1 > * { grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px 0 !important; }
  html.rd main .rd-grid.rd-a1 > *::before { font-size: 32px; }
  html.rd main .rd-grid.rd-a1 > * h3 { font-size: 1.25rem !important; }
  html.rd main .rd-grid.rd-a1 > * p { font-size: .9375rem !important; }
  html.rd main section.rd-sec-a1 > .rd-grid { margin-top: 1.5rem !important; }
  html.rd main .rd-grid.rd-a2 { grid-template-columns: 1fr !important; gap: 26px !important; }
  html.rd main .rd-grid.rd-a2 > * h3 { font-size: 1.375rem !important; margin-top: 1rem !important; }
  html.rd main .rd-grid.rd-a3, html.rd main .rd-grid.rd-a3.agg-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.rd main .rd-grid.rd-a3 > * { padding: 20px 16px 22px !important; }
  html.rd main .rd-grid.rd-a3 > *::before { margin-bottom: 1rem; }
  html.rd main .rd-grid.rd-a3 > * h3 { font-size: 1.125rem !important; }
  html.rd main .rd-grid.rd-a3 > * p { font-size: .875rem !important; }
  html.rd main .rd-grid.rd-b, html.rd main .rd-grid.rd-b:has(> :nth-child(3)) { grid-template-columns: 1fr !important; gap: 14px !important; }
  html.rd main .rd-grid.rd-b > .service-card, html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card { grid-template-columns: 116px 1fr; grid-template-rows: auto auto 1fr; min-height: 0 !important; }
  html.rd main .rd-grid.rd-b .rd-b-media, html.rd main .rd-grid.rd-b:has(> :nth-child(3)) .rd-b-media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; }
  html.rd main .rd-grid.rd-b > .service-card > :is(h3, p, .rd-b-go), html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card > :is(h3, p, .rd-b-go) { grid-column: 2; }
  html.rd main .rd-grid.rd-b > .service-card > h3, html.rd main .rd-grid.rd-b:has(> :nth-child(3)) > .service-card > h3 { margin: 1rem 1rem 0 !important; font-size: 1.25rem !important; }
  html.rd main .rd-grid.rd-b > .service-card > p { margin: .35rem 1rem 0 !important; font-size: .875rem !important; line-height: 1.45 !important; }
  html.rd main .rd-grid.rd-b .rd-b-go { margin: .75rem 1rem 1rem; font-size: .875rem; }
  html.rd main .rd-grid.rd-b .rd-b-go .arr { width: 32px; height: 32px; }
  html.rd main .rd-grid.rd-c { grid-template-columns: 1fr !important; }
  html.rd main .rd-grid.rd-c > * { padding: 18px 0 !important; }
  html.rd main .rd-grid.rd-d > .partner-card { grid-template-columns: 92px 1fr; grid-template-rows: auto auto auto auto; column-gap: 16px; row-gap: 4px; padding: 20px 4px !important; }
  html.rd main .rd-grid.rd-d .partner-logo { grid-row: 1 / span 4; align-self: start; height: auto !important; }
  html.rd main .rd-grid.rd-d .partner-logo img { max-width: 88px !important; max-height: 40px !important; }
  html.rd main .rd-grid.rd-d .partner-badge { grid-column: 2; grid-row: 1; }
  html.rd main .rd-grid.rd-d .partner-card > h3 { grid-column: 2; grid-row: 2; font-size: 1.25rem !important; }
  html.rd main .rd-grid.rd-d .partner-card > p { grid-column: 2; grid-row: 3; font-size: .9375rem !important; }
  html.rd main .rd-grid.rd-d .partner-card > :is(.partner-btn, a:last-child) { grid-column: 2; grid-row: 4; justify-self: start; margin-top: .6rem !important; }
}
@media (max-width: 520px) {
  html.rd main .rd-grid.rd-a3, html.rd main .rd-grid.rd-a3.agg-feed-grid { grid-template-columns: 1fr !important; }
  html.rd main .rd-grid.rd-a3 > *::before { margin-bottom: .6rem; }
}

/* Partner: se il contenitore è stretto (es. Pompe di calore) le righe si impilano */
html.rd main .rd-grid.rd-d { container-type: inline-size; }
@container (max-width: 760px) {
  html.rd main .rd-grid.rd-d > .partner-card { grid-template-columns: 110px 1fr; grid-template-rows: auto auto auto auto; column-gap: 20px; row-gap: 4px; padding: 22px 4px !important; }
  html.rd main .rd-grid.rd-d .partner-logo { grid-column: 1; grid-row: 1 / span 4; align-self: start; height: auto !important; }
  html.rd main .rd-grid.rd-d .partner-logo img { max-width: 100px !important; max-height: 42px !important; }
  html.rd main .rd-grid.rd-d .partner-badge { grid-column: 2; grid-row: 1; }
  html.rd main .rd-grid.rd-d .partner-card > h3 { grid-column: 2; grid-row: 2; }
  html.rd main .rd-grid.rd-d .partner-card > p { grid-column: 2; grid-row: 3; }
  html.rd main .rd-grid.rd-d .partner-card > :is(.partner-btn, a:last-child) { grid-column: 2; grid-row: 4; justify-self: start; margin-top: .6rem !important; }
}
/* Aziende: la terza scheda non è più "in evidenza" */
html.rd main .rd-grid.rd-b > .service-card:not(:hover) { box-shadow: none !important; }
/* A3: solo il primo riquadro è blu (Consulenza aveva anche il terzo) */
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :not(:first-child) { background: transparent !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :not(:first-child):hover { background: var(--paper-2) !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :not(:first-child) h3 { color: var(--navy) !important; }
html.rd main .rd-grid.rd-a3:is(.vantaggi-grid, .services-grid) > :not(:first-child) p { color: var(--muted) !important; }
/* Energia 360: riquadro grafico "Aggiornamenti" blu */
html.rd main .energia-card .rd-card-media.rd-media-icon {
  background: radial-gradient(120% 90% at 85% 10%, rgba(232,98,27,.28), transparent 55%), linear-gradient(135deg, #1F3A7A 0%, #0F1B36 100%) !important;
}
html.rd main .energia-card .rd-card-media.rd-media-icon i { display: block !important; color: #F49158 !important; font-size: clamp(3rem, 2rem + 3vw, 4.5rem) !important; }
html.rd main .rd-grid.rd-a2.rd-a2 > *::before { font-size: .8125rem !important; line-height: 1 !important; letter-spacing: .12em !important; transform: none !important; width: auto !important; height: auto !important; font-family: var(--font-sans, 'Instrument Sans', sans-serif) !important; font-weight: 700 !important; }
html.rd main .rd-grid.rd-grid > * { outline: 0 !important; filter: none !important; }
html.rd main .rd-grid.rd-a3 > *:nth-child(n) { box-shadow: none !important; }
html.rd main .rd-grid.rd-a3.services-grid > .service-card:nth-child(n) { border-right: 1px solid var(--line-strong) !important; border-bottom: 1px solid var(--line-strong) !important; border-top: 0 !important; border-left: 0 !important; transform: none !important; }
html.rd main .rd-grid.rd-a3.services-grid > .service-card:nth-child(n):not(:first-child) { background: transparent !important; }
html.rd main .rd-grid.rd-a3.services-grid > .service-card:nth-child(n):not(:first-child):hover { background: var(--paper-2) !important; }
html.rd main .rd-grid.rd-a3.services-grid > .service-card:nth-child(n):not(:first-child) :is(h3) { color: var(--navy) !important; }
html.rd main .rd-grid.rd-a3.services-grid > .service-card:nth-child(n):not(:first-child) :is(p) { color: var(--muted) !important; }
html.rd main .rd-grid.rd-b.services-grid > .service-card:nth-child(n) { background: #fff !important; border: 1px solid var(--line) !important; transform: none !important; }
html.rd main .rd-grid.rd-b.services-grid > .service-card:nth-child(n) h3 { color: var(--navy) !important; }
html.rd main .rd-grid.rd-b.services-grid > .service-card:nth-child(n) p { color: var(--muted) !important; }
html.rd main .rd-grid.rd-b.services-grid > .service-card:nth-child(n):hover { border-color: var(--line-strong) !important; box-shadow: 0 24px 48px -32px rgba(15,27,54,.45) !important; }
html.rd main .rd-grid.rd-d { width: 100%; }
html.rd main .rd-grid.rd-d > .partner-card.partner-card { width: auto !important; max-width: none !important; flex: none !important; }

html.rd main .rd-grid.rd-b .rd-b-media img.rd-b-media, html.rd main .rd-grid.rd-b .rd-b-media > img { height: 100% !important; aspect-ratio: auto !important; position: absolute; inset: 0; }
html.rd main .rd-grid.rd-b .rd-b-media { position: relative; }

/* ======================================================================
   TRANSIZIONI TRA LE PAGINE — un unico movimento (View Transitions API)
   L'header resta fermo, la fascia in alto si trasforma da una pagina all'altra,
   il contenuto esce e il nuovo entra nello stesso gesto, senza "buchi" bianchi.
   ====================================================================== */
@view-transition { navigation: auto; types: rd-page; }
html.rd-vt header { view-transition-name: rd-header; }
html.rd-vt #rd-bar { view-transition-name: rd-bar; }
html.rd-vt .back-to-top { view-transition-name: rd-top; }
/* niente dissolvenze vecchie */
html.rd-vt main { animation: none !important; }
html.rd-vt body.page-leaving { opacity: 1 !important; }
html:not(.rd-vt) body { transition: opacity 200ms cubic-bezier(.4,0,.2,1); }
/* le sezioni già visibili all'arrivo compaiono senza ripetere l'animazione */
html .reveal.rd-instant, html .reveal.rd-instant *, html .stagger.rd-instant > * { transition: none !important; }

::view-transition-group(*) { animation-duration: 560ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
/* contenuto: esce salendo appena, entra salendo da sotto — stessi tempi, un solo gesto */
html:active-view-transition-type(rd-page)::view-transition-old(root) { animation: rd-vt-out 420ms cubic-bezier(.4, 0, .6, 1) both; }
html:active-view-transition-type(rd-page)::view-transition-new(root) { animation: rd-vt-in 780ms 90ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rd-vt-out { to { opacity: 0; transform: scale(.992); } }
@keyframes rd-vt-in { from { opacity: 0; transform: translateY(18px); } }
/* fascia in alto: cambia forma senza deformare titolo e foto */
::view-transition-group(rd-band) { overflow: hidden; }
::view-transition-old(rd-band), ::view-transition-new(rd-band) { height: 100%; width: 100%; object-fit: cover; object-position: top left; }
::view-transition-old(rd-band) { animation: rd-vt-fade-out 280ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(rd-band) { animation: rd-vt-fade-in 420ms 80ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rd-vt-fade-out { to { opacity: 0; } }
@keyframes rd-vt-fade-in { from { opacity: 0; } }
/* header e barra: fermi */
::view-transition-group(rd-header), ::view-transition-group(rd-bar), ::view-transition-group(rd-top) { animation-duration: 0s; }
::view-transition-old(rd-header) { animation: none; opacity: 0; }
::view-transition-new(rd-header) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Interazioni dentro la pagina ---------- */
/* schede che ricompaiono (filtri, "Mostra altre", ricerca FAQ): entrano scorrendo, non a scatto */
html.rd :is(.project-card, .agg-news-item, .faq-item, .faq-category) {
  transition: opacity 420ms cubic-bezier(.22,1,.36,1), translate 520ms cubic-bezier(.22,1,.36,1);
}
@starting-style {
  html.rd :is(.project-card, .agg-news-item, .faq-item, .faq-category) { opacity: 0; translate: 0 12px; }
}
/* finestre (lavaggio pannelli, scheda progetto): il pannello sale e si posa, lo sfondo si scurisce insieme */
html.rd :is(.modal-lavaggio.active, #projectModal.active, #projectModal.open, #projectModal.show, #projectModal.visible) { animation: rd-backdrop-in 320ms cubic-bezier(.22,1,.36,1) both; }
html.rd :is(.modal-lavaggio.active, #projectModal.active, #projectModal.open, #projectModal.show, #projectModal.visible) > * { animation: rd-sheet-in 520ms cubic-bezier(.22,1,.36,1) both; }
@keyframes rd-backdrop-in { from { background-color: rgba(15,27,54,0); backdrop-filter: blur(0); } }
@keyframes rd-sheet-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
/* finestrella "Consulenza gratuita": niente rimbalzo, entra e si posa */
html.rd .popup-consulenza {
  transition: opacity 420ms cubic-bezier(.22,1,.36,1), transform 560ms cubic-bezier(.22,1,.36,1), visibility 0s linear 560ms !important;
  transform-origin: bottom left;
}
html.rd .popup-consulenza.visible { transition-delay: 0s !important; }
/* cookie: entra dal basso con lo stesso movimento */
html.rd .elc-cookie-banner { animation: rd-sheet-in 600ms 300ms cubic-bezier(.22,1,.36,1) both; }
/* transizioni dentro la pagina (filtri, passaggi del modulo): morbide e brevi */
html:not(:active-view-transition-type(rd-page))::view-transition-group(*) { animation-duration: 480ms; }
@media (prefers-reduced-motion: reduce) {
  html.rd :is(.project-card, .agg-news-item, .faq-item, .faq-category) { transition: none; }
  html.rd :is(.modal-lavaggio.active, #projectModal.active, #projectModal.open, #projectModal.show, #projectModal.visible), html.rd :is(.modal-lavaggio.active, #projectModal.active, #projectModal.open, #projectModal.show, #projectModal.visible) > *, html.rd .elc-cookie-banner { animation: none !important; }
}

/* ======================================================================
   PRESTAZIONI
   ====================================================================== */
/* Home: su telefono la foto della hero è la versione leggera (78 KB invece di 127) */
@media (max-width: 700px) {
  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-900.webp') center/cover no-repeat !important;
  }
}
/* Parallasse delle foto: solo con il mouse (sul telefono costa e non si nota) */
@media (hover: none), (pointer: coarse) {
  html.rd :is(.chi-siamo-image, .progetto-image) img { transform: none !important; }
}
/* Ombre e sfocature pesanti più leggere su telefono */
@media (max-width: 700px) {
  html.rd :is(.rd-toc, .agg-filter) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.97) !important; }
}

/* ======================================================================
   HOME · "CHI SIAMO": composizione editoriale con i due ritratti
   (stessi testi: cambia solo la presentazione)
   ====================================================================== */
html.rd main .chi-siamo-section .chi-siamo-grid.chi-siamo-grid {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
  display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; gap: clamp(48px, 6vw, 96px) !important; align-items: center !important;
  max-width: 1200px; margin: 0 auto;
}
html.rd main .chi-siamo-section .chi-siamo-grid::before, html.rd main .chi-siamo-section .chi-siamo-grid::after { display: none !important; }
/* testo */
html.rd main .chi-siamo-content .chi-siamo-eyebrow { display: inline-flex !important; align-items: center; gap: .75rem; }
html.rd main .chi-siamo-content .chi-siamo-eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--orange); }
html.rd main .chi-siamo-content h2 { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem) !important; line-height: 1.02 !important; letter-spacing: -.025em !important; margin: 1rem 0 1.5rem !important; }
html.rd main .chi-siamo-content p { font-size: 1.125rem !important; line-height: 1.7 !important; color: var(--muted) !important; max-width: 50ch; margin: 0 0 2rem !important; }
html.rd main .chi-siamo-content .chi-siamo-link {
  display: inline-flex !important; align-items: center; gap: .9rem; padding: .55rem .6rem .55rem 1.35rem !important; border-radius: 999px !important;
  border: 1px solid var(--line-strong) !important; color: var(--navy) !important; font-weight: 600 !important; text-decoration: none !important;
  background: #fff !important; font-size: 1rem !important;
  transition: border-color 250ms, background-color 250ms, color 250ms !important;
}
html.rd main .chi-siamo-content .chi-siamo-link::after {
  content: ''; width: 36px; height: 36px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: translate 300ms cubic-bezier(.22,1,.36,1), background-color 250ms;
}
html.rd main .chi-siamo-content .chi-siamo-link:hover { border-color: var(--navy) !important; }
html.rd main .chi-siamo-content .chi-siamo-link:hover::after { translate: 3px 0; background-color: var(--orange); }
/* la freccia del testo viene sostituita dal cerchio */
html.rd main .chi-siamo-content .chi-siamo-link .rd-arr { display: none; }

/* ritratti */
html.rd main .chi-siamo-image:has(.rd-duo) { position: relative; padding: 0 0 48px; }
html.rd main .chi-siamo-image .rd-duo { position: relative; gap: 20px !important; isolation: isolate; }
html.rd main .chi-siamo-image .rd-duo::before {
  content: ''; position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; right: -8%; top: -10%; border-radius: 50%;
  border: 1.5px solid rgba(232, 98, 27, .28); pointer-events: none;
}
html.rd main .chi-siamo-image .rd-duo::after {
  content: ''; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; left: -6%; bottom: -12%; border-radius: 50%;
  background: var(--navy-tint);
}
html.rd main .chi-siamo-image .rd-duo figure {
  aspect-ratio: 4 / 5 !important; border-radius: 22px !important; box-shadow: 0 30px 60px -36px rgba(15,27,54,.55) !important; background: var(--paper-2);
}
html.rd main .chi-siamo-image .rd-duo figure:nth-child(2) { margin-top: 64px !important; }
html.rd main .chi-siamo-image .rd-duo figure::after { background: linear-gradient(180deg, transparent 62%, rgba(15,27,54,.35)) !important; }
html.rd main .chi-siamo-image .rd-duo img[src*="gaia"] { object-position: 80% 30% !important; }
html.rd main .chi-siamo-image .rd-duo img[src*="massimo"] { object-position: 50% 12% !important; }
html.rd main .chi-siamo-image .rd-duo figcaption {
  position: absolute !important; left: 12px !important; right: auto !important; bottom: 12px !important; z-index: 2;
  padding: .55rem .85rem !important; border-radius: 14px; color: var(--ink) !important; font-weight: 600 !important; font-size: .9375rem !important; line-height: 1.2 !important;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 24px -12px rgba(15,27,54,.4);
}
html.rd main .chi-siamo-image .rd-duo figcaption span { color: var(--orange-text) !important; font-size: .6875rem !important; margin-top: .2rem !important; }
/* riquadro "Bergamo · Operiamo in tutta Italia" */
html.rd main .chi-siamo-image:has(.rd-duo) > .chi-siamo-badge {
  display: flex !important; position: absolute !important; left: auto !important; right: 8% !important; bottom: 0 !important; top: auto !important; z-index: 3;
  align-items: center; gap: .85rem; padding: .85rem 1.25rem .85rem .85rem !important; border-radius: 18px !important;
  background: #fff !important; border: 1px solid var(--line) !important; box-shadow: 0 24px 48px -28px rgba(15,27,54,.5) !important; transform: none !important; animation: none !important;
}
html.rd main .chi-siamo-badge .chi-siamo-badge-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; display: grid !important; place-items: center; background: var(--orange-tint) !important; color: var(--orange-text) !important; flex: none; }
html.rd main .chi-siamo-badge .chi-siamo-badge-icon i { font-size: 1.3rem !important; color: var(--orange-text) !important; }
html.rd main .chi-siamo-badge .chi-siamo-badge-text strong { display: block; font-family: 'Fraunces', 'Fraunces Fallback', serif; font-size: 1.125rem; color: var(--navy) !important; line-height: 1.1; }
html.rd main .chi-siamo-badge .chi-siamo-badge-text span { display: block; font-size: .8125rem !important; color: var(--muted) !important; margin-top: .15rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.rd main .chi-siamo-image .rd-duo img { transition: scale 900ms cubic-bezier(.22,1,.36,1) !important; }
  html.rd main .chi-siamo-image .rd-duo figure:hover img { scale: 1.04; }
}
/* telefono */
@media (max-width: 900px) {
  html.rd main .chi-siamo-section .chi-siamo-grid.chi-siamo-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  html.rd main .chi-siamo-content h2 { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 2.75rem) !important; margin: .75rem 0 1rem !important; }
  html.rd main .chi-siamo-content p { font-size: 1rem !important; margin-bottom: 1.5rem !important; }
  html.rd main .chi-siamo-image .rd-duo { gap: 12px !important; }
  html.rd main .chi-siamo-image .rd-duo figure:nth-child(2) { margin-top: 36px !important; }
  html.rd main .chi-siamo-image .rd-duo figcaption { left: 8px !important; bottom: 8px !important; right: 8px !important; font-size: .8125rem !important; padding: .45rem .6rem !important; border-radius: 11px; }
  html.rd main .chi-siamo-image:has(.rd-duo) { padding-bottom: 40px; }
  html.rd main .chi-siamo-image:has(.rd-duo) > .chi-siamo-badge { right: 50% !important; translate: 50% 0; padding: .7rem 1rem .7rem .7rem !important; white-space: nowrap; }
}
/* correzioni composizione "Chi siamo" */
html.rd main .chi-siamo-section .chi-siamo-image.chi-siamo-image { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; max-height: none !important; }
html.rd main .chi-siamo-image .rd-duo figure { position: relative !important; overflow: hidden !important; }
html.rd main .chi-siamo-section .chi-siamo-image .rd-duo figure img {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; aspect-ratio: auto !important;
  max-height: none !important; object-fit: cover !important; transform: none !important; border-radius: 0 !important;
}
html.rd main .chi-siamo-content a.chi-siamo-link::after { display: block !important; content: '' !important; flex: none; }
html.rd main .chi-siamo-image:has(.rd-duo) > .chi-siamo-badge.chi-siamo-badge { right: auto !important; left: 0 !important; translate: none !important; }
@media (max-width: 900px) {
  html.rd main .chi-siamo-image:has(.rd-duo) > .chi-siamo-badge.chi-siamo-badge { left: 0 !important; }
}
/* riquadro "Bergamo": tolto (richiesta) */
html.rd main .chi-siamo-image:has(.rd-duo) > .chi-siamo-badge.chi-siamo-badge { display: none !important; }
html.rd main .chi-siamo-section .chi-siamo-image:has(.rd-duo) { padding-bottom: 0 !important; }
/* freccia del pulsante: dopo il testo, nel cerchio */
html.rd main .chi-siamo-content a.chi-siamo-link::after {
  position: static !important; inset: auto !important; transform: none !important; height: 36px !important; width: 36px !important; opacity: 1 !important;
}
html.rd main .chi-siamo-content a.chi-siamo-link::before { display: none !important; }
html.rd main .chi-siamo-section .chi-siamo-image.chi-siamo-image::before, html.rd main .chi-siamo-section .chi-siamo-image.chi-siamo-image::after { display: none !important; }
html.rd main .chi-siamo-section .chi-siamo-image .rd-duo { width: 100% !important; max-width: 100% !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0 !important; }
@media (max-width: 900px) { html.rd main .chi-siamo-image .rd-duo::before { right: 0; top: -6%; width: 70%; } }
html.rd main .chi-siamo-section .chi-siamo-image .rd-duo figure { outline: 1px solid rgba(15,27,54,.08); outline-offset: -1px; }

/* ======================================================================
   SIMULATORE ROI — cruscotto premium
   ====================================================================== */
html.rd .sim-hero { padding-bottom: clamp(5rem, 4rem + 4vw, 7.5rem) !important; }
html.rd .sim-hero .sim-tabs {
  display: inline-flex !important; gap: 4px !important; padding: 4px !important; border-radius: 999px !important; margin-top: 2rem !important;
  background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: none !important;
}
html.rd .sim-hero .sim-tab {
  min-width: 132px; padding: .7rem 1.4rem !important; border-radius: 999px !important; border: 0 !important; font-weight: 600 !important; font-size: .9375rem !important;
  background: transparent !important; color: rgba(255,255,255,.75) !important; transition: background-color 300ms cubic-bezier(.22,1,.36,1), color 300ms !important;
}
html.rd .sim-hero .sim-tab:hover { color: #fff !important; }
html.rd .sim-hero .sim-tab.active { background: #fff !important; color: var(--navy) !important; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35) !important; }
html.rd .sim-hero .sim-tab:active { scale: .97; }

/* griglia: comandi a sinistra (restano visibili), cruscotto a destra; il tutto sale sopra la fascia blu */
html.rd main section.sim-main {
  display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; gap: 28px !important; align-items: start !important;
  max-width: 1200px !important; margin: -4.5rem auto 0 !important; padding: 0 2rem 5rem !important; position: relative; z-index: 2; background: transparent !important;
}
html.rd main .sim-input-panel {
  position: sticky; top: calc(var(--rd-hh, 72px) + 20px);
  background: #fff !important; border: 1px solid var(--line) !important; border-radius: 24px !important; padding: 2rem !important;
  box-shadow: 0 1px 2px rgba(15,27,54,.04), 0 30px 60px -40px rgba(15,27,54,.45) !important;
}
html.rd main .sim-input-panel > h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.375rem !important; margin: 0 0 1.75rem !important; color: var(--ink) !important; }
html.rd main .sim-input-panel > h2 i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-text); font-size: 1.15rem; }
html.rd main .sim-group { margin: 0 0 1.6rem !important; }
html.rd main .sim-group > label { display: flex !important; justify-content: space-between; align-items: baseline; font-size: .875rem !important; font-weight: 600 !important; color: var(--muted) !important; margin-bottom: .65rem !important; letter-spacing: 0 !important; }
html.rd main .sim-group > label > span { font-family: 'Fraunces', 'Fraunces Fallback', serif; font-size: 1.25rem !important; font-weight: 600 !important; color: var(--navy) !important; font-variant-numeric: tabular-nums; }
/* cursori */
html.rd main .sim-group input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent !important; margin: 0 !important; cursor: pointer;
}
html.rd main .sim-group input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%);
}
html.rd main .sim-group input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
html.rd main .sim-group input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--orange); }
html.rd main .sim-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff;
  border: 0; box-shadow: 0 0 0 1px rgba(15,27,54,.12), 0 4px 12px -2px rgba(15,27,54,.35); transition: transform 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms;
}
html.rd main .sim-group input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(15,27,54,.12), 0 4px 12px -2px rgba(15,27,54,.35); }
html.rd main .sim-group input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(232,98,27,.16), 0 4px 12px -2px rgba(15,27,54,.35); }
html.rd main .sim-group input[type="range"]:focus-visible { outline: none; }
html.rd main .sim-group input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(31,58,122,.3), 0 4px 12px -2px rgba(15,27,54,.35); }
html.rd main .sim-range-labels { display: flex; justify-content: space-between; font-size: .75rem !important; color: #8A93A6 !important; margin-top: .2rem !important; }
/* potenza consigliata */
html.rd main .sim-hint {
  margin-top: .7rem; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; cursor: pointer;
  border: 1px dashed rgba(232,98,27,.5); background: var(--orange-tint); color: var(--orange-text); font: 600 .8125rem/1.2 'Instrument Sans', 'Sans Fallback', sans-serif;
  transition: background-color 200ms, border-color 200ms, scale 100ms;
}
html.rd main .sim-hint b { color: var(--ink); }
html.rd main .sim-hint:hover { border-style: solid; }
html.rd main .sim-hint:active { scale: .97; }
/* menu a tendina */
html.rd main .sim-select {
  width: 100%; -webkit-appearance: none; appearance: none; padding: .85rem 2.5rem .85rem 1rem !important; border-radius: 14px !important;
  border: 1px solid var(--line-strong) !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F3A7A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 1rem center / 14px no-repeat !important;
  font: 500 .9375rem/1.3 'Instrument Sans', 'Sans Fallback', sans-serif !important; color: var(--ink) !important; transition: border-color 200ms, box-shadow 200ms;
}
html.rd main .sim-select:hover { border-color: var(--navy) !important; }
html.rd main .sim-select:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 4px rgba(31,58,122,.12); }
/* opzioni: interruttori a pillola */
html.rd main .sim-checkbox-group { display: grid !important; grid-template-columns: 1fr; gap: 8px !important; }
html.rd main .sim-checkbox-item {
  display: flex !important; align-items: center; gap: .75rem; padding: .8rem 1rem !important; border-radius: 14px !important; cursor: pointer;
  border: 1px solid var(--line) !important; background: #fff !important; font-weight: 600 !important; font-size: .9375rem !important; color: var(--ink) !important;
  transition: border-color 220ms, background-color 220ms;
}
html.rd main .sim-checkbox-item input { position: absolute; opacity: 0; pointer-events: none; }
html.rd main .sim-checkbox-item i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); color: var(--navy); font-size: 1.05rem; transition: background-color 220ms, color 220ms; }
html.rd main .sim-checkbox-item::after {
  content: ''; margin-left: auto; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); flex: none;
  box-shadow: inset 0 0 0 2px transparent; transition: background-color 260ms cubic-bezier(.22,1,.36,1);
  background-image: radial-gradient(circle at 12px 12px, #fff 9px, transparent 9.5px); background-repeat: no-repeat; background-position: 0 0;
}
html.rd main .sim-checkbox-item.checked { border-color: rgba(232,98,27,.45) !important; background: var(--orange-tint) !important; }
html.rd main .sim-checkbox-item.checked i { background: var(--orange); color: #fff; }
html.rd main .sim-checkbox-item.checked::after { background-color: var(--orange); background-position: 16px 0; }
html.rd main .sim-checkbox-item:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(31,58,122,.25); }
html.rd main .sim-info-badge { display: flex !important; gap: .5rem; align-items: center; padding: .75rem 1rem !important; border-radius: 12px !important; background: var(--navy-tint) !important; color: var(--navy) !important; font-size: .8125rem !important; font-weight: 600; border: 0 !important; }

/* ---------- cruscotto risultati ---------- */
html.rd main .sim-results-panel { display: flex !important; flex-direction: column; gap: 16px !important; background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
html.rd main .sim-main-number {
  position: relative; overflow: hidden; text-align: left !important; padding: 2.25rem 2.25rem 2rem !important; border-radius: 24px !important; border: 0 !important;
  background: radial-gradient(120% 140% at 100% 0%, rgba(232,98,27,.35), transparent 50%), linear-gradient(140deg, #1F3A7A 0%, #0F1B36 100%) !important;
  box-shadow: 0 30px 60px -36px rgba(15,27,54,.75) !important; color: #fff;
}
html.rd main .sim-main-number::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(244,145,88,.35);
}
html.rd main .sim-main-number .label { font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--orange-on-dark) !important; }
html.rd main .sim-main-number .value {
  font-family: 'Fraunces', 'Fraunces Fallback', serif !important; font-size: clamp(3rem, 2rem + 4vw, 4.75rem) !important; font-weight: 600 !important; line-height: 1 !important;
  letter-spacing: -.03em !important; color: #fff !important; margin: .6rem 0 .5rem !important; font-variant-numeric: tabular-nums lining-nums;
}
html.rd main .sim-main-number .sub { color: rgba(255,255,255,.72) !important; font-size: 1rem !important; }
html.rd main .sim-kpi-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; margin: 0 !important; }
html.rd main .sim-kpi {
  text-align: left !important; padding: 1.4rem 1.5rem !important; border-radius: 20px !important; background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important;
}
html.rd main .sim-kpi .kpi-label { display: flex; align-items: center; gap: .5rem; font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--muted) !important; }
html.rd main .sim-kpi .kpi-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
html.rd main .sim-kpi:nth-child(2) .kpi-label::before { background: var(--navy); }
html.rd main .sim-kpi .kpi-value { font-family: 'Fraunces', 'Fraunces Fallback', serif !important; font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem) !important; font-weight: 600 !important; color: var(--ink) !important; margin-top: .5rem; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
html.rd main .sim-kpi .kpi-unit { font-family: 'Instrument Sans', 'Sans Fallback', sans-serif; font-size: 1rem !important; font-weight: 500; color: var(--muted) !important; margin-left: .25rem; }
/* grafico */
html.rd main .sim-chart-section { padding: 1.5rem 1.5rem 1.25rem !important; border-radius: 20px !important; background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
html.rd main .sim-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
html.rd main .sim-chart-head h3 { margin: 0 !important; font-size: 1.125rem !important; color: var(--ink) !important; }
html.rd main .sim-chart-be { font-size: .8125rem; font-weight: 600; color: var(--orange-text); background: var(--orange-tint); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
html.rd main #chart-bars.chart-bars { position: relative; display: block !important; height: 220px !important; padding: 0 !important; gap: 0 !important; border: 0 !important; cursor: crosshair; touch-action: pan-y; }
html.rd main .sim-svg { width: 100%; height: 100%; display: block; overflow: visible; }
html.rd main .sim-line { fill: none; stroke: var(--orange); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
html.rd main .sim-line-neg { stroke: var(--navy); }
html.rd main .sim-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
html.rd main .sim-be-line { stroke: var(--orange); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; vector-effect: non-scaling-stroke; }
html.rd main .sim-ticks text { font: 500 11px 'Instrument Sans', sans-serif; fill: #8A93A6; }
html.rd main .sim-be-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); translate: -50% -50%; box-shadow: 0 0 0 6px rgba(232,98,27,.18); pointer-events: none; transition: left 420ms cubic-bezier(.22,1,.36,1), top 420ms cubic-bezier(.22,1,.36,1); }
html.rd main .sim-tip {
  position: absolute; translate: -50% calc(-100% - 12px); pointer-events: none; white-space: nowrap; padding: .45rem .7rem; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .8125rem; font-variant-numeric: tabular-nums; box-shadow: 0 10px 24px -10px rgba(15,27,54,.6);
}
html.rd main .sim-tip b { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-on-dark); font-weight: 600; }
/* confronto economico */
html.rd main .sim-compare { padding: 1.5rem !important; border-radius: 20px !important; background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
html.rd main .sim-compare h3 { font-size: 1.125rem !important; margin: 0 0 .5rem !important; color: var(--ink) !important; }
html.rd main .compare-row { display: flex !important; align-items: baseline; gap: .75rem; padding: .7rem 0 !important; border-bottom: 1px solid var(--line) !important; }
html.rd main .compare-row:last-child { border-bottom: 0 !important; }
html.rd main .compare-row .cr-label { color: var(--muted) !important; font-size: .9375rem !important; }
html.rd main .compare-row .cr-label::after { content: ''; }
html.rd main .compare-row .cr-value { margin-left: auto; font-weight: 600 !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
html.rd main .compare-row .cr-value.positive { color: #1E8E5A !important; }
html.rd main .compare-row:nth-child(4) { border-bottom: 1px solid var(--ink) !important; }
html.rd main .compare-row:nth-child(4) .cr-label, html.rd main .compare-row:nth-child(4) .cr-value { color: var(--ink) !important; font-weight: 700 !important; }
/* CO2 */
html.rd main .sim-co2-bar { display: flex !important; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem !important; border-radius: 20px !important; background: #EEF7F1 !important; border: 1px solid #D3EBDD !important; }
html.rd main .sim-co2-bar .co2-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; display: grid !important; place-items: center; background: #1E8E5A !important; color: #fff !important; flex: none; }
html.rd main .sim-co2-bar .co2-icon i { color: #fff !important; font-size: 1.25rem; }
html.rd main .sim-co2-bar .co2-text strong { display: block; color: #135E3B !important; font-size: 1rem; }
html.rd main .sim-co2-bar .co2-text span { color: #3F6B55 !important; font-size: .875rem; }
/* azienda */
html.rd main .sim-business-extra { padding: 1.5rem !important; border-radius: 20px !important; background: var(--navy-tint) !important; border: 0 !important; }
html.rd main .sim-business-extra h4 { display: flex; align-items: center; gap: .5rem; color: var(--navy) !important; font-size: 1rem !important; margin: 0 0 .5rem !important; }
html.rd main .sim-business-kpi { display: flex !important; justify-content: space-between; padding: .6rem 0 !important; border-bottom: 1px solid rgba(31,58,122,.12) !important; }
html.rd main .sim-business-kpi:last-child { border-bottom: 0 !important; }
html.rd main .sim-business-kpi .bk-label { color: var(--muted) !important; }
html.rd main .sim-business-kpi .bk-value { font-weight: 700 !important; color: var(--navy) !important; font-variant-numeric: tabular-nums; }
/* note e invito */
html.rd main .sim-disclaimer { font-size: .8125rem !important; color: #7A8396 !important; text-align: left !important; line-height: 1.55 !important; margin: .25rem .25rem 0 !important; }
html.rd main .sim-assume { display: block; margin-top: .4rem; }
html.rd main .sim-cta-box {
  text-align: left !important; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: center; padding: 1.75rem 2rem !important; border-radius: 24px !important;
  background: var(--paper-2) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; box-shadow: none !important;
}
html.rd main .sim-cta-box::before, html.rd main .sim-cta-box::after { display: none !important; }
html.rd main .sim-cta-box h3 { grid-column: 1; color: var(--ink) !important; margin: 0 !important; font-size: 1.375rem !important; }
html.rd main .sim-cta-box p { grid-column: 1; color: var(--muted) !important; margin: 0 !important; font-size: .9375rem !important; }
html.rd main .sim-cta-box a { grid-column: 2; grid-row: 1 / span 2; background: var(--orange-cta) !important; color: #fff !important; padding: .9rem 1.4rem !important; border-radius: 999px !important; font-weight: 600 !important; white-space: nowrap; border: 0 !important; box-shadow: none !important; }
html.rd main .sim-cta-box a:hover { background: var(--orange-cta-hover) !important; }
/* telefono */
@media (max-width: 960px) {
  html.rd main section.sim-main { grid-template-columns: 1fr !important; margin-top: -3.5rem !important; padding: 0 1rem 3.5rem !important; gap: 16px !important; }
  html.rd main .sim-input-panel { position: static; padding: 1.4rem !important; border-radius: 20px !important; }
  html.rd main .sim-main-number { padding: 1.75rem 1.5rem 1.5rem !important; border-radius: 20px !important; }
  html.rd main .sim-kpi { padding: 1.1rem 1.1rem !important; }
  html.rd main .sim-kpi .kpi-label { font-size: .6875rem !important; letter-spacing: .06em !important; }
  html.rd main #chart-bars.chart-bars { height: 180px !important; }
  html.rd main .sim-cta-box { grid-template-columns: 1fr; padding: 1.5rem !important; }
  html.rd main .sim-cta-box a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .75rem; }
  html.rd .sim-hero .sim-tab { min-width: 0; padding: .65rem 1.2rem !important; }
}
/* su telefono il cruscotto mostra subito il risultato principale sopra i comandi? no: prima i comandi, poi i risultati */
@media (prefers-reduced-motion: reduce) { html.rd main .sim-be-dot { transition: none; } }

/* ======================================================================
   CHI SIAMO · I DUE SOCI — ritratti editoriali alternati
   ====================================================================== */
html.rd main .team-grid.team-grid { grid-template-columns: 1fr !important; gap: clamp(56px, 7vw, 104px) !important; max-width: 1080px; counter-reset: socio; margin-top: 1rem !important; }
html.rd main .team-grid.team-grid > .team-card {
  counter-increment: socio;
  display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr auto; column-gap: clamp(36px, 5vw, 72px);
  align-items: start; padding: 0 !important; overflow: visible !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
html.rd main .team-grid.team-grid > .team-card:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* ritratto con cornice arancione sfalsata */
html.rd main .team-grid > .team-card > .team-image.team-image {
  grid-column: 1; grid-row: 1 / -1; position: relative; aspect-ratio: 4 / 5 !important; width: 100% !important; height: auto !important;
  border-radius: 28px !important; overflow: visible !important; background: none !important; margin: 0 !important; isolation: isolate;
}
html.rd main .team-grid > .team-card:nth-child(even) > .team-image.team-image { grid-column: 2; }
html.rd main .team-grid > .team-card > .team-image::before {
  content: ''; position: absolute; inset: 0; translate: 18px 18px; border-radius: 28px; border: 1.5px solid rgba(232,98,27,.55); z-index: -1;
  transition: translate 600ms cubic-bezier(.22,1,.36,1);
}
html.rd main .team-grid > .team-card:nth-child(even) > .team-image::before { translate: -18px 18px; }
html.rd main .team-grid > .team-card > .team-image::after {
  content: counter(socio, decimal-leading-zero); position: absolute; top: 18px; left: 18px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 600 .9375rem/1 'Fraunces', 'Fraunces Fallback', serif; color: var(--navy); box-shadow: 0 6px 18px -8px rgba(15,27,54,.45);
}
html.rd main .team-grid > .team-card > .team-image img {
  position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 28px !important;
  box-shadow: 0 40px 70px -40px rgba(15,27,54,.6); transition: scale 900ms cubic-bezier(.22,1,.36,1) !important;
}
html.rd main .team-grid > .team-card > .team-image img[src*="gaia"] { object-position: 76% 30% !important; }
html.rd main .team-grid > .team-card > .team-image img[src*="massimo"] { object-position: 50% 0% !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html.rd main .team-grid > .team-card:hover > .team-image::before { translate: 10px 10px; }
  html.rd main .team-grid > .team-card:nth-child(even):hover > .team-image::before { translate: -10px 10px; }
}
/* testo */
html.rd main .team-grid > .team-card > :not(.team-image) { grid-column: 2; }
html.rd main .team-grid > .team-card:nth-child(even) > :not(.team-image) { grid-column: 1; }
html.rd main .team-grid > .team-card > .team-role {
  grid-row: 1; margin: clamp(.5rem, 2vw, 2.5rem) 0 0 !important; display: inline-flex !important; align-items: center; gap: .75rem; justify-self: start;
  font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--orange-text) !important;
}
html.rd main .team-grid > .team-card > .team-role::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--orange); }
html.rd main .team-grid > .team-card > h3 {
  grid-row: 2; margin: .9rem 0 0 !important; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem) !important; line-height: 1 !important; letter-spacing: -.025em !important;
  color: var(--ink) !important; text-align: left !important;
}
html.rd main .team-grid > .team-card > .team-bio {
  grid-row: 3; margin: 1.6rem 0 0 !important; padding: 1.6rem 0 0 !important; border-top: 1px solid var(--line-strong) !important;
  font-size: 1.0625rem !important; line-height: 1.75 !important; color: var(--muted) !important; max-width: 56ch;
}
html.rd main .team-grid > .team-card > .team-bio::first-line { color: var(--ink); font-weight: 500; }
html.rd main .team-grid > .team-card > .rd-bio-more { grid-row: 4; margin: .9rem 0 0 !important; align-self: start; justify-self: start; }
/* telefono */
@media (max-width: 760px) {
  html.rd main .team-grid.team-grid { gap: 64px !important; }
  html.rd main .team-grid.team-grid > .team-card, html.rd main .team-grid.team-grid > .team-card:nth-child(even) { grid-template-columns: 1fr; grid-template-rows: none; }
  html.rd main .team-grid > .team-card > .team-image.team-image, html.rd main .team-grid > .team-card:nth-child(even) > .team-image.team-image {
    grid-column: 1; grid-row: auto; width: calc(100% - 18px) !important; aspect-ratio: 1 / 1 !important;
  }
  html.rd main .team-grid > .team-card:nth-child(even) > .team-image.team-image { justify-self: end; }
  html.rd main .team-grid > .team-card > .team-image::before { translate: 12px 12px; }
  html.rd main .team-grid > .team-card:nth-child(even) > .team-image::before { translate: -12px 12px; }
  html.rd main .team-grid > .team-card > :not(.team-image), html.rd main .team-grid > .team-card:nth-child(even) > :not(.team-image) { grid-column: 1; }
  html.rd main .team-grid > .team-card > .team-role { margin-top: 2rem !important; }
  html.rd main .team-grid > .team-card > h3 { font-size: 2.125rem !important; margin-top: .6rem !important; }
  html.rd main .team-grid > .team-card > .team-bio { font-size: 1rem !important; margin-top: 1.1rem !important; padding-top: 1.1rem !important; }
}

/* ======================================================================
   FOOTER COMPATTO (stesse informazioni, metà dello spazio) + firma
   ====================================================================== */
html.rd .site-footer .footer-main.footer-main {
  display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) !important; gap: clamp(32px, 5vw, 72px) !important;
  padding: 3.25rem 2rem 2.5rem !important; max-width: 1200px; margin: 0 auto; align-items: start;
}
html.rd .site-footer .footer-brand { display: grid !important; gap: 1rem !important; }
html.rd .site-footer .footer-logo { height: 40px !important; }
html.rd .site-footer .footer-tagline { margin: 0 !important; font-size: 1.125rem !important; line-height: 1.35 !important; max-width: 24ch; }
html.rd .site-footer .footer-contact-list { display: grid !important; gap: .35rem !important; margin: 0 !important; }
html.rd .site-footer .footer-contact-list li { font-size: .875rem !important; margin: 0 !important; gap: .5rem !important; }
html.rd .site-footer .footer-social { margin: .25rem 0 0 !important; }
html.rd .site-footer .footer-social a { width: 36px !important; height: 36px !important; }
html.rd .site-footer .footer-nav.footer-nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; }
html.rd .site-footer .footer-col-title { font-size: .6875rem !important; letter-spacing: .14em !important; margin: 0 0 .9rem !important; padding: 0 0 .7rem !important; }
html.rd .site-footer .footer-col ul { display: grid !important; gap: .15rem !important; margin: 0 !important; }
html.rd .site-footer .footer-col li { margin: 0 !important; }
html.rd .site-footer .footer-col a { font-size: .875rem !important; line-height: 1.9 !important; padding: 0 !important; }
/* barra legale: dati aziendali a sinistra, copyright e firma a destra */
html.rd .site-footer .footer-bottom-inner.footer-bottom-inner {
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem !important;
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem !important;
}
html.rd .site-footer .footer-company { font-size: .75rem !important; gap: .35rem .6rem !important; flex-wrap: wrap; }
html.rd .site-footer .footer-copyright { font-size: .75rem !important; margin-left: auto; }
/* firma */
html.rd .site-footer .rd-credit { font-size: .75rem; color: rgba(255,255,255,.5) !important; letter-spacing: .01em; }
html.rd .site-footer .rd-credit::before { content: '·'; margin-right: .6rem; color: rgba(255,255,255,.35); }
html.rd .site-footer .rd-credit a.rd-credit-name {
  color: #fff !important; font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 350ms cubic-bezier(.22,1,.36,1);
}
html.rd .site-footer .rd-credit a.rd-credit-name:hover { background-size: 100% 1px; }
html:not(.rd) .rd-credit { font-size: .8rem; opacity: .7; }
/* telefono */
@media (max-width: 900px) {
  html.rd .site-footer .footer-main.footer-main { grid-template-columns: 1fr !important; gap: 28px !important; padding: 2.25rem 1.25rem 1.75rem !important; }
  html.rd .site-footer .footer-brand { grid-template-columns: 1fr auto; align-items: end; }
  html.rd .site-footer .footer-brand > .footer-logo-link { grid-column: 1 / -1; }
  html.rd .site-footer .footer-tagline { grid-column: 1 / -1; font-size: 1.0625rem !important; }
  html.rd .site-footer .footer-contact-list { grid-column: 1; }
  html.rd .site-footer .footer-social { grid-column: 2; align-self: end; }
  html.rd .site-footer .footer-nav.footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 16px !important; }
  html.rd .site-footer .footer-col-title { margin-bottom: .5rem !important; padding-bottom: .5rem !important; }
  html.rd .site-footer .footer-col a { line-height: 1.75 !important; }
  html.rd .site-footer .footer-bottom-inner.footer-bottom-inner { padding: 1rem 1.25rem 5.5rem !important; flex-direction: column; align-items: flex-start; }
  html.rd .site-footer .footer-copyright { margin-left: 0; }
  html.rd .site-footer .rd-credit::before { content: none; }
}
@media (max-width: 900px) {
  html.rd .site-footer .footer-col, html.rd .site-footer .footer-col ul, html.rd .site-footer .footer-col li { text-align: left !important; justify-items: start !important; align-items: flex-start !important; }
  html.rd .site-footer .footer-col a { display: inline-block !important; font-size: .875rem !important; }
  html.rd .site-footer .footer-contact-list li, html.rd .site-footer .footer-contact-list a { font-size: .8125rem !important; }
  html.rd .site-footer .footer-contact-list a { white-space: nowrap; overflow-wrap: normal !important; word-break: normal !important; }
  html.rd .site-footer .footer-company { font-size: .6875rem !important; }
}
html.rd main .sim-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
html.rd main .sim-axis span { position: absolute; translate: -50% 0; font: 500 .6875rem/18px 'Instrument Sans', 'Sans Fallback', sans-serif; color: #8A93A6; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  html.rd main .team-grid.team-grid > .team-card > * { grid-row: auto !important; }
}
@media (max-width: 760px) {
  html.rd main .team-grid > .team-card > .team-role { order: 1; }
  html.rd main .team-grid > .team-card > h3 { order: 2; }
  html.rd main .team-grid > .team-card > .team-bio { order: 3; }
  html.rd main .team-grid > .team-card > .rd-bio-more { order: 4; }
}
html.rd .site-footer img.footer-logo.footer-logo { content: normal !important; height: 40px !important; width: auto !important; }
html.rd .site-footer .footer-brand { align-self: start !important; align-content: start !important; }
html.rd .site-footer .rd-credit .rd-credit-name { color: #fff !important; font-weight: 600; }

/* scorrimento a inerzia attivo: il browser non deve aggiungere il suo */
html.rd-smooth, html.rd-smooth body { scroll-behavior: auto !important; }
html.rd-smooth.lenis-stopped { overflow: hidden; }
/* comparsa delle sezioni: più lunga e morbida, senza scatti */
html.rd .reveal:not([class*="hero"]):not(.page-header) {
  transform: translateY(24px) !important;
  transition: opacity 900ms cubic-bezier(.16, 1, .3, 1), transform 1100ms cubic-bezier(.16, 1, .3, 1) !important;
}
html.rd .reveal.active:not([class*="hero"]):not(.page-header) { transform: none !important; }
html .reveal.rd-instant, html .reveal.rd-instant * { transition: none !important; }
@media (max-width: 760px) {
  html.rd .reveal:not([class*="hero"]):not(.page-header) { transform: translateY(16px) !important; transition-duration: 700ms, 850ms !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.rd .reveal:not([class*="hero"]):not(.page-header) { transform: none !important; transition: opacity 300ms !important; }
}
html.rd .site-footer .footer-logo-link { display: inline-block !important; line-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; justify-self: start; }
/* Fotovoltaico: pulsante che apre i dettagli del lavaggio (prima la finestra non era raggiungibile) */
html.rd .fv-lavaggio-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.rd-lav-more {
  display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong, #CBD2DE); background: #fff; color: var(--navy, #1F3A7A); font: 600 .9375rem/1 'Instrument Sans', 'Sans Fallback', sans-serif;
  transition: border-color 220ms, background-color 220ms, scale 100ms;
}
.rd-lav-more:hover { border-color: var(--navy, #1F3A7A); background: var(--navy-tint, #EEF2F9); }
.rd-lav-more:active { scale: .97; }
html.rd .modal-lavaggio-content { max-height: min(86vh, 760px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px !important; }

/* ======================================================================
   CORREZIONI DELL'AUDIT FINALE
   ====================================================================== */
/* Aggiornamenti: icona della notizia in evidenza era bianca su fondo chiaro */
html.rd .agg-featured-icon i, html.rd .agg-featured-icon i::before { color: var(--orange-text) !important; }
/* Contatti: scheda informazioni blu (riempie bene la colonna), modulo allineato a sinistra */
html.rd main .contact-grid .info-card.info-card {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(232,98,27,.28), transparent 55%), linear-gradient(150deg, #1F3A7A, #0F1B36) !important;
  border: 0 !important; box-shadow: 0 30px 60px -36px rgba(15,27,54,.7) !important;
}
html.rd main .contact-grid .info-card::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px solid rgba(244,145,88,.3); pointer-events: none; }
html.rd main .contact-grid .info-card h2, html.rd main .contact-grid .info-card h3 { color: #fff !important; }
html.rd main .contact-grid .info-card :is(p, span, li) { color: rgba(255,255,255,.78) !important; }
html.rd main .contact-grid .info-card a { color: #fff !important; border-bottom-color: rgba(255,255,255,.35) !important; }
html.rd main .contact-grid .info-card a:hover { border-bottom-color: var(--orange) !important; }
html.rd main .contact-grid .info-item { align-items: flex-start !important; gap: 1rem !important; padding: 1.1rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; margin: 0 !important; }
html.rd main .contact-grid .info-item:last-of-type { border-bottom: 0 !important; }
html.rd main .contact-grid .info-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; display: grid !important; place-items: center; flex: none; background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.14) !important; }
html.rd main .contact-grid .info-icon i { color: var(--orange-on-dark) !important; font-size: 1.25rem !important; }
html.rd main .contact-grid .social-link { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.2) !important; color: #fff !important; }
html.rd main .contact-grid .social-link i { color: #fff !important; }
html.rd main .contact-grid .social-link:hover { background: var(--orange-cta) !important; border-color: var(--orange-cta) !important; }
html.rd main .contact-grid .form-card :is(h2, h3) { text-align: left !important; }
html.rd main .contact-grid .form-card > p:first-of-type { text-align: left !important; }

/* Header: piccola icona Instagram a sinistra del pulsante */
html:not(.rd) .rd-nav-ig { display: none; }
html.rd .rd-nav-ig {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-right: .5rem; flex: none;
  color: var(--navy); border: 1px solid var(--line-strong); text-decoration: none;
  transition: color 220ms, background-color 220ms, border-color 220ms, scale 100ms;
}
html.rd .rd-nav-ig i { font-size: 1.2rem; line-height: 1; }
html.rd .rd-nav-ig:hover { color: #fff; background: var(--orange-cta); border-color: var(--orange-cta); }
html.rd .rd-nav-ig:active { scale: .94; }
html.rd .rd-nav-ig:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 900px) {
  html.rd .rd-nav-ig { width: 36px; height: 36px; margin-right: .25rem; }
  html.rd .rd-nav-ig i { font-size: 1.1rem; }
}
@media (max-width: 900px) { html.rd .rd-nav-ig { margin-left: auto !important; margin-right: .5rem !important; } }

/* Pompe di calore: video ospitato sul sito (prima era un collegamento Drive che non si vedeva) */
html.rd .video-section { max-width: 960px; margin: 0 auto; }
html.rd .rd-video.video-container {
  position: relative; aspect-ratio: 16 / 9; height: auto !important; padding: 0 !important; overflow: hidden;
  border-radius: 24px !important; background: #0F1B36; box-shadow: 0 40px 80px -48px rgba(15,27,54,.65) !important;
}
html.rd .rd-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0F1B36; }
html.rd .rd-video-play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, rgba(15,27,54,0) 40%, rgba(15,27,54,.35));
  display: grid; place-items: center; transition: opacity 400ms cubic-bezier(.22,1,.36,1);
}
html.rd .rd-video-play span {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.92); position: relative;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -16px rgba(15,27,54,.6), 0 0 0 10px rgba(255,255,255,.18);
  transition: transform 350ms cubic-bezier(.22,1,.36,1), box-shadow 350ms;
}
html.rd .rd-video-play span::before { content: ''; position: absolute; left: 50%; top: 50%; translate: -38% -50%; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--orange); }
html.rd .rd-video-play:hover span { transform: scale(1.06); box-shadow: 0 24px 48px -16px rgba(15,27,54,.6), 0 0 0 14px rgba(255,255,255,.22); }
html.rd .rd-video-play:active span { transform: scale(.96); }
html.rd .rd-video-play:focus-visible span { outline: 3px solid #fff; outline-offset: 4px; }
html.rd .rd-video.is-playing .rd-video-play { opacity: 0; pointer-events: none; }
html.rd .video-caption { text-align: center; margin-top: 1rem !important; font-size: .875rem !important; color: var(--muted) !important; }
html:not(.rd) .rd-video-play { display: none; }
@media (max-width: 700px) {
  html.rd .rd-video.video-container { border-radius: 18px !important; }
  html.rd .rd-video-play span { width: 64px; height: 64px; }
  html.rd .rd-video-play span::before { border-width: 10px 0 10px 16px; }
}
@media (max-width: 1100px) { html.rd .rd-nav-ig { margin-left: auto !important; } html.rd .rd-nav-ig + .rd-nav-cta { margin-left: .25rem !important; } }
/* header tra 900 e 1200 px: voci su una riga sola */
html.rd .menu-item > a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1200px) {
  html.rd nav .menu { gap: 1.1rem !important; }
  html.rd .menu-item > a { font-size: .875rem !important; }
  html.rd .rd-nav-cta { padding-left: 1rem !important; padding-right: 1rem !important; font-size: .8125rem !important; }
  html.rd .rd-nav-ig { width: 36px; height: 36px; margin-right: .35rem !important; }
}
@media (min-width: 901px) and (max-width: 1060px) { html.rd .rd-nav-ig { display: none; } }
@media (min-width: 901px) and (max-width: 1240px) {
  html.rd header nav { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  html.rd .menu-item > a { padding: .5rem .55rem !important; font-size: .875rem !important; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  html.rd .menu-item > a { padding: .5rem .4rem !important; font-size: .8125rem !important; }
  html.rd .rd-nav-cta { padding: .6rem .9rem !important; }
}
@media (min-width: 901px) and (max-width: 960px) {
  html.rd header nav { padding-left: 1rem !important; padding-right: 1rem !important; }
  html.rd .menu-item > a { padding: .5rem .32rem !important; font-size: .78rem !important; }
  html.rd .rd-nav-cta { padding: .55rem .8rem !important; font-size: .75rem !important; }
}
html.rd .rd-video-play { background: radial-gradient(circle at 50% 50%, rgba(15,27,54,.18), rgba(15,27,54,0) 60%) !important; }

/* Pompe di calore: partner Aira + video del partner in un'unica sezione */
html.rd main .rd-aira .rd-aira-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
html.rd main .rd-aira .rd-aira-head .partner-title { margin: 0 !important; }
html.rd main .rd-aira-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; max-width: 1200px; margin: 0 auto; }
html.rd main .rd-aira-video { display: flex; flex-direction: column; justify-content: center; }
html.rd main .rd-aira-video .video-caption { text-align: left !important; margin: .9rem .25rem 0 !important; }
html.rd main .rd-aira-partner .partner-card {
  height: 100%; display: flex !important; flex-direction: column; align-items: flex-start !important; justify-content: center; text-align: left !important;
  padding: clamp(1.75rem, 3vw, 2.5rem) !important; border-radius: 24px !important; background: #fff !important;
  border: 1px solid var(--line) !important; box-shadow: 0 1px 2px rgba(15,27,54,.04), 0 30px 60px -44px rgba(15,27,54,.45) !important; transform: none !important;
}
html.rd main .rd-aira-partner .partner-logo { height: 46px !important; width: auto !important; margin: 0 0 1.5rem !important; object-fit: contain; }
html.rd main .rd-aira-partner .partner-badge { margin: 0 0 .9rem !important; }
html.rd main .rd-aira-partner .partner-card h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem) !important; margin: 0 0 .6rem !important; text-align: left !important; color: var(--ink) !important; }
html.rd main .rd-aira-partner .partner-card p { color: var(--muted) !important; font-size: 1rem !important; line-height: 1.65 !important; margin: 0 0 1.75rem !important; text-align: left !important; }
html.rd main .rd-aira-partner .partner-btn { margin-top: auto; }
html.rd main .rd-aira-partner .partner-card:hover { transform: none !important; }
@media (max-width: 900px) {
  html.rd main .rd-aira-grid { grid-template-columns: 1fr; gap: 16px; }
  html.rd main .rd-aira-partner .partner-card { padding: 1.5rem !important; border-radius: 20px !important; }
  html.rd main .rd-aira-partner .partner-logo { height: 38px !important; margin-bottom: 1.1rem !important; }
  html.rd main .rd-aira-partner .partner-btn { margin-top: 0; }
}
html.rd main section.rd-aira > .rd-aira-grid { width: 100%; max-width: 1200px !important; }
html.rd main .rd-aira-partner { display: flex; }
html.rd main .rd-aira-partner .partner-card.partner-card { width: 100% !important; max-width: none !important; flex: 1; }
html.rd main .rd-aira .rd-aira-head .rd-eyebrow { display: inline-flex !important; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); margin-bottom: .9rem; }
html.rd main .rd-aira .rd-aira-head .rd-eyebrow::before, html.rd main .rd-aira .rd-aira-head .rd-eyebrow::after { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--orange); }
html.rd main .rd-aira .rd-aira-head .partner-title { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem) !important; line-height: 1.1 !important; max-width: 22ch; margin-inline: auto !important; }
html.rd main .rd-aira .rd-aira-head .partner-title em { font-style: italic; font-weight: 500; color: var(--orange); }

/* ======================================================================
   FINESTRELLA "CONSULENZA GRATUITA" — compatta, discreta, premium
   ====================================================================== */
html.rd .popup-consulenza.popup-consulenza {
  position: fixed !important; left: 24px !important; right: auto !important; bottom: 96px !important; top: auto !important; z-index: 90 !important;
  width: 340px !important; max-width: calc(100vw - 32px) !important; padding: 18px 18px 16px !important; margin: 0 !important;
  border-radius: 22px !important; background: rgba(255,255,255,.97) !important; border: 1px solid var(--line) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 2px rgba(15,27,54,.05), 0 24px 60px -24px rgba(15,27,54,.45) !important;
  opacity: 0 !important; visibility: hidden !important; transform: translateY(18px) scale(.98) !important; transform-origin: bottom left;
  transition: opacity 380ms cubic-bezier(.22,1,.36,1), transform 600ms cubic-bezier(.22,1,.36,1), visibility 0s linear 600ms !important;
  display: grid !important; grid-template-columns: 1fr; gap: 0; overflow: hidden;
}
html.rd .popup-consulenza.popup-consulenza.visible { opacity: 1 !important; visibility: visible !important; transform: none !important; transition-delay: 0s !important; }
/* intestazione chiara (niente più fascia blu) */
html.rd .popup-consulenza .popup-header { display: flex !important; align-items: center; gap: 12px; padding: 0 36px 0 0 !important; margin: 0 0 12px !important; background: none !important; border: 0 !important; }
html.rd .popup-consulenza .popup-avatar {
  position: relative; width: 44px !important; height: 44px !important; flex: none; border-radius: 50% !important; margin: 0 !important;
  background: var(--navy) url('icone/avatar-96.webp') center / cover no-repeat !important; box-shadow: none !important; border: 0 !important;
}
html.rd .popup-consulenza .popup-avatar > i { display: none !important; }
html.rd .popup-consulenza .popup-status-dot {
  position: absolute !important; right: -1px !important; bottom: -1px !important; top: auto !important; left: auto !important;
  width: 12px !important; height: 12px !important; border-radius: 50%; background: #2BB673 !important; border: 2px solid #fff !important; box-shadow: none !important;
}
html.rd .popup-consulenza .popup-status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(43,182,115,.35); animation: rd-pulse 2.4s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes rd-pulse { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
html.rd .popup-consulenza .popup-header-text { display: grid; gap: 1px; }
html.rd .popup-consulenza .popup-header-text strong { font: 600 1rem/1.2 'Fraunces', 'Fraunces Fallback', serif !important; color: var(--ink) !important; }
html.rd .popup-consulenza .popup-header-text span { font-size: .78rem !important; color: var(--muted) !important; }
/* chiudi */
html.rd .popup-consulenza .popup-close-x {
  position: absolute !important; top: 14px !important; right: 14px !important; width: 30px !important; height: 30px !important; border-radius: 50% !important;
  display: grid !important; place-items: center; padding: 0 !important; border: 0 !important; background: var(--paper-2) !important; color: var(--muted) !important;
  font-size: 1.15rem !important; line-height: 1 !important; cursor: pointer; transition: background-color 200ms, color 200ms, scale 100ms !important;
}
html.rd .popup-consulenza .popup-close-x:hover { background: var(--line) !important; color: var(--ink) !important; }
html.rd .popup-consulenza .popup-close-x:active { scale: .92; }
/* testo e azioni */
html.rd .popup-consulenza .popup-message { margin: 0 0 14px !important; padding: 0 !important; font-size: .9375rem !important; line-height: 1.55 !important; color: var(--ink-2, #2A3550) !important; }
html.rd .popup-consulenza .popup-btn-primary {
  display: flex !important; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin: 0 !important; padding: .85rem 1rem !important;
  border-radius: 999px !important; background: var(--orange-cta) !important; color: #fff !important; font-weight: 600 !important; font-size: .9375rem !important;
  box-shadow: 0 10px 24px -12px rgba(201,78,20,.7) !important; text-decoration: none !important; transition: background-color 200ms, scale 100ms !important;
}
html.rd .popup-consulenza .popup-btn-primary:hover { background: var(--orange-cta-hover) !important; }
html.rd .popup-consulenza .popup-btn-primary:active { scale: .98; }
html.rd .popup-consulenza .popup-link-faq {
  display: flex !important; justify-content: center; align-items: center; gap: .35rem; margin: 10px 0 0 !important; padding: 0 !important;
  font-size: .8125rem !important; color: var(--muted) !important; text-decoration: none !important;
}
html.rd .popup-consulenza .popup-link-faq:hover { color: var(--navy) !important; }
/* telefono: piccolo pannello in basso, con maniglia */
@media (max-width: 700px) {
  html.rd .popup-consulenza.popup-consulenza {
    left: 10px !important; right: 10px !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; width: auto !important; max-width: none !important;
    padding: 20px 16px 14px !important; border-radius: 22px !important; transform: translateY(110%) !important; transform-origin: bottom center;
  }
  html.rd .popup-consulenza.popup-consulenza.visible { transform: none !important; }
  html.rd .popup-consulenza::before { content: ''; position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 36px; height: 4px; border-radius: 4px; background: var(--line-strong); }
  html.rd .popup-consulenza .popup-message { font-size: .875rem !important; margin-bottom: 12px !important; }
  html.rd .popup-consulenza .popup-avatar { width: 40px !important; height: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.rd .popup-consulenza.popup-consulenza { transform: none !important; transition: opacity 200ms, visibility 0s linear 200ms !important; }
  html.rd .popup-consulenza .popup-status-dot::after { animation: none; }
}
html.rd.m3d-lock .popup-consulenza { display: none !important; }
/* firma discreta in coda ai diritti riservati */
html.rd .site-footer .footer-copyright .rd-sign { font-size: .625rem; letter-spacing: .02em; color: rgba(255,255,255,.38) !important; margin-left: .35rem; white-space: nowrap; }
html.rd .site-footer .footer-copyright .rd-sign::before { content: '·'; margin-right: .35rem; }
html:not(.rd) .rd-sign { font-size: .65em; opacity: .5; }

/* foto del condominio nelle schede: inquadrata su tetto e pannelli */
html.rd :is(.rd-card-media, .rd-tl-media, .rd-b-media) img[src="IMG_n_condominio.webp"] { object-position: 50% 22% !important; }
