/* === BASE === */
body {
  font-family: 'Poppins', sans-serif;
  background: #f0f4f8;
  color: #002b5c;
  margin: 0;
  padding: 0;
}

/* === SEZIONI === */
.section {
  padding: 40px 20px;
  text-align: center;
}

.section h2 {
  color: #002b5c;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #002855;
  display: inline-block;
  padding-bottom: 5px;
}

.section h3 {
  color: #004aad;
  margin-top: 30px;
}

/* === CARD FIFA STYLE AGGIORNATA === */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.fifa-card {
  width: 160px;
  height: 220px; /* leggermente più compatta */
  background: linear-gradient(145deg, #002855, #004aad); /* blu scuro -> blu medio */
  border-radius: 18px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover leggero */
.fifa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.35);
}

/* Logo centrato */
.card-bg {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-bg img {
  width: 80px; /* dimensione del logo */
  height: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2); 
}

/* Info giocatore in basso */
.player-info {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  z-index: 2;
}

.player-info h4 {
  font-size: 0.85rem;        
  font-weight: 600;         
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info p {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Riflesso centrale */
.fifa-card::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}
