/**
 * fonts.css — GenHub Font Configuration
 *
 * STRATEGIA FONT:
 * - Sviluppo locale / produzione senza CDN: usa system font stack (nessuna richiesta esterna)
 * - Produzione con self-hosting: decommenta @font-face e carica i file .woff2 locali
 *
 * Per self-hostare "Funnel Display":
 * 1. Scarica i file da https://gwfh.mranftl.com/fonts (Google Webfonts Helper)
 * 2. Salva i .woff2 in /fonts/
 * 3. Decommenta la sezione @font-face qui sotto
 * 4. Il system font stack fa da fallback automatico
 */

/* ── Self-hosted Funnel Display (decommentare dopo aver scaricato i font) ──── */
/*
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Funnel Display Light'),
       url('../fonts/funnel-display-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Funnel Display Regular'),
       url('../fonts/funnel-display-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Funnel Display Medium'),
       url('../fonts/funnel-display-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Funnel Display SemiBold'),
       url('../fonts/funnel-display-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Funnel Display Bold'),
       url('../fonts/funnel-display-latin-700.woff2') format('woff2');
}
*/

/* ── System Font Stack (fallback pulito, nessuna richiesta esterna) ───────── */
body, input, button, textarea, select {
  font-family:
    'Funnel Display',            /* Self-hosted (quando disponibile) */
    -apple-system,               /* macOS / iOS */
    BlinkMacSystemFont,          /* macOS Chrome */
    'Segoe UI',                  /* Windows */
    Roboto,                      /* Android / Chrome OS */
    'Helvetica Neue',            /* Legacy macOS */
    Arial,                       /* Fallback universale */
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Pesi specifici per heading quando Funnel Display non è disponibile */
h1, h2, h3, h4, h5, h6,
.font-extrabold, .font-bold, .font-semibold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-normal, .font-light {
  font-weight: 400;
}
