/* ============================================================
   base.css — reset + tipografia
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  width: 100%;
  max-width: none;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  margin: 0 0 0.5em;
  font-variation-settings: 'opsz' 96, 'SOFT' 40, 'WONK' 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

strong, b { font-weight: 600; color: var(--c-navy); }

ul, ol { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--c-sky); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-sky);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Helpers tipografici --- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--c-sky);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.2em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--c-sky);
  display: inline-block;
}
.eyebrow--on-dark { color: var(--c-sky-bright); }
.eyebrow--on-dark::before { background: var(--c-sky-bright); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--c-muted);
  letter-spacing: -0.01em;
  max-width: 56ch;
}

.measure { max-width: var(--measure); }

.f-display {
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
}

.accent { color: var(--c-sky); }
.on-dark .accent { color: var(--c-sky-bright); }

/* Riduzione movimento: niente trasformazioni d'ingresso */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
