/* ════════════════════════════════════════════════════════════════
   PALLAMANO HAENNA — SPORT PREMIUM DESIGN SYSTEM (CSS)
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:         #16234E;   /* Blu Navy Dominante */
  --navy-dark:    #0F1A3C;   /* Blu Navy Scuro Footer/Topbar */
  --navy-light:   #223766;   /* Navy per sfondi sezioni */
  --blue-accent:  #3B5BB0;   /* Accento Blu */
  --gold:         #FACC15;   /* Oro Accento */
  --gold-deep:    #EAB308;   /* Oro Scuro Hover */
  --white:        #FFFFFF;
  --light-bg:     #F1F5F9;   /* Grigio Chiaro */
  --slate-border: #E2E8F0;
  --text-dark:    #16234E;
  --text-muted:   #475569;
  
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Work Sans', sans-serif;

  --shadow-sm:  0 2px 4px rgba(22, 35, 78, 0.06);
  --shadow-md:  0 8px 20px -6px rgba(22, 35, 78, 0.15);
  --shadow-lg:  0 20px 40px -10px rgba(22, 35, 78, 0.25);

  --transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* TOPBAR */
.topbar {
  background: var(--navy-dark);
  height: 42px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.topbar-links {
  display: flex;
  gap: 20px;
}
.topbar-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.topbar-links a:hover {
  color: var(--gold);
}
.topbar-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topbar-socials a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.topbar-socials a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* HEADER & NAVBAR */
.header {
  background: var(--navy);
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.header.shrunk {
  height: 64px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-badge {
  background: var(--gold);
  color: var(--navy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}
.logo-text .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.logo-text .sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-cta:hover {
  background: var(--gold-deep);
}

/* MOBILE TOGGLE */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--blue-accent) 100%);
  padding: 80px 40px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-title span {
  color: var(--gold);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0 auto 32px;
}

/* NEXT MATCH TICKER */
.next-match-bar {
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 20px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.next-match-team {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}
.next-match-vs {
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  font-weight: 900;
  font-size: 14px;
  border-radius: 4px;
}

/* SECTIONS */
.section {
  padding: 80px 40px;
}
.section-alt {
  background-color: var(--light-bg);
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-size: 38px;
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gold);
}

/* GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--slate-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.card-body {
  padding: 24px;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 8px;
}
.card-title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* STANDINGS TABLE */
.standings-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
}
.standings-table th, .standings-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--slate-border);
}
.standings-table th {
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}
.standings-table td:nth-child(2) {
  text-align: left;
  font-weight: 700;
}
.highlight-row {
  background: rgba(250, 204, 21, 0.15);
}

/* SPONSORS BAND */
.sponsor-band {
  background: var(--light-bg);
  padding: 40px;
  text-align: center;
}
.sponsor-band-title {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsor-logo-box {
  background: var(--white);
  padding: 24px 40px;
  border-radius: 8px;
  border: 1px solid var(--slate-border);
  box-shadow: var(--shadow-sm);
  height: 120px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.sponsor-logo-box:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.sponsor-logo-box img {
  max-height: 95px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* FOOTER */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 40px 30px;
  border-top: 4px solid var(--gold);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 20px;
}
.footer-col p, .footer-col li {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
  list-style: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .topbar { display: none; }
  .header { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 40px; }
  .section { padding: 50px 20px; }
}
