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

.u3d-hero {
  width: 100%;
  min-height: 690px;
  background-image: url('../../image/catalog/assets/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 ──
   Altura e posição em pixels fixos (não percentagem) para que o
   dimensionamento seja sempre previsível e as imagens (até 400px de
   altura) nunca fiquem cortadas pelo "overflow: hidden" da secção.
   "top: 90px" empurra o início para baixo, dando margem antes do topo. */
.u3d-hero-slider {
  position: absolute;
  top: 90px; left: 0; right: 0;
  height: 432px;
  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: 400px;
  max-width: 300px;
  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 16px;
  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: 440px;
    padding-bottom: 48px;
  }

  .u3d-hero-slider {
    top: 40px;
    height: 248px;
  }

  .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; }
}

/* ============================================================
   Unique3D — Home: "Especialistas em brindes para Empresas"
   ============================================================ */
.u3d-home-brand {
  padding: 70px 0;
  font-family: 'Ubuntu', sans-serif;
  color: #fff;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.u3d-home-brand-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.u3d-home-brand .container { position: relative; z-index: 1; }

.u3d-home-brand h2 {
  color: #f88f1a;
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  white-space: pre-line;
}

.u3d-home-brand p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #fff;
}
.u3d-home-brand strong { font-weight: 700; }
.u3d-home-brand em { font-style: italic; }

.u3d-home-btns { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }

.u3d-home-btn-primary {
  background-color: #545d99;
  color: #fff;
  border: 1px solid #545d99;
  border-radius: 10px;
  padding: 12px 40px;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.u3d-home-btn-primary:hover { background-color: #434a7a; color: #fff; }

.u3d-home-collage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}
.u3d-home-collage img { max-width: 100%; height: auto; }

.u3d-home-img-left {
  position: absolute;
  left: 0; top: 50%;
  width: 45%;
  z-index: 1;
  transform: translateY(-40%);
}

.u3d-home-img-center {
  position: relative;
  z-index: 2;
  width: 60%;
  will-change: transform, opacity;
  animation: u3dFloat 4s ease-in-out infinite;
  transform: translateY(var(--u3d-scroll-offset, 0px));
}

@keyframes u3dFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

/* Clone que "viaja" visualmente da secção "Especialistas em brindes"
   até ao símbolo no topo da secção "Fazemos com que marque..." */
.u3d-travel-icon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  will-change: transform, opacity, width, left, top;
}

@media (max-width: 991px) {
  .u3d-travel-icon { display: none; }
}

.u3d-home-img-right {
  position: absolute;
  right: 0; top: 50%;
  width: 35%;
  z-index: 1;
  transform: translateY(-60%);
}

@media (max-width: 991px) {
  .u3d-home-brand { padding: 48px 0; }
  .u3d-home-collage { min-height: 300px; margin-bottom: 32px; }
  .u3d-home-img-left, .u3d-home-img-right { opacity: 0.3; }
  .u3d-home-img-center { width: 80%; }
}

/* ============================================================
   Unique3D — Home: Pilares "Fazemos com que marque..."
   ============================================================ */
.u3d-home-pillars {
  background-color: #041b51;
  background-image: url("image/catalog/assets/2025/01/unique3d-quem-somos-forma-v2.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0 0 0 126px;
  padding: 56px 0;
  font-family: 'Ubuntu', sans-serif;
  color: #fff;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.u3d-home-pillars h2.section-title {
  font-size: clamp(32px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-top: 12px;
  margin-bottom: 40px;
}

.u3d-home-pillar-box { display: flex; align-items: flex-start; gap: 25px; text-align: left; }
.u3d-home-pillar-box .icon-wrapper svg { width: 80px; height: auto; flex-shrink: 0; }
.u3d-home-pillar-box h3 {
  color: #f88f1a;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.2;
}
.u3d-home-pillar-box p { font-weight: 300; font-size: 16px; line-height: 1.8; color: #fff; margin: 0; }

@media (max-width: 991px) {
  .u3d-home-pillars { border-radius: 0 0 0 60px; background-position: right bottom; background-size: 50%; padding: 48px 0; }
  .u3d-home-pillar-box { margin-bottom: 32px; }
}

/* ============================================================
   Unique3D — Home: "Os nossos brindes personalizáveis" (carrossel)
   ============================================================ */
.u3d-home-products {
  background: #fdf5ee;
  padding: 56px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.u3d-home-products-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.u3d-home-products-title {
  font-family: Ubuntu, sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: rgb(21, 33, 81);
  text-align: center;
  white-space: nowrap;
  margin: 0 0 32px;
}

.u3d-home-products .swiper { padding-bottom: 44px; }

/* Os cartões em si (.u3d-card*) são o mesmo componente reutilizado da página
   de categoria (catalog/controller/product/thumb.php + stylesheet.css) —
   aqui só precisamos de garantir que cada slide do Swiper lhes dá altura
   igual e a largura certa. */
.u3d-home-products .swiper-slide {
  height: auto;
  display: flex;
}
.u3d-home-products .swiper-slide .u3d-card { width: 100%; }

.u3d-home-products .swiper-button-prev,
.u3d-home-products .swiper-button-next {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(21,33,81,0.12);
  color: rgb(21, 33, 81);
}
.u3d-home-products .swiper-button-prev::after,
.u3d-home-products .swiper-button-next::after { font-size: 13px; font-weight: 700; }

@media (max-width: 575px) {
  .u3d-home-products-title { white-space: normal; font-size: 24px; }
}

/* ── "Empresas que tornámos mais mágicas" ── */
.u3d-clientes {
    /* Full bleed - Ocupa 100% da largura do ecrã */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #fff;
    padding: 26px 0;
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    overflow: hidden;
}

.u3d-clientes h2 {
    color: #152151;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 50px;
    letter-spacing: 0.5px;
}

/* Contentor do Carrossel */
.u3d-slider-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

/* Efeito de desvanecimento (Fade) nas laterais */
.u3d-slider-container::before,
.u3d-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.u3d-slider-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.u3d-slider-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* A calha que se move infinitamente */
.u3d-slider-track {
    display: inline-flex;
    width: max-content;
    animation: u3d-scroll-logos 30s linear infinite;
}

.u3d-slider-track:hover {
    animation-play-state: paused;
}

/* Tamanho e espaçamento de cada logótipo: 100vw / 6 garante 6 por ecrã */
.u3d-slide {
    width: calc(100vw / 6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.u3d-slide img {
    max-height: 120px;
    max-width: 85%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.u3d-slide img:hover {
    transform: scale(1.08);
}

@keyframes u3d-scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
    .u3d-slide { width: calc(100vw / 4); }
    .u3d-slide img { max-height: 90px; }
}

@media (max-width: 768px) {
    .u3d-slider-container::before,
    .u3d-slider-container::after {
        width: 50px;
    }
    .u3d-slide { width: calc(100vw / 2.5); }
    .u3d-slide img { max-height: 70px; }
}

.u3d-clientes { padding: 40px 0 !important; }

/* ── "O que dizem sobre nós" ── */
.u3d-reviews {
    /* Full bleed para o fundo bege cobrir tudo */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #FFF7F3;
    padding: 80px 0 40px;
    font-family: 'Ubuntu', sans-serif;
    overflow: hidden;
}

.u3d-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.u3d-reviews h2 {
    color: #152151;
    font-size: clamp(40px, 5.5vw, 58px) !important;
    font-weight: 700;
    text-align: center;
    margin: 0 0 60px;
}

.u3d-reviews .swiper {
    padding-bottom: 40px;
    cursor: grab;
}

.u3d-reviews .swiper:active {
    cursor: grabbing;
}

.u3d-review-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: left;
}

.u3d-review-name {
    color: #152151;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
}

.u3d-review-company {
    color: #152151;
    font-size: 16px;
    font-weight: 300;
    margin: 0 0 15px;
}

.u3d-review-stars {
    color: #F88F1A;
    font-size: 20px;
    margin: 0 0 15px;
    letter-spacing: 2px;
}

.u3d-review-text {
    color: #152151;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   Unique3D — Home: Tipografia "Português Artesanal Inovador Único"
   ============================================================ */
.u3d-home-typo {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #fff;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'Ubuntu', sans-serif;
  padding: 20px 0;
  box-sizing: border-box;
}
.u3d-home-typo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(at 50% 30%, rgb(245, 209, 161) 0%, rgba(245, 209, 161, 0) 55%);
  pointer-events: none;
}
/* Luz do troféu: fica por trás do texto/troféu, ancorada em baixo (junto ao
   troféu) a espalhar o brilho para cima, como se o troféu estivesse a
   iluminar as palavras. */
.u3d-home-typo-light {
  position: absolute;
  bottom: 250px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 130vw);
  max-width: none;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

.u3d-home-typo-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}
.u3d-home-typo-words h2 {
  color: #2A367E;
  font-size: clamp(36px, 6vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.u3d-home-typo-trophy { position: relative; z-index: 2; text-align: center; margin-top: 24px; }
.u3d-home-typo-trophy img { width: min(300px, 100vw); display: block; margin: 0 auto; }

@media (max-width: 600px) {
  .u3d-home-typo-light { width: min(500px, 160vw); }
}

/* ============================================================
   Unique3D — Home: CTA final
   ============================================================ */
.u3d-home-cta {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  background: #152151;
  border-radius: 200px 200px 0 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 20px 0px 20px;
  font-family: 'Ubuntu', sans-serif;
  text-align: center;
}
.u3d-home-cta h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.u3d-home-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.u3d-home-cta-btn-white {
  background: #fff; color: #152151;
  font-family: 'Ubuntu', sans-serif; font-size: 18px; font-weight: 500;
  padding: 10px 40px; border-radius: 20px; text-decoration: none;
  display: inline-block; transition: all 0.3s ease;
}
.u3d-home-cta-btn-white:hover { background: #e6e6e6; }
.u3d-home-cta-btn-orange {
  background: #F88F1A; color: #152151;
  font-family: 'Ubuntu', sans-serif; font-size: 18px; font-weight: 500;
  padding: 10px 40px; border-radius: 20px; text-decoration: none;
  display: inline-block; transition: all 0.3s ease;
}
.u3d-home-cta-btn-orange:hover { background: #df7b12; }

@media (max-width: 768px) {
  .u3d-home-cta { border-radius: 0; min-height: auto; padding: 60px 20px; }
  .u3d-home-cta h2 { white-space: normal; }
  .u3d-home-cta-btn-white, .u3d-home-cta-btn-orange { width: 100%; }
}
