/* ==========================================================================
   HOME INDEX — Estilos Consolidados
   ========================================================================== */

   @font-face {
    font-family: 'Lema';
    src: url('/fonts/lema.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Trava a rolagem horizontal indesejada apenas no corpo */
}

@media (min-width: 992px) {
    .site__header.header-home {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent !important;
        box-shadow: none !important;
        z-index: 10;
    }
}

.site-main .site__wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   SISTEMA DE GRID ISOLADO (Substituto seguro do Bootstrap)
   ========================================================================== */
/* Aplica o box-sizing APENAS na grid e nos cards, sem quebrar o site */
.container, .row, .col-12, .col-md-4, .col-md-6, .vit-panel {
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Divide as colunas lado a lado no desktop */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Margens auxiliares usadas no PHP */
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* ==========================================================================
   SEÇÕES DA PÁGINA
   ========================================================================== */

/* --- HERO SECTION --- */
.vit-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    z-index: 1;
}

.vit-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.vit-hero__overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.vit-hero__title {
    font-family: 'Lema', cursive, sans-serif;
    /* Valores reduzidos (1.2rem mínimo e 7vw flexível) para caber na tela mobile */
    font-size: clamp(1.2rem, 7vw, 9rem); 
    color: #ffe20a;
    text-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.1;
    text-transform: none;
    font-weight: normal; 
    white-space: nowrap; 
}

.vit-home-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 100vh;
    background-color: #ffffff;
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: 2rem;
}

/* --- BOTÕES E LINKS --- */
.vit-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--vit-accent, #e65100);
    color: var(--vit-title, #111);
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.vit-btn-outline:hover {
    background-color: var(--vit-accent, #e65100);
    color: #fff;
    text-decoration: none;
}

/* --- COMPLEMENTOS GERAIS (Títulos e Margens) --- */
.modern-section {
    padding: 1.5rem 0;
}

.modern-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vit-title, #111);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.title-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--vit-accent, #e65100);
    border-radius: 2px;
}

.modern-text {
    color: var(--vit-text, #555);
    line-height: 1.7;
    font-size: 1.05rem;
}

.modern-text p {
    margin-bottom: 1rem;
}

/* --- CAIXAS DE NOTÍCIAS (Hello Riders) --- */
.vit-panel {
    background-color: #fdfdfd; 
    padding: 2rem 1.5rem; 
    border-radius: 0.4rem; 
    border: 1px solid #f0f0f0; 
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vit-panel-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.vit-panel__date {
    color: var(--vit-accent, #e65100);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.vit-panel__title {
    color: #111;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.vit-panel__text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem; 
}

.vit-panel__link {
    color: var(--vit-accent, #e65100);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-top: auto; /* Empurra o botão pro final */
}

/* --- ÚLTIMAS ATUALIZAÇÕES --- */
.vit-atualizacoes {
    --vit-atualiz-row-h: 3.35rem;
}

.vit-atualizacoes__sub {
    margin: -0.25rem 0 1.75rem;
}

.vit-atualizacoes__frame {
    background: #f9f9f9;
    border: 1px solid var(--vit-border, #eaeaea);
    border-radius: 0.5rem;
    box-shadow: var(--vit-shadow, 0 2px 5px rgba(0,0,0,0.05));
    overflow: hidden;
}

.vit-atualizacoes__viewport {
    height: calc(var(--vit-atualiz-row-h) * 5);
    overflow: hidden;
    position: relative;
}

.vit-atualizacoes__track {
    display: flex;
    flex-direction: column;
}

.vit-atualizacoes__frame--scroll .vit-atualizacoes__track {
    animation: vit-atualizacoes-scroll 28s linear infinite;
}

.vit-atualizacoes__frame--scroll:hover .vit-atualizacoes__track {
    animation-play-state: paused;
}

@keyframes vit-atualizacoes-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.vit-atualizacoes__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--vit-atualiz-row-h);
    padding: 0.55rem 1.25rem;
    border-bottom: 1px solid var(--vit-border, #eaeaea);
    text-decoration: none;
    color: var(--vit-text);
    background: #f9f9f9;
    transition: background-color 0.2s ease;
}

.vit-atualizacoes__row:last-child {
    border-bottom: none;
}

.vit-atualizacoes__row:hover {
    background: #fff;
    text-decoration: none;
    color: var(--vit-text);
}

.vit-atualizacoes__icone {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vit-accent, #e65100);
    font-size: 1.05rem;
}

.vit-atualizacoes__corpo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.vit-atualizacoes__tipo {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vit-muted, #888);
}

.vit-atualizacoes__titulo {
    font-weight: 800;
    color: var(--vit-title);
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vit-atualizacoes__data {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vit-accent, #e65100);
    letter-spacing: 0.03em;
}

.vit-atualizacoes__vazio {
    color: var(--vit-muted);
    font-style: italic;
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid var(--vit-border);
    border-radius: 0.5rem;
    margin: 0;
}

/* --- CHRONOS --- */
.img-col {
    width: 100%;
}

.modern-img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    object-fit: cover;
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (prefers-reduced-motion: reduce) {
    .vit-atualizacoes__frame--scroll .vit-atualizacoes__track {
        animation: none;
    }
    .vit-atualizacoes__viewport {
        height: auto;
        max-height: calc(var(--vit-atualiz-row-h) * 5);
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .vit-hero { height: 80vh; }
    .vit-home-wrapper { margin-top: 80vh; }
    .vit-atualizacoes {
        --vit-atualiz-row-h: 3.75rem;
    }
    .vit-atualizacoes__row {
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
    }
    .vit-atualizacoes__data {
        width: 100%;
        padding-left: 3.25rem;
        text-align: left;
    }
    .modern-section { padding: 2rem 0; }
}
/* Sobrescreve animações pesadas do esk8: sem painéis amarelos / full-screen */

.site__loader,
.overlay__loader {
    display: none !important;
}

/* Menu mobile / overlay / hamburger: ver novo/css/header.css */
/* ==========================================================================
   ESTILOS DO RODAPÉ (footer.css) — ATUALIZADO (Fonte Lema e Sticky Footer)
   ========================================================================== */

/* 1. Importação da fonte original (Garante o funcionamento em todas as páginas) */
@font-face {
    font-family: 'Lema';
    src: url('/fonts/lema.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 2. Resets Críticos: Elimina frestas e contornos brancos do navegador */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Mecanismo Sticky Footer: Força o footer a ficar colado embaixo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Faz o bloco de conteúdo principal crescer e empurrar o footer para o final da tela */
.site-main {
    flex: 1 0 auto;
}

/* Garante que o footer não encolha e permaneça vedado contra frestas */
.site__footer.footer {
    flex-shrink: 0;
    padding: 1.2rem 0 !important; 
    background: #000000 !important;
    border-top: 1px solid #1a1a1a; 
    margin: 0 !important;
    box-shadow: none !important;
}

/* Container Flexbox para organizar as 3 colunas */
.vit-footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================== COLUNA ESQUERDA ================== */
.site__footer.footer .footer__left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site__footer.footer .footer__logo {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 140px;
    margin: 0;
    line-height: 0;
}

.site__footer.footer .footer__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================== COLUNA CENTRAL ================== */
.site__footer.footer .footer__center {
    flex: 1;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 6px; 
}

/* ATUALIZADO: Agora aplicando a fonte Lema corretamente */
.site__footer.footer .footer__center .lema {
    font-family: 'Lema', cursive, sans-serif;
    font-size: 1.4rem; /* Aumentado ligeiramente pois fontes cursivas costumam ser menores */
    color: #ffe20a; 
    text-transform: none; /* Removido o lowercase para manter o desenho original da fonte */
    letter-spacing: 1px;
    font-weight: normal;
    margin: 0;
    line-height: 1;
}

.site__footer.footer .footer__address strong {
    font-size: 0.75rem;
    color: hsla(0,0%,100%,.5);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

/* ================== COLUNA DIREITA ================== */
.site__footer.footer .footer__right {
    flex: 1;
    display: flex;
    align-items: center; 
    justify-content: flex-end;
}

.site__footer.footer .footer__socials {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.site__footer.footer .footer__socials a {
    color: #fff;
    font-size: 1.6rem; 
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site__footer.footer .footer__socials a:hover {
    color: #CC5500; 
    opacity: 1;
    transform: translateY(-3px);
}

/* ================== RESPONSIVIDADE (MOBILE) ================== */
@media (max-width: 768px) {
    .vit-footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .site__footer.footer .footer__left,
    .site__footer.footer .footer__center,
    .site__footer.footer .footer__right {
        flex: unset;
        width: 100%;
        justify-content: center;
    }
}