/* Biblioteca page - section intro */
#biblioteca .section-intro {
  max-height: 550px;
  min-height: 0;
}

/* ========================================
   Biblioteca motion
   ======================================== */

#biblioteca .topo-title {
  animation: biblioteca-hero-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

#biblioteca .topo-subtitle {
  animation: biblioteca-hero-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@keyframes biblioteca-hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-item {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--biblioteca-motion-delay, 0ms);
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-pending .biblioteca-motion-item {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 0 100% 0);
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
  transition-delay: var(--biblioteca-motion-delay, 0ms), var(--biblioteca-motion-delay, 0ms), 0ms;
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-pending .biblioteca-motion-card {
  opacity: 0;
  transform: translateY(30px);
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-card .section-document-cards-card-image img {
  transform: scale(1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#biblioteca.biblioteca-motion-enabled .biblioteca-motion-pending .biblioteca-motion-card .section-document-cards-card-image img {
  transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
  #biblioteca.biblioteca-motion-enabled .section-document-cards-card.biblioteca-motion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.4);
    transition-delay: 0ms;
  }

  #biblioteca.biblioteca-motion-enabled .section-document-cards-card:hover .section-document-cards-card-image img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  #biblioteca .topo-title,
  #biblioteca .topo-subtitle,
  #biblioteca .scroll-indicator {
    animation: none !important;
  }

  #biblioteca .biblioteca-motion-item,
  #biblioteca .biblioteca-motion-card,
  #biblioteca .biblioteca-motion-card .section-document-cards-card-image img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
