/* Hero da home: cenários de negócios + notificações em movimento.
   Mantido separado do home-impact.css para reduzir acoplamento visual. */

.public-home-page .impact-hero-counter {
  display: none !important;
}

.public-home-page .impact-hero-control-rail {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

/*
 * Os cenários novos usam fotos externas quando disponíveis, mas o hero nunca
 * pode ficar vazio se o CDN atrasar, for bloqueado ou falhar. Cada slide novo
 * recebe abaixo um asset local já versionado no SixoApp como fallback visual.
 * O background aparece durante o carregamento e permanece visível em caso de
 * erro do <img>, eliminando os quadros vazios observados em produção/preview.
 */
.public-home-page .impact-hero-frame .impact-hero-slide:nth-child(2) {
  object-position: 50% center;
  background: #08152b url('/site-assets/images/home-impact/hero-carousel/02-atendimento-domiciliar.jpg') center / cover no-repeat;
}

.public-home-page .impact-hero-frame .impact-hero-slide:nth-child(3) {
  object-position: 52% center;
  background: #08152b url('/site-assets/images/home-impact/hero.webp') 67% center / cover no-repeat;
}

.public-home-page .impact-hero-frame .impact-hero-slide:nth-child(4) {
  object-position: 50% center;
  background: #08152b url('/site-assets/images/home-impact/hero-carousel/04-servico-em-campo.jpg') 61% center / cover no-repeat;
}

.public-home-page .impact-hero-frame .impact-hero-slide:nth-child(5) {
  object-position: 52% center;
  background: #08152b url('/site-assets/images/home-impact/hero-carousel/05-cliente-aprova-web.jpg') 38% center / cover no-repeat;
}

.public-home-page .impact-localized {
  display: none;
}

html[lang^="pt"] .public-home-page .impact-localized--pt,
html[lang^="en"] .public-home-page .impact-localized--en,
html[lang^="es"] .public-home-page .impact-localized--es {
  display: inline;
}

.public-home-page .impact-push-stack {
  position: absolute;
  z-index: 6;
  top: 108px;
  right: 18px;
  width: min(292px, 62%);
  min-height: 102px;
  pointer-events: none;
}

.public-home-page .impact-push-card {
  position: absolute;
  inset: 0 0 auto auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(186, 248, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8, 19, 39, 0.94), rgba(12, 24, 52, 0.88));
  box-shadow: 0 18px 50px rgba(0, 4, 18, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  transform: translate3d(22px, -8px, 0) scale(0.965);
  transform-origin: 100% 0;
  animation: impact-push-cycle 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: opacity, transform;
}

.public-home-page .impact-push-card:nth-child(2) {
  animation-delay: 4s;
}

.public-home-page .impact-push-card:nth-child(3) {
  animation-delay: 8s;
}

.public-home-page .impact-push-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.public-home-page .impact-push-card--payment .impact-push-icon {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.94), rgba(16, 185, 129, 0.7));
}

.public-home-page .impact-push-card--agenda .impact-push-icon {
  background: linear-gradient(145deg, rgba(37, 217, 238, 0.92), rgba(76, 111, 255, 0.78));
}

.public-home-page .impact-push-card--approval .impact-push-icon {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.94), rgba(255, 111, 131, 0.74));
}

.public-home-page .impact-push-body {
  min-width: 0;
}

.public-home-page .impact-push-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: rgba(227, 241, 255, 0.58);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-home-page .impact-push-meta b {
  color: rgba(230, 249, 255, 0.84);
  font-weight: 900;
}

.public-home-page .impact-push-meta em {
  font-style: normal;
  letter-spacing: 0.04em;
}

.public-home-page .impact-push-card strong,
.public-home-page .impact-push-card small {
  display: block;
}

.public-home-page .impact-push-card strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-home-page .impact-push-card small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(225, 240, 255, 0.68);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes impact-push-cycle {
  0%, 4% {
    opacity: 0;
    transform: translate3d(22px, -8px, 0) scale(0.965);
  }
  9%, 27% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  32%, 100% {
    opacity: 0;
    transform: translate3d(10px, -4px, 0) scale(0.985);
  }
}

@media (max-width: 900px) {
  .public-home-page .impact-push-stack {
    top: 92px;
    right: 14px;
    width: min(276px, 65%);
  }
}

@media (max-width: 640px) {
  .public-home-page .impact-push-stack {
    top: 82px;
    right: 10px;
    width: min(244px, 72%);
    min-height: 90px;
  }

  .public-home-page .impact-push-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 11px;
    border-radius: 15px;
  }

  .public-home-page .impact-push-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 11px;
  }

  .public-home-page .impact-push-card strong {
    font-size: 11px;
  }

  .public-home-page .impact-push-card small,
  .public-home-page .impact-push-meta {
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-home-page .impact-push-card {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .public-home-page .impact-push-card:first-child {
    opacity: 1;
  }
}
