body.inverted-night-day .sepa-linea {
    background-color: var(--main_grey);
}

body.inverted-night-day {
    background-color: black;
    transition: all 2s;
}

body.inverted-night-day .table td,
body.inverted-night-day .table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid var(--main_grey);
    border-bottom: 1px solid var(--main_grey);
}

.night-day-mobile.night-day {
    display: none;
}

body.inverted-night-day .table {
    color: var(--main_grey_light);
}

body.inverted-night-day .table a {
    color: var(--rosso);
}

body.inverted-night-day .table a:hover {
    color: var(--rosso);
}

body.inverted-night-day label {
    color: var(--main_grey);
}

.blocco {
    margin-bottom: 20px;
    color: var(--main_grey);
}

.blocco .popup-bundle {
    height: fit-content;
    display: block;
    width: fit-content;
    border-radius: 6px;
    overflow: hidden;
}

.wrapper-foto-lastre a {
    height: fit-content;
    display: block;
}

.wrapper-foto-lastre a .overlay-lastra {
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    backdrop-filter: blur(3px);
    transition: all 0.5s;
    opacity: 0;
}

.wrapper-foto-lastre a .overlay-lastra div {
    text-align: center;
    color: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: fit-content;
}

.wrapper-foto-lastre a .overlay-lastra div span {
    font-size: 11px;
    font-style: italic;
}

.wrapper-foto-lastre a:hover .overlay-lastra {

    opacity: 1;
}

.blocco-opzionato {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    color: var(--rosso);
    font-size: 14px;
    padding: 8px;
    text-transform: uppercase;
    left: 0;
    width: 140px;
    text-align: center;
    margin: auto;
    bottom: 0;
    height: fit-content;
    transition: all .5s;
}

.blocco-img-wrapper {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.blocco-img-wrapper:hover .overlay-blocco {
    opacity: 1;
    transition: all 0.5s;
}

.blocco-img-wrapper:hover .blocco-opzionato {
    bottom: -100px;
    transition: all .5s;
}

.blocco .titolo-blocco {
    font-weight: 600;
    margin-top: 6px;
    padding-left: 4px;
    font-family: var(--default_font);
    font-size: 17px;
}

.blocco .titolo-blocco2 {
    font-weight: 600;
    margin-top: 6px;
    padding-left: 4px;
    font-family: var(--default_font);
    font-size: 15px;
    text-align: center;
}

.overlay-blocco {
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: black;
    text-transform: uppercase;
    z-index: 3;
}

.inverted-night-day .overlay-blocco {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.materiale-blocco {
    color: var(--rosso);
    text-transform: uppercase;
}

.materiale-blocco:hover {
    color: var(--main_grey);
    text-decoration: none;
}

.blocco .dettagli-blocco {
    padding-left: 4px;
    font-family: var(--default_font);
    margin-top: -8px;
    text-align: center;
}

.blocco .dettagli-blocco span {
    font-size: 12px;
    margin-right: 4px;
}

#filtri {
    font-size: 12px;
    font-family: var(--default_font);
}

.mfp-bg {
    background: #0b0b0bde !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px);
}

/* BOTTONE FILTRI */
#bottone-filtri {
    position: absolute;
    z-index: 3;
    color: var(--rosso);
    top: -12px;
    right: 25px;
    font-size: 13px;
    margin-top: 14px;
    text-transform: uppercase;
    padding-right: 15px;
}

#bottone-filtri .freccia_generica {
    transform: rotate(
            90deg
    );
    top: 4px;
    position: absolute;
    right: -5px;
}

#lista-materiali-estesa ul {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

#lista-materiali-estesa li {
    list-style: none;
    display: inline-block;
    position: relative;
    margin-right: 15px;
}

#lista-materiali-estesa li:last-child {
    margin-right: 0;
}

#lista-materiali-estesa li .immagine-lista-materiali {
    display: none;
    position: absolute;
    width: 400px;
    z-index: 10;
    border: solid 25px black;
    box-shadow: 0px 3px 10px -10px;
    top: 25px;
    margin: auto;
    transition: all .5s;
}

#lista-materiali-estesa li:hover .immagine-lista-materiali {
    display: block;
    transition: all .5s;
}

#lista-materiali-estesa li a {
    color: var(--main_grey);
    font-weight: 900;
    font-family: var(--default_font);
    font-size: 12px;
    text-transform: uppercase;
}

#lista-materiali-estesa li a.selected {
    color: var(--rosso);
}

#lista-materiali-estesa li a:hover {
    color: var(--rosso);
    text-decoration: none;
}

/* IPAD LANDSCAPE / SMALL DESKTOP */
@media (min-width: 1024px) and (max-width: 1280px) {
    body:not(.inverted-night-day) .wrapper-tipologia_materiale.backgrounded {
        background-color: transparent;
    }
}

/* IPHONE */
@media (max-width: 768px) {

    #lista-materiali-estesa li a {
        font-size: 16px;
    }

    #bottone-filtri {
        position: relative;
        top: 0 !important;
    }

    .single-blocchi .mtit::after {
        bottom: -2em;
    }

    body.is-magazzino #langs {
        /* display: none; */
        left: 60px !important;
    }

    body.inverted-night-day .table td, body.inverted-night-day .table th {
        padding: .75rem;
        vertical-align: top;
        border-top: none;
        border-bottom: none;
        display: block;
    }

    body.inverted-night-day .table td:last-child {
        border-bottom: solid 1px var(--main_grey);
    }

    .col-filtro::after {
        display: none;
    }

    .blocco .titolo-blocco {
        font-size: 11px;
    }

    #lista-materiali-estesa li {
        margin-right: 4px;
    }

    .heart {
        right: 25px;
        bottom: -2px;
    }

    .heart svg {
        width: 24px;
    }

    .night-day {
        display: none;
    }

    .night-day-mobile.night-day {
        display: block;
        bottom: 18px;
        top: initial;
        position: fixed;
    }

    .night-day-mobile.night-day a {
        width: 56px;
        height: 56px;
        display: inline-block;
        border-radius: 50%;
    }


    .inverted-night-day #top-bar {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .wrapper-tipologia_materiale a:hover .sec-tit h2 {
        font-size: 2rem !important;
    }

    .wrapper-tipologia_materiale a:hover img {
        opacity: 0.3 !important;
        transition: all .5s;
    }

    .wrapper-tipologia_materiale a img {
        opacity: 1 !important;
        transition: all .5s;
    }

    #lista-materiali-estesa li:hover .immagine-lista-materiali {
        display: none !important;
    }


    .wishlist-box {
        top: 7px;
        right: 40px;
    }

    #bottone-filtri {
        top: -35px;
        right: 0;
        margin-top: 14px;
        padding-right: 15px;
        left: 0;
        margin: auto;
        width: 70px;
    }

    #bottone-filtri.filtri-attivi {
        width: 140px !important;
    }
}