@import url('https://fonts.googleapis.com/css?family=Fira+Sans:100,200,300,400,500,600,700,800,900&subset=cyrillic,cyrillic-ext,latin-ext');


/* IC changes start*/
.woocommerce-checkout #sped_corriere_field {
	/* border: 1px solid rgba(0, 0, 0, .1); */
	border-radius: 5px;
	padding: 1px;
	z-index: 1;
	position: relative;
}

.woocommerce-checkout #sped_corriere_field label[for="GLS"].custom-radio {
	width: 100%;
	background: #008095;
	color: #fff;
	padding: 9px 12px !important;
	font-weight: 700;
	margin-bottom: 0;
	line-height: 1.5em;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.woocommerce-checkout #sped_corriere_field .woocommerce-input-wrapper {
	border-top: 1px solid rgba(0, 0, 0, .1);
	margin-top: 1px;
	padding: 9px 12px;
	height: 42.8px;
	display: flex;
	align-items: center;
}
.woocommerce-checkout #sped_corriere_field .woocommerce-input-wrapper label.custom-radio{
	margin: 0;
}

.woocommerce-checkout #sped_corriere_field .woocommerce-input-wrapper input[value="BRT"].custom-control-input {
	margin-left: 5%;
}

.shipping-logo {
	height: 24px;
	width: 37px;
	object-fit: contain;
	margin-left: 8px;
	margin-top: -2px;
}

/* IC changes end*/

.rx_menu li a i.fa-user {
	background: url(https://www.domusnaturae.it/wp-content/uploads/2021/10/user.svg) center center no-repeat;
	width: 26px;
	height: 26px;
	display: block;
}

.sw_cart_sidebar_main a i.fa-shopping-cart {
	background: url(https://www.domusnaturae.it/wp-content/uploads/2021/10/cart.svg) center center no-repeat;
	/* width: 26px; */
	width:100%;
	height: 26px;
	display: block;
}

.wishlist-menu .heading .items-counter a i.fa-heart-o:before {
	content: none;
}

.wishlist-menu .heading .items-counter a i.fa-heart-o {
	background: url(https://www.domusnaturae.it/wp-content/uploads/2021/10/heart_icon.svg) center center no-repeat;
	width: 26px;
	height: 26px;
	display: block;
}

.rx_menu li a i.fa-user:before {
	content: none;
}

.sw_cart_sidebar_main a i.fa-shopping-cart:before {
	content: none;
}


#order_review_heading {

	margin-top: 50px;
}



.custom-control-input {
	position: relative !important;
	z-index: 9999999 !important;
	opacity: 1 !important;
}

.custom-control {
	padding-left: 0px !important;
}


.woocommerce-billing-fields {
	border-radius: 10px !important;
	background-color: #f3f3f3 !important;
	padding: 35px !important;
}


html {
	width: 100%;
	overflow-x: hidden;
}

body {
	font-family: 'Quicksand', sans-serif;
	width: 100%;
}

.btn:focus {
	box-shadow: none;
}

/**
 * VERDE ACIDO #8AC241
 * SCURO   #004c97
 * MEDIO   #009136
 * CHIARO  #07A416
 * GRIGIO  #707070
 * LIGHT   #E9E9E9
 * ARANCIO #efad1b
 * SCURO   #f5990f
**/

.nav_domus {
	position: relative;
}

.nav_domus .container {
	z-index: 1;
}

.wpmenucart-icon-shopping-cart-0:before {
	margin-left: 6px;
	content: "\f290";
}

.megamenu-li {
	position: static;
}

.megamenu {
	position: absolute;
	width: 100%;
	left: 0;
	right: 0;
	padding: 15px;
}



.dropdown-toggle::after {
	display: inline-block;
	height: 6px;
	width: 6px;
	content: "";
	border: 0;
	border-bottom: 1px solid #fff;
	border-left: 1px solid #fff;
	transform: rotate(-45deg);
}



.megamenu.dropdown-menu {
	border: 0;
	margin: 0;
	border-radius: 0;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .3);
	transition: all 0.3s ease-in-out;
}


a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.nav_brand {
	width: 100%;
	padding: 30px 0;
}

.nav_brand img {
	max-width: 380px;
	height: auto;
}

.navbar-brand.custom-logo-link {
	margin: 0;
}

@media(max-width: 767px) {
	.nav_brand img {
		max-width: 200px;
		height: auto;

	}
}


.navbar-light .navbar-nav .nav-link {
	/*text-transform: uppercase;*/
	color: #333;
	font-weight: 600;
	font-size: 15px;
	padding: 8px 14px;
	letter-spacing: .4px;
}


.nav_domus {
	background: #005867;
	/* border-bottom:3px solid #c1c1c1; */
}

.nav_left,
.nav_right {
	max-width: 200px;
	display: flex;
}

.nav_left {
	position: absolute;
	left: 0;
}

.nav_right {
	position: absolute;
	right: 0;
	min-width: 300px;
	align-items: flex-end;
	justify-content: flex-end;
}


@media(min-width: 992px) {

	.mobile_header_main_wrapper {
		display: none !important;
	}
}

@media(max-width: 991px) {
	.mobile_header_main_wrapper:has(.sw-ajax-woo-search-result .row-eq-height) .mobile_header_main_wrap {
		z-index: 0;
	}

	.mobile_header_search_wrap:has(.sw-ajax-woo-search-result .row-eq-height)::before {
		position: fixed;
		content: "";
		inset: 0 !important;
		width: 100vw;
		background-color: rgba(0, 0, 0, .7);
		z-index: 14;
		height: 110vh;
		top: -100px !important;
	}

	.sw-ajax-woo-search-result {
		top: 77px !important;
	}

	.custom-logo-link img {
		max-height: 40px;
	}

	.navbar-brand.custom-logo-link {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0;
	}

	.sw_cart_sidebar_wrapper_icon span {
		right: 5px !important;
	}

	.rx_menu ul {
		padding: 0;
	}

	.sw_cart_sidebar_wrapper_icon .swcs_i_url {
		position: relative;
	}

	.ctm_ic_nav_brand_wrap,
	.ctm_nav_domus_wrap {
		display: none !important;
	}

	.mobile_header_main_wrapper {
		display: block !important;
		background: #ffff;
		box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .05);
		position: sticky;
		top: 0;
		z-index: 9999;
	}

	.mobile_header_main_wrapper.sticky_mobile_top:has(.sw-ajax-woo-search-result .row-eq-height),
	.mobile_header_main_wrapper {
		/* height: 148px; */
		transition: all 0.6s ease-in-out;
	}

	/* .mobile_header_main_wrapper.sticky_mobile_top { */
		/* height: 86px; */
		/* transition: all 0.6s ease-in-out; */
	/* } */

	.mobile_header_main_wrap {
		z-index: 9999;
	}

	.ic_woo_srch.ic_woo_srch_wrap:has(.sw-ajax-woo-search-result .row-eq-height)::before {
		content: unset;
	}

	.mobile_header_main_wrapper.sticky_mobile_top:has(.sw-ajax-woo-search-result .row-eq-height) .mobile_header_search_wrap,
	.mobile_header_main_wrapper .mobile_header_search_wrap {
		transition: all 0.6s ease-in-out;
		background: #fff;
		opacity: 1;
		transform: translateY(0px);
		width: 100%;
	}

	.mobile_header_main_wrapper.sticky_mobile_top .mobile_header_search_wrap {
		z-index: -9999;
		background: #fff;
		width: 100%;
		opacity: 0;
		transition: all 0.6s ease-in-out;
		transform: translateY(-150px);
	}

	#navbar {
		position: absolute;
		top: 38px;
		width: 50vw;
		background-color: #f8f8f8;
		z-index: 999;
	}

	.ic_woo_srch.ic_woo_srch_wrap {
		margin: 0 !important;
		width: 100% !important;
	}

	.nav_left {
		display: block !important;
		max-width: unset;
		width: unset;
		position: relative;
		width: 100%;
		margin: 0px 0;
	}

	.dgwt-wcas-search-wrapp {
		max-width: unset;
		width: 100% !important;
	}

	button.navbar-toggler {
		position: relative;
		right: 0;
	}

	.nav_right {
		position: relative;

	}
}

.navbar-light .navbar-toggler {
	border: 0;
	box-shadow: none;
}

.megamenu_box {
	height: 120px;
}

.megamenu_cat_info {
	font-size: 13px;
}

.megamenu_cat_info h4 {
	font-size: 20px;
	padding: 10px 0;
	margin: 0;
	text-transform: capitalize;
}

.megamenu_cat_info p {
	margin: 0 0 8px 0;
	font-size: 13px;
}

.megamenu_cat_info a.btn_text {
	padding: 6px 0;
	font-size: 14px;
	font-weight: 500;
	color: #07A416;
}

h5.megamenu_title {
	position: relative;
	font-size: 18px;
	margin: 0 0 2px 0;
	padding: 0 0 8px 0;
	color: #181818;
	font-weight: 500;
}

@media(max-width: 767px) {
	h5.megamenu_title {
		padding-top: 10px;
	}
}

h5.megamenu_title::after {
	width: 100%;
	height: 1px;
	content: "";
	position: absolute;
	bottom: 1px;
	left: 0;
	padding: 1px;
	display: block;
	background: #e3e3e3;
	margin-top: 5px;
}

ul.megamenu_ul {
	margin-top: 20px;
	list-style-type: none;
	padding: 0;
}

ul.megamenu_ul li {

	padding: 6px 24px 10px 0px;
	display: inline-block;
	min-width: 230px;
	max-width: 230px;
	vertical-align: middle;
	line-height: 16px;
}

ul.megamenu_ul li a {
	color: #262626;
	font-size: 14px;
	font-weight: 400;
}

ul.megamenu_ul li a:hover {
	color: #004c97;
	font-weight: 400;
}

.megamenu ul {
	list-style-type: none;
	padding: 0;
}

.megamenu ul .product img {
	height: 160px !important;
	object-fit: contain;
}

.megamenu ul .product h2.woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 600;
	padding-left:15px;
}

.nav_main,
nav.navbar {
	display: flex;
}

.nav_main {
	align-items: center;
}

nav.navbar {
	flex-grow: 2;
}

#carrello li a.nav-link {
	padding: 0 7px;
}

.nav_domus ul.navbar-nav li.nav-item a.nav-link {
	color: #fff;
}

.bk {
	background-size: cover;
	background-position: center center;
}

.btn-primary {
	text-transform: uppercase;
	font-weight: 500;
	padding-left: 20px;
	padding-right: 20px;
}

.wrapper {
	padding: 20px 0 !important;
}

#site-top-bar {
	background: #fff;
	color: #005867;
	text-align: center;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 0;
	font-weight: 400;
}


.rx_menu ul {
	list-style-type: none;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0;
}

.rx_menu ul li {
	display: inline-block;
	vertical-align: middle;
}

/* FOOTER */
#wrapper-footer {
	background: #004c97;
	color: #fff;
}

#wrapper-footer a {
	color: #fff;
}

.sw_footer_menu ul {
	list-style-type: none;
	padding: 0;
}

.sw_footer_menu li {
	min-width: 110px;
	font-size: 14px;
}

.social_icons_title {
	padding: .5rem 0;
}

a.social_icons,
a.social_icons:link,
a.social_icons:visited {
	border-radius: 50%;
	border: 1px solid #fff;
	padding: 6px 8px;
	margin-right: 6px;
	font-size: 16px;
	color: #fff;
	transition: all 0.4s ease-in-out;
}

a.social_icons:hover,
a.social_icons:active {
	background: #fff;
	color: #262626 !important;
}

.site-info p {
	font-size: 13px;
}

/** BTNS */
.btn-outline-primary,
.btn-outline-primary:link,
.btn-outline-primary:visited,
.product .btn-outline-primary:link,
.product .btn-outline-primary:visited {
	border-color: #a47713;
	color: #efad1b;
	font-weight: 700;
}




.woocommerce.single.single-product .summary.entry-summary form.cart button,
#payment .place-order button.btn-primary {
	background: #efad1b !important;
	border-color: #a47713
}

.woocommerce.single.single-product .summary.entry-summary form.cart button:hover,
.woocommerce.single.single-product .summary.entry-summary form.cart button:active,
.woocommerce.single.single-product .summary.entry-summary form.cart button:focus,
,
#payment .place-order button.btn-primary:hover,
,
#payment .place-order button.btn-primary:active,
,
#payment .place-order button.btn-primary:focus {
	background: #f5990f !important;
	border-color: #f5990f !important;
}


@media (min-width: 768px) {
	#sidebar_filtri.collapse:not(.show) {
		display: block;
		/* background: #f1f1f1; */
		padding: 14px 15px 12px;
		margin-bottom: 7px;
		border: 0;
	}

	.btn-filtra {
		display: none;
	}

}

.btn-filtra {
	width: 100%;
	text-align: center;
	text-transform: uppercase;
	color: #004c97;
	font-weight: 500;
	border: 1px solid #004c97;
	border-radius: 0;
	margin-bottom: 12px;
}

.btn-filtra:hover,
.btn-filtra:active,
.btn-filtra:focus {
	box-shadow: none !important;
	background: #004c97;
	color: #fff;
}

@media(max-width: 767px) {
	.woocommerce .woocommerce-ordering {
		width: 100% !important;
	}

	.woocommerce .woocommerce-result-count {
		font-size: 15px;
	}
}





.fa-star::before {
	color: #e8db35
}

.form-control:focus,
.custom-select:focus {
	box-shadow: none;
	border-color: #07A416;
}

.woocommerce .quantity .qty {
	height: 38px;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
	flex: 0 0 48% !important;
	max-width: 48% !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	/*margin: 0!important;*/
	border: 1px solid #ddd;
	/*	background-color:#ececec*/
	/*width: 33.3%!important;*/
}

.woocommerce section.related ul.products li.product,
.woocommerce-page section.related ul.products li.product {
	margin: 0 !important;
	border: 1px solid #ddd;
	width: 20% !important;
}

@media (max-width: 767px) {

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {

		width: 100% !important;
	}
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	padding: 15px 15px 5px 15px;
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .price {
	padding: 0 10px 5px 15px;
	font-size: 25px;
	font-weight: 700;
	color: #606060;
}

.woocommerce div.product p.price {
	font-size: 25px;
	font-weight: 700;
	color: #606060;
}

ins {
	text-decoration: none;
}

del {
	font-size: 13px;
}

/* pag prodotto */
.woocommerce-product-gallery__wrapper {
	padding: 15px;
	border: 1px solid #ededed;
	border-radius:25px;
}

.woocommerce div.product p.price del {
	font-size: 16px;
	display: block;
	color: #aaa;
	line-height: 16px;
}

.woocommerce div.product p.price ins {
	display: block;
	font-size: 30px;
}

/* hide titolo tab prodotto */
.wc-tab>h2 {
	display: none;
}

/* tabs prodotto */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	border-radius: 0;
	border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid #ddd;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
	box-shadow: none;
	border-radius: 0;
	border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid #00519d;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: #fff;
}

.product_page--shipping-under-cart-btn {
	margin-top: 30px;
	border: 2px dashed #c7c7c7;
	padding: 15px;
	background: #eee;
}

.product_page--shipping-under-cart-btn h4 {
	color: #004c97;
	font-weight: 500;
	margin-bottom: 10px
}

.product_page--shipping-under-cart-btn p {
	margin: 0;
}

.woocommerce-product-details__short-description {
	padding: 0 0 15px 0;
}


section.related h2 {
	margin: 50px 0 15px 0;
	font-weight: 700;
	font-size: 24px;
	color: #161616;
}



.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
	background-color: #ddd;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	background-color: #7c7c7c;
}


/**** BLOG ****/
.blog_slider_box .blog_slider_img {
	background-size: cover;
	min-height: 450px;
	background-position: center center;
}

.blog_slider_box h1 {
	color: #fff;
	font-size: 30px;
	font-family: 'Fira Sans', sans-serif;
	font-weight: 600;
}

.blog_slider_box p {
	color: #fff;
	font-size: 18px;
}

.blog_slider_box.tema-scuro h1,
.blog_slider_box.tema-scuro p {
	color: #333;
	font-family: 'Fira Sans', sans-serif;
}

.link a.btn-blog-slider {
	color: #fff;
	border: 2px solid #fff;
	background: rgb(0 0 0 / 26%);
	border-radius: 50px;
	padding: 4px 25px;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
}

.link a.btn-blog-slider:hover,
.link a.btn-blog-slider:active {
	color: #333;
	border: 2px solid #fff;
	background: transparent;
	background: #fff;
}


.blog_slider_box.tema-scuro .link a.btn-blog-slider {
	color: #333;
	border: 2px solid #333;
	background: transparent;
}

.blog_slider_box.tema-scuro .link a.btn-blog-slider:hover,
.blog_slider_box.tema-scuro .link a.btn-blog-slider:active {
	color: #fff;
	border: 2px solid #333;
	background: transparent;
	background: #333;

}

.btn-blog-slider i {
	padding: 0 0 0 10px;
	font-size: 13px;
	display: inline-block;
	line-height: 18px;
}

.swiper-button-next,
.swiper-button-prev {
	background-size: 16px;
}

.blog_slider_img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}

@media(max-width: 767px) {
	.blog_slider_box .blog_slider_img {
		background-size: cover;
		min-height: 330px;
		background-size: cover;
		/* box-shadow: inset 0 0 0 2000px rgb(36 36 36 / 58%); */
	}
}



.blog_title {
	color: #585858;
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 6px;
	margin-top: 25px;
	font-family: 'Fira Sans', sans-serif;
}


.blog_subtitle {
	color: #707070;
	font-size: 19px;
	margin-bottom: 50px;
}




article.post.type-post {
	margin-bottom: 30px;
}

.blog_content_img {
	height: 260px;
	background-size: cover;
	position: relative;
}

.blog_content_img_date {
	position: absolute;
	bottom: 15px;
	left: 15px;
	background: #fff;
	border-radius: 25px;
	padding: 4px 18px;
	font-size: 12px;
	box-shadow: 0 3px 14px -4px rgba(0, 0, 0, .3);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.blog_article_wrapper {
	/*box-shadow: 0 -3px 20px -8px rgba(0,0,0,.5);*/
	border: 1px solid #ddd;
}

.blog_content {
	padding: 15px;
}

.blog_content .post_title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	font-family: 'Fira Sans', sans-serif;
	color: #585858;
}

.blog_content p {
	font-size: 15px;
	margin: 0 0 10px 0;
}

.blog_content .btn_text_white {
	color: #9a9a9a;
	border: 2px solid #19b185;
	padding: 5px 18px;
	border-radius: 14px;
	letter-spacing: 0.6px;
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 700;
	transition: all 0.3s ease-in-out;
	display: contents;
}

.btn_text_white:hover {
	color: #efad1b !important;
}

.blog_content .btn_text_white:hover,
.blog_content .btn_text_white:active {
	color: #fff;
	border: 2px solid #07A416;
	background: #07A416;
	padding: 5px 18px;
	border-radius: 14px;
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 700;
	transition: all 0.3s ease-in-out;
}


.blog_content .btn_text_white i {
	padding-left: 3px;
	transition: all 0.3s ease-in-out;
}

.blog_content .btn_text_white:hover i {
	padding-left: 6px;
	color: #efad1b;
}

.single_post_header {
	height: 500px;
	background-size: cover;
	background-position: center center;
	overflow: visible;
	z-index: 1;
}

.single_post_content_wrapper {
	margin-top: -80px;
	margin-bottom: 80px;
	z-index: 2;
	background: #fff;
	padding: 40px;
	box-shadow: 0 0 32px 0px rgba(0, 0, 0, .3);
}

@media(max-width: 991px) {
	.single_post_header+.container {
		padding: 0;
		max-width: unset;
	}

	.single_post_content_wrapper {
		padding: 20px 15px;
	}
}

.single_post_title {
	font-size: 32px;
	font-weight: 600;
	color: #686868;
}

.subtitle {
	font-size: 20px;
	color: #707070;
}

.single_post_date {
	text-transform: capitalize;
	color: #161616;
}

.single_post__content {
	margin-top: 25px;
	font-size: 17px;
	line-height: 140%;
}

.single_post__content a {
	color: #0d5a8f;
	font-weight: 700;
}

#right-sidebar {
	border-left: 2px dotted #cfd0d0;
}

@media(max-width: 767px) {
	#right-sidebar {
		margin-top: 30px;
		border-left: 0;
	}
}

#right-sidebar h3.widget-title {
	font-size: 22px;
	margin: 0 0 10px 0;
}

#right-sidebar ul {
	list-style-type: none;
	padding: 0;
}

#right-sidebar ul li {
	font-size: 16px;
	color: #0d5a8f;
	font-weight: 600 !important;
	margin: 0px 10px 20px 10px;
}

/***
 * 
 * HOMEPAGE
 * 
*/
.homepage_slider {
	overflow: visible;
	background-size: cover;
	background-position: center center;
	position: relative;
	z-index: 2;
}

.homepage_slider::before {
	z-index: -1;
	background: rgba(255, 255, 255, .1);
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.homepage_slider h1 {
	margin-bottom: 30px;
	z-index: 2;
	margin-bottom: 30px;
	z-index: 2;
	color: #f3f3f3;
	font-size: 2em;
	font-weight: 700;
	font-family: 'Fira Sans', sans-serif;
}


body #tit_slider .titolo_chiaro h1 { 
    color: #000000 !important; 
}


#tit_slider .titolo_scuro h1 {
	color: #333 !important;
}

a.btn-outline-header {
	background: #eea770;
	border-radius: 0;
	padding: 8px 30px;
	border: 2px solid #fff;
	color: #fff;
	font-weight: bold;
	transition: all 0.3s ease-in-out;
	position: relative;
	overflow: hidden;
	z-index: 2;
}

a.btn-outline-header:hover,
a.btn-outline-header:active,
a.btn-outline-header:focus {
	box-shadow: none;
	color: #fff;
}

a.btn-outline-header::after {
	transition: all 0.15s ease-out;
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, .15);
	z-index: 2;
	content: "";
	transform: translate(-100%, -100%);
}

a.btn-outline-header:hover::after,
a.btn-outline-header:active::after,
a.btn-outline-header:focus::after {
	transform: translate(0, 0);
}

.homepage_content_section {
	background: #f9f9f9;
}

/* ==============================================
   HOMEPAGE CONTENT (DESKTOP - Invariato o quasi)
   ============================================== */
.homepage_content {
    background: #fff;
    z-index: 3;
    position: relative;
    display: block;
    overflow: visible;
    
    /* Stile Desktop: Effetto "Overlapping" */
    margin-top: -60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* Ombra più moderna e diffusa */
    border-radius: 8px; /* Leggero smusso */
}

.homepage_content .hc_title {
    color: #fff;
    background: #004c97;
    border-radius: 8px 8px 0 0; /* Arrotonda anche il titolo per seguire il box */
}

.homepage_content .hc_title h2 {
    margin: 0;
    padding: 12px 15px; /* Spaziatura migliore */
    font-size: 24px;
    font-family: 'Quicksand', sans-serif; /* Uniformità font */
    font-weight: 700;
}

/* ==============================================
   MOBILE UI OPTIMIZATION
   ============================================== */
@media (max-width: 767px) {
    
    .homepage_content {
        /* 1. RIMUOVIAMO IL MARGINE NEGATIVO */
        /* Impostiamo a -20px solo per un leggerissimo effetto di connessione, 
           ma abbastanza basso da non coprire il testo dello slider */
        margin-top: -20px !important; 
        
        /* 2. STILE "SHEET" (FOGLIO) */
        border-top-left-radius: 25px !important;
        border-top-right-radius: 25px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        
        /* 3. PULIZIA OMBRA */
        /* Rimuoviamo l'ombra laterale pesante, lasciamo solo un leggero stacco sopra */
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05) !important;
        
        /* 4. SPAZIATURA */
        padding-bottom: 30px !important; /* Spazio in fondo per respirare */
    }

    /* Adattiamo l'header blu su mobile */
    .homepage_content .hc_title {
        border-top-left-radius: 25px !important; /* Segue la curva del box */
        border-top-right-radius: 25px !important;
        text-align: center; /* Titolo centrato su mobile */
    }
    
    .homepage_content .hc_title h2 {
        font-size: 20px !important; /* Font leggermente più piccolo */
        padding: 15px 10px !important;
    }
}


.woocommerce span.onsale {
	min-height: unset;
	min-width: 3.236em;
	padding: 4px 30px 4px 30px;
	font-size: 20px !important;
	letter-spacing: 1px;
	font-weight: 400;
	position: absolute;
	text-align: center;
	line-height: 26px;
	top: 25px;
	left: 0;
	margin: 0;
	border-radius: 0;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
	background-color: #fde25b;
	color: #000;
	font-size: .857em;
	font-weight: 600;
	z-index: 9;
}

.woocommerce ul.products li.product .onsale {
	padding: 4px 25x 4px 25x;
	margin: 0;
	top: 20px;
	left: 0px;
	right: unset;
	font-size: 16px !important;
	line-height: 22px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

/*** 
 * 
 * HOMEPAGE
 * 
**/

.hp_wrapper_content {
	padding: 0px 20px;
}

.hp_wrapper_content:first-of-type {
	padding-top: 20px;
}



/* ============================================================
   HOMEPAGE CATEGORY BOX (Fix Spaziatura Desktop)
   ============================================================ */

/* 1. IL CONTENITORE */
.homepage_cat_box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Tutto allineato in basso */
    align-items: flex-start;
    position: relative;
    z-index: 1;
    
    height: 400px; 
    padding: 30px; 
    
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    background-size: cover !important;
    background-position: center center !important;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.homepage_cat_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 76, 151, 0.2);
}

/* 2. OVERLAY SCURO */
.homepage_cat_box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 20, 40, 0.9) 0%, rgba(0, 20, 40, 0.4) 50%, transparent 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.homepage_cat_box:hover::before {
    background: linear-gradient(to top, rgba(0, 20, 40, 0.95) 0%, rgba(0, 20, 40, 0.6) 60%, transparent 100%);
}

/* 3. IL TITOLO (Ridotto margine inferiore) */
.homepage_cat_box h4 {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    font-weight: 700;
    /* Avvicina il titolo al bottone/descrizione */
    margin-bottom: 8px !important; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    line-height: 1.1;
}

/* 4. DESCRIZIONE (Se presente) */
.homepage_cat_box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px; /* Spazio ridotto tra testo e bottone */
    line-height: 1.4;
    display: block; /* Assicura che occupi spazio */
}

/* 5. IL BOTTONE (Fix Distanza) */
.homepage_cat_box a.btn, 
.homepage_cat_box > a {
    display: inline-block;
    background-color: #efad1b;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.3);
    
    /* MODIFICA FONDAMENTALE: */
    /* Rimosso margin-top: auto che lo spingeva via */
    margin-top: 10px !important; 
}

.homepage_cat_box a.btn:hover,
.homepage_cat_box > a:hover {
    background-color: #d89605;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(239, 173, 27, 0.5);
}

/* ============================================================
   MOBILE OPTIMIZATION (Box Categorie Ingrandito)
   ============================================================ */

@media (max-width: 767px) {
    .homepage_cat_box {
        /* AUMENTATO DA 300px A 420px */
        height: 370px !important; 
        display:none;
        padding: 20px !important;
        margin-bottom: 25px !important; /* Più spazio tra un box e l'altro */
    }
    
    /* Ingrandiamo leggermente anche il titolo per proporzione */
    .homepage_cat_box h4 {
        font-size: 28px !important; /* Uguale al desktop per impatto visivo */
        margin-bottom: 10px !important;
    }

    /* Rendiamo il bottone un po' più grande e facile da cliccare */
    .homepage_cat_box a.btn, 
    .homepage_cat_box > a {
        padding: 12px 30px !important;
        font-size: 15px !important;
    }
}



.woocommerce ul.products.homepage-products {
	height: 100%;
}

.woocommerce ul.products.homepage-products li.product {
	width: 100% !important;
	height: 100% !important;
}

.pb20px,
.woocommerce ul.products.homepage-products {
	padding-bottom: 20px;
}

.separatore {
	display: block;
	width: 100%;
	padding: 0;
	border-bottom: 2px dotted #d5d5d5;
}

.hc_title_simple h3 {
	color: #606060;
	font-size: 26px;
	font-weight: 500;
	padding: 10px 20px;
	z-index: 2;
	display: inline-block;
	text-align: center;
	background: #fff;
	position: relative;
	font-family:
}

.hc_title_simple::before {
	content: "";
	border-bottom: 2px dotted #d5d5d5;
	display: block;
	width: 100%;
	position: absolute;
	top: 50%;
	left: 0;
	z-index: -1;
}






/* ============================================================
   MOBILE FIX: CAT BOX STILE 2 (Clean Stacked Card)
   ============================================================ */

@media (max-width: 767px) {

    /* 1. IL CONTENITORE PRINCIPALE DIVENTA UNA CARD UNICA */
    .homepage_cat_box_stile2_wrapper {
        border-radius: 20px; /* Arrotonda tutto il blocco */
        overflow: hidden;    /* Maschera ciò che esce */
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Ombra morbida esterna */
        margin-bottom: 30px; /* Spazio sotto */
        background: #fff;
    }

    /* 2. L'IMMAGINE (Sta sopra, pulita) */
    .homepage_cat_box_stile2_img {
        height: 260px !important; /* Altezza bilanciata */
        width: 100%;
        border-radius: 0 !important; /* Niente bordi interni */
        margin: 0 !important;
    }

    /* 3. IL WRAPPER DEL CONTENUTO (Reset della posizione) */
    .homepage_cat_box_stile2_wrapper_content {
        margin-top: 0 !important; /* RIMUOVE L'ACCAVALLAMENTO */
        padding: 0 !important;    /* Toglie padding laterale inutile */
        width: 100%;
    }

    /* 4. IL BOX COLORATO (Sta sotto l'immagine) */
    .homepage_cat_box_stile2_content {
        box-shadow: none !important; /* Rimuove l'ombra interna vecchia */
        padding: 30px 20px !important; /* Spazio interno comodo */
        border-radius: 0 !important;   /* Quadrato (i bordi tondi li dà il wrapper) */
        min-height: auto;
    }
    
    /* Titolo */
    .homepage_cat_box_stile2_content h4 {
        font-family: 'Quicksand', sans-serif;
        font-weight: 700;
        font-size: 22px;
        margin-bottom: 10px;
        text-transform: none; /* Più elegante */
    }

    /* Testo */
    .homepage_cat_box_stile2_content p {
        font-size: 15px;
        line-height: 1.5;
        opacity: 0.9;
        margin-bottom: 20px; /* Spazio per il bottone */
    }

    /* 5. IL BOTTONE (Modernizzato) */
    .homepage_cat_box_stile2_wrapper_content a.btn-stile2 {
        margin-top: 0 !important; /* Rimuove margine negativo */
        margin-bottom: 0 !important;
        
        display: inline-block;
        border-radius: 50px !important; /* A pillola */
        padding: 12px 30px !important;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: #fff !important; /* Bottone bianco risalta sul fondo colorato */
        color: #333 !important;      /* Testo scuro */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        border: none;
    }

    /* Colore testo specifico per variante v2 (azzurra) se serve */
    .homepage_cat_box_stile2_content.v2 + a.btn-stile2 {
        color: #21a1d6 !important; /* Testo azzurro sul bottone */
    }
}


.homepage_banner {
	margin-top: -50px;
	padding: 125px 0 100px 0;
	color: #fff;
}

.homepage_banner h5 {
	font-size: 64px;
	font-weight: 700;
	/* font-family: 'Fira Sans'; */
}

.homepage_banner h5 i,
.homepage_banner h5 span {
	font-size: 40px;
	font-style: normal;
}

.homepage_banner h6 {
	font-size: 24px;
}

.homepage_banner h6 b {
	font-size: 30px;
}

.homepage_banner a.btn-banner {
	background: #e91c6a;
	font-weight: 500;
	border-radius: 35px;
	padding: 6px 35px;
	margin-top: 20px;
}

.homepage_banner a.btn-banner:hover,
.homepage_banner a.btn-banner:active,
.homepage_banner a.btn-banner:focus {
	color: #fff;
}

.blog_post_home {
	transition: all 0.25s ease-in-out;
	position: relative;
	z-index: 1;
}

.blog_post_home::after {
	transition: all 0.25s ease-out;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .9));
	content: "";
	width: 100%;
	height: 50%;
	z-index: -1;
	opacity: .8;
}

.blog_post_home:hover::after {
	opacity: 1;
	height: 60%;
}

.blog_post_home_content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	width: 90%;
	color: #fff;
	font-weight: 500;
}

.blog_post_home_content h5 {
	font-size: 26px;
	margin: 10px;
	padding-top: 100px;
	font-weight: 600;
	/* font-family: 'Fira Sans'; */
}

.blog_post_home.small:nth-child(1) {
	margin-bottom: 30px;
}

.homepage .blog_slider_img {
	position: relative;
	z-index: 2;
}

.blog_slider_img {
	position: relative;
}

.homepage .blog_slider_img::after {
	z-index: -1;
	background: rgba(255, 255, 255, .1);
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}




/* FILTRI */
.shop-widget h3.widget-title {
	font-size: 22px;
	padding: 0 0 5px 0;
}

.shop-widget ul.product-categories {
	list-style-type: none;
	padding: 0;
	font-size: 1.1em;
}

.shop-widget ul.product-categories li {
	margin-bottom: 12px;
}

.shop-widget ul.product-categories li.cat-parent ul.children li {
	margin-bottom: 0px;
	padding: 3px 0;
}

.shop-widget ul.product-categories li a {
	background: #07A416;
	color: #fff;
	padding: 3px 0 3px 10px;
	display: block;

	font-weight: 500;
}

.shop-widget ul.product-categories li.cat-parent ul.children {
	/* background: #f1f1f1; */
	/* border-top: 1px solid #dbdbdb; */
	/* padding: 10px 0px 0px 0px; */
}

.shop-widget ul.product-categories li.cat-parent ul.children li a {
	text-transform: capitalize;
	background: transparent;
	color: #666;
	/* font-size: .95em; */

	font-size: 15px;
	padding: 2.5px 3px;
}

.shop-widget ul.product-categories li.cat-item:not(.cat-parent):hover a {
	font-weight: 700;
}

.cat-item.cat-item-15 {
	display: none;
}

ul.children {
	list-style-type: none;
	padding: 0 0 0 6px;
}

li.current-cat a {
	font-weight: 700;
}

.woocommerce ul.products li.product a img {
	margin: 0;
}

#woocommerce-wrapper main {
	padding-top: 20px;
}

.faq.card button {
	color: #009136;
	font-weight: 500;
	letter-spacing: .3px;
	font-size: 18px;
}

#page-wrapper .entry-header {
	padding: 30px 0 20px 0;
}

#page-wrapper .entry-content {
	padding-bottom: 30px;
}

#wrapper-footer-full {
	background: #004c97;
	padding: 75px 0 25px 0 !important
}

#wrapper-footer-full .widget-title {
	font-size: 18px;
	text-transform: uppercase;
	position: relative;
}

#wrapper-footer-full ul {
	list-style-type: none;
	padding: 0;

}

#wrapper-footer-full ul li {
	padding: 4px 0;
	font-size: 14px;
}

#wrapper-footer-full .widget-title::after {
	width: 60px;
	height: 1px;
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	padding: 1px;
	display: block;
	background: #fff;
	margin-top: 5px;
}

section.related.products {
	padding-bottom: 25px;
}

#shopsidebar aside .widget-title {
	color: #565656;
	font-size: 20px;
	font-weight: 600;
	border-bottom: 1px solid #dddddd;
	margin-bottom: 20px;
}

#shopsidebar aside:not(:first-child) .widget-title {
	padding-top: 30px;
}

#sidebar_filtri ul.product-categories>li.cat-item>a {
	color: #262626 !important;
	background: transparent;
	padding-left: 0;
	font-weight: 500;
}

#sidebar_filtri ul li.cat-item.current-cat>a {
	color: #666 !important;
	background: transparent;
	padding-left: 0;
	font-weight: 700;
}

.shop-widget ul.product-categories li.cat-parent ul.children {
	/*background: #f1f1f1;*/
}

.shop-widget ul.product-categories li.cat-parent ul.children li {
	padding: 1px 0;
}

nav.woocommerce-pagination {
	padding: 15px 0 20px 0;
}

.fa-heart-o:before {
	content: "\f004";
	font-family "Font Awesome 5 Free";
	font-weight: normal;
}

.product_meta {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.product_meta .sku_wrapper,
.product_meta .posted_in {
	display: block;
	padding: 2px 0 0 0;
	font-weight: 500;
	color: #555;
}

.product_meta .sku_wrapper span,
.product_meta .posted_in a {
	font-weight: 400;
	font-size: .9em;
	color: #777;
}

.dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	border: 0;
	border-bottom: 1px solid #ddd;
}

.dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier {
	height: 44%;
}

.woocommerce-tabs.wc-tabs-wrapper table,
.woocommerce-tabs.wc-tabs-wrapper table tr {
	border-color: #999 !important;
}

.woocommerce-tabs.wc-tabs-wrapper table {
	width: 100% !important;
}

.woocommerce-tabs.wc-tabs-wrapper table tr:first-of-type td {
	background: #005867 !important;
	border-color: #021b34 !important;
}

.woocommerce-tabs.wc-tabs-wrapper table tr:nth-child(even) {
	background: #eee !important;
}

.woocommerce-tabs.wc-tabs-wrapper table tr td:first-child {
	font-weight: 500;
}

.woocommerce-tabs.wc-tabs-wrapper table tr:nth-child(2) {
	background: #dcdcdc !important;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
	bottom: 70px;
}


.wpcf7 {
	max-width: unset;
}

.form-control:focus,
.wpcf7 .wpcf7-validation-errors:focus,
.wpcf7 input:focus[type=color],
.wpcf7 input:focus[type=date],
.wpcf7 input:focus[type=datetime-local],
.wpcf7 input:focus[type=datetime],
.wpcf7 input:focus[type=email],
.wpcf7 input:focus[type=file],
.wpcf7 input:focus[type=month],
.wpcf7 input:focus[type=number],
.wpcf7 input:focus[type=range],
.wpcf7 input:focus[type=search],
.wpcf7 input:focus[type=submit],
.wpcf7 input:focus[type=tel],
.wpcf7 input:focus[type=text],
.wpcf7 input:focus[type=time],
.wpcf7 input:focus[type=url],
.wpcf7 input:focus[type=week],
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7 input:focus[type=submit] {
	box-shadow: none !important;
	border-color: #ddd;
}


.wpcf7 input[type=submit],
.wpcf7 input:focus[type=submit],
.wpcf7 input[type=submit]:hover {
	border-color: #745103 !important;
	color: #fff !important;
	box-shadow: none !important;
	background-color: #efad1b !important;
}
}

.wpcf7 hr {
	border: 0 !important;
}


.btn-outline-primary.disabled,
.btn-outline-primary:disabled,
.wpcf7 input.disabled[type=submit],
.wpcf7 input:disabled[type=submit] {
	color: #fff !important;
	border-color: #07A416 !important;
	box-shadow: none;
	border: 1px solid #af7d0e !important;
	background-color: #efad1b !important;
}



.sw-ajax-woo-search-keyword {
	padding: 5px 9px 7px 34px;
}

.sw-ajax-woo-search-keyword,
.sw-ajax-woo-search-result {
	max-width: unset !important;
}

.sw_ajax_woo_search_wrapper {
	position: static;
}

.sw-ajax-woo-search-result {
	/*top: 54px;*/
	top: 121px;
}

.ic_nav_brand.sticky .sw-ajax-woo-search-result {
	top: 120px;
}

@media (max-width: 991px) {
	.nav_right {
		position: absolute;
		top: 16px;
	}

	.search_form_show_pc {
		display: none;
	}
}

.sw_search_mobile {
	margin: 0 auto 15px auto;
	padding: 0 0;
}

.sw_ajax_woo_search_wrapper.sw_search_mobile .input_wrapper {
	max-width: unset;
}

.sw_search_mobile .sw-ajax-woo-search-result {
	position: static;
	margin-top: -1px;
}

a.wpmenucart-contents {
	position: relative;
}

a.wpmenucart-contents span {
	font-size: 12px;
	line-height: 19px;
	height: 19px;
	width: 19px;
	background: #efad1b;
	text-align: center;
	position: absolute;
	top: -6px;
	right: -7px;
	border-radius: 50%;
	color: #fff;
	text-shadow: 0 0 4px rgba(0, 0, 0, .4);
}



.sw_cart_sidebar_wrapper_icon i:before {
	margin-left: 6px;
}

/* Aggiungi questo per ancorare il pallino all'icona */
.sw_cart_sidebar_wrapper_icon {
    position: relative !important;
    display: inline-block; /* Assicura che il contenitore abbia una dimensione corretta */
}


.sw_cart_sidebar_wrapper_icon span {
	font-size: 12px;
	line-height: 19px;
	height: 19px;
	width: 19px;
	background: #ffe45c;
	text-align: center;
	position: absolute;
	top: -10px;
	right: 5px;
	border-radius: 50%;
	color: #333;
	text-shadow: 0 0 4px rgba(0, 0, 0, .4);
	font-weight: 600;
}



.sw_cart_sidebar_wrapper {
	left: unset;
}

.sw_cart_sidebar_wrapper .swcs_img a:link,
.sw_cart_sidebar_wrapper .swcs_img a:visited,
.sw_cart_sidebar_wrapper .swcs_img a:hover,
.sw_cart_sidebar_wrapper .swcs_img a:active {
	color: red;
}


.swcs_content a {
	font-weight: 500;
	font-size: 17px;
	font-weight:600;
}

.swcs_footer .urls a.cart {
	margin: 0 -15px;
	padding: 8px;
	background: #eee;
	font-weight: 500;
	text-transform: uppercase;
}

.swcs_footer .urls a.checkout {
	margin: 0 -15px -15px -15px;
	padding: 8px;
	background: #efad1b;
	color: #fff;
	font-weight: 500;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.sw_cart_sidebar_wrapper {
		right: -13px;
		top: 40px;
	}
}

/**
 * SCURO   #004c97
 * MEDIO   #009136
 * CHIARO  #07A416
 * GRIGIO  #707070
 * LIGHT   #E9E9E9
 * ARANCIO #efad1b
 * SCURO   #f5990f
**/





.wc-proceed-to-checkout a.btn-primary {
	background: #efad1b !important;
	border-color: #efad1b !important;
	padding: 8px 0 !important;
	font-size: 18px;
	border-radius: 25px !important;
	color: #fff;
}

.wc-proceed-to-checkout a.btn-primary:hover,
.wc-proceed-to-checkout a.btn-primary:active,
.wc-proceed-to-checkout a.btn-primary:focus,
.wc-proceed-to-checkout .btn-primary,
.wc-proceed-to-checkout .btn-primary:hover,
.wc-proceed-to-checkout .btn-primary:active,
.wc-proceed-to-checkout .btn-primary:not(:disabled):not(.disabled):active {
	border-color: #f5990f !important;
	border-radius: 4px !important;
	background: #f5990f !important;
}

.navbar {
	padding: 0 0;
}

@media(max-width: 991px) {
	.navbar {
		padding: 8px 0;
	}
}

.navbar ul.navbar-nav.mr-auto li.nav-item {
	padding-top: 8px;
	padding-bottom: 8px;
}

#search_modal .modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}

#search_modal .modal-dialog {
	max-width: unset;
	margin: 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

#search_modal .modal-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#search_modal .modal-header {
	border: 0;
}

#search_modal .modal-content {
	position: absolute;
	padding-top: 50px;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#search_modal .modal-body {
	border: 0;
}

#search_modal .close {
	font-size: 15px;
}

#search_modal .sw_ajax_woo_search_wrapper {
	position: absolute;
	top: 40px;
	left: 0;
	right: 0;
	width: 95%;
}


#search_modal .sw_ajax_woo_search_wrapper .sw-ajax-woo-search-cancel {
	z-index: 99999999999;
	cursor: pointer;
}

.evento_bubble {
	position: absolute;
	top: 25px;
	right: 25px;
	width: 70px;
	height: 70px;
	background: #fff;
	border-radius: 50%;
	padding: 12px 0 0 0;
	text-align: center;
	box-shadow: 0 6px 22px -4px rgba(0, 0, 0, .12);
	display: none;
}

.evento_bubble i,
.evento_bubble span {
	text-align: center;
	display: block;
	font-style: normal;
	color: #004c97;
	font-weight: 700;
	line-height: 27px;
}

.evento_bubble i {
	font-size: 30px;
}

.evento_bubble span {
	font-size: 20px;
	text-transform: uppercase;
	line-height: 20px;
}

.cat_page_box_content {
	margin-bottom: 15px;
	border: 1px solid #ddd;
}

.cat_page_box_img img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	transition: all 0.4s ease-out;
}

.cat_page_box_img {
	overflow: hidden;
}

.cat_page_box_content:hover .cat_page_box_img img {
	opacity: .8;
	transform: scale(1.15);
}

.cat_page_box_name {
	padding: 10px;
	text-align: center;
	background: #fff;
	font-weight: 500;
	transition: all 0.3s ease-out;
}

.cat_page_box_name:hover {
	font-weight: 700;
	color: #004c97;
	background: #f4f4f4;
}

.wrapper_titolo_nascosto {
	padding: 30px 0;
}

.sw_cat_page_sidebar_ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.sw_cat_page_sidebar_ul li.cat_title {
	/* background: linear-gradient(90deg, #efad1b, #fff); */
	padding: 3px 6px 3px 8px;
	font-weight: 700;
	color: #333;
	font-size: 16px;
	margin-bottom: 6px;
}

.sw_cat_page_sidebar_ul li {
	transition: all 0.3s ease-out;
}

.sw_cat_page_sidebar_ul li:not(.cat_title) {
	font-size: 15px;
	padding: 2.5px 3px;
}

.sw_cat_page_sidebar_ul li:not(.cat_title):hover {
	font-weight: 700;
	background: #f4f4f4;
	padding-left: 10px;
	color: #004c97;
}

.ic_nav_brand.sticky {
	position: sticky !important;
	top: 0px;
	z-index: 9999;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .05);
}

.ic_nav_brand .custom-logo-link {
	transform: scale(1);
	transition: transform .15s ease-in-out, bottom .15s ease-in-out, -webkit-transform .15s ease-in-out;
}

.ic_nav_brand.sticky .custom-logo-link {
	transform: scale(0.8);
	transition: transform .15s ease-in-out, bottom .15s ease-in-out;
}

.nav_domus.sticky .nav_brand {
	margin-top: -120px;
	/*display: none;*/
}

.nav_domus.sticky+.wrapper_body {
	padding-top: 48px;
}

.ul_search,
.ul_search li {
	flex-grow: 2;
}

.ul_search .input_wrapper {
	margin-left: auto;
	max-width: 330px;
}


.icone_pre_footer {
	padding: 30px 0;
}

.icone_pre_footer img {
	text-align: center;
	height: 90px;
	width: auto;
}

.icone_pre_footer h5 {
	font-size: 16px;
	font-weight: 700;
	padding: 15px 10px;
}

.newsletter_pre_footer {
	background: #E9E9E9;
	padding: 50px 0;
}

.newsletter_pre_footer .widget-title {
	display: none;
}


.mc4wp-form p {
	margin-bottom: 5px;
}

.mc4wp-form label {
	width: 100%;
	max-width: 300px;
	font-weight: 500;
	padding: 4px 0 0px 0;
}

.mc4wp-form label input[type="email"] {
	margin-top: 10px;
	display: block !important;
	width: 80% !important;
	border: 0;
	box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .15);
	padding: 6px 15px 6px 25px;
	border-radius: 25px;
}


.mc4wp-form label input[type="text"] {
	margin-top: 10px;
	display: block !important;
	width: 80% !important;
	border: 0;
	box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .15);
	padding: 6px 15px 6px 25px;
	border-radius: 25px;
}

.mc4wp-form input[type="submit"] {
	outline: none;
	padding: 7px 50px;
	border: 2px solid #efad1b;
	border-radius: 25px;
	color: #fff;
	background: transparent;
	box-shadow: none !important;
	font-weight: 500;
	width: 80%;
}

.mc4wp-form input[type="submit"]:hover,
#pre_footer-wrapper-footer-full form input[type="submit"]:focus {
	background: #efad1b;
}

.mc4wp-form p label {
	font-size: 14px;
	padding: 0 0 0 5px;
	line-height: 16px;
}

.mc4wp-form p label input {
	margin-right: 5px;
}

@media(min-width:768px) {
	.newsletter_pre_footer img {
		padding-top: 50px;
	}
}


/* YITH */
.widget_yith-wcwl-items .mini .list {
	right: 0;
	left: unset;
	min-width: 300px;
	z-index: 111;
}

.woocommerce .mini .list ul.cart_list li img,
.woocommerce ul.product_list_widget li img {
	width: 100px;
}

.widget_yith-wcwl-items ul.product_list_widget li .remove_from_all_wishlists {
	color: #999;
}

.widget_yith-wcwl-items .mini .heading .items-counter i {
	font-size: 22px;
}

#carrello li a i {
	font-size: 22px;
	width: unset;
}

.wishlist-menu .heading .items-counter a i.fa-heart-o {
	width: unset;
}

.add-to-wishlist-before_image .yith-wcwl-add-to-wishlist {
	left: unset;
	right: 12px;
	bottom: 21px;
	top: unset;
}

.add-to-wishlist-before_image .yith-wcwl-add-to-wishlist i {
	font-size: 20px;
	color: #eea770;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-family: 'Fira Sans', sans-serif;
	color: #767676;
	text-transform: uppercase;
	padding-left:14px !important;
}


.widget_yith-wcwl-items .mini:hover .list a.button.alt {
	background-color: #efad1b
}

.widget_yith-wcwl-items .mini:hover .list a.button.alt:hover,
.widget_yith-wcwl-items .mini:hover .list a.button.alt:active,
.widget_yith-wcwl-items .mini:hover .list a.button.alt:focus {
	background-color: #f5990f
}

.yith-wcwl-add-button a.button.alt {
	background-color: #eea770
}

.yith-wcwl-add-button a.button.alt:hover,
.yith-wcwl-add-button a.button.alt:active,
a.button.alt:focus {
	background-color: #efad1b
}





.widget_yith-wcwl-items .list .cart_list.product_list_widget {
	margin-bottom: 20px;
}

.yith-wcwl-add-to-wishlist {
	margin-top: 0 !important;
}





.wrapper.homepage {
	padding: 0 !important;
}


/*
 *  dropdown megamenu */
.megamenu-li:hover .dropdown-menu {
	display: block;
}

.icone_pre_footer {
	background: #fff;
}

#wrapper-footer-full .widget-title {
	margin-bottom: 15px;
}

#sub-footer {
	background: #002e5c;
	padding: 0 0 20px 0;
}

#sub-footer .container {
	border-top: 1px solid #395f85;
	padding-top: 20px;
}

#wrapper-footer-full {
	padding-top: 50px !important;
}

.site-info p {
	color: #fff;
	margin: 0;
}

.custom_description {
	padding: 0 14px;
	margin: 0;
	color: #777;
	display: block;
	font-size: 14px;
}

.custom_description.product_page {
	padding: 0 0 10px 0;
	font-size: 15px;
	color: #777;
}

.add-to-cart-container {
	padding: 0 0 10px 0;
}

a.btn-add-to-cart {
	font-weight: 500;
	padding: 0 0 16px 12px;
	text-transform: lowercase;
	font-size: 14.5px;
	color: #8AC241;
}

a.btn-add-to-cart i {
	font-weight: 700;
}


#wplc-chat-button {
	background-color: #19b185;
}

.ic_nav_brand {
	padding-bottom: 65px;
	padding-top: 20px;
}

.ic_nav_brand .navbar-brand.custom-logo-link,
.ic_woo_srch {
	float: left;
}

.nav_domus {
	clear: both;
}

.ic_nav_brand .nav_right {
	position: relative;
}

.add-to-wishlist-before_image .yith-wcwl-add-to-wishlist {
	right: 4px !important;
	top: 4px !important;
}



.add-to-cart-container {
	text-align: center !important;
	display:none;
}

/* START 18 OCT CSS */
.nav_brand.container.ic_nav_brand {
	display: flex;
	align-items: center
}

.ic_nav_brand {
	padding-top: 30px;
	padding-bottom: 30px;
}

.navbar-brand.custom-logo-link {
	width: 33.33%;
	max-width: 33.33%;
	padding: 0;
	/* margin-right:30px; */
}

.nav_brand img {
	max-width: 300px;
}

.ic_woo_srch {
	width: 100%;
	margin-left: 50px
}

.ic_woo_srch:has(.sw-ajax-woo-search-result .row-eq-height)::before {
	position: fixed;
	content: "";
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .7);
	z-index: 14;
}

.ic_woo_srch:has(.sw-ajax-woo-search-result .row-eq-height) .sw-ajax-woo-search-keyword {
	position: relative;
	background-color: #fff;
	z-index: 99;
}

.ic_woo_srch:has(.sw-ajax-woo-search-result .row-eq-height) .sw-ajax-woo-search-cancel {
	z-index: 999999;
	cursor: pointer;
}

.sw_ajax_woo_search_wrapper .input_wrapper {
	width: 100%;
	max-width: 100%;
}

#yith-wcwl-items-2 .items-counter {
	padding: 0px 15px
}

.sw_cart_sidebar_main .sw_cart_sidebar_wrapper_icon a i {
	font-size: 22px;
}

.nav_brand.container.ic_nav_brand .ml-auto.nav_right {
	justify-content: center;
	align-items: center;
}

.nav-item.dropdown.megamenu-li.search_form_show_pc:first-child a {
	background: #efad1b;
}

.page-template-homepage .add-to-cart-container {
	padding: 0 !important;
	margin-bottom: -55px;
}

.nav_brand.container.ic_nav_brand .ml-auto.nav_right.ic_header {
	align-items: flex-start
}

#carrello li a.nav-link {
	padding: 0 !important;
}

@media(max-width: 783px) {
	.ml-auto.nav_right.ic_header font {
		display: none;
	}

	.sw_cart_sidebar_wrapper_icon span font {
		display: block !important;
	}

	#carrello li a span font,
	.ic_header_icon_text {
		display: none !important;
	}

	#carrello li a i,
	.wishlist-menu .heading .items-counter a i.fa-heart-o {
		font-size: 18px !important;
		width: 26px !important;
	}

	.nav_brand.container.ic_nav_brand .ml-auto.nav_right {
		top: 205px !important
	}
}

@media(max-width: 992px) {

	.nav_brand.container.ic_nav_brand .ml-auto.nav_right {
		position: absolute;
		right: 0;
		left: 0;
		display: flex;
		top: 190px;
		/* bottom: 0; */
		margin-right: 25px;
		z-index: 99;
		justify-content: flex-end !important;
	}

	.nav_brand.container.ic_nav_brand {
		flex-direction: column;
	}

	.nav_brand.container.ic_nav_brand .ml-auto.nav_right.ic_header {
		top: 108px !important;
	}

	#carrello li a .fa.fa-search {
		display: none;
	}

	.navbar-collapse.collapse.show {
		background-color: #f8f8f8;
		z-index: 99999;
		margin-top: 26px !important;
	}
}



/* END 18 OCT CSS */
.ic_header_icon_text {
	position: unset !important;
	background: unset !important;
	color: inherit !important;
	font-size: 13px !important;
	box-shadow: none !important;
	text-shadow: none !important;
	height: unset !important;
	width: unset !important;
	border: unset !important;
	font-weight: 600;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {

	.nav_brand img {
		margin-left: unset !important;
		margin-right: unset !important;
	}

	.sw_cart_sidebar_main a i.fa-shopping-cart {
		width: auto;
	}
}


/* #offerte { */
	/* background-color: #efad1b; */
	/* padding: 1px 15px; */
	/* width: auto; */
	/* height: auto; */
	/* margin-right: 5px; */
/* } */

/* #piu_venduti { */
	/* background-color: #f8715b; */
	/* padding: 1px 15px; */
	/* width: auto; */
	/* height: auto; */
/* } */

.entry-title {
	font-family: 'Fira Sans', sans-serif;
	color: #6c6c6c
}

#carouselFitoterapici {
	margin-top: 20px;
}

@media only screen and (max-width: 600px) {

	.woocommerce section.related ul.products li.product,
	.woocommerce-page section.related ul.products li.product {
		width: 50% !important;
	}

	.coupon input[type="text"] {
		flex-grow: 10;
		margin: 10px;
		height: 40px;
		line-height: 40px;
		width: 100% !important;
	}

	.button {

		width: 100% !important;
		margin-top: 10px;
		background: #efad1b !important;
		border-color: #efad1b !important;
		padding: 8px 0 !important;
		font-size: 14px;
		border-radius: 4px;
		color: #fff;
	}

	#sez_pagamenti {
		/* display: none; */
	}

}

thead {
	background-color: #008095;
	color: #fff;
}

.coupon label {
	display: none;
}

#coupon_code.input-text {
	width: 210px !important;
}

.coupon button {
	border: 1px solid #cdcdcd;
	padding: 6px;
}

.button {
	border: 1px solid #cdcdcd;
	padding: 6px;
}

.woocommerce-message {
	border-top-color: #dd9d13 !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	background-color: #fff4be !important;
}

.woocommerce-message::before {
	color: #a57713 !important;
}


.btn-outline-primary:hover {
	background-color: #efad1b !important;
	color: #fff !important;
	border: 1px solid #a47713;
}

.wishlist_table {
	font-size: 100% !important;
}


.woocommerce nav.woocommerce-pagination ul li {
	PADDING: 5PX !IMPORTANT;
}

.woocommerce-info::before {
	color: #efad1b !IMPORTANT;
}


.woocommerce-info {
	border-top-color: #efad1b !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
	color: #00944d;
	font-weight: 600;
	font-size: 18px;

}


.out-of-stock {
	color: #c40303 !important;
}








#thwma-popup-show-billing {
	background: #e3e3e3 !important;
	border-color: #858585;
	cursor: pointer;
	text-transform: uppercase;
	font-weight: 500;
	padding-left: 20px;
	padding-right: 20px;
}


#thwma-popup-show-shipping {
	background: #e3e3e3 !important;
	border-color: #858585;
	cursor: pointer;
	text-transform: uppercase;
	font-weight: 500;
	padding-left: 20px;
	padding-right: 20px;
}



.ml2 {

	margin-left: .5rem;
	font-weight: 900 !important;
}

.ml2A:hover {

	color: red;
}

.optional {
	display: none !important;
}


.@media (min-width: 768px) {
	.u-column1 {
		float: left !important;
	}

	.col-md-6 {
		float: left !important;
	}

}



#customer_details{
	margin-bottom:40px;
}



#messaggio_newsletter a{
	border:1px solid #cdcdcd; 
	padding:4px 10px 4px 10px; 
	border-radius:15px; 
	font-size:0.85rem;
	margin-bottom:10px;
	color:#766c68;
	font-weight:600;
}

#messaggio_newsletter a:hover{
	border:1px solid #efad1b; 
	padding:4px 10px 4px 10px; 
	border-radius:15px; 
	font-size:0.85rem;
	margin-bottom:10px;
	color:#efad1b;
	font-weight:600;
}


/****** problema immagine prodotto carosello sottomenu fitoterapici ******/
#carosello_sottomenu li{
	width:100% !important;
	/*border:1px solid #cdcdcd;*/
}

#carosello_sottomenu .amount{
	padding-left:15px !important;
	font-size: 25px;
    font-weight: 700;
    color: #606060;
}



.contatti_social
{
	display:flex;
	gap:5px;
}


.contatti_social:hover
{
	display:flex;
	gap:5px;
	cursor: pointer;
}

/* Sottolinea il link Termini e Condizioni nel Checkout */
a.woocommerce-terms-and-conditions-link {
    text-decoration: underline !important;
}




@media (max-width: 991px) {
    /* 1. CORREZIONE LARGHEZZA (Il punto critico) */
    #navbar {
        width: 100% !important;      /* Era 50vw, ora forziamo il 100% */
        min-width: 100vw !important; /* Sicurezza extra: larghezza viewport intera */
        left: 0 !important;          /* Si ancora a sinistra */
        right: 0 !important;         /* Si ancora a destra */
        position: absolute !important;
        background-color: #ffffff !important; /* Sfondo bianco pieno */
        margin-top: 30px !important;        /* Si apre SOTTO la testata, non sopra */
        /* margin: 0 !important; */
        border: none !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); /* Ombra per profondità */
    }

    /* 2. SOTTOMENU (DROPDOWN) */
    /* Evita che i sottomenu escano fuori o siano trasparenti */
    .navbar-nav .dropdown-menu {
        position: static !important;  /* Non galleggiante, spinge il contenuto */
        float: none !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #f5f5f5 !important; /* Grigio chiaro per distinguere il sottomenu */
        padding-left: 0 !important;
    }

    /* 3. VOCI MENU (Per renderle belle grandi) */
    .navbar-nav .nav-item {
        width: 100% !important; /* Ogni voce occupa tutta la riga */
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        font-size: 16px !important;
        border-bottom: 1px solid #eee; /* Riga divisoria sottile */
        display: block !important;
    }

    /* Indentazione per le voci del sottomenu */
    .dropdown-menu .dropdown-item,
    .dropdown-menu li a {
        padding: 12px 20px 12px 40px !important; /* Più rientro a sinistra */
        color: #555 !important;
        border-bottom: 1px solid #e0e0e0;
    }
}





@media (max-width: 991px) {
    
    /* Seleziona la 4ª voce del menu principale e nasconde il sottomenu/megamenu al suo interno */
    ul.navbar-nav > li:nth-child(5) .dropdown-menu,
    ul.navbar-nav > li:nth-child(5) .megamenu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
    }

    /* Nasconde la freccetta o il simbolo '+' accanto alla scritta "Fitoterapici" */
    ul.navbar-nav > li:nth-child(5) > a::after {
        display: none !important;
        content: none !important;
    }

    /* Rimuove eventuali icone di dropdown di Bootstrap */
    ul.navbar-nav > li:nth-child(5) > a.dropdown-toggle::after {
        display: none !important;
    }
}




@media (max-width: 991px) {
    
    /* Nasconde la colonna della sidebar */
    .sw_cat_page_sidebar {
        display: none !important;
    }

    /* Aggiunge lo spazio sopra il contenuto principale */
    .sw_cat_page_main {
        padding-top: 60px !important;
    }
	
	h1.entry-title {
        /* display: none !important; */
    }
	
	 #page-wrapper .entry-header {
        padding-top: 60px !important;
    }
	
	.blog_post_home_wrapper {
        margin-top: 30px !important;
    }
	
	
	/* #page-wrapper .entry-content{ */
		/* padding-bottom: 30px !important; */
    /* margin-top: -130px !important; */
	/* } */
	
	
	.woocommerce form .form-row button.button{
		line-height: normal !important;
	}
}







/* ============================================================
   STILE REDCARE COMPLETO (DESKTOP + MOBILE OPTIMIZED)
   ============================================================ */

/* 1. Contenitore Generale */
.woocommerce-account .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px; /* Spazio laterale sicuro per mobile */
    font-family: 'Quicksand', sans-serif;
}

/* Rimuove i titoli H2 giganti di default del tema se presenti */
.woocommerce-account .entry-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

/* 2. Layout Flexbox (Gestisce colonne e mobile) */
.woocommerce-account .u-columns, 
.woocommerce-account .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Spazio tra i box */
    justify-content: center;
    width: 100%;
    margin: 0 !important;
}

/* 3. Stile delle "Card" (Box Bianchi) */
.woocommerce-account .u-column1, 
.woocommerce-account .u-column2 {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px; /* Arrotondamento moderno */
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    flex: 1;
    min-width: 300px; /* Evita che diventino troppo stretti */
    box-sizing: border-box;
}

/* Titoli dentro i box */
.woocommerce-account h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: left; /* Più pulito allineato a sx */
}

/* 4. Campi di Input (Stile Touch-Friendly) */
.woocommerce form .form-row {
    margin-bottom: 15px;
    width: 100%;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

/* Input alti e puliti */
.woocommerce form .form-row input.input-text {
    width: 100%;
    height: 50px; /* ALTEZZA ERGONOMICA PER MOBILE */
    padding: 0 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px; /* 16px previene lo zoom automatico su iPhone */
    background-color: #fff;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* 5. Pulsanti (Stile Pillola Redcare) */
.woocommerce form .form-row button.button {
    width: 100%;
    background-color: #efad1b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    height: 50px; /* Stessa altezza degli input */
    line-height: 50px; /* Centra il testo verticalmente */
    padding: 0;
    border-radius: 25px; /* Pillola */
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.1s, background-color 0.2s;
}

.woocommerce form .form-row button.button:hover {
    background-color: #b00029;
}

.woocommerce form .form-row button.button:active {
    transform: scale(0.98); /* Piccolo effetto click */
}

/* 6. Checkbox e Link Password */
.woocommerce-form-login__rememberme {
    margin: 10px 0 20px 0 !important;
    display: flex;
    align-items: center;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.woocommerce-LostPassword a {
    color: #666;
    text-decoration: underline;
}

/* ==============================================
   OTTIMIZZAZIONE SPECIFICA PER MOBILE
   ============================================== */
@media only screen and (max-width: 768px) {
    
    /* Riduce il padding del contenitore principale */
    .woocommerce-account .woocommerce {
        padding: 15px 10px;
    }

    /* Impila le colonne (Login sopra, Registrati sotto) */
    .woocommerce-account .u-columns, 
    .woocommerce-account .col2-set {
        flex-direction: column;
        gap: 15px; /* Meno spazio tra i box verticali */
    }
    
    /* Box a larghezza intera */
    .woocommerce-account .u-column1, 
    .woocommerce-account .u-column2 {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 25px 20px; /* Meno padding interno per guadagnare spazio */
    }

    /* Input e pulsanti sempre al massimo della larghezza */
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row button.button {
        width: 100% !important;
        font-size: 16px !important; /* Forza leggibilità */
    }

    /* Sposta leggermente il titolo per risparmiare spazio verticale */
    .woocommerce-account h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}





/* ==============================================
   FIX NEWSLETTER MOBILE (Larghezza 100%)
   ============================================== */
@media only screen and (max-width: 767px) {
    
    /* Forza la label (il contenitore) a tutta larghezza */
    .mc4wp-form label {
        width: 100% !important;
        max-width: 100% !important; /* Sovrascrive il limite di 300px */
        display: block !important;
        margin: 0 auto !important;
    }

    /* Forza anche il campo di input interno e il bottone a riempire lo spazio */
    .mc4wp-form label input[type="email"], 
    .mc4wp-form label input[type="text"],
    .mc4wp-form input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important; /* Assicura che il padding non rompa la larghezza */
    }
}

/* Margine superiore contenuto Mio Account solo su mobile */
@media only screen and (max-width: 767px) {
    .woocommerce-MyAccount-content {
        margin-top: 30px !important;
    }
}




/* ==============================================
   FIX COUPON & AZIONI CARRELLO MOBILE (Full Width)
   ============================================== */
@media only screen and (max-width: 768px) {

    /* 1. Reset della cella della tabella per comportarsi come un blocco */
    .woocommerce-cart table.cart td.actions {
        display: block !important;
        padding: 15px 0 !important;
        text-align: center !important;
    }

    /* 2. Contenitore Coupon: Colonna verticale */
    .woocommerce-cart table.cart td.actions .coupon {
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        padding-bottom: 0 !important;
    }

    /* 3. Nasconde la label "Codice promozionale:" (ridondante su mobile) */
    .woocommerce-cart table.cart td.actions .coupon label {
        display: none !important;
    }

    /* 4. Campo Input Codice: Grande e spaziato */
    .woocommerce-cart table.cart td.actions .coupon input.input-text {
        width: 100% !important;
        float: none !important;
        margin: 0 0 10px 0 !important; /* Spazio sotto l'input */
        height: 50px !important;       /* Altezza touch */
        border-radius: 6px !important;
        border: 1px solid #ccc !important;
        padding: 0 15px !important;
        font-size: 16px !important;
    }

    /* 5. Bottone "Applica codice" */
    .woocommerce-cart table.cart td.actions .coupon button.button {
        width: 100% !important;
        float: none !important;
        height: 50px !important;
        border-radius: 25px !important; /* Pillola */
        background-color: #333 !important; /* Grigio scuro/Nero per differenziare */
        color: #fff !important;
        margin: 0 !important;
    }

    /* 6. Bottone "Aggiorna carrello" */
    .woocommerce-cart table.cart td.actions button[name="update_cart"] {
        width: 100% !important;
        float: none !important;
        height: 50px !important;
        margin-top: 10px !important;
        background-color: #f0f0f0 !important; /* Grigio chiaro (secondario) */
        color: #333 !important;
        border: 1px solid #ccc !important;
        border-radius: 25px !important;
    }
    
    /* Stato disabilitato del bottone aggiorna (quando non ci sono modifiche) */
    .woocommerce-cart table.cart td.actions button[name="update_cart"]:disabled {
        opacity: 0.6 !important;
        background-color: #f9f9f9 !important;
    }
}


/* Nasconde la voce Bacheca dal menu Mio Account */
.woocommerce-MyAccount-navigation-link--dashboard {
    display: none !important;
}






/* ==============================================
   1. SICUREZZA DESKTOP: NASCONDI TUTTO
   ============================================== */
@media (min-width: 992px) {
    #mobile_search_trigger,
    #redcare_search_overlay {
        display: none !important;
    }
}





/* ==============================================
   2. STILE RICERCA "REDCARE" (SOLO MOBILE) - FIXED
   ============================================== */
@media (max-width: 991px) {

    /* L'Overlay a schermo intero */
    #redcare_search_overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        z-index: 2147483647 !important; /* Massimo z-index */
        overflow: hidden !important;
        display: none;
        flex-direction: column;
    }

    /* La barra superiore (Header Ricerca) - ALTEZZA FISSA */
    .redcare_search_header {
        flex: 0 0 60px !important; /* Altezza bloccata a 60px */
        display: flex !important;
        align-items: center !important; /* Centra verticalmente il contenuto */
        padding: 30px !important;
        background: #fff !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
    }

    /* Tasto Indietro (Freccia) - LARGHEZZA BLOCCATA */
    #close_redcare_search {
        flex: 0 0 40px !important; /* NON SI MUOVE: 40px fissi */
        width: 40px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;     /* Centra la freccia verticalmente nel suo box */
        justify-content: center !important; /* Centra la freccia orizzontalmente nel suo box */
        cursor: pointer !important;
        margin-right: 5px !important;
        padding: 0 !important; /* Reset padding per precisione */
    }
    
    /* Dimensione SVG Freccia */
    #close_redcare_search svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }

    /* Wrapper del Form (Prende tutto lo spazio rimanente) */
    .redcare_search_form_wrapper {
        flex-grow: 1 !important;
        position: relative !important;
        height: 40px !important; /* Altezza dell'input */
    }
    
    /* Assicuriamo che il form occupi l'altezza */
    .redcare_search_form_wrapper form,
    .redcare_search_form_wrapper .input_wrapper {
        height: 100% !important;
        position: relative !important; /* Riferimento per la lente */
    }

    /* Input Style "Redcare" */
    #redcare_search_overlay input[type="text"].sw-ajax-woo-search-keyword {
        width: 100% !important;
        height: 100% !important; /* 40px ereditati dal wrapper */
        background-color: #f4f4f4 !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 0 15px 0 45px !important; /* 45px a SX spazio per la lente */
        font-size: 16px !important;
        color: #333 !important;
        outline: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        line-height: normal !important; /* Importante per centratura testo */
    }

    /* Effetto Focus Input */
    #redcare_search_overlay input[type="text"].sw-ajax-woo-search-keyword:focus {
        background-color: #fff !important;
        border: 1px solid #efad1b !important;
        padding: 0 14px 0 44px !important; /* Compensa il bordo di 1px */
    }

    /* Icona lente DECORATIVA - POSIZIONE ASSOLUTA IMMOBILE */
    .redcare_search_icon_inside {
        position: absolute !important;
        left: 12px !important; /* Distanza fissa da sinistra */
        top: 50% !important;   /* Posizionata al 50% dell'altezza */
        transform: translateY(-50%) !important; /* Centrata perfettamente */
        pointer-events: none !important;
        display: flex !important;
        align-items: center !important;
        z-index: 5 !important;
        height: auto !important;
        width: auto !important;
    }
    
    .redcare_search_icon_inside svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }

    /* Icona "X" cancella testo (del plugin) */
    .sw-ajax-woo-search-cancel {
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #999;
    }

    /* Risultati della Ricerca - STACCATI DALL'HEADER */
    .sw-ajax-woo-search-result {
        position: fixed !important;
        top: 95px !important; /* Parte sotto l'header */
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 61px) !important;
        background-color: #fff !important;
        z-index: 2147483647 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 0 50px 0 !important;
    }

    .sw-ajax-woo-search-result:empty {
        display: none !important;
    }

    .sw-ajax-woo-search-result .item-search {
        padding: 15px 10px !important;
        border-bottom: 1px solid #eee !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 70px !important;
    }
}






/* ==============================================
   FIX DOPPIA ICONA LENTE (Rimuove quella del plugin)
   ============================================== */
@media (max-width: 991px) {
    #redcare_search_overlay input.sw-ajax-woo-search-keyword {
        background-image: none !important; /* Nasconde l'icona del plugin */
        background: #f4f4f4 !important;    /* Mantiene solo il colore di sfondo grigio */
    }
}

/* ==============================================
   NASCONDI VECCHIA BARRA DI RICERCA MOBILE
   ============================================== */
@media (max-width: 991px) {
    /* Nasconde il blocco search standard del tema sotto l'header */
    .mobile_header_search_wrap {
        display: none !important;
    }

    /* Nasconde eventuali residui del wrapper di ricerca fuori dal modale */
    .mobile_header_main_wrapper .ic_woo_srch {
        display: none !important;
    }
}









/* ==============================================
   1. SICUREZZA DESKTOP: NASCONDI MODALE CERCA
   ============================================== */
@media (min-width: 992px) {
    #mobile_search_trigger,
    #redcare_search_overlay {
        display: none !important;
    }
}



/* ============================================================
   1. STILE CARD PRODOTTO (Moderno & Pulito)
   ============================================================ */

/* Contenitore Card: Sfondo bianco, ombra e bordi arrotondati */
body.woocommerce ul.products li.product {
    background-color: #ffffff !important;
    border: 1px solid #f1f1f1 !important; /* Bordo sottilissimo */
    border-radius: 15px !important;       /* Arrotondamento angoli card */
    padding: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important; /* Ombra leggera */
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
}

/* Effetto Hover sulla Card (si alza) */
body.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; /* Ombra più profonda */
    border-color: #fff !important;
    z-index: 2;
}

/* Pulizia Titolo e Prezzo dentro la card */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 10px 0 5px 0 !important;
    color: #333 !important;
	padding-left:14px !important;
}

body.woocommerce ul.products li.product .price {
    color: #606060   !important; /* Verde scuro */
    font-weight: 700 !important;
    font-size: 21px !important;
    background: transparent !important;
}

/* ============================================================
   FIX UNIVERSALE (HOME + SHOP)
   Rimosso il selettore "body.woocommerce" che bloccava lo stile in Home
   ============================================================ */

/* 1. STILE CARD PRODOTTO (Ombra e Sfondo Bianco) */
ul.products li.product,
.homepage-products li.product {
    background-color: #ffffff !important;
    border: 1px solid #f1f1f1 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin-bottom: 20px !important; /* Spaziatura tra le card */
}

/* Effetto Hover sulla Card */
ul.products li.product:hover,
.homepage-products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: #fff !important;
    z-index: 2;
}

/* Pulizia Titolo e Prezzo */
ul.products li.product .woocommerce-loop-product__title,
.homepage-products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 10px 0 5px 0 !important;
    color: #333 !important;
    min-height: unset !important;
}

ul.products li.product .price,
.homepage-products li.product .price {
    color: #004c97 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* ============================================================
   2. PULSANTI ARROTONDATI (Selector Fix)
   ============================================================ */

/* Selettore generico che prende TUTTI i pulsanti prodotto ovunque */
ul.products li.product .add-to-cart-container a,
ul.products li.product a.button,
ul.products li.product a.add_to_cart_button,
.single_add_to_cart_button,
a.btn-add-to-cart {
    border-radius: 50px !important;       /* FORZA BORDO TONDO */
    background-color: #efad1b !important; /* Arancio */
    color: #ffffff !important;            /* Bianco */
    border: none !important;
    padding: 10px 25px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    
    font-size: 13px !important;
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.3) !important;
    margin-top: 5px !important;
    line-height: normal !important;
}

/* Stato Hover del pulsante */
ul.products li.product .add-to-cart-container a:hover,
ul.products li.product a.button:hover,
a.btn-add-to-cart:hover {
    background-color: #f5990f !important;
    border-radius: 50px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(239, 173, 27, 0.4) !important;
    color: #fff !important;
}

/* Fix Icona carrello dentro il pulsante */
a.btn-add-to-cart i,
a.add_to_cart_button i {
    background: transparent !important;
    margin-right: 8px !important;
}



/* ============================================================
   FIX UNIVERSALE (HOME + SHOP)
   Rimosso il selettore "body.woocommerce" che bloccava lo stile in Home
   ============================================================ */

/* 1. STILE CARD PRODOTTO (Ombra e Sfondo Bianco) */
ul.products li.product,
.homepage-products li.product {
    background-color: #ffffff !important;
    border: 1px solid #f1f1f1 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin-bottom: 20px !important; /* Spaziatura tra le card */
}

/* Effetto Hover sulla Card */
ul.products li.product:hover,
.homepage-products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: #fff !important;
    z-index: 2;
}

/* Pulizia Titolo e Prezzo */
ul.products li.product .woocommerce-loop-product__title,
.homepage-products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 10px 0 5px 0 !important;
    color: #333 !important;
    min-height: unset !important;
}

ul.products li.product .price,
.homepage-products li.product .price {
    color: #606060 !important;
    font-weight: 700 !important;
    font-size: 21px !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* ============================================================
   2. PULSANTI ARROTONDATI (Selector Fix)
   ============================================================ */

/* Selettore generico che prende TUTTI i pulsanti prodotto ovunque */
ul.products li.product .add-to-cart-container a,
ul.products li.product a.button,
ul.products li.product a.add_to_cart_button,
.single_add_to_cart_button,
a.btn-add-to-cart {
    border-radius: 50px !important;       /* FORZA BORDO TONDO */
    background-color: #efad1b !important; /* Arancio */
    color: #ffffff !important;            /* Bianco */
    border: none !important;
    padding: 10px 25px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.3) !important;
    margin-top: 5px !important;
    line-height: normal !important;
	margin-bottom: 20px !important;
}

/* Stato Hover del pulsante */
ul.products li.product .add-to-cart-container a:hover,
ul.products li.product a.button:hover,
a.btn-add-to-cart:hover {
    background-color: #f5990f !important;
    border-radius: 50px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(239, 173, 27, 0.4) !important;
    color: #fff !important;
}

/* Fix Icona carrello dentro il pulsante */
a.btn-add-to-cart i,
a.add_to_cart_button i {
    background: transparent !important;
    margin-right: 8px !important;
}


/* ============================================================
   STILE TABELLA BASATO SU CLASSI (FLESSIBILE)
   ============================================================ */

/* Contenitore e Reset */
.biogroup-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #f1f1f1;
    width: 100%;
}

table.biogroup-modern-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
    font-family: 'Quicksand', sans-serif !important;
}

/* --- TITOLO PRINCIPALE (Verde) --- */
/* Si applica SOLO alle righe con classe "table-main-header" */
table.biogroup-modern-table tr.table-main-header th,
table.biogroup-modern-table tr.table-main-header td {
    background-color: #004c97 !important; /* Verde Scuro */
    color: #ffffff !important;
    padding: 15px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
}

/* Forza testo bianco nel titolo */
table.biogroup-modern-table tr.table-main-header * {
    color: #ffffff !important;
}

/* --- INTESTAZIONE COLONNE (Grigio) --- */
/* Si applica SOLO alle righe con classe "table-column-header" */
table.biogroup-modern-table tr.table-column-header th,
table.biogroup-modern-table tr.table-column-header td {
    background-color: #f4f4f4 !important;
    color: #333 !important;
    font-weight: 700 !important;
    padding: 12px 15px !important;
    text-align: center !important;
    font-size: 14px !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

/* --- RIGHE DATI (Tutte le altre) --- */
/* Targettizza le celle dentro il corpo della tabella */
table.biogroup-modern-table tbody tr td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #444 !important;
    font-size: 15px !important;
    text-align: center !important;
    background-color: transparent !important;
}

/* Allineamento a sinistra della PRIMA COLONNA (ma solo nel corpo dati e header colonne) */
table.biogroup-modern-table tr.table-column-header th:first-child,
table.biogroup-modern-table tbody tr td:first-child {
    text-align: left !important;
    padding-left: 20px !important;
}

/* Effetto Zebrato sulle righe del corpo dati */
table.biogroup-modern-table tbody tr:nth-child(even) td {
    background-color: #fafafa !important;
}

/* Effetto Hover sulle righe del corpo dati */
table.biogroup-modern-table tbody tr:hover td {
    background-color: rgba(239, 173, 27, 0.1) !important;
}


/* ============================================================
   FIX CONFLITTO TABELLE (Override Regola .woocommerce-tabs)
   ============================================================ */

/* 1. RESET: Impedisce alla regola vecchia di colorare la prima riga */
/* Aggiungiamo la classe .biogroup-modern-table per renderlo più specifico del vecchio CSS */
.woocommerce-tabs.wc-tabs-wrapper table.biogroup-modern-table tr:first-of-type td {
    background: transparent !important; /* Toglie il colore di sfondo forzato */
    border-color: #f0f0f0 !important;   /* Ripristina il bordo grigio leggero */
    color: #444 !important;             /* Ripristina il testo scuro */
}

/* 2. RIAPLICAZIONE: Applica il colore SOLO se la riga è un vero Header */
/* Questo stile vince sul reset qui sopra perché ha la classe .table-main-header */
.woocommerce-tabs.wc-tabs-wrapper table.biogroup-modern-table tr.table-main-header td {
    background-color: #004c97 !important; /* Il VERDE corretto (o #005867 se preferisci quello) */
    color: #ffffff !important;            /* Testo bianco */
    border: none !important;
}





/* ============================================================
   FIX LAYOUT HEADER MOBILE (Logo SX + Menu Stretto)
   ============================================================ */

@media (max-width: 991px) {

    /* 1. MENU LATERALE (DRAWER) PIÙ STRETTO */
    /* Prima era troppo largo, ora lo limitiamo a 300px o 75% dello schermo */
    #redcare_drawer {
        width: 75% !important; 
        max-width: 300px !important; /* Non diventerà mai gigante */
    }

    /* 2. HEADER BAR: LAYOUT E SFONDO */
    /* Rimuove sfondi colorati e allinea il contenuto */
    .mobile-redcare-header {
        background-color: #ffffff !important; /* Fondo Bianco Pulito */
        background-image: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        box-shadow: none !important; /* Rimuove ombre pesanti */
        
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Allinea tutto a SINISTRA */
        gap: 15px !important; /* Spazio tra Hamburger e Logo */
        padding: 10px 15px !important;
    }

    /* 3. LOGO: RILEVANZA E POSIZIONE */
    /* Il logo si prende tutto lo spazio disponibile per spingere le icone a destra */
    .mobile-redcare-header .header-logo {
        margin-right: auto !important; /* Spinge Search e Carrello a destra */
        display: flex !important;
        align-items: center !important;
    }

    /* Ingrandiamo il logo */
    .mobile-redcare-header .header-logo img {
        max-height: 55px !important; /* Altezza maggiore per visibilità */
        width: auto !important;
        object-fit: contain !important;
        padding: 0 !important;
        margin: 0 !important;
		width: 950px !important;
    }

    /* 4. TASTO MENU (Hamburger) */
    /* Lo rendiamo pulito e vicino al logo */
    #redcare_menu_trigger {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        color: #333 !important;
    }
    
    /* 5. ICONE DESTRA (Cerca e Carrello) */
    .mobile-redcare-icons {
        gap: 5px !important; /* Avvicina leggermente le icone a destra */
    }
}



/* ============================================================
   FIX INTERNO MENU LATERALE (Testata e Pulsante Chiudi)
   ============================================================ */

@media (max-width: 991px) {

    /* 1. TESTATA DEL DRAWER (Dove c'è scritto "Menu") */
    .drawer-header {
        background-color: #ffffff !important; /* Sfondo bianco, via il grigio */
        border-bottom: 1px solid #f0f0f0 !important; /* Riga sottile elegante */
        padding: 15px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        color: #333 !important; /* Testo scuro */
    }

    /* 2. PULSANTE CHIUDI (X) */
    #redcare_menu_close {
        background: transparent !important; /* Rimuove sfondi grigi/bottoni */
        border: none !important;
        box-shadow: none !important;
        padding: 5px !important;
        margin: 0 !important;
        color: #333 !important; /* Colore della X scuro */
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Dimensione Icona X */
    #redcare_menu_close svg {
        width: 28px !important;
        height: 28px !important;
        fill: currentColor !important;
    }

    /* 3. PULIZIA LISTA MENU */
    /* Rimuove rientri e stili strani dalla lista delle voci */
    .drawer-content ul {
        padding-left: 0 !important;
    }
    
    .drawer-content li a {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f9f9f9 !important;
        font-size: 16px !important;
        color: #444 !important;
        font-weight: 500 !important;
    }
}



/* ============================================================
   STILE VOCI MENU (Grassetto vs Account)
   ============================================================ */

@media (max-width: 991px) {

    /* 1. REGOLA GENERALE: Tutte le voci di menu in GRASSETTO */
    .drawer-content li a {
        font-weight: 700 !important; /* Grassetto */
        font-size: 16px !important;  /* Dimensione standard */
        color: #333 !important;      /* Nero scuro */
        padding: 15px 20px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        display: block !important;
    }

    /* 2. ECCEZIONE: Voce "Il mio account" (La prima lista in alto) */
    /* Sovrascriviamo la regola sopra per renderla normale e più piccola */
    .drawer-content > ul:first-of-type li a {
        font-weight: 500 !important; /* Font weight Normale (non bold) */
        font-size: 14px !important;  /* Più piccolo */
        color: #666 !important;      /* Grigio scuro (meno forte del menu) */
        padding: 12px 20px !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #eee !important;
    }

    /* Ridimensiona l'icona dell'omino accanto a "Il mio account" */
    .drawer-content > ul:first-of-type li a svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px !important;
        vertical-align: middle !important;
    }
}



/* ============================================================
   MODERNIZZAZIONE PAGINAZIONE WOOCOMMERCE
   ============================================================ */

/* Contenitore Paginazione */
.woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

/* Lista non ordinata */
.woocommerce-pagination ul.page-numbers {
    border: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important; /* Spazio tra i numeri */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    align-items: center !important;
}

/* Singoli elementi della lista */
.woocommerce-pagination ul.page-numbers li {
    float: none !important;
    border: none !important;
    margin: 0 !important;
}

/* STILE BOTTONI (Numeri e Frecce) */
.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;  /* Dimensione fissa per cerchi perfetti */
    height: 40px !important;
    line-height: 1 !important;
    border-radius: 50% !important; /* Cerchio perfetto */
    background-color: #fff !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* Stato HOVER (Passaggio del mouse) */
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    background-color: #f9f9f9 !important;
    border-color: #efad1b !important; /* Bordo Arancio */
    color: #efad1b !important;       /* Testo Arancio */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Stato CORRENTE (Pagina Attiva) */
.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    background-color: #efad1b !important; /* Sfondo Arancio pieno */
    border-color: #efad1b !important;
    color: #ffffff !important;            /* Testo Bianco */
    cursor: default !important;
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.4) !important;
    transform: none !important;
}

/* Puntini di sospensione (...) */
.woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #999 !important;
    width: auto !important; /* Larghezza automatica per i puntini */
}

/* Tasti Successivo/Precedente (Frecce) */
.woocommerce-pagination ul.page-numbers li .next,
.woocommerce-pagination ul.page-numbers li .prev {
    font-size: 18px !important;
    padding-bottom: 2px !important; /* Piccolo fix ottico per centrare la freccia */
}




/* ============================================================
   MODERNIZZAZIONE NOTIFICHE WOOCOMMERCE (Alerts)
   ============================================================ */

/* 1. STILE BASE COMUNE (Messaggi, Info, Errori) */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    background-color: #ffffff !important;   /* Sfondo Bianco */
    border-top: none !important;            /* Rimuove bordo vecchio */
    border-right: none !important;
    border-bottom: none !important;
    /* border-radius: 8px !important;          /* Angoli arrotondati */ */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; /* Ombra morbida */
    padding: 16px 20px 16px 55px !important; /* Spazio a sinistra per l'icona */
    margin-bottom: 25px !important;
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}

/* 2. ICONE (Posizionamento e Stile) */
.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    font-family: "WooCommerce" !important;
    content: "\e015" !important; /* Icona check di base */
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* ------------------------------------------------------------
   COLORI SPECIFICI PER TIPO
   ------------------------------------------------------------ */

/* SUCCESSO (Es. "Prodotto aggiunto al carrello") -> VERDE */
.woocommerce-message {
    border-left: 5px solid #004c97 !important; /* Tuo Verde Scuro */
}
.woocommerce-message::before {
    color: #004c97 !important;
    content: "\e015" !important; /* Spunta */
}

/* INFORMAZIONI (Es. "Hai un coupon?") -> ARANCIO */
.woocommerce-info {
    border-left: 5px solid #efad1b !important; /* Tuo Arancio */
}
.woocommerce-info::before {
    color: #efad1b !important;
    /* content: "\e02d" !important; /* Info "i" */ 
}

/* ERRORI (Es. "Campo obbligatorio") -> ROSSO */
.woocommerce-error {
    border-left: 5px solid #d70032 !important; /* Rosso Redcare */
    list-style: none !important; /* Rimuove pallini elenco */
}
.woocommerce-error::before {
    color: #d70032 !important;
    content: "\e016" !important; /* X */
    top: 25px !important; /* Aggiustamento per liste errori */
}
.woocommerce-error li {
    margin-left: 0 !important; /* Allinea testo errori */
    width: 100%;
}

/* ------------------------------------------------------------
   BOTTONI DENTRO I MESSAGGI (Es. "Visualizza carrello")
   ------------------------------------------------------------ */

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: none !important; /* Rimuove float vecchi */
    background: transparent !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important; /* Pillola piccola */
    padding: 6px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-left: auto !important; /* Spinge a destra */
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* Hover sul bottone del messaggio */
.woocommerce-message .button:hover {
    background-color: #004c97 !important;
    border-color: #004c97 !important;
    color: #fff !important;
}

/* Hover sul bottone info */
.woocommerce-info .button:hover {
    background-color: #efad1b !important;
    border-color: #efad1b !important;
    color: #fff !important;
}





/* ============================================================
   MOBILE TOP BAR PROMO (Spedizioni)
   ============================================================ */

/* 1. Stile Base (Default: Nascosto su Desktop) */
.mobile-top-promo-bar {
    display: none; 
}

/* 2. Visualizzazione su Mobile */
@media (max-width: 991px) {
    .mobile-top-promo-bar {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px; /* Spazio tra icona e testo */
        
        background-color: #005867; /* Verde Brand Scuro */
        color: #ffffff;            /* Testo Bianco */
        
        width: 100%;
        padding: 8px 10px;
        text-align: center;
        
        font-family: 'Quicksand', sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        line-height: 1;
        
        /* Assicura che stia sopra tutto */
        position: relative;
        z-index: 1001; 
    }

    /* Stile Icona Camioncino */
    .mobile-top-promo-bar svg {
        width: 16px;
        height: 16px;
        stroke: #ffffff;
        fill: none;
    }
}




/* --- 1. Top Promo Bar più elegante --- */
.mobile-top-promo-bar {
    background-color: #004c97; /* Colore brand scuro o un verde farmacia */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
}
.mobile-top-promo-bar svg {
    margin-right: 8px;
    stroke: #fff; /* Assicura che l'icona sia bianca */
}

/* --- 2. Header Desktop Unificato e Ombreggiato --- */
/* Rimuoviamo i bordi duri e usiamo le ombre per dare profondità (Depth UI) */
.nav_brand, .nav_domus {
    background: #fff;
    border: none !important;
}

/* Unifichiamo visivamente la parte logo e la parte menu */
.ctm_ic_nav_brand_wrap {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Barra di ricerca moderna (Pill shape) */
.sw-ajax-woo-search-keyword {
    border-radius: 50px !important; /* Arrotondamento massimo */
    background-color: #f3f4f6 !important; /* Grigio chiarissimo */
    border: 1px solid transparent !important;
    /* padding-left: 20px !important; */
    transition: all 0.3s ease;
}
.sw-ajax-woo-search-keyword:focus {
    background-color: #fff !important;
    border-color: #004c97 !important; /* Colore accento al focus */
    box-shadow: 0 0 0 3px rgba(0, 76, 151, 0.1); /* Alone leggero */
}

/* --- 3. Menu di Navigazione (Desktop) --- */
.nav_domus {
    border-top: 1px solid #f0f0f0 !important; /* Separatore sottilissimo */
}
.navbar-light .navbar-nav .nav-link {
    font-weight: 600;
    color: #333 !important;
    padding: 15px 20px !important;
    position: relative;
    transition: color 0.3s ease;
}

/* Effetto Hover moderno (sottolineatura animata invece che cambio colore sfondo) */
.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: #004c97;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar-light .navbar-nav .nav-link:hover::after {
    width: 80%;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: #004c97 !important;
}

/* --- 4. Header Sticky (Fisso in alto) --- */
/* Questo è fondamentale per l'UX moderna */
@media (min-width: 992px) {
    .sticky-desktop-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Ombra morbida quando si scorre */
    }
}


.redcare-drawer-overlay {
    background: rgba(0, 0, 0, 0.3); /* Più leggero */
    backdrop-filter: blur(5px); /* Effetto sfocatura sfondo */
    -webkit-backdrop-filter: blur(5px);
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(215, 0, 50, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(215, 0, 50, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(215, 0, 50, 0); }
}
/* Applica la classe se il count > 0 */
.mobile-redcare-icons span.absolute {
    animation: pulse-red 2s infinite;
}



/* Contenitore per allineare bene i bottoni */
.nav-cta-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Spazio tra i due bottoni */
}

/* Stile base per entrambi i bottoni */
.cta-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 18px !important; /* Più compatti del menu normale */
    border-radius: 50px; /* Forma a pillola */
    font-weight: 700 !important;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.cta-btn svg {
    margin-right: 6px; /* Spazio tra icona e testo */
    width: 16px;
    height: 16px;
}

/* Rimuoviamo l'effetto hover sottomenu standard che abbiamo messo prima */
.cta-btn::after {
    display: none !important; 
}

/* --- STILE SPECIFICO OFFERTE (Rosso) --- */
/* --- STILE SPECIFICO OFFERTE (Rosso) --- */
/* Aumentiamo la specificità aggiungendo le classi genitore per battere il colore #333 */
.navbar-light .navbar-nav .nav-link.cta-offer {
    /* background-color: #e63946;  */
    /* color: #fff !important; /* Ora questo funzionerà */ */
    /* border: 1px solid #e63946; */
    /* box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2); */
}

.navbar-light .navbar-nav .nav-link.cta-offer:hover {
    /* background-color: #d62828;  */
    /* color: #fff !important; */
    /* transform: translateY(-2px);  */
    /* box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3); */
}

/* --- STILE SPECIFICO PIU VENDUTI (Blu Brand o Outline) --- */
.navbar-light .navbar-nav .nav-link.cta-bestseller {
    /* background-color: #f1faee;  */
    /* color: #1d3557 !important;  */
    /* border: 1px solid #a8dadc; */
}

.navbar-light .navbar-nav .nav-link.cta-bestseller:hover {
    /* background-color: #a8dadc; */
    /* color: #1d3557 !important; */
    /* transform: translateY(-2px); */
}







/* Container generale */
.contact-form-wrapper {
    background: #fff;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Spaziatura tra i campi */
.form-group {
    margin-bottom: 25px;
}

/* Stile delle Etichette (Labels) */
.contact-form-wrapper label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stile dei Campi Input e Textarea */
.contact-form-wrapper .form-control {
    background-color: #f9f9f9;
    border: 2px solid #e1e1e1;
    border-radius: 8px; /* Angoli arrotondati */
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: none;
    height: auto; /* Fix per alcuni temi */
}

/* Effetto Focus (Quando clicchi sul campo) */
.contact-form-wrapper .form-control:focus {
    background-color: #fff;
    border-color: #007bff; /* Cambia con il colore del tuo brand */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Checkbox Privacy */
.privacy-row {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
.wpcf7-list-item {
    margin: 0;
}

/* Bottone di invio */
.wpcf7-submit.btn-modern {
    background-color: #007bff; /* Colore brand */
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px; /* Bottone a pillola */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto; /* Non full width su desktop */
    display: inline-block;
    cursor: pointer;
}

/* Hover Bottone */
.wpcf7-submit.btn-modern:hover {
    background-color: #0056b3; /* Colore brand più scuro */
    transform: translateY(-2px); /* Leggero sollevamento */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

/* Gestione errori CF7 */
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    display: block;
}
.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wpcf7-submit.btn-modern {
        width: 100%; /* Full width su mobile */
    }
}






/* --- STRUTTURA CARD --- */
.blog-card {
    background: #fff;
    border-radius: 16px; /* Bordi molto arrotondati (Moderno) */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Ombra morbida */
    transition: all 0.3s ease;
    height: 100%; /* Uniforma altezza se in griglia */
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    position: relative; /* Necessario per il link esteso */
}

/* Effetto Hover: la card si alza */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* --- IMMAGINE --- */
.blog-card-image-wrapper {
    position: relative;
    height: 220px; /* Altezza fissa immagine */
    overflow: hidden;
}

.blog-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Taglia l'immagine senza deformarla */
    transition: transform 0.5s ease;
}

/* Zoom leggero immagine all'hover */
.blog-card:hover .blog-card-image-wrapper img {
    transform: scale(1.05);
}

/* --- DATA (BADGE) --- */
.blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.blog-date-badge .day {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.blog-date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #efad1b; /* Arancio Brand */
    margin-top: 2px;
}

/* --- CONTENUTO --- */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.blog-title a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 700;
    transition: color 0.2s;
}

/* TRUCCO PER RENDERE TUTTA LA CARD CLICCABILE */
/* Questo estende il link del titolo su tutta la card */
.blog-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-card:hover .blog-title a {
    color: #004c97; /* Verde Brand */
}

.blog-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    
    /* Taglia il testo dopo 3 righe (essenziale per l'ordine) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- FOOTER CARD (Bottone) --- */
.blog-footer {
    margin-top: auto; /* Spinge il bottone in fondo */
}

.read-more-btn {
    font-size: 14px;
    font-weight: 700;
    color: #efad1b; /* Arancio Brand */
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.blog-card:hover .read-more-btn {
    gap: 10px; /* La freccia si sposta a destra all'hover */
    color: #d69605;
}






/* --- HERO SECTION PARALLAX --- */
.single_post_header_parallax {
    height: 60vh; /* Occupa il 60% dell'altezza schermo */
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Effetto Parallax Desktop */
    position: relative;
    width: 100%;
}

/* Sfumatura scura sull'immagine per far risaltare il box bianco */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.relative-container {
    position: relative;
    z-index: 10; /* Sta sopra l'immagine */
}

/* --- CARD CONTENUTO PRINCIPALE --- */
.single_post_content_wrapper {
    background: #ffffff;
    margin-top: -100px; /* L'EFFETTO WOW: Sale sopra l'immagine */
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Ombra profonda */
    margin-bottom: 60px;
}

/* --- HEADER ARTICOLO --- */
.article-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* Badge Categoria */
.cat-badge {
    background-color: #efad1b; /* Arancio Brand */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}

.cat-badge:hover {
    background-color: #004c97; /* Verde Brand */
    color: #fff;
}

/* Titolo H1 */
h1.entry-title {
    font-size: 38px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
    /* font-family: 'Quicksand', sans-serif; */
}

/* Sottotitolo */
p.subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Meta Dati */
.entry-meta {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.entry-meta i {
    color: #efad1b;
    margin-right: 5px;
}

.meta-separator {
    margin: 0 10px;
    color: #ddd;
}

/* --- TIPOGRAFIA CONTENUTO (Leggibilità) --- */
.typography-modern p {
    font-size: 18px; /* Testo più grande per lettura comoda */
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.typography-modern h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #004c97; /* Verde Brand */
}

.typography-modern h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.typography-modern ul, 
.typography-modern ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.typography-modern li {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* --- SIDEBAR STICKY --- */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Si ferma a 100px dal bordo superiore mentre scorri */
}

#right-sidebar .widget {
    margin-bottom: 40px;
}

#right-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #efad1b;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .single_post_header_parallax {
        height: 40vh; /* Meno alto su mobile */
        background-attachment: scroll; /* Disabilita parallax su mobile per performance */
    }

    .single_post_content_wrapper {
        margin-top: -60px; /* Sale di meno */
        padding: 25px 20px; /* Meno padding */
    }

    h1.entry-title {
        font-size: 28px;
    }

    .typography-modern p {
        font-size: 16px;
    }
}




/* --- MODERN STICKY SIDEBAR --- */

/* 1. Il Contenitore (Card) */
.sticky-sidebar aside.widget {
    
    padding: 0px 5px;
   
  
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Titolo del Widget (Simulato o Reale) */
.sticky-sidebar aside.widget::before {
    content: "Articoli Recenti"; /* Titolo automatico se manca */
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #585858; /* Verde Brand */
    margin-bottom: 25px;
    border-bottom: 2px solid #efad1b; /* Linea Arancio */
    padding-bottom: 10px;
    width: 60px; /* Lunghezza della linea arancio */
    white-space: nowrap;
}

/* Nota: Se il widget ha già un titolo h2 o h3, rimuovi il blocco ::before sopra 
   e applica lo stile qui sotto al titolo reale */
.sticky-sidebar aside.widget h2, 
.sticky-sidebar aside.widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: #004c97;
    margin-bottom: 25px;
    border-bottom: 2px solid #efad1b;
    padding-bottom: 10px;
    display: inline-block;
}

/* 2. Reset della Lista */
ul.wp-block-latest-posts {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: sidebar-counter; /* Inizializza il contatore */
}

/* 3. Gli Elementi della Lista */
ul.wp-block-latest-posts li {
    position: relative;
    padding: 0 0 15px 40px !important; /* Spazio a sinistra per il numero */
    margin-bottom: 15px !important;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

ul.wp-block-latest-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 4. Il Numero Progressivo (01, 02...) */
ul.wp-block-latest-posts li::before {
    counter-increment: sidebar-counter;
    content: "0" counter(sidebar-counter); /* Aggiunge lo 0 davanti */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0; /* Grigio chiaro elegante */
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
    transition: color 0.3s ease;
}

/* Hover sulla riga: Il numero si colora */
ul.wp-block-latest-posts li:hover::before {
    color: #efad1b; /* Diventa Arancio Brand */
}

/* 5. I Link (Titoli Articoli) */
a.wp-block-latest-posts__post-title {
    color: #444;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
	text-transform:uppercase;
}

/* Hover sul link */
ul.wp-block-latest-posts li:hover a.wp-block-latest-posts__post-title {
    color: #004c97; /* Verde Brand */
    transform: translateX(5px); /* Leggero movimento a destra */
}

/* 6. Gestione Sticky */
.sticky-sidebar {
    position: sticky;
    top: 210px; /* Distanza dall'header quando scorri */
    z-index: 9;
}




/* ==============================================
   MODERN BLOG GRID (Fix Layout & Spazi)
   ============================================== */

/* 1. GRIGLIA PRINCIPALE */
.modern-blog-grid {
    width: 100% !important; /* Forza la larghezza piena */
    margin: 0 auto;
    padding: 0;
}

/* 2. CONTENITORE CARD GENERALE */
.blog-grid-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    /* Ombra esterna leggera */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background-color: #f0f0f0; /* Colore di fallback */
}

/* Hover Effect su tutta la card */
.blog-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 3. GESTIONE IMMAGINE SFONDO */
.card-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.card-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom immagine all'hover */
.blog-grid-card:hover .card-bg-wrapper img {
    transform: scale(1.05);
}

/* Overlay scuro leggero */
.card-bg-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2); /* Leggermente più scuro per contrasto */
}

/* 4. ALTEZZE RESPONSIVE */
@media (min-width: 768px) {
    .blog-grid-card.big-card {
        height: 500px;
    }
    .blog-grid-card.small-card {
        height: 240px;
    }
}
@media (max-width: 767px) {
    .blog-grid-card.big-card,
    .blog-grid-card.small-card {
        height: 400px; /* Altezza generosa su mobile */
        margin-bottom: 20px;
    }
    .col-md-6.d-flex {
        gap: 20px;
    }
}

/* 5. CONTENUTO "GLASS" (Il box bianco) */
.card-glass-content {
    position: absolute;
    z-index: 10;
    
    /* POSIZIONAMENTO FLUTTUANTE (Staccato dai bordi immagine) */
    bottom: 25px; /* Stacca dal fondo */
    left: 25px;   /* Stacca da sinistra */
    right: 25px;  /* Stacca da destra */
    width: auto;  /* Si adatta alla larghezza disponibile */
    margin: 0;    /* Reset margini */
    
    /* Stile Vetro */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* SPAZIATURA INTERNA (Aumentata per staccare il pulsante) */
    padding: 30px; 
    
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Versione compatta per le card piccole */
.card-glass-content.compact {
    padding: 20px 25px; /* Un po' meno padding sulle card piccole */
    bottom: 15px;
    left: 15px;
    right: 15px;
}

/* 6. TIPOGRAFIA */
.grid-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 22px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.grid-title.small {
    font-size: 18px;
    margin-bottom: 8px;
}

/* 7. BOTTONE MODERNO */
.btn-grid-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #efad1b;
    color: #fff !important;
    
    /* Padding generoso del pulsante */
    padding: 10px 25px;
    
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Margine superiore per staccarlo dal titolo */
    margin-top: 15px; 
}

.btn-grid-modern.small {
    padding: 6px 15px;
    font-size: 12px;
    margin-top: 10px;
}

.btn-grid-modern:hover {
    background-color: #d89605;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.3);
}



/* ==============================================
   1. STILE ACCOUNT REDCARE (Layout Flex)
   ============================================== */

.sw_cart_sidebar_wrapper{
width:fit-content !important;
}

/* Sfondo Pagina */
body.woocommerce-account {
    background-color: #f4f6f8 !important;
}

/* Layout Flexbox (Solo per il contenuto della pagina account) */
body.woocommerce-account .entry-content .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-width: 1240px;
    margin: 0 auto !important;
    
    /* TRUCCO FONDAMENTALE: Usiamo il padding in alto invece del margin.
       Il margine crea un "buco" dove il mouse perde l'hover del carrello.
       Il padding è "pieno", quindi il mouse non cade. */
    padding-top: 50px !important; 
    padding-bottom: 50px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    
    /* IMPORTANTE: Z-Index basso per stare SOTTO al carrello */
    position: relative;
    z-index: 1; 
}

/* Sidebar Navigazione */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 100%;
}

/* Lista Menu (Reset stile) */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e6e8eb !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Link Menu */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f0f2f5 !important;
    color: #333 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important; /* Fix spazi indesiderati */
}

/* Chevron a destra */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-top: 2px solid #ccc;
    transform: rotate(45deg);
    transition: border-color 0.2s;
}

/* Hover e Active */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:hover {
    background-color: #f9fafb !important;
    color: #004c97 !important;
    text-decoration: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item.active,
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item.list-group-item-action.active {
    background-color: #f0fdf4 !important;
    color: #004c97 !important;
    border-left: 4px solid #004c97 !important;
}

/* Logout Rosso */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="logout"] {
    color: #d32f2f !important;
    /* border-top: 5px solid #f4f6f8 !important; */
}

/* Contenuto Destra */
body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e6e8eb !important;
    padding: 40px !important;
    width: 100% !important;
}

/* Protezione Widget YITH (evita che si rompa) */
.yith-wcwl-items.woocommerce {
    display: block !important;
    flex: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ==============================================
   2. FIX CARRELLO (Senza rompere il Nav)
   ============================================== */

/* Diamo priorità Z-Index SOLO alla barra che contiene il carrello */
.sticky-desktop-wrapper {
    z-index: 1000 !important; 
    /* Non tocchiamo position: relative qui se non serve, 
       ma di solito sticky wrapper lo ha già */
}

/* Assicuriamo che il dropdown del carrello stia SOPRA tutto */
.sw_cart_sidebar_wrapper {
    z-index: 1001 !important; 
}

/* Mobile Responsive */
@media (max-width: 991px) {
    body.woocommerce-account .entry-content .woocommerce {
        flex-direction: column !important;
        padding-top: 20px !important;
    }
}


/* ==============================================
   1. FIX CARRELLO "CHIRURGICO" (Ponte Invisibile)
   ============================================== */

/* Rendiamo il contenitore principale del carrello un punto di riferimento */
.sw_cart_sidebar_main {
    position: relative; 
    z-index: 10000; /* Alto, ma non esagerato per non rompere il nav */
    height: 100%;
    display: flex;
    align-items: center;
}

/* CREIAMO IL PONTE: Questo rettangolo invisibile unisce icona e tendina */
.sw_cart_sidebar_main::after {
    content: '';
    position: absolute;
    top: 100%; /* Parte esattamente dalla fine dell'icona */
    left: 0;
    width: 100%;
    height: 30px; /* Estende l'area sensibile di 30px verso il basso */
    background: transparent; /* È invisibile */
    z-index: 10000;
}

/* Quando il mouse è sul contenitore O sul ponte invisibile, mostra la tendina */
.sw_cart_sidebar_main:hover .sw_cart_sidebar_wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Posizionamento fisso per evitare buchi */
    top: 100% !important; 
    margin-top: 0 !important; /* Rimuove spazi vuoti */
    z-index: 10001 !important;
}

/* ==============================================
   2. WOOCOMMERCE ACCOUNT - STILE REDCARE
   ============================================== */

/* Sfondo Pagina */
body.woocommerce-account {
    background-color: #f4f6f8 !important;
}

/* LAYOUT FLEXBOX (Isolato al contenuto centrale) */
body.woocommerce-account .entry-content .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-width: 1240px;
    margin: 0 auto !important;

    /* Spaziatura interna: Padding invece di margin per stabilità hover */
    padding-top: 10px !important;
    padding-bottom: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* SIDEBAR NAVIGAZIONE */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 100%;
}

/* Lista Menu */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e6e8eb !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Link Menu Items */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f0f2f5 !important;
    color: #333 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:last-child {
    border-bottom: none !important;
}

/* Chevron Icon */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-top: 2px solid #ccc;
    transform: rotate(45deg);
    transition: border-color 0.2s;
}

/* Hover State */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:hover {
    background-color: #f9fafb !important;
    color: #004c97 !important;
    text-decoration: none !important;
    z-index: 2;
}

/* Active State */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item.active,
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item.list-group-item-action.active {
    background-color: #f0fdf4 !important;
    color: #004c97 !important;
    border-left: 4px solid #004c97 !important;
    border-color: transparent transparent #f0f2f5 transparent !important;
}

/* Logout Item */
body.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="logout"] {
    color: #d32f2f !important;
   
}

/* CONTENUTO DESTRA */
body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e6e8eb !important;
    padding: 40px !important;
    width: 100% !important;
    z-index: 0 !important; /* Z-index basso per non coprire il carrello */
}

/* Testi Contenuto */
body.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 15px !important;
    color: #555 !important;
}
body.woocommerce-account .woocommerce-MyAccount-content a {
    color: #004c97 !important;
    text-decoration: underline !important;
}

/* PROTEZIONE WIDGET YITH (Evita conflitti) */
.yith-wcwl-items.woocommerce {
    display: block !important;
    flex: none;
}



	
	
	
	
	/* ============================================================
   STILE BTN OUTLINE PRIMARY (Nuovo Stile Redcare)
   ============================================================ */

/* 1. Stato Normale (Pillola, Bordo Arancio, Fondo Trasparente) */
.btn-outline-primary, 
.btn-outline-primary:link, 
.btn-outline-primary:visited, 
.product .btn-outline-primary, 
.product .btn-outline-primary:link, 
.product .btn-outline-primary:visited {
    color: #efad1b !important;            /* Testo Arancio */
    border: 2px solid #efad1b !important; /* Bordo Arancio più visibile (2px) */
    background-color: #ffffff !important; /* Fondo bianco */
    border-radius: 50px !important;       /* FORMA A PILLOLA */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 10px 25px !important;        /* Padding più generoso */
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: none !important;
    line-height: normal !important;
    display: inline-block !important;
}

/* 2. Stato Hover/Active (Diventa Arancio Pieno con Ombra) */
.btn-outline-primary:hover, 
.btn-outline-primary:active, 
.btn-outline-primary:focus, 
.product .btn-outline-primary:hover, 
.product .btn-outline-primary:active, 
.product .btn-outline-primary:focus {
    background-color: #efad1b !important; /* Riempimento Arancio */
    color: #ffffff !important;            /* Testo Bianco */
    border-color: #efad1b !important;
    transform: translateY(-3px) !important; /* Si alza leggermente */
    box-shadow: 0 6px 15px rgba(239, 173, 27, 0.3) !important; /* Ombra morbida arancio */
    text-decoration: none !important;
}

/* 3. Stato Disabled (Opzionale, per sicurezza) */
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
	
	
	
	.woocommerce form .password-input, .woocommerce-page form .password-input{
		width:100%;
	}
	
	
/* ============================================================
   NEWSLETTER STYLE "REDCARE" (Shortcode [sc_newsletter])
   ============================================================ */

/* 1. CONTENITORE PRINCIPALE (Card Bianca Galleggiante) */
.newsletter-redcare-wrapper {
    background-color: #ffffff;
    border-radius: 16px; /* Angoli moderni */
    box-shadow: 0 10px 40px rgba(0, 76, 151, 0.08); /* Ombra bluastra leggera */
    border: 1px solid #f0f0f0;
    padding: 50px;
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Quicksand', sans-serif;
    position: relative;
    overflow: hidden;
}

/* 2. LAYOUT GRIGLIA (2 Colonne) */
.newsletter-redcare-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Centra verticalmente */
    gap: 60px; /* Spazio abbondante tra testo e modulo */
}

/* Colonna Sinistra (Testi) */
.newsletter-redcare-content {
    flex: 1;
    min-width: 300px;
}

/* Colonna Destra (Form) */
.newsletter-redcare-form-box {
    flex: 1;
    min-width: 300px;
    background-color: #f9fbfc; /* Sfondo light per il box input */
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #eef2f5;
}

/* 3. TIPOGRAFIA */
h2.nl-title {
    font-size: 32px;
    font-weight: 700;
    color: #004c97; /* Blu Brand */
    margin-bottom: 15px;
    line-height: 1.2;
}

p.nl-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

p.nl-subtitle strong {
    color: #efad1b; /* Arancio Brand */
}

/* 4. LISTA VANTAGGI (Checkmarks) */
ul.nl-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.nl-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Icona Spunta Cerchiata */
.icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e6f0fa; /* Sfondo blu chiarissimo */
    color: #004c97; /* Spunta Blu */
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    margin-right: 15px;
    flex-shrink: 0; /* Evita che si schiacci */
}

/* 5. STILE FORM (Input & Button) */
.newsletter-redcare-form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input (Email, Nome) */
.newsletter-redcare-form-box input[type="email"],
.newsletter-redcare-form-box input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: none; /* Reset ombre esterne */
}

/* Focus Input */
.newsletter-redcare-form-box input[type="email"]:focus,
.newsletter-redcare-form-box input[type="text"]:focus {
    border-color: #004c97;
    box-shadow: 0 0 0 3px rgba(0, 76, 151, 0.1); /* Alone Blu */
    outline: none;
}

/* Bottone Iscriviti */
.newsletter-redcare-form-box input[type="submit"],
.newsletter-redcare-form-box button {
    width: 100%;
    height: 50px;
    border-radius: 50px; /* Pillola */
    background-color: #efad1b !important; /* Arancio */
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(239, 173, 27, 0.3);
    margin-top: 5px;
}

/* Hover Bottone */
.newsletter-redcare-form-box input[type="submit"]:hover,
.newsletter-redcare-form-box button:hover {
    background-color: #d69605 !important; /* Arancio più scuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 173, 27, 0.4);
}

/* Disclaimer e Privacy (Testo piccolo) */
p.nl-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 0;
}

p.nl-disclaimer a {
    color: #004c97;
    text-decoration: underline;
}

/* Checkbox Privacy (Se presente nel form Mailchimp) */
.newsletter-redcare-form-box label {
    font-size: 13px;
    color: #666;
    /* display: flex; */
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .newsletter-redcare-wrapper {
        padding: 30px 20px;
        margin: 20px 15px;
        border-radius: 12px;
    }
    
    .newsletter-redcare-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    h2.nl-title {
        font-size: 26px;
        text-align: center;
    }
    
    p.nl-subtitle {
        text-align: center;
        font-size: 15px;
    }
    
    .newsletter-redcare-form-box {
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
    }
}




/* ============================================================
   LISTE PUNTATE CON SPUNTA BLU (Stile Marketing)
   ============================================================ */

/* 1. Applica lo stile alla descrizione prodotto e al contenuto generale */
.woocommerce-product-details__short-description ul li::before, 
.entry-content ul li::before {
    content: '\2713';
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e6f0fa !important;
    color: #004c97 !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

/* Aggiungi spazio al LI per far posto alla spunta (fondamentale) */
.woocommerce-product-details__short-description ul li, 
.entry-content ul li {
    list-style: none !important;
    position: relative !important;
    padding-left: 35px !important; /* Spazio per l'icona */
    margin-bottom: 10px !important;
}

/* ============================================================
   ECCEZIONI: NON APPLICARE SU MODULI WOOCOMMERCE
   (Checkout, Carrello, Account, Errori, Pagamenti)
   ============================================================ */

/* Se la lista si trova dentro un contenitore .woocommerce (es. il checkout), ANNULLA tutto */
.entry-content .woocommerce ul li::before,
.entry-content .woocommerce-error li::before,
.entry-content .woocommerce-info li::before,
.entry-content .woocommerce-message li::before,
.entry-content .payment_methods li::before {
    content: none !important; /* Rimuove la spunta */
    display: none !important;
}

/* Ripristina lo stile naturale della lista per i moduli tecnici */
.entry-content .woocommerce ul li,
.entry-content .woocommerce-error li,
.entry-content .woocommerce-info li,
.entry-content .woocommerce-message li {
    padding-left: 0 !important;
    list-style: none !important; /* O 'disc' se preferisci i pallini classici */
    margin-bottom: 0 !important;
}



/* ============================================================
   FIX GLOBALE: BLOCCA SCROLL ORIZZONTALE
   ============================================================ */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important; /* Taglia tutto ciò che esce lateralmente */
    position: relative;
}

/* Fix specifico per le righe che causano overflow su mobile */
.row {
    
    /* margin-left: 0 !important; */ /* Decommenta se overflow-x non basta */
    /* margin-right: 0 !important; */
}



/* ============================================================
   FIX MOBILE SHOP: 2 PRODOTTI PER RIGA (Archivi e Shop)
   ============================================================ */

@media (max-width: 767px) {
    
    /* 1. Forza la larghezza al 50% per tutti i prodotti nelle pagine Woo */
    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product,
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 50% !important;
        float: left !important;
        clear: none !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important; /* Meno spazio verticale */
        padding: 0 5px !important;      /* Spaziatura laterale tra le due colonne */
        box-sizing: border-box !important;
    }

    /* 2. Gestione del "Clear" (A capo ogni 2 prodotti) */
    /* Il prodotto dispari (1, 3, 5...) va a capo */
    body.woocommerce ul.products li.product:nth-child(2n+1) {
        clear: both !important;
    }
    
    /* Il prodotto pari (2, 4, 6...) non va a capo */
    body.woocommerce ul.products li.product:nth-child(2n) {
        clear: none !important;
    }

    /* 3. Ottimizzazione Testi per spazi stretti */
    /* Riduce leggermente il titolo per evitare che occupi 4 righe */
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important; 
        padding: 8px 0 5px 5px !important;
    }

    /* Prezzo leggermente più piccolo */
    ul.products li.product .price {
        font-size: 15px !important;
        margin-bottom: 5px !important;
    }

    /* Bottone "Aggiungi" compatto e centrato */
    a.btn-add-to-cart, 
    .add_to_cart_button,
    ul.products li.product .add-to-cart-container a {
        padding: 6px 5px !important;
        font-size: 11px !important;
        width: 90% !important;        /* Quasi tutta la larghezza */
        margin: 0 auto 10px auto !important; /* Centrato */
        display: block !important;
    }
}






/* ============================================================
   FILTRI PRODOTTI & SIDEBAR (Stile Minimal Blue)
   ============================================================ */

/* 1. PULSANTE "FILTRA" (Toggle Mobile/Sidebar) */
.btn-filtra {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    color: #004c97 !important;       /* Testo Blu */
    font-weight: 700;
    border: 2px solid #004c97 !important; /* Bordo Blu evidente */
    background: transparent !important;
    border-radius: 50px !important;   /* Pillola */
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover: Diventa Blu pieno */
.btn-filtra:hover,
.btn-filtra:active,
.btn-filtra:focus {
    background-color: #004c97 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 76, 151, 0.3) !important;
}



/* 4. CONTAINER SIDEBAR (Mobile) */
@media (min-width: 768px) {
    #sidebar_filtri.collapse:not(.show) {
        display: block;
        padding: 0; 
        margin-bottom: 20px;
        border: 0;
        background: transparent;
    }
    
    /* Nasconde il bottone toggle su Desktop se non serve */
    .btn-filtra {
        display: none; 
    }
}

/* CATEGORIE NELLA SIDEBAR (Link puliti) */
#sidebar_filtri ul.product-categories > li.cat-item > a {
    color: #444 !important;
    background: transparent;
    padding: 5px 0;
    font-weight: 500;
    display: block;
    transition: color 0.2s;
}

#sidebar_filtri ul.product-categories > li.cat-item > a:hover {
    color: #004c97 !important; /* Blu all'hover */
    padding-left: 5px; /* Piccolo movimento */
}

/* Categoria Attiva (Grassetto + Blu) */
#sidebar_filtri ul li.cat-item.current-cat > a {
    color: #004c97 !important;
    font-weight: 700;
}

/* Badge contatore prodotti (se presente) */
.woocommerce-widget-layered-nav-list .count, 
.product-categories .count {
    background: #f0f8ff !important; /* Sfondo pastello blu */
    color: #004c97 !important;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}



/* ============================================================
   8. DETTAGLIO PRODOTTO (MODERN QUANTITY & BUTTON)
   ============================================================ */

/* Contenitore Form Cart */
.woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-bottom: 20px !important;
}

/* Input Quantità (Pillola) */
.woocommerce div.product form.cart .quantity {
    float: none !important;
    margin: 0 !important;
    display: inline-block !important;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 80px !important;
    height: 50px !important;
    border-radius: 50px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #fff !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-align: center !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

/* Nasconde frecce numero */
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 3. BOTTONE AGGIUNGI (Specifica classe btn btn-primary) */
.woocommerce div.product form.cart .btn.btn-primary,
.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: #efad1b !important; /* Arancio */
    color: #fff !important;
    height: 50px !important;
    border-radius: 50px !important;
    padding: 0 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(239, 173, 27, 0.3) !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

/* Hover Bottone */
.woocommerce div.product form.cart .btn.btn-primary:hover,
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: #d69605 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(239, 173, 27, 0.4) !important;
}






/* ============================================================
   12. MOBILE & RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    /* Navbar Mobile */
    
   
    .woocommerce div.product form.cart .quantity input.qty { width: 70px !important; }
    
    /* Bottone Aggiungi al Carrello Mobile (Fix 2 righe) */
    .woocommerce div.product form.cart .button.single_add_to_cart_button { 
        flex-grow: 1 !important;
        white-space: normal !important; /* Permette a capo */
        line-height: 1.1 !important;    /* Interlinea stretta */
        padding: 0 10px !important;     /* Meno spazio laterale */
        text-align: center !important;
        font-size: 13px !important;     /* Font leggermente più piccolo */
    }
}


/* ============================================================
   FIX DEFINITIVO: STICKY HEADER + NO SCROLL ORIZZONTALE
   ============================================================ */

/* 1. FIX SCROLL ORIZZONTALE (Corretto per non rompere lo sticky) */
html {
    overflow-x: visible !important; /* NECESSARIO per far funzionare lo sticky */
}

body {
    overflow-x: hidden !important; /* Mantiene il blocco scroll orizzontale */
    max-width: 100% !important;
    position: relative;
}

.row {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. STICKY HEADER (Menu fisso in alto) */
.nav_domus {
    position: sticky !important;
    position: -webkit-sticky !important; /* Safari */
    top: 0;
    z-index: 99 !important; /* Altissimo per stare sopra a tutto */
    width: 100%;
   
}

/* 3. FIX PER BARRA ADMIN WORDPRESS (Se sei loggato) */
/* Evita che il menu finisca sotto la barra nera di WP */
body.admin-bar .nav_domus {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nav_domus {
        top: 46px !important;
    }
}

/* 4. FIX MOBILE HEADER STICKY (Opzionale) */
/* Rende fissa anche la testata mobile bianca */
@media (max-width: 991px) {
    .mobile_header_main_wrapper {
        position: sticky !important;
        top: 0;
        z-index: 99999 !important;
        width: 100%;
    }
    
    /* Se c'è la barra admin anche su mobile */
    body.admin-bar .mobile_header_main_wrapper {
        top: 46px !important;
    }
}



/* ============================================================
   FIX MEGAMENU: FORZA 3 COLONNE (CSS GRID)
   ============================================================ */

/* 1. Imposta la griglia sul contenitore (ul) */
ul.megamenu_ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Colonne di uguale larghezza */
    gap: 5px 20px !important; /* Spazio verticale (5px) e orizzontale (20px) */
    list-style: none !important;
    padding: 0 !important;
    margin-top: 15px !important;
    width: 100% !important;
}

/* 2. Resetta gli elementi della lista (li) per adattarsi alla griglia */
ul.megamenu_ul li {
    display: block !important;
    width: auto !important;      /* Rimuove larghezze fisse vecchie */
    min-width: 0 !important;     /* Evita che elementi lunghi rompano la griglia */
    max-width: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 3. Assicura che i link non sbordino */
ul.megamenu_ul li a {
    white-space: normal !important; /* Permette al testo di andare a capo se troppo lungo */
    display: block !important;
    line-height: 1.3 !important;
}

/* 4. Responsive: Su tablet/mobile scende a 2 o 1 colonna se necessario */
@media (max-width: 991px) {
    ul.megamenu_ul {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonne su tablet */
    }
}

@media (max-width: 576px) {
    ul.megamenu_ul {
        grid-template-columns: 1fr !important; /* 1 colonna su smartphone */
    }
}



.homepage_cat_box_stile2_content {
    /* 1. Sfondo Moderno: Gradiente leggero invece del colore piatto */
    background: linear-gradient(135deg, #004c97 0%, #003a75 100%);
    
    /* 2. Spaziatura e Testo */
    text-align: center;
    padding: 25px 20px; /* Un po' più di respiro laterale */
    color: #fff;
    
    /* 3. Forma Moderna */
    border-radius: 16px; /* Angoli arrotondati (coerente con newsletter e prodotti) */
    
    /* 4. Ombra "Soft": Bluastra e spostata verso il basso, non un alone nero attorno */
    box-shadow: 0 10px 30px rgba(0, 76, 151, 0.25);
    
    /* 5. Interazione */
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1); /* Bordo sottile per definizione */
}

/* Effetto Hover: Il box si alza leggermente */
.homepage_cat_box_stile2_content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 76, 151, 0.35);
}



/* ============================================================
   TABELLE SOLO SCHEDA PRODOTTO (Stile "Biogroup/Redcare")
   Si applica solo dentro .single-product
   ============================================================ */

/* 1. RESET CONTENITORE E BORDI */
/* Target: Descrizione Breve (accanto foto) e Tab Descrizione (sotto) */
.single-product .woocommerce-product-details__short-description table,
.single-product .woocommerce-Tabs-panel table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid #f1f1f1 !important; /* Bordo esterno sottile */
    border-radius: 12px !important;       /* Angoli arrotondati */
    overflow: hidden !important;          /* Taglia gli angoli */
    background-color: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    margin: 20px 0 !important;
    font-family: 'Quicksand', sans-serif !important;
    height: auto !important;
}

/* 2. RIGA 1: IL TITOLONE (Sfondo Blu Brand) */
/* Corrisponde a: "Tenore degli integratori..." */
.single-product .woocommerce-product-details__short-description table tr:first-child td,
.single-product .woocommerce-Tabs-panel table tr:first-child td {
    background-color: #004c97 !important; /* Blu Brand */
    color: #ffffff !important;
    padding: 20px 15px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
}

/* Pulisce eventuali span vecchi nel titolo */
.single-product .woocommerce-product-details__short-description table tr:first-child td span,
.single-product .woocommerce-Tabs-panel table tr:first-child td span {
    color: #ffffff !important;
    background-color: transparent !important;
    font-family: inherit !important;
}

/* 3. RIGA 2: I LABEL (Sfondo Grigio Chiaro) */
/* Corrisponde a: "Componenti | Per 2 cpr" */
.single-product .woocommerce-product-details__short-description table tr:nth-child(2) td,
.single-product .woocommerce-Tabs-panel table tr:nth-child(2) td {
    background-color: #f4f4f4 !important; /* Grigio chiaro */
    color: #333 !important;
    font-weight: 700 !important;
    padding: 12px 15px !important;
    text-align: center !important;
    font-size: 14px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-top: none !important;
}

/* Allinea a sinistra la prima colonna della riga 2 */
.single-product .woocommerce-product-details__short-description table tr:nth-child(2) td:first-child,
.single-product .woocommerce-Tabs-panel table tr:nth-child(2) td:first-child {
    text-align: left !important;
    padding-left: 20px !important;
}

/* Pulisce span riga 2 */
.single-product .woocommerce-product-details__short-description table tr:nth-child(2) td span,
.single-product .woocommerce-Tabs-panel table tr:nth-child(2) td span {
    color: #333 !important;
    background-color: transparent !important;
}

/* 4. RIGHE DATI (Dal 3 in poi) */
.single-product .woocommerce-product-details__short-description table tr:nth-child(n+3) td,
.single-product .woocommerce-Tabs-panel table tr:nth-child(n+3) td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    color: #444 !important;
    font-size: 15px !important;
    text-align: center !important;
    background-color: #fff !important; /* Pulisce vecchi colori */
    vertical-align: middle !important;
}

/* Prima colonna dati allineata a sinistra e in Blu */
.single-product .woocommerce-product-details__short-description table tr:nth-child(n+3) td:first-child,
.single-product .woocommerce-Tabs-panel table tr:nth-child(n+3) td:first-child {
    text-align: left !important;
    padding-left: 20px !important;
    font-weight: 600 !important;
    color: #004c97 !important; /* Nome ingrediente in Blu */
}

/* Pulisce span nelle righe dati */
.single-product .woocommerce-product-details__short-description table tr:nth-child(n+3) td span,
.single-product .woocommerce-Tabs-panel table tr:nth-child(n+3) td span {
    color: inherit !important;
    background-color: transparent !important;
}

/* 5. EFFETTO ZEBRA E HOVER */
/* Righe pari grigine (escluso titolo e subheader) */
.single-product .woocommerce-product-details__short-description table tr:nth-child(even):not(:nth-child(2)),
.single-product .woocommerce-Tabs-panel table tr:nth-child(even):not(:nth-child(2)) {
    background-color: #fafafa !important;
}

/* Hover sulla riga: Sfondo Arancio Chiaro */
.single-product .woocommerce-product-details__short-description table tr:nth-child(n+3):hover td,
.single-product .woocommerce-Tabs-panel table tr:nth-child(n+3):hover td {
    background-color: rgba(239, 173, 27, 0.1) !important; /* Arancio al 10% */
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 767px) {
    .single-product .woocommerce-product-details__short-description table,
    .single-product .woocommerce-Tabs-panel table {
        display: block !important;
        overflow-x: auto !important; /* Scroll orizzontale */
        white-space: nowrap !important;
    }
}






/* ============================================================
   STILE CATEGORIE "FULL SIZE" (IMMERSIVE)
   ============================================================ */

.biogroup-cat-wrapper {
    margin-bottom: 30px;
}

/* LA CARD CONTENITORE */
.biogroup-full-card {
    display: block;
    position: relative;
    width: 100%;
    height: 300px; /* ALTEZZA FISSA: Modifica questo valore se le vuoi più alte/basse */
    border-radius: 16px;
    overflow: hidden; /* Taglia l'immagine che esce dai bordi arrotondati */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none !important;
    transform: translateZ(0); /* Fix per safari border-radius */
}

/* IL CONTENITORE DELL'IMMAGINE */
.biogroup-full-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* L'IMMAGINE PROPRIAMENTE DETTA */
.biogroup-full-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIA: Riempie tutto lo spazio tagliando i bordi in eccesso */
    object-position: center center;
    transition: transform 0.5s ease;
}

/* EFFETTO ZOOM HOVER */
.biogroup-full-card:hover .biogroup-full-img img {
    transform: scale(1.1); /* L'immagine si ingrandisce leggermente */
}

/* L'OVERLAY DEL TESTO (Sfumatura per leggibilità) */
.biogroup-full-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    /* Sfumatura dal trasparente al blu scuro brand */
    background: linear-gradient(to top, rgba(0, 76, 151, 0.9) 0%, rgba(0, 76, 151, 0.6) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

/* IL TESTO */
.biogroup-full-caption h3 {
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    width: 100%;
    transition: padding-left 0.3s ease; /* Piccola animazione movimento testo */
}

/* Animazione testo all'hover */
.biogroup-full-card:hover .biogroup-full-caption h3 {
    padding-left: 10px; /* Il testo si sposta leggermente a destra */
   
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .biogroup-full-card {
        height: 200px; /* Su mobile le facciamo un po' più basse */
    }
    .biogroup-full-caption h3 {
        font-size: 16px;
    }
}




/* ============================================================
   CHECKOUT: TABELLA RIEPILOGO ORDINE (Modern Style)
   ============================================================ */

/* 1. IL CONTENITORE (Box Bianco con Ombra) */
#order_review, 
.woocommerce-checkout-review-order-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Per rispettare i bordi arrotondati */
    border: 1px solid #eef2f5; /* Bordo sottilissimo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Ombra morbida */
    margin-bottom: 30px;
}

/* 2. INTESTAZIONE TABELLA (Prodotto / Totale) */
.woocommerce-checkout-review-order-table thead th {
    background-color: #f4f8fb; /* Grigio/Azzurro chiarissimo */
    color: #004c97;            /* Testo Blu Brand */
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 20px;
    border-bottom: 2px solid #e1e8ed;
}

/* 3. RIGHE PRODOTTI (Corpo) */
.woocommerce-checkout-review-order-table tbody td {
    padding: 20px;
    border-top: 1px solid #f1f1f1;
    color: #444;
    font-size: 14px;
    vertical-align: middle;
}

/* Nome del prodotto */
.woocommerce-checkout-review-order-table tbody td.product-name {
    font-weight: 500;
    line-height: 1.5;
}

/* Quantità (x 1) */
.woocommerce-checkout-review-order-table tbody td.product-name strong.product-quantity {
    color: #efad1b; /* Arancio */
    font-weight: 700;
}

/* Prezzo del singolo prodotto */
.woocommerce-checkout-review-order-table tbody td.product-total {
    font-weight: 600;
    color: #333;
    text-align: right; /* Prezzi allineati a destra */
}

/* 4. FOOTER (Subtotale, Spedizione, Totale) */
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 15px 20px;
    border-top: 1px solid #eef2f5;
}

/* Etichette (Subtotale, Spedizione) */
.woocommerce-checkout-review-order-table tfoot th {
    color: #666;
    font-weight: 600;
    width: 60%; /* Diamo spazio all'etichetta */
    text-align: left;
}

/* Valori (Prezzi) */
.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    color: #333;
    font-weight: 600;
}

/* 5. RIGA SPEDIZIONE (Evidenziazione) */
.woocommerce-checkout-review-order-table tfoot tr.shipping th {
    vertical-align: top;
    padding-top: 20px;
}
.woocommerce-checkout-review-order-table tfoot tr.shipping td {
    font-size: 13px;
}

/* 6. IL GRANDE TOTALE (Evidenziato) */
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    background-color: #fdfdfd;
    border-top: 2px solid #004c97; /* Linea blu sopra il totale */
    padding: 25px 20px;
}

/* Etichetta "Totale" */
.woocommerce-checkout-review-order-table tfoot tr.order-total th {
    font-size: 16px;
    color: #004c97;
    font-weight: 800;
    text-transform: uppercase;
}


.woocommerce-checkout-review-order-table tfoot tr.order-total td strong {
    display: block;
}
.woocommerce-checkout-review-order-table tfoot tr.order-total td small {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: normal;
    margin-top: 5px;
}

/* ============================================================
   MOBILE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
    /* Riduciamo padding per schermi stretti */
    .woocommerce-checkout-review-order-table thead th,
    .woocommerce-checkout-review-order-table tbody td, 
    .woocommerce-checkout-review-order-table tfoot th, 
    .woocommerce-checkout-review-order-table tfoot td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    /* Il totale rimane grande */
    .woocommerce-checkout-review-order-table tfoot tr.order-total td .amount {
        font-size: 18px;
    }
}



/* ============================================================
   MOBILE: COUPON CODE FULL WIDTH
   ============================================================ */

@media (max-width: 767px) {
    
    /* 1. Il campo di input */
    #coupon_code {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important; /* Evita che il padding faccia uscire il campo */
        margin-bottom: 10px !important;    /* Spazio tra campo e bottone */
		
    }

    /* 2. Il bottone "Applica Codice" */
    /* Lo rendiamo largo 100% per allinearlo al campo */
    .checkout_coupon .button,
    .woocommerce-form-coupon .button,
    button[name="apply_coupon"] {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-top: 5px !important;
		
    }

    /* 3. Assicuriamoci che il contenitore permetta il wrap */
    .checkout_coupon,
    .woocommerce-form-coupon {
        display: flex !important;
        flex-direction: column !important;
    }
	
	
	/* Usiamo 'body' davanti per dare massima priorità */
    body .woocommerce .checkout_coupon .button,
    body .woocommerce-page .checkout_coupon .button,
    body .woocommerce form.checkout_coupon button[name="apply_coupon"],
    body .woocommerce form.checkout_coupon input[type="submit"],
    #coupon_code + .button { /* Selettore per il bottone subito dopo l'input */
        
        /* 1. Il Colore */
        background-color: #efad1b !important; 
        color: #ffffff !important;
        border: 1px solid #efad1b !important;
        
        /* 2. RIMOZIONE DEGLI STILI "FANTASMA" DEL TEMA */
        background-image: none !important; /* Rimuove sfumature grigie */
        box-shadow: none !important;       /* Rimuove ombre grigie */
        text-shadow: none !important;      /* Pulisce il testo */
        
        /* 3. Layout */
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-top: 10px !important;
        padding: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        opacity: 1 !important; /* Assicura che non sia trasparente */
    }

    /* Effetto Hover/Click */
    body .woocommerce .checkout_coupon .button:hover,
    body .woocommerce form.checkout_coupon button[name="apply_coupon"]:hover {
        background-color: #d89605 !important;
        background-image: none !important;
        color: #fff !important;
    }
	
	
	
	/* 1. La cella che contiene la X */
    .woocommerce-cart-form__contents .product-remove,
    .shop_table .product-remove {
        display: block !important;
        width: 100% !important;      /* Occupa tutta la larghezza */
        text-align: right !important; /* Sposta la X a destra */
        
        /* SPAZIATURA FONDAMENTALE */
        padding-bottom: 10px !important; /* Spazio interno sotto */
        margin-bottom: 15px !important;  /* Spazio esterno sotto (stacca dal prodotto) */
        
        
        position: static !important; /* Resetta posizioni assolute strane */
    }

    /* 2. La X vera e propria (il link) */
    .shop_table .product-remove a.remove {
        display: inline-block !important;
        float: none !important;
        margin: 0 !important;
        
        /* Rendiamola più facile da toccare */
        font-size: 24px !important;
        line-height: 1 !important;
       
        font-weight: normal !important;
    }
    
    /* Opzionale: Colore rosso quando si preme */
    .shop_table .product-remove a.remove:hover {
        color: red !important;
        background: none !important;
    }
	
	
	
	
	.woocommerce table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
        background: none !important;
    }
	
	
	
	
	
	/* modifica mobile per TOTALE CARRELLO */
    body .cart-collaterals,
    body .cart-collaterals .cart_totals {
        
        border: none !important;
        
        /* CORREZIONE: 'none' non esiste per il padding, si usa 0 */
        padding: 0 !important; 
        
        /* Assicuriamo che lo sfondo sia trasparente */
        background: transparent !important; 
        background-color: transparent !important;
        
        /* Rimuoviamo ombre */
        box-shadow: none !important;
        
        /* Opzionale: rimuove anche margini extra se servono */
        margin-top: 0 !important; 
    }
	
	/*  pulsante procedi al pagamento su mobile */
   .wc-proceed-to-checkout a.btn-primary {
        border-radius: 25px !important;
        
        /* Opzionale: Se vuoi che il bottone sia largo e centrato bene */
        /* width: 100% !important; */
        /* display: block !important; */
    }
	
	
	
}


/* Correzione Hover per il pulsante Procedi al Pagamento */
.wc-proceed-to-checkout a.btn-primary:hover,
.wc-proceed-to-checkout a.btn-primary:focus,
.wc-proceed-to-checkout a.btn-primary:active {
    border-radius: 25px !important;
    
    /* Opzionale: se cambia colore e vuoi forzarlo, puoi aggiungere background qui */
    /* background-color: #tuo_colore !important; */
}

/* ============================================================
   STILE FORZATO PULSANTE "AGGIUNGI METODO PAGAMENTO"
   ============================================================ */

/* 1. Targettiamo la pagina account specifica e il pulsante generico */
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account #add_payment_method #place_order {

    /* STILE GRAFICO (Arancione + Arrotondato) */
    background-color: #efad1b !important;
    color: #ffffff !important;
    border-radius: 25px !important;
    border: 1px solid #efad1b !important;
    
    /* RESET STILI DI BASE (Rimuove il grigio/default) */
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    
    /* DIMENSIONI E TESTO */
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: normal !important;
    display: inline-block !important;
    
    /* PREVENZIONE TRASPARENZE */
    opacity: 1 !important;
}

/* 2. EFFETTO HOVER */
body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account #add_payment_method #place_order:hover {
    background-color: #d89605 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 173, 27, 0.4) !important;
}

/* ============================================================
   MOBILE SPECIFIC (Larghezza 100%)
   ============================================================ */
@media (max-width: 767px) {
    body.woocommerce-account .woocommerce-MyAccount-content a.button,
    body.woocommerce-account .woocommerce-MyAccount-content .button,
    body.woocommerce-account #add_payment_method #place_order {
        
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        margin-top: 15px !important;
        float: none !important;
    }
}




/* ============================================================
   MOBILE: RIORDINAMENTO BLOCCHI (Categoria + Prodotti Correlati)
   ============================================================ */

@media (max-width: 767px) {
    
    /* 1. Abilitiamo il riordinamento sul contenitore padre */
    .hp_wrapper_content.row {
        display: flex !important;
        flex-direction: row !important; /* Mantiene il flusso orizzontale per il wrap */
        flex-wrap: wrap !important;
    }

    /* --- GRUPPO 1: TRATTAMENTO UMORE --- */

    /* A. Il Box Categoria (Primo div nella lista HTML) */
    .hp_wrapper_content > div:nth-child(1) {
        order: 1 !important;
        width: 100% !important; /* Occupa tutta la riga */
    }

    /* B. I primi due prodotti (Euritmia 2 e Euritmia 1) */
    /* Sono il 3° e 4° div nella struttura HTML originale */
    .hp_wrapper_content > div:nth-child(3), 
    .hp_wrapper_content > div:nth-child(4) {
        order: 2 !important;
        /* La larghezza 50% è già gestita dal CSS precedente per i prodotti */
        margin-bottom: 20px !important; /* Spazio sotto i prodotti prima della prox categoria */
    }


    /* --- GRUPPO 2: SINTOMI INFLUENZALI --- */

    /* C. Il Box Categoria (Secondo div nella lista HTML) */
    .hp_wrapper_content > div:nth-child(2) {
        order: 3 !important;
        width: 100% !important;
        margin-top: 20px !important; /* Distacca dal gruppo precedente */
    }

    /* D. Gli ultimi due prodotti (TuxiProd e TuxiSec) */
    /* Sono il 5° e 6° div nella struttura HTML originale */
    .hp_wrapper_content > div:nth-child(5), 
    .hp_wrapper_content > div:nth-child(6) {
        order: 4 !important;
    }
}


@media (max-width: 767px) {
    .hp_wrapper_content {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    /* Rimuove il padding dal contenitore principale */
    .col-md-12.content-area {
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* Riduci spazio pagina Mio Account */
.page-id-10 .entry-header {
    margin-bottom: 10px !important; /* Riduce lo spazio sotto il titolo */
    padding-bottom: 0 !important;
}

.page-id-10 .entry-content {
    margin-top: 0 !important;     /* Rimuove lo spazio sopra il contenuto */
    padding-top: 0 !important;
}

.page-id-10 .woocommerce-notices-wrapper {
    margin-bottom: 0 !important; /* Rimuove spazio extra se non ci sono notifiche */
}

/* Opzionale: Se vuoi avvicinare ancora di più le colonne di login */
.page-id-10 #customer_login {
    margin-top: -20px !important;
}



/* ============================================================
   MOBILE: RIDUZIONE SPAZIO HEADER - ACCOUNT
   ============================================================ */

@media (max-width: 767px) {
	
	.entry-header{
		display:none !important;
	}
    
    /* 1. Riduciamo il blocco che contiene il titolo "Il mio account" */
    .page-id-10 .entry-header {
        margin-bottom: 5px !important; /* Quasi zero spazio sotto */
        padding-bottom: 0 !important;
        min-height: auto !important;   /* Evita altezze minime forzate dal tema */
    }

    /* 2. Riduciamo il margine del titolo H1 stesso */
    .page-id-10 .entry-header .entry-title {
        margin-bottom: 5px !important; /* Avvicina il titolo al contenuto */
        padding-bottom: 0 !important;
        font-size: 24px !important;    /* (Opzionale) Riduce leggermente il font se troppo grande */
    }

    /* 3. Tiriamo su il contenitore principale del contenuto */
    .page-id-10 .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* 4. Rimuoviamo margini dal blocco notifiche (se vuoto occupa spazio) */
    .page-id-10 .woocommerce-notices-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. Tiriamo su il form di Login vero e proprio */
    .page-id-10 #customer_login {
        margin-top: -60px !important;
    }
    
    /* EXTRA: Riduciamo anche lo spazio tra "Accedi" e "Registrati" che su mobile si impilano */
    .page-id-10 .u-column1, 
    .page-id-10 .u-column2 {
        margin-bottom: 20px !important; /* Spazio ridotto tra i due blocchi */
    }
}



/* ============================================================
   MOBILE: RIMUOVI BORDI E PADDING DAI FORM (CLEAN LOOK)
   ============================================================ */

@media (max-width: 767px) {
    
    .woocommerce form.checkout_coupon, 
    .woocommerce form.login, 
    .woocommerce form.register {
        
        /* 1. Rimuove il bordo grigio */
        border: none !important;
        
        /* 2. Rimuove lo spazio interno */
        padding: 0 !important;
        
        /* 3. Pulizia extra (Rimuove ombre e sfondi colorati) */
        box-shadow: none !important;
        background: transparent !important; 
        
        /* 4. Opzionale: Rimuove margini esterni se serve compattare */
        margin-bottom: 20px !important;
    }
}

.yith-wcwl-add-button{
	padding:15px !important;
}

.count-add-to-wishlist{
	    padding: 15px !important;
    margin-top: -25px !important;
}



@media (max-width: 767px) {
    body.woocommerce-account .woocommerce-MyAccount-content {
       padding:20px !important;
    }
}


@media (max-width: 767px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        
        /* Nasconde completamente l'elemento dal flusso della pagina */
       
        
        
    }
}


/* ============================================================
   DESKTOP: FORZA TABELLA DENTRO IL CONTENITORE (FIXED LAYOUT)
   ============================================================ */

@media (min-width: 768px) {

    /* 1. OBBLIGA LA TABELLA A NON SUPERARE IL 100% */
    table.shop_table.my_account_orders {
        width: 100% !important;
        max-width: 100% !important;
        /* Questo è il comando magico: blocca la larghezza delle colonne */
        table-layout: fixed !important; 
        border-collapse: collapse !important;
    }

    /* 2. GESTIONE DEL CONTENUTO DELLE CELLE */
    table.shop_table.my_account_orders th, 
    table.shop_table.my_account_orders td {
        /* Permette al testo di andare a capo se non ci sta */
        white-space: normal !important; 
        
        /* Spezza le parole lunghe (es. codici tracking) se necessario */
        word-wrap: break-word !important; 
        overflow-wrap: break-word !important;
        
        /* Spaziatura ridotta */
        padding: 12px 12px !important;
        vertical-align: middle !important;
        font-size: 13px !important;
    }

    /* 3. RIDIMENSIONA LE COLONNE (Totale 100%) */
    /* Assegniamo percentuali fisse per gestire lo spazio */
    
    .woocommerce-orders-table__header-order-number { width: 15%; } /* Ordine */
    .woocommerce-orders-table__header-order-date   { width: 12%; } /* Data */
    .woocommerce-orders-table__header-order-status { width: 18%; } /* Stato */
    .woocommerce-orders-table__header-order-total  { width: 15%; } /* Totale */
    .woocommerce-orders-table__header-custom       { width: 20%; } /* Tracking (diamogli spazio) */
    .woocommerce-orders-table__header-order-actions{ width: 20%; } /* Bottoni */

    /* 4. IMPILA I BOTTONI AZIONI (Vedi / Fattura) */
    /* Metterli uno sotto l'altro fa risparmiare tantissimo spazio orizzontale */
    .woocommerce-orders-table__cell-order-actions a.button {
        display: block !important; /* Blocchi impilati */
        width: 100% !important;
        margin: 0 0 5px 0 !important; /* Spazio tra i due bottoni */
        text-align: center !important;
        padding: 5px !important;
        font-size: 11px !important;
    }
}

/* ============================================================
   DESKTOP: PADDING 0 SOLO SU PAGINA ORDINI
   ============================================================ */


    
    /* Grazie alla classe aggiunta col PHP, siamo sicuri al 100% 
       di colpire solo questa pagina */
    body.pagina-lista-ordini .woocommerce-MyAccount-content {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        width: 100% !important;
    }
    
    /* Assicuriamoci che la tabella sfrutti lo spazio */
    body.pagina-lista-ordini table.shop_table.my_account_orders {
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

/* ============================================================
   RESET BOTTONI ORDINI -> LINK TESTUALI SEMPLICI
   ============================================================ */

/* Targettiamo i link dentro la cella "Azioni" della tabella ordini */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button {
    
    /* 1. RESET TOTALE DELLO STILE BOTTONE */
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-shadow: none !important;
    
    /* 2. STILE TESTO PULITO */
    color: #333333 !important; /* Colore nero/grigio scuro */
    padding: 0 !important;
    margin: 0 5px !important; /* Un po' di spazio laterale tra i link */
    font-size: 13px !important; /* Dimensione testo adeguata alla tabella */
    font-weight: 600 !important; /* Grassetto leggero per leggibilità */
    text-transform: none !important; /* Niente maiuscolo forzato */
    
    /* 3. SOTTOLINEATURA */
    text-decoration: underline !important;
    
    /* 4. DIMENSIONI */
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* EFFETTO HOVER (Passaggio del mouse) */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button:hover {
    background-color: transparent !important;
    color: #efad1b !important; /* Diventa arancione quando ci passi sopra */
    text-decoration: none !important; /* Toglie la sottolineatura all'hover */
    border: none !important;
}




/* Inverte l'ordine dei Termini e Condizioni di WooCommerce per far aprire la tendina sotto */
.woocommerce-terms-and-conditions-wrapper {
    display: flex;
    flex-direction: column;
}

/* La checkbox sale sopra */
.woocommerce-terms-and-conditions-wrapper .form-row {
    order: 1 !important;
    margin-bottom: 5px !important;
}

/* Il box di testo scende sotto */
.woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions {
    order: 2 !important;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
    background: #fff !important;
}

