/* =====================================================
 * STILI RESPONSIVI: SOLO DESKTOP
 * ===================================================== */
 @media (min-width: 769px) {
  .label-only-mobile {
      display: none;
  }
}

/* =====================================================
* STILI RESPONSIVI: SOLO MOBILE (≤768px)
* ===================================================== */
@media (max-width: 768px) {
  #lista-corsi .filter-section {
      flex-direction: column-reverse;
      align-items: flex-start;
      padding-bottom: 0;
      padding-top: 48px;
  }

  #lista-corsi .courses-content-item .flex-between .right {
      padding-bottom: 20px;
      width: 100%;
  }

  .right {
      display: block !important;
  }

  #lista-corsi .courses-content .right p {
      display: block;
  }

  .label-only-mobile {
      font-weight: bold;
  }

  button.accordion-button {
      background: #225DD7 !important;
      font-size: 0.35em;
      font-weight: bold;
  }

  .badge {
      font-size: 0.9em;
  }

  #filter-mobile .col-6 {
      color: #fff;
      text-transform: none;
  }

  select.filter-dropdown {
      border-left: 0;
      border-right: 0;
  }

  select#livello-select-filter {
      border-top: 0;
  }

  .shadow-lg-bottom {
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }

  .accordion-button::after {
      color: red; /* Cambia il colore della freccia */
      font-size: 1.2rem; /* Cambia la dimensione della freccia */
  }
  #lista-corsi .flex-between {
    display: block;
    padding-bottom: 0 !important;
  }
}

/* =====================================================
* DROPDOWN WRAPPER
* ===================================================== */
.dropdown-wrapper {
  background-color: #0056b3;
  color: white;
  padding: 12px;
  border-radius: 4px;
}

.dropdown-wrapper .mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header-title {
  font-size: 16px;
  font-weight: bold;
}

.number-pill {
  background-color: white;
  color: #0056b3;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.down-icon,
.up-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  cursor: pointer;
}

.down-icon.hide,
.up-icon.show {
  display: none;
}

.filter-tabs,
.filter-options {
  display: none;
}

.filter-tabs.show,
.filter-options.show {
  display: block;
}

/* =====================================================
* FILTRI SPECIFICI (Checkbox, Dropdown)
* ===================================================== */
.filter-dropdown-wrapper {
  margin-bottom: 8px;
}

.filter-dropdown {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  color: #333;
  font-size: 14px;
  appearance: none;
  border-bottom: 0px;
}

select.filter-dropdown {
  color: #1A315D;
  font-weight: 700;
  font-size: 1em;
}

select.filter-dropdown.livello-select-filter {
  border-top: 0;
}

/* =====================================================
* OVERLAY E ACCORDION
* ===================================================== */
.overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--accordion-height, 0px));
  background-color: transparent;
  z-index: 1;
  display: none;
}

.accordion {
  position: relative;
  z-index: 2;
  width: 100vw !important;
  left: calc(-50vw + 50%);
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.accordion-body {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

/* =====================================================
* RESPONSIVITÀ (≤1024px)
* ===================================================== */
@media (max-width: 1024px) {
  #lista-corsi #openModal .flex-between {
      border-bottom: 1px solid transparent;
      background-size: 0% 0px;
  }

  #lista-corsi #openModal .flex-between:hover {
      background-size: 100% 0;
  }

  #lista-corsi .modal {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 99999;
  }

  #lista-corsi .modal-content {
      overflow: scroll;
      background-color: #fff;
      padding: 17px;
      margin-left: auto;
      border-radius: 5px;
      width: 100%;
      height: 100vh;
      color: #1A315D;
  }

  #lista-corsi .modal-header {
      color: #1A315D;
      flex-direction: column-reverse;
      align-items: center;
      margin-bottom: 20px;
  }

  #lista-corsi .modal-header h3 {
      align-self: flex-start;
      font-size: 32px;
      font-weight: 700;
      margin-top: 80px;
  }

  #lista-corsi .close {
      align-self: flex-end;
      border: none;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      margin-top: 28px;
  }

  #lista-corsi .close img {
      width: 44px;
  }

  #lista-corsi .close:hover,
  #lista-corsi .close:focus {
      background-color: #fff;
      color: black;
      text-decoration: none;
  }

  #lista-corsi .filter-section label,
  #lista-corsi .filter-section .filter-dropdown {
      color: #1A315D !important;
      font-size: 16px;
      font-family: articulat-cf;
      font-weight: 700;
  }

  #lista-corsi .filter-tabs hr,
  #lista-corsi .filter-options hr {
      color: #BEBEBE;
      border: 1px solid #BEBEBE;
      background-color: #BEBEBE;
  }

  #lista-corsi .filter-options {
      padding: 0 17px;
      margin-left: 0;
  }

  #lista-corsi .filter-options.show {
      box-shadow: 0px 35px 65px 0px rgba(0, 0, 0, 0.4);
  }

  #lista-corsi .filter-tabs,
  #lista-corsi .filter-options {
      display: none;
      width: 100%;
  }

  #lista-corsi .filter-tabs.show,
  #lista-corsi .filter-options.show {
      display: block;
  }
}
