.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Sfondo trasparente inizialmente */
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: background-color 0.3s ease-in-out;
}

/* Lightbox visibile con sfondo scuro */
.lightbox.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Contenitore immagini e testo */
.lightbox-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    text-align: left;
    gap: 20px;
    height:75%;
}

hr {
    height: 2px;       
    background-color: #fff;
    border: 2px solid #fff;
  }

/* Testo */
.lightbox-info {
    color: white;
    max-width: 400px;
    text-align:justify;
    height:100%;
    overflow:auto;
    padding-right:15px;
}

#lightbox-title {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    text-align:center;
    color:#fff;
}

#lightbox-description {
    font-size: 18px;
    color: #ddd;
    overflow:auto;
}

/* Immagine */
.lightbox img {
    max-width: 500px;
    max-height: 80vh;
    border-radius: 10px;
}

/* Pulsanti di navigazione (frecce) */
.nav-arrow {
    position: absolute;
    top: 50%;
    width: 50px;
    height: auto;
    cursor: pointer;
    transform: translateY(-50%);
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-arrow:hover {
    opacity: 1;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Chiudi */
.close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* Responsive per dispositivi mobili */
@media screen and (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        text-align: center;
        max-width: 95%;
    }

    .lightbox img {
        max-width: 90vw;
        max-height: 60vh;
    }

    .lightbox-info {
        max-width: 90%;
    }

    #lightbox-title {
        font-size: 18px;
    }

    #lightbox-description {
        font-size: 16px;
    }

    /* Ridimensiona le frecce su mobile */
    .nav-arrow {
        width: 40px;
    }
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
}
.filter-sidebar.show {
    right: 0;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}