/* ========================================
   BASE.CSS - Reset, Variabili, Utility
   ======================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABILI CSS */
:root {
    /* ==================== COLORI BRAND ==================== */
    /* Verde Principale */
    --primary-color: #71a894;
    --primary-dark: #5a8a7a;
    --primary-light: #e8f5f1;
    --primary-hover: #8bb8a5;
    
    /* Giallo Ochre */
    --accent-yellow: #f4c063;
    --accent-yellow-dark: #e6b056;
    --accent-yellow-light: #fef5e7;
    --accent-yellow-hover: #d9a048;
    
    /* Rosso Coral */
    --accent-red: #ec676c;
    --accent-red-dark: #d85f64;
    --accent-red-light: #ffe5e6;
    --accent-red-hover: #c75558;
    
    /* Beige */
    --accent-beige: #ecdbbc;
    --accent-beige-dark: #d9c8a9;
    --accent-beige-light: #f9f3e8;
    
    /* ==================== COLORI SECONDARI ==================== */
    --secondary-color: #f5f5f5;
    --secondary-dark: #e0e0e0;
    
    /* ==================== COLORI FEEDBACK ==================== */
    --success-color: #4caf50;
    --success-light: #e8f5e9;
    --warning-color: #ff9800;
    --warning-light: #fff3e0;
    --error-color: #ff6b6b;
    --error-light: #ffebee;
    --info-color: #2196f3;
    --info-light: #e3f2fd;
    
    /* ==================== COLORI TESTO ==================== */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    
    /* ==================== COLORI BACKGROUND ==================== */
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #f5f5f5;
    
    /* ==================== BORDI ==================== */
    --border-light: #e0e0e0;
    --border-medium: #ddd;
    --border-dark: #aaa;
    
    /* ==================== OMBRE ==================== */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.2);
    
    /* Ombre Brand */
    --shadow-primary: 0 4px 12px rgba(113, 168, 148, 0.25);
    --shadow-yellow: 0 4px 12px rgba(244, 192, 99, 0.3);
    --shadow-red: 0 4px 12px rgba(236, 103, 108, 0.3);
    
    /* ==================== SPACING ==================== */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
    --spacing-xxl: 35px;
    
    /* ==================== BORDER RADIUS ==================== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 30px;
    --radius-round: 50%;
    
    /* ==================== TRANSIZIONI ==================== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* ==================== FONT ==================== */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-size-xs: 0.75em;
    --font-size-sm: 0.85em;
    --font-size-md: 1em;
    --font-size-lg: 1.2em;
    --font-size-xl: 1.6em;
    --font-size-xxl: 2em;
}

/* BODY */
body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* CONTAINER PRINCIPALE */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-white);
    min-height: calc(100vh - 200px);
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* FLEX UTILITY */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* RESPONSIVE - 22" VERTICALE (1080x1920) + iPAD */
@media (max-width: 1080px) {
    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-sm: 0.9em;
        --font-size-md: 1em;
        --font-size-lg: 1.3em;
        --font-size-xl: 1.8em;
    }
}
