/* ==========================================================
   Volt.Ampere — sito pubblico
   Brand: blu #2d4d9c · giallo #fbc707 · Montserrat + Inter
   ========================================================== */
:root {
  --blue: #2d4d9c;
  --blue-d: #1b2f63;
  --blue-dd: #111e42;
  --blue-l: #e8edf8;
  --blue-ll: #f4f6fc;
  --yellow: #fbc707;
  --yellow-d: #e0ae00;
  --yellow-l: #fff6d1;
  --ink: #16203d;
  --ink-2: #4a5577;
  --line: #dfe5f2;
  --white: #fff;
  --ok: #1f9d55;
  --err: #d64545;
  --radius: 18px;
  --radius-s: 10px;
  --shadow: 0 18px 50px -20px rgba(27, 47, 99, .35);
  --shadow-s: 0 6px 20px -8px rgba(27, 47, 99, .25);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--blue-dd); }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.hl { color: var(--yellow); position: relative; white-space: nowrap; }
.hero-light .hl, .section:not(.section-dark):not(.section-night) .hl { color: var(--blue); background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.ic { flex-shrink: 0; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--head); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; line-height: 1.1; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-lg { padding: 17px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(45, 77, 156, .7); }
.btn-primary:hover { background: var(--blue-d); }
.btn-yellow { background: var(--yellow); color: var(--blue-dd); box-shadow: 0 10px 24px -10px rgba(251, 199, 7, .8); }
.btn-yellow:hover { background: #ffd431; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost { background: var(--blue-l); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Topbar / header ---------- */
.topbar { background: var(--blue-dd); color: #cfd8f0; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; }
.topbar a { color: #e6ebf8; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-contacts { display: flex; gap: 22px; }
.seg-switch { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.seg-switch a { padding: 5px 14px; border-radius: 999px; font-weight: 600; }
.seg-switch a.on { background: var(--yellow); color: var(--blue-dd); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.scrolled { box-shadow: var(--shadow-s); border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.active { background: var(--blue-l); color: var(--blue); }
.nav a.nav-hot { color: var(--blue-d); }
.nav a.nav-fotovoltaico .ic { color: var(--yellow-d); }
.nav a.nav-domotica .ic { color: var(--blue); }
.nav-cta { margin-left: 10px; padding: 11px 18px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2.5px; background: var(--blue-dd); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 60%, var(--blue-dd) 100%); }
.hero h1 { color: #fff; }
.hero .lead { color: #d8e0f5; max-width: 560px; }
.hero .eyebrow { color: var(--yellow); }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-bg span:first-child { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(251, 199, 7, .28), transparent 65%); }
.hero-bg span:last-child { width: 520px; height: 520px; left: -200px; bottom: -280px; background: radial-gradient(circle, rgba(120, 150, 230, .35), transparent 65%); }
.hero-solar { background: linear-gradient(140deg, #2d4d9c 0%, #22408a 45%, #1b2f63 100%); }
.hero-solar .hero-bg span:first-child { background: radial-gradient(circle, rgba(251, 199, 7, .5), transparent 62%); width: 760px; height: 760px; }
.hero-smart { background: radial-gradient(1200px 600px at 80% 0%, #24418a 0%, #111e42 55%, #0b142e 100%); }
.hero-light { background: linear-gradient(180deg, var(--blue-ll), #fff); color: var(--ink); }
.hero-light h1 { color: var(--blue-dd); }
.hero-light .lead { color: var(--ink-2); }
.hero-light .eyebrow { color: var(--blue); }
.hero-light .btn-outline { color: var(--blue); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-form .hero-in { grid-template-columns: 1.1fr .9fr; align-items: start; }
.hero .ticks li .ic { color: var(--yellow); }
.hero-side .illu { width: 100%; max-width: 560px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }
.hero-light .hero-side .illu { filter: drop-shadow(0 30px 40px rgba(27, 47, 99, .15)); }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 5/4; }
.illu .rays { transform-origin: 420px 80px; animation: spin 40s linear infinite; }
.illu .flow { animation: dash 1.2s linear infinite; }
.illu .waves path { animation: pulse 2.4s ease-in-out infinite; }
.illu .waves path:nth-child(2n) { animation-delay: .6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Liste con spunta ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .ic { color: var(--blue); margin-top: 3px; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-dark { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-d) 100%); color: #e6ebf8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #cfd8f0; }
.section-dark .eyebrow { color: var(--yellow); }
.section-night { background: radial-gradient(900px 500px at 50% -10%, #24418a, #0f1a3a 70%); color: #d4dcf3; }
.section-night h2, .section-night h3 { color: #fff; }
.section-night .lead { color: #b9c5e6; }
.section-night .eyebrow { color: var(--yellow); }

/* Segmenti privati / business */
.segments { background: var(--blue-ll); }
.seg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seg-card { position: relative; display: block; padding: 40px; border-radius: 26px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); transition: transform .2s, box-shadow .25s, border-color .2s; overflow: hidden; }
.seg-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow-l); transition: transform .4s; }
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.seg-card:hover::after { transform: scale(1.3); }
.seg-business { background: var(--blue-dd); color: #d4dcf3; border-color: var(--blue-dd); }
.seg-business h3 { color: #fff; }
.seg-business::after { background: rgba(251, 199, 7, .15); }
.seg-business .ticks .ic { color: var(--yellow); }
.seg-card > * { position: relative; z-index: 1; }
.seg-card h3 { font-size: 1.7rem; font-weight: 800; }
.seg-tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--blue-dd); font-family: var(--head); font-weight: 700; font-size: .8rem; margin-bottom: 18px; }
.seg-go { display: inline-flex; gap: 8px; align-items: center; font-family: var(--head); font-weight: 700; color: var(--blue); }
.seg-business .seg-go { color: var(--yellow); }

/* Servizi */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .25s, border-color .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc p { color: var(--ink-2); flex: 1; }
.svc-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--blue-l); color: var(--blue); margin-bottom: 18px; }
.svc .more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--blue); font-family: var(--head); font-size: .9rem; }
.svc-featured { grid-column: span 1; background: linear-gradient(150deg, var(--blue), var(--blue-d)); color: #dde4f6; border-color: transparent; }
.svc-featured h3 { color: #fff; }
.svc-featured p { color: #cfd8f0; }
.svc-featured .svc-ic { background: var(--yellow); color: var(--blue-dd); }
.svc-featured .more { color: var(--yellow); }
.svc-grid:has(.svc-featured:nth-child(2)) { grid-template-columns: repeat(12, 1fr); }
.svc-grid:has(.svc-featured:nth-child(2)) .svc { grid-column: span 3; }
.svc-grid:has(.svc-featured:nth-child(2)) .svc-featured { grid-column: span 6; min-height: 260px; }
.svc-grid:has(.svc-featured:nth-child(2)) .svc-featured h3 { font-size: 1.6rem; }

/* Split */
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-media { order: 0; }
.split:not(.split-rev) .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-media .illu { width: 100%; }
.rich p { color: var(--ink-2); }
.rich h2, .rich h3 { margin-top: 1.2em; }
.rich a { font-weight: 600; }

/* Vantaggi */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feat { padding: 28px; border-radius: var(--radius); background: var(--blue-ll); }
.section-dark .feat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.feat-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--yellow); color: var(--blue-dd); margin-bottom: 16px; }
.feat p { color: var(--ink-2); margin: 0; }

/* Numeri */
.stats-band { background: var(--yellow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.stat strong { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; color: var(--blue-dd); line-height: 1.1; }
.stat span { color: var(--blue-d); font-weight: 600; }

/* Passaggi */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: s; }
.step-list li { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1.5px dashed #c5d0ea; background: #fff; }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--blue-l); }
.step-list p { color: var(--ink-2); margin: 0; }

/* Calcolatore fotovoltaico */
.calc { background: linear-gradient(180deg, var(--yellow-l), #fff 85%); }
.calc-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.range { display: block; margin: 22px 0; font-weight: 600; }
.range span b { color: var(--blue); }
.range input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--blue); height: 6px; }
.toggle-row { display: flex; gap: 10px; margin-top: 10px; }
.toggle-row label { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; }
.toggle-row label:has(input:checked) { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.calc-result { background: var(--blue-dd); color: #d4dcf3; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.res-main span { font-weight: 600; color: #b9c5e6; }
.res-main strong { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--yellow); line-height: 1.05; margin: 6px 0 2px; }
.res-main small { color: #9aa8d0; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.res-grid div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px 16px; }
.res-grid span { display: block; font-size: .8rem; color: #9aa8d0; }
.res-grid b { font-family: var(--head); color: #fff; font-size: 1.15rem; }

/* Scenari domotica */
.scene-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.scene { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, transform .2s; }
.scene:hover { background: rgba(251, 199, 7, .08); transform: translateY(-3px); }
.scene header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.scene-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: var(--blue-dd); }
.scene time { font-family: var(--head); font-weight: 800; color: var(--yellow); font-size: 1.2rem; }
.scene p { color: #b9c5e6; margin: 0; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 199, 7, .35), transparent 65%); }
.cta-in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d8e0f5; margin: 0; }

/* Lead form */
.lead-sec { background: var(--blue-ll); }
.lead-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { background: #fff; border-radius: 26px; padding: 32px; box-shadow: var(--shadow); color: var(--ink); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.hero .form-card .muted { color: var(--ink-2); }
.lead-form .f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.lead-form label > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.lead-form .f-full, .lead-form .f-business { grid-column: 1 / -1; }
.lead-form input:not([type=checkbox]):not([type=radio]), .lead-form select, .lead-form textarea, .bk-form input:not([type=checkbox]):not([type=radio]), .bk-form select, .bk-form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus, .bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45, 77, 156, .12); }
.lead-form .compact .f-grid, .lead-form.compact .f-grid { gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 8px 0; }
.check input { margin-top: 4px; accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.lead-form .btn { margin-top: 12px; }
.seg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; padding: 5px; background: var(--blue-ll); border-radius: 14px; }
.seg-pick label { cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 10px; font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s; text-align: center; }
.seg-pick input:checked + span { background: var(--blue); color: #fff; box-shadow: var(--shadow-s); }
.seg-pick input:focus-visible + span { outline: 3px solid var(--yellow); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .ic { color: var(--ok); width: 56px; height: 56px; }
.alt-contact { display: grid; gap: 12px; margin-top: 26px; }
.alt { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.alt:hover { border-color: var(--blue); transform: translateX(4px); }
.alt .ic { color: var(--blue); }
.alt b { display: block; font-family: var(--head); }
.alt span { color: var(--ink-2); font-size: .92rem; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-top: 30px; }
.faq details { border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 22px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); }

/* Recensioni e galleria */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.testi-card { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--blue-ll); }
.stars { color: var(--yellow-d); display: flex; gap: 2px; margin-bottom: 12px; }
.stars .ic { fill: var(--yellow); }
.testi-card blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.testi-card figcaption b { display: block; font-family: var(--head); }
.testi-card figcaption span { color: var(--ink-2); font-size: .9rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 30px; }
.gal-grid figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.gal-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s; }
.gal-grid figure:hover img { transform: scale(1.05); }
.gal-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(17, 30, 66, .85)); color: #fff; font-weight: 600; font-size: .9rem; }

/* Box prenotazione */
.bk-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px; border-radius: 26px; background: #fff; border: 2px solid var(--blue-l); box-shadow: var(--shadow-s); }
.bk-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--yellow); color: var(--blue-dd); }
.bk-card h2 { font-size: 1.7rem; margin-bottom: 4px; }
.bk-card p { color: var(--ink-2); margin: 0; }

/* ---------- Prenotazione sopralluogo ---------- */
.booking-page { background: var(--blue-ll); padding: 56px 0 90px; }
.bk-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.bk-aside { position: sticky; top: 110px; }
.bk-form { background: #fff; border-radius: 26px; padding: 32px; box-shadow: var(--shadow); }
.bk-step { margin-bottom: 28px; }
.bk-step h3 { display: flex; align-items: center; gap: 10px; }
.bk-step h3 .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-pick label { cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick .mp { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 16px; border: 2px solid var(--line); transition: border-color .2s, background .2s; }
.mode-pick .mp b { display: block; font-family: var(--head); }
.mode-pick .mp small { color: var(--ink-2); }
.mode-pick .mp .ic { color: var(--blue); }
.mode-pick input:checked + .mp { border-color: var(--blue); background: var(--blue-l); }
.mode-pick input:focus-visible + .mp { outline: 3px solid var(--yellow); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.day { flex: 0 0 auto; scroll-snap-align: start; width: 76px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background .2s; }
.day small { display: block; font-size: .72rem; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.day b { display: block; font-family: var(--head); font-size: 1.4rem; }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.day.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.day.on small { color: #cfd8f0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; min-height: 48px; }
.slot { padding: 11px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; transition: background .2s, border-color .2s; }
.slot:hover { border-color: var(--blue); }
.slot.on { background: var(--yellow); border-color: var(--yellow); color: var(--blue-dd); }
.slots .empty { grid-column: 1 / -1; color: var(--ink-2); }
.bk-form .f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-form .f-grid label > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.bk-form .f-full { grid-column: 1 / -1; }
.bk-summary { padding: 16px 18px; border-radius: 14px; background: var(--yellow-l); margin: 18px 0; font-weight: 600; display: none; }
.bk-summary.show { display: flex; gap: 10px; align-items: center; }
.confirm-card { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 40px; box-shadow: var(--shadow); text-align: center; }
.confirm-card .big-ic { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--yellow); color: var(--blue-dd); }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; text-align: left; background: var(--blue-ll); padding: 20px 24px; border-radius: 16px; margin: 24px 0; }
.confirm-card dt { color: var(--ink-2); font-weight: 600; }
.confirm-card dd { margin: 0; font-weight: 600; }

/* ---------- Preventivo pubblico ---------- */
.quote-page { background: var(--blue-ll); padding: 48px 0 80px; }
.quote-doc { background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.q-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.q-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-bottom: 2px solid var(--blue); padding: 10px 8px; }
.q-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-table .num { text-align: right; white-space: nowrap; }
.q-totals { margin-left: auto; max-width: 340px; }
.q-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.q-totals .grand { border-top: 2px solid var(--blue); margin-top: 6px; padding-top: 12px; font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--blue-dd); }
.accept-box { margin-top: 32px; padding: 26px; border-radius: 18px; background: var(--yellow-l); }
.accept-box input[type=text] { width: 100%; padding: 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; margin: 8px 0 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dd); color: #b9c5e6; padding: 70px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { color: #d4dcf3; text-decoration: none; display: block; padding: 4px 0; }
.footer a:hover { color: var(--yellow); }
.footer p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.footer p a { display: inline-flex; gap: 8px; align-items: center; padding: 0; }
.footer-brand img { margin-bottom: 18px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 22px; padding-bottom: 26px; font-size: .85rem; }
.footer-bottom a { display: inline; }

/* ---------- Floating / mobile ---------- */
.wa-float { position: fixed; right: 20px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.mobile-cta { display: none; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; inset: auto 16px 16px 16px; z-index: 100; display: flex; justify-content: center; }
.cookie[hidden] { display: none; }
.cookie-box { max-width: 720px; width: 100%; background: #fff; border-radius: 20px; padding: 24px 26px; box-shadow: 0 30px 80px -20px rgba(17, 30, 66, .5); border: 1px solid var(--line); }
.cookie-box h3 { margin-bottom: 6px; }
.cookie-box p { font-size: .92rem; color: var(--ink-2); }
.cookie-opts { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 16px; font-weight: 600; font-size: .92rem; }
.cookie-opts input { accent-color: var(--blue); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 11px 18px; }

/* ---------- Alert ---------- */
.alert { margin: 18px 0; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.alert-success { background: #e3f6eb; color: #17683a; }
.alert-error { background: #fde8e8; color: #9b2c2c; }
.alert-warning { background: var(--yellow-l); color: #7a5b00; }
.error-page { padding: 60px 20px; }
.err-code { font-family: var(--head); font-weight: 900; font-size: 7rem; color: var(--yellow); line-height: 1; }

/* ---------- Animazioni ingresso ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .illu .rays, .illu .flow, .illu .waves path { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 9px 9px; font-size: .9rem; }
  .logo img { width: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch; padding: 100px 22px 30px; background: #fff; box-shadow: var(--shadow); transform: translateX(105%); transition: transform .3s ease; z-index: 60; overflow-y: auto; }
  .nav a:not(.btn) { font-size: 1.05rem; padding: 14px 14px; }
  .nav-cta { margin: 16px 0 0; }
  .menu-open .nav { transform: none; }
  .menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(17, 30, 66, .4); z-index: 55; }
  .burger { position: relative; z-index: 70; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero-in, .hero-form .hero-in, .split-in, .calc-in, .lead-in, .bk-layout { grid-template-columns: 1fr; gap: 36px; }
  .split:not(.split-rev) .split-media, .split-rev .split-media { order: 0; }
  .hero-side .illu { max-width: 420px; margin: 0 auto; }
  .svc-grid, .svc-grid:has(.svc-featured:nth-child(2)) { grid-template-columns: 1fr 1fr; }
  .svc-grid:has(.svc-featured:nth-child(2)) .svc, .svc-grid:has(.svc-featured:nth-child(2)) .svc-featured { grid-column: span 1; }
  .seg-cards { grid-template-columns: 1fr; }
  .bk-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .bk-aside { position: static; }
  .mobile-cta { display: grid; grid-auto-flow: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(17, 30, 66, .3); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--blue); }
  .mobile-cta a.hot { background: var(--yellow); color: var(--blue-dd); }
  .wa-float { bottom: 76px; width: 54px; height: 54px; }
  body { padding-bottom: 56px; }
  .cookie { bottom: 70px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topbar-in { justify-content: center; }
  .topbar-contacts { display: none; }
  .header-in { min-height: 68px; }
  .logo img { width: 140px; }
  .svc-grid, .svc-grid:has(.svc-featured:nth-child(2)) { grid-template-columns: 1fr; }
  .lead-form .f-grid, .bk-form .f-grid, .mode-pick { grid-template-columns: 1fr; }
  .form-card, .bk-form, .seg-card, .calc-result { padding: 22px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 15px 22px; width: 100%; }
  .cta-in .btn-row { width: 100%; }
  .seg-pick span { font-size: .82rem; }
  .q-table th:nth-child(3), .q-table td:nth-child(3) { display: none; }
}
.section-dark .feat p { color: #cfd8f0; }
.step-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 960px) {
  /* backdrop-filter crea un containing block per il menu fixed: disattivato su mobile */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
  .menu-open .nav { visibility: visible; transition: transform .3s ease; }
}
.bk-layout > *, .lead-in > *, .hero-in > *, .split-in > *, .calc-in > * { min-width: 0; }
.mode-pick input, .seg-pick input { width: 1px; height: 1px; }
.topbar-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .02em; margin-right: auto; margin-left: 18px; }
@media (max-width: 1080px) { .topbar-tag { display: none; } }
