/* Scheda Tecnica Styles */

#scheda_hero {
    position: relative;
}

#bannerSchedaTecnica {
    position: relative;
}

#bannerSchedaTecnica .full-width-height {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 800px;
    margin: 0 auto;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

#bannerSchedaTecnica img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#bannerSchedaTecnica .overlay {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

#scheda_content_background {
    padding-top: 50px;
    padding-bottom: 100px;
    background: transparent linear-gradient(180deg, #FAFAFA 0%, #EAEAEA 100%) 0% 0% no-repeat padding-box;
}

.scheda-header {
    margin-bottom: 30px;
}

.scheda-categoria {
    letter-spacing: 0.3px;
    color: var(--app-color-brand);
    text-transform: uppercase;
    font-size: 28px;
    margin-bottom: 65px;
}

.scheda-categoria-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.scheda-categoria-link:hover .scheda-categoria,
.scheda-categoria-link:focus .scheda-categoria {
    color: var(--app-color-brand);
    text-decoration: none;
}

.scheda-categoria-link:active .scheda-categoria {
    color: var(--app-color-brand);
}

.scheda-titolo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap-reverse;
}

.scheda-titolo {
    font-family: "Figtree", sans-serif;
    color: var(--app-color-arancio-3);
    font-weight: 800;
    font-size: 68px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.sezione h1 {
    /* line-height: 1; */
    margin-top: 0px;
}

.scheda-nav {
    display: flex;
    gap: 20px;
}

#schedaNavButtons .arrow-button {
    min-width: unset;
    width: 56px;
    height: 56px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#schedaNavButtons .arrow-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

#schedaNavButtons .arrow-button:hover img {
    opacity: 0;
}

#schedaNavButtons .arrow-button:hover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowSx_OrangeColor_Hover.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

#schedaNavButtons .arrow-button.arrow-right:hover::before {
    background-image: url("../../img/svg/ArrowDx_OrangeColor_Hover.svg");
}

#schedaNavButtons .arrow-button:active img {
    opacity: 0;
}

#schedaNavButtons .arrow-button:active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowSx_OrangeColor_Active.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

#schedaNavButtons .arrow-button.arrow-right:active::after {
    background-image: url("../../img/svg/ArrowDx_OrangeColor_Active.svg");
}

#schedaNavButtons .arrow-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.scheda-localita {
    font-family: "Figtree", sans-serif;
    color: var(--app-color-dark-7);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1;
    margin-top: 8px;
}

.sezione h3 {
    margin-top: 8px;
}

.divisore__arancio-full {
    width: 100%;
    height: 2px;
    background-color: var(--app-color-arancio-3);
    margin: 0 0 0 0;
}

.scheda-descrizione-titolo {
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.75rem;
    margin-bottom: 0px;
}

.scheda-descrizione-testo p {
    color: #5f6a6f;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Card Styles */
.scheda-card-container {
    margin-top: 104px;
}

.scheda-card {
    background: var(--app-color-light) 0% 0% no-repeat padding-box;
    border: 4px solid var(--app-color-arancio-3);
    border-radius: 0px 80px 80px 80px;
    padding: 112px;
}

.scheda-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.scheda-card-col {
    /* flex: 1; removed */
    min-width: 150px;
}

.scheda-card-col.full-width {
    grid-column: 1 / -1;
}

.scheda-card-col label {
    display: block;
    font-size: 16px !important;
    letter-spacing: 0px;
    color: var(--app-color-arancio-3);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 700;
}

.scheda-card-col span {
    display: block;
    font-size: 28px;
    color: var(--app-color-dark-7);
    letter-spacing: 0px;
    text-transform: uppercase;
    font-weight: 700;
}

.scheda-card-divider {
    width: 100%;
    height: 2px;
    background-color: #FF6600;
    margin: 42px 0 20px 0;
}

.stato-opera {
    color: #555;
    /* Or specific color for status */
}

.scheda-card-description {
    margin-top: 42px;
    font-size: 26px;
    color: #5F6A6F;
}

/* Responsive */
@media only screen and (min-width: 501px) and (max-width: 993px) {
    .sezione h1 {
        font-size: 58px !important;
    }

    .scheda-localita {
        font-size: 28px !important;
    }

    .scheda-categoria {
        font-size: 20px !important;
    }

    .scheda-descrizione-titolo {
        font-size: 20px !important;
    }

    .scheda-card {
        padding: 64px;
    }

    .scheda-card-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scheda-card-col span {
        font-size: 20px !important;
    }

    .scheda-card-col label {
        font-size: 14px !important;
    }


}



@media (max-width: 500px) {
    .sezione h1 {
        font-size: 40px !important;
    }

    .scheda-localita {
        font-size: 32px !important;
    }


    .scheda-descrizione-titolo {
        font-size: 20px !important;
    }

    #bannerSchedaTecnica .full-width-height {
        height: 500px;
    }

    .scheda-card {
        padding: 32px;
        padding-top: 64px;
        padding-bottom: 50px;
    }

    .scheda-card-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scheda-card-col span {
        font-size: 20px !important;
    }

    .scheda-categoria {
        font-size: 20px !important;
    }

    p {
        font-size: 16px !important;
    }
}

/* Gallery Styles */
.scheda-gallery-container {
    margin-top: 112px;
}

.scheda-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scheda-gallery-item {
    cursor: pointer;
}

.scheda-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

/* Lightbox Styles */
.scheda-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheda-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.scheda-lightbox-media-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheda-lightbox-media-container img,
.scheda-lightbox-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.scheda-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: unset;
    width: 56px;
    height: 56px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheda-lightbox-close img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.scheda-lightbox-close:hover img {
    opacity: 0;
}

.scheda-lightbox-close:hover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/Close_OrangeColor_Hover.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.scheda-lightbox-close:active img {
    opacity: 0;
}

.scheda-lightbox-close:active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/Close_OrangeColor_Active.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.scheda-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    min-width: unset;
    width: 56px;
    height: 56px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheda-lightbox-nav.arrow-left {
    left: 20px;
}

.scheda-lightbox-nav.arrow-right {
    right: 20px;
}

.scheda-lightbox-nav img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.scheda-lightbox-nav:hover img {
    opacity: 0;
}

.scheda-lightbox-nav.arrow-left:hover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowSx_OrangeColor_Hover.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.scheda-lightbox-nav.arrow-right:hover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowDx_OrangeColor_Hover.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.scheda-lightbox-nav:active img {
    opacity: 0;
}

.scheda-lightbox-nav.arrow-left:active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowSx_OrangeColor_Active.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.scheda-lightbox-nav.arrow-right:active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../../img/svg/ArrowDx_OrangeColor_Active.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.scheda-lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 600px) {
    .scheda-lightbox-container {
        padding: 60px 20px;
    }

    .scheda-lightbox-close {
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
    }

    .scheda-lightbox-nav {
        width: 48px;
        height: 48px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .scheda-lightbox-nav.arrow-left {
        left: 20px;
        right: auto;
    }

    .scheda-lightbox-nav.arrow-right {
        right: 20px;
        left: auto;
    }
}

@media (max-width: 993px) {
    .scheda-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .scheda-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Styles */
/* .scheda-video-container removed as it is now part of gallery container */

.scheda-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    /* Gap between gallery and video */
}

.scheda-video-item {
    cursor: pointer;
    position: relative;
}

.scheda-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    pointer-events: none;
}

@media (max-width: 600px) {
    .scheda-video-grid {
        grid-template-columns: 1fr;
    }
}