




:root {
    --color-primary: #2b6777;
    --color-accent: #c9d6df;
    --color-background: #f9f9f9;
    --color-dark: #1f2933;
    --font-main: 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--color-background);
    color: var(--color-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

    .nav-links a {
        text-decoration: none;
        color: var(--color-dark);
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-links a:hover,
        .nav-links .cta {
            color: var(--color-primary);
        }

.hero {
    background: url('../img/hero-placeholder.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background: #195a68;
    }

.section {
    padding: 4rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

    .about-content img {
        max-width: 300px;
        border-radius: 8px;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.cta-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 100px;
    }

.footer {
    background: #eee;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.navbar nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch img {
    width: 24px;
    height: auto;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

    .lang-switch img:hover {
        transform: scale(1.1);
    }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 16px;
    border-bottom: 1px solid #ccc;
}

    .navbar nav {
        display: flex;
        gap: 20px;
    }

    .navbar a {
        text-decoration: none;
        color: #003366;
        font-weight: 500;
    }

/* bottone hamburger nascosto su desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
}

/* versione mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ccc;
        padding: 10px 0;
    }

        .navbar nav.open {
            display: flex;
        }

    .navbar a {
        padding: 10px;
        text-align: center;
    }
}
@media (max-width: 768px) {

    /* Imposta i link in colonna */
    .nav-links {
        flex-direction: column;
        width: 100%;
    }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            padding: 12px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }

    /* Quando il menu è aperto */
    .navbar nav.open {
        display: flex;
    }

    .navbar nav {
        flex-direction: column;
        align-items: stretch;
    }
}
