.e-n-carousel.selcom-popup-carousel,
.e-n-carousel.selcom-popup-carousel .swiper-wrapper {
    overflow: visible !important;
}

.e-n-carousel.selcom-popup-carousel .swiper-slide {
    z-index: 0 !important;
    overflow: visible !important;
}

.e-n-carousel.selcom-popup-carousel .swiper-slide:hover,
.e-n-carousel.selcom-popup-carousel .swiper-slide:hover > *:first-child,
.e-n-carousel.selcom-popup-carousel .swiper-slide:hover .elementor-element,
.e-n-carousel.selcom-popup-carousel .swiper-slide:hover .e-con,
.e-n-carousel.selcom-popup-carousel .accordation:hover,
.e-n-carousel.selcom-popup-carousel .accordation summary:hover,
.e-n-carousel.selcom-popup-carousel .accordation details:hover,
.e-n-carousel.selcom-popup-carousel .accordation details:hover > * {
    transform: none !important;
    filter: none !important;
}

.e-n-carousel.selcom-popup-carousel .accordation details:not([open]) > *:not(summary) {
    display: none !important;
}

.e-n-carousel.selcom-popup-carousel .accordation details:not([open]) {
    overflow: hidden !important;
}

.e-n-carousel.selcom-popup-carousel .accordation summary,
.e-n-carousel.selcom-popup-carousel .accordation summary * {
    cursor: pointer !important;
    pointer-events: auto !important;
}

body.selcom-carousel-popup-open {
    overflow: hidden !important;
}

.selcom-carousel-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}

.selcom-carousel-popup[hidden] {
    display: none !important;
}

.selcom-carousel-popup.is-active {
    pointer-events: auto;
}

.selcom-carousel-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(36, 58, 94, 0.12) 0%, rgba(17, 27, 44, 0.08) 32%, rgba(10, 18, 30, 0.68) 100%);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.selcom-carousel-popup.is-active .selcom-carousel-popup__backdrop {
    opacity: 1;
}

.selcom-carousel-popup.is-closing .selcom-carousel-popup__backdrop {
    opacity: 0;
    transition-duration: 0.18s;
}

.selcom-carousel-popup__stage {
    position: fixed;
    z-index: 2;
}

.selcom-popup-card {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 56px 60px 46px;
    border-radius: 30px;
    background-color: #0e1c30;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
    transform-origin: top left;
    transition:
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.selcom-popup-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 13, 24, 0.14) 0%, rgba(5, 13, 24, 0.36) 42%, rgba(5, 13, 24, 0.62) 100%),
        linear-gradient(90deg, rgba(10, 24, 45, 0.78) 0%, rgba(10, 24, 45, 0.28) 48%, rgba(10, 24, 45, 0.12) 100%);
    transition: opacity 0.22s ease;
}

.selcom-popup-card__inner {
    position: relative;
    z-index: 1;
    max-width: 530px;
}

.selcom-popup-card__inner > * {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.24s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.34s ease;
}

.selcom-popup-card--expanded .selcom-popup-card__inner > * {
    opacity: 1;
    transform: translateY(0);
}

.selcom-popup-card__close {
    position: absolute;
    top: 34px;
    right: 34px;
    z-index: 2;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c41414 url('https://row-prova.it/wp-content/uploads/2025/11/close.svg') center / 18px 18px no-repeat;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.selcom-popup-card__close:hover {
    background: #d71919;
    transform: scale(1.04);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.selcom-popup-card--closing .selcom-popup-card__close {
    opacity: 0;
    transform: scale(0.58);
    transition-duration: 0.2s;
}

.selcom-popup-card__close-x {
    display: none;
}

.selcom-popup-card__title {
    margin: 0 0 52px;
    color: #ffffff;
    font-family: "Nexa Bold", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 42px;
    max-width: 320px;
    transition:
        color 0.34s ease,
        opacity 0.24s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.selcom-popup-card--expanded .selcom-popup-card__title {
    color: #b3100d;
}

.selcom-popup-card__quote {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: "NexaLight", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 1.5px;
    transition-delay: 0.06s;
}

.selcom-popup-card__body {
    margin: 0 0 30px;
    color: #ffffff;
    font-family: "NexaLight", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    transition-delay: 0.1s;
}

.selcom-popup-card__list {
    display: grid;
    gap: 15px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    transition-delay: 0.14s;
}

.selcom-popup-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.selcom-popup-card__check {
    position: relative;
    width: 19px;
    min-width: 19px;
    height: 19px;
    margin-top: 3px;
}

.selcom-popup-card__check::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #ffffff;
    border-radius: 999px;
    opacity: 0.95;
}

.selcom-popup-card__check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 11px;
    border-right: 2px solid #b3100d;
    border-bottom: 2px solid #b3100d;
    transform: rotate(42deg);
}

.selcom-popup-card__list-text {
    display: block;
    padding: 0 0 0 5px;
    color: #ffffff;
    font-family: "NexaLight", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
}

.selcom-popup-card__focus {
    margin: 0;
    color: #ffffff;
    font-family: "NexaLight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 1.5px;
    max-width: 520px;
    transition-delay: 0.2s;
}

.selcom-popup-card--closing .selcom-popup-card__overlay {
    opacity: 0.08;
    transition-duration: 0.18s;
}

.selcom-popup-card--closing .selcom-popup-card__inner > * {
    opacity: 0;
    transform: translateY(-20px);
    transition-duration: 0.2s, 0.24s, 0.24s;
    transition-delay: 0s !important;
}

.selcom-popup-carousel .e-n-accordion-item-title.selcom-popup-summary-reveal {
    animation: selcomPopupSummaryReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes selcomPopupSummaryReveal {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .selcom-carousel-popup__stage {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        top: 12px !important;
    }

    .selcom-popup-card {
        min-height: auto;
        padding: 86px 24px 28px;
        border-radius: 24px;
    }

    .selcom-popup-card__inner {
        max-width: none;
    }

    .selcom-popup-card__close {
        top: 18px;
        right: 18px;
        width: 48px;
        height: 48px;
    }

    .selcom-popup-card__title {
        margin-bottom: 28px;
        font-size: 22px;
        line-height: 30px;
        max-width: 260px;
    }

    .selcom-popup-card__body,
    .selcom-popup-card__list-text {
        font-size: 16px;
        line-height: 24px;
    }

    .selcom-popup-card__close-x {
        font-size: 28px;
    }
}
