.nv-aviso {
  background: #fff7d6;
  color: #7a5b00;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
}
.nv-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.nv-hero {
  background: #fff;
  padding: 48px 0 12px;
}
.nv-hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  max-width: 640px;
}
.nv-hero h1 em {
  font-style: normal;
  color: var(--lilas-escuro);
}
.nv-hero p {
  margin: 12px 0 8px;
  color: var(--cinza-fonte);
  font-size: 18px;
  max-width: 520px;
}
.nv-roleta-wrap {
  position: relative;
}
.nv-roleta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 22px 4px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.nv-roleta::-webkit-scrollbar {
  display: none;
}
.nv-cat {
  flex: 0 0 auto;
  width: 112px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  color: var(--preto-fonte);
  scroll-snap-align: start;
  padding: 0;
}
.nv-cat-ic {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border-radius: 28px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  outline: 3px solid transparent;
  outline-offset: 3px;
}
.nv-ico {
  display: block;
  width: 70px;
  height: 70px;
  transition: transform 0.2s ease-out;
}
.nv-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}
.nv-cat:hover .nv-ico {
  transform: translateY(-2px) scale(1.05);
}
.nv-cat:active .nv-ico {
  transform: scale(0.96);
}
.nv-cat b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}
.nv-cat.on .nv-cat-ic {
  outline-color: var(--lilas);
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.3);
}
.nv-cat.on b {
  color: var(--lilas-escuro);
}
.nv-seta {
  position: absolute;
  top: 58px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd6fe;
  background: #fff;
  color: var(--lilas-escuro);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.18);
  display: none;
}
.nv-seta-e {
  left: -14px;
}
.nv-seta-d {
  right: -14px;
}
@media (min-width: 900px) {
  .nv-seta {
    display: block;
  }
}
.nv section {
  padding: 0;
}
.nv-wrap > section {
  padding: 22px 0 6px;
}
.nv-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
  gap: 12px;
}
.nv-sec-h h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.nv-conta {
  color: var(--cinza-fonte);
  font-size: 14px;
  font-weight: 700;
}
.nv-rail-wrap {
  position: relative;
  margin: 0 -20px;
}
.nv-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  padding: 6px 20px 22px;
  scrollbar-width: none;
}
.nv-rail::-webkit-scrollbar {
  display: none;
}
.nv-rail.arrastando {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.nv-rail-wrap::before,
.nv-rail-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 36px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.nv-rail-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--fundo-site), rgba(248, 249, 252, 0));
}
.nv-rail-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--fundo-site), rgba(248, 249, 252, 0));
}
.nv-rail-wrap.tem-e::before,
.nv-rail-wrap.tem-d::after {
  opacity: 1;
}
.nv-rail-seta {
  display: none;
  position: absolute;
  top: calc(50% - 16px);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ececf1;
  background: #fff;
  color: var(--preto-fonte);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.14);
  transition:
    transform 0.12s ease-out,
    color 0.18s ease-out;
}
.nv-rail-seta:hover {
  color: var(--lilas-escuro);
}
.nv-rail-seta:active {
  transform: scale(0.94);
}
.nv-rail-e {
  left: 10px;
}
.nv-rail-d {
  right: 10px;
}
@media (hover: hover) and (min-width: 900px) {
  .nv-rail-seta:not([hidden]) {
    display: block;
  }
}
.nv-card {
  position: relative;
  flex: 0 0 min(168px, 41vw);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 16px 12px 12px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
  color: var(--preto-fonte);
  text-decoration: none;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}
.nv-card:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}
@media (hover: hover) {
  .nv-card:hover {
    transform: translateY(-2px);
    border-color: #ddd6fe;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.12);
  }
}
.nv-card:focus-visible {
  outline: 2px solid var(--lilas-escuro);
  outline-offset: 2px;
}
.nv-anima .nv-card {
  animation: nvEntra 0.28s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes nvEntra {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.nv-foto {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 6px;
}
.nv-foto img,
.nv-inicial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #f3eeff;
  font-size: 26px;
  font-weight: 800;
  color: var(--lilas-escuro);
}
.nv-nome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.nv-nome > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv-esp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lilas);
  text-wrap: balance;
}
.nv-bairro {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  font-size: 13px;
  color: var(--cinza-fonte);
  white-space: nowrap;
}
.nv-bairro > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-bairro i {
  font-style: normal;
  color: #c4c4cc;
}
.nv-nota {
  flex: none;
  font-weight: 800;
  color: var(--preto-fonte);
}
.nv-nota span {
  color: #f59e0b;
}
.nv-novo {
  flex: none;
  font-weight: 700;
}
.nv-verif {
  position: absolute;
  right: -1px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro));
  border: 2px solid #fff;
  box-sizing: content-box;
  color: #fff;
  box-shadow: 0 1px 3px rgba(60, 20, 140, 0.3);
}
.nv-verif svg {
  width: 11px;
  height: 11px;
}
.nv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 1.5px solid var(--lilas);
  border-radius: 999px;
  background: #fff;
  color: var(--preto-fonte);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    border-color 0.18s ease-out;
}
.nv-card:active .nv-btn {
  background: var(--lilas-escuro);
  border-color: var(--lilas-escuro);
  color: #fff;
}
@media (hover: hover) {
  .nv-card:hover .nv-btn {
    background: var(--lilas);
    border-color: var(--lilas);
    color: #fff;
  }
}
.nv-esq {
  display: flex;
  gap: 20px;
  overflow: hidden;
  padding: 22px 4px;
}
.nv-esq[hidden] {
  display: none;
}
.nv-esq span {
  flex: 0 0 min(168px, 41vw);
  height: 186px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f3f3f7 25%, #fafafc 50%, #f3f3f7 75%);
  background-size: 200% 100%;
  animation: nvBrilho 1.3s linear infinite;
}
@keyframes nvBrilho {
  to {
    background-position: -200% 0;
  }
}
.nv-busca:focus-within {
  box-shadow:
    0 8px 30px rgba(124, 58, 237, 0.18),
    0 0 0 3px rgba(139, 92, 246, 0.25);
}
.nv-busca {
  transition: box-shadow 0.2s ease-out;
}
.nv-chip,
.nv-cat {
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.12s ease-out;
}
.nv-chip {
  min-height: 40px;
}
.nv-chip:active,
.nv-cat:active {
  transform: scale(0.96);
}
@media (prefers-reduced-motion: reduce) {
  .nv *,
  .nv *::before,
  .nv *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
.nv-vazio-txt {
  color: var(--cinza-fonte);
  font-weight: 700;
  padding: 30px 0 12px;
  text-align: center;
}
.nv-btn-todas {
  display: block;
  margin: 0 auto 40px;
  background: var(--lilas);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#nv-vazio[hidden],
#nv-sec-a[hidden],
#nv-sec-b[hidden],
.nv-btn-todas[hidden] {
  display: none;
}

.nv-busca {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.18);
  padding: 8px;
  max-width: 720px;
  border: 1px solid #eee;
  margin-top: 18px;
}
.nv-busca label {
  flex: 1;
  padding: 6px 22px;
  border-right: 1px solid #eee;
  cursor: text;
  min-width: 0;
}
.nv-busca small {
  display: block;
  font-size: 11px;
  font-weight: 800;
}
.nv-busca input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  color: var(--preto-fonte);
  background: transparent;
  padding: 0;
}
.nv-busca > .nv-buscar {
  background: var(--lilas);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.nv-busca > .nv-buscar:hover {
  background: var(--lilas-escuro);
}
.nv-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 0;
}
.nv-chip {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}
.nv-chip.on {
  background: #f3eeff;
  color: var(--lilas-escuro);
  border-color: var(--lilas);
}
.nv-passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nv-passo {
  background: var(--fundo-site);
  border-radius: 24px;
  padding: 26px;
}
.nv-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--lilas-escuro);
  border: 1px solid #ddd6fe;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.nv-passo h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.nv-passo p {
  color: var(--cinza-fonte);
  font-size: 15px;
}
.nv-confianca {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.nv-confianca > div {
  background: #f1ebff;
  border-radius: 24px;
  padding: 26px;
}
.nv-confianca h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.nv-confianca p {
  color: var(--cinza-fonte);
  font-size: 14px;
}
.nv-em {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.nv-em svg {
  display: block;
  width: 100%;
  height: 100%;
}
.nv-cta {
  background: linear-gradient(135deg, var(--lilas), var(--lilas-escuro));
  border-radius: 28px;
  color: #fff;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.nv-cta h2 {
  font-size: 28px;
  max-width: 480px;
  letter-spacing: -0.5px;
}
.nv-cta a {
  background: #fff;
  color: var(--lilas-escuro);
  font-weight: 800;
  padding: 15px 28px;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .nv-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 16px 20px 4px;
    scrollbar-width: none;
  }
  .nv-chips::-webkit-scrollbar {
    display: none;
  }
  .nv-chip {
    flex: none;
    white-space: nowrap;
  }
  .nv-sec-h h2 {
    font-size: 20px;
  }
  .nv-conta {
    flex: none;
    white-space: nowrap;
    font-size: 13px;
  }
  .nv-busca {
    flex-direction: column;
    border-radius: 24px;
    align-items: stretch;
  }
  .nv-busca label {
    border-right: 0;
    border-bottom: 1px solid #eee;
    padding: 10px 16px;
  }
  .nv-busca > .nv-buscar {
    margin-top: 8px;
  }
  .nv-passos,
  .nv-confianca {
    grid-template-columns: 1fr;
  }
}

/* A /familias tem regras globais para label, input e :focus (public/css/familias.css, feitas para o
   formulário). Aqui a barra de busca volta ao visual do teste, sem herdar nada delas. */
.nv .nv-busca label {
  margin: 0;
  font-weight: 400;
}
.nv .nv-busca input,
.nv .nv-busca input:focus {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  font-weight: 400;
  transition: none;
}
.nv .nv-busca input::placeholder {
  color: #757575;
  font-weight: 400;
}

/* Computador: o resto da /familias é centralizado, então o topo também. No celular nada muda.
   "safe center" centraliza quando sobra espaço e volta ao início quando precisa rolar. */
@media (min-width: 900px) {
  .nv-hero .nv-wrap {
    text-align: center;
  }
  .nv-hero h1,
  .nv-hero p,
  .nv-busca {
    margin-left: auto;
    margin-right: auto;
  }
  .nv-roleta,
  .nv-chips,
  .nv-rail {
    justify-content: safe center;
  }
  .nv-busca label {
    text-align: left;
  }
  .nv-sec-h {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }
  .nv-seta[hidden] {
    display: none;
  }
}

/* Na /familias o cabeçalho é fixo (até ~100px de altura): sem este respiro o título fica por baixo dele. */
.nv-sob-topo .nv-hero {
  padding-top: 130px;
}

/* /familias: os passos ficam em coluna ao lado da foto (a grade .como-funciona-grid vem do familias.css). */
.nv-passos.nv-passos-lado {
  grid-template-columns: 1fr;
}
.nv-passos-lado .nv-passo {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* /familias: frase e botão logo abaixo da faixa preta ("a Afeto me ajuda" abre o formulário de pedido). */
.nv-ajuda {
  text-align: center;
}
.nv-ajuda p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: var(--cinza-fonte);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.nv-ajuda .btn-primary {
  background: var(--lilas);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}
.nv-ajuda .btn-primary:hover {
  background: var(--lilas-escuro);
  color: #fff;
}

/* Onde: sugestões de bairros e cidades logo abaixo da barra. */
.nv-busca .nv-campo-onde {
  position: relative;
}
.nv-busca .lista-bairros {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: -8px;
  right: auto;
  width: max(100%, 260px);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18);
  text-align: left;
  z-index: 40;
}
.nv-busca .lista-bairros.ativo {
  display: block;
}
.nv-busca .opcao-bairro {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.nv-busca .opcao-bairro:hover,
.nv-busca .opcao-bairro.destaque {
  background: #f5f3ff;
  color: var(--lilas-escuro);
}
.nv-busca .opcao-bairro.sem-resultado {
  color: #757575;
  font-style: italic;
  font-weight: 600;
  cursor: default;
}

/* Quando: botão no lugar do campo de texto, abre o calendário (css/calendario.css). */
.nv-quando {
  position: relative;
  flex: 1;
  min-width: 0;
}
.nv-quando-btn {
  display: block;
  width: 100%;
  padding: 6px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nv-quando-btn span {
  display: block;
  font-size: 14px;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-quando-btn.preenchido span {
  color: var(--preto-fonte);
  font-weight: 700;
}
.nv-cal-pop {
  position: absolute;
  top: calc(100% + 16px);
  right: -8px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.18);
  text-align: left;
  z-index: 40;
}
.nv-cal-pop[hidden] {
  display: none;
}
.nv-cal-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.nv-cal-limpar {
  padding: 8px;
  border: 0;
  background: none;
  color: #6b7280;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.nv-cal-ok {
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--lilas);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.nv-cal-ok:hover {
  background: var(--lilas-escuro);
}
@media (max-width: 760px) {
  .nv-quando-btn {
    padding: 10px 16px;
  }
  .nv-busca .lista-bairros {
    left: 0;
    right: 0;
    width: auto;
    border-radius: 20px;
    top: calc(100% + 4px);
  }
  .nv-cal-pop {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    top: calc(100% + 4px);
  }
}

body.nv-cal-aberto .btn-wpp {
  display: none !important;
}

/* Ícone à esquerda de "Onde" (alfinete) e "Quando" (calendário), no roxo da Afeto. */
.nv-busca .nv-campo-ic {
  padding-left: 54px;
}
.nv-busca .nv-ic {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  line-height: 1;
  color: var(--lilas);
  pointer-events: none;
}
@media (max-width: 760px) {
  .nv-busca .nv-campo-ic {
    padding-left: 48px;
  }
  .nv-busca .nv-ic {
    left: 16px;
  }
}
