/* ==========================================================================
   S.T.I.M. S.r.l. — fogli di stile
   Bianco e azzurro, tipografia IBM Plex, foto di cantiere vere.
   ========================================================================== */

:root {
  --bianco: #ffffff;
  --cielo-50: #f4f9fe;
  --cielo-100: #e6f2fc;
  --cielo-200: #cfe5f8;
  --cielo-300: #8cc4f2;
  --azzurro: #2e8be6;      /* colore del marchio */
  --azzurro-scuro: #1567b8; /* testi e pulsanti, leggibile su bianco */
  --blu: #0e4e8c;
  --notte: #0c2340;        /* titoli */
  --testo: #23384f;
  --grigio: #5a6b7d;
  --linea: #dce7f2;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azzurro); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cielo-200); color: var(--notte); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--notte); color: #fff; border-radius: 6px; text-decoration: none; transition: top .25s; }
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */

.occhiello {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.90rem/1 var(--cond); color: var(--azzurro-scuro);
}
.occhiello::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--azzurro); }
.titolo {
  font: 700 clamp(1.9rem, 3.6vw, 2.9rem)/1.08 var(--cond);
  color: var(--notte); letter-spacing: -.01em; text-wrap: balance;
}
.titolo em { font-style: normal; color: var(--azzurro); }
.intro { max-width: 60ch; color: var(--grigio); font-size: 1.08rem; text-wrap: pretty; }
.testa { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.testa--centro { justify-items: center; text-align: center; }
.testa--riga { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.link { color: var(--azzurro-scuro); text-decoration: underline; text-decoration-color: var(--cielo-300); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--azzurro-scuro); }

/* ---------- Pulsanti ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--pieno { background: var(--azzurro-scuro); color: #fff; }
.btn--pieno:hover { background: var(--blu); box-shadow: 0 10px 24px -12px rgba(14, 78, 140, .8); }
.btn--bordo { color: var(--azzurro-scuro); box-shadow: inset 0 0 0 1.5px var(--cielo-300); background: #fff; }
.btn--bordo:hover { box-shadow: inset 0 0 0 1.5px var(--azzurro-scuro); }
.btn--chiaro { background: #fff; color: var(--blu); }
.btn--chiaro:hover { background: var(--cielo-100); }
.btn--piccolo { min-height: 40px; padding: 0 16px; font-size: .9rem; }
/* onda di luce che attraversa il pulsante principale */
.btn--pieno::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn--pieno:hover::after { transform: translateX(120%); }

/* ---------- Barra informazioni e intestazione ---------- */

.infobar { background: var(--cielo-50); border-bottom: 1px solid var(--linea); font-size: .84rem; color: var(--grigio); }
.infobar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 8px; }
.infobar a { color: var(--azzurro-scuro); font-weight: 600; text-decoration: none; }
.infobar__stato { display: inline-flex; align-items: center; gap: 8px; }
.punto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fae6b; }
.punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulsa 2.2s ease-out infinite; }
@keyframes pulsa { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

.head {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.head.is-giu { border-color: var(--linea); box-shadow: 0 8px 24px -20px rgba(12, 35, 64, .5); }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; text-decoration: none; }
.marca svg { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 12px; color: var(--notte); font-weight: 500; font-size: .96rem; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--azzurro);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--azzurro-scuro); }
.head__cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--notte); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu {
  position: fixed; inset: var(--head) 0 auto; z-index: 49; background: #fff; border-bottom: 1px solid var(--linea);
  padding: 12px var(--gut) 24px; display: grid; gap: 2px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.menu.is-aperto { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
.menu a { padding: 14px 4px; border-bottom: 1px solid var(--linea); color: var(--notte); font-weight: 600; text-decoration: none; }
.menu .btn { margin-top: 16px; justify-content: center; }

/* barra di avanzamento della lettura */
.avanzamento { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--azzurro); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* animazione del marchio: onde che scorrono e fiamma che vibra */
.mk-onde path { animation: onda 3.6s linear infinite; }
.mk-onde path:nth-child(even) { animation-duration: 4.4s; }
@keyframes onda { to { transform: translateX(-10.2px); } }
.mk-box { }
.marca .mk { clip-path: inset(0 round 9px); }
.mk-goccia { transform-origin: 60px 84px; animation: fiamma 2.4s ease-in-out infinite; }
@keyframes fiamma { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(1.07) scaleX(.97); } 70% { transform: scaleY(.96); } }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(72px, 9vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  margin: 18px 0 20px;
  font: 700 clamp(2.3rem, 5vw, 4rem)/1.02 var(--cond); color: var(--notte); letter-spacing: -.015em;
}
.hero h1 .r { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .r > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.hero h1 .r:nth-child(2) > span { transition-delay: .1s; }
.hero h1 .r:nth-child(3) > span { transition-delay: .2s; }
.is-pronto .hero h1 .r > span { transform: none; }
.hero h1 em { font-style: normal; color: var(--azzurro); }
.hero .intro { margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font: 600 0.92rem/1.3 var(--cond); color: var(--grigio); }
.hero__badge span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badge svg { width: 16px; height: 16px; color: var(--azzurro); }

.hero__foto { position: relative; aspect-ratio: 5 / 4.3; }
/* le onde del marchio dietro le foto */
.hero__foto::before {
  content: ""; position: absolute; top: -26px; right: -26px; width: 62%; height: 70%; border-radius: 14px; z-index: -1;
  background: var(--cielo-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 9q5-5 10 0t10 0 10 0 10 0' fill='none' stroke='%238cc4f2' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 40px 18px;
  opacity: 0; transform: translate(16px, -16px); transition: opacity .8s .3s, transform 1.2s var(--ease) .3s;
}
.is-pronto .hero__foto::before { opacity: 1; transform: none; }
.hero__grid > * { position: relative; z-index: 1; }
.hero__img { position: absolute; overflow: hidden; border-radius: var(--r); background: var(--cielo-100); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.hero__img--a { inset: 0 0 18% 12%; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .15s; }
.hero__img--b { left: 0; bottom: 0; width: 44%; aspect-ratio: 1; border: 6px solid #fff; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease) .55s; }
.is-pronto .hero__img--a, .is-pronto .hero__img--b { clip-path: inset(0 0 0 0); }
.is-pronto .hero__img img { transform: none; }

/* scheda con il manometro, sopra la foto */
.manometro {
  position: absolute; right: -10px; bottom: 6%; z-index: 2; width: min(240px, 52%);
  display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: center;
  padding: 14px 16px; background: #fff; border-radius: var(--r); box-shadow: 0 20px 44px -22px rgba(12, 35, 64, .45);
  opacity: 0; transform: translateY(16px); transition: opacity .6s .9s, transform .8s var(--ease) .9s;
}
.is-pronto .manometro { opacity: 1; transform: none; }
.manometro svg { width: 68px; height: 68px; }
.manometro strong { display: block; font: 700 1rem/1.15 var(--cond); color: var(--notte); }
.manometro small { display: block; margin-top: 2px; font: 600 0.84rem/1.3 var(--cond); color: var(--grigio); }
.lancetta { transform-origin: 40px 40px; transform: rotate(-120deg); transition: transform 1.8s cubic-bezier(.3, 1.5, .5, 1) 1.2s; }
.is-pronto .lancetta, .in-vista .lancetta { transform: rotate(var(--a, 30deg)); }

/* condotta con il gas che scorre */
.condotta { position: absolute; left: 0; right: 0; bottom: 30px; height: 26px; pointer-events: none; }
.condotta svg { width: 100%; height: 100%; }
.condotta .tubo { stroke: var(--cielo-100); stroke-width: 10; }
.condotta .flusso { stroke: var(--cielo-300); stroke-width: 2.5; stroke-dasharray: 2 16; stroke-linecap: round; animation: flusso 1.6s linear infinite; }
@keyframes flusso { to { stroke-dashoffset: -36; } }
.condotta .flangia { fill: #fff; stroke: var(--cielo-200); stroke-width: 2; }

/* ---------- Numeri con contatore a rulli ---------- */

.numeri { border-block: 1px solid var(--linea); background: var(--cielo-50); }
.numeri ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.numeri li { padding: 28px 20px; border-left: 1px solid var(--linea); display: grid; gap: 10px; align-content: start; }
.numeri li:first-child { border-left: 0; }
.numeri small { color: var(--grigio); font-size: .92rem; line-height: 1.35; }
.contatore { display: inline-flex; align-items: flex-end; gap: 3px; font: 600 2.2rem/1 var(--mono); color: var(--notte); }
.contatore .cifra {
  display: inline-block; height: 1em; overflow: hidden; width: .64em; text-align: center;
  background: #fff; border: 1px solid var(--linea); border-radius: 4px; padding: 0 .06em; box-sizing: content-box;
}
.contatore .rullo { display: flex; flex-direction: column; transition: transform 1.6s cubic-bezier(.25, .9, .3, 1); }
.contatore .rullo span { height: 1em; }
.contatore .suffisso { color: var(--azzurro); margin-left: 4px; }

/* ---------- Sezioni ---------- */

.sez { padding-block: clamp(72px, 10vw, 120px); }
.sez--cielo { background: var(--cielo-50); }
.sez--bordo { border-top: 1px solid var(--linea); }

/* servizi in home */
.servizi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.servizio {
  position: relative; display: grid; align-content: start; gap: 12px; padding: 28px 24px 26px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r); text-decoration: none;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.servizio:hover { border-color: var(--cielo-300); transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(12, 35, 64, .5); }
.servizio .num { font: 600 0.90rem/1 var(--cond); color: var(--azzurro-scuro); }
.servizio h3 { font: 700 1.3rem/1.15 var(--cond); color: var(--notte); }
.servizio p { color: var(--grigio); font-size: .95rem; }
.servizio .vai { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--azzurro-scuro); }
.servizio .vai svg { width: 16px; transition: transform .3s var(--ease); }
.servizio:hover .vai svg { transform: translateX(4px); }
.icona { width: 46px; height: 46px; color: var(--azzurro); }
.icona path, .icona circle, .icona rect, .icona line { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.in-vista .icona path, .in-vista .icona circle, .in-vista .icona rect, .in-vista .icona line, .in-vista.icona path { stroke-dashoffset: 0; }

/* ---------- Certificazioni (fascia blu) ---------- */

.cert { background: var(--blu); color: #fff; position: relative; overflow: hidden; }
.cert::before { /* righe come la carta millimetrata dei rapporti di taratura */
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 28px 28px;
}
.cert .wrap { position: relative; }
.cert .occhiello { color: var(--cielo-300); }
.cert .occhiello::before { background: var(--cielo-300); }
.cert .titolo { color: #fff; }
.cert .titolo em { color: var(--cielo-300); }
.cert .intro { color: var(--cielo-200); }
.cert__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.attestato {
  position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 24px;
  background: #fff; color: var(--testo); border-radius: var(--r);
}
.attestato--grande { grid-row: span 2; padding: 32px 30px; }
.cert__grid--due { grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.cert__grid--due .attestato--grande { grid-row: auto; }
.attestato .ente { font: 600 0.90rem/1 var(--cond); color: var(--azzurro-scuro); }
.attestato h3 { font: 700 1.35rem/1.15 var(--cond); color: var(--notte); padding-right: 64px; }
.attestato--grande h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); padding-right: 96px; }
.attestato p { color: var(--grigio); font-size: .94rem; }
.attestato dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--linea); font-size: .88rem; }
.attestato dt { color: var(--grigio); }
.attestato dd { font: 600 0.98rem/1.5 var(--cond); color: var(--notte); }
/* timbro che "cade" sulla scheda */
.timbro {
  position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; color: var(--azzurro);
  opacity: 0; transform: scale(1.6) rotate(-24deg); transition: opacity .2s .35s, transform .5s cubic-bezier(.5, 1.6, .5, 1) .35s;
}
.attestato--grande .timbro { width: 88px; height: 88px; }
.in-vista .timbro, .in-vista.attestato .timbro { opacity: .9; transform: scale(1) rotate(-12deg); }
.cert__piede { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-top: 36px; color: var(--cielo-200); }

/* ---------- Prodotti ---------- */

.binario { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--cielo-300) transparent; }
.prodotto {
  scroll-snap-align: start; display: grid; gap: 4px; padding: 12px 12px 18px; background: #fff;
  border: 1px solid var(--linea); border-radius: var(--r); transition: border-color .3s, box-shadow .4s, transform .4s var(--ease);
}
.prodotto:hover { border-color: var(--cielo-300); box-shadow: 0 18px 34px -26px rgba(12, 35, 64, .55); transform: translateY(-3px); }
.prodotto figure { aspect-ratio: 1; overflow: hidden; border-radius: 6px; margin-bottom: 10px; }
.prodotto img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.prodotto:hover img { transform: scale(1.06); }
.prodotto .cat { font: 600 0.84rem/1.2 var(--cond); color: var(--azzurro-scuro); padding-inline: 6px; }
.prodotto h3 { font: 600 1rem/1.3 var(--sans); color: var(--notte); padding-inline: 6px; }

.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtro {
  padding: 9px 16px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 500; font-size: .92rem; color: var(--notte); transition: background-color .25s, color .25s, border-color .25s;
}
.filtro:hover { border-color: var(--cielo-300); }
.filtro[aria-pressed="true"] { background: var(--azzurro-scuro); border-color: var(--azzurro-scuro); color: #fff; }
.filtro small { font: 600 0.87rem var(--cond); opacity: .7; margin-left: 4px; }
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.catalogo .prodotto { transition: opacity .35s, transform .45s var(--ease), border-color .3s, box-shadow .4s; }
.catalogo .prodotto.is-nascosto { display: none; }
.catalogo .prodotto.is-entra { opacity: 0; transform: translateY(14px) scale(.98); }

/* ---------- Comuni ---------- */

.comuni__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.comuni__lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.comune {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r); transition: border-color .3s, transform .4s var(--ease);
}
.comune:hover { border-color: var(--cielo-300); transform: translateY(-2px); }
.comune img { width: 56px; height: 66px; object-fit: contain; }
.comune strong { display: block; font: 700 1.08rem/1.2 var(--cond); color: var(--notte); }
.comune small { font: 600 0.90rem var(--cond); color: var(--grigio); }
.servizio-h24 { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 14px; background: #fff; border: 1px solid var(--linea); border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--notte); }

/* ---------- Galleria lavori ---------- */

.galleria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.galleria button { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--cielo-100); }
.galleria button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.galleria button:nth-child(4) { grid-row: span 2; }
.galleria figure { height: 100%; margin: 0; }
.galleria img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.galleria button:hover img { transform: scale(1.05); }
.galleria figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 8px 12px; border-radius: 6px; text-align: left;
  background: rgba(255, 255, 255, .92); color: var(--notte); font-size: .84rem; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .4s var(--ease);
}
.galleria button:hover figcaption, .galleria button:focus-visible figcaption { opacity: 1; transform: none; }
.visore { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; }
.visore::backdrop { background: rgba(12, 35, 64, .82); }
.visore img { max-height: 84vh; width: auto; border-radius: 8px; }
.visore p { color: #fff; text-align: center; margin-top: 10px; font-weight: 500; }
.visore button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; color: var(--notte); }

/* ---------- Clienti ---------- */

.nastro { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nastro__traccia { display: flex; gap: 14px; width: max-content; animation: nastro 48s linear infinite; }
.nastro:hover .nastro__traccia { animation-play-state: paused; }
@keyframes nastro { to { transform: translateX(calc(-50% - 7px)); } }
.cliente {
  display: grid; place-items: center; width: 190px; height: 96px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r);
}
.cliente img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.cliente:hover img { filter: none; opacity: 1; }
.clienti-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.clienti-griglia .cliente { width: auto; }

/* ---------- Invito al contatto ---------- */

.invito { background: var(--azzurro-scuro); color: #fff; border-radius: 14px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.invito h2 { font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--cond); }
.invito p { color: var(--cielo-200); margin-top: 8px; }
.invito__azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.invito .btn--bordo { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.invito .btn--bordo:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.invito__onde { position: absolute; right: -40px; top: -30px; width: 260px; opacity: .14; color: #fff; }

/* ---------- Pagine interne ---------- */

.pagina-testa { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background: var(--cielo-50); border-bottom: 1px solid var(--linea); position: relative; overflow: hidden; }
.pagina-testa h1 { margin: 14px 0 14px; font: 700 clamp(2.1rem, 4.4vw, 3.4rem)/1.05 var(--cond); color: var(--notte); letter-spacing: -.01em; max-width: 22ch; }
.briciole { display: flex; gap: 8px; font-size: .86rem; color: var(--grigio); }
.briciole a { color: var(--azzurro-scuro); text-decoration: none; }
.pagina-testa .condotta { bottom: 0; height: 18px; }

.gruppo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--linea); }
.gruppo:last-child { border-bottom: 0; }
.gruppo:nth-child(even) .gruppo__foto { order: -1; }
.gruppo__foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.gruppo__foto img { width: 100%; height: 100%; object-fit: cover; }
.gruppo h2 { font: 700 clamp(1.6rem, 2.8vw, 2.2rem)/1.1 var(--cond); color: var(--notte); margin: 10px 0 14px; }
.spunte { display: grid; gap: 12px; margin-top: 18px; }
.spunte li { position: relative; padding-left: 30px; }
.spunte li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cielo-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%231567b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.passi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: passo; position: relative; }
.passi::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--linea); }
.passi::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--azzurro); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.passi.in-vista::after { transform: scaleX(1); }
.passi li { position: relative; padding-right: 20px; counter-increment: passo; }
.passi li::before {
  content: counter(passo, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--azzurro);
  font: 600 1.02rem var(--cond); color: var(--azzurro-scuro);
}
.passi h3 { font: 700 1.15rem/1.2 var(--cond); color: var(--notte); margin-bottom: 6px; }
.passi p { color: var(--grigio); font-size: .94rem; }

.tabella-cert { display: grid; gap: 12px; }
.riga-cert {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r);
}
.riga-cert .ente { font: 600 0.90rem/1.3 var(--cond); color: var(--azzurro-scuro); }
.riga-cert h3 { font: 600 1.02rem/1.35 var(--sans); color: var(--notte); }
.riga-cert p { color: var(--grigio); font-size: .9rem; }
.riga-cert .stato { font: 600 0.92rem var(--cond); color: #1d7a4c; background: #e7f6ee; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

.sede { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.sede figure { border-radius: var(--r); overflow: hidden; }
.storia p + p { margin-top: 14px; }
.storia p { color: var(--testo); }

/* ---------- Contatti ---------- */

.contatti { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.recapiti { display: grid; gap: 22px; }
.recapito { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.recapito svg { width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: var(--cielo-100); color: var(--azzurro-scuro); }
.recapito dt { font: 600 0.90rem/1.4 var(--cond); color: var(--grigio); }
.recapito dd { color: var(--notte); font-weight: 500; }
.recapito a { color: var(--azzurro-scuro); text-decoration: none; }
.recapito a:hover { text-decoration: underline; }
.mappa { margin-top: 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 16 / 10; background: var(--cielo-50); }
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }

.modulo { display: grid; gap: 16px; padding: clamp(24px, 4vw, 36px); background: var(--cielo-50); border: 1px solid var(--linea); border-radius: 14px; }
.modulo h2 { font: 700 1.6rem/1.15 var(--cond); color: var(--notte); }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo--pieno { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .9rem; color: var(--notte); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px 14px; background: #fff; border: 1.5px solid var(--linea); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azzurro); box-shadow: 0 0 0 4px var(--cielo-100); }
.campo [aria-invalid="true"] { border-color: #c4352b; }
.campo .err { display: none; color: #b42318; font-size: .84rem; }
.campo [aria-invalid="true"] ~ .err { display: block; }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--grigio); }
.consenso input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--azzurro-scuro); flex: none; }
.modulo .btn { justify-self: start; }
.esito { font-weight: 600; color: var(--blu); }
.esito.is-errore { color: #b42318; }

/* ---------- Piè di pagina ---------- */

.piede { background: var(--notte); color: #c7d6e6; padding: 64px 0 28px; margin-top: clamp(56px, 7vw, 88px); font-size: .94rem; }
.piede__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.piede .marca svg { height: 44px; }
.piede h3 { font: 600 0.90rem/1 var(--cond); color: var(--cielo-300); margin-bottom: 14px; }
.piede ul { display: grid; gap: 8px; }
.piede a { color: #e6eef7; text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede p + p { margin-top: 8px; }
.piede__fondo { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #9fb3c8; }
.piede__marchio { display: block; width: 210px; margin-bottom: 16px; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* ---------- Comparsa allo scorrimento ---------- */

[data-r] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-r="foto"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-r].in-vista { opacity: 1; transform: none; }
[data-r="foto"].in-vista { clip-path: inset(0 0 0 0); }
.no-js [data-r] { opacity: 1; transform: none; clip-path: none; }

/* ---------- Schermi più stretti ---------- */

@media (max-width: 1060px) {
  .nav, .head__cta { display: none; }
  .burger { display: block; }
  .servizi { grid-template-columns: repeat(2, 1fr); }
  .cert__grid { grid-template-columns: 1fr 1fr; }
  .attestato--grande { grid-column: 1 / -1; grid-row: auto; }
  .piede__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid, .comuni__grid, .gruppo, .sede, .contatti { grid-template-columns: minmax(0, 1fr); }
  .gruppo:nth-child(even) .gruppo__foto { order: 0; }
  .hero__foto { max-width: 560px; }
  .numeri ul { grid-template-columns: repeat(2, 1fr); }
  .numeri li:nth-child(3) { border-left: 0; }
  .numeri li:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .galleria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .galleria button:nth-child(4) { grid-row: span 1; }
  .passi { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .passi::before, .passi::after { display: none; }
  .invito { grid-template-columns: minmax(0, 1fr); }
  .riga-cert { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .riga-cert .stato { justify-self: start; }
  .testa--riga { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --head: 66px; }
  body { font-size: 16px; }
  .marca svg { height: 34px; }
  .infobar__orari { display: none; }
  .servizi, .cert__grid, .comuni__lista, .campi, .piede__grid { grid-template-columns: minmax(0, 1fr); }
  .manometro { right: 0; }
  .hero__foto::before { right: -8px; top: -14px; }
  .catalogo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prodotto h3 { font-size: .92rem; }
  .contatore { font-size: 1.8rem; }
  .passi { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Seconda versione: più colore, disegni animati, sezioni "in breve"
   ========================================================================== */

:root { --giallo: #f5c400; --giallo-scuro: #c99d00; }

/* ---------- Hero azzurro ---------- */
.hero { background: linear-gradient(160deg, #1d78d6 0%, #1567b8 45%, #0e4e8c 100%); color: #fff; }
.hero__onde {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='26' viewBox='0 0 80 26'%3E%3Cpath d='M0 13q10-9 20 0t20 0 20 0 20 0' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 80px 26px;
  animation: onde-sfondo 14s linear infinite;
  mask-image: linear-gradient(100deg, transparent 20%, #000 60%);
}
@keyframes onde-sfondo { to { background-position: -80px 0; } }
.hero .occhiello { color: #cfe5f8; }
.hero .occhiello::before { background: var(--giallo); }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--giallo); }
.hero .intro { color: #dcebfa; }
.hero__badge { color: #dcebfa; }
.hero__badge svg { color: var(--giallo); }
.hero__foto::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 9q5-5 10 0t10 0 10 0 10 0' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E"); }
.hero__img--a { inset: 0 0 14% 30%; }
.hero__img--b { width: 52%; aspect-ratio: 16 / 10; border-color: #fff; }
.hero .condotta .tubo { stroke: rgba(255, 255, 255, .16); }
.hero .condotta .flusso { stroke: var(--giallo); }
.hero .condotta .flangia { fill: #1567b8; stroke: rgba(255, 255, 255, .4); }
.btn--vetro { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--vetro:hover { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px #fff; }
.hero .btn--chiaro { color: var(--blu); }
.infobar { background: #0e4e8c; border-color: #0e4e8c; color: #cfe5f8; }
.infobar a { color: #fff; }

/* numeri su fascia chiara con cifre in azzurro */
.numeri { background: #fff; }
.contatore .cifra { background: var(--cielo-50); border-color: var(--cielo-200); color: var(--azzurro-scuro); }

/* servizi: icona in un cerchio colorato, barra che si accende */
.servizio { overflow: hidden; }
.servizio::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--azzurro), var(--giallo)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.servizio:hover::before { transform: scaleX(1); }
.servizio__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--cielo-100); transition: background-color .3s, transform .4s var(--ease); }
.servizio:hover .servizio__ico { background: var(--azzurro); transform: rotate(-6deg); }
.servizio:hover .icona { color: #fff; }

/* ---------- Schema della cabina ---------- */
.schema-box { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.schema-tela { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 18px; box-shadow: 0 30px 60px -40px rgba(12, 35, 64, .45); }
.schema { width: 100%; height: auto; display: block; }
.schema .gas { stroke-linecap: round; fill: none; }
.schema .gas--alta { stroke: #fff; stroke-width: 6; stroke-dasharray: 2 12; animation: gas 0.9s linear infinite; }
.schema .gas--media { stroke: #fff; stroke-width: 7; stroke-dasharray: 2 26; animation: gas-lento 2.2s linear infinite; }
@keyframes gas { to { stroke-dashoffset: -28; } }
@keyframes gas-lento { to { stroke-dashoffset: -56; } }
.schema .parte, .schema .schema-num { transition: opacity .4s, filter .4s; }
.schema-box.is-guidato .parte:not(.is-attiva), .schema-box.is-guidato .schema-num:not(.is-attiva) { opacity: .28; }
.schema .parte.is-attiva { filter: drop-shadow(0 6px 10px rgba(21, 103, 184, .35)); }
.schema-num circle { fill: #fff; stroke: var(--azzurro); stroke-width: 3; transition: fill .3s; }
.schema-num text { font: 700 17px var(--cond); fill: var(--azzurro-scuro); }
.schema-num line { stroke: var(--azzurro); stroke-width: 2; }
.schema-num.is-attiva circle { fill: var(--azzurro); }
.schema-num.is-attiva text { fill: #fff; }
.schema-nota { font: 600 14px var(--cond); fill: var(--grigio); text-transform: lowercase; }
.schema-display { font: 600 15px var(--mono); fill: #8cf0b4; letter-spacing: 1px; }
.schema .calore path { animation: calore 1.8s ease-in-out infinite; }
.schema .calore path:nth-child(2) { animation-delay: .3s; } .schema .calore path:nth-child(3) { animation-delay: .6s; }
@keyframes calore { 0%, 100% { transform: translateY(4px); opacity: .3; } 50% { transform: translateY(-4px); opacity: 1; } }
.schema .membrana { transform-box: fill-box; transform-origin: center bottom; animation: membrana 3s ease-in-out infinite; }
@keyframes membrana { 50% { transform: scaleY(.88); } }
.schema .goccia { animation: goccia 1.6s ease-in infinite; }
@keyframes goccia { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
.schema .leva { transform-box: fill-box; transform-origin: 50% 50%; }
.schema .ago { transition: transform 1.6s cubic-bezier(.3, 1.4, .5, 1); transform: rotate(-110deg); }
.in-vista .mano--alta .ago, .schema-tela.in-vista .mano--alta .ago { transform: rotate(80deg); }
.in-vista .mano--media .ago, .schema-tela.in-vista .mano--media .ago { transform: rotate(-40deg); }
.mano--alta .ago { animation: vibra 0.5s ease-in-out infinite alternate; animation-delay: 1.8s; }
@keyframes vibra { from { rotate: -2deg; } to { rotate: 2deg; } }

.passi-schema { display: grid; gap: 8px; }
.passo {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; text-align: left;
  padding: 12px 14px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; cursor: pointer;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.passo:hover { border-color: var(--cielo-300); }
.passo__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cielo-100); color: var(--azzurro-scuro); font: 700 1rem var(--cond); transition: background-color .3s, color .3s; }
.passo strong { display: block; font: 700 1.08rem/1.3 var(--cond); color: var(--notte); }
.passo__testo { display: block; max-height: 0; overflow: hidden; color: var(--grigio); font-size: .93rem; transition: max-height .5s var(--ease), margin .3s; }
.passo[aria-pressed="true"] { border-color: var(--azzurro); box-shadow: 0 14px 28px -20px rgba(21, 103, 184, .7); }
.passo[aria-pressed="true"] .passo__n { background: var(--azzurro); color: #fff; }
.passo[aria-pressed="true"] .passo__testo { max-height: 8em; margin-top: 4px; }

/* ---------- Pressioni del gas ---------- */
.pressioni { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.scala { display: grid; gap: 8px; }
.specie {
  position: relative; width: var(--w); min-width: 290px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 10px; cursor: pointer; text-align: left; color: #fff; overflow: hidden;
  transform: scaleX(.2); transform-origin: left; opacity: 0; transition: transform .9s var(--ease), opacity .4s, box-shadow .3s, filter .3s;
}
.scala.in-vista .specie { transform: none; opacity: 1; }
.scala li:nth-child(2) .specie { transition-delay: .06s; } .scala li:nth-child(3) .specie { transition-delay: .12s; }
.scala li:nth-child(4) .specie { transition-delay: .18s; } .scala li:nth-child(5) .specie { transition-delay: .24s; }
.scala li:nth-child(6) .specie { transition-delay: .3s; } .scala li:nth-child(7) .specie { transition-delay: .36s; }
.specie--alta { background: #0e4e8c; }
.specie--media { background: #2e8be6; }
.specie--bassa { background: #8cc4f2; color: var(--notte); }
.specie:hover { filter: brightness(1.08); }
.specie[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--giallo); }
.specie__nome { font: 700 1.05rem var(--cond); white-space: nowrap; }
.specie__valore { font: 500 .92rem var(--sans); white-space: nowrap; }
.fasce { margin-top: 8px; }
.fascia { padding: 20px 22px; border-radius: 12px; border-left: 6px solid; animation: entra .45s var(--ease); }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.fascia--alta { background: #e3edf8; border-color: #0e4e8c; }
.fascia--media { background: var(--cielo-100); border-color: #2e8be6; }
.fascia--bassa { background: var(--cielo-50); border-color: #8cc4f2; }
.fascia__tag { font: 700 1.25rem var(--cond); color: var(--notte); margin-bottom: 4px; }
.nota { color: var(--grigio); font-size: .95rem; padding-left: 14px; border-left: 2px solid var(--linea); }

/* ---------- Comuni su fascia blu, con mappa ---------- */
.sez--blu { background: linear-gradient(170deg, #0e4e8c, #0c3f73); color: #fff; }
.sez--blu .occhiello { color: #cfe5f8; } .sez--blu .occhiello::before { background: var(--giallo); }
.sez--blu .titolo { color: #fff; } .sez--blu .titolo em { color: var(--giallo); }
.sez--blu .intro { color: #cfe5f8; }
.sez--blu .comuni__lista { margin-top: 26px; }
.sez--blu .comune { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.sez--blu .comune strong { color: #fff; } .sez--blu .comune small { color: #b8d3ee; }
.sez--blu .comune img { background: #fff; border-radius: 8px; padding: 4px; }
.sez--blu .servizio-h24 { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.mappa-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 14px; }
.carta { width: 100%; height: auto; display: block; }
.mappa-griglia path { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.fiume { fill: none; stroke: #5aa8ec; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.fiume-nome { font: italic 500 13px var(--sans); fill: #8cc4f2; }
.rif circle { fill: #8fb3d6; } .rif text { font: 500 13px var(--sans); fill: #b8d3ee; }
.rotta { fill: none; stroke: var(--giallo); stroke-width: 2; stroke-dasharray: 6 7; stroke-dashoffset: 400; opacity: 0; }
.mappa-box.in-vista .rotta { opacity: .9; animation: rotta 1.6s var(--ease) forwards, scorre 1.2s linear infinite 1.6s; animation-delay: calc(var(--i) * .25s), calc(1.6s + var(--i) * .25s); }
@keyframes rotta { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes scorre { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -26; } }
.pin { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.4s + var(--i) * .25s); }
.mappa-box.in-vista .pin { opacity: 1; transform: none; }
.pin-comune { fill: var(--giallo); stroke: #0c3f73; stroke-width: 3; }
.pin .onda { fill: none; stroke: var(--giallo); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: onda-pin 2.4s ease-out infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes onda-pin { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.mappa-nome { font: 700 15px var(--cond); fill: #fff; paint-order: stroke; stroke: #0c3f73; stroke-width: 4px; }
.mappa-ruolo { font: 500 12px var(--sans); fill: #b8d3ee; paint-order: stroke; stroke: #0c3f73; stroke-width: 4px; }
.sede-pin circle { fill: #fff; stroke: var(--azzurro); stroke-width: 5; }

/* ---------- Domande frequenti ---------- */
.domande { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.domande__lista { display: grid; gap: 10px; }
.domanda { background: #fff; border: 1px solid var(--linea); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.domanda[open] { border-color: var(--cielo-300); box-shadow: 0 16px 34px -26px rgba(12, 35, 64, .5); }
.domanda summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font: 700 1.12rem/1.3 var(--cond); color: var(--notte); }
.domanda summary::-webkit-details-marker { display: none; }
.domanda__segno { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cielo-100); transition: background-color .3s, transform .4s var(--ease); }
.domanda__segno::before, .domanda__segno::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; background: var(--azzurro-scuro); transition: transform .4s var(--ease), background-color .3s; }
.domanda__segno::after { transform: rotate(90deg); }
.domanda[open] .domanda__segno { background: var(--azzurro); transform: rotate(180deg); }
.domanda[open] .domanda__segno::before, .domanda[open] .domanda__segno::after { background: #fff; }
.domanda[open] .domanda__segno::after { transform: rotate(0); }
.domanda__testo { padding: 0 20px 18px; color: var(--testo); animation: entra .4s var(--ease); }

/* prodotti su fondo azzurrino */
.sez--cielo .prodotto { border-color: var(--cielo-200); }

@media (max-width: 1060px) {
  .schema-box, .pressioni, .domande { grid-template-columns: minmax(0, 1fr); }
  .passi-schema { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .passi-schema { grid-template-columns: minmax(0, 1fr); }
  .schema-tela { padding: 8px; margin-inline: calc(var(--gut) * -0.5); }
  .specie { min-width: 0; width: max(64%, var(--w)); }
  .hero__img--a { inset: 0 0 18% 18%; }
}

/* ---------- Dal progetto all'impianto in servizio ---------- */
.percorso { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: tappa; }
.percorso::before { content: ""; position: absolute; left: 4%; right: 4%; top: calc(150px + 26px); height: 3px; background: var(--cielo-200); }
.percorso::after { content: ""; position: absolute; left: 4%; right: 4%; top: calc(150px + 26px); height: 3px; background: linear-gradient(90deg, var(--azzurro), var(--giallo)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .3s; }
.percorso.in-vista::after { transform: scaleX(1); }
.tappa { position: relative; display: grid; gap: 8px; align-content: start; }
.tappa figure { height: 150px; border-radius: 12px; overflow: hidden; background: var(--cielo-100); }
.tappa img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.tappa.in-vista img { transform: none; }
.tappa:hover img { transform: scale(1.05); }
.tappa__n { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-top: 2px; border-radius: 50%; background: #fff; border: 3px solid var(--azzurro); font: 700 1.05rem var(--cond); color: var(--azzurro-scuro); transition: background-color .4s, color .4s; }
.tappa:hover .tappa__n { background: var(--azzurro); color: #fff; }
.tappa h3 { font: 700 1.25rem/1.2 var(--cond); color: var(--notte); }
.tappa p { color: var(--grigio); font-size: .95rem; }
@media (max-width: 860px) {
  .percorso { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .percorso::before, .percorso::after { display: none; }
}
@media (max-width: 520px) { .percorso { grid-template-columns: minmax(0, 1fr); } .tappa figure { height: 190px; } }
