/* Ajustes próprios do site (carregado por último, vence os estilos herdados). */

/* Cabeçalho fixo no topo ao rolar. */
#outer-wrap,
#wrap {
  overflow: visible;
}
html,
body {
  overflow-x: clip;
}
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Submenus do menu principal (desktop): abrem ao passar o mouse ou focar. */
.elementor-nav-menu--main .elementor-nav-menu li.menu-item-has-children {
  position: relative;
}
.elementor-nav-menu--main .elementor-nav-menu li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 12em;
  max-width: 22em;
  z-index: 1000;
}
.elementor-nav-menu--main .elementor-nav-menu li.menu-item-has-children:hover > ul.sub-menu,
.elementor-nav-menu--main .elementor-nav-menu li.menu-item-has-children:focus-within > ul.sub-menu {
  display: block;
}

/* Aviso de erro no envio de formulário. */
.ems-form-aviso:empty {
  display: none;
}
.ems-form-aviso {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fdecea;
  color: #8a1c13;
  font-size: 14px;
}

/* Aviso de cookies. */
.ems-cookies[hidden] {
  display: none;
}
.ems-cookies {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  color: #3d4a45;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.ems-cookies p {
  margin: 0 0 14px;
}
.ems-cookies a {
  color: #8a7437;
  text-decoration: underline;
}
.ems-cookies-botoes {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.ems-cookies button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #214039;
  border-radius: 4px;
  background: #fff;
  color: #214039;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ems-cookies button.ems-cookies-aceitar {
  background: #214039;
  color: #fff;
}

@media (max-width: 560px) {
  /* No celular, sobe o aviso para não ficar atrás do botão do WhatsApp. */
  .ems-cookies {
    bottom: 96px;
  }
}

/* Submenus do painel do celular. */
.elementor-nav-menu--dropdown .elementor-nav-menu ul.sub-menu {
  display: none;
}
.elementor-nav-menu--dropdown .elementor-nav-menu ul.sub-menu.ems-aberto {
  display: block;
}

/* Ressalva junto ao resultado dos simuladores. */
.ems-ressalva {
  width: 100%;
  margin: 16px 0 14px;
  padding: 10px 14px;
  border-left: 3px solid #b49a58;
  background: rgba(180, 154, 88, 0.1);
  color: #3d4a45;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

/* Chamada da Calculadora da Reforma Tributária (Home). */
.ems-reforma {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: linear-gradient(120deg, #f6ecd0 0%, #efe3c2 55%, #e6d5a6 100%);
  font-family: 'Outfit', sans-serif;
}
.ems-reforma::before {
  content: '';
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(180, 154, 88, 0.16);
  border-radius: 50%;
}
.ems-reforma-grade {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
}
.ems-reforma-sobretitulo {
  margin: 0 0 14px;
  color: #8a6f2c;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ems-reforma h2 {
  margin: 0 0 20px;
  color: #214039;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  text-wrap: balance;
}
.ems-reforma h2 em {
  color: #8a6f2c;
  font-style: italic;
}
.ems-reforma-apoio {
  max-width: 54ch;
  margin: 0 0 30px;
  color: #1e2a26;
  font-size: 18px;
  line-height: 1.65;
}
.ems-reforma-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 18px 34px;
  border-radius: 8px;
  background: #214039;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(33, 64, 57, 0.3);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ems-reforma-botao:hover,
.ems-reforma-botao:focus-visible {
  background: #17302b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(33, 64, 57, 0.4);
}
.ems-reforma-botao span {
  transition: transform 0.2s;
}
.ems-reforma-botao:hover span {
  transform: translateX(4px);
}
.ems-reforma-lista {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ems-reforma-lista li {
  padding: 20px 22px;
  border-left: 3px solid #214039;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.72);
}
.ems-reforma-lista strong {
  display: block;
  color: #214039;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.ems-reforma-lista span {
  color: #46524d;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .ems-reforma {
    padding: 64px 0;
  }
  .ems-reforma-grade {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .ems-reforma-grade {
    width: min(1200px, 100% - 32px);
  }
  .ems-reforma-apoio {
    font-size: 16.5px;
  }
  .ems-reforma-botao {
    width: 100%;
    font-size: 17px;
  }
}

/* Botão "Acessar" do cabeçalho (Portal do Cliente / Aplicativo EMS). */
.ems-acesso {
  position: relative;
  flex: 0 0 auto;
}
.ems-acesso-botao {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1.5px solid #214039;
  border-radius: 6px;
  background: #fff;
  color: #214039;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ems-acesso-botao:hover,
.ems-acesso-botao:focus,
.ems-acesso-botao[aria-expanded='true'] {
  background: #214039;
  color: #fff;
}
.ems-acesso-seta {
  transition: transform 0.2s;
}
.ems-acesso-botao[aria-expanded='true'] .ems-acesso-seta {
  transform: rotate(180deg);
}
.ems-acesso-painel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  width: 310px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid #e3e0d6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 35, 31, 0.18);
  text-align: left;
}
.ems-acesso-painel[hidden] {
  display: none;
}
.ems-acesso-painel a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.ems-acesso-painel a:hover,
.ems-acesso-painel a:focus {
  background: #f6f3ea;
}
.ems-acesso-painel strong {
  display: block;
  color: #214039;
  font-size: 15px;
  font-weight: 700;
}
.ems-acesso-painel span {
  display: block;
  margin-top: 2px;
  color: #46524d;
  font-size: 13px;
  line-height: 1.45;
}
/* No painel do menu do celular, os dois acessos ficam separados dos demais itens. */
.elementor-nav-menu--dropdown li:not(.ems-menu-acesso) + li.ems-menu-acesso {
  border-top: 1px solid rgba(33, 64, 57, 0.18);
}/* Notebooks menores: o botão fica só com o ícone, para o menu caber em uma linha. */
@media (min-width: 1025px) and (max-width: 1079px) {
  .ems-acesso-rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ems-acesso-botao {
    padding: 9px 10px;
    gap: 4px;
  }
}/* Telas médias: aproxima os itens do menu para caberem em uma linha ao lado dos dois botões. */
@media (min-width: 1025px) and (max-width: 1399px) {
  #site-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  #site-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item {
    padding-left: 6px;
    padding-right: 6px;
  }
  #site-header .elementor-element-f916820 .elementor-button {
    padding-left: 12px;
    padding-right: 12px;
  }
}@media (min-width: 1025px) and (max-width: 1079px) {
  #site-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item {
    padding-left: 3px;
    padding-right: 3px;
  }
}
/* Abertura da Home: botão da Calculadora da Reforma ao lado do "Solicitar Diagnóstico Fiscal". */
.elementor-element.elementor-element-e0008cb {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px !important;
}
.elementor-element.elementor-element-e0008cb > .elementor-widget-button {
  width: auto !important;
  max-width: 100%;
  flex: 0 0 auto !important;
}
.ems-abertura-calculadora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1.5px solid #d1b675;
  border-radius: 3px;
  background: rgba(12, 33, 29, 0.35);
  color: #fff !important;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.ems-abertura-calculadora:hover,
.ems-abertura-calculadora:focus {
  background: #d1b675;
  color: #17302b !important;
}
@media (max-width: 767px) {
  .elementor-element.elementor-element-e0008cb > .elementor-widget-button,
  .elementor-element.elementor-element-e0008cb > .elementor-widget-button .elementor-button,
  .ems-abertura-calculadora {
    width: 100% !important;
  }
}