/* CSS/home.css - LIMPO */
.page-home .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.page-home .hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .feature-grid,
.page-home .first-training-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
  width: min(1100px, 100%);
  margin-inline: auto;
}
.page-home .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page-home .first-training-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- RESTAURAR ESTILOS ORIGINAIS DOS CARTÕES DA HOME --- */
.page-home .feature-card,
.page-home .info-card {
  padding: 24px 20px;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-home .feature-card i,
.page-home .info-card i {
  color: rgba(156, 230, 156, 0.9);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* --- RESTAURAR A NOTA FINAL COM A BARRA VERDE --- */
.page-home .first-training-actions {
  margin: 40px auto 0;
  width: min(1050px, 100%);
  text-align: center;
}

.page-home .first-training-note {
  margin: 0 auto;
  padding: 16px 20px 16px 28px;
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(255, 255, 255, 0.06),
      rgba(0, 0, 0, 0) 60%
    ),
    rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

/* A barrinha verde lateral brilhante */
.page-home .first-training-note::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(156, 230, 156, 0.85),
    rgba(156, 230, 156, 0.18)
  );
  box-shadow: 0 0 18px rgba(156, 230, 156, 0.18);
  opacity: 0.95;
}

/* --- ANIMAÇÕES DE SCROLL (Ativadas pelo home.js) --- */

/* Estado Inicial: Escondidos e um pouco para baixo */
.page-home .glass-panel,
.page-home .card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* Efeito Cascata: Os cartões aparecem um a um com um ligeiro atraso */
.page-home .card:nth-child(1) {
  transition-delay: 100ms;
}
.page-home .card:nth-child(2) {
  transition-delay: 200ms;
}
.page-home .card:nth-child(3) {
  transition-delay: 300ms;
}
.page-home .card:nth-child(4) {
  transition-delay: 400ms;
}

/* Estado Final: Visíveis e no sítio certo (A classe 'is-visible' é injetada pelo JS) */
.page-home .glass-panel.is-visible,
.page-home .card.is-visible {
  opacity: 1;
  transform: translateY(0);
} /* --- RESTAURAR O FOOTER DA HOME --- */
.page-home {
  display: flex;
  flex-direction: column;
}

.page-home .main-content {
  flex: 1 0 auto;
}

/* Garante que o conteúdo não tem margens de fundo exageradas */
.page-home .main-content {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Responsivo */
@media (max-width: 980px) {
  .page-home .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .first-training-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .page-home .feature-grid {
    grid-template-columns: 1fr;
  }
  .page-home .hero-actions {
    flex-direction: column;
  }
}
