/* ============================================
   ESPERIENZA E COMPETENZA SECTION
   ============================================ */
/* Funzione box animation */
.funzione-box {
  opacity: 1;
  animation: fadeInUp 0.5s ease-out;
}

.funzione-box.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Stat item decorative circle (pseudo-element) */
.stat-item::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  z-index: -10;
  background: radial-gradient(circle at center, rgba(100, 150, 255, 0.15) 0%, rgba(41, 54, 131, 0.1) 50%, transparent 70%);
  border: 2px solid rgba(100, 150, 255, 0.3);
  box-shadow: 0 0 20px rgba(100, 150, 255, 0.4), 0 0 40px rgba(100, 150, 255, 0.2), inset 0 0 30px rgba(100, 150, 255, 0.1);
  animation: pulseGlow 3s ease-in-out infinite;
}

.stat-item:nth-child(2)::before {
  animation-delay: 1.5s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.4), 0 0 40px rgba(100, 150, 255, 0.2), inset 0 0 30px rgba(100, 150, 255, 0.1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    opacity: 1;
    box-shadow: 0 0 30px rgba(100, 150, 255, 0.6), 0 0 60px rgba(100, 150, 255, 0.3), inset 0 0 40px rgba(100, 150, 255, 0.2);
  }
}
/* Stat Numbers with Gradient Text */
.stat-number {
  background-color: rgba(255, 255, 255, 0.8235294118);
  background-image: url(../../../assets/img/title-background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .stat-item::before {
    width: 120px;
    height: 120px;
    top: -10px;
  }
  .stat-number {
    font-size: 48px;
    margin-top: 35px;
  }
  .stat-label {
    font-size: 13px;
  }
}