/**
 * @file
 * LINCS Theme - CSS Variables
 * 
 * Palette colori e variabili di design per il tema LINCS.
 * Progetto Sapienza Università di Roma.
 */

:root {
  /* ========================================
     COLORI PRIMARI - Sapienza
     ======================================== */
  --sapienza-bordeaux: #6B2737;
  --sapienza-bordeaux-light: #8B3A4D;
  --sapienza-bordeaux-dark: #4A1A26;
  --sapienza-bordeaux-rgb: 107, 39, 55;
  
  /* ========================================
     COLORI SECONDARI
     ======================================== */
  --accent-gold: #C9A227;
  --accent-gold-light: #E5C76B;
  --accent-gold-dark: #A88420;
  --accent-teal: #2A7F7F;
  --accent-teal-light: #3DAFAF;
  --accent-coral: #D4756B;
  --accent-coral-light: #E89A92;
  
  /* ========================================
     COLORI ISTITUZIONALI
     ======================================== */
  --eu-blue: #003399;
  --eu-yellow: #FFCC00;
  --italy-green: #009246;
  --italy-white: #FFFFFF;
  --italy-red: #CE2B37;
  
  /* ========================================
     NEUTRI - Scala di grigi
     ======================================== */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  /* ========================================
     BACKGROUND
     ======================================== */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F7F5;
  --bg-tertiary: #F0EEEB;
  --bg-header: #FFFFFF;
  --bg-footer: var(--sapienza-bordeaux);
  --bg-institutional: #003366;
  
  /* ========================================
     TESTO
     ======================================== */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-500);
  --text-muted: var(--neutral-400);
  --text-inverse: #FFFFFF;
  --text-link: var(--sapienza-bordeaux);
  --text-link-hover: var(--sapienza-bordeaux-light);
  
  /* ========================================
     BORDI
     ======================================== */
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);
  --border-dark: var(--neutral-400);
  --border-focus: var(--sapienza-bordeaux);
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* ========================================
     OMBRE
     ======================================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-bordeaux: 0 10px 40px -10px rgba(107, 39, 55, 0.3);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* ========================================
     SPAZIATURE
     ======================================== */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* ========================================
     TIPOGRAFIA
     ======================================== */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* ========================================
     TRANSIZIONI
     ======================================== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ========================================
     Z-INDEX
     ======================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* ========================================
     LAYOUT
     ======================================== */
  --container-max-width: 1280px;
  --container-padding: var(--space-6);
  --header-height: 64px;
  --header-height-scrolled: 56px;
}

/* ========================================
   DARK MODE (se supportato in futuro)
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Per ora manteniamo i colori chiari */
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
