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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}


/* Navbar Fissa */
.header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed; /* Mantiene la navbar fissa in alto */
    top: 0;
    width: 100%;
    z-index: 1000; /* Assicura che la navbar sia sopra altri contenuti */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transizioni per la navbar */
}

.header.scrolled {
    background-color: #222; /* Colore della navbar quando scorre */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Ombra sotto la navbar quando scorre */
}

/* Intestazione */

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

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    transition: transform 0.3s ease; /* Transizione per il logo */
}

.logo span {
    color: #e63946;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    margin: 0 1rem;
    position: relative; /* Per l'animazione degli effetti hover */
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease; /* Transizione per il colore dei link */
}

.nav ul li a:hover {
    color: #e63946; /* Colore di hover per i link */
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .nav ul {
        display: none; /* Nasconde il menu di navigazione */
    }

    .logo {
        margin: 0 auto; /* Centra il logo */
        text-align: center;
    }

    .header .container {
        justify-content: center; /* Centra la disposizione del contenuto */
        padding: 0; /* Rimuove il padding orizzontale */
    }
}


/* Sezione di Presentazione */
.hero {
    background: url('https://images.unsplash.com/photo-1519859660545-3dea8ddf683c?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content .btn {
    background: #e63946;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-content .btn:hover {
    background: #c53030;
}

/* Sezione Servizi */
.services {
    padding: 4rem 0;
    /* background: url('https://images.unsplash.com/photo-1519859660545-3dea8ddf683c?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover; */
    background: #f8f9fa; 
     /* text-align: center; */
 }


.services .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center; /* Centra il testo all'interno delle card */
}

.services h2 {
    text-align: center; /* Centra l'H2 */
    margin-bottom: 2rem;
    font-size: 2.5rem; /* Dimensione del font aumentata per visibilità */
}

.service-card {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(33.333% - 2rem);
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .services .container {
        flex-direction: column; /* Disposizione a colonna */
        align-items: center; /* Centra il contenuto */
    }

    .services h2 {
        text-align: center; /* Centra l'H2 */
        margin-bottom: 2rem;
    }

    .service-card {
        flex: 0 0 90%; /* Larghezza del 90% per i servizi */
        margin-bottom: 2rem; /* Spazio tra i servizi */
    }

    .service-card p {
        display: none; /* Nasconde le descrizioni */
    }
}

/* Sezione Testimonianze */
.testimonials {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.testimonial {
    background: #f8f9fa;
    margin: 1rem auto;
    padding: 2rem;
    width: 60%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Sezione CTA */
.cta {
    background: #333;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta .btn {
    background: #e63946;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta .btn:hover {
    background: #c53030;
}

/* Piè di pagina */
.footer {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

.footer .social a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Stile del pulsante "Torna in alto" */
.scroll-to-top {
    display: none; /* Nasconde il pulsante per default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px; /* Centra il testo verticalmente */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #c53030;
}

