/* Stili raffinati per A.S.D. Fly&Dance (versione soft glow) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Poppins:wght@300;400;600&display=swap');

body {
  background-color: #0a0a0a;
  color: #f8f9fa;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: rgba(10, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.4s ease-in-out;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.1);
}

.navbar:hover {
  background-color: rgba(30, 0, 0, 0.9);
}

.navbar-brand img {
  height: 65px;
  transition: transform 0.4s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05) rotate(-1deg);
}

.nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ff4d6d;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(255, 77, 109, 0.12), #0a0a0a 80%), url('DEFINITIVO.png') no-repeat center bottom/contain;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(10,0,0,0.95));
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s ease-in-out forwards;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #ff8fa3;
  text-shadow: 0 0 6px rgba(255, 77, 109, 0.4);
}

.hero-section p {
  max-width: 600px;
  margin: 20px auto;
  color: #dcdcdc;
  font-size: 1.1rem;
}

.btn-dance {
  background: linear-gradient(90deg, #ff4d6d, #ff8fa3);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 12px 36px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
  transition: all 0.3s ease;
}

.btn-dance:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 143, 163, 0.5);
  color: #0d0d0d;
}

/* Corsi */
.section-dark {
  background-color: #111;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 77, 109, 0.05), transparent 70%);
  z-index: 0;
}

.section-dark h2 {
  font-family: 'Playfair Display', serif;
  color: #ff8fa3;
  text-shadow: 0 0 5px rgba(255, 77, 109, 0.25);
}

.course-card {
  background: rgba(25, 25, 25, 0.95);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.25);
}

.course-card .card-title {
  color: #ff8fa3;
  font-weight: 600;
  font-size: 1.4rem;
}

.course-card .card-text {
  color: #ccc;
}

/* Animazioni */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s ease forwards;
}

/* Scroll Reveal */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #000;
  color: #bbb;
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 77, 109, 0.1);
}

footer p {
  margin: 0;
}

.img-box-small img {
  max-width: 80%; /* riduce la larghezza del box */
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.img-box-small img:hover {
  transform: scale(1.03);
}

.img-box-small img {
  max-width: 80%; /* riduce la larghezza del box */
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.img-box-small img:hover {
  transform: scale(1.03);
}

.course-section img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.course-section img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 77, 109, 0.3);
}

.course-section h3 {
  position: relative;
}

.course-section h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff8fa3;
  margin-top: 8px;
  border-radius: 2px;
}

/* === TIMELINE ORIZZONTALE CON IMMAGINI === */
.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: start;
  overflow-x: auto;
  gap: 3rem;
  padding: 2rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: #ff4d6d #1a1a1a;
}

.timeline-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background-color: #ff4d6d;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.timeline-item {
  position: relative;
  flex: 0 0 300px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem 1rem 2rem 1rem;
  text-align: left;
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.1);
  transition: all 0.4s ease;
}

.timeline-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 77, 109, 0.3);
}

.timeline-dot {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: #ff4d6d;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.6);
}

/* Linea orizzontale */
.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #ff4d6d 0%, transparent 100%);
  opacity: 0.4;
}

/* Immagini evento */
.event-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .event-thumb {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

/* Testo */
.timeline-content h5 {
  color: #ff4d6d;
  margin-bottom: 0.5rem;
  text-align: center;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #ddd;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .timeline-item {
    flex: 1 0 auto;
    width: 90%;
  }

  .timeline-container::before {
    display: none;
  }

  .timeline-dot {
    top: -12px;
  }

  .timeline-content p {
    text-align: center;
  }
}

/* === DOVE SIAMO === */
.location-card {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.15);
  transition: all 0.4s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(255, 77, 109, 0.3);
  background: rgba(20, 20, 20, 0.95);
}

.location-card h4 {
  color: #ff4d6d;
}

.location-card p {
  color: #ddd;
}

/* Mappa */
.map-box iframe {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-box:hover iframe {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 77, 109, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .map-box iframe {
    height: 200px;
  }
}

/*
.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-input,
.custom-textarea {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff !important; 
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.custom-input::placeholder,
.custom-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.custom-input:focus,
.custom-textarea:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ff8fa3;
  box-shadow: 0 0 8px rgba(255, 143, 163, 0.4);
  color: #fff;
}

.was-validated .form-control:invalid,
.was-validated .form-check-input:invalid {
  border-color: #ff4d6d;
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.7);
  animation: shake 0.2s 2;
}

.invalid-feedback {
  color: #ff8fa3;
  font-size: 0.9rem;
}


@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
*/

.contact-section {
  background: radial-gradient(circle at top, #1a1a1d 0%, #0f0f11 100%);
  position: relative;
  overflow: hidden;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 143, 163, 0.3);
  border-color: rgba(255, 143, 163, 0.4);
}

.contact-icon {
  width: 55px;
  height: 55px;
  filter: drop-shadow(0 0 10px rgba(255, 143, 163, 0.6));
  transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffb3c1;
}

.social-box {
  margin-top: 2.5rem;
}

.social-img {
  width: 45px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 143, 163, 0.4));
}

.social-img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px rgba(255, 143, 163, 0.7));
}

.course-img {
  width: 100%;
  height: auto;              /* mantiene proporzioni originali */
  max-height: 500px;         /* limite di altezza per armonia */
  object-fit: contain;       /* mostra tutta l’immagine senza tagliarla */
  transition: transform 3s ease, opacity 1.5s ease-in-out;
  border-radius: 1rem;
}
/* --- Effetto Fade morbido senza zoom --- */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

/* Nessuno zoom: mantieni le proporzioni originali */
.img-box-small img {
  object-fit: contain;
  height: auto;
  width: 100%;
  border-radius: 1rem;
}

/* Indicatori personalizzati */
.carousel-indicators [data-bs-target] {
  background-color: #e91e63;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}


@keyframes subtleZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

