/* ======================================================
   HOME.CSS - ALA Atletica Leggera Abbiategrasso
====================================================== */

:root {
  --primary: #e6007e;
  --primary-dark: #c4006a;
  --secondary: #123a67;
  --text: #0f172a;
  --text-light: #475569;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

/* ======================================================
   HERO
====================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.42)),
    url("../img/home/hero-home.webp") center/cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 120px 0;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.03;
  margin: 0;
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.9;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-buttons .button-primary {
  background: var(--primary);
  border: none;
}

.hero-buttons .button-primary:hover {
  background: var(--primary-dark);
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ======================================================
   SEZIONI GENERICHE
====================================================== */

.activities,
.why-ala,
.timeline-section,
.cta-home,
.social-section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--secondary);
  margin: 18px 0;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(230, 0, 126, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ======================================================
   ATTIVITÀ
====================================================== */

.activities {
  background: #fff;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.activity-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-content h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--secondary);
}

.activity-content p {
  margin: 0;
  color: var(--text-light);
}

.activity-content span {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
}

/* ======================================================
   WHY ALA
====================================================== */

.why-ala {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-image img {
  width: 100%;
  display: block;
}

.why-content {
  display: grid;
  gap: 24px;
}

.why-item {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.why-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.why-item h3 {
  margin: 0 0 10px;
  color: var(--secondary);
}

.why-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
}

/* ======================================================
   TIMELINE
====================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.timeline-item {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.timeline-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(230, 0, 126, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 12px;
  color: var(--secondary);
}

.timeline-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
}

/* ======================================================
   CTA
====================================================== */

.cta-home {
  position: relative;
  background:
    linear-gradient(135deg, rgba(18, 58, 103, 0.92), rgba(10, 24, 48, 0.94)),
    url("../img/home/cta-home.webp") center/cover no-repeat;
  color: #fff;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.15);
}

.cta-home .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 18px 0;
}

.cta-content p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-buttons .button-primary {
  background: var(--primary);
  border: none;
}

.cta-buttons .button-primary:hover {
  background: var(--primary-dark);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 16px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ======================================================
   SOCIAL
====================================================== */

.social-section {
  background: #fff;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.social-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.social-card i {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.social-card.instagram i {
  color: #e1306c;
}

.social-card.facebook i {
  color: #1877f2;
}

.social-card h3 {
  margin: 0 0 12px;
  color: var(--secondary);
}

.social-card p {
  margin: 0 0 22px;
  color: var(--text-light);
  line-height: 1.8;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
}

.instagram-button {
  background: #e1306c;
}

.facebook-button {
  background: #1877f2;
}

/* ======================================================
   HEADER CTA MAGENTA SOLO HOME
====================================================== */

.page-home .nav-cta {
  background: var(--primary) !important;
  border: none !important;
  color: #fff !important;
}

.page-home .nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1024px) {
  .hero {
    min-height: 72vh;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .activities,
  .why-ala,
  .timeline-section,
  .cta-home,
  .social-section {
    padding: 72px 0;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: 110px 0 72px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .button {
    width: 100%;
    justify-content: center;
  }

  .activities-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .button-primary,
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .cta-features {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 56vh;
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .activity-content,
  .timeline-item,
  .social-card {
    padding: 22px;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

/* ======================================================
   MOBILE - CENTRA IMMAGINE HERO HOME
====================================================== */

@media (max-width: 768px) {
  .hero {
    background-position: 70% center;
  }
}
