/* ------------------------------------------------------------------ *
 * Token, reset, tipografia
 * Blu, grigi e nero; Poppins con numeri in grassetto; molto spazio.
 * ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  --ink: #141414;
  --ink-2: #4a4a4a;
  --muted: #6e6e6e;          /* ≥ 4.5:1 su --bg */
  --faint: #b9b9b9;          /* numeri decorativi */
  --line: #e4e4e4;
  --line-2: #d2d2d2;
  --bg: #f7f7f7;
  --white: #ffffff;
  --accent: #255191;
  --accent-2: #6a8fc8;
  --soft: #c3d3ec;
  --pale: #e7eef8;
  --focus: var(--accent);
  --glow-1: #b9cbe8;
  --glow-2: #d6e1f2;
  --glow-3: #eef3fa;
  --fog-1: rgba(37, 81, 145, .85);
  --fog-2: rgba(106, 143, 200, .65);
  --fog-3: rgba(195, 211, 236, 0);

  --r-xl: 32px;
  --r-l: 22px;
  --r-m: 14px;

  --ff: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 68px;
  --rail-w: 72px;
  --gut: clamp(22px, 5vw, 72px);
  --maxw: 1240px;
  --gap: clamp(28px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.75 var(--ff);
  letter-spacing: .005em;
  word-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }  /* niente cornice dopo un clic del mouse */

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; }

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