/*
Theme Name: FGA - Federação Gaúcha de Automobilismo
Author: Desenvolvimento FGA
Description: Tema institucional esportivo para automobilismo.
Version: 1.0
Text Domain: fga-theme
*/

:root {
    
    --fga-red: #cc0000;
    --fga-dark: #1a1a1a;
    --fga-gray: #f4f4f4;
    --fga-white: #ffffff;
    --bs-border-radius: 10px;

}

body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--fga-dark);
    margin: 0;

}

.site-header {
    
    background: var(--fga-white);
    border-top: 5px solid #cc0000;
    position: relative;
    z-index: 100;
    
}

.hero-fga {

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://fga.oirodrigo.com.br/wp-content/uploads/2026/03/BannerFGA.jpg') center/cover;
    height: 500px;
    position: relative;
    margin-top: -30px;
    z-index: 50;
    overflow: hidden;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: white;

}

.hero-fga::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 50px;
    background: var(--fga-white);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.hero-btn {

    background-color: var(--fga-red) !important;
    color: var(--fga-white) !important;

}

.hero-fga h1 { font-size: 3.5rem; font-weight: 900; font-style: italic; line-height: 1; }

.proximos-eventos {

    background: var(--fga-gray);
    
}

.card-evento {
    background: white;
    border-left: 6px solid var(--fga-red) !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    border-radius: 10px;
}

.card-evento h4 { margin: 0; font-size: 1.2rem; }
.card-evento .meta { color: var(--fga-red); font-weight: bold; font-size: 0.9rem; }

.main-navigation a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--fga-red);
}


.section-title-border {

    border-bottom: solid 5px var(--fga-red) !important;
    margin-top: -25px;

}

.section-title {

    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.8rem;

}

.site-header {

    padding-top: 1rem;


}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-navigation a {
    color: #000;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #cc0000;
}

/* Ícones de Busca e Login */
.header-actions {
    display: flex;
    gap: 15px;
    color: #666;
}

/* Garante que o logo tenha um tamanho controlado */
.custom-logo-link img {
    max-width: 240px;
    height: auto;
    display: block;
}


.classificacao-fga {

    background: url(https://fga.oirodrigo.com.br/wp-content/uploads/2026/03/fundo_fga.png);
    background-size: cover;

}

.ranking-nav {

    text-align: right;

}

.ranking-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ranking-header h3 {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.btn-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #cc0000;
    cursor: pointer;
    transition: 0.3s;
}

.btn-nav:hover {
    background: #cc0000;
    color: #fff;
}

.ranking-table .pos {

    font-weight: bold;
    margin-right: 10px;
    color: var(--fga-white);
    background: var(--fga-red);
    padding: 10px 15px;
    font-size: 20px;

}


/* Efeito de itálico para simular velocidade */
.italic {
    font-style: italic;
}

/* Container dos Cards de Categoria */
.card-categoria {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-categoria:hover {
    transform: translateY(-5px);
}

/* Máscara escura para legibilidade do texto */
.categoria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 10%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.categoria-overlay h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Botão Vermelho estilo FGA */
.btn-categoria {
    background-color: #cc0000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 4px;
    width: 100%;
    transition: background 0.3s;
}

.btn-categoria:hover {
    background-color: #990000;
    color: #fff;
}

.site-footer {
    border-top: 1px solid #eee;
}

.grayscale-logos img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.grayscale-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-main h5 {
    letter-spacing: 1px;
    color: #333;
}

.footer-main .dashicons {
    color: #cc0000;
    vertical-align: middle;
}

.footer-bottom {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo para o Grid de Notícias */
.news-card {
    transition: opacity 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    min-height: 390px;
    border-radius: 10px;

}

.news-card:hover {
    opacity: 0.8;
}

.news-thumb img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-bottom: 6px solid var(--fga-dark);
}

.news-content {

    padding: 15px;

}

.news-content h6 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
}

/* Ajuste para o título da seção */
.italic {
    font-style: italic;
    letter-spacing: -1px;
}

.card-documentos {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.documentos-rapidos h5 {

    font-size: 20px;

}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-bottom: 4px solid #cc0000;
        z-index: 999;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 15px !important;
    }

    .navbar-nav li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .hero-fga h1 {

        font-size: 1.5rem;

    }
}

/* Garante que o ícone do hambúrguer fique visível */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Remove cores padrão do Bootstrap e define a fonte */
.navbar-nav .nav-link, 
.navbar-nav li a {
    color: #333 !important; /* Cor preta para o texto */
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

/* Efeito da borda vermelha no Hover */
.navbar-nav li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #cc0000; /* Vermelho FGA */
    transition: width 0.3s ease;
}

.navbar-nav li a:hover::after,
.navbar-nav li.current-menu-item a::after {
    width: 100%;
}

.navbar-nav li a:hover {
    color: #cc0000 !important;
}

/* Ajuste específico para Desktop (esconder bordas mobile se necessário) */
@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
    .navbar-collapse.collapse {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
    }
}

/* Ajuste Mobile para não ficar azul ao clicar */
.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-nav li a:active, .navbar-nav li a:focus {
    color: #cc0000 !important;
}

/* Reset para garantir que o item pai seja a referência */
.navbar-nav li {
    position: relative;
}

/* Esconde o submenu por padrão */
.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    padding: 15px 0;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

/* Mostra o submenu no Hover */
.navbar-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    top: 110%; /* Pequeno deslocamento suave ao aparecer */
}

/* Estilo dos itens dentro do Submenu */
.navbar-nav .sub-menu li a {
    padding: 8px 20px !important;
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #333 !important;
    border: none !important; /* Remove a linha vermelha animada de baixo */
}

.navbar-nav .sub-menu li a::after {
    display: none; /* Remove o efeito ::after do menu principal no submenu */
}

.navbar-nav .sub-menu li a:hover {
    background: #f8f8f8;
    color: #cc0000 !important;
    padding-left: 25px !important; /* Efeito de deslize ao passar o mouse */
    transition: all 0.2s;
}

/* Ajuste para Mobile (Submenu abre abaixo do item) */
@media (max-width: 991px) {
    .navbar-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
        display: none; /* No mobile ele começa fechado e você pode abrir com clique se quiser */
    }
    
    .navbar-nav li:hover > .sub-menu {
        display: block;
    }
}

.sponsors-bar img {

    display: inline;

}