/* =========================================================================
   CARATTERI OSPITATI IN LOCALE
   -------------------------------------------------------------------------
   Sostituisce il collegamento a fonts.googleapis.com: i caratteri vengono
   serviti dal nostro server, quindi il visitatore non contatta piu' Google
   e non c'e' trasferimento del suo indirizzo IP.

   PERCHE' QUESTI NOMI DI FILE
   google-webfonts-helper genera nomi con dentro il numero di versione
   (es. poppins-v23-latin-300.woff2), che cambia a ogni aggiornamento del
   font. Rinominando i file con i nomi qui sotto, questo foglio di stile
   resta valido per sempre e non va piu' toccato.

   I FILE SONO GIA' PRESENTI dentro la cartella  fonts/  (sottoinsieme
   latino, che copre tutti gli accenti italiani):
     poppins-300.woff2        poppins-300.woff
     poppins-400.woff2        poppins-400.woff
     poppins-500.woff2        poppins-500.woff
     poppins-600.woff2        poppins-600.woff
     poppins-700.woff2        poppins-700.woff
     sourcesans-300.woff2     sourcesans-300.woff
     sourcesans-400.woff2     sourcesans-400.woff
     sourcesans-600.woff2     sourcesans-600.woff

   Il .woff2 basta per tutti i browser usciti dal 2016 in poi; il .woff e'
   la riserva per i piu' vecchi e viene scaricato solo da quelli. Il browser
   preleva unicamente i pesi che la pagina usa davvero, non tutti e otto.

   Origine dei file: pacchetti  @fontsource/poppins  e
   @fontsource/source-sans-pro  (gli stessi font di Google Fonts, con
   licenza SIL Open Font License).

   font-display: swap  =>  il testo si vede subito con un carattere di
   sistema e viene sostituito appena il font e' pronto. Evita la pagina
   bianca durante il caricamento.
   ========================================================================= */

/* ----------------------------- Poppins ---------------------------------- */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300.woff2') format('woff2'),
         url('../fonts/poppins-300.woff')  format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2') format('woff2'),
         url('../fonts/poppins-400.woff')  format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500.woff2') format('woff2'),
         url('../fonts/poppins-500.woff')  format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2') format('woff2'),
         url('../fonts/poppins-600.woff')  format('woff');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2') format('woff2'),
         url('../fonts/poppins-700.woff')  format('woff');
}

/* -------------------------- Source Sans Pro ------------------------------ */

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/sourcesans-300.woff2') format('woff2'),
         url('../fonts/sourcesans-300.woff')  format('woff');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sourcesans-400.woff2') format('woff2'),
         url('../fonts/sourcesans-400.woff')  format('woff');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/sourcesans-600.woff2') format('woff2'),
         url('../fonts/sourcesans-600.woff')  format('woff');
}
