/* --- IMPOSTAZIONI GLOBALI CON LA PALETTE "SMART SAVING" --- */
:root {
    --colore-primario: #03b5aa; /* Verde Menta / Tech */
    --colore-primario-hover: #029d93;
    --colore-testo-scuro: #2c3e50; /* Blu/Grigio Scuro */
    --colore-testo-chiaro: #555555;
    --colore-sfondo: #f7f9fa; /* Grigio chiarissimo */
    --colore-bianco: #ffffff;
    --colore-bordi: #e0e6e8;
}

/* --- Reset e Corpo --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--colore-testo-chiaro);
    line-height: 1.6;
    background-color: var(--colore-sfondo);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--colore-testo-scuro);
}

/* --- BOTTONI (Stile Arrotondato) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Stile "Pillola" */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--colore-primario);
    color: var(--colore-bianco);
}
.btn-primary:hover {
    background-color: var(--colore-primario-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 181, 170, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--colore-testo-scuro);
    border: 1px solid var(--colore-bordi);
}
.btn-secondary:hover {
    background-color: var(--colore-bianco);
    border-color: #bbb;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}


/* --- HEADER --- */
.main-header {
    background: var(--colore-bianco);
    padding: 15px 0;
    border-bottom: 1px solid var(--colore-bordi);
    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(--colore-testo-scuro);
    text-decoration: none;
}
.main-nav a {
    margin-left: 10px;
}

/* --- SEZIONE HERO --- */
.hero {
    text-align: center;
    background-color: var(--colore-sfondo);
    /* * Sostituisci questa immagine con una a tema shopping/tech.
     * Ho aggiunto un gradiente per migliorare la leggibilità.
    */
    background-image: linear-gradient(rgba(247, 249, 250, 0.6), rgba(247, 249, 250, 0.9)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;

    /* Manteniamo l'altezza 100vh per il desktop */
    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(--colore-testo-scuro);
}
.hero .subtitle {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto 30px auto;
}

/* --- 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: var(--colore-bianco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Aggiungiamo un piccolo hover per un tocco moderno */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--colore-primario); /* Titoli delle feature in verde */
}

/* --- SEZIONE HOW IT WORKS --- */
.how-it-works {
    background-color: var(--colore-bianco); /* Sfondo bianco per staccare */
}
.steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.step {
    width: 22%;
    position: relative; /* Per le linee (opzionale) */
}
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--colore-primario);
    color: var(--colore-bianco);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    border: 3px solid #d4f3ef; /* Bordo chiaro per "staccare" */
}
.step h3 {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--colore-testo-scuro);
    color: #aaa;
}
.main-footer h2 {
    color: var(--colore-bianco);
}
.main-footer .copyright {
    margin-top: 30px;
    font-size: 0.9em;
}

/* --- RESPONSIVE DESIGN (Identico al tuo, è già ottimo) --- */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step {
        width: 80%;
        margin-bottom: 40px;
    }

    .logo {
        font-size: 1.2em;
    }
    .main-nav {
        display: flex;
        gap: 5px;
    }
    .main-nav a {
        margin-left: 0;
    }
    .main-nav .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .hero {
        min-height: auto;
        padding: 80px 20px;
        justify-content: flex-start;
    }
    .hero h1 {
        font-size: 2.1em;
    }

    h2 {
       font-size: 2em;
    }
}