/* MACFaaast Module: Shared Sidebars, Pagination, 1410px Global Alignment, Breadcrumbs & Spatial Rhythm */

/* --- MACFAAAST GLOBAL BRAND INK (#53627B - Zero Pure Black / Near-Black) --- */
html:root {
    --nooni-text-color: rgba(83, 98, 123, 1);
    --nooni-heading-color: rgba(83, 98, 123, 1);
    --nooni-blockquote-text-color: #53627b;
    --nooni-input-color: rgba(83, 98, 123, 1);
    --nooni-dropdown-color: rgba(83, 98, 123, 1);
    --nooni-breadcrumb-color: rgba(83, 98, 123, 1);
    --nooni-top-color: rgba(83, 98, 123, 1);
    --nooni-middle-color: rgba(83, 98, 123, 1);
    --nooni-product-price-color: rgba(83, 98, 123, 1);
    --nooni-star-color: rgba(83, 98, 123, 1);
    --nooni-button-thumbnail-color: rgba(83, 98, 123, 1);
    --nooni-button-thumbnail-loading-color: rgba(83, 98, 123, 0.5);
    --cmplz_header_text_color: #53627b;
    --cmplz_text_color: #53627b;
    --cmplz_button_deny_text_color: #53627b;
}

body,
h1, h2, h3, h4, h5, h6 {
    color: #53627b;
}

/* Override inline hardcoded black/dark-slate in sidebar HTML widgets & rich content (never touch colored buttons/badges) */
[style^="color: #000"],
[style^="color:#000"],
[style^="color: #0f172a"],
[style^="color:#0f172a"],
[style^="color: #1e293b"],
[style^="color:#1e293b"],
[style^="color: #1d1d1f"],
[style^="color:#1d1d1f"],
[style^="color: #334155"],
[style^="color:#334155"],
[style^="color: #475569"],
[style^="color:#475569"],
[style*="; color: #000"],
[style*=";color:#000"],
[style*="; color: #0f172a"],
[style*=";color:#0f172a"],
[style*="; color: #334155"],
[style*=";color:#334155"],
[style*="; color: #475569"],
[style*=";color:#475569"] {
    color: #53627b !important;
}

/* Protect white text & icons inside colored CTA buttons / highlight cards in sidebar custom HTML widgets */
.ts-sidebar .widget_custom_html [style*="background: #0369a1"],
.ts-sidebar .widget_custom_html [style*="background:#0369a1"],
.ts-sidebar .widget_custom_html [style*="background: #047857"],
.ts-sidebar .widget_custom_html [style*="background:#047857"],
.ts-sidebar .widget_custom_html [style*="background: #25D366"],
.ts-sidebar .widget_custom_html [style*="background:#25D366"],
.ts-sidebar .widget_custom_html [style*="color: #ffffff"],
.ts-sidebar .widget_custom_html [style*="color:#ffffff"],
.ts-sidebar .widget_custom_html [style*="color: #fff"],
.ts-sidebar .widget_custom_html [style*="color:#fff"] {
    color: #ffffff !important;
}

.ts-sidebar .widget_custom_html [style*="background: #0369a1"] *,
.ts-sidebar .widget_custom_html [style*="background:#0369a1"] *,
.ts-sidebar .widget_custom_html [style*="background: #047857"] *,
.ts-sidebar .widget_custom_html [style*="background:#047857"] *,
.ts-sidebar .widget_custom_html [style*="background: #25D366"] *,
.ts-sidebar .widget_custom_html [style*="background:#25D366"] * {
    color: #ffffff !important;
}

/* Fix parent theme load-more button contrast (prevent transparent bg with white text) */
.ts-shop-load-more a.button,
.load-more-wrapper a.button {
    background: #53627b !important;
    border: 1px solid #53627b !important;
    color: #ffffff !important;
    border-radius: 999px !important;
}

.ts-shop-load-more a.button:hover,
.load-more-wrapper a.button:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

/* --- UNIVERSAL SIDEBAR WIDGETS --- */

/* 1. Header del Widget (Blocco Titolo) */
.ts-sidebar .widget-container .widget-title-wrapper {
    margin-bottom: 0 !important;
    padding: 16px 20px !important;
    border-left: 4px solid #00ade6 !important;
    background: #f4f5f7 !important;
    border-radius: 8px 8px 0 0 !important;
    display: block !important;
    line-height: 1 !important;
}

.ts-sidebar .widget-container h3.widget-title.heading-title,
.ts-sidebar .widget-container h2.widget-title.heading-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
}

/* Correzione per evitare doppia stilizzazione (doppio bordo azzurro e sfondo grigio nidificato) se il titolo è dentro widget-title-wrapper */
.ts-sidebar .widget-container .widget-title-wrapper h3.widget-title,
.ts-sidebar .widget-container .widget-title-wrapper h2.widget-title,
.ts-sidebar .widget-container .widget-title-wrapper h3,
.ts-sidebar .widget-container .widget-title-wrapper h2 {
    border-left: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* 2. Area Contenuti (Sotto il Titolo) */
.ts-sidebar .widget-container .widget-title-wrapper+* {
    margin-top: 0 !important;
    background: #ffffff !important;
    padding: 15px 15px !important;
    border-radius: 0 0 8px 8px !important;
    border: 1px solid #f0f0f4 !important;
    border-top: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

/* --- UNIFIED PREMIUM SIDEBAR REDESIGN (All Widgets) --- */

/* 1. Target all common sidebar filter lists */
.ts-sidebar ul.product-categories,
.ts-sidebar ul.woocommerce-widget-layered-nav-list,
.ts-sidebar .widget_layered_nav_filters ul,
.ts-sidebar .product-filter-by-price ul,
.ts-sidebar .widget-container ul {
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* --- UNIFIED PREMIUM SIDEBAR REDESIGN (Premium Tree Edition) --- */

/* 1. Reset e Contenitore */
.ts-sidebar .widget-container {
    padding: 0 0 10px 0 !important;
}

.ts-sidebar .widget-container li {
    position: relative;
    padding: 0 !important;
    border-bottom: none !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

/* 2. Styling Link e Label (Spazio a sinistra per icone/linee) */
.ts-sidebar .widget-container li a,
.ts-sidebar .widget-container li label {
    display: flex !important;
    align-items: center;
    padding: 10px 14px 10px 32px !important;
    border-radius: 10px !important;
    /* Più arrotondato come in foto */
    margin: 3px 0 !important;
    transition: all 0.25s ease !important;
    color: #53627b !important;
    /* Grigio elegante */
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    flex: 1;
    min-height: 42px;
}

/* 3. Indicatori di Espansione (Spostati a Sinistra) */
.ts-sidebar .widget-container li .icon-toggle {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    top: 13px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem !important;
    color: #a0a0a0 !important;
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 4. Connettori Visivi ad Albero (L-Shape) con Geometria Precisa (No Accavallamenti) */
.ts-sidebar .widget-container ul.children,
.ts-sidebar .widget-container ul.sub-menu {
    position: relative;
    padding-left: 20px !important;
    /* Sosta gerarchica, ma non sballa i number badges */
    margin-left: 0 !important;
    border-left: none !important;
    margin-bottom: 5px !important;
    flex: 0 0 100%;
    box-sizing: border-box !important;
}

/* Disegna la linea verticale ad albero (Centro perfetto del parent) */
.ts-sidebar .widget-container ul.children::before,
.ts-sidebar .widget-container ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    /* Sale a toccare l'icona chevron del genitore */
    bottom: 21px;
    /* Scende solo fino a metà dell'ultimo figlio */
    left: 17px;
    /* Centro assoluto rispetto all'icona del parent a left:8px (8+9) */
    border-left: 1px solid #e0e0e0;
}

/* Linea orizzontale a L per ogni figlio (Si ferma PRIMA dell'icona chevron del figlio!) */
.ts-sidebar .widget-container ul.children li:before,
.ts-sidebar .widget-container ul.sub-menu li:before {
    content: '';
    position: absolute;
    top: 24px;
    /* Metà y di un link min-height 42px */
    left: -3px;
    /* Origine x:20-3=17, esatto sopra la via verticale */
    width: 10px;
    /* Fine x:17+10=27, non toccherà i chevron start x:20+8=28 */
    height: 1px;
    background: #e0e0e0;
}

/* Testo dei figli torna standard, il padding UL spinge il blocco */
.ts-sidebar .widget-container ul.children li a,
.ts-sidebar .widget-container ul.sub-menu li a {
    padding-left: 15px !important;
}

/* 5. Badge Conteggio (Sempre a destra, stile Pillola) */
.ts-sidebar .widget-container span.count {
    font-size: 0.75rem !important;
    background: #f4f5f7;
    color: #666 !important;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700 !important;
    min-width: 30px;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid transparent;
    margin-left: auto;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* 6. Stati Attivi e Branch Highlight */
.ts-sidebar .widget-container li.current>a,
.ts-sidebar .widget-container li.current-cat>a,
.ts-sidebar .widget-container li.chosen>a,
.ts-sidebar .widget-container li.chosen label {
    background: #eef6fc !important;
    /* Sfondo pillola active Cyan */
    color: #006b99 !important;
    /* Testo Cyan con contrasto WCAG AA */
    font-weight: 800 !important;
    border-radius: 10px !important;
}

.ts-sidebar .widget-container li.current span.count,
.ts-sidebar .widget-container li.current>a span.count,
.ts-sidebar .widget-container li.chosen span.count,
.ts-sidebar .widget-container li.chosen>a span.count,
.ts-sidebar .widget-container li.current-cat span.count,
.ts-sidebar .widget-container li.current-cat>a span.count {
    background: #0072a3 !important;
    color: #ffffff !important;
}

/* Evidenzia il ramo attivo (Padre della categoria corrente) */
.ts-sidebar .widget-container li.current-cat-parent>a,
.ts-sidebar .widget-container li.active>a {
    background: #f8f9fb !important;
    /* Soffice sfondo genitore attivo */
    color: #006b99 !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
}

/* 7. Hover Effect */
.ts-sidebar .widget-container li a:hover,
.ts-sidebar .widget-container li label:hover {
    background: #f8f9fb !important;
    color: #00ade6 !important;
}

/* Evita che il testo si sposti a sinistra (glitch visivo) durante l'hover nei sottomenu */
.ts-sidebar .widget-container ul.children li a:hover,
.ts-sidebar .widget-container ul.sub-menu li a:hover {
    padding-left: 15px !important;
    /* Mantiene lo stesso padding dello stato normale */
}

/* Rimuovi completamente l'icona espandi (chevron) se la categoria non ha figli (ultimo livello) */
.ts-sidebar .widget-container li.cat-item:not(.cat-parent)>.icon-toggle {
    display: none !important;
}

/* 8. Pulizia Checkbox legacy */
.ts-sidebar .widget-container li a:before,
.ts-sidebar .widget-container li label:before {
    display: none !important;
}

/* 7. Ensure consistency with other widgets in the sidebar */
.ts-sidebar .widget-container .widget-title-wrapper+* {
    padding: 10px !important;
    /* Slight padding refinement */
}

/* ==========================================================================
   WIDGET FILTRA PER PREZZO (PREMIUM APPLE-STYLE REDESIGN)
   ========================================================================== */

/* 1. Contenitore principale e Reset delle impostazioni originarie */
.ts-sidebar .widget_price_filter form {
    padding-top: 15px !important;
    background: #ffffff !important;
}

.price_slider_wrapper {
    margin-top: 10px !important;
    padding: 5px 10px 10px 10px !important;
}

/* Rimuoviamo gli pseudo-elementi obsoleti del tema (bordi a L) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content:before,
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content:after {
    display: none !important;
    content: none !important;
}

/* 2. Barra Traccia del Prezzo (Slider Track) */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: #e5e5ea !important;
    /* Grigio iOS leggero ed elegante */
    height: 6px !important;
    border-radius: 10px !important;
    border: none !important;
    margin: 15px 8px 30px 8px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

/* Barra di Selezione Attiva (Active Range) */
.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range {
    height: 6px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range:before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: #00ade6 !important;
    /* Azzurro MacFaaast Premium */
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0, 173, 230, 0.2) !important;
}

/* 3. Maniglie del Tracciatore (Slider Knobs / Handles) */
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: #ffffff !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 1px 1px rgba(0, 0, 0, 0.08) !important;
    cursor: grab !important;
    top: -7px !important;
    margin-left: -10px !important;
    /* Allineamento esatto del centro */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease !important;
    z-index: 5 !important;
    outline: none !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:hover,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:focus {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
    transform: scale(1.1) !important;
    background: #f8f9fb !important;
}

/* 4. Barra dei valori e Pulsante di Invio (Amount & Submit Button) */
.woocommerce .widget_price_filter .price_slider_amount {
    display: flex !important;
    flex-direction: column !important;
    /* Incolonnamento verticale */
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

/* Etichetta del Prezzo Corrente */
.woocommerce .widget_price_filter .price_slider_amount .price_label {
    width: 100% !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #53627b !important;
    /* Grigio ardesia WCAG AA */
    order: -1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    /* Forza i prezzi su una singola riga senza andare a capo */
    display: block !important;
}

/* Evidenziazione cifre numeriche */
.woocommerce .widget_price_filter .price_slider_amount .price_label .from,
.woocommerce .widget_price_filter .price_slider_amount .price_label .to {
    color: #53627b !important;
    /* Slate Blue per coerenza cromatica */
    font-weight: 700 !important;
}

/* Pulsante "Filtra" */
.woocommerce .widget_price_filter .price_slider_amount .button {
    background: #53627b !important;
    /* Colore primario Slate Blue */
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 10px 24px !important;
    /* Dimensioni leggermente aumentate per maggiore comodità */
    border-radius: 30px !important;
    /* Elegante pill-shape Apple */
    border: none !important;
    box-shadow: 0 3px 8px rgba(83, 98, 123, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: unset !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    width: 100% !important;
    /* Bottone a tutta larghezza posizionato sotto */
    text-align: center !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background: #00ade6 !important;
    /* Passaggio al ciano della palette */
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:active {
    transform: translateY(-0.5px) !important;
    box-shadow: 0 2px 6px rgba(0, 173, 230, 0.25) !important;
}

/* ==========================================================================
   FILTRI ATTIVI (PREMIUM REDESIGN)
   ========================================================================== */

.ts-active-filters:not(:empty) {
    margin-bottom: 35px !important;
}

.ts-active-filters>.widget_layered_nav_filters {
    background: #f8f9fb !important;
    /* Sfondo card grigio chiarissimo e soffice */
    border: 1px solid #e2e2e7 !important;
    /* Elegante bordo Apple sottile */
    border-radius: 12px !important;
    padding: 14px 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Titolo "FILTRI ATTIVI:" */
.ts-active-filters .widget_layered_nav_filters .widgettitle,
.ts-active-filters .widget_layered_nav_filters h3 {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    /* Slate Blue */
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.ts-active-filters .widget_layered_nav_filters ul {
    float: none !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-active-filters .widget_layered_nav_filters ul li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

/* Targhette dei filtri attivi (Sleek Apple-style Filter Pills) */
.ts-active-filters .widget_layered_nav_filters ul li a {
    line-height: 1.4 !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eef6fc !important;
    /* Sfondo ciano chiarissimo per morbidezza visiva */
    color: #00ade6 !important;
    /* Azzurro Ciano Primario */
    border: 1px solid rgba(0, 173, 230, 0.25) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

/* Effetto Hover sulle targhette (diventano a sfondo pieno azzurro con testo bianco) */
.ts-active-filters .widget_layered_nav_filters ul li a:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    border-color: #00ade6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 173, 230, 0.2) !important;
}

.ts-active-filters .widget_layered_nav_filters ul li a:active {
    transform: translateY(0) !important;
}

/* Distanza tra un widget e l'altro */
.ts-sidebar .widget-container {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

/* Highlight parent categories in blue but regular weight */
.ts-sidebar .product-categories li.active>a {
    color: #006b99 !important;
    font-weight: 400 !important;
}

/* Highlight ONLY the current category in blue and BOLD */
.ts-sidebar .product-categories li.current>a {
    color: #006b99 !important;
    font-weight: 700 !important;
}

/* Shared Pagination System (migrated from blog.css) */
/* ==========================================================================
   MACFAAAST PREMIUM BLOG DESIGN SYSTEM - SEPARATE STYLESHEET (blog.css)
   ========================================================================== */

/* --- 1. PAGINAZIONE MODERNA (PAGINATION) --- */
.ts-pagination {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 50px 0 20px 0 !important;
    clear: both !important;
}

.ts-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ts-pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ts-pagination ul.page-numbers li .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    width: auto !important;
    /* Permette alla capsula di espandersi per il testo del Next/Prev */
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 50px !important;
    /* Totalmente stondato / Cerchio */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid #e2e2e7 !important;
    background: #f5f5f7 !important;
    color: #53627B !important;
    /* Coerente Slate Blue */
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Hover state per i numeri cliccabili */
.ts-pagination ul.page-numbers li a.page-numbers:hover {
    background: #00ade6 !important;
    /* Azzurro Cyan brand */
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

/* Pagina corrente attiva */
.ts-pagination ul.page-numbers li .page-numbers.current {
    background: #006b99 !important;
    border-color: #006b99 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 107, 153, 0.3) !important;
    cursor: default !important;
}

/* I puntini di sospensione (dots) */
.ts-pagination ul.page-numbers li .dots {
    border: none !important;
    background: transparent !important;
    color: #53627b !important;
    cursor: default !important;
}

.ts-pagination ul.page-numbers li a.first,
.ts-pagination ul.page-numbers li a.last {
    color: #53627B !important;
}

/* Frecce Avanti/Indietro (Next / Prev) */
.ts-pagination ul.page-numbers li a.next,
.ts-pagination ul.page-numbers li a.prev {
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 22px !important;
    /* Più spazio per la capsula del Next/Prev */
    background: #53627B !important;
    /* Sfondo scuro elegante */
    border-color: #53627B !important;
    color: #ffffff !important;
}

.ts-pagination ul.page-numbers li a.next:hover,
.ts-pagination ul.page-numbers li a.prev:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

/* Nasconde completamente l'icona freccia nativa (::before) per lasciare spazio solo al testo pulito */
.ts-pagination ul.page-numbers li a.next::before,
.ts-pagination ul.page-numbers li a.prev::before {
    display: none !important;
    content: "" !important;
}

/* --- 1B. OTTIMIZZAZIONE RESPONSIVE PER LA PAGINAZIONE --- */
@media only screen and (max-width: 768px) {
    .ts-pagination {
        margin: 40px 0 15px 0 !important;
    }
    .ts-pagination ul.page-numbers {
        gap: 8px !important;
    }
    .ts-pagination ul.page-numbers li .page-numbers {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
    .ts-pagination ul.page-numbers li a.next,
    .ts-pagination ul.page-numbers li a.prev {
        padding: 0 16px !important;
        font-size: 10px !important;
    }
}

@media only screen and (max-width: 480px) {
    .ts-pagination {
        margin: 30px 0 10px 0 !important;
    }
    .ts-pagination ul.page-numbers {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    /* Nasconde tutti i numeri, i puntini, prima e ultima pagina */
    .ts-pagination ul.page-numbers li {
        display: none !important;
    }
    /* Mostra SOLO i pulsanti avanti (next) e indietro (prev) */
    .ts-pagination ul.page-numbers li:has(.next),
    .ts-pagination ul.page-numbers li:has(.prev) {
        display: block !important;
    }
    /* Design premium a capsula larga per avanti/indietro su mobile */
    .ts-pagination ul.page-numbers li a.next,
    .ts-pagination ul.page-numbers li a.prev {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 130px !important;
        height: 42px !important;
        padding: 0 18px !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        letter-spacing: 0.5px !important;
        border-radius: 50px !important;
        background: #53627B !important;
        border-color: #53627B !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(83, 98, 123, 0.15) !important;
    }
    /* Stato Hover per il tocco su smartphone */
    .ts-pagination ul.page-numbers li a.next:hover,
    .ts-pagination ul.page-numbers li a.prev:hover {
        background: #00ade6 !important;
        border-color: #00ade6 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
    }
}

/* Mobile Content/Sidebar Reorder (non-Home pages) */
@media only screen and (max-width: 767px) {
    /* Margine laterale di 15px su mobile per tutte le altre pagine (shop, categorie, blog, etc.) */
    body:not(.home) .page-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. RIPOSIZIONAMENTO DEI WIDGET (SIDEBAR) DOPO I POST SU MOBILE */
    .page-container {
        display: flex !important;
        flex-direction: column !important;
    }

    #main-content {
        order: 1 !important;
    }

    #left-sidebar {
        order: 2 !important;
        margin-top: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #right-sidebar {
        order: 3 !important;
        margin-top: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================================================
   WIDGET CERCA NEL CATALOGO (APPLE DESIGN SYSTEM)
   ========================================================================== */

/* Aumenta il margine esterno sopra e sotto del widget di ricerca */
.ts-sidebar .widget_product_search,
.ts-sidebar .widget_search,
.ts-sidebar .aws-container {
    margin-top: 30px !important;
    margin-bottom: 45px !important;
    overflow: visible !important;
}

/* Spazio bianco interno all'interno della scheda di ricerca */
.ts-sidebar .widget_product_search .widget-title-wrapper+*,
.ts-sidebar .widget_search .widget-title-wrapper+* {
    padding: 16px 18px 22px !important;
}

.mf-sidebar-search-form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.mf-sidebar-search-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding: 0 48px 0 16px !important;
    box-sizing: border-box !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mf-sidebar-search-wrap:hover {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.mf-sidebar-search-wrap:focus-within {
    background: #ffffff !important;
    border-color: #00ade6 !important;
    box-shadow: 0 0 0 3.5px rgba(0, 173, 230, 0.15), 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

.mf-sidebar-search-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    transition: color 0.2s ease !important;
    pointer-events: none !important;
}

.mf-sidebar-search-wrap:focus-within .mf-sidebar-search-icon {
    color: #00ade6 !important;
}

.mf-sidebar-search-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #53627b !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
    font-family: inherit !important;
}

.mf-sidebar-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 13.5px !important;
}

.mf-sidebar-search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: #00ade6 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 3px 9px rgba(0, 173, 230, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
}

.mf-sidebar-search-btn:hover {
    background: #0096c7 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 5px 14px rgba(0, 173, 230, 0.45) !important;
}

.mf-sidebar-search-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    display: block !important;
}

/* Protezione e isolamento da residui spotlight */
.ts-sidebar .widget_search .mf-spotlight-esc-hint,
.ts-sidebar .widget_search .mf-spotlight-clear-btn,
.ts-sidebar .widget_search .mf-spotlight-mobile-cancel,
.ts-sidebar .widget_search .mf-spotlight-submit-wrap {
    display: none !important;
}

/* ==========================================================================
   9. FIX FOR SIDEBAR SEARCH WIDGETS: PREMIUM CIRCULAR AZURE BUTTON
   ========================================================================== */

/* Space on the right of the search box for the absolute button */
.widget_search .search-table,
.widget_product_search .search-table,
.widget_product_search .woocommerce-product-search,
.ts-sidebar .search-table {
    position: relative !important;
    padding-right: 50px !important;
}

/* Restore circular azure background and shadow */
.widget_search .search-table .search-button,
.widget_product_search .search-table .search-button,
.ts-sidebar .search-table .search-button,
.widget_product_search .woocommerce-product-search button[type="submit"] {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #00ade6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0, 173, 230, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5 !important;
    cursor: pointer !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Incoroprate the magnifying glass icon inside the circular button */
.widget_search .search-table .search-button::before,
.widget_product_search .search-table .search-button::before,
.ts-sidebar .search-table .search-button::before,
.widget_product_search .woocommerce-product-search button[type="submit"]::before {
    display: block !important;
    content: "\e9a7" !important;
    font-family: 'tb-icon' !important;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    font-style: normal !important;
    speak: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide any standard/theme secondary text or icons */
.widget_search .search-table .search-button::after,
.widget_product_search .search-table .search-button::after,
.ts-sidebar .search-table .search-button::after {
    display: none !important;
    content: none !important;
}

/* Hover dynamic micro-interaction */
.widget_search .search-table .search-button:hover,
.widget_product_search .search-table .search-button:hover,
.ts-sidebar .search-table .search-button:hover,
.widget_product_search .woocommerce-product-search button[type="submit"]:hover {
    background: #0096c7 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.4) !important;
}

/* Perfect overlap of the native submit input, keeping it functional but fully invisible */
.widget_search .search-table .search-button input[type="submit"],
.widget_product_search .search-table .search-button input[type="submit"],
.ts-sidebar .search-table .search-button input[type="submit"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 6 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    border-radius: 50% !important;
}

/* Adjust search text input right padding to avoid overlap with the circular button */
.widget_search .search-table .search-field input[type="text"],
.widget_product_search .search-table .search-field input[type="text"],
.ts-sidebar .search-table .search-field input[type="text"] {
    padding-right: 25px !important;
}

/* Mobile specific styling overrides to keep it perfectly centered on smaller viewports */
@media only screen and (max-width: 767px) {

    .widget_search .search-table,
    .widget_product_search .search-table,
    .ts-sidebar .search-table {
        padding-right: 44px !important;
    }

    .widget_search .search-table .search-button,
    .widget_product_search .search-table .search-button,
    .ts-sidebar .search-table .search-button {
        width: 34px !important;
        height: 34px !important;
        right: 4px !important;
    }

    .widget_search .search-table .search-button::before,
    .widget_product_search .search-table .search-button::before,
    .ts-sidebar .search-table .search-button::before {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   10. PREMIUM STYLING FOR "PRIMA" & "ULTIMA" PAGINATION BUTTONS
   ========================================================================== */
.ts-pagination ul.page-numbers li a.first,
.ts-pagination ul.page-numbers li a.last {
    width: auto !important;
    min-width: 80px !important;
    padding: 0 16px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 11px !important;
    background: rgba(0, 173, 230, 0.05) !important;
    border: 1px solid rgba(0, 173, 230, 0.15) !important;
    color: #00ade6 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ts-pagination ul.page-numbers li a.first:hover,
.ts-pagination ul.page-numbers li a.last:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.25) !important;
}

.ts-pagination ul.page-numbers li a.first:active,
.ts-pagination ul.page-numbers li a.last:active {
    transform: translateY(0px) !important;
}

/* Adjust layout on small viewports so buttons don't wrap tightly */
@media only screen and (max-width: 480px) {

    .ts-pagination ul.page-numbers li a.first,
    .ts-pagination ul.page-numbers li a.last {
        min-width: 50px !important;
        padding: 0 8px !important;
        font-size: 9.5px !important;
    }
}

/* ==========================================================================
   SISTEMA GLOBALE COERENTE SITO, SHOP, CATEGORIE, PRODOTTO, BLOG & PAGINE
   Desktop (>=1025px): max-width 1410px (padding 50px su laptop = stesso gutter Header)
   Tablet (768px..1024px): padding 24px | Mobile (<=767px): padding 10px & gap identici
   ========================================================================== */
@media (min-width: 1025px) {
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    body:not(.home):not(.elementor-page) .page-container,
    body.page-template-blog-template .page-container,
    body.woocommerce-cart .page-container,
    body.woocommerce-checkout .page-container,
    body.woocommerce-account .page-container,
    body.page-id-6363 .page-container,
    body.page-slug-wishlist-2 .page-container,
    body.woocommerce-shop .page-container,
    body.tax-product_cat .page-container,
    body.single-product .page-container,
    body.single-post .page-container,
    body.blog .page-container,
    body.archive .page-container,
    body.search .page-container {
        width: 100% !important;
        max-width: 1510px !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Pagine Elementor del sito (/chi-siamo/, /garanzia/, /contatti/, etc.): 1410px o 50px laptop */
    

    

    /* Blog & Categorie Prodotti Desktop: elimina asimmetrie lateral-sidebar e -15px overhang */
    body.woocommerce .apple-card-main-archive .products,
    body.woocommerce.main-products .products,
    .list-posts.item-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .related-products-original {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.archive #left-sidebar,
    body.blog #left-sidebar,
    body.single-post #left-sidebar,
    body.category #left-sidebar {
        padding-left: 0 !important;
        padding-right: 30px !important;
    }

    body.archive.has-1-sidebar #main-content,
    body.blog.has-1-sidebar #main-content,
    body.single-post.has-1-sidebar #main-content,
    body.category.has-1-sidebar #main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Spaziatura verticale coerente Shop & Categorie Desktop (24px) */
    body.woocommerce-shop .breadcrumb-title-wrapper,
    body.tax-product_cat .breadcrumb-title-wrapper {
        margin-bottom: 0 !important;
    }

    body.woocommerce-shop .breadcrumb-title-wrapper .breadcrumb-title,
    body.tax-product_cat .breadcrumb-title-wrapper .breadcrumb-title {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .mf-cathero-wrap,
    .mf-category-hero,
    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar {
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }

    .apple-card-main-archive .products {
        row-gap: 24px !important;
    }

    /* Footer Bar allineata a 1410px */
    
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ts-header .container,
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    body:not(.home):not(.elementor-page) .page-container,
    body.page-template-blog-template .page-container,
    body.woocommerce-cart .page-container,
    body.woocommerce-checkout .page-container,
    body.woocommerce-account .page-container,
    body.page-id-6363 .page-container,
    body.page-slug-wishlist-2 .page-container,
    body.woocommerce-shop .page-container,
    body.tax-product_cat .page-container,
    body.single-product .page-container,
    body.single-post .page-container,
    body.blog .page-container,
    body.archive .page-container,
    body.search .page-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    

    

    body.woocommerce .apple-card-main-archive .products,
    body.woocommerce.main-products .products,
    .list-posts.item-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    
}

@media (max-width: 767px) {
    /* 1. Margini laterali IDENTICI a 10px su TUTTE le pagine (Shop, Categorie, Prodotto, Blog, Pagine Elementor, Cart, Checkout, Account, Wishlist) */
    body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.blog .breadcrumb-title-wrapper .breadcrumb-content,
    body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
    body.single-post .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .breadcrumb-content,
    .breadcrumb-title-wrapper .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body:not(.home) #content.page-container,
    body:not(.home) .page-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Elimina ogni doppio/triplo padding orizzontale dentro #main-content su mobile (non azzera #content perché coincide con .page-container) */
    body:not(.home) #main-content,
body:not(.home) #primary,
body.blog #main-content,
body.single-post #main-content,
body.category #main-content,
body.archive #main-content,
body.single-post article.single-post,
.list-posts,
.list-posts.item-grid,
body .related-products-original,
body:not(.woocommerce-page) #left-sidebar,
body:not(.woocommerce-page) #right-sidebar,
body:not(.woocommerce-page) .ts-sidebar {
        --padding-left: 0px !important;
        --padding-right: 0px !important;
        --container-default-padding-left: 0px !important;
        --container-default-padding-right: 0px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Category & Shop Toolbar + Products: allineati esattamente a 10px (annulla -10px toolbar e -5px grid del tema parent) */
    .woocommerce .before-loop-wrapper,
    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar,
    .woocommerce .products,
    .apple-card-main-archive .products {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Distanze verticali IDENTICHE a 16px su Categorie, Shop e Breadcrumb mobile */
    body.tax-product_cat .breadcrumb-title-wrapper,
    body.woocommerce-shop .breadcrumb-title-wrapper,
    body.blog .breadcrumb-title-wrapper,
    body.single-post .breadcrumb-title-wrapper,
    body.archive .breadcrumb-title-wrapper,
    body.single-product .breadcrumb-title-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.tax-product_cat .breadcrumb-title-wrapper .breadcrumb-title,
    body.woocommerce-shop .breadcrumb-title-wrapper .breadcrumb-title,
    body.single-product .breadcrumb-title-wrapper .breadcrumb-title {
        padding: 14px 0 16px 0 !important;
        margin: 0 !important;
    }

    body.tax-product_cat .term-description,
    .term-description {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .woocommerce .before-loop-wrapper.mf-category-toolbar,
    .before-loop-wrapper.mf-category-toolbar {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .apple-card-main-archive .products {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        row-gap: 16px !important;
    }

    .apple-card-main-archive:not(.list).columns-3 .products .product,
    .apple-card-main-archive .products .product {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Blog & Pagine Elementor (es. Chi Siamo): niente buchi verticali eccessivi da 80px */
    

    body.blog article.post-item,
    body.archive.category article.post-item,
    body.tag article.post-item {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    body.blog .page-container,
    body.single-post .page-container,
    body.archive .page-container {
        padding-top: 0 !important;
    }

    body:not(.home):not(.page-slug-contatti) .page-container {
        padding-bottom: 32px !important;
    }

    
}

/* ==========================================================================
   BREADCRUMBS RESTYLE 2026 — APPLE-CLEAN PILL PATHWAY
   ========================================================================== */
body .breadcrumb-title-wrapper.breadcrumb-v2:not(.no-title) .breadcrumbs {
    margin-top: 12px !important;
}

body .breadcrumb-title-wrapper .breadcrumbs {
    line-height: 1 !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
    display: inline-block !important;
    max-width: 100% !important;
    padding: 5px 16px 5px 7px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #53627b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    color: #53627b !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:first-child::before {
    content: "" !important;
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    background-color: currentColor !important;
    opacity: 0.78 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:hover {
    background: #ffffff !important;
    color: #0284c7 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07) !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:hover::before {
    opacity: 1 !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow,
body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span:not(.current) {
    font-size: 0 !important;
    color: transparent !important;
    width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow::before,
body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span:not(.current)::before {
    content: "" !important;
    width: 11px !important;
    height: 11px !important;
    background-color: #94a3b8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    color: #53627b !important;
    background: transparent !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    word-break: normal !important;
    white-space: nowrap !important;
}

body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current::before {
    content: none !important;
    display: none !important;
}

body.single-product .breadcrumb-title-wrapper.no-title .breadcrumb-title {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
}

/* ==========================================================================
   SPATIAL RHYTHM UNIFICATION — IDENTICAL HEADER-TO-TITLE SPACING ACROSS
   ALL SECTIONS (REFERENCE: PRODUCT CATEGORIES & SHOP / SINGLE PRODUCT)
   Desktop/Tablet (>= 768px): 24px .breadcrumb-title + 10px H1 = 34px total
   Mobile (<= 767px): 14px .breadcrumb-title + 10px H1 = 24px total
   .no-title pages (Single Product, Chi Siamo, Single Post, Account, Wishlist):
   16px top / 14px bottom around breadcrumbs pill
   ========================================================================== */
body:not(.home) .breadcrumb-title-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:not(.home) .breadcrumb-title-wrapper .breadcrumb-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    body:not(.home) .breadcrumb-title-wrapper:not(.no-title) .breadcrumb-title {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

body:not(.home) .breadcrumb-title-wrapper.no-title .breadcrumb-title {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    body:not(.home) .breadcrumb-title-wrapper:not(.no-title) .breadcrumb-title {
        padding-top: 14px !important;
        padding-bottom: 16px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body .breadcrumb-title-wrapper.breadcrumb-v2:not(.no-title) .breadcrumbs {
        margin-top: 10px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs {
        display: block !important;
        width: 100% !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
        display: inline-block !important;
        max-width: 100% !important;
        padding: 4px 12px 4px 6px !important;
        font-size: 11.8px !important;
        line-height: 1.35 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        text-overflow: clip !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container::-webkit-scrollbar {
        display: none !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a {
        padding: 2px 7px !important;
        font-size: 11.8px !important;
        gap: 4px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container a:first-child::before {
        width: 12px !important;
        height: 12px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow {
        width: 11px !important;
        height: 11px !important;
        margin: 0 1px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.brn_arrow::before {
        width: 10px !important;
        height: 10px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container > span.current {
        margin-left: 2px !important;
    }
}

/* MOVED FROM mf-catalog-ux.css (Trust cards & mobile breadcrumb wrap) */
/* Audit Fix 8: elimina #000000 ereditato sulle Trust Cards (Home / Shop) senza sovrascrivere .brand-icon-wrap / svg */
.mf-trust-bar .trust-card,
.macfaaast-trust-grid .trust-card,
.trust-card,
.trust-card .trust-title,
.trust-card .trust-score-val,
.trust-card .trust-sub-row,
.trust-card h3,
.trust-card h4 {
    color: #53627b !important;
}

.trust-card p,
.trust-card .trust-desc,
.trust-card .trust-sub {
    color: #53627b !important;
}

/* Audit Fix 7a: wrapping pulito delle breadcrumb su mobile senza tagli a meta' lettera */
@media (max-width: 767px) {
    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        row-gap: 4px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: initial !important;
        max-width: 100% !important;
        padding: 6px 12px !important;
    }

    body .breadcrumb-title-wrapper .breadcrumbs .breadcrumbs-container>span.current {
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }
}

/* MIGRATED FROM style.css (Global base resets, Select2 overflow guard, 1410px container) */
.woocommerce .product-category .product-wrapper>a {
    border-radius: 0%;
}

/* SHOP BY CATEGORY - RIQUADRO SENZA IL BORDO GRIGIO */

*,
*:before,
*:after,
img,
input[type^="checkbox"],
.wp-block-table td,
.wp-block-table th,
.select2-container-open .select2-dropdown,
body .select2-container-open .select2-dropdown--nooni-above,
body .select2-container-open .select2-dropdown--nooni-below,
.woocommerce div.product form.cart table.group_table td,
.wishlist_table.images_grid li .item-details table.item-details-table td,
.wishlist_table.mobile li .item-details table.item-details-table td,
.wishlist_table.modern_grid li .item-details table.item-details-table td,
.wishlist_table.mobile li table.additional-info td {
    border-color: rgb(255, 255, 255);
}

/* CSS PER PARTITA IVA / CF / PEC / SDI */
.woocommerce-checkout .required {
    display: none;
}

.woocommerce-checkout .optional {
    display: none;
}

/* CART: PER RISOLVERE PROBLEMA VISUALIZZAZIONE COUPON CHE TROPPO LUNGO 
.woocommerce #content table.cart td.actions .coupon, .woocommerce table.cart td.actions .coupon, .woocommerce-page #content table.cart td.actions .coupon, .woocommerce-page table.cart td.actions .coupon {
    width: 400px;
}
*/

/* WIDGET LATO SINISTRO CATALOGO PRODOTTI */

.image.wp-image-6957.attachment-medium.size-medium {
    width: 100%;
}

.image.wp-image-6958.attachment-medium.size-medium {
    width: 100%;
}

.image.wp-image-6959.attachment-medium.size-medium {
    width: 100%;
}

/* togliere margine sopra e sotto a pulsante aggiungi al carrello che taglia immagine sopra */
@media only screen and (max-width: 480px) {
    .thumbnail-wrapper .product-group-button>div.loop-add-to-cart>a {
        /*	        padding-left: 12px;
        padding-right: 12px;
	*/
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

/* rientro del testo scheda prodotto details e informazione aggiuntive */
@media only screen and (max-width: 767px) {

    div.product.tabs-accordion .woocommerce-Tabs-panel>h2~*,
    div.product.tabs-accordion .woocommerce-Tabs-panel #reviews>h2~* {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* in mobile nel checkout c'e una riga sotto il testo dove cliccare per inserire il codice coupon, togliamo */
@media only screen and (max-width: 767px) {

    .lost_password a:before,
.lost_password a:after,
.woocommerce-MyAccount-content .woocommerce-pagination .button:before,
.woocommerce-MyAccount-content .woocommerce-pagination .button:after,
.woocommerce-error a:not(.button):before,
.woocommerce-info a:not(.button):before,
.woocommerce-message a:not(.button):before,
.woocommerce-error a:not(.button):after,
.woocommerce-info a:not(.button):after,
.woocommerce-message a:not(.button):after,
body .wc-block-components-notice-banner__content a:not(.button):before,
body .wc-block-components-notice-banner__content a:not(.button):after,
.view-all-wrapper>a:before,
.view-all-wrapper>a:after,
.button-readmore:before,
.button-readmore:after,
.button.button-text:before,
.button.button-text:after,
.woocommerce .button.button-text:before,
.woocommerce .button.button-text:after,
.header-store-notice a:after,
.header-store-notice a:before {
        border-bottom-style: none;
        border-bottom-width: 0px;
    }

    /* Nascondi avviso telefonico e header-top su mobile */
    .ts-header .header-top,
    .header-top,
    .header-store-notice {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

}

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

    .woocommerce-error a:not(.button),
    .woocommerce-info a:not(.button),
    .woocommerce-message a:not(.button),
    .woocommerce .woocommerce-error a:not(.button),
    .woocommerce .woocommerce-info a:not(.button),
    .woocommerce .woocommerce-message a:not(.button) {
        border-bottom-style: none;
        border-bottom-width: 0px;
    }

}

/* RECAPTCHA V3 SULLA SINISTRA */

.grecaptcha-badge {
    width: 70px !important;
    height: 60px;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
    position: fixed;
    display: none !important;
    bottom: 14px;
    box-shadow: gray 0px 0px 0px;

}

.grecaptcha-badge:hover {
    width: 256px !important;
}

/* ==========================================================================
   🛡️ PROTEZIONE SELECT2 & ZERO OVERFLOW ORIZZONTALE
   Impedisce tassativamente a qualsiasi select Select2 nascosto o elemento
   assoluto/traslato di allargare la pagina e causare scorrimento orizzontale anomalo.
   ========================================================================== */
select.select2-hidden-accessible,
.woocommerce select.select2-hidden-accessible,
.woocommerce-address-fields select.select2-hidden-accessible,
.woocommerce-address-fields__field-wrapper select.select2-hidden-accessible,
.woocommerce-EditAccountForm select.select2-hidden-accessible,
.woocommerce-checkout select.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    max-width: 1px !important;
    white-space: nowrap !important;
}

.woocommerce-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

#to-top:not(.on) {
    visibility: hidden !important;
}

.ts-floating-sidebar:not(.active) {
    visibility: hidden !important;
    pointer-events: none !important;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.woocommerce-account,
.woocommerce-MyAccount-content,
.woocommerce-address-fields {
    max-width: 100% !important;
    overflow-x: clip !important;
}

@media (min-width: 1501px) {

    body.woocommerce .page-container,
    body.woocommerce-page .page-container,
    body.tax-product_cat .page-container,
    body.tax-product_tag .page-container,
    body.post-type-archive-product .page-container,
    body.single-product .page-container,
    body.search .page-container {
        width: 100% !important;
        max-width: 1410px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================================================
   UNIFORM DESKTOP POINTER CURSOR ON ALL CLICKABLE CONTROLS
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    a[href],
    button:not(:disabled),
    input[type="submit"]:not(:disabled),
    input[type="button"]:not(:disabled),
    [role="button"]:not([aria-disabled="true"]),
    summary,
    label[for],
    .trust-card-link,
    .mf-cat-card,
    .mf-as-tab,
    .mf-as-dot,
    .mf-as-arrow,
    .mf-hero-dot,
    .mf-hero-nav,
    .mf-bs-arrow,
    .mf-faq-chip-btn,
    .mf-faq-trigger,
    .woocommerce-tabs ul.tabs li,
    .woocommerce-tabs ul.tabs li a,
    .woocommerce-ordering .orderby-current,
    .vi-wpvs-option-wrap:not(.vi-wpvs-option-wrap-disable):not(.vi-wpvs-option-wrap-disabled),
    .tm-extra-product-options-field .tc-label,
    .tm-extra-product-options-field .mf-epo-thumb-wrap,
    .tm-extra-product-options-field .mf-epo-desc-toggle,
    .quantity .minus,
    .quantity .plus,
    .cmplz-btn,
    .pum-close,
    .pswp__button,
    .mf-pum-info-btn,
    .mf-nl-privacy-label {
        cursor: pointer !important;
    }

    button:disabled,
    input[type="submit"]:disabled,
    input[type="button"]:disabled,
    .vi-wpvs-option-wrap.vi-wpvs-option-wrap-disable,
    .vi-wpvs-option-wrap.vi-wpvs-option-wrap-disabled {
        cursor: not-allowed !important;
    }
}
