:root {
  /* Colore primario */
  --bs-primary: #e6ac00; /* Il tuo giallo contrastato */
  --bs-primary-rgb: 230, 172, 0; /* Necessario per funzioni rgba interne */
  --bs-primary-hover: #d99900; /* Hover leggermente più scuro */
  --bs-primary-border: #d99900; /* Bordo per bottoni e componenti */

  /* Colore secondario (puoi lasciare il default o cambiarlo) */
  --bs-secondary: #6c757d;
  --bs-secondary-rgb: 108, 117, 125;

  /* Colori testo */
  --bs-body-color: #212529;
  --bs-body-bg: #fff;

  /* Variabili specifiche per paginazione */
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
  --bs-pagination-active-color: #000; /* testo scuro sul giallo */
  --bs-pagination-hover-bg: #ffd633; /* giallo più chiaro hover */
  --bs-pagination-hover-border-color: var(--bs-primary);
  --bs-pagination-hover-color: #000;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(230, 172, 0, 0.25);
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* Stili personalizzati per la navbar con i loghi */
.navbar {
  background-color: #000 !important;
  border: none;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 56px;
}

.top-logos {
  height: 90px;
  width: 100%;
}

.left-logos {
  gap: 0.5rem;
}

.right-logo {
}

.top-logo {
  height: 90px;
  max-height: 90px;
  width: auto;
  display: inline-block;
}

@media (max-width: 768px) {
  .top-logo {
    height: 48px;
    max-height: 48px;
  }
  .navbar {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  /* su schermi piccoli impile i loghi, centrali e ridotti */
  .top-logos {
    flex-direction: column !important;
    align-items: center;
    justify-content: center !important;
    height: auto;
    gap: 0.25rem;
    padding: 0.25rem 0;
  }
  .left-logos,
  .right-logo {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
  .top-logo {
    height: 40px;
    max-height: 40px;
  }
}

/* Stili personalizzati per la navbar con le tre immagini */
.navbar {
  background-color: #23201f !important;
  border: none;
}

.top-logos {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.left-logos {
  gap: 0.75rem;
}

.right-logo {
}

.top-logo {
  height: 90px;
  max-height: 90px;
  width: auto;
  display: inline-block;
}

.top-logo2 {
  height: 40px !important;
  max-height: 40px !important;
}

@media (max-width: 768px) {
  .top-logo {
    height: 44px;
    max-height: 44px;
  }
  .left-logos {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .top-logos {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.5rem;
  }
  .left-logos,
  .right-logo {
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }
  .right-logo {
    margin-left: 0;
  }
  .top-logo {
    height: 40px;
    max-height: 40px;
  }
  .navbar .navbar-toggler {
    display: block;
  }
  .navbar-collapse {
    margin-top: 0.25rem;
  }
}

.text-primary {
  color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.form-check-input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* Sovrascrivo solo la paginazione dopo Bootstrap */
.pagination .page-link {
  color: #e6ac00; /* colore testo */
}

.pagination .page-item.active .page-link {
  background-color: #e6ac00; /* colore attivo */
  border-color: #e6ac00;
  color: white; /* testo leggibile */
}

.pagination .page-link:hover {
  background-color: #ffd633; /* hover */
  border-color: #e6ac00;
  color: #e6ac00;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 172, 0, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem #fdefb8 !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
  border-color: var(--bs-primary) !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem white !important;
}

.form-control:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem #fdefb8 !important;
}

.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option[aria-selected='true']:not(.select2-results__option--highlighted) {
  background-color: var(--bs-primary) !important;
}

.alert-info {
  --bs-alert-color: #e6ac01;
  --bs-alert-bg: #fffccd;
  --bs-alert-border-color: #e6ac01;
  --bs-alert-link-color: #e6ac01;
}
