.div_img p {
    margin-bottom: 12px;
}

.div_img a {
    text-decoration: underline;
}

.logo img {
    width: 100%;
    padding: 20px 0px;
}

.logo .logo-admin {
    padding-left: 0;
}

ul.errorlist {
    padding-left: 1em;
    margin-bottom: 0;
    color: red;
}

ul.errorlist li {
    list-style: none;
}

.messages .error ul.errorlist {
    color: inherit;
}

.bg-gradient-primary,
.card-header .card-icon.bg-gradient-primary {
    background-color: #65b32c;
}

.bg-gradient-primary.active {
    color: #fff !important;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.form-control {
    display: block;
    width: 100% !important;
    padding: 0.5rem 0;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #495057;
    background-color: transparent;
    background-clip: padding-box;
    appearance: none;
    border-radius: 0.375rem;
    transition: .2s ease;
}

.multi-panel-anagrafica fieldset,
.centri-anagrafica fieldset {
    max-width: unset !important;
}

#id_centri {
    display: flex;
    flex-wrap: wrap;
}

#id_centri li {
    flex: 0 0 20%;
}

#tab-filtri-categorie .fields li .field label {
    font-weight: 400;
}

#tab-filtri-categorie .multi-panel-anagrafica .field.multi_select_form_field.checkbox_select_multiple>label,
#tab-filtri-categorie .fields li>.boolean_field>label {
    font-weight: 800;
}

#header_dropdown {
    left: unset;
    right: 0;
}

@media screen and (min-width: 50em) {
    .object-layout .object-layout_big-part fieldset {
        max-width: unset;
    }
}

.header_image {
    height: 130px;
    margin-bottom: 2.5rem;
    /* margin-bottom: -4rem; */
    background-image: url('/static/img/headerDekra.png');
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;

}

@media only screen and (min-width: 991px) {
    .header_image {
        background-size: contain;
        height: 200px;
    }

    .margin_card {
        margin-right: 2.5rem !important;
        margin-left: 2.5rem !important;
        width: unset !important;
    }
    .margin_card_left {
        margin-left: 2.5rem !important;
        width: unset !important;
    }
    .margin_card_right {
        margin-right: 2.5rem !important;
        width: unset !important;
    }
}

.main-panel>.content {
    padding-top: 0;
}

/* Bootstrap-select */
.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light {
    color: unset;
    background-color: unset;
    border-color: unset;
    box-shadow: unset;
}

.dropdown.bootstrap-select.form-control .btn.dropdown-toggle.btn-light:focus {
    outline-color: #00934d !important;
}

/* css per stile delle select create da DAL */
/* admin dati_centro_base */
.select2-admin+span .select2-selection {
    height: 50px !important;
    padding: 10px !important;
}

.select2-admin+span .select2-selection__arrow {
    top: 12px !important;
}

.select2-admin+.dropdown-wrapper::after {
    content: none !important;
}

.select2.select2-container::after {
    content: none !important;
}

.select2.select2-container+span::after {
    content: none !important;
}

.select2.select2-container+div+span::after {
    content: none !important;
}

/* form adesione mailing */
.select2-selection.select-comune {
    height: 40px !important;
    padding-top: 7px !important;
}

.select2-selection.select-comune .select2-selection__rendered {
    padding: 0 !important;
}

.select-comune .select2-selection__arrow {
    top: 10px !important;
}

/* Menu */
#accordion_menu .card {
    /*background-color: #bfe1a8;*/
    background-color: #f1f1f1;
}

#accordion_menu .nav-item {
    line-height: 1.2em;
}

#accordion_menu .card .card-header {
    background: linear-gradient(45deg, #008242, #4caf50);
    box-shadow: 0 4px 10px 0px rgb(0 0 0 / 14%), 0 7px 7px -5px rgb(0 130 66 / 46%);
    border-radius: unset;
}

#accordion_menu .card .card-header .btn.btn-link {
    font-size: 18px !important;
    font-weight: bold;
    color: #ffffff;
    font-size: 0.9rem;
}

#accordion_menu .card .nav.navbar-nav {
    margin-top: 0;
}

#accordion_menu .nav li a.active {
    box-shadow: 0 2px 5px 0px rgb(0 0 0 / 14%), 0 4px 5px -5px rgb(0 130 66 / 46%);
    font-weight: 400;
}

/* Header */
#header_dropdown .dropdown-item i {
    margin-right: 10px;
}

.navbar-nav .nav-item .form-control {
    color: #ffffff;
}

.navbar-nav .nav-item .form-control::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.navbar-nav .has-search .form-control {
    padding-left: 2.375rem;
}

.navbar-nav .has-search .form-control-feedback {
    top: 2px;
    left: 0;
    opacity: 1;
}

@media only screen and (min-width: 991px) {
    .nav-search-mobile {
        display: none;
    }
}

#dropdownMenuButton .material-icons {
    font-size: 1.25rem;
    max-width: 24px;
    margin-right: 3px;
}

.breadcrumb {
    background-color: unset;
    margin-bottom: 0;
    align-items: baseline;
}

@media only screen and (max-width: 991px) {
    .breadcrumb {
        display: none;
    }

    .navbar-nav-header {
        flex-direction: row;
        margin-left: auto;
    }

    .navbar .navbar-nav.navbar-nav-header>li>a {
        opacity: unset;
    }

    .navbar #notifications-dropdown.dropdown.show .dropdown-menu {
        position: absolute;
        transform: translate(-50%, 0) !important;
        margin-left: 10px;
        max-width: 410px;
    }
}

.breadcrumb a {
    color: #c0e1aa;
    font-size: 1.2em;
    font-weight: 400;
    font-variant: all-petite-caps;
    padding: 0 10px;
}

.breadcrumb a.active {
    font-size: 1.4em;
}

/* Messages */
.alert.alert-dismissible.card {
    font-weight:500;
    font-size:18px;
    text-transform: uppercase;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: 0 13px 27px -5px rgb(50 50 50 / 25%), 0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%);
}

.grassetto {
    font-weight: 800;
}

.chiusura-form {
    font-weight: 800;
    color: red;
}

.apertura-form {
    font-weight: 800;
    color: green;
}

.aggiungi-data-icon {
    color: white;
    padding: 4px;
}

.text-default-color {
    color: #AAAAAA;
}

/* Home */
.card-header-news {
    display: flex;
    align-items: center;
    text-align: center;
}

.card .card-header.card-header-news h3 {
    font-variant: small-caps;
    font-weight: 400;
    text-transform: capitalize;
}

.card-header-news .material-icons {
    font-size: 36px;
    line-height: 56px;
    width: 56px;
    height: 56px;
}

@media only screen and (max-width: 991px) {
    .card {
        margin-bottom: 15px;
        margin-top: 15px;
    }
}

.titolo_sopra_card {
    color: white;
    font-size: 3em;
    padding-bottom: 15px;
    line-height: 1.3em;
}

.select-comune {
    border: unset !important;
    border-radius: unset !important;
    border-bottom: 1px solid #aaa !important;
}

.select-comune+span {
    min-width: 10em !important;
}

.last_row_modifica {
    margin: 27px 0 0;
    padding-bottom: 20px;
}

.select-comune+.select2.select2-container {
    width: 100% !important;
}

.cf_row {
    padding: 15px;
}

.modello_lettera>ul {
    list-style-type: none;
    margin-left: -20px;
}

.custom-col {
    min-width: 200px;
}

.custom-label {
    color: #AAAAAA;
}

.messaggio {
    display: none;
    padding-top: 15px;
}

/* pagina preview bollo germania */
.label-review {
    width: 25%;
    border-bottom: 1px solid #bfb9b9;
    padding: 2px;
    min-width: 100px;
}

.val-review {
    padding: 2px;
}

.review-row {
    margin: unset;
}

.image-preview {
    max-width: 400px;
    max-height: 300px;
}

/* Notifiche */
.stats {
    color: #999;
    font-size: 12px;
    line-height: 18px;
    margin-top: 5px;
}

.stats .material-icons {
    font-size: 16px;
    vertical-align: sub;
}

#notifications-dropdown .dropdown-menu .dropdown-item {
    display: block;
}

#notifications-dropdown .notification-footer {
    text-align: center;
}

#notifications-dropdown .notification-footer a:hover,
#notifications-dropdown .notification-footer a:focus {
    box-shadow: unset;
    background-color: unset;
    color: #006935;
    text-shadow: 1px 3px 5px #168f4650;
    font-weight: 400;
}

.bg-unread {
    background-color: #ffd634;
}

.bg-unread .stats {
    color: #606060;
}

.bg-unread:hover,
.bg-unread:focus {
    box-shadow: none;
    background-color: #ffeb34 !important;
    color: unset !important;
}

.badge {
    font-size: 0.9em;
}

.stats .badge {
    margin-left: 1em;
    vertical-align: text-top;
}

#notifications-dropdown .dropdown-menu .dropdown-item:hover,
#notifications-dropdown .dropdown-menu .dropdown-item:focus {
    box-shadow: none;
    background-color: #f5f5f5;
    color: unset;
}

.badge-color-c {
    color: #ffffff;
    background-color: #f44336;
}

.badge-color-n {
    color: #ffffff;
    background-color: #4caf50;
}

.badge-color-r {
    color: #ffffff;
    background-color: #00bcd4;
}

.footer-lista-notifiche i.material-icons {
    font-size: 16px;
    vertical-align: sub;
}

.custom-card-body {
    padding-bottom: 20px;
}

.hidden-panel-ct {
    display: none;
}

/* stile per la pagina con contenuto del cms */
.content-pag-finale {
    font-size: 1rem;
    line-height: 1.2em;
}

.content-pag-finale table {
    border-collapse: collapse;
    border: 1px solid #bbb;
    table-layout: auto;
    width: 100%;
}

.content-pag-finale td,
.content-pag-finale th {
    padding: 5px 10px;
    border: 1px solid #bbb;
}

.intro {
    padding-bottom: 1rem;
    font-style: italic;
}

/* allineamento testo nelle tabelle */
.htLeft {
    text-align: left;
}

.htCenter {
    text-align: center;
}

.htRight {
    text-align: right;
}

.htJustify {
    text-align: justify;
}

.htTop {
    vertical-align: top;
}

.htMiddle {
    vertical-align: middle;
}

.htBottom {
    vertical-align: bottom;
}

/* contenitore galleria */
@media only screen and (min-width:1000px) {
    .gallery-container {
        width: 50%;
    }
}

/* dimensione dei video */
.content-pag-finale video {
    width: 50%;
    padding: 30px 0;
}

@media only screen and (max-width:600px) {
    .content-pag-finale video {
        width: 100%;
    }
    .content-pag-finale td,
    .content-pag-finale th {
        padding: 2px 2px !important;
    }
}

/* Admin */
.changelist-filter ul {
    max-height: 300px;
    overflow-y: auto;
}

/* stile hover bottoni di heading del menu laterale */
#accordion_menu .card div.card-header:hover {
    background: linear-gradient(45deg, #00572b, #3d8b40);
}

#collapse-2 .nav.navbar-nav {
    margin-bottom: 20px;
}

@media only screen and (min-width:450px) {
    .allinea {
        padding-left: 20px;
    }

    .materiale-div {
        flex: 0 0 calc(25%);
        text-align: center;
        padding: 10px;
    }

    .materiale-img {
        max-width: 300px;
        height: 200px;
        margin: 10px auto;

    }

    #materiale-link-img {
        object-fit: contain;
        max-width: 100%;
        height: -webkit-fill-available;
    }

    img.left {
        float: left;
        margin-right: 50px;
    }

    img.right {
        float: right;
        margin-left: 50px;
    }

    .div_img {
        clear: both;
        padding-top: 10px;
    }
}

.div_img img {
    max-width: 100%;
    height: 100%;
}

@media only screen and (max-width:450px) {
    .allinea {
        text-align: center;
    }

    #div_img a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #div_img {
        width: 70%;
    }

    #home-link-img {
        padding-bottom: 2rem;

    }

    .info-homepage {
        flex-direction: column;
        align-items: center;
    }

    .materiale-img {
        max-width: 300px;
        height: 200px;
        margin: 10px auto;
    }

    .materiale-div {
        text-align: center;
        margin: auto;
        margin-bottom: 50px;
        flex: 0 0 calc(100%);
    }

    #materiale-link-img {
        max-height: 200px;
        padding-bottom: 1rem;
        height: -webkit-fill-available;

    }
}

@media only screen and (min-width:450px) and (max-width:1150px) {
    .materiale-div {
        flex: 0 0 calc(33%);
        text-align: center;
        padding: 30px;
    }
}

.footer-custom {
    text-align: unset !important;
    padding: 0 !important;
}

#tecniche-home-button {
    background: #E8E000 !important;
}

#commerciali-home-button {
    background: #EF7C00 !important;
}

#servizi-home-button {
    background: #C7066E !important;
}

/* telaio e obd */
.full-width-img-container img {
    max-width: 100%;
    height: auto;
}

.full-width-img-container {
    padding: 0 20px;
}

/* telaio e obd */
.select-comune .select2-selection__rendered .select2-selection__clear {
    display: none;
}

/* dimensione container video nel dettaglio info tecniche */
.video-container video {
    width: 100%;
}

/********************************
stile pagine di login/reset pwd 
********************************/
.login .button {
    background: #D5D5D5 !important;
    color: #008143 !important;
    box-shadow: 0px 0px 34px -10px black !important;
}

.login #id_username {
    box-shadow: 0 0 30px -10px black;
}

.login .input:before {
    color: #008143 !important;
}

.login #id_password {
    box-shadow: 0px 25px 30px -30px black;
}

.login .input:before {
    color: #008143 !important;
}

.login .wrapper{
    background-color: #008143 !important;
}

.login h1 {
    white-space: inherit;
}

.nav.navbar-nav {
    margin: 0 15px;
    font-weight: bold;
    line-height: 1.0;
}

.sidebar .nav li a {
    font-size: 16px !important;
    margin: 3px 15px;

}

.accordion .card-body {
    padding-left: 0 !important;
}

.info-homepage .allinea h4 {
    font-weight: bold;
    font-size: 20px;
}

h6 {
    font-size: 1rem;
}

.new-banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.page-list-item-container {
    display: flex;
    align-items: center;
}

.page-list-icon {
    height: 20px;
    margin-right: 20px;
}

.field-content #id_permissions {
    height: 60vh !important;
}


/* stile menu in alcuni casi specifici */
@media only screen and (max-height:800px) {
    #accordion_menu .card .card-header .btn.btn-link {
        font-size: 16px !important;
        padding: 5px 30px !important;
    }

    #accordion_menu .card {
        margin: 15px 0 !important;
    }

    .logo {
        padding: 0 !important;
    }
}

@media only screen and (max-width: 1300px) {
    .direttive-row{
        width:100%;
        padding: 0 10px;
    }
}

@media only screen and (max-width: 600px) {
    .cat-direttive{
        width:30px;
        overflow:hidden;
    }
}

.direttive-row {
    display: flex;
    align-items: center;    /* centra verticalmente */
    justify-content: space-between; /* distribuisce le colonne */
    width: 100%;
    margin-bottom: 4px;
}

.direttiva-col,
.cat-direttive,
.label-direttive {
    flex: 0 0 30%;   /* ogni colonna prende il 30% */
    text-align: center;
}

.direttiva-col {
    font-weight: bold;
    text-align: left;  /* opzionale: colonna sinistra allineata a sinistra */
}

.cat-direttive {
    border: 1px solid black;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center; 
    color: black !important;
}

.label-direttive {
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
    text-align: left;  
    color: black !important;
}

.pop{
    animation: pop 1s linear infinite;
    animation-delay: 1s;
}

@keyframes pop{
    50%  {transform: scale(1.2);}
  }

.alert-error {
color: #7f231c;
background-color: #fdd9d7;
border-color: #fccac7; }
.alert-error hr {
    border-top-color: #fbb3af; }
.alert-error .alert-link {
    color: #551713; }
.alert.alert-error {
    background-color: #f55145;
    color: #ffffff; }