/* =====================================================================
   grafica.css — uniformità di caratteri, dimensioni e margini
   Si carica DOPO style.css e non lo modifica: per tornare indietro
   basta togliere il <link> a questo file.
   Il prefisso "html body" serve a vincere anche sugli stili scritti
   dentro le pagine (footer, chat, home), che arrivano dopo nel codice.
   ===================================================================== */

/* ---------- 1. Font Inter caricato davvero (dal nostro server) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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;
}

/* ---------- 2. Scala fissa: solo questi valori in tutto il sito ---------- */
:root {
  --fs-xs: 12px;  --fs-sm: 14px;  --fs-base: 16px; --fs-md: 18px;
  --fs-lg: 20px;  --fs-xl: 24px;  --fs-2xl: 32px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 48px; --sp-7: 64px;
  --radius: 10px; --radius-sm: 8px;
  --contenuto: 1072px;              /* 1120px del .wrap meno 24px per lato */
}

/* stesso carattere ovunque, anche su pulsanti, campi e banner cookie */
html body,
html body button, html body input, html body select, html body textarea,
html body .cookie-banner, html body .cookie-banner * , html body .chat-panel {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 3. Dimensioni dei testi (niente più mezzi pixel) ---------- */

/* intestazione */
html body .brand-text strong { font-size: var(--fs-base); }
html body .brand-text small  { font-size: var(--fs-xs); }
html body .nav a, html body .nav .who { font-size: var(--fs-sm); }

/* pulsanti */
html body .btn       { font-size: var(--fs-sm); }
html body .btn-lg    { font-size: var(--fs-base); }
html body .btn-small { font-size: var(--fs-sm); }

/* titoli di sezione: tutti uguali */
html body .steps h2,
html body .percorso h2,
html body .cta-band h2,
html body .home-video h2 { font-size: var(--fs-xl); line-height: 1.3; }
html body .steps h2, html body .percorso h2 { margin: 0 0 var(--sp-4); }
html body .home-video h2 { margin: 0 0 var(--sp-2); }      /* titolo + sottotitolo */
html body .home-video > p { margin: 0 0 var(--sp-3); }

html body .page-title,
html body .foto-band-testo h2 { font-size: var(--fs-2xl); }
html body .accesso-strip h2  { font-size: var(--fs-lg); }

/* sottotitoli H3 */
html body .card h3, html body .pstep h3, html body .section-title,
html body .login-side h3, html body .prose h3, html body .hero-card h3 { font-size: var(--fs-md); }

/* testi */
html body .eyebrow { font-size: var(--fs-xs); }
html body .lead    { font-size: var(--fs-md); }
html body .card p  { font-size: var(--fs-base); }
html body .pstep p, html body .pstep-vai, html body .check li,
html body .crumb, html body .small, html body .percorso-nav-link small,
html body .table, html body .flash, html body .linkish,
html body .selettore-azienda select, html body label { font-size: var(--fs-sm); }
html body .tag   { font-size: var(--fs-xs); }
html body .cred code { font-size: var(--fs-base); }

/* campi: 16px ovunque (su iPhone evita anche lo zoom automatico) */
html body input[type=text], html body input[type=email], html body input[type=password],
html body input[type=number], html body input:not([type]), html body select,
html body input[type=file] { font-size: var(--fs-base); }

/* fascia contatti e footer */
html body .contatti-eyebrow  { font-size: var(--fs-base); }
html body .contatto p        { font-size: var(--fs-base); }
html body .footer-marchio strong { font-size: var(--fs-xl); }
html body .footer-marchio-testo span { font-size: var(--fs-sm); }
html body .footer-copy       { font-size: var(--fs-xs); }

/* chat di Crono */
html body .chat-head strong { font-size: var(--fs-base); }
html body .chat-msg, html body .chat-chip { font-size: var(--fs-sm); }
html body .chat-form input  { font-size: var(--fs-base); }
html body .chat-note, html body .chat-sys, html body .chat-op small { font-size: var(--fs-xs); }

/* banner cookie: pulsanti come quelli del sito */
html body .cookie-content p { font-size: var(--fs-sm); }
html body .cookie-buttons .btn-gold,
html body .cookie-buttons .btn-outline {
  font-size: var(--fs-sm); font-weight: 600; padding: 10px 20px; border-radius: var(--radius-sm);
}

/* ---------- 4. Allineamento: footer e cookie sulla stessa colonna del sito ---------- */
html body .contatti-fascia { margin-top: 0; padding: var(--sp-7) var(--sp-4); }
html body .footer-barra    { padding-left: var(--sp-4); padding-right: var(--sp-4); }
html body .contatti-wrap,
html body .footer-barra-wrap,
html body .footer-copy     { max-width: var(--contenuto); }
html body .cookie-content  { max-width: 1120px; padding: 0 var(--sp-4); }

/* ---------- 5. Stesso spazio tra tutte le sezioni della home ---------- */
html body .hero-bg, html body .steps, html body .percorso,
html body .cards, html body .foto-band { margin-bottom: var(--sp-6); }
html body .home-video { margin: 0 auto var(--sp-6); }
html body .main > :last-child { margin-bottom: 0; }

/* ---------- 6. Angoli: due valori soli ---------- */
html body .contatto, html body .chat-panel { border-radius: var(--radius); }
html body .contatto-pill { border-radius: var(--radius-sm); }
html body .selettore-azienda select { border-radius: var(--radius-sm); }

/* ---------- Telefono: rimette i valori piccoli che style.css aveva già ---------- */
@media (max-width: 768px) {
  html body .contatti-fascia { padding: 40px 16px; }
  html body .footer-barra    { padding-left: 16px; padding-right: 16px; }
  html body .contatti-titolo { font-size: var(--fs-xl); }
  html body .cookie-content  { padding: 0 16px; }
  html body .cookie-content p { font-size: var(--fs-sm); }
  html body .cookie-buttons .btn-gold,
  html body .cookie-buttons .btn-outline { font-size: var(--fs-base); padding: 12px 20px; }
  html body #cookie-banner .cookie-content p { font-size: var(--fs-sm); }
  html body #cookie-banner .cookie-buttons button { font-size: var(--fs-base); }
}
@media (max-width: 640px) {
  /* il logo in alto non tocca più il bordo dello schermo */
  html body .topbar-inner { padding: 12px 16px; }
  html body .lead { font-size: var(--fs-base); }
  html body .page-title, html body .foto-band-testo h2 { font-size: var(--fs-xl); }
  html body .hero-bg, html body .steps, html body .percorso,
  html body .cards, html body .foto-band { margin-bottom: var(--sp-5); }
  html body .home-video { margin: 0 auto var(--sp-5); }
}
