/*POP UP CSS*/
:is(.gruppo-pop-up[id^="pop-up-"], .pop-up[id^="pop-up-"]) {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-y: auto;
    padding: 3rem 1rem;
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

:is(.gruppo-pop-up[id^="pop-up-"], .pop-up[id^="pop-up-"]).is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bencon-popup-fade-in 0.25s ease-out;
}

:is(.gruppo-pop-up[id^="pop-up-"], .pop-up[id^="pop-up-"]) > * {
    width: min(920px, 100%);
    height: fit-content;
    max-height: calc(100vh - 6rem);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(40px);
    opacity: 0;
    animation: bencon-popup-content-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    position: relative;
    overflow-y: auto;
}

:is(.gruppo-pop-up[id^="pop-up-"], .pop-up[id^="pop-up-"]).is-closing {
    animation: bencon-popup-fade-out 0.2s ease-in forwards;
}

:is(.gruppo-pop-up[id^="pop-up-"], .pop-up[id^="pop-up-"]).is-closing > * {
    animation: bencon-popup-content-out 0.2s ease-in forwards;
}

:is(.open-pop-up, .pop-up[id^="open-"]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

:is(.open-pop-up, .pop-up[id^="open-"])::after {
    content: "\F4F9";
    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: 400;
    font-size: 1.5em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    color: var(--giallo);
    margin-left: 15px;
}
.pop-up .wp-block-group__inner-container {
    padding: 25px;
    border: 3px solid var(--color-primary);
}
.pop-up ul, .pop-up ol {
    padding-left: 1.25rem;
}
:is(.open-pop-up, .pop-up[id^="open-"]):hover {
    cursor: pointer;
}
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #fff;
    background-color: var(--giallo);
    cursor: pointer;
    font-size: 20px;
    line-height: 0;
    text-align: center;
    transition: background 0.2s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

body.popup-open {
    overflow: hidden;
}

.multi_tab .wp-block-column {
   display: flex;
   border-bottom: 1px solid #ddd;
}
.multi_tab .wp-block-column .wp-block-heading{
   display: flex;
   width: 100%;
   justify-content: space-between;
}

@keyframes bencon-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bencon-popup-content-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bencon-popup-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes bencon-popup-content-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

@media (max-width: 600px) {
   .pop-up .wp-block-group__inner-container {
    padding: 12px;
    }
    .container_heading_popup .wp-block-heading {
        display: flex;
        justify-content: space-between;
    }
    .popup-close {
        width: 21px;
        height: 21px;
        font-size: 14px;
    }
}