/*
Theme Name: Ferme Child
Author: VamTam
Author URI: https://vamtam.com
Template: ferme
*/



/*

put your child theme styles here


you don't need any @import rules

*/

body {
    overflow-x: hidden;
}

.swiper-slide {
	overflow: visible;
}

.elementor-element :where(.swiper-horizontal) ~ .swiper-pagination-progressbar, .elementor-lightbox :where(.swiper-horizontal) ~ .swiper-pagination-progressbar {
	height: 4px;
	left: 0;
	top: auto;
	bottom: -30px;
	width: 100%;
}
.elementor-988314 .elementor-element.elementor-element-785b971::after{
    right:0 !important;
}

#scroll-to-top {
    position: fixed;
    z-index: 200;
    opacity: 0;
    bottom: 30px;
    right: 34px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 2em;
    margin-left: 0px;
    border: none;
    text-shadow: none;
    transition: opacity 0.3s ease-out, color 0.3s ease-out, transform 0.3s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: scale3d(0, 0, 0);
    text-align: center;
    cursor: pointer;
    background: #F28C00 !important;
    border-radius: 50% !important;
}

#scroll-to-top svg {
    pointer-events: none;
    width: 9px !important;
    height: auto;
	position: absolute;
	top:5px;
	left:10px;
}

/**
 *	Selettore lingua mobile
 */

.lang-switch-mobile nav {
    margin-top: 3px !important;
}

.lang-switch-mobile a:link,
.lang-switch-mobile a:active,
.lang-switch-mobile a:visited {
    padding: 0;
}

/**
 *	Pallino dopo immagine prodotto in griglia  
 */

.grid-product-list .e-loop-item {
    position: relative;
}

.grid-product-list .e-loop-item:after {
    content: "";
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f28c00;
    top: 70px;
    right: -20px;
    border-radius: 50%
}

.grid-product-list .e-loop-item:nth-of-type(even):after {
    display: none;
}

@media (min-width: 768px) {
		
	.grid-product-list .e-loop-item:after {
		top: 95px;
	}

}

@media (min-width: 1025px) {
		
	.grid-product-list .e-loop-item:nth-of-type(even):after {
		display: block;
	}
	
	.grid-product-list .e-loop-item:nth-of-type(4n):after {
		display: none;
	}
	
	.grid-product-list .e-loop-item:last-of-type:after {
		display: none;
	}
	
	.grid-product-list.three-items-per-row .e-loop-item:nth-of-type(even):after {
		display: block;
	}
	
	.grid-product-list.three-items-per-row .e-loop-item:nth-of-type(4n):after {
		display: block;
	}
	
	.grid-product-list.three-items-per-row .e-loop-item:nth-of-type(3n):after {
		display: none;
	}
	
	.grid-product-list.three-items-per-row .e-loop-item:last-of-type:after {
		display: none;
	}

}

/**
 *	Blocco ricette
 */

.section-ricette {
    display: none;
}

.section-ricette.has-ricette {
    display: flex;
}

.ricetta-difficolta{
  display:inline-flex;
  align-items:center;
  gap:var(--dot-gap, 10px);
  line-height:0;       
  vertical-align:middle;
}

.ricetta-difficolta .dot{
  width:var(--dot-size, 14px);
  height:var(--dot-size, 14px);
  border-radius:50%;
  background:var(--dot-empty, #0b1320);  
  display:inline-block;
  flex:0 0 auto; 
}

.ricetta-difficolta .dot.is-filled{
  background:var(--dot-filled, #d89343);
}

.ricetta-difficolta .dot{ -webkit-transform:translateZ(0); transform:translateZ(0); }

/**
 *	Blocco upsell
 */

.section-upsell {
    display: none;
}

.section-upsell.has-upsell {
    display: flex;
}

/**
 *	Fix posizionamento pulsante chiusura popup ricerca - Mobile First
 */

/* Stili base per mobile */
.dialog-widget.vamtam-search-popup {
    /*position: relative !important;*/
}

.dialog-widget.vamtam-search-popup .dialog-close-button.dialog-lightbox-close-button {
    background-color: var( --e-global-color-vamtam_sticky_header_bg_color ) !important;
    top: 10px !important;
    right: 15px !important;
    transform: none !important;
}

/* Tablet e su (min-width: 768px) */
@media (min-width: 768px) {
    .dialog-widget.vamtam-search-popup .dialog-close-button.dialog-lightbox-close-button {
        top: 25px !important;
        right: 10px !important;
    }
}

/* Desktop e su (min-width: 1025px) */
@media (min-width: 1025px) {
    .dialog-widget.vamtam-search-popup .dialog-close-button.dialog-lightbox-close-button {
        top: 30px !important;
        right: 5px !important;
    }
}

.elementor-widget-form.vamtam-has-theme-widget-styles input[type="file"]::file-selector-button{
    color:#fff !important;
}

.elementor-kit-5 a{
    color:#575757;
}






