html {
    height: 100%;
}

body {
    /*font-family: sans-serif, 'Roboto';*/
    font-family: sans-serif;
    font-size: 14px;
    color: #333333;
    height: 100%;
    margin: 0;
    padding: 0;
}



/* START layout two column RWD */

:focus {
    outline: none;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

/*
    Sometimes the sub menus get too large for the page and prevent the menu from scrolling, limiting functionality
    A quick fix is to change .side-menu to

    -> position:absolute

    and uncomment the code below.
    You also need to uncomment

    -> <div class="absolute-wrapper"> </div> in the html file

    you also need to tweek the animation. Just uncomment the code in that section
    --------------------------------------------------------------------------------------------------------------------
    If you want to make it really neat i suggest you look into an alternative like http://areaaperta.com/nicescroll/
    This will allow the menu to say fixed on body scoll and scoll on the side bar if it get to large
*/

/*.absolute-wrapper{
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #e7e7e7;
}*/

.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}
.bs-callout h4 {
    margin-top: 0;
    margin-bottom: 5px;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code {
    border-radius: 3px;
}
.bs-callout+.bs-callout {
    margin-top: -5px;
}
.bs-callout-default {
    border-left-color: #777;
}
.bs-callout-default h2 {
    margin-top: 0px;
    color: #777;
}
.bs-callout-default h3 {
    margin-top: 0px;
    color: #777;
}
.bs-callout-default h4 {
    color: #777;
}
.bs-callout-primary {
    border-left-color: #428bca;
}
.bs-callout-primary h2 {
    margin-top: 0px;
    color: #428bca;
}
.bs-callout-primary h3 {
    margin-top: 0px;
    color: #428bca;
}
.bs-callout-primary h4 {
    color: #428bca;
}
.bs-callout-success {
    border-left-color: #5cb85c;
}
.bs-callout-success h2 {
    margin-top: 0px;
    color: #5cb85c;
}
.bs-callout-success h3 {
    margin-top: 0px;
    color: #5cb85c;
}
.bs-callout-success h4 {
    color: #5cb85c;
}
.bs-callout-danger {
    border-left-color: #d9534f;
}
.bs-callout-danger h2 {
    margin-top: 0px;
    color: #d9534f;
}
.bs-callout-danger h3 {
    margin-top: 0px;
    color: #d9534f;
}
.bs-callout-danger h4 {
    color: #d9534f;
}
.bs-callout-warning {
    border-left-color: #f0ad4e;
}
.bs-callout-warning h2 {
    margin-top: 0px;
    color: #f0ad4e;
}
.bs-callout-warning h3 {
    margin-top: 0px;
    color: #f0ad4e;
}
.bs-callout-warning h4 {
    color: #f0ad4e;
}
.bs-callout-info {
    border-left-color: #5bc0de;
}
.bs-callout-info h2 {
    margin-top: 0px;
    color: #5bc0de;
}
.bs-callout-info h3 {
    margin-top: 0px;
    color: #5bc0de;
}
.bs-callout-info h4 {
    color: #5bc0de;
}

.side-menu {
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    /*border-right: 1px solid #e7e7e7;*/
    z-index: 1200;
    box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.3);
}

.side-menu .navbar {
    border: none;
}

.side-menu .navbar-header {
    width: 100%;
    /*border-bottom: 1px solid #e7e7e7;*/
}

.side-menu .navbar-nav .active a {
    background-color: transparent;
    margin-right: -1px;
    border-right: 5px solid #e7e7e7;
}

.side-menu .navbar-nav li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #e7e7e7;
    padding: 5px 0;
    margin: 12px 0;
}

/*.side-menu .navbar-nav li a {
    padding: 20px 15px 20px 0;
}*/

.side-menu .navbar-nav li a .glyphicon {
    padding-right: 10px;
}

.side-menu #dropdown {
    border: 0;
    margin-bottom: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.side-menu #dropdown .caret {
    float: right;
    margin: 9px 5px 0;
}

.side-menu #dropdown .indicator {
    float: right;
}

/*.side-menu #dropdown>a {
    border-bottom: 1px solid #e7e7e7;
}*/

.side-menu #dropdown .panel-body {
    padding: 0;
    background-color: #f3f3f3;
}

.side-menu #dropdown .panel-body .navbar-nav {
    width: 100%;
}

.side-menu #dropdown .panel-body .navbar-nav li {
    padding-left: 15px;
    border-bottom: 1px solid #e7e7e7;
}

.side-menu #dropdown .panel-body .navbar-nav li:last-child {
    border-bottom: none;
}

.side-menu #dropdown .panel-body .panel > a {
    margin-left: -20px;
    padding-left: 35px;
}

.side-menu #dropdown .panel-body .panel-body {
    margin-left: -15px;
}

.side-menu #dropdown .panel-body .panel-body li {
    padding-left: 30px;
}

.side-menu #dropdown .panel-body .panel-body li:last-child {
    border-bottom: 1px solid #e7e7e7;
}

.side-menu #search-trigger {
    background-color: #f3f3f3;
    border: 0;
    border-radius: 0;
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px 18px;
}

.side-menu .brand-name-wrapper {
    min-height: 50px;
}

.side-menu .brand-name-wrapper .navbar-brand {
    display: block;
}

.side-menu #search {
    position: relative;
    z-index: 1000;
}

.side-menu #search .panel-body {
    padding: 0;
}

.side-menu #search .panel-body .navbar-form {
    padding: 0;
    padding-right: 50px;
    width: 100%;
    margin: 0;
    position: relative;
    border-top: 1px solid #e7e7e7;
}

.side-menu #search .panel-body .navbar-form .form-group {
    width: 100%;
    position: relative;
}

.side-menu #search .panel-body .navbar-form input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: 50px;
}

.side-menu #search .panel-body .navbar-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    border-radius: 0;
    background-color: #f3f3f3;
    padding: 15px 18px;
}

/* Main body section */

.side-body {
    margin-left: 320px;
}

.institute-title h3 {
    line-height: 100px;
    margin: 0;
    padding: 0;
    color: #ffffff; /* xxxxxx aggiunto coloro bianco */
}

/*.institute-title a:hover, a:visited, a:link, a:active {*/
/*text-decoration: none;*/
/*}*/ /* non funziona ho messo lo style ( da cambiare)*/

/* small screen */

@media (max-width: 768px) {
    .side-menu {
        position: relative;
        width: 100%;
        height: 0;
        border-right: 0;
        border-bottom: 1px solid #e7e7e7;
    }

    .side-menu .brand-name-wrapper .navbar-brand {
        display: inline-block;
    }

    /* Slide in animation */
    @-moz-keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @-webkit-keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @keyframes slidein {
        0% {
            left: -300px;
        }
        100% {
            left: 10px;
        }
    }
    @-moz-keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    @-webkit-keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    @keyframes slideout {
        0% {
            left: 0;
        }
        100% {
            left: -300px;
        }
    }
    /* Slide side menu*/
    /* Add .absolute-wrapper.slide-in for scrollable menu -> see top comment */
    .side-menu-container > .navbar-nav.slide-in {
        -moz-animation: slidein 300ms forwards;
        -o-animation: slidein 300ms forwards;
        -webkit-animation: slidein 300ms forwards;
        animation: slidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .side-menu-container > .navbar-nav {
        /* Add position:absolute for scrollable menu -> see top comment */
        position: fixed;
        left: -300px;
        width: 300px;
        top: 43px;
        height: 100%;
        /*border-right: 1px solid #e7e7e7;*/
        background-color: #f8f8f8;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    /* Uncomment for scrollable menu -> see top comment */
    /*.absolute-wrapper{
        width:285px;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }*/
    @-moz-keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @-webkit-keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @keyframes bodyslidein {
        0% {
            left: 0;
        }
        100% {
            left: 300px;
        }
    }
    @-moz-keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    @-webkit-keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    @keyframes bodyslideout {
        0% {
            left: 300px;
        }
        100% {
            left: 0;
        }
    }
    /* Slide side body*/
    .side-body {
        margin-left: 0px;
        margin-top: 70px;
        position: relative;
        -moz-animation: bodyslideout 300ms forwards;
        -o-animation: bodyslideout 300ms forwards;
        -webkit-animation: bodyslideout 300ms forwards;
        animation: bodyslideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .body-slide-in {
        -moz-animation: bodyslidein 300ms forwards;
        -o-animation: bodyslidein 300ms forwards;
        -webkit-animation: bodyslidein 300ms forwards;
        animation: bodyslidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    /* Hamburger */
    .navbar-toggle {
        border: 0;
        float: left;
        padding: 18px;
        margin: 0;
        border-radius: 0;
        background-color: #f3f3f3;
    }

    /* Search */
    #search .panel-body .navbar-form {
        border-bottom: 0;
    }

    #search .panel-body .navbar-form .form-group {
        margin: 0;
    }

    .navbar-header {
        /* this is probably redundant */
        position: fixed;
        z-index: 3;
        background-color: #f8f8f8;
    }

    /* Dropdown tweek */
    #dropdown .panel-body .navbar-nav {
        margin: 0;
    }
}

ul.inline {
    text-align: right;
}

ul.inline li {
    list-style: none;
    display: inline;
}


.element-inline-flex {
    display: flex;
    align-items: center;
}

/* END layout two column RWD */

/* COLOR LAYOUT */
.lms-red-bg {
    background-color: rgb(215, 1, 1) !important;
}
span.lms-red-bg:hover {
    background-color: rgb(215, 1, 1) !important;
}
.lms-red-bg-light {
    background-color: rgb(215, 1, 1, 0.80) !important;
}
.lms-red-color-light {
    color: #ffffff;
}
.lms-red-bg-light:hover {
    background-color: rgb(215, 1, 1, 0.90) !important;
}
/* sottomenu selezione */
/*.lms-red-bg-light li a:hover {*/
/*    background-color: rgb(215, 1, 1, 0.90) !important;*/
/*}*/

.lms-orange-bg {
    background-color: rgb(255, 127, 1) !important;
}
span.lms-orange-bg:hover {
    background-color: rgb(246, 134, 31) !important;
}
.lms-orange-bg-light {
    background-color: rgb(255, 127, 1, 0.85) !important;
}
.lms-orange-color-light {
    color: #ffffff;
}
.lms-orange-bg-light:hover {
    background-color: rgb(255, 127, 1, 0.95) !important;
}

.lms-black-bg {
    background-color: rgb(0, 0, 0) !important;
}
span.lms-black-bg:hover {
    background-color: rgb(50, 50, 50) !important;
}
.lms-black-bg-light {
    background-color: rgb(15, 15, 15, 0.85) !important;
}
.lms-black-color-light {
    color: #ffffff;
}
.lms-black-bg-light:hover {
    background-color: rgb(15, 15, 15, 0.95) !important;
}

.lms-pink-bg {
    background-color: rgb(238, 62, 133) !important;
}
span.lms-pink-bg:hover {
    background-color: rgb(252, 88, 170) !important;
}
.lms-pink-bg-light {
    background-color: rgb(252, 88, 170) !important;
}
.lms-pink-color-light {
    color: #ffffff;
}
.lms-pink-bg-light:hover {
    background-color: rgb(238, 62, 133, 1) !important;
}

.lms-purple-bg {
    background-color: rgb(255, 102, 255) !important;
}
span.lms-purple-bg:hover {
    background-color: rgb(255, 136, 255) !important;
}
.lms-purple-bg-light {
    background-color: rgb(255, 120, 255) !important;
}
.lms-purple-color-light {
    color: #333;
}
.lms-purple-bg-light:hover {
    background-color: rgb(255, 102, 255) !important;
}

.lms-cyan-bg {
    background-color: rgb(0, 175, 222) !important;
}
span.lms-cyan-bg:hover {
    background-color: rgb(0, 175, 222) !important;
}
.lms-cyan-bg-light {
    background-color: rgb(0, 175, 222, 0.85) !important;
}
.lms-cyan-color-light {
    color: #ffffff;
}
.lms-cyan-bg-light:hover {
    background-color: rgb(0, 175, 222, 0.95) !important;
}

.lms-grey-bg {
    background-color: rgb(84, 91, 91) !important;
}
span.lms-grey-bg:hover {
    background-color: rgb(100, 109, 110) !important;
}
.lms-grey-bg-light {
    background-color: rgb(100, 109, 110) !important;
}
.lms-grey-color-light {
    color: #ffffff;
}
.lms-grey-bg-light:hover {
    background-color: rgb(84, 91, 91) !important;
}

#bottom-menu-sx a:hover {
    background-color: rgb(52, 122, 182);
}

.lms-blue-bg {
    background-color: rgb(40, 96, 144) !important;
}
span.lms-blue-bg:hover {
    background-color: rgb(52, 122, 182) !important;
}
.lms-blue-bg-light {
    background-color: rgb(40, 96, 144, 0.80) !important;
}
.lms-blue-color-light {
    color: #ffffff;
}
.lms-blue-bg-light:hover {
    background-color: rgb(40, 96, 144, 0.90) !important;
}

#bottom-menu-sx .lms-blue-bg a:hover {
    background-color: rgb(52, 122, 182) !important;
}

.lms-green-bg {
    background-color: rgb(43, 117, 43) !important;
}
span.lms.green-bg:hover {
    background-color: rgb(64, 165, 64) !important;
}
.lms-green-bg-light {
    background-color: rgb(43, 117, 43, 0.85) !important;
}
.lms-green-color-light {
    color: #ffffff;
}
.lms-green-bg-light:hover {
    background-color: rgb(43, 117, 43, 0.95) !important;
}

.header-right li li a:hover {
    background-color: #ebebeb;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

/* END COLOR LAYOUT */

.container-fluid {
    padding: 0px;
    margin-right: auto;
    margin-left: auto;
}

/*.circular-img {
    margin: 0 auto;
    position: relative;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    display: block;
}

.circular-img img {
    width: 100%;
    height: auto;
}*/

.logo-header-top {
    margin-top: 12px;
}

.menu-header-top {
    margin-top: 50px;
}

.btn-settings,
a.btn-settings:link,
a.btn-settings:visited,
a.btn-settings:hover,
a.btn-settings:active {
    color: #fff;
    margin: 35px 0 0 10px;
}

.column-aside {
    overflow: auto;
    /*max-height: 500px;
    min-height: 100px;
    height: 100%;*/
    /*height: 300px;*/
    height: 55vh;
}

.column-aside li small {
    color: #a3a3a3;
    font-size: 75%;
}

#master-menu {
    width: 100%;
    margin: 0;
    padding: 0
}

/*#master-menu a {
    display: block;
}

#master-menu li small {
    color: #999;
}*/

.dropmenu {
    border: 0;
    margin-bottom: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.dropmenu a {
    padding-bottom: 5px;
}

/*ul.top-menu {
    margin-top: 20px;
}*/

.top-menu {
    /* altezza header */
    line-height: 100px;
}

ul.top-menu li {
    text-align: center;
}

ul.top-menu li li {
    text-align: left;

}

.home-btn a:link,
.home-btn a:visited {
    color: #333333;
    text-decoration: none;
}

.home-btn a:hover,
.home-btn a:active {
    color: #888;
}

.side-menu .dropmenu .panel-body .navbar-nav li {
    margin: 0;
    padding: 0;
}

.side-menu .dropmenu .panel-body {
    background-color: inherit;
}

.column-aside ul li span.text {
    color: #999;
    padding-left: 5px;
}

/* SWITCH */

.text-switch {
    color: #333333;
    height: 50px;
    line-height: 50px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 12px;
    margin: 0 15px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f4a545;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: -7px;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #f4a545;
}

input:focus + .slider {
    box-shadow: 0 0 1px #f4a545;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Menu left */

ul#first-menu {
    margin: 0;
    padding: 0;
}

.side-menu .navbar-nav li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #e7e7e7;
}

.side-menu .navbar-nav li a:link,
.side-menu .navbar-nav li a:visited {
    color: #333;
    text-decoration: none;
    cursor: pointer;
    cursor: hand;
}

.side-menu .navbar-nav li a:hover,
.side-menu .navbar-nav li a:active {
    /*
    color: #f6861f;
    */
    color: #777;
}

.side-menu .navbar-nav ul li > ul li {
    margin: 0;
    padding: 5px;
}

.side-menu .navbar-nav ul li > ul li a:link,
.side-menu .navbar-nav ul li > ul li a:visited {
    color: #333;
    text-decoration: none;
    cursor: pointer;
    cursor: hand;

}

/* column left bottom */
.address {
    position: absolute;
    bottom: 120px;
    height: 200px;
    width: 100%;
    padding: 0 20px;
    color: #888;
}

.bottom-menu-sx {
    position: absolute;
    bottom: 0;
    height: 80px;
    width: 100%;
    /*
    background-color: rgb(40, 96, 144);

    padding: 10px;
    color: #fff;*/
}

/* stesso valore altezza bottom-menu-sx */
.v-center-period {
    line-height: 80px;
}

.v-period-institute {
    padding: 8px 0;
}

.bottom-menu-sx a:link, .bottom-menu-sx a:visited {
    color: #fff;
    padding: 10px;
    text-decoration: none;
}

/*#bottom-menu-sx a:hover, #bottom-menu-sx a:active {
    background-color: inherit;
}*/

.bottom-menu-sx li a:hover,
.bottom-menu-sx li a:active {
    color: #333;
}

.bottom-menu-sx ul li > ul li {
    margin: 0;
    padding: 5px;

}

.bottom-menu-sx ul li a:link,
.bottom-menu-sx ul li a:visited {
    color: #333;
    text-decoration: none;
    cursor: pointer;
    cursor: hand;

}

.bottom-menu-sx ul li a:hover,
.bottom-menu-sx ul li a:active {

    background-color: #ebebeb;
}

.bottom-menu-sx .dropdown-menu {
    left: 50%;
    right: auto;
    text-align: left;
    transform: translate(-50%, 0);
    margin-bottom: 8px;
}

/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* END SWITCH */

.header {
    height: 100px;
    /*color: #ffffff;*/ /* modifica XXXXXX TODO perché bianco*/
}

.header-right {
    /*
    background-color: #f4a545;
    */
    position: fixed;
    z-index: 1000;
    right: 0;
    left: 0;
    margin-left: 300px /* Margine del titolo della pagina*/
}

.header-right h1 {
    margin: 0 0 0 33px;
    padding: 0;
    line-height: 100px;
    color: #ffffff; /* aggiunto xxxx */
}

.header-left {
    /*background-color: #f6861f;*/
    width: 100%;
    padding: 0 20px;
}

.header-right a,
.header-right a:link,
.header-right a:visited {
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
}

.header-right a:hover,
.header-right a:active {
    color: #ffffff;
    background-color: rgb(40, 96, 144);
}

.header-right li {
    padding: 0;
}

/*.dropdown-menu-header {
    !* sovrascrivo bootstrap dropdown-menu solo per il menu header destro *!
    top: 72%;
}*/

.dropdown-menu-header {
    max-height: 180px;
    overflow: auto;
    /*margin-top: -28px;*/
}

.list-show-all {
    background-color: #ebebeb;
    border-top: 1px solid #ccc;
}

.header-right .dropdown-menu a {
    color: #333;
}

.content-page {
    margin-top: 165px;
}

.header-left a.dropdown-toggle {
    color: #fff;
}

.header-left .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
    background-color: transparent;
}

/* HOME */
ul li.course_box {
    border: 1px solid #ccc;
    width: 350px;
    height: 185px;
    text-align: center;
    background-color: #ebebeb;
}

ul li.course_box {
    /*overflow: hidden;*//*xxxx tolto per nuova visione classe*/
    margin: 0 10px 50px 0;

    /*
    margin-right: calc(((100% - 300px) - (((100% - 300px) / 350) * 350)) *10);
    */
    /*margin-right: calc((100% - 300px) / (((100% - 300px) / 350) + 2));*/

    border-radius: 3px;
   /* box-shadow: 0px 1px 4px #888888;
    -moz-box-shadow: 0px 1px 4px #888888;
    -webkit-box-shadow: 0px 1px 4px #888888;*/

    -webkit-transition: background-color 0.3s ease; /* Safari */
    transition: background-color 0.3s ease;
}

ul li.course_box:hover, ul li.course_box_home:hover {
    border: 1px solid #ebebeb;
    background-color: #f5f5f5;

}

.course_description {
    height: 110px;
    /*padding: -50px -50px -50px; !*++++xxxx*!*/
}

.course_description a {
    text-decoration: none;
    color: #000000;
}

.course_tool_box {
    /*height: 70px;*/
    text-align: center;
}

li.course_box a, li.course_box_home a {
    text-decoration: none;
    color: #000000;
}

/*ho commentato perchè bootstrap utilizza i 4px che a mio avviso non è male   JB.*/
/*.btn {*/
/*border-radius: 0;*/
/*}*/
.btn-no-hover {
    text-decoration: none;
    background-color: transparent;
    border-color: transparent;
}
.btn-no-hover:hover {
    text-decoration: none;
    background-color: transparent;
    border-color: transparent;
}


@media (max-width: 991px) {
    .content-page {
        margin-top: 20px;
    }
}

/* Stile per la freccia in basso a destra che fa tornare in cima alla pagina*/
.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 0px;
    right: 0px;
    display: none;
}

/* Trasforma le label-as-badge come badge, utile per poi avere i colori per i badge (il badge standard boostrap non li ha) xxxxxx aggiunto da dashboard*/
.label-as-badge {
    border-radius: 1em;
}

span.badge {
    /*margin: -14px 0 0 0px;*/
    /*font-size: x-small;*/
    margin-top: -2px;
    z-index:10;
}

span.badge-danger {
    background-color: #ff0000 !important;
}

@media (min-width: 768px) {

    /* Blocca il titolo e i pulsanti quando lo schermo è abbastanza largo */
    .page-top {
        padding-top: 10px;
        padding-bottom: 10px;
        position: fixed;
        z-index: 512;
        background-color: #ffffff !important;
    }

    /*.content-page {*/
        /*padding-left: 0; !* Aggiunto per avvicinare il menu a sinistra quando lo pagina è larga  *!*/
    /*}*/
}

/*Aggiustamento per far coincidere il bordo sinistro del breadcrumb con il menu a sinistra*/
/*.breadcrumb {
    margin-left: -30px;
    padding-left: 15px;
}*/

/* sovrascrivo css bootstrap */
.modal {
    z-index: 2020;
}

.modal-backdrop {
    z-index: 2000;
}

.breadcrumb {
    padding: 0;
    margin: 0 0 5px 35px;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
    font-size: 90%;
    position: absolute;
    bottom: 0px;
}

.breadcrumb > li + li:before {

    padding: 0 0 0 5px;
}

ol.breadcrumb li a:link, ol.breadcrumb li a:visited {
    padding: 0;
    color: #fff;
    background-color: transparent;
}

ol.breadcrumb li a:hover, ol.breadcrumb li a:active {
    text-decoration: underline;
}

.breadcrumb > .active {
    color: #ffffff;
}


/* LOGIN */

/*.username, .password {*/
.two_factor_code {
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #ccc;
    -webkit-box-shadow: none;
    box-shadow: none;

    border-radius: 0;

}

/*input.username[type="text"]:focus,*/
/*input.password[type="password"]:focus {*/
input.two_factor_code[type="text"]:focus {
    border-color: transparent;
    box-shadow: none;
    outline: 0 none;
}

.control-label {
    color: #999;
}

.btn-full-width {
    width: 100%;
}

.text-login {
    text-align: justify;
    padding-left: 50px;
}

.text-login-footer {
    border-top: 1px solid #ddd;
    margin-top: 30px;
    padding-top: 30px;
}

.login-header {
    height: 100px;
    line-height: 100px;
    padding: 0 30px;
    background-color: rgb(52, 122, 182);
    margin-bottom: 50px;
}
.box-login {
    background-color: #ebebeb;
}

.box-login-header {
    padding: 20px;
}


/* Menu tabellare degli strumenti*/
.big-dropdown {
    position: relative;
}

.big-dropdown > li {
    min-width: 500px;
    /*padding: 0;*/
    /*margin: 0;*/
}

.big-dropdown-menu {
    /*margin-left: 20%;*/
    /*min-width: 500px;*/
    /*max-width: 200px;*/
    /*position: relative;*/
    /*margin-top: -10px;*/
    /*width: 60%;*/
    /*top: 100px;*/ /*distanza dal margine superiore della pagina*/
}

.big-dropdown-menu > li > ul {
    padding: 0;
    margin: 0;
}

.big-dropdown-menu > li > ul > li {
    list-style: none;
}

.big-dropdown-menu > li > ul > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    color: #999;
    white-space: normal;
}

.big-dropdown-menu > li ul > li > a:hover,
.big-dropdown-menu > li ul > li > a:focus {
/*.big-dropdown-menu > ul > li :hover,*/
/*.big-dropdown-menu > ul > li :focus {*/
    text-decoration: none;
    color: #444;
    background-color: #f5f5f5;
}

.swal2-container {
    z-index: 10000;
}

.switch-icon-folder:hover .icon-switch-off,
.switch-icon-folder .icon-switch-on {
    display: none;
}
.switch-icon-folder:hover .icon-switch-on {
    display: inline;
}


/* Evita che le dialog box del tinymce quando si è in una modale appaiono dietro la modale */
.tox-tinymce-aux {
    z-index: 15999 !important;
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

@media (min-width: 1350px) {
    .container {
        width: 1270px;
    }
}
@media (min-width: 1750px) {
    .container {
        width: 1500px;
    }
}
/* ------------------------------------------
Gestione Box home piccoli (nuovo)
---------------------------------------------*/

/* Stile lista dei corsi di una materia/classe*/
div.list_course_box_extra_small {
    padding: 0px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}
:root {
     --width_course_box_extra_small: 355px;
 }
div.course_box_extra_small {
    position: relative;
    width: var(--width_course_box_extra_small);
    margin: 5px;
    border: 1px solid #ccc;
    padding: 0px;
    cursor: pointer;
    min-height: 108px;
    border-radius: 15px;
}

div.course_box_extra_small:hover {
    border: 1px solid #333;
}

div.course_box_extra_small a {
    text-decoration: none;
    color: #333;
}
div.item_course_box_extra_small {
    text-align: left;
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    padding: 10px 0px 10px 15px;
    border-radius: 15px;
    width: 100%;
}
div.item_course_box_extra_small.a {
    opacity: 1;
}
.teacher_box_extra_small {
    width:100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding:10px 15px 10px 15px;
    background-color:#f5f5f5;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
/*div.item_course_box_multiple_extra_small {*/
/*    !*height: auto;*!*/
/*}*/
/* ------------------------------------------
Gestione Box home medi (ex-piccoli)
---------------------------------------------*/
/* Stile lista dei corsi di una materia/classe*/
div.list_course_box_small {
    padding: 0px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    /*justify-content: space-between;*/
}


/*!* Stili singolo corsi di una materia/classe*!*/
:root {
    --width_course_box_small: 480px;
}
div.course_box_small {
    width: var(--width_course_box_small);
    margin: 5px;
    border: 1px solid #ccc;
    padding: 0px;
    cursor: pointer;
    min-height: 70px;
    border-radius: 15px;
}

div.course_box_small:hover {
    border: 1px solid #333;
}

div.course_box_small a {
    text-decoration: none;
    color: #333;
}

/* Elemento di course_box_small */
div.item_course_box_small:first-child  {
    background-color:#f5f5f5;
    border-left-width: 0px;
    text-align: left;
    padding-left: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}


div.item_course_box_small {
    /*border-left-width: 1px;*/
    /*border-left-style: solid;*/
    /*border-left-color: #ccc;*/
    background-color: #ffffff;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    /*height: 99%;*/
    width: 77px;
    padding: 10px 0px 3px 0px;
    margin: 0px -5px 0px 0px;
}


div.item_course_box_small:hover:not(:first-child) {
    background-color: #ebebeb;
}


@media (min-width: 768px) {

    /* Nome materia/classe */
    div.item_course_box_small:first-child:nth-last-child(1) {
        /*position: relative;*/
        top: 50%;
        /*transform:  translateY(-50%);*/
    }

    /*!* Uno strumento (scommentare se si vogliono più strumenti su una linea)*!*/
    /*div.item_course_box_small:first-child:nth-last-child(2),*/
    /*div.item_course_box_small:first-child:nth-last-child(2) ~ div.item_course_box_small {*/
    /*    position: relative;*/
    /*    top: 50%;*/
    /*    transform: translateY(-50%);*/
    /*}*/

    /*!* Due strumenti (scommentare se si vogliono più strumenti su una linea)*!*/
    /*div.item_course_box_small:first-child:nth-last-child(3),*/
    /*div.item_course_box_small:first-child:nth-last-child(3) ~ div.item_course_box_small {*/
    /*    position: relative;*/
    /*    top: 50%;*/
    /*    transform: translateY(-50%);*/
    /*}*/

    /*!* Tre strumenti (scommentare se si vogliono più strumenti su una linea)*!*/
    /*div.item_course_box_small:first-child:nth-last-child(4),*/
    /*div.item_course_box_small:first-child:nth-last-child(4) ~ div.item_course_box_small {*/
    /*    position: relative;*/
    /*    top: 50%;*/
    /*    transform: translateY(-50%);*/
    /*}*/


    div.item_course_box_multiple_small {
        width: 100%;
        /*height: auto;*/
    }

    /* Stili box degli strumenti dentro un corso di una materia/classe*/
    /*div.course_tool_box_multiple_small {*/
    /*    position: relative;*/
    /*    top: 50%;*/
    /*    transform:  translateY(-50%);*/
    /*}*/
}

/* small screen */
@media (max-width: 768px) {

    /*!* Uno strumento (scommentare se si vogliono più strumenti su una linea)*!*/
    /*div.item_course_box_small:first-child:nth-last-child(2),*/
    /*div.item_course_box_small:first-child:nth-last-child(2) ~ div.item_course_box_small {*/
    /*    height: auto;*/
    /*}*/

    /*!* Due strumenti (scommentare se si vogliono più strumenti su una linea) *!*/
    /*div.item_course_box_small:first-child:nth-last-child(3),*/
    /*div.item_course_box_small:first-child:nth-last-child(3) ~ div.item_course_box_small {*/
    /*    height: auto;*/
    /*}*/

    /*!* Tre strumenti (scommentare se si vogliono più strumenti su una linea)*!*/
    /*div.item_course_box_small:first-child:nth-last-child(4),*/
    /*div.item_course_box_small:first-child:nth-last-child(4) ~ div.item_course_box_small {*/
    /*    height: auto;*/
    /*}*/


    div.item_course_box_small:first-child {
        width: 100% !important;
    }

}

/* Alternativa uno strumento (togliere se si vogliono più strumenti su una linea)*/
div.item_course_box_small:first-child:nth-last-child(2),
div.item_course_box_small:first-child:nth-last-child(2) ~ div.item_course_box_small {
    height: auto;
}
/* Alternativa due strumenti (togliere se si vogliono più strumenti su una linea)*/
div.item_course_box_small:first-child:nth-last-child(3),
div.item_course_box_small:first-child:nth-last-child(3) ~ div.item_course_box_small {
    height: auto;
}
/* Alternativa tre strumenti (togliere se si vogliono più strumenti su una linea)*/
div.item_course_box_small:first-child:nth-last-child(4),
div.item_course_box_small:first-child:nth-last-child(4) ~ div.item_course_box_small {
    height: auto;
}
/* Quattro strumenti */
div.item_course_box_small:first-child:nth-last-child(5),
div.item_course_box_small:first-child:nth-last-child(5) ~ div.item_course_box_small {
    height: auto;
}

/* Cinque strumenti */
div.item_course_box_small:first-child:nth-last-child(6),
div.item_course_box_small:first-child:nth-last-child(6) ~ div.item_course_box_small {
    height: auto;
}

/* Sei strumenti */
div.item_course_box_small:first-child:nth-last-child(7),
div.item_course_box_small:first-child:nth-last-child(7) ~ div.item_course_box_small {
    height: auto;
}

/* Sette strumenti */
div.item_course_box_small:first-child:nth-last-child(8),
div.item_course_box_small:first-child:nth-last-child(8) ~ div.item_course_box_small {
    height: auto;
}

/* Otto strumenti */
div.item_course_box_small:first-child:nth-last-child(9),
div.item_course_box_small:first-child:nth-last-child(9) ~ div.item_course_box_small {
    height: auto;
}



/* Icona lista studenti e orari*/
.icon_course_small {
    color: #555;
    padding: 10px 10px 10px 10px;
    margin-top: -10px;
 }

.icon_course_small:hover {
    background-color: #ebebeb;
}

/*----------------------------------------------------------*/
/* Dropdown per menu home (lista studenti, orari, presenze) */
/*----------------------------------------------------------*/

.dropdownDot {
    margin: 10px 0;
    /*background-color: #E64A19;*/
}

.dropdownDot ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.dropdownDot ul li {
    display:inline-block;
    background-color: #f5f5f5;
    /*background-color: #ffffff;*/
    border-radius: 15px;
}

.dropdownDot a {
    display:block;
    padding:0 10px;
    line-height: 30px;
    text-decoration:none;
    color: black;
}

.dropdownDot a:hover {
    background-color: #ebebeb;
    /*background-color: #ffffff;*/
    border-radius: 15px;
}

/* Nasconde Dropdowns per default */
.dropdownDot ul ul {
    display: none;
    position: absolute;
    top: 30px; /* altezza del titolo */
    border: 1px solid;
    border-color: #ebebeb;
}

/* Hover Dropdowns*/
.dropdownDot ul li:hover > ul {
    display:inherit;
}

/* Primo livello dropdown */
.dropdownDot ul ul li {
    width:250px;
    float:none;
    display:list-item;
    position: relative;
    background-color: #ffffff;
    border-radius: 0px;
}

/* secondo,terzo, ...  Livello */
/*.dropdownDot ul ul ul li {*/
/*    position: relative;*/
/*    top:-60px;*/
/*    left:170px;*/
/*}*/


/*------------------------------------------------*/
/* Icona lista studenti e orari per visione grande*/
/*------------------------------------------------*/
.icon_link_course_large:link,
.icon_link_course_large:visited {
    color: #333;
    padding: 10px 10px 10px 10px;
    margin-top: -10px;
    font-size: 20px;

    -webkit-transition: all 2s;
    /* Safari */
    transition: all 0.25s;
}

.icon_link_course_large:hover,
.icon_link_course_large:active {
    background: #666;
    color: #fff;
}

.icon_link_course_large:hover .icon_course_large,
.icon_link_course_large:active .icon_course_large {
    color: #fff;
}

/* Bordo table più scuro dello standard boostrap (#dddddd) */
.table-with-line-dark > thead > tr > th {
    border-bottom: 2px solid #666666;
}

.table-with-line-dark > thead > tr > th,
.table-with-line-dark > tbody > tr > th,
.table-with-line-dark > tfoot > tr > th,
.table-with-line-dark > thead > tr > td,
.table-with-line-dark > tbody > tr > td,
.table-with-line-dark > tfoot > tr > td {
    border-top: 1px solid #666666;
}

/* Bordo table più scuro dello standard boostrap (rgba(50, 0, 70, 0.05)) */
.panel-with-line-dark {
    /*margin-bottom: 0px;*/
    -webkit-box-shadow: 0 1px 1px #666666;
    box-shadow: 0 1px 1px #666666;
}

/* Bordo table più scuro dello standard boostrap (#eeeeee) */
.hr-with-line-dark {
    border-top: 1px solid #666666;
}


/* medium screen */
@media (max-width: 991px) {
    .md-text-center {
        text-align: center;
    }
}


@media (min-width: 991px) {
    .lg-pull-right {
        float: right !important;
    }
}