/* ==========================================================================
   LAYOUT DA VITRINE DE BOARDS E SISTEMA DE GRID (boards.css)
   ========================================================================== */

/* --- SISTEMA DE GRID SEGURO --- */
.container, .row, [class^="col-"] {
    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;
}

/* Força espaçamento vertical entre as linhas para que os cards nunca colem */
#grid-boards {
    row-gap: 2.5rem;
}

[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* Utilitários de Margem e Alinhamento */
.align-items-center { align-items: center; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.text-center { text-align: center !important; }

/* Form Controls Padrão (Filtros) - CORRIGIDO */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit; /* Força os campos a usarem a fonte Montserrat do site */
    line-height: 1.5;
    color: #444;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    box-sizing: border-box; /* Garante que o padding não engorde um campo mais que o outro */
    height: 48px; /* Trava uma altura exata para input e select ficarem milimetricamente iguais */
    transition: all 0.2s ease;
    appearance: none; /* Remove o estilo padrão nativo do select em iPhones/Macs */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Adiciona um ícone de seta customizado no select já que removemos o nativo acima */
select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Estado de foco elegante na cor da marca */
.form-control:focus {
    outline: none;
    border-color: var(--vit-accent, #cc5500);
    box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.15);
}

/* --- BARRA DE FILTROS --- */
.vit-filter-bar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--vit-border, #eee);
}

.vit-filter-label {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--vit-title, #111);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- BLOCO E-BRANDS INFO --- */
.vit-brand-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    border-left: 5px solid var(--vit-accent, #cc5500);
}

.vit-brand-logo {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.vit-brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

.vit-brand-meta {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.vit-brand-meta i { color: var(--vit-accent, #cc5500); margin-right: 4px; }
.vit-brand-meta a { color: var(--vit-accent, #cc5500); text-decoration: none; font-weight: bold; }
.status-ativa { color: green; font-weight: bold; }
.status-extinta { color: red; font-weight: bold; }

.vit-brand-desc {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
}

.brand-history-text {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.vit-history-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vit-btn-more {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--vit-accent, #cc5500);
    text-decoration: none;
}

.vit-btn-more i { font-size: 0.75rem; margin-left: 4px; }

/* --- BLOCO COLLAPSÁVEL (Topo) --- */
.boards-ebrands-disclosure { 
    width: 100%; 
    max-width: 100%; 
}

.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title {
    display: flex; /* Mudamos de inline-flex para flex. Isso faz o botão aceitar alinhamento central */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: fit-content; /* Garante que o container não ocupe a tela toda para o hover/foco funcionar apenas no texto */
    max-width: 100%;
    margin: 0 auto; /* O segredo está aqui: agora ele centraliza perfeitamente */
    padding: 0 0.75rem 0.15rem;
    cursor: pointer;
    font-family: inherit;
    border: 0;
    background: transparent;
    color: var(--vit-title, #111);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title:hover { color: var(--vit-accent, #cc5500); }
.boards-ebrands-disclosure .boards-ebrands-toggle.vit-page-title:focus { outline: 2px solid var(--vit-accent, #cc5500); outline-offset: 4px; border-radius: 0.25rem; }
.boards-ebrands-toggle__label { display: block; text-align: center; }
.boards-ebrands-toggle__chev { font-size: 0.45em; line-height: 1; color: var(--vit-accent, #cc5500); transition: transform 0.25s ease; }
.boards-ebrands-toggle.is-open .boards-ebrands-toggle__chev { transform: rotate(180deg); }
.boards-ebrands-panel { width: 100%; margin-top: 0.75rem; padding: 0 0 1rem; text-align: left; }
.boards-ebrands-panel--collapsed { display: none !important; }
.boards-ebrands-panel:not(.boards-ebrands-panel--collapsed) { display: block; border-bottom: 1px solid var(--vit-border, #eee); margin-bottom: 0.5rem; }
.boards-ebrands-panel .boards-ebrands-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* --- CARDS DE BOARDS --- */
.board-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 1rem;
    border-radius: 0.6rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #f0f0f0;
}

.board-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: var(--vit-shadow-hover, 0 10px 25px rgba(0,0,0,0.1));
    border-color: #e0e0e0;
}

/* Badge de Esgotado */
.vit-badge-soldout {
    position: absolute;
    top: 30px;            /* Desce um pouquinho para afastar da borda superior */
    right: -35px;         /* Ajuste fino da distância da borda direita */
    width: 160px;         /* Uma largura fixa garante espaço para o texto todo */
    text-align: center;   /* Centraliza o texto perfeitamente na faixa */
    background: #d9534f;
    color: #fff;
    padding: 5px 0;       /* Mantém o padding vertical, remove o lateral */
    font-size: 0.65rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.board-img-container {
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f4f4f4; 
}

.board-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.board-card .media__title {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
}

.board-card .media__text {
    font-size: 0.85rem !important;
    color: #555;
    flex-grow: 1; /* Ocupa o espaço livre e empurra o footer para baixo */
}

.board-text-resumo {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-top: 0.3rem;
    min-height: 3.8em; 
}

/* --- RODAPÉ DO CARD --- */
.board-card .media__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Força o rodapé a colar no limite inferior do card */
    padding-top: 12px;
    border-top: 1px solid #eee;
    gap: 10px; /* Garante que os dois lados nunca encostem um no outro */
}

/* Avaliação (Estrelas) */
.vit-star-rating {
    display: flex;
    align-items: center;
    color: #FFD700;
    font-size: 0.85rem;
    white-space: nowrap; /* Impede a quebra de linha das estrelas */
}

.vit-star-rating .rating-value {
    color: #666;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: bold;
}

.rating-empty {
    color: #ccc;
    font-size: 0.75rem;
    font-style: italic;
    white-space: nowrap;
}

/* Botão "Ver Detalhes" */
.media__continue {
    display: flex;
    align-items: center;
    color: var(--vit-accent, #cc5500);
    font-size: 0.75rem; /* Levemente menor para caber na grade de 4 colunas */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    white-space: nowrap; /* IMPEDE A QUEBRA DE LINHA */
    flex-shrink: 0; /* Impede que o bloco seja esmagado pelas estrelas */
}

.media__continue i {
    font-size: 0.85rem;
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

.board-card:hover .media__continue i {
    transform: translateX(0.3rem);
}

/* --- BOTÃO VOLTAR --- */
.vit-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--vit-accent, #cc5500);
    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, #cc5500);
    color: #fff;
    text-decoration: none;
}

/* --- CARREGAMENTO PROGRESSIVO (scroll infinito) --- */
.boards-load-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.boards-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.5rem 1rem 2rem;
    color: #666;
    font-size: 0.9rem;
}

.boards-loading-more[hidden] {
    display: none !important;
}

.boards-loading-more__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e0e0e0;
    border-top-color: var(--vit-accent, #cc5500);
    border-radius: 50%;
    animation: boards-spin 0.7s linear infinite;
}

@keyframes boards-spin {
    to { transform: rotate(360deg); }
}

.boards-empty[hidden] {
    display: none !important;
}

.board-img-container img[loading="lazy"] {
    background-color: #f4f4f4;
}
/* ==========================================================================
   BOARD DETALHES — Estilos Específicos e Layout em Grid
   ========================================================================== */

/* --- SISTEMA DE GRID SEGURO --- */
.container, .row, [class^="col-"] {
    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;
}

[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    
    /* Controladores de Espaço e Ordem para alternância de fotos */
    .order-md-0 { order: 0; }
    .order-md-1 { order: 1; }
    .vit-pl-custom { padding-left: 3rem !important; }
    .vit-pr-custom { padding-right: 3rem !important; }
}

/* Utilitários Gerais */
.align-items-center { align-items: center; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.d-inline-flex { display: inline-flex; align-items: center; }

/* --- CABEÇALHO DO BOARD --- */
.vit-board-hero-img {
    width: 100%;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.vit-img-placeholder {
    width: 100%;
    height: 350px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Badges e Links do Topo */
.vit-year-badge {
    color: #666;
    font-weight: 800;
}

.vit-brand-link {
    color: #666;
    font-weight: 800;
    border-bottom: 2px solid #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vit-brand-link:hover {
    color: var(--vit-accent, #cc5500);
    border-color: var(--vit-accent, #cc5500);
}

.vit-star-align {
    display: inline-flex;
    align-items: center;
}

.vit-rating-num {
    color: #666;
    font-size: 1.1rem;
    margin-left: 8px;
    font-weight: 800;
}

/* --- BOTÃO COMPARTILHAR --- */
.board-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-share-board {
    background: #fdfdfd;
    border: 1px solid #ddd;
    color: #444;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto; /* Joga para a direita */
}

.btn-share-board:hover {
    background: var(--vit-accent, #cc5500);
    color: #fff;
    border-color: var(--vit-accent, #cc5500);
}

/* --- LISTA DE PERFORMANCE (Ícones Customizados) --- */
.vit-perf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vit-perf-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--vit-text, #444);
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.vit-perf-list li img {
    width: 24px;
    height: auto;
    margin-right: 15px;
}

.vit-perf-list li strong {
    color: var(--vit-title, #111);
    margin-right: 5px;
}

.vit-perf-alert {
    background: #fff3cd !important;
    border-color: #ffeeba !important;
    font-size: 0.95rem !important;
}

/* --- FICHA TÉCNICA (Specs Grid Substituta) --- */
.spec-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.badge-rating-text {
    color: #ddd;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

/* --- BOTÃO DE VOLTAR --- */
.vit-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--vit-accent, #cc5500);
    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 i { margin-right: 0.5rem; }

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

/* --- REDUÇÃO DE ESPAÇAMENTO NOS TEXTOS (CORRIGIDO) --- */
.modern-text {
    line-height: 1.6 !important; 
}

.modern-text p {
    margin-bottom: 0.5rem !important; 
}

/* --- VÍDEO DEMONSTRATIVO --- */
.videoWrapper-modern {
    position: relative;
    width: 100%;
    max-width: 900px; /* Impede que o vídeo fique gigantesco em telas muito largas */
    margin: 0 auto; /* Centraliza o vídeo na tela */
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background-color: #000; /* Fundo escuro enquanto o vídeo carrega */
    aspect-ratio: 16 / 9; /* Garante a proporção perfeita do YouTube em qualquer tela */
}

.videoWrapper-modern iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* 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;
    }
}