/* ============================================================
   Unique3D — Home Hero Carousel
   ============================================================ */

.u3d-hero {
  width: 100%;
  min-height: 520px;
  background-image: url('https://www.unique3d.pt/wp-content/uploads/2025/02/unique3d-home-fundo-slider-v2-scaled.jpg');
  background-position: bottom center;
  background-size: cover;
  font-family: 'Ubuntu', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* ── Slider track ── */
.u3d-hero-slider {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

/* ── Individual slide ── */
.u3d-hero-slide {
  position: absolute;
  width: 33.33%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
  opacity: 0;
  pointer-events: none;
}

/* Positions */
.u3d-hero-slide.active-left   { opacity: 1; transform: translateX(-100%); }
.u3d-hero-slide.active-center { opacity: 1; transform: translateX(0);      }
.u3d-hero-slide.active-right  { opacity: 1; transform: translateX(100%);   }

.u3d-hero-slide img {
  max-height: 320px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14));
  display: block;
}

/* ── Bottom content ── */
.u3d-hero-content {
  position: relative;
  z-index: 2;
}

.u3d-hero-title {
  color: #152151;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 28px;
  line-height: 1.2;
}

.u3d-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.u3d-hero-btn-dark {
  background: #152151;
  color: #fff;
  font-family: 'Ubuntu', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.u3d-hero-btn-dark:hover { opacity: 0.85; color: #fff; text-decoration: none; }

.u3d-hero-btn-orange {
  background: #f88f1a;
  color: #fff;
  font-family: 'Ubuntu', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.u3d-hero-btn-orange:hover { opacity: 0.85; color: #fff; text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .u3d-hero {
    min-height: 400px;
    padding-bottom: 48px;
  }

  .u3d-hero-title { font-size: 26px; margin-bottom: 20px; }

  /* On mobile show only the center slide */
  .u3d-hero-slide { width: 70%; }
  .u3d-hero-slide.active-left,
  .u3d-hero-slide.active-right { opacity: 0; pointer-events: none; }
  .u3d-hero-slide.active-center { opacity: 1; transform: translateX(0); }

  .u3d-hero-slide img { max-height: 200px; max-width: 160px; }

  .u3d-hero-btn-dark,
  .u3d-hero-btn-orange { font-size: 14px; padding: 12px 24px; }
}
