/* ==========================================================================
   Energy Più — foglio di stile
   Palette: notte (blu cella), sole (ambra), foglia (verde rinnovabili),
   alluminio (fondo chiaro). Tipi: Archivo espanso, Instrument Sans, IBM Plex Mono.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-100-900.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --notte: #0A1628;
  --notte-2: #11233F;
  --cella: #1E3F8F;
  --cella-chiaro: #4A6FD1;
  --sole: #F4B01B;
  --sole-scuro: #C98A00;
  --foglia: #2E9A55;
  --argento: #A9B3BE;
  --alluminio: #E8ECF0;
  --alluminio-2: #DCE2E8;
  --bianco: #FFFFFF;
  --grafite: #141C29;
  --ardesia: #535E71;
  --linea: #C6CED8;
  --linea-notte: rgba(255, 255, 255, 0.16);

  --f-display: 'Archivo', 'Arial Black', Arial, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-hero: clamp(2.3rem, 1.25rem + 3.7vw, 4.5rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.3vw, 3.2rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-mono: 0.75rem;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 76px;
  --r: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--grafite);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sole); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--sole); color: var(--notte); padding: 10px 16px; border-radius: var(--r);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Tipografia ---------- */
.display, h1, h2 {
  font-family: var(--f-display);
  font-stretch: 116%;
  font-weight: 720;
  letter-spacing: -0.012em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 650;
  font-size: var(--fs-h3);
  line-height: 1.2;
}
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.muted { color: var(--ardesia); }

.mono-label, .eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--cella); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light { color: var(--sole); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alu { background: var(--alluminio); }
.section--night { background: var(--notte); color: var(--bianco); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
.section-head p { color: var(--ardesia); font-size: var(--fs-lead); }
.on-dark .section-head p, .section--night .section-head p { color: rgba(255, 255, 255, 0.74); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sole); color: var(--notte); }
.btn--sun:hover { background: #FFC23D; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--bianco); }
.btn--ghost:hover { border-color: var(--bianco); background: rgba(255, 255, 255, 0.1); }
.btn--line { border-color: var(--grafite); color: var(--grafite); }
.btn--line:hover { background: var(--grafite); color: var(--bianco); }
.btn--night { background: var(--notte); color: var(--bianco); }
.btn--night:hover { background: var(--cella); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--cella);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow, .section--night .link-arrow { color: var(--sole); }

/* ---------- Logo ---------- */
.logo {
  position: relative; display: inline-flex; align-items: flex-start;
  text-decoration: none; color: currentColor; padding-bottom: 10px; flex-shrink: 0;
}
.logo__word {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 300;
  font-size: 1.62rem; letter-spacing: 0.02em; line-height: 1;
}
.logo__plus {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 0.6;
  color: var(--foglia); margin-left: 1px; margin-top: -2px;
}
.logo__arc { position: absolute; left: 4%; right: 0; bottom: 0; width: 96%; height: auto; }
.logo--light .logo__plus { color: var(--sole); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--bianco);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header__bar {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  max-width: calc(1440px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--grafite);
  box-shadow: 0 1px 0 var(--linea);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav__list a {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--sole); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.86rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; fill: var(--sole); }
.site-header.is-scrolled .header-phone svg { fill: var(--sole-scuro); }

.burger {
  display: none; position: relative; width: 46px; height: 46px; padding: 0;
  border: 1.5px solid currentColor; border-radius: var(--r); background: transparent; cursor: pointer;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  position: absolute; left: 12px; width: 19px; height: 2px; background: currentColor; content: '';
  transition: transform .3s var(--ease), opacity .2s;
}
.burger__lines { top: 21px; }
.burger__lines::before { left: 0; top: -6px; }
.burger__lines::after { left: 0; top: 6px; }
.menu-open .burger__lines { background: transparent; }
.menu-open .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
}
@media (max-width: 1060px) {
  .burger { display: block; }
  .site-header__actions { margin-left: auto; }
  .site-header__actions .btn { display: none; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--notte); color: var(--bianco);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .menu-open .site-header { color: var(--bianco); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a {
    font-family: var(--f-display); font-stretch: 112%; font-weight: 600;
    font-size: clamp(1.6rem, 6vw, 2.4rem); padding: 6px 0;
  }
  .nav__list a::after { bottom: 4px; height: 3px; right: auto; width: 2.2em; }
  .nav__mobile-extra { display: block; color: rgba(255, 255, 255, 0.7); border-top: 1px solid var(--linea-notte); padding-top: 24px; }
  .nav__phone-big { display: inline-block; font-family: var(--f-mono); font-size: 1.3rem; color: var(--sole); text-decoration: none; margin-bottom: 8px; }
}
.menu-open { overflow: hidden; }

/* ---------- Hero a tutto schermo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--bianco); background: var(--notte);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-settle 2.6s var(--ease) both;
}
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.62) 0%, rgba(10, 22, 40, 0.08) 30%, rgba(10, 22, 40, 0.18) 55%, rgba(10, 22, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.8) 0%, rgba(10, 22, 40, 0.35) 50%, rgba(10, 22, 40, 0) 78%);
}
.hero__shade::after {
  /* il buio segue il sole: --night viene aggiornato dal widget */
  content: ''; position: absolute; inset: 0;
  background: #050C1A; opacity: calc(var(--night, 0) * 0.42);
  transition: opacity 1.2s var(--ease);
}
.hero__inner {
  width: 100%; max-width: calc(1440px + var(--gutter) * 2); margin-inline: auto;
  padding: calc(var(--header-h) + 64px) var(--gutter) clamp(36px, 6vh, 72px);
  display: grid; gap: 40px; align-items: end;
}
.hero__text { max-width: 980px; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 26px; }
.h1-place {
  display: block; margin-top: 0.38em;
  font-stretch: 100%; font-weight: 500; font-size: 0.48em; letter-spacing: 0;
  color: var(--sole);
}
.hero .lead { max-width: 600px; color: rgba(255, 255, 255, 0.86); margin-bottom: 34px; }
.hero__eyebrow { color: var(--sole); }
@media (min-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Hero più bassa per le pagine interne */
.hero--page { min-height: 78vh; min-height: 78svh; }
.hero--page h1 { font-size: clamp(2.2rem, 1.2rem + 3.3vw, 4.1rem); }
.hero--short { min-height: 56vh; min-height: 56svh; }

.crumbs { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: '/'; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sole); }
.crumbs [aria-current] { color: var(--bianco); }

/* Entrata del testo hero */
.js .hero [data-rise] { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.js .hero [data-rise="2"] { animation-delay: .12s; }
.js .hero [data-rise="3"] { animation-delay: .24s; }
.js .hero [data-rise="4"] { animation-delay: .36s; }
.js .hero [data-rise="5"] { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Widget "Il sole su Bassano" ---------- */
.sun {
  position: relative; width: 100%; max-width: 380px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  background: rgba(8, 18, 34, 0.56);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--bianco);
}
.sun__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sun__top .mono-label { color: rgba(255, 255, 255, 0.72); }
.sun__clock { font-family: var(--f-mono); font-size: 0.86rem; color: var(--sole); }
.sun__live { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--sole); vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sun__chart { width: 100%; height: auto; margin: 10px 0 4px; overflow: visible; }
.sun__horizon { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; stroke-dasharray: 2 4; }
.sun__future { fill: none; stroke: rgba(255, 255, 255, 0.36); stroke-width: 1.6; stroke-dasharray: 3 5; }
.sun__past { fill: none; stroke: var(--sole); stroke-width: 2.6; stroke-linecap: round; }
.sun__glow { fill: var(--sole); opacity: .28; transform-box: fill-box; transform-origin: center; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.5); opacity: .12; } }
.sun__dot { fill: var(--sole); }
.sun__tick { font-family: var(--f-mono); font-size: 10px; fill: rgba(255, 255, 255, 0.6); }
.sun__data { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea-notte); margin-top: 6px; }
.sun__data > div { padding: 12px 0 2px; }
.sun__data > div + div { padding-left: 16px; border-left: 1px solid var(--linea-notte); }
.sun__value { font-family: var(--f-display); font-stretch: 112%; font-weight: 650; font-size: 1.75rem; line-height: 1.1; }
.sun__value small { font-size: 0.55em; font-weight: 500; margin-left: 3px; }
.sun__label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.68); line-height: 1.35; margin-top: 2px; }
.sun__note { margin-top: 12px; font-size: 0.72rem; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }
.sun[data-state="night"] .sun__value { color: rgba(255, 255, 255, 0.92); }
@media (max-width: 1079px) {
  .sun { max-width: 460px; }
}
@media (max-width: 560px) {
  .sun { padding: 14px 16px 12px; }
  .sun__value { font-size: 1.45rem; }
}

/* ---------- Pannelli servizi (home) ---------- */
.panels { display: flex; height: min(88vh, 860px); min-height: 560px; background: var(--notte); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  color: var(--bianco); text-decoration: none;
  transition: flex-grow .8s var(--ease);
}
.panel + .panel { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.panel__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.35) 45%, rgba(10, 22, 40, 0.92) 100%);
  transition: background-color .6s var(--ease);
}
.panel::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--line, var(--sole)); }
.panel--foglia { --line: var(--foglia); }
.panel--sole { --line: var(--sole); }
.panel--argento { --line: var(--argento); }
.panel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 44px); }
.panel__tag { color: var(--line); margin-bottom: 14px; display: block; }
.panel h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.3rem); font-stretch: 116%; font-weight: 700; margin-bottom: 0; }
.panel__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.panel__more > div { overflow: hidden; }
.panel__more p { max-width: 440px; padding-top: 14px; color: rgba(255, 255, 255, 0.84); opacity: 0; transition: opacity .5s var(--ease) .1s; }
.panel__cta { display: inline-flex; margin-top: 18px; font-weight: 600; color: var(--line); opacity: 0; transition: opacity .5s var(--ease) .15s; }
.panel__cta::after { content: ' →'; white-space: pre; }
@media (hover: hover) and (min-width: 900px) {
  .panels:hover .panel, .panels:focus-within .panel { flex-grow: .75; }
  .panels .panel:hover, .panels .panel:focus-visible { flex-grow: 2; }
  .panel:hover .panel__img, .panel:focus-visible .panel__img { transform: scale(1); }
  .panel:hover .panel__more, .panel:focus-visible .panel__more { grid-template-rows: 1fr; }
  .panel:hover .panel__more p, .panel:hover .panel__cta,
  .panel:focus-visible .panel__more p, .panel:focus-visible .panel__cta { opacity: 1; }
}
@media (hover: none), (max-width: 899px) {
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 68vh; flex: none; }
  .panel + .panel { border-left: 0; }
  .panel__more { grid-template-rows: 1fr; }
  .panel__more p, .panel__cta { opacity: 1; }
}

/* ---------- Intro + dati di targa ---------- */
.intro { display: grid; gap: clamp(40px, 6vw, 96px); }
.intro__statement {
  font-family: var(--f-display); font-stretch: 104%; font-weight: 500;
  font-size: clamp(1.45rem, 1rem + 1.6vw, 2.35rem); line-height: 1.22; letter-spacing: -0.01em;
}
.intro__statement em { font-style: normal; color: var(--cella); }
@media (min-width: 960px) { .intro { grid-template-columns: 1.35fr 1fr; align-items: start; } }
/* Home: blocco «Chi siamo» senza la targhetta dati, il testo usa una sola colonna larga */
@media (min-width: 960px) { .intro--solo { grid-template-columns: minmax(0, 900px); } }

.plate-table {
  border: 1.5px solid var(--grafite); border-radius: 8px; padding: 20px 22px 14px;
  background: var(--bianco); font-family: var(--f-mono); font-size: 0.86rem;
  box-shadow: 6px 6px 0 var(--alluminio-2);
}
.plate-table__title { display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--grafite); padding-bottom: 10px; margin-bottom: 6px; }
.plate-table dl > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.plate-table dl > div + div { border-top: 1px dashed var(--linea); }
.plate-table dt { color: var(--ardesia); white-space: nowrap; }
.plate-table dt::after { content: ''; }
.plate-table dd { margin-left: auto; text-align: right; font-weight: 500; color: var(--grafite); }

/* Elenco servizi a righe */
.rules { border-top: 1px solid var(--linea); }
.rules li { border-bottom: 1px solid var(--linea); }
.rules a, .rules span.rules__row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px 4px; text-decoration: none; font-weight: 500; font-size: 1.06rem;
  transition: padding .3s var(--ease), color .3s var(--ease);
}
.rules a::after { content: '→'; color: var(--cella); transition: transform .3s var(--ease); }
.rules a:hover { padding-left: 14px; color: var(--cella); }
.rules a:hover::after { transform: translateX(4px); }
.rules small { display: block; font-weight: 400; color: var(--ardesia); font-size: 0.9rem; }
.rules-wrap { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 28px; }
@media (min-width: 960px) { .rules-wrap { grid-template-columns: 1fr 2fr; } }

/* ---------- Processo chiavi in mano ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 26px 0 26px 64px; border-top: 1px solid var(--linea-notte); }
.step__n {
  position: absolute; left: 0; top: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--sole); border-radius: 50%;
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--sole);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: rgba(255, 255, 255, 0.72); font-size: 0.97rem; }
.section--alu .step, .section:not(.section--night) .step { border-top-color: var(--linea); }
.section:not(.section--night) .step p { color: var(--ardesia); }
.section:not(.section--night) .step__n { border-color: var(--cella); color: var(--cella); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 1100px) {
  .steps--6 { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .steps--4 { grid-template-columns: repeat(4, 1fr); column-gap: 36px; }
}

/* ---------- Banda immagine con citazione ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
  color: var(--bianco); background: var(--notte);
}
.band__img { position: absolute; inset: -12% 0; z-index: -2; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 40, 0.86) 0%, rgba(10, 22, 40, 0.35) 75%); }
.band blockquote p {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 700;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 15ch;
}
.band blockquote p span { color: var(--sole); }
.band figcaption { margin-top: 26px; color: rgba(255, 255, 255, 0.7); max-width: 520px; }

/* ---------- Targhe realizzazioni ---------- */
.plates { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.plate {
  position: relative; display: flex; flex-direction: column;
  background: var(--bianco); border: 1px solid var(--linea); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: var(--grafite);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.plate:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(10, 22, 40, 0.45); border-color: var(--grafite); }
.plate__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alluminio-2); }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.plate:hover .plate__img img { transform: scale(1.05); }
.plate__count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 4px;
  background: rgba(10, 22, 40, 0.75); color: var(--bianco); font-family: var(--f-mono); font-size: 0.72rem;
}
.plate__body { padding: 16px 18px 14px; display: grid; gap: 10px; }
.plate__body h3 { font-size: 1.12rem; }
.plate__body dl { font-family: var(--f-mono); font-size: 0.78rem; }
.plate__body dl > div { display: flex; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--linea); }
.plate__body dt { color: var(--ardesia); }
.plate__body dd { margin-left: auto; font-weight: 500; }
.plate__body dd.kwp { color: var(--cella); }
.plate__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.plate__open::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.plate__open:focus-visible { outline: none; }
.plate:has(.plate__open:focus-visible) { outline: 3px solid var(--sole); outline-offset: 3px; }

/* ---------- Zone servite ---------- */
.zone { position: relative; isolation: isolate; overflow: hidden; color: var(--bianco); background: var(--notte); }
.zone__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.zone::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 22, 40, 0.94) 0%, rgba(10, 22, 40, 0.72) 45%, rgba(10, 22, 40, 0.25) 100%); }
.zone__inner { padding-top: clamp(220px, 34vw, 420px); padding-bottom: var(--section); display: grid; gap: 40px; }
.zone h2 { max-width: 16ch; }
.zone p { color: rgba(255, 255, 255, 0.8); max-width: 560px; margin-top: 18px; font-size: var(--fs-lead); }
.towns { columns: 2; column-gap: 28px; font-size: 0.98rem; }
.towns li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--linea-notte); }
.towns li.is-work::after { content: ' ●'; color: var(--sole); font-size: 0.7em; vertical-align: 2px; }
.towns-note { margin-top: 14px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.62); }
.towns-note b { color: var(--sole); font-weight: 400; }
@media (min-width: 640px) { .towns { columns: 3; } }
@media (min-width: 1000px) { .zone__inner { grid-template-columns: 1fr 1.1fr; align-items: end; } }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--bianco); background: var(--notte); text-align: left; }
.cta-band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.55) 60%, rgba(10, 22, 40, 0.3) 100%); }
.cta-band__inner { padding-block: clamp(96px, 12vw, 180px); display: grid; gap: 28px; }
.cta-band h2 { max-width: 14ch; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem); }
.cta-band p { max-width: 540px; color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); }
.cta-band__phone { font-family: var(--f-mono); font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.cta-band__phone a { color: var(--sole); text-decoration: none; font-size: 1.15rem; }

/* ---------- Blocchi con immagine a metà schermo ---------- */
.feature { display: grid; background: var(--bianco); }
.feature__media { position: relative; min-height: 340px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__text { padding: clamp(48px, 7vw, 112px) var(--gutter); display: grid; align-content: center; gap: 20px; max-width: 680px; }
.feature__text p { color: var(--ardesia); }
.feature__text ul { display: grid; gap: 10px; margin-top: 6px; }
.feature__text li { position: relative; padding-left: 26px; }
.feature__text li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--sole-scuro); }
.feature--alu { background: var(--alluminio); }
.feature--night { background: var(--notte); color: var(--bianco); }
.feature--night .feature__text p { color: rgba(255, 255, 255, 0.76); }
.feature__tag { color: var(--cella); }
.feature--night .feature__tag { color: var(--sole); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .feature__text { padding-inline: clamp(40px, 6vw, 96px); }
  .feature--flip .feature__media { order: 2; }
}

/* ---------- Tre pilastri ---------- */
.pillars { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; }
.pillar { background: var(--bianco); padding: 30px 28px 32px; display: grid; gap: 12px; align-content: start; }
.pillar__k { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--cella); }
.pillar p { color: var(--ardesia); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
/* Variante a due colonne (Chi siamo: sede e contatti) */
@media (min-width: 800px) { .pillars--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: clamp(32px, 5vw, 80px); }
.faq__list { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font-family: var(--f-display); font-stretch: 104%; font-weight: 600; font-size: 1.12rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--cella), var(--cella)) center / 16px 2px no-repeat,
    linear-gradient(var(--cella), var(--cella)) center / 2px 16px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ardesia); }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1.6fr; } }

/* ---------- Calcolatore ---------- */
.calc { display: grid; gap: clamp(32px, 5vw, 72px); }
.calc__form { display: grid; gap: 30px; align-content: start; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; border: 1px solid var(--linea-notte); border-radius: var(--r); padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 18px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); transition: background-color .25s, color .25s; }
.seg input:checked + label { background: var(--sole); color: var(--notte); }
.seg input:focus-visible + label { outline: 3px solid var(--sole); outline-offset: 2px; }
.calc__field { display: grid; gap: 12px; }
.calc__field > label, .calc__legend { font-weight: 600; }
.calc__bill { display: flex; align-items: baseline; gap: 10px; }
.calc__bill output { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 2.4rem; color: var(--sole); line-height: 1; }
.calc__bill span { color: rgba(255, 255, 255, 0.65); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sole) var(--fill, 30%), rgba(255, 255, 255, 0.2) var(--fill, 30%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--sole); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--sole); border: 4px solid var(--notte); box-shadow: 0 0 0 1.5px var(--sole); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sole); border: 4px solid var(--notte); box-shadow: 0 0 0 1.5px var(--sole); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(244, 176, 27, .5); }
.calc__scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); }
.calc__out {
  border: 1px solid var(--linea-notte); border-radius: 10px; padding: 26px 26px 22px;
  background: linear-gradient(160deg, rgba(30, 63, 143, 0.35), rgba(10, 22, 40, 0.2));
}
.calc__out .mono-label { color: rgba(255, 255, 255, 0.6); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 20px; }
.calc__grid > div { padding: 16px 0; border-top: 1px solid var(--linea-notte); }
.calc__grid > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--linea-notte); }
.calc__num { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.1; }
.calc__num small { font-size: .5em; font-weight: 500; margin-left: 4px; color: rgba(255, 255, 255, 0.7); }
.calc__num--sun { color: var(--sole); }
.calc__num--leaf { color: #5CCB86; }
.calc__k { font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); }
.calc__assumptions { margin-top: 16px; font-size: 0.78rem; line-height: 1.5; color: rgba(255, 255, 255, 0.52); }
.calc > *, .calc fieldset { min-width: 0; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1.1fr; align-items: start; } }
@media (max-width: 560px) {
  .calc__out { padding: 20px 18px 18px; }
  .calc__num small { display: block; margin: 2px 0 0; font-size: .45em; }
  .calc__grid > div:nth-child(even) { padding-left: 14px; }
  .calc__out .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ---------- Mappa realizzazioni ---------- */
.map-wrap { display: grid; gap: 32px; }
.area-map { width: 100%; height: auto; background: var(--notte); border-radius: 10px; }
.area-map__grid line { stroke: rgba(255, 255, 255, 0.06); }
.area-map__river { fill: none; stroke: #3D6FB8; stroke-width: 3; stroke-linecap: round; opacity: .7; }
.area-map__relief { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.14); }
.area-map__ref circle { fill: rgba(255, 255, 255, 0.45); }
.area-map text { font-family: var(--f-mono); font-size: 11px; fill: rgba(255, 255, 255, 0.62); letter-spacing: .04em; }
.area-map .area-map__hq text { fill: var(--bianco); font-weight: 500; }
.area-map__site { cursor: pointer; }
.area-map__site circle.halo { fill: var(--sole); opacity: .2; transition: opacity .3s; }
.area-map__site circle.core { fill: var(--sole); stroke: var(--notte); stroke-width: 2; }
.area-map__site:hover circle.halo, .area-map__site:focus-visible circle.halo, .area-map__site.is-active circle.halo { opacity: .5; }
.area-map__site:focus-visible { outline: none; }
.area-map__site:focus-visible circle.core { stroke: var(--bianco); }
.map-legend { font-size: 0.9rem; color: var(--ardesia); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.map-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sole); margin-right: 8px; vertical-align: -1px; }
.map-legend span.hq::before { background: var(--bianco); box-shadow: 0 0 0 2px var(--notte); }

/* ---------- Filtri ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--linea); background: var(--bianco); border-radius: 999px;
  padding: 8px 16px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--grafite); }
.chip[aria-pressed="true"] { background: var(--grafite); color: var(--bianco); border-color: var(--grafite); }
.chip span { font-family: var(--f-mono); font-weight: 400; font-size: 0.78rem; opacity: .7; margin-left: 4px; }
.plate[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: rgba(5, 11, 22, 0.96); color: var(--bianco); }
.lightbox::backdrop { background: rgba(5, 11, 22, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lightbox__title { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; }
.lightbox__title small { display: block; font-family: var(--f-mono); font-size: .75rem; font-weight: 400; color: rgba(255, 255, 255, .6); letter-spacing: .06em; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(10, 22, 40, .6); color: var(--bianco); cursor: pointer; font-size: 1.2rem;
}
.lightbox__btn:hover { border-color: var(--sole); color: var(--sole); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__counter { padding: 14px var(--gutter) 22px; text-align: center; font-family: var(--f-mono); font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* ---------- Contatti e modulo preventivo ---------- */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); align-items: start; } }

.quote { background: var(--bianco); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
.quote__progress { padding: 22px clamp(20px, 4vw, 40px) 0; }
.quote__progress-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.quote__progress-top .mono-label { color: var(--ardesia); }
.quote__bar { height: 4px; background: var(--alluminio-2); border-radius: 2px; overflow: hidden; }
.quote__bar span { display: block; height: 100%; width: 33.33%; background: var(--sole); transition: width .5s var(--ease); }
.quote__body { padding: clamp(24px, 4vw, 40px); }
.quote fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote legend { padding: 0; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; margin-bottom: 8px; }
.quote__hint { color: var(--ardesia); margin-bottom: 26px; }
.js .quote__step { display: none; }
.js .quote__step.is-active { display: block; animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.quote__step + .quote__step { margin-top: 48px; }
.js .quote__step + .quote__step { margin-top: 0; }

.options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__card {
  display: grid; gap: 6px; height: 100%; padding: 18px 18px 16px; cursor: pointer;
  border: 1.5px solid var(--linea); border-radius: 8px; background: var(--bianco);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.option:hover .option__card { border-color: var(--grafite); }
.option svg { width: 30px; height: 30px; stroke: var(--cella); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.option strong { font-weight: 600; font-size: 1.02rem; }
.option small { color: var(--ardesia); font-size: 0.88rem; line-height: 1.4; }
.option input:checked + .option__card { border-color: var(--cella); background: #F2F5FC; box-shadow: inset 0 0 0 1px var(--cella); }
.option input:focus-visible + .option__card { outline: 3px solid var(--sole); outline-offset: 2px; }
.options--chips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); }
.options--chips .option__card { padding: 13px 16px; }

.fields { display: grid; gap: 20px; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field__label { font-weight: 600; font-size: 0.96rem; }
.field__opt { font-weight: 400; color: var(--ardesia); font-size: 0.86rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--linea); border-radius: var(--r); background: var(--bianco);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grafite) 50%), linear-gradient(135deg, var(--grafite) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cella); box-shadow: 0 0 0 3px rgba(30, 63, 143, 0.18); }
.field__help { font-size: 0.85rem; color: var(--ardesia); }
.field__error { display: none; font-size: 0.87rem; font-weight: 600; color: #B42318; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B42318; }
.field.is-invalid .field__error, .group-error.is-shown { display: block; }
.group-error { display: none; margin-top: 12px; font-size: 0.87rem; font-weight: 600; color: #B42318; }
.cond[hidden] { display: none; }
.subfields { display: grid; gap: 20px; margin-top: 28px; padding-top: 26px; border-top: 1px dashed var(--linea); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.94rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cella); }
.check a { color: var(--cella); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.quote__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--linea); }
.quote__nav .btn[hidden] { display: none; }
html:not(.js) .quote__nav, html:not(.js) .quote__progress { display: none; }
@media (max-width: 1039px) { .summary { position: static; } .summary__card { display: none; } }
.no-js-submit { margin-top: 32px; }
.js .no-js-submit { display: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert { display: none; margin-top: 20px; padding: 14px 16px; border-radius: var(--r); background: #FEF3F2; color: #912018; font-size: 0.95rem; }
.form-alert.is-shown { display: block; }
.form-alert a { color: inherit; font-weight: 600; }

.quote__done { display: none; padding: clamp(32px, 5vw, 56px); text-align: left; }
.quote.is-done .quote__progress, .quote.is-done .quote__body { display: none; }
.quote.is-done .quote__done { display: grid; gap: 16px; animation: step-in .5s var(--ease); }
.quote__done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sole); }
.quote__done-icon svg { width: 30px; height: 30px; stroke: var(--notte); stroke-width: 2.6; fill: none; }
.quote__done h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.quote__done p { color: var(--ardesia); max-width: 560px; }

.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.summary__card { background: var(--notte); color: var(--bianco); border-radius: 12px; padding: 24px 24px 20px; }
.summary__card .mono-label { color: var(--sole); }
.summary__list { margin-top: 14px; font-size: 0.94rem; }
.summary__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linea-notte); }
.summary__list dt { color: rgba(255, 255, 255, .6); font-size: .86rem; }
.summary__list dd { font-weight: 500; overflow-wrap: anywhere; }
.summary__list dd.is-empty { color: rgba(255, 255, 255, .38); font-weight: 400; }
.info-card { border: 1px solid var(--linea); border-radius: 12px; padding: 24px; display: grid; gap: 16px; background: var(--bianco); }
.info-card h2 { font-size: 1.25rem; }
.info-card .big-phone { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 1.6rem; text-decoration: none; color: var(--cella); }
.info-card dl > div { padding: 10px 0; border-top: 1px solid var(--linea); }
.info-card dt { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ardesia); margin-bottom: 4px; }

.map-consent { position: relative; overflow: hidden; border-radius: 12px; background: var(--notte); color: var(--bianco); min-height: 340px; display: grid; }
.map-consent__ph { position: relative; display: grid; align-content: end; gap: 14px; padding: 26px; isolation: isolate; }
.map-consent__ph img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map-consent__ph::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 22, 40, .95), rgba(10, 22, 40, .2)); }
.map-consent__ph p { font-size: 0.88rem; color: rgba(255, 255, 255, .75); max-width: 440px; }
.map-consent iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
/* Variante nella sezione «Zona di intervento» della home: riquadro su tutta la larghezza, sullo sfondo scuro */
.map-consent--zone { grid-column: 1 / -1; min-height: 240px; background: rgba(10, 22, 40, .6); border: 1px solid var(--linea-notte); }
.map-consent--zone .map-consent__ph::before { display: none; }
.zone .map-consent--zone p { margin-top: 0; }
.map-consent--zone iframe { min-height: 420px; }

/* ---------- Pagine di testo (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose p, .prose ul { margin-bottom: 14px; color: #2C3646; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cella); }

/* ---------- Footer ---------- */
.site-footer { background: var(--notte); color: rgba(255, 255, 255, 0.78); padding-top: clamp(64px, 8vw, 104px); font-size: 0.96rem; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 56px; }
.site-footer .logo { color: var(--bianco); margin-bottom: 18px; }
.site-footer__brand p { max-width: 320px; }
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col .mono-label { color: var(--sole); margin-top: 8px; }
.site-footer__col .mono-label:first-child { margin-top: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sole); }
.site-footer .link-arrow { color: var(--bianco); font-size: 0.92rem; justify-self: start; }
.site-footer__contacts li { padding: 3px 0; }
.site-footer__contacts span { display: inline-block; min-width: 48px; font-family: var(--f-mono); font-size: .78rem; color: rgba(255, 255, 255, .5); }
.site-footer__contacts + .btn { justify-self: start; margin-top: 10px; }
.site-footer__links li { padding: 3px 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; border-top: 1px solid var(--linea-notte); font-size: 0.84rem; color: rgba(255, 255, 255, 0.55); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Barra azioni su mobile */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 22, 40, 0.96); border-top: 1px solid var(--linea-notte);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .action-bar.is-shown { transform: none; }
  .action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
  .action-bar__call { border: 1.5px solid rgba(255, 255, 255, .4); color: var(--bianco); }
  .action-bar__call svg { width: 16px; height: 16px; fill: var(--sole); }
  .action-bar__quote { background: var(--sole); color: var(--notte); }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Comparsa allo scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .40s; }
.js [data-reveal-stagger].is-in > *:nth-child(n+7) { transition-delay: .46s; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--notte); color: var(--bianco); padding: 120px var(--gutter) 80px; }
.notfound__code { font-family: var(--f-mono); color: var(--sole); margin-bottom: 18px; }
.notfound h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); margin-bottom: 18px; }
.notfound p { color: rgba(255, 255, 255, .75); margin: 0 auto 30px; max-width: 520px; }
.notfound .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal-stagger] > *, .js .hero [data-rise] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .action-bar, .hero__media, .sun { display: none; }
  .hero { min-height: 0; color: var(--grafite); background: none; }
}
