/* Banner de destaque da página inicial (slider.blade.php + js/banner-destaque.js) */

.banner-destaque {
  position: relative;
  background: #e9e3de;
  box-shadow: 0 10px 30px -12px rgba(60, 28, 26, .35);
}

.banner-slide {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #e9e3de 30%, #f6f2ef 50%, #e9e3de 70%) 0 0 / 200% 100%;
  animation: banner-shimmer 1.4s linear infinite;
}

/* esqueleto some quando a imagem já carregou */
.banner-slide:has(.banner-slide__img:not(.swiper-lazy)),
.banner-slide:has(.swiper-lazy-loaded) {
  animation: none;
  background: #e9e3de;
}

@keyframes banner-shimmer {
  to { background-position: -200% 0; }
}

.banner-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.banner-slide__img.swiper-lazy {
  opacity: 0;
  transition: opacity .5s ease;
}

.banner-slide__img.swiper-lazy-loaded {
  opacity: 1;
}

.banner-slide .swiper-lazy-preloader {
  display: none;
}

/* link cobrindo o slide inteiro */
.banner-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.banner-slide__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.banner-slide__cta {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 34px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #fff;
  background: #843a36;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s ease, background .2s ease;
}

.banner-slide__link:hover ~ .banner-slide__cta {
  background: #5f2e2a;
  transform: translateY(-2px);
}

.banner-slide--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  background: linear-gradient(135deg, #843a36, #5f2e2a);
  color: rgba(255, 255, 255, .9);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* setas */
.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a1f1d;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, background .2s ease, transform .2s ease;
}

.banner-nav--prev { left: 14px; }
.banner-nav--next { right: 14px; }

.banner-destaque:hover .banner-nav,
.banner-nav:focus-visible {
  opacity: 1;
}

.banner-nav:hover { background: #fff; transform: scale(1.06); }
.banner-nav:focus-visible { outline: 3px solid #843a36; outline-offset: 2px; }

/* paginação em pílulas com barra de progresso do autoplay */
.banner-destaque .swiper-pagination {
  bottom: 12px;
  padding: 0;
  text-align: center;
}

.banner-destaque .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 999px;
  background: #fff;
  opacity: .65;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transition: width .3s ease, opacity .3s ease, background .3s ease;
}

.banner-destaque .swiper-pagination-bullet-active {
  width: 26px;
  opacity: 1;
  background: #fff;
}

/* toque: sem setas (o usuário arrasta) */
@media (hover: none) {
  .banner-nav { display: none; }
}

@media (max-width: 767px) {
  .banner-slide__cta { left: 14px; bottom: 30px; padding: 9px 16px; font-size: 13px; }
  .banner-destaque .swiper-pagination { bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide { animation: none; }
  .banner-slide__img.swiper-lazy,
  .banner-nav,
  .banner-slide__cta { transition: none; }
}
