/* ===========================
   VARIÁVEIS DE CORES
=========================== */
:root {
    --verde-principal: #2e7d32;
    --verde-escuro: #1b5e20;
    --vermelho-principal: #d32f2f;
    --preto: #212121;
    --cinza-escuro: #424242;
    --cinza: #757575;
    --cinza-claro: #f5f5f5;
    --branco: #ffffff;
}






/* Badge (vermelho) */
.history-right .badge {
    margin-top: 15px;
    padding: 6px 14px;
    background: #ff3b3b;
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    box-shadow: 0px 0px 10px rgba(255,0,0,0.4);
}

/* ===========================
   MOBILE: SCROLL HORIZONTAL
=========================== */
@media (max-width: 768px) {
    .timeline-cards {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 15px;
        scroll-snap-type: x mandatory;
    }

    .history-improved-card {
        flex-direction: column;
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
        text-align: center;
    }

    .history-left {
        flex: 0 0 auto;
    }

    .history-left .year {
        font-size: 38px;
        margin-bottom: 10px;
    }
}

/* ===========================
   STATS (opcional)
=========================== */
.history-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: var(--branco);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.stat-item {
    padding: 15px;
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: #e0e0e0;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--verde-principal);
    margin-bottom: 8px;
}

.stat-text {
    font-size: 0.95rem;
    color: var(--cinza-escuro);
}

/* ===========================
   OUTROS AJUSTES GERAIS
=========================== */
.history-right h3.pbmit-highlight {
    color: var(--vermelho-principal);
}




/* Cards da seção Sobre Nós */
.feature-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #2e7d32; /* verde hover */
}

.feature-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: 16px 16px 0 0;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.1);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(46,125,50,0.3), rgba(46,125,50,0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-overlay {
    opacity: 1;
}

.feature-content {
    padding: 25px 20px;
    text-align: center;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: #424242;
    line-height: 1.6;
}

/* ===========================
   Botões Verde
=========================== */
.btn-primary {
    background: #2e7d32; /* verde principal */
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1b5e20; /* verde escuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46,125,50,0.4);
}

/* ===========================
   Responsividade
=========================== */
@media (max-width: 992px) {
    .feature-card {
        margin-bottom: 20px;
    }

    .feature-img-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .feature-card {
        margin-bottom: 15px;
    }

    .feature-img-wrapper {
        height: 180px;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}


.timeline-wrapper {
    width: 100%;
    margin-top: 40px;
    position: relative;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    overflow: hidden; /* escondemos overflow para slider */
}

/* Card individual */
.history-improved-card {
    background: #111;
    border-radius: 16px;
    padding: 25px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    gap: 20px;
    color: #fff;
    min-width: 280px; /* importante para slider */
}

/* Hover effect */
.history-improved-card:hover {
    transform: translateY(-5px);
    border-color: green;
}

/* Ano (esquerda) */
.history-left .year {
    font-size: 42px;
    font-weight: 900;
    color: #32cd32;
}

/* Conteúdo (direita) */
.history-right h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.history-right p { font-size: 15px; opacity: 0.9; }
.history-right .badge {
    margin-top: 12px;
    padding: 6px 14px;
    background: #ff3b3b;
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
}

/* === RESPONSIVIDADE === */
@media (max-width: 992px) {
    .timeline-cards {
        display: flex; /* slider horizontal */
    }
    .history-improved-card {
        flex-shrink: 0;
        flex-direction: column;
        text-align: center;
    }
    .history-left .year { font-size: 36px; }
}

@media (max-width: 576px) {
    .history-left .year { font-size: 32px; }
    .history-right h3 { font-size: 18px; }
    .history-right p { font-size: 14px; }
    .history-right .badge { font-size: 12px; padding: 5px 12px; }
}

.timeline-wrapper {
    width: 100%;
    margin-top: 30px;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.history-improved-card {
    background: #111;
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 15px;
}

.history-left .year {
    font-size: 26px;
    font-weight: 700;
   
    color: #2bff00;

}

.history-right h3 {
    font-size: 18px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.history-right p {
    font-size: 14px;
    color: #eee;
}

.badge {
    margin-top: 8px;
    background: #d4af37;
    color: #111;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
    .timeline-cards {
        grid-template-columns: 1fr;
    }
}

.history-swiper {
    width: 100%;
    padding: 30px 0;
}

.history-improved-card {
    min-height: 210px;  /* Aumenta ou reduz aqui */
}


.year {
    color: #2bff00;
}


.history-right h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.history-right p {
    font-size: 15px;
    line-height: 1.45;
    color: #eee;
}

.badge {
    background: #d4af37;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.pbmit-highlight {
    color: #0ba360 !important;
}

.history-text-black {
    color: #777;                     /* Bem mais claro */
    transition: text-shadow .3s ease, transform .3s ease;
}

.history-text-black:hover {
    color: #777;                     /* Mantém CLARO sempre */
    text-shadow: 0 0 8px rgba(0,0,0,0.20);
    transform: translateY(-2px);     /* pequena interação */
}
