@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::before {
  content: ""; position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none;
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .4s;
}
.topbar.scrolled { border-color: var(--line); }
.topbar.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.2; white-space: nowrap; 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; flex: none; }
.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; height: 38px; min-width: 38px; flex: 0 0 38px; aspect-ratio: 1; justify-content: center; border-radius: 50%; }
  .brand { white-space: normal; font-size: 13px; line-height: 1.1; letter-spacing: .04em; margin-right: auto; }
  .brand span b { display: block; }
  .topbar { gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .nav-open .dock { transform: translateY(140%); }
  .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; }

/* =====================================================================
   TEMA WORDPRESS – aggiunte rispetto alla splash
   ===================================================================== */

/* ---------- menu principale con sottomenu ---------- */
.topnav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.topnav .menu > li { position: relative; }
.topnav .current-menu-item > a, .topnav .current-menu-ancestor > a { color: var(--ink); }
.topnav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.topnav .sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.topnav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.topnav .menu-item-has-children:hover > .sub-menu,
.topnav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.topnav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.topnav .sub-menu a:hover { background: var(--hover); color: var(--ink); }
.menu-contacts { display: none; }

.burger {
  flex: none; width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
}
.burger svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.burger svg:last-child, .nav-open .burger svg:first-child { display: none; }
.nav-open .burger svg:last-child { display: block; }

@media (max-width: 899px) {
  .topnav + .theme-switch { margin-left: auto; }
  .topnav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 67px 0 0 0; z-index: 19; margin: 0;
    padding: 12px var(--gutter) max(40px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-open .topnav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .topbar { border-color: var(--line); }
  .nav-open .topbar::before { background: var(--bg); opacity: 1; }
  .topnav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .topnav .menu > li > a { display: block; padding: 15px 0; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .topnav .menu-item-has-children > a::after { display: none; }
  .topnav .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; background: none; border: 0; padding: 4px 0 10px; backdrop-filter: none; -webkit-backdrop-filter: none; min-width: 0; }
  .topnav .sub-menu a { padding: 9px 0 9px 14px; font-size: 15px; border-left: 1px solid var(--line); border-radius: 0; }
  .menu-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .menu-contacts .btn { justify-content: center; white-space: nowrap; font-size: 14px; color: var(--ink); }
  .menu-contacts .btn-primary { color: var(--accent-ink); }
}
@media (min-width: 900px) {
  .burger { display: none; }
}

/* ---------- categorie cliccabili ---------- */
.cat { position: relative; }
.cat-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.cat-link::after { content: ""; position: absolute; inset: 0; }
.cat .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); opacity: .85; transition: transform .25s var(--ease), opacity .25s; }
.cat:hover .more { opacity: 1; transform: translateX(4px); }
.cat:hover h3 { color: var(--accent); }

/* ---------- intestazione pagine interne ---------- */
.is-inner main { padding-bottom: 40px; }
.page-hero { padding: clamp(110px, 16vh, 160px) var(--gutter) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 22px; max-width: 18ch; text-wrap: balance;
}
.page-hero .lead { color: var(--text); max-width: 640px; }
.page-hero .cta { margin-top: 26px; }
.page-hero-icon { display: none; }
.page-hero-icon svg { width: 100%; height: auto; color: var(--blue); opacity: .9; }
.page-hero-icon svg g, .page-hero-icon svg path { stroke-width: .9; }
.crumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- corpo pagina ---------- */
.page-body { display: grid; gap: 40px; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.entry { min-width: 0; max-width: 720px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 2em 0 .6em; }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 1.12rem; font-weight: 600; margin: 1.6em 0 .4em; }
.entry p { margin: 0 0 1em; }
.entry a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.entry a:hover { color: var(--accent); }
.entry ul, .entry ol { padding: 0; margin: 0 0 1.4em; list-style: none; border-top: 1px solid var(--line); }
.entry li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.entry ul li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.entry ol { counter-reset: n; }
.entry ol li::before { counter-increment: n; content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-size: 12px; font-weight: 700; color: var(--accent); }
.entry img, .entry figure { max-width: 100%; height: auto; border-radius: 10px; margin: 0; }
.entry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--ink); font-size: 1.08em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-cover { margin-bottom: 2em !important; }
.entry .alignwide, .entry .alignfull { max-width: none; }

/* ---------- riquadro laterale ---------- */
.side { display: grid; gap: 16px; align-content: start; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.side-box .kicker { margin-bottom: 14px; }
.side-box .status { margin: 0 0 16px; }
.side-box .nap { font-size: 14.5px; margin-bottom: 4px; }
.cta-stack { flex-direction: column; margin-top: 18px; }
.cta-stack .btn { justify-content: center; flex: none; width: 100%; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- prodotti correlati ---------- */
.related { padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.related h2 { margin-bottom: 34px; }

/* ---------- dove siamo ---------- */
.visit { display: grid; gap: 40px; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.visit h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 2em 0 .7em; }
.visit h2:first-child { margin-top: 0; }
.visit .hours { margin-top: 12px; }
.visit .map { margin-top: 0; aspect-ratio: 4 / 5; }
.visit a:not(.btn) { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ---------- blog ---------- */
.list { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card { background: var(--bg); }
.post-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 28px 26px; text-decoration: none; color: inherit; transition: background .25s; }
.post-card a:hover { background: var(--hover); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.post-card time { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.post-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.post-card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.empty { font-size: 1.05rem; max-width: 560px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- footer a colonne ---------- */
.footer { padding-bottom: 40px; }
img.foot-logo { width: 150px; height: auto; margin-bottom: 18px; }
:root:not([data-theme="light"]) img.foot-logo { filter: brightness(0) invert(1); }
.foot-grid { align-items: start; }
.foot-h { font-size: 11.5px !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) !important; margin: 0 0 12px; }
.footer p + .foot-h { margin-top: 22px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot-links a { border-bottom-color: transparent; }
.foot-legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 899px) {
  .footer { padding-bottom: 130px; }
}

/* ---------- layout ---------- */
@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr auto; }
  .page-hero-icon { display: block; width: clamp(140px, 16vw, 220px); }
  .page-body { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); max-width: 1180px; margin: 0 auto; box-sizing: content-box; }
  .side { position: sticky; top: 96px; }
  .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); max-width: 1180px; margin: 0 auto; box-sizing: content-box; }
  .visit-map { position: sticky; top: 96px; align-self: start; }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; }
}
@media (min-width: 1200px) {
  .related .cats, .page-body + .related .cats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- mobile: rifiniture ---------- */
@media (max-width: 380px) {
  .brand { font-size: 12px; gap: 8px; }
  .brand img { width: 34px; }
}
@media (max-width: 559px) {
  .cta:not(.cta-stack) .btn { flex: 1 1 100%; justify-content: center; }
  .menu-contacts .btn { flex: 1 1 100%; }
}

/* ---------- mobile: scroll fluido ----------
   Su telefono niente backdrop-filter: sopra la scena 3D animata costringe il browser
   a ricalcolare ogni sfocatura a ogni frame e lo scroll si blocca. Fondi più coprenti al loro posto. */
@media (max-width: 899px) {
  :root { --surface: rgba(10, 13, 18, .9); }
  [data-theme="light"] { --surface: rgba(250, 249, 246, .93); }
  .topbar::before, .panel, .cat, .side-box, .dock, .sec:not(.hero) .col:not(.panel) {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  html { scroll-behavior: auto; }
}
