/* Estilos do runtime das páginas replicadas (pop-ups, carrosséis, fixo no topo, animações). */

/* ---------- pop-ups ---------- */
[data-inc-popup]:not([data-state="open"]) {
  display: none !important;
}
[data-inc-popup][data-state="open"] {
  display: block;
}
[data-inc-popup] .kd-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: transparent;
}
[data-inc-popup] .kd-popup-surface {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, 0.8);
}
[data-inc-popup] .kd-popup-surface > .dialog-widget-content {
  position: relative;
  margin: auto;
  pointer-events: auto;
  max-width: 100%;
}
[data-inc-popup] .dialog-close-button {
  position: absolute;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #1f2124;
  z-index: 2;
  display: flex;
}
[data-inc-popup] .dialog-close-button svg {
  fill: currentColor;
  width: 1em;
  height: 1em;
}
html.inc-popup-open,
html.inc-popup-open body {
  overflow: hidden !important;
}
html.inc-popup-open body {
  padding-right: var(--inc-scrollbar, 0px);
}

/* ---------- carrosséis convertidos (slick → Swiper) ---------- */
.inc-slick-host {
  position: relative;
}
.slick-initialized.swiper {
  overflow: hidden;
}
.slick-initialized.swiper > .swiper-wrapper {
  display: flex;
}
.slick-initialized.swiper .swiper-slide {
  display: block;
  float: none;
  height: auto;
}
.ha-equal-height-yes .slick-initialized.swiper .swiper-wrapper {
  align-items: stretch;
}
.ha-equal-height-yes .slick-initialized.swiper .swiper-slide > * {
  height: 100%;
}
.inc-slick-host > .slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.inc-slick-host > .slick-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.inc-slick-host > .slick-arrow::before {
  content: none;
}
.inc-slick-host > .slick-prev {
  left: -6px;
}
.inc-slick-host > .slick-next {
  right: -6px;
}
.inc-slick-host > .slick-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}
.inc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.inc-dots .inc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  cursor: pointer;
}
.inc-dots .inc-dot.slick-active {
  opacity: 0.85;
}
.inc-scroll-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.inc-scroll-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ---------- fixo no topo dentro do bloco pai ---------- */
.inc-sticky-css {
  position: sticky !important;
  align-self: flex-start;
}

/* ---------- linha do tempo ---------- */
.ha-timeline-tree-inner {
  transition: height 0.15s linear;
}

/* ---------- animações de entrada (iguais às do Elementor) ---------- */
.elementor-invisible {
  visibility: hidden;
}
.animated {
  animation-duration: 1.25s;
}
.animated.animated-slow {
  animation-duration: 2s;
}
.animated.animated-fast {
  animation-duration: 0.75s;
}
.animated.fadeIn { animation-name: fadeIn; }
.animated.fadeInUp { animation-name: fadeInUp; }
.animated.fadeInDown { animation-name: fadeInDown; }
.animated.fadeInLeft { animation-name: fadeInLeft; }
.animated.fadeInRight { animation-name: fadeInRight; }
.animated.zoomIn { animation-name: zoomIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .animated { animation: none !important; }
}

/* ---------- menu dentro de pop-up (menu do celular/tablet) ----------
   O submenu abre empurrando os itens de baixo, como acordeão, em vez de cobrir os outros itens. */
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-content {
  position: static;
  left: auto;
  right: auto;
  width: auto;
}
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-content.e-active {
  padding-block-start: 12px;
}
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-heading,
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-wrapper {
  width: 100%;
}
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
[data-inc-popup] .elementor-widget-n-menu .e-n-menu:not([data-layout="dropdown"]) .e-n-menu-title {
  align-self: flex-start;
}
