/* ==========================================================================
   Fondazione Luigi Einaudi — base condivisa (pagine pubbliche + area /gestione/)
   Stile del sito principale (GRAFICA.md, tema «Fleinaudi Theme», 26/11/2026):
   font ospitati qui, colori, misure, bottoni con icona. Niente servizi esterni.
   ========================================================================== */

/* --- Caratteri (woff2 latin + latin-ext, licenza OFL, copiati dal tema) --- */
@font-face {
	font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("../fonts/instrument-sans-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;
}
@font-face {
	font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
	src: url("../fonts/instrument-sans-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;
}
@font-face {
	font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url("../fonts/newsreader-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;
}
@font-face {
	font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
	src: url("../fonts/newsreader-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;
}

/* --- Token --------------------------------------------------------------- */
:root {
	--blu: #003c71;
	--blu-scuro: #00264a;        /* «blu notte» */
	--blu-chiaro: #e9eff6;       /* «blu tenue» */
	--giallo: #ffd100;
	--rosso: #c8102e;
	--rosso-hover: #a10d25;
	--verde: #0b6b5d;
	--verde-hover: #085347;
	--inchiostro: #1b2230;
	--grigio: #5a6475;
	--linea: #dfe4ea;
	--bordo-campo: rgb(90 100 117 / 0.45);   /* bordo dei campi su bianco (grigio al 45%) */
	--carta: #f4f6f8;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--raggio: 12px;
	--raggio-s: 8px;
	--ombra: 0 1px 2px rgb(0 0 0 / 0.05);
	--ombra-su: 0 8px 24px rgb(0 0 0 / 0.06);
	--curva: cubic-bezier(0.22, 1, 0.36, 1);
	--rapido: 150ms;
	--larghezza: 1240px;
	--margine: clamp(16px, 3vw, 28px);
	--spazio: clamp(20px, 2.4vw, 32px);
}

:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; border-radius: 2px; }
.icona { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* --- Bottoni: blu con icona davanti, larghi quanto il testo ---------------- */
.bottone {
	display: inline-flex; align-items: center; gap: 8px; padding: 0.75rem 1.25rem;
	border: 0; border-radius: var(--raggio-s); background: var(--blu); color: #fff;
	font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.3; text-decoration: none; cursor: pointer;
	transition: background-color var(--rapido) var(--curva), color var(--rapido) var(--curva);
}
.bottone:hover, .bottone:focus { background: var(--blu-scuro); color: #fff; }
.bottone .icona { width: 18px; height: 18px; }
.bottone:disabled { opacity: 0.6; cursor: not-allowed; }
.bottone--rosso { background: var(--rosso); font-weight: 600; }
.bottone--rosso:hover, .bottone--rosso:focus { background: var(--rosso-hover); }
.bottone--verde { background: var(--verde); }
.bottone--verde:hover, .bottone--verde:focus { background: var(--verde-hover); }
.bottone--giallo { background: var(--giallo); color: var(--blu-scuro); font-weight: 600; }
.bottone--giallo:hover, .bottone--giallo:focus { background: #fff; color: var(--blu-scuro); }
.bottone--contorno { background: transparent; color: var(--blu); box-shadow: inset 0 0 0 2px var(--blu); }
.bottone--contorno:hover, .bottone--contorno:focus { background: var(--blu); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
