:root {
	--black: #000000;
	--yellow: #fdcc0d;
}

/* --- Top bar --- */
#ug-topbar-wrapper {
	border-bottom: 2px solid #f7f7f7;
}

#ug-topbar-wrapper .limit-width {
	display: flex;
	padding: 5px 36px 5px 36px;
}

.ug-topbar-area {
	flex: 1;
	font-size: .8em;
}

.ug-area-left {
	text-align: left;
}

.ug-area-center {
	text-align: center;
}

.ug-area-right {
	text-align: right;
}

/* =======================================================================================

Marquee

======================================================================================= */

/* La "finestra" fissa che nasconde ciò che non si vede */
.ug-marquee-banner {
	width: 100%;
	background-color: var(--yellow);
	color: var(--black);
	font-weight: 700;
	overflow: hidden;
	/* Usiamo flexbox per gestire il contenuto */
	display: flex;
	box-sizing: border-box;
	margin-bottom: 22px;
}

/* Il "nastro" mobile che contiene le due copie del testo lunghissimo */
.ug-marquee-track {
	/* Non permettere al contenuto di rimpicciolirsi */
	flex-shrink: 0;
	/* Mette le 2 copie una accanto all'altra */
	display: flex;
	/* Anima questo elemento */
	animation: ug-final-scroll 400s linear infinite;
}

/* Stile del testo stesso */
.ug-marquee-content {
	/* Impedisce al testo di andare a capo */
	white-space: nowrap;
	padding: 12px 0;
	font-size: 16px;
	/* Imposta una dimensione per coerenza */
	/*margin-right: 150px;*/
}

.ug-marquee-content a {
	color: #333;
	text-decoration: none;
}

/* L'animazione per lo scorrimento infinito e fluido */
@keyframes ug-final-scroll {
	from {
		transform: translateX(0%);
	}

	to {
		/* Sposta il nastro verso sinistra della sua metà esatta (la larghezza di una copia) */
		transform: translateX(-50%);
	}
}

/* =======================================================================================

Custom menù

======================================================================================= */

.ug-custom-menu-replacement {
	display: flex;
	height: 100%;
	position: relative;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	z-index: 100;
}

.ug-custom-menu-left {
	flex: 1;
	line-height: 1em;
	text-align: center;
}

.ug-custom-menu-right {
	flex: 1;
	line-height: 1em;
	text-align: center;
}

.ug-custom-menu-search {
	flex: 2;
}

.ug-custom-menu-search input[type=search] {
	border: 2px solid #f2f2f2;
	border-radius: 50px;
}

/* Stile per l'immagine del menu */
.navbar-main .menu-primary-inner>.menu-item>a,
.ug-sub-header-menu>.menu-item>a {
	display: flex;
	align-items: center;
	/* Allinea verticalmente l'immagine e il testo al centro */
}

.menu-item-image {
	max-height: 24px;
	/* Puoi modificare questo valore */
	width: auto;
	margin-right: 8px;
	/* Spazio tra immagine e testo */
	object-fit: contain;
	vertical-align: bottom;
}

/* Stile per il menu "Sub Header" */

.ug-sub-header-menu {
	border-top: 2px solid #f2f2f2;
	padding-bottom: 1em;
	padding-top: 1em;
}

.ug-sub-header-menu a {
	color: #303133;
}

.ug-sub-header-menu>ul {
	display: flex;
}

.ug-sub-header-menu>ul>li {
	flex: 1;
}

.ug-sub-header-menu>ul>li a {
	font-weight: 700;
}

@media (min-width: 960px) {

	.ug-sub-header-menu>ul>.menu-item {
		position: relative !important;
	}

	.ug-sub-header-menu .sub-menu {
		display: block;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		background-color: #f1f1f1;
		border: 1px solid #ddd;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 12px 12px;
		min-width: 180px;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.ug-sub-header-menu .sub-menu li a {
		display: block;
		text-align: left;
		padding: 6px 0;
	}

	.ug-sub-header-menu .menu-item:hover>.sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.ug-sub-header-menu .ug-menu-item-button>a {
	background-color: var(--yellow);
	color: #ffffff;
	padding: 8px 15px !important;
	border: 1px solid var(--yellow);
	border-radius: 130px;
	transition: background-color 0.3s ease;
	margin: 5px 0;
}

/* Stile per il pulsante al passaggio del mouse */
.ug-sub-header-menu .ug-menu-item-button>a:hover {
	background-color: transparent;
	color: var(--yellow);
}

/* =======================================================================================

Custom form style

======================================================================================= */

.custom-measurement-form-wrapper {
	background-color: #f7f7f7;
	margin-bottom: 1em;
	padding: 2em;
}

.custom-measurement-form-wrapper h3 {
	margin-bottom: 1em;
	margin-top: 0;
}

.custom-measurement-form-wrapper .ug-form-field label {	
	color: #303133;
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 0;
}

.custom-measurement-form-wrapper  .ug-form-field-checkbox label, 
.custom-measurement-form-wrapper  .ug-form-field-radio label {
	font-weight: 400;
}

.custom-measurement-form-wrapper .ug-form-field input {
	margin-top: 0;
}

.custom-measurement-form-wrapper h4:not([class*="fontsize-"]) {
	font-weight: 600;
	font-size: 16px;
}

@media (max-width: 959px) {

	#ug-topbar-wrapper .limit-width {
		display: block;
	}
	
	#ug-topbar-wrapper .limit-width .ug-area-left,
	#ug-topbar-wrapper .limit-width .ug-area-center,
	#ug-topbar-wrapper .limit-width .ug-area-right {
		text-align: center;
	}
	

	/* Nasconde l'intero contenitore del Sub-Header Menu */
	.ug-sub-header-menu {
		display: none !important;
	}

}

@media (max-width: 959px) {

	/* Su mobile, il menu custom è SEMPRE nascosto */
	.ug-custom-menu-wrapper {
		display: none !important;
	}
}

/* --- VISTA DESKTOP (da 960px in su) --- */
@media (min-width: 960px) {

	/*
     * Di base, il menu custom (se esiste) è nascosto
     * e quello originale è visibile.
    */
	.ug-custom-menu-wrapper {
		display: none;
	}

	.ug-original-menu-wrapper {
		display: block;
		/* O 'contents' a seconda del tema */
	}

	/*
     * MA, se il body ha la classe .ug-custom-menu-active,
     * invertiamo la situazione!
    */
	.ug-custom-menu-active .ug-custom-menu-wrapper {
		display: flex !important;
		/* Mostriamo il menu custom */
	}

	.ug-custom-menu-active .ug-original-menu-wrapper {
		display: none !important;
		/* E nascondiamo quello originale */
	}
}

/* =======================================================================================

Style for the discount percentage badge added to the price.

======================================================================================= */
.price {
    position: relative;
    display: inline-block; /* Ensures the container wraps the price correctly */
    padding-right: 65px; /* IMPORTANT: Adds space on the right for the badge to live in */
}

/* 2. Style for the badge itself (unchanged) */
.ug-discount-percentage-badge {
    position: absolute;
    top: 50%; /* Center vertically */
    right: 0; /* Align to the far right of the new padding area */
    transform: translateY(-50%); /* Fine-tune vertical centering */
    background-color: var(--yellow);
    color: #ffffff;
    font-size: 0.7em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap; /* Ensures the text inside the badge doesn't wrap */
    /* The margin-left is no longer needed */
}

.ug-circular-discount-badge-inline {
	background-color: var(--yellow);
	border-radius: 4px;
	color: #ffffff;
	display: inline-block;
	font-size: .3em;
	line-height: 1em;
	padding: 3px 8px;
	text-align: center;
	transform: translateY(-100%);
}

.ug-vat-excluded-label {
	background-color: var(--yellow);
	border-radius: 2px;
	color: #ffffff;
	font-size: .5em;
	margin-top: 0;
	padding: .2em .5em;
	white-space: nowrap
}

.single-product .ug-vat-excluded-label {
	font-size: .4em;
}

.single-product del {
	color: rgba(119,119,119,0.65);
	font-size: .6em;
}

.ug-price-suffix {
	font-size: .7em;
}

.single-product .ug-price-suffix,
.woocommerce-Price-currencySymbol {
	font-size: .4em;
}

@media (max-width: 960px) {
	.ug-discount-percentage-badge {
		position: static;
	}
}

/* =======================================================================================

Custom meta.

======================================================================================= */

.detail-container .detail-label {
	min-width: 150px;
}

/* =======================================================================================

Stuff.

======================================================================================= */

p, li, dt, dd, dl, address, label, small, pre, code, span.tab-excerpt {
	line-height: 1.25;
}