/* =========================================
   Banner Carousel — banner-carousel.css
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.banner-carousel-wrapper {
  touch-action: pan-y; 
}
/* =========================================
   Banner Carousel — banner-carousel.css
   ========================================= */

/* =========================================
   Banner Carousel — banner-carousel.css
   ========================================= */

:root {
  --ctrl-color: rgba(255, 255, 255, 0.92);
  --ctrl-bg: rgba(0, 0, 0, 0.5);
  --ctrl-bg-hover: rgba(0, 0, 0, 0.8);

  --progress-color: #ffffff;
  --progress-h: 3px;

  --transition-speed: 0.65s;
  --ease-slide: cubic-bezier(0.77, 0, 0.18, 1);
}

/* ── Wrapper externo ── */
.banner-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 64 / 15;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  background: transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Track ── */
.banner-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform var(--transition-speed) var(--ease-slide);
}

/* ── Slide ── */
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Imagem ── */
.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.banner-slide img.loaded {
  opacity: 1;
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.30) 100%);
  pointer-events: none;
}

.banner-slide .slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.2);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Setas ── */
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--ctrl-bg);
  color: var(--ctrl-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.banner-btn:hover,
.banner-btn:focus-visible {
  background: var(--ctrl-bg-hover);
  transform: translateY(-50%) scale(1.1);
  outline: none;
}

.banner-btn:active {
  transform: translateY(-50%) scale(0.93);
}

.banner-btn--prev { left: 20px; }
.banner-btn--next { right: 20px; }

.banner-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Barra de progresso ── */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: var(--progress-h);
  background: var(--progress-color);
  z-index: 10;
  opacity: 0.75;
  transition: width linear;
}

/* ── Dots ── */
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;           /* flex para alinhar os dots */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
}

.banner-dot {
  display: block;
  flex-shrink: 0;          /* não deixa o flex comprimir o dot */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease, transform 0.3s ease;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.banner-dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 5px;
}

/* ── Responsivo ── */

@media (max-width: 768px) {
  .banner-btn {
    width: 40px;
    height: 40px;
  }
  .banner-btn svg {
    width: 18px;
    height: 18px;
  }
  .banner-dots {
    gap: 6px;
    padding: 3px 8px;
    bottom: 8px;
  }
  .banner-dot {
    width: 7px;
    height: 7px;
    border-width: 1.5px;
    flex-shrink: 0;
  }
  .banner-dot.active {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .banner-carousel-wrapper {
    border-radius: 0;
    aspect-ratio: 64 / 15;
  }
  .banner-btn {
    width: 28px;
    height: 28px;
  }
  .banner-btn svg {
    width: 13px;
    height: 13px;
  }
  .banner-btn--prev { left: 6px; }
  .banner-btn--next { right: 6px; }
  .banner-dots {
    gap: 4px;
    padding: 2px 6px;
    bottom: 5px;
  }
  .banner-dot {
    width: 5px;
    height: 5px;
    border-width: 1px;
    flex-shrink: 0;        /* garante que o flex não comprima */
  }
  .banner-dot.active {
    width: 14px;
    border-radius: 3px;
  }
}