/* --- IMPOSTAZIONI GLOBALI CON LA PALETTE "MODERN BEAUTY" --- */
:root {
    --background-light: #fdfcfb;
    --accent-mauve: #8a5a69;
    --accent-mauve-hover: #a16a7a;
    --text-dark: #333333;
    --text-light: #555555;
    --section-bg-light: #f4f0f1;
}

/* NUOVA REGOLA: Previene problemi di larghezza e overflow */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--text-dark);
}

/* --- BOTTONI --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap; /* NUOVA REGOLA: Impedisce al testo dei bottoni di andare a capo */
}

.btn-primary {
    background-color: var(--accent-mauve);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--accent-mauve-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 90, 105, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
}
.btn-secondary:hover {
    background-color: #f1f1f1;
    border-color: #bbb;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}


/* --- HEADER --- */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}
.main-nav a {
    margin-left: 10px;
}

/* --- SEZIONE HERO A SCHERMO PIENO (SOLO DESKTOP) --- */
.hero {
    text-align: center;
    background-color: var(--background-light);
    background-image: linear-gradient(rgba(253, 252, 251, 0.3), rgba(253, 252, 251, 0.8)), url('/images/photo-hero.png');
    background-size: cover;
    background-position: center;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
}
.hero .subtitle {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto 30px auto;
    color: var(--text-light);
}

/* --- SEZIONI GENERICHE --- */
.features, .how-it-works, .main-footer {
    padding: 80px 0;
    text-align: center;
}
.features h2, .how-it-works h2, .main-footer h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
}

/* --- GRIGLIA FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.feature-item {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--accent-mauve);
}

/* --- SEZIONE HOW IT WORKS --- */
.how-it-works {
    background-color: var(--section-bg-light);
}
.steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.step {
    width: 22%;
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-mauve);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}
.step h3 {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #fff;
}
.main-footer .copyright {
    margin-top: 30px;
    font-size: 0.9em;
    color: #aaa;
}

/* --- RESPONSIVE DESIGN MIGLIORATO --- */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step {
        width: 80%;
        margin-bottom: 40px;
    }

    /* NUOVE REGOLE: Ottimizzazione Header */
    .logo {
        font-size: 1.2em;
    }
    .main-nav {
        display: flex;
        gap: 5px; /* Riduciamo lo spazio tra i bottoni */
    }
    .main-nav a {
        margin-left: 0;
    }
    .main-nav .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    /* NUOVE REGOLE: Ottimizzazione Hero Section */
    .hero {
        min-height: auto; /* Rimuoviamo l'altezza a tutto schermo */
        padding: 80px 20px; /* Usiamo un padding controllato */
        justify-content: flex-start; /* Allinea il contenuto in alto */
    }
    .hero h1 {
        font-size: 2.1em; /* Riduciamo ancora un po' il titolo */
    }

    h2 {
       font-size: 2em;
    }
}