/* ============================================================
   GG × LOIMA POPUP
   ============================================================ */

.gg-loima-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.gg-loima-popup.active {
    opacity: 1;
}

/* overlay — blocca il background, nessuna manina */
.gg-loima-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    cursor: default;
}

.gg-loima-popup.active .gg-loima-popup__overlay {
    pointer-events: auto;
}

/* box — non intercetta nulla, lascia passare gli eventi */
.gg-loima-popup__box {
    position: relative;
    width: 680px;
    max-width: 94vw;
    height: 300px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* video — non interattivo */
.gg-loima-popup__box video.gg-loima-popup__video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    object-fit: cover !important;
    z-index: 0;
    pointer-events: none;
}

/* "oppure chiudi" */
.gg-loima-popup__close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    pointer-events: none;
    cursor: pointer;
    transition: color 0.2s;
}

.gg-loima-popup.active .gg-loima-popup__close {
    pointer-events: auto;
}

.gg-loima-popup__close:hover {
    color: #fff;
}

/* pannelli — tutto non interattivo */
.gg-loima-popup__panels,
.gg-loima-popup__panel-sx,
.gg-loima-popup__panel-dx,
.gg-loima-popup__gg-logo,
.gg-loima-popup__loima-logo,
.gg-loima-popup__entra {
    pointer-events: none;
}

.gg-loima-popup__panels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.gg-loima-popup__panel-sx {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, 0.46);
}

.gg-loima-popup__panel-dx {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 18, 32, 0.82);
}

.gg-loima-popup__entra {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.gg-loima-popup__gg-logo {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.gg-loima-popup__loima-logo {
    height: 35px;
    width: auto;
    display: block;
}

/* pulsante */
.gg-loima-popup__cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    cursor: pointer;
}

.gg-loima-popup.active .gg-loima-popup__cta {
    pointer-events: auto;
}

.gg-loima-popup__cta .btn.btn--white {
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.40);
}

.gg-loima-popup__cta .btn.btn--white:hover {
    box-shadow: none !important;
}

/* mobile — layout verticale */
@media (max-width: 600px) {
    .gg-loima-popup__box {
        width: 78vw;
        height: 62vh;
        max-height: 440px;
    }

    /* pannelli impilati verticalmente, ciascuno esattamente 50% */
    .gg-loima-popup__panels {
        flex-direction: column;
    }

    .gg-loima-popup__panel-sx,
    .gg-loima-popup__panel-dx {
        flex: 1 1 0%;
        min-height: 0;
    }

    /* il pulsante copre la parte bassa del pannello dx:
       spostiamo il logo Loima leggermente verso l'alto con transform */
    .gg-loima-popup__loima-logo {
        height: 26px;
        transform: translateY(-13px);
    }

    .gg-loima-popup__gg-logo {
        height: 20px;
    }

    /* "entra in" più grande sul mobile */
    .gg-loima-popup__entra {
        font-size: 15px;
    }

    .gg-loima-popup__cta {
        bottom: 20px;
    }
}
