.home-page {
  --home-primary: var(--cor-principal, #1553c0);
  --home-primary-dark: var(--cor-principal-hover, #10439b);
  --home-accent: var(--cor-destaque, #ffd84d);
  --home-ink: #182337;
  --home-muted: #64748b;
  --home-border: #e4eaf3;
  --home-surface: #ffffff;
  --home-background: #f5f8fd;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2rem, 6vw, 5rem);
  color: var(--home-ink);
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.home-eyebrow,
.home-section-heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--home-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-intro h1,
.home-section-heading h2,
.home-connect h2 {
  margin: 0;
  padding: 0;
  color: var(--home-ink);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.home-intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}

.home-intro h1::after {
  display: none;
}

.home-intro p,
.home-section-heading p,
.home-connect p,
.home-empty-state p {
  margin: 0.8rem 0 0;
  color: var(--home-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.home-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: 0 18px 50px rgba(21, 83, 192, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(21, 83, 192, 0.16);
}

.home-product-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 5px;
  background: var(--home-primary);
  content: "";
}

.home-product-card-sena::before {
  background: #318b36;
}

.home-product-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eaf0f8;
}

.home-product-media picture,
.home-product-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-product-media img {
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-product-card:hover .home-product-media img {
  transform: scale(1.025);
}

.home-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.home-product-heading {
  display: grid;
  gap: 0.45rem;
}

.home-product-label {
  color: var(--home-primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-product-card-sena .home-product-label {
  color: #26752b;
}

.home-product-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 850;
  line-height: 1.18;
}

.home-product-details {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.75rem;
  margin: 0;
}

.home-product-details > div {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: var(--home-background);
}

.home-product-details dt {
  margin-bottom: 0.18rem;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-product-details dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--home-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.home-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: auto;
}

.home-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  background: var(--home-primary);
  color: #fff;
}

.home-button-primary:hover,
.home-button-primary:focus-visible {
  background: var(--home-primary-dark);
  color: #fff;
}

.home-product-card-sena .home-button-primary {
  background: #318b36;
}

.home-product-card-sena .home-button-primary:hover,
.home-product-card-sena .home-button-primary:focus-visible {
  background: #246d28;
}

.home-button-secondary {
  border-color: #d9e2f2;
  background: #fff;
  color: var(--home-primary);
}

.home-button-secondary:hover,
.home-button-secondary:focus-visible {
  border-color: var(--home-primary);
  background: #edf3ff;
  color: var(--home-primary-dark);
}

.home-empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px dashed #bdcce4;
  border-radius: 20px;
  background: var(--home-background);
}

.home-empty-state > i {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e1ebff;
  color: var(--home-primary);
  font-size: 1.2rem;
}

.home-empty-state h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.home-section {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: 0 16px 42px rgba(27, 45, 78, 0.08);
}

.home-section-heading {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.home-section-heading h2,
.home-connect h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
}

.home-winners-carousel {
  overflow: hidden;
  max-width: 760px;
  margin-inline: auto;
  border-radius: 18px;
  background: #e9eef7;
}

.home-winners-carousel .carousel-item {
  position: relative;
  aspect-ratio: 16 / 10;
}

.home-winners-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-winner-caption {
  position: absolute;
  inset: auto 1rem 1rem;
  max-width: max-content;
  margin-inline: auto;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(11, 24, 48, 0.82);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(8px);
}

.home-winners-carousel .carousel-control-prev,
.home-winners-carousel .carousel-control-next {
  width: 12%;
}

.home-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f7faff 0%, #eef4ff 60%, #fff8da 100%);
}

.home-connect-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-section-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: var(--home-primary);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 12px 25px rgba(21, 83, 192, 0.22);
}

.home-connect-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.home-social-links {
  display: grid;
  gap: 0.55rem;
}

.home-social-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 11px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.home-social-link:hover,
.home-social-link:focus-visible {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.home-social-whatsapp {
  background: #178a48;
}

.home-social-instagram {
  background: linear-gradient(135deg, #f09433, #dc2743 52%, #8a3ab9);
}

@media (max-width: 991.98px) {
  .home-products {
    grid-template-columns: 1fr;
  }

  .home-product-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  }

  .home-product-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .home-connect {
    grid-template-columns: 1fr;
  }

  .home-connect-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .home-page {
    gap: 1.75rem;
    padding-top: 1.1rem;
  }

  .home-intro {
    padding-inline: 0.35rem;
  }

  .home-intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .home-product-card {
    display: flex;
    border-radius: 20px;
  }

  .home-product-card:hover {
    transform: none;
  }

  .home-product-media {
    aspect-ratio: 16 / 11;
  }

  .home-product-details {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .home-product-actions {
    grid-template-columns: 1fr;
  }

  .home-button {
    min-height: 46px;
  }

  .home-section {
    border-radius: 20px;
  }

  .home-winners-carousel .carousel-item {
    aspect-ratio: 4 / 3;
  }

  .home-winner-caption {
    inset: auto 0.65rem 0.65rem;
    font-size: 0.76rem;
  }

  .home-connect-content,
  .home-connect-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-connect-actions,
  .home-social-links,
  .home-social-link {
    width: 100%;
  }

  .home-social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .home-product-details,
  .home-social-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-product-card,
  .home-product-media img,
  .home-button,
  .home-social-link {
    transition: none;
  }
}
