/* =====================================================
   HOMEPAGE HERO VIDEO
   ===================================================== */

.jc-hero-video-wrapper {
    position: relative;
    width: 100%;
    /* Altezza hero — occupa tutta la viewport */
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #111;
}

/* Video a pieno schermo */
.jc-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Overlay gradiente — rende leggibile il testo sopra */
.jc-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.6)  100%
    );
    pointer-events: none;
}

/* Bottone audio */
.jc-hero-audio-btn {
    position: absolute;
    bottom: 28px;
    right: 28px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: #fff;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    z-index: 10;
}
.jc-hero-audio-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.04);
}

.jc-audio-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Se vuoi aggiungere testo sopra il video,
   posizionalo con position:absolute e z-index:5 */
.jc-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 5;
    color: #fff;
}
.jc-hero-content h1 {
    font-size: clamp(28px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.jc-hero-content p {
    font-size: clamp(15px, 2vw, 20px);
    opacity: .9;
    max-width: 600px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* Mobile */
@media (max-width: 600px) {
    .jc-hero-video-wrapper {
        height: 100svh; /* Safe viewport height su mobile */
    }
    .jc-hero-audio-btn {
        bottom: 20px;
        right: 16px;
        padding: 9px 14px;
        font-size: 12px;
    }
}
