* {
    box-sizing: border-box;
}

html, body, form {
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    max-width: 1900px;
    margin-left: auto;
    margin-right: auto;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 15px;
    font-weight: 300;
    background-color: #FFFFFF;
    color: #1E1E1E;
    display: flex;
    flex-direction: column;
}

a {
    border: 0;
    text-decoration: none;
    color: inherit;
    margin: 0;
    padding: 0;
}

img {
    border: 0;
}

div {
    margin: 0;
    padding: 0;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 26px;
    color: orange;
    font-weight: bold;
}
h1.foto {
    margin: 0;
    padding: 0;
    color: #1E1E1E;
    font-size: 22px;
    font-weight: bold;
}

h2 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-size: 20px;
}

h3 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

li {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

input {
    margin: 0;
    padding: 0;
    border: none;
}

input:focus {
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

main {
    padding: 0 20px;
    flex: 1;
}

footer {
    margin: 40px auto 0;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

footer ul {
    margin-bottom: 18px;
}

footer ul li {
    display: inline-block;
}

footer ul li a:hover {
    color: orange;
}

#header {
    display: flex;
    padding: 10px 10px;
}

#header img {
    height: 92px;
}

#head-search {
    display: inline-flex;
    width: 100%;
    margin-top: 26px;
}

.search-input {
    display: inline-flex;
    margin: 0 0 0 0 !important;
    width: auto !important;
    flex-grow: 1;
}

.search-input button {
    color: white;
    background-color: orange;
    border: 0;
    border-radius: 0 4px 4px 0;
    width: 40px;
    cursor: pointer;
}

.search-opts {
    margin-top: -25px;
    position: absolute;
    color: orange;
    font-weight: bold;
    line-height: 16px;
    font-size: 13px;
    background-color: #F0F0F0;
    padding: 2px 4px 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.search-opts label {
    cursor: pointer;
}

.search-opts input {
    float: left;
    margin-top: 2px;
    margin-right: 4px;
    cursor: pointer;
    accent-color: orange;
}

.search-filter {
    margin: 0 0 0 4px;
    line-height: 16px;
    font-size: 13px;
    background-color: #F0F0F0;
    padding: 2px 0 2px 6px;
    border-radius: 4px;
}

.search-filter span {
    color: orange;
    font-weight: bold;
    margin-right: 4px;
}

.search-filter input[type=checkbox] {
    height: 12px;
    width: 12px;
    margin-right: 2px;
    accent-color: orange;
    cursor: pointer;
}

.search-filter label {
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

.sort {
    display: inline;
    margin-right: 30px;
}
#head-menu {
    flex-grow: 1;
    padding: 0 0 0 20px;
    position: relative;
}

nav {
    display: flex;
    margin: 4px 0;
}

#user-menu {
    position: absolute;
    top: 30px;
    right: -2px;
    text-wrap: nowrap;
}

.menu-u {
    cursor: pointer;
}

.menu-u:hover {
    color: orange;
}

.menu-u:hover #user-submenu {
    display: block;
}

#user-submenu {
    display: none;
    position: absolute;
    color: #1E1E1E;
    background-color: #FEFEFE;
    right: 2px;
    z-index: 2;
}

#user-submenu li {
    padding: 8px;
}

#user-submenu li a:hover {
    color: orange;
}

#user-menu li i {
    margin-right: 6px;
}

.menu-lb {
    display: block;
    position: absolute;
    top: -26px;
    right: 0;
    cursor: pointer;
}

.menu-lb:hover {
    color: orange;
}

#menu {
    display: none;
}

#offerte-menu .closebtn, #user-menu .closebtn {
    display: none;
}

#user-menu-button {
    display: block;
}

#ricerca-avanzata {
    color: #FFFFFF;
    font-weight: bold;
    background-color: orange;
    padding: 0 6px;
    border-radius: 4px;
    line-height: 36px;
    margin-left: 4px;
}

#ricerca-avanzata:hover {
    color: #1E1E1E;
}

@media (max-width: 1450px) {
    .navbar {
        position: relative;
    }

    .sort {
        position: absolute;
        margin-right: 0;
        right: 0;
        top: 26px;
    }
}

@media (max-width: 1400px) {
    .user-menu-item {
        display: inline-block;
    }

    .menu-lb {
        position: unset;
        top: unset;
        right: unset;
    }

    #user-submenu {
        right: 148px;
    }
}

@media (max-width: 1170px) {
    #header img {
        height: 72px;
        margin-top: 20px;
    }

    #offerte-menu {
        position: absolute;
        left: -184px;
        top: -1px;
    }

    #head-search {
        margin-top: 47px;
    }

    #user-menu {
        top: 25px;
    }
}

@media (max-width: 1100px) {
    .navlb {
        width: 45% !important;
    }

    .navlb2 {
        width: 55% !important;
    }
}
@media (max-width: 960px) {

    .menu-lb {
        display: none;
    }

    #offerte-menu, #user-menu {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 2;
        top: 24px;
        right: 0;
        background-color: #FEFEFE !important;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        padding-left: 12px;
    }

    #offerte-menu {
        flex-grow: unset !important;
        left: unset;
    }

    #offerte-menu li {
        padding: 0 0 8px 12px;
        display: block !important;
    }

    #header img {
        height: 72px;
        margin-top: 0;
    }

    #head-search {
        margin-top: -1px;
        flex-direction: column;
        padding: 0 132px 0 0;
    }

    .search-input {
        width: calc(100% - 78px) !important;
    }
    .search-input input {
        font-size: 14px !important;
        height: 28px;
    }

    .search-filter {
        margin: 0;
    }

    .search-opts {
        top: 77px;
        right: 0;
    }

    #menu {
        display: block;
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 16px;
        cursor: pointer;
        text-align: right;
    }

    #menu a {
        display: block;
        font-size: 13px;
        margin-top: 3px;
    }

    #ricerca-avanzata {
        position: absolute;
        right: 133px;
        font-size: 12px;
        top: 7px;
        height: 28px;
        line-height: 28px;
    }

    #user-menu-button {
        display: none;
    }

    #user-submenu {
        display: block;
        position: unset;
    }

    #offerte-menu .closebtn, #user-menu .closebtn {
        display: block;
        position: absolute;
        top: 6px;
        right: 16px;
        font-size: 36px;
        margin-left: 50px;
    }
}

@media (max-width: 890px) {
    .fpp3 {
        display: none !important;
    }
}

@media (max-width: 750px) {
    .navp {
        width: 40% !important;
    }

    .sort {
        top: 44px;
    }
    .fpp {
        width: 25% !important;
    }
    .fpp2 {
        display: block !important;
        margin-top: 6px;
    }
    .search-filter {
        display: none;
    }

    .search-opts {
        top: unset;
        right: unset;
    }
    #head-search {
        margin-top: 36px;
        padding: 0 10px 0 0;
    }

    #menu a {
        float: left;
        margin-top: 0;
        margin-right: 28px;
    }

    #ricerca-avanzata {
        top: 44px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    .navb, .fpp1, .fpp2, .fpp3, .navp input {
        display: none !important;
    }

    .navp {
        width: 100% !important;
    }

    .curp, .box-foot-add2lb {
        display: inline-block !important;
    }

    .fpp {
        width: 100% !important;
        text-align: center !important;
        margin: 8px 0 0 0 !important;
    }

    .sort {
        position: unset;
    }
}

@media (max-width: 550px) {
    #header {
        margin-bottom: 26px;
    }

    #head-search {
        top: 40px;
        padding: 0;
        position: absolute;
        left: -176px;
        width: calc(100% + 166px);
    }

    #ricerca-avanzata {
        right: 0;
        top: 0;
    }

    #menu a {
        margin: 3px 0 0 0;
        float: none;
    }

    .form-row {
        display: unset;
    }

    .advitem {
        flex-direction: column;
    }

    .advitem1 {
        margin-right: 32px;
    }

    .advitem2 {
        place-content: flex-end;
    }

    .advitem2 select {
        margin-top: 4px;
    }

    .adv-button {
        font-size: 14px;
    }

    .adv-search-filter {
        font-size: 14px;
    }

    .search-opts {
        right: 0;
    }
}


#offerte-menu {
    flex-grow: 1;
}

#offerte-menu li {
    margin-right: 24px;
    margin-bottom: 6px;
    font-weight: bold;
    display: inline-flex;
}

#offerte-menu li.selected {
    color: orange;
}

#offerte-menu li.last-item {
    margin-right: 0 !important;
}

#offerte-menu li:hover {
    color: orange;
}

.error {
    color: red;
    font-weight: bold;
}

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

.offerta {
    flex: 12.5%;
    position: relative;
    max-width: 12.5%;
    margin: 20px 0;
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 1620px) {
    .offerta {
        flex: 16.66%;
        max-width: 16.66%;
    }
}

@media (max-width: 1240px) {
    .offerta {
        flex: 20%;
        max-width: 20%;
    }
}

@media (max-width: 1040px) {
    .offerta {
        flex: 25%;
        max-width: 25%;
    }
}

@media (max-width: 860px) {
    .offerta {
        flex: 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 640px) {
    .offerta {
        flex: 50%;
        max-width: 50%;
    }
}

@media (max-width: 400px) {
    .offerta {
        flex: 100%;
        max-width: 100%;
    }
}

.box-cont {
    margin: 0 20px;
    height: 100%;
    border-top: 4px solid lightgrey;
    border-left: 2px solid lightgray;
    padding-bottom: 20px;
}

.box-cont-foto {
    margin: 0 20px;
    height: 100%;
    border-top: 4px solid lightgrey;
    border-left: 2px solid lightgray;
}

.box-cont-foto .box-img-cont {
    margin: 0 !important;
}


.box-img-cont {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    text-align: center;
    margin-bottom: 10px;
}
.box-img-cont-foto {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    text-align: center;
}

.box-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: flex-start;
}

.box-image img {
    max-height: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    display: inline;
    zoom: 10;
}

.box-data {
    position: absolute;
    bottom: 0;
    font-size: 12px;
    padding-left: 8px;
}

.box-text {
    font-size: 12px;
    font-weight: bold;
    padding-left: 8px;
}

.box-foot, .box-foot-dl, .box-foot-add2lb {
    font-size: 11px;
    border-bottom: 1px solid lightgrey;
    height: 22px;
    line-height: 20px;
}

.box-txt-dl {
    position: absolute;
    bottom: 34px;
    right: 20px;
    font-size: 13px;
    font-weight: bold;
}

.box-foot {
    border-top: 1px solid lightgrey;
}
.box-foot i {
    color: orange;
}

.box-foot-dl a:hover, .box-txt-dl a:hover, .box-foot-add2lb a:hover {
    color: orange;
}

.box-foot-dl i, .box-txt-dl i, .box-foot-add2lb i {
    margin-left: 5px;
    margin-right: 6px;
}

.check-foto {
    position: absolute;
    padding: 2px 4px;
    height: 18px;
}

.check-foto input[type=checkbox] {
    accent-color: orange;
    /*cursor: pointer;*/
}

.premium {
    background-color: orange;
}

.box-foot input {
    width: 12px;
}

.box-foot label i {
    margin: 0 2px 0 5px;
}

.box-foot label {
    margin-left: 18px;
}

.offerta-txt {
    width: 50%;
    max-width: 50%;
    margin: 20px 0;
    position: relative;
}

@media (max-width: 1040px) {
    .offerta-txt {
        flex: 100%;
        max-width: 100%;
    }
}

.box-cont-txt .box-img-cont {
    margin: 0 !important;
}

.box-cont-txt {
    display: flex;
    margin: 0 20px;
    border-top: 4px solid lightgrey;
    padding-bottom: 27px;
}

.box-cont-txt a {
    flex: 1;
}

.foto-txt-cont {
    flex: 2.6;
    padding: 0 12px;
}

.foto-tit-txt {
    font-size: 14px;
    font-weight: bold;
    padding-top: 8px;
    padding-bottom: 8px;
}

.foto-txt-row {
    padding-bottom: 4px;
}

.foto-txt-label {
    display: table-cell;
    width: 100px;
    color: orange;
    font-weight: bold;
    font-size: 13px;
}

.foto-txt {
    display: table-cell;
    font-size: 13px;
}

.box-foot-txt {
    display: flex;
    margin: 0 20px;
    border-top: 1px solid lightgrey;
    border-bottom: 1px solid lightgrey;
    line-height: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 26px;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
}

.check-txt i {
    color: orange;
    float: right;
    margin: 5px 12px 0 0;
}

.check-txt input[type=checkbox] {
    accent-color: orange;
    /*cursor: pointer;*/
}

.check-txt {
    flex: 1;
    padding-left: 6px;
    display: flex;
}

.premium-label-cont {
    flex-grow: 1;
    text-align: center;
    line-height: 20px;
}

.box-foot-txt label {
    flex: 2.7;
    padding-right: 10px;
}
.navbar {
    display: flex;
    padding-top: 6px;
    border-top: 1px solid lightgrey;
}

.navb, .navlb, .navlb2 {
    display: inline;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
}

.navb, .navlb {
    text-align: left;
}

.navlb2 {
    text-align: right;
}
.navb {
    width: 35%;
}

.navlb {
    width: 55%;
}

.navlb2 {
    width: 45%;
}

.navb i, .navlb i, .navlb2 i {
    font-size: 16px;
}

.navb a, .navlb a {
    margin-right: 12px;
    text-wrap: nowrap;
}

.navlb2 a {
    margin-left: 12px;
    text-wrap: nowrap;
}

.navb a:hover, .navlb a:hover, .navlb2 a:hover {
    color: orange;
}

.navp {
    display: inline;
    width: 30%;
    text-align: center;
    font-size: 14px;
}

.navp a.prev {
    font-weight: bold;
    margin-right: 12px;
}

.navp a.next {
    font-weight: bold;
    margin-left: 12px;
}

.navp input {
    border: 1px solid #0f0f0f;
    width: 50px;
    text-align: center;
    font-size: 14px;
}

.curp, .box-foot-add2lb {
    display: none;
}
.fpp {
    font-size: 12px;
    display: inline;
    width: 35%;
    text-align: right;
}

.fpp span {
    background-color: orange;
    padding: 2px;
    border: 1px solid;
}

.fpp a {
    background-color: #F0F0F0;
    padding: 2px;
    border: 1px solid;
}

.fpp1, .fpp2, .fpp3 {
    text-wrap: nowrap;
    display: inline-block
}
/* The Modal (background) */
.modal {
    /*display: none; !* Hidden by default *!*/
    visibility: hidden; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 40px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

/* The Close Button */
.modal .close {
    color: #fefefe;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: -50px 0 0 758px;
    position: absolute;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
#popzoom-carousel {
}
.pop-row {
    display: flex;
    padding-bottom: 4px;
}
.pop-label {
    color: orange;
    font-weight: bold;
    width: 140px;
    font-size: 13px;
}
.pop-text {
    min-width: 260px;
    flex-shrink: 1000;
    font-size: 13px;
}

.premium-label {
    display: inline-block;
    font-size: 10px;
    background-color: orange;
    color: white;
    font-weight: bold;
    line-height: 16px;
    padding: 0 4px;
}
.pop-label2 {
    color: orange;
    font-weight: bold;
    width: 150px;
    font-size: 13px;
}
.pop-text2 {
    min-width: 90px;
    font-size: 13px;
}

.pop-label3 {
    color: orange;
    font-weight: bold;
    width: 40px;
    font-size: 13px;
}
.pop-text3 {
    font-size: 13px;
}

.pop-toolbar {
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    padding-bottom: 4px;
    border-bottom: 1px solid lightgray;
    margin-bottom: 12px;
}
.pop-toolbar a {
    margin-left: 12px;
    text-wrap: nowrap;
}
.pop-toolbar a:hover {
    color: orange;
}

.pop-prev, .pop-next {
    font-size: 24px;
    cursor: pointer;
}
.pop-prev:hover, .pop-next:hover {
    color: orange;
}
.pop-prev {
    float: left;
}
.pop-next {
    float: right;
}

#pagina, .pag-form {
    max-width: 900px;
    margin: auto;
    line-height: 2;
    font-size: 16px;
}

#pagina h1 {
    margin: 32px 0 0 0;
    padding: 0;
    color: orange;
    font-weight: bold;
    font-size: 24px;
}

#pagina h2 {
    margin: 18px 0 0 0;
    padding: 0;
    color: orange;
    font-weight: bold;
    font-size: 20px;
}

#pagina h3 {
    margin: 12px 0 0 0;
    padding: 0;
    font-weight: bold;
    font-size: 16px;
}

#pagina p {
    margin: 0;
    padding: 0;
}

#pagina ol.firstlevel {
    counter-reset: section;
    padding-left: 0;
}

#pagina ol.nested {
    counter-reset: section;
    padding-left: 0;
}

#pagina ol.firstlevel li, #pagina ol.nested li {
    display: inline-block;
}

#pagina ol.firstlevel h2, #pagina ol.firstlevel h3, #pagina ol.nested h2, #pagina ol.nested h3 {
    display: inline;
}

#pagina ol li.h2 {
    margin: 18px 0 0 0;
}

#pagina ol li.h3 {
    margin: 12px 0 0 0;
}

#pagina ol.firstlevel li::before {
    counter-increment: section;
    content: counters(section, ".") ". ";
    padding-right: 5px;
}

#pagina ol.nested li::before {
    counter-increment: section;
    content: counters(section, ".") " ";
    padding-right: 5px;
}

#pagina ol.nested {
    padding-left: 20px;
}

#pagina ol li.h2::before {
    color: orange;
}

#pagina ol li::before {
    font-weight: bold;
}

#pagina a {
    text-decoration: underline;
}

#pagina a:hover {
    text-decoration: underline;
    color: orange;
}

.error {
    margin-top: 40px;
    color: red;
    font-weight: bold;
}

.msg {
    margin-top: 40px;
    font-weight: bold;
}

.adv-rem {
    cursor: pointer;
    margin-left: 10px;
    color: orange;
    font-size: 24px;
    line-height: 38px;
}

.adv-button {
    background-color: orange;
    font-weight: bold;
    color: #FFFFFF;
    padding: 0 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.advitem, .advitem1, .advitem2 {
    display: flex;
}

.advitem1 {
    flex-grow: 1;
}
.op1 {
    width: 80px !important;
    margin-right: 20px;
}

.op2 {
    width: 200px !important;
    margin-left: 20px;
}

.adv-search-filter {
    border-top: 1px solid lightgray;
    margin-top: 10px;
    padding-top: 10px;
}

.adv-search-filter span {
    font-weight: bold;
    color: orange;
    margin-right: 12px;
    display: inline-block;
}

.adv-search-filter input {
    margin-right: 6px;
}

.adv-search-filter label {
    margin-right: 24px;
}

.adv-search-filter label.last-item {
    margin-right: 6px !important;
}

.adv-esatta {
    float: left;
}

.adv-esatta label {
    font-weight: bold;
    color: orange;
    cursor: pointer;
}

.adv-esatta input[type=checkbox] {
    accent-color: orange;
    cursor: pointer;
}

.check-cont, .date-cont {
    display: inline-flex;
    flex-wrap: wrap;
}

.date-item {
    display: inline-block;
    margin-left: 6px;
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
    }

    header, footer, h1, .navbar, #add2lightbox, .pop-toolbar, .pop-prev, .pop-next, .close {
        display: none !important;
    }

    .owl-item {
        visibility: hidden;
    }

    .active {
        visibility: visible;
    }

    .modal-content {
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
        width: 750px;
    !important;
        overflow: unset !important;
    }
}

#lock {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0.4;
    cursor: wait;
    display: none;
}
