/*
Theme Name: Glozin Child
Theme URI: https://wpglozin.com/
Author: UIXThemes
Author URI: https://uix.store
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glozin
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: glozin
*/

/* Home: 3-card banner carousel, show more top area of media */
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__image,
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__image video,
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__image iframe {
	object-position: center 30%;
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__image img.bassanina-card-still {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 62%;
	display: block;
	position: absolute;
	inset: 0;
}
/* Home: 3 card Tradizione/Qualità/Autenticità — overlay leggibilità + card intera cliccabile. */
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__slide {
	cursor: pointer;
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 36, 25, 0.14) 0%,
		rgba(15, 36, 25, 0.3) 42%,
		rgba(15, 36, 25, 0.68) 100%
	);
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__summary,
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__button a {
	pointer-events: none;
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__button--all {
	z-index: 4;
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__sub-title,
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__title,
.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner__description {
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.elementor-364 .elementor-element.elementor-element-54b8d6d6 .glozin-banner-carousel__slide:hover .glozin-banner__button .gz-button {
	filter: brightness(1.06);
}


/* Hide product badges/labels above product images (child-theme override). */
.product .woocommerce-badges,
.product-type-product .woocommerce-badges,
.wcboost-products-compare-page .woocommerce-badges {
	display: none !important;
}

/* Hide "Informazioni aggiuntive" tab/content on all WooCommerce products. */
.single-product .woocommerce-tabs li.additional_information_tab,
.single-product .woocommerce-tabs [aria-controls="tab-additional_information"],
.single-product .woocommerce-tabs a[href*="additional_information"],
.single-product .woocommerce-tabs #tab-additional_information,
.single-product #tab-additional_information,
.single-product .glozin-woocommerce-tabs--dropdown #tab-additional_information {
	display: none !important;
}

/* Language switcher (GTranslate): flag + dropdown in Glozin style */
.menu-item-type-gs_sim,
.menu-item-object-gs_sim {
	display: flex;
	align-items: center;
}

.gtranslate_wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 1;
}

.gtranslate_wrapper .gt_switcher {
	width: auto !important;
	min-width: 0 !important;
	overflow: visible !important;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	position: relative;
}

.gtranslate_wrapper .gt_switcher a {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500;
	color: inherit !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

.gtranslate_wrapper .gt_switcher a img {
	width: 22px !important;
	height: 22px !important;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
	opacity: 1 !important;
	margin: 0 !important;
}

.gtranslate_wrapper .gt_switcher .gt_selected {
	background: transparent !important;
	position: relative;
	z-index: 5;
}

.gtranslate_wrapper .gt_switcher,
.gtranslate_wrapper .gt_switcher .gt_selected,
.gtranslate_wrapper .gt_switcher .gt_selected a {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}

.gtranslate_wrapper .gt_switcher .gt_selected a {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	padding: 6px 12px !important;
	border-radius: 999px;
	gap: 8px !important;
	white-space: nowrap !important;
	transition: background-color 0.2s ease;
}

.gtranslate_wrapper .gt_switcher .gt_selected a:hover,
.gtranslate_wrapper.is-open .gt_switcher .gt_selected a,
.gtranslate_wrapper .gt_switcher .gt_selected a.open {
	background: rgba(31, 59, 45, 0.06) !important;
}

/* Freccia in flusso (non assoluta) così non copre "Italiano" */
.gtranslate_wrapper .gt_switcher .gt_selected a:after {
	content: "" !important;
	position: static !important;
	inset: auto !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	display: inline-block !important;
	flex: 0 0 10px !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 0 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	background-size: 10px 10px !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	opacity: 0.75;
	transform: none !important;
	transition: transform 0.2s ease, opacity 0.2s ease !important;
	vertical-align: middle;
}

.gtranslate_wrapper .gt_switcher .gt_selected a.open:after,
.gtranslate_wrapper.is-open .gt_switcher .gt_selected a:after {
	transform: rotate(-180deg) !important;
	opacity: 1;
}

.gtranslate_wrapper .gt_switcher .gt_option {
	position: absolute !important;
	top: calc(100% + 10px) !important;
	right: 0 !important;
	left: auto !important;
	width: min(220px, 80vw) !important;
	height: auto !important;
	max-height: min(60vh, 320px) !important;
	padding: 10px 0 !important;
	background: #fff !important;
	border: 1px solid #ececec !important;
	border-radius: 0 0 8px 8px !important;
	box-shadow: 5px 0 30px rgba(0, 0, 0, 0.08) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.25s cubic-bezier(0.6, 0, 0.4, 1), transform 0.25s cubic-bezier(0.6, 0, 0.4, 1), visibility 0.25s;
	z-index: 1000 !important;
}

.gtranslate_wrapper.is-open .gt_switcher .gt_option,
.gtranslate_wrapper .gt_switcher .gt_option[style*="block"] {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0);
	display: block !important;
}

.gtranslate_wrapper .gt_switcher .gt_option a {
	padding: 10px 16px !important;
	color: #1f1f1f !important;
	background: transparent !important;
	border: 0 !important;
	width: 100%;
}

.gtranslate_wrapper .gt_switcher .gt_option a:hover {
	background: #f4f8f5 !important;
}

.gtranslate_wrapper .gt_switcher .gt_option a.gt-current,
.gtranslate_wrapper .gt_switcher .gt_option a.gt_current {
	background: rgba(31, 59, 45, 0.08) !important;
	font-weight: 600;
}

/* Hide legacy globe bits if cached */
.gtranslate_wrapper .gglobe,
.gtranslate_wrapper .gsatelites {
	display: none !important;
}

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

	.gtranslate_wrapper .gt_switcher {
		width: 100% !important;
	}

	.gtranslate_wrapper .gt_switcher .gt_selected a {
		width: 100%;
		justify-content: flex-start;
		padding: 10px 12px;
		border: 1px solid #e7e7e7;
		border-radius: 12px;
		background: #fff !important;
	}

	.gtranslate_wrapper .gt_switcher .gt_option {
		right: 0 !important;
		left: 0 !important;
		width: 100% !important;
		border-radius: 12px !important;
		top: calc(100% + 6px) !important;
	}
}

/* Mobile topbar: single-line horizontal scroll, no slider arrows. */
@media (max-width: 767px) {
	#topbar .topbar-slides .swiper-button-prev,
	#topbar .topbar-slides .swiper-button-next,
	#topbar .topbar-slides .swiper-button-text {
		display: none !important;
	}

	#topbar .topbar-slides__wrapper.swiper-wrapper {
		transform: none !important;
	}

	#topbar .topbar-slides__item.swiper-slide {
		display: block !important;
		width: auto !important;
		max-width: 100% !important;
		white-space: nowrap !important;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-inline: 0 12px;
		text-overflow: clip !important;
	}

	#topbar .topbar-slides__item.swiper-slide::-webkit-scrollbar {
		display: none;
	}

	#topbar .topbar-slides__inner.bassanina-topbar-scroll-ready {
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	#topbar .topbar-slides__inner.bassanina-topbar-scroll-ready::-webkit-scrollbar {
		display: none;
	}

	#topbar .topbar-slides__inner.bassanina-topbar-scroll-ready .topbar-slides__wrapper {
		display: block !important;
		transform: none !important;
		width: max-content !important;
	}

	#topbar .bassanina-topbar-scroll-line {
		display: block;
		white-space: nowrap;
		padding-inline: 12px;
	}
}

/* Short description: show full text when "Mostra altro" is not needed. */
.short-description__content.bassanina-desc-full, .single-product div.product .short-description .short-description__content.bassanina-desc-full {
	display: block !important;
	-webkit-line-clamp: unset !important;
	-webkit-box-orient: initial !important;
	overflow: visible !important;
}

/* La nostra storia: elenco categorie grappa nella card "La Grappa". */
.glozin-image-box__description .bassanina-grappa-tipologie {
	margin: 14px 0 0;
	padding: 0 0 0 1.2em;
	list-style: disc;
}

.glozin-image-box__description .bassanina-grappa-tipologie li {
	margin: 0 0 10px;
	padding: 0;
}

.glozin-image-box__description .bassanina-grappa-tipologie li:last-child {
	margin-bottom: 0;
}

.glozin-image-box__description .bassanina-grappa-tipologie a {
	display: inline;
	color: #1f3b2d !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	transition: color 0.2s ease;
}

.glozin-image-box__description .bassanina-grappa-tipologie a:hover,
.glozin-image-box__description .bassanina-grappa-tipologie a:focus-visible {
	color: #0f2419 !important;
}

/* Mega menu Negozio: promo uva a filo bordo + pulsante centrato su una riga. */
@media (min-width: 1025px) {
	.primary-navigation #menu-item-1000250 > ul.sub-menu.mega-menu.mega-menu--grid {
		padding: 0 !important;
	}

	#menu-item-1000250 .mega-menu-container {
		padding: 0 0 0 40px;
		overflow: hidden;
	}

	#menu-item-1000250 .mega-menu__row {
		margin: 0;
		align-items: stretch;
	}

	#menu-item-1000250 .mega-menu__column:first-child {
		padding: 15px 20px 15px 0;
	}

	#menu-item-1000250 .mega-menu__column:last-child {
		padding: 0 !important;
		margin: 0;
		overflow: hidden;
		background-size: 152% auto !important;
		background-position: center 64% !important;
	}

	#menu-item-1000250 .mega-menu__column:last-child > .menu-item--widget-image {
		position: relative;
		height: 100%;
		margin: 0;
		padding: 0;
	}

	#menu-item-1000250 .mega-menu__column:last-child .menu-widget-image {
		height: 100%;
		min-height: 280px;
	}

	#menu-item-1000250 .mega-menu__column:last-child .menu-widget-image > a.gz-ratio,
	#menu-item-1000250 .mega-menu__column:last-child .menu-widget-image > span.gz-ratio {
		border-radius: 0 !important;
		opacity: 0;
	}

	#menu-item-1000250 .mega-menu__column:last-child .menu-widget-image__content {
		z-index: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		padding: 0 16px 22px !important;
		pointer-events: none;
	}

	#menu-item-1000250 .mega-menu__column:last-child .menu-widget-image__button {
		pointer-events: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 0;
		max-width: calc(100% - 8px);
		margin: 0 auto !important;
		white-space: nowrap;
		font-size: 13px;
		line-height: 1.2;
		--gz-button-padding-top: 14px;
		--gz-button-padding-bottom: 14px;
		padding-inline: 18px;
	}
}

/* Bundle home: subtotale con prezzo originale barrato + scontato */
.glozin-products-bundle__sidebar-subtotal-price .price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45em;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.glozin-products-bundle__sidebar-subtotal-price del {
	opacity: 0.55;
	font-weight: 400;
	text-decoration: line-through;
}
.glozin-products-bundle__sidebar-subtotal-price del .amount {
	text-decoration: line-through;
}
.glozin-products-bundle__sidebar-subtotal-price ins {
	text-decoration: none;
	font-weight: 600;
}

/* Ask question modal: privacy consent stays inside modal */
#product-ask-question-modal .modal__container,
#product-ask-question-modal .modal__wrapper,
#product-ask-question-modal .modal__content {
	overflow-x: hidden;
	max-width: 100%;
}

#product-ask-question-modal .bassanina-ask-privacy-row,
#product-ask-question-modal .wpcf7-form-row:has(.wpcf7-acceptance) {
	position: static !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 1rem !important;
	clear: both;
}

#product-ask-question-modal .bassanina-ask-privacy-row label,
#product-ask-question-modal .wpcf7-acceptance .wpcf7-list-item label {
	position: static !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	height: auto !important;
	padding: 0 !important;
	transform: none !important;
	pointer-events: auto !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 0.6rem !important;
	width: 100% !important;
	max-width: 100% !important;
	color: inherit !important;
	line-height: 1.45 !important;
	z-index: auto !important;
	white-space: normal !important;
}

#product-ask-question-modal .wpcf7-acceptance,
#product-ask-question-modal .wpcf7-acceptance .wpcf7-list-item,
#product-ask-question-modal .wpcf7-form-control-wrap[data-name="privacy-consent"] {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

#product-ask-question-modal .wpcf7-acceptance .wpcf7-list-item-label {
	display: block !important;
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	white-space: normal !important;
	overflow-wrap: anywhere;
	word-break: break-word;
	font-size: 0.9rem;
	line-height: 1.45;
}

/* Theme sets .wpcf7-form input { width:100% } — that collapses the consent text */
#product-ask-question-modal .wpcf7-acceptance input[type="checkbox"] {
	display: inline-block !important;
	width: 1.125rem !important;
	min-width: 1.125rem !important;
	max-width: 1.125rem !important;
	height: 1.125rem !important;
	flex: 0 0 1.125rem !important;
	margin: 0.2rem 0 0 !important;
	position: relative !important;
	pointer-events: auto !important;
}


/* Side cart: note / coupon / shipping icons — light bar, brand icons */
#cart-panel .glozin-note-estimate-coupon__button.gz-button-light {
	--gz-button-bg-color: #f3f3f1;
	--gz-button-bg-color-hover: #e8e8e4;
	--gz-button-color: #197149;
	--gz-button-color-hover: #145c3a;
	background-color: var(--gz-button-bg-color);
	color: var(--gz-button-color);
}

/* Il CSS aggiuntivo mette .icon-fill-none in bianco: sul fondo chiaro spariscono. */
#cart-panel .glozin-note-estimate-coupon__button.gz-button-light .icon-fill-none,
#cart-panel .glozin-note-estimate-coupon__button.gz-button-light .icon-fill-none svg {
	color: #3d3e34;
}

#cart-panel .glozin-note-estimate-coupon__button.gz-button-light:hover {
	background-color: var(--gz-button-bg-color-hover);
	color: var(--gz-button-color-hover);
}

#cart-panel .glozin-note-estimate-coupon__button.gz-button-light:hover .icon-fill-none,
#cart-panel .glozin-note-estimate-coupon__button.gz-button-light:hover .icon-fill-none svg {
	color: #3d3e34;
}

#cart-panel .glozin-note-estimate-coupon__button:nth-child(2),
#cart-panel .glozin-note-estimate-coupon__button:nth-child(3) {
	border-inline-start-color: #d9d9d4;
}

/* Da chiuso il popover non deve coprire le icone.
   Da aperto è una scheda in fondo al carrello, non un velo invisibile. */
#cart-panel .glozin-note-estimate-coupon__button {
	position: relative;
	z-index: 2;
	cursor: pointer;
}
#cart-panel .glozin-note-estimate-coupon__popover {
	pointer-events: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
}
#cart-panel .glozin-note-estimate-coupon__popover.popover--open {
	pointer-events: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
}
#cart-panel .glozin-note-estimate-coupon__popover.popover--open .popover__backdrop {
	background: rgba(17, 17, 17, 0.45);
	visibility: visible;
}
#cart-panel .glozin-note-estimate-coupon__popover .popover__container {
	top: auto;
	bottom: 0;
	padding-top: 12px;
	max-height: min(72vh, 540px);
}
#cart-panel .glozin-note-estimate-coupon__popover .popover__content {
	background: #fff;
	max-height: min(68vh, 500px);
	overflow: auto;
	box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.16);
}

/* Checkout: etichetta e segnaposto non stanno sulla stessa riga.
   A riposo resta solo l'etichetta; al focus sale e compare il segnaposto. */
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input:not(.is-active) input::placeholder,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input:not(.is-active) textarea::placeholder {
	color: transparent;
}

.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active label {
	top: 6px;
	transform: scale(0.82);
	transform-origin: top left;
}

.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active input,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active textarea {
	padding-top: 22px;
	padding-bottom: 6px;
}

/* Checkout: consenso termini allineato alla prima riga, anche su mobile. */
.wp-block-woocommerce-checkout .wc-block-checkout__terms .wc-block-components-checkbox label {
	align-items: flex-start;
}

.wp-block-woocommerce-checkout .wc-block-checkout__terms .wc-block-components-checkbox__input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.wp-block-woocommerce-checkout .wc-block-checkout__terms .wc-block-components-checkbox__label {
	line-height: 1.45;
	white-space: normal;
}

.wp-block-woocommerce-checkout .wc-block-checkout__terms .wc-block-components-checkbox__label a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Checkout mobile: il contenuto non finisce sotto la barra e il tasto torna-su. */
@media (max-width: 991px) {
	body.woocommerce-checkout {
		padding-bottom: 88px;
	}

	body.woocommerce-checkout .gz-button-go-top {
		display: none;
	}
}

/* Il valore del menu (Azienda, Italia, provincia) allineato all'etichetta. */
.wp-block-woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select {
	padding-left: calc(var(--gz-input-padding-x) + 12px);
	text-align: left;
}

/* Mobile: hero video copre il riquadro anche se parte dopo il primo disegno. */
@media (max-width: 767px) {
	.elementor-background-video-hosted[data-bassanina-src] {
		width: 100%;
		height: 100%;
		inset: 0;
		transform: none;
		object-fit: cover;
	}
}

/* Formato fisso: stesso pallino delle variazioni, gia selezionato. */
.bassanina-formato-fisso {
	margin: 0 0 22px;
}
.bassanina-formato-fisso .wcboost-variation-swatches__item {
	cursor: default;
}

/* Blog sidebar product list: thumbnail, title, stars and price in one row. */
.blog-sidebar ul.product_list_widget li {
	padding-bottom: 16px;
}
.blog-sidebar ul.product_list_widget li a.bassanina-widget-product {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
}
.blog-sidebar ul.product_list_widget li a.bassanina-widget-product img {
	float: none;
	flex: 0 0 58px;
	width: 58px;
	max-width: 58px;
	height: auto;
	margin: 0;
}
.blog-sidebar ul.product_list_widget li .bassanina-widget-product__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}
.blog-sidebar ul.product_list_widget li .bassanina-widget-product__body .product-title {
	display: block;
	margin: 0;
}
.blog-sidebar ul.product_list_widget li .bassanina-widget-product__body .star-rating {
	margin: 0;
}
.blog-sidebar ul.product_list_widget li .bassanina-widget-price {
	display: block;
	margin: 0;
	white-space: nowrap;
	font-weight: 600;
	line-height: 1.3;
	color: var(--gz-color-dark);
}
.blog-sidebar ul.product_list_widget li .bassanina-widget-price .woocommerce-Price-amount {
	display: inline;
	margin: 0;
	font-weight: 600;
}
