/* Vassallo Impianti — demo LUDOLUX
   Blu notte + due accenti: azzurro (acqua) e giallo (corrente), scambiati dall'interruttore. */

@property --acc { syntax: '<color>'; inherits: true; initial-value: #3CC3F2; }
@property --acc-dk { syntax: '<color>'; inherits: true; initial-value: #0678A8; }

:root {
  --notte: #0A1321;
  --notte-2: #101C2E;
  --notte-3: #16253B;
  --linea: rgba(255, 255, 255, .1);
  --latte: #E9EEF5;
  --latte-mut: #9AA8BC;
  --carta: #F3F2EE;
  --carta-2: #E8E6DF;
  --ink: #0C1829;
  --ink-mut: #536074;
  --acqua: #3CC3F2;
  --acqua-dk: #0678A8;
  --volt: #FFC629;
  --volt-dk: #9A6B00;
  --allarme: #FF5436;
  --ok: #34D399;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1200px;
  --f-head: 'Sora', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
body[data-mode="acqua"] { --acc: var(--acqua); --acc-dk: var(--acqua-dk); --acc-ink: #03202D; }
body[data-mode="corrente"] { --acc: var(--volt); --acc-dk: var(--volt-dk); --acc-ink: #1F1600; }
body { transition: --acc .5s ease, --acc-dk .5s ease; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--notte); color: var(--latte);
  font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mut { color: var(--latte-mut); }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); }
.btn--acc { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 24px -10px var(--acc); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--alarm { background: var(--allarme); color: #fff; }
.btn--block { width: 100%; }
.round {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--carta-2); background: #fff; cursor: pointer; color: var(--ink);
}
.round:hover { border-color: var(--ink); }

/* ---------- Barra alta + header ---------- */

.topbar { background: #060C16; font-size: .82rem; color: var(--latte-mut); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live b { font-weight: 500; color: var(--latte); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
.live.is-off i { background: var(--volt); box-shadow: 0 0 0 0 var(--volt); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.topbar__tel { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--latte); font-weight: 600; }
.topbar__tel svg { color: var(--acc); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 19, 33, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--notte-3); border: 1px solid var(--linea);
}
.logo__mark svg { width: 30px; height: 30px; }
.logo__drop { fill: var(--acqua); }
.logo__bolt { fill: var(--volt); }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font: 800 1.3rem var(--f-head); letter-spacing: -.02em; }
.logo__sub { font: 500 .68rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--latte-mut); margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: #C9D3E0; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { padding: .7em 1.2em; }
.burger { display: none; }

/* ---------- Apertura ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__photos { position: absolute; inset: 0; z-index: -1; }
.hero__ph { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
body[data-mode="acqua"] .hero__ph--acqua,
body[data-mode="corrente"] .hero__ph--corrente { opacity: 1; }
.hero__photos::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--notte) 0%, rgba(10, 19, 33, .93) 38%, rgba(10, 19, 33, .55) 70%, rgba(10, 19, 33, .75) 100%),
    linear-gradient(0deg, var(--notte) 0%, transparent 30%);
}
.hero__in { display: grid; grid-template-columns: 1.25fr .8fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.eyebrow span {
  font: 600 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--acc); padding: 6px 11px; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); border-radius: 999px;
}
.hero__h { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; }
.hero__h .swap { color: var(--acc); }
.hero__h em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--latte); }
.hero__lead { max-width: 520px; margin-top: 22px; font-size: 1.1rem; color: #C3CDDA; }

/* Interruttore */
.switch { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.switch__lbl { font: 500 .8rem var(--f-mono); color: var(--latte-mut); text-transform: uppercase; letter-spacing: .1em; }
.switch__plate {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px;
  border-radius: 999px; background: linear-gradient(180deg, #1A2A42, #0D1828);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .06);
}
.switch__plate button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--latte-mut); transition: color .3s;
}
.switch__plate button svg { width: 1.2em; height: 1.2em; }
.switch__plate button[aria-checked="true"] { color: var(--acc-ink); }
.switch__knob {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--acc);
  box-shadow: 0 6px 20px -4px var(--acc), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .45s cubic-bezier(.7, -0.3, .3, 1.3);
}
body[data-mode="corrente"] .switch__knob { transform: translateX(100%); }
.switch--sm { margin-top: 0; }
.switch--sm .switch__plate button { padding: 9px 18px; font-size: .92rem; }

.stats { display: flex; gap: 0; margin: 40px 0 0; }
.stats > div { padding: 0 28px; border-left: 1px solid var(--linea); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font: 800 2rem var(--f-head); color: var(--acc); letter-spacing: -.03em; }
.stats dt small { font-size: .55em; color: var(--latte-mut); }
.stats dd { margin: 2px 0 0; font-size: .85rem; color: var(--latte-mut); }

/* Modulo richiamata */
.callback {
  background: rgba(16, 28, 46, .9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  display: grid; gap: 14px; border-top: 3px solid var(--acc);
}
.callback__kicker { display: flex; align-items: center; gap: 8px; font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--latte-mut); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.callback__h { font-size: 1.45rem; font-weight: 700; margin-bottom: 4px; }
.callback__h b { color: var(--acc); }
.callback__note { font-size: .82rem; color: var(--latte-mut); text-align: center; }

.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--latte-mut); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  outline: none; transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6E7C90; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); background: rgba(255, 255, 255, .08); }
.field.is-err input, .field.is-err select { border-color: var(--allarme); }

/* ---------- Garanzie ---------- */

.pledges { background: var(--notte-2); border-block: 1px solid var(--linea); }
.pledges__in { display: grid; grid-template-columns: .9fr 1.6fr; gap: 48px; align-items: center; padding: 44px 0; }
.pledges__intro h2 { font-size: 1.5rem; }
.pledges__intro p { margin-top: 10px; color: var(--latte-mut); font-size: .95rem; }
.pledges__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pledges__list li { display: grid; gap: 4px; align-content: start; }
.pledges__list .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  color: var(--acc); border: 1.5px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background: color-mix(in srgb, var(--acc) 8%, transparent);
}
.pledges__list .ic svg { width: 22px; height: 22px; }
.pledges__list b { font-size: .95rem; line-height: 1.3; }
.pledges__list small { color: var(--latte-mut); font-size: .82rem; line-height: 1.4; }

/* ---------- Sezioni ---------- */

.section { padding: 104px 0; background: var(--carta); color: var(--ink); }
.section .mut { color: var(--ink-mut); }
.section--dark { background: var(--notte); color: var(--latte); }
.section--dark .mut { color: var(--latte-mut); }
.section--paper { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head--col { flex-direction: column; align-items: flex-start; gap: 0; max-width: 760px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--acc-dk);
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.section--dark .kicker { color: var(--acc); }
.kicker small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.sec-h { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; max-width: 720px; }
.sec-h--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sec-lead { margin-top: 16px; max-width: 520px; color: var(--ink-mut); font-size: 1.05rem; }
.section--dark .sec-lead { color: var(--latte-mut); }

/* ---------- Servizi ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; overflow: hidden; border-radius: var(--r); min-height: 300px;
  background: var(--notte-2); border: 1px solid var(--linea); isolation: isolate;
  animation: svcIn .5s both; animation-delay: calc(var(--i) * 60ms);
  transition: border-color .3s, transform .3s;
}
@keyframes svcIn { from { opacity: 0; transform: translateY(14px); } }
.svc img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--notte-2) 38%, rgba(16, 28, 46, .7) 62%, rgba(16, 28, 46, .2)); }
.svc:hover { border-color: color-mix(in srgb, var(--acc) 60%, transparent); transform: translateY(-3px); }
.svc:hover img { transform: scale(1.05); }
.svc__body { padding: 26px; display: flex; flex-direction: column; height: 100%; max-width: 64%; }
.svc__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--acc-dk); margin-bottom: 26px; }
.svc__ic svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.25rem; font-weight: 700; }
.svc p { margin-top: 10px; font-size: .9rem; color: #B5C1D1; line-height: 1.5; }
.svc__go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--acc); text-decoration: none; }
.svc__go svg { transition: transform .2s; }
.svc__go:hover svg { transform: translateX(3px); }

/* ---------- Guida al guasto ---------- */

.diag { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.diag__pick { display: grid; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--carta-2); background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.chip > svg { width: 22px; height: 22px; color: var(--acc-dk); }
.chip span { flex: 1; }
.chip:hover { border-color: #C9CBD1; transform: translateX(3px); }
.chip[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(12, 24, 41, .5); }
.lvl { width: 10px; height: 10px; border-radius: 50%; }
.lvl--0 { background: var(--allarme); box-shadow: 0 0 0 4px rgba(255, 84, 54, .2); }
.lvl--1 { background: #FF8A1F; }
.lvl--2 { background: #F5C518; }
.lvl--3 { background: var(--ok); }

.diag__out {
  background: var(--notte); color: var(--latte); border-radius: 22px; padding: 32px;
  position: relative; overflow: hidden; min-height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: fadeIn .35s;
}
@keyframes fadeIn { from { opacity: .4; } }
.diag__head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.meter { display: flex; gap: 5px; padding: 8px; background: #050A12; border-radius: 10px; border: 1px solid var(--linea); }
.meter i { width: 12px; height: 30px; border-radius: 3px; background: #1C2A3F; }
.meter[data-lvl="3"] i:nth-child(1) { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.meter[data-lvl="2"] i:nth-child(-n+2) { background: #F5C518; box-shadow: 0 0 10px #F5C518; }
.meter[data-lvl="1"] i:nth-child(-n+3) { background: #FF8A1F; box-shadow: 0 0 10px #FF8A1F; }
.meter[data-lvl="0"] i { background: var(--allarme); box-shadow: 0 0 10px var(--allarme); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.diag__lvl { font: 600 .8rem var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--acc); }
.diag__sub { color: var(--latte-mut); font-size: .92rem; margin-top: 2px; }
.diag__t { font-size: 1.7rem; margin: 22px 0 20px; }
.diag__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.diag h4 { display: flex; align-items: center; gap: 8px; font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; color: var(--ok); }
.diag__no h4 { color: #FF8C78; }
.diag h4 svg { width: 16px; height: 16px; }
.diag ol, .diag ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.diag ol { counter-reset: n; }
.diag ol li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: .95rem; color: #D5DDE8; }
.diag ol li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .75rem var(--f-mono); background: rgba(52, 211, 153, .14); color: var(--ok); }
.diag ul li { padding-left: 14px; border-left: 2px solid rgba(255, 140, 120, .45); font-size: .92rem; color: #C3CDDA; }
.diag__foot { margin-top: 28px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.diag__foot .mono { color: var(--latte-mut); }
.diag__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.diag__cta .btn { padding: .7em 1.1em; font-size: .9rem; }
.diag__cta .btn--ghost { color: var(--latte); border-color: rgba(255, 255, 255, .3); }

/* Fasce */
.bands { margin-top: 28px; padding: 26px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--carta-2); display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.bands__head h3 { font-size: 1.1rem; }
.bands__head p { margin-top: 6px; color: var(--ink-mut); font-size: .9rem; }
.bands__head b { color: var(--ink); }
.bands__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bands__list li { position: relative; padding: 14px 16px; border-radius: 12px; background: var(--carta); display: grid; gap: 2px; border: 1.5px solid transparent; }
.bands__list b { font-family: var(--f-head); font-size: .98rem; }
.bands__list span { font-size: .8rem; color: var(--ink-mut); line-height: 1.35; }
.bands__list small { font: 500 .7rem var(--f-mono); color: var(--ink-mut); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.bands__list li.is-now { background: var(--notte); color: var(--latte); border-color: var(--acc); }
.bands__list li.is-now span, .bands__list li.is-now small { color: var(--latte-mut); }
.bands__list em { position: absolute; top: -9px; right: 12px; font: 600 .65rem var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; background: var(--acc); color: var(--acc-ink); padding: 3px 8px; border-radius: 999px; }

/* ---------- Come lavoriamo + chi siamo ---------- */

.how { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 21px; top: 20px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--acc) 0 6px, transparent 6px 12px); }
.steps li { position: relative; padding: 0 0 34px 68px; }
.steps__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.05rem var(--f-head);
  background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 6px var(--notte);
}
.steps b { font: 700 1.15rem var(--f-head); display: block; padding-top: 8px; }
.steps p { margin-top: 6px; color: var(--latte-mut); font-size: .95rem; }

.about { display: grid; grid-template-columns: .85fr 1fr; gap: 28px; background: var(--notte-2); border: 1px solid var(--linea); border-radius: 22px; padding: 22px; }
.about__ph { position: relative; }
.about__ph img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 30% center; border-radius: 14px; }
.about__badge { position: absolute; left: 14px; bottom: 14px; background: var(--acc); color: var(--acc-ink); padding: 10px 14px; border-radius: 12px; font-size: .78rem; line-height: 1.2; }
.about__badge b { display: block; font: 800 1.3rem var(--f-head); }
.about__txt { padding: 12px 8px 8px 0; }
.about__txt > p:not(.kicker) { margin-top: 14px; color: var(--latte-mut); font-size: .95rem; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.ticks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); }
.team { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linea); }
.member__av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 .8rem var(--f-head); background: var(--notte-3); color: var(--latte); flex: none; }
.member--acqua .member__av { background: rgba(60, 195, 242, .16); color: var(--acqua); }
.member--corrente .member__av { background: rgba(255, 198, 41, .16); color: var(--volt); }
.member b { display: block; font-size: .85rem; line-height: 1.2; }
.member small { color: var(--latte-mut); font-size: .75rem; }

/* ---------- Zone ---------- */

.line { --from: 33%; --to: 33%; overflow-x: auto; scrollbar-width: thin; }
.line__in { position: relative; min-width: 940px; padding-top: 18px; }
.line__track { position: absolute; left: calc(100% / 24); right: calc(100% / 24); top: 38px; height: 10px; border-radius: 99px; background: var(--carta-2); overflow: hidden; }
.line__flow {
  position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to));
  background: repeating-linear-gradient(90deg, var(--acc) 0 14px, color-mix(in srgb, var(--acc) 60%, #fff) 14px 28px);
  background-size: 28px 100%; animation: flow 1s linear infinite;
  transition: left .5s ease, right .5s ease;
}
@keyframes flow { to { background-position: 28px 0; } }
.line__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(78px, 1fr)); position: relative; }
.line__stops button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 10px 2px; color: var(--ink-mut); }
.line__stops i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #C9CBD1; transition: all .3s; }
.line__stops span { font-size: .82rem; font-weight: 600; text-align: center; line-height: 1.2; }
.line__stops small { font: 600 .62rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 99px; margin-top: -4px; }
.line__stops .is-path i { border-color: var(--acc-dk); }
.line__stops .is-home i { width: 28px; height: 28px; margin-top: -3px; border-color: var(--ink); background: var(--acc); }
.line__stops button[aria-pressed="true"] { color: var(--ink); }
.line__stops button[aria-pressed="true"] i { background: var(--ink); border-color: var(--acc); transform: scale(1.2); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 25%, transparent); }
.line__stops button:hover i { border-color: var(--ink); }
.line__out { margin-top: 26px; padding: 20px 24px; border-radius: 14px; background: #fff; border-left: 4px solid var(--acc); font-size: 1.02rem; }
.line__out .mut { display: block; font-size: .88rem; margin-top: 4px; }

/* ---------- Recensioni + FAQ ---------- */

.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.reviews { min-width: 0; }
.reviews__track { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.rev { margin: 0; padding: 22px; border-radius: 16px; background: var(--carta); display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--acqua); animation: fadeIn .4s; }
.rev--corrente { border-top-color: var(--volt); }
.rev__stars { display: flex; gap: 2px; color: #F5A524; }
.rev__stars svg { width: 16px; height: 16px; }
.rev__stars .off { color: #D5D6DA; }
.rev blockquote { margin: 0; font-size: .93rem; line-height: 1.55; flex: 1; }
.rev figcaption { display: flex; gap: 10px; align-items: center; }
.rev__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .8rem var(--f-head); flex: none; }
.rev figcaption b { display: block; font-size: .9rem; }
.rev figcaption small { color: var(--ink-mut); font-size: .78rem; }
.reviews__nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.reviews__dots { display: flex; gap: 6px; }
.reviews__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--carta-2); transition: all .3s; }
.reviews__dots i.on { width: 22px; background: var(--acc-dk); }

.faq__list { margin-top: 28px; display: grid; gap: 10px; }
.faq details { border-radius: 12px; border: 1px solid var(--carta-2); background: #fff; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { width: 12px; height: 12px; position: relative; flex: none; }
.faq summary span::before, .faq summary span::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: currentColor; transition: transform .25s; }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary { background: var(--notte); color: #fff; }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details p { padding: 14px 18px 18px; color: var(--ink-mut); font-size: .93rem; }

/* ---------- Urgenza ---------- */

.urgent { background: var(--notte); }
.urgent__in {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 22px; border: 1.5px solid color-mix(in srgb, var(--acc) 50%, transparent);
  background: linear-gradient(110deg, var(--notte-2), var(--notte-3));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.urgent__ic { display: flex; }
.urgent__ic svg { width: 54px; height: 54px; padding: 13px; border-radius: 50%; }
.urgent__ic svg:first-child { background: var(--volt); color: #1F1600; }
.urgent__ic svg:last-child { background: var(--acqua); color: #03202D; margin-left: -14px; box-shadow: 0 0 0 4px var(--notte-2); }
.urgent h2 { font-size: 1.6rem; }
.urgent p { color: var(--latte-mut); margin-top: 4px; }
.urgent__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.section--paper + .urgent { background: linear-gradient(180deg, #fff 50%, var(--notte) 50%); }

/* ---------- Contatti ---------- */

#contatti { padding-top: 90px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--notte-3); color: var(--acc); }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--acc); }
.hours { margin-top: 32px; padding: 20px 22px; border-radius: 16px; background: var(--notte-2); border: 1px solid var(--linea); max-width: 420px; }
.hours h3 { font-size: .95rem; margin-bottom: 10px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; font-size: .88rem; color: var(--latte-mut); border-bottom: 1px dashed var(--linea); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: var(--latte); font-weight: 600; }
.hours li.is-today span:first-child::after { content: ' · oggi'; color: var(--acc); font-weight: 500; }

.form { background: var(--notte-2); border: 1px solid var(--linea); border-radius: 22px; padding: 30px; display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--latte-mut); cursor: pointer; }
.check input { accent-color: var(--acc); margin-top: 3px; width: 16px; height: 16px; }
.check.is-err { color: #FF8C78; }
.form__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__hint { font-size: .8rem; color: var(--latte-mut); }
.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: #FF8C78; }

/* ---------- Footer ---------- */

.footer { background: #060C16; color: var(--latte-mut); padding: 64px 0 24px; font-size: .9rem; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 300px; }
.logo--foot { color: var(--latte); }
.footer h3 { font-size: .95rem; color: var(--latte); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--acc); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--linea); font-size: .8rem; }

.mbar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 110px 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 20px;
    background: var(--notte); border-bottom: 1px solid var(--linea);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea); background: none; cursor: pointer; }
  .burger span { width: 20px; height: 2px; background: var(--latte); transition: transform .25s; }
  .nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header__cta { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .callback { max-width: 520px; }
  .pledges__in { grid-template-columns: 1fr; gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .diag { grid-template-columns: 1fr; }
  .diag__pick { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .bands { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { padding-bottom: 70px; }
  .topbar__mid { display: none; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .pledges__list { grid-template-columns: 1fr 1fr; }
  .bands__list { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__ph img { min-height: 260px; max-height: 320px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .urgent__in { grid-template-columns: 1fr; text-align: left; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(6, 12, 22, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--linea);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .88rem; background: var(--notte-3); }
  .mbar a.mbar__main { background: var(--acc); color: var(--acc-ink); }
  .mbar svg { width: 1.1em; height: 1.1em; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .topbar .live b { font-size: .72rem; line-height: 1.25; }
  .hero__h { font-size: 2.35rem; }
  .switch__plate { width: 100%; }
  .switch__plate button { padding: 12px 10px; }
  .stats > div { padding: 0 14px; }
  .stats dt { font-size: 1.5rem; }
  .services { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc img { position: relative; width: 100%; height: 170px; }
  .svc::before { background: linear-gradient(180deg, transparent 90px, var(--notte-2) 170px); }
  .svc__body { max-width: none; height: auto; margin-top: -40px; padding-top: 0; }
  .svc__ic { margin-bottom: 16px; }
  .diag__out { padding: 22px; }
  .diag__cols { grid-template-columns: 1fr; }
  .diag__t { font-size: 1.4rem; }
  .bands { padding: 20px; }
  .reviews__track { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .urgent__in { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
