/* ============================
   SEÇÃO
============================ */
.trajetoria-section {
    padding-top: 20px !important;
    margin-top: 0 !important;
}


    

/* ============================
   CARROSSEL
============================ */
.trajetoria-carousel {
    position: relative;
    overflow: visible; /* agora as setas saem sem cortar */
}
.trajetoria-title-wrapper {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}


.traj-track-wrapper {
    overflow: hidden;
}

.traj-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
}
/* Remove QUALQUER espaço imediatamente antes da Trajetória */
.trajetoria-section,
.trajetoria-section * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove espaço da seção anterior */
.trajetoria-section {
    margin-top: -120px !important; /* sobe tudo para encostar */
}

/* ============================
   ITEM DO CARROSSEL
============================ */
.traj-item {
    flex: 0 0 calc(33.333% - 26px);
    max-width: calc(33.333% - 26px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 25px;
    text-align: center;
}

/* Título (Ano) */
.traj-year {
    font-size: 26px;
    font-weight: 800;
    color: #C52332;
    margin-bottom: 18px;
}

/* ============================
   IMAGENS — TAMANHO FIXO
============================ */

.traj-img {
    width: 100%;
    height: 220px;
    background: #f4f4f4; /* fundo neutro */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.traj-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* MOSTRA A IMAGEM INTEIRA */
    object-position: center;
    display: block;
    background: #fff;
}


/* ============================
   TEXTO
============================ */
.traj-text {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
}

/* ============================
   SETAS
============================ */
.traj-prev,
.traj-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #C52332;
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: .3s ease;
}

.traj-prev:hover,
.traj-next:hover {
    background: #a81223;
}

.traj-prev {
    left: -10px;
}
.traj-next {
    right: -10px;
}

/* ============================
   MOBILE
============================ */
/* =====================================================
   MOBILE — 1 ITEM POR VEZ + SETAS ABAIXO
   DESKTOP NÃO É AFETADO
===================================================== */
@media (max-width: 700px) {

    /* ===============================
       GARANTE SEM SCROLL LATERAL
    =============================== */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ===============================
       AJUSTE DA SEÇÃO
    =============================== */
    .trajetoria-section {
        margin-top: 0 !important;
        padding-top: 30px !important;
    }

    /* ===============================
       CARROSSEL
    =============================== */
    .trajetoria-carousel {
        width: 100%;
        overflow: hidden;
    }

    .trajetoria-track {
        gap: 16px;
    }

    /* 1 ITEM POR VEZ */
    .trajetoria-item {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    /* ===============================
       SETAS ABAIXO DO CARROSSEL
    =============================== */
    .trajetoria-prev,
    .trajetoria-next {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;

        display: inline-flex;
        margin: 20px 10px 0;

        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    /* Centraliza as setas */
    .trajetoria-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}
/* =====================================================
   MOBILE — 1 ITEM POR VEZ + SETAS ABAIXO (FUNCIONA)
===================================================== */
@media (max-width: 700px) {

    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .trajetoria-section {
        margin-top: 0 !important;
        padding-top: 30px !important;
    }

    /* CARROSSEL */
    .traj-track {
        gap: 16px;
    }

    .traj-item {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .trajetoria-carousel {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    .traj-track-wrapper {
        order: 1;
        width: 100%;
    }

/* =====================================================
   MOBILE — SETAS BEM POSICIONADAS (UX CORRETA)
===================================================== */
@media (max-width: 700px) {

    /* Estrutura em grid */
    .trajetoria-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        justify-items: center;
        row-gap: 12px;
    }

    /* Card ocupa a primeira linha inteira */
    .traj-track-wrapper {
        grid-column: 1 / -1;
    }

    /* Área visual das setas */
    .traj-prev {
        grid-column: 1;
    }

    .traj-next {
        grid-column: 2;
    }

    /* Estilo das setas */
    .traj-prev,
    .traj-next {
        position: static !important;
        transform: none !important;

        width: 42px;
        height: 42px;
        font-size: 22px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 6px;   /* aproxima do card */
    }

}
@media (max-width: 700px) {
    .traj-prev,
    .traj-next {
        box-shadow: 0 6px 14px rgba(0,0,0,.15);
    }
}


}
