/**
 * Popup promozionale — modulo ilmurrillopopup.
 * Overlay a schermo intero, nascosto finché popup.js non aggiunge .is-open.
 */
.ilmu-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .6);
    padding: 20px;
    /* centratura */
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.ilmu-popup-overlay.is-open {
    display: flex;
}

.ilmu-popup-box {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    animation: ilmu-popup-in .28s ease;
}

.ilmu-popup-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.ilmu-popup-link {
    display: inline-block;
    line-height: 0;
}

.ilmu-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #222;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    padding: 0;
    z-index: 1;
}

.ilmu-popup-close:hover {
    background: #37a437;
    color: #fff;
}

@keyframes ilmu-popup-in {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

@media (max-width: 480px) {
    .ilmu-popup-close {
        top: 4px;
        right: 4px;
    }
}
