/* ------- TITLE ------- */
.title {
    text-align: center;
    font-size: 19px;
}

.title h1 {
    font-size: 2.0rem;
    font-weight: 700;
}

.central-text {
    text-align: left;
    /* Centraliza o título e os parágrafos */
    margin: 0 auto;
    /* Centraliza o bloco no container pai */
    max-width: 700px;
    /* Limita a largura máxima para uma boa leitura */
    padding: 24px 36px;
    /* Espaçamento interno das bordas */
    box-sizing: border-box;
}

.title p,
.central-text p {
    text-align: justify;
    /* Justifica o parágrafo */
    margin-bottom: 16px;
    /* Espaço entre parágrafos */
    color: #fff;
}

.texto {
    text-align: center;
    /* Centraliza o título e os parágrafos */
    margin: 0 auto;
    /* Centraliza o bloco no container pai */
    max-width: 700px;
    /* Limita a largura máxima para uma boa leitura */
    padding: 24px 36px;
    /* Espaçamento interno das bordas */
    box-sizing: border-box;
}

/* ------- CARDS WRAPPER ------- */
.cards-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Permite que os cards quebrem a linha em telas menores */
    gap: 20px;
    /* Espaçamento para telas menores */
    margin-bottom: 100px;
    /* Ajuste o valor conforme desejar */
}

.card-item {
    background: linear-gradient(150deg, #1e88e5, #010f24);
    border: 2px dashed #fff;
    color: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    width: 260px;
    min-height: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, z-index 0s 0s;
    z-index: 1;
    cursor: pointer;
}

.card-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.card-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.card-item svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ------- HERO ------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: none;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.hero-texto {
    flex: 1;
    text-align: left;
}

.hero-texto h1 {
    font-size: 55px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero-texto p {
    font-size: 17px;
    line-height: 1.5;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ------- MISSÃO ------- */
.azul {
    color: #0766E4;
}

.missao>div {
    display: flex;
    justify-content: center;
    gap: 40px;
    /* Reduzido para espaçamento razoável sem sobreposição */
    margin-top: 70px;
    margin-bottom: 70px;
    flex-wrap: wrap;
    /* Permite quebrar linha se a tela for pequena */
}

.missao>div>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    min-width: 140px;
    /* Garante espaço mínimo para texto, evitando sobreposição */
    max-width: 180px;
    /* Limita para não alargar demais */
    text-align: center;
    word-break: break-word;
    /* Quebra palavras longas se necessário */
}

.missao svg {
    width: 56px;
    height: 56px;
    fill: #0766E4;
    margin-bottom: 12px;
}

.missao p {
    text-align: center;
    font-size: 18px;
    color: #fff;
    white-space: normal;
    /* Permite quebra de linha natural nos textos */
}

.missao h1 {
    text-align: center;
    font-size: 35px;
}

.icones {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Alinha itens pelo topo para textos não sobreporem */
    gap: 40px;
    /* Espaçamento entre itens */
    flex-wrap: wrap;
    /* Quebra linha em telas menores */
}

/* ------- BOXES ------- */
.box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #050E11;
    padding: 48px 32px;
    border-radius: 16px;
    gap: 40px;
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.box .left {
    flex: 1 1 0;
    color: #fff;
    text-align: left;
    max-width: 600px;
    padding-right: 60px;
}

.box .left h1 {
    font-size: 2.2em;
    margin-bottom: 18px;
    color: #0766E4;
}

.box .left h2 {
    font-size: 2em;
    margin-bottom: 18px;
    color: #0766E4;
}

.box .left p {
    font-size: 1.20em;
    line-height: 2;
}

.espaco {
    display: block;
    height: 25px;
    width: 100%;
    content: "";
}

.box .right {
    flex: 1 1 0;
}

.card>div {
    display: flex;
    gap: 30px;
    /* Espaço entre os cards */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card>div>div:not(:last-child)::after {
    content: '>>';
    position: absolute;
    right: -30px;
    /* Posiciona fora do card, no meio do gap */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

.card h3 {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #fff;
    gap: 10px;
}

.card svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    flex-shrink: 0;
    margin-right: 10px;
}

.card p {
    color: #fff;
    font-size: 1.05em;
    line-height: 1.6;
    margin: 0;
}

/* ------- PROJETOS ------- */
.projetos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 0;
}

.projetos .texto {
    flex: 1 1 0;
}

.projetos .texto p {
    font-size: 1.2em;
    line-height: 1.7;
    color: #fff;
}

.projetos .imagem {
    flex: 1 1 0;
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* ------- CAROUSEL ------- */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: inline-block;
    margin-left: 50px;
    width: 500px;
    height: 250px;
}

.carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.77, 0, .18, 1);
    height: 100%;
    width: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
    opacity: 1;
}

.carousel-slide img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #4C545F;
    background: none;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

/* ------- FAQ ------- */
.dt_faq_section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    color: #f0f0f0;
}

.dt_faq_section .faq-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

.dt_faq_section .faq-grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.dt_faq_section .faq-column {
    flex: 1;
    /* Cada coluna ocupa uma fração igual do espaço */
    min-width: 0;
    /* Ajuda a evitar overflow em layouts flex */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Espaçamento vertical ENTRE os itens de FAQ na mesma coluna */
}

.dt_faq_section h3[itemprop="name"] {
    background-color: rgba(13, 110, 253, 0.15);
    /* Fundo azul translúcido */
    border: 1px solid rgba(13, 110, 253, 0.4);
    padding: 18px 25px;
    margin: 0;
    border-radius: 8px;
    /* Cantos arredondados */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.dt_faq_section h3[itemprop="name"]::after {
    content: '▼';
    font-size: 1rem;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.dt_faq_section h3[itemprop="name"]:not(.open):hover {
    background-color: rgba(13, 110, 253, 0.25);
}

.dt_faq_section h3.open {
    background-color: rgba(13, 110, 253, 0.3);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dt_faq_section [itemprop="acceptedAnswer"] {
    display: none;
    /* Resposta escondida por padrão */
    background-color: rgba(13, 20, 35, 0.5);
    /* Fundo escuro e translúcido */
    backdrop-filter: blur(5px);
    /* Efeito de vidro fosco (opcional) */
    border: 1px solid rgba(13, 110, 253, 0.4);
    border-top: none;
    /* Remove a borda superior para conectar com a pergunta */
    padding: 25px;
    margin: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dt_faq_section h3.open::after {
    transform: rotate(180deg);
}

.dt_faq_section [itemprop="acceptedAnswer"] ul {
    padding-left: 20px;
    margin-top: 15px;
}

.dt_faq_section [itemprop="acceptedAnswer"] p,
.dt_faq_section [itemprop="acceptedAnswer"] li {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
}

.dt_faq_section [itemprop="acceptedAnswer"] li {
    margin-bottom: 12px;
}

/* ------- TIMELINE ------- */
.timeline-container {
    position: relative;
    width: 100%;
    padding: 24px 0;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 38px;
    width: 4px;
    height: 100%;
    background-color: #333;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 38px;
    width: 4px;
    height: 0;
    background-color: #0766E4;
    z-index: 2;
    transition: height 0.2s ease-out;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 100px;
    margin-bottom: 36px;
}

.timeline-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #0766E4;
    border: 4px solid #0c101c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: absolute;
    /* Alterado para posicionamento absoluto */
    transition: background-color 0.4s, color 0.4s;
    box-sizing: border-box;
    /* Adicionado para incluir a borda na largura total */
}

.timeline-item.passed .timeline-icon {
    background: #fff;
}

.timeline-item.passed .timeline-icon svg {
    color: #0766E4;
}

.timeline-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.timeline-content {
    background: #fff;
    color: #0766E4;
    padding: 18px 22px;
    border-radius: 8px;
    border: 2px solid #0766E4;
    min-width: 0;
    width: calc(100% - 80px);
    /* Ajustado para não sobrepor o ícone */
    box-sizing: border-box;
    position: relative;
    margin-left: 70px;
    /* Espaço para o ícone não sobrepor */
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.07);
    z-index: 4;
}

.timeline-content::after {
    content: "";
    position: absolute;
    top: 28px;
    left: -12px;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #0766E4 transparent transparent;
    display: block;
}

.timeline-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.14em;
    font-weight: bold;
    color: #0766E4;
    white-space: normal;
    line-height: 1.3;
}

.timeline-content p {
    margin: 0;
    font-size: 1em;
    color: #222;
}

/* ------- HERO BUTTONS ------- */
.hero-buttons {
    display: flex;
    gap: 80px;
    margin-top: 40px;
}

.hero-buttons a {
    display: inline-block;
    padding: 5px 32px;
    border-radius: 20px;
    font-size: 1.12rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.hero-buttons .btn-primary {
    background: #0766E4;
    /* Fundo azul */
    color: #fff;
    /* Texto branco */
    border: 2px solid #0766E4;
    /* Borda sólida da cor do fundo */
}

.hero-buttons .btn-primary:hover {
    background: #0471ff;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    /* Efeito de elevação sutil */
    box-shadow: 0 4px 24px rgba(7, 102, 228, 0.18);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-buttons .btn-secondary:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 24px rgba(7, 102, 228, 0.18);
}

/* Media Queries para Responsividade */

@media (min-width: 1024px) {
    .cards-wrapper {
        gap: 0;
        /* Remove o gap para controlar a sobreposição com margem */
    }

    /* Aplica a sobreposição e a borda tracejada a partir do segundo card */
    .card-item:not(:first-child) {
        margin-left: -60px;
        /* Valor negativo para sobrepor o card anterior */
        padding-left: 40px;
        /* Espaço para a borda não cortar o texto */
    }

    /* Efeito de hover */
    .card-item:hover {
        transform: translateY(-20px) scale(1.05);
        /* Levanta e aumenta o card */
        box-shadow: -10px 0 25px rgba(30, 136, 229, 0.5);
        /* Sombra à esquerda para dar destaque */
        z-index: 10;
        /* Garante que o card em hover fique na frente dos outros */
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, z-index 0s;
    }
}

@media (max-width: 768px) {
    .missao>div {
        flex-direction: row;
        /* Tenta manter em linha */
        gap: 20px;
        /* Espaçamento menor para mobile */
        margin-top: 30px;
        margin-bottom: 30px;
        justify-content: center;
    }

    .missao>div>div {
        min-width: 100px;
        /* Reduz mínimo para caber mais itens */
        max-width: 140px;
    }

    .missao p {
        font-size: 1rem;
        /* Texto menor para melhor ajuste */
    }

    .hero-img {
        max-width: 250px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .icones {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        /* Espaçamento entre itens */
        flex-wrap: wrap;
        align-items: center;
    }

    .dt_faq_section .faq-title {
        font-size: 2rem;
    }

    /* Força uma única coluna em telas de até 768px */
    .dt_faq_section .faq-grid-container {
        flex-direction: column;
    }

    .dt_faq_section h3[itemprop="name"] {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .title {
        font-size: 1.1rem !important;
        padding: 0 6px !important;
    }

    .hero {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 24px 0 !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    .hero-texto {
        text-align: center !important;
    }

    .hero-texto h1 {
        font-size: 2rem !important;
        margin-bottom: 18px !important;
    }

    .hero-texto p {
        font-size: 1rem !important;
    }

    .hero-img {
        justify-content: center !important;
    }

    .hero-img img {
        max-width: 90vw !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    .missao>div {
        flex-direction: column !important;
        gap: 30px !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    .missao>div>div {
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    .missao h1 {
        font-size: 1.5rem !important;
    }

    .missao p {
        font-size: 1rem !important;
        white-space: normal !important;
    }

    .box {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 6px !important;
        gap: 16px !important;
        border-radius: 10px !important;
        margin: 16px 0 !important;
    }

    .box .left,
    .box .right {
        max-width: 100vw !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .box .left h1,
    .box .left h2 {
        font-size: 1.3em !important;
        margin-bottom: 10px !important;
    }

    .box .left p {
        font-size: 1em !important;
        line-height: 1.5 !important;
    }

    .espaco {
        height: 15px !important;
    }

    .card>div {
        gap: 12px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .card>div>div {
        width: 96vw !important;
        min-height: 180px !important;
        padding: 16px 8px !important;
        border-radius: 10px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .card h3 {
        font-size: 1em !important;
        margin-bottom: 10px !important;
    }

    .card svg {
        width: 22px !important;
        height: 22px !important;
        margin-right: 6px !important;
    }

    .card p {
        font-size: 1em !important;
        line-height: 1.3 !important;
    }

    .projetos {
        flex-direction: column !important;
        gap: 20px !important;
        max-width: 100vw !important;
        padding: 24px 0 !important;
    }

    .projetos .texto {
        text-align: center !important;
    }

    .projetos .texto p {
        font-size: 1em !important;
        line-height: 1.4 !important;
    }

    .projetos .imagem {
        max-width: 90vw !important;
        border-radius: 10px !important;
    }

    .carousel {
        width: 96vw !important;
        height: 120px !important;
        margin: 0 auto 12px auto !important;
    }

    .carousel-slide img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 8px !important;
    }

    .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.2rem !important;
    }

    .dt_faq_section {
        padding: 0 8px !important;
        margin-bottom: 20px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .dt_faq_section h3[itemprop="name"] {
        font-size: 1rem !important;
        padding: 12px 16px !important;
    }

    .dt_faq_section [itemprop="acceptedAnswer"] {
        padding: 16px !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .hero-buttons a {
        width: 70%;
        max-width: 200px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 801px) {
    .timeline-container {
        max-width: 900px;
    }

    .timeline-container::before,
    .timeline-progress {
        left: 50%;
        /* Centralize a linha no desktop */
        transform: translateX(-50%);
    }

    .timeline-item {
        min-height: 100px;
        width: 50%;
        margin: 0;
        margin-bottom: 40px;
        position: relative;
        /* Alterna os lados */
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        /* Ajuste para esquerda, sem sobreposição */
        flex-direction: row-reverse;
        justify-content: flex-start;
        padding-right: 40px;
        /* Espaço para não sobrepor a linha */
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        /* Ajuste para direita */
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 40px;
        /* Espaço para não sobrepor a linha */
    }

    .timeline-item .timeline-icon {
        position: absolute;
        top: 0;
        margin: 0;
    }

    .timeline-item:nth-child(odd) .timeline-icon {
        right: -24px;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: -24px;
        right: auto;
    }

    .timeline-item .timeline-content {
        margin: 0 0 0 0;
        width: 100%;
        min-width: 230px;
        max-width: 360px;
        /* Ajusta seta para ambos os lados */
    }

    .timeline-item .timeline-content::after {
        top: 28px;
        left: -12px;
        right: auto;
        border-width: 8px 12px 8px 0;
        border-color: transparent #0766E4 transparent transparent;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        left: auto;
        right: -12px;
        border-width: 8px 0 8px 12px;
        border-color: transparent transparent transparent #0766E4;
    }
}

@media (max-width: 800px) {
    .timeline-container {
        padding: 16px 0;
        margin: 0 0;
        /* margem já aplicada abaixo */
    }

    .timeline-container,
    .timeline-item,
    .timeline-content {
        box-sizing: border-box;
    }

    .timeline-container {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        width: 100% !important;
        left: 0 !important;
        min-height: 0;
        margin: 0 0 36px 0;
    }

    .timeline-icon {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        margin: 0 18px 0 0;
        z-index: 3;
    }

    .timeline-content {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-content::after {
        left: -12px;
        right: auto;
        border-width: 8px 12px 8px 0;
        border-color: transparent #0766E4 transparent transparent;
        top: 28px;
    }
}

@media (max-width: 600px) {
    .missao>div {
        flex-direction: column;
        gap: 24px;
    }

    .timeline-item .timeline-content {
        padding: 12px 4px;
        font-size: 0.93em;
    }

    .timeline-item {
        min-height: 100px;
    }

    /* Ajuste para telas menores */
}

@media (max-width: 450px) {
    .timeline-item .timeline-content {
        padding: 10px 2px;
        font-size: 0.88em;
    }

    .timeline-container {
        padding: 6px 0;
    }

    .timeline-item {
        padding-left: 60px;
        padding-right: 10px;
    }

    /* Reduz espaço para telas muito pequenas */
}