/* Custom styles for WooCommerce shortcodes */

/* Stile base per il layout delle sottocategorie */
.sottocategorie-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.sottocategoria-item {
    width: calc(33.333% - 20px);
    text-align: center;
}

.sottocategoria-item img {
    /*width: 360px;
    height: 288px !important;
    object-fit: contain; /* Mantiene le proporzioni dell'immagine */
    display: block;
    margin: 0 auto;
}

/* Titolo della categoria */
.sottocategoria-item .categoria-nome {
    font-family: "Cocco Battuta", Sans-serif;
    font-size: 2em;
    font-weight: normal;
    color: var(--e-global-color-text);
    margin-top: 10px;
}

/* Descrizione della categoria */
.sottocategoria-item .categoria-descrizione {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 1024px) {
    .sottocategoria-item {
        width: calc(50% - 20px);
    }

    .sottocategoria-item .categoria-nome {
        font-size: 1.8em;
    }

    .sottocategoria-item img {
       /* width: 280px;
        height: 224px; */
    }
}

@media (max-width: 767px) {
    .sottocategoria-item {
        width: 100%;
    }

    .sottocategorie-wrapper {
        justify-content: center;
    }

    .sottocategoria-item .categoria-nome {
        font-size: 2em;
    }

    .sottocategoria-item img {
      /*  width: 240px;
        height: 192px; */
    }
}

/*---------------prodotti-per-sottocategoria-----------------*/
.prodotti-per-sottocategoria {
    padding: 2em;
}

.categoria-wrapper {
    text-align: center;
    margin-bottom: 3em;
}

.categoria-title {
    font-family: "Cocco Battuta", Sans-serif;
    font-size: 3em;
    font-weight: normal;
    color: #684a3a;
    margin-bottom: 0.5em;
}

.categoria-description {
    font-family: "Cocco Stampatello", Sans-serif;
    font-size: 1.7em;
    font-weight: normal;
    line-height: 1em;
    color: #684a3a;
    margin-bottom: 30px;
    text-align: center;
    /* margin-left: auto;
    margin-right: auto;
    width: 70%; */
}
.item-prodotto{
	border: 1px solid rgba(189, 153, 92, 0.5) !important;
        mix-blend-mode: multiply !important;
        max-width: 600px;
        margin: 0 auto;
}
/* Responsive */
@media (max-width: 1024px) {
    .prodotti-per-sottocategoria {
        padding: 10px;
    }

    .categoria-title {
        font-size: 2.5em;
    }

    .categoria-description {
        width: 100%;
        font-size: 1.5em;
    }
	.prodotti-sottocategoria-wrapper .prodotto-item:nth-child(3n+1) {
		justify-self: start; /* Allinea a sinistra l'elemento della riga */
	}
}

@media (max-width: 767px) {
    .categoria-title {
        font-size: 2em;
    }

    .categoria-description {
        font-size: 1.3em;
    }

    .categoria-image {
        max-width: 100%;
        height: auto;
    }
	.prodotti-sottocategoria-wrapper .prodotto-item:nth-child(3n+1) {
		justify-self: center; /* Centra gli item nelle colonne */
	}
}

/* Wrapper per le sottocategorie */
.prodotti-sottocategoria-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 colonne max */
    gap: 2em;
    justify-items: center; /* Centra gli item nelle colonne */
}

body.term-pacchi-regalo .prodotti-sottocategoria-wrapper{
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1024px) {
    .prodotti-sottocategoria-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {    
    body.term-pacchi-regalo .prodotti-sottocategoria-wrapper{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Stile per i singoli prodotti */
.prodotto-item {
    text-align: center;
}

.prodotto-img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5em;
}

.prodotto-title {
	font-family: "Cocco Stampatello", Sans-serif;
    font-weight: normal;
    line-height: 1em;
    color: #684a3a;
    margin: 0.5em 0;
}

.button.product_type_simple.add_to_cart_button.ajax_add_to_cart{	
    font-family: "Cocco Battuta", Sans-serif;
    font-size: 1.3em;
    font-weight: normal;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 10px 10px 10px 10px;
    padding: 5px 10px 5px 10px;
    color: #ffffff;
    background-color: #bd995c; /* #003a50; */
    border-color:  #bd995c; /* #003a50; */
    transition: all 0.2s;
}
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover{	
	color: var(--e-global-color-22eaac8);
    background-color: var(--e-global-color-secondary);
}
.prodotto-price {
    display: none;
    margin-bottom: 0.5em;
}

/*------ menu navigazione -------*/
.swc-menu-categorie {
    padding: 1em;
    font-family: "Cocco Stampatello", Sans-serif;
    border-radius: 8px;
}

.swc-menu-categorie .menu-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #684a3a;
    margin-bottom: 1em;
}

.swc-menu-categorie ul {
    list-style: none;
    padding-left: 0;
}

.swc-menu-categorie li {
    margin-bottom: 0.5em;
}

.swc-menu-categorie a {
    color: #684a3a;
    text-decoration: none;
    font-size: 1.8em;	
    line-height: 1em;
    font-weight: bold;
    display: inline-block;
}

.swc-menu-categorie li.active > a {
    font-weight: bold;
    color: #BD995C;
}

.sottocategorie-sublist {
    margin-left: 1em;
    margin-top: 0.3em;
}

.sottocategorie-sublist a {
	font-weight: normal;    
    font-size: 1.2em;
    line-height: 1em;
}

.sottocategoria-item.active > a {
    color: #BD995C;
    font-weight: normal;
}

.swc-menu-categorie .sottocategoria-item{
	width: 100%;
    text-align: left;
}


/*CUSTOM BUTTON ADD TO CART */
.custom-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.custom-cart-price {
    font-family: "Cocco Stampatello", sans-serif;
    font-size: 1.2em;
    color: #684a3a;
}

.custom-cart-wrapper a.button {
    background-color: #bd995c; /* #003a50; */
    border-radius: 8px;
	border: 1px solid #bd995c; /* #003a50; */
    padding: 8px 12px;
    color: #fff  !important;
    transition: all 0.2s;
    display: flex;    
    justify-self: center;
    align-items: center;
}

.custom-cart-wrapper a.button:hover {
    background-color: #fff  !important;
    color: #bd995c  !important; /* #003a50; */
}

.custom-cart-wrapper i.fas.fa-shopping-cart {
    font-size: 1em;
}


/*SLIDER*/
.custom-carousel-wrapper {
  margin: 0;
  margin-top: -30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.custom-carousel.swiper{
    margin: 0 50px;
}

.custom-carousel .swiper-slide {
  text-align: center;
  /*background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 0 10px rgba(0,0,0,0.05); */
  transition: transform 0.3s;
  padding: 5px;
}

.custom-carousel .swiper-slide:hover {
  transform: translateY(-5px);
}
.custom-swiper-prev:after,
.custom-swiper-next:after{
    display: none;
}
.custom-swiper-prev,
.custom-swiper-next {
    width: 32px !important;
    height: 49px !important;
    padding: 5px !important;
    cursor: pointer;
    z-index: 10;
    flex-shrink: 0;
}

.custom-swiper-prev img,
.custom-swiper-next img {
    width: 100%;
    height: auto;
    display: block;
}
@media(max-width: 768px) {
    .custom-carousel.swiper{
        margin: 0 20px;
    }
    .custom-swiper-prev,
    .custom-swiper-next {
        width: 24px !important;
        height: 37px !important;
        padding: 5px !important;
        cursor: pointer;
        z-index: 10;
        flex-shrink: 0;
    }
}
.custom-carousel .title {
  font-family: "Cocco Stampatello", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 10px 0;
  color: #4e3b2d;
  text-transform: uppercase;
}
@media(max-width: 768px) {
    .custom-carousel .title {
        font-size: 1.2rem;
        line-height: 1em;
    }
    .custom-carousel .title .sabbia {
        display: block;
    }

}
/* Bottone "Aggiungi al carrello" */
.custom-carousel .button {
  background-color: #083b4c;
  color: #fff;
  font-weight: bold;
  font-family: 'Cocco Stampatello', serif;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 10px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.custom-carousel .button:hover {
  background-color: #0c4e66;
}

/* Swiper frecce */
.swiper-navigation-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-swiper-prev,
.custom-swiper-next {
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    z-index: 10;
}

.custom-swiper-prev {
    margin-right: 10px;
}

.custom-swiper-next {
    margin-left: 10px;
}


.swiper-button-next, .swiper-button-prev{
	color: #BD995C !important;
}
.custom-swiper-prev,
.custom-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  z-index: 10;
  cursor: pointer;
}

.custom-swiper-prev {
  left: -50px;
}

.custom-swiper-next {
  right: -50px;
}

.custom-swiper-prev svg,
.custom-swiper-next svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.custom-swiper-prev:hover svg,
.custom-swiper-next:hover svg {
  transform: scale(1.1);
}

/* Responsive spacing */
@media(max-width: 768px) {
  .custom-carousel .swiper-slide {
    padding: 5px;
  }
  .swiper-slide section.prodotti-correlati-section{
        min-height: 280px;
        display: grid;
        justify-content: space-around;
  }
}

/*RICETTE*/
.link-categoria-ricetta a{
    font-family: "Cocco Stampatello", Sans-serif;
    font-size: 1.5em;
    font-weight: normal;    
    color: #bd995c;
    text-align: center;
    display: block;
}
.link-categoria-ricetta-2 a{
    font-family: "Cocco Stampatello", Sans-serif;
    font-size: 1.5em;
    font-weight: normal;    
    line-height: 1em;
    color: #684a3a;
    text-align: center;
    display: block;
}
a.link-prodotto-ricetta{
    color: #684a3a;
    font-family: "Cocco Stampatello", Sans-serif;
    font-size: 1.5em;
    font-weight: normal;   
}
img.img-nudo-pasta {
    width: 100%;
    max-width: 250px !important;
    height: auto;
    min-height: 250px !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    padding: 20px;
    border: 1px solid rgba(189, 153, 92, 0.5);
}

.formati-alternativi {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.formati-alternativi .formato-item {
    text-align: center;
  flex: 0 0 calc((100% - 40px) / 3); /* 3 per riga */
  max-width: calc((100% - 40px) / 3);
}

/* Tablet: 2 per riga */
@media (max-width: 1024px) {
  .formati-alternativi .formato-item {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

/* Mobile: 1 per riga */
@media (max-width: 768px) {
  .formati-alternativi .formato-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.formato-titolo {
    font-family: 'Cocco Stampatello', serif;
    font-weight: normal;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #684A3A;
}

img.formato-img {
    width: 100%;
    max-width: 400px !important;
    height: auto;
    min-height: 400px !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    padding: 20px;
    border: 1px solid rgba(189, 153, 92, 0.5);
}
/*
.image-crop {
  width: calc(100% - 100px); 
  height: auto;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.image-crop img {
  display: block;
  width: calc(100% + 100px); 
  height: auto;
  margin: -50px;
  object-fit: cover;  
} 
*/


/*--------*/
.preparazione-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.step-item {
    text-align: left;
    padding-top: 20px;
}

.step-titolo {
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 10px;
}

.step-testo {
    font-family: 'Cocco Stampatello', serif;
    font-weight: normal;
    font-size: 1.4em;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #fff;
}

.step-foto img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ricette correlate */
.ricetta-singola-wrapper {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}
@media(max-width: 768px) {
    .ricetta-singola-wrapper {
        padding: 0;
    }
}
.ricetta-singola-contenuto {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    align-items: center;
}

.ricetta-img-box {
    flex: 1;
	text-align: end;
}

.ricetta-img {
    width: 100%;
	max-width: 300px !important;
    height: auto !important;
}

.ricetta-testo-box {
    flex: 1;
	text-align: center;
}

.ricetta-decorazione {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #7a5b3d;
}

.ricetta-sottotitolo {	
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1em;
    margin-bottom: 0.4rem;
    color: #4a3b2c;
}

.ricetta-titolo {
    font-family: "Cocco Battuta", Sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: #b48b51;
    margin-bottom: 1rem;
}

.ricetta-bottone {
    background-color: #b48b51;
    color: #fff;
	border: 1px solid #b48b51;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    transition: all 0.3s ease;
}
.ricetta-bottone:hover{
	background-color: #fff;
    color: #b48b51;
	border: 1px solid #b48b51;
}
/*ricette preparazioni slider*/

.ricetta-slider-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.ricetta-swiper {
    overflow: visible !important;
    padding-right: 10vw; /* permette di vedere la slide successiva su desktop */
}

.swiper-slide.ricetta-slide {
    display: flex;
    width: auto;
    max-width: 1240px;
    background: transparent;
    position: relative;
    align-items: center;
}

.ricetta-slide-img {
    flex: 1;
    min-width: 50%;
}

.ricetta-slide-img img {
    width: 100%;
    height: auto;
}

.ricetta-slide-testo {
    flex: 1;
    background-color: #003A50;
    color: #fff;
    padding: 40px 50px 30px;
    margin-left: -5%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Cocco Stampatello", Sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-count {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: inherit;
}

.testo-contenuto {
    font-size: 1.5rem;
    line-height: 1.3rem;
    font-family: inherit;
}

/* Navigazione personalizzata */
.ricetta-slide-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.ricetta-slide-nav .custom-arrow {
    position: relative !important;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.ricetta-slide-nav .custom-arrow.swiper-button-next:after, .ricetta-slide-nav .custom-arrow.swiper-button-prev:after{
    display: none; 
}
.ricetta-slide-nav .custom-arrow img {
    height: 28px;
    width: auto;
}

.scroll-label {
    font-size: 1rem;
    font-weight: normal;
    font-family: "Cocco Stampatello", Sans-serif;
    color: #fff;
    letter-spacing: 1px;
    margin-top: -20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .swiper-slide.ricetta-slide {
        flex-direction: column;
        align-items: stretch;
    }

    .ricetta-slide-testo {
        margin-left: 0;
        max-width: 100%;
        padding: 30px 20px;        
        min-height: 300px;        
        justify-content: center;
    }

    .ricetta-slide-nav {
        flex-direction: row;
        gap: 12px;
    }

    .ricetta-swiper {
        padding-right: 0;
    }
}





/* shortcode_griglia_sottocategorie_prodotti */
.griglia-categorie {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    @media (max-width: 1024px) {
        .griglia-categorie {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 600px) {
        .griglia-categorie {
            grid-template-columns: repeat(1, 1fr);
        }
    }
    .blocco-categoria {
        text-align: center;
    }
    .blocco-categoria h4.titolo-blocco-categoria {
		font-family: 'Cocco Stampatello', serif;
		font-weight: bold;
        margin: 0.5em 0;
    }
	.blocco-categoria h4.titolo-blocco-categoria a,
	.blocco-categoria h4.titolo-blocco-categoria a:hover{
		color: #BD995C;
	}
    .blocco-categoria img {
        max-width: 100%;
        height: auto;
    }
    
    /* pasta cocco search */
    
.cocco-product-search {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;    
    text-align: center;
}
.cocco-product-search h4{    
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    color: #003A50;
}
.cocco-product-search p{
    
    font-family: 'Cocco Stampatello', serif;
    font-weight: normal;
}
.cocco-search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #684A3A !important;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    color:  #684A3A;
    background: transparent;
}
.cocco-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.cocco-prodotto-custom {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cocco-prodotto-custom img {
    max-width: 100%;
    margin-bottom: 15px;
}

.cocco-prodotto-custom h3 {
    font-size: 18px;
    margin: 10px 0;
}

.cocco-prodotto-custom .price {
    font-weight: bold;
    color: #c09357;
}

.cocco-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Cocco Stampatello', serif;
    font-weight: normal;
    justify-content: center;
}

.cocco-filter-button {
    background: #684A3A;
    border: 1px solid #684A3A;
    color: #fff;    
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    display: flex;
    justify-content: center;  /* orizzontale */
    align-items: center;      /* verticale */
    height: 50px;             /* o qualunque altezza */
  
}

.cocco-filter-button input {
    display: none;
}

.cocco-filter-button input:checked + span,
.cocco-filter-button:has(input:checked) {
    background-color: #BD995C;
    color: white;
    border-color: #BD995C;
} 

.cocco-reset-button {
    background: #003A50 !important;
    border: 1px solid #003A50 !important;
    color: #fff  !important;    
    font-family: 'Cocco Stampatello', serif;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.cocco-reset-button:hover {
    background-color: transparent !important;
    color: #003A50 !important;
}

#cocco-loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#cocco-loading img {
    width: 32px;
    height: 32px;
}


//CUSTOM ADD TO CART
.my-price-cart-wrapper{

}

.my-price {
    font-family: 'Cocco Stampatello', serif;
    font-weight: normal;
    font-size: 20px;
    color: #684a3a;
}

.my-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: fit-content !important;
    border-radius: 5% !important;
    background: #bd995c !important; /* colore pulsante */
	border: 1px solid #bd995c !important;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
	padding: 5px 10px !important;
}

.my-cart-btn:hover {
    background: #fff !important;
}

.my-cart-btn .dashicons {
    font-size: 20px;
    line-height: 1;
}
.added_to_cart.wc-forward,
.my-cart-btn::after{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	visibility: hidden !important;
	display: none !important;
}
