/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg2: #131317;
  --bg3: #1a1a21;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --card-bg: #18181f;
  --radius: 16px;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,99,255,0.15);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(108,99,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(108,99,255,0.6);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 2.5rem 4rem;
  background: radial-gradient(ellipse at 70% 50%, rgba(108,99,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(255,101,132,0.08) 0%, transparent 60%),
              var(--bg);
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content { max-width: 600px; }
.hero-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(108,99,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: radial-gradient(circle, rgba(108,99,255,0.1), transparent);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(108,99,255,0.2); }
  50% { box-shadow: 0 0 50px rgba(108,99,255,0.5); }
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 50%;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}
.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.about-text strong { color: var(--text); }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 50px;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* ===== PASSION CARDS ===== */
.passioni { background: var(--bg); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.passion-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.passion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.passion-card.football::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.passion-card.f1::before       { background: linear-gradient(90deg, #ef4444, #dc2626); }
.passion-card.volley::before   { background: linear-gradient(90deg, #f59e0b, #d97706); }

.passion-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.3);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.passion-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.passion-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(108,99,255,0.15);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== PC BUILDING ===== */
.pc-section { background: var(--bg2); }
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pc-step {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(108,99,255,0.1);
  transition: border-color 0.3s;
}
.pc-step:hover { border-color: var(--accent); }
.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pc-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.pc-step p  { color: var(--text-muted); font-size: 0.9rem; }

/* ===== SCUOLA ===== */
.scuola-section { background: var(--bg); }
.scuola-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}
.scuola-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.scuola-text strong { color: var(--text); }

.school-card {
  background: var(--card-bg);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 220px;
}
.school-icon { font-size: 2.5rem; }
.school-card strong { font-size: 1rem; }
.school-card span { color: var(--text-muted); font-size: 0.85rem; }
.school-tag {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(108,99,255,0.15);
  color: var(--accent) !important;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== BLOG ===== */
.blog-section { background: var(--bg2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.3);
}
.blog-cat {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1rem;
}
.football-cat { background: rgba(34,197,94,0.15); color: #22c55e; }
.f1-cat       { background: rgba(239,68,68,0.15);  color: #ef4444; }
.pc-cat       { background: rgba(108,99,255,0.15); color: var(--accent); }

.blog-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.blog-card p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-date    { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg3);
  border-top: 1px solid rgba(108,99,255,0.15);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-small { font-size: 0.8rem !important; margin-top: 1rem; }

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.1), transparent 70%), var(--bg);
}
.error-img {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius);
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.error-msg {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: rgba(13,13,15,0.97); padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid rgba(108,99,255,0.15); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }

  .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .badge-ring { width: 160px; height: 160px; font-size: 3.5rem; }

  .about-grid { grid-template-columns: 1fr; }
  .scuola-content { grid-template-columns: 1fr; }
  .school-card { width: 100%; }
}
