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

/* =====================================================
 * 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;
}

/* 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;
}

/* =====================================================
 * MODAL
 * ===================================================== */
#masterModal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999999;
    background-color: rgba(0,0,0,0.5);
}

#masterModal .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;
}

#masterModal .close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #1A315D;
    cursor: pointer;
}

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

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

#masterModal .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;
}

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

/* 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: "articulat-cf", 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;
}

#lista-corsi .container-fluid {
    --bs-gutter-x: 0;
}

#lista-corsi .left {
    display: block;
}

/* =====================================================
 * 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%;
}
