/* ==========================================================================
   IMPES — foglio di stile
   Colori del marchio: rosso logo #F9351B, arancio #FF9046, blu notte #122A48
   ========================================================================== */

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #F9351B;
  --orange: #FF9046;
  --navy: #122A48;
  --navy-800: #0F2440;
  --navy-900: #0A1A2F;
  --navy-950: #06101E;
  --blue: #24589B;
  --ice: #7FD3FF;
  --text: #1B2A3B;
  --muted: #5E6B7B;
  --line: #DDE3EA;
  --mist: #EEF2F7;
  --bg: #F7F9FC;
  --white: #fff;

  --grad-brand: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  --acc-1: #9BE0FF;
  --acc-2: #3E8BFF;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 30px 60px -30px rgba(10, 26, 47, .35), 0 12px 24px -12px rgba(10, 26, 47, .12);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(84px, 11vw, 150px);
  --header-h: 116px;
}
html[data-mode="heat"] {
  --acc-1: #FFC285;
  --acc-2: #F9351B;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--navy-950); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
/* L'overflow del body passa alla finestra e su telefono non impedisce alla pagina di allargarsi:
   aloni e fascia inclinata che escono di lato vanno tagliati qui (clip non crea uno scorrimento interno). */
main { overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); }
/* niente parola sola sull'ultima riga: titoli con righe bilanciate, testi senza «vedove» */
h1, h2, h3, h4, .h2, .h3 { text-wrap: balance; }
p, li, figcaption, summary { text-wrap: pretty; }
button, .btn { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--xs { width: .8em; height: .8em; stroke-width: 2.4; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--mist { background: var(--mist); }
.section--compact { padding-block: clamp(48px, 6vw, 72px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); text-wrap: balance;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.kicker--light { color: var(--orange); }
.h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
/* nelle sezioni a due colonne il titolo ha metà spazio: un po' più piccolo */
.intro .h2, .seasons .h2, .calc .h2, .faq .h2 { font-size: clamp(32px, 3.7vw, 52px); }
.hl { white-space: nowrap; }
.nw { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.025em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--muted); }
.section--dark .lead { color: rgba(255, 255, 255, .7); }
.note { font-size: 14px; color: var(--muted); }
.grad-text {
  font-style: normal;
  background: linear-gradient(90deg, var(--acc-1), var(--acc-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: --acc-1 .8s, --acc-2 .8s;
}
.hl {
  background: linear-gradient(transparent 62%, rgba(255, 144, 70, .38) 62%) no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.1s var(--ease-out) .35s;
}
.hl--cool { background-image: linear-gradient(transparent 62%, rgba(62, 139, 255, .28) 62%); }
.is-in .hl, .is-in.hl { background-size: 100% 100%; }
.no-js .hl { background-size: 100% 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.link-arrow .i { transition: transform .3s var(--ease); color: var(--red); }
.link-arrow:hover .i { transform: translateX(5px); }

.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--navy); }
.checks a { color: inherit; text-decoration-color: rgba(249, 53, 27, .45); text-underline-offset: 4px; }
.checks a:hover { color: var(--red); }
.checks .i {
  width: 24px; height: 24px; padding: 4px; border-radius: 50%;
  color: #fff; background: var(--grad-brand); stroke-width: 2.6; margin-top: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 24px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .i { transition: transform .35s var(--ease); }
/* telefoni stretti: un pulsante con un testo lungo va a capo invece di uscire dal bordo */
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { --pad: 10px 18px; font-size: 15px; }
.btn--lg { --pad: 18px 30px; font-size: 17px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 14px 30px -12px rgba(249, 53, 27, .7);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 40%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(249, 53, 27, .75); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost-light {
  color: #fff; background: rgba(12, 30, 54, .55);
  border: 1px solid rgba(255, 255, 255, .22);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.btn--ghost { color: var(--navy); background: transparent; border: 1.5px solid rgba(18, 42, 72, .18); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---------- Logo ---------- */
.logo { width: auto; height: 38px; }
.logo__mark { fill: var(--red); }
.logo__word { fill: currentColor; }
.logo__stroke { fill: none; stroke: currentColor; stroke-width: 6; }
.logo-mark { fill: var(--red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 30, .55), rgba(6, 16, 30, 0));
  transition: opacity .3s;
}
/* sfondo pieno, senza backdrop-filter: la sfocatura sopra il canvas animato costava un ricalcolo a ogni fotogramma */
.site-header.is-scrolled {
  background: #081426; /* pieno: con la trasparenza si intravedevano i testi che scorrono sotto */
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 20px 40px -24px rgba(0, 0, 0, .5);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__bar { height: 72px; }
.brand { display: inline-flex; color: #fff; }
/* logo grande appena si entra nel sito; quando l'intestazione scorre con la pagina torna compatto */
.brand .logo { height: 84px; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand .logo { height: 46px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .96);
  /* le voci stanno sopra l'animazione dell'aria: un'ombra morbida le stacca dallo sfondo che si muove */
  text-shadow: 0 1px 10px rgba(6, 16, 30, .6), 0 0 2px rgba(6, 16, 30, .35);
  transition: color .25s, background-color .25s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-left: 2px;
}
.has-mega .nav__link .i { transition: transform .3s var(--ease); }
.has-mega:hover .nav__link .i, .has-mega:focus-within .nav__link .i { transform: rotate(45deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(760px, 90vw);
  padding: 16px; border-radius: 26px;
  background: #fff; color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(6, 16, 30, .55), 0 0 0 1px rgba(18, 42, 72, .06);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px; text-decoration: none;
  transition: background-color .2s;
}
.mega__link:hover { background: var(--mist); }
.mega__link .i {
  width: 44px; height: 44px; padding: 11px; border-radius: 13px;
  color: var(--red); background: rgba(249, 53, 27, .08);
  transition: background .25s, color .25s;
}
.mega__link:hover .i { color: #fff; background: var(--grad-brand); }
.mega__link b { display: block; font-size: 15px; color: var(--navy); }
.mega__link small { display: block; font-size: 13px; color: var(--muted); }
.mega__cta {
  display: flex; align-items: center; gap: 14px; margin-top: 10px;
  padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--blue));
}
.mega__cta span { flex: 1; }
.mega__cta b { display: block; }
.mega__cta small { color: rgba(255, 255, 255, .7); }
.mega__cta .i:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: #fff;
  text-shadow: 0 1px 10px rgba(6, 16, 30, .6);
}
.header-phone .i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.burger {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1; overflow-y: auto;
  padding: calc(var(--header-h) + 12px) 0 40px;
  background: radial-gradient(900px 500px at 100% 0, rgba(36, 88, 155, .45), transparent 60%), var(--navy-950);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin: 8px 0 10px; }
.mobile-menu__services { display: grid; gap: 2px; }
.mobile-menu__services .mega__link { padding: 10px 6px; color: #fff; }
.mobile-menu__services .mega__link:hover { background: rgba(255, 255, 255, .06); }
.mobile-menu__services .mega__link b { color: #fff; }
.mobile-menu__services .mega__link small { color: rgba(255, 255, 255, .55); }
.mobile-menu__services .mega__link .i { background: rgba(255, 255, 255, .07); color: var(--orange); }
.mobile-menu__main { margin: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu__main--top { margin: 0 0 14px; border-top: 0; }
.mobile-menu__main a {
  display: block; padding: 16px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 24px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.02em;
}
.mobile-menu__cta { display: grid; gap: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-a: rgba(36, 88, 155, .55);
  --hero-b: rgba(127, 211, 255, .12);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 40px;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 85% -10%, var(--hero-a), transparent 62%),
    radial-gradient(800px 520px at -5% 105%, var(--hero-b), transparent 60%),
    linear-gradient(180deg, #071427 0%, var(--navy-900) 55%, #0C2139 100%);
  transition: --hero-a 1s, --hero-b 1s;
}
html[data-mode="heat"] .hero {
  --hero-a: rgba(249, 53, 27, .38);
  --hero-b: rgba(255, 144, 70, .16);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  /* flusso più tenue dietro al testo, pieno a destra */
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .55) 10%, rgba(0, 0, 0, .7) 42%, #000 70%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, .55) 10%, rgba(0, 0, 0, .7) 42%, #000 70%);
}
@media (max-width: 1024px) {
  .hero__canvas { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), #000 75%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), #000 75%); }
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 16, 30, .75), transparent);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
}
.hero .kicker { color: rgba(255, 255, 255, .8); letter-spacing: .1em; }
.hero .kicker::before { display: none; }
.pulse {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3BE08A;
  box-shadow: 0 0 0 0 rgba(59, 224, 138, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(59, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 224, 138, 0); } }
.hero__title {
  font-size: clamp(42px, 6.6vw, 96px); line-height: .98; letter-spacing: -.045em;
  color: #fff; font-weight: 800;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title .line:nth-child(4) > span { animation-delay: .36s; }
@keyframes line-up { to { transform: none; } }
.hero__title .grad-text { padding-right: .06em; }
.hero__lead { max-width: 600px; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .74); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__widget { justify-self: end; width: 100%; max-width: 400px; }

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.trust li {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px 4px 0; font-size: 15px; color: rgba(255, 255, 255, .72);
}
.trust li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.trust .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--orange); background: rgba(255, 255, 255, .06); }
.trust__num { font-size: 40px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; }

/* ---------- Mini telecomando ---------- */
.remote {
  --t1: #9BE0FF; --t2: #3E8BFF;
  position: relative; padding: 20px;
  border-radius: 30px;
  /* niente backdrop-filter: sta sopra il canvas animato */
  background: linear-gradient(165deg, rgba(20, 44, 76, .92), rgba(8, 20, 38, .9));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fff;
}
.remote[data-mode="heat"] { --t1: #FFC285; --t2: #F9351B; }
.remote[data-mode="dry"] { --t1: #A9F2E5; --t2: #22B3A2; }
.remote[data-mode="fan"] { --t1: #F2F5FA; --t2: #9FB2C8; }
.remote[data-mode="auto"] { --t1: #CCD3FF; --t2: #6F7BFF; }
.remote__top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.remote__live {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3BE08A; background: rgba(59, 224, 138, .12);
}
.remote__live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.remote.is-off .remote__live { color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); }
.remote.is-off .remote__live i { animation: none; }
.remote__power {
  margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #3BE08A;
  box-shadow: 0 0 18px -2px rgba(59, 224, 138, .55); transition: color .3s, box-shadow .3s, background .3s;
}
.remote__power[aria-pressed="false"] { color: rgba(255, 255, 255, .55); box-shadow: none; }
.remote__power:hover { background: rgba(255, 255, 255, .12); }

.remote__dial { position: relative; width: 196px; aspect-ratio: 1; margin: 14px auto 6px; transition: opacity .4s; }
.remote__ring { width: 100%; height: 100%; transform: rotate(135deg); }
.remote__track, .remote__arc { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 75 100; }
.remote__track { stroke: rgba(255, 255, 255, .1); }
.remote__arc { stroke: url(#remote-grad); stroke-dasharray: var(--arc, 40) 100; transition: stroke-dasharray .8s var(--ease-out), opacity .3s; filter: drop-shadow(0 0 10px var(--t2)); }
.remote[data-mode="fan"] .remote__arc, .remote.is-off .remote__arc { opacity: 0; }
.remote__stop1 { stop-color: var(--t1); transition: stop-color .8s; }
.remote__stop2 { stop-color: var(--t2); transition: stop-color .8s; }
.remote__readout { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.remote__temp { font-size: 60px; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.remote__temp sup { font-size: 20px; font-weight: 500; vertical-align: 28px; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.remote__readout small { margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
/* icone di ventola, oscillazione, Eco e Notte: in basso, nell'apertura dell'anello, mai sopra al tratto */
.remote__ind { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; white-space: nowrap; pointer-events: none; }
.remote__ind li { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .22); transition: color .3s; }
.remote__ind li.on { color: var(--t1); }
.remote__ind .i { width: 15px; height: 15px; max-width: none; }
.remote__fan-ic { animation: spin var(--fan-dur, 1.2s) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.remote.is-off .remote__fan-ic { animation-play-state: paused; }
.remote.is-off .remote__dial { opacity: .45; }
.remote__btn {
  position: absolute; bottom: 2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .25s, transform .2s;
}
.remote__btn:hover { background: rgba(255, 255, 255, .18); }
.remote__btn:active { transform: scale(.92); }
.remote__btn--minus { left: -26px; }
.remote__btn--plus { right: -26px; }

.remote__modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.remote__modes button {
  display: grid; justify-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .6); transition: background .25s, color .25s, border-color .25s;
}
.remote__modes .i { width: 20px; height: 20px; }
.remote__modes button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.remote__modes button[aria-pressed="true"] { color: var(--navy-950); border-color: transparent; background: linear-gradient(135deg, #fff, var(--t1)); }
.remote__row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.remote__label { flex: none; width: 58px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.remote__speeds { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.remote__speeds button { padding: 7px 0; border: 0; border-radius: 9px; background: transparent; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); transition: background .25s, color .25s; }
.remote__speeds button:hover { color: #fff; }
.remote__speeds button[aria-pressed="true"] { color: var(--navy-950); background: var(--t1); }
.remote__toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.remote__toggles button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); transition: color .25s, border-color .25s, background .25s;
}
.remote__toggles .i { width: 16px; height: 16px; }
.remote__toggles button[aria-pressed="true"] { color: #fff; border-color: var(--t2); background: rgba(255, 255, 255, .1); }
.remote__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.remote__stats > div { padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.remote__stats small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.remote__stats b { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.remote__load { display: flex !important; align-items: flex-end; gap: 3px; height: 20px; }
.remote__load i { width: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.remote__load i:nth-child(1) { height: 30%; }
.remote__load i:nth-child(2) { height: 45%; }
.remote__load i:nth-child(3) { height: 60%; }
.remote__load i:nth-child(4) { height: 80%; }
.remote__load i:nth-child(5) { height: 100%; }
.remote__load i.on { background: linear-gradient(var(--t1), var(--t2)); }
.remote__note { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.remote__note .i { color: var(--t1); }
.remote__note a { color: rgba(255, 255, 255, .85); font-weight: 600; }

/* "Imposta per me": temperatura in casa → impostazioni automatiche */
.remote__smart {
  margin-top: 10px; padding: 10px 10px 10px 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1);
}
.remote__smart-q { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.remote__smart-row { display: flex; align-items: center; gap: 8px; }
.remote__stepper { display: inline-flex; align-items: center; flex: none; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .28); }
.remote__stepper button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: #fff; transition: background-color .2s; }
.remote__stepper button:hover { background: rgba(255, 255, 255, .12); }
.remote__stepper button:active { transform: scale(.92); }
.remote__stepper .i { width: 16px; height: 16px; }
.remote__stepper output { min-width: 42px; font-size: 17px; font-weight: 700; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
.remote__auto {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 38px; padding: 0 12px;
  border: 0; border-radius: 12px; font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--navy-950);
  background: linear-gradient(135deg, #fff, var(--t1)); box-shadow: 0 10px 20px -12px var(--t2);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.remote__auto:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -12px var(--t2); }
.remote__auto .i { width: 18px; height: 18px; }
.remote__auto.is-busy .i { animation: spin 1s linear infinite; }
.remote__why { margin-top: 10px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .8); animation: remote-why .4s var(--ease-out) both; }
.remote__why[hidden] { display: none; }
@keyframes remote-why { from { opacity: 0; transform: translateY(4px); } }
/* il tasto che "si preme da solo" durante l'impostazione automatica */
.remote .is-pulse { animation: remote-press .42s var(--ease-out); }
@keyframes remote-press {
  0% { transform: scale(.9); box-shadow: 0 0 0 0 var(--t1); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { transform: none; }
}

/* meteo reale */
.remote__meteo { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.remote__meteo a { color: rgba(255, 255, 255, .85); font-weight: 600; }
.remote__note[hidden] { display: none; }
.remote__num { display: none; }
.remote__credit { margin-top: 5px; padding-left: 24px; font-size: 11px; color: rgba(255, 255, 255, .42); }
.remote__credit[hidden] { display: none; }
.remote__credit a { color: rgba(255, 255, 255, .6); text-decoration-color: rgba(255, 255, 255, .25); }
.remote__meteo[hidden] { display: none; }
.remote__meteo > .i { width: 16px; height: 16px; color: var(--t1); }
.remote__place { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.remote__place b { font-weight: 700; color: #fff; }
.remote__geo {
  flex: none; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: none;
  font-size: 12.5px; font-weight: 700; color: #fff; transition: background-color .2s, border-color .2s;
}
.remote__geo:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.remote__geo:disabled { opacity: .6; }
.remote__geo[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.remote__zona { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; transition: opacity .2s; }
.remote__zona[hidden] { display: none; }
.remote__zona.is-busy { opacity: .55; pointer-events: none; }
.remote__zona input {
  flex: 1; min-width: 0; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  background: rgba(255, 255, 255, .07); font: inherit; font-size: 16px; line-height: 1.3; color: #fff;
}
.remote__zona input::placeholder { color: rgba(255, 255, 255, .5); }
.remote__zona input:focus { outline: none; border-color: var(--t1); background: rgba(255, 255, 255, .11); }
.remote__zona button { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: var(--grad-brand); }
.remote__zona .remote__zona-gps { display: inline-grid; place-items: center; padding: 0; width: 36px; border: 1px solid rgba(255, 255, 255, .25); background: none; }
.remote__zona-gps .i { width: 16px; height: 16px; }
.remote__zona-tip { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.remote__zona-tip[hidden] { display: none; }
.remote__zona-tip button { margin: 5px 2px 0 0; padding: 4px 11px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }

@media (min-width: 1025px) {
  .remote { padding: 18px 18px 16px; }
  .remote__dial { width: 172px; margin: 8px auto 2px; }
  .remote__temp { font-size: 52px; }
  .remote__temp sup { font-size: 18px; vertical-align: 24px; }
  .remote__btn { bottom: -2px; width: 38px; height: 38px; }
  .remote__btn--minus { left: -22px; }
  .remote__btn--plus { right: -22px; }
  .remote__modes { margin-top: 10px; }
  .remote__modes button { padding: 7px 2px 6px; }
  .remote__row { margin-top: 8px; }
  .remote__toggles { margin-top: 8px; }
  .remote__toggles button { padding: 7px 4px; }
  .remote__stats { margin-top: 8px; }
  .remote__stats > div { padding: 6px 10px; }
}

/* lo split sopra i comandi: solo quando l'hero va in colonna (telefono e tablet) */
.remote__unit { display: none; }
@keyframes unit-flap { 50% { transform: scaleY(.45); } }
@media (max-width: 1024px) {
  .remote__unit { position: relative; display: block; height: 150px; margin: 14px -20px -6px; }
  .unit {
    position: relative; z-index: 1; width: 72%; max-width: 300px; height: 44px; margin: 0 auto;
    border-radius: 14px 14px 20px 20px;
    background: linear-gradient(180deg, #FDFEFF 0%, #E7EDF4 68%, #D3DCE7 100%);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .75), inset 0 1px 0 #fff;
  }
  .unit__brand { position: absolute; left: 16px; top: 11px; font-size: 9.5px; font-weight: 800; letter-spacing: .18em; color: #97A5B6; }
  .unit__led { position: absolute; right: 16px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--t2); box-shadow: 0 0 8px 1px var(--t2); transition: background-color .4s, box-shadow .4s; }
  .unit__flap {
    position: absolute; left: 7%; right: 7%; bottom: 5px; height: 6px; border-radius: 0 0 6px 6px;
    background: linear-gradient(180deg, #7F8FA3, #C8D2DD); transform-origin: 50% 0; transition: transform .5s var(--ease);
  }
  .remote.is-swing .unit__flap { animation: unit-flap 2.2s ease-in-out infinite; }
  .remote.is-off .unit__flap { transform: scaleY(.3); animation: none; }
  .remote.is-off .unit__led { background: #B5C1CE; box-shadow: none; }
  .unit__air {
    position: absolute; left: 0; top: 40px; width: 100%; height: calc(100% - 40px);
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent);
  }
}
/* telefono: tutto il telecomando in una schermata, tra l'intestazione e la barra dei pulsanti */
@media (max-width: 640px) {
  .remote { padding: 14px 14px 12px; border-radius: 24px; }
  .remote__top { font-size: 13px; }
  .remote__live { padding: 3px 9px; font-size: 11px; }
  .remote__power { width: 36px; height: 36px; }
  .remote__unit { height: 100px; margin: 8px -14px -12px; }
  .unit { width: 64%; height: 34px; border-radius: 11px 11px 16px 16px; }
  .unit__brand { top: 8px; left: 12px; font-size: 8.5px; }
  .unit__led { top: 10px; right: 12px; width: 5px; height: 5px; }
  .unit__flap { bottom: 4px; height: 5px; }
  .unit__air { top: 30px; height: calc(100% - 30px); }
  .remote__dial { width: 150px; margin: 0 auto; }
  .remote__track, .remote__arc { stroke-width: 11; }
  .remote__temp { font-size: 42px; }
  .remote__temp sup { font-size: 15px; vertical-align: 19px; }
  .remote__readout small { margin-top: 2px; font-size: 11.5px; }
  .remote__btn { bottom: 4px; width: 38px; height: 38px; }
  .remote__btn--minus { left: -46px; }
  .remote__btn--plus { right: -46px; }
  .remote__smart { margin-top: 8px; padding: 9px 9px 9px 12px; border-radius: 16px; }
  .remote__smart-q { margin-bottom: 6px; font-size: 12.5px; }
  .remote__stepper button { width: 30px; height: 30px; }
  .remote__stepper output { min-width: 38px; font-size: 16px; }
  .remote__auto { height: 36px; font-size: 13.5px; }
  .remote__modes { gap: 5px; margin-top: 8px; }
  .remote__modes button { gap: 2px; padding: 6px 1px 5px; border-radius: 12px; }
  .remote__modes .i { width: 18px; height: 18px; }
  .remote__row { gap: 8px; margin-top: 8px; }
  .remote__label { width: 52px; font-size: 11px; }
  .remote__speeds button { padding: 6px 0; font-size: 12px; }
  .remote__toggles { gap: 5px; margin-top: 6px; }
  .remote__toggles button { gap: 5px; padding: 6px 2px; font-size: 12px; }
  .remote__toggles .i { width: 15px; height: 15px; }
  .remote__stats { gap: 5px; margin-top: 6px; }
  .remote__stats > div { padding: 5px 9px; border-radius: 12px; }
  .remote__stats small { font-size: 11px; }
  .remote__stats b { font-size: 15px; }
  .remote__load { height: 17px; }
  .remote__meteo { gap: 6px; margin-top: 7px; font-size: 12.5px; }
  .remote__geo { padding: 4px 10px; font-size: 12px; }
}
/* telefoni bassi (es. 360×740): split e quadrante più piccoli, domanda e riquadri del meteo in una riga */
@media (max-width: 640px) and (max-height: 800px) {
  .remote__unit { height: 84px; }
  .remote__dial { width: 128px; }
  .remote__temp { font-size: 36px; }
  .remote__temp sup { font-size: 13px; vertical-align: 16px; }
  .remote__readout small { font-size: 11px; }
  .remote__btn { width: 34px; height: 34px; }
  .remote__btn--minus { left: -44px; }
  .remote__btn--plus { right: -44px; }
  .remote__smart-q { display: none; }
  .remote__stepper::before { content: "In casa"; padding: 0 4px 0 8px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .6); }
  .remote__stats { display: none; }
  .remote__num { display: inline; font-weight: 700; color: #fff; }
}
@media (max-width: 380px) {
  .remote__auto-x { display: none; }
  .remote__auto { padding: 0 10px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  padding: 18px 0;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 24px 50px -24px rgba(249, 53, 27, .6);
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 20px; opacity: .7; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro .lead { margin-top: 24px; max-width: 580px; }
.features { display: grid; gap: 22px; margin: 38px 0 34px; }
.features li { display: flex; gap: 18px; align-items: flex-start; }
.features__ic {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  color: var(--red); background: #fff; box-shadow: 0 10px 24px -14px rgba(10, 26, 47, .35), 0 0 0 1px var(--line);
}
.features__ic .i { width: 26px; height: 26px; }
.features h3 { font-size: 19px; margin-bottom: 4px; }
.features p { color: var(--muted); font-size: 16px; }
.intro__media { position: relative; min-height: 560px; }
.media { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--main { inset: 0 0 60px 60px; }
.media--side { left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 6px solid var(--bg); }
.badge-years {
  position: absolute; right: -14px; top: 40px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 22px;
  color: #fff; background: var(--navy-900); box-shadow: var(--shadow);
}
.badge-years b { font-size: 44px; line-height: 1; letter-spacing: -.04em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-years span { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Services (bento)
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { max-width: 720px; }
.section-head__aside { max-width: 400px; color: var(--muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  grid-template-areas:
    "clima clima vent vmc"
    "clima clima vent pdc"
    "cond  gen   assist cons";
}
.svc--clima { grid-area: clima; }
.svc--pdc { grid-area: pdc; }
.svc--vent { grid-area: vent; }
.svc--cond { grid-area: cond; }
.svc--vmc { grid-area: vmc; }
.svc--gen { grid-area: gen; }
.svc--assist { grid-area: assist; }
.svc--cons { grid-area: cons; }

.svc {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  background: var(--navy-900);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 45%);
  transition: opacity .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -35px rgba(10, 26, 47, .6); }
.svc:hover::after { opacity: 1; }
.svc__img { position: absolute; inset: 0; z-index: -1; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc:hover .svc__img img { transform: scale(1.07); }
.svc__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 30, .12) 0%, rgba(6, 16, 30, .4) 35%, rgba(6, 16, 30, .8) 60%, rgba(6, 16, 30, .95) 100%);
}
.svc__body { position: relative; z-index: 2; padding: clamp(22px, 2.4vw, 32px); }
.svc__ic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px;
  color: #fff; background: rgba(6, 16, 30, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .4s;
}
.svc:hover .svc__ic { background: var(--grad-brand); }
.svc h3 { font-size: clamp(21px, 1.7vw, 26px); color: #fff; margin-bottom: 8px; }
.svc--clima h3 { font-size: clamp(28px, 3vw, 44px); }
.svc p { font-size: 15.5px; color: rgba(255, 255, 255, .78); max-width: 460px; }
.svc--clima p { font-size: 17px; }
.svc__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 14px; font-weight: 700; color: #fff; opacity: .85;
}
.svc__more .i { transition: transform .35s var(--ease); }
.svc:hover .svc__more .i { transform: translate(3px, -3px); }
.svc--plain { background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.svc--plain h3 { color: var(--navy); }
.svc--plain p { color: var(--muted); }
.svc--plain .svc__more { color: var(--red); }
.svc--plain .svc__ic { color: var(--red); background: rgba(249, 53, 27, .08); }
.svc--plain:hover .svc__ic { color: #fff; }
.svc--plain::after { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 144, 70, .14), transparent 45%); }
.svc--dark { background: linear-gradient(150deg, var(--navy), var(--navy-900)); box-shadow: none; }
.svc--dark h3 { color: #fff; }
.svc--dark p { color: rgba(255, 255, 255, .72); }
.svc--dark .svc__more { color: var(--orange); }
.svc--dark .svc__ic { color: #fff; background: rgba(255, 255, 255, .1); }

/* ==========================================================================
   Brands
   ========================================================================== */
.brands { padding: clamp(24px, 4vw, 48px) 0 clamp(8px, 2vw, 24px); }
.brands__title {
  margin-bottom: 22px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.brands__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px clamp(26px, 4vw, 56px);
  padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 40px);
  border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.brands__list li {
  font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap;
  color: #7C8A9C; transition: color .3s;
}
.brands__list li:hover { color: var(--navy); }

/* ==========================================================================
   Seasons compare
   ========================================================================== */
.seasons__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.seasons .lead { margin-top: 24px; }
.compare {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 32px; box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__layer::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; }
.compare__layer--cold img { filter: saturate(.85) hue-rotate(-8deg) brightness(1.03); }
.compare__layer--cold::after { background: linear-gradient(160deg, rgba(62, 139, 255, .75), rgba(127, 211, 255, .45)); }
.compare__layer--warm { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__layer--warm img { filter: saturate(1.2) sepia(.25) brightness(1.02); }
.compare__layer--warm::after { background: linear-gradient(160deg, rgba(249, 53, 27, .7), rgba(255, 179, 107, .55)); }
.compare__tag {
  position: absolute; top: 20px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(6, 16, 30, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.compare__tag--warm { left: 20px; }
.compare__tag--cold { right: 20px; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .3); pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; transform: translate(-50%, -50%);
  color: var(--navy); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.compare__handle span::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.compare__handle .i { transform: none; }
.compare__range { position: absolute; inset: auto 0 0; width: 100%; opacity: 0; height: 1px; pointer-events: none; }
.compare__range:focus-visible ~ .compare__handle span { outline: 3px solid var(--orange); outline-offset: 4px; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { overflow: hidden; }
.process__glow {
  position: absolute; inset: -30% -10% auto; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(36, 88, 155, .45), transparent);
}
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 66px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange), rgba(255, 255, 255, .15));
  transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out) .2s;
}
.steps.is-in::before, .no-js .steps::before { transform: scaleX(1); }
.step {
  position: relative; padding: 28px 24px 30px; border-radius: 24px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 144, 70, .35); transform: translateY(-4px); }
.step__n {
  position: absolute; top: 18px; right: 22px;
  font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .25);
}
.step__ic {
  position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 26px;
}
.step__ic .i {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px; flex: none;
  color: #fff; background: var(--grad-brand); box-shadow: 0 12px 30px -10px rgba(249, 53, 27, .7);
}
.step__ic { width: 52px; height: 52px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: rgba(255, 255, 255, .66); }

/* ==========================================================================
   Sectors
   ========================================================================== */
.sectors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector {
  overflow: hidden; border-radius: var(--radius); background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.sector__img { aspect-ratio: 16 / 11; overflow: hidden; }
.sector__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.sector:hover .sector__img img { transform: scale(1.06); }
.sector__body { position: relative; padding: 34px 28px 30px; }
.sector__ic {
  position: absolute; top: -28px; left: 28px; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 18px; color: #fff; background: var(--grad-brand); box-shadow: 0 14px 30px -12px rgba(249, 53, 27, .7);
}
.sector__ic .i { width: 26px; height: 26px; }
.sector h3 { font-size: 26px; margin: 8px 0 14px; }
.sector li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.sector li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ==========================================================================
   BTU calculator
   ========================================================================== */
.calc__grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 90px); align-items: center; }
.calc .lead { margin-top: 22px; }
.calc .note { margin-top: 24px; max-width: 520px; }
.calc-card {
  padding: clamp(22px, 3vw, 34px); border-radius: 32px; background: #fff;
  box-shadow: 0 50px 90px -40px rgba(10, 26, 47, .45), 0 0 0 1px rgba(18, 42, 72, .05);
}
.calc-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.calc-card__head b { display: block; font-size: 18px; color: var(--navy); }
.calc-card__head small { color: var(--muted); font-size: 14px; }
.calc-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--grad-brand); }
.range { margin-bottom: 22px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.range label { font-weight: 600; color: var(--navy); font-size: 15px; }
.range output { font-weight: 800; font-size: 18px; color: var(--red); font-variant-numeric: tabular-nums; }
input[type="range"] {
  --fill: 50%;
  width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--red), var(--orange) var(--fill), var(--mist) var(--fill));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--mist); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--grad-brand); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 7px solid var(--red); box-shadow: 0 6px 16px -4px rgba(249, 53, 27, .6);
  transition: transform .2s;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 7px solid var(--red);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.seg { margin: 0 0 20px; padding: 0; border: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--navy); }
.seg__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--mist); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center; min-height: 44px; padding: 8px 6px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--muted); cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.seg input:checked + span { color: var(--navy); background: #fff; box-shadow: 0 6px 16px -8px rgba(10, 26, 47, .35); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 1px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; font-weight: 600; font-size: 15px; color: var(--navy); }
.stepper { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--mist); }
.stepper button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: 0 4px 10px -6px rgba(10, 26, 47, .4); }
.stepper output { min-width: 32px; text-align: center; font-size: 18px; font-weight: 800; }
.calc-result {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 8px; border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
}
.calc-result > div { padding: 16px 18px; border-radius: 16px; }
.calc-result small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); }
.calc-result__main b { display: block; margin: 2px 0; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-result__main em { font-style: normal; font-size: .45em; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.calc-result__size { background: rgba(255, 255, 255, .08); }
.calc-result__size b { display: block; margin-top: 4px; font-size: 22px; color: var(--orange); }
.calc-card__hint { margin: 14px 4px 18px; font-size: 14px; color: var(--muted); min-height: 1.6em; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__intro .lead { margin-top: 22px; }
.faq__intro a { color: var(--red); font-weight: 600; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.qa[open] { box-shadow: 0 0 0 1px rgba(249, 53, 27, .25), 0 20px 40px -26px rgba(10, 26, 47, .35); }
.qa summary {
  position: relative; display: block; padding: 22px 66px 22px 26px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 16px; height: 2px; border-radius: 2px;
  background: var(--red); transition: transform .35s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0); }
.qa__a { padding: 0 26px 24px; color: var(--muted); }
.qa__a a { color: var(--red); font-weight: 600; }

/* ==========================================================================
   Where
   ========================================================================== */
.where { padding-top: 0; }
.where__grid {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 36px; background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.where__card { padding: clamp(28px, 5vw, 64px); }
.where__card .h3 { margin-bottom: 28px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: var(--red); background: rgba(249, 53, 27, .08); }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.contact-list .contact-list__note { margin-top: 2px; font-size: 12.5px; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.where__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.where__map {
  position: relative; min-height: 420px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(36, 88, 155, .45), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-950));
}
.where__map::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.radar { position: absolute; inset: 0; display: grid; place-items: center; }
.radar__ring {
  position: absolute; width: 120px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 144, 70, .5); animation: ring 4.5s var(--ease-out) infinite;
}
.radar__ring:nth-child(2) { animation-delay: 1.5s; }
.radar__ring:nth-child(3) { animation-delay: 3s; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(4.2); opacity: 0; } }
.radar__sweep {
  position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 144, 70, .28), transparent 22%);
  animation: sweep 6s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 70%); mask-image: radial-gradient(circle, #000 55%, transparent 70%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar__pin {
  position: relative; z-index: 2; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 20px 40px rgba(0, 0, 0, .4);
}
.radar__pin .logo-mark { width: 40px; height: 40px; }
.radar__label {
  position: absolute; top: calc(50% + 56px); left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; padding: var(--section) 0 28px; background: var(--navy-950); color: rgba(255, 255, 255, .66); }
.footer-glow {
  position: absolute; left: 50%; top: -260px; width: 1100px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(249, 53, 27, .32), rgba(255, 144, 70, .12) 50%, transparent);
}
.footer-cta { position: relative; text-align: center; padding-bottom: clamp(56px, 8vw, 100px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-cta .kicker { justify-content: center; }
.footer-cta__title { font-size: clamp(36px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.04em; color: #fff; }
.footer-cta .grad-text { background-image: var(--grad-brand); }
.footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand .logo { height: 44px; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 15px; }
.footer-title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contacts a { text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contacts a:hover { color: #fff; }
.footer-contacts { display: grid; gap: 14px; font-size: 15px; }
.footer-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contacts .i { margin-top: 2px; color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px;
}
.credit a { color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(90deg, var(--orange), var(--orange)) no-repeat 0 100% / 0 1px; transition: background-size .3s; }
.credit a:hover { background-size: 100% 1px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.footer-badges .i { width: 16px; height: 16px; color: var(--orange); }
.sector h3 a { color: inherit; text-decoration: none; }
.sector h3 a::after { content: " →"; color: var(--red); opacity: 0; transition: opacity .3s; }
.sector:hover h3 a::after { opacity: 1; }

/* ---------- Preventivo in 60 secondi (wizard) ---------- */
.btn--wa { color: #fff; background: #25D366; box-shadow: 0 14px 30px -12px rgba(18, 140, 60, .6); }
.btn--wa:hover { background: #1FBE5B; transform: translateY(-2px); }
.wiz {
  position: relative; padding: clamp(20px, 2.6vw, 30px); border-radius: 28px;
  background: #fff; color: var(--text);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(18, 42, 72, .06);
}
.wiz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wiz__head b { display: block; font-size: 19px; color: var(--navy); letter-spacing: -.01em; }
.wiz__head small { font-size: 13.5px; color: var(--muted); }
.wiz__count { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--red); background: rgba(249, 53, 27, .08); font-variant-numeric: tabular-nums; }
.wiz__count:empty { display: none; }
.wiz__bar { height: 6px; margin: 16px 0 20px; overflow: hidden; border-radius: 6px; background: var(--mist); }
.wiz__bar i { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--grad-brand); transition: width .45s var(--ease); }
.wiz__q { margin-bottom: 14px; font-size: clamp(19px, 1.9vw, 23px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.wiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wiz__opts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.wiz__opt {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px;
  border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.25; text-align: left; color: var(--navy);
  transition: border-color .2s, background-color .2s, transform .15s;
}
.wiz__opt:hover { border-color: var(--red); background: #FFF6F2; }
.wiz__opt:active { transform: scale(.98); }
.wiz__opt.is-on { border-color: var(--red); background: #FFF0EA; }
.wiz__opt .i { width: 24px; height: 24px; color: var(--red); }
.wiz__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.wiz__back { padding: 6px 0; border: 0; background: none; font-weight: 700; color: var(--muted); }
.wiz__back:hover { color: var(--navy); }
.wiz__trust { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: var(--muted); }
.wiz__trust .i { width: 16px; height: 16px; color: #1E9E6A; }
.wiz__fields { display: grid; gap: 12px; }
.wiz__fields label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.wiz__fields small { font-weight: 400; color: var(--muted); }
.wiz__fields input, .wiz__fields textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--text); outline: none; -webkit-appearance: none; appearance: none;
}
.wiz__fields textarea { min-height: 110px; resize: vertical; }
.wiz__fields input:focus, .wiz__fields textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 88, 155, .14); }
.wiz .consent { margin: 14px 0; }
.wiz__send { display: grid; gap: 10px; }
.wiz__done { padding: 8px 0 4px; text-align: center; }
.wiz__done p:not(.wiz__q) { color: var(--muted); }
.wiz__ok {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #1E9E6A, #3CCB8F); box-shadow: 0 14px 30px -10px rgba(30, 158, 106, .6);
}
.wiz__ok .i { width: 34px; height: 34px; stroke-width: 2.6; }
.wiz__link { display: inline-block; margin-top: 14px; font-weight: 700; color: #1E9E6A; }
.wiz-noscript { padding: 22px; border-radius: 20px; background: #fff; color: var(--text); }

.wiz-section__grid { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(36px, 6vw, 90px); align-items: center; }
.wiz-section .lead { margin-top: 22px; }
.wiz-section__alt { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, .65); }
.wiz-section__alt a { color: #fff; font-weight: 700; }
.checks--light li { color: #fff; }

.page-hero--wizard .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero--wizard .page-hero__title { font-size: clamp(38px, 4.8vw, 68px); }
.page-hero--wizard .page-hero__lead { font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- "Lavoriamo per" / callout / partner ---------- */
.for-who { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.for-who .kicker { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; color: var(--navy); }
.callout {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; border-radius: 18px;
  background: #FFF6F2; border: 1px solid rgba(249, 53, 27, .18);
}
.callout .i { flex: none; width: 26px; height: 26px; margin-top: 2px; color: var(--red); }
.callout p { font-size: 15.5px; color: #3D4B5C; }
.callout b { color: var(--navy); }
.callout a { color: var(--red); font-weight: 600; }
.services__more { margin-top: clamp(36px, 5vw, 56px); }
.intro__text .link-arrow { margin-top: 26px; }
.services__more .kicker { margin-bottom: 14px; }

/* ---------- Cosa prevede la legge ---------- */
.laws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.law { display: flex; flex-direction: column; padding: 28px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.law__ref { margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.law h3 { margin-bottom: 8px; font-size: 20px; }
.law > p:not([class]) { margin-bottom: 22px; font-size: 15.5px; color: var(--muted); }
.law__fine { margin-top: auto; padding: 16px 18px; border-radius: 16px; background: #FFF6F2; border: 1px solid rgba(249, 53, 27, .18); }
.law__fine small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.law__fine b { display: block; margin: 2px 0 4px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.law__fine span { display: block; font-size: 14px; line-height: 1.45; color: #3D4B5C; }
.legge__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 22px 26px; border-radius: 22px; background: var(--mist); }
.legge__cta p { max-width: 660px; color: #3D4B5C; }
.legge__cta b { color: var(--navy); }
.legge__cta .btn { flex: none; }
.legge__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.legge .h2 { text-wrap: balance; }
/* le quattro parti delle schede (norma, titolo, testo, sanzione) allineate tra le colonne */
@supports (grid-template-rows: subgrid) {
  .laws { grid-auto-rows: auto; }
  .law { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .law__fine { margin-top: 0; }
}
.partner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.partner .h3 { margin-bottom: 10px; }
.partner p:not(.kicker) { max-width: 640px; color: var(--muted); }
.partner__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Mappa (si carica al clic) ---------- */
/* sfondo: mappa OpenStreetMap ricolorata (scripts/mappa.py), con la sede al centro del radar */
.map-embed {
  position: absolute; inset: 0; overflow: hidden;
  background:
    url("../img/mappa-sede.webp") 50% calc(50% - 45px) / cover no-repeat,
    var(--navy-950);
}
.map-embed::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% calc(50% - 45px), transparent 30%, rgba(6, 16, 30, .78) 100%);
}
.map-embed__credit {
  position: absolute; left: 12px; top: 10px; z-index: 3; font-size: 11px; color: rgba(255, 255, 255, .5); text-decoration: none;
}
.map-embed__credit:hover { color: #fff; }
.map-embed__ph { position: absolute; inset: 0; }
.map-embed .radar { bottom: 90px; }
.map-embed__cta {
  position: absolute; left: 16px; right: 16px; bottom: 22px; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
}
.map-embed__cta small { flex-basis: 100%; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.map-embed iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
.map-embed.is-loaded .map-embed__ph { display: none; }
.where__map { position: relative; min-height: 440px; overflow: hidden; }
.map-wide { position: relative; height: clamp(360px, 42vw, 480px); overflow: hidden; border-radius: 32px; box-shadow: var(--shadow); }
.section--no-top { padding-top: 0; }

/* ---------- Pagina contatti: modulo classico apribile ---------- */
.contact__main { display: grid; gap: 18px; }
.classic { border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.classic > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy);
}
.classic > summary::-webkit-details-marker { display: none; }
.classic > summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--red); transition: transform .3s var(--ease); }
.classic[open] > summary::after { transform: rotate(45deg); }
.classic .form-card { box-shadow: none; padding-top: 0; }

/* ---------- Barra contatti su telefono ---------- */
.cta-bar { display: none; }
@media (max-width: 760px) {
  /* Su telefono la barra sostituisce il pulsante WhatsApp flottante (che "ballava" con la barra del browser). */
  .cta-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px; border-radius: 20px;
    background: rgba(8, 20, 38, .95); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translateZ(0); will-change: transform; /* livello proprio: niente sobbalzi allo scorrimento */
  }
  .cta-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border-radius: 14px; font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none;
  }
  .cta-bar .i { width: 20px; height: 20px; }
  .cta-bar__wa { background: #25D366; }
  .cta-bar__main { background: var(--grad-brand); }
  /* lo spazio per la barra sta nel piè di pagina (scuro), non nel body (chiaro): niente fascia bianca in fondo */
  .site-footer { padding-bottom: calc(28px + 84px + env(safe-area-inset-bottom)); }
  body.no-scroll .cta-bar { display: none; }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; height: 58px; padding: 0 15px; border-radius: 999px;
  color: #fff; background: #25D366; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 60, .65);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.8s infinite;
}
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(18, 140, 60, .7); }
.wa-float__ic { width: 28px; height: 28px; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), margin .45s var(--ease); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 220px; margin: 0 4px 0 10px; }
body.no-scroll .wa-float { opacity: 0; pointer-events: none; }
/* su telefono c'è la barra contatti in basso, che include WhatsApp */
@media (max-width: 760px) { .wa-float { display: none; } }
/* da tablet in su: spazio in fondo al piè di pagina, così la riga con P.IVA e crediti non resta sotto i pulsanti flottanti */
@media (min-width: 761px) { .site-footer { padding-bottom: calc(28px + 150px + env(safe-area-inset-bottom)); } }

/* ---------- Chat a opzioni ("Preventivo in chat") ---------- */
.no-js .chat-root { display: none; }
.chat-launch {
  position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 41;
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  color: #fff; background: var(--grad-brand); font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(249, 53, 27, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .25s;
}
.chat-launch .i { width: 24px; height: 24px; }
.chat-launch:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(249, 53, 27, .7); }
.chat-teaser {
  position: fixed; right: 20px; bottom: calc(158px + env(safe-area-inset-bottom)); z-index: 41;
  width: 290px; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 50px -20px rgba(6, 16, 30, .45), 0 0 0 1px rgba(18, 42, 72, .08);
  animation: chat-teaser-in .6s var(--ease-out) both;
}
.chat-teaser[hidden] { display: none; }
.chat-teaser::after {
  content: ""; position: absolute; right: 34px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px;
  background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px -3px rgba(6, 16, 30, .15);
}
.chat-teaser__body { display: grid; gap: 4px; width: 100%; padding: 16px 40px 16px 18px; border: 0; background: none; text-align: left; }
.chat-teaser__body b { font-size: 15.5px; color: var(--navy); }
.chat-teaser__body span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.chat-teaser__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.chat-teaser__x:hover { background: var(--mist); color: var(--navy); }
.chat-teaser__x .i { width: 16px; height: 16px; }
@keyframes chat-teaser-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
html.chat-open .wa-float, html.chat-open .chat-launch,
html.form-focus .wa-float, html.form-focus .chat-launch, html.form-focus .chat-teaser { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 40px));
  height: min(660px, calc(100vh - 40px)); height: min(660px, calc(100dvh - 40px));
  overflow: hidden; border-radius: 26px; background: var(--bg);
  box-shadow: 0 40px 90px -30px rgba(6, 16, 30, .6), 0 0 0 1px rgba(18, 42, 72, .08);
  transform-origin: 100% 100%;
}
.chat[hidden] { display: none; }
.chat.is-in { animation: chat-in .38s var(--ease-out) both; }
.chat.is-out { animation: chat-out .2s ease-in both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes chat-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes chat-up { from { transform: translateY(100%); } }
@keyframes chat-down { to { transform: translateY(100%); } }

.chat__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 10px 14px 16px; color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--blue));
}
.chat__avatar { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.chat__avatar svg { width: 22px; height: 22px; fill: var(--red); }
.chat__title { flex: 1; min-width: 0; line-height: 1.25; }
.chat__title b { display: block; font-size: 16px; }
.chat__title small { display: block; overflow: hidden; font-size: 12.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; text-overflow: ellipsis; }
.chat__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: rgba(255, 255, 255, .85); transition: background-color .2s, color .2s; }
.chat__icon:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.chat__icon[hidden] { display: none; }
.chat__icon .i { width: 22px; height: 22px; }

.chat__log {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 14px;
}
.chat__msg { display: flex; }
.chat__msg--me { justify-content: flex-end; }
.chat__msg--me, .chat__msg--me + .chat__msg { margin-top: 6px; }
.chat__msg.is-new { animation: chat-msg-in .32s var(--ease-out) both; }
@keyframes chat-msg-in { from { opacity: 0; transform: translateY(8px); } }
.chat__bubble { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.chat__msg--bot .chat__bubble { color: var(--text); background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px rgba(18, 42, 72, .07), 0 2px 6px -3px rgba(18, 42, 72, .12); }
.chat__msg--me .chat__bubble { color: #fff; background: var(--navy); border-bottom-right-radius: 6px; }
.chat__sum { display: grid; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.chat__sum li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 10px; }
.chat__sum span { color: var(--muted); }
.chat__sum b { font-weight: 600; color: var(--navy); }
.chat__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; color: var(--navy); background: var(--mist);
  transition: transform .2s var(--ease), background-color .2s;
}
.chat__link:hover { transform: translateY(-1px); }
.chat__link .i { width: 18px; height: 18px; }
.chat__link--wa { color: #fff; background: #25D366; }
.chat__link--tel { color: #fff; background: var(--grad-brand); }
.chat__typing .chat__bubble { display: inline-flex; gap: 5px; padding: 15px 16px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA8B8; animation: chat-dot 1.1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat__opts { display: grid; gap: 8px; width: min(100%, 330px); margin: 6px 0 2px auto; animation: chat-msg-in .32s var(--ease-out) both; }
.chat__opt {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 16px;
  border: 1.5px solid rgba(249, 53, 27, .32); background: #fff;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; color: var(--navy);
  transition: border-color .2s, background-color .2s, transform .15s;
}
.chat__opt:hover { border-color: var(--red); background: #FFF6F2; }
.chat__opt:active { transform: scale(.98); }
.chat__opt .i { width: 20px; height: 20px; color: var(--red); }
.chat__opt--main { color: #fff; border-color: transparent; background: var(--grad-brand); box-shadow: 0 10px 22px -12px rgba(249, 53, 27, .7); }
.chat__opt--main:hover { border-color: transparent; background: var(--grad-brand); }
.chat__opt--main .i { color: #fff; }
.chat__back {
  display: inline-flex; align-items: center; gap: 6px; justify-self: end; padding: 6px 4px; border: 0; background: none;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.chat__back:hover { color: var(--navy); }
.chat__back .i { width: 16px; height: 16px; }

.chat__dock { flex: none; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.chat__dock:empty { display: none; }
.chat__form { display: grid; gap: 8px; }
.chat__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chat__tools .chat__back { margin-left: auto; }
.chat__row { display: flex; align-items: flex-end; gap: 8px; }
.chat__input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); outline: none; -webkit-appearance: none; appearance: none; resize: none;
}
textarea.chat__input { height: 48px; max-height: 132px; }
.chat__input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 88, 155, .14); }
.chat__input[aria-invalid="true"] { border-color: var(--red); }
.chat__send { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; color: #fff; background: var(--grad-brand); transition: transform .15s; }
.chat__send:active { transform: scale(.94); }
.chat__send .i { width: 22px; height: 22px; }
.chat__seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--mist); }
.chat__seg button { padding: 6px 14px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.chat__seg button[aria-pressed="true"] { color: var(--navy); background: #fff; box-shadow: 0 1px 3px rgba(18, 42, 72, .14); }
.chat__skip { padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--navy); transition: border-color .2s; }
.chat__skip:hover { border-color: var(--navy); }
.chat__err { font-size: 13.5px; font-weight: 600; color: #A3261A; }
.chat__err[hidden] { display: none; }
.chat__fine { font-size: 12.5px; color: var(--muted); }
.chat__fine a { color: var(--navy); font-weight: 600; }

@media (max-width: 760px) {
  .chat-launch, .chat-teaser { display: none; }
  /* telefono: a tutto schermo; altezza e posizione seguono l'area visibile quando compare la tastiera */
  .chat {
    top: var(--vvt, 0px); right: 0; bottom: auto; left: 0; width: 100%;
    height: 100vh; height: var(--vvh, 100dvh); border-radius: 0; box-shadow: none;
  }
  .chat.is-in { animation: chat-up .34s var(--ease-out) both; }
  .chat.is-out { animation: chat-down .22s ease-in both; }
  .chat__head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat__opts { width: min(100%, 360px); }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(64px, 8vw, 110px);
  color: #fff;
  background:
    radial-gradient(900px 480px at 90% -20%, rgba(36, 88, 155, .55), transparent 62%),
    radial-gradient(700px 400px at -10% 120%, rgba(249, 53, 27, .18), transparent 60%),
    linear-gradient(180deg, #071427, var(--navy-900));
}
.page-hero .hero__grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); }
.page-hero .hero__canvas { -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .45), #000 75%); mask-image: linear-gradient(100deg, rgba(0, 0, 0, .45), #000 75%); }
.page-hero__title { max-width: 900px; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; color: #fff; }
.page-hero__lead { max-width: 640px; margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .74); }
.page-hero .hero__actions { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split--rev .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Officina e uffici (chi siamo) ---------- */
.sede { margin-top: clamp(80px, 10vw, 140px); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery__item { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--mist); }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 12 / 5; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; background: rgba(8, 20, 38, .72);
}
.split__media--icon {
  display: grid; place-items: center; aspect-ratio: 5 / 4;
  background: radial-gradient(circle at 30% 20%, rgba(36, 88, 155, .6), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-950));
}
.split__media--icon .i { width: 120px; height: 120px; stroke-width: 1.2; color: var(--orange); opacity: .9; }
.split__num {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7);
}
.split .h2 { font-size: clamp(30px, 3.4vw, 48px); }
.split .lead { margin-top: 20px; }
.split .checks { margin-top: 24px; }
.split .btn { margin-top: 32px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.split__actions .btn { margin-top: 0; }
.split p + p { margin-top: 14px; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(56px, 7vw, 90px); }
.toc a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--navy);
  background: #fff; box-shadow: 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s;
}
.toc a .i { color: var(--red); transition: color .25s; }
.toc a:hover { color: #fff; background: var(--navy); box-shadow: none; }
.toc a:hover .i { color: var(--orange); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.values--3 { grid-template-columns: repeat(3, 1fr); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .88);
  background: rgba(12, 30, 54, .6); border: 1px solid rgba(255, 255, 255, .13);
}
.hero-badges .i { width: 17px; height: 17px; color: var(--orange); }
@media (min-width: 600px) { .page-hero--wizard .hero-badges { display: grid; grid-template-columns: repeat(2, max-content); justify-items: start; } }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.related .toc { margin: 0; }
.related__title { margin-right: 10px; font-weight: 700; color: var(--navy); }
.value { padding: 30px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.value .i { width: 52px; height: 52px; padding: 13px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: var(--grad-brand); }
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { font-size: 15.5px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 34px 28px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.stat b { display: block; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -.05em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { display: block; margin-top: 10px; font-size: 17px; color: rgba(255, 255, 255, .75); }
.stat--word b { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -.035em; padding-block: .1em; }
@media (min-width: 641px) and (max-width: 1024px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { display: grid; grid-template-columns: 15rem minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .stat > span { margin-top: 0; }
}
/* «Prioritario» è scritto più piccolo: stessa altezza delle altre cifre, così le descrizioni partono alla stessa riga */
@media (min-width: 641px) { .stat--word b { display: flex; align-items: flex-end; height: clamp(48px, 6vw, 80px); padding-block: 0; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: #fff; box-shadow: 0 50px 90px -45px rgba(10, 26, 47, .45), 0 0 0 1px rgba(18, 42, 72, .05); }
.form-card .h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--text); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122A48' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 46px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 88, 155, .14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; font-size: 14.5px; color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.consent a { color: var(--navy); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { color: #0E6B45; background: #E3F7EE; }
.form-status--err { color: #A3261A; background: #FDECEA; }
.form-card.is-sent .fields, .form-card.is-sent .consent, .form-card.is-sent .btn { display: none; }
.info-card { position: sticky; top: 100px; padding: 34px 30px; border-radius: 32px; color: rgba(255, 255, 255, .75); background: linear-gradient(160deg, var(--navy), var(--navy-950)); }
.info-card .h3 { color: #fff; margin-bottom: 26px; }
.info-card .contact-list a, .info-card .contact-list span { color: #fff; }
.info-card .contact-list small { color: rgba(255, 255, 255, .55); }
.info-card .contact-list__ic { color: var(--orange); background: rgba(255, 255, 255, .08); }
.info-card .btn { margin-top: 28px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin: 44px 0 14px; font-size: 26px; }
.prose h3 { margin: 28px 0 10px; font-size: 19px; }
.prose p, .prose li { color: #3D4B5C; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--red); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: 15px; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf__code { font-size: clamp(110px, 22vw, 260px); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .page-hero__lead { margin-inline: auto; }
.nf .hero__actions { justify-content: center; }

/* ==========================================================================
   Transizione tra le pagine: alette del climatizzatore
   ========================================================================== */
.veil {
  --dur-in: .3s; --dur-out: .42s; --stagger: 18ms;
  position: fixed; inset: 0; z-index: 300; pointer-events: none; visibility: hidden;
  display: grid; grid-template-rows: repeat(10, 1fr); perspective: 1600px;
}
.veil i {
  display: block; margin-bottom: -1px; /* niente fessure tra un'aletta e l'altra */
  background: linear-gradient(180deg, #10263F 0%, #0A1A2F 55%, #07111F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotateX(90deg); transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform;
}
.veil__mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.veil__mark svg { width: 58px; height: 58px; fill: var(--red); }
.veil.is-covering, html.veil-hold .veil { visibility: visible; pointer-events: auto; }
.veil.is-covering i { animation: louver-close var(--dur-in) cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--n) * var(--stagger)); }
.veil.is-covering .veil__mark { opacity: 1; transition-delay: .25s; }
html.veil-hold .veil i { transform: none; }
html.veil-hold .veil.is-opening i { animation: louver-open var(--dur-out) cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--n) * var(--stagger)); }
@keyframes louver-close { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
@keyframes louver-open { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
/* sicure: se lo script della pagina non parte, o la navigazione non va a buon fine, il velo sparisce comunque */
html.veil-hold .veil { animation: veil-failsafe 0s linear 3s forwards; }
.veil.is-covering { animation: veil-failsafe 0s linear 8s forwards; }
@keyframes veil-failsafe { to { visibility: hidden; pointer-events: none; } }
@media (hover: none) { .veil { --dur-in: .22s; --dur-out: .3s; --stagger: 12ms; } }
@media (prefers-reduced-motion: reduce) { .veil { display: none; } }

/* ==========================================================================
   Transizione tra le pagine: "soffio d'aria" (site.json → "transizione": "aria")
   La pagina nuova entra con un'onda morbida da sinistra, come l'aria del climatizzatore, mentre la vecchia
   arretra appena. È il browser a farla (View Transitions): il clic non viene rallentato e dove non è
   supportata si cambia pagina normalmente. Intestazione e pulsanti sono uguali nelle due pagine, quindi
   scorrono con la pagina senza notarsi: niente elementi "fermi", che in alcune versioni di Chrome si deformano.
   ========================================================================== */
::view-transition-group(root) { animation-duration: .62s; }
/* sovrapposizione normale: di serie il browser somma le due immagini (effetto doppia esposizione) */
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
/* la vecchia pagina resta ferma sotto; la nuova la copre con un'onda dal bordo morbido: ciò che è uguale
   nelle due pagine (intestazione, pulsanti) non si muove di un pixel */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: vt-soffio .62s cubic-bezier(.3, .6, .25, 1) both;
  -webkit-mask-image: linear-gradient(100deg, #000 43%, rgba(0, 0, 0, .5) 48%, transparent 53%);
  mask-image: linear-gradient(100deg, #000 43%, rgba(0, 0, 0, .5) 48%, transparent 53%);
  -webkit-mask-size: 270% 100%; mask-size: 270% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@keyframes vt-soffio {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* la scia d'aria sul bordo dell'onda: un elemento vuoto e trasparente, presente in ogni pagina, il cui "gruppo"
   durante la transizione sta sopra alle pagine e porta una striscia luminosa allineata al bordo dell'onda */
.vt-soffio { position: fixed; inset: 0; z-index: -1; pointer-events: none; view-transition-name: soffio; }
::view-transition-group(soffio) {
  animation: vt-raffica .62s cubic-bezier(.3, .6, .25, 1) both;
  background: linear-gradient(100deg, transparent 41%, rgba(127, 211, 255, .16) 45.5%, rgba(222, 245, 255, .55) 48.5%, rgba(127, 211, 255, .16) 51.5%, transparent 56%) 100% 0 / 270% 100% no-repeat;
}
html[data-mode="heat"]::view-transition-group(soffio) {
  background-image: linear-gradient(100deg, transparent 41%, rgba(255, 144, 70, .16) 45.5%, rgba(255, 224, 196, .55) 48.5%, rgba(255, 144, 70, .16) 51.5%, transparent 56%);
}
::view-transition-old(soffio), ::view-transition-new(soffio) { display: none; }
@keyframes vt-raffica { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (hover: none) {
  ::view-transition-group(root), ::view-transition-new(root), ::view-transition-group(soffio) { animation-duration: .46s; }
}

/* ==========================================================================
   Cursore personalizzato (solo mouse): punto + anello con ventola
   ========================================================================== */
:root { --c-cursor: #2F7BFF; }
html[data-mode="heat"] { --c-cursor: #F9351B; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html.has-cursor textarea, html.has-cursor select { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; will-change: transform; transition: opacity .2s; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c-cursor); box-shadow: 0 0 12px var(--c-cursor); }
.cursor-ring {
  display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid var(--c-cursor); color: var(--c-cursor); opacity: .55;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s, background-color .25s;
}
.cursor-ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
html.cursor-hover .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; opacity: 1; background: rgba(255, 255, 255, .08); }
html.cursor-hover .cursor-ring svg { opacity: 1; animation: spin .9s linear infinite; }
html.cursor-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
html.cursor-text .cursor-dot, html.cursor-text .cursor-ring,
html.cursor-out .cursor-dot, html.cursor-out .cursor-ring, html.cursor-idle .cursor-ring { opacity: 0; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1200px) {
  .trust { grid-template-columns: repeat(4, minmax(max-content, 1fr)); }
  .trust li > span { white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .trust li { gap: 10px; padding-right: 12px; font-size: 14px; }
  .trust li + li { padding-left: 16px; }
  .trust .i { width: 34px; height: 34px; padding: 8px; }
  .trust__num { font-size: 34px; }
}
@media (max-width: 1180px) {
  .nav, .header-phone span { display: none; }
  .burger { display: inline-block; }
  .site-header__actions { margin-left: auto; }
  .header-phone .i { width: 42px; height: 42px; padding: 11px; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__widget { justify-self: start; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .intro__grid, .seasons__grid, .calc__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__media { min-height: 0; aspect-ratio: 5 / 4; max-width: 640px; }
  .faq__intro { position: static; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "clima clima" "vent vmc" "pdc cond" "gen assist" "cons cons";
  }
  .svc--clima { min-height: 440px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .sectors__grid { grid-template-columns: 1fr 1fr; }
  .sectors__grid .sector:last-child { grid-column: 1 / -1; }
  .where__grid { grid-template-columns: 1fr; }
  .where__map { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__media { order: 0; }
  .values, .values--3 { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .info-card { position: static; }
  .wiz-section__grid, .page-hero--wizard .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero--wizard .page-hero__form { max-width: none; }
  .partner { flex-direction: column; align-items: flex-start; }
  .laws { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__item:nth-child(2) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .legge__cta { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
}
@media (max-width: 640px) {
  :root { --header-h: 84px; }
  body { font-size: 16px; }
  .brand .logo { height: clamp(46px, 15vw, 60px); }
  .site-header.is-scrolled .site-header__bar { height: 64px; }
  .site-header.is-scrolled .brand .logo { height: 40px; }
  .site-header__actions .btn--primary { display: none; }
  .stat.stat--word b { font-size: 36px; }
  .sede { margin-top: 64px; }
  .gallery { gap: 10px; }
  .gallery__item, .gallery__item--wide { border-radius: 18px; }
  .gallery__item--wide { aspect-ratio: 16 / 9; }
  .gallery__item:nth-child(n+3) { aspect-ratio: 1 / 1; }
  .gallery__item figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; font-size: 12.5px; }
  .law { padding: 22px 20px; border-radius: 20px; }
  .legge__cta { padding: 20px; }
  .legge__cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .btn--lg { --pad: 16px 24px; font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__widget { max-width: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li { padding: 18px 10px 4px 0; font-size: 14px; gap: 10px; }
  .trust li + li { padding-left: 14px; }
  .trust li:nth-child(3) { padding-left: 0; }
  .trust .i { width: 34px; height: 34px; padding: 8px; }
  .trust__num { font-size: 32px; }
  .intro__media { aspect-ratio: 1 / 1.05; }
  .media--main { inset: 0 0 50px 34px; }
  .badge-years { right: 8px; top: 16px; padding: 12px 14px; }
  .badge-years b { font-size: 34px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "clima" "vent" "vmc" "pdc" "cond" "gen" "assist" "cons"; grid-auto-rows: minmax(230px, auto); }
  .svc--clima { min-height: 380px; }
  .compare { aspect-ratio: 4 / 5; border-radius: 26px; }
  .compare__tag { top: 14px; font-size: 13px; padding: 6px 11px; }
  .compare__tag--warm { left: 14px; }
  .compare__tag--cold { right: 14px; }
  .steps { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
  .seg span { font-size: 13px; }
  .qa summary { font-size: 16.5px; padding: 20px 56px 20px 20px; }
  .qa summary::before, .qa summary::after { right: 22px; }
  .qa__a { padding: 0 20px 22px; }
  .where__grid { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .values, .values--3, .stats { grid-template-columns: 1fr; }
  .wiz__opts { grid-template-columns: 1fr; }
  .wiz__opt { min-height: 54px; }
  .remote__modes span { font-size: 10.5px; }
  .fields { grid-template-columns: 1fr; }
  .split__num { font-size: 56px; }
}

/* ---------- Telefono: pagine più corte, stessa sostanza ---------- */
@media (max-width: 640px) {
  :root { --section: 64px; }
  /* servizi in home: i 3 principali restano grandi, gli altri diventano tessere a due colonne */
  .bento {
    grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto;
    grid-template-areas: "clima clima" "vent vent" "vmc vmc" "pdc cond" "gen assist" "cons cons";
  }
  .svc--vent, .svc--vmc { min-height: 250px; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) { min-height: 0; border-radius: 20px; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) :is(.svc__img, p) { display: none; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) .svc__body { padding: 16px 16px 14px; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) .svc__ic { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) h3 { margin: 0; font-size: 16.5px; line-height: 1.2; }
  .svc:is(.svc--pdc, .svc--cond, .svc--gen, .svc--assist, .svc--cons) .svc__more { margin-top: 8px; font-size: 13px; }
  /* metodo: icona a sinistra, numero piccolo */
  .steps { gap: 12px; }
  .step { padding: 20px 18px 20px 78px; }
  .step__ic { position: absolute; top: 20px; left: 18px; width: 44px; height: 44px; margin: 0; }
  .step__ic .i { width: 44px; height: 44px; padding: 11px; border-radius: 14px; }
  .step__n { top: 14px; right: 16px; font-size: 30px; }
  .step h3 { margin-bottom: 6px; padding-right: 34px; font-size: 18px; }
  .step p { font-size: 15px; }
  /* settori: foto più basse */
  .sectors__grid { gap: 14px; }
  .sector__img { aspect-ratio: 16 / 8; }
  .sector__body { padding: 30px 20px 16px; }
  .sector__ic { top: -24px; left: 20px; width: 48px; height: 48px; border-radius: 15px; }
  .sector h3 { margin: 6px 0 10px; font-size: 22px; }
  .sector li { padding: 7px 0 7px 20px; font-size: 15px; }
  .sector li::before { top: 16px; }
  /* schede e numeri */
  .values, .stats { gap: 12px; }
  .value { padding: 20px 18px; border-radius: 20px; }
  .value .i { width: 44px; height: 44px; margin-bottom: 12px; padding: 11px; border-radius: 14px; }
  .value h3 { margin-bottom: 6px; font-size: 18px; }
  .value p { font-size: 15px; }
  .stat { padding: 20px; border-radius: 20px; }
  .stat b { font-size: 44px; }
  .stat > span { margin-top: 6px; font-size: 15.5px; }
  /* pagine dei servizi: foto più basse, sezioni più vicine */
  .split__media { aspect-ratio: 16 / 10; }
  .split + .split { margin-top: 64px; }
  .split .btn { margin-top: 24px; }
  /* elenco dei servizi a pillole: una riga che scorre di lato */
  .toc { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; }
  /* «Altri servizi» in fondo alle pagine: le 3 pillole vanno a capo, così si vedono tutte */
  .related .toc { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .related .toc a { flex: initial; }
  /* mappa: più spazio, pulsanti uno sotto l'altro, nessuna sovrapposizione con il segnaposto */
  .where__map { min-height: 440px; }
  .map-wide { height: 460px; border-radius: 26px; }
  .map-embed .radar { bottom: 176px; }
  .map-embed__cta .btn { flex: 1 1 100%; }
  /* piè di pagina: servizi e azienda affiancati */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; padding: 44px 0 34px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-links { gap: 9px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .marquee__track { animation: none; }
  .radar__sweep { display: none; }
}

/* ---------- Banner dei cookie (assets/js/statistiche.js): finestra al centro, pagina oscurata dietro ---------- */
.cookie-layer {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(6, 16, 30, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: cookie-velo .35s ease both;
}
.cookie-layer[hidden] { display: none; }
@keyframes cookie-velo { from { opacity: 0; } }
html.cookie-aperto { overflow: hidden; }
.cookie {
  position: relative; width: min(520px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 24px 18px; border-radius: 24px; background: #fff; color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  animation: cookie-in .45s var(--ease-out) both;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* "Continua senza accettare": piccolo, nell'angolo in alto a destra */
.cookie__skip {
  display: block; margin: 0 0 4px auto; padding: 2px 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.cookie__skip:hover { color: var(--navy); }
.cookie__title { margin: 0; font-size: 20px; line-height: 1.3; color: var(--navy); outline: none; }
.cookie__text { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cookie__text p { margin: 0; }
.cookie__text ul { margin: 4px 0 10px; padding: 0; list-style: none; }
.cookie__text li { position: relative; padding-left: 16px; }
.cookie__text li + li { margin-top: 2px; }
.cookie__text li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.cookie__prefs { display: grid; gap: 10px; margin: -6px 0 18px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer;
}
div.cookie__opt { cursor: default; }
.cookie__opt b { color: var(--navy); font-size: 15px; }
.cookie__desc { grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie__sw {
  grid-column: 2; grid-row: 1 / span 2; position: relative; flex: none; width: 46px; height: 26px; margin: 0;
  border-radius: 999px; background: #C3CCD8; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: background-color .25s;
}
.cookie__sw::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(6, 16, 30, .25); transition: transform .25s var(--ease);
}
.cookie__sw:checked { background: var(--orange); }
.cookie__sw:checked::before { transform: translateX(20px); }
.cookie__sw:disabled { cursor: default; opacity: .55; }
.cookie__sw:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__actions .btn { --pad: 14px 14px; font-size: 15.5px; white-space: normal; text-align: center; }
.cookie__save, .cookie.is-prefs .cookie__ess { display: none; }
.cookie.is-prefs .cookie__save { display: inline-flex; }
/* "stesso sfondo del pop-up, solo il bordo" */
.btn--cookie { color: var(--navy); background: #fff; border: 1.5px solid rgba(18, 42, 72, .3); }
.btn--cookie:hover { border-color: var(--navy); transform: translateY(-2px); }
.cookie__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: 13.5px; }
.cookie__links a, .cookie__link {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--navy); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie__link[aria-expanded="true"] { color: var(--red); }
html.cookie-aperto .chat-teaser { display: none; }
@media (max-width: 640px) {
  .cookie { padding: 14px 18px 16px; border-radius: 22px; }
  .cookie__title { font-size: 18px; }
  .cookie__text { font-size: 13.5px; margin-bottom: 16px; }
}
@media (max-width: 340px) { .cookie__actions { grid-template-columns: 1fr; } }
.footer-linkbtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: color .2s; }
.footer-linkbtn:hover { color: #fff; }

/* ---------- Cookie policy: tabelle dei cookie (su telefono una scheda per riga) ---------- */
.prose .cookie-table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose .cookie-table th, .prose .cookie-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #3D4B5C; }
.prose .cookie-table th { color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.prose .cookie-table td:first-child { white-space: nowrap; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--mist); color: var(--navy); font-size: .9em; }
@media (max-width: 640px) {
  .prose .cookie-table thead { display: none; }
  .prose .cookie-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose .cookie-table td { display: block; padding: 3px 0; border: 0; white-space: normal !important; }
  .prose .cookie-table td::before { content: attr(data-label) ": "; color: var(--navy); font-weight: 700; }
}
