/* Carrossel 3D — home */
.cc-carousel {
  position: relative;
  max-width: min(920px, 100%);
  margin: 0 auto;
  padding: 8px 0 4px;
}

#homeDestaquesSection,
#homeDestaquesSection .container {
  overflow-x: hidden;
  max-width: 100%;
}

.cc-carousel-viewport {
  position: relative;
  height: clamp(300px, 42vw, 420px);
  perspective: 1400px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  isolation: isolate;
}

.cc-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.cc-carousel-viewport.is-dragging .cc-carousel-slide {
  transition: none;
}

.cc-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.cc-carousel-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 540px);
  height: 88%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, -50%) translate3d(0, 0, -180px) scale(0.72) rotateY(0deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.52s ease,
    box-shadow 0.52s ease;
}

.cc-carousel-viewport.is-dragging .cc-carousel-slide {
  will-change: transform, opacity;
}

.cc-carousel-viewport::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12%;
  right: 12%;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.1) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.cc-carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  overflow: hidden;
}

.cc-carousel-media {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 100%);
}

.cc-carousel-media img,
.cc-carousel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-carousel-caption {
  padding: 16px 20px 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 100%);
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.cc-carousel-caption h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.cc-carousel-caption p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
}

.cc-carousel-slide.is-active {
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.2);
}

.cc-carousel-slide.is-prev {
  transform: translate(-50%, -50%) translate3d(-52%, 0, -90px) scale(0.86) rotateY(22deg);
  opacity: 0.55;
  z-index: 3;
  pointer-events: auto;
}

.cc-carousel-slide.is-next {
  transform: translate(-50%, -50%) translate3d(52%, 0, -90px) scale(0.86) rotateY(-22deg);
  opacity: 0.55;
  z-index: 3;
  pointer-events: auto;
}

.cc-carousel-slide.is-far {
  transform: translate(-50%, -50%) translate3d(0, 0, -220px) scale(0.62) rotateY(0deg);
  opacity: 0;
  z-index: 0;
}

.cc-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cc-carousel-nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.cc-carousel-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.cc-carousel-nav.prev {
  left: 4px;
}

.cc-carousel-nav.next {
  right: 4px;
}

.cc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.cc-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease, transform 0.2s ease;
}

.cc-carousel-dots button.active {
  width: 28px;
  background: linear-gradient(90deg, #0f3a8e, #1a56db);
}

.cc-carousel-dots button:hover {
  transform: scale(1.15);
}

.cc-carousel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px dashed #e2e8f0;
}

@media (max-width: 768px) {
  .cc-carousel {
    padding-left: 2px;
    padding-right: 2px;
  }

  .cc-carousel-nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .cc-carousel-nav.prev {
    left: 0;
  }

  .cc-carousel-nav.next {
    right: 0;
  }

  .cc-carousel-slide {
    width: min(82%, 420px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  }

  .cc-carousel-slide.is-active {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  }

  .cc-carousel-slide.is-prev {
    transform: translate(-50%, -50%) translate3d(-30%, 0, -50px) scale(0.84) rotateY(12deg);
    opacity: 0.45;
  }

  .cc-carousel-slide.is-next {
    transform: translate(-50%, -50%) translate3d(30%, 0, -50px) scale(0.84) rotateY(-12deg);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-carousel-slide {
    transition: opacity 0.25s ease;
    transform: translate(-50%, -50%) scale(0.9) !important;
    rotate: none !important;
  }

  .cc-carousel-slide.is-active {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .cc-carousel-viewport {
    perspective: none;
  }
}
