#elementor-popup-modal-842:not([open]) {
    display: none;
}

#elementor-popup-modal-842[open] {
    position: fixed;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

#elementor-popup-modal-842::backdrop {
    background: transparent;
}

html:has(#elementor-popup-modal-842[open]) {
    overflow: hidden;
}

#elementor-popup-modal-842 .dialog-widget-content {
    position: relative;
    max-width: 100%;
}

#elementor-popup-modal-842 .dialog-message {
    max-width: 100vw;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#elementor-popup-modal-842 .dialog-close-button {
    position: absolute;
    z-index: 2;
    padding: 0;
    border: 0;
    background: #00445c;
    color: #fff;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

#elementor-popup-modal-842[open]:where(:not([data-spring-menu-posizione])) .dialog-widget-content {
    animation: slideInLeft 1s ease both;
}

#elementor-popup-modal-842[data-chiusura] .dialog-widget-content {
    animation: mulino-chiudi-menu 1s ease both;
}

#elementor-popup-modal-842[data-chiusura] {
    animation: mulino-chiudi-overlay 1s ease both;
}

@keyframes mulino-chiudi-overlay {
    to { background-color: transparent; }
}

@keyframes mulino-chiudi-menu {
    to { transform: translate3d(-100%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    #elementor-popup-modal-842[data-chiusura],
    #elementor-popup-modal-842[open] .dialog-widget-content {
        animation: none;
    }
}

#elementor-popup-modal-842 .elementor-nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#elementor-popup-modal-842 .menu-lingue {
    margin-block-start: 20px;
    color: #fffaf5;
    font: 600 16px/1.1 "roc-grotesk", sans-serif;
}

.menu-lingue ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-lingue li {
    display: flex;
    align-items: center;
}

.menu-lingue li + li::before {
    content: "";
    height: 1em;
    border-inline-start: 1px solid currentColor;
}

.menu-lingue a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 13px;
    color: inherit;
    text-decoration: none;
}

.menu-lingue li:first-child a {
    padding-inline-start: 0;
}

.menu-lingue a:hover,
.menu-lingue a:focus-visible {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 767px) {
    #elementor-popup-modal-842 .menu-lingue {
        margin-block-start: 24px;
        font-size: 18px;
    }
}

#elementor-popup-modal-842 .elementor-nav-menu .elementor-item-active:not(:hover):not(:focus-visible) {
    color: #7198a6;
}

/* La fascia di chiusura resta leggibile quando si scorre il menu mobile. */
@media (max-width:767px) {
    #elementor-popup-modal-842 .dialog-widget-content::before {
        content:"";
        position:absolute;
        inset:0 0 auto;
        height:78px;
        background:#00445c;
        z-index:1;
        pointer-events:none;
    }
}
