/* Reset e base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 80px;
}

/* Header */
.header {
  background: #1a1a1a;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 150px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

/* Hero Section */
.hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 2rem;
  background: rgba(0,0,0,0.6);
}

/* Team Sections */
.team-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.player-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin: 15px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
  z-index: 1;
}

/* Animation settings */
.player-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effect for mouse devices */
@media (hover: hover) {
  .player-card:hover {
    transform: translateY(-5px) scale(1.03);
  }
  .player-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    transition: background 0.4s ease;
  }
  .player-card:hover .player-info-container,
  .player-card:hover .player-stats {
    opacity: 0.5;
    transition: opacity 0.4s ease;
  }
}

/* Touch effect class */
.player-card.touch-active {
  transform: translateY(-5px) scale(1.03);
}
.player-card.touch-active::before {
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  transition: background 0.4s ease;
}
.player-card.touch-active .player-info-container,
.player-card.touch-active .player-stats {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.player-card > * {
  position: relative;
  z-index: 2;
}

.player-info-container {
  position: relative;
  bottom: -25px;
  line-height: 0.8;
}

.player-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.player-stats {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
  margin-top: 15px;
}

.player-stats {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 15px;
}

/* News Section */
.news-feed {
  background: #f5f5f5;
  padding: 4rem 2rem;
}

.social-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  body {
    padding-top: 60px;
  }
}

/* Dettaglio Atleta */
.player-detail {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.player-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.player-photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.player-info {
    flex: 1;
}

.player-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.position {
    font-size: 1.2rem;
    color: #ccc9c9;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.player-meta p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.player-history {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
    }
    
    .player-photo {
        width: 100%;
        height: auto;
    }
}
