/* ===== BASE CSS - XO Ristorante & Club ===== */

/* Import design tokens */
@import url('../css/design-tokens.css');

/* CSS Variables from design tokens */
:root {
    /* Colors */
    --color-sabbia: #D5CECB;
    --color-avorio: #DED8D2;
    --color-greige: #B8B3AF;
    --color-taupe: #989289;
    --color-legno: #6E5C44;
    --color-grafite: #433D37;
    --color-ardesia: #3D4248;
    --color-inchiostro: #30290D;
    --color-cuoio: #AC7E51;
    --color-cuoioHover: #8B6A42;
    --color-sabbiaLight: #E8E2DF;
    --color-avorioLight: #F0EDE9;
    --color-greigeLight: #C8C4C0;
    --color-taupeLight: #AFA49C;
    --color-nero: #1A1A1A;
    
    /* Typography */
    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'Sora', sans-serif;
    --font-family-secondary: 'Gill Sans Nova', 'Gill Sans', sans-serif;
    --font-family-accent: 'Le Murmure', cursive;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-tight: 1.1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* 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 */
    --spacing-4xl: 6rem;          /* 96px */
    --spacing-5xl: 8rem;          /* 128px */
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --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 -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Max Width */
    --max-width-container: 1400px;
}

/* ===== CSS RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {

    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-grafite);
    background-color: var(--color-avorio);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== TIPOGRAFIA BASE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-grafite);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 2.1rem + 2vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    font-weight: var(--font-weight-medium);
}

h5 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
    font-weight: var(--font-weight-medium);
}

p {
    font-family: var(--font-family-body);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-ardesia);
    font-weight: var(--font-weight-normal);
}

/* Typography variants */
.text-large {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

.overline {
    font-family: var(--font-family-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cuoio);
}

/* ===== ELEMENTI BASE ===== */
a {
    color: var(--color-cuoio);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-family: var(--font-family-body);
}

a:hover {
    color: var(--color-cuoioHover);
}



ul, ol {
    list-style: none;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-body);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* ===== CONTAINER E LAYOUT ===== */
.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

.section-lg {
    padding: var(--spacing-5xl) 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-headings { font-family: var(--font-family-headings); }
.font-body { font-family: var(--font-family-body); }
.font-secondary { font-family: var(--font-family-secondary); }
.font-accent { font-family: var(--font-family-accent); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-heavy { font-weight: var(--font-weight-heavy); }
.font-black { font-weight: var(--font-weight-black); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-sm {
        padding: var(--spacing-xl) 0;
    }
    
    .section-lg {
        padding: var(--spacing-3xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: clamp(2rem, 1.8rem + 1vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    }
}
