/* ==========================================================================
   CSS Custom Properties (Variables)
   Brand Identity & Design Tokens
   ========================================================================== */

:root {
    /* Colors - Brand */
    --color-primary: #2c5530;           /* Verde bosco - colore principale */
    --color-primary-light: #3d7540;
    --color-primary-dark: #1f3d22;
    --color-primary-rgb: 44, 85, 48;    /* Per rgba() */

    --color-secondary: #8b7355;          /* Marrone caldo - complementare */
    --color-secondary-light: #a58968;
    --color-secondary-dark: #6d5a43;

    --color-accent: #d4af37;             /* Oro - accenti */

    /* Colors - Neutral */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-dark: #1a1a1a;

    --color-bg: #ffffff;
    --color-bg-light: #f9f9f9;
    --color-bg-dark: #f0f0f0;

    --color-border: #e0e0e0;
    --color-border-light: #eeeeee;

    /* Colors - Semantic */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Typography */
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem;      /* 4px */
    --spacing-sm: 0.5rem;       /* 8px */
    --spacing-md: 1rem;         /* 16px */
    --spacing-lg: 1.5rem;       /* 24px */
    --spacing-xl: 2rem;         /* 32px */
    --spacing-2xl: 3rem;        /* 48px */
    --spacing-3xl: 4rem;        /* 64px */

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;

    --header-height: 80px;
    --header-top-height: 40px;

    /* Borders */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;

    --border-width: 1px;
    --border-width-thick: 2px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        /* 
        --color-bg: #1a1a1a;
        --color-text: #f9f9f9;
        ... 
        Commentato per FASE 1 - da implementare se richiesto
        */
    }
}
