/*
Theme Name: Woodmart Child
Template: woodmart
Version: 2.0
Description: Child theme for Woodmart
Author: Tsec Engineering S.r.l.
*/

/* =========================================================
   01. NASCONDI META / ATTRIBUTI / CATEGORIE PRODOTTO
========================================================= */

/* Mostra il blocco meta prodotto, necessario per visualizzare lo SKU */
.single-product .product_meta {
    display: block !important;
}

/* Mostra lo SKU nella pagina prodotto */
.single-product .product_meta .sku_wrapper {
    display: inline-block !important;
}

/* Nasconde categorie e tag nella pagina prodotto */
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
    display: none !important;
}

.products .wd-entities-title + .wd-product-cats {
    display: none !important;
}


/* Nasconde gli attributi prodotto su tutti i prodotti */
.single-product .woocommerce-product-attributes {
    display: none !important;
}

/* Mostra gli attributi prodotto solo sugli script UPA-S */
.single-product .woocommerce-product-attributes:has(.woocommerce-product-attributes-item--attribute_pa_script-system),
.single-product .woocommerce-product-attributes:has(.woocommerce-product-attributes-item--attribute_pa_for) {
    display: table !important;
}

/* =========================================================
   02. FORM WOOCOMMERCE
========================================================= */

.woocommerce input::placeholder,
.woocommerce textarea::placeholder {
    color: #B7B7B7;
    font-style: italic;
    opacity: 1;
}


/* =========================================================
   03. MESSAGGIO GRAZIE PER L'ORDINE
========================================================= */

.woocommerce-notice.woocommerce-notice--success {
    color: rgb(12,107,0) !important;
    background-color: rgb(241,252,229) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
}


/* =========================================================
   04. HOME / PAGINE - RIMOZIONE SPAZIO ALTO
========================================================= */

.home .wd-content-layout,
.home .main-page-wrapper,
.home .site-content,
body.home .wd-content-layout,
body.home .main-page-wrapper,
body.home .site-content,
body.page-template .wd-content-layout,
body.page-template .main-page-wrapper,
body.page-template .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* =========================================================
   05. TAB PRODOTTO
========================================================= */

.single-product .woocommerce-tabs h4,
.single-product .wd-tabs h4 {
    margin-top: 28px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.single-product .woocommerce-tabs h4:first-child,
.single-product .wd-tabs h4:first-child {
    margin-top: 0;
}

.single-product .woocommerce-tabs p,
.single-product .wd-tabs p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.single-product .woocommerce-tabs ul.unordered-list,
.single-product .wd-tabs ul.unordered-list {
    margin-bottom: 28px;
}

.single-product .woocommerce-tabs ul.unordered-list li,
.single-product .wd-tabs ul.unordered-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}


/* =========================================================
   06. BREADCRUMBS WOODMART
========================================================= */

.wd-breadcrumbs {
    color: #646464 !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wd-breadcrumbs a,
.wd-breadcrumbs span {
    color: #646464 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.wd-breadcrumbs a:hover {
    color: #2a2a2a !important;
}

/* ---------------------------------------------------------
   Fix separatore breadcrumbs dopo update Woodmart
   Forza un solo slash tra le voci
--------------------------------------------------------- */

.wd-breadcrumbs .wd-delimiter {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.wd-breadcrumbs .wd-delimiter::before,
.wd-breadcrumbs .wd-delimiter::after {
    content: none !important;
}

.wd-breadcrumbs .wd-delimiter::before {
    content: "/" !important;
    color: #646464 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

/* Nasconde Home + separatore */
.wd-breadcrumbs > a:first-of-type,
.wd-breadcrumbs > a:first-of-type + .wd-delimiter {
    display: none !important;
}

/* Nasconde Shop + separatore */
.wd-breadcrumbs > a:nth-of-type(2),
.wd-breadcrumbs > a:nth-of-type(2) + .wd-delimiter {
    display: none !important;
}

/* Nasconde eventuali separatori rimasti all'inizio */
.wd-breadcrumbs > .wd-delimiter:first-child {
    display: none !important;
}

/* Nasconde separatori consecutivi */
.wd-breadcrumbs > .wd-delimiter + .wd-delimiter {
    display: none !important;
}

/* Nasconde ultimo elemento solo nella pagina singolo prodotto */
.single-product .wd-breadcrumbs > .wd-last {
    display: none !important;
}

/* Nasconde eventuale separatore finale rimasto solo nel singolo prodotto */
.single-product .wd-breadcrumbs > .wd-delimiter:last-child {
    display: none !important;
}

/* Ripristino breadcrumbs nella pagina singolo prodotto */
.single-product .wd-breadcrumbs,
.single-product .woocommerce-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 22px !important;
    line-height: 1.5 !important;
}

/* =========================================================
   07. BREADCRUMBS MOBILE
========================================================= */

@media (max-width: 768px) {
    .single-product .wd-breadcrumbs,
    .single-product .woocommerce-breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 14px !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .wd-breadcrumbs .wd-delimiter {
        margin: 0 7px !important;
    }

    .single-product .wd-breadcrumbs .wd-delimiter::before {
        font-size: 12px !important;
    }

    .single-product .wd-breadcrumbs::-webkit-scrollbar,
    .single-product .woocommerce-breadcrumb::-webkit-scrollbar {
        display: none;
    }
}


/* =========================================================
   08. BUNDLE / STOCK
========================================================= */

.single-product .woosb-products .stock,
.single-product .woosb-products .availability,
.single-product .woosb-products .wd-product-stock,
.single-product .woosb-products .product-availability {
    display: none !important;
}


/* =========================================================
   09. HEADER / TOP BAR / MENU
========================================================= */

/* Hover menu top bar right */
.whb-top-bar .menu > li > a:hover,
.whb-top-bar .menu > li:hover > a,
.whb-top-bar .menu > li.current-menu-item > a,
.whb-top-bar .menu > li.current-menu-ancestor > a,
.whb-top-bar .menu > li.current_page_item > a {
    color: #E9E9E9 !important;
}

/* Hover lingua visibile nella top bar */
.whb-top-bar a.woodmart-nav-link.wpml-ls-link:hover,
.whb-top-bar .wpml-ls-item:hover > a.woodmart-nav-link.wpml-ls-link {
    color: #E9E9E9 !important;
}

/* Dropdown WPML: annulla il colore sopra */
.whb-top-bar .wd-dropdown-menu a.woodmart-nav-link.wpml-ls-link,
.whb-top-bar .wd-dropdown-menu .wpml-ls-item:hover > a.woodmart-nav-link.wpml-ls-link {
    color: #333333 !important;
}

/* Hover nel dropdown WPML */
.whb-top-bar .wd-dropdown-menu a.woodmart-nav-link.wpml-ls-link:hover {
    color: #01529B !important;
}

.whb-top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: none !important;
}

/* Colore blu per voce CATEGORIES */
.whb-header .menu-opener,
.whb-header .menu-opener .menu-open-label {
    color: #005A9C !important;
}

/* Icona hamburger e freccia vicino a CATEGORIES */
.whb-header .menu-opener .menu-opener-icon,
.whb-header .menu-opener .menu-opener-arrow {
    color: #005A9C !important;
}

/* Nasconde freccetta accanto a CATEGORIES */
.whb-header .menu-opener .menu-opener-arrow,
.whb-header .menu-opener .wd-tools-icon:after,
.whb-header .menu-opener:after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   11. LAYOUT VARIAZIONI PRODOTTO
   Titolo variazione sopra, swatches sotto
========================================================= */

html[lang^="it"] .woocommerce div.product form.cart table.variations tr,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations th.label,
html[lang^="en"] .woocommerce div.product form.cart table.variations th.label,
html[lang^="it"] .woocommerce div.product form.cart table.variations th.label.cell,
html[lang^="en"] .woocommerce div.product form.cart table.variations th.label.cell {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 0 8px 0 !important;
    margin: 0 !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations th.label label,
html[lang^="en"] .woocommerce div.product form.cart table.variations th.label label {
    display: block !important;
    margin: 0 !important;
    color: #2a2a2a !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations td.value,
html[lang^="en"] .woocommerce div.product form.cart table.variations td.value,
html[lang^="it"] .woocommerce div.product form.cart table.variations td.value.cell,
html[lang^="en"] .woocommerce div.product form.cart table.variations td.value.cell {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations td.value .wd-swatches,
html[lang^="en"] .woocommerce div.product form.cart table.variations td.value .wd-swatches {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   12. SWATCH TESTUALI GLOBALI
   Tutti gli attributi text swatch, escluso pa_color
========================================================= */

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 90px !important;
    height: 40px !important;
    padding: 12px 12px !important;
    border-radius: 6px !important;
    margin: 0 1px 1px 0 !important;
    background-color: #e4eef9 !important;
    border: 1px solid #e4eef9 !important;
    color: #2a2a2a !important;
    transition: all 0.2s ease !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch-text {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 13px !important;
    color: #2a2a2a !important;
}

/* Hover swatch testuali */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch:hover,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch:hover {
    background-color: #e4eef9 !important;
    border: 1px solid #01529B !important;
    color: #01529B !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch:hover .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch:hover .wd-swatch-text {
    color: #01529B !important;
}

/* Attivo swatch testuali */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.wd-active,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.selected,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.swatch-on,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.wd-active,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.selected,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.swatch-on {
    background-color: #01529B !important;
    border-color: #01529B !important;
    color: #ffffff !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.wd-active .wd-swatch-text,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.selected .wd-swatch-text,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.swatch-on .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.wd-active .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.selected .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:not(:has(select[name="attribute_pa_color"])) .wd-swatch.swatch-on .wd-swatch-text {
    color: #ffffff !important;
}


/* =========================================================
   13. SWATCH COLORE
   Solo attributo: pa_color
========================================================= */

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 110px !important;
    height: 40px !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    margin: 0 4px 4px 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    color: #2a2a2a !important;
    transition: all 0.2s ease !important;
}

/* Rettangolo colore interno */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch-bg,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch-bg {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    flex: 0 0 28px !important;
    display: inline-block !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0,0,0,0.18) !important;
}

/* Testo colore */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch-text {
    width: auto !important;
    display: inline-block !important;
    text-align: left !important;
    line-height: 1 !important;
    font-size: 13px !important;
    color: #2a2a2a !important;
}

/* Hover colore */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch:hover,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch:hover {
    background-color: #e4eef9 !important;
    border: 1px solid #01529B !important;
    color: #01529B !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch:hover .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch:hover .wd-swatch-text {
    color: #01529B !important;
}

/* Attivo colore */
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.wd-active,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.selected,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.swatch-on,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.wd-active,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.selected,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.swatch-on {
    background-color: #01529B !important;
    border-color: #01529B !important;
    color: #ffffff !important;
}

html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.wd-active .wd-swatch-text,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.selected .wd-swatch-text,
html[lang^="it"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.swatch-on .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.wd-active .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.selected .wd-swatch-text,
html[lang^="en"] .woocommerce div.product form.cart table.variations tr:has(select[name="attribute_pa_color"]) .wd-swatch.swatch-on .wd-swatch-text {
    color: #ffffff !important;
}

@media (min-width: 1025px) and (max-width: 1500px) {

    #menu-mobile {
        display: flex !important;
        flex-wrap: wrap !important;
        height: auto !important;
        align-content: center;
    }

    nav:has(> #menu-mobile) {
        height: auto !important;
        min-height: 100px;
        padding-block: 8px;
    }

    .whb-row:has(#menu-mobile),
    .whb-column:has(#menu-mobile),
    .whb-flex-row:has(#menu-mobile) {
        height: auto !important;
        min-height: 100px;
    }

    #menu-mobile > li > a {
        min-height: 42px;
        white-space: nowrap;
    }
}

/* Stile comune stato disponibilità */
.products .product-grid-item .wd-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    margin: 8px auto 0;
    padding: 6px 12px;

    color: #333333;
    background-color: #F7FAFC;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Pallino colorato */
.products .product-grid-item .wd-product-stock::before {
    content: "" !important;
    display: block;
    flex: 0 0 12px;

    width: 12px;
    height: 12px;
    border-radius: 50%;

    background-image: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    font-family: initial !important;
}

/* Esaurito */
.products .product-grid-item .wd-product-stock.out-of-stock::before {
    background-color: #E00012;
}

/* Preorder */
.products .product-grid-item .wd-product-stock.available-on-backorder {
    font-size: 0;
}

.products .product-grid-item .wd-product-stock.available-on-backorder::before {
    background-color: #FFAD3D;
}

.products .product-grid-item .wd-product-stock.available-on-backorder::after {
    content: "PRE-ORDER";
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #333333;
}

/* Disponibile */
.products .product-grid-item .wd-product-stock.in-stock::before {
    background-color: #27AE4B;
}

/* Vista lista: allineamento a sinistra */
.products.products-list .product-grid-item .wd-product-stock,
.products .product-list-item .wd-product-stock,
.products .wd-product-list .wd-product-stock {
    margin-left: 0 !important;
    margin-right: auto !important;
}


/* =====================================================
   TEMPLATE DOWNLOAD MONITOR TSEC
   ===================================================== */

@property --tsec-download-progress {
	syntax: "<percentage>";
	inherits: true;
	initial-value: 0%;
}

.tsec-download-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px;
	margin: 20px 0;
	background: #f7fafc;
	border: 1px solid #e2e8ef;
	border-left: 4px solid #01529b;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.tsec-download-card__icon {
	position: relative;
	display: flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: #01529b;
	background: #ffffff;
	border: 1px solid #dce6ef;
	border-radius: 50%;
}

.tsec-download-card__icon svg {
	position: relative;
	z-index: 3;
	width: 27px;
	height: 27px;
	transition: opacity 0.15s ease;
}

.tsec-download-card__content {
	flex: 1;
	min-width: 0;
}

.tsec-download-card__title {
	color: #242424;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.tsec-download-card__description {
	margin-top: 7px;
	color: #56636f;
	font-size: 14px;
	line-height: 1.5;
}

.tsec-download-card__description:empty {
	display: none;
}

.tsec-download-card__description p:last-child {
	margin-bottom: 0;
}

/* =====================================================
   VERSIONE, DIMENSIONE E NUMERO DI DOWNLOAD
   ===================================================== */

.tsec-download-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin-top: 7px;
	color: #7a8792;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.tsec-download-card__meta span {
	display: inline-flex;
	align-items: center;
}

.tsec-download-card__meta span + span::before {
	content: "•";
	margin: 0 9px;
	color: #b2bcc4;
	font-size: 10px;
}

/* =====================================================
   PULSANTE
   ===================================================== */

.tsec-download-card__action a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 165px;
	padding: 12px 20px;
	color: #ffffff !important;
	background: #01529b;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.tsec-download-card__action a:hover {
	color: #ffffff !important;
	background: #003f78;
	transform: translateY(-1px);
}

/* Nasconde rotellina e percentuale originali */

.tsec-download-card .dlm-xhr-loading-gif,
.tsec-download-card .dlm-xhr-progress {
	display: none !important;
}

/* =====================================================
   DOWNLOAD IN CORSO
   ===================================================== */

/* Cerchio progressivo pulito */

.tsec-download-card:has(.dlm-download-started)
	.tsec-download-card__icon {
	position: relative;
	color: #01529b;
	background: #ffffff;
	border-color: transparent;
}

/* Corona circolare esterna */

.tsec-download-card:has(.dlm-download-started)
	.tsec-download-card__icon::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: -1px;
	border-radius: 50%;

	background:
		conic-gradient(
			#01529b 0 var(--tsec-download-progress, 0%),
			#dce5ec var(--tsec-download-progress, 0%) 100%
		);

	-webkit-mask:
		radial-gradient(
			farthest-side,
			transparent calc(100% - 4px),
			#000 calc(100% - 3px)
		);

	mask:
		radial-gradient(
			farthest-side,
			transparent calc(100% - 4px),
			#000 calc(100% - 3px)
		);

	transition: --tsec-download-progress 0.15s linear;
}

/* Percentuale al centro */

.tsec-download-card:has(.dlm-download-started)
	.tsec-download-card__icon::before {
	content: attr(data-download-progress);
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	color: #01529b;
    font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.2px;
	font-weight: 700;
	line-height: 1;
	transform: translate(-50%, -50%);
}

/* Nasconde la freccia durante il download */

.tsec-download-card:has(.dlm-download-started)
	.tsec-download-card__icon svg {
	opacity: 0;
}

/* Testo del pulsante durante il download */

.tsec-download-card__action a.dlm-download-started
	.tsec-download-card__button-label {
	display: none;
}

.tsec-download-card__action a.dlm-download-started::before {
	content: "Download in corso…";
	position: static;
}

/* =====================================================
   DOWNLOAD TERMINATO
   ===================================================== */

.tsec-download-card:has(.dlm-download-complete)
	.tsec-download-card__icon {
	color: #21864b;
	background: #edf8f1;
	border-color: #b9dfc6;
}

.tsec-download-card:has(.dlm-download-complete)
	.tsec-download-card__icon svg {
	opacity: 0;
}

.tsec-download-card:has(.dlm-download-complete)
	.tsec-download-card__icon::before {
	content: "✓";
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	color: #21864b;
	font-size: 23px;
	font-weight: 700;
	line-height: 1;
	transform: translate(-50%, -50%);
}

.tsec-download-card__action a.dlm-download-complete
	.tsec-download-card__button-label {
	display: none;
}

.tsec-download-card__action a.dlm-download-complete::before {
	content: "Download terminato";
	position: static;
}

/* =====================================================
   VERSIONE MOBILE
   ===================================================== */

@media (max-width: 600px) {
	.tsec-download-card {
		align-items: flex-start;
		flex-wrap: wrap;
		padding: 18px;
	}

	.tsec-download-card__content {
		width: calc(100% - 72px);
	}

	.tsec-download-card__action {
		width: 100%;
	}

	.tsec-download-card__action a {
		width: 100%;
	}
}


/* =========================================================
   WPC PRODUCT OPTIONS - TSEC STYLE
   ========================================================= */


/* ---------------------------------------------------------
   1) TITOLI / LABEL DI BLOCCO
   --------------------------------------------------------- */

/* Spazio tra titolo del gruppo e opzioni */
.wpcpo-wrap .wpcpo-option-name {
    margin-bottom: 6px;
}


/* ---------------------------------------------------------
   2) CHECKBOX SEMPLICE
   --------------------------------------------------------- */

.wpcpo-wrap p.form-row > label:has(> input.wpcpo-option-field[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 100%;

    margin: 0 0 8px 0;
    padding: 12px 14px;

    border: 1px solid #dfe5eb;
    border-radius: 8px;
    background: #fff;

    cursor: pointer;
    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.wpcpo-wrap p.form-row > label:has(> input.wpcpo-option-field[type="checkbox"]):hover {
    border-color: #01529b;
    background: #f7fbff;
}

.wpcpo-wrap p.form-row > label > input.wpcpo-option-field[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;

    flex: 0 0 auto;

    accent-color: #01529b;
}

.wpcpo-wrap p.form-row > label:has(> input.wpcpo-option-field[type="checkbox"]) > span {
    margin-left: auto;
}

.wpcpo-wrap p.form-row > label:has(> input.wpcpo-option-field[type="checkbox"]) .label-price {
    color: #01529b;
    font-weight: 600;
    white-space: nowrap;
}

.wpcpo-wrap p.form-row > label:has(> input.wpcpo-option-field[type="checkbox"]:checked) {
    border-color: #01529b;
    background: #f3f8fd;
    box-shadow: 0 0 0 1px rgba(1, 82, 155, .10);

    font-weight: 600;
}


/* ---------------------------------------------------------
   3) IMAGE CHECKBOX
   Stesso stile del checkbox classico:
   checkbox | icona | testo | prezzo
   --------------------------------------------------------- */


/* Contenitore del gruppo */
.wpcpo-option-form {
    width: 100%;
    max-width: 100%;

    padding-left: 0;

    box-sizing: border-box;
}


/* Contenitore delle opzioni */
.wpcpo-option-form p.form-row {
    display: block !important;

    width: 100%;
    max-width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;
}


/* Nasconde completamente il checkbox originale del plugin */
.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0 !important;
    overflow: hidden !important;

    pointer-events: none !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}


/* ---------------------------------------------------------
   CARD IMAGE CHECKBOX
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 18px 34px minmax(0, 1fr) auto;
    align-items: center;

    column-gap: 12px;

	width: 100% !important;
	max-width: 100% !important;

    margin: 0 0 8px 0 !important;
    padding: 12px 14px !important;

    border: 1px solid #dfe5eb !important;
    border-radius: 8px !important;

    background: #fff !important;

    box-sizing: border-box !important;

    cursor: pointer;

    text-align: left !important;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}


/* Hover */
.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label:hover {
    border-color: #01529b !important;
    background: #f7fbff !important;
}


/* ---------------------------------------------------------
   ELIMINA IL FLAG NATIVO WPCPO
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label::after,

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"]:checked + label::after {
    content: none !important;

    display: none !important;

    position: static !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
    border: 0 !important;

    box-shadow: none !important;

    opacity: 0 !important;
}


/* ---------------------------------------------------------
   CHECKBOX GRAFICO
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label::before {
    content: "" !important;

    position: static !important;

    grid-column: 1;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #8c8c8c !important;
    border-radius: 3px !important;

    background: #fff !important;

    box-sizing: border-box;

    transform: none !important;
}


/* Checkbox selezionato */
.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"]:checked + label::before {
    content: "✓" !important;

    border-color: #01529b !important;
    background: #01529b !important;

    color: #fff !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 16px !important;

    text-align: center;
}


/* ---------------------------------------------------------
   ICONA
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label img {
    grid-column: 2;

    display: block !important;

    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;
}


/* ---------------------------------------------------------
   NOME OPERAZIONE
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label .label-name {
    grid-column: 3;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit;

    font-size: inherit;
    font-weight: 400;
    line-height: inherit;

    text-align: left !important;
}


/* Grassetto solo se selezionato */
.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"]:checked + label .label-name {
    font-weight: 600;
}


/* ---------------------------------------------------------
   PREZZO
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"] + label .label-price {
    grid-column: 4;

    margin: 0 !important;
    padding: 0 !important;

    color: #01529b;

    font-size: inherit;
    font-weight: 600;

    white-space: nowrap;

    text-align: right !important;
}


/* ---------------------------------------------------------
   STATO SELEZIONATO
   --------------------------------------------------------- */

.wpcpo-option-form p.form-row
> input.wpcpo-option-field.field-checkbox[type="checkbox"]:checked + label {
    border-color: #01529b !important;

    background: #f3f8fd !important;

    box-shadow:
        0 0 0 1px rgba(1, 82, 155, .10) !important;
}


/* ---------------------------------------------------------
   4) MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /* Checkbox semplice */
    .wpcpo-wrap p.form-row
    > label:has(> input.wpcpo-option-field[type="checkbox"]) {
        padding: 10px 12px;
    }


    /* Rimuove la compensazione desktop */
    .wpcpo-option-form {
        padding-left: 0;
    }


    /* Image checkbox */
    .wpcpo-option-form p.form-row
    > input.wpcpo-option-field.field-checkbox[type="checkbox"] + label {
        grid-template-columns: 18px 30px minmax(0, 1fr) auto;

        column-gap: 9px;

        width: 100% !important;
        max-width: 100% !important;

        padding: 10px 12px !important;
    }


    /* Icona mobile */
    .wpcpo-option-form p.form-row
    > input.wpcpo-option-field.field-checkbox[type="checkbox"] + label img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
    }
}


/* ==========================================================
   TSEC - Tab Applicazioni BCM
   ========================================================== */

.tsec-bcm-applications {
    width: 100%;
}


/* ==========================================================
   BOX RIASSUNTIVI
   ========================================================== */

.tsec-bcm-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 15px;
}

.tsec-bcm-specs > div {
    padding: 10px 15px;

    border: 1px solid #e1e6eb;
    border-radius: 6px;

    background: #f7fafc;
}

.tsec-bcm-specs span {
    display: block;
    margin-bottom: 3px;

    color: #72777d;

    font-size: 12px;
    line-height: 1.3;
}

.tsec-bcm-specs strong {
    display: block;

    color: #222;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


/* ==========================================================
   CONTENITORE TABELLA
   ========================================================== */

.tsec-bcm-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ==========================================================
   TABELLA
   ========================================================== */

.tsec-bcm-table {
    width: 100%;
    margin: 0;

    border: 1px solid #e1e6eb;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;

    background: #fff;
    overflow: hidden;
}


/* ==========================================================
   INTESTAZIONE
   ========================================================== */

.tsec-bcm-table thead th {
    padding: 11px 14px;

    background: #f3f6f8;
    color: #333;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: .03em;

    border-bottom: 1px solid #dfe5eb;
}


/* ==========================================================
   CELLE
   ========================================================== */

.tsec-bcm-table tbody td {
    padding: 9px 14px;

    vertical-align: middle;

    border-bottom: 1px solid #edf0f2;

    line-height: 1.4;
}

.tsec-bcm-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ==========================================================
   RIGHE ALTERNATE
   ========================================================== */

.tsec-bcm-table tbody tr:nth-child(even) {
    background: #fbfcfd;
}


/* ==========================================================
   HOVER
   ========================================================== */

.tsec-bcm-table tbody tr {
    transition: background-color .12s ease;
}

.tsec-bcm-table tbody tr:hover {
    background: #f7fbff;
}


/* ==========================================================
   COLONNE
   ========================================================== */

/* Auto */

.tsec-bcm-table th:nth-child(1),
.tsec-bcm-table td:nth-child(1) {
    width: 40%;
}


/* Sistema BCM */

.tsec-bcm-table th:nth-child(2),
.tsec-bcm-table td:nth-child(2) {
    width: 30%;
}

.tsec-bcm-table td:nth-child(2) {
    color: #01529b;
    font-weight: 600;
    white-space: nowrap;
}


/* OEM */

.tsec-bcm-table th:nth-child(3),
.tsec-bcm-table td:nth-child(3) {
    width: 30%;
}

.tsec-bcm-table td:nth-child(3) {
    color: #01529b;
    font-weight: 600;
    white-space: nowrap;
}


/* ==========================================================
   TSEC - Tabella applicazioni ECU
   ========================================================== */

.tsec-ecu-table {
	width: 100%;
	margin: 0;

	border: 1px solid #e1e6eb;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 6px;

	background: #fff;
	overflow: hidden;
}


/* ==========================================================
   INTESTAZIONE
   ========================================================== */

.tsec-ecu-table thead th {
	padding: 11px 14px;

	background: #f3f6f8;
	color: #333;

	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;

	text-align: left;
	text-transform: uppercase;
	letter-spacing: .03em;

	border-bottom: 1px solid #dfe5eb;
}


/* ==========================================================
   CELLE
   ========================================================== */

.tsec-ecu-table tbody td {
	padding: 9px 14px;

	vertical-align: middle;
	border-bottom: 1px solid #edf0f2;

	line-height: 1.4;
}

.tsec-ecu-table tbody tr:last-child td {
	border-bottom: 0;
}


/* ==========================================================
   RIGHE ALTERNATE
   ========================================================== */

.tsec-ecu-table tbody tr:nth-child(even) {
	background: #fbfcfd;
}


/* ==========================================================
   HOVER
   ========================================================== */

.tsec-ecu-table tbody tr {
	transition: background-color .12s ease;
}

.tsec-ecu-table tbody tr:hover {
	background: #f7fbff;
}


/* ==========================================================
   COLONNE
   ========================================================== */

/* Applicazione */
.tsec-ecu-table th:nth-child(1),
.tsec-ecu-table td:nth-child(1) {
	width: 28%;
}

/* Riferimento Bosch */
.tsec-ecu-table th:nth-child(2),
.tsec-ecu-table td:nth-child(2) {
	width: 22%;
}

/* Codice OEM */
.tsec-ecu-table th:nth-child(3),
.tsec-ecu-table td:nth-child(3) {
	width: 22%;
}

/* Software ECU */
.tsec-ecu-table th:nth-child(4),
.tsec-ecu-table td:nth-child(4) {
	width: 28%;
}


/* ==========================================================
   DATI TECNICI
   ========================================================== */

.tsec-ecu-table td:nth-child(2),
.tsec-ecu-table td:nth-child(3),
.tsec-ecu-table td:nth-child(4) {
	color: #01529b;
	font-weight: 600;
	white-space: nowrap;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

	.tsec-ecu-table {
		min-width: 820px;
	}

	.tsec-ecu-table thead th,
	.tsec-ecu-table tbody td {
		padding: 9px 12px;
	}
}


/* ==========================================================
   NOTA FINALE
   ========================================================== */

.tsec-bcm-note {
    margin: 14px 0 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .tsec-bcm-specs {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 12px;
    }

    .tsec-bcm-specs > div {
        padding: 9px 12px;
    }

    .tsec-bcm-table {
        min-width: 560px;
    }

    .tsec-bcm-table thead th,
    .tsec-bcm-table tbody td {
        padding: 9px 12px;
    }
}


/* =========================================================
   TSEC — Menu macro-categorie
   ========================================================= */

/*
 * WoodMart aggiunge 20px al contenitore esterno.
 * :has() permette di individuarlo senza usare la classe generata
 * wd-b65ddb31.
 */

/* Allineamento del menu principale in ogni stato di login */
.wd.wd .wp-block-wd-container:has(> .wp-block-categories-taxonomy-product_cat) {
	padding: 0 !important;
}

.wp-block-categories-taxonomy-product_cat {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-categories-taxonomy-product_cat > .cat-item {
	margin: 0;
	padding: 0;
}

.wp-block-categories-taxonomy-product_cat > .cat-item > a {
	position: relative;
	display: block;
	padding: 10px 12px 10px 14px;
	color: #222;
	line-height: 1.35;
	border-radius: 0 3px 3px 0;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

/* Categoria corrente oppure macro-categoria parent */
.wp-block-categories-taxonomy-product_cat
> :is(.current-cat, .current-cat-parent, .current-cat-ancestor)
> a {
	color: #01529b;
	font-weight: 600;
	background-color: rgba(1, 82, 155, 0.055);
}

/* Barra blu indipendente dal rientro del testo */
.wp-block-categories-taxonomy-product_cat
> :is(.current-cat, .current-cat-parent, .current-cat-ancestor)
> a::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background-color: #01529b;
}

.wp-block-categories-taxonomy-product_cat
> :is(.current-cat, .current-cat-parent, .current-cat-ancestor)
> a:hover {
	color: #01529b;
	background-color: rgba(1, 82, 155, 0.085);
}


/* =========================================================
   TSEC — Sottocategoria corrente
   ========================================================= */

/* Stato attivo: leggero, coerente con il tema */
.category-grid-item.wd-cat.tsec-current-product-cat
> .wd-cat-inner {
	background-color: rgba(1, 82, 155, 0.045);
	border-radius: 0;
	outline: none;
	box-shadow: inset 0 -3px 0 #01529b;
	transition:
}

/* Titolo WoodMart */
.category-grid-item.wd-cat.tsec-current-product-cat
.wd-entities-title,
.category-grid-item.wd-cat.tsec-current-product-cat
.wd-entities-title a {
	color: #01529b;
	font-weight: 600;
}

/* Hover della categoria corrente */
.category-grid-item.wd-cat.tsec-current-product-cat:hover
> .wd-cat-inner {
	background-color: rgba(1, 82, 155, 0.07);
}


/* =========================================================
   TSEC — Sottocategorie tutte alte come la più grande
   ========================================================= */

/* Le slide del carosello vengono estese alla stessa altezza */
.wd-carousel:has(.category-grid-item.wd-cat)
.wd-carousel-wrap {
	align-items: stretch;
}

/* Ogni contenitore assume l’altezza disponibile */
.wd-carousel:has(.category-grid-item.wd-cat)
.wd-carousel-item {
	height: auto;
	display: flex;
}

/* La card occupa tutta l’altezza della slide */
.wd-carousel:has(.category-grid-item.wd-cat)
.wd-carousel-item
> .category-grid-item.wd-cat {
	width: 100%;
	height: 100%;
}

/* Anche il pulsante interno raggiunge la stessa altezza */
.wd-carousel:has(.category-grid-item.wd-cat)
.wd-cat-inner {
	height: 100%;
}



/* =========================================================
   TSEC — Titoli pagina uniformati
   Categorie prodotto, pagine normali e area Account
   ========================================================= */


/* ---------------------------------------------------------
   1. Spaziatura del blocco titolo
   --------------------------------------------------------- */

body.tax-product_cat .wd-page-title,
body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
.wd-page-title {
	padding-top: 20px;
	padding-bottom: 20px;
}


/* ---------------------------------------------------------
   2. Categorie prodotto
   WoodMart fornisce già la propria freccia
   --------------------------------------------------------- */

body.tax-product_cat
.wd-page-title
.wd-title-wrapp {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px;
	text-align: left !important;
}


/* ---------------------------------------------------------
   3. Pagine normali e area Account
   Forza freccia e titolo sulla stessa riga
   --------------------------------------------------------- */

body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
.wd-page-title > .container {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 14px;
	text-align: left !important;
}


/* ---------------------------------------------------------
   4. Rimuove il titolo duplicato nei breadcrumb
   --------------------------------------------------------- */

body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
.wd-page-title
.wd-breadcrumbs {
	display: none !important;
}


/* ---------------------------------------------------------
   5. Aspetto comune del titolo
   --------------------------------------------------------- */

body.tax-product_cat
.wd-page-title
.entry-title.title,

body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
.wd-page-title
.entry-title.title {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
	width: fit-content;
	margin: 0 !important;
	padding: 0 0 7px;
	color: #222;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left !important;
	text-transform: uppercase;
}


/* ---------------------------------------------------------
   6. Linea blu sotto il titolo
   --------------------------------------------------------- */

body.tax-product_cat
.wd-page-title
.entry-title.title::after,

body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
.wd-page-title
.entry-title.title::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background-color: #01529b;
}


/* ---------------------------------------------------------
   7. Freccia nativa delle categorie
   --------------------------------------------------------- */

body.tax-product_cat
.wd-page-title
.wd-back-btn {
	flex: 0 0 auto;
	margin: 0;
	opacity: 0.75;
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

body.tax-product_cat
.wd-page-title
.wd-back-btn:hover {
	color: #01529b;
	opacity: 1;
}


/* ---------------------------------------------------------
   8. Adattamento mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

	body.tax-product_cat .wd-page-title,
	body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
	.wd-page-title {
		padding-top: 16px;
		padding-bottom: 16px;
	}

	body.tax-product_cat
	.wd-page-title
	.wd-title-wrapp,

	body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
	.wd-page-title > .container {
		flex-direction: row !important;
		flex-wrap: nowrap;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 10px;
		text-align: left !important;
	}

	body.tax-product_cat
	.wd-page-title
	.entry-title.title,

	body.page:not(.woocommerce-cart):not(.woocommerce-checkout)
	.wd-page-title
	.entry-title.title {
		min-width: 0;
		font-size: 18px;
		line-height: 1.25;
		text-align: left !important;
	}
}



/* =========================================================
   TSEC — campi di ricerca dei filtri
   Variante A: sola linea inferiore
========================================================= */

.wd-filter-search input[type="text"] {
    height: 42px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #a8b9c7;
    border-radius: 0;
    padding-left: 0;
    color: #303b44;
    font-family: inherit;
    font-size: 16px;
    font-style: normal;
    box-shadow: none;
    transition: border-color .2s ease;
}

.wd-filter-search input[type="text"]::placeholder {
    color: #647583;
    font-size: 15px;
    font-style: normal;
    opacity: 1;
}

.wd-filter-search input[type="text"]:hover {
    border-bottom-color: #829eb5;
}

.wd-filter-search input[type="text"]:focus {
    background: transparent;
    border-bottom-color: #01529b;
    outline: 2px solid transparent;
    box-shadow: none;
}

/* TSEC — lente dei filtri più piccola e blu */
.wd-filter-search.wd-search::before {
    font-size: 16px;
    line-height: 16px;
    color: #01529b;
    top: 50%;
    transform: translateY(-50%);
}

/* Nasconde il placeholder originale prima della sostituzione */
.wd-filter-search input[type="text"]:not([placeholder="Cerca..."]):not([placeholder="Search..."])::placeholder {
    color: transparent;
}