body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    position: relative;
}

.logo {
    font-size: 24px;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.language-switcher, .menu-toggle {
    font-size: 24px;
    cursor: pointer;
    margin-left: 20px;
}

.flag {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 50%;
    margin-left: 30px;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background-color: #ccc;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    display: none; /* Nascondi il dropdown di default */
}

.dropdown.show {
    display: block; /* Mostra il dropdown quando ha la classe 'show' */
}

.dropdown-item {
    width: 24px;
    height: 24px;
    margin: 4px;
    cursor: pointer;
    border-radius: 50%;
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none;
        width: 80%;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0; /* Modificato per apparire a destra */
        border-radius: 5px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 10px;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: left;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        background-color: #444;
        border-radius: 5px;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .language-switcher {
        margin-left: 10px;
    }

    .hamburger {
        display: flex;
    }
}

.hero {
    background-image: url('../img/prato_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 32px;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero button {
    background-color: #353533;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    color: #ffffff;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero p {
    font-size: 20px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero * {
    position: relative;
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
}

.info-box {
    flex: 1;
    padding: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}