/* =====================================
   HOME - LAYOUT COLONNE E CARD
   ===================================== */

/* Colonne con altezza uniforme */
.col.d-flex.flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card e classifica si espandono */
.col.d-flex.flex-column > .card,
#classifica-target {
  flex: 1 1 auto;
}

/* Titolo classifica */
.classifica-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0d6efd; /* bootstrap primary */
}

/* Video iframe più compatto */
/* .card-body .ratio iframe {
  height: 250px;
} */

/* Card che devono crescere */
.card.flex-grow-1 {
  display: flex;
  flex-direction: column;
}

/* Spinner centrato */
#classifica-target .spinner-border {
  margin: 0 auto;
}

/* =====================================
   HERO HOME
   ===================================== */

.home-hero {
  padding: 3rem 1rem 4rem;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home-title-accent {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* =====================================
   SOCIAL BUTTONS
   ===================================== */

.home-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-social .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-social .btn i {
  font-size: 1.25rem;
}

/* Hover leggero comune */
.home-social .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* =====================================
   INSTAGRAM (BOOTSTRAP WAY ✔)
   ===================================== */

/* Instagram button con gradiente - versione migliorata */
.btn-outline-instagram {
  color: #c13584 !important;
  border: 2px solid #c13584 !important;
  background-color: transparent !important;
  position: relative;
  z-index: 1;
  overflow: hidden; /* Importante per contenere il gradiente */
  transition: color 0.3s ease-in-out !important;
}

.btn-outline-instagram:hover {
  color: white !important;
  border-color: transparent !important;
}

.btn-outline-instagram::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  border-radius: 0.375rem;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease-in-out;
}

.btn-outline-instagram:hover::before {
  opacity: 1;
}

/* Assicurati che l'icona e il testo siano sopra il gradiente */
.btn-outline-instagram i,
.btn-outline-instagram span {
  position: relative;
  z-index: 2;
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media (max-width: 991px) {
  .card-body .ratio iframe {
    height: 200px;
  }
}
