/* =====================================================
   SEZIONE PROGRAMMI
===================================================== */

.programs-section {
    position: relative;
    padding: 75px 0 95px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(29, 78, 216, 0.12),
            transparent 40%
        ),
        #020812;
}

.programs-container {
    width: min(92%, var(--container-width));
    margin-inline: auto;
}

/* =====================================================
   INTESTAZIONE SEZIONE
===================================================== */

.section-heading {
    margin-bottom: 30px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-kicker {
    display: block;
    margin-bottom: 6px;

    color: var(--color-gold);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;

    color: var(--color-white);

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--color-text);

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    transition:
        color var(--transition),
        transform var(--transition);
}

.section-link:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

/* =====================================================
   GRIGLIA PROGRAMMI
===================================================== */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* =====================================================
   CARD PROGRAMMI
===================================================== */

.program-card {
    position: relative;

    min-height: 390px;

    overflow: hidden;

    display: flex;
    align-items: flex-end;

    color: var(--color-white);
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    isolation: isolate;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.program-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            135deg,
            rgba(29, 78, 216, 0.18),
            rgba(2, 8, 18, 0.08)
        );

    pointer-events: none;
}

.program-card:hover {
    transform: translateY(-9px) scale(1.015);

    border-color: rgba(212, 175, 55, 0.55);

    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.5);
}

.program-card-cover {
    position: absolute;
    inset: 0;

    z-index: 1;
}

.program-card-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.99) 0%,
            rgba(2, 8, 18, 0.92) 30%,
            rgba(2, 8, 18, 0.25) 66%,
            rgba(2, 8, 18, 0.05) 100%
        );
}

.program-card-content {
    position: relative;
    z-index: 3;

    width: 100%;
    padding: 24px;

    border-top: 1px solid rgba(212, 175, 55, 0.25);

    background:
        linear-gradient(
            180deg,
            rgba(8, 18, 34, 0.22),
            rgba(8, 18, 34, 0.82)
        );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transform: translateY(2px);

    transition: transform 0.35s ease;
}

.program-card:hover .program-card-content {
    transform: translateY(-3px);
}

.program-category {
    display: inline-block;
    margin-bottom: 7px;

    color: var(--color-gold);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.program-card h3 {
    margin: 0;

    color: var(--color-white);

    font-size: 24px;
    line-height: 1.15;
}

.program-meta {
    margin: 8px 0 20px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;
    line-height: 1.4;
}

/* =====================================================
   PULSANTI CARD
===================================================== */

.program-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.program-watch-button,
.program-list-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 15px;

    border-radius: 999px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.program-watch-button {
    color: #07111f;
    text-decoration: none;

    border: 1px solid var(--color-gold);

    background: var(--color-gold);

    box-shadow:
        0 8px 24px rgba(212, 175, 55, 0.2);
}

.program-watch-button:hover {
    color: #07111f;

    transform: translateY(-2px);

    background: #ffffff;
    border-color: #ffffff;

    box-shadow:
        0 12px 30px rgba(255, 255, 255, 0.18);
}

.program-list-button {
    color: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.3);

    background: transparent;

    box-shadow: none;
}

.program-list-button:hover {
    color: var(--color-gold);

    transform: translateY(-2px);

    border-color: var(--color-gold);

    background: transparent;

    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.18);
}

.program-watch-button:focus-visible,
.program-list-button:focus-visible,
.program-card-cover:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* =====================================================
   COPERTINE PROGRAMMI
===================================================== */

.program-prossima-domanda {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/prossima-domanda.png");
}

.program-anime-carta {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/anime-di-carta.png");
}

.program-politicamente-corretto {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/politicamente-corretto.png");
}

.program-tg {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/tm-notizie.png");
}

.program-volley {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/volley.jpg");
}

.program-inchiaro {
    background-image:
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.72) 0%,
            rgba(2, 8, 18, 0.06) 70%
        ),
        url("../images/inchiaro.png");
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1150px) {

    .program-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .program-watch-button,
    .program-list-button {
        width: 100%;
    }

}

@media (max-width: 1050px) {

    .programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 650px) {

    .programs-section {
        padding: 55px 0 70px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .programs-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .program-card {
        min-height: 370px;
    }

    .program-card-content {
        padding: 21px;
    }

    .program-card h3 {
        font-size: 22px;
    }

    .section-link {
        font-size: 13px;
    }

    .program-actions {
        flex-direction: column;
    }

    .program-watch-button,
    .program-list-button {
        width: 100%;
    }

}
/* =====================================================
   RIFLESSO LUMINOSO CARD
===================================================== */

.program-card::after {

    content: "";

    position: absolute;

    top: -120%;
    left: -65%;

    width: 45%;
    height: 320%;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.05) 35%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,.05) 65%,
        transparent 100%
    );

    transform: rotate(25deg) translateX(-250%);

    transition: transform .8s ease;

    pointer-events: none;

    z-index: 2;

}

.program-card:hover::after {

    transform: rotate(25deg) translateX(520%);

}