@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
}

/* ---------- token: tema scuro (predefinito) ---------- */
:root {
  --bg: #07090d;
  --ink: #f1efea;
  --text: #c3c7cd;
  --muted: #868d97;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --surface: rgba(10, 13, 18, .74);
  --hover: rgba(255, 255, 255, .035);
  --accent: #ef7f1a;
  --accent-ink: #1a1007;
  --blue: #3d8fd6;
  --brand-blue: #3f9ae4;
  --ok: #4cc38a;
  --ko: #e5776b;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
/* ---------- token: tema chiaro ---------- */
[data-theme="light"] {
  --bg: #f5f3ee;
  --ink: #15181d;
  --text: #3d434b;
  --muted: #6b717a;
  --line: rgba(21, 24, 29, .11);
  --line-strong: rgba(21, 24, 29, .24);
  --surface: rgba(250, 249, 246, .82);
  --hover: rgba(21, 24, 29, .03);
  --accent: #d96a0b;
  --accent-ink: #ffffff;
  --blue: #0062b0;
  --brand-blue: #006ab3;
  --ok: #1d8a52;
  --ko: #c0453a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.7 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- fondo e scena ---------- */
#scena {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: block; opacity: 0; transition: opacity 1.6s var(--ease);
}
.scene-on #scena { opacity: 1; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70vmax 50vmax at 80% 30%, rgba(0, 106, 179, .16), transparent 62%), var(--bg);
}
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--bg); opacity: 0; }

/* ---------- barra superiore ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.topbar.scrolled { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-blue); font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
.brand img { width: 40px; height: auto; }
.brand b { font-weight: 700; color: var(--accent); }
.topnav { display: none; gap: 30px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .2s; }
.topnav a:hover { color: var(--ink); }

.theme-switch {
  margin-left: auto; flex: none; width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
  transition: border-color .25s, background .25s;
}
.topnav + .theme-switch { margin-left: 6px; }
.theme-switch:hover { background: var(--hover); border-color: var(--ink); }
.theme-switch .knob { display: grid; place-items: center; }
.theme-switch svg { width: 16px; height: 16px; }
.theme-switch .i-sun { display: none; }
[data-theme="light"] .theme-switch .i-sun { display: block; }
[data-theme="light"] .theme-switch .i-moon { display: none; }
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color .5s, color .5s, border-color .5s !important; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 8px;
  font: 600 14px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { border-color: var(--ink); background: var(--hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-wa svg { color: var(--ok); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- sezioni ---------- */
main, .footer { position: relative; z-index: 5; }
.sec {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 128px var(--gutter);
  position: relative;
}
.sec.wide { display: block; min-height: auto; padding-top: 150px; padding-bottom: 150px; }
.col { width: 100%; max-width: 600px; position: relative; }
.wrap { max-width: 1180px; margin: 0 auto; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 4vw, 52px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.16; letter-spacing: -.015em; margin-bottom: 26px; }
h2 em, h1 em { font-style: normal; color: var(--accent); }
.sec p { color: var(--text); }

/* ---------- hero ---------- */
.hero { align-items: flex-end; padding-bottom: 96px; }
h1 { margin: 0 0 30px; }
.h1-name {
  display: block; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -.01em;
}
.h1-name { color: var(--brand-blue); }
.h1-name em { display: block; }
.h1-sub {
  display: block; margin-top: 20px;
  font-family: var(--sans); font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 520px; }
.hero-visual { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding-top: 17vh; }
.hero-mark { width: min(64vw, 380px); transition: opacity 1s var(--ease); }
.scene-on .hero-mark { opacity: 0; }

/* stato aperto/chiuso */
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0;
  font-size: 13.5px; font-weight: 500; color: var(--text) !important;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.status.closed .dot { background: var(--ko); }
.status b { font-weight: 600; color: var(--ink); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline b { font-size: 15px; font-weight: 600; color: var(--accent); line-height: 1.5; letter-spacing: .02em; }
.timeline span { color: var(--text); font-size: 15px; }

/* ---------- numeri ---------- */
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 26px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.stat b { font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat > span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- prodotti ---------- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat {
  padding: 30px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s;
}
.cat:hover { background: color-mix(in srgb, var(--surface) 70%, var(--ink) 4%); }
.cat svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 22px; }
.cat svg g, .cat svg path { stroke-width: 1.5; }
.cat h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: .005em; }
.cat p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.cat-urgent svg { color: var(--accent); }
.cat-urgent h3 { color: var(--accent); }
.link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link:hover { color: var(--accent); }

/* ---------- marchi ---------- */
.brands-sec { overflow: hidden; }
.brands-sec .sec-head { margin-bottom: 40px; }
.marquee { overflow: hidden; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; gap: clamp(28px, 5vw, 72px); animation: marquee 34s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 42s; }
.track span {
  font-size: clamp(2.6rem, 8vw, 6.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--blue) 70%, transparent);
}
:root:not([data-theme="light"]) .track span { -webkit-text-stroke-color: rgba(120, 180, 240, .75); }
.track span {
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.track span:nth-child(odd) { color: color-mix(in srgb, var(--blue) 8%, transparent); }
.marquee.rev .track span { font-size: clamp(1.8rem, 5vw, 3.7rem); -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 65%, transparent); color: transparent; }
.marquee:hover .track { animation-play-state: paused; }
.track span:hover { color: var(--ink) !important; -webkit-text-stroke-color: var(--ink) !important; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brands-text { max-width: 680px; margin: 40px auto 0; text-align: center; font-size: 15.5px; }

/* ---------- configuratore ---------- */
.series { list-style: none; padding: 0; margin: 6px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.series li { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps li { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
.steps b { font-size: 12px; font-weight: 700; color: var(--accent); }
.btn-primary svg { order: 2; }

/* ---------- installatori e servizi ---------- */
.perks { list-style: none; padding: 0; margin: 8px 0 30px; border-top: 1px solid var(--line); }
.perks li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); font-size: 15px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }

.services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.services li {
  display: flex; align-items: baseline; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(.98rem, 1.4vw, 1.06rem); font-weight: 500; color: var(--ink);
}
.services li b { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); min-width: 24px; }

/* ---------- dove siamo ---------- */
.nap { font-style: normal; line-height: 1.85; margin: 0 0 22px; color: var(--text); }
.nap a, .footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.nap a:hover, .footer a:hover { border-color: var(--accent); color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; margin: 26px 0 8px; font-size: 14.5px; }
.hours caption { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.hours th, .hours td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink); padding-left: 0; }
.hours td { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.today th { color: var(--accent); }
.hours tr.today th::after { content: " · oggi"; font-weight: 400; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted) !important; }
.access { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.access li { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.access b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.map { margin-top: 28px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.9) contrast(.85) brightness(.95); }
[data-theme="light"] .map iframe { filter: grayscale(.85) contrast(.95); }

/* ---------- footer ---------- */
.footer { padding: 96px var(--gutter) 130px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: grid; gap: 40px; align-items: center; }
.foot-logo { width: fit-content; }
.foot-logo img { width: 150px; height: auto; }
:root:not([data-theme="light"]) .foot-logo img { filter: brightness(0) invert(1); }
.foot-tag { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 16px !important; }
.footer p { color: var(--text); font-size: 14.5px; }
.legal { font-size: 12.5px !important; color: var(--muted) !important; margin: 0 0 4px; }

/* ---------- dock mobile ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.dock.show { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--ink); }
.dock a svg { width: 19px; height: 19px; }
.dock a:first-child { background: var(--accent); color: var(--accent-ink); }
.dock a:nth-child(2) svg { color: var(--ok); }

/* ---------- comparsa ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- layout ---------- */
@media (min-width: 640px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .col .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .sec:not(.hero) .col:not(.panel) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hero { padding-top: 46vh; }
  .topbar .btn span { display: none; }
  .topbar .btn { padding: 0; width: 38px; justify-content: center; border-radius: 50%; }
  .timeline li { grid-template-columns: 76px 1fr; }
  .hours { font-size: 14px; }
  .hours th, .hours td { padding: 10px 6px; white-space: normal; }
  .hours th { padding-left: 0; }
  .hours tr.today th::after { content: ""; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .topnav { display: flex; }
  .hero { align-items: center; padding-bottom: 120px; }
  .hero-visual { justify-content: flex-end; align-items: center; padding: 0 7vw 0 0; }
  .hero-mark { width: min(36vw, 500px); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: auto 1fr; gap: 64px; }
  .dock { display: none; }
}
@media (min-width: 1200px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .col { margin-left: 2vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.cta + .note { margin-top: 14px; }
