
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: Montserrat, sans-serif;
    font-size: 11pt;
    min-width: 350px;
    min-height: 100vh;
}

header {
    margin: 0;
    padding: 0;
    height: 330px;
    width: 100%;
    background-color: black;
    background-image: url('../img/bg/default.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

header > nav {
    color: white;
    background-color: rgba(0,0,0,0.85);
    height: 50px;
}
header a {color: white !important;}

header a.navbar-brand > img {
    width: 25px; 
    padding: 0;
}

header a.navbar-brand > span {
    font-size:smaller;
    font-weight: 600;
    padding-left: 0.15em; 
    letter-spacing: 0.05rem;
}

#hero {
    margin: 0;
    padding: 60px 0 0 10%;
    width: 100%;
    height: 280px;
    color: white;
    background-color: rgba(0, 0, 0, 0.30);
}

#hero div.overlay {
    margin: 0;
    padding: 0;
}

#hero div.overlay #ho1 {
    font-size: 42px;
    font-weight: 700;
}
#hero div.overlay #ho2 {
    font-size: 28px;
    font-weight: 700;
}
#hero div.overlay #ho3 {
    font-size: 18px;
}

#hero div.overlay-title {
    margin: 0;
    padding: 0;
}

#hero div.overlay-title #ho0 {
    font-size: 42px;
    font-weight: 700;
    color: rgb(0, 238, 255);
}
#hero div.overlay-title #ho1 {
    font-size: 28px;
    font-weight: 700;
}
#hero div.overlay-title #ho2 {
    font-size: 18px;
    font-weight: 700;
}
#hero div.overlay-title #ho3 {
    font-size: 14px;
}

main h1 {
    font-size: 175%;
    font-weight: 700;
}

main h2 {
    margin-top: 2rem;
    font-size: 150%;
    font-weight: 700;
}

main h3 {
    margin-top: 1.5rem;
    font-size: 125%;
    font-weight: 700;
}

main a {
    text-decoration: none;
}

#sidebar {
    flex: 0 0 auto; 
    width: 350px;
}

#sidebar h3 {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
}

#sidebar li {
    border-bottom: solid #e0e0e0 1px;
}

#sidebar .nav-link {
    color: gray !important;
}

#sidebar.offcanvas-end.showing, #sidebar.offcanvas-end.show {
    background-color: navy;
    color: #ddd;
}

#sidebar.offcanvas-end.showing .nav-link, #sidebar.offcanvas-end.show .nav-link {
    color: #c0c0c0 !important;
}

#sidebar.offcanvas-end.showing li, #sidebar.offcanvas-end.show li {
    border-bottom-color: #2020a0;
}

footer {
    height: 120px;
    color: #e0e0e0;
    background-color: #333;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:focus {
    background-color: navy;
    border-color: navy;
    border-radius: 0;
}

.nav-item a.accedi,
.nav-item a.accedi:hover,
.nav-item a.accedi:active,
.nav-item a.accedi:visited,
.nav-item a.accedi:focus {
    background-color: #333;
}

span.uk {
    display: inline-block;
    text-align: right;
    width: 3rem;
    padding-right: 2rem;
    background-image: url('../img/uk.svg');
    background-repeat: no-repeat;
    background-position: right;
    background-size: 1.2rem;
}

span.lock {
    font-size: x-small !important;
    padding-left: 0px !important;
}

div.tabella {
    margin: 0;
    padding: 0;
}

div.tabella > .intestazione > .riga {
    display: flex;
    flex-direction: row;
    padding: 0.25rem 0.25rem;
    font-weight: bold;
    border-bottom: solid black 2px;
}

div.tabella > .corpo > .argomento {
    background-color: #CCC;
    color: white;
    font-weight: bold;
    margin-top: 0.4rem;
    padding: 0 0.75rem;
}

div.tabella > .corpo > .riga {
    display: flex;
    flex-direction: row;
    padding: 0.5rem 0.25rem;
    border-bottom: solid #ddd 1px;
}

div.tabella  .riga > .sx {
    flex: 0 0 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
div.tabella  .riga > .sx > span:nth-child(1) {
    width: 1.5em;
    text-align: right;

}

div.tabella  .riga span.uk {
    display: inline-block;
    text-align: right;
    padding-right: 2rem;
    width: 1.2rem;
    background-image: url('../img/uk.svg');
    background-repeat: no-repeat;
    background-size: 1.0rem;
}


div.tabella  .riga > .dx {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

div.tabella  .riga > .dx > .nome {
    flex: 1 1 auto;
}
div.tabella  .riga > .dx > .link {
    display: inline-block;
    flex: 0 0 auto;
}
div.tabella  .riga > .dx > .link > span {
    white-space: nowrap;
}
div.tabella  .riga > .dx > .link > span .bi {
    font-size: 125%;
    padding-left: 1.5rem;
}

div.tabella > .corpo > .riga:nth-child(odd) {
    background-color: #f0f0f0;
}

div.nome-pagina {
    font-size: 16pt;
    font-weight: bold;
    color:#5959ea;
}
div.materia {
    font-size: 20pt;
    font-weight: bold;
    margin-top: 0.5rem;
}
div.sezione {
    font-size: 14pt;
    font-weight: bold;
    margin: 1.5rem 0 0.5rem 0;
}

div.sottosezione {
    font-size: 12pt;
    font-weight: bold;
    margin: 0.75rem 0 0.35rem 0;
}

ul.schede {
    margin-top: 1em;
}

ul.biblio > li, ol.biblio > li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

ul.biblio > li li, ol.biblio > li li {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

@media only screen and (max-width: 575.98px) {
    #hero {padding: 60px 0 0 7%;}
    #hero div.overlay #ho1 {font-size: 30px;}
    #hero div.overlay #ho2 {font-size: 20px;}
    #hero div.overlay #ho3 {font-size: 16px;}    
    div.tabella  .riga > .sx {
        flex: 0 0 50px;
    }
    div.tabella  .riga > .dx > .link {
        width: 125px;
    }
    div.tabella  .riga > .sx > span:nth-child(1) {
        width: 1.2em;
    }
    div.tabella  .riga span.uk {
        padding-right: 1.5em;
        width: 1em;
    }

}

@media only screen and (min-width: 576px) {
    div.tabella  .riga > .dx > .link {
        width: 250px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991.98px){
    div.tabella  .riga > .dx > .link {
        width: 150px;
    }
}
