.top-nav {
  background: #1d5b91;
  border-top: 4px solid rgba(255,255,255,.75);
  border-bottom: 4px solid rgba(255,255,255,.9);
}

.top-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.top-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: clamp(.78rem, 1.7vw, 1.05rem);
  font-weight: 650;
  letter-spacing: .02em;
}

.top-nav a:hover,
.top-nav a.active {
  background: #087bb9;
  color: #43e9ef;
}

/* HERO */

.azzurri-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,94,150,.15), rgba(0,166,200,.05)),
    url("HOME-PAGE-tt-background.jpg") center/cover no-repeat;
}

.azzurri-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,19,27,.86) 0%,
    rgba(5,19,27,.57) 52%,
    rgba(5,19,27,.13) 100%
  );
}

.azzurri-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 70px 0 58px;
}

.azzurri-hero-content h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
}

/* SECTIONS */

.azzurri-section,
.medals-section {
  padding: 68px 0 72px;
  background: #eef3f6;
}

.coaches-section {
  padding: 62px 0;
  background: #fff;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 32px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}

/* NATIONAL TEAM TABLE */

.national-table {
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 42px rgba(4,20,28,.10);
  border: 1px solid rgba(0,126,152,.12);
}

.national-table-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #075e9a, #00a6c8);
  color: white;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.national-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
  padding: 17px 24px;
  border-bottom: 1px solid #e5eef1;
}

.national-row:nth-child(odd) {
  background: #f7fbfc;
}

.national-row:last-child {
  border-bottom: 0;
}

.season-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e7f7fa;
  color: #007e98;
  font-weight: 850;
  white-space: nowrap;
}

.athlete-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.athlete-list span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d6e5ea;
  font-weight: 650;
  line-height: 1.25;
}

.athlete-list .empty {
  color: #80939b;
  border: 0;
  background: transparent;
}

/* COACHES */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.coach-card {
  padding: 22px;
  border-radius: 16px;
  background: #eef8fa;
  color: #123a49;
  border: 1px solid rgba(0,126,152,.14);
  font-weight: 800;
  text-align: center;
}

/* MEDALS TABLE */

.medals-table {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4,20,28,.10);
  border: 1px solid rgba(0,126,152,.12);
}

.medals-table-head,
.medal-row {
  display: grid;
  grid-template-columns: 1.2fr .75fr 1.55fr 1fr;
  gap: 18px;
  align-items: center;
}

.medals-table-head {
  padding: 18px 24px;
  background: linear-gradient(135deg, #075e9a, #00a6c8);
  color: white;
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.medal-row {
  padding: 20px 24px;
  border-bottom: 1px solid #e3ecef;
}

.medal-row:nth-child(odd) {
  background: #f7fbfc;
}

.medal-row:last-child {
  border-bottom: 0;
}

.athlete {
  font-weight: 850;
}

.event {
  font-weight: 650;
}

.place {
  color: #4c646e;
  text-align: right;
}

.medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.medal-badge.gold {
  background: #fff4bd;
  color: #7a5d00;
  border: 1px solid #e5c849;
}

.medal-badge.silver {
  background: #eef2f4;
  color: #52636b;
  border: 1px solid #c9d2d6;
}

.medal-badge.bronze {
  background: #f4e1d1;
  color: #87532f;
  border: 1px solid #d6a77f;
}

/* RESPONSIVE */

@media (max-width: 860px) {
  .top-nav-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-nav a {
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .coach-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .medals-table-head,
  .medal-row {
    grid-template-columns: 1fr 1fr;
  }

  .place {
    text-align: left;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .azzurri-hero {
    min-height: 360px;
  }

  .azzurri-hero-content {
    padding: 54px 0 44px;
  }

  .national-table-head,
  .medals-table-head {
    display: none;
  }

  .national-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .athlete-list span {
    font-size: .92rem;
  }

  .coach-grid {
    grid-template-columns: 1fr;
  }

  .medal-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px;
  }
}
