/*
 * Font auto-ospitati — sostituiscono Google Fonts dal 2026-09-09.
 *
 * Motivo: la landing pagata aveva CLS 0,1076 (soglia 0,10), causato dallo scambio
 * dei font. Prova per differenza: bloccando fonts.gstatic.com il CLS andava a 0,0000.
 * I Core Web Vitals entrano nell'«esperienza sulla pagina» di Google Ads, che era
 * BELOW_AVERAGE su tutte le parole chiave con punteggio.
 *
 * Sono i file VARIABILI ufficiali di Google Fonts: un file per sottoinsieme copre
 * tutti i pesi (Inter 400-700, JetBrains Mono 400-800). Tenuti solo i sottoinsiemi
 * "latin" e "latin-ext": gli altri nove (cirillico, greco, vietnamita) non servono,
 * e il browser non li scaricava comunque.
 *
 * Le regole unicode-range sono quelle originali di Google: NON si tolgono, sono cio'
 * che fa scaricare "latin-ext" solo a chi incontra un carattere che lo richiede.
 *
 * `font-display` NON e' uguale per tutti (2026-09-10):
 *   - i due `latin` sono in <link rel=preload>, arrivano prima del primo paint
 *     e restano `swap`;
 *   - i due `latin-ext` NON sono in preload — metterceli costerebbe 96 KB a
 *     ogni visita per glifi che quasi nessuna pagina usa. Sono `optional`:
 *     se non fanno in tempo si usa il ripiego e NON si scambia piu' nulla.
 *     Con `swap` una pagina futura con un glifo fuori latin rifarebbe lo
 *     scostamento di layout appena chiuso.
 */

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(/assets/fonts/inter-latin-ext.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;
}

/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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;
}

/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.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;
}

/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-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;
}
