/* =========================================
   1. VARIABILI & SETUP
   ========================================= */
:root {
    /* Palette Premium */
    --col-text: #2C2C2C;        /* Grafite profondo */
    --col-brown: #A68B82;       /* Marrone Taupe elegante */
    --col-blush: #FDF8F7;       /* Rosa chiarissimo sfondo */
    --col-light: #FFFEFD;       /* Bianco caldo */
    --col-white: #FFFFFF;
    
    /* Font */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spaziatura */
    --width-max: 1200px;
    --nav-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--col-text);
    line-height: 1.6;
    background-color: var(--col-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: 2.2rem; color: var(--col-brown); margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utility Classes */
.container { width: 90%; max-width: var(--width-max); margin: 0 auto; }
.text-center { text-align: center; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--col-light); }
.bg-blush { background-color: var(--col-blush); }

/* Animazioni JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   2. COMPONENTI (Bottoni, ecc)
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary { background-color: var(--col-text); color: var(--col-white); }
.btn-primary:hover { background-color: var(--col-brown); }

.btn-secondary { background: transparent; border-color: var(--col-text); color: var(--col-text); }
.btn-secondary:hover { background: var(--col-text); color: var(--col-white); }

.btn-white { background: var(--col-white); color: var(--col-text); }
.btn-white:hover { background: var(--col-brown); color: var(--col-white); }

/* =========================================
   3. HEADER & NAVIGAZIONE
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Effetto vetro smerigliato */
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Menu Desktop */
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.nav-link:hover { color: var(--col-brown); }
.mobile-only { display: none; }

/* Hamburger Button (Default hidden) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.bar {
    display: block; width: 25px; height: 2px;
    background-color: var(--col-text);
    margin: 6px 0; transition: 0.3s;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1596462502278-27bfdd403348?auto=format&fit=crop&q=80') center/cover no-repeat;
    margin-top: 0;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.8));
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: var(--nav-height); }
.hero-sub { font-size: 1.2rem; margin-bottom: 2.5rem; color: #444; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   5. SEZIONE FEATURES & TRATTAMENTI
   ========================================= */
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 3rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { padding: 2rem; text-align: center; border: 1px solid #eee; background: white; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.icon { font-size: 2.5rem; margin-bottom: 1rem; }

.grid-treatments { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.treatment-card { background: white; border: 1px solid #f0f0f0; transition: 0.3s; }
.card-image { height: 280px; background-size: cover; background-position: center; }
.card-body { padding: 1.5rem; }
.link-arrow { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--col-brown); }

/* =========================================
   6. ESPERIENZA & CHI SIAMO
   ========================================= */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-image img { border-radius: 4px; }
.label-pre { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; color: var(--col-brown); display: block; margin-bottom: 1rem; }

.container-narrow { max-width: 700px; }
.lead-text { font-size: 1.6rem; font-family: var(--font-head); color: var(--col-brown); margin: 1.5rem 0; line-height: 1.4; }

/* =========================================
   7. CTA & FOOTER
   ========================================= */
.cta-section { background-color: var(--col-text); color: white; padding: 6rem 0; text-align: center; }
.cta-section h2 { color: white; }
.cta-section .btn { margin-top: 2rem; }

.footer { background: #222; color: #999; padding: 4rem 0 1rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.logo-footer { color: white; font-family: var(--font-head); font-size: 1.2rem; display: block; margin-bottom: 1rem; }
.footer h4 { color: white; margin-bottom: 1rem; }
.footer a { color: #ccc; } .footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; font-size: 0.8rem; }

/* =========================================
   8. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .nav-cta-desktop { display: none; }
    .hamburger { display: block; z-index: 200; }
    
    .nav {
        position: fixed;
        top: 0; right: 0;
        width: 80%; height: 100vh;
        background: white;
        padding: 6rem 2rem;
        transform: translateX(100%); /* Nascondi menu */
        transition: transform 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav.active { transform: translateX(0); /* Mostra menu */ }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .nav-link { font-size: 1.2rem; }
    .mobile-only { display: block; margin-top: 1rem; }
    
    /* Animazione Hamburger */
    .hamburger.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
    .split-text { order: 2; } .split-image { order: 1; }
}