/* ================= BASE ================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #001C48;
    color: whitesmoke;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(246, 218, 22, 0.06), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(125, 49, 34, 0.18), transparent 45%);
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ---------- CABEÇALHO ---------- */
.cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 48px clamp(20px, 6vw, 72px) 28px;
    border-bottom: 1px solid rgba(246, 218, 22, .12);
    flex-wrap: wrap;
}

.cabecalho-marca {
    display: block;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #CE9B02;
    margin-bottom: 10px;
}

.cabecalho h1 {
    margin: 0;
    font-family: "Yantramanav", sans-serif;
    font-weight: 200;
    font-variant: small-caps;
    letter-spacing: 0.01em;
    line-height: 1.05;
    font-size: clamp(28px, 4.4vw, 46px);
    opacity: 0.95;
}

.botao-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;

    padding: 12px 28px;
    border: none;
    border-radius: 14px;

    background-color: #CE9B02;
    color: #001C48;
    font-variant: small-caps;
    font-size: 1rem;
    font-weight: 700;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: .3s;
    white-space: nowrap;
}

.botao-voltar:hover {
    background: #7D3122;
    color: whitesmoke;
    transform: translateY(-2px);
}

.botao-voltar svg {
    width: 14px;
    height: 14px;
}

/* ---------- VIDEOSPROINTEC / CARROSSEL DE VÍDEOS ---------- */
.videosProintec {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 44px clamp(16px, 5vw, 40px) 80px;
}

.videos-header {
    margin-bottom: 30px;
}

.videos-header h1 {
    font-family: 'Yantramanav', sans-serif;
    font-weight: 200;
    font-variant: small-caps;
    letter-spacing: 0.01em;
    line-height: 1.05;
    font-size: clamp(22px, 3vw, 30px);
    margin: 0;
    opacity: .95;
}

.videos-header p {
    color: rgba(245, 245, 245, .75);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 62ch;
    margin: 10px 0 0;
}

.carrossel-videos {
    position: relative;
}

.video-area {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(246, 218, 22, .12);
    transition: border-color .3s ease;
}

.video-area:hover {
    border-color: rgba(246, 218, 22, .3);
}

.video-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}

.video-slide.slide-ativo {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.video-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.video-area::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- SETAS DE NAVEGAÇÃO ---------- */
.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(246, 218, 22, .3);
    background: rgba(0, 28, 72, 0.6);
    backdrop-filter: blur(6px);
    color: #F6DA16;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, transform .2s ease, color .3s ease;
    z-index: 3;
}

.seta:hover {
    background: #7D3122;
    border-color: #7D3122;
    color: whitesmoke;
}

.seta:active {
    transform: translateY(-50%) scale(0.94);
}

.seta-anterior {
    left: 16px;
}

.seta-proxima {
    right: 16px;
}

.seta svg {
    width: 20px;
    height: 20px;
}

/* ---------- LEGENDA ---------- */
.legenda {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px 22px;
    border-bottom: 1px solid rgba(246, 218, 22, .12);
    flex-wrap: wrap;
}

.legenda-titulo {
    margin: 0 0 6px;
    font-family: "Yantramanav", sans-serif;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.01em;
    font-size: clamp(19px, 2.4vw, 25px);
    color: whitesmoke;
}

.legenda-descricao {
    margin: 0;
    color: rgba(245, 245, 245, .75);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 56ch;
}

.legenda-local {
    color: #CE9B02;
    font-family: "Bodoni Moda", serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    margin-top: 10px;
    display: inline-block;
}

.contador {
    font-family: "Bodoni Moda", serif;
    font-size: 13px;
    color: rgba(245, 245, 245, .6);
    white-space: nowrap;
    padding-top: 4px;
}

.contador-numero {
    color: #F6DA16;
    font-weight: 900;
    font-size: 19px;
}

/* ---------- NAVEGAÇÃO POR ÍNDICE NUMERADO ---------- */
.navegacao {
    margin-top: 26px;
    position: relative;
    padding: 18px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.navegacao-lista {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: max-content;
    gap: 0;
    height: 46px;
    background:
        repeating-linear-gradient(90deg,
            rgba(246, 218, 22, 0.1) 0px,
            rgba(246, 218, 22, 0.1) 1px,
            transparent 1px,
            transparent 100%);
}

.navegacao-item {
    position: relative;
    width: 64px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border: none;
    background: none;
    cursor: pointer;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    color: rgba(245, 245, 245, .5);
    flex-shrink: 0;
}

.navegacao-item::before {
    content: '';
    display: block;
    width: 1px;
    height: 14px;
    background: rgba(246, 218, 22, .3);
    margin-bottom: 6px;
    transition: height .2s ease, background .2s ease;
}

.navegacao-item span {
    font-size: 11.5px;
    letter-spacing: 0.03em;
    transition: color .2s ease;
}

.navegacao-item:hover::before {
    background: #CE9B02;
}

.navegacao-item:hover span {
    color: whitesmoke;
}

.navegacao-item.item-ativo::before {
    height: 26px;
    background: #F6DA16;
    width: 2px;
}

.navegacao-item.item-ativo span {
    color: #F6DA16;
    font-weight: 900;
}

.navegacao-linha-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(246, 218, 22, .12);
}

@media (max-width: 640px) {
    .seta {
        width: 38px;
        height: 38px;
    }

    .seta-anterior {
        left: 8px;
    }

    .seta-proxima {
        right: 8px;
    }

    .legenda {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= RESPONSIVO ================= */

@media (max-width: 768px) {

    .cabecalho {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 20px 24px;
    }

    .videosProintec {
        padding: 32px 20px 60px;
    }

    .videos-header h1 {
        font-size: 1.7rem;
    }

    .videos-header p {
        font-size: .95rem;
    }

    .video-area {
        max-width: 280px;
    }

    .legenda {
        flex-direction: column;
        gap: 12px;
    }

    .contador {
        padding-top: 0;
    }

    .seta {
        width: 42px;
        height: 42px;
    }

    .seta-anterior {
        left: 10px;
    }

    .seta-proxima {
        right: 10px;
    }
}

@media (max-width: 640px) {

    .cabecalho h1 {
        font-size: 2rem;
    }

    .botao-voltar {
        width: 100%;
    }

    .videos-header h1 {
        font-size: 1.5rem;
    }

    .videos-header p {
        font-size: .9rem;
    }

    .video-area {
        max-width: 240px;
        border-radius: 16px;
    }

    .seta {
        width: 38px;
        height: 38px;
    }

    .seta svg {
        width: 18px;
        height: 18px;
    }

    .seta-anterior {
        left: 8px;
    }

    .seta-proxima {
        right: 8px;
    }

    .legenda-titulo {
        font-size: 1.2rem;
    }

    .legenda-descricao {
        font-size: .9rem;
    }

    .contador {
        font-size: .85rem;
    }

    .navegacao-item {
        width: 52px;
    }
}

@media (max-width: 480px) {

    .videosProintec {
        padding: 24px 16px 48px;
    }

    .video-area {
        max-width: 220px;
    }

    .seta {
        width: 34px;
        height: 34px;
    }

    .seta svg {
        width: 16px;
        height: 16px;
    }

    .legenda-titulo {
        font-size: 1.05rem;
    }

    .legenda-descricao {
        font-size: .85rem;
    }

    .contador-numero {
        font-size: 1rem;
    }
}