/* =========================
   BASE GENERALE
   ========================= */

body {
    background: #ffffff;
    color: #333333;
}

a {
    color: #5A000A;
}

a:hover {
    color: #7A0A15;
}

button,
.button {
    background: #5A000A !important;
    border: none;
    box-shadow: none;
    border-radius: 3px;
}

.button:hover {
    background: #222222 !important;
}

img {
    margin: 0.5em;
    margin-top: 0;
    max-width: 100%;
    height: auto;
    min-width: 2.5em;
}

article img,
.panel {
    border-radius: 3px;
    border: none;
}

/* =========================
   TOP BAR
   ========================= */

.top-bar {
    background: #5A000A;
}

.top-bar-section li a:not(.button) {
    background: #5A000A;
}

.top-bar.expanded .title-area {
    background: #5A000A;
}

.top-bar-section li:hover.has-dropdown a {
    background: #5A000A;
}

.top-bar-section li a:not(.button):hover {
    background: #3D0005;
}

.top-bar-section ul li.active > a {
    background: #3D0005;
    color: #ffffff;
}

.top-bar-section ul li.active > a:hover {
    background: #222222;
}

/* Logo / titolo nella top bar */
.top-bar .title-area .name h1#logo {
    margin: 0;
    height: 45px;
    line-height: 45px;
    text-indent: 0;
    position: static;
    display: block;
}

.top-bar .title-area .name h1#logo a {
    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    line-height: 45px;
    font-size: 13px;
}

@media only screen and (min-width: 40.063em) {
    .top-bar .title-area .name h1#logo a {
        font-size: 18px;
    }
}

/* =========================
   CONTENUTO
   ========================= */

#intro {
    margin-top: 20px;
}

/* Pannelli */
.panel {
    margin-bottom: 0.40em;
    padding: 0.5em;
}

.panel h1.subheader,
.panel h2.subheader,
.panel h3.subheader,
.panel h4.subheader,
.panel h5.subheader,
.panel h6.subheader {
    padding: 0.01em;
    background-color: #b0b0ba;
    color: #8f0206;
    text-align: center;
    margin: 0;
    font-weight: bold;
}

.row h4.subheader {
    text-align: center;
}

/* Liste dentro i pannelli */
.panel ul {
    margin-left: 0;
    padding-left: 1.2em;
    list-style: none;
}

.panel ul li {
    margin-bottom: 0.3em;
}

/* Titolo tabella dei materiali didattici */
table caption {
    background: #C8C8C8;
    font-weight: bold;
    font-size: 1.1em;
}

/* Link dei materiali scaricabili */
.note,
a.note,
article a.note,
ul li a.note {
    display: block !important;
    text-decoration: none !important;
    outline: none !important;
    color: #000000 !important;
    margin: 0.3em !important;
}

.note:hover,
a.note:hover,
article a.note:hover,
ul li a.note:hover {
    color: #5A000A !important;
    text-decoration: none !important;
}

/* =========================
   FOOTER
   ========================= */

#footer div {
    background: #333;
}

#footer p {
    color: #fff;
    padding: 10px;
}