* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Sticky */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
   
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo img {
    height: 100px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #0077cc;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('images/hero.jpg') center/cover no-repeat;
    color: #fff;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background: #0077cc;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #005fa3;
}

/* Footer */
.site-footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Footer Menu */
#footer-menu {
    text-align: center;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.footer-menu-list::-webkit-scrollbar {
    display: none;
}

.footer-menu-list ul a {
    color: #228b22;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-menu-list ul a:hover {
    color: #fff;
}



/* RIMOSSA la versione verticale nel media query */



.footer-menu-link {
    color:#fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-menu-link:hover {
    color: #fff;
}

/* Footer Language Switcher */
#footer-language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

#footer-language-switcher img {
    width: 24px;
    height: auto;
    cursor: pointer;
}

/* Responsive */
/* --- Menu Mobile con effetto tendina --- */
@media (max-width: 768px) {
    .main-nav {
        max-height: 0;            /* Altezza iniziale chiusa */
        overflow: hidden;         /* Nasconde il contenuto */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
        transition: max-height 0.4s ease;
    }

    /* Quando è aperto */
    .main-nav.open {
        max-height: 400px; /* Altezza sufficiente per tutto il menu */
    }

    .main-nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .main-nav a {
        padding: 10px 0;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 28px;
    }
    
    .footer-menu-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Bandiere nel menu mobile */
    .language-switcher {
        justify-content: center;
        padding: 10px 0 0;
        border-top: 1px solid #eee;
    }
}
