.tp-hero-card {
  width: 100%;
  position: relative;
  padding: 36px 0 96px 0;
  /* padding interno para afastar o slide do topo do card */
  background: var(--tp-dynamic-color-primary);
  box-sizing: border-box;
  padding-bottom: 0;
}

.tp-hero-card::before {
  /* placeholder para máscaras futuras; atualmente não aplica visual direto */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tp-hero-card:after {
  /* sutil moldura colorida por trás do cartão */
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: -1;
  background: var(--tp-dynamic-color-primary);
  pointer-events: none;
}

.hero-swiper {
  width: 100%;
  display: block;
}

/* Card principal (não o slide) - aplicar cores e estilo profissional */
.tp-hero-card .tp-hero-card-inner {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Controles de navegação mais sutis */
.tp-hero-card .swiper-button-next,
.tp-hero-card .swiper-button-prev {
  color: rgba(255, 255, 255, 0.9);
  z-index: 55;
  width: 48px;
  height: 48px;
  background: rgba(209, 15, 130, 0.85);
  border-radius: 50%;
  transition: all 280ms ease;
}

.tp-hero-card .swiper-button-next:after,
.tp-hero-card .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
}

.tp-hero-card .swiper-button-next:hover,
.tp-hero-card .swiper-button-prev:hover {
  background: rgba(209, 15, 130, 1);
  transform: scale(1.08);
}

/* Container de controles - centralizado dentro do card, acima do progresso */
.hero-controls-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 50;
}

/* Botão play/pause muito discreto - à esquerda da paginação */
.hero-play-pause-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 280ms ease;
  opacity: 0.6;
  border-radius: 50%;
  box-shadow: none;
}

.hero-play-pause-btn:hover {
  opacity: 0.95;
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.hero-play-pause-btn i {
  pointer-events: none;
}

/* Paginação mais sutil - centralizada */
.tp-hero-card .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  display: flex;
  gap: 7px;
  justify-content: center;
}

.tp-hero-card .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: all 280ms ease;
  border: none;
  cursor: pointer;
}

.tp-hero-card .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: scale(1.2);
}

.tp-hero-card .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.85);
  width: 24px;
  border-radius: 4px;
}

/* Slide counter discreto - à direita da paginação */
.hero-slide-counter {
  font-family: var(--tp-ff-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Barra de progresso - full width COLADA no bottom do card */
.hero-progress-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1;
  width: 100%;
  z-index: 60;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-progress {
  width: 100%;
  height: 6px;
  background: rgba(209, 15, 130, 0.25);
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-progress > .hero-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tp-dynamic-color-primary-dark);
  transition: width 100ms linear;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Hover effects: transição suave */
.tp-hero-card:hover .hero-slide-inner {
  transform: scale(1.002);
}

.hero-slide-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tp-dynamic-color-primary-dark);
  border: 1px solid var(--tp-dynamic-color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.tp-hero-3__area.fix {
  margin: 0;
  /* garante sem margin entre header e seção */
  padding: 0;
  /* remove padding padrão */
  width: 100vw;
  /* background full width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* técnica para full-bleed */
  box-sizing: border-box;
}

/* wrapper ocupa full width, mas mantém conteúdo centralizado */
.tp-hero-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  /* wrapper sem padding para ficar colado ao header */
}

.hero-swiper {
  width: 100%;
}

/* Each slide will occupy ~80% of the container to show 10% peek on each side */
.hero-swiper .swiper-slide {
  width: 80% !important;
  /* forces slidesPerView auto to show peek */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero-slide-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tp-dynamic-color-primary-dark);
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 380ms ease, opacity 380ms ease;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 350ms ease;
}

/* Offuscate prev/next slides com efeito mais suave */
.hero-swiper .swiper-slide-prev .hero-slide-inner,
.hero-swiper .swiper-slide-next .hero-slide-inner {
  filter: brightness(0.75) saturate(0.85) blur(1.2px);
  transform: scale(0.96);
  opacity: 0.7;
}

/* Slide ativo com efeito de destaque */
.hero-swiper .swiper-slide-active .hero-slide-inner {
  transform: scale(1);
  filter: none;
  opacity: 1;
}

/* Animação de fade para troca de slides */
.hero-swiper.swiper-fade .swiper-slide {
  opacity: 0;
  transition: opacity 520ms ease;
}

.hero-swiper.swiper-fade .swiper-slide-active {
  opacity: 1;
}

@media (max-width: 767px) {
  .tp-hero-card-wrap {
    padding: 0;
  }

  .tp-hero-card {
    padding: 24px 0 0 0;
  }

  .hero-swiper .swiper-slide {
    width: 95% !important;
  }

  .hero-slide-inner {
    border-radius: 8px;
  }

  .hero-controls-wrapper {
    padding: 16px 0 12px 0;
    gap: 14px;
  }

  .hero-play-pause-btn {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .hero-slide-counter {
    font-size: 10px;
    padding: 4px 8px;
  }

  .hero-progress {
    height: 5px;
  }

  .tp-hero-card .swiper-button-next,
  .tp-hero-card .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .tp-hero-card .swiper-button-next:after,
  .tp-hero-card .swiper-button-prev:after {
    font-size: 16px;
  }

  .tp-hero-card .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }

  .tp-hero-card .swiper-pagination-bullet-active {
    width: 20px;
  }
}