/* =====================================================
   HERO HOME / HERO SLIDER
   ANS TV PLAY v0.6.1
   Copertine intere su desktop e smartphone
===================================================== */

.hero-home {
    position: relative;
    width: 100%;
    height: clamp(560px, 68vh, 760px);
    min-height: 0;
    overflow: hidden;
    display: block;
    background: #020812;
    isolation: isolate;
}

/* =====================================================
   CONTENITORE SLIDE
===================================================== */

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   IMMAGINI
   1) fondo pieno, sfocato;
   2) copertina intera, mai tagliata.
===================================================== */

.hero-background,
.hero-background-zoom {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-background {
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.48) saturate(1.12);
    transform: scale(1.10);
}

.hero-background-zoom {
    z-index: 1;
    inset: 18px 3.2% 20px;
    background-size: contain;
    background-position: center;
    filter: none;
    transform: scale(1);
    transition: transform 7s ease;
    will-change: transform;
}

.hero-slide.is-active .hero-background-zoom {
    transform: scale(1.015);
}

/* =====================================================
   OMBREGGIATURA
===================================================== */

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(2, 8, 18, 0.92) 0%,
            rgba(2, 8, 18, 0.70) 27%,
            rgba(2, 8, 18, 0.24) 55%,
            rgba(2, 8, 18, 0.08) 78%,
            rgba(2, 8, 18, 0.22) 100%
        ),
        linear-gradient(
            0deg,
            rgba(2, 8, 18, 0.98) 0%,
            rgba(2, 8, 18, 0.42) 30%,
            rgba(2, 8, 18, 0.04) 64%,
            rgba(2, 8, 18, 0.18) 100%
        );
}

/* =====================================================
   CONTENUTO
===================================================== */

.hero-container {
    position: relative;
    z-index: 5;
    width: min(92%, 1440px);
    margin: 0 auto;
    padding: 84px 0 82px;
}

.hero-content {
    width: min(570px, 100%);
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s ease 0.12s,
        transform 0.65s ease 0.12s;
}

.hero-slide.is-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   TESTI
===================================================== */

.hero-kicker {
    min-height: 30px;
    margin-bottom: 14px;
    padding: 6px 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(242, 201, 76, 0.48);
    border-radius: 999px;
    background: rgba(2, 8, 18, 0.55);
    color: #f2c94c;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-size: 12px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -1.6px;
    text-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 550px;
    margin: 20px 0 28px;
    color: #e9e9e9;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.45;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

/* =====================================================
   PULSANTI
===================================================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.btn-primary,
.btn-secondary {
    min-height: 52px;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary {
    gap: 9px;
    background: #f2c94c;
    color: #07111f;
    box-shadow: 0 12px 28px rgba(242, 201, 76, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px);
    background: #ffd95f;
    box-shadow: 0 16px 34px rgba(242, 201, 76, 0.34);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.50);
    background: rgba(7, 17, 31, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-3px);
    background: #fff;
    color: #07111f;
    border-color: #fff;
}

/* =====================================================
   FRECCE
===================================================== */

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(2, 8, 18, 0.58);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-50%);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.hero-arrow span {
    display: block;
    margin-top: -4px;
    font-size: 46px;
    line-height: 1;
    font-weight: 300;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    background: rgba(242, 201, 76, 0.95);
    color: #07111f;
    border-color: #f2c94c;
    transform: translateY(-50%) scale(1.07);
}

.hero-arrow-prev {
    left: 28px;
}

.hero-arrow-next {
    right: 28px;
}

/* =====================================================
   PUNTINI E TIMER
===================================================== */

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 27px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    cursor: pointer;
    transition:
        width 0.3s ease,
        border-radius 0.3s ease,
        background 0.3s ease;
}

.hero-dot.is-active {
    width: 31px;
    border-radius: 999px;
    background: #f2c94c;
}

.hero-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.hero-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: #f2c94c;
    transform-origin: left center;
}

.hero-slider.is-playing .hero-progress-bar {
    animation: heroProgress 7s linear forwards;
}

@keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {
    .hero-home {
        height: clamp(540px, 66vh, 690px);
    }

    .hero-background-zoom {
        inset: 14px 2.5% 18px;
    }

    .hero-container {
        padding-bottom: 78px;
    }

    .hero-arrow-prev {
        left: 18px;
    }

    .hero-arrow-next {
        right: 18px;
    }
}

/* =====================================================
   SMARTPHONE
   La copertina viene mostrata a larghezza naturale,
   allineata in alto: niente fascia vuota iniziale.
===================================================== */

@media (max-width: 900px) {
    .hero-home {
        height: min(650px, calc(100svh - 72px));
        min-height: 570px;
        max-height: 650px;
    }

    .hero-background {
        inset: -7%;
        filter: blur(25px) brightness(.38) saturate(1.05);
    }

    .hero-background-zoom {
        inset: 0;
        background-size: 100% auto;
        background-position: center top;
        transform: none !important;
    }

    .hero-shade {
        background:
            linear-gradient(0deg,
                rgba(2,8,18,.99) 0%,
                rgba(2,8,18,.86) 30%,
                rgba(2,8,18,.32) 59%,
                rgba(2,8,18,.08) 100%);
    }

    .hero-container {
        width: 90%;
        padding: 0 0 72px;
    }

    .hero-content {
        width: 100%;
        padding: 17px 16px 15px;
        border-radius: 18px;
        background: rgba(2,8,18,.46);
        backdrop-filter: blur(11px);
        -webkit-backdrop-filter: blur(11px);
    }

    .hero-content h1 {
        font-size: clamp(35px, 8.5vw, 49px);
    }

    .hero-content p {
        margin: 13px 0 19px;
        font-size: 16px;
    }

    .hero-arrow {
        width: 41px;
        height: 41px;
    }

    .hero-arrow-prev { left: 13px; }
    .hero-arrow-next { right: 13px; }

    .hero-dots {
        bottom: 21px;
    }
}

@media (max-width: 600px) {
    .hero-home {
        height: min(620px, calc(100svh - 72px));
        min-height: 550px;
        max-height: 620px;
    }

    .hero-container {
        width: 88%;
        padding-bottom: 64px;
    }

    .hero-content {
        padding: 14px 13px 12px;
        border-radius: 16px;
        background: rgba(2,8,18,.50);
    }

    .hero-kicker {
        min-height: 26px;
        margin-bottom: 9px;
        padding: 5px 11px;
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: clamp(32px, 9.8vw, 41px);
    }

    .hero-content p {
        margin: 11px 0 16px;
        font-size: 15px;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-height: 45px;
        padding: 11px 15px;
        font-size: 14px;
    }

    .hero-arrow {
        top: 45%;
        width: 38px;
        height: 38px;
    }

    .hero-arrow span {
        font-size: 36px;
    }

    .hero-dots {
        bottom: 18px;
        max-width: 58%;
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .hero-home {
        height: 580px;
        min-height: 580px;
    }

    .hero-container {
        width: 86%;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}

.hero-arrow:focus-visible,
.hero-dot:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid rgba(242,201,76,.9);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-content,
    .hero-background-zoom,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }

    .hero-slider.is-playing .hero-progress-bar {
        animation: none;
        width: 100%;
    }
}


/* =====================================================
   v0.7.1 — DESKTOP RIPRISTINATO
===================================================== */

@media (min-width: 901px) {
    .hero-home {
        width: 100%;
        max-width: none;
    }

    .hero-background {
        inset: 0;
        background-size: cover;
        background-position: center;
        filter: none;
        transform: none;
    }

    .hero-background-zoom {
        display: none;
    }

    .hero-container {
        width: min(92%, 1440px);
    }

    .hero-content {
        width: min(570px, 100%);
    }
}
