/******************************
    Galleria Immagini in partial view _Gallery
    ***********************************/


.my-thumb-nav {
    display: flex;
    gap: 12px;
    padding: 0;
    list-style: none;
}

    .my-thumb-nav li {
        flex: 1 1 0;
    }

    .my-thumb-nav .thumb-btn {
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
        width: 100%;
        height: 100%;
        border-radius: 6px;
        overflow: hidden;
        position: relative;
    }

        .my-thumb-nav .thumb-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .my-thumb-nav .thumb-btn::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            border: 2px solid transparent;
            background-color: transparent;
            transition: background-color 0.2s ease, border-color 0.2s ease;
            pointer-events: none;
        }

        .my-thumb-nav .thumb-btn:hover::after,
        .my-thumb-nav .thumb-btn:focus-visible::after {
            border-color: #0066CC;
            background-color: rgba(0, 102, 204, 0.18);
        }

        .my-thumb-nav .thumb-btn.active::after {
            border-color: #0066CC;
            background-color: rgba(0, 102, 204, 0.24);
        }
/* LIGHTBOX — NECESSARIO PER FUNZIONARE */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

    .lightbox.open {
        display: flex;
    }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: none;
    font-size: 28px;
    line-height: 28px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

    .lightbox-prev:hover,
    .lightbox-next:hover,
    .lightbox-prev:focus-visible,
    .lightbox-next:focus-visible {
        background: #ffffff;
        outline: 3px solid #185FA5;
    }
