/* Palette coerente con la landing page fantassistant.net (sito/index.html) */
:root {
  --bg: #060b16;
  --surface: #0e1830;
  --surface-2: #142338;
  --pitch: #23c26b;
  --blue: #2196f3;
  --blue-bright: #7ecbff;
  --text: #eef3f8;
  --text-muted: #90a1ba;
  --border: #1f2c46;
  --shadow: rgba(0,0,0,0.55);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-wrap: balance;
}

a {
  color: var(--blue-bright);
}
a:hover {
  color: var(--blue);
}

/* Riaggancia le variabili Bootstrap (data-bs-theme="dark") alla nostra palette */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 33, 150, 243;
  --bs-link-color: var(--blue-bright);
  --bs-link-hover-color: var(--blue);
  --bs-secondary-bg: var(--surface);
  --bs-tertiary-bg: var(--surface-2);
}

.navbar {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

.brand-wordmark {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-wordmark .fant { color: #FFFFFF; }
.brand-wordmark .assist { color: #00A2FB; }

.navbar-nav.flex-grow-1 {
  gap: 6px;
}

.nav-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: 'Orbitron', sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: var(--surface-2);
  border-color: var(--border);
}

/* ===== Sidebar laterale (FantaBid/FantaStrategy) — visibile di default da
   desktop (>=992px), nascosta/offcanvas sotto quella soglia, apribile dal
   bottone hamburger nella navbar ===== */
.app-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.app-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus-visible {
  background: var(--surface-2);
}

.app-sidebar {
  --bs-offcanvas-width: 240px;
  --bs-offcanvas-bg: var(--surface);
  --bs-offcanvas-color: var(--text);
  --bs-offcanvas-border-color: var(--border);
  padding-top: 8px;
}

.app-sidebar .offcanvas-header {
  padding: 12px 16px;
}

.app-sidebar .offcanvas-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 16px;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-left-color 0.15s ease;
}

.app-sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-bright);
}

.app-sidebar-link:hover,
.app-sidebar-link:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.app-sidebar-link.active {
  background: var(--surface-2);
  border-left-color: var(--pitch);
  font-weight: 700;
}

@media (min-width: 992px) {
  .app-sidebar {
    border-right: 1px solid var(--border);
  }

  .app-shell {
    align-items: stretch;
  }
}

.user-icon-link {
  display: flex;
  align-items: center;
}
.user-icon-link::after {
  display: none; /* niente freccina del dropdown, solo l'icona */
}
.user-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-primary {
  background-color: var(--blue);
  border-color: var(--blue);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #06121f;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
}

.card, .alert {
  background-color: var(--surface);
  border-color: var(--border);
}

footer {
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bg), 0 0 0 0.25rem var(--blue);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Home: stessa sezione hero/social della landing page fantassistant.net ===== */
.home-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.home-hero {
  text-align: center;
  margin-bottom: 40px;
}

.home-hero .logo {
  width: 228px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
  border-radius: 16px;
  filter: drop-shadow(0 12px 24px var(--shadow));
}

.home-hero .tagline {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--text) 30%, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero .description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto;
}

@media (min-width: 481px) {
  .home-hero .description {
    max-width: none;
  }
}

.home-perforation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 32px;
}
.home-perforation::before,
.home-perforation::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--border);
}
.home-perforation .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}

.home-section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.home-lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.home-lineup li a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 14px 18px;
  transition: border-left-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.home-lineup li a:hover,
.home-lineup li a:focus-visible {
  border-left-color: var(--pitch);
  background: var(--surface-2);
  transform: translateX(2px);
}

.home-lineup .shirt {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-lineup .shirt img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ===== Bottoni "Le app della squadra" nella Home generale, stesso stile dei
   bottoni equivalenti sulla landing page statica (sito/index.html) ===== */
.home-lineup .app-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.home-lineup .app-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: 0 0 170px;
}

.home-lineup .app-name .main {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.home-lineup .app-name .main .fanta { color: #FFFFFF; }
.home-lineup .app-name .main .word { color: #00A2FB; }

.home-lineup .app-name .sub {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #00A2FB;
  margin-top: 3px;
}

.home-lineup .desc {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 3px;
}

@media (max-width: 480px) {
  .home-lineup .app-content {
    flex-direction: column;
    gap: 6px;
  }
  .home-lineup .app-name {
    flex: 0 0 auto;
  }
  .home-lineup .desc {
    padding-top: 0;
  }
}

.home-lineup .platform {
  flex: 1;
  min-width: 0;
}

.home-lineup .platform .name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.home-lineup .platform .handle {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.home-lineup .arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Area Admin: griglia di bottoni con icona ===== */
.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 16px;
  transition: border-left-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-menu-item:hover,
.admin-menu-item:focus-visible {
  border-left-color: var(--pitch);
  background: var(--surface-2);
  transform: translateX(2px);
  color: var(--text);
}

.admin-menu-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
}

.admin-menu-icon svg {
  width: 22px;
  height: 22px;
}

.admin-menu-label {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== "Le mie squadre" (FantaStrategy) su mobile: card impilate al posto
   della tabella, illeggibile/scomoda a scorrimento orizzontale su schermi
   stretti ===== */
.squadra-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.squadra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.squadra-card-nome {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.squadra-preferita-star {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -2px;
}

.squadra-card-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}

.squadra-card-info div {
  display: contents;
}

.squadra-card-info dt {
  color: var(--text-muted);
  font-weight: 500;
}

.squadra-card-info dd {
  margin: 0;
  text-align: right;
}

.squadra-card-actions {
  display: flex;
  gap: 8px;
}

.squadra-card-actions > a,
.squadra-card-actions > form {
  flex: 1;
}

/* ===== Elenchi FantaBoard: stesso pattern "card su mobile, tabella su
   desktop" di .squadra-card, ma generico (non di una singola pagina:
   riusato da ogni tabella di FantaBoard, presente e futura) e con un
   numero variabile di azioni per riga, quindi i bottoni vanno a capo
   invece di dividersi lo spazio in parti uguali. Uso:
   <div class="d-none d-md-block table-responsive"><table>...</table></div>
   <div class="d-md-none fb-cards"><div class="fb-card">...</div></div> ===== */
.fb-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.fb-card-titolo {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.fb-card-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}

.fb-card-info div {
  display: contents;
}

.fb-card-info dt {
  color: var(--text-muted);
  font-weight: 500;
}

.fb-card-info dd {
  margin: 0;
  text-align: right;
}

.fb-card-pagelle {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.fb-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-card-actions > form {
  display: contents;
}

/* ===== Formazione consigliata (FantaStrategy): titolari su un campo da
   calcio invece che in tabella — righe in ordine Attaccanti/Centrocampisti/
   Difensori/Portiere dall'alto verso il basso, panchina resta in tabella
   (invariata) ===== */
.pitch {
  --pitch-green-1: #16612e;
  --pitch-green-2: #1a7136;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
    to bottom,
    var(--pitch-green-1) 0,
    var(--pitch-green-1) 12.5%,
    var(--pitch-green-2) 12.5%,
    var(--pitch-green-2) 25%
  );
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 480px;
}

.pitch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 12px;
}

.pitch-player {
  position: relative;
  flex: 0 0 auto;
  min-width: 84px;
  text-align: center;
}

.pitch-player-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.15;
  white-space: nowrap;
}

.pitch-player-ruolo {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  text-shadow: none;
  line-height: 1;
}

.pitch-player-ruolo-p { background: #e8871e; }
.pitch-player-ruolo-d { background: var(--pitch); }
.pitch-player-ruolo-c { background: var(--blue); }
.pitch-player-ruolo-a { background: #e5383b; }

.pitch-player-squadra {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.pitch-player-score {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #06121f;
  background: var(--blue-bright);
  border-radius: 999px;
  padding: 0 7px;
}

.pitch-player-tag {
  position: absolute;
  top: -10px;
  right: 6px;
  background: var(--pitch);
  color: #06121f;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.3;
}

.consiglio-stato-badge {
  font-size: 0.9rem;
  padding: 0.45em 0.7em;
}

.consiglio-guida-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  cursor: pointer;
}

.consiglio-guida-btn svg {
  width: 20px;
  height: 20px;
}

.consiglio-guida-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.consiglio-parametri-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}

.consiglio-parametri-titolo {
  font-weight: 600;
  margin: 0 0 8px;
}

.consiglio-parametri-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consiglio-parametro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 4px;
  font-size: 11px;
  line-height: 1;
  color: #06121f;
}

.consiglio-parametro-ok {
  background: var(--pitch);
}

.consiglio-parametro-ok::before {
  content: "✓";
}

.consiglio-parametro-pending {
  background: #ffc107;
}

.indisponibile-icona {
  display: inline-block;
  vertical-align: middle;
}

.indisponibile-cartellino {
  width: 11px;
  height: 15px;
  background: #e5383b;
  border-radius: 2px;
}

.indisponibile-croce {
  position: relative;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.indisponibile-croce::before,
.indisponibile-croce::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #e5383b;
  transform: translate(-50%, -50%);
}

.indisponibile-croce::before {
  width: 9px;
  height: 3px;
}

.indisponibile-croce::after {
  width: 3px;
  height: 9px;
}

@media (max-width: 575.98px) {
  .pitch {
    padding: 16px 4px;
    min-height: 420px;
    gap: 12px;
  }

  .pitch-player {
    min-width: 68px;
  }

  .pitch-player-name {
    font-size: 0.7rem;
  }
}

/* ===== Dashboard FantaStrategy: box partite/squadre affiancati ===== */
.dashboard-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  height: 100%;
}

.dashboard-box-title {
  margin-bottom: 12px;
}

.dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
}

.dashboard-list li:last-child {
  border-bottom: none;
}

.dashboard-list-main {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

a.dashboard-list-main:hover {
  color: var(--blue-bright);
}

.dashboard-list-side {
  font-size: 0.9rem;
  white-space: nowrap;
}

.dashboard-box-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
}

.countdown-label {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 4px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit-label {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.countdown-unit-value {
  display: inline-block;
  min-width: 2.6em;
  color: #00A2FB;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.countdown-value {
  color: #00A2FB;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.dashboard-chart-wrap {
  position: relative;
  height: 220px;
}

.dashboard-box-chart {
  display: flex;
  flex-direction: column;
}

.dashboard-box-chart .dashboard-box-title {
  margin-bottom: 28px;
}

.dashboard-box-chart .dashboard-chart-wrap {
  flex: 1;
  min-height: 220px;
}

.statistiche-chart-wrap {
  position: relative;
  height: 360px;
}

/* ===== Pagina pubblica di presentazione FantaBid ===== */
.app-hero {
  text-align: center;
  margin: 32px 0 40px;
}

.app-hero-title {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.05;
  margin: 0;
}

.app-hero-title .main {
  display: block;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
}

.app-hero-title .main .fanta { color: #FFFFFF; }
.app-hero-title .main .word { color: #00A2FB; }

.app-hero-title .sub {
  display: block;
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.08em;
  color: #00A2FB;
  margin-top: 4px;
}

.app-hero-tagline {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.app-fasi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-fasi li {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pitch);
  border-radius: 8px;
  padding: 14px 18px;
}

.app-fasi .numero {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-bright);
  flex-shrink: 0;
  width: 2ch;
}

/* ===== Marchio "FantaX Assistant" accanto al titolo di pagina (FantaBid/FantaStrategy) =====
   Le altezze sono calcolate perché le due righe del marchio occupino esattamente la
   stessa altezza del titolo (1.05rem + 0.15rem + 0.6rem = 1.8rem = altezza h1). */
.page-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.lega-logo {
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
}

.lega-logo-sm {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.lega-logo-lg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.lega-nome-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.lega-nome-link:hover {
  text-decoration: underline;
}

.panoramica-titolo-sezione {
  color: #00A2FB;
}

.panoramica-premi-box {
  border: 1px solid #00A2FB;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
}

@media (max-width: 767.98px) {
  /* Usato sia da Panoramica (sezione 5.10) sia da Gestione lega — Regolamento/Squadre/
     Competizioni/Premi (sezione 5.9), stesse impostazioni per entrambe (13 ott 2026). */
  .lega-header-mobile .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lega-header-mobile .page-header h1 {
    display: flex;
    align-items: flex-start;
  }

  .lega-header-mobile .lega-header-testo {
    display: flex;
    flex-direction: column;
  }

  .lega-header-mobile .lega-header-separatore {
    display: none;
  }

  .lega-header-mobile .lega-header-stagione {
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 2px;
  }
}

.page-header h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.8rem;
}

.app-badge {
  font-family: 'Orbitron', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 1.8rem;
}

.app-badge-main {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05rem;
}

.app-badge-main .fanta { color: #FFFFFF; }
.app-badge-main .word { color: #00A2FB; }

.app-badge-sub {
  font-weight: 500;
  font-size: 0.6rem;
  line-height: 0.6rem;
  letter-spacing: 0.06em;
  color: #00A2FB;
  margin-top: 0.15rem;
}

/* ===== Checklist live requisiti password ===== */
.password-criteria {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.password-criteria li {
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.password-criteria li::before {
  content: "○";
  position: absolute;
  left: 0;
}

.password-criteria li.ok {
  color: var(--pitch);
}
.password-criteria li.ok::before {
  content: "✓";
}

.password-criteria li.ko {
  color: #e05a5a;
}
.password-criteria li.ko::before {
  content: "✗";
}
