/*GENERAL STYLE*/
body {
    font-size: 12px;
    background-color: #F0EFED; /*#822433*/
    text-align: justify;
    font-family: Verdana, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

#content {
    width: 70%;
    margin: 0 auto 70px auto;
    background-color: #FFFFFF;
    border: 1px solid #000;
    height: auto;
    padding: 20px;
    padding-bottom: 50px;
    box-shadow: 5px 5px 10px #41413F;
    -webkit-box-shadow: 5px 5px 10px #41413F;
    -moz-box-shadow: 5px 5px 10px #41413F;
}


/*LINK STYLE*/
a:link {
    color: #0000FF;
    text-decoration: none;
}

a:visited {
    color: #800080;
    text-decoration: none;
}

a:link:hover, a:visited:hover {
    text-decoration: underline;
}


/*SPECIFIC STYLES*/
li {
    margin-bottom: 5px;
}

#lastupdate {
    float: right;
    margin: 0 50px 0 auto;
    font-style: italic;
    color: rgb(153, 0, 0);
    display: inline-block;
}


/*HEADING STYLE*/
h1 {
    color: #000;
    font-weight: bold;
    font-size: 28px;
    text-align: center;
}

h2 {
    color: #0000af;
    font-weight: bold;
    font-size: 18px;
}

h3 {
    font-weight: bold;
    font-size: 14px;
}

h4 {
    color: rgb(0, 102, 0);
    font-size: 12px;
    font-weight: bold;
}

h5 {
    color: red;
    font-size: 12px;
    font-weight: bold;
}

h6 {
    font-weight: bold;
}


/**************DIAG HEADER STYLE**************/
#header {
    padding: 0;
    margin: 0;
    background-color: #822433;
    width: 100%;
    height: 120px;
}

#bgdipartimento {
    width: 990px;
    background-color: #005866;
    float: right;
    margin: 30px 0 0;
    height: 80px;
    padding: 10px 0px 0px 10px;
}

a#sapienza img {
    margin-top: 20px;
    margin-left: 20px;
}

@media screen and (max-width: 1210px) {
    #bgdipartimento {
        width: 590px;
    }
}

@media screen and (max-width: 810px) {
    #bgdipartimento {
        width: 390px;
    }
}

@media screen and (max-width: 610px) {
    #bgdipartimento {
        display: none;
    }
}

/**************NAVBAR STYLE**************/
#navbar {
    margin: 0 auto 20px auto;
    background-color: #822433; /*!*/
    height: 30px;
    text-align: center;
    width: 1040px;
    font-size: 14px;
    position: relative;
    border: 1px solid #000;
    clear: both;
}

#navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: inherit;
}

#navbar a {
    display: block;
    width: 130px;
    height: 30px;
    line-height: 30px;
    color: #fff; /*!*/
}

#navbar li {
    float: left;
    margin-bottom: 0;
}

@media screen and (min-device-width: 1025px) {
    #navbar a:hover {
        background-color: #ddd;
        color: #000;
        text-decoration: none;
    }
}

#mobbiotrigger, #mobteachingtrigger {
    display: none;
}

/*NAVBAR POPUPS STYLE*/
.popuplist {
    width: 130px;
    position: absolute;
    background-color: #822433;
    top: 30px;
    display: none;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #000;
}

#navbar .popuplist li:first-child a {
    border-top: 1px dotted black;
}

#biopopup {
    left: 129px;
}

#teachingpopup {
    left: 649px;
}


/*MOBILE STYLE*/
@media screen and (max-device-width: 1024px) {
    
    #navbar li, #navbar li a, #navbar li a:hover {
        width: 100%;
        text-decoration: none;
    }
    
    #navbar {
        width: 200px;
        height: 247px;
    }
    
    #navbar li {
        border-top: 1px solid #fff;
    }
    
    #navbar li:first-child {
        border-top: none;
    }
    
    #navbar .popuplist {
        border-left: none;
    }
    
    #navbar .popuplist li:first-child a {
        border-left: 1px dotted #000;
        border-top-style: solid;
    }
    
    #navbar .popuplist li {
        border-left: 1px solid #000;
    }
    
    #biopopup {
        top: 30px;
        left: 200px;
        height: 62px;
    }
    
    #teachingpopup {
        top: 154px;
        left: 200px;
        height: 93px;
    }
    
    #mobbiotrigger, #mobteachingtrigger {
        display: block;
        background-color: #ddd;
        color: #000;
        text-align: center;
        float: right;
        margin: 0;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 169px;
        border-left: 1px solid #fff;
        cursor: pointer;
    }
    
    #mobbiotrigger span, #mobteachingtrigger span {
        vertical-align: sub;
    }
    
    #mobbiotrigger {
        top: 31px;
    }
    
    #mobteachingtrigger {
        top: 155px;
    }
}

@media screen and (max-device-width: 285px) {
    #content {
        width: 200px;
    }
}

@media screen and (max-device-width: 214px) {
    #content, #navbar {
        width: 149px;
    }
    
    #biopopup {
        left: 149px;
    }
    
    #teachingpopup {
        left: 149px;
    }
    
}