/* ─── OTT Mega Menu ──────────────────────────────────────────────────────── */

/* Sub-menu standard nascosto su desktop per le voci OTT */
@media (min-width: 1200px) {
    .has-ott-mega-menu > .sub-menu {
        display: none !important;
    }
}

/* Pannello OTT nascosto di default.
   L'apertura/chiusura è gestita via JS (mouseenter/mouseleave)
   per evitare il problema del gap tra il <li> e il pannello fixed. */
.ott-mega-menu {
    display: none;
    position: fixed;
    left: 2vw;
    width: 96vw;
    z-index: 9999;
    /* padding-top crea una zona calda invisibile sopra il contenuto
       che il mouse attraversa senza perdere il focus. */
    padding-top: 12px;
}

/* Sempre nascosto su mobile — override del display inline impostato da JS */
@media (max-width: 1199px) {
    .ott-mega-menu {
        display: none !important;
    }
}

/* Pannello interno */
.ott-mega-menu__inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

/* Card */
.ott-mega-menu__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex: 1 1 0;
    text-decoration: none !important;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ott-mega-menu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.ott-mega-menu__img-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #111;
    line-height: 0;
}

.ott-mega-menu__img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ott-mega-menu__card:hover .ott-mega-menu__img-wrap img {
    transform: scale(1.04);
}

.ott-mega-menu__label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.03em;
    padding: 4px 8px 12px;
    transition: color 0.2s ease;
    display: block;
}

.ott-mega-menu__card:hover .ott-mega-menu__label {
    color: var(--bs-warning, #f5a623);
}
