.elementor-51937 .elementor-element.elementor-element-7b020d0{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:center;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-51937 .elementor-element.elementor-element-351eebf{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:space-evenly;--gap:0px 020px;--row-gap:0px;--column-gap:020px;}.elementor-51937 .elementor-element.elementor-element-2918109{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:50px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-51937 .elementor-element.elementor-element-2918109.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-51937 .elementor-element.elementor-element-5d42b7e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-51937 .elementor-element.elementor-element-5d42b7e.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-51937 .elementor-element.elementor-element-576b211{--display:flex;--min-height:0px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:flex-start;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-51937 .elementor-element.elementor-element-91ea833{width:100%;max-width:100%;margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}.elementor-51937 .elementor-element.elementor-element-91ea833.elementor-element{--flex-grow:0;--flex-shrink:0;}.elementor-51937 .elementor-element.elementor-element-2dea55d > .elementor-widget-container{margin:40px 0px 40px 0px;}.elementor-51937 .elementor-element.elementor-element-3bd149f{--display:flex;--min-height:0px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:flex-start;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-51937 .elementor-element.elementor-element-fb6d46c{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 020px) 0px;}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-products{--products-title-color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.products-heading-show .related-products > h2, .elementor-widget-woocommerce-products.products-heading-show .upsells > h2, .elementor-widget-woocommerce-products.products-heading-show .cross-sells > h2{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price ins{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price ins .amount{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del .amount{color:var( --e-global-color-primary );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del {font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-woocommerce-products.elementor-wc-products .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-51937 .elementor-element.elementor-element-4dbd566.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}.elementor-51937 .elementor-element.elementor-element-4dbd566.elementor-wc-products ul.products li.product span.onsale{display:block;}@media(max-width:1440px){.elementor-51937 .elementor-element.elementor-element-7b020d0{--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.products-heading-show .related-products > h2, .elementor-widget-woocommerce-products.products-heading-show .upsells > h2, .elementor-widget-woocommerce-products.products-heading-show .cross-sells > h2{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del {font-size:var( --e-global-typography-primary-font-size );}}@media(max-width:1024px){.elementor-51937 .elementor-element.elementor-element-7b020d0{--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--align-items:center;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.products-heading-show .related-products > h2, .elementor-widget-woocommerce-products.products-heading-show .upsells > h2, .elementor-widget-woocommerce-products.products-heading-show .cross-sells > h2{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del {font-size:var( --e-global-typography-primary-font-size );}.elementor-51937 .elementor-element.elementor-element-4dbd566.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(max-width:767px){.elementor-51937 .elementor-element.elementor-element-351eebf{--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-51937 .elementor-element.elementor-element-2918109{--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-51937 .elementor-element.elementor-element-5d42b7e{--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:15px;--padding-bottom:15px;--padding-left:15px;--padding-right:15px;}.elementor-51937 .elementor-element.elementor-element-576b211{--min-height:0px;}.elementor-51937 .elementor-element.elementor-element-3bd149f{--min-height:0px;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.products-heading-show .related-products > h2, .elementor-widget-woocommerce-products.products-heading-show .upsells > h2, .elementor-widget-woocommerce-products.products-heading-show .cross-sells > h2{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price{font-size:var( --e-global-typography-primary-font-size );}.elementor-widget-woocommerce-products.elementor-wc-products ul.products li.product .price del {font-size:var( --e-global-typography-primary-font-size );}.elementor-51937 .elementor-element.elementor-element-4dbd566.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(min-width:768px){.elementor-51937 .elementor-element.elementor-element-7b020d0{--width:100%;}.elementor-51937 .elementor-element.elementor-element-351eebf{--width:95%;}.elementor-51937 .elementor-element.elementor-element-2918109{--width:20%;}.elementor-51937 .elementor-element.elementor-element-5d42b7e{--width:82%;}.elementor-51937 .elementor-element.elementor-element-576b211{--width:93%;}.elementor-51937 .elementor-element.elementor-element-3bd149f{--width:93%;}}@media(max-width:1440px) and (min-width:768px){.elementor-51937 .elementor-element.elementor-element-5d42b7e{--width:646px;}}@media(max-width:1024px) and (min-width:768px){.elementor-51937 .elementor-element.elementor-element-5d42b7e{--width:100%;}}/* Start custom CSS for mio_prodotti_tab, class: .elementor-element-2dea55d */.mio-tabs-wrapper .mio-widget-products .product .button {
    background-color: #94bc37 !important;
    color: #ffffff !important;
}
/* Applica queste modifiche solo su mobile */
@media (max-width: 767px) {
    
    /* Assicuriamoci che il contenitore dei prodotti permetta l'affiancamento */
    .mio-tabs-wrapper .mio-widget-products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important; /* Distribuisce lo spazio tra i due prodotti */
        gap: 10px !important; /* Opzionale: aggiunge un po' di spazio tra le colonne */
    }

    /* Modifica il singolo prodotto per occupare circa il 50% */
    .mio-tabs-wrapper .mio-widget-products .product {
        /* Usiamo calc(50% - margine) per farne stare due precisi */
        flex: 0 0 calc(50% - 5px) !important; 
        width: calc(50% - 5px) !important;
        
        /* Riduciamo leggermente il padding per far stare i testi su schermi piccoli */
        padding: 10px !important; 
        box-sizing: border-box !important;
    }
}/* End custom CSS */
/* Start custom CSS */ul.products li.product .button  {   

    text-transform: none !important;
    font-style: normal !important;
    text-decoration: none !important;}
    

    
.tax-product_cat #sopra{display: none}

body.woocommerce ul.products li.product
{padding: 0px !important}

body.woocommerce ul.products li.product a {
    padding: 0px !important; 
    margin: 0px }

body.woocommerce ul.products li.product .price {margin: 10px 0px 0px 0px !important}

body.woocommerce ul.products li.product a.button  { margin-bottom: 20px !important;
    width: 90%;
    text-align: center !important;
}





.mio-tabs-content li.product .button {
    margin-top: 20px !important;
    width: 100%;
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    border: none !important;
    padding: 12px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s ease !important;
}



.price ins .amount {
    color: #94bc37 !important;
}
    /* Titolo (più piccolo e forzato) */
.woocommerce .products .product .woocommerce-loop-product__title{
  position:relative; z-index:1;
  font-size:16px !important; line-height:1.3 !important;
  color:var(--text) !important; font-weight:700 !important;
  margin:12px 16px 8px 16px !important;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}



/* --- Elementi Interni alla Card (STILE AGGIORNATO) --- */

/* Etichetta "In Offerta!" */
body.woocommerce ul.products li.product span.onsale {
    position: absolute !important;
    margin: 0 !important;
    background-color: #94bc37 !important;
    border-radius: 8px !important;
    padding: 13px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    z-index: 2;
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 0;
  border-radius: 20px 0 20px 0 !important
    
    
}



/*
================================================================
CSS UNIFICATO PER IL LOOP PRODOTTI (Versione Definitiva)
================================================================
*/



/* --- Variabili Globali e Sfondo Pagina --- */
:root {
    --page-bg: #f6f7fb;
    --card-bg: #ffffff;
    --text-color: #111827;
    --price-color: #16a34a; 
    --sale-badge-bg: #84cc16;
    --button-bg: #f3f4f6;
    --button-text: #4b5563;
    --button-bg-hover: #e5e7eb;
    --card-radius: 20px;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 45px rgba(0, 0, 0, 0.1);
}

body.woocommerce {
    background: var(--page-bg);
}

/* --- Griglia Principale dei Prodotti --- */
body.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    
}

/* --- Stile della Card Prodotto --- */
body.woocommerce ul.products li.product {
    background: var(--card-bg) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 0px !important;
    text-align: center !important;
    position: relative !important; /* Fondamentale per posizionare il badge */
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin: 0 !important;
    border: 1px solid #f3f4f6 !important;
    display: flex !important;
       align-items: center;
       flex-direction: column !important;
}

body.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
}

body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    margin-bottom: 15px;
    color: var(--text-color);
}




/* Immagine del prodotto */
body.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}

/* Titolo del prodotto (ora completo su più righe) */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 5px !important;
    /* Le regole per troncare il testo sono state rimosse */
    min-height: 3.2em; /* Aggiunto per allineare i box anche con titoli di lunghezza diversa (spazio per 2 righe) */
}

/* Prezzo */
body.woocommerce ul.products li.product .price {
   
    font-size: 20px !important;
    font-weight: 700 !important;
    display: block !important;
    margin: 15px 0 !important;
}

/* Stile prezzo barrato */
body.woocommerce ul.products li.product .price del {
    opacity: 0.6;
    margin-right: 8px;
    font-weight: 400;
}

/* Pulsante "Aggiungi al Carrello" */
body.woocommerce ul.products li.product .button {
    margin-top: auto !important; /* Spinge il pulsante sempre in basso */
    width: 100%;
    background-color: #94bc37 !important;
    color: white !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    border: none !important;
    padding: 12px !important;
   line-height: 20px !important;
    transition: background-color 0.2s ease !important;
}

body.woocommerce ul.products li.product .button:hover {
    background-color: var(--button-bg-hover) !important;
}


/* --- RIMOZIONI (Wishlist, Rating, Swatches) --- */
body.woocommerce .products:before {display:none;}
body.woocommerce .yith-wcwl-add-to-wishlist, 
body.woocommerce .tinvwl-add-to-wishlist, 
body.woocommerce .add_to_wishlist,
body.woocommerce .woosw-btn, 
body.woocommerce .wl-add-to, 
body.woocommerce .star-rating, 
body.woocommerce .woocommerce-product-rating, 
body.woocommerce .woocommerce-review-link, 
body.woocommerce .wvs-archive-variations, 
body.woocommerce .woo-variation-swatches, 
body.woocommerce .variable-items-wrapper, 
body.woocommerce .swatchly-archive-variations, 
body.woocommerce .tawcvs-swatches, 
body.woocommerce .thwvs-archive-variation-wrapper, 
body.woocommerce .product-attribute-swatch, 
body.woocommerce .product-loop-swatch { 
    display:none !important; 
}

/* --- Sezione Responsive --- */

/* Tablet (fino a 1024px) */
@media (max-width: 1024px) {
    body.woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile (fino a 767px) */
@media (max-width: 767px) {
    body.woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    body.woocommerce ul.products li.product {
        padding: 15px !important;
    }
    body.woocommerce ul.products li.product img {
        height: 160px !important;
    }
    body.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px !important;
        min-height: 3em;
    }
    body.woocommerce ul.products li.product .price {
        font-size: 18px !important;
    }
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title{
    
    
    min-height:5em !important;
}/* End custom CSS */