* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; color: #000; line-height: 1.6; scroll-behavior: smooth;  background: #f1f1f1;}
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Header e Navigazione */
header { background: #f8e400; padding: 5px 0; border-bottom: 3px solid #7b0011; position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; }
nav ul { display: flex; list-style: none; align-items: center; }
nav ul li a { text-decoration: none; color: #7b0011; font-weight: bold; margin-left: 25px; font-size: 0.9rem; }
.nav-active { color: #7b0011 !important; }

/* Hero Section */
.hero { 
    background: url('img/magnani-davide-slide_0245-1.webp'); 
    height: 80vh; background-size: cover;  display: flex; align-items: center; color: #f8e400; text-align: center; background-position: center bottom;
}
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; width: 100%; margin-bottom: 20px; }
.btn-main { background: #ffcc00; color: #333; padding: 15px 30px; text-decoration: none; font-weight: bold; border-radius: 5px; }

/* Sezioni e Titoli */
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; text-transform: uppercase; position: relative; }
.section-title::after { content: ''; width: 60px; height: 3px; background: #7b0011; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

/* Layout Servizi (Zig-Zag) */
.service-row { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-img { flex: 1; /* height: 300px; background: #eee; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); */ overflow: hidden;  }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-desc { flex: 1; }
.service-desc h3 { color: #7b0011; margin-bottom: 20px; }

/* Sezione Contatti */
.contact-section { background: #f9f9f9; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.c-card { background: #fff; padding: 40px; text-align: center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.c-card h3 { margin-bottom: 15px; color: #7b0011; }
.c-card a { color: inherit; text-decoration: none; font-weight: bold; }
.map-placeholder { background: #FFF; height: 400px; margin-top: 50px; display: flex; align-items: center; justify-content: center; }
h1.section-title, h2 { color: #7b0011; }	

/* Profilo Page */
.profilo-content { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.1rem; }

/* Footer */
footer { background: #7b0011; color: #f8e400; text-align: center; padding: 20px; margin-top: 50px; }

/* Mobile */
@media (max-width: 768px) {
    .service-row, .service-row.reverse { flex-direction: column; text-align: center; }
    nav ul { display: none; }
    .hero h1 { font-size: 2rem; }
}