body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;

}

h1 {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

.map-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-header {
    padding: 10px;
    background-color: #007BFF;
    color: white;
    font-size: 1.2em;
}
.area-container {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2em;
    padding-top: 2em;
}

.area-image {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.area-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}

.details h1 {
    margin: 0;
    font-size: 2em;
    color: #eee;
}

.details h2 {
    margin: 10px 0;
    font-size: 1.5em;
    color: #555;
}

#footer a {
    margin: 10px 0;
    font-size: 1.5em;
    color: #555;
}

.details p {
    line-height: 1.6;
    color: #666;
}

.centrato {
    text-align: center;
}

.area-details h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.area-details p {
    margin: 0;
    color: #666;
}

/* Immagini dei contenuti in cerchi, disposte orizzontalmente */
.area-content-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

.area-content-images .content-image {
    width: 100px;
    height: 100px;
    margin: 10px;
    border-radius: 50%;
    overflow: hidden;
    /*  border: 2px solid #007BFF; */
}

.area-content-images .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toggle-description {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
    display: inline; /* Pulsante va a capo sotto il testo */
    text-align: left;
    margin-top: 5px;
}

.toggle-description:hover {
    text-decoration: none;
}
.area-image-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: .5em;
    display: inline-block;
}

.contents-container {
    display: flex;
    flex-wrap: wrap;
    margin-top:2em;
}

.inner-centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-align: center;
    flex-wrap: wrap;
}

.area-details p {
    margin-bottom: 15px;
    line-height: 1.5em;
    font-size: 1.1em;
}

.image-button {
    all: unset; /* Resetta tutti gli stili predefiniti */
    display: inline-block; /* Permette il posizionamento inline come un'immagine */
    cursor: pointer; /* Mostra il cursore "mano" quando si passa sopra il pulsante */
}

.centered {
    justify-content: center;
    align-items: center;
}

.detail-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.image-slider {
    flex: 1;
    max-width: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px; /* Altezza dello slider */
}

.image-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.search-container {
    margin: 20px;
    text-align: center;
}

#search-bar {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color:darkslategray;
}

ul.contents-container {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .area-content-images {
        justify-content: center;
    }

    .area-container {
        flex-direction: column;
    }

    .area-image {
        width: 100%;
        max-width: none;
    }

    .area-details {
        padding-left: 0;
        text-align: justify;
    }
    .area-content-images {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .toggle-description {
        display: block; /* Pulsante va a capo sotto il testo */
        text-align: center;
        margin: auto;
        padding:1em;
    }
    .area-details h3 {
        padding-top: 1em;
    }
    .detail-container {
        flex-direction: column;
    }

    .image-slider,
    .details {
        max-width: 100%;
    }

    .image-slider {
        height: 300px;
    }
}