/* =========================================================
   FONT STACK — SELF-HOSTED, SEO-FIRST
   - Solo WOFF2
   - font-display: swap (no FOIT)
   - Pesi minimi: 900/700 titoli, 400 body (+700 bold)
   ========================================================= */

/* === Fira Sans — Titoli === */
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 101%;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/FiraSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 101%;
}

/* === Source Sans 3 — Normale === */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/wp-content/themes/generatepress_child/fonts/SourceSans3-Regular.woff2") format("woff2");
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

/* === Source Sans 3 — Grassetto === */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

/* === Source Sans 3 — Corsivo === */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

/* =========================================================
   TIPOGRAFIA DI BASE
   ========================================================= */
html{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body{
  font-family:"Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:400;
  font-size:1.09375rem;   /* base desktop */
  line-height:1.5;
  /* evita bold/italic sintetici che cambiano metrica */
  font-synthesis-weight:none;
  font-synthesis-style:none;
}

/* === Titoli === */
h1,h2,h3{
  font-family:"Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.2;
  text-wrap:balance;
}

h1{
  font-weight:600;
  font-size: clamp(1.8rem, 1.8rem + 2vw, 2rem);
  letter-spacing:-0.015em;
}
h2{
  font-weight:700;
  font-size:22px;
}
h3{
  font-weight:700;
  font-size:20px;
}

/* H4 fisso */
h4{
  font-family:"Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:700;
  font-size:18px;
  line-height:1.4;
}

/* Formattazione coerente */
strong,b{ font-weight:700; }
em,i{ font-style:italic; }

/* Numeri allineati (tabelle, ranking, punteggi) */
.score,.ranking,.table{ font-variant-numeric:tabular-nums; }


/* === Citazioni / Blockquote — Versione moderna === */
blockquote {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.7;
  color: #222;
  background-color: #f8f9fb; /* leggero sfondo neutro */
  border-left: 3px solid #007acc; /* accento blu tennis */
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Piccolo tocco visivo: virgolette decorative */
blockquote::before {
  content: "“";
  position: absolute;
  top: 0.3rem;
  left: 0.8rem;
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* Citazioni all’interno */
blockquote p {
  font-style: inherit;
  margin: 0;
}

/* Autore / fonte */
blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9em;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

