/* ==========================================================================
   HERO TEMPLATE: MINIMALISTA IMERSIVO (CINEMATIC MEDIA)
   Foco 100% no vídeo ou imagem de fundo fornecida pelo utilizador, sem cartazes laterais.
   ========================================================================== */

.hero-cinematic-section {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0b1120;
    margin: 0;
    padding: 0;
}

/* Camada de Mídia de Fundo */
.hero-cinematic-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Imagem de Fundo Fullscreen */
.hero-cinematic-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

/* Vídeo de Fundo Fullscreen */
.hero-cinematic-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Camada de Escurecimento & Contraste (Overlay) */
.hero-cinematic-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, calc(var(--cinematic-overlay-opacity, 0.65) * 0.75)) 0%,
        rgba(15, 23, 42, var(--cinematic-overlay-opacity, 0.65)) 50%,
        rgba(15, 23, 42, calc(var(--cinematic-overlay-opacity, 0.65) * 1.15)) 100%
    );
}

/* Transição Suave na Base para a Secção Seguinte */
.hero-cinematic-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.95) 100%);
    pointer-events: none;
}

/* Contentor Central */
.hero-cinematic-container {
    position: relative;
    z-index: 5;
    padding-top: 100px;
    padding-bottom: 70px;
}

.hero-cinematic-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badges / Metadados no Topo */
.hero-cinematic-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-cinematic-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.01em;
}

/* Título Principal */
.hero-cinematic-title {
    font-family: inherit;
    font-size: clamp(2.25rem, 4.5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

/* Lead / Slogan Resumo */
.hero-cinematic-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 740px;
    margin: 0 auto 32px auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Contagem Decrescente Minimalista */
.hero-cinematic-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 12px 28px;
    margin-bottom: 34px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cinematic-count-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.cinematic-count-num {
    font-family: inherit;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.cinematic-count-lbl {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.cinematic-count-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    margin-top: -8px;
}

/* Grupo de Ações / Botões */
.hero-cinematic-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-cinematic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--btn-radius, 12px) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-cinematic-btn-primary {
    background-color: var(--cinematic-accent, var(--colors-primary, #0284c7)) !important;
    color: #ffffff !important;
    border: 1px solid var(--cinematic-accent, var(--colors-primary, #0284c7)) !important;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--cinematic-accent, var(--colors-primary, #0284c7)) 40%, transparent);
}

.hero-cinematic-btn-primary:hover,
.hero-cinematic-btn-primary:focus {
    background-color: color-mix(in srgb, var(--cinematic-accent, var(--colors-primary, #0284c7)) 85%, black) !important;
    border-color: color-mix(in srgb, var(--cinematic-accent, var(--colors-primary, #0284c7)) 85%, black) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 22px color-mix(in srgb, var(--cinematic-accent, var(--colors-primary, #0284c7)) 50%, transparent);
}

.hero-cinematic-btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-cinematic-btn-secondary:hover,
.hero-cinematic-btn-secondary:focus {
    background-color: color-mix(in srgb, var(--cinematic-accent, var(--colors-primary, #0284c7)) 25%, rgba(255, 255, 255, 0.12)) !important;
    border-color: var(--cinematic-accent, var(--colors-primary, #0284c7)) !important;
    color: #ffffff !important;
}

/* Indicador de Deslizar */
.hero-cinematic-scroll-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.hero-cinematic-scroll-hint:hover {
    opacity: 1;
}

.cinematic-mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    position: relative;
    display: inline-block;
}

.cinematic-mouse-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 2px;
    transform: translateX(-50%);
}

/* ==========================================================================
   RESPONSIVIDADE (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-cinematic-section {
        min-height: 75vh;
    }
    
    .hero-cinematic-container {
        padding-top: 80px;
        padding-bottom: 50px;
    }
    
    .hero-cinematic-title {
        font-size: 2.35rem;
    }
    
    .hero-cinematic-countdown {
        gap: 12px;
        padding: 10px 20px;
    }
    
    .cinematic-count-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-cinematic-section {
        min-height: 70vh;
    }
    
    .hero-cinematic-container {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .hero-cinematic-title {
        font-size: 1.85rem;
        line-height: 1.22;
    }
    
    .hero-cinematic-lead {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-cinematic-pill {
        font-size: 11.5px;
        padding: 5px 12px;
    }
    
    .hero-cinematic-countdown {
        gap: 8px;
        padding: 8px 14px;
        border-radius: 14px;
        width: 100%;
        max-width: 310px;
        justify-content: space-around;
    }
    
    .cinematic-count-unit {
        min-width: 38px;
    }
    
    .cinematic-count-num {
        font-size: 1.3rem;
    }
    
    .cinematic-count-lbl {
        font-size: 9px;
    }
    
    .hero-cinematic-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero-cinematic-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
}

/* Offset e rolagem suave para as secções da Home ao clicar nos botões da Hero */
html {
    scroll-behavior: smooth;
}

#schedule, #speakers, #evento, #variantes, #sponsors, #brands, #faq, #recursos, #mapa {
    scroll-margin-top: 80px;
}

