/* Bloqueio global de rolagem horizontal para evitar oscilações no mobile */
html, body {
	overflow-x: hidden !important;
	max-width: 100% !important;
	width: 100% !important;
	position: relative;
	touch-action: manipulation;
}

/* FORCE STACKING CONTEXT TOP PRIORITY FOR HEADER AND HAMBURGER MENU */
header, 
header.elementor-location-header, 
.elementor-location-header, 
.she-header-yes, 
.she-header-transparent-yes, 
.elementor-element-4721ccf, 
.elementor-element-dce8645,
header .e-con-inner,
header .e-con-child,
header .e-con-parent {
	overflow: visible !important;
	z-index: 999999999 !important;
}

body.menu-open-active header,
body.menu-open-active .elementor-location-header,
body.menu-open-active .she-header-transparent-yes,
header:has(.elementor-menu-toggle.elementor-active),
.elementor-location-header:has(.elementor-menu-toggle.elementor-active),
.she-header-transparent-yes:has(.elementor-menu-toggle.elementor-active) {
	z-index: 999999999 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	background-color: #151515 !important;
}

main, #content, #page, .elementor-page, section:not(header *) {
	max-width: 100% !important;
	overflow-x: hidden !important;
	position: relative;
	z-index: 1 !important;
}

main .e-con-inner,
main .e-con-child,
main .e-con-parent {
	z-index: auto !important;
}

/* Menu Hambúrguer Mobile Fix */
.elementor-menu-toggle {
	cursor: pointer !important;
	z-index: 999999999 !important;
	display: flex !important;
	position: relative !important;
	pointer-events: auto !important;
}

.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
	display: none !important;
}

.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close {
	display: block !important;
}

.elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--open {
	display: block !important;
}

.elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close {
	display: none !important;
}

.elementor-nav-menu--dropdown.elementor-active,
.elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown {
	display: block !important;
	max-height: calc(100vh - 60px) !important;
	height: 100vh !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	position: fixed !important;
	top: 60px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100vw !important;
	z-index: 999999999 !important;
	background-color: #ffffff !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
	overflow-y: auto !important;
	padding: 10px 0 40px 0 !important;
	pointer-events: auto !important;
}

.elementor-nav-menu--dropdown .elementor-nav-menu {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.elementor-nav-menu--dropdown .elementor-nav-menu li {
	width: 100% !important;
	display: block !important;
}

.elementor-nav-menu--dropdown .elementor-nav-menu a {
	color: #151515 !important;
	padding: 16px 24px !important;
	display: block !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
	text-decoration: none !important;
	background-color: #ffffff !important;
}

.elementor-nav-menu--dropdown .elementor-nav-menu a:hover,
.elementor-nav-menu--dropdown .elementor-nav-menu a:active {
	background-color: #f5f5f5 !important;
	color: #BF1A5D !important;
}

/* Animações fluídas bidirecionais do site */
@media (prefers-reduced-motion: no-preference) {

	.afm-reveal {
		opacity: 0;
		transform: translateY(36px);
		transition: opacity 900ms cubic-bezier(.22,.61,.36,1), transform 900ms cubic-bezier(.22,.61,.36,1);
		will-change: opacity, transform;
	}
	.afm-reveal.afm-in { opacity: 1; transform: translateY(0); }

	.afm-reveal.afm-left { transform: translateX(-48px); }
	.afm-reveal.afm-left.afm-in { transform: translateX(0); }

	.afm-reveal.afm-right { transform: translateX(48px); }
	.afm-reveal.afm-right.afm-in { transform: translateX(0); }

	.afm-reveal.afm-scale { transform: scale(.92); }
	.afm-reveal.afm-scale.afm-in { transform: scale(1); }

	@media (max-width: 767px) {
		.afm-reveal.afm-left,
		.afm-reveal.afm-right {
			transform: translateY(24px) !important;
		}
		.afm-reveal.afm-left.afm-in,
		.afm-reveal.afm-right.afm-in {
			transform: translateY(0) !important;
		}
	}

	/* Zoom out/in bidirecional ativado pela rolagem do mouse ao entrar/sair da seção Sobre Nós (id="pessoas") */
	#pessoas {
		position: relative;
		isolation: isolate;
		overflow: hidden;
	}
	#pessoas::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background-image: inherit;
		background-position: inherit;
		background-repeat: inherit;
		background-size: cover;
		transform: scale(1.18);
		transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
		will-change: transform;
	}
	#pessoas.afm-in::before {
		transform: scale(1);
	}
}

/* ==========================================================================
   WIDGET DE WHATSAPP INTELIGENTE (botaozap.md)
   ========================================================================== */
:root {
  --brand-navy: #151515;
  --brand-gold: #BF1A5D;
  --brand-white: #FFFFFF;
  --brand-text-dark: #3A3A3A;
  --brand-font-primary: 'Montserrat', sans-serif;
  --brand-font-body: 'Inter', sans-serif;
}

.whatsapp-widget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  font-family: var(--brand-font-body);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget.widget-visible {
  opacity: 1 !important;
}

/* Botão Circular Principal - Verde Oficial */
.whatsapp-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: auto;
}

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

@media (hover: hover) and (pointer: fine) {
  .whatsapp-trigger-btn:hover {
    transform: scale(1.05);
    background-color: #128C7E;
  }
}

/* Tooltip de Inatividade */
.whatsapp-tooltip {
  background-color: var(--brand-navy);
  border: 1px solid rgba(191, 26, 93, 0.4);
  color: #FFFFFF;
  padding: 0 18px 0 14px;
  border-radius: 6px;
  margin-bottom: 0;
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  will-change: opacity, transform, max-height;
}

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

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 25px;
  width: 10px;
  height: 10px;
  background-color: var(--brand-navy);
  border-right: 1px solid rgba(191, 26, 93, 0.4);
  border-bottom: 1px solid rgba(191, 26, 93, 0.4);
  transform: rotate(45deg);
}

.close-tooltip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
  margin: -12px -12px -12px 0;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.close-tooltip-btn:hover {
  color: var(--brand-gold);
}

/* Painel de Chat Simulado */
.whatsapp-chat-panel {
  width: 320px;
  background-color: var(--brand-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  font-family: var(--brand-font-body);
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  will-change: transform, opacity, max-height;
}

.whatsapp-chat-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 500px;
  margin-bottom: 16px;
  transform: translateY(0) scale(1);
}

.chat-header {
  background-color: var(--brand-navy);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand-gold);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-font-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-family: var(--brand-font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.chat-header-status {
  font-family: var(--brand-font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-messages-container {
  padding: 16px;
  max-height: 340px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #F4F6F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  font-family: var(--brand-font-body);
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
  flex-shrink: 0;
}

.chat-bubble.received {
  background-color: var(--brand-white);
  color: var(--brand-text-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-bubble.sent {
  background-color: rgba(191, 26, 93, 0.12);
  color: var(--brand-navy);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  margin-top: 8px;
  opacity: 1;
  max-height: 300px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.chat-faq-heading {
  font-family: var(--brand-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-text-dark);
  opacity: 0.6;
  margin-bottom: 2px;
}

.chat-faq-opt {
  background-color: var(--brand-white);
  border: 1px solid rgba(191, 26, 93, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--brand-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--brand-navy);
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .chat-faq-opt:hover {
    background-color: rgba(191, 26, 93, 0.06);
    border-color: var(--brand-gold);
  }
}

.chat-footer {
  padding: 12px;
  background-color: var(--brand-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-direct-link {
  font-family: var(--brand-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-gold);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-direct-link:hover {
    color: var(--brand-navy);
  }
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 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; }
}

.whatsapp-trigger-btn:focus-visible,
.close-tooltip-btn:focus-visible,
.chat-faq-opt:focus-visible {
  outline: 2px solid var(--brand-gold) !important;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .elementor-hidden-tablet,
  .elementor-element-4f02641 {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Esconder o header desktop redundante no mobile para evitar sobreposição do logo vermelho */
  .elementor-hidden-mobile,
  .elementor-hidden-tablet,
  .elementor-element-4f02641 {
    display: none !important;
  }

  /* Ajuste no container do hero e botões para evitar sobreposição pelo WhatsApp popup */
  .elementor-element-fcd6ded {
    padding-bottom: 20px !important;
  }

  .elementor-element-66006e9 {
    margin-bottom: 24px !important;
  }

  #blog-secao, #artigo-secao {
    padding: 24px 20px !important;
  }

  /* Ajuste responsivo do WhatsApp Widget e Tooltip no mobile */
  .whatsapp-widget {
    bottom: 16px !important;
    right: 16px !important;
  }

  .whatsapp-tooltip.active {
    max-width: 220px !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
  }
}

/* ==========================================================================
   ESTILOS DO BLOG INTEGRADO AO BANCO DE DADOS (ajusteparablog.md)
   ========================================================================== */
#blog-secao, #artigo-secao {
    font-family: 'Inter', sans-serif;
}

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

/* Card do Blog no padrão exato dos Cards de Serviços / Áreas de Atuação */
.m2-blog-card {
    background-color: #ffffff;
    border: 1px solid #929292;
    padding: 30px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.m2-blog-card:hover {
    background-color: #f0f0f0;
    transform: translateY(-4px);
    border-color: #BF1A5D;
}

.m2-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.m2-card-icon-wrapper {
    margin-bottom: 16px;
}

.m2-card-icon {
    font-size: 24px;
}

.m2-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
    margin-bottom: 12px;
    display: block;
}

.m2-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 12px;
}

.m2-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1;
}

.m2-card-footer {
    margin-top: auto;
}

.m2-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #BF1A5D;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.m2-blog-card:hover .m2-card-link {
    opacity: 0.8;
}

/* Leitura de Artigo Único */
.artigo-single-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

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

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

.sidebar-card {
    background-color: #ffffff;
    border: 1px solid #929292;
    padding: 28px 24px;
}

.autor-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid #BF1A5D;
    margin-bottom: 16px;
    display: block;
}

.autor-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #151515;
    color: #BF1A5D;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid #BF1A5D;
}

.autor-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 6px;
    display: block;
}

.autor-nome {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000000;
    display: block;
    margin-bottom: 4px;
}

.autor-cargo {
    font-size: 0.85rem;
    color: #BF1A5D;
    font-weight: 600;
    display: block;
    margin-bottom: 14px;
}

.autor-bio {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 18px;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid #929292;
    margin: 0 0 14px 0;
}

.sidebar-date {
    font-size: 0.85rem;
    color: #666666;
}

.sidebar-date strong { color: #000000; }

.sidebar-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 16px;
}

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

.sidebar-post-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

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

.sidebar-post-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sidebar-post-item:hover .sidebar-post-title { color: #BF1A5D; }

.sidebar-post-date { font-size: 0.78rem; color: #666666; }

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

.m2-btn-voltar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #BF1A5D;
    margin-bottom: 24px;
    padding: 0;
    transition: opacity 0.2s ease;
}

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

.artigo-main-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #000000;
}

.artigo-divider {
    border: 0;
    border-top: 1px solid #929292;
    margin: 24px 0 32px 0;
}

.artigo-text-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #222222;
}

.artigo-text-body strong {
    font-weight: 700;
    color: #000000;
}

.blog-blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #BF1A5D;
    border-left: 3px solid #BF1A5D;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
}

.blog-loading, .blog-empty, .blog-error {
    text-align: center;
    font-size: 1.1rem;
    color: #ffffff;
    padding: 40px 0;
}

.blog-error {
    color: #333333;
}

