html, body {
    background-color: #fff;
}

.light {
	background-color: #fff;
}

.site-footer.light {
	border-top: 1px solid #fff;
}

.counter {
	background: #000;
}

.site-header.transparent.transparent-hover.text-dark:hover {
	background: #fff;
}

.hamburger-menu .hamburger-box .hamburger-inner {
	background: #000;
}

/* PRODUCT ON CATALOG PAGE */
/* START ----------------- */
/* >buttons wrapper */
ul.products li.product .product-inner .buttons{
	position: relative;
	left: 0px;
	right: 0px;
	min-height: 0px;
	height: 0px;
	margin-bottom: 0px
}
/* >buttons wrapper on product-inner hover */
ul.products li.product .product-inner:hover .buttons{
	position: relative;
	left: 0px;
	right: 0px;
    min-height: 30px;
    margin-top: 20px
	/* margin-bottom: 10px */
}
/* >quantity field */
.woocommerce .product-inner .quantity {
    padding-top: 7px;
    display: inline-block;
    vertical-align: top;
    border: 1px solid #cdcfd0;
    transition: 0.4s;
    width: 60%;
    text-align: center;
    height: 55px;
}
/* >remove padding for +/- in quantity field (only for product inner in product catalog) */
.woocommerce .product-inner .quantity .qty-button {
    padding: 0px
}
/* hide label because is not set */
/*.woocommerce .product-inner .quantity .screen-reader-text {
    display: none;
}*/
/* >cart button in inner-product */
.woocommerce .product-inner button {
    display: inline-block;
    vertical-align: top;
	width: 35%;
    /* margin-top: 10px !important; */
    height: 55px;
    padding: 0px 10px
}
/* >moving whislist icon to the top */
ul.products li.product .button:nth-child(2) {
    display: block;
    position: absolute;
    top: calc(-35vh - 30px);
    right: 0px;
    /* margin-top: 10px !important; */
}

ul.products li.product .product-summary {
    text-align: center;
}

ul.products li.product .product-summary p {
    font-size: 1rem;
    margin: 6px auto;
}

/* END ------------------- */
/* PRODUCT ON CATALOG PAGE */


/* PRODUCT PAGE */
/* START ----------------- */
/* >hide description */
.woocommerce div.product .woocommerce-tabs {
    display: none;
}

/* >hide whishlist label from button in product page */
.woocommerce div.product .add-to-wishlist-button .button-text {
    display: none;
}

/* >hide share label */
.woocommerce div.product .product-share .sharing-icon {
    display: none !important;
}

/* >full screen bottle in product page */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    display: block;
    max-height: 80vh;
    width: auto;
    margin: auto;
}

/* >product image */
.woocommerce div.product.layout-v6 .woocommerce-product-gallery .wp-post-image {
	max-height: 80vh;
	width: auto;
	margin: auto;
}

.woocommerce-product-details__short-description a {
    display: inline-block;
    background-color: #000;
    padding: 6px 10px;
    color: #fff;
    text-transform: uppercase;
}

.woocommerce-product-details__description {
    display: none;
}

.woocommerce div.product .quantity {
    align-items: center;
}

.swiper-wrapper {
    height: auto;
}

/* END ------------------- */
/* PRODUCT PAGE */

/* FIXING BUTTONS COLORS */
.woocommerce div.product .single_add_to_cart_button, .button {
	background: #000;
	color: #fff;
}

.cart-collaterals .checkout-button {
	color: #fff;
}

/* HIDE COLUMNS SWITCHER */
.products-toolbar.layout-v4 .columns-switcher {
	display: none;
}

/* RESIZE PRODUCT IMAGE */
ul.products li.product .product-thumbnail img {
    display: block;
    width: auto;
    height: auto;
    text-align: center;
    margin: auto;
    max-height: 35vh;
}

/* RESIZE LOGO ON MOBILE */
.header-mobile .site-branding img {
	width: 130px;
	margin-top: 5px;
}

/* HIDE "close" AFTER MENU HAMBURGER WHEN OPEN */
.hamburger-menu.active .menu-text {
	display: none;
}


a.added_to_cart.wc-forward {
	width: 100%;
	text-align: center;
	margin-top: 20px;
	display: block;
}


/* HIDE COLUMN SWITCHER */
.products-tools .columns-switcher .column-seletor {
    display: none !important;
}

.products-toolbar .woocommerce-ordering {
    display: none !important;
}

.products-toolbar .products-filter-toggle {
    display: none !important;
}

.products-toolbar .columns-switcher, .products-toolbar .products-filter-toggle {
    display: none !important;
}

/* Error messages in cart min-height */
.widget_shopping_cart_content .woocommerce-message, .widget_shopping_cart_content .woocommerce-info, .widget_shopping_cart_content .woocommerce-error {
    min-height: 80px !important;
    margin-bottom: 10px;
}


@media (max-width: 1100px) {
    ul.products li.product .product-thumbnail img {
        width: 100%;
        height: auto;
    }
    
	.woocommerce div.product .single_add_to_cart_button, .button {
		display: block;
		width: 100%;
	}
}

@media (max-width: 991px) {
    .woocommerce div.product .woocommerce-product-gallery img {
        width: auto !important;
        height: 80vh !important;
    }

    .products-toolbar .products-tabs, .products-toolbar .products-tabs{
        display: block;
    }
}

@media (max-width: 828px) {
    /* FIX CHECKOUT FIELDS ON NEW LINE */
    /* | #START */
	form.edit-account .form-row-last {
		margin-left: 195px;
        padding-left: 0px;
        width: calc(100% - 195px);
	}
	
	form.edit-account .form-row-first{
		width: 100%;
		padding-right: 0px;
    }
    /* | #END */
}



@media (max-width: 767px) {
    .products-toolbar .products-tabs, .products-toolbar .products-tabs{
        display: block !important;
    }

    /* WHISLIST ICON MOVE TO TOP */
    ul.products li.product .button:nth-child(2) {
        text-align: right;
        margin-top: 10px;
        top: calc(-100vw * 3/4);
    }
    
    /* FIX FORM FIELDS */
    /* | #START */
	form.edit-account .form-row-last {
		margin-left: 0px;
        padding-left: 0px;
        width: 100%;
	}
	
	form.edit-account .form-row-first{
		width: 100%;
		padding-right: 0px;
    }
    /* | #END */
	
}

/* CHANGE INPUT BACKGOURND AND BORDER-BOTTOM */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
	background: transparent;
	border-bottom: 2px solid #d0c8bf;
}

/* correct label input username and password */
.woocommerce-account-login form.register label, .woocommerce-account-login form.login label, .woocommerce-account-login form.lost_reset_password label {
    font-size: 0.875rem;
    color: #161619;
    transform: translateY(10px);
}



.page_esperienze ul.products li.product .product-summary > *:not(.woocommerce-loop-product__title, .product-short-description) {
    display: none !important;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.5rem;
}

#popup-woocommerce-login-form-container {
    position: fixed;
    z-index: 999;
    padding: 3rem;
    top: 50%;
    left: 50%;
    min-width: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
}

#popup-woocommerce-login-form-container .auth-switcher {
    margin-bottom: 1rem;
}

#popup-woocommerce-login-form-container .auth-switcher button {
    padding: 0 20px;
    line-height: 35px;
}

.backshadow {
    background-color: #000;
    opacity: .5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    position: fixed;
}
@media (max-width: 768px) {
    #popup-woocommerce-login-form-container {
        width: 90%;
    }

    #popup-woocommerce-login-form-container {
        position: absolute;
    }

    #popup-woocommerce-login-form-container h3 {
        font-size: 1.2rem;
    }

}

#popup-woocommerce-login-form-container form {
    display: flex;
    flex-direction: column;
}

#popup-woocommerce-login-form-container p,
#popup-woocommerce-login-form-container input {
    width: 100%;
}

#popup-woocommerce-login-form-container .form-row-last {
    margin-left: 0;
    padding-left: 0;
}

#popup-woocommerce-login-form-container .form-row-first {
    margin-right: 0;
    padding-right: 0;
}

.product_cat-esperienze .woocommerce-breadcrumb,
.product_cat-esperienze .product_meta,
.yith-wcbk-form-section-duration--no-field {
    display: none !important;
}


/* ================================================================
   WCAG 2.1 AA — aggiunte integrate (non rimuovere)
   ================================================================ */

/* ----------------------------------------------------------------
   FIX: .screen-reader-text nel product-inner era display:none
   Il CSS originale nascondeva lo screen-reader-text nella lista prodotti.
   Ripristiniamo per accessibilità — WCAG 1.3.1
   ---------------------------------------------------------------- */
.woocommerce .product-inner .quantity .screen-reader-text {
    /* WCAG FIX: rimosso display:none — la label è necessaria per screen reader */
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ----------------------------------------------------------------
   Skip link — WCAG 2.4.1
   ---------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -120px;
    left: 6px;
    z-index: 100000;
    padding: 14px 22px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #fff;
    border-radius: 3px;
}
.skip-link:focus {
    top: 7px;
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff;
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    width: auto;
    padding: 14px 22px;
    z-index: 100000;
}

/* ----------------------------------------------------------------
   Focus outline globale — WCAG 2.4.7 / 2.4.11
   ---------------------------------------------------------------- */
*:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px !important;
    border-radius: 2px;
}
*:focus:not(:focus-visible) {
    outline: none !important;
}

/* ----------------------------------------------------------------
   Errori form: non solo colore — WCAG 1.4.1
   ---------------------------------------------------------------- */
.woocommerce-error {
    border-left: 4px solid #cc0000;
}
.woocommerce form .form-row.woocommerce-invalid input,
.woocommerce form .form-row.woocommerce-invalid select {
    border-left: 4px solid #cc0000 !important;
}
.woocommerce form .form-row.woocommerce-validated input {
    border-left: 4px solid #1a5c1a !important;
}

/* ----------------------------------------------------------------
   Movimento ridotto — WCAG 2.3.3
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}

/* ----------------------------------------------------------------
   Popup login: focus trap visibile — WCAG 2.4.7
   Il popup originale (#popup-woocommerce-login-form-container)
   ora mostra focus outline su tutti gli elementi interattivi
   ---------------------------------------------------------------- */
#popup-woocommerce-login-form-container a:focus-visible,
#popup-woocommerce-login-form-container button:focus-visible,
#popup-woocommerce-login-form-container input:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* ----------------------------------------------------------------
   Cart panel KONTE: visibilità coerente con aria-hidden
   ---------------------------------------------------------------- */
.konte-cart-panel[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   YITH Booking: giorni non disponibili non solo colore — WCAG 1.4.1
   ---------------------------------------------------------------- */
.yith-wcbk-calendar .yith-wcbk-calendar-day--full a,
.ui-datepicker-calendar .ui-state-disabled span {
    text-decoration: line-through;
    opacity: 0.55;
}
.yith-wcbk-calendar .yith-wcbk-calendar-day--available a:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

/* ----------------------------------------------------------------
   WPML switcher: hover + focus-within mostrano sottomenu — WCAG 2.1.1
   ---------------------------------------------------------------- */
.wpml-ls-item:focus-within .wpml-ls-sub-menu {
    display: block !important;
}

/* ----------------------------------------------------------------
   Pulsanti icona header (carrello, ricerca, hamburger)
   Già coperti dal focus-visible globale
   ---------------------------------------------------------------- */
.konte-header__cart a:focus-visible,
.konte-search-toggle:focus-visible,
.konte-nav-toggle:focus-visible,
.hamburger-menu:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px !important;
}
/* SVG decorativi: non ricevono focus — WCAG 2.1.1 */
svg use {
    pointer-events: none;
}
svg[aria-hidden="true"] {
    pointer-events: none;
}
/* Link che aprono nuova finestra: icona visiva opzionale — WCAG 2.4.4 */
a[target="_blank"]:not(.social-share-link):not(.button):not(.wp-element-button)::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
    speak: none; /* vecchi screen reader */
}
/* I link social share hanno già testo "Share on X" — l'icona sarebbe ridondante */
.social-share-link::after {
    content: none !important;
}
/* Label ricerca: visibile agli AT, non rompe layout — WCAG 2.5.3 */
.header-search .search-label-visible {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    /* NON usiamo screen-reader-text perché alcuni validatori
       la considerano "non visibile" ai fini di WCAG 2.5.3 */
}