/* ============================================
   HOME.CSS — Animazioni e keyframes custom homepage
   ============================================ */

/* Bento card hover glow — transitions solo dopo animazione GSAP */
.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card.animated {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.animated:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(200, 168, 78, 0.1);
}

.bento-card.animated .card-overlay {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.animated:hover .card-overlay {
  opacity: 0.7;
}

.bento-card.animated .card-content {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.animated:hover .card-content {
  transform: translateY(-8px);
}

/* YouTube embed container responsive */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.video-container iframe,
.video-container .video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-poster {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
}

/* Play button custom */
.play-button {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--color-accent-muted);
}

.play-button svg {
  width: 28px;
  height: 28px;
  fill: var(--color-bg);
  margin-left: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bento-card.animated {
    transition: none;
  }
  .bento-card.animated:hover {
    transform: none;
  }
}
