/**
 * Font self-hosted (GDPR/DORA): nessuna chiamata a Google Fonts a runtime.
 * I file .woff2 stanno in ../fonts/. Percorsi relativi a questo CSS.
 *
 * Inter + Work Sans: subset "latin" (fontsource).
 * Material Symbols Outlined: font variabile completo (vedi NB subset nel tema).
 */

/* Inter */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/inter-800.woff2') format('woff2');
}

/* Work Sans */
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/work-sans-600.woff2') format('woff2');
}

/* Material Symbols Outlined (SUBSET: solo icone usate, vedi bpc-build/build-icons-subset.ps1)
 * NB: la regola @font-face NON e' qui: viene emessa inline in functions.php
 * (bpc_theme_icons_fout_guard) con ?ver=filemtime, cosi' rigenerando il subset
 * la cache del browser si invalida da sola. Metterla qui, senza versione,
 * faceva restare il vecchio font in cache (icone nuove mostrate come testo). */

.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	/* Rete di sicurezza: quando il glifo esiste, la ligatura diventa una singola
	   icona (queste regole non hanno effetto). Se invece un'icona NON e' nel
	   subset (es. contenuti importati con altri plugin), il nome grezzo puo'
	   spezzarsi e NON sfonda mai la card in orizzontale. */
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Icona di ripiego: quando un glifo NON esiste nel subset, uno script sostituisce
   il nome grezzo con un'icona generica (mai il testo). La rendiamo leggermente
   attenuata per segnalare che e' un segnaposto neutro. */
.material-symbols-outlined.bpc-ico--fallback,
.material-symbols-rounded.bpc-ico--fallback,
.material-symbols-sharp.bpc-ico--fallback {
	opacity: .65;
}
