/* VARIABILI CSS - MFDEPUR */

:root {
    /* COLORI BRAND */
    --primary-50: #e3f2fd;
    --primary-100: #bbdefb;
    --primary-200: #90caf9;
    --primary-300: #64b5f6;
    --primary-400: #42a5f5;
    --primary-500: #2196f3;
    --primary-600: #1e88e5;
    --primary-700: #1976d2;
    --primary-800: #1565c0;
    --primary-900: #0d47a1;

    /* COLORI SEMANTICI */
    --color-primary: var(--primary-500);
    --color-primary-dark: var(--primary-700);
    --color-primary-darker: var(--primary-800);
    --color-primary-light: var(--primary-300);
    --color-primary-lighter: var(--primary-100);
    --color-primary-lightest: var(--primary-50);

    /* COLORI TESTO */
    --text-primary: #1565c0;
    --text-secondary: #666;
    --text-muted: #999;
    --text-white: #ffffff;
    --text-dark: #333;

    /* SFONDI */
    --bg-white: #ffffff;
    --bg-light: #f8faff;
    --bg-lighter: #fafafa;
    --bg-primary-gradient: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-500) 100%);
    --bg-light-gradient: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    --bg-hero-gradient: linear-gradient(135deg, rgba(13, 71, 161, 0.8) 0%, rgba(25, 118, 210, 0.6) 100%);

    /* LAYOUT E SPAZIATURE */
    --navbar-height: 80px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
    --container-padding: 0 20px;
    --container-padding-mobile: 0 15px;
    --section-min-height: 100vh;
    --section-content-height: calc(100vh - var(--navbar-height));

    /* SPAZIATURE MODULARI */
    --spacing-xs: 10px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;

    /* RAGGI BORDI */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 25px;
    --radius-full: 50px;

    /* OMBREGGIATURE */
    --shadow-sm: 0 2px 8px rgba(33, 150, 243, 0.1);
    --shadow-md: 0 10px 30px rgba(33, 150, 243, 0.1);
    --shadow-lg: 0 20px 60px rgba(33, 150, 243, 0.15);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-slower: 0.5s ease;

    /* Typography */
    --font-family: "Mulish", sans-serif;
    --font-size-xxxs: 0.55rem;
    --font-size-xxs: 0.65rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.85rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-section-title: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.5rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;

    /* 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;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(10px);

    /* Patterns */
    --pattern-dots: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    --pattern-grain: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    --pattern-hex: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="hex" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0L40 11.5L40 28.5L20 40L0 28.5L0 11.5Z" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hex)"/></svg>');

    /* Animations */
    --animation-fade-in: fadeIn 0.6s ease-out;
    --animation-slide-up: slideUp 0.6s ease-out;
    --animation-scale-in: scaleIn 0.4s ease-out;
    --animation-float: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
        --container-padding: var(--container-padding-mobile);
        --section-min-height: auto;
    }
}