@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #f0f8ff;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 100vh significa "il 100% dell'altezza dello schermo" */
    margin: 0;
    /* Togliamo il margine di default per evitare barre di scorrimento inutili */
}

main {
    flex-grow: 1;
    /* spinge il footer verso il basso */
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

header {
    color: white;
    background-color: #0d1b3d;
    padding: 18px 24px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}

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

.header1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header2 {
    flex: 1;
    text-align: center;
}

.header3 {
    width: 162.39px;
}

.logo {
    height: 110px;
    width: auto;
    display: block;
}

.title {
    text-align: center;
    width: 100%;
    margin: 0;
    margin-bottom: 12px;
    font-size: 60px;
}

.subtitle-index {
    font-weight: normal;
    text-align: center;
    width: 100%;
    margin: 0;
    font-size: 16px;
}

.subtitle-index1 {
    margin-bottom: 0;
}

.subtitle-index2 {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.subtitle {
    text-align: center;
    width: 100%;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

a {
    cursor: pointer;
}

.active {
    background-color: #ffffff;
    /* Sfondo bianco per la bolla */
    color: #0d1b3d !important;
    /* Testo blu scuro (come l'header) per fare contrasto */
    padding: 5px 15px;
    /* Spazio interno: 5px sopra/sotto, 15px ai lati */
    border-radius: 20px;
    /* Curva i bordi al massimo per l'effetto bolla */
    font-weight: bold;
}

.navul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 10px;
    margin-bottom: 0;
    justify-content: space-around;
}

.navli {
    margin: 5px;
    font-size: 1.1rem;
}

#searchClassi {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 16px;
    border: 1px solid light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
    /* il border è lo stesso di #searchNelleClassi, solo che mancando il border radius, lì è di default, qua si deve aggiungere*/
    border-radius: 999px;
    box-sizing: border-box;
}

#searchNegliAtenei {
    width: 100%;
    max-width: 750px;
    display: block;
    margin: 0 auto;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
    /* come in #searchClassi, il border è lo stesso di #searchNelleClassi, solo che mancando il border radius, lì è di default, qua si deve aggiungere*/
    border-radius: 10px;
    box-sizing: border-box;
}

#searchNelleClassi {
    width: 100%;
    max-width: 750px;
    display: block;
    margin: 0 auto;
    padding: 8px 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.tutteleclassi {
    display: flex;
    align-items: start;
    gap: 20px;
}

.cardclassul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    justify-content: center;
    gap: 30px;
    max-width: 100%;
    width: 50%;
}

.cardul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
    gap: 30px;
}

.cardli {
    margin: 0 5px;
    font-size: 1.1rem;
    transition: 0.3s all;
}

a.reflink {
    text-decoration: none;
    color: #fff;
}

a.reflink:hover {
    text-decoration: underline;
}

a.reflink:visited {
    color: #fff;
}

a.cardlink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
    color: #0d1b3d;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s all;
}

a.cardlink:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

.bloccoclassi {
    margin-top: 40px;
}

.tipolaurea {
    margin: 0;
    text-align: center;
}

a.uni {
    text-decoration: none;
    color: #000;
}

a.uni:hover {
    text-decoration: underline;
}

a.uni:visited {
    color: #000;
}

.studenti {
    text-align: center;
    align-self: center;
}

.altreuni {
    margin-top: 20px;
    text-align: left;
}

.maintitle {
    text-align: center;
    margin: 0;
    margin-bottom: 25px;
}

.select-none {
    -webkit-user-select: none;
    /* Aggiunge compatibilità per i browser Apple/Safari per il comando user-select seguente */
    user-select: none;
}

/* Al momento non sono presenti data-note, lo style è fatto in modo da poter trovarsi come elemento di attributo p da mettere alla fine del .container del main */
.data-note {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

footer {
    background-color: #0d1b3d;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
    border-radius: 20px 20px 0px 0px;
}

.subfooter {
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer p {
    margin: 10px;
}

.a_footer {
    color: white;
    text-decoration: none;
    margin: 0;
}

.a_footer:hover {
    text-decoration: underline;
}

.github-logo {
    height: 16px;
    margin-right: 5px;
}

@media (max-width: 850px) {

    .header {
        flex-direction: column;
        gap: 0px;
    }

    .header2 {
        width: 100%;
    }

    .header3 {
        display: none;
    }

    .logo {
        height: 90px;
    }

    .title {
        font-size: 40px;
        margin: 0px;
        gap: 0px;
    }

    .subtitle-index {
        font-size: 14px;
        margin: 0px;
        gap: 0px;
        margin-top: 4px;
    }

    .subtitle {
        font-size: 20px;
        margin: 0px;
        gap: 0px;
        margin-top: 4px;
    }

    main {
        margin: 0 10px;
    }

    .maintitle {
        font-size: 20pt;
        margin: 0;
        margin-bottom: 10px;
    }

    .tipolaurea {
        font-size: 16pt;
    }

    .cardul,
    .cardclassul {
        gap: 10px;
        margin: 0;
    }

    .tutteleclassi {
        flex-direction: column;
    }

    .cardclassul {
        width: 100%;
    }

    .data-note {
        margin-left: 10px;
    }
}