/* Stili specifici per la pagina Premiazioni */

.premiati-header {
  margin: 40px 0 30px;
  text-align: center;
}

.premiati-header h1 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 2.3rem;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.premiati-header p {
  color: #e0e0e0;
  font-size: 1.05rem;
}

/* Tabs switcher */
.premiati-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 35px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: rgba(43, 30, 23, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background-color: rgba(114, 176, 29, 0.25);
  border-color: var(--accent-lime, #72b01d);
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: var(--action-orange, #7b2cbf);
  border-color: var(--action-orange, #7b2cbf);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.45);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Banner dentro il tab */
.premiati-info-box {
  background: rgba(43, 30, 23, 0.75);
  border-left: 4px solid var(--accent-lime, #72b01d);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.premiati-info-box i {
  font-size: 1.4rem;
  color: var(--accent-lime, #72b01d);
}

/* Tabella Sorteggio */
.sorteggio-card {
  background: rgba(43, 30, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 50px;
}

.sorteggio-search {
  margin-bottom: 20px;
  position: relative;
}

.sorteggio-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.sorteggio-search input:focus {
  border-color: var(--accent-lime, #72b01d);
}

.sorteggio-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.premiati-table {
  width: 100%;
  border-collapse: collapse;
}

.premiati-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-lime, #72b01d);
  border-bottom: 2px solid rgba(114, 176, 29, 0.4);
}

.premiati-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.premiati-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.badge-num {
  display: inline-block;
  background: rgba(114, 176, 29, 0.2);
  color: var(--accent-lime, #72b01d);
  border: 1px solid var(--accent-lime, #72b01d);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  min-width: 45px;
}

.premio-cell {
  color: #ffd166;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premio-cell i {
  color: #ff9100;
}

/* PODIO SQUADRE */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin: 30px 0 40px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.podium-step {
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s;
  flex: 1 1 240px;
  max-width: 320px;
}

.podium-step:hover {
  transform: translateY(-4px);
}

.podium-first {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(43, 30, 23, 0.9) 100%);
  border: 2px solid #ffd700;
  order: 2;
  min-height: 250px;
}

.podium-second {
  background: linear-gradient(135deg, rgba(224, 224, 224, 0.2) 0%, rgba(43, 30, 23, 0.9) 100%);
  border: 2px solid #e0e0e0;
  order: 1;
  min-height: 220px;
}

.podium-third {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.25) 0%, rgba(43, 30, 23, 0.9) 100%);
  border: 2px solid #cd7f32;
  order: 3;
  min-height: 200px;
}

.podium-badge {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.podium-first .podium-badge {
  color: #ffd700;
}

.podium-second .podium-badge {
  color: #e0e0e0;
}

.podium-third .podium-badge {
  color: #ff9e54;
}

.podium-team-name {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0;
  line-height: 1.3;
}

.podium-number {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 15px;
  opacity: 0.9;
}

.podium-first .podium-number {
  color: #ffd700;
}

.podium-second .podium-number {
  color: #e0e0e0;
}

.podium-third .podium-number {
  color: #ff9e54;
}

/* Lista Altre Squadre in Classifica */
.other-teams-card {
  background: rgba(43, 30, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 50px;
}

.other-teams-card h3 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  color: var(--accent-lime, #72b01d);
  text-transform: uppercase;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 20px;
  transition: background 0.2s, transform 0.2s;
}

.team-row:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.team-rank {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-lime, #72b01d);
  width: 45px;
}

.team-name {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .podium-container {
    flex-direction: column;
    align-items: stretch;
  }

  .podium-first {
    order: 1;
    min-height: auto;
  }

  .podium-second {
    order: 2;
    min-height: auto;
  }

  .podium-third {
    order: 3;
    min-height: auto;
  }

  .premiati-header h1 {
    font-size: 1.8rem;
  }
}