/* Ajustes do site estático (substituem os scripts do WordPress/Elementor) */

/* Menu: submenus no desktop abrem no hover/foco */
.elementor-nav-menu--main .elementor-nav-menu li {
  position: relative;
}
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul {
  display: block;
}
.elementor-nav-menu--main .elementor-nav-menu > li > ul {
  top: 100%;
  left: 0;
  z-index: 100;
}
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu ul.sub-menu {
  top: 0 !important;
  left: 100% !important;
}
/* Submenus com largura suficiente para o texto */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu {
  width: auto !important;
  min-width: 12em;
}
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu a {
  white-space: nowrap;
  padding-right: 36px;
}
.elementor-nav-menu--main
  .elementor-nav-menu--layout-horizontal
  .elementor-nav-menu
  a.has-submenu,
.elementor-nav-menu a.has-submenu {
  cursor: pointer;
}

/* Menu mobile: submenus abrem ao tocar */
.elementor-nav-menu--dropdown .elementor-nav-menu ul {
  display: none;
}
.elementor-nav-menu--dropdown .elementor-nav-menu li.is-open > ul {
  display: block;
}
.elementor-nav-menu--dropdown .sub-arrow {
  margin-left: 0.5em;
}

/* Ícones do Elementor que não vêm mais da fonte eicons */
.eicon-menu-bar,
.eicon-close {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
}
.eicon-menu-bar {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v2.4H2zm0 5.8h20v2.4H2zm0 5.8h20V19H2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v2.4H2zm0 5.8h20v2.4H2zm0 5.8h20V19H2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.eicon-close {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.2 2.5 12 10.3l7.8-7.8 1.7 1.7-7.8 7.8 7.8 7.8-1.7 1.7-7.8-7.8-7.8 7.8-1.7-1.7 7.8-7.8-7.8-7.8z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.2 2.5 12 10.3l7.8-7.8 1.7 1.7-7.8 7.8 7.8 7.8-1.7 1.7-7.8-7.8-7.8 7.8-1.7-1.7 7.8-7.8-7.8-7.8z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.jki.jki-mail-line {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  font-style: normal;
}
.jki.jki-mail-line::before {
  content: "\f0e0";
}

/* Cabeçalho fixo ao rolar */
.is-stuck {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  z-index: 99;
}

/* Galeria: imagens aparecem sem depender do script de lazyload */
.e-gallery-image {
  background-size: cover;
  background-position: center;
  opacity: 1 !important;
}

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  display: block;
}
.wa-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.wa-float:hover {
  transform: scale(1.08);
}

/* Lightbox simples da galeria */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lb.open {
  display: flex;
}
.lb img {
  max-width: 92vw;
  max-height: 86vh;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.lb button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 12px 16px;
}
.lb .lb-close {
  top: 10px;
  right: 10px;
}
.lb .lb-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.lb .lb-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Vídeo responsivo */
.elementor-widget-video .elementor-wrapper iframe {
  width: 100%;
  height: 100%;
}
nav.elementor-nav-menu--dropdown {
  --menu-height: 100vh;
}
.elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown {
  overflow-y: auto;
}
/* Seções de largura total (antes calculadas via JS) */
.elementor-section-stretched {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  position: relative;
}
html {
  overflow-x: hidden;
}
body {
  overflow-x: clip;
}

/* Popups (menu do celular e busca) */
.pop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10001;
  display: none;
}
.pop.open {
  display: block;
}
.pop-box {
  position: absolute;
  background: #fefaf1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: "Nunito", sans-serif;
}
.pop[data-kind="menu"] .pop-box {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  padding: 64px 24px 24px;
  overflow-y: auto;
}
.pop[data-kind="busca"] .pop-box {
  top: 20vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  padding: 40px 24px 24px;
  border-radius: 16px;
}
.pop-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  color: #2b7a83;
  cursor: pointer;
}
.pop-menu,
.pop-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pop-menu ul {
  display: none;
  padding-left: 14px;
}
.pop-menu li.is-open > ul {
  display: block;
}
.pop-menu a {
  display: block;
  padding: 11px 0;
  color: #2b7a83;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 122, 131, 0.15);
  font-size: 15px;
}
.pop-menu ul a {
  font-weight: 600;
  font-size: 14px;
  color: #a24f1c;
}
.pop-menu a.has-submenu::after {
  content: " ▾";
}
.pop-search label {
  display: block;
  font-weight: 800;
  color: #2b7a83;
  font-size: 20px;
  margin-bottom: 12px;
}
.pop-search input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid #7b9d65;
  border-radius: 10px;
  font-family: inherit;
}
.pop-search button {
  margin-top: 12px;
  background: #a24f1c;
  color: #fff;
  border: 0;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pop-menu a.has-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Âncoras não ficam escondidas atrás do cabeçalho fixo */
[id] {
  scroll-margin-top: 120px;
}
