@media (orientation: portrait) {

    /* @media screen and (max-width: 1023px) { */
    .landscape {
        display: none !important;
    }

    .myCarousel {
        height: 100%;
    }

    .fill-screen {
        margin-bottom: .5rem;
        min-height: 10vh;
        background-color: #fff;
        /* serve a non far caricare tutte le pagine */
    }

    .fill-screen img {
        width: 100% !important;
        height: auto !important;
    }

    .main {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #Main.showcanvas {
        padding: .5rem;
        background-color: #37383d;
    }

    #Main.showcanvas .header {
        border-radius: .5rem .5rem 0 0;
    }

    .header {
        z-index: 1;
    }

    .header .w-15 {
        max-width: 5rem;
        text-align: center;
    }

    .header .logo {
        max-width: 25rem;
        margin: auto;
    }

    .header .logo img {
        max-height: 6.5vh;
        width: auto;
    }

    .footer {
        border-top: 0.1rem solid #ddd;
    }

    .footer>.position-relative {
        padding: 0 .8rem;
    }

    .footer .px-3 {
        padding-left: 1.2rem !important;
        padding-right: 1.2rem !important;
    }

    .footer img {
        max-height: 3rem;
        width: auto;
    }

    .footer div {
        text-align: center;
    }

    .footer div.position-relative {
        width: fit-content;
    }

    .header-nav {
        /* background-color: #37383d; */
    }

    .header-nav .nav-pills .nav-link.active,
    .header-nav .nav-pills .show>.nav-link {
        color: #fff;
        background-color: #e1081b;
        font-size: .75rem;
        padding: .35rem
    }

    .header-nav .nav-pills .nav-link {
        color: #303136;
        background-color: #ddd;
        /* font-size: .7rem; */
        text-transform: uppercase;
        font-weight: 600;
        margin: 0 .3rem;
        height: fit-content;
        /* padding: .3rem */

        font-size: .75rem;
        padding: .35rem
    }

    .offcanvas.offcanvas-bottom {
        --bs-offcanvas-height: 97%;
        border-radius: .5rem .5rem 0 0;
    }

    .offcanvas-header {
        border-radius: .5rem .5rem 0 0;
    }

    .offcanvas-header img {
        height: auto;
    }

    .img_vol>div img {
        max-width: 1.2rem !important;
        max-height: 1.2rem;
    }

    #accordionFamiglie .col.space,
    .res_cerca_nel_volantino .col.space,
    #accordionMeccaniche .col.space {
        padding: 0 .5rem 0 0;
    }

    .col.space .card-body {
        padding: .5rem;
    }

    .col.space .card-body p.text-ellipsis {
        height: 1.25rem;
        -webkit-line-clamp: 1;
        font-size: .8rem;
    }

    #volTabContent>div {
        overflow-y: auto !important;
        height: 100%;
        background-color: #37383d;
        overflow-x: hidden;
    }

    .offcanvas-bottom .offcanvas-header>div>span {
        top: .5rem;
        left: .5rem;
        opacity: .5;
    }

    .img_vol .info img {
        max-width: 1.8rem !important;
        max-height: 1.8rem;
    }

    .img_vol>div img.flash {
        opacity: 0;
        animation: fadeOut ease 1s;
    }

    #punti_vendita {}

    #offcanvasPuntiVendita>.offcanvas-body>div:nth-child(1) {
        max-height: 30vh;
        position: fixed;
        bottom: 0;
        overflow: auto;
        z-index: 9;
        border-radius: 1rem 1rem 0 0;
    }

    #toast_lista,
    #toast_lista .toast,
    #toast_condividi,
    #toast_condividi .toast {
        width: 100%;
    }

    .toast-header>img {
        max-width: 3.5rem;
    }

    ul.list-interessati>li {
        min-width: 45%;
        background-color: #fff;
        padding: .5rem;
        margin-left: .5rem;
    }

    ul.list-interessati>li .card {
        height: 100%;
    }

    ul.list-interessati>li .card img {
        height: auto;
        width: 100%;
    }

    .nav-popup a {
        flex-direction: column;
        font-size: .7rem;
    }

    .nav-popup {
        position: absolute;
        bottom: 0;
        border-top: 1px solid #eee;
        z-index: 9;
    }

    .product-item-preview {
        background-position: center;
        background-size: 100% auto;
        border-radius: 0.5rem;
        height: 15vh;
        image-rendering: -moz-crisp-edges;
        image-rendering: -o-crisp-edges;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -ms-interpolation-mode: nearest-neighbor;
    }

    #promozioni-tab .meccanica>img,
    #categorie-tab .meccanica>img {
        /* max-height: 3rem; */
        max-width: 3.7rem;
    }

    #promozioni-tab span {
        font-size: .9rem;
        max-width: 50%
    }

    #promozioni-tab span.data_scadenza {
        font-size: 80% !important;
        max-width: 100% !important;
    }    

    .card-body .fs-7 {
        font-size: .5rem !important;
    }

    .card-body .meccanica>img {
        max-height: 2.5rem !important;
    }

    .card-body .meccanica {
        width: 70%;
    }

    #categorie-tab span {
        font-size: .9rem;
        text-transform: uppercase;
        max-width: 50%;
    }

    #res-input-cerca>div {
        height: auto !important;
    }

    #accordionFamiglie,
    #accordionMeccaniche {
        scroll-behavior: smooth;
        overflow-y: auto;
    }

    .accordion-button:not(.collapsed) {
        color: var(--bs-accordion-btn-color);
        background-color: var(--bs-accordion-btn-bg);
        border-bottom: 1px solid #eee;
    }

    .accordion-button.meccanica>div {
        max-width: 25%;
    }

    .accordion-button.meccanica>div>img {
        max-height: 5rem;
    }

    .card .figure {
        padding: 1rem;
    }

    .card .bollino {
        max-width: 30%;
        height: auto;
    }

    .accordion-body .col {}

    .sticker img {
        max-height: 3rem;
    }

    .card-body .text-ellipsis,
    p.text-ellipsis {
        height: 3rem;
        overflow: hidden;
        /* line-height: 1.3rem; */
    }

    .card-body .text-ellipsis .card-title {
        font-size: .8rem;
        /* max-height: 2rem; */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1rem;
    }

    .card-body .text-ellipsis .card-text {
        font-size: .7rem;
        line-height: 1rem;
    }

    .accordion-body .card-body {
        padding: 0 .3rem .5rem;
    }

    .col.space .btn {
        font-size: .65rem;
    }

    .card>figure>a>img {
        width: 2rem;
        height: 2rem;
    }

    .form_content {
        /* flex-direction: column; */
        overflow-y: auto;
    }

    .portrait .filtro-menu .filtro-list {
        opacity: .6;
        font-size: .8rem;
        padding: .3rem 1.5rem;
    }

    .portrait .filtro-menu .filtro-list.active {
        opacity: 1;
    }

    .portrait .filtro-content p.text-ellipsis {
        height: 2.4rem !important;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .portrait .filtro-content img {
        max-width: 4rem
    }

    .nav-popup a>span {
        position: absolute;
        top: 0.2rem;
        right: 0.8rem;
        color: #fff;
        font-size: .7rem;
        padding: 0.3rem;
        font-weight: 600;
        background-color: red;
        border-radius: 50%;
        height: 1.3rem;
        width: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #offcanvasMobile {
        z-index: 1055;
    }

    video[poster] {
        height: 100%;
        object-fit: cover;
    }

    .card-body .input-counter input {
        height: 2.1rem;
    }

    #offcanvasPagine a>img {
        width: -webkit-fill-available;
    }

    #offcanvasMobile .col-lg-6 {
        padding: 0;
    }

    #CybotCookiebotDialog {
        max-width: 80%;
        max-height: 80%;
    }

    #volantino-tab {
        touch-action: auto !important;
    }

    .carousel-mob img {
        max-height: 40vh;
        width: auto;
    }

    .header img {
        max-height: 3rem;
        width: auto;
    }

    .prezzo_base {
        font-size: .5rem;
    }

    /*
    * ===================================
    * by variante 2
    * ===================================
    */

    .header {
        transition: all 0.5s;
        -webkit-transition-duration: 0.5s;
        min-height: 7vh;
    }

    #top-filter {
        background-color: #fff;
        overflow-x: auto;
        width: 100%;
        position: relative;
        height: 5vh;
    }

    #top-filter>a {

        font-weight: 600;
        margin: 0 0.3rem;
        font-size: .9rem;
        display: flex;
        align-items: center;
        color: #999;
    }

    .iXpert {
        height: calc(90vh);
        overflow-y: auto;
    }

    .col.pro-horizontal {
        width: 100%;
    }

    .col.pro-horizontal .btn-expert {
        font-size: 1.6rem !important;
    }

    .col.pro-horizontal .card-body .text-ellipsis .card-title {
        font-size: 1.1rem !important;
    }

    .col.pro-horizontal figure>img {
        height: 100%;
        width: auto !important;
        max-width: fit-content;
    }

    .col.pro-horizontal figure {
        max-height: 60vw;
        text-align: center;
    }

    .col.pro-horizontal .card .bollino {
        max-width: 20%;
    }

    .vd-none {
        min-height: 50vh;
        position: absolute;
        width: 100%;
        top: 0;
    }

    #Main.scrollDown .vd-none {
        top: 0;
    }

    #Main.scrollUp .vd-none {
        top: auto;
        bottom: 0;
    }

    .m-product {
        margin-bottom: auto;
    }

    .card_prezzo {
        min-height: 3rem;
        display: flex;
        align-items: end;
        flex-direction: column;
        justify-content: center;
    }

    .figure-background {
        min-height: 10rem;
    }    

    .select_attributi {
        margin-bottom: .3rem;
    }
}