/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
} 

:root {
	--black: #212121;
	--white: #FFFFFF;
	--lightGrey: #f1f1f1;
	--red: 	 #ed4348;
	--blue:  #1e3e92;

	--radius: 10px;
}


/* *** HEADER *** */
.whb-header {
	padding-bottom: 1rem;
}
.whb-header .whb-header-bottom {
	padding-bottom: .5rem;
}
.whb-header.whb-sticked .whb-main-header {
  box-shadow: 0 1px 10px rgba(0, 0, 0, .08) !important;
}

.whb-header .whb-top-bar .container {
	border-bottom: 1px solid var(--lightGrey);
}
.whb-header .whb-top-bar .info-box-wrapper {
	padding: 0;
}
.whb-header .whb-top-bar .info-box-wrapper .info-box-content .info-box-subtitle {
	letter-spacing: 5px;
}
.whb-header .whb-top-bar .info-box-wrapper .info-box-content .info-box-title {
	margin-top: .1rem;
	letter-spacing: 1px;
}


.whb-header .wd-search-form {
	width: 100%;
}
.whb-header .language-switcher .gtranslate_wrapper .glink {
	margin: .1rem;
	border-radius: 5px;
}


/* bottom */
.whb-header .whb-header-bottom .site-logo {
	display: none;
}
.whb-header .whb-header-bottom .wd-header-nav li a {
	font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.whb-header .whb-header-bottom .wd-header-nav li.area-riservata a {
	min-height: unset;
  font-size: .8rem !important;
  color: var(--white);
	background-color: var(--red);
  padding: .4rem 1.3rem;
  border-radius: 10rem;
	/* margin: .3rem 0 0 0; */
}
.whb-header .whb-header-bottom .wd-header-nav #menu-main-navigation {
	align-items: center;
}

.whb-header .whb-header-bottom .wd-header-nav li.area-riservata a > span::after {
	display: none !important;
}
.whb-header .whb-header-bottom .wd-header-nav li.area-riservata a:hover {
	background-color: var(--blue);
}
.whb-header .whb-header-bottom .wd-header-nav li a .nav-link-text::after {
	top: 128%;
}

.whb-header.whb-sticked .whb-header-bottom {
	background-color: rgba(255, 255, 255, .9);
	padding-bottom: 0rem;
}
.whb-header.whb-sticked .whb-header-bottom .site-logo {
	display: block;
}
.whb-header.whb-sticked .whb-header-bottom .wd-nav-main li a {
	font-size: 1rem;
}

.wd-dropdown-menu {
	background-color: #fafafa;
	border-color: var(--lightGrey);
	max-width: 95vw;
	/* box-shadow: 0 15px 50px 0 rgba(0, 0, 0, .1); */
}
.mega-menu_ricambi {
	margin: 0;
}
.mega-menu_ricambi .info-box-wrapper .info-box-icon {
	border-radius: var(--radius);
	border: 2px solid transparent;
}
.mega-menu_ricambi .info-box-wrapper .wd-info-box {
	transition: background-color .2s ease-in-out .05s;
}
.mega-menu_ricambi .info-box-wrapper .wd-info-box:hover {
	background-color: var(--lightGrey);
}

.mobile-nav {
	z-index: 10000;
}
/* *** HEADER *** */


/* *** HOME *** */
.home .whb-header {
	padding-bottom: 0 !important;
}
.home .main-page-wrapper #main-content {
	padding-top: 0;
	max-width: unset;
}
.home #home-hero {
	> div {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
	}
}
.home #home-main {
	> div {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
	}
}

.home .services-wrapper .promo-banner .banner-btn-wrapper {
	margin-top: 1.6rem;
}
.home .services-wrapper .promo-banner .banner-btn-wrapper .btn {
	text-transform: none;
}

.home .video-wrapper .elementor-widget-video .e-hosted-video {
	height: 100%;
}

.home .newsletter-wrapper .tnp-subscription .tnp-field-email label {
	display: none;
}
.home .newsletter-wrapper .tnp-subscription .tnp-privacy-field label {
	display: flex;
	align-items: start;
}
.home .newsletter-wrapper .tnp-subscription .tnp-privacy-field label a {
	color: rgba(255, 255, 255, .5);
}
.home .newsletter-wrapper .tnp-subscription .tnp-field-button .tnp-submit {
	background-color: var(--white);
	color: var(--blue);
	border-radius: 10rem;
	padding: .5rem 2rem;
	margin-top: 1rem;
}

.home .products-sales-wrapper .wd-products .wd-product:nth-child(5) {
	display: none;
}

@media (min-width: 768px) {
	.home .products-sales-wrapper .wd-products .wd-product:nth-child(5) {
		display: block;
	}
}
/* *** HOME *** */


/* *** SHOP/ARCHIVE *** */
.archive.woocommerce-shop .hero-archive_wrapper {
	display: none;
}
.archive.tax-product_cat .hero-shop_wrapper,
.archive.tax-product_brand .hero-shop_wrapper,
.archive.tax-product_tag .hero-shop_wrapper {
	display: none;
}

.widget_price_filter .price_slider_wrapper .price_slider_amount .button {
	color: var(--white);
	background-color: var(--red);
}
.widget_price_filter .price_slider_wrapper .price_slider_amount .button:hover {
	color: var(--white);
	background-color: var(--blue);
}
/* *** SHOP/ARCHIVE *** */


/* *** PRODUCTS GRID *** */
.wd-products-element .wd-products.grid-columns-3 .wd-product img {
	height: 50vw;
  max-height: 310px;
	object-fit: cover;
}
.wd-products-element .wd-products.grid-columns-4 .wd-product img {
	height: 43vw;
  max-height: 270px;
	object-fit: cover;
}
.wd-products-element .wd-products.grid-columns-5 .wd-product img {
	height: 100vw;
  max-height: 300px;
	object-fit: cover;
}
.sm-2col .wd-products-element .wd-products .wd-product img,
.wd-products-element .wd-carousel .wd-product img {
	height: 40vw;
  max-height: 300px;
	object-fit: cover;
}

@media (min-width: 768px) {
	.wd-products-element .wd-products.grid-columns-3 .wd-product img {
		height: 30vw;
		max-height: 310px;
	}
}
@media (min-width: 992px) {
	.wd-products-element .wd-products.grid-columns-3 .wd-product img {
		height: 20vw;
		max-height: 310px;
	}
	.wd-products-element .wd-products.grid-columns-4 .wd-product img {
		max-height: 240px;
	}
	.wd-products-element .wd-products.grid-columns-5 .wd-product img,
	.wd-products-element .wd-carousel .wd-product img {
		height: 16vw;
		max-height: 220px;
	}
}
/* *** PRODUCTS GRID *** */


/* *** SINGLE PRODUCT *** */
.single-product .gallery_column .woocommerce-product-gallery .wd-gallery-images figure {
	background-color: var(--white);
}
.single-product .gallery_column .woocommerce-product-gallery .wd-gallery-images figure > a > img {
	height: 80vw;
  max-height: 720px;
	object-fit: contain;
}
.single-product .gallery_column .woocommerce-product-gallery .wd-gallery-thumb img {
	height: 150px;
  object-fit: contain;
}


.single-product .summary_column .wdp_bulk_table_content {
	display: block;
	margin: 3rem auto 0;
	max-width: 450px;
}
.single-product .summary_column .wdp_bulk_table_content .wdp_pricing_table {
	margin-bottom: 1rem;
}
.single-product .summary_column .wdp_bulk_table_content .wdp_pricing_table thead td {
	background-color: var(--red) !important;
	color: var(--white) !important;
	padding:.5rem;
}
.single-product .summary_column .wdp_bulk_table_content .wdp_pricing_table_caption {
	display: none;
}
.single-product .summary_column .wdp_bulk_table_content .wdp_pricing_table_footer {
	text-align: center;
	font-weight: bold;
	color: var(--red) !important;
}


.single-product .summary_column .ppcp-messages {
	margin-top: .7rem;
}
/* *** SINGLE PRODUCT *** */


.motori-grid__wrapper a {
	transition: transform .2s ease-in-out;
	will-change: transform;
}
.motori-grid__wrapper a:hover {
	transform: scale(1.03);
}
.motori-grid__wrapper a:hover::before {
	opacity: .85;
}


/* *** BRANDS SLIDER *** */
.brands-carousel .wd-carousel { 
	display: none !important; 
}
.brands-carousel .pi-ticker {
	overflow: hidden;
	display: flex;
	width: 100%;
	opacity: 0;
	transition: opacity 0.4s ease;
}
.brands-carousel .pi-ticker.pi-loaded {
	opacity: 1;
}
.brands-carousel .pi-track {
	display: flex;
	width: fit-content;
	animation: piScroll 60s linear infinite;
}
.brands-carousel .pi-ticker:hover .pi-track {
	animation-play-state: paused;
}
.brands-carousel .pi-item {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--pi-item-width, 200px);
}
.brands-carousel .pi-item .wd-brand-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brands-carousel .pi-item img, 
.brands-carousel .pi-item a {
	display: block;
	max-width: 100%;
	padding: 0 1rem;
	height: auto;
}
.brands-carousel .pi-item {
	filter: grayscale(100%);
	opacity:.5;
	transition: all .2s ease-in-out .05s;
}
.brands-carousel .pi-item:hover {
	filter: grayscale(0);
	opacity: 1;
}
@keyframes piScroll {
	0% { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 992px) {
	.brands-carousel .pi-item img, 
	.brands-carousel .pi-item a {
		padding: 0 3rem;
	}
}
/* *** BRANDS SLIDER *** */


/* *** CONTACT FORM *** */
.contact-form_wrapper {
	font-size: .9rem;
}
.contact-form_wrapper .elementor-field-type-html {
	margin-bottom: 0 !important;
	font-size: .9rem;
}
.contact-form_wrapper #field_punto1b{
	font-size: .9rem;
}
.contact-form_wrapper a {
	color: var(--blue);
}
.contact-form_wrapper a:hover {
	color: var(--red);
}
/* *** CONTACT FORM *** */


/* *** CHECKOUT / CART *** */
.woocommerce-cart .wd-page-title,
.woocommerce-checkout .wd-page-title {
	background: transparent !important;
}
.woocommerce-order-received .wd-page-title {
	margin-top: -.5rem;
}
.woocommerce-cart .wd-page-title::before,
.woocommerce-order-received .wd-page-title::before {
	content: "";
	background-color: var(--blue);
	opacity: .85;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
}
.woocommerce-cart .wd-page-title::before {
	border-radius: 10px;
}
.woocommerce-order-received .wd-page-title .container {
	min-height: 6.5rem;
	justify-content: center;
}
.woocommerce-order-received #main-content {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
/* *** CHECKOUT / CART *** */


/* *** FOOTER *** */
footer .brands-widget .wd-brand-item {
	opacity: .5;
	filter: grayscale(100%);
	padding: 0px;
	transition: all .2s ease-in-out;
}
footer .brands-widget .wd-brand-item img {
	border-radius: 8px;
}
footer .brands-widget .wd-brand-item:hover {
	opacity: 1;
	filter: grayscale(0);
}
footer .copyright-text .wd-text-block {
	text-align: center;
}

@media (min-width: 992px) {
	footer .copyright-text .wd-text-block {
		text-align: left;
	}
}
/* *** FOOTER *** */


.chaty-widget .Whatsapp-channel-link {
	bottom: 30px;
}
.chaty-widget .Whatsapp-channel-link .chaty-svg {
	width: 45px !important;
	height: 45px !important;
}


/* .gtranslate_wrapper .gt_switcher_wrapper {
	right: 100px !important;
} */


/* *** SINGOLO PRODOTTO: tabella quantità/prezzo (plugin Advanced Dynamic Pricing) ***
   Struttura del plugin: span.wdp_bulk_table_content > div.bulk_table > table.wdp_pricing_table + span.wdp_pricing_table_footer > p
   Il titolo dell'offerta (footer) viene portato sopra la tabella con "order: -1".*/
body.single-product .summary_column .wdp_bulk_table_content {
	display: block; margin: 18px 0 0; max-width: none; width: 100%;
	.bulk_table {
		display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
		background: var(--white); border-radius: var(--radius);
		.wdp_pricing_table_footer {
			display: block; order: -1; padding: 11px 16px; text-align: left;
			background: var(--red); color: var(--white) !important;
			font: 800 15px/1.25 "Urbanist", Arial, sans-serif; letter-spacing: .3px; text-transform: uppercase;
			p { margin: 0; font: inherit; color: inherit !important; text-transform: inherit; }
		}
		table.wdp_pricing_table {
			width: calc(100% - 16px); margin: 14px 8px 12px; table-layout: fixed; font-size: 14px;
			border-collapse: separate; border-spacing: 8px 0; /* spazio tra le due pillole */
			thead td {
				padding: 7px 14px; text-align: center; border: 0; border-radius: 10px;
				background-color: #eef1f8 !important; color: var(--blue) !important; /* !important: il plugin colora con !important */
				font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
			}
			tbody td {
				padding: 12px 14px; text-align: center; border: 0; border-bottom: 1px solid rgba(0,0,0,.08);
				background-color: transparent !important; color: #333 !important; font-weight: 600;
				&:last-child, &:last-child .amount { color: var(--red) !important; font-size: 18px; font-weight: 700; } /* prezzo */
			}
			tbody tr:last-child td { border-bottom: 0; }
		}
	}
}
@media (max-width: 767px) {
	body.single-product .summary_column .wdp_bulk_table_content .bulk_table {
		.wdp_pricing_table_footer { padding: 10px 12px; font-size: 13px; }
		& table.wdp_pricing_table { margin: 12px 4px 10px; width: calc(100% - 8px); border-spacing: 6px 0; }
		& table.wdp_pricing_table thead td { padding: 7px 8px; font-size: 11px; letter-spacing: .04em; }
		& table.wdp_pricing_table tbody td { padding: 10px 8px; }
	}
}
/* *** SINGLE PRODUCT: tabella quantità/prezzo *** */