/* ==========================================================================
   TOKENS — unica fonte di verità per colori, tipografia, spazi e movimento.
   Cambia qui, non nei componenti.
   ========================================================================== */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colori — "Blu clinico" */
  --bg: #f4f8fb;
  --surface: #ffffff;
  --mist: #e3f0f8;
  --mist-2: #eaf3f9;
  --mist-3: #dbeaf5;
  --ink: #0f2438;          /* testo principale, sezioni scure */
  --ink-2: #1c3a54;
  --text: #2a3d50;         /* testo corrente: 10:1 su --bg (11/11/2026, prima #3c536a) */
  --text-soft: #3f5569;    /* testo secondario: 7.2:1 su --bg (prima #5b7186, 4.7:1) */
  --line: #dfe9f1;
  --line-2: #c9dcea;
  --blue: #185079;         /* testo/pulsanti blu: 8.5:1 su bianco, 7.3:1 su --mist (11/11/2026, prima #256d9c 5.6:1) */
  --blue-deep: #123f60;     /* hover dei pulsanti blu */
  --blue-brand: #2f7fb2;   /* SOLO decorativo (logo, linee), mai per testo */
  --sky: #8fc3e3;
  --sky-2: #cfe6f6;
  --sky-3: #5aa3d1;
  --on-dark-soft: #b8d3e6;
  --green: #166534;        /* hover dei bottoni contatto: testo bianco 7.1:1 (prima #15803d, 5:1) */

  /* Tipografia */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 4.4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --fs-h2-sm: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.875rem;

  /* Forme */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spazi */
  --gutter: clamp(16px, 4vw, 24px);
  --maxw: 1280px;
  --section-gap: clamp(48px, 7vw, 88px);
  --header-h: 68px;

  /* Ombre */
  --shadow-lift: 0 14px 34px -14px rgba(15, 36, 56, 0.28);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.2s;
  --dur-2: 0.35s;
  --dur-3: 0.8s;
}
