/* Hero */
.hero {
    position: relative;
    min-height: 85vh; /* altura responsiva */
    height: auto; /* remove fixo de 800px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

/* vídeo de fundo - dois elementos (desktop / mobile) */
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* manda o vídeo para trás do conteúdo */
    pointer-events: none;
    display: block;
}

/* por padrão mostra desktop, esconde mobile */
.hero video.desktop {
    display: block;
}
.hero video.mobile {
    display: none;
}

/* conteúdo acima do vídeo */
.hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    margin-top: 400px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px;
    /* se quiser, adicione um background semitransparente:
       background: rgba(255,255,255,0.03); */
}

/* botões centralizados */
.buttons {
    margin-top: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
    align-content: center;
    align-items: stretch;
    width: 40%;
}


/* mantém imagens responsivas */
.hero-content img {
    max-width: 100%;
    height: auto;
}

.bn-item a{
    text-decoration: none;
    color: inherit;
}


@media screen and (max-width: 720px) {
    /* em telas pequenas mostra o vídeo mobile e esconde o desktop */

    .hero .hero-content {
        margin-top: 200px;
    }
    .hero video.desktop {
        display: none;
    }
    .hero video.mobile {
        display: block;
        max-height: 70vh;
    }

    .buttons {
    width: 100%;
}
}

/* ----- restante do CSS (BIG NUMBERS etc.) ----- */
/* BIG NUMBERS */

.big-numbers {
    padding: 24px;
    display: flex;
    justify-content: center;
    margin-top: -100px;
}

.bn-container {
    width: 100%;
    max-width: 1200px;
    background: #3a77cd;
    border-radius: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.bn-viewport {
    overflow: hidden;
}

.bn-slides {
    display: flex;
    transition: transform 350ms ease;
    width: 200%; /* dois slides */
}

.bn-slide {
    display: flex;
    width: 50%; /* cada slide ocupa metade */
    box-sizing: border-box;
    padding: 28px 8px;
    gap: 8px;
}

.bn-item {
    flex: 1 1 0;
    padding: 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-right: 2px solid rgba(255, 255, 255, 0.95);
}

.bn-item:last-child {
    border-right: none;
}

.bn-number {
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    text-align: center; /* Garante alinhamento do texto interno */
}

.bn-label {
    font-size: 20px;
    line-height: 1.2;
    color: #fff;
    text-align: center; /* Garante alinhamento do texto interno */
}

/* navigation buttons */
.bn-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bn-button {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
}

.bn-button img {
    width: 40px;
    height: 40px;
}

.bn-button img:hover {
    filter: brightness(0.8);
}

.bn-prev {
    left: 12px;
}
.bn-next {
    right: 12px;
}

/* Responsive */
@media (max-width: 720px) {
    /* em telas pequenas mostra o vídeo mobile e esconde o desktop */
    .bn-slide {
        flex-wrap: wrap;
        gap: 0; /* Removido gap para usar padding dos itens se necessário, ou manter pequeno */
        justify-content: center; /* Centraliza o grid de itens */
    }

    .bn-item {
        /* Ajustado para garantir 2 colunas exatas */
        flex: 0 0 50%;
        border-right: none;

        /* Reforço de alinhamento central */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .bn-item:nth-child(3),
    .bn-item:nth-child(4) {
        border-bottom: none;
    }

    .big-numbers {
        margin-top: -240px;
        z-index: 5;
    }
}
/* About */
.sobre {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-view {
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.col-1 {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.col-2 {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

/* Minimal styles for the carousel */
#aboutCarousel {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f6f6f6;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
#aboutCarousel .track {
    display: flex;
    transition: transform 0.45s ease;
    width: 100%;
}
#aboutCarousel .slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#aboutCarousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.carousel-control:focus {
    outline: 2px solid #fff;
}
.carousel-control.prev {
    left: 8px;
}
.carousel-control.next {
    right: 8px;
}
.carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 8px 0;
    margin-top: 6px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 0;
    cursor: pointer;
}
.carousel-dot[aria-current="true"] {
    background: #0f3a6a;
}
/* small responsive height */
@media (min-width: 600px) {
    .sobre {
        display: flex;
        flex-direction: column;
    }

    #aboutCarousel {
        height: 650px;
    }
}
@media (max-width: 599px) {
    #aboutCarousel {
        height: 550px;
    }
    .split-view {
        flex-direction: column;
        width: 100%;
    }

    .col-1 {
        width: 100%;
    }

    .col-2 {
        width: 100%;
    }

    .col-2 img {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* how to use */

#como-usar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 40px;
}

@media screen and (max-width: 600px) {
    #como-usar {
        align-items: center;
    }
    
}

/* #como-usar .title {
    font-family: var(--font-regular);
    font-size: 36px;
    color: var(--dark-blue);
}

#como-usar .subtitle {
    font-family: var(--font-regular);
    font-size: 24px;
    color: var(--light-blue);
    margin-bottom: 1rem;
} */

.steps {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;

    @media (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 600px) {
        grid-template-columns: 1fr;
    }
}

.step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
}

.step-text {
    font-family: var(--font-regular);
    font-size: 18px;
    color: var(--black);
    /* line-height: 1.4; */
}

/* categories */

.categorias {
    background-color: var(--bg-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
}

.categorias .subtitle {
    margin-top: -50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;

    @media (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 600px) {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
    color: var(--dark-blue);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* open data */

/* Dados Abertos */
.dados-abertos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

/* grid of resources */
.data-resources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* individual card */
.data-resource-card {
    background: var(--light-blue, #f0f4fb);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(3, 17, 34, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: var(--bg-white, #ffffff);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
    min-height: 260px;
        justify-content: space-between
}

/* hover / focus */
.data-resource-card:hover,
.data-resource-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(3, 17, 34, 0.12);
}

/* icon */
.data-resource-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

/* title / description */
.data-resource-title {
    font-weight: 700;
    font-size: 18px;
    margin: 6px 0 0;
    color: var(--bg-white, #ffffff);
}

.data-resource-description {
    font-size: 16px;
    color: var(--bg-white, #ffffff);
    line-height: 1.35;
}

/* download buttons container */
/* .botoes-download {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
} */

.botoes-download {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}
/* button styles */
.btn--outline {
    font-size: 16px;
    padding: 10px 12px;
    min-width: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* disabled state */
.btn--outline.disabled,
.btn--outline[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* make links inside card look accessible when keyboarded */
.data-resource-card a:focus {
    outline: 2px solid rgba(58, 119, 205, 0.25);
    outline-offset: 2px;
}

/* Responsive - manter estrutura desktop, centralizados em uma coluna */
@media (max-width: 900px) {
    .data-resources {
        grid-template-columns: 1fr; /* única coluna */
        justify-items: center; /* centraliza cada card no grid */
        row-gap: 20px;
        padding: 0 12px;
    }

    .data-resource-card {
        /* mantém aparência de desktop, mas responsivo */
        width: 100%;
        max-width: 920px; /* largura semelhante ao container desktop */
        min-height: 260px; /* mantém altura desktop */
        margin: 0 auto;
        padding: 18px;
        flex-direction: column; /* mantém estrutura interna */
        align-items: center; /* centra conteúdo interno */
        gap: 12px;
    }

    .data-resource-card img {
        width: 72px;
        height: 72px;
        margin: 0;
    }

    .data-resource-title {
        text-align: center;
        font-size: 18px;
    }

    .data-resource-description {
        text-align: center;
        font-size: 16px;
    }

    .botoes-download {
        justify-content: center;
        width: auto;
        grid-template-columns: repeat(2, auto);
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .data-resources {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 16px;
        padding: 0 10px;
    }

    .data-resource-card {
        width: 100%;
        max-width: 520px; /* largura reduzida para telas pequenas */
        min-height: 220px;
        padding: 14px;
        align-items: center; /* mantém conteúdo centralizado */
        gap: 12px;
    }

    .data-resource-card img {
        width: 64px;
        height: 64px;
    }

    .data-resource-title {
        font-size: 16px;
        text-align: center;
    }

    .data-resource-description {
        font-size: 14px;
        text-align: center;
    }

    .botoes-download {
        justify-content: center;
        width: auto;
        grid-template-columns: repeat(2, auto);
        gap: 8px;
    }
}

/* Documentos */
.documentos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* grid de cards */
.documentos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}

/* cartão individual */
.documento-card {
    background: var(--light-blue, #f0f4fb);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(3, 17, 34, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
    min-height: 400px;
    box-sizing: border-box;
    justify-content: space-between;
}

/* hover / foco */
.documento-card:hover,
.documento-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(3, 17, 34, 0.12);
}

/* imagem da capa */
.documento-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* títulos e descrição */
.documento-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--bg-white);
    margin: 0;
}

.documento-description {
    font-size: 14px;
    color: var(--bg-white);
    margin: 0;
    line-height: 1.3;
}

/* botão de acesso */
.documento-card .btn--outline {
    margin-top: 8px;
    align-self: center;
    width: 100%;
    max-width: 260px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

/* foco acessível para links dentro do cartão */
.documento-card a:focus {
    outline: 3px solid rgba(58, 119, 205, 0.18);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .documentos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .documentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .documento-card img {
        height: 140px;
    }
}

@media (max-width: 600px) {
    .documentos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 8px;
    }

    .documento-card {
        min-height: auto;
        padding: 12px;
    }

    .documento-card img {
        height: 120px;
    }

    .documento-card .btn--outline {
        width: 100%;
        max-width: none;
    }
}

/* ficha tecnica */

.ficha-tecnica {
    position: relative;
    margin: 0 auto;
    padding: 56px 16px 108px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(7, 34, 88, 0.8) 0%, rgba(10, 50, 122, 0.82) 100%),
        url("../assets/bg-hero.png") center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.ficha-tecnica .conteudo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
    align-items: center;
}

.ficha-tecnica .title,
.ficha-tecnica .subtitle {
    color: #fff;
}

.ficha-tecnica .subtitle {
    margin-top: -12px;
    color: rgba(255, 255, 255, 0.9);
}

.organograma-novo {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.organograma-novo .item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.organograma-novo .cargo {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: clamp(16px, 1.25vw, 20px);
    color: #fff;
    line-height: 1.2;
    text-wrap: balance;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.organograma-novo .nome-pessoa {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 20px);
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.3;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.36);
}

.fundadora-trigger {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    background: rgba(10, 43, 102, 0.52);
    color: #fff;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background-color 220ms ease;
}

.fundadora-trigger:hover,
.fundadora-trigger:focus-visible {
    transform: translateY(-2px);
    background: rgba(12, 51, 122, 0.74);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.fundadora-trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.fundadora-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(960px, 92vw);
    max-height: 86vh;
    border: none;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

.fundadora-modal::backdrop {
    background: rgba(3, 12, 35, 0.65);
    backdrop-filter: blur(4px);
}

.fundadora-modal-content {
    position: relative;
    background: #f4f8ff;
    color: #0f3a6a;
    padding: 28px 20px 24px;
}

.fundadora-modal-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(22px, 1.8vw, 30px);
    color: #0f3a6a;
}

.fundadora-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #d8e6ff;
    color: #0f3a6a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.organograma-fundadora {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.organograma-fundadora .item {
    background: #fff;
    border: 1px solid rgba(15, 58, 106, 0.12);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.organograma-fundadora .cargo {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f3a6a;
}

.organograma-fundadora .nome-pessoa {
    margin: 0;
    font-size: 14px;
    color: #1a2a43;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .ficha-tecnica {
        padding: 40px 14px 96px;
    }

    .fundadora-trigger {
        right: 14px;
        bottom: 14px;
        font-size: 16px;
        padding: 10px 14px;
    }

    .organograma-fundadora {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .organograma-novo .cargo {
        font-size: 18px;
    }

    .organograma-novo .nome-pessoa {
        font-size: 15px;
    }

    .fundadora-modal-content {
        padding: 22px 14px 16px;
    }
}