 /* ===== VARIÁVEIS ===== */
 :root {
     --vermelho: #E30613;
     --azul: #005CA9;
     --amarelo: #FFC72C;
     --branco: #FFFFFF;
     --cinza: #F5F5F5;
     --cinza-escuro: #333333;
     --sombra: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

 /* ===== RESET ===== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Arial, sans-serif;
     color: var(--cinza-escuro);
     background: var(--cinza);
     line-height: 1.6;
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 img {
     max-width: 100%;
 }

 /* ===== LAYOUT ===== */
 .container {
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 15px;
 }

 /* ===== HEADER ===== */
 header {
     background: var(--branco);
     box-shadow: var(--sombra);
     padding: 15px 0;
     position: sticky;
     top: 0;
     z-index: 100;
 }

 .logo img {
     height: 125px;
 }

 .main-nav ul {
     display: flex;
     list-style: none;
 }

 .main-nav li {
     margin-right: 20px;
 }

 .main-nav a {
     font-weight: 600;
     padding: 5px 0;
     position: relative;
     display: flex;
     align-items: center;
     gap: 5px;
 }

 .main-nav a.active {
     color: var(--vermelho);
 }

 .main-nav a.active::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 2px;
     background: var(--vermelho);
 }

 .user-actions {
     display: flex;
     gap: 15px;
 }

 .btn-login {
     color: var(--cinza-escuro);
     font-weight: 600;
 }

 .btn-anunciar {
     background: var(--vermelho);
     color: var(--branco);
     padding: 8px 15px;
     border-radius: 4px;
     font-weight: 600;
 }

 /* ===== HERO SECTION ===== */
 .hero {
     position: relative;
     height: 80vh;
     min-height: 500px;
     background-image: url('../img/hero.jpeg');
     background-size: cover;
     background-repeat: no-repeat;
     background-position: center;
     color: white;
     display: flex;
     align-items: center;
     overflow: hidden;
 }

 .hero-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.4);
     /* Adicione uma leve camada escura para melhorar a leitura do texto */
     display: flex;
     justify-content: flex-start;
     /* Alinha o conteúdo à esquerda */
     align-items: center;
     padding: 0;
     /* Remove padding padrão do overlay */
 }

 .hero-container-inner {
     display: flex;
     /* coloca o conteúdo em linha */
     justify-content: flex-start;
     align-items: flex-start;
     padding-left: 2rem;
     /* opcional: respiro à esquerda */
 }

 .hero-content-desktop {
     max-width: 580px;
     /* evita ficar largo demais */
 }

 .hero-content-left {
     max-width: 50%;
     /* Limita a largura do conteúdo da busca */
 }

 .hero-content {
     text-align: left;
     margin-left: 0;
     margin-right: 0;
 }

 .hero-title,
 .hero-subtitle {
     text-align: left;
 }

 .hero-title {
     font-size: 3rem;
     font-weight: 700;
     margin-bottom: 1rem;
     line-height: 1.2;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
 }

 .hero-highlight {
     color: #FFD700;
     /* Dourado para destaque */
     font-weight: 800;
 }

 .hero-subtitle {
     font-size: 1.5rem;
     margin-bottom: 2.5rem;
     opacity: 0.9;
     font-weight: 300;
 }

 /* Search Bar Moderna */
 .hero-search {
     background: white;
     border-radius: 8px;
     padding: 1.5rem;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     margin-left: 0;
 }

 .search-input-group {
     display: flex;
     margin-bottom: 1rem;
 }

 .search-input {
     flex: 1;
     padding: 1rem;
     border: 2px solid #e0e0e0;
     border-radius: 6px 0 0 6px;
     font-size: 1rem;
     outline: none;
     transition: border 0.3s;
 }

 .search-input:focus {
     border-color: #E30613;
     /* Vermelho do Morro Doce */
 }

 .search-button {
     background: #E30613;
     color: white;
     border: none;
     padding: 0 1.5rem;
     border-radius: 0 6px 6px 0;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s;
 }

 .search-button:hover {
     background: #C00511;
 }

 .search-filters {
     display: flex;
     gap: 1rem;
 }

 .search-select {
     flex: 1;
     padding: 0.8rem;
     border: 2px solid #e0e0e0;
     border-radius: 6px;
     font-size: 0.9rem;
     color: #555;
 }

 /* Responsivo */
 @media (max-width: 768px) {

     .search-input-group {
         flex-direction: column;
     }



     .search-input {
         border-radius: 6px;
         margin-bottom: 0.5rem;
     }

     .search-button {
         border-radius: 6px;
         padding: 0.8rem;
     }

     .search-filters {
         flex-direction: column;
         gap: 0.5rem;
     }

     /* Ajusta a altura da seção no celular para não ocupar a tela inteira */
     .hero {
         height: 70vh;
         min-height: 450px;
         background-position: center center;
     }

     /* Altera o layout de duas colunas para uma única coluna centralizada */
     .hero-container-grid {
         flex-direction: column;
         justify-content: center;
         text-align: center;
     }

     /* Centraliza o conteúdo da busca e ajusta a largura */
     .hero-content-left {
         flex-basis: 100%;
         max-width: 500px;
         /* Limita a largura da caixa de busca */
         margin: 0 auto;
         /* Centraliza na tela */
     }

     /* Esconde a chamada da revista no celular para um visual mais limpo */
     .hero-content-right {
         display: none;
     }

     /* Ajusta o tamanho do título e subtítulo no mobile */
     .hero-title {
         font-size: 2.2rem;
     }

     .hero-subtitle {
         font-size: 1.2rem;
     }
 }

 /* ===== SEARCH FORM ===== */
 .search-form {
     max-width: 800px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 2fr 2fr 1fr;
     gap: 10px;
 }

 .search-form input,
 .search-form select {
     padding: 12px 15px;
     border: none;
     border-radius: 4px;
     font-size: 1rem;
 }

 .search-form button {
     background: var(--vermelho);
     color: var(--branco);
     border: none;
     border-radius: 4px;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s;
 }

 .search-form button:hover {
     background: #C00511;
 }

 /* ===== CATEGORIAS ===== */
 .categorias {
     padding: 50px 0;
     background: var(--branco);
 }

 .categorias-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     gap: 15px;
     margin-top: 30px;
 }

 .categoria-card {
     background: var(--cinza);
     padding: 20px;
     border-radius: 8px;
     text-align: center;
     transition: transform 0.3s;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 10px;
 }

 .categoria-card:hover {
     transform: translateY(-5px);
     box-shadow: var(--sombra);
 }

 .categoria-card .icone {
     font-size: 2rem;
 }

 .categoria-card .nome {
     font-weight: 600;
 }

 /* ===== DESTAQUES ===== */
 .destaques {
     padding: 50px 0;
 }

 .destaques-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 20px;
     margin-top: 30px;
 }

 .destaque-card {
     background: var(--branco);
     border-radius: 8px;
     overflow: hidden;
     box-shadow: var(--sombra);
 }

 .destaque-card .imagem {
     height: 180px;
     background-size: cover;
     background-position: center;
 }

 .destaque-card .info {
     padding: 15px;
 }

 .destaque-card h3 {
     margin-bottom: 5px;
     font-size: 1.1rem;
 }

 .destaque-card .categoria {
     color: var(--vermelho);
     font-size: 0.9rem;
     font-weight: 600;
 }

 /* ===== FOOTER ===== */
 footer {
     background: var(--cinza-escuro);
     color: var(--branco);
 }

 .footer-top {
     padding: 50px 0;
 }

 .footer-col {
     margin-bottom: 30px;
 }

 .footer-col h3 {
     margin-bottom: 20px;
     font-size: 1.2rem;
 }

 .footer-col ul {
     list-style: none;
 }

 .footer-col li {
     margin-bottom: 10px;
 }

 .footer-col a:hover {
     color: var(--amarelo);
 }

 .social-links {
     display: flex;
     gap: 15px;
     margin-top: 20px;
 }

 .social-links a {
     font-size: 1.2rem;
 }

 .footer-bottom {
     background: #222;
     padding: 15px 0;
     text-align: center;
     font-size: 0.9rem;
 }

 /* ===== RESPONSIVO ===== */
 @media (max-width: 992px) {
     .container {
         flex-direction: column;
     }

     .main-nav ul {
         margin: 20px 0;
     }

     .search-form {
         grid-template-columns: 1fr;
     }

     .footer-col {
         margin-bottom: 30px;
     }
 }

 /* ===== HEADER PROFISSIONAL ===== */
 .site-header {
     background: #fff;
     box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
     position: sticky;
     top: 0;
     z-index: 1000;
     border-bottom: 1px solid #f0f0f0;
 }

 .header-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 2rem;
     height: 70px;
     max-width: 1400px;
     margin: 0 auto;
 }

 .logo-container {
     display: flex;
     align-items: center;
 }

 .logo-full {
     height: 30px;
     width: auto;
 }

 .logo-icon {
     display: none;
     height: 32px;
 }

 /* Navegação principal */
 .main-navigation {
     /* Esta propriedade faz o container da navegação expandir e ocupar o espaço vago no centro */
     flex-grow: 1;
 }

 /* Lista de itens do menu */
 .nav-list {
     display: flex;
     /* Esta propriedade centraliza os itens do menu (Home, Notícias, etc.) dentro do container expandido */
     justify-content: center;
     list-style: none;
     margin: 0;
     padding: 0;
     gap: 1rem;
     /* Adiciona um espaço entre os itens do menu */
 }

 .nav-item {
     position: relative;
     margin: 0 0.8rem;
 }

 .nav-link {
     display: flex;
     align-items: center;
     padding: 0.8rem 0;
     color: #333;
     font-weight: 500;
     font-size: 0.95rem;
     transition: color 0.2s;
 }

 .nav-link:hover {
     color: #E30613;
 }

 .nav-link.active {
     color: #E30613;
     font-weight: 600;
 }

 .nav-link.active::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 2px;
     background: #E30613;
 }

 .dropdown-menu {
     position: absolute;
     top: 100%;
     left: 50%;
     transform: translateX(-50%);
     background: #fff;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     border-radius: 0 0 6px 6px;
     opacity: 0;
     visibility: hidden;
     transition: all 0.2s;
     min-width: 180px;
     z-index: 100;
 }

 .dropdown:hover .dropdown-menu {
     opacity: 1;
     visibility: visible;
 }

 .dropdown-item {
     display: block;
     padding: 0.6rem 1.2rem;
     color: #555;
     font-size: 0.9rem;
     transition: all 0.2s;
 }

 .dropdown-item:hover {
     background: #f9f9f9;
     color: #E30613;
     padding-left: 1.4rem;
 }

 .user-actions {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .btn-anunciar {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     background: #E30613;
     color: white;
     padding: 0.5rem 1rem;
     border-radius: 4px;
     font-size: 0.9rem;
     font-weight: 500;
     transition: background 0.2s;
 }

 .btn-anunciar:hover {
     background: #C00511;
 }

 .user-toggle {
     background: none;
     border: none;
     color: #555;
     font-size: 1.4rem;
     cursor: pointer;
     transition: color 0.2s;
 }

 .user-toggle:hover {
     color: #E30613;
 }

 .user-dropdown {
     position: absolute;
     right: 0;
     top: 100%;
     background: #fff;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     border-radius: 6px;
     padding: 0.5rem 0;
     min-width: 180px;
     opacity: 0;
     visibility: hidden;
     transition: all 0.2s;
 }

 .user-menu:hover .user-dropdown {
     opacity: 1;
     visibility: visible;
 }

 .user-dropdown-item {
     display: block;
     padding: 0.6rem 1.2rem;
     color: #555;
     font-size: 0.9rem;
     transition: all 0.2s;
 }

 .user-dropdown-item:hover {
     background: #f9f9f9;
     color: #E30613;
 }

 .dropdown-divider {
     height: 1px;
     background: #eee;
     margin: 0.5rem 0;
 }

 .mobile-menu-toggle {
     display: none;
     background: none;
     border: none;
     font-size: 1.4rem;
     color: #333;
     cursor: pointer;
 }

 /* ===== FOOTER PROFISSIONAL ===== */
 .site-footer {
     background: #2B2D42;
     color: #EDF2F4;
     padding: 2rem 0 1rem;
     font-size: 0.9rem;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 .footer-content {
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 2rem;
 }

 .footer-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 0;
     border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 }

 .footer-row:last-child {
     border-bottom: none;
 }

 .footer-brand {
     display: flex;
     align-items: center;
     gap: 1.5rem;
 }

 .footer-logo {
     height: 24px;
     opacity: 0.9;
 }

 .copyright {
     color: rgba(237, 242, 244, 0.7);
     font-size: 0.85rem;
 }

 .footer-links {
     display: flex;
     gap: 3rem;
 }

 .links-column {
     list-style: none;
     min-width: 160px;
 }

 .link-header {
     color: white;
     font-weight: 600;
     margin-bottom: 0.8rem;
     font-size: 0.95rem;
 }

 .links-column a {
     display: block;
     padding: 0.3rem 0;
     color: rgba(237, 242, 244, 0.7);
     transition: color 0.2s;
 }

 .links-column a:hover {
     color: white;
 }

 .footer-social {
     display: flex;
     gap: 1rem;
 }

 .social-link {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 32px;
     height: 32px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.1);
     color: white;
     transition: all 0.2s;
 }

 .social-link:hover {
     background: #E30613;
     transform: translateY(-2px);
 }

 .footer-seals {
     display: flex;
     gap: 1rem;
 }

 .seal {
     height: 32px;
     width: auto;
     opacity: 0.8;
     transition: opacity 0.2s;
 }

 .seal:hover {
     opacity: 1;
 }

 /* ===== RESPONSIVO ===== */
 @media (max-width: 992px) {
     .main-navigation {
         display: none;
     }

     .mobile-menu-toggle {
         display: block;
     }

     .footer-links {
         flex-wrap: wrap;
         gap: 1.5rem;
     }

     .footer-row {
         flex-direction: column;
         text-align: center;
         gap: 1rem;
         padding: 1.5rem 0;
     }

     .footer-brand {
         flex-direction: column;
         gap: 0.5rem;
     }
 }

 @media (max-width: 576px) {
     .header-container {
         padding: 0 1rem;
     }

     .logo-full {
         display: none;
     }

     .logo-icon {
         display: block;
     }

     .btn-anunciar span {
         display: none;
     }
 }

 .mensagem-vazia {
     text-align: center;
     font-size: 1.2rem;
     color: #888;
     margin: 2rem 0;
 }

 /* assets/css/style.css */

 .categoria-card .icone {
     font-size: 2.5rem;
     /* Ajuste o tamanho conforme necessário */
     color: var(--vermelho);
     /* Usa a variável de cor vermelha que já existe */
     margin-bottom: 10px;
     /* Adiciona um espaço abaixo do ícone */
 }

 /* ===== ESTILOS DO PAINEL ADMINISTRATIVO ===== */

 /* Barra de Navegação do Admin */
 .admin-nav-bar {
     background-color: #f8f9fa;
     padding: 0.5rem 0;
     border-bottom: 1px solid #dee2e6;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
 }

 .admin-nav-bar ul {
     display: flex;
     justify-content: center;
     list-style: none;
     margin: 0;
     padding: 0;
     gap: 1rem;
 }

 .admin-nav-bar a {
     padding: 0.8rem 1rem;
     color: #495057;
     font-weight: 500;
     border-radius: 6px;
     display: flex;
     align-items: center;
     gap: 8px;
     transition: all 0.2s ease-in-out;
 }

 .admin-nav-bar a:hover {
     background-color: #e9ecef;
     color: #000;
 }

 .admin-nav-bar li.active a {
     background-color: var(--vermelho);
     color: var(--branco);
 }

 /* Conteúdo do Painel */
 .admin-wrapper {
     padding: 3rem 0;
     background-color: #f8f9fa;
     /* Fundo cinza claro para o conteúdo do admin */
     min-height: 70vh;
 }

 /* Cards do Painel */
 .admin-card {
     background: var(--branco);
     border-radius: 8px;
     padding: 2rem;
     box-shadow: var(--sombra);
     margin-bottom: 2rem;
 }

 .admin-card-header {
     font-size: 1.5rem;
     font-weight: 600;
     padding-bottom: 1rem;
     margin-bottom: 1.5rem;
     border-bottom: 1px solid #eee;
 }

 /* Estatísticas do Dashboard */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
     gap: 1.5rem;
 }

 .stat-card {
     background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
     padding: 1.5rem;
     border-radius: 8px;
     border: 1px solid #e9ecef;
     text-align: center;
 }

 .stat-card i {
     font-size: 2.5rem;
     color: var(--vermelho);
     margin-bottom: 1rem;
 }

 .stat-card .stat-number {
     font-size: 2.2rem;
     font-weight: bold;
     display: block;
     color: var(--cinza-escuro);
 }

 .stat-card .stat-label {
     font-size: 1rem;
     color: #6c757d;
 }

 /* Tabelas e Formulários do Admin */
 .admin-table {
     width: 100%;
     border-collapse: collapse;
     margin-top: 1.5rem;
 }

 .admin-table th,
 .admin-table td {
     border: 1px solid #ddd;
     padding: 12px;
     text-align: left;
     vertical-align: middle;
 }

 .admin-table th {
     background-color: #f2f2f2;
 }

 .admin-table .actions a {
     margin-right: 10px;
     font-size: 1.1rem;
 }

 .admin-table img {
     max-width: 100px;
     height: auto;
 }

 .admin-form {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
 }

 .admin-form input,
 .admin-form button {
     padding: 10px;
     border: 1px solid #ccc;
     border-radius: 4px;
 }

 .admin-form button {
     background: var(--vermelho);
     color: white;
     cursor: pointer;
     border: none;
 }

 /* ===== ESTILOS PARA AS NOVAS SEÇÕES DA HOME ===== */
 .latest-section {
     padding: 50px 0;
 }

 .section-bg-gray {
     background-color: #f8f9fa;
 }

 .section-title {
     text-align: center;
     font-size: 2rem;
     margin-bottom: 40px;
     font-weight: 700;
 }

 .grid-4 {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
     gap: 20px;
 }

 .grid-3 {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 30px;
 }

 /* Card Pequeno para Comércios */
 .commerce-card-small {
     display: block;
     background: var(--branco);
     border-radius: 8px;
     overflow: hidden;
     box-shadow: var(--sombra);
     transition: transform 0.3s, box-shadow 0.3s;
 }

 .commerce-card-small:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
 }

 .commerce-card-small .card-image {
     height: 160px;
     background-size: cover;
     background-position: center;
 }

 .commerce-card-small .card-info {
     padding: 15px;
 }

 .commerce-card-small h3 {
     margin: 0 0 5px;
     font-size: 1.1rem;
     color: var(--cinza-escuro);
 }

 .commerce-card-small .card-category {
     font-size: 0.85rem;
     color: var(--vermelho);
     font-weight: 600;
 }

 /* Card Pequeno para Notícias */
 .news-card-small {
     display: block;
     text-decoration: none;
 }

 .news-card-small .card-image {
     height: 200px;
     border-radius: 8px;
     background-size: cover;
     background-position: center;
     margin-bottom: 1rem;
 }

 .news-card-small .card-info .card-date {
     font-size: 0.8rem;
     color: #888;
     margin-bottom: 0.5rem;
 }

 .news-card-small .card-info h3 {
     font-size: 1.2rem;
     line-height: 1.4;
     color: var(--cinza-escuro);
 }

 /* Card Pequeno para Revistas */
 .magazine-card-small {
     display: block;
     text-align: center;
 }

 .magazine-card-small img {
     width: 100%;
     max-width: 250px;
     height: auto;
     border-radius: 4px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     transition: transform 0.3s;
     margin-bottom: 1rem;
 }

 .magazine-card-small:hover img {
     transform: scale(1.05);
 }

 .magazine-card-small h3 {
     font-size: 1.1rem;
     color: var(--cinza-escuro);
 }

 /* ============================================= */
 /* ===== ESTILOS DO LOGO RESPONSIVO ===== */
 /* ============================================= */

 /* Por padrão, em telas grandes, o ícone do logo fica escondido */
 /* Quando a tela for menor que 768px (tablets e celulares) */
 @media (max-width: 768px) {

     /* Esconde o logo completo */
     .logo .logo-full {
         display: none;
     }

     /* Exibe o ícone do logo */
     .logo .logo-icon {
         display: block;
         height: 35px;
         /* Altura do ícone no modo mobile */
         width: auto;
     }
 }

 /* ============================================= */
 /* ===== SEÇÃO DE BUSCA MOBILE ===== */
 /* ============================================= */

 .mobile-search-section {
     display: none;
 }

 /* Quando a tela for menor que 992px (mobile) */
 @media (max-width: 992px) {

     /* Esconde conteúdo do banner no desktop */
     .hero-content-desktop {
         display: none;
     }

     /* Ajusta altura do banner no mobile */
     .hero {
         height: 40vh;
         /* Altura menor, já que não tem texto */
         min-height: 250px;
     }

     /* Mostra a nova seção de busca no mobile */
     .mobile-search-section {
         display: block;
         padding: 2.5rem 0;
         background-color: #f8f9fa;
         text-align: center;
     }

     /* Ajuste de cores para fundo claro */
     .mobile-search-section .hero-title {
         color: var(--cinza-escuro);
     }

     .mobile-search-section .hero-highlight {
         color: var(--vermelho);
     }

     .mobile-search-section .hero-subtitle {
         color: #6c757d;
     }
 }

 /* ============================================= */
 /* ===== AJUSTES DO HEADER NO MOBILE ===== */
 /* ============================================= */

 @media (max-width: 992px) {

     /* Garante que não vaze lateralmente */
     html,
     body {
         overflow-x: hidden;
         max-width: 100%;
     }

     .header-container {
         display: flex;
         flex-wrap: wrap;
         align-items: center;
         padding: 0.8rem 1rem;
         height: auto;
         width: 100%;
         box-sizing: border-box;
     }

     /* Primeira linha */
     .logo-container,
     .user-actions {
         flex-basis: 50%;
         max-width: 50%;
     }

     /* Segunda linha - menu */
     .main-navigation {
         flex-basis: 100%;
         order: 3;
         display: block !important;
         /* garante que apareça */
         padding-top: 0.8rem;
         width: 100%;
     }

     .nav-list {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         gap: 1rem;
         margin: 0;
         padding: 0 0.5rem;
         box-sizing: border-box;
         max-width: 100%;
     }

     .nav-item {
         list-style: none;
         flex: 1 1 auto;
         max-width: 45%;
         /* dois links por linha no mobile */
         text-align: center;
     }

     .nav-link {
         display: block;
         font-size: 0.9rem;
         padding: 0.5rem;
         color: inherit;
         text-decoration: none;
         word-break: break-word;
     }

     .nav-link.active::after {
         display: none;
     }
 }

 /* ============================================= */
 /* ===== ESTILO PADRÃO PARA PÁGINAS INSTITUCIONAIS ===== */
 /* Vale para: Sobre, Termos de Uso e Política de Privacidade */
 /* ============================================= */

 .page-content {
     max-width: 1100px;
     margin: 2rem auto;
     padding: 0 1rem;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     color: #333;
     line-height: 1.7;
 }

 /* Títulos principais */
 .page-content h1 {
     font-size: 2rem;
     margin-bottom: 1rem;
     color: #d62828;
     font-weight: 700;
     border-bottom: 3px solid #d62828;
     padding-bottom: 0.3rem;
 }

 /* Subtítulos */
 .page-content h3 {
     font-size: 1.3rem;
     margin-top: 2rem;
     margin-bottom: 0.8rem;
     color: #444;
     font-weight: 600;
 }

 /* Parágrafos */
 .page-content p {
     margin-bottom: 1rem;
     font-size: 1.05rem;
 }

 /* Listas */
 .page-content ul {
     margin-left: 1.5rem;
     margin-bottom: 1.5rem;
 }

 .page-content ul li {
     margin-bottom: 0.5rem;
     font-size: 1.05rem;
 }

 /* Links */
 .page-content a {
     color: #d62828;
     text-decoration: none;
     font-weight: 600;
 }

 .page-content a:hover {
     text-decoration: underline;
 }

 /* Negrito */
 .page-content strong {
     color: #222;
 }

 /* Responsivo */
 @media (max-width: 768px) {
     .page-content {
         padding: 0 0.8rem;
     }

     .page-content h1 {
         font-size: 1.6rem;
     }

     .page-content h3 {
         font-size: 1.2rem;
     }
 }
 /* --- ESTILOS PARA O CARROSSEL E CAIXA DE BUSCA --- */

/* Carrossel Principal */
.main-carousel {
    width: 100%;
    height: 60vh; /* Altura do carrossel - ajuste conforme necessário */
    min-height: 400px;
    max-height: 550px;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    display: flex;
    align-items: flex-end; /* Alinha o conteúdo na parte de baixo */
    padding: 2rem;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.slide-type {
    background-color: #d62828; /* Cor destaque */
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-category {
    font-size: 1rem;
    opacity: 0.9;
}

/* Setas e Paginação do Swiper */
.swiper-button-prev, .swiper-button-next {
    color: #fff;
}
.swiper-pagination-bullet-active {
    background-color: #fff;
}

/* Caixa de Busca */
.search-box-area {
    background-color: #f8f9fa; /* Um cinza claro */
    padding: 2rem 0;
    margin-top: -50px; /* Efeito de sobreposição sobre a parte de baixo do carrossel */
    position: relative;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.search-box-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.search-box-title, .hero-highlight {
    color: #333; /* Ajusta a cor do texto para a caixa branca */
}
.hero-highlight {
    color: #d62828; /* Mantém a cor da palavra destaque */
}

.search-box-subtitle {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-carousel {
        height: 50vh;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .search-box-area {
        margin-top: 0;
        border-radius: 0;
    }
}
/* BOTÃO WHATSAPP FLUTUANTE — fix */
.whatsapp-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 9999;
}
.whatsapp-float:hover{ background:#1ebe57; }
.whatsapp-float svg{
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}
@media (max-width:480px){
  .whatsapp-float{ right:12px; bottom:12px; width:52px; height:52px; }
  .whatsapp-float svg{ width:26px; height:26px; }
}
