/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fb;
    color: #333;
}

/* HEADER */
header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
}

.header-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    max-height: 80px;
}

/* NAV */
nav {
    background: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-links {
    display: flex;
}

nav a {
    padding: 15px 20px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    background: #e2e6ea;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* CONTENUTO */
.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h1 {
    border-bottom: 2px solid #dfe3e8;
    padding-bottom: 10px;
}

/* FORM */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background: #4a90e2;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #357ab8;
}

/* FOOTER */
footer {
    background: #f0f2f5;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
    color: #666;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    nav a {
        padding: 15px;
        border-top: 1px solid #ddd;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        margin: 20px;
        padding: 20px;
    }
}

.hero {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
                url('img/hero.jpg') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #357ab8;
}

/* FOOTER MODERNO */
footer {
    background: #f0f2f5;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-container p {
    margin: 0;
    color: #666;
}

.social-icons a {
    color: #555;
    margin-left: 15px;
    font-size: 18px;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: #4a90e2;
    transform: translateY(-3px);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-icons a {
        margin: 0 10px;
    }
}