/* Home page — banner sob o header */
.home-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  margin-top: 0;
}
.home-hero .slider {
  position: absolute;
  inset: 0;
  height: 100%;
}
.home-hero .slider .slick-list,
.home-hero .slider .slick-track,
.home-hero .slider .slick-slide,
.home-hero .slider .slick-slide > div {
  height: 100%;
}
.home-hero .slider .slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero .slider .slick-slide a {
  display: block;
  height: 100%;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1;
  pointer-events: none;
}
.home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 220px 20px 80px;
}
.home-hero__content h1 {
  color: var(--white);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
}
.home-hero__content p {
  color: var(--white);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 520px;
}
.home-hero__buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Paginação customizada (barras, não bolinhas) */
.home-hero__pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}
.home-hero__pagination:empty { display: none; }
.home-hero__pagination .hero-dot {
  width: 28px;
  height: 4px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.home-hero__pagination .hero-dot.active {
  background: var(--red);
  width: 36px;
}

/* Esconder dots padrão do Slick */
.home-hero .slick-dots { display: none !important; }

.home-about {
  position: relative;
  background: var(--navy);
  padding: 100px 0 80px;
  margin-top: -80px;
  z-index: 5;
}
.home-about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.home-about__card {
  background: var(--white);
  padding: 50px 40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.home-about__card .tag {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 10px;
}
.home-about__card .tag strong { color: var(--red); }
.home-about__card h2 {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.home-about__card p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.home-about__image { position: relative; }
.home-about__image::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 55%;
  height: 55%;
  background: var(--red);
  z-index: 0;
}
.home-about__image img { position: relative; z-index: 1; width: 100%; }

.home-cards {
  background: var(--navy);
  padding: 0 0 80px;
}
.home-cards .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.home-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin-bottom: 10px;
}
.home-card h3 {
  color: var(--white);
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.home-card p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1.6;
}

.home-products { padding: 80px 0; }
.home-products h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s;
  display: block;
}
.product-card:hover { transform: translateY(-5px); opacity: 1; }
.product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 20px;
  background: #fafafa;
}
.product-card__body { padding: 20px; }
.product-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.product-card span { color: var(--text-muted); font-size: 14px; }

@media (max-width: 991px) {
  .home-about .container,
  .home-cards .container,
  .home-products__grid { grid-template-columns: 1fr; }

  /* Banner mobile: imagem completa preenchendo a largura (sem crop) */
  .home-hero {
    min-height: 0;
    height: auto;
    background: var(--navy);
  }
  .home-hero .slider {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }
  .home-hero .slider .slick-list,
  .home-hero .slider .slick-track,
  .home-hero .slider .slick-slide,
  .home-hero .slider .slick-slide > div {
    height: auto !important;
  }
  .home-hero .slider .slick-slide a {
    display: block;
    height: auto;
  }
  .home-hero .slider .slick-slide img {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }
  .home-hero__overlay,
  .home-hero__content {
    position: absolute;
    inset: 0;
  }
  .home-hero__content {
    padding: 56px 20px 70px;
  }

  .home-about { margin-top: -40px; padding: 70px 0 60px; }
  .home-about__card { padding: 36px 28px; }
  .home-cards { padding-bottom: 60px; }
  .home-products { padding: 60px 0; }
  .home-products h2 { font-size: 28px; margin-bottom: 32px; }
}

@media (max-width: 767px) {
  .home-about__image::before { left: -10px; bottom: -10px; }
  .home-hero__content { padding: 44px 16px 60px; }
  .home-hero__content h1 { font-size: 34px; }
  .home-hero__content p { font-size: 16px; margin-bottom: 24px; }
  .home-hero__buttons { flex-direction: column; width: 100%; max-width: 280px; }
  .home-hero__buttons .btn { width: 100%; text-align: center; }
  .home-hero__pagination { bottom: 24px; }
  .home-about { padding: 56px 0 48px; margin-top: -24px; }
  .home-about__card { padding: 28px 22px; }
  .home-about__card h2 { font-size: 24px; }
  .home-card img { height: 200px; }
  .home-products { padding: 48px 0; }
  .product-card img { height: 220px; }
}

@media (max-width: 479px) {
  .home-hero__content { padding: 36px 16px 52px; }
  .home-hero__content h1 { font-size: 30px; }
}
