html,
body {
    height: 100%;
}


.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}


/**
Solo nel terzo step rimuove la larghezza massima
 */
#registrati-terzo-step-form {
    max-width: none !important;
}

.row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}


.singolo-prodotto {
    /*background: #ededed;*/
    width: 100%;

}


/**
Imposto altezza massima immagine
 */
.singolo-prodotto img {
    max-height: 230px;
}

.descrizione-prodotto-truncate {
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}


/**
Tronco la descrizione del prodotto
*/

.p-active a {
    background: white;
    color: black;
}

.singola-categoria {
    height: 400px;
}

.menu-sottocategorie {
    border-style: none;
    border-right: 1px solid rgb(225, 225, 225);
}

.product-page section {
    border-bottom-width: 1px;
    border-bottom-color: rgb(146, 156, 166);
}

.variante-prodotto-item, .accessorio-prodotto-item, .bundle-prodotto-item {
    margin-right: 0;
    margin-left: 0;
}

/**
Override bootstrap
 */

.clean-block.clean-product .product-info .description {
    padding-top: 30px !important;
    max-width: none !important;
}

#label-quantita, #label-prezzo {
    line-height: 15px;
    font-size: 12px;
    font-weight: bold;

}

.download-allegato i, .download-fattura i, .download-ddt i {
    margin: unset !important;
}

.parent-class {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/**
Campo ricerca prodotto
 */
#search-field {
    border: none !important;
}

/**
Grandezza immagine variante e accessori.
è un override di img-fluid in pratica
 */
.variante-item-image > img, .accessorio-item-image > img {
    max-width: 70% !important;
}

/**
Colore sfondo prodotto/bundle
 */
.prodotto-bg {
    background-color: #f6f6f6 !important;
    box-shadow: 0 2px 0px rgb(0 0 0 / 8%) !important;
}

/**
Nome del prodotto
 */
.product-name {
    font-weight: bold;
}

/**
Aggiunge testo sottolineato se la categoria ha sottocaetgorie
 */
.has-subcategories {
    text-decoration: underline;
}

/**
Margine del container rispetto all'header
 */
.search-div {
    padding-top: 130px;
    padding-bottom: 30px;
}

/**
Barra di ricerca
 */
.has-search {
    display: block;
}


/*.main-container {*/
/*    margin-top: 100px;*/
/*}*/

/**
Modifiche mobile
 */

@media (max-width: 767px) {
    .products div.no-gutters, .main-container {
        padding: 0 !important;
    }


    .has-subcategories {
        text-decoration: none;
    }

    .search-div {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .singola-categoria {
        margin-right: 20px;
        margin-left: 20px;
    }

    .singola-categoria .card.clean-card {
        margin-bottom: 20px !important;
    }

    .has-search {
        display: none !important;
    }

    .row.text-center.justify-content-center {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

}

@media (min-width: 768px) {
    .products div.no-gutters, .main-container {
        /*padding: 3rem !important;*/
    }
}


/**
Impostazioni colore
 */


.btn-primary, .myBGColor {
    background-color: #0063af !important;
}

.btn-link, .text-info, .myColor, .myNavColor > a, .product-name, .myBreadcrumb a, .myColor > a {
    color: #0063af !important;
}

/**
Colori badge
 */
.badge-promo {
    color: white;
    background-color: #dc3545;
}

.badge-novita {
    background-color: #ffcc76;
}

/**
Rimuove lo sfondo del bradcrumb
 */
.myBreadcrumb {
    background-color: transparent !important;
}


.immagine-categoria {
    max-height: 300px;
}

@media (min-width: 992px) {
    .dropdown-menu .dropdown-toggle:after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
    }

    .dropdown-menu .dropdown-menu {
        margin-left: 0;
        margin-right: 0;
    }

    .dropdown-menu li {
        position: relative;
    }

    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu > li:hover {
        background-color: #f1f1f1
    }

    .dropdown-menu > li:hover > .submenu {
        display: block;
    }
}

.p-active a.btn.btn-outline-dark {
    background-color: #0063AF !important;
    border-color: #0063AF !important;
    color: white !important;
}

.png-icon {
    height: 0.8rem;
}


/**
Animazione login
 */
/* Simple CSS3 Fade-in-down Animation */
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

/* Simple CSS3 Fade-in Animation */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    opacity: 0;
    -webkit-animation: fadeIn ease-in 1;
    -moz-animation: fadeIn ease-in 1;
    animation: fadeIn ease-in 1;

    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    animation-duration: 1s;
}

.fadeIn.first {
    -webkit-animation-delay: 0.4s;
    -moz-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.fadeIn.second {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
    animation-delay: 0.6s;
}

.fadeIn.third {
    -webkit-animation-delay: 0.8s;
    -moz-animation-delay: 0.8s;
    animation-delay: 0.8s;
}

.fadeIn.fourth {
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    animation-delay: 1s;
}

/* Simple CSS3 Fade-in Animation */
.underlineHover:after {
    display: block;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background-color: #044689;
    content: "";
    transition: width 0.2s;
}

.underlineHover:hover {
    color: #0d0d0d;
}

.underlineHover:hover:after {
    width: 100%;
}

#ex4 .p1[data-count]:after {
    position: absolute;
    right: 10%;
    top: 8%;
    content: attr(data-count);
    font-size: 60%;
    padding: .2em;
    border-radius: 50%;
    line-height: 1em;
    color: white;
    background: rgba(255, 0, 0, .85);
    text-align: center;
    min-width: 1em;
    font-weight: bold;
}

.myFa {
    font-size: 1.4em;
}

#post-footer {
    padding-bottom: 30px;
}

/*
Tutti i link del footer bianchi
 */
.page-footer a {
    color: white !important;
}

/**
Colore pulsante contatta l'agente
 */
.btn-contatta-agente {
    color: black !important;
    background-color: #ffcc76 !important;
    border-color: #ffcc76 !important;
}

/**
Colore usato
 */
.btn-usato {
    color: #000000 !important;
    background-color: #FEF3CD !important;
    border-color: #FEF3CD !important;
    cursor: unset !important;
}


/**
Gestione tablet
 */


@media (min-width: 768px) and (max-width: 1024px) {
    .products div.no-gutters, .main-container {
        padding: 0 !important;
    }

    .clean-block.clean-catalog .products {
        padding: 30px 0 30px 0 !important;
    }

    #prezzoFlRivenditore {
        max-width: 100% !important;
        text-align: unset !important;
    }
}

#businessName {
    font-size: 0.9rem;
}


a.nav-link.active {
    border: none !important;
    font-weight: bold !important;
}

/**
Nascondo header doofinder
 */

.df-header-title {
    display: none !important;
}


/**
Immagine di rotazione schermo
 */
.landscapeMode {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: none;
    background-image: url('../media/turnDevice.png');
    background-size: contain;
}

/**
Layout pulsante "Tutto il catalogo"
 */

.dropdown-item {
    padding: .25rem 1rem !important;
}


/**
Gestione albero categorie
 */
ul, #myUL {
    list-style-type: none;
    padding-left: 10px !important;
}

#myUL > li > div > div > a > small {
    font-weight: bold;
    text-transform: uppercase;
}

ul.nested.active > li > a > small {
    text-transform: unset;
}

#myUL {
    margin: 0;
    padding: 0;
}

.caret {
    cursor: pointer;
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
}

.caret::before {
    content: "+";
    font-weight: bold;
    color: #0063af;
    display: inline-block;
    margin-right: 3px;
}

.no-caret::before {
    content: "+";
    font-weight: bold;
    color: transparent;
    display: inline-block;
    margin-right: 3px;
}

.caret-down::before {
    content: "-";
    font-weight: bold;
    color: #0063af;
    display: inline-block;
    margin-right: 3px;
}

.nested {
    display: none;
}

.active {
    display: block;
}

.lista-categorie-m, #mySidenav {
    display: none;
}


@media screen and (max-width: 767px) {
    /*Pulsante per le categorie*/
    #mySidenav {
        display: block;
    }

    .lista-categorie-m {
        display: block;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        padding-left: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        z-index: 1000;
    }


    /*Css che gestisce la navigation drawer da mobile*/
    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #0063af;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #myUL {
        padding-left: 15px;
    }

    .sidenav a {
        padding: 8px 8px 8px 2px;
        text-decoration: none;
        font-size: 18px;
        color: white !important;
        display: inline-block;
        transition: 0.3s;
    }

    .caret:before {
        color: white !important;
    }

    .sidenav span {
        padding-left: 10px;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

.price-font-size {
    font-size: 1.1rem;
}

/*label[for="utente-email_ordini"]{*/
/*    font-weight: bold;*/
/*}*/