/**
 * TFS Oleodinamica — Design System Variables
 *
 * Definisce le variabili CSS globali del sito.
 * Modificando una variabile qui, l'effetto si propaga ovunque.
 *
 * NOMENCLATURA:
 *   --tfs-color-*      → Colori
 *   --tfs-font-*       → Tipografia
 *   --tfs-space-*      → Spaziature (scala 4px-based)
 *   --tfs-radius-*     → Border radius
 *   --tfs-shadow-*     → Ombre
 *   --tfs-duration-*   → Durate animazioni
 *   --tfs-z-*          → Z-index layers
 *
 * PALETTE v2.0 (26/5/2026): Metallic Platinum → Oxford Midnight + Industrial Orange
 * Hue 211° costante, gradiente monocromatico armonico.
 * Source of truth: 00_TFS_Design_Tokens.md
 */

:root {

  /* ============================================
     COLORI BRAND
     ============================================ */

  /* Primario — Metallic Platinum → Oxford Midnight (hue 211° fisso) */
  --tfs-color-primary: #305473;          /* steel blue mid — body emphasis, icone */
  --tfs-color-primary-dark: #022442;     /* Oxford Midnight — H1-H3, hero, button bg */
  --tfs-color-primary-light: #d0d6db;    /* grigio-azzurro chiaro — bordi, disabled */
  --tfs-color-primary-tint: var(--tfs-color-primary-light);   /* alias consolidato v2.6 - era #D3D6D8 */
  --tfs-color-primary-soft: #5876A0;     /* blu mid-light — badge, chips, info-box */

  /* Secondario — Arancio industriale (CTA, evidenziazioni, safety canonical) */
  --tfs-color-accent: #E87722;
  --tfs-color-accent-dark: #C45F15;
  --tfs-color-accent-light: #F29A52;

  /* ============================================
     COLORI NEUTRI
     ============================================ */

  --tfs-color-black: #0A0A0A;
  --tfs-color-gray-900: #1A1A1A;
  --tfs-color-gray-800: #2C2C2C;
  --tfs-color-gray-700: #4A4A4A;
  --tfs-color-gray-600: #6B6B6B;
  --tfs-color-gray-500: #8C8C8C;
  --tfs-color-gray-400: #B5B5B5;
  --tfs-color-gray-300: #D4D4D4;
  --tfs-color-gray-200: #E8E8E8;
  --tfs-color-gray-100: #F4F4F4;
  --tfs-color-gray-50: #FAFAFA;
  --tfs-color-white: #FFFFFF;

  /* ============================================
     COLORI SEMANTICI (stati, feedback)
     ============================================ */

  --tfs-color-success: #2D7A3E;
  --tfs-color-warning: #D4A017;
  --tfs-color-error: #C0392B;
  --tfs-color-info: #2874A6;

  /* ============================================
     COLORI APPLICATIVI (uso contestuale)
     ============================================ */

  --tfs-color-text: var(--tfs-color-gray-900);
  --tfs-color-text-muted: var(--tfs-color-gray-600);
  --tfs-color-text-inverse: var(--tfs-color-white);
  --tfs-color-link: var(--tfs-color-primary);
  --tfs-color-link-hover: var(--tfs-color-primary-dark);
  --tfs-color-bg: var(--tfs-color-white);
  --tfs-color-bg-alt: var(--tfs-color-gray-50);
  --tfs-color-bg-section: var(--tfs-color-gray-100);
  --tfs-color-border: var(--tfs-color-gray-200);
  --tfs-color-border-strong: var(--tfs-color-gray-400);

  /* ============================================
     TIPOGRAFIA
     ============================================ */

  /* Font families — usa Kadence default + system fallback per massima performance */
  --tfs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
  --tfs-font-serif: Georgia, "Times New Roman", Times, serif;
  --tfs-font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono",
                   Consolas, "Courier New", monospace;

  /* Font family di default del sito */
  --tfs-font-body: var(--tfs-font-sans);
  --tfs-font-heading: var(--tfs-font-sans);

  /* Font sizes — scala modulare 1.25 (Major Third) */
  --tfs-fs-xs: 0.75rem;      /* 12px */
  --tfs-fs-sm: 0.875rem;     /* 14px */
  --tfs-fs-base: 1rem;       /* 16px */
  --tfs-fs-lg: 1.125rem;     /* 18px */
  --tfs-fs-xl: 1.25rem;      /* 20px */
  --tfs-fs-2xl: 1.5rem;      /* 24px */
  --tfs-fs-3xl: 1.875rem;    /* 30px */
  --tfs-fs-4xl: 2.25rem;     /* 36px */
  --tfs-fs-5xl: 3rem;        /* 48px */
  --tfs-fs-6xl: 3.75rem;     /* 60px */

  /* Font weights */
  --tfs-fw-light: 300;
  --tfs-fw-regular: 400;
  --tfs-fw-medium: 500;
  --tfs-fw-semibold: 600;
  --tfs-fw-bold: 700;
  --tfs-fw-extrabold: 800;

  /* Line heights */
  --tfs-lh-tight: 1.2;
  --tfs-lh-snug: 1.35;
  --tfs-lh-normal: 1.5;
  --tfs-lh-relaxed: 1.65;
  --tfs-lh-loose: 1.85;

  /* Letter spacing */
  --tfs-ls-tight: -0.02em;
  --tfs-ls-normal: 0;
  --tfs-ls-wide: 0.05em;
  --tfs-ls-wider: 0.1em;

  /* ============================================
     SPAZIATURE (scala 4px-based)
     ============================================ */

  --tfs-space-0: 0;
  --tfs-space-1: 0.25rem;    /* 4px */
  --tfs-space-2: 0.5rem;     /* 8px */
  --tfs-space-3: 0.75rem;    /* 12px */
  --tfs-space-4: 1rem;       /* 16px */
  --tfs-space-5: 1.25rem;    /* 20px */
  --tfs-space-6: 1.5rem;     /* 24px */
  --tfs-space-8: 2rem;       /* 32px */
  --tfs-space-10: 2.5rem;    /* 40px */
  --tfs-space-12: 3rem;      /* 48px */
  --tfs-space-16: 4rem;      /* 64px */
  --tfs-space-20: 5rem;      /* 80px */
  --tfs-space-24: 6rem;      /* 96px */
  --tfs-space-32: 8rem;      /* 128px */

  /* ============================================
     LAYOUT
     ============================================ */

  /* Container max-width */
  --tfs-container-sm: 640px;
  --tfs-container-md: 768px;
  --tfs-container-lg: 1024px;
  --tfs-container-xl: 1280px;
  --tfs-container-2xl: 1440px;
  --tfs-container-full: 1600px;

  /* Section padding verticale standard */
  --tfs-section-py: var(--tfs-space-16);
  --tfs-section-py-lg: var(--tfs-space-24);

  /* ============================================
     BORDER RADIUS
     ============================================ */

  --tfs-radius-none: 0;
  --tfs-radius-sm: 2px;
  --tfs-radius-md: 4px;
  --tfs-radius-lg: 8px;
  --tfs-radius-xl: 12px;
  --tfs-radius-2xl: 16px;
  --tfs-radius-full: 9999px;

  /* ============================================
     OMBRE
     ============================================ */

  --tfs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --tfs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tfs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tfs-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --tfs-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* ============================================
     ANIMAZIONI
     ============================================ */

  --tfs-duration-fast: 150ms;
  --tfs-duration-base: 250ms;
  --tfs-duration-slow: 400ms;
  --tfs-duration-slower: 600ms;

  --tfs-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --tfs-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tfs-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ============================================
     Z-INDEX LAYERS
     ============================================ */

  --tfs-z-behind: -1;
  --tfs-z-base: 1;
  --tfs-z-dropdown: 100;
  --tfs-z-sticky: 200;
  --tfs-z-fixed: 300;
  --tfs-z-modal-backdrop: 400;
  --tfs-z-modal: 500;
  --tfs-z-popover: 600;
  --tfs-z-tooltip: 700;
  --tfs-z-toast: 800;

  /* ============================================
     BREAKPOINTS (riferimento — usati in media query)
     ============================================ */

  /* NOTA: le CSS variables non funzionano dentro @media query.
     Questi valori servono come riferimento documentale:
     --tfs-bp-sm:  640px
     --tfs-bp-md:  768px
     --tfs-bp-lg:  1024px
     --tfs-bp-xl:  1280px
     --tfs-bp-2xl: 1440px  */
}

/* ============================================
   DARK MODE (preparazione, non attivo di default)
   ============================================ */

/* Quando vorremo attivare il dark mode in futuro, basterà
   scommentare questo blocco. Nessuna modifica ai singoli componenti. */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --tfs-color-text: var(--tfs-color-gray-100);
    --tfs-color-text-muted: var(--tfs-color-gray-400);
    --tfs-color-bg: var(--tfs-color-gray-900);
    --tfs-color-bg-alt: var(--tfs-color-gray-800);
    --tfs-color-bg-section: var(--tfs-color-gray-800);
    --tfs-color-border: var(--tfs-color-gray-700);
  }
}
*/
