/* ============================================================
   Audilis — CSS globale condiviso (Metodo Export Audilis)
   Token, sistema CTA, scala tipografica. Caricato da tutte
   le pagine del percorso PRIMA degli stili di pagina.
   ============================================================ */

:root {
  --blu: #0a3d91;
  --blu-deep: #072a66;
  --ink: #0f1923;
  --ink2: #3a4a58;
  --gold: #e8a020;
  --gold-dark: #d4911a;
  --green: #0a7c42;
  --green-bg: #edf7f1;
  --bg2: #f4f6f9;
  --border: #dde3eb;
  --max: 1080px;
  --radius: 12px;
}

/* ---- Scala tipografica unica ----
   body 16/1.65 · h1 clamp(40,5vw,64)/1.05 · h2 clamp(30,3vw,42)/1.15
   · h3 20-24/1.25 · eyebrow 13 · button 16/700 · stat 32-40 */
.type-scale { font-size: 16px; line-height: 1.65; }
.t-h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 800; }
.t-h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; }
.t-h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; font-weight: 800; }
.t-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.t-stat { font-size: clamp(32px, 3.4vw, 40px); font-weight: 800; line-height: 1.05; }

/* ---- Sistema CTA unico ----
   Primaria: fondo blu scuro, testo arancione (contrasto 6.2:1, WCAG AA ok).
   Secondaria: trasparente, bordo blu, testo blu.
   Niente verde, niente CTA nere. */
/* PRIMARIA: riempimento oro + testo blu-scuro (contrasto ~6.5:1, WCAG AA).
   Spicca sia su fondo blu sia su fondo chiaro. */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--blu-deep);
  font-family: inherit;
  font-size: 16px; font-weight: 800;
  padding: 15px 30px; border-radius: 8px;
  border: 2px solid var(--gold);
  cursor: pointer; text-align: center;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--gold-dark); border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.30);
}
/* SECONDARIA: su fondo chiaro = bordo/testo blu; leggibile. */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blu);
  font-family: inherit;
  font-size: 16px; font-weight: 700;
  padding: 13px 28px; border-radius: 8px;
  border: 2px solid var(--blu);
  cursor: pointer; text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-secondary:hover { background: var(--blu); color: #fff; }

/* Su fondo scuro (hero/sezioni blu): primaria invariata (oro spicca);
   secondaria = bordo e testo BIANCO PIENO, non grigetto. */
.on-dark .btn-secondary { color: #fff; border-color: #fff; }
.on-dark .btn-secondary:hover { background: #fff; color: var(--blu-deep); }

/* ============================================================
   Hamburger + menu overlay globale (assets/nav.js)
   Header per pagina: logo sinistra, azioni destra (CTA + burger).
   Pannello chiaro da destra, voci verticali, CTA nera in basso.
   ============================================================ */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 9px 8px;
  background: transparent; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }
.nav-burger:hover { background: rgba(255,255,255,0.10); }
.nav-burger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nav-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(9,20,30,0.45); opacity: 0; transition: opacity .2s ease; }
.nav-overlay.is-open { opacity: 1; }
.nav-overlay[hidden] { display: none; }

.nav-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(88vw, 360px); background: #fff;
  box-shadow: -14px 0 44px rgba(0,0,0,0.20);
  display: flex; flex-direction: column; padding: 22px 24px 28px;
  transform: translateX(100%); transition: transform .22s ease;
}
.nav-overlay.is-open .nav-panel { transform: translateX(0); }

.nav-close {
  align-self: flex-end; width: 42px; height: 42px; font-size: 30px; line-height: 1;
  background: transparent; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px;
}
.nav-close:hover { background: var(--bg2); }
.nav-close:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }

.nav-list { list-style: none; margin: 6px 0 auto; padding: 0; }
.nav-list a {
  display: block; padding: 15px 6px; font-size: 20px; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border);
}
.nav-list a:hover { color: var(--blu); }
.nav-list a:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }

.nav-panel-cta {
  display: block; margin-top: 22px; background: #0f1923; color: #fff;
  text-align: center; font-size: 16px; font-weight: 800; padding: 16px 20px;
  border-radius: 10px; text-decoration: none; transition: background .2s, transform .15s;
}
.nav-panel-cta:hover { background: #000; transform: translateY(-1px); }
.nav-panel-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

body.nav-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav-overlay, .nav-panel { transition: none; }
}

/* ---- Logo tondo "au" nell'header (assets/nav.js sostituisce il wordmark) ---- */
/* specificita' .nav-logo .site-logo-mark per battere regole di pagina tipo .nav-logo img { height } */
.nav-logo .site-logo-mark {
  display: block; width: 44px; height: 44px;
  border-radius: 50%; object-fit: contain;
}
@media (max-width: 640px) {
  .nav-logo .site-logo-mark { width: 38px; height: 38px; }
}
