*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#F5F1EB;
    color:#1F1F1F;
}

.navbar{
    background:#2A2522;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo img{
    width:180px;
}

nav ul{
    display:flex;
    gap:40px;
    list-style:none;
    align-items:center;
}

nav a{
    color:#F5F1EB;
    text-decoration:none;
    font-size:16px;
    position:relative;
}

nav a.active::after{
    content:'';
    width:100%;
    height:3px;
    background:#8A2E2E;
    position:absolute;
    left:0;
    bottom:-10px;
}

.cta-nav{
    background:#8A2E2E;
    padding:12px 24px;
}

.hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:80px 8%;
    gap:60px;
}

.hero-text{
    flex:1;
}

.hero-text span{
    color:#8A2E2E;
    letter-spacing:2px;
}

.hero-text h1{
    font-size:60px;
    margin:20px 0;
    line-height:1.1;
}

.hero-text h1 span{
    color:#8A2E2E;
}

.hero-text p{
    line-height:1.8;
    margin-bottom:40px;
    color:#5c524a;
}

.hero-btn{
    background:#8A2E2E;
    color:white;
    text-decoration:none;
    padding:15px 35px;
}

.hero-image img{
    width:100%;
    max-width:600px;
    border-radius:10px;
}

.services-icons{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    padding:80px 8%;
    background:#ECE4DA;
}

.service-box{
    background:white;
    padding:30px;
    border-radius:10px;
}

.service-box h3{
    margin-bottom:20px;
    color:#8A2E2E;
}

.about-section{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:100px 8%;
    gap:60px;
}

.about-text{
    flex:1;
}

.about-text span{
    color:#8A2E2E;
}

.about-text h2{
    font-size:50px;
    margin:20px 0;
}

.about-image img{
    width:100%;
    max-width:550px;
    border-radius:10px;
}

.cards-section{
    padding:80px 8%;
}

.cards-section h2{
    text-align:center;
    margin-bottom:60px;
    font-size:40px;
}

.cards-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.card{
    width:350px;
    background:white;
    border-radius:10px;
    overflow:hidden;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card-content{
    padding:25px;
}

.card-content h3{
    margin-bottom:15px;
    color:#8A2E2E;
}

.footer{
    background:#2A2522;
    padding:40px 8%;
    margin-top:80px;
}

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

.footer-content p{
    color:#F5F1EB;
    max-width:500px;
}

.footer-content img{
    width:150px;
}

.team-section{
    padding:100px 8%;
    text-align:center;
}

.team-gallery{
    display:flex;
    justify-content:center;
    gap:40px;
    margin:60px 0;
    flex-wrap:wrap;
}

.team-card{
    width:300px;
    background:white;
    border-radius:10px;
    overflow:hidden;
    transition:0.3s;
}

.team-card:hover{
    transform:translateY(-10px);
}

.team-card img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.team-card h3{
    padding:20px;
}

.team-description{
    max-width:900px;
    margin:auto;
    line-height:1.8;
}

.services-page{
    padding:100px 8%;
    text-align:center;
}

.services-page h1{
    margin-bottom:40px;
    font-size:50px;
}

.services-page p{
    max-width:1000px;
    margin:auto;
    line-height:1.9;
    margin-bottom:70px;
}

.card-link{
    text-decoration:none;
    color:inherit;
}

.contact-section{
    padding:100px 8%;
    text-align:center;
}

.contact-section h1{
    font-size:50px;
    margin-bottom:40px;
}

.contact-info{
    margin-bottom:50px;
}

.contact-info p{
    margin:15px 0;
}

.contact-form{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form textarea{
    padding:10px;
    border:1px solid #D8CEC2;
    background:white;
}

.contact-form textarea{
    height:180px;
}

.contact-form button{
    background:#8A2E2E;
    color:white;
    border:none;
    padding:18px;
    cursor:pointer;
}

.success-section{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.success-box{
    background:white;
    padding:60px;
    text-align:center;
    border-radius:10px;
}

.success-box h1{
    margin-bottom:20px;
}

.success-box a{
    display:inline-block;
    margin-top:30px;
    background:#8A2E2E;
    color:white;
    text-decoration:none;
    padding:15px 30px;
}

@media(max-width:900px){

    .hero,
    .about-section{
        flex-direction:column;
    }

    .services-icons{
        grid-template-columns:1fr;
    }

    .hero-text h1{
        font-size:42px;
    }

    .about-text h2{
        font-size:38px;
    }

    .navbar{
        flex-direction:column;
        gap:20px;
    }

}

/* --- Migliorie per pagine PHP / messaggi form --- */
html, body{
    min-height:100%;
}

body{
    min-height:100vh;
}

.form-message{
    max-width:700px;
    margin:0 auto 30px auto;
    padding:16px 20px;
    border-radius:8px;
    text-align:left;
    line-height:1.5;
}

.form-message.success{
    background:#E9F7EF;
    border:1px solid #A8E6C1;
    color:#1E6B3A;
}

.form-message.error{
    background:#FDECEC;
    border:1px solid #F2A7A7;
    color:#8A2E2E;
}

.success-section{
    min-height:100vh;
}
