@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//www.twm-project.it/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.4.1") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//www.twm-project.it/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(79,79,79);
	--wd-text-font-size: 15px;
	--wd-title-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-transform: capitalize;
	--wd-title-color: rgb(13,0,130);
	--wd-entities-title-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Roboto", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 500;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(0,0,0);
	--wd-alternative-color: rgb(49,160,234);
	--btn-default-font-family: Arial, Helvetica, sans-serif;
	--btn-default-bgcolor: rgb(10,0,79);
	--btn-default-bgcolor-hover: rgb(30,115,190);
	--btn-accented-bgcolor: rgb(13,0,130);
	--btn-accented-bgcolor-hover: rgb(30,115,190);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: rgb(255,255,255);
	background-image: url(https://www.twm-project.it/wp-content/uploads/2021/09/motorcycle-popup.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 250px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(58,58,63);
	background-image: none;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
html .wd-product .wd-entities-title a {
	text-transform: uppercase;
	color: rgb(13,0,130);
}
html .wd-product .wd-entities-title a:hover {
	color: rgb(30,115,190);
}
h4 {
	color: rgb(13,0,130);
}
.page :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-product :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-blog :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-post :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-portfolio :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-portfolio :is(.wd-page-content, .whb-header) {
	background-color: rgb(255,255,255);
	background-image: none;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 50px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 5px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 0px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: #0a0a0a;
}

.woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: none !important;
}



/* Nasconde il prezzo in modo forzato ovunque */
.wd-product .price,
.wd-product .wrap-price,
.single-product .price,
.product-grid-item .price,
.summary-inner .price {
    display: none !important;
}



/* Nasconde i bottoni hover (carrello, ecc) */
.product-grid-item .wd-buttons {
    display: none !important;
}



/* Trasforma la scheda in un layout flessibile */
.product-grid-item .wd-product-info,
.product-grid-item .product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
}

/* Nuovo ordine: 1. Titolo, 2. Tag, 3. Colori, 4. Item Code */
.product-grid-item .wd-entities-title { order: 1 !important; }
.product-grid-item .tapr-custom-tag { order: 2 !important; }
.product-grid-item .wd-swatches-grid { order: 3 !important; margin-bottom: 8px; }
.product-grid-item .wd-product-sku { order: 4 !important; }



/* Trasforma la scheda in un layout flessibile e centra tutto */
.product-grid-item .wd-product-info,
.product-grid-item .product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Nuovo ordine: 1. Titolo, 2. Tag, 3. Colori, 4. Item Code */
.product-grid-item .wd-entities-title { order: 1 !important; }
.product-grid-item .tapr-custom-tag { order: 2 !important; }
.product-grid-item .wd-swatches-grid { order: 3 !important; margin-bottom: 8px !important; }
.product-grid-item .wd-product-sku { order: 4 !important; }



/* Stile Bottoni Tecnici TWM - Versione Compatta e Mimetizzata */
.twm-special-link {
    display: inline-flex;
    align-items: center;
    /* Usa il colore del testo che hai impostato nel tema */
    color: inherit !important; 
    background-color: rgba(0,0,0,0.04); /* Un grigio neutro che si adatta a tutto */
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 0.9em; /* Si adatta alla dimensione del testo del prodotto */
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-top: 5px;
}

.twm-special-link:hover {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px); /* Effetto "molla" professionale */
}

/* Spaziatura Icona */
.twm-special-link i {
    margin-right: 8px;
    font-size: 16px;
}




/* Nasconde lo spazio vuoto delle miniature sotto la foto principale */
.woocommerce-product-gallery .flex-control-nav,
.wd-single-images .thumbnails,
.wd-single-images .wd-thumbnails,
.woocommerce-product-gallery__wrapper + div {
    display: none !important;
}

/* Assicura che la scatola si stringa alla foto */
.woocommerce-product-gallery {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}







.twm-action-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.twm-dealer-btn {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.twm-dealer-btn:hover {
    background-color: #444444 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}



/* ========================================= */
/* WP STORE LOCATOR - TWM LISTA VERTICALE    */
/* ========================================= */

/* 1. Trancia via la strada privata e il tasto Directions */
.wpsl-street,
.wpsl-direction-wrap {
    display: none !important;
}

/* 2. La pressa idraulica: costringe ogni elemento ad andare a capo */
.wpsl-store-details p {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important; /* Aggiunge un po' di respiro tra le righe */
}

/* 3. Evita che ci siano margini strani a destra */
.wpsl-store-details p > span {
    display: block !important;
}





/* =========================================
   MOTOSEGA ATOMICA DEFINITIVA: ADDIO MACCHINA
   ========================================= */
i.fas.fa-car,
.fas.fa-car {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


        width: 100% !important;
    }
}





/* =========================================
   PROTOTYPE REFINED: WIDER FILTERS & PREMIUM ARROW (LIGHT BACKGROUND)
   ========================================= */

/* 1. Main Form - Expanded Grid for Wider Filters */
.twm-hero-filter .ymm-finder form {
    display: grid !important;
    grid-template-columns: auto 1fr 1fr 1fr auto !important; 
    align-items: center !important; 
    justify-content: center !important;
    background-color: transparent !important; 
    padding: 30px !important; 
    width: 100% !important;
    max-width: 1250px !important; 
    margin: 0 auto !important;
    column-gap: 30px !important; 
}

/* 2. Strip away the plugin's invisible wrappers */
.twm-hero-filter .section-ymm,
.twm-hero-filter .ymm-buttons {
    display: contents !important; 
}

/* 3. NASCONDE LA SPAZZATURA E RIVELA IL VERO MOTORE */
.twm-hero-filter .title-icon { display: none !important; }
/* Nasconde tutto tranne i veri bottoni di invio dati */
.twm-hero-filter .ymm-buttons > *:not(button):not(input[type="submit"]) { 
    display: none !important; 
}

/* 4. Text - Stacked and Right-Aligned */
.twm-hero-filter .ymm-finder form::before {
    content: "CHOOSE\A YOUR\A RIDE" !important; 
    white-space: pre !important; 
    text-align: right !important; 
    color: #333333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    line-height: 1.6 !important; 
    opacity: 0.9 !important;
    padding-right: 20px !important; 
}

/* 5. Dropdowns - Wider */
.twm-hero-filter select {
    width: 100% !important;
    min-width: 180px !important; 
    height: 40px !important;
    background-color: transparent !important; 
    color: #333333 !important; 
    border: none !important;
    border-bottom: 1px solid rgba(51, 51, 51, 0.4) !important; 
    border-radius: 0 !important;
    padding: 0 5px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease !important;
    -webkit-appearance: none; 
    margin: 0 !important;
}

.twm-hero-filter select option { 
    background-color: #f5f5f5 !important; 
    color: #333333 !important; 
}

.twm-hero-filter select:hover, 
.twm-hero-filter select:focus {
    border-bottom: 1px solid #d32f2f !important; 
    outline: none !important;
}

/* 6. THE BUTTON - IL VERO BOTTONE MECCANICO DIVENTA LA PILLOLA ROSSA */
.twm-hero-filter .ymm-buttons button,
.twm-hero-filter .ymm-buttons input[type="submit"] {
    display: block !important;
    background-color: #d32f2f !important; 
    color: transparent !important; /* Nasconde l'eventuale scritta "Search" */
    height: 56px !important; 
    width: 38px !important;  
    min-width: 38px !important; 
    border: none !important; 
    border-radius: 19px !important; 
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    
    /* FRECCIA BIANCA INDISTRUTTIBILE (Grafica SVG integrata) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10 18 16 12 10 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 55% center !important; /* Centrato otticamente */
    background-size: 16px !important;
}

.twm-hero-filter .ymm-buttons button:hover,
.twm-hero-filter .ymm-buttons input[type="submit"]:hover {
    background-color: #b71c1c !important; 
}


/* =========================================
   AGGRESSIVE RESPONSIVE FIXES (TABLET & MOBILE)
   ========================================= */

/* --- TABLET VIEW (Under 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
    .twm-hero-filter .ymm-finder form {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px 15px !important;
        column-gap: 10px !important; 
    }
    .twm-hero-filter .ymm-finder .ymm-form-group, 
    .twm-hero-filter .ymm-finder .ymm-submit-wrap {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    .twm-hero-filter .ymm-finder form::before {
        font-size: 11px !important; 
        padding-right: 10px !important;
        flex: 0 0 auto !important;
    }
    .twm-hero-filter select {
        width: 100% !important;
        min-width: 110px !important;
        font-size: 13px !important;
        padding: 0 5px !important;
        flex: 1 1 auto !important;
    }
    
    /* Aggiornamento target per Tablet */
    .twm-hero-filter .ymm-buttons button,
    .twm-hero-filter .ymm-buttons input[type="submit"] {
        flex: 0 0 auto !important;
        height: 46px !important; 
        width: 34px !important;
        min-width: 34px !important;
    }
}

/* --- MOBILE & LARGE PHONES (Under 768px) --- */
@media (max-width: 768px) {
    .twm-hero-filter .ymm-finder form {
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        padding: 10px !important;
        column-gap: 8px !important; 
        align-items: center !important;
        justify-content: space-between !important;
    }
    .twm-hero-filter .ymm-finder .ymm-form-group, 
    .twm-hero-filter .ymm-finder .ymm-submit-wrap {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    .twm-hero-filter .ymm-finder form::before {
        display: none !important; 
    }
    .twm-hero-filter select {
        width: 100% !important; 
        min-width: 0 !important; 
        font-size: 12px !important; 
        padding: 0 2px !important;
        height: 38px !important;
        flex: 1 1 auto !important;
    }
    
    /* Aggiornamento target per Mobile */
    .twm-hero-filter .ymm-buttons button,
    .twm-hero-filter .ymm-buttons input[type="submit"] {
        flex: 0 0 auto !important; 
        height: 38px !important; 
        width: 32px !important;
        min-width: 32px !important;
        border-radius: 19px !important; 
        background-size: 14px !important; /* Freccia leggermente più piccola per il mobile */
    }
}
















/* Elimina il padding superiore del contenitore della pagina */
.main-page-wrapper {
    padding-top: 0 !important;
}

/* Rimuove eventuali margini della prima sezione di contenuto */
.main-page-wrapper .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Se stai usando un elemento Row (WPBakery o Elementor), forza a 0 il margine superiore */
.entry-content > .vc_row:first-child, 
.entry-content > .elementor-section:first-child {
    margin-top: 0 !important;
}



















/* =========================================
   SIDEBAR YMM FILTER (VERTICALE PURO)
   ========================================= */

.twm-sidebar-filter .ymm-finder form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Spazio preciso tra le tendine */
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Tendine della sidebar */
.twm-sidebar-filter select {
    width: 100% !important;
    height: 42px !important;
    background-color: #f9f9f9 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    margin: 0 !important;
    -webkit-appearance: none; 
}

/* Effetto Focus sulle tendine */
.twm-sidebar-filter select:focus {
    border-color: #d32f2f !important;
    outline: none !important;
}

/* Bottone della sidebar */
.twm-sidebar-filter .ymm-buttons,
.twm-sidebar-filter .ymm-buttons form {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.twm-sidebar-filter .ymm-buttons > *:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #d32f2f !important;
    color: #ffffff !important; /* Facciamo riapparire il testo del bottone (es. "SEARCH") */
    height: 45px !important;
    width: 100% !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.twm-sidebar-filter .ymm-buttons > *:last-child:hover {
    background-color: #b71c1c !important;
}

/* Assicuriamoci che non compaia il "CHOOSE YOUR RIDE" qui dentro */
.twm-sidebar-filter .ymm-finder form::before {
    display: none !important;
}