/* gv-geometria-1.0.24: escolha e microfone cobrem o formulário, largura máxima 416px. */
.gv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 24px;
  background: transparent;
  color: #1a1a1a;
  font-family: "Manrope", "Segoe UI", sans-serif;
  /* Fundo transparente não captura clique: o menu e a página seguem livres. */
  pointer-events: none;
}

.gv-backdrop .gv-welcome-modal {
  pointer-events: auto;
}

.gv-welcome-modal {
  /* 12px sob Tipo de Pessoa até a borda de Ver Catálogo. Largura máxima: 416px. */
  position: fixed;
  top: var(--gv-escolha-topo, 16px);
  left: var(--gv-escolha-esq, 16px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(416px, var(--gv-escolha-largura, calc(100vw - 32px)));
  max-width: 416px;
  height: var(--gv-escolha-altura, auto);
  min-height: var(--gv-escolha-altura, 0);
  max-height: var(--gv-escolha-altura, calc(100dvh - 16px));
  margin: 0;
  /* Topo menor para a saudação subir cerca de uma linha e os botões ganharem respiro. */
  padding: 0.4rem 18px 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 1.25rem;
  background: #fefce8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: none;
}

.gv-etapa[hidden] {
  display: none !important;
}

.gv-etapa[data-gv-etapa="escolha"] {
  /* Saudação e barras dividem a altura do painel de forma uniforme. */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.gv-marca {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gv-titulo {
  /* Sobe uma linha para os botões ganharem respiro. */
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: -0.75rem 0 0;
  color: #1a1a1a;
  font-size: 1.14rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
}

.gv-texto {
  margin: 10px 0 0;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.gv-cards {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
}

/* Caixinha agrupadora: botão pílula em cima + texto de orientação embaixo. */
.gv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1a1a1a;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gv-cards:hover .gv-card:hover {
  border-color: #333;
  box-shadow: 0 0 0 1px #333;
  background: #ffffff;
}

.gv-cards:hover .gv-card:not(:hover) {
  border-color: rgba(26, 26, 26, 0.18);
  box-shadow: none;
}

.gv-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 14.5rem;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #FFD400;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.gv-card-btn:focus,
.gv-card-btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.gv-card-texto {
  margin: 0;
  width: 100%;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
}

.gv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #1a1a1a;
  border-radius: 0.75rem;
  background: #fcd800;
  color: #1a1a1a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gv-btn:hover,
.gv-btn:focus-visible {
  background: #1a1a1a;
  color: #ffffff;
  outline: 2px solid #fcd800;
  outline-offset: 2px;
}

@media (min-width: 981px) {
  .gv-welcome-modal,
  .gv-recorder-container {
    width: 416px;
    max-width: 416px;
  }

  .gv-card-texto {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .gv-backdrop {
    align-items: center;
    height: 100dvh;
    max-height: 100dvh;
    padding: 12px;
  }

  .gv-welcome-modal {
    padding: 0.25rem 12px 0.85rem;
  }

  .gv-titulo {
    font-size: 1.05rem;
  }

  .gv-card {
    gap: 6px;
    padding: 8px 10px;
  }

  .gv-card-btn {
    width: 13.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  .gv-card-texto {
    font-size: 0.72rem;
  }
}

.gv-recorder-container {
  /* Mesma coluna do formulário: não invade o showroom nem o orçamento. */
  position: fixed;
  z-index: 32;
  /* Sobe até o topo de Tipo de Pessoa e para 20px antes de Ver Catálogo. */
  top: var(--gv-voz-topo, var(--gv-escolha-topo, 16px));
  left: var(--gv-escolha-esq, 16px);
  transform: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(416px, var(--gv-escolha-largura, calc(100vw - 32px)));
  max-width: 416px;
  height: var(--gv-voz-altura, auto);
  min-height: var(--gv-voz-altura, 0);
  max-height: var(--gv-voz-altura, calc(100dvh - 24px));
  margin: 0;
  padding: 16px 14px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 1.25rem;
  background: #fefce8;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-align: center;
}

.gv-bloco-mic,
.gv-status-text,
.gv-transcript-area,
.gv-avancar,
.gv-intencoes,
.gv-intencoes-confirmar {
  flex: none;
}

.gv-recorder-container .gv-captura {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.gv-recorder-container[hidden] {
  display: none !important;
}

.gv-fechar-voz {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a1a;
  font: 700 1.2rem/1 "Manrope", "Segoe UI", sans-serif;
  cursor: pointer;
}

.gv-fechar-voz:hover,
.gv-fechar-voz:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

/* Os títulos centrados guardam o espaço do botão de fechar dos dois lados. */
.gv-recorder-container .gv-recorder-titulo,
.gv-recorder-container .gv-intencoes-titulo {
  padding: 0 34px;
}

.gv-recorder-titulo {
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.gv-bloco-mic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
}

.gv-waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 16px;
  margin: 0;
}

.gv-waves[hidden] {
  display: none !important;
}

.gv-waves span {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #1a1a1a;
  animation: gv-onda 0.9s ease-in-out infinite;
}

.gv-waves span:nth-child(2) { animation-delay: 0.15s; }
.gv-waves span:nth-child(3) { animation-delay: 0.3s; }
.gv-waves span:nth-child(4) { animation-delay: 0.45s; }

@keyframes gv-onda {
  0%, 100% { height: 6px; }
  50% { height: 14px; }
}

.gv-mic {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  background: #fcd800;
  color: #1a1a1a;
  cursor: pointer;
}

.gv-mic[aria-pressed="true"] {
  background: #1a1a1a;
  color: #fcd800;
}

.gv-mic:hover,
.gv-mic:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 3px;
}

.gv-status-text {
  margin: 6px 0 0;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.gv-transcript-area {
  display: block !important;
  visibility: visible !important;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  height: 80px;
  min-height: 80px !important;
  max-height: 80px;
  margin: 12px 0;
  padding: 8px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  resize: none;
}

.gv-avancar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: auto 0 0;
  padding: 0.3rem 1rem;
  border: 1px solid #000;
  border-radius: 0.55rem;
  background: #000;
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.gv-avancar[hidden] {
  display: none !important;
}

.gv-avancar:disabled {
  cursor: default;
}

.gv-captura[hidden],
.gv-intencoes[hidden],
.gv-intencao-texto[hidden],
.gv-intencao-editor[hidden],
.gv-intencao-editar[hidden],
.gv-intencao-salvar[hidden] {
  display: none !important;
}

.gv-recorder-container:has(.gv-intencoes:not([hidden])) {
  overflow: hidden;
}

.gv-recorder-container:has(.gv-intencoes:not([hidden])) .gv-recorder-titulo {
  display: none;
}

.gv-intencoes {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  text-align: left;
}

.gv-intencoes-titulo {
  flex: none;
  margin: 0 0 4px;
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.gv-intencoes-lista {
  list-style: none;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  /* 215px anteriores + 3 linhas (~39px) antes da rolagem interna. */
  max-height: 332px;
  margin: 0;
  padding: 0 2px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.gv-intencao {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 3px 4px 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.45rem;
  background: #ffffff;
}

.gv-intencao-corpo {
  flex: 1 1 auto;
  min-width: 0;
}

.gv-intencao-texto {
  display: block;
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

input.gv-intencao-editor {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.gv-intencao-acoes {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.gv-intencao-editar,
.gv-intencao-salvar,
.gv-intencao-excluir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.55rem;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gv-intencao-salvar {
  padding: 0 10px;
  font-size: 0.78rem;
}

.gv-intencao-excluir {
  color: #dc2626;
  border-color: #dc2626;
}

.gv-intencao-editar:hover,
.gv-intencao-editar:focus-visible,
.gv-intencao-salvar:hover,
.gv-intencao-salvar:focus-visible,
.gv-intencao-excluir:hover,
.gv-intencao-excluir:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.gv-intencoes-add {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}

input.gv-intencoes-input {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.gv-intencoes-mais {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #000;
  border-radius: 0.55rem;
  background: #000;
  color: #ffffff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gv-intencoes-mais:hover,
.gv-intencoes-mais:focus-visible,
.gv-intencoes-confirmar:hover,
.gv-intencoes-confirmar:focus-visible,
.gv-avancar:hover,
.gv-avancar:focus-visible {
  outline: 2px solid #fcd800;
  outline-offset: 2px;
}

.gv-intencoes-espaco {
  flex: 1 1 auto;
  min-height: 0;
}

.gv-intencoes-aviso {
  flex: none;
  margin: 6px 0 0;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.gv-intencoes-aviso[hidden] {
  display: none !important;
}

.gv-intencoes-confirmar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin: 8px 0 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid #000;
  border-radius: 0.55rem;
  background: #000;
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.gv-intencoes-confirmar:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 767px) {
  .gv-recorder-container {
    top: var(--gv-voz-topo, var(--gv-escolha-topo, 12px));
    left: var(--gv-escolha-esq, 12px);
    transform: none;
    width: var(--gv-escolha-largura, calc(100vw - 24px));
    max-width: min(416px, var(--gv-escolha-largura, calc(100vw - 24px)));
    height: var(--gv-voz-altura, auto);
    max-height: var(--gv-voz-altura, calc(100dvh - 24px));
  }
}

.quote-side:has([data-gv-voz-resumo]) [data-envio-aviso]:not(.gv-aviso-livre) {
  display: none !important;
}

/* Inativo até o clique em Tradicional: aparência apagada, cursor de bloqueio e sem efeito de hover. */
#btnVerCatalogo:disabled,
#btnVerCatalogo:disabled:hover {
  opacity: 0.45;
  background: #000;
  border-color: #000;
  color: var(--white);
  cursor: not-allowed;
  box-shadow: none;
}

.quote-side [data-envio-aviso].gv-aviso-sucesso {
  font-size: 0.9rem;
  text-align: center;
}

/* Histórico permanece centrado e estreito, sem cobrir a fachada. */
body.home .historico-modal {
  width: min(360px, calc(100% - 1.5rem));
  max-width: 360px;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Catálogo ocupa a coluna do formulário, abaixo do texto institucional e sobre o botão. */
body.home .catalogo-modal {
  top: var(--gv-catalogo-topo, 16px) !important;
  left: var(--gv-catalogo-esq, 16px) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(416px, var(--gv-catalogo-largura, 416px)) !important;
  max-width: 416px !important;
  height: var(--gv-catalogo-altura, auto) !important;
  min-height: var(--gv-catalogo-altura, 0px) !important;
  max-height: var(--gv-catalogo-altura, calc(100dvh - 16px)) !important;
  margin: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.home [data-catalogo-overlay] {
  display: none !important;
  background: transparent !important;
}

body.home .catalogo-modal #titulo-produtos {
  font-size: 1.12rem;
  line-height: 1.2;
}

/* Fechar × suave no catálogo e no histórico, em qualquer tela. */
body.home .catalogo-modal .catalogo-fechar,
body.home .historico-modal .drawer-head .catalogo-fechar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.2s ease;
}

body.home .catalogo-modal .catalogo-fechar:hover,
body.home .historico-modal .drawer-head .catalogo-fechar:hover {
  background: rgba(0, 0, 0, 0.16);
}

body.home .catalogo-modal .catalogo-fechar:focus-visible,
body.home .historico-modal .drawer-head .catalogo-fechar:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* O menu superior fica acima de qualquer tela sobreposta, no desktop e no celular. */
body.home .site-header {
  z-index: 5000;
}

body.home .site-header .nav a,
body.home .site-header .nav button {
  pointer-events: auto;
}

@media (max-width: 760px) {
  /* O hambúrguer fica acima da voz e do catálogo e continua recebendo o toque. */
  body.home .nav-toggle {
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }
}

@media (min-width: 761px) {
  .nav #btnTipoOrcamento,
  .nav #btnTipoOrcamento[aria-pressed="true"] {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  .nav #btnTipoOrcamento:hover,
  .nav #btnTipoOrcamento[aria-pressed="true"]:hover {
    box-shadow: inset 0 -2px 0 var(--ink) !important;
  }
}

/* Escolha permanece sob Tipo de Pessoa. O microfone cobre esse bloco e respira 20px acima do catálogo. */
.gv-welcome-modal {
  top: var(--gv-escolha-topo, 16px) !important;
  margin-top: 0 !important;
  height: var(--gv-escolha-altura, auto) !important;
  min-height: var(--gv-escolha-altura, 0px) !important;
  max-height: var(--gv-escolha-altura, calc(100dvh - 16px)) !important;
}

.gv-recorder-container {
  top: var(--gv-voz-topo, var(--gv-escolha-topo, 16px)) !important;
  margin-top: 0 !important;
  height: var(--gv-voz-altura, var(--gv-escolha-altura, auto)) !important;
  min-height: var(--gv-voz-altura, 0px) !important;
  max-height: var(--gv-voz-altura, calc(100dvh - 16px)) !important;
}

@media (min-width: 981px) {
  .gv-welcome-modal,
  .gv-recorder-container {
    width: min(416px, var(--gv-escolha-largura, 416px)) !important;
    max-width: 416px !important;
  }
}

/* Limpar Lista: discreto no canto do cabeçalho, sem mudar a altura nem o título centrado. */
body.home .quote-side .drawer-head {
  position: relative;
}

body.home .quote-side .drawer-head .limpar-orcamento {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0.18rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.home .quote-side .drawer-head .limpar-orcamento svg {
  display: block;
  width: 13px;
  height: 13px;
}

body.home .quote-side .drawer-head .limpar-orcamento:hover,
body.home .quote-side .drawer-head .limpar-orcamento:focus-visible {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  outline: none;
}

body.home .quote-side .drawer-head .limpar-orcamento[hidden] {
  display: none !important;
}

/* Com boas-vindas ou voz abertas, o formulário coberto some: nada vaza pelas curvas do quadro. */
body.home:has(> .gv-backdrop) .hero-acao .cliente-form,
body.home:has(> .gv-recorder-container:not([hidden])) .hero-acao .cliente-form {
  visibility: hidden;
}

/* Catálogo na coluna: o formulário e o botão preto que ele cobre somem, e as quinas ficam limpas. */
body.home:has([data-catalogo-modal]:not([hidden]):not([data-arrastado])) .hero-acao .cliente-form,
body.home:has([data-catalogo-modal]:not([hidden]):not([data-arrastado])) #btnVerCatalogo {
  visibility: hidden;
}

@media (max-width: 980px) {
  /* A lista do catálogo deixa de ficar presa em 3 itens e ocupa o vão do quadro. */
  body.home .catalogo-modal .catalog-list {
    height: auto !important;
    max-height: 400px !important;
  }
}

/* Celular: a home fica presa à tela, sem arrasto nem efeito elástico do Safari. */
@media (max-width: 767px) {
  html {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
  }

  body.home {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100vh;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }

  /* Só estes quadros rolam, cada um por conta própria. */
  body.home .hero-acao .cliente-form,
  body.home .quote-side > ul.cart-list,
  body.home .catalogo-modal .catalog-list,
  body.home .historico-lista,
  body.home .suggest,
  body.home .gv-recorder-container,
  body.home .gv-intencoes-lista,
  body.home .gv-transcript-area {
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}

/* Tipografia da home nos tamanhos de leitura do início do projeto (catálogo e Seu orçamento). */
body.home .catalogo-modal .catalog-nome { font-size: 0.875rem; }
body.home .catalogo-modal .catalog-row .preco strong { font-size: 0.875rem; }
body.home .catalogo-modal .add-mini { font-size: 0.78rem; }
body.home .quote-side .cart-nome { font-size: 12px; }
body.home .quote-side .cart-compacta { font-size: 12px; }
body.home .quote-side .estimado,
body.home .quote-side .estimado strong { font-size: 0.95rem; }
body.home .quote-side .legal { font-size: 0.82rem; }
body.home .quote-side .empty { font-size: 0.95rem; }
body.home .catalogo-modal .catalogo-sem-resultado {
  margin: 0;
  padding: 1.2rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 981px) {
  body.home .site-header .nav { gap: 1.35rem; }
  body.home .site-header .nav a,
  body.home .site-header .nav button {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding: 0.2rem 0.1rem;
  }

  /*
   * Base: orçamento T = max(260px, 65% - 557,2px) e imagem = centro = C = (100% - 36px - T) / 2.
   * Centro passa a 0,75·C e o orçamento recebe os 0,25·C: T' = T + C/4 = 7T/8 + 12,5% - 4,5px,
   * ou seja max(12,5% + 223px, 69,375% - 492,05px). A imagem continua com C (proporção 4:3 com o centro).
   */
  body.home .hero-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) max(calc(12.5% + 223px), calc(69.375% - 492.05px));
  }
  body.home .hero-foto,
  body.home .hero-centro {
    max-width: none;
  }
  body.home .hero-foto { flex: 4 1 0; }
  body.home .hero-centro { flex: 3 1 0; }
  .gv-welcome-modal,
  .gv-recorder-container {
    width: var(--gv-escolha-largura, 416px) !important;
    max-width: none !important;
  }
  body.home .catalogo-modal {
    width: var(--gv-catalogo-largura, 416px) !important;
    max-width: none !important;
  }

  body.home .quote-side { container-type: inline-size; }
}
/* Orçamento estreito: Qtd, Vlr. Unit e Total quebram linha como no celular. */
@container (max-width: 380px) {
  body.home .quote-side .cart-compacta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.28rem;
    row-gap: 0.18rem;
  }
  body.home .quote-side .cart-preco,
  body.home .quote-side .cart-total {
    width: auto;
    flex: 0 1 auto;
  }
}

@media (min-width: 1441px) {
  /* Altera a raiz para preencher a tela inteira sem gerar rolagens externas */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important; /* Remove qualquer rolagem da janela do navegador */
    background: #e5e7eb !important;
  }

  /* Transforma a aplicação home em um container fixo centralizado e travado de 1440px */
  body.home {
    width: 1440px !important;
    max-width: 1440px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 auto !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; /* Organiza topo, conteúdo e rodapé verticalmente */
    justify-content: space-between !important;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06), 0 0 40px rgba(17, 24, 39, 0.12) !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  /* Garante que o container interno de conteúdo ocupe o espaço restante perfeitamente */
  body.home .main-content,
  body.home .container-principal {
    flex: 1 !important;
    height: calc(100vh - 120px) !important; /* Desconta a altura do menu e do rodapé */
    max-height: calc(100vh - 120px) !important;
    display: flex !important;
    overflow: hidden !important;
  }

  /* Trava o tamanho das colunas internas para encaixarem lado a lado na proporção perfeita da foto enviada */
  body.home .coluna-banner,
  body.home .coluna-formulario,
  body.home .coluna-orcamento {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important; /* Impede que estourem a altura vertical da tela */
  }

  /* Mantém o título no tamanho exato e ideal calculado para a largura travada */
  body.home .hero h1 {
    font-size: 20.88px !important;
  }
}

/* Formulário do cliente mais leve: fonte menor, peso médio e campos mais finos. */
body.home .cliente-form input:not([type="radio"]) {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
body.home .cliente-form input::placeholder {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

/* Enviar por WhatsApp e Enviar por E-mail lado a lado, sem aumentar a altura do quadro. */
.quote-side .envio-botoes { display: flex; gap: 0.4rem; container-type: inline-size; }
/* A fonte acompanha a largura do quadro para "Enviar por WhatsApp" caber em meia largura (teto: os 17px atuais). */
.quote-side .envio-botoes .btn {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
  padding-inline: 0.35rem;
  white-space: nowrap;
  font-size: clamp(0.7rem, calc(4.75cqi - 1.7px), 1.0625rem);
}

/*
 * Zoom do navegador ou janela estreita: abaixo de 1280px úteis as três colunas espremem o formulário
 * (telefone, e-mail e CEP cortados). A foto e o formulário seguem lado a lado e o Seu orçamento
 * desce para a linha de baixo, na largura toda; a página volta a rolar em vez de cortar o conteúdo.
 */
@media (min-width: 981px) and (max-width: 1279px) {
  body.home {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }
  body.home main,
  body.home .hero {
    flex: none;
    height: auto;
    overflow: visible;
  }
  body.home .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 18px;
    height: auto;
    padding-right: 20px;
    padding-bottom: 20px;
  }
  body.home .hero-par {
    grid-column: 1;
    grid-row: 1;
    height: auto;
  }
  body.home .hero-foto { flex: 1 1 0; height: auto; }
  body.home .hero-centro { flex: 0 0 clamp(400px, 46%, 520px); height: auto; }
  body.home .quote-side {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 320px;
    max-height: max(420px, 75dvh);
    margin-right: 0;
  }
  body.home .quote-side .legal { max-width: none; }
}

/* Confirmação de identidade antes de abrir "Meus Orçamentos".
   O modal vira coluna: em telas baixas só as opções rolam e o botão de confirmar continua à vista. */
body.home .historico-modal:not([hidden]) {
  display: flex;
  flex-direction: column;
}
body.home .historico-modal .drawer-head {
  position: relative;
  flex: none;
  justify-content: center;
  padding: 0.7rem 3rem;
}
/* Título centrado no cabeçalho; o × fica no canto sem empurrá-lo. */
body.home .historico-modal .drawer-head h2 {
  flex: 0 1 auto;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  text-align: center;
}
body.home .historico-modal .drawer-head .catalogo-fechar {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  margin: 0;
  transform: translateY(-50%);
}
body.home .historico-busca-linha input,
body.home .historico-busca-linha .btn {
  height: 38px;
  min-height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}
body.home .historico-modal .historico-corpo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
body.home .historico-busca,
body.home .historico-vazio { flex: none; }
body.home .historico-corpo:has(.historico-identidade:not([hidden])) .historico-instrucao { display: none; }
body.home .historico-corpo:has(.historico-identidade:not([hidden])) .historico-busca { margin-top: 0.7rem; }
body.home .historico-identidade {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0.6rem 0 0.1rem;
  padding: 0.55rem 0.5rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #fafafa;
}
body.home .historico-identidade[hidden] { display: none; }
body.home .historico-identidade [data-identidade-perguntas] {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
body.home .historico-identidade-titulo,
body.home .historico-identidade .historico-erro,
body.home .historico-identidade .btn { flex: none; }
body.home .historico-identidade-titulo {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}
body.home .historico-pergunta {
  min-width: 0;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
}
body.home .historico-pergunta legend {
  margin-bottom: 0.2rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}
/* 2 colunas quando cabem duas de 10rem (o e-mail mascarado inteiro); no celular cai para 1. */
body.home .historico-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.25rem 0.3rem;
}
body.home .historico-pergunta label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0.24rem 0.38rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  cursor: pointer;
}
body.home .historico-pergunta label:has(input:checked) {
  border-color: var(--yellow);
  background: var(--yellow-50);
}
body.home .historico-pergunta input {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: #111;
}
body.home .historico-identidade .historico-erro { margin: 0 0 0.35rem; }
body.home .historico-identidade .btn {
  align-self: center;
  width: auto;
  min-width: 9.5rem;
  min-height: 36px;
  margin: 0.15rem 0 0;
  padding: 0 1.4rem;
  font-size: 0.9rem;
}
body.home .historico-identidade .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
