/* ============================================================
   site.css · solo ciò che Tailwind non copre comodamente:
   base, selection, [hidden], reduced-motion.
   ============================================================ */

/* Inter variabile (opsz + wght) self-hosted: nessuna richiesta a terze parti. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html, body {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

a {
  color: #0B0B0C;
  text-decoration: none;
}

a:hover {
  color: #0A47FF;
}

::selection {
  background: #0A47FF;
  color: #FFFFFF;
}

/* Gli overlay (toast, cookie, menu, intro) partono nascosti:
   le utility display di Tailwind non devono vincere su [hidden]. */
[hidden] {
  display: none !important;
}

/* ============================================================
   Reduced motion: contenuto visibile subito, niente animazioni.
   Il JS non crea reveal/loop/parallasse quando la preferenza è attiva;
   qui si disattiva anche lo scroll smooth.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
