/**
 * GR-AYM — Font locali (GDPR compliant)
 *
 * Inter e Playfair Display caricati da assets/fonts/
 * invece che da Google Fonts (trasferimento dati a Google senza consenso).
 * font-display: swap per performance + size-adjust per ridurre FOUC.
 */

/* ═══ Fallback con metriche simili a Playfair Display ═════════════════════ */
/* Riduce il reflow quando il font custom viene swappato */

@font-face {
    font-family: 'Playfair Fallback';
    src: local('Georgia');
    size-adjust: 112%;
    ascent-override: 84%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* ═══ Fallback con metriche simili a Inter ════════════════════════════════ */

@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* ═══ Inter ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ═══ Playfair Display ════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
