/* ==========================================================================
   COMPONENTES CUSTOMIZADOS & MICROINTERAÇÕES
   Claudio Mendonça Advogados
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO BACKGROUND & TRATAMENTO DE IMAGEM DO ADVOGADO
   -------------------------------------------------------------------------- */
.section-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  opacity: 0.42;
  filter: contrast(1.08) saturate(0.95);
  pointer-events: none;
  z-index: 1;
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(7, 16, 28, 0.94) 40%, rgba(7, 16, 28, 0.6) 70%, rgba(7, 16, 28, 0.2) 100%),
              linear-gradient(180deg, rgba(7, 16, 28, 0.4) 0%, transparent 40%, rgba(7, 16, 28, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .section-hero::after {
    background: linear-gradient(180deg, rgba(7, 16, 28, 0.82) 0%, rgba(7, 16, 28, 0.92) 50%, var(--bg-dark) 100%);
  }
}

/* Dropdowns da Barra de Navegação */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(11, 25, 44, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-subtle);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s var(--ease-premium);
  pointer-events: none;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-subtle);
  font-size: 0.85rem;
  color: #E2E8F0;
  transition: background-color 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background-color: rgba(197, 160, 89, 0.1);
  color: #FFFFFF;
}

/* Ícone em "chip" (mesma linguagem visual dos ícones de Diferenciais e
   Áreas de Atuação) em vez do SVG solto ao lado do texto — o que fazia o
   menu parecer um template genérico de ícones de estoque. */
.nav-dropdown-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: var(--radius-subtle);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  transition: background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), transform 0.2s var(--ease-premium);
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy);
  transform: scale(1.06);
}

.nav-dropdown-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Divisores Metálicos Ultrafinos entre Seções */
.metal-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 0.35) 50%, transparent 100%);
  border: none;
  margin: 0;
  overflow: visible;
}

.metal-divider-glow {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 9px;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. ACCORDION DE ÁREAS DE ATUAÇÃO
   Título + resumo sempre visíveis; chips e CTA específico só entram no DOM
   visível quando o item é aberto (Google continua indexando o conteúdo,
   mesma técnica já usada no FAQ), evitando 24 chips + 4 CTAs ao mesmo tempo.
   -------------------------------------------------------------------------- */
.atuacao-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atuacao-item {
  position: relative;
  background: var(--brand-navy);
  border-top: 2px solid var(--brand-gold);
  border-radius: var(--radius-subtle);
  overflow: hidden;
  transition: background-color 0.3s var(--ease-premium);
}

.atuacao-item:hover,
.atuacao-item.atuacao-open {
  background: var(--brand-navy-light);
}

.atuacao-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 1.5rem;
  min-height: 48px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.atuacao-index {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: rgba(197, 160, 89, 0.35);
  flex-shrink: 0;
  min-width: 2ch;
  transition: color 0.3s var(--ease-premium);
}

.atuacao-item:hover .atuacao-index,
.atuacao-item.atuacao-open .atuacao-index {
  color: var(--brand-gold);
}

@media (max-width: 640px) {
  .atuacao-index {
    font-size: 1.5rem;
  }
}

.atuacao-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin-top: 2px;
  border-radius: var(--radius-subtle);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-premium);
}

.atuacao-item:hover .atuacao-icon-box,
.atuacao-item.atuacao-open .atuacao-icon-box {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--brand-gold);
  transform: scale(1.08);
}

.atuacao-heading {
  flex: 1;
  min-width: 0;
}

.atuacao-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-gold);
  transition: transform 0.4s var(--ease-premium), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.atuacao-item:hover .atuacao-chevron {
  border-color: var(--brand-gold);
  transform: scale(1.1);
}

.atuacao-item.atuacao-open .atuacao-chevron {
  transform: rotate(45deg);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--bg-dark);
}

.atuacao-panel-grid {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-premium), opacity 0.3s var(--ease-premium), visibility 0.4s;
}

.atuacao-item.atuacao-open .atuacao-panel-grid {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.atuacao-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.atuacao-panel-content {
  padding: 0 1.5rem 1.5rem calc(1.5rem + 2ch + 42px + 32px);
}

@media (max-width: 640px) {
  .atuacao-trigger {
    padding: 1.25rem;
    gap: 12px;
  }
  .atuacao-panel-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
}

.mosaic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.mosaic-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1.25;
  padding: 5px 9px;
  border-radius: var(--radius-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-weight: 500;
}

.mosaic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: var(--radius-button);
  background: #EDEAE1;
  border: 1px solid transparent;
  color: var(--brand-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium);
}

.mosaic-cta:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35);
}

.mosaic-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.mosaic-cta svg {
  transition: transform 0.3s var(--ease-premium);
  flex-shrink: 0;
}

.mosaic-cta:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. SAAS INTERFACE — FERRAMENTAS GRATUITAS
   -------------------------------------------------------------------------- */
.saas-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-subtle);
}

.saas-input, .saas-select {
  width: 100%;
  background-color: #F8F9FA;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-subtle);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-dark);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
  transition: all 0.25s var(--ease-premium);
}

.saas-input:focus, .saas-select:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2), inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.saas-btn-action {
  width: 100%;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 14px 24px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.saas-btn-action:hover {
  background: var(--brand-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(11, 25, 44, 0.5);
}

.saas-btn-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.saas-btn-action svg {
  transition: transform 0.25s var(--ease-premium);
}

.saas-btn-action:hover svg {
  transform: translateX(3px);
}

.saas-tab-btn {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-subtle);
  transition: all 0.25s var(--ease-premium);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.saas-tab-btn:hover {
  border-color: rgba(197, 160, 89, 0.5);
  color: var(--brand-navy);
}

.saas-tab-btn.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-gold);
  box-shadow: 0 6px 18px -2px rgba(11, 25, 44, 0.25);
}

/* --------------------------------------------------------------------------
   4. ACORDEÃO DE FAQ (mesma linguagem sólida do accordion de Atuação:
      sem vidro/blur, sem elevação no hover — só um traço dourado no topo)
   -------------------------------------------------------------------------- */
.faq-glass-item {
  background: var(--brand-navy);
  border-top: 2px solid var(--brand-gold);
  border-radius: var(--radius-subtle);
  overflow: hidden;
  transition: background-color 0.3s var(--ease-premium);
  position: relative;
}

.faq-glass-item:hover,
.faq-glass-item.faq-open {
  background: var(--brand-navy-light);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #F1F5F9;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: color 0.3s var(--ease-premium);
}

@media (max-width: 640px) {
  .faq-trigger {
    padding: 18px 20px;
  }
}

.faq-glass-item:hover .faq-trigger,
.faq-glass-item.faq-open .faq-trigger {
  color: var(--brand-gold);
}

.faq-icon-rotator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-gold);
  transition: transform 0.4s var(--ease-premium), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-glass-item:hover .faq-icon-rotator {
  border-color: var(--brand-gold);
  transform: scale(1.1);
}

.faq-glass-item.faq-open .faq-icon-rotator {
  transform: rotate(45deg);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--bg-dark);
}

.faq-answer-grid {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-premium),
              opacity 0.3s var(--ease-premium),
              visibility 0.4s;
}

.faq-glass-item.faq-open .faq-answer-grid {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer-content {
  padding: 16px 24px 22px 24px;
  color: #CBD5E1;
  font-size: 0.9375rem;
  line-height: 1.75;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .faq-answer-content {
    padding: 14px 20px 20px 20px;
    font-size: 0.875rem;
    line-height: 1.7;
  }
}

/* --------------------------------------------------------------------------
   3. BOTÃO HAMBURGER MOBILE
   -------------------------------------------------------------------------- */
.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-premium), opacity 0.3s;
}

.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. WIDGET DE WHATSAPP INTELIGENTE (botaozap.md)
   -------------------------------------------------------------------------- */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-premium);
}

.whatsapp-widget.widget-visible {
  opacity: 1;
  pointer-events: none;
}

.whatsapp-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  pointer-events: auto;
}

.whatsapp-trigger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-svg-icon {
  fill: #FFFFFF;
  width: 30px;
  height: 30px;
}

/* Tooltip de Inatividade (Balão Arredondado com X Externo) */
.whatsapp-tooltip {
  background-color: var(--brand-navy);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: #FFFFFF;
  padding: 0 18px;
  border-radius: var(--radius-soft);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: visible;
  transform: translateY(12px) scale(0.9);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease-premium), 
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              max-height 0.35s, padding 0.35s, margin-bottom 0.35s, visibility 0.35s;
}

.whatsapp-tooltip.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 80px;
  padding: 12px 20px;
  margin-bottom: 14px;
  transform: translateY(0) scale(1);
}

/* Ponta do Balão Apontando Direto para o Botão */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background-color: var(--brand-navy);
  border-right: 1px solid rgba(197, 160, 89, 0.4);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  transform: rotate(45deg);
  border-bottom-right-radius: 2px;
}

.tooltip-body {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: greenPulse 2s infinite;
}

@keyframes greenPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Botão Fechar (X) Externo */
.close-tooltip-btn {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--brand-navy);
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: #E2E8F0;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease-premium), background-color 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
}

.close-tooltip-btn svg {
  width: 11px;
  height: 11px;
  display: block;
  stroke: #E2E8F0;
  transition: stroke 0.2s;
}

.close-tooltip-btn:hover {
  transform: scale(1.15);
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.close-tooltip-btn:hover svg {
  stroke: var(--brand-navy);
}

/* Painel de Chat Simulado Moderno e Arredondado */
.whatsapp-chat-panel {
  width: 330px;
  max-width: calc(100vw - 32px);
  background-color: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-soft);
  box-shadow: 0 20px 50px -10px rgba(11, 25, 44, 0.3), 0 0 0 1px rgba(11, 25, 44, 0.05);
  margin-bottom: 0;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease-premium), 
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              max-height 0.35s ease, margin-bottom 0.35s ease, visibility 0.35s;
}

.whatsapp-chat-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 520px;
  margin-bottom: 16px;
  transform: scale(1) translateY(0);
  transition: opacity 0.4s var(--ease-premium), 
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              max-height 0.4s ease, margin-bottom 0.4s ease;
}

.chat-header {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1E293B 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-soft) var(--radius-soft) 0 0;
  position: relative;
}

.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.chat-online-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background-color: #22C55E;
  border: 2px solid var(--brand-navy);
  border-radius: 50%;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-status {
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
}

/* Botão Fechar (X) do Modal de Chat */
.close-chat-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.5);
  color: #E2E8F0;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-premium), background-color 0.2s, color 0.2s, border-color 0.2s;
  z-index: 20;
}

.close-chat-btn svg {
  width: 13px;
  height: 13px;
  display: block;
  stroke: #E2E8F0;
  transition: stroke 0.2s;
}

.close-chat-btn:hover {
  transform: scale(1.1);
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.close-chat-btn:hover svg {
  stroke: var(--brand-navy);
}

.chat-messages-container {
  padding: 16px;
  max-height: 320px;
  min-height: 0; /* Crítico: flex scroll fix */
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.48;
  max-width: 86%;
  word-wrap: break-word;
  flex-shrink: 0; /* Crítico: flex collapse fix */
}

.chat-bubble.received {
  background-color: #FFFFFF;
  color: #1E293B;
  align-self: flex-start;
  border-radius: var(--radius-soft) var(--radius-soft) var(--radius-soft) 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(11, 25, 44, 0.08);
}

.chat-bubble.sent {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1E293B 100%);
  color: #FFFFFF;
  font-weight: 500;
  align-self: flex-end;
  border-radius: var(--radius-soft) var(--radius-soft) 4px var(--radius-soft);
  box-shadow: 0 3px 10px rgba(11, 25, 44, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* Crítico: flex collapse fix */
  gap: 8px;
  margin-top: 6px;
  transition: opacity 0.3s, max-height 0.3s;
}

.chat-faq-options.hidden {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

.chat-faq-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 2px;
}

.chat-faq-opt {
  background-color: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-soft);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--brand-navy);
  transition: all 0.25s var(--ease-premium);
  min-height: 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-faq-opt:hover {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 25, 44, 0.15);
}

.chat-footer {
  padding: 12px 16px;
  background-color: #FFFFFF;
  border-top: 1px solid rgba(11, 25, 44, 0.06);
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  display: flex;
  justify-content: center;
}

.chat-direct-link {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease-premium), box-shadow 0.25s;
}

.chat-direct-link:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.chat-footer-zap-icon {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--brand-navy);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
  opacity: 0.4;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 767px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-tooltip {
    display: none !important;
  }
}

.mobile-sticky-bar {
  display: none !important;
}

/* --------------------------------------------------------------------------
   SEÇÃO SOBRE: MOLDURA ARQUITETÔNICA & CARDS BOUTIQUE
   -------------------------------------------------------------------------- */
.executive-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.executive-portrait-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 50% 40%, rgba(197, 160, 89, 0.16) 0%, rgba(11, 25, 44, 0.05) 60%, transparent 80%);
  filter: blur(20px);
  border-radius: var(--radius-subtle);
  pointer-events: none;
  z-index: 0;
}

.executive-frame-container {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-subtle);
  padding: 8px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F1F4F9 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 25px 55px -15px rgba(11, 25, 44, 0.12), 0 0 30px rgba(197, 160, 89, 0.07);
  overflow: hidden;
}

.executive-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-subtle);
  object-fit: cover;
  display: block;
  filter: contrast(1.03) brightness(1.01);
}

.floating-location-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 4;
  padding: 14px 18px;
  border-radius: var(--radius-subtle);
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.3s var(--ease-premium), border-color 0.3s, box-shadow 0.3s;
}

.floating-location-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.65);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.55), 0 0 20px rgba(197, 160, 89, 0.15);
}

/* Lista Compacta de Diferenciais: substitui os 4 cartões com borda/sombra
   por linhas com divisória fina, reduzindo o peso visual da seção Sobre. */
.diferenciais-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.diferenciais-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.diferenciais-item:last-child {
  padding-bottom: 0;
}

.diferenciais-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-subtle);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .floating-location-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   5. DROPDOWNS CUSTOMIZADOS PREMIUM (ACESSIBILIDADE & MOBILE-FIRST)
   ========================================================================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-trigger {
  width: 100%;
  min-height: 48px;
  background-color: #F8F9FA;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-subtle);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02);
  transition: all 0.25s var(--ease-premium);
}

.custom-select-trigger:hover {
  border-color: rgba(197, 160, 89, 0.5);
  background-color: #FFFFFF;
}

.custom-select-trigger:focus-visible,
.custom-select-wrapper.is-open .custom-select-trigger {
  background-color: #FFFFFF;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2), inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.custom-select-trigger .trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.custom-select-trigger .trigger-text.is-placeholder {
  color: var(--text-dim);
}

.custom-select-trigger .trigger-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-gold);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-premium);
}

.custom-select-wrapper.is-open .custom-select-trigger .trigger-icon {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-subtle);
  box-shadow: 0 20px 45px -10px rgba(11, 25, 44, 0.15), 0 0 20px rgba(197, 160, 89, 0.08);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-premium),
              transform 0.25s var(--ease-premium),
              visibility 0.25s;
}

.custom-select-wrapper.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #334155;
  border-radius: var(--radius-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s var(--ease-premium);
}

@media (max-width: 640px) {
  .custom-select-option {
    min-height: 48px;
    padding: 12px 14px;
  }
}

.custom-select-option:hover,
.custom-select-option:focus {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--brand-navy);
}

.custom-select-option.is-selected {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.08) 100%);
  color: var(--brand-navy);
  font-weight: 600;
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.custom-select-option .check-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   6. FEEDBACK & ALERTAS INLINE MODERNOS (SEM ALERT NATIVO)
   ========================================================================== */
.inline-notice {
  padding: 14px 18px;
  border-radius: var(--radius-subtle);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 14px;
  animation: fadeInNotice 0.35s var(--ease-premium) forwards;
}

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

.inline-notice-warning {
  background-color: #FEF8EE;
  border: 1px solid #F5D99B;
  color: #8C5D07;
}

.inline-notice-warning svg {
  color: #D08700;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.inline-notice-error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.inline-notice-error svg {
  color: #EF4444;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* ==========================================================================
   7. NAVEGAÇÃO DE ABAS SAAS FLUIDAS & RESPONSIVAS (FERRAMENTAS)
   ========================================================================== */
.tool-pills-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-subtle);
  box-shadow: 0 4px 20px -4px rgba(11, 25, 44, 0.08);
}

@media (min-width: 640px) {
  .tool-pills-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

.tool-pills-nav::-webkit-scrollbar {
  display: none;
}

.tool-pill-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-subtle);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-premium);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tool-pill-btn svg {
  width: 18px;
  height: 18px;
  color: #64748B;
  transition: color 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.tool-pill-btn:hover {
  color: var(--brand-navy);
  background: rgba(197, 160, 89, 0.12);
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-1px);
}

.tool-pill-btn.active {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: #FFFFFF;
  border-color: var(--brand-gold);
  box-shadow: 0 6px 18px -2px rgba(11, 25, 44, 0.25), 0 0 0 1px var(--brand-gold);
}

.tool-pill-btn.active svg {
  color: var(--brand-gold);
  transform: scale(1.1);
}

/* ==========================================================================
   8. ESTILOS REFINADOS DO BLOG DINÂMICO & PÁGINA DO ARTIGO (2 COLUNAS & SIDEBAR)
   ========================================================================== */
#blog-secao, #artigo-secao {
    /* O header é fixed (~88px): o conteúdo precisa começar abaixo dele. */
    padding: calc(var(--header-height) + 56px) 24px 96px;
    font-family: var(--font-sans, inherit);
    background-color: var(--bg-body, #F8FAFC);
    min-height: 100vh;
}

.blog-container {
    max-width: 1240px;
    margin: 0 auto;
}

.blog-head {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
}

.blog-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-gold);
}

.blog-title-section {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0;
    font-family: var(--font-serif, serif);
    color: var(--brand-navy);
}

.blog-lead {
    margin: 14px auto 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Busca + filtros por área */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.blog-search {
    flex: 1 1 320px;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius-button);
    color: var(--text-dim);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search:focus-within {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px var(--brand-gold-subtle);
}

.blog-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-chip {
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #ffffff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-navy);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-chip:hover {
    border-color: var(--brand-gold);
}

.blog-chip.is-active {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #ffffff;
}

.blog-count {
    margin: 18px 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card tipográfico, sem imagem de capa */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 22px;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-top: 3px solid var(--brand-navy);
    border-radius: var(--radius-subtle);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-4px);
    border-top-color: var(--brand-gold);
    box-shadow: 0 14px 30px rgba(11, 25, 44, 0.09);
    outline: none;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.blog-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-gold-subtle);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A6A2B;
}

.blog-card-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
}

.blog-card-title {
    margin: 0 0 12px;
    font-family: var(--font-serif, serif);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--brand-navy);
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    margin: 0 0 22px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-card-read {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-navy);
    transition: color 0.2s ease;
}

.blog-card-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link {
    color: #8A6A2B;
}

.blog-card:hover .blog-card-link span {
    transform: translateX(4px);
}

.blog-more {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.blog-more[hidden] {
    display: none;
}

.blog-more-btn {
    height: 48px;
    padding: 0 32px;
    border: 1.5px solid var(--brand-navy);
    border-radius: var(--radius-button);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-more-btn:hover {
    background: var(--brand-navy);
    color: #ffffff;
}

@media (max-width: 640px) {
    #blog-secao, #artigo-secao {
        padding: calc(var(--header-height) + 32px) 16px 72px;
    }
    .blog-search {
        max-width: none;
    }
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Estilos de Post Único em 2 Colunas */
.artigo-single-container {
    max-width: 1240px;
    margin: 0 auto;
}

.artigo-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

.artigo-main {
    min-width: 0;
}

.artigo-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: var(--radius-subtle);
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(11, 25, 44, 0.03);
}

.autor-avatar-wrapper {
    margin-bottom: 16px;
}

.autor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--brand-gold, var(--brand-gold));
}

.autor-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-navy, var(--brand-navy));
    color: #ffffff;
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--brand-gold, var(--brand-gold));
}

.autor-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-gold, var(--brand-gold));
    margin-bottom: 4px;
    display: block;
}

.autor-nome {
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-navy, var(--brand-navy));
    display: block;
    margin-bottom: 2px;
}

.autor-cargo {
    font-size: 0.85rem;
    color: var(--text-muted, var(--text-muted));
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.autor-bio {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted, var(--text-muted));
    margin-bottom: 16px;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin: 16px 0;
}

.sidebar-date {
    font-size: 0.85rem;
    color: var(--text-muted, var(--text-muted));
}

.sidebar-date strong {
    color: var(--brand-navy, var(--brand-navy));
}

.sidebar-heading {
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-navy, var(--brand-navy));
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-gold, var(--brand-gold));
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-navy, var(--brand-navy));
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sidebar-post-item:hover .sidebar-post-title {
    color: var(--brand-gold, var(--brand-gold));
}

.sidebar-post-date {
    font-size: 0.78rem;
    color: var(--text-muted, #666);
}

.btn-voltar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand-gold, var(--brand-gold));
    margin-bottom: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.btn-voltar:hover {
    opacity: 0.8;
}

.artigo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.artigo-main-title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: var(--font-serif, serif);
    color: var(--brand-navy, var(--brand-navy));
    font-weight: 800;
    text-wrap: balance;
}

.artigo-divider {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.09);
    margin: 20px 0 28px 0;
}

.artigo-text-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #334155;
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.artigo-text-body {
    overflow-wrap: anywhere;
}

.artigo-text-body a {
    color: var(--brand-navy-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.artigo-text-body h2 {
    font-family: var(--font-serif, serif);
    font-size: 1.75rem;
    color: var(--brand-navy, var(--brand-navy));
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 600;
}

.artigo-text-body h3 {
    font-family: var(--font-serif, serif);
    font-size: 1.4rem;
    color: var(--brand-navy, var(--brand-navy));
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 600;
}

.artigo-text-body strong {
    font-weight: 700;
    color: var(--brand-navy, var(--brand-navy));
}

.artigo-text-body ul {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style-type: disc;
}

.artigo-text-body ol {
    margin-bottom: 24px;
    padding-left: 24px;
    list-style-type: decimal;
}

.artigo-text-body li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 8px;
}

.blog-blockquote {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--brand-navy, var(--brand-navy));
    border-left: 4px solid var(--brand-gold, var(--brand-gold));
    background: rgba(197, 160, 89, 0.05);
    padding: 18px 24px;
    margin: 32px 0;
    font-style: italic;
    border-radius: 0 var(--radius-subtle) var(--radius-subtle) 0;
}

@media (max-width: 900px) {
    .artigo-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .artigo-sidebar {
        position: static;
    }
    .artigo-main-title {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------------------
   5. BANNER DE PRIVACIDADE E COOKIES (LGPD / OAB PROV. 205/2021)
   -------------------------------------------------------------------------- */
.lgpd-banner-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  z-index: 9999;
  background-color: var(--brand-navy);
  color: #E2E8F0;
  padding: 20px;
  border-radius: var(--radius-soft);
  border: 1px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease-premium), opacity 0.5s ease;
  pointer-events: auto;
}

.lgpd-banner-container.lgpd-visible {
  transform: translateY(0);
  opacity: 1;
}

.lgpd-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lgpd-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 8px;
}

.lgpd-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lgpd-badge-oab {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: monospace;
}

.lgpd-banner-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #CBD5E1;
  margin: 0;
}

.lgpd-banner-text a {
  color: var(--brand-gold);
  text-decoration: underline;
  transition: color 0.2s;
}

.lgpd-banner-text a:hover {
  color: var(--brand-gold-hover);
}

.lgpd-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.lgpd-link-policy {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: underline;
  margin-right: auto;
  transition: color 0.2s;
}

.lgpd-link-policy:hover {
  color: #FFFFFF;
}

.lgpd-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-subtle);
  cursor: pointer;
  transition: all 0.2s var(--ease-premium);
}

.lgpd-btn-sec {
  background-color: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lgpd-btn-sec:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.lgpd-btn-main {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  border: 1px solid var(--brand-gold);
  font-weight: 700;
}

.lgpd-btn-main:hover {
  background-color: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
}

@media (max-width: 640px) {
  .lgpd-banner-container {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
  }
  .lgpd-banner-actions {
    justify-content: stretch;
  }
  .lgpd-btn {
    flex: 1;
    text-align: center;
  }
}
