/* ==========================================================================
   AGAMI — Font self-hosted (licenze SIL OFL 1.1), nessuna richiesta a terzi.
   Inter 300–700 (interfaccia e corpo) · Lora 400–700 + corsivo (sottotitoli,
   citazioni) · Cormorant Garamond 300–700 in UN SOLO file variabile
   (titoli-manifesto). Il preload per direzione è in templates/base.html.
   In RTL i token --display/--serif/--sans passano a Noto Sans Arabic
   (static/css/font-arabic.css, caricato solo per «ar»).
   ========================================================================== */

/* ---- Inter (variabile 300–700) ------------------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-normal-300-700-latin-ext.1ad231aac0a8.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-normal-300-700-latin.260c81a4759b.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;
}

/* ---- Lora (variabile 400–700, normale + corsivo) ------------------------ */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-400-700-latin-ext.bd592077c416.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;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-400-700-latin.1640b0b69ef0.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: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-normal-400-700-latin-ext.1d361631357e.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;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-normal-400-700-latin.9577af3ccda5.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;
}

/* ---- Cormorant Garamond (variabile 300–700, un solo file) --------------- */
/* I vecchi file 500/600/700 erano byte-identici: resta il solo
   cormorant-garamond-600-latin.woff2 (asse wght 300–700). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin.c47ff12887a3.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;
}

/* ---- Fallback metrici (CLS ≈ 0 durante lo swap) ------------------------- */
/* Font di sistema con larghezze/ascendenti allineati al web font (valori
   calcolati con fontTools da hhea/OS2 + larghezza media su testo IT/EN).
   Si attivano inserendo il nome subito dopo la famiglia primaria negli stack
   di 00-tokens.css:
     --display: "Cormorant Garamond", "Cormorant Garamond Fallback", …
     --serif:   "Lora", "Lora Fallback", …
     --sans:    "Inter", "Inter Fallback", …                                */
@font-face {
  font-family: 'Cormorant Garamond Fallback';
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times');
  size-adjust: 96.58%;
  ascent-override: 95.67%;
  descent-override: 29.72%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Lora Fallback';
  src: local('Georgia');
  size-adjust: 105.39%;
  ascent-override: 95.45%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107.08%;
  ascent-override: 90.47%;
  descent-override: 22.53%;
  line-gap-override: 0%;
}
