/* Mostra conteúdos que dependiam de JS do Elementor/tema */
.elementor-tab-content,
.elementor-accordion .elementor-tab-content,
.elementor-toggle .elementor-tab-content,
.elementor-tabs-content-wrapper .elementor-tab-content,
.ui-accordion-content,
.accordion-content,
.toggle-content,
.pp_accordion_content,
.ppb_accordion_content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Evita áreas vazias por lazy-load/animação */
.elementor-invisible,
.animated,
.fadeIn,
.fadeInUp,
.fadeInDown,
.fadeInLeft,
.fadeInRight {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Imagens comuns */
img {
  opacity: 1 !important;
  visibility: visible !important;
}

.elementor img,
.wp-post-image,
.attachment-full,
.attachment-large {
  display: inline-block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Backgrounds e containers do Elementor */
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-container {
  overflow: visible !important;
}

/* Menu e submenus */
.top_bar,
#menu_wrapper,
#nav_wrapper,
#menu_border_wrapper,
.header_style_wrapper {
  overflow: visible !important;
  z-index: 999999 !important;
}

#menu_wrapper ul,
#menu_wrapper li,
#nav_wrapper ul,
#nav_wrapper li {
  overflow: visible !important;
}

#menu_wrapper li ul,
#menu_wrapper .nav li ul,
#menu_wrapper div .nav li ul,
#nav_wrapper li ul,
#nav_wrapper .nav li ul,
#nav_wrapper div .nav li ul,
ul.sub-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 1000000 !important;
  min-width: 230px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.14) !important;
}

#menu_wrapper li:hover > ul,
#menu_wrapper .nav li:hover > ul,
#menu_wrapper div .nav li:hover > ul,
#nav_wrapper li:hover > ul,
#nav_wrapper .nav li:hover > ul,
#nav_wrapper div .nav li:hover > ul,
li:hover > ul.sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

ul.sub-menu li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  white-space: nowrap !important;
}

ul.sub-menu li a {
  display: block !important;
  padding: 14px 22px !important;
  line-height: 1.3 !important;
}

/* Galerias do Elementor preservadas estaticamente */
.e-gallery-container,
.elementor-gallery__container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  height: auto !important;
  overflow: visible !important;
  align-items: start !important;
}

.e-gallery-item,
.elementor-gallery-item {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  background-image: none !important;
  text-decoration: none !important;
  aspect-ratio: 4 / 3 !important;
  cursor: pointer !important;
}

.e-gallery-image,
.elementor-gallery-item__image {
  display: none !important;
}

.scielo-preserved-gallery-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Crédito/overlay aparece apenas no hover */
.e-gallery-item__overlay,
.elementor-gallery-item__overlay,
.elementor-gallery-item__content,
.elementor-gallery-item__title,
.elementor-gallery-item__description,
.elementor-gallery-item__caption,
.elementor-gallery__item-title,
.elementor-gallery__item-description,
.e-gallery-item__content,
.e-gallery-item__title,
.e-gallery-item__description {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.e-gallery-item__overlay,
.elementor-gallery-item__overlay,
.e-gallery-item__content,
.elementor-gallery-item__content {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 16px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
}

.e-gallery-item:hover .e-gallery-item__overlay,
.e-gallery-item:hover .elementor-gallery-item__overlay,
.e-gallery-item:hover .elementor-gallery-item__content,
.e-gallery-item:hover .elementor-gallery-item__title,
.e-gallery-item:hover .elementor-gallery-item__description,
.e-gallery-item:hover .elementor-gallery-item__caption,
.e-gallery-item:hover .elementor-gallery__item-title,
.e-gallery-item:hover .elementor-gallery__item-description,
.e-gallery-item:hover .e-gallery-item__content,
.e-gallery-item:hover .e-gallery-item__title,
.e-gallery-item:hover .e-gallery-item__description,
.elementor-gallery-item:hover .e-gallery-item__overlay,
.elementor-gallery-item:hover .elementor-gallery-item__overlay,
.elementor-gallery-item:hover .elementor-gallery-item__content,
.elementor-gallery-item:hover .elementor-gallery-item__title,
.elementor-gallery-item:hover .elementor-gallery-item__description,
.elementor-gallery-item:hover .elementor-gallery-item__caption,
.elementor-gallery-item:hover .elementor-gallery__item-title,
.elementor-gallery-item:hover .elementor-gallery__item-description,
.elementor-gallery-item:hover .e-gallery-item__content,
.elementor-gallery-item:hover .e-gallery-item__title,
.elementor-gallery-item:hover .e-gallery-item__description {
  opacity: 1 !important;
  visibility: visible !important;
}

