/*
 * Movis Technologies — sito aziendale.
 *
 * Nero profondo, blu del logo di Movis Sport, titoli enormi in maiuscolo, un orizzonte con griglia e stelle.
 * Le piste ovali e l'arancione appartengono a Sport Passport: qui compaiono solo nel suo pannello.
 * Chiaro e scuro seguono il sistema. Font Instrument Sans servito da /fonts (CSP 'self'); nessuno stile o script inline.
 */

@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/fonts/InstrumentSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("/fonts/InstrumentSans-Bold.ttf") format("truetype"); }

:root {
  color-scheme: light dark;

  --bg: #f4f6fa;
  --bg-2: #e9edf4;
  --fg: #080b14;
  --muted: #556078;
  --line: rgba(8, 11, 20, 0.14);
  --card: #ffffff;

  --blue: #1d4ed8;
  --blue-bright: #3b6bff;
  --ring: rgba(29, 78, 216, 0.3);
  --ring-strong: rgba(29, 78, 216, 0.7);
  --accent: #1d4ed8;
  --dot: rgba(29, 78, 216, 0.28);
  --bar: rgba(8, 11, 20, 0.16);

  --panel-sport-bg: linear-gradient(135deg, #dce7ff 0%, #eef3ff 55%, #f4f6fa 100%);
  --panel-sport-fg: #0b1230;
  --panel-sport-solid: #eef3ff;
  --panel-passport-bg: linear-gradient(135deg, #f6f1e7 0%, #fbe5db 100%);
  --panel-passport-fg: #111716;
  --panel-passport-solid: #f6f1e7;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070b;
    --bg-2: #0b0f17;
    --fg: #f3f6fc;
    --muted: #97a1b6;
    --line: rgba(255, 255, 255, 0.16);
    --card: #0d121b;

    --ring: rgba(120, 150, 255, 0.34);
    --ring-strong: rgba(150, 175, 255, 0.85);
    --dot: rgba(150, 175, 255, 0.3);
    --bar: rgba(255, 255, 255, 0.16);
    --accent: #6f93ff;

    --panel-sport-bg: linear-gradient(135deg, #0a1a5c 0%, #0b2fb3 55%, #1d4ed8 100%);
    --panel-sport-fg: #f3f6fc;
    --panel-sport-solid: #0b2fb3;
    --panel-passport-bg: linear-gradient(135deg, #0a0e0d 0%, #1b0f0a 100%);
    --panel-passport-fg: #f6f1e7;
    --panel-passport-solid: #0a0e0d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; border-radius: 4px; }

.wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* Type */
.label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.title {
  margin: 0; font-weight: 700; text-transform: uppercase; line-height: 0.94; letter-spacing: -0.025em; text-wrap: balance;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-header.solid { background: color-mix(in srgb, var(--bg) 98%, transparent); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.4rem; max-width: 1480px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand picture { display: block; }
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a { position: relative; text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem clamp(1.25rem, 4vw, 3rem) 1.4rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .main-nav a::after { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 1100px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bg); }
/* Crisp dot grid, brightest toward the telemetry panel and fading out; no blurred glows. */
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(75% 85% at 78% 45%, #000 0%, transparent 78%); mask-image: radial-gradient(75% 85% at 78% 45%, #000 0%, transparent 78%); }
.hero-grid::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.hero-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-top: 8rem; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.hero-copy { grid-column: 1; align-self: center; }
.hero h1 { font-size: clamp(3rem, 6.1vw, 6.6rem); margin-top: 1.2rem; }
.hero h1 span { color: var(--accent); }
.hero-lead { margin: 1.8rem 0 0; max-width: 32rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 54px; padding: 0 1.8rem; border: 1px solid var(--fg); background: transparent; color: var(--fg); text-decoration: none; font: 600 0.78rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.btn svg { width: 1.2em; height: 1.2em; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--blue-bright); border-color: var(--blue-bright); color: #fff; }

/* Product panel: the two products as framed, clickable rows with the marks of an instrument. */
.hud { grid-column: 2; grid-row: 1; align-self: center; position: relative; padding: 1.3rem 1.4rem 1.4rem; background: var(--card); border: 1px solid var(--line); }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--blue-bright); }
.hud::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.hud::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hud-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-inline: -0.7rem; padding: 1rem 0.7rem; border-top: 1px solid var(--line); text-decoration: none; transition: background 0.3s var(--ease); }
.hud-item img { width: 56px; height: 56px; border-radius: 14px; }
.hud-text { display: grid; gap: 0.25rem; min-width: 0; }
.hud-text b { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.hud-text small { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.hud-item svg { width: 1.4rem; height: 1.4rem; transition: transform 0.4s var(--ease); }
.hud-item:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.hud-item:hover svg { transform: translateX(4px); }

.telemetry { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.2rem; border-top: 1px solid var(--line); }
.telemetry div { display: grid; gap: 0.35rem; }
.telemetry b { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.scroll-cue { position: absolute; right: clamp(1.25rem, 4vw, 3rem); top: 50%; display: grid; justify-items: center; gap: 0.9rem; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 70px; background: linear-gradient(var(--fg), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 1100px) { .scroll-cue { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-copy, .hud { grid-column: 1; }
  .hud { grid-row: auto; margin-top: 2.6rem; }
  .hero h1 { font-size: clamp(3rem, 12.5vw, 6.6rem); }
}
@media (max-width: 560px) {
  .telemetry { grid-template-columns: 1fr 1fr; }
  .telemetry div:last-child { grid-column: 1 / -1; }
}

/* ── Statement ──────────────────────────────────────────────────────────── */
.statement { padding: clamp(6rem, 16vw, 14rem) 0; }
.statement .label { display: block; margin-bottom: 2rem; }
.statement p { margin: 0; max-width: 24ch; font-size: clamp(2rem, 5.4vw, 5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-transform: uppercase; }
.statement .w { opacity: 0.18; transition: opacity 0.4s var(--ease); }
.statement .w.on { opacity: 1; }

/* ── Products: panels stack as you scroll ───────────────────────────────── */
.products { position: relative; }
.products-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.products-head h2 { font-size: clamp(2.4rem, 6.4vw, 6rem); }
.panel { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
/* Panels stack over one another only where a whole panel fits on screen; on short or narrow windows they simply follow each other. */
@media (min-width: 901px) and (min-height: 820px) {
  .panel { position: sticky; top: 0; }
  .panel + .panel::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 3; height: 120px; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0.22), transparent); }
}
.panel .wrap { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: 6rem; padding-bottom: 5rem; }
.panel-sport { background: var(--panel-sport-bg); color: var(--panel-sport-fg); --pf: var(--panel-sport-fg); --pb: var(--panel-sport-solid); }
.panel-passport { background: var(--panel-passport-bg); color: var(--panel-passport-fg); --pf: var(--panel-passport-fg); --pb: var(--panel-passport-solid); }
.panel .label { color: inherit; opacity: 0.7; }
.panel h3 { font-size: clamp(3rem, 8.4vw, 8rem); margin: 1.2rem 0 0; }
.panel p { margin: 1.6rem 0 0; max-width: 32rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); opacity: 0.85; }
.panel .tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.panel .tags li { padding: 0.45rem 0.9rem; border: 1px solid currentColor; border-radius: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.panel .btn { border-color: var(--pf); color: var(--pf); }
.panel .btn:hover { background: var(--pf); color: var(--pb); }
.panel .btn-solid { background: var(--pf); color: var(--pb); }
.panel .btn-solid:hover { background: var(--pf); color: var(--pb); transform: translateY(-2px); }
.panel-lanes { position: absolute; z-index: -1; right: -12%; top: 50%; width: min(1100px, 110vw); transform: translateY(-50%) rotate(-10deg); opacity: 0.4; pointer-events: none; }
.panel-lanes .lane { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: 0.25; }
.panel-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.panel-visual .illus { width: min(520px, 100%); }
/* The illustration stands on the bottom edge of its panel: the grid fills the panel and the figure sits on its last line. */
.panel-sport { align-items: stretch; }
.panel-sport .wrap { grid-template-rows: 1fr; padding-bottom: 0; }
.panel-sport .wrap > div:first-child { align-self: center; padding-bottom: 5rem; }
.panel-sport .panel-visual { align-self: end; align-items: end; min-height: 0; }
.panel-sport .panel-visual .illus { display: block; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; border-radius: 0; background: #fff; color: #0f1729; font-size: 0.88rem; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }
.float-card svg { width: 22px; height: 22px; padding: 4px; border-radius: 0; color: #fff; background: #167a3e; }
.float-card.indigo svg { background: #4f46e5; }
.float-card.top { top: 12%; left: 2%; animation: float 7s ease-in-out infinite; }
.float-card.bottom { bottom: 22%; right: 0; animation: float 9s ease-in-out infinite reverse; }

.phones { position: relative; width: min(500px, 100%); aspect-ratio: 1 / 1.1; }
.phone { position: absolute; margin: 0; width: var(--w); border-radius: 12.5% / 5.75%; overflow: hidden; background: #0a0e0d; border: clamp(4px, 0.5vw, 7px) solid #0a0e0d; box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone img { width: 100%; height: auto; }
.phones .p1 { --w: 56%; left: 3%; top: 2%; transform: rotate(-5deg); z-index: 2; }
.phones .p2 { --w: 48%; right: 1%; top: 16%; transform: rotate(6deg); }

@media (max-width: 900px) {
  .panel { min-height: 0; }
  .panel .wrap { grid-template-columns: 1fr; padding-top: 5rem; padding-bottom: 4rem; }
  .panel-sport .wrap { padding-bottom: 0; }
  .panel-sport .wrap > div:first-child { padding-bottom: 2.5rem; }
  .panel-sport .panel-visual { padding-top: 1rem; justify-items: center; }
  .panel-visual { min-height: 0; }
  .products-head { flex-direction: column; align-items: start; }
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.2rem) 0; user-select: none; }
.marquee .track { display: flex; width: max-content; animation: scroll 60s linear infinite; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; white-space: nowrap; padding-right: clamp(2rem, 4vw, 4rem); font-size: clamp(2.6rem, 7vw, 6.5rem); font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; color: color-mix(in srgb, var(--fg) 17%, transparent); transition: color 0.4s var(--ease); }
.marquee span:hover { color: var(--fg); }
.marquee span::after { content: ""; width: 0.22em; height: 0.22em; margin-left: clamp(2rem, 4vw, 4rem); background: var(--blue-bright); transform: rotate(45deg); flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Movis Sport panel: tennis court in perspective behind the athlete ──── */
.panel-court { position: absolute; z-index: -1; right: -6%; bottom: -34%; width: min(620px, 70vw); transform: perspective(900px) rotateX(58deg) rotateZ(-26deg); transform-origin: 50% 50%; color: rgba(255, 255, 255, 0.5); pointer-events: none; }
.panel-court svg { display: block; width: 100%; height: auto; }

/* ── Principles: icon and a hairline that fills on reveal ───────────────── */
.p-item { position: relative; }
.p-item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--blue-bright), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.2s; }
.p-item.in::before { transform: scaleX(1); }
.p-ico { display: block; width: 34px; height: 34px; margin-top: 1.8rem; color: var(--blue-bright); }
.p-item h3 { margin-top: 1.1rem; }

/* ── Principles ─────────────────────────────────────────────────────────── */
.principles { padding: clamp(5rem, 12vw, 10rem) 0; }
.principles .head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.principles h2 { font-size: clamp(2.4rem, 6.4vw, 6rem); max-width: 14ch; }
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.p-item { padding: 1.8rem 1.6rem 2.4rem 0; }
.p-item + .p-item { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.p-item .n { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; color: var(--blue-bright); }
.p-item h3 { margin: 2.2rem 0 0; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; }
.p-item p { margin: 1rem 0 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 980px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .p-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .p-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-item, .p-item + .p-item { padding-left: 0; border-left: 0; }
  .p-item + .p-item { border-top: 1px solid var(--line); }
}

/* ── Numbers ────────────────────────────────────────────────────────────── */
.numbers { background: var(--bg-2); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.n-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.n-item b { display: block; font-size: clamp(3.4rem, 8vw, 7rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; }
.n-item span { display: block; margin-top: 0.9rem; }
@media (max-width: 760px) { .n-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { padding: clamp(6rem, 14vw, 12rem) 0 clamp(4rem, 8vw, 7rem); }
.contact h2 { font-size: clamp(3rem, 12vw, 13rem); }
.contact h2 a { text-decoration: none; display: inline-block; }
.contact h2 a:hover { color: var(--blue-bright); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.contact-row p { margin: 0.4rem 0 0; font-size: 1.05rem; }
.contact-row a { text-underline-offset: 4px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; max-width: 1480px; }
.site-footer .legal-line { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.9rem; max-width: 24rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.site-footer h2 { margin: 0 0 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.55rem 0; font-size: 0.95rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Reveal and motion preferences ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; transition: none; }
  .float-card, .scroll-cue::after, .marquee .track { animation: none; }
  .p-item::before { transition: none; transform: scaleX(1); }
}

/* Keyboard users jump past the header. */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.8rem 1.2rem; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 1rem; }

/* Touch targets: links get at least 44 px of height on phones and tablets. */
@media (hover: none), (max-width: 900px) {
  .brand { min-height: 44px; }
  .site-footer li { margin: 0; }
  .site-footer li a, .contact-row a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) { .panel-lanes { opacity: 0.18; } }

/* 404 page */
.notfound { min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem; }
.notfound .title { font-size: clamp(3.4rem, 11vw, 10rem); margin-top: 1.2rem; }

/* ── Rifinitura: avanzamento, voce di menu attiva, dettagli ─────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--blue-bright), #8f7bff, #38bdf8); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; will-change: transform; }
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
/* Al passaggio una linea blu si disegna sotto la parola: non richiede spazio in più, che «Parliamone.» non ha */
.contact h2 a { background: linear-gradient(var(--blue-bright), var(--blue-bright)) 0 100% / 0 .055em no-repeat; padding-bottom: .04em; transition: background-size .7s var(--ease), color .3s; }
.contact h2 a:hover, .contact h2 a:focus-visible { background-size: 100% .055em; }
.n-item { position: relative; padding-top: 1.4rem; }
.n-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.n-item::after { content: ""; position: absolute; left: 0; top: -1px; width: 2.4rem; height: 2px; background: var(--blue-bright); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
.n-item.in::after { transform: scaleX(1); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .n-item::after { transition: none; transform: scaleX(1); } }

/* ── Leggibilità per chi ha 50–60 anni: testo più grande, etichette meno spaziate, nessun testo sotto i 14 px ── */
body { font-size: 18px; }
.label { font-size: .84rem; letter-spacing: .14em; }
.main-nav a { font-size: .84rem; letter-spacing: .1em; }
.btn { font-size: .88rem; letter-spacing: .1em; }
.hero-lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.hud-text small, .p-item p, .telemetry b, .contact-row p, .site-footer li, .site-footer .legal-line { font-size: 1rem; }
.hud-text small { line-height: 1.45; }
.panel .tags li:has(a) { padding: 0; }
.panel .tags a { display: block; padding: 0.45rem 0.9rem; color: inherit; text-decoration: none; }
.panel .tags li:has(a:hover), .panel .tags li:has(a:focus-visible) { opacity: 1; }
.panel .tags a:hover, .panel .tags a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
