/* --- VARIABILI E FONT DI SISTEMA --- */
:root {
    --gold: #b8924b;
    --dark: #121212;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-titles: "Georgia", "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Altezza del menu da sottrarre allo scroll */
    --nav-height: 90px; 
}

/* --- RESET GENERALE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGAZIONE --- */
nav {
    position: fixed;
    top: 0; 
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    min-height: var(--nav-height); 
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img {
    height: 75px !important; 
    width: auto !important;
    display: block;
    transition: var(--transition);
}

.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
}
.nav-menu a:hover { color: var(--gold); }

.hamburger { display: none; cursor: pointer; background: none; border: none; color: var(--dark); }

/* --- HERO SECTION --- */
.hero {
    min-height: 550px; 
    height: 65vh; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('herophoto.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    margin-top: var(--nav-height);
}

.hero h1 { font-family: var(--font-titles); font-size: clamp(2.2rem, 7vw, 4rem); margin-bottom: 1rem; }
.hero p { font-size: clamp(0.9rem, 2.5vw, 1.1rem); letter-spacing: 4px; text-transform: uppercase; border-bottom: 2px solid var(--gold); padding-bottom: 10px; }

/* --- SEZIONI (CON CORREZIONE SCROLL) --- */
section { 
    padding: 60px 8%; 
    max-width: 1400px; 
    margin: 0 auto; 
    
    /* QUESTA RIGA EVITA CHE IL MENU COPRA IL TITOLO */
    scroll-margin-top: var(--nav-height); 
}

h2 { font-family: var(--font-titles); font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h2::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gold); margin: 12px auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { background: var(--white); padding: 30px; text-align: center; border: 1px solid #eee; transition: var(--transition); }
.card:hover { transform: translateY(-5px); border-color: var(--gold); }

.bg-gray { background-color: var(--light-gray); width: 100%; }
.text-center { max-width: 800px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: #555; }

/* --- FORM CONTATTI --- */
.contact-container { max-width: 700px; margin: 0 auto; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; }
button { background: var(--dark); color: var(--white); padding: 15px 40px; border: none; cursor: pointer; width: 100%; font-weight: bold; text-transform: uppercase; }
button:hover { background: var(--gold); }

/* --- FOOTER --- */
footer { background: var(--dark); color: var(--white); padding: 40px 5%; text-align: center; }
.social-icons { margin-bottom: 20px; }
.social-icons a { color: var(--white); margin: 0 12px; display: inline-block; }
.social-icons a:hover { color: var(--gold); }

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    section { padding: 40px 5%; scroll-margin-top: 80px; }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: var(--white);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
    .logo img { height: 60px !important; }
    .hero { min-height: 400px; height: 60vh; margin-top: 80px; }
}