/* Astra Child / Fondazione Sozzani - Newsletter popup MailUp */

#colophon .footer-social-inner-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

#colophon .footer-social-inner-wrap #link-nl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin: 0 6px 0 0;
    padding: 4px;
    border: 0;
    background: transparent;
    text-decoration: none;
    vertical-align: middle;
    box-sizing: border-box;
}
#colophon #link-nl .mail-ico {
    display: block;
    width: 23px;
    height: 23px;
    max-width: none;
    object-fit: contain;
}
#colophon #link-nl:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

/* Overlay: il popup parte chiuso */
#popupnl[hidden] { display: none !important; }

#popupnl.popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    box-sizing: border-box;
}
#popupnl.popup.active {
    display: flex !important;
}
#popupnl .popup-content {
    position: relative;
    width: min(100%, 800px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    padding: 44px 40px 36px;
    box-sizing: border-box;
    box-shadow: 0 12px 45px rgba(0,0,0,.18);
}
#popupnl #close-pop {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}
#popupnl #close-pop:hover { background: #444; }

#popupnl #mpwp-container,
#popupnl #mupwp-form-content,
#popupnl #mupwp-form {
    max-width: 100%;
}
#popupnl #mupwp-form-title { text-align: center; }
#popupnl .mupwp-form-field input:not([type="checkbox"]) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
body.soz-newsletter-open { overflow: hidden; }

@media (max-width: 767px) {
    #popupnl.popup { padding: 12px; }
    #popupnl .popup-content {
        max-height: calc(100dvh - 24px);
        padding: 55px 18px 24px;
    }
    #popupnl #close-pop { top: 9px; right: 9px; }
}
