// Variabili locali (puoi spostarle in un _variables.scss globale se usate altrove)
$primary-color: #10b981; // verde emerald
$secondary-color: #3b82f6; // blue
$text-color: #111827;
$gray-dark: #4b5563;
$bg-light: #f9fafb;

@mixin center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

@mixin glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@mixin shadow-hover {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }
}

// Hero Section
section.relative.overflow-hidden {
  padding-bottom: 4rem;

  h1 {
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, $primary-color, $secondary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;

    @media (min-width: 768px) {
      font-size: 3.25rem;
    }

    @media (min-width: 1024px) {
      font-size: 4rem;
    }
  }

  .q-btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .q-btn.color-positive {
    background: $primary-color;
    color: white;

    &:hover {
      background: darken($primary-color, 10%);
    }
  }

  .q-btn.outline {
    background: transparent;
    border: 2px solid $primary-color;
    color: $primary-color;

    &:hover {
      background: $primary-color;
      color: white;
    }
  }
}

// Courses Section
section.py-16.bg-white {
  .bg-white.rounded-lg.shadow-md {
    @include shadow-hover;
    transition: all 0.3s ease;

    .p-6 {
      border-bottom: 1px solid #e5e7eb;
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 700;
    }

    p {
      font-size: 0.95rem;
      color: $gray-dark;
    }

    .bg-emerald-50.px-6.py-4 {
      border-top: 1px solid #d1fae5;
    }

    button {
      font-weight: 600;
      transition: color 0.3s ease;
    }
  }
}

// CTA Section
section.py-16.bg-emerald-600 {
  h2 {
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  p {
    font-size: 1.25rem;
    opacity: 0.9;
  }

  .q-btn {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
  }

  .q-btn.text-color-positive {
    background: white;
    color: $primary-color;

    &:hover {
      background: lighten(white, 5%);
    }
  }
}