/**
 * Visiva — design tokens
 * Palette derivata dal logo (blu elettrico + carbone), estesa a una scala
 * completa per avere contrasti AA su superfici chiare e scure.
 *
 * I nomi non hanno prefisso: il sito è già Visiva, ripeterlo in ogni variabile
 * non aggiungeva informazione e rendeva le regole più lunghe da leggere.
 */
:root {
  /* —— Blu aziendale: scala completa —— */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue: #1e88e5;
  --blue-deep: #1565c0;
  --blue-ink: #0b3f77;
  --blue-soft: #e8f2fe;
  --blue-glow: rgba(30, 136, 229, 0.24);

  /* —— Neutri —— */
  --navy: #0a1a2f;
  --navy-soft: #12283f;
  --ink: #0f1b2d;
  --ink-soft: #334155;
  --muted: #56647a;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-muted: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --footer-bg: #f6f9fc;

  /* —— Semantica di esito —— */
  --success: #0f766e;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;

  /* —— Strumenti —— */
  --tool-bg: #f6f9fc;
  --tool-surface: #ffffff;
  --tool-text: #0f1b2d;
  --tool-muted: #56647a;
  --map-critical: #dc2626;
  --map-warning: #d97706;
  --map-safe: #059669;

  /* —— Tipografia —— */
  --font-display: "Outfit", "Georgia", serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* —— Raggi —— */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* —— Ombre —— */
  --sh-xs: 0 1px 2px rgba(15, 27, 45, 0.06);
  --sh-sm: 0 1px 3px rgba(15, 27, 45, 0.08), 0 1px 2px rgba(15, 27, 45, 0.04);
  --sh-md: 0 10px 26px -8px rgba(15, 27, 45, 0.16), 0 3px 8px rgba(15, 27, 45, 0.05);
  --sh-lg: 0 26px 60px -24px rgba(15, 27, 45, 0.28);
  --sh-focus: 0 0 0 3px #ffffff, 0 0 0 6px rgba(30, 136, 229, 0.55);

  /* —— Misure di interfaccia —— */
  --nav-h: 58px;
  --tap: 44px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* —— Accento hero: default aziendale. Le pagine regionali lo ridefiniscono
     su <body> (Piemonte/Lombardia) mantenendo la precedenza. —— */
  --tool-accent: #7cc4ff;
  --tool-accent-deep: #38bdf8;
  --tool-accent-glow: rgba(124, 196, 255, 0.45);
}
