/* Passeio 3D da home, em formato de banner. Tudo fica dentro de .hd3d para não afetar o resto do site. */
.hd3d {
  --blue: #13349a; --orange: #e57819; --ink: #1a1a1a; --muted: #5b6068;
  --card: rgba(255, 255, 255, .9); --hemi: "Hemi Head Rg Bold Italic", Roboto, sans-serif;
  position: relative; z-index: 0; background: #dcddd3; color: var(--ink); font-family: Roboto, sans-serif;
}
.hd3d * { box-sizing: border-box; }
.hd3d-palco {
  position: relative; overflow: hidden; touch-action: pan-y; min-height: 480px;
  height: calc(100vh - var(--topo, 0px)); height: calc(100svh - var(--topo, 0px));
}
#hd3d-cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hd3d-carregando {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #e6e7e1;
  transition: opacity .6s; color: var(--ink); font-weight: 600;
}
#hd3d-carregando.done { opacity: 0; pointer-events: none; }

.hd3d-etapas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hd3d .step {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 20px 20px 56px max(6vw, 84px);
  visibility: hidden; transition: visibility 0s linear .35s;
}
.hd3d .step.is-active { visibility: visible; transition-delay: 0s; }
.hd3d .card {
  pointer-events: auto; max-width: 440px; background: var(--card); border-left: 5px solid var(--orange);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 4px; padding: 28px 30px; box-shadow: 0 18px 50px rgba(20, 30, 60, .14);
  opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease;
}
/* o card novo entra quando a câmera já está chegando na cena */
.hd3d .step.is-active .card { opacity: 1; transform: none; transition: opacity .5s ease .75s, transform .5s ease .75s; }
.hd3d .kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hemi); font-size: 18px; color: var(--orange); margin-bottom: 10px; }
.hd3d .kicker::before { content: ""; width: 18px; height: 3px; background: var(--orange); }
.hd3d .card h2 { margin: 0 0 12px; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; font-weight: 600; font-size: clamp(22px, 2.3vw, 30px); }
.hd3d .card h2.hd3d-titulo { font-size: clamp(28px, 3.4vw, 42px); }
.hd3d .nw { white-space: nowrap; }
.hd3d .card p { margin: 0; color: #3d4148; font-size: 16px; line-height: 1.6; }
.hd3d .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hd3d .chip { padding: 7px 13px; border-radius: 0; background: #000; color: #fff; font-family: var(--hemi); font-size: 15px; text-decoration: none; }
.hd3d a.chip:hover { background: var(--orange); color: #fff; }
.hd3d .card.destaque { max-width: 470px; }
.hd3d .card.destaque h2 { font-size: clamp(24px, 2.6vw, 34px); }
.hd3d .card.destaque p { font-size: 17px; }

/* setas nas laterais */
.hd3d-seta {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 0;
  display: grid; place-items: center; background: #000; cursor: pointer; transition: background .2s, opacity .2s;
}
.hd3d-seta svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hd3d-seta:hover { background: var(--orange); }
.hd3d-seta:disabled { opacity: .25; cursor: default; background: #000; }
.hd3d-ant { left: 20px; }
.hd3d-prox { right: 20px; }

/* bolinhas das etapas, embaixo */
.hd3d .dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: flex; gap: 12px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85);
}
.hd3d .dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #000;
  background: transparent; cursor: pointer; transition: background .2s, transform .2s;
}
.hd3d .dots button.on { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }

@media (max-width: 800px) {
  .hd3d .step { align-items: flex-end; padding: 16px 16px 92px; }
  .hd3d .card { max-width: none; width: 100%; padding: 16px 18px; }
  .hd3d .card p, .hd3d .card.destaque p { font-size: 14px; line-height: 1.45; }
  .hd3d .card h2, .hd3d .card.destaque h2 { font-size: 21px; margin-bottom: 8px; }
  .hd3d .card h2.hd3d-titulo { font-size: 26px; }
  .hd3d .kicker { font-size: 15px; margin-bottom: 6px; }
  .hd3d .chips { gap: 5px; margin-top: 10px; }
  .hd3d .chip { font-size: 12px; padding: 5px 8px; }
  .hd3d-seta { top: 28%; width: 40px; height: 40px; margin-top: -20px; }
  .hd3d-seta svg { width: 20px; height: 20px; }
  .hd3d-ant { left: 8px; }
  .hd3d-prox { right: 8px; }
  .hd3d .dots { bottom: 40px; gap: 10px; padding: 6px 12px; }
}
@media (max-width: 360px) {
  .hd3d .dots { gap: 6px; padding: 6px 10px; }
  .hd3d .dots button { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd3d .card, .hd3d .step.is-active .card { transition: none; }
}
/* notebooks com tela baixa: o card encolhe para caber acima das bolinhas */
@media (min-width: 801px) and (max-height: 720px) {
  .hd3d .card { padding: 18px 22px; }
  .hd3d .card p, .hd3d .card.destaque p { font-size: 14px; line-height: 1.45; }
  .hd3d .kicker { font-size: 15px; margin-bottom: 6px; }
  .hd3d .chips { gap: 6px; margin-top: 10px; }
  .hd3d .chip { font-size: 13px; padding: 5px 10px; }
}
