/*--------------------------------------------------------------
# Hall of Fame: scuro con accenti oro, per celebrare i vincitori
--------------------------------------------------------------*/
.hof {
  --gold: #ffcf5c;
  --gold-deep: #d4a017;
  --silver: #d7dde5;
  --bronze: #e0915a;
  --panel: #1f1712;
  --panel-border: rgba(255, 207, 92, 0.25);
  background: radial-gradient(ellipse at top, #2b1a10 0%, #140d09 60%);
  color: #f1e3d9;
}

/* La sezione Contatti condivisa ha sfondo chiaro: ripristina il colore standard del body */
.hof .contact {
  color: #a91d1d;
}

.hof-section {
  padding: 48px 0;
}

.hof-title {
  text-align: center;
  margin-bottom: 28px;
}

.hof-section h2 {
  color: #fff;
  font-weight: 700;
}

.hof-title h2 .bx,
.hof-info h2 .bx {
  color: var(--gold);
}

.hof-title p {
  color: #c9b8ab;
  margin: 6px 0 0;
}

.hof-section a:not(.banner-btn) {
  color: var(--gold);
}

/* ---------- Numeri ---------- */
.hof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 0;
  gap: 12px;
}

.hof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
}

.hof-stat-value {
  font-family: "Raleway", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff3c4, var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hof-stat-name {
  font-size: clamp(20px, 2.6vw, 30px);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hof-stat-label {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c9b8ab;
}

@media (max-width: 768px) {
  .hof-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Campioni in carica ---------- */
.hof-champion {
  position: relative;
  overflow: hidden;
  padding: 32px clamp(16px, 4vw, 48px);
  border: 2px solid var(--gold-deep);
  border-radius: 18px;
  background: linear-gradient(135deg, #3a2410 0%, #1d130c 55%, #3a2410 100%);
  box-shadow: 0 0 0 6px rgba(255, 207, 92, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Riflesso dorato che attraversa la card */
.hof-champion::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 230, 160, 0.12), transparent);
  transform: skewX(-20deg);
  animation: hof-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hof-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

.hof-champion-head {
  text-align: center;
}

.hof-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2b1a10;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.hof-champion-head h2 {
  margin: 12px 0 4px;
  font-size: clamp(28px, 4.5vw, 44px);
}

.hof-date {
  color: #c9b8ab;
}

.hof-champion-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.hof-trophy {
  font-size: clamp(72px, 12vw, 120px);
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(255, 207, 92, 0.55));
  animation: hof-float 4s ease-in-out infinite;
}

@keyframes hof-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hof-champion-facts {
  display: grid;
  gap: 12px;
}

.hof-fact-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c9b8ab;
}

.hof-fact-value {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--gold);
  word-break: break-word;
}

.hof-podiums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .hof-podiums {
    grid-template-columns: 1fr;
  }
}

.hof-podium {
  padding: 16px 12px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.hof-podium h3 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.hof-podium h3 .bx {
  color: var(--gold);
}

/* Podio 2 - 1 - 3 */
.podium {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podium li {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-name {
  max-width: 100%;
  padding: 0 2px 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-step {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  font-size: 22px;
  border-radius: 8px 8px 0 0;
}

.podium-1 .podium-step {
  height: 86px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

.podium-2 .podium-step {
  height: 62px;
  background: linear-gradient(180deg, #f3f6fa, #9aa4b1);
}

.podium-3 .podium-step {
  height: 46px;
  background: linear-gradient(180deg, #f2b07e, #a8592a);
}

.podium-1 .podium-name {
  color: var(--gold);
  font-size: 16px;
}

/* ---------- Leggende ---------- */
.hof-table-wrap {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
}

.hof-table {
  width: 100%;
  border-collapse: collapse;
}

.hof-table th,
.hof-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hof-table th {
  font-size: 18px;
  color: #c9b8ab;
  background: rgba(0, 0, 0, 0.25);
}

.hof-table th:nth-child(2),
.hof-table .hof-player {
  text-align: left;
}

.hof-table tbody tr:last-child td {
  border-bottom: 0;
}

.hof-table tbody tr:hover {
  background: rgba(255, 207, 92, 0.06);
}

.hof-player {
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.hof-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  color: #c9b8ab;
  background: rgba(255, 255, 255, 0.06);
}

.top-1 .hof-rank { color: #2b1a10; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.top-2 .hof-rank { color: #2b1a10; background: linear-gradient(180deg, #f3f6fa, #9aa4b1); }
.top-3 .hof-rank { color: #2b1a10; background: linear-gradient(180deg, #f2b07e, #a8592a); }
.top-1 .hof-player { color: var(--gold); font-size: 18px; }

/* ---------- Archivio ---------- */
.hof-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto 24px;
}

.hof-search .bx {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #8a7a6e;
}

.hof-search .form-control {
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid var(--panel-border);
  color: #fff;
  background: var(--panel);
}

.hof-search .form-control::placeholder {
  color: #8a7a6e;
}

.hof-search .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 207, 92, 0.2);
}

.hof-empty {
  text-align: center;
  color: #c9b8ab;
}

.hof-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.hof-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hof-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hof-card[hidden] {
  display: none;
}

.hof-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #5a1010, #2b1a10);
  border-bottom: 2px solid var(--gold-deep);
}

.hof-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.hof-card-head time {
  font-size: 13px;
  color: #ffd2b7;
  white-space: nowrap;
}

.hof-card-winner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hof-card-trophy {
  font-size: 34px;
}

.hof-card-winner strong {
  display: block;
  font-size: 17px;
  color: var(--gold);
  word-break: break-word;
}

.hof-card-winner span {
  font-size: 14px;
  color: #c9b8ab;
}

.hof-card-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 16px;
}

.hof-card-lists h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c9b8ab;
}

.hof-card-lists ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.hof-card-lists li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hof-section mark {
  padding: 0 2px;
  border-radius: 3px;
  color: #2b1a10;
  background: var(--gold);
}

/* ---------- Come funzionano le stagioni ---------- */
.hof-info {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
}

.hof-info > img {
  width: min(260px, 40%);
  border-radius: 50%;
}

.hof-info ul {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.hof-info li {
  padding: 4px 0 4px 28px;
  position: relative;
}

.hof-info li .bx {
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--gold);
  font-size: 20px;
}

.hof-info-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hof-info-cta .banner-btn {
  margin: 0;
}

.hof-android {
  width: 170px;
  height: auto;
}

@media (max-width: 768px) {
  .hof-info {
    flex-direction: column;
    text-align: center;
  }

  .hof-info ul {
    text-align: left;
  }

  .hof-info-cta {
    justify-content: center;
  }
}

/* ---------- Coriandoli ---------- */
.hof-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

@media (prefers-reduced-motion: reduce) {
  .hof-champion::before,
  .hof-trophy {
    animation: none;
  }
}
