/* ============================================
   FANCYBOX - GALERIA DE IMAGENS
   ============================================ */
.fancybox__container {
    --fancybox-bg: rgba(10, 20, 10, 0.95);
}

.fancybox__caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%) !important;
    padding: 40px 30px 25px !important;
    text-align: left !important;
}

.fancybox-title-custom {
    color: var(--cor-secundaria);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 5px;
    display: block;
}

.fancybox-desc-custom {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* ============================================
   SEÇÃO DE TÍTULOS - PADRÃO DO SITE
   ============================================ */
.section-title-wrapper { 
    text-align: center; 
    margin-bottom: 3rem; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.8s ease; 
}
.section-title-wrapper.active { 
    opacity: 1; 
    transform: translateY(0); 
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cor-primaria);
    text-transform: uppercase;
    letter-spacing: -1px; 
}
.section-title span { 
    color: var(--cor-secundaria); 
}

.title-underline { 
    width: 80px; 
    height: 4px; 
    background: var(--cor-secundaria); 
    margin: 15px auto 0; 
    border-radius: 2px; 
}

/* ============================================
   BANNER PRINCIPAL - HERO SECTION
   ============================================ */
.hero-section { 
    position: relative; 
    overflow: hidden; 
    width: 100%; 
    background: #000; 
}
.progress-bar-container { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: rgba(255,255,255,0.2); 
    z-index: 30; 
    pointer-events: none; 
}
.progress-bar-fill { 
    height: 100%; 
    background: var(--cor-primaria); 
    width: 0%; 
    transition: none; 
}

/* ============================================
   SEÇÃO: SOBRE NÓS
   ============================================ */
#sobre-nos {
    overflow: hidden;
    position: relative;
}

/* Ajuste para o texto vindo do banco de dados */
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563; /* Gray-600 */
}

.prose-lg {
    font-size: 1.25rem;
}

/* Elemento decorativo (Círculo atrás da foto) */
.bg-secundaria\/10 {
    background-color: rgba(212, 175, 55, 0.1); /* Ajuste com sua cor secundária */
}

/* Garantir que o grid e o espaçamento funcionem mesmo sem Tailwind total */
.grid { display: grid; }
.items-center { align-items: center; }

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gap-16 { gap: 4rem; }
}

/* Estilo para o título alinhado à esquerda na seção Sobre */
.section-title-wrapper.\!text-left {
    text-align: left !important;
}

.title-underline.\!mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Transição de hover na imagem do Sobre Nós */
#sobre-nos img {
    transition: transform 0.5s ease, shadow 0.5s ease;
}

#sobre-nos .relative.js-reveal:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* ============================================
   SWIPER - BULLETS E BOTÕES
   ============================================ */
.swiper-pagination-bullet { 
    background: var(--cor-primaria) !important; 
    opacity: 0.5; 
    width: 12px; 
    height: 12px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
}
.swiper-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.2);
}
.swiper-pagination-bullet-active { 
    opacity: 1; 
    width: 36px; 
    border-radius: 6px; 
    background: var(--cor-secundaria) !important; 
    border-color: var(--cor-secundaria);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.swiper-button-next, .swiper-button-prev { 
    background: rgba(255, 255, 255, 0.85); 
    width: 48px !important; 
    height: 48px !important; 
    border-radius: 50%; 
    color: var(--cor-primaria) !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.swiper-button-next:hover, .swiper-button-prev:hover { 
    background: var(--cor-secundaria); 
    color: #fff !important; 
    transform: scale(1.15); 
}

/* ============================================
   GALERIA - SETAS PERSONALIZADAS
   ============================================ */
.galeria-navigation-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 10px;
}
.galeria-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cor-primaria), #1a3a20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(44, 82, 52, 0.3);
    border: none;
    font-size: 18px;
}
.galeria-btn:hover {
    background: linear-gradient(135deg, var(--cor-secundaria), #c4a030);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.galeria-btn:active {
    transform: scale(0.95);
}
.galeria-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   CARDS DA GALERIA - NOSSA HISTÓRIA
   ============================================ */
.card-historia {
    display: block;
    height: 100%;
    position: relative;
}
.card-historia-inner {
    position: relative;
    height: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}
.card-historia:hover .card-historia-inner {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--cor-secundaria);
}

.card-historia-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.card-historia-image img,
.card-historia-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card-historia:hover .card-historia-image img,
.card-historia:hover .card-historia-image video {
    transform: scale(1.1);
}

.card-historia-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-historia:hover .card-historia-overlay {
    opacity: 1;
}

.btn-action-overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.8);
    width: 70px; 
    height: 70px; 
    background: rgba(255,255,255,0.95); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--cor-primaria); 
    font-size: 22px; 
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    pointer-events: none; 
    z-index: 20;
}
.card-historia:hover .btn-action-overlay { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
}

.card-historia-content {
    padding: 24px;
    position: relative;
}

.card-historia-badge {
    position: absolute;
    top: -18px;
    left: 24px;
    background: linear-gradient(135deg, var(--cor-secundaria), #c4a030);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.card-historia-title {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--cor-primaria);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-historia-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-historia-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card-historia-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cor-primaria);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.card-historia:hover .card-historia-link {
    color: var(--cor-secundaria);
    gap: 12px;
}

/* ============================================
   CARDS MVV (MISSÃO, VISÃO, VALORES)
   ============================================ */
.card-mvv {
    transition: all 0.4s ease;
    border-left: 5px solid var(--cor-primaria);
    background: #fff;
    height: 100%;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.card-mvv:hover {
    transform: translateY(-5px);
    border-left-color: var(--cor-secundaria);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.mvv-icon-wrapper { 
    width: 64px; 
    height: 64px; 
    border-radius: 18px; 
    background: linear-gradient(135deg, var(--cor-primaria), #000); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 1.5rem; 
}

/* ============================================
   CARDS DE NÚMEROS
   ============================================ */
.bg-numero-card { 
    background-color: #f9fafb; 
    transition: all 0.4s; 
    border: 2px solid transparent; 
    border-radius: 2.5rem;
    padding: 2.5rem;
}
.bg-numero-card:hover { 
    background-color: white; 
    border-color: var(--cor-secundaria); 
    transform: translateY(-8px); 
}
/* ============================================
   TIMELINE ESTILO SNAKE (VERSÃO FINAL ULTRA)
   ============================================ */

.timeline-main-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-snake-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    padding-bottom: 120px; /* Espaço para a curva descer entre as linhas */
}

/* Ziguezague: Inverte a ordem visual na linha 2 */
.timeline-snake-row.row-reverse {
    direction: rtl;
}

.timeline-snake-row.row-reverse .timeline-snake-item {
    direction: ltr; /* Garante que o texto não fique invertido */
}

.timeline-snake-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-year {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--cor-primaria);
    margin-bottom: 12px;
}

.timeline-line-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 24px;
}

.connector-dot {
    width: 16px;
    height: 16px;
    background: var(--cor-secundaria);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--cor-secundaria);
    z-index: 10;
}

/* --- TAGS (PÍLULAS) --- */
.modal-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag-item {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
}

/* --- VARIANTES DA MODAL --- */

/* Estilo Milestone (Destaque em Ouro) */
.modal-is-milestone {
    border-top: 5px solid #fbbf24 !important;
}
.modal-is-milestone .modal-year {
    color: #d97706 !important;
}

/* Estilo Ano Destaque (Fundo Especial ou Borda Primária) */
.modal-is-destaque {
    background: linear-gradient(to bottom, #fff, #fffaf0);
    border: 2px solid var(--cor-primaria) !important;
}

/* Badge de Destaque */
.badge-destaque {
    display: inline-block;
    background: var(--cor-primaria);
    color: white;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 800;
}
/* --- LÓGICA DAS LINHAS HORIZONTAIS --- */

/* Linha para fileiras normais (ex: 1990 -> 1999) */
.timeline-snake-row:not(.row-reverse) .connector-line {
    position: absolute;
    height: 2px;
    background: var(--cor-secundaria);
    left: 50%;
    right: -50%; 
    z-index: 1;
}

/* Linha para fileiras invertidas (ex: 2012 -> 2005) */
.timeline-snake-row.row-reverse .connector-line {
    position: absolute;
    height: 2px;
    background: var(--cor-secundaria);
    right: 50%;
    left: -50%; 
    z-index: 1;
}

/* Esconde a linha que "sobra" no último item de cada fileira */
.timeline-snake-row .timeline-snake-item:last-child .connector-line {
    display: none !important;
}

/* --- CURVA DE CONEXÃO EM "U" (SUA IDEIA!) --- */

.curve-connector {
    position: absolute;
    top: 11px; /* Começa no centro da bolinha de cima */
    width: calc(50% + 2px); /* Estende até a borda do container */
    height: 283px; /* Ajuste milimétrico para tocar o centro da bolinha de baixo */
    border: 2px solid var(--cor-secundaria);
    z-index: 0;
}

/* Curva na direita (Une 1999 ao 2005) */
.timeline-snake-row:not(.row-reverse) .curve-connector {
    left: 50%; /* Nasce no centro da bolinha */
    border-left: none;
    border-radius: 0 60px 60px 0; /* Faz o desenho em "C" */
}

/* Curva na esquerda (Une 2012 ao 2018) */
.timeline-snake-row.row-reverse .curve-connector {
    right: 50%; /* Nasce no centro da bolinha */
    border-right: none;
    border-radius: 60px 0 0 60px; /* Faz o desenho em "C" invertido */
}

/* Esconde a curva na última linha (ex: no item 2026) */
.timeline-snake-row:last-child .timeline-snake-item:last-child .curve-connector {
    display: none !important;
}

/* --- CONTEÚDO E BOTÕES --- */

.timeline-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
    margin-top: 15px;
    margin-bottom: 8px;
    min-height: 40px;
}

.btn-ler-mais {
    color: var(--cor-secundaria);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ler-mais:hover { opacity: 0.7; }

/* --- RESPONSIVIDADE --- */

@media (max-width: 1024px) {
    .timeline-desktop-only { display: none; }
    .timeline-mobile-only { display: block; }
}

.timeline-mobile-only { display: none; }

/* --- CONTAINER E CARDS MOBILE --- */
.timeline-mobile-only {
    display: none;
}

.mobileTimelineSwiper {
    width: 100%;
    height: auto;
    padding: 15px 0 50px 0 !important;
    display: block !important;
    overflow: hidden;
}

.mobile-card-minimal {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

/* Estilo do Ano no Mobile */
.mobile-card-minimal .year-badge {
    display: inline-block;
    background: #fff7ed; /* Laranja bem clarinho */
    color: var(--cor-secundaria);
    font-weight: 900;
    font-size: 2.2rem;
    padding: 0.5rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* --- PAGINAÇÃO (BULLETS) --- */
.swiper-pagination-mobile {
    bottom: 20px !important;
}

.swiper-pagination-mobile .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-mobile .swiper-pagination-bullet-active {
    background: var(--cor-secundaria) !important;
    width: 24px; /* Formato pílula */
    border-radius: 5px;
}

/* --- RESPONSIVIDADE (DISPLAY) --- */
@media (max-width: 1024px) {
    .timeline-desktop-only {
        display: none !important;
    }
    .timeline-mobile-only {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    .timeline-mobile-only {
        display: none !important;
    }
}


/* ============================================
   MEDIA QUERIES - RESPONSIVIDADE
   ============================================ */


@media (max-width: 767px) {
    .hero-section {
        display: none;
    }
    
    .py-16 {
        padding-top: 2rem !important;
    }
    
    .mb-24 {
        margin-bottom: 1rem !important;
    }
    
    .mt-24 {
        margin-top: 1rem !important; 
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 3rem); 
    }
    
    .galeriaSwiper {
        padding: 0 15px !important; 
    }
    
    .card-historia-inner {
        margin: 0 auto;
        max-width: 100%;
        transform: none !important; 
        margin-bottom: 10px;
    }
    
    .galeria-navigation-wrapper {
        justify-content: center;
        margin-bottom: 15px;
        gap: 20px;
        padding-right: 0;
    }
    
    .card-historia-image {
        height: 200px; 
    }
}



