/*
Theme Name: Dobre
Theme URI: https://aralmoreira.ms.gov.br/
Description: Tema integrado à IA Dobre, focado em performance, acessibilidade e UX para instituições públicas.
Author: Gemini
Author URI: https://github.com/regisciarama-code/prefeitura-aralmoreira-wp
Template: hello-elementor
Version: 1.0.5
Text Domain: dobre
*/

:root {
  /* Colors */
  --color-primary: #0B5B3A; /* Verde institucional Aral Moreira */
  --color-primary-light: #128253;
  --color-primary-dark: #063622;
  --color-secondary: #E31B23; /* Vermelho detalhe */
  --color-bg-light: #F4F6F8;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

/* Base Styles */
body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

/* Accessibility Top Bar */
.top-bar {
  background-color: #f1f1f1;
  font-size: 0.85rem;
  padding: 4px 0;
  position: relative;
}
.top-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -50vw; right: -50vw; bottom: 0;
  background-color: #f1f1f1;
  z-index: -1;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar-links a {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar-links a:hover {
  color: var(--color-primary);
}

/* Main Header */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: -50vw; right: -50vw; bottom: 0;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: -1;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* Removido totalmente para abraçar a logo grande */
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 75px;
  max-height: 75px;
  width: auto;
  object-fit: contain;
}

.logo-dark {
  display: none;
}

/* Transparent Header for Home Page */
body.home .site-header:not(.scrolled) {
  background-color: transparent !important;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  box-shadow: none;
}
body.home .site-header:not(.scrolled)::before {
  display: none;
}
body.home .site-header:not(.scrolled) .top-bar-links a,
body.home .site-header:not(.scrolled) .primary-menu > li > a,
body.home .site-header:not(.scrolled) .primary-menu > li > a i,
body.home .site-header:not(.scrolled) .header-search-btn {
  color: #ffffff !important;
}
body.home .site-header:not(.scrolled) .mobile-menu-toggle {
  color: #ffffff !important;
}
body.home .site-header:not(.scrolled) .logo-normal {
  display: none !important;
}
body.home .site-header:not(.scrolled) .logo-dark {
  display: block !important;
}

.site-logo-text {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
}

.site-logo-text .title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
  text-transform: uppercase;
}

.site-logo-text .subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push menu to the right slightly if needed, or leave to flow naturally */
}

.primary-menu {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li a {
  color: var(--color-text-main);
  font-weight: 400; /* Removido o negrito para deixar a fonte fina */
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: var(--spacing-sm);
  border-radius: 4px;
}

.primary-menu li a:hover {
  background-color: rgba(0, 123, 101, 0.05);
  color: var(--color-primary);
}

.header-search-btn, .header-voice-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
  padding: var(--spacing-sm);
  border-radius: 50%;
  transition: background var(--transition-speed), color 0.2s;
}

.header-voice-btn {
  color: #ff4757;
}

.header-search-btn:hover {
  background: rgba(0,123,101,0.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: -50vw; right: -50vw; bottom: 0;
  background-color: var(--color-primary);
  z-index: -1;
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.newsletter-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-text h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.newsletter-text p {
  margin: 0;
  font-style: italic;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
  outline: none;
  font-family: var(--font-main);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form button {
  padding: 10px 24px;
  background-color: rgba(255,255,255,0.2);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-speed);
}

.newsletter-form button:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  align-items: flex-start;
}

@media (max-width: 992px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.footer-widget h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-widget p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 4px 0;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.footer-widget a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Mapa do Site */
.footer-sitemap-list,
.footer-sitemap-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap-list > li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-sitemap-list ul {
  padding-left: 15px;
  margin-top: 4px;
}

.footer-sitemap-list ul li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.footer-bottom {
  background-color: var(--color-primary-dark);
  padding: var(--spacing-md) 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.9);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 992px) {
  .site-header { position: relative; }

  .primary-menu, .primary-menu.mega-menu {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 9999;
    align-items: flex-start;
  }

  .primary-menu.mobile-active, .primary-menu.mega-menu.mobile-active {
    display: flex !important;
  }

  .primary-menu.mega-menu li {
    width: 100%;
  }

  /* Reset Mega Menu on Mobile */
  .primary-menu.mega-menu .sub-menu.mega-sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    display: none;
    box-shadow: none;
    border: none;
    padding: 10px 0 10px 15px;
    margin-top: 5px;
    background: #f8f9fa;
    border-radius: 8px;
  }

  .primary-menu.mega-menu li:hover .sub-menu.mega-sub-menu {
    display: block;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mega-col h4 {
    margin-top: 15px;
  }

  .mobile-menu-toggle {
    display: block;
  }
  .site-logo img {
    height: 90px;
  }
  .site-logo-text .title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-form input {
    flex: 1 1 100%;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* --- HERO BANNER --- */
.home-hero-section {
  position: relative;
  background-color: var(--color-primary-dark);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.hero-banner {
  position: relative;
  width: 100%;
  height: 800px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 200px);
  z-index: 1;
}
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding-bottom: 280px; /* Aumentado para não sobrepor com as caixas de Acesso Rápido */
}
.hero-text-box {
  max-width: 600px;
}
.hero-text-box h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-text-box p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.btn-primary {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary:hover {
  background-color: #C1151D;
  color: var(--color-white);
}

/* --- SERVICES GRID --- */
.home-services-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-light) 150px);
  margin-top: -320px; /* Sobe os cartões para cobrir o texto branco inferior do banner */
  position: relative;
  z-index: 10;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.home-services-section .section-title {
  display: none; /* Ocultado para evitar colisão com o texto da própria imagem do banner */
}
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}
.section-title h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0;
}
.section-title p {
  color: var(--color-text-muted);
  font-style: italic;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}
.service-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-bottom: 4px solid var(--color-primary-light);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-secondary);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-speed);
}
.service-card:hover .service-icon {
  color: var(--color-secondary);
}
.service-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .hero-banner {
    height: 50vh;
  }
  .hero-text-box h1 {
    font-size: 2.2rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 blocks per row on tablet */
  }
  .home-services-section {
    margin-top: 0;
  }
}
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* Keeping it 2 even on small to save vertical space, but adjust padding */
    gap: 8px;
  }
  .service-card {
    padding: var(--spacing-md);
  }
  .service-icon {
    font-size: 2rem;
  }
  .service-card h3 {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   NOVA HOME: NOTÍCIAS (INSPIRADO EM CAARAPÓ)
   ========================================================================== */
.home-news-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
}
.news-header h2 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin: 0;
    position: relative;
    padding-left: 20px;
}
.news-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background-color: var(--color-secondary);
    border-radius: 3px;
}
.news-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease;
}
.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.news-featured-img {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}
.news-featured-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-category-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}
.news-featured h3 {
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin-bottom: 15px;
}
.news-featured h3 a {
    color: inherit;
    text-decoration: none;
}
.news-featured h3 a:hover {
    color: var(--color-primary);
}
.news-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}
.news-meta i {
    margin-right: 5px;
}
.news-featured p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-read-more {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}
.btn-read-more:hover {
    background-color: var(--color-primary-dark);
}
.btn-read-more i {
    margin-left: 8px;
}

/* Secondary News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}
.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.news-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* ==========================================================================
   NOVA HOME: CALENDÁRIO / DIÁRIO OFICIAL
   ========================================================================== */
.home-calendar-section {
    padding: var(--spacing-xl) 0;
    background-color: #f4f7f6; /* Cor de fundo leve para separar seções */
}
.calendar-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Proporção ~ 66% / 33% (col-8 e col-4) */
    gap: var(--spacing-xl);
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: var(--spacing-xl);
}
.calendar-box {
    padding-right: var(--spacing-xl);
    border-right: 2px solid #eaeaea; /* Linha divisória */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.calendar-box h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.calendar-nav-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
    flex-grow: 1;
    align-content: space-evenly;
}
.calendar-day-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding: 16px 0;
    text-transform: uppercase;
}
.calendar-day {
    padding: 16px 5px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}
.calendar-day.empty {
    background: none;
}
/* Estilo para dias COM diário oficial */
.calendar-day.has-diario {
    font-weight: bold;
    color: #008751; /* Verde conforme solicitado */
    cursor: pointer;
    transition: background 0.3s ease;
}
.calendar-day.has-diario:hover {
    background-color: rgba(0, 135, 81, 0.1);
}
.diario-list h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}
.diario-item {
    padding: 15px;
    border-left: 4px solid var(--color-secondary);
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}
.diario-item .diario-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.diario-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}
.diario-item a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}
.diario-item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVIDADE E BOTÃO SERVIÇOS
   ========================================================================== */
.services-footer {
    text-align: center;
    margin-top: 30px;
}
.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}
.service-hidden {
    display: none;
}

@media (max-width: 992px) {
    .news-featured {
        grid-template-columns: 1fr;
    }
    .news-featured-img {
        height: 300px;
    }
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }
    .calendar-box {
        border-right: none;
        padding-right: 0;
        border-bottom: 2px solid #eaeaea;
        padding-bottom: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Toggle de Serviços */
.services-grid .service-card.hidden-service {
    display: none;
}

/* ==========================================================================
   SUBMENUS / DROPDOWNS (MENU PRINCIPAL)
   ========================================================================== */
.primary-menu li {
    position: relative;
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 10px 0 0 0;
    min-width: 220px;
    display: none;
    z-index: 999;
    border: 1px solid #f0f0f0;
}

/* Animaçãozinha suave no aparecimento */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.primary-menu li:hover > .sub-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease forwards;
}

.primary-menu .sub-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-main) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    text-align: left;
}

.primary-menu .sub-menu li a:hover {
    background-color: rgba(0, 123, 101, 0.06) !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* Indicador de dropdown (setinha) */
.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 4px;
    opacity: 0.6;
}

/* ==========================================================================
   BUSCA EM TELA CHEIA - GLASSMORPHISM OVERLAY (LAYOUT PIXELMATOR)
   ========================================================================== */

/* Bloqueio de scroll no body */
body.search-overlay-open {
    overflow: hidden !important;
}

/* Container Fixo em Tela Cheia */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.65); /* Branco translúcido estilo macOS Light Mode */
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); /* Borda fina interna brilhante */
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Topo / Barra de Input da Busca (Faixa Verde com Gradiente sutil) */
.search-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #005a4a 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#search-overlay-input {
    width: 100%;
    padding: 8px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border: none;
    outline: none;
    letter-spacing: -0.02em;
}
#search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.search-voice-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
    margin-right: 15px;
    opacity: 0.8;
}
.search-voice-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}
.search-voice-btn.listening {
    color: #ff4757;
    animation: pulseMic 1.5s infinite;
}
@keyframes pulseMic {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); text-shadow: 0 0 15px rgba(255, 71, 87, 0.8); }
    100% { transform: scale(1); }
}

.search-overlay-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.search-overlay-close-btn:hover {
    transform: scale(1.1);
}

/* Corpo / Resultados */
.search-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-overlay-body::-webkit-scrollbar { width: 8px; }
.search-overlay-body::-webkit-scrollbar-track { background: transparent; }
.search-overlay-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }

/* Placeholder e Spinner */
.search-placeholder-state, .search-empty-state, .search-spinner-state {
    text-align: center;
    margin-top: 100px;
}
.search-spinner-state .glass-spinner {
    width: 44px; height: 44px; margin: 0 auto 15px;
    border: 4px solid rgba(0, 123, 101, 0.2); border-top: 4px solid var(--color-primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Título Central "Resultados" */
.search-results-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.results-main-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}
.results-main-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
}

/* Lista Vertical de Categorias */
.search-results-list-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-category-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    /* Alinhado para acompanhar o texto à direita do bloco azul */
    margin-left: 280px; 
}

.category-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards de Resultados do Mockup com Animações Premium */
.search-result-card {
    display: flex;
    gap: 24px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none !important;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.search-result-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-2px) scale(1.005);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(0, 123, 101, 0.12);
    border-color: rgba(0, 123, 101, 0.25);
}

.search-result-card:hover::before {
    opacity: 1;
}

/* Quadrado Verde Lateral com efeito Zoom */
.search-card-thumb {
    width: 240px;
    height: 150px;
    background-color: var(--color-primary);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-result-card:hover .search-card-thumb img {
    transform: scale(1.08);
}

.search-card-thumb i {
    font-size: 3.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.search-result-card:hover .search-card-thumb i {
    transform: scale(1.15);
}

.search-card-content {
    flex: 1;
    padding-top: 4px;
}

.search-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    transition: color 0.2s ease;
}

.search-result-card:hover .search-card-title {
    color: var(--color-primary);
}

.search-card-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Botão Ver Mais cobrindo a tela toda no rodapé */
.search-load-more-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #005a4a 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.search-load-more-btn {
    width: 100%;
    background: transparent;
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, letter-spacing 0.3s ease;
}

.search-load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.08em;
}

@media (max-width: 992px) {
    .search-result-card {
        flex-direction: column;
        gap: 15px;
    }
    .search-card-thumb {
        width: 100%;
        height: 200px;
    }
    .category-header h3 {
        margin-left: 0;
    }
}

/* =========================================
   ACESSIBILIDADE - ALTO CONTRASTE E FONTE
========================================= */

body {
    transform-origin: top center;
    transition: filter 0.3s ease, background-color 0.3s ease;
    zoom: var(--font-scale, 1);
}

/* Dark Mode styles are now isolated in css/darkmode.css (SOLID Principle) */


.accessibility-wrapper {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 999999;
}

.a11y-toggle-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 14px;
    font-size: 1.2rem;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.a11y-toggle-btn:hover {
    background: #004d28;
}

.accessibility-toolbar {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 5px;
    background: var(--color-primary);
    display: none;
    flex-direction: column;
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
}

.accessibility-toolbar.active {
    display: flex;
}

.accessibility-toolbar button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 10px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.accessibility-toolbar button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   LGPD - BANNER DE COOKIES (GLASSMORPHISM)
========================================= */

.glass-cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 25px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.3s ease;
}

body.high-contrast .glass-cookie-banner {
    background: #000;
    border: 2px solid #fff;
    backdrop-filter: none;
}

.cookie-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
}

.cookie-content p a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.btn-cookie-accept {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 1rem;
}

.btn-cookie-accept:hover {
    background: #005a4a;
    transform: translateY(-2px);
}

/* Barra Alexa (Intents) */
.voice-command-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff4757;
    color: #ff4757;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Serviços / Acesso Rápido na Busca */
#search-results-container .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px 0 25px 0;
}
.search-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.search-service-card:hover {
    background: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.search-service-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.search-service-card span {
    font-size: 0.95rem;
    font-weight: 600;
}
.voice-command-bar i {
    font-size: 1.3rem;
}

/* MEGA MENU INSTITUCIONAL (SELO DIAMANTE) */
.primary-menu.mega-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.primary-menu.mega-menu > li > a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}
.primary-menu.mega-menu > li > a:hover {
    color: #006837;
}
.primary-menu.mega-menu > li > a i {
    font-size: 1.1em;
    color: #006837;
}

/* Dropdown Sub-menu / Mega Menu */
.primary-menu.mega-menu li {
    position: relative;
}

/* Ponte invisível no LI para evitar que o menu pisque (bridge correta que não sobrepõe os lados) */
.primary-menu.mega-menu li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.sub-menu.mega-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.25s ease-in-out;
    z-index: 999;
    min-width: 700px;
    border-top: 3px solid #006837;
}



.primary-menu.mega-menu li:hover .sub-menu.mega-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Grid Inside Mega Menu */
.mega-menu-grid {
    display: flex;
    gap: 30px;
}
.mega-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mega-col .sub-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.mega-col h4 {
    font-size: 14px;
    color: #006837;
    margin-bottom: 10px;
    margin-top: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #eef2ef;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-col h4 a {
    color: #006837;
    text-decoration: none;
    transition: color 0.2s;
}
.mega-col h4 a:hover {
    color: #044b26;
}
.mega-col h4:first-child {
    margin-top: 0;
}
.mega-col li {
    list-style: none;
    margin: 4px 0;
}
.mega-col li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
    display: block;
}
.mega-col li a:hover {
    color: #006837;
    transform: translateX(5px);
}

/* Highlight Menu Item (Diário Oficial) */
.highlight-menu-item > a {
    background: #006837;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 20px;
}
.highlight-menu-item > a i {
    color: #fff !important;
}
.highlight-menu-item > a:hover {
    background: #044b26;
}

/* ==========================================================================
   SINGLE SECRETARIA (LAYOUT INTERNO PREMIUM)
   ========================================================================== */

.am-secretaria-wrapper {
    background-color: #006837;
    min-height: 100vh;
    padding-bottom: 60px;
}

.am-secretaria-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.am-secretaria-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 104, 55, 1) 0%, rgba(0, 104, 55, 0.5) 40%, rgba(0, 104, 55, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.am-badge-secretaria {
    display: inline-block;
    background-color: #f39c12;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.am-secretaria-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.am-secretaria-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Coluna da Esquerda (Conteúdo) */
.am-secretaria-content {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.am-content-heading {
    font-size: 24px;
    font-weight: 700;
    color: #006837;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef0f2;
}

.am-content-body {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
}

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

/* Coluna da Direita (Sidebar Perfil) */
.am-secretaria-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Faz acompanhar a rolagem */
}

.am-profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 4px solid #006837;
    margin-bottom: 20px;
}

.am-profile-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.am-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
}

.am-profile-role {
    display: block;
    font-size: 14px;
    color: #718096;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-profile-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.am-profile-contacts li {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-left: 30px;
    position: relative;
}

.am-profile-contacts li:last-child {
    margin-bottom: 0;
}

.am-profile-contacts li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #006837;
    font-size: 16px;
}

.am-profile-contacts li a {
    color: #006837;
    text-decoration: none;
    font-weight: 600;
}

.am-profile-contacts li a:hover {
    text-decoration: underline;
}

.am-map-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 250px;
}

.am-map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsividade */
@media (max-width: 991px) {
    .am-secretaria-layout {
        flex-direction: column;
    }
    
    .am-secretaria-sidebar {
        width: 100%;
        position: static;
    }
    
    .am-secretaria-hero {
        height: 250px;
    }
    
    .am-secretaria-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   CARDS DE SECRETARIAS (HOME)
   ========================================================================== */
.home-secretarias-section {
    padding: 60px 0;
    background-color: #f0f4f8; /* Fundo suave */
}

.am-secretarias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.am-sec-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.am-sec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 104, 55, 0.15);
}

.am-sec-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.am-sec-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,104,55,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.am-sec-card:hover .am-sec-card-overlay {
    opacity: 1;
}

.am-sec-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.am-sec-card:hover .am-sec-card-icon {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

.am-sec-card-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.am-sec-card-content h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.am-sec-card-resp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f0eb;
    color: #006837;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

/* ==========================================================================
   SINGLE NOTÍCIAS (LAYOUT PREMIUM)
   ========================================================================== */

.am-single-article {
    background-color: var(--color-bg-light);
    padding-bottom: 60px;
}

.am-single-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.am-single-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.am-single-meta-top {
    margin-bottom: 15px;
}

.am-single-category {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.am-single-title {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 900px;
}

.am-single-meta-bottom {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.am-single-meta-bottom span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.am-single-content-wrapper {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.am-single-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.am-single-content h2, .am-single-content h3 {
    color: var(--color-primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.am-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.am-single-content blockquote {
    border-left: 5px solid var(--color-primary);
    padding: 20px 30px;
    background: rgba(0, 104, 55, 0.05);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-primary-dark);
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.am-single-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.am-single-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.am-single-share span {
    font-weight: 700;
    color: var(--color-text-main);
}

.am-single-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.am-single-share a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .am-single-hero {
        height: 50vh;
    }
    .am-single-title {
        font-size: 2rem;
    }
    .am-single-content-wrapper {
        padding: 30px 20px;
    }
    .am-single-content {
        font-size: 1rem;
    }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #C1151D;
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #9c0f16;
  transform: translateY(-5px);
}
