/* Biscottificio Di Mino - Schede prodotto vetrina */

body#product .socialsharing_product,
body#product #usefull_link_block,
body#product #product_condition,
body#product .new-box {
    display: none !important;
}


/* Di Mino - Disattiva Quick View */
body#category .product-block .quick-view {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Di Mino - Nasconde la barra funzioni al passaggio del mouse */
body#category .product_list .product-block .functional-buttons,
body#category .product_list .product-block:hover .functional-buttons {
    display: none !important;
}

/* Di Mino - Allineamento blocchi spedizione e contatti */

body#index .animation_col_113 .block_content > div {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100% !important;
}

body#index .animation_col_113 .block_content > div > div {
    float: none !important;
    width: calc((100% - 40px) / 3) !important;
    height: auto !important;
    min-width: 0;
    box-sizing: border-box;
}

body#index .animation_col_113 .block_content img {
    max-width: 100% !important;
    height: auto !important;
}

body#index .animation_col_113 .block_content > div > div:nth-child(2) {
    font-size: 20px !important;
    line-height: 1.4;
}


/* DI MINO - Responsive smartphone spedizione e contatti */

@media screen and (max-width: 767px) {

    body#index .animation_col_113 .block_content > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
    }

    body#index .animation_col_113 .block_content > div > div {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    body#index .animation_col_113 .block_content img {
        display: block !important;
        width: auto !important;
        max-width: 90% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    body#index .animation_col_113 .block_content a[href^="tel:"] {
        font-size: 20px !important;
        white-space: nowrap !important;
    }
}


/* Di Mino - Nasconde collegamenti utente barra verde */
#topbar .header_user_info {
    display: none !important;
}

/* Biscottificio Di Mino - Elimina intera barra verde superiore */
#topbar {
    display: none !important;
}


/* Di Mino - Avvicina il menu alla parte alta */
@media (min-width: 992px) {
    #header-main {
        transform: translateY(-100px);
    }
}

/* Di Mino - Riduce spazio sopra la descrizione */
#leo-footer-top {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Riduce spazio interno sopra il titolo */
#leo-footer-top .footer-block {
    padding-top: 20px !important;
}


/* Di Mino - Footer bianco e pulito */

#footer,
#footer .footer-top,
#footer .footer-center,
#footer .footer-bottom,
#leo-footer-top {
    background-color: #ffffff !important;
    background-image: none !important;
}

#footer::before,
#footer::after,
#leo-footer-top::before,
#leo-footer-top::after {
    background-image: none !important;
}

/* Di Mino - Riduce lo spazio tra descrizione e footer */

body#index #leo-footer-top {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

body#index #leo-footer-top .inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

body#index #footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body#index #footer .footer-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Di Mino - Spaziatura definitiva footer */
#leo-footer-center {
    padding-top: 20px !important;
    padding-bottom: 25px !important;
}

body#index #leo-footer-center #backtop {
    top: 18px !important;
}

body#index #bottom {
    min-height: 0 !important;
    height: auto !important;
    padding: 25px 0 !important;
    margin: 0 !important;
    background-image: none !important;
    background-color: #ffffff !important;
}

body#index #bottom .container {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body#index #bottom .widget {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body#index #bottom::before,
body#index #bottom::after {
    content: none !important;
}


/* DI MINO - Descrizione aziendale visibile su smartphone */

@media screen and (max-width: 767px) {

    body#index #leo-footer-top,
    body#index #leo-footer-top .footer-block,
    body#index #leo-footer-top .widget,
    body#index #leo-footer-top .block_content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body#index #leo-footer-top .widget {
        width: 100% !important;
        float: none !important;
    }

    body#index #leo-footer-top h2,
    body#index #leo-footer-top h3,
    body#index #leo-footer-top p {
        color: #333333 !important;
        opacity: 1 !important;
    }
}

/* DI MINO - STORIA SOVRAPPOSTA ALL'IMMAGINE */

body#index #center_column {
    position: relative !important;
}

body#index #dimino-storia-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1050px;
    z-index: 50;
    text-align: center;
}

body#index #dimino-storia-overlay .dimino-storia-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 35px !important;
    background: rgba(255,255,255,0.90) !important;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

body#index #dimino-storia-overlay h2,
body#index #dimino-storia-overlay p {
    color: #222222 !important;
    line-height: 1.7 !important;
}

body#index #dimino-storia-overlay h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
}

body#index #dimino-storia-overlay p {
    font-size: 18px !important;
}

/* RESPONSIVE SMARTPHONE */

@media (max-width: 767px) {
    body#index #dimino-storia-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 94%;
        margin: 0 auto;
        padding: 25px 0;
    }

    body#index #dimino-storia-overlay .dimino-storia-content {
        padding: 20px 15px !important;
    }

    body#index #dimino-storia-overlay h2 {
        font-size: 25px !important;
    }

    body#index #dimino-storia-overlay p {
        font-size: 15px !important;
    }
}

body#index #leo-footer-top {
    display: none !important;
}



/* DI MINO - FOOTER ULTRA COMPATTO */

body#index #footer,
body#index #leo-footer-center,
body#index #footernav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

body#index #leo-footer-center .container,
body#index #leo-footer-center .container > .inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Riquadro principale */
body#index #leo-footer-center
.footer-block .block_content > div {
    padding: 5px 10px !important;
    margin: 0 auto !important;
}

/* Titolo */
body#index #leo-footer-center h2 {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
}

/* Descrizione e contatti */
body#index #leo-footer-center
.footer-block .block_content p {
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

/* Copyright */
body#index #footernav {
    padding: 5px 0 !important;
}

/* DI MINO - MENU PRINCIPALE DESKTOP */

@media (min-width: 992px) {

    #header-main #header-right #cavas_menu,
    #header-main #header-right #leo-top-menu {
        width: 100% !important;
    }

    /* Distribuisce le tre voci sulla barra */
    #leo-top-menu > ul.nav.navbar-nav.megamenu {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        align-items: center !important;
        justify-content: space-evenly !important;
    }

    /* Ogni voce occupa un terzo dello spazio */
    #leo-top-menu > ul.megamenu > li {
        flex: 1 1 33.333% !important;
        float: none !important;
        text-align: center !important;
    }

    /* Testi centrati */
    #leo-top-menu > ul.megamenu > li > a {
        display: block !important;
        text-align: center !important;
        padding: 35px 10px !important;
        white-space: nowrap !important;
        font-size: 15px !important;
    }

    /* Elimina il separatore finale */
    #leo-top-menu > ul.megamenu > li:last-child::after,
    #leo-top-menu > ul.megamenu > li:last-child::before,
    #leo-top-menu > ul.megamenu > li:last-child > a::after,
    #leo-top-menu > ul.megamenu > li:last-child > a::before {
        content: none !important;
        display: none !important;
    }
}

/* DI MINO - MEGAMENU SOPRA CONTENUTI CATEGORIE */

@media (min-width: 992px) {

    /* Porta tutto l'header sopra i contenuti */
    body#category #header {
        position: relative !important;
        z-index: 99999 !important;
        overflow: visible !important;
    }

    body#category #header-main {
        position: relative !important;
        z-index: 99999 !important;
        overflow: visible !important;
    }

    /* Evita che i contenitori taglino il menu */
    body#category #header .header-container,
    body#category #header-main .container,
    body#category #header-main .inner,
    body#category #header-right,
    body#category #cavas_menu {
        overflow: visible !important;
    }

    /* Menu principale */
    body#category #leo-top-menu {
        position: relative !important;
        z-index: 100000 !important;
        overflow: visible !important;
    }

    /* Tendine categorie */
    body#category #leo-top-menu .dropdown-menu,
    body#category #leo-top-menu .dropdown-sub {
        z-index: 100001 !important;
    }

    /* Contenuti della pagina sotto al menu */
    body#category #columns {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* DI MINO - MEGAMENU NELLE SCHEDE PRODOTTO */

@media (min-width: 992px) {

    body#product #header,
    body#product #header-main {
        position: relative !important;
        z-index: 99999 !important;
        overflow: visible !important;
    }

    body#product #header-main .container,
    body#product #header-main .inner,
    body#product #header-right,
    body#product #cavas_menu {
        overflow: visible !important;
    }

    body#product #leo-top-menu {
        position: relative !important;
        z-index: 100000 !important;
    }

    body#product #columns {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* DI MINO - MENU SOPRA I CONTENUTI DELLE PAGINE CMS */

@media (min-width: 992px) {

    body#cms #header,
    body#cms #header .header-container,
    body#cms #header-main {
        position: relative !important;
        z-index: 99999 !important;
        overflow: visible !important;
    }

    body#cms #header-main .container,
    body#cms #header-main .inner,
    body#cms #header-right,
    body#cms #cavas_menu {
        overflow: visible !important;
    }

    body#cms #leo-top-menu {
        position: relative !important;
        z-index: 100000 !important;
    }

    body#cms #leo-top-menu .dropdown-menu,
    body#cms #leo-top-menu .dropdown-sub {
        z-index: 100001 !important;
    }

    body#cms #columns {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Disattiva solo il link errato nello slideshow */

body#index #slideshow a[href*="ricci-di-mandorla-e-pistacchio"] {
    pointer-events: none !important;
    cursor: default !important;
}

/* DI MINO - I TRADIZIONALI: HOVER PULITO */

/* Nasconde Quick View */
body#index [id^="leoproductcarousel"] .quick-view {
    display: none !important;
}

/* Elimina gli overlay sulle immagini */
body#index [id^="leoproductcarousel"] .product_img_link::before,
body#index [id^="leoproductcarousel"] .product_img_link::after {
    display: none !important;
    content: none !important;
}

/* Elimina sfondo e animazioni dei riquadri */
body#index [id^="leoproductcarousel"] .product-block .right-block,
body#index [id^="leoproductcarousel"] .product-block:hover .right-block {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    margin-top: 0 !important;
    transition: none !important;
}

/* Mantiene le immagini sempre visibili */
body#index [id^="leoproductcarousel"] .product_img_link img,
body#index [id^="leoproductcarousel"] .product_img_link:hover img {
    opacity: 1 !important;
    filter: none !important;
}


/* DI MINO - RIMOZIONE BARRA HOVER E QUICK VIEW */

body#index .product_list.grid .product-block .functional-buttons {
    display: none !important;
}

/* RIMUOVE LE / DAL MENU PRINCIPALE */

@media (min-width: 992px) {

    #leo-top-menu .navbar-nav > li::before,
    #leo-top-menu .navbar-nav > li::after,
    #leo-top-menu .navbar-nav > li > a::before,
    #leo-top-menu .navbar-nav > li > a::after,
    #leo-top-menu .navbar-nav > li > a .menu-title::before,
    #leo-top-menu .navbar-nav > li > a .menu-title::after,
    #leo-top-menu .navbar-nav > li > a .caret::before,
    #leo-top-menu .navbar-nav > li > a .caret::after {
        content: none !important;
        display: none !important;
    }

}

/* DI MINO - FASCIA SLIDER SOLO MOBILE */
@media (max-width: 767px) {
    body#index #slideshow .bannercontainer::before {
        display: none !important;
    }
}