/* =====================================================
 * UTILITIES
 * ===================================================== */
 .mb-0 {
  margin-bottom: 0 !important;
}

.row>* {
    padding-left: 0;
}

/* =====================================================
 * STILI GENERALI PER LA PAGINA ELENCO MASTER
 * ===================================================== */
#lista-corsi {
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 120px;
}

body.noScroll {
    overflow: hidden !important;
}

/* =====================================================
 * ELENCO MASTER E RISULTATI FILTRATI
 * ===================================================== */
#lista-corsi .courses-content-item .flex-between {
    padding: 20px 0;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to right, #007BFF 0%, #007BFF 100%);
    background-size: 0% 1px; 
    background-repeat: no-repeat;
    background-position: left bottom; 
    transition: background-size 0.3s ease-in-out;
}

.courses-content-item {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid transparent;
    background: linear-gradient(to right, #225DD7 0%, #225DD7 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease-in-out, color 0.3s ease-in-out;
    justify-content: space-between;
    position: relative;
}

.courses-content-item h3 a {
    text-decoration: none;
    color: #1A315D;
    transition: color 0.3s ease-in-out;
}

.courses-content-item h3 span {
    display: block;
    font-weight: 600;
    font-size: 0.6em !important;
    margin-top: 10px;
}

/* Hover effetto linea */
.courses-content-item:hover {
    background-size: 100% 1px;
}

/* Cambia il colore del link in hover */
.courses-content-item:hover h3 a {
    color: #225DD7;
}

h3.open-modal a {
    cursor: pointer;
}



/* =====================================================
 * MODAL
 * ===================================================== */

 #cdsModal .modaltitle {
    margin-bottom: 30px;
    margin-left: inherit;
    margin-right: inherit;
    margin-top: 40px;
    font-weight: bold;
    font-size: 2.7em;
 }

 #cdsModal img.download-svg {
    width: 20px;
 }

 #cdsModal h2.modal-title {
    font-size: 56px;
    line-height: 55px;
    padding-left: 0 !important;
    margin-left: 0;
    margin-bottom: 1rem;
    margin-top: 6rem;
}
 
 #cdsModal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999999;
    background-color: rgba(0,0,0,0.5);
}

#cdsModal .modal-presentazione {
    color: #1A315D;
    font-family: "titillium-web", Sans-serif;
    font-size: 1.1em;
    padding-top: 3%;
    padding-bottom: 3%;
}

#cdsModal .modal-content {
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 70px;
    box-sizing: border-box;
    color: #1A315D;
}

#cdsModal .modal-body {
    padding-right: 100px;
    padding-left: 50px;
}

#cdsModal .close {
    position: absolute;
    z-index: 999999;
    right: 100px;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 200;
    color: #1A315D;
    cursor: pointer;
    background: #ebebeb;
    border-radius: 50%;
    padding: 22px 26px;
    line-height: 35px;
}

#cdsModal .close img {
    width: 50px;
    height: 50px;
}

#cdsModal .modal-header {
    margin-bottom: 20px;
    margin-top: 20px;
}

#cdsModal .modal-header h3 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.scopri-di-piu {
    display: inline-block;
    margin-top: 40px;
    font-weight: 700;
    color: #225DD7;
    text-decoration: underline;
}

a.scopri-di-piu {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 15px;
}

.scopri-di-piu:hover {
    text-decoration: none;
}

a.modal-link-bottom {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9em;
    color: #225DD7;
    font-family: 'titillium-web';
}

.badge {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

/* =====================================================
 * RISULTATI (Search e Lista CDS)
 * ===================================================== */

/* Nasconde i campi di ricerca specifici */
.area-field-research,
.presentazione-field-research,
.sbocchi-field-research {
    display: none;
}

/* Stili intestazione e contenuti */
#lista-corsi .courses-heading .right, 
#lista-corsi .courses-heading .left {
    font-family: 'titillium-web';
    color: #BEBEBE;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

#lista-corsi .courses-content .right {
    font-family: 'titillium-web';
    color: #1A315D;
    font-size: 14px;
    font-weight: 600;
}

#lista-corsi .courses-content .right p {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Rimuove sottolineatura nei link */
#lista-corsi .courses-content a:hover,
#lista-corsi .courses-content .right a:hover {
    text-decoration: none !important;
}

/* Stili liste e titoli */
#lista-corsi ul {
    padding-left: 22px;
}

#lista-corsi .left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#lista-corsi .subtitle {
    max-width: 920px;
}

#lista-corsi h1 {
    margin: 0px;
    font-size: 56px;
    color: #1A315D;
    line-height: 62px;
    font-family: "Inter", Sans-serif;
    font-weight: 700;
    padding: 125px 0px 73px 0px;
}

#lista-corsi .flex-between {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#lista-corsi section {
    padding: 20px;
}

#lista-corsi hr {
    color: #1A315D;
    border: 1px solid rgba(26, 49, 93, 0.4);
    background-color: rgba(26, 49, 93, 0.4);
    margin-bottom: 10px;
}

#lista-corsi h2 {
    margin-bottom: 15px;
    color: #0073e6;
}

#lista-corsi h4 {
    font-family: 'titillium-web';
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    margin-top: 0px;
}

#lista-corsi li::marker {
    color: #225DD7;
}


.modal-body ul, .modal-body ol {
    padding-left: 22px;
}

.modal-body li strong {
    font-weight: 600 !important;
}

.modal-body ul, .modal-body ol {
    list-style: none; /* rimuove il bullet predefinito */
    padding-left: 0;
    margin-bottom: 1rem;
  }
  
  .modal-body ul li,   .modal-body ol li {
    position: relative;
    padding-left: 30px; /* spazio per il nuovo bullet */
  }
  
  .modal-body ul li::before,  .modal-body ol li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #225dd7;
    border-radius: 50%;
  }


/* =====================================================
 * GRID SYSTEM PER MASTER LISTA
 * ===================================================== */
#lista-corsi .courses-content-item .flex-between .left {
    max-width: 650px;
}

#lista-corsi .courses-heading .flex-between .right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 40%;
}

#lista-corsi .courses-content-item .flex-between .right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 40%;
}
