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

body {
    font-family: "Roboto", sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Navbar */
header {
    background: white;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: white;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* logo a sinistra, menu a destra */
    align-items: center;
}

/* Menu desktop */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px; /* spazio tra voci */
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px; /* piccolo padding per hover */
    border-radius: 5px; /* serve per l'effetto hover */
    transition: all 0.2s ease-in-out;
}

.navbar ul li a:hover {
    color: white;
    background-color: #ff595a;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.hero {
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
}

/* Left Map Section */
.map-section {
    flex: 1;
    background-image: url("../map.jpg"); /* Replace with real map image */
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

/* Right Contact Section */
.contact-section {
    flex: 1;
    background-color: #f84b4b;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section h1 {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input,
form textarea {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

form button {
    background-color: black;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

form button:hover {
    background-color: #222;
}

.info {
    flex: 1 1 200px; /* responsive width */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 18px;
    margin: 30px;
    gap: 10px;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .map-section,
    .contact-section {
        flex: none;
        width: 100%;
    }

    .map-section {
        min-height: 250px;
    }

    .contact-section {
        padding: 20px;
    }

    .info {
        margin: 20px 0 0 0;
        font-size: 16px;
    }
}
