/* Animation styles for Associazione KERNEL website */

/* Base animation classes */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid items */
.documents-grid .animate:nth-child(1),
.events-grid .animate:nth-child(1) {
  transition-delay: 0.1s;
}

.documents-grid .animate:nth-child(2),
.events-grid .animate:nth-child(2) {
  transition-delay: 0.2s;
}

.documents-grid .animate:nth-child(3),
.events-grid .animate:nth-child(3) {
  transition-delay: 0.3s;
}

/* Hero section animations */
.hero .animate {
  transform: translateY(50px);
}

/* Fade in animations */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.show {
  opacity: 1;
}

/* Responsive animations - disable on small devices for performance */
@media (max-width: 576px) {
  .animate {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
  
  .documents-grid .animate,
  .events-grid .animate {
    transition-delay: 0s;
  }
}
