/* Faz as caixas do Divi não interferirem no layout original.
   Fica na camada "base" do Tailwind: as classes de cada módulo (camada utilities) sempre vencem. */
@layer base {
  #page-container, #main-content, #main-content .container, #left-area, #content-area,
  article.et_pb_post, .entry-content, .et-l, .et_builder_inner_content, .evox-part { display: contents; }
  .et_pb_row::before, .et_pb_row::after, .et_pb_column::before, .et_pb_column::after { content: none; }
  /* "contents" não vem no CSS compilado (o Tailwind só gera as classes usadas no código original). */
  .contents, .contents > .et_pb_text_inner, .contents > .et_pb_code_inner { display: contents; }
  #main-content .entry-title, #main-content .et_post_meta_wrapper { display: none; }
}

/* Barra do WordPress (usuário logado): o cabeçalho fixo desce para não ficar por baixo dela. */
body.admin-bar [data-evox="header"] { top: 32px; }
@media (max-width: 782px) { body.admin-bar [data-evox="header"] { top: 46px; } }
@media (max-width: 600px) { body.admin-bar [data-evox="header"] { top: 0; } }

/* Animação de entrada das seções (refaz o ScrollSection do React). Sem JavaScript, tudo aparece. */
.evox-js .evox-reveal:not(.is-in) { opacity: 0; transform: translateY(2rem); }
.evox-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .evox-js .evox-reveal:not(.is-in) { opacity: 1; transform: none; } }

/* Menus abertos por clique (idioma e celular). */
[data-evox-lang-menu]:not(.is-open), [data-evox-mobile]:not(.is-open) { display: none; }
[data-evox-menu-toggle] [data-evox-x] { display: none; }
[data-evox-menu-toggle].is-open [data-evox-x] { display: block; }
[data-evox-menu-toggle].is-open .lucide-menu { display: none; }
[data-evox-lang-menu] a { display: block; }

/* Formulário de contato (Contact Form 7) com o visual original. */
.evox-cf7 .wpcf7-form-control-wrap { display: block; }
.evox-cf7 .wpcf7-not-valid-tip { margin-top: .25rem; font-size: .75rem; color: hsl(var(--destructive)); }
.evox-cf7 .wpcf7-response-output { margin: 1rem 0 0 !important; padding: .75rem 1rem !important; border-radius: .5rem; font-size: .875rem; }
.evox-cf7.sent .wpcf7-response-output { border-color: hsl(var(--primary)) !important; }
.evox-cf7 .wpcf7-spinner { margin: 0 0 0 .75rem; vertical-align: middle; }
.evox-cf7 form.submitting .evox-submit { opacity: .6; pointer-events: none; }

/* Conteúdo dos artigos novos escritos no editor do WordPress. */
.evox-content img { max-width: 100%; height: auto; border-radius: .5rem; }

/* Bolhas de mensagem do WhatsApp. */
@keyframes evox-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.evox-wa-msg { animation: evox-up .45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .evox-wa-msg { animation: none; } }
