/* ========================================
   CORREÇÃO DEFINITIVA - BANNER
   Adicione NO TOPO do estilos.css
   ======================================== */

/* CORREÇÃO 1: Remove padding-top do main-content */
.main-content {
    padding-top: 0 !important;
}

/* CORREÇÃO 2: Remove margem/padding entre header e banner */
.header-ipsm {
    margin-bottom: 0 !important;
}

.header-nav {
    margin-bottom: 0 !important;
}

/* CORREÇÃO 3: Banner full-width (sem padding lateral) */
.hero-carousel {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important; /* Largura total da viewport */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* CORREÇÃO 4: Container do banner sem padding */
.hero-carousel .carousel-container {
    padding: 0 !important;
    margin: 0 auto !important;
}

/* CORREÇÃO 5: Imagem do banner preenche 100% */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Centraliza a imagem */
    display: block;
}

/* ========================================
   AJUSTE ESPECÍFICO PARA MOBILE
   ======================================== */

@media (max-width: 767px) {
    /* Garante que não há padding lateral no mobile */
    .hero-carousel {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove qualquer overflow que possa cortar */
    body {
        overflow-x: hidden;
    }
}


/* ========================================
   CABEÇALHO RESPONSIVO IPSM
   ======================================== */

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
	overflow-x: hidden; /*Remover a Barra de Rolagem Horizontal*/
}



/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Utilitários de Visibilidade */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block !important;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: block !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}

/* ========================================
   CABEÇALHO PRINCIPAL
   ======================================== */

.header-ipsm {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Adiciona a transição para a propriedade top */
    transition: box-shadow 0.3s ease, top 0.3s ease-in-out;
}

.header-ipsm.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   BARRA SUPERIOR
   ======================================== */

.header-top {
    /*background-color: #f9fafb;*/
    background-color: #f5d6d6;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
}

/* Estilo para ocultar a barra superior no desktop */
@media (min-width: 768px) {
    .header-ipsm.header-top-hidden .header-top {
        display: none; /* Oculta imediatamente */
    }
}

/* Esconder toda a barra superior para mobile */
@media (max-width: 767px) {
  .header-top {
    display: none;
  }
}


@media (min-width: 768px) {
    .header-top {
        font-size: 13px;
    }
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 37px;
}

/* Links Auxiliares */
.header-links {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .header-links {
        display: flex;
        align-items: center;
    }
}

.header-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-links a:hover {
    color: #a62d2e;
}

/* Redes Sociais */
.header-social {
    display: flex;
    align-items: center;
    gap: 0.90rem;
}

.social-icon {
    color: #6b7280;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon:nth-child(1) {
    color: #1877f2;
}

.social-icon:nth-child(2) {
    color: #e4405f;
}

.social-icon:nth-child(3) {
    color: #25d366;
}

.divider {
    display: none;
    width: 1px;
    height: 20px;
    background-color: #d1d5db;
    margin: 0 0.25rem;
}

@media (min-width: 768px) {
    .divider {
        display: block;
    }
}

.header-link-small {
    display: none;
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .header-link-small {
        display: block;
    }
}

.header-link-small:hover {
    color: #a62d2e;
}

/* ========================================
   CABEÇALHO PRINCIPAL (Logo e Busca)
   ======================================== */

.header-main {
    border-bottom: 1px solid #e5e7eb;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    gap: 1rem;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    display: block;
}

.header-logo img {
    height: 48px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 56px;
    }
}

@media (min-width: 1024px) {
    .header-logo img {
        height: 64px;
    }
}

/* Busca */
.header-search {
    flex: 1;
    max-width: 28rem;

}

.header-search.mobile-only {
    max-width: 100%;
    padding-bottom: 1rem;
}

@media (min-width: 1024px) {
    .header-search.desktop-only {
        display: flex;
        margin: 0 0rem;
    }
}

.header-search form {
    position: relative;
    width: 100%;
}

/* ----------------------------------------
   Estilos para o Formulário de Pesquisa , mesmo utilizado em legislacao
   ---------------------------------------- */

/* --- Formulário de Pesquisa --- */
.leg-search-form-wrapper {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.leg-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.leg-search-input {
    flex-grow: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 14px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .leg-search-input {
         font-size: 13px;
        padding: 0.4rem 0.60rem;
    }
}


.leg-search-input:focus {
    border-color: #a62d2e;
    outline: none;
}

.leg-search-button {
    background-color: #a62d2e;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leg-search-button:hover {
    background-color: #7a2121;
}

.leg-search-button svg {
    stroke: #fff;
}


.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #a62d2e;
    box-shadow: 0 0 0 3px rgba(166, 45, 46, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.search-button:hover {
    color: #a62d2e;
}

/* Botão Menu Mobile */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #374151;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ========================================
   MENU DE NAVEGAÇÃO
   ======================================== */

.header-nav {
    background-color: #fff;
    border-bottom: 1px solid #f3f4f6;
}

/* Menu Desktop */
.nav-menu {
    display: none; /* Escondido por padrão (mobile) */
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 1.6rem;
    letter-spacing: 0.3px;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important; /* Visível apenas no desktop */
    }
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.2s ease;
}

.nav-menu > li > a:hover {
    color: #a62d2e;
    background-color: #f9fafb;
}

/* Submenu Desktop */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0.5rem 0.5rem;
    border: 1px solid #e5e7eb;
    min-width: 280px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.2rem 1rem;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu li a:hover {
    background-color: #f9fafb;
    color: #a62d2e;
}

/* Menu Mobile */
.nav-mobile {
    display: none;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-mobile.active {
    display: block;
}

.nav-menu-mobile {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu-mobile > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-menu-mobile > li > a:hover {
    background-color: #f9fafb;
    color: #a62d2e;
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.submenu-toggle.active .arrow {
    transform: rotate(180deg);
}

/* Submenu Mobile */
.submenu-mobile {
    display: none;
    list-style: none;
    margin: 0.25rem 0 0.25rem 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.submenu-mobile.active {
    display: block;
}

.submenu-mobile li a {
    display: block;
    padding: 0.35rem 1rem;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.submenu-mobile li a:hover {
    color: #a62d2e;
}



/* Links Auxiliares Mobile */
.mobile-links {
    margin-top: 0rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mobile-links a {
    padding: 0.5rem 1rem;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-links a:hover {
    color: #a62d2e;
    background-color: #f3f4f6;
}

/* ========================================
   ANIMAÇÕES E TRANSIÇÕES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu {
    animation: fadeIn 0.2s ease;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

a:focus,
button:focus,
input:focus {
    outline: 2px solid #a62d2e;
    outline-offset: 2px;
}

/* ========================================
   IMPRESSÃO
   ======================================== */

@media print {
    .header-top,
    .header-search,
    .menu-toggle,
    .header-nav {
        display: none !important;
    }
    
    .header-main {
        border-bottom: 2px solid #000;
    }
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */

.main-content {
    min-height: 60vh;
    padding: 2rem 0;
}


/* ========================================
   RODAPÉ
   ======================================== */

.footer-ipsm {
    background-color: #1f2937;
    color: #e5e7eb;
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 0 2rem;
	background-color: #1f2937;
}

@media (max-width: 768px) {
    .footer-main {
        padding: 20px 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a62d2e;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: #a62d2e;
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    font-size: 14px;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #a62d2e;
}

.footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-info li {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
}

.footer-info strong {
    color: #fff;
}

.footer-info a {
    color: #a62d2e;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #111827;
    padding: 1.5rem 0;
    border-top: 1px solid #374151;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright,
.footer-dev {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   CORREÇÃO MENU MOBILE - FORÇAR FECHADO
   ======================================== */

/* Garante que o menu mobile inicia FECHADO */
.nav-mobile {
    display: none !important;
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    max-height: 70vh;
    overflow-y: auto;
}

/* Apenas mostra quando tem a classe active */
.nav-mobile.active {
    display: block !important;
}

/* Garante que submenus mobile iniciam fechados */
.submenu-mobile {
    display: none !important;
}

.submenu-mobile.active {
    display: block !important;
}

/* Garante visibilidade correta em diferentes resoluções */
@media (max-width: 1023px) {
    .nav-mobile {
        display: none !important;
    }
    
    .nav-mobile.active {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .nav-mobile {
        display: none !important;
    }
}

/**
 * ESTILOS DA PÁGINA HOME - IPSM
 * Design Moderno e Responsivo
 */

/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --color-primary: #a62d2e;
    --color-primary-dark: #8b2426;
    --color-primary-light: #c73538;
    --color-secondary: #2196F3;
    --color-success: #28a745;
    --color-warning: #ff9800;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f5f5f5;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
}



/* ========================================
   BLOCO 1: BANNER CAROUSEL 
   ======================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    background-color: transparent; /* MUDADO: era var(--color-bg-light) */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: 450px;
    background-color: transparent; /* IMPORTANTE: Remove fundo amarelo */
    overflow: hidden; /* IMPORTANTE: Corta qualquer overflow */
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.carousel-image {
    display: block; /* IMPORTANTE: Remove espaço inline */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    /*vertical-align: top; /* IMPORTANTE: Remove espaço inferior */
}

/* Banner placeholder (quando não há banners) */
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a62d2e 0%, #7a2121 100%);
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.banner-placeholder h2 {
    font-size: 48px;
    color: white;
    margin: 0 0 20px 0;
}

.banner-placeholder p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Botões de navegação */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #a62d2e;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
    background-color: #a62d2e;
    border-color: #a62d2e;
}




/* ========================================
   RESPONSIVIDADE - BANNER
   ======================================== */

/* ========================================
   BANNER MOBILE OTIMIZADO - MOSTRA MAIS CONTEÚDO
   Substitua apenas a seção de responsividade do banner
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .carousel-container {
        height: 300px; /* Reduzido de 350px */
    }
    
    .carousel-image {
        object-fit: cover;
        object-position: center center;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 12px;
    }
}

/* Mobile (< 768px) - OTIMIZADO PARA MOSTRAR MAIS CONTEÚDO */
@media (max-width: 767px) {
    /* Altura reduzida para mostrar mais da largura do banner */



    

    .hero-carousel {
        height: 180px; /* MUITO REDUZIDO - era 250px */
        min-height: 180px;
        max-height: 180px;
    }
    
    .carousel-container {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .carousel-slides {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
    
    .carousel-slide {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
    
    /* IMPORTANTE: Ajusta o crop para mostrar mais conteúdo */
    .carousel-image {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        object-fit: cover;
        object-position: center center; /* Centraliza horizontalmente e verticalmente */
        width: 100%;
    }
    
    /* Botões menores e mais discretos */
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        opacity: 0.9;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    /* Indicadores mais próximos */
    .carousel-indicators {
        bottom: 8px;
        gap: 7px;
    }
    
    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Mobile Pequeno (< 480px) - AINDA MAIS COMPACTO */
@media (max-width: 479px) {
    .hero-carousel {
        height: 150px; /* MUITO COMPACTO - era 200px */
        min-height: 150px;
        max-height: 150px;
    }
    
    .carousel-container {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
    
    .carousel-slides {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
    
    .carousel-slide {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
    
    .carousel-image {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        object-fit: cover;
        object-position: center center;
    }

    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-indicators {
        bottom: 6px;
        gap: 5px;
    }
    
    .carousel-indicators .indicator {
        width: 7px;
        height: 7px;
        border-width: 1px;
    }
}

/* ========================================
   AJUSTE FINO - PROPORÇÃO DE ASPECTO
   ======================================== */

/* 
   Com altura de 180px no mobile, assumindo tela de 375px de largura,
   a proporção fica aproximadamente 2:1 (375:180)
   
   Isso significa que se o banner original é 1920x600 (3.2:1),
   você verá aproximadamente 60-65% da largura do banner.
   
   Se quiser ver MAIS do banner (mais que 60%), reduza ainda mais a altura:
   - 160px = mostra ~70% do banner
   - 140px = mostra ~75% do banner
   - 120px = mostra ~80% do banner
*/

/* OPÇÃO ALTERNATIVA: Mostrar 70% do banner (altura 160px) */
/*
@media (max-width: 767px) {
    .hero-carousel,
    .carousel-container,
    .carousel-slides,
    .carousel-slide,
    .carousel-image {
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
    }
}
*/

/* OPÇÃO ALTERNATIVA: Mostrar 75% do banner (altura 140px) */
/*
@media (max-width: 767px) {
    .hero-carousel,
    .carousel-container,
    .carousel-slides,
    .carousel-slide,
    .carousel-image {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }
}
*/

/* ========================================
   BLOCO 2: LINKS IMPORTANTES (4 CARDS)
   ======================================== */

.links-importantes {
    background-color: #ffffff;
    padding: 2.5rem 0; /* Reduzido de 4rem */
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* Reduzido de 2rem */
}

/* Card Base - MAIS COMPACTO */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding:  1.25rem; /* Reduzido de 2.5rem 1.5rem */
    background-color: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px; /* Reduzido de 16px */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
}

.link-card:hover {
    transform: translateY(-6px); /* Reduzido de -8px */
    box-shadow: 0 10px 20px rgba(166, 45, 46, 0.12); /* Sombra mais suave */
    border-color: #a62d2e;
    background: #ffffff;
}

/* Ícone do Card - MENOR */
.link-icon {
    width: 64px; /* Reduzido de 80px */
    height: 64px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Reduzido de 1.5rem */
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: linear-gradient(135deg, #a62d2e 0%, #7a2121 100%);
    transform: scale(1.08) rotate(3deg); /* Efeito mais sutil */
}

.link-icon svg {
    color: #a62d2e;
    transition: color 0.3s ease;
}

.link-card:hover .link-icon svg {
    color: #ffffff;
}

/* Título do Card - MENOR */
.link-card h3 {
    font-size: 1.1rem; /* Reduzido de 1.25rem */
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem; /* Reduzido de 0.75rem */
    line-height: 1.3;
    transition: color 0.3s ease;
}

.link-card:hover h3 {
    color: #a62d2e;
}

/* Descrição do Card - MENOR */
.link-card p {
    font-size: 0.875rem; /* Reduzido de 0.95rem */
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* ========================================
   RESPONSIVIDADE - LINKS IMPORTANTES
   ======================================== */

/* Tablet Grande (1024px - 1279px) */
@media (max-width: 1279px) {
    .links-importantes {
        padding: 2.5rem 0;
    }
    
    .links-grid {
        gap: 1.25rem;
    }
    
    .link-card {
        padding: 1.5rem 1rem;
    }
    
    .link-icon {
        width: 60px;
        height: 60px;
    }
    
    .link-card h3 {
        font-size: 1.05rem;
    }
    
    .link-card p {
        font-size: 0.85rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .links-importantes {
        padding: 2.5rem 0;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .link-card {
        padding: 1.5rem 1.25rem;
    }
    
    .link-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.7rem;
    }
    
    .link-card h3 {
        font-size: 1.05rem;
    }
    
    .link-card p {
        font-size: 0.85rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .links-importantes {
        padding: 2rem 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-card {
        padding: 1.5rem 1.25rem;
    }
    
    .link-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 0.5rem;
    }
    
    .link-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .link-card p {
        font-size: 0.85rem;
    }
}

/* Mobile Pequeno (< 480px) */
@media (max-width: 479px) {
    .links-importantes {
        padding: 1.75rem 0;
    }
    
    .link-card {
        padding: 1.25rem 1rem;
    }
    
    .link-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0.5rem;
    }
    
    .link-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .link-card p {
        font-size: 0.8rem;
    }
}


/* ========================================
   BLOCO 3: SERVIÇOS (2 COLUNAS)
   Versão Atualizada - Espaçamento Reduzido
   ======================================== */

.servicos-home {
    background-color: #f9fafb;
    padding: 2.5rem 0;
}

.servicos-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* Coluna de Serviços */
.servicos-coluna-home {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.servicos-coluna-home:hover {
    box-shadow: 0 4px 12px rgba(166, 45, 46, 0.1);
}

/* Header da Coluna */
.servicos-header-home {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #a62d2e;
}

.servicos-header-home h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Lista de Serviços - ESPAÇAMENTO REDUZIDO */
.servicos-lista-home {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicos-lista-home li {
    margin-bottom: 0.5rem; /* REDUZIDO de 1rem para 0.5rem */
}

.servicos-lista-home li:last-child {
    margin-bottom: 0;
}

.servicos-lista-home a {
    display: flex;
    align-items: center;
    padding: 0.75rem; /* REDUZIDO de 1rem para 0.75rem */
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.servicos-lista-home a:hover {
    background-color: #fef2f2;
    color: #a62d2e;
    transform: translateX(4px);
}

/* Ícone do Serviço - MANTÉM COLORIDO (EMOJI) */
.servico-icon-home {
    font-size: 1.5rem; /* Tamanho do emoji */
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.servicos-lista-home a:hover .servico-icon {
    transform: scale(1.15);
}

/* Texto do Serviço */
.servico-texto-home {
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.servico-texto-home strong {
    font-weight: 600;
    color: #1f2937;
}

.servicos-lista-home a:hover .servico-texto strong {
    color: #a62d2e;
}

/* Footer da Coluna */
.servicos-footer-home {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.btn-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #a62d2e 0%, #7a2121 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(166, 45, 46, 0.2);
}

.btn-ver-mais:hover {
    background: linear-gradient(135deg, #7a2121 0%, #5a1919 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(166, 45, 46, 0.3);
}

/* ========================================
   RESPONSIVIDADE - SERVIÇOS
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .servicos-home {
        padding: 3rem 0;
    }
    
    .servicos-grid-home {
        gap: 2rem;
    }
    
    .servicos-coluna-home {
        padding: 1.75rem;
    }
    
    .servicos-header-home h2 {
        font-size: 1.3rem;
    }
    
    .servico-texto-home {
        font-size: 0.9rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .servicos-home {
        padding: 2.5rem 0;
    }
    
    .servicos-grid-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicos-coluna-home {
        padding: 15px;
    }
    
    .servicos-header-home {
        margin-bottom: 1.25rem;
    }
    
    .servicos-header-home h2 {
        font-size: 1.2rem;
    }
    
    .servicos-lista-home li {
        margin-bottom: 0.4rem; /* Ainda mais compacto no mobile */
    }
    
    .servicos-lista-home a {
        padding: 0.65rem;
        gap: 0.65rem;
    }
    
    .servico-icon-home {
        font-size: 1.35rem;
        width: 28px;
        height: 28px;
    }
    
    .servico-texto-home {
        font-size: 0.875rem;
    }
    
    .btn-ver-mais {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile Pequeno (< 480px) */
@media (max-width: 479px) {
    .servicos-home {
        padding: 20px 0;
    }
    
    .servicos-coluna-home {
        padding: 15px;
    }
    
    .servicos-header-home h2 {
        font-size: 1.1rem;
    }
    
    .servicos-lista-home li {
        margin-bottom: 0.35rem;
    }
    
    .servicos-lista-home a {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .servico-icon-home {
        font-size: 1.25rem;
        width: 26px;
        height: 26px;
    }
    
    .servico-texto-home {
        font-size: 0.85rem;
    }
}

/* ========================================
   BLOCO 4: NOTÍCIAS
   ======================================== */
.noticias {
    padding: 2.5rem 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.noticia-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.noticia-data {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.noticia-titulo {
    font-size: 20px;
    margin-bottom: 15px;
}

.noticia-titulo a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.noticia-titulo a:hover {
    color: var(--color-primary);
}

.noticia-resumo {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.noticia-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.noticia-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}

.noticias-footer {
    text-align: center;
    margin-top: 40px;
	margin-bottom: 30px;
}

.btn-ver-mais-noticias {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-ver-mais-noticias:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   BLOCO 5: UNIDADES
   ======================================== */
.unidades {
    padding: 2.5rem 0; /* Mantém padding superior e interno, mas prepara para colar no rodapé */
    margin-bottom: 0; /* REMOVE margem inferior */
    background-color: var(--color-bg-light);
}

.unidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.unidade-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.unidade-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.unidade-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.unidade-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.unidade-card:hover .unidade-imagem img {
    transform: scale(1.1);
}

.unidade-conteudo {
    padding: 30px;
}

.unidade-conteudo h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.unidade-conteudo p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.unidade-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.unidade-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(5px);
}


/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .carousel-container {
        height: 500px;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .unidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .carousel-container {
        height: 400px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .links-importantes {
        padding: 20px 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .link-card {
        padding: 8px 20px;
    }
    
    .servicos {
        padding: 40px 0;
    }
    
    .servicos-coluna {
        padding: 30px 20px;
    }
    
    .servicos-header h2 {
        font-size: 20px;
    }
    
    .noticias {
        padding: 20px 0;
    }

    .section-header  {
        margin-bottom: 20px;
    }
    
    
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
    margin-bottom: 30px;
}
    
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .unidades {
        padding: 20px 0;
    }
    
    .unidades-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile pequeno (< 480px) */
@media (max-width: 479px) {
    .carousel-container {
        height: 300px;
    }
    
    .banner-placeholder h2 {
        font-size: 32px;
    }
    
    .banner-placeholder p {
        font-size: 18px;
    }
    
    .link-card h3 {
        font-size: 18px;
    }
    
    .servico-texto {
        font-size: 14px;
    }
    
    .noticia-titulo {
        font-size: 18px;
    }
}



/* ========================================
   UTILITÁRIOS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sem-noticias {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
    font-size: 18px;
}

/* ========================================
   CORREÇÃO DEFINITIVA - MARGEM ENTRE UNIDADES E RODAPÉ
   ======================================== */

/*  Remove padding-bottom do main-content */
.main-content {
    padding-bottom: 0 !important;
	margin-bottom: 20px;
}

/* Remove margens da seção de unidades */
.unidades {
    margin-bottom: -20px !important;
    padding-bottom: 60px !important;
}

/* Remove TODAS as margens do rodapé */
footer,
.footer,
.site-footer,
.rodape,
.footer-ipsm {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove margens de containers internos */
.unidades .container,
.unidades-grid {
    margin-bottom: 0 !important;
}

/* Garante que não há espaço entre as seções */
section.unidades + footer,
section.unidades + .footer,
section.unidades + .site-footer,
section.unidades + .rodape,
section.unidades + .footer-ipsm {
    margin-top: 0 !important;
}

/* Mobile - ajusta padding para manter proporção */
@media (max-width: 767px) {
    .unidades {
        padding-bottom: 40px !important;
    }
}

@media (max-width: 479px) {
    .unidades {
        padding-bottom: 30px !important;
    }
}

/* ========================================
   BREADCRUMB (MIGALHAS DE PÃO)
   ======================================== */
.breadcrumb-container {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #a62d2e;
	padding-left: 40px;
}

.container.content-page-breadcrumb  {
    /* Usa o .container existente para largura máxima e padding */
    padding: 15px 0 !important;
}


@media (max-width: 767px) {
    /* Garante que não há padding lateral no mobile */
    .breadcrumb {
		padding-left: 0;
        font-size: 10px;
	}
    .container.content-page-breadcrumb  {
        /* Usa o .container existente para largura máxima e padding */
        padding: 10px 0 !important;
    }
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #a62d2e;
}

.breadcrumb .separator {
    color: #d1d5db;
}

.breadcrumb strong {
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 767px) {
  .breadcrumb strong {
    display: inline-block;
    max-width: 170px; /* ajuste conforme necessário */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
}


/* Estilos do Breadcrumb (Migalha de Pão) */
.breadcrumb-nav {
	margin-bottom: 30px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-nav li {
    display: inline;
}

.breadcrumb-nav li+li:before {
    padding: 0 8px;
    color: #999;
    content: "/";
}

.breadcrumb-nav li a {
    color: #a62d2e; /* Cor principal do site */
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav li a:hover {
    color: #7a2223;
    text-decoration: underline;
}

.breadcrumb-nav li.active {
    color: #333;
    font-weight: 500;
}



/* ========================================
   ESTILO PRINCIPAL DE TODAS AS PAGINAS
   ======================================== */

.content-page-wrapper {
    /* Usa o .container existente para largura máxima e padding */
    padding: 15px 0; /* Adiciona padding vertical para separar do header/footer */
}


/* Estilos da Área de Conteúdo Principal das paginas */
.content-main {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Sombra suave para efeito "card" */
}

/* Estilo padrão para links */
.content-main a {
  color: #111;
  text-decoration: none;
}

/* Quando o link já foi visitado */
.content-main:visited {
  color: #111;
}

/* Quando o mouse passa por cima do link */
.content-main a:hover{
  color: #a62d2e;
  text-decoration: none;
}

/* Ajuste das imagens para modo responsivo */

.content-main img {
  max-width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 767px) {
  .content-main img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
}

/* ========================================
   PÁGINA CONTEUDO
   ======================================== */

/* Estilos do Título Principal (H1) */
.content-title {
    color: #a62d2e; /* Cor principal do site */
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    border-bottom: 3px solid #a62d2e;
    padding-bottom: 15px;
}

/* Estilos do Detalhe do Conteúdo */
.content-detail {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}


.content-detail p {
    margin-bottom: 20px;
}

/* Estilos para subtítulos dentro do conteúdo */
.content-detail h2 {
    color: #374151; /* Cor secundária escura */
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    border-left: 4px solid #a62d2e;
    padding-left: 10px;
}

.content-detail h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}



/* Estilos para listas */
.content-detail ul,
.content-detail ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-detail li {
    margin-bottom: 8px;
}

/* Estilos para blockquotes (citações) */
.content-detail blockquote {
    border-left: 4px solid #a62d2e;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
    background-color: #fef3f2; /* Fundo suave relacionado à cor principal */
    padding: 15px 20px;
    border-radius: 4px;
}

/* Estilos para tabelas */
.content-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-detail table th {
    background-color: #a62d2e;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.content-detail table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.content-detail table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.content-detail table tr:hover {
    background-color: #f5f5f5;
}

/* Responsividade */
@media (max-width: 768px) {
    .content-main {
        padding: 12px;
    }

    .content-title {
        font-size: 1.4rem;
    }

    .content-detail {
        font-size: 15px;
    }
}

/* Estilos específicos para a página Promorar Militar */


/* Título da Seção */
.promorar-section-title {
    font-size: 1.3rem !important;
    color: #a62d2e; /* Cor de destaque do seu CSS */
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 10px;
    border-left: 2px solid #a62d2e;
    border-radius: 5px;
    
}

/* Grid para os Cards */
.promorar-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsivo com cards de no mínimo 300px */
    gap: 2rem; /* Espaçamento entre os cards */
}

/* Estilos internos do Card para melhor visualização */
/* Aumentando a especificidade para garantir que estes estilos prevaleçam */
a.promorar-linkcard {  
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px; /* Altura mínima para padronizar */
    display: flex ;
    background-color: #f9fafb;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-grow: 1; /* Faz o link ocupar o máximo de espaço */
    color: #444 !important;
}

a.promorar-linkcard:hover {
    /* Mantendo o hover do card */
    color: #a62d2e;
    transform: translateY(-4px);   
    box-shadow: 0 5px 10px rgba(166, 45, 46, 0.12); /* Sombra mais suave */
    border-color: #a62d2e; /* Cor de destaque no hover */
    background-color: #fff;
}

a.promorar-linkcard span.promorar-title {
    font-size: 1.0rem;
    font-weight: bold;
    color: #444; /* Título em destaque */
    /* Forçando a cor para o caso de um estilo de link mais genérico estar afetando o span */
}

a.promorar-linkcard span.promorar-details {
    font-size: 0.9rem;
    color: #444;
    flex-grow: 1; /* Faz o detalhe ocupar o espaço restante */
    margin-bottom: 0.2rem;
    /* Forçando a cor para o caso de um estilo de link mais genérico estar afetando o span */
    font-weight:normal !important;
}

a.promorar-linkcard span.promorar-file-info {
    font-size: 0.7rem;
    color: #444;
    text-align: right;
    font-weight: 500;
    
    /* Forçando a cor para o caso de um estilo de link mais genérico estar afetando o span */
}

/* Ajuste de hover para o card */
a.promorar-linkcard:hover span.promorar-title {
    color: #7f1d1d !important; /* Cor mais escura no hover */
}

/* Media Query para telas menores */
@media (max-width: 768px) {
    .promorar-cards-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
        gap: 1rem; /* Espaçamento entre os cards */
    }
    a.promorar-linkcard {  
    padding: 0.8rem;
    }
   .promorar-section-title {
        font-size: 1.2rem !important;
    }
    a.promorar-linkcard span.promorar-title {
    font-size: 0.9rem;
    }
    a.promorar-linkcard span.promorar-details {
    font-size: 0.8rem;
    }
    a.promorar-linkcard span.promorar-file-info {
    font-size: 0.6rem;
    }

}

/* CSS para o Banner de Cookies (Adicionar na sua folha de estilo) */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Cor avermelhada com transparência (Firebrick com 90% de opacidade) */
    background-color: rgba(17, 17, 17, 0.8); 
    color: #ffffff;
    padding: 15px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    
}

.cookies-banner.cookies-hidden {
    transform: translateY(100%);
    display: none; /* Usamos display: none para garantir que não ocupe espaço antes da transição */
}

.cookies-banner-text {
    margin: 0;
    flex-grow: 1;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.7;
    padding-right: 25px; /* Espaço entre o texto e o botão */
}

/* Regras de visibilidade para Desktop (WEB) */
.cookies-text-web {
    display: inline; /* Visível por padrão (Desktop) */
}

.cookies-text-mobile {
    display: none; /* Oculto por padrão (Desktop) */
}

.cookies-link {
    color: #f0f0f0; /* Cor do link mais clara */
    text-decoration: underline;
    font-weight: bold;
}

.cookies-link:hover {
    color: #db5757;
    text-decoration: underline;
}

.cookies-accept-btn {
    background-color: #ffffff;
    color: #a62d2e;/* Cor do texto do botão combinando com o banner */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    min-width: 100px;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0; /* Impede que o botão encolha */
}

.cookies-accept-btn:hover {
    background-color: #a62d2e; /* Um toque de amarelo para modernidade */
    transform: translateY(-1px);
    color:#fff;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    /* Regras de visibilidade para Mobile */
    .cookies-text-web {
        display: none; /* Oculta o texto WEB em Mobile */
    }

    .cookies-text-mobile {
        display: inline; /* Exibe o texto Mobile em Mobile */
    }

    .cookies-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .cookies-banner-text {
        padding-right: 0;
        margin-bottom: 15px;
        font-size: 13px;
    }

    .cookies-accept-btn {
        width: 100%;
        max-width: 300px;
        padding: 10px 10px;
    }
}