/* ==========================================================================
   Bassano Antincendio — TOKEN del design system (2026)
   Unica fonte di colori, forme, ombre e movimento per vetrina, gestionale,
   portale clienti e area docente. I componenti usano solo queste variabili.
   ========================================================================== */
:root {
  /* --- marca: rosso antincendio (600 = colore del marchio) --- */
  --bai-50:  #fff4f3;
  --bai-100: #ffe4e1;
  --bai-200: #fdcbc6;
  --bai-300: #f7a199;
  --bai-400: #ec6a5e;
  --bai-500: #d42a1c;
  --bai-600: #ad0000;
  --bai-700: #8f0606;
  --bai-800: #740a0a;
  --bai-900: #5a0b0b;
  --bai-950: #330303;
  /* fiamma: punto caldo delle sfumature dei pulsanti principali */
  --fiamma: #e3381f;
  --brace:  #ff7a33;

  /* --- neutri caldi (stessi valori della palette "stone") --- */
  --ink-0:   #ffffff;
  --ink-25:  #fcfcfb;
  --ink-50:  #fafaf9;
  --ink-100: #f5f5f4;
  --ink-200: #e7e5e4;
  --ink-300: #d6d3d1;
  --ink-400: #a8a29e;
  --ink-500: #78716c;
  --ink-600: #57534e;
  --ink-700: #44403c;
  --ink-800: #292524;
  --ink-900: #1c1917;
  --ink-950: #0f0d0c;

  /* --- stati --- */
  --ok-50: #ecfdf3;  --ok-200: #b7ebcd;  --ok-600: #138a4d;  --ok-700: #0e6e3d;
  --warn-50: #fff8eb; --warn-200: #fde1a8; --warn-600: #b45309; --warn-700: #92400e;
  --info-50: #eef4ff; --info-200: #c7d7fe; --info-600: #2952cc; --info-700: #1e3fa3;
  --err-50: #fef2f2;  --err-200: #fecaca;  --err-600: #c81e1e;  --err-700: #991b1b;

  /* --- forme --- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* --- elevazione --- */
  --sh-xs: 0 1px 2px rgb(28 25 23 / .06);
  --sh-sm: 0 1px 2px rgb(28 25 23 / .05), 0 2px 8px -2px rgb(28 25 23 / .07);
  --sh-md: 0 6px 16px -6px rgb(28 25 23 / .12), 0 2px 4px -2px rgb(28 25 23 / .06);
  --sh-lg: 0 18px 36px -12px rgb(28 25 23 / .20), 0 4px 10px -4px rgb(28 25 23 / .08);
  --sh-xl: 0 30px 70px -20px rgb(28 25 23 / .35);
  --sh-brand: 0 10px 24px -10px rgb(173 0 0 / .65);
  --sh-brand-lg: 0 18px 36px -12px rgb(173 0 0 / .55);

  /* --- movimento --- */
  --t-fast: 120ms;
  --t: 200ms;
  --t-slow: 360ms;
  --ease: cubic-bezier(.22, 1, .36, 1);          /* uscita morbida */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* piccolo rimbalzo */

  /* --- fuoco da tastiera (sempre visibile) --- */
  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px rgb(173 0 0 / .55);

  /* --- caratteri --- */
  --font-display: "Barlow Condensed", "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Barlow", "Barlow Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* animazioni comuni */
@keyframes bai-spin { to { transform: rotate(360deg); } }
@keyframes bai-ripple { to { transform: scale(1); opacity: 0; } }
@keyframes bai-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bai-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bai-pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bai-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes bai-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bai-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes bai-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, -18px) scale(1.06); } }

/* chi chiede meno movimento al sistema non vede animazioni */
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
