/* Custom Styles sobre Bootstrap */

/* Override Bootstrap variables */
:root {
    --bs-primary: #1a1a1a;
    --bs-secondary: #2d2d2d;
    --bs-accent: #808080;
    --bs-dark-bg: #000000; /* Cor padrão para fundos escuros */
    --bs-dark-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

/* Menu fixo com fundo branco por padrão */
.main-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.on-hero {
    background-color: transparent !important;
    box-shadow: none;
}

.main-header.on-hero .logo-main,
.main-header.on-hero .logo-subtitle,
.main-header.on-hero .nav-menu a {
    color: #ffffff !important;
}

.main-header.on-hero .mobile-menu-toggle span {
    background-color: #ffffff !important;
}

.main-header:not(.on-hero) .mobile-menu-toggle span {
    background-color: var(--bs-primary) !important;
}

/* Logo ajustes */
.logo-main,
.logo-subtitle {
    transition: color 0.3s ease;
}

.main-header:not(.on-hero) .logo-main,
.main-header:not(.on-hero) .logo-subtitle {
    color: var(--bs-primary) !important;
}

/* Navegação */
.nav-menu a {
    font-family: var(--font-logo-subtitle);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.main-header.on-hero .nav-menu a {
    color: #ffffff;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--bs-primary) !important;
    opacity: 0.8;
}

/* Ícones sociais no menu */
.nav-social {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-header.on-hero .nav-social {
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0;
}

.nav-social-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-social-link i.fab.fa-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
}

.nav-social-link i.fab.fa-whatsapp:hover {
    background-color: #25D366;
    color: #ffffff !important;
}

/* Cards Bootstrap customizados */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 8px;
}

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

/* Botões customizados */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Botão outline preto */
.btn-outline-primary {
    color: #1a1a1a;
    border-color: #1a1a1a;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-accent {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 4px;
}

.btn-accent:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Seções */
.section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

/* Garantir que a primeira seção não sobreponha o header fixo */
body:not(.home-page) .section:first-of-type {
    padding-top: 180px !important;
}

/* Garantir espaçamento adequado para páginas internas */
main .section:first-of-type {
    padding-top: 180px !important;
}

/* Padding-top padrão para páginas internas (evita sobreposição com menu fixo) */
.section.page-content {
    padding-top: 180px !important;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bs-dark-gradient);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 80px 0;
}

/* Imagem de fundo abstrata */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/backgrounds/hero-abstract.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 1;
}

/* Overlay escuro sobre imagem de fundo - ATRÁS do conteúdo */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 26, 0.35) 50%, rgba(45, 45, 45, 0.3) 100%);
    z-index: 2;
}

/* Conteúdo do hero - SOBRE o overlay */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

/* Garantir que todos os textos do hero sejam brancos e visíveis */
.hero-content * {
    color: #ffffff !important;
}

.hero-content h1,
.hero-content .hero-title,
.hero-content .display-2 {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.8) !important;
}

.hero-content p,
.hero-content .hero-subtitle,
.hero-content .lead {
    color: #ffffff !important;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9) !important;
}

.hero-title {
    color: #ffffff !important;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.8);
}

.hero-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8) 50%, transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 4px 8px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 1);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff !important;
    margin-bottom: 2rem;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1);
}

/* Seções com fundo escuro (com suporte a imagem) - PADRÃO */
.section-dark {
    background: var(--bs-dark-gradient);
    color: #ffffff;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Imagem abstrata de fundo para seções escuras */
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/backgrounds/section-abstract.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: 1;
}

.section-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(45, 45, 45, 0.75) 100%);
    z-index: 2;
}

.section-dark > .container {
    position: relative;
    z-index: 3;
}

.section-dark:last-of-type {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.section-dark .card:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Compatibilidade com section-blue (mantido para transição) */
.section-blue {
    background: var(--bs-dark-gradient);
    color: #ffffff;
    position: relative;
}

.section-blue:last-of-type {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4 {
    color: #ffffff;
}

.section-blue p {
    color: rgba(255, 255, 255, 0.9);
}

.section-blue .card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.section-blue .card:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Remover imagens de fundo das seções */
.section-with-bg {
    background-image: none !important;
    background: transparent;
}

.section-with-bg::before {
    display: none !important;
}

/* Ícones FontAwesome */
.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Ícones em cards claros (seções sem fundo escuro) */
.section:not(.section-dark):not(.section-blue) .card-icon,
.section.bg-light .card-icon,
.bg-light .card-icon {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section:not(.section-dark):not(.section-blue) .card-icon i,
.section.bg-light .card-icon i,
.bg-light .card-icon i {
    color: #1a1a1a;
}

/* Grid melhorado */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Espaçamentos */
.py-section {
    padding: 4rem 0;
}

.mt-section {
    margin-top: 4rem;
}

.mb-section {
    margin-bottom: 4rem;
}

/* Menu Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        color: var(--bs-primary) !important;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-social {
        margin-left: 0;
        padding-left: 1rem;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-top: 1.5rem;
        margin-top: 1rem;
        gap: 1.25rem;
    }
    
    .nav-social-link {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Ícones na seção de diferenciais */
.icon-circle {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.icon-circle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.icon-circle i {
    font-size: 3rem !important;
    color: #ffffff !important;
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .display-3 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title .display-5 {
        font-size: 2rem !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .stat-box h2 {
        font-size: 2rem !important;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
}

/* Rodapé Fixo com Notícias (Marquee) */
.news-ticker-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.news-ticker-label {
    background: rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.news-ticker-label i {
    font-size: 1rem;
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.news-ticker-scroll {
    display: flex;
    align-items: center;
    height: 100%;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.news-ticker-footer:hover .news-ticker-scroll {
    animation-play-state: paused;
}

.news-ticker-item {
    color: #ffffff;
    text-decoration: none;
    padding: 0 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
}

.news-ticker-item:hover {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.9;
    transform: scale(1.05);
}

.news-ticker-separator {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
    font-size: 0.75rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Ajusta o padding-bottom do body para não sobrepor o rodapé fixo */
body {
    padding-bottom: 50px;
}

/* Responsividade do rodapé fixo */
@media (max-width: 768px) {
    .news-ticker-footer {
        height: 45px;
        flex-direction: column;
        height: auto;
        min-height: 45px;
    }
    
    .news-ticker-label {
        width: 100%;
        padding: 8px 15px;
        justify-content: center;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        font-size: 0.75rem;
    }
    
    .news-ticker-content {
        height: 35px;
    }
    
    .news-ticker-scroll {
        animation-duration: 20s;
    }
    
    .news-ticker-item {
        font-size: 0.75rem;
        padding: 0 15px;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .news-ticker-label span {
        display: none;
    }
    
    .news-ticker-label {
        padding: 8px 10px;
    }
    
    .news-ticker-scroll {
        animation-duration: 15s;
    }
}

/* Carrossel de Notícias */
#noticiasCarousel {
    position: relative;
}

/* Links da seção de publicações */
.section.bg-light .text-muted a {
    color: var(--bs-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.section.bg-light .text-muted a:hover {
    color: var(--bs-secondary);
    text-decoration: underline !important;
}

#noticiasCarousel .carousel-item {
    padding: 1rem 0;
}

#noticiasCarousel .card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#noticiasCarousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#noticiasCarousel .card-img-top {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

#noticiasCarousel .card:hover .card-img-top {
    transform: scale(1.05);
}

#noticiasCarousel .card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

#noticiasCarousel .card-title a:hover {
    color: var(--bs-primary);
}

#noticiasCarousel .carousel-control-prev,
#noticiasCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#noticiasCarousel .carousel-control-prev {
    left: -25px;
}

#noticiasCarousel .carousel-control-next {
    right: -25px;
}

#noticiasCarousel .carousel-control-prev:hover,
#noticiasCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--bs-secondary);
    transform: translateY(-50%) scale(1.1);
}

#noticiasCarousel .carousel-control-prev-icon,
#noticiasCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#noticiasCarousel .carousel-indicators {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0;
}

#noticiasCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#noticiasCarousel .carousel-indicators button.active {
    background-color: var(--bs-primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    #noticiasCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #noticiasCarousel .carousel-control-next {
        right: 10px;
    }
    
    #noticiasCarousel .carousel-control-prev,
    #noticiasCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #noticiasCarousel .carousel-item .row > div {
        margin-bottom: 1rem;
    }
}

