@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@font-face {
  font-family: "Not Just Groovy";
  src: url('fonts/Not Just Groovy.ttf') format('truetype');
}

:root {
  --primary: #032ea4;
  --light: #eeeeee;
  --accent: #ffdd45;
  --dark: #021d6b;
  --font: 'Nata Sans', sans-serif;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
      font-family: var(--font);
      background: var(--light);
      color: var(--primary);
      scroll-behavior: smooth;
      padding-top: 80px; /* spazio per la barra fissa */
    }

.header {
      display: flex; 
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background: var(--primary);
      position: fixed;
      top: 0; 
      left: 0; 
      right: 0;
      z-index: 1000;
    }

.header .logo {
  height: 8vh;
  transition: transform 0.3s;
}
.header .logo:hover { transform: rotate(-5deg); }

.header nav a {
  color: var(--light);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.header nav a::after {
  content: ''; width: 0; height: 2px;
  background: var(--accent);
  position: absolute; left: 0; bottom: -4px;
  transition: width 0.3s;
}
.header nav a:hover::after {
  width: 100%;
}

.hero {
  display: flex; flex-direction: column;
  height: 92vh;
  align-items: center; 
  justify-content: center;
  background: linear-gradient(rgba(3,46,164,0.7),rgba(3,46,164,0.8)),
              url('../img/hero.jpg') center/cover no-repeat;
  color: var(--light);
  text-align: center;
  padding: 8rem 2rem;
  margin: 0;
}

.hero h1 {
  font-family: 'Not Just Groovy';
  font-size: 4.5rem; 
  margin-bottom: 0.5rem;
  font-weight: 300;
  animation: slideDown 0.7s ease-out forwards;
}
.hero p {
  font-size: 1.25rem; 
  max-width: 600px;
  margin-bottom: 2rem;
  animation: fadeIn 1.2s ease-out forwards;
}

.btn {
  background: var(--accent);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border: none; 
  border-radius: 6px;
  font-weight: 600; 
  text-decoration: none;
  transition: transform 0.2s, background 0.3s;
  margin-bottom: 10px;
}

.btn:hover {
  transform: scale(1.05);
  background: #f5cb00;
}

.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
}

.sponsor-logos img {
  height: auto;
  transition: transform 0.3s;
  max-width: 100%;
}

.sponsor-logos img:hover {
  transform: scale(1.1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}
.team-grid .card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}
.team-grid .card:hover {
  transform: scale(1.05);
}
.team-grid img {
  max-width: 100%;
  border-radius: 12px 12px 0 0;
}
.team-grid h3 {
  margin: 0.5rem 0;
}

.section {
  padding: 4rem 2rem;
  text-align: center;
}

.alt-section {
  background: #ffffff;
}

.section h2 {
  /* font-family: "Not Just Groovy"; */
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section h2::after {
  content: ''; 
  width: 50%; 
  height: 4px;
  background: var(--accent);
  position: absolute; 
  left: 25%; 
  bottom: -8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card img {
  width: 100%; height: auto;
}
.card h3 {
  margin: 1rem;
  color: var(--dark);
}
.card p {
  margin: 0 1rem 1rem;
  color: #555;
}

.footer {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.uppercase {
    text-transform: uppercase;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  body { padding-top: 30px;}
  .hero {  background: linear-gradient(rgba(3,46,164,0.7),rgba(3,46,164,0.8)),
              url('../img/hero.jpg') center/contain no-repeat;
            height: 40vh; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .header nav { display: none; }
}
