/* =========================   STATS / PIANO DI STUDI   ========================= */

.ae-stats-section {
  --ae-stats-accent: var(--brush-bullet-color, #B63A6B);
  --ae-stats-accent-soft: rgba(182, 58, 107, 0.1);
  --ae-stats-accent-mid: rgba(182, 58, 107, 0.18);
  --ae-stats-text: #222;
  --ae-stats-muted: #555;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.ae-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
}

.ae-stats-section > .container {
  position: relative;
  z-index: 1;
}

.ae-stats-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--ae-stats-accent);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ae-stats-title {
  margin-bottom: 0.75rem;
}

.ae-stats-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ae-stats-text);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
}

.ae-stats-grid {
  align-items: stretch;
}

.ae-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 260px;
  padding: 1.45rem 1.25rem 1.35rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.075);
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ae-stat-card::before {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 150px;
  height: 78px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 999px;
  background: var(--ae-stats-accent-soft);
  filter: blur(0.2px);
}

.ae-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
}

.ae-stat-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.1rem;
  height: 4.1rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  color: #fff;
  background: var(--ae-stats-accent);
  box-shadow: 0 8px 20px rgba(182, 58, 107, 0.22);
}

.ae-stat-icon::after {
  content: "";
  position: absolute;
  inset: -0.38rem;
  z-index: -1;
  border-radius: 50%;
  background: var(--ae-stats-accent-mid);
}

.ae-stat-icon svg {
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  fill: currentColor;
}

.ae-stat-content {
  position: relative;
  z-index: 1;
}

.ae-stat-number {
  margin: 0;
  color: var(--ae-stats-accent);
  font-family: "GOOD BRUSH", cursive;
  font-size: clamp(2.8rem, 5vw, 3.55rem);
  font-weight: 400;
  line-height: 0.9;
}

.ae-stat-label {
  margin: 0.25rem 0 0.65rem;
  color: #222;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-stat-text {
  margin: 0;
  color: var(--ae-stats-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ae-stats-note {
  max-width: 720px;
  margin: 1.6rem auto 0;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: italic;
  text-align: center;
}

/* Variante rossa esplicita */

.page-red .ae-stats-section, .section-red.ae-stats-section {
  --ae-stats-accent: #B63A6B;
  --ae-stats-accent-soft: rgba(182, 58, 107, 0.1);
  --ae-stats-accent-mid: rgba(182, 58, 107, 0.18);
}

/* Variante verde, se un domani riusi la sezione */

.page-green .ae-stats-section, .section-green.ae-stats-section {
  --ae-stats-accent: #2bb7a8;
  --ae-stats-accent-soft: rgba(43, 183, 168, 0.1);
  --ae-stats-accent-mid: rgba(43, 183, 168, 0.18);
}

/* Variante blu, se un domani riusi la sezione */

.page-blue .ae-stats-section, .section-blue.ae-stats-section {
  --ae-stats-accent: #2f57b7;
  --ae-stats-accent-soft: rgba(47, 87, 183, 0.1);
  --ae-stats-accent-mid: rgba(47, 87, 183, 0.18);
}

/* Mobile */

@media (max-width: 767.98px) {
  .ae-stats-section {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .ae-stats-intro {
    font-size: 0.98rem;
  }
}

@media (max-width: 767.98px) {
  .ae-stat-card {
    min-height: auto;
    padding: 1.35rem 1rem 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .ae-stat-icon {
    width: 3.7rem;
    height: 3.7rem;
  }
}

@media (max-width: 767.98px) {
  .ae-stat-icon svg {
    width: 1.85rem;
    height: 1.85rem;
  }
}

@media (max-width: 767.98px) {
  .ae-stat-number {
    font-size: 3rem;
  }
}

