body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#eef2f7;
}

header{
    background:#2f3b52;
    color:white;
    padding:20px 40px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.headerContent{
    max-width:1200px;
    margin:0 auto;
    text-align:center;
}

.headerContent p{
    margin-top:-10px;
    /*color:#d8e4f5;*/
    color:white;
}


.utente{
    font-size:18px;
    font-weight:bold;
}

.principale{
    max-width:1200px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.1);
}

.principale h2,h3{
    text-align:center;
}

h1{
    text-align:center;
    margin-bottom:40px;
    color:#2f3b52;
}

.menu{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.menuManuali{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:30px;
}

.menuManuali .card{
    text-align:center;
}

.menuManuali .icona{
    font-size:48px;
    margin-bottom:15px;

}

.menuManuali .titolo{
    font-size:22px;
    font-weight:bold;
}

.menuManuali .descrizione{
    margin-top:10px;
    color:#666;
}


.card{
    background:white;
    text-decoration:none;
    color:black;
    border-radius:12px;
    padding:25px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    transition:.3s;
    border:1px solid #ddd;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.card.cardProgramma{
    max-width:1200px;
    margin:25px auto;
    border-left:6px solid #1976d2;
}

.cardProgramma{
    width:100%;
    max-width:1400px;
    margin:25px auto;
    border-top:6px solid #1976d2;
}

.cardProgramma h2{
    margin-top:0;
    color:#2f3b52;
}

.cardVerifica{
    max-width: 700px;
    margin: 25px auto;
    text-align: center;
}

.cardVerifica .titolo{
    font-size: 1.3rem;
    font-weight: bold;
    padding: 10px;
}

.cardVerifica h2{
    margin: 15px 0 10px;
}

.cardVerifica select, .cardVerifica input[type="date"]{
    display: block;
    margin: 0 auto 20px;
    font-size: 1.2rem;
    padding: 12px 15px;
    text-align: center;
    box-sizing: border-box;
}

.cardVerifica select{
    min-width: 300px;
}

.cardVerifica input[type="date"] {
    display: block;
    width: 250px;
    height: 55px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
}

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

.textareaProgramma{
    width:100%;
    min-height:45vh;
    padding:15px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:16px;
    font-family:inherit;
    line-height:1.6;
    resize:vertical;
    box-sizing:border-box;
}

.icona{
    font-size:40px;
}

.titolo{
    margin-top:10px;
    font-size:22px;
    font-weight:bold;
}

.descrizione{
    margin-top:8px;
    color:#666;
}

.miniButton{
    background:#1976d2;
    color:white;
    text-decoration:none;
    padding:10px 18px;
    border-radius:8px;
    margin-left:10px;
}

.miniButton:hover{
    background:#1565c0;
}

.menuAnni{
    max-width:650px;
    margin:30px auto;
}

.menuProgrammi{
    width:100%;
    max-width:1600px;
    margin:30px auto;
}

.menuWide{
    width:100%;
    max-width:1600px;
    margin:30px auto;
}

.menuNarrow{
    width:100%;
    max-width:650px;
    margin:30px auto;
}

.cardAnno,
.cardCorrente{
    display:flex;
    align-items:center;
    gap:20px;
    background:white;
    padding:20px;
    margin-bottom:20px;
    border-radius:12px;
    border:2px solid #ddd;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
}

.cardAnno{
    cursor:pointer;
}

.cardCorrente{
    cursor:pointer;
    background:#e8f2ff;
    border-color:#1976d2;
    max-width:650px;
    margin:20px auto;
}

.cardAnno:hover,
.cardCorrente:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.cardAnno.selezionata{
    background:#e8f2ff;
    border-color:#1976d2;

}

.cardAnno .icona,
.cardCorrente .icona{
    font-size:36px;
}

.cardAnno .titolo,
.cardCorrente .titolo{
    font-size:22px;
    font-weight:bold;
}

.messaggioInfo{
    max-width:650px;
    margin:15px auto 30px auto;
    padding:15px;
    background:#fff9e6;
    border-left:5px solid #f0b400;
    border-radius:8px;
    color:#444;
    line-height:1.5;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.barraBottoni{
    display:flex;
    justify-content:center;
    margin-top:40px;
    gap: 15px;

}

.breadcrumb{
    margin-bottom:25px;
    padding:10px 15px;
    background:#f5f5f5;
    border-radius:8px;
    font-size:15px;

}

.breadcrumb a{
    color:#1976d2;
    text-decoration:none;
    font-weight:bold;
}

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

.breadcrumb span{
    margin:0 8px;
    color:#666;
}

.breadcrumb .attuale{
    color:#444;
    font-weight:bold;
}

.inf_utente{
   font-size:15px;
   color:#444;
}

.azioniUtente{
    display:flex;
    gap:10px;
    align-items:center;
}

.btnUtente{
    display:inline-block;
    background:#1976d2;
    color:white;
    text-decoration:none;
    padding:8px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:bold;
    transition:.25s;
}

.btnUtente:hover{
    background:#145ca8;
}

.azioni{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.azioni button{
    margin:0;
}

button{
    background:#1976d2;
    color:white;
    border:none;
    border-radius:8px;
    padding:10px 18px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

button:hover{
    background:#1565c0;
}

.barraMenu{
    background:#1976d2;
    display:flex;
    justify-content:center;
    gap:30px;
    padding:15px;
}

.barraMenu a{
    color:white;
    text-decoration:none;
    font-weight:bold;
}

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

section{
    margin-bottom:60px;
}

section h2{
    color:#2f3b52;
    border-left:6px solid #1976d2;
    padding-left:12px;
    margin-bottom:25px;
}

.consultazione{
    border-top:6px solid #1976d2;
}

.serale{
    border-top:6px solid #4caf50;
}

.riservata{
    border-top:6px solid #ff9800;
}


.titoloPortale{
    font-size:34px;
    font-weight:bold;
    color:white;
    margin-bottom:8px;
}

.nomeIstituto{
    font-size:22px;
    /*color:#d8e4f5; */
    color:white;
    font-weight:bold;
}

.descrizionePortale{
    margin-top:10px;
    /*color:#e8edf5;*/
    color:white;
    font-size:17px;
}

.card .descrizione a{
    color:#1976d2;
    text-decoration:none;
    font-weight:bold;
}

.card .descrizione a:hover{
    text-decoration:underline;
}

.menuContatti{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
    gap:30px;
    max-width:900px;
    margin:30px auto;
}

.tabellaQuadro{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.tabellaQuadro th{
    background:#1976d2;
    color:white;
    padding:12px;
}

.tabellaQuadro td{
    padding:10px;
    border:1px solid #ddd;
    text-align: center;

}

.tabellaQuadro tr:nth-child(even){
    background:#f7f9fc;
}

.tabellaServizi{
    width:100%;
    border-collapse:collapse;
    margin-top:25px;
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.tabellaServizi th{
    background:#1976d2;
    color:white;
    padding:12px;
    text-align:center;
}

.tabellaServizi td{
    padding:10px;
    border-bottom:1px solid #ddd;
    text-align:center;
}

.tabellaServizi tr:nth-child(even){
    background:#f7f9fc;
}

.tabellaServizi tr:hover{
    background:#e8f2ff;
}



.imgCorso{
    width:100%;
    border-radius:10px;
    display:block;
}

.card.cavalese{
    border-top:6px solid #4caf50;
}

.card.predazzo{
    border-top:6px solid #9c27b0;
}

.card.serale{
    border-top:6px solid #1976d2;
}

.card.orario{
    border-top:6px solid #1976d2;
    margin-top:20px;
}

select{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:16px;
    box-sizing:border-box;
}

.programma{
    border-top:6px solid #4caf50;
}

.sottotitoloPagina{
    text-align:center;
    color:#666;
    font-size:17px;
    margin-top:-20px;
    margin-bottom:35px;
}

.boxInfo{
    background:#fff9e6;
    border-left:5px solid #f0b400;
    border-radius:10px;
    padding:18px;
    margin:20px 0;
    color:#444;
    line-height:1.6;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.boxInfo.info{
    background:#eef6ff;
    border-left-color:#1976d2;
}

.boxInfo.success{
    background:#edf9ed;
    border-left-color:#4caf50;
}

.boxInfo.warning{
    background:#fff9e6;
    border-left-color:#ff9800;
}

.boxInfo.error{
    background:#ffefef;
    border-left-color:#d32f2f;
}

.barraUtente{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    padding:10px 25px;
    background:#f7f9fc;
    border-bottom:1px solid #dce3eb;
}

.cardStudente{
    cursor:pointer;
    user-select:none;
}

.cardStudente input{
    display:none;
}

.cardStudente.selezionata{
    background:#e8f2ff;
    border-color:#1976d2;
}

.cardStudente .titolo{
    font-size:20px;
}

.casellaTesto{
    width:100%;
    min-height:90px;
    resize:vertical;
    margin-top:10px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:8px;
    box-sizing:border-box;
    font-family:inherit;
    font-size:15px;
    background:#fafafa;
}

.menuAnni .card{
    margin-bottom:20px;
}

.programmaDettaglio{
    margin-top:15px;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.programmaDettaglio summary{
    padding:12px 15px;
    background:#f7f9fc;
    cursor:pointer;
    font-weight:bold;
    color:#1976d2;
    user-select:none;
}

.programmaDettaglio summary:hover{
    background:#eef4fb;
}

.testoProgramma{
    padding:15px;
    background:white;
    line-height:1.6;
    white-space:pre-wrap;
    max-height:300px;
    overflow-y:auto;
}

.badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:20px;
    font-size:14px;
    font-weight:bold;
    margin-bottom:10px;
}

.badge.success{
    background:#e8f5e9;
    color:#2e7d32;
}

.badge.warning{
    background:#ffebee;
    color:#c62828;
}

.selettoreColonna {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 5px;
}


@media screen and (max-width:768px){

    header{
        padding:12px;
    }

    .inf_utente{
        flex-direction:column;
        align-items:flex-start;
    }

    .azioni{
        width:100%;
        justify-content:center;
    }

    .azioni button{
        flex:1;
        min-width:120px;
    }
    
    .barraMenu{

    flex-direction:column;

    align-items:center;

    gap:15px;
    
    }
    
    .card.orario{
        max-width:80%;

        margin:15px 0;

        padding:14px;

        font-size:15px;

        line-height:1.6;

        box-sizing:border-box;
        
    }
    
    .boxInfo{

        max-width:100%;

        margin:15px 0;

        padding:14px;

        font-size:15px;

        line-height:1.6;

        border-left-width:4px;

        box-sizing:border-box;

    }

}