/*
Theme Name: GrandPrix Child
Theme URI: https://grandprix.qodeinteractive.com
Description: A child theme of GrandPrix Theme
Author: Mikado Themes
Author URI: http://themeforest.net/user/mikado-themes
Version: 1.0.0
Text Domain: grandprix
Template: grandprix
*/


.wpcf7-list-item-label {
    color: gray;
    text-transform: none;
    font-size: 15px;
    font-weight: 300;
	letter-spacing: 0px;
}


.mkdf-pl-holder .mkdf-pli-inner .mkdf-pli-image img {
    
    height: 300px;
    width: 300px !important;
    object-fit: cover;
}

.mkdf-pl-holder .mkdf-pli-inner .mkdf-pli-text-inner .button {
    
    padding: 12px 18px !important;
   
}

.mkdf-page-footer .widget ul:not(.mkdf-shortcode-list) li a {
    color: #fcfcfc;
}
.mkdf-page-footer p,.mkdf-page-footer p a,.mkdf-page-footer h5 {
    color: #fcfcfc !important;
    font-size: 15px;
}
.mkdf-page-footer .widget ul:not(.mkdf-shortcode-list) li a {
    color: #fcfcfc !important;
}

/* ============================================================
   RICHIESTE CLIENTE — SHOP (punti 2,3,4,5)  —  Outletbiker
   ============================================================ */

/* ---------- #2  Menu header: niente sovrapposizione su laptop (1025–1366px) ---------- */
@media (min-width: 1025px) and (max-width: 1366px) {
    .mkdf-main-menu > ul > li > a {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
        letter-spacing: 0;
    }
    .mkdf-logo-wrapper img { max-height: 40px; width: auto; }
}

/* ---------- #3  Sidebar: pulizia widget + accordion categorie ---------- */
/* spaziatura tra i widget */
.mkdf-sidebar .widget {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
}
.mkdf-sidebar .widget:last-child { border-bottom: 0; }

/* lista categorie ordinata e compatta */
.mkdf-sidebar .product-categories,
.mkdf-sidebar .product-categories ul { list-style: none; margin: 0; padding: 0; }
.mkdf-sidebar .product-categories li {
    position: relative;
    border-bottom: 1px solid #f2f2f2;
}
.mkdf-sidebar .product-categories li a {
    display: block;
    padding: 9px 28px 9px 2px;
    line-height: 1.3;
}
/* sotto-categorie nascoste (accordion) */
.mkdf-sidebar .product-categories li.cat-parent > ul.children { display: none; padding-left: 14px; }
.mkdf-sidebar .product-categories li.cat-parent.mkdf-open > ul.children { display: block; }
/* toggle +/- iniettato via JS */
.mkdf-sidebar .product-categories .mkdf-cat-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: #777;
    user-select: none;
}
.mkdf-sidebar .product-categories .mkdf-cat-toggle:before { content: "+"; }
.mkdf-sidebar .product-categories li.cat-parent.mkdf-open > .mkdf-cat-toggle:before { content: "\2013"; } /* – */

/* ---------- #4  Allineamento toolbar + coerenza pulsanti ---------- */
/* contatore risultati a sinistra, ordinamento a destra, stessa linea */
.woocommerce .woocommerce-result-count {
    float: left;
    margin: 0 0 1.4em;
    line-height: 2.7;
}
.woocommerce .woocommerce-ordering {
    float: right;
    margin: 0 0 1.4em;
}
.woocommerce ul.products { clear: both; }

/* pulsanti coerenti (colore lasciato al tema, uniformo forma/hover/peso) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .add_to_cart_button {
    font-weight: 600;
    letter-spacing: .3px;
    border: none;
    border-radius: 3px;
    transition: opacity .25s ease, background-color .25s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .add_to_cart_button:hover { opacity: .85; }

/* ---------- #5  Mobile: pulsante "Filtri" + drawer off-canvas + touch target ---------- */
.mkdf-woo-filter-toggle { display: none; }

/* 1024px = stesso breakpoint del mobile header: il pulsante "Filter" e il drawer
   coprono telefoni (portrait+landscape) e tablet. Prima era 768px, così in
   landscape mobile (>768) il pulsante spariva e i filtri restavano impilati
   sotto i prodotti, scomodi/non usabili. */
@media (max-width: 1024px) {
    /* contenuto a tutta larghezza su mobile */
    .woocommerce-shop .mkdf-page-content-holder,
    .tax-product_cat .mkdf-page-content-holder,
    .tax-product_tag .mkdf-page-content-holder { width: 100%; }

    /* pulsante Filtri */
    .mkdf-woo-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        margin: 0 0 18px;
        padding: 0 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        border: 1px solid #ddd;
        background: #f7f7f7;
        cursor: pointer;
    }
    .mkdf-woo-filter-toggle:before { content: "\2630"; font-size: 16px; } /* ☰ */

    /* sidebar come drawer da sinistra */
    .woocommerce-shop .mkdf-sidebar-holder,
    .tax-product_cat .mkdf-sidebar-holder,
    .tax-product_tag .mkdf-sidebar-holder {
        position: fixed;
        top: 0; left: 0;
        height: 100%;
        width: 85%;
        max-width: 330px;
        z-index: 2147483647;
        background: #fff;
        padding: 50px 20px 30px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 2px 0 18px rgba(0,0,0,.25);
    }
    body.mkdf-woo-filters-open .mkdf-sidebar-holder { transform: translateX(0); }

    /* il tema genitore dà aside.mkdf-sidebar { margin-top: 80px } sotto i 1024px
       (serviva quando la sidebar si impilava). Nel drawer è spazio vuoto inutile
       sopra i filtri (sommato alla padding del drawer): lo azzero. */
    .mkdf-sidebar-holder aside.mkdf-sidebar { margin-top: 0; margin-bottom: 0; }

    .mkdf-woo-filters-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 2147483646;
    }
    body.mkdf-woo-filters-open .mkdf-woo-filters-overlay { display: block; }
    body.mkdf-woo-filters-open { overflow: hidden; }

    .mkdf-woo-filters-close {
        position: absolute;
        top: 10px; right: 14px;
        width: 34px; height: 34px;
        line-height: 32px;
        text-align: center;
        font-size: 26px;
        cursor: pointer;
        color: #333;
    }

    /* touch target minimo 44x44 */
    .mkdf-sidebar a,
    .mkdf-sidebar input,
    .mkdf-sidebar button,
    .woocommerce .button,
    .woocommerce .add_to_cart_button,
    .woocommerce-ordering select { min-height: 44px; }
    .woocommerce-ordering select { padding: 6px 10px; }
}

/* ---------- Disattiva "Aggiungi al carrello" in hover sui prodotti (richiesta cliente) ---------- */
ul.products li.product .mkdf-pl-text-inner,
ul.products li.product .mkdf-pl-text-inner .add_to_cart_button,
ul.products li.product .mkdf-pl-text-inner a.button {
    display: none !important;
}

/* ---------- Dimensioni testi su mobile (titoli troppo grandi) ---------- */
@media (max-width: 768px) {
    h1.mkdf-page-title { font-size: 24px !important; line-height: 1.2 !important; }
    .mkdf-product-list-title,
    .mkdf-product-list-title a { font-size: 15px !important; line-height: 1.3 !important; }
    ul.products li.product .price,
    ul.products li.product .price .woocommerce-Price-amount { font-size: 14px !important; }
    .mkdf-title-holder .mkdf-page-title { font-size: 24px !important; }
}

@media (max-width: 480px) {
    h1.mkdf-page-title { font-size: 20px !important; }
    .mkdf-product-list-title,
    .mkdf-product-list-title a { font-size: 14px !important; }
    ul.products li.product .price,
    ul.products li.product .price .woocommerce-Price-amount { font-size: 13px !important; }
}

/* ========== Carosello prodotti home (#sofix): immagini uniformi e responsive ========== */
#sofix .mkdf-plc-image-outer,
#sofix .mkdf-plc-image { width: 100% !important; }
#sofix .mkdf-plc-image {
    background: #fff;
    overflow: hidden;
    border-radius: 4px;
}
#sofix .mkdf-plc-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;   /* immagine intera, mai tagliata, box uguale per tutti */
    display: block !important;
    margin: 0 auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}
@media (max-width: 1280px) { #sofix .mkdf-plc-image img { height: 220px !important; } }
@media (max-width: 1024px) { #sofix .mkdf-plc-image img { height: 230px !important; } }
@media (max-width: 768px)  { #sofix .mkdf-plc-image img { height: 260px !important; } }
@media (max-width: 480px)  { #sofix .mkdf-plc-image img { height: 300px !important; } }

/* testo SEMPRE visibile sotto l'immagine (no hover), mantiene 4 per vista */
#sofix .mkdf-plc-image-outer { height: auto !important; }
#sofix .mkdf-plc-text {
    position: relative !important;
    z-index: 3;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    background: #fff !important;
    background-image: none !important;
    transform: none !important;
    transition: none !important;
    padding: 12px 8px 10px !important;
    text-align: center;
}
#sofix .mkdf-plc-text-outer,
#sofix .mkdf-plc-text-inner {
    position: static !important;
    transform: none !important;
    top: auto !important;
    height: auto !important;
    display: block !important;
}
/* testo scuro su sfondo bianco (classi reali del carosello) */
#sofix .mkdf-plc-text .mkdf-plc-title,
#sofix .mkdf-plc-text .mkdf-plc-title a,
#sofix .mkdf-plc-text .mkdf-plc-price,
#sofix .mkdf-plc-text .mkdf-plc-price *,
#sofix .mkdf-plc-text .price,
#sofix .mkdf-plc-text .price *,
#sofix .mkdf-plc-text .woocommerce-Price-amount,
#sofix .mkdf-plc-text .woocommerce-Price-amount * { color: #222 !important; }
#sofix .mkdf-plc-text .mkdf-plc-title,
#sofix .mkdf-plc-text .mkdf-plc-title a { font-size: 15px !important; line-height: 1.35; margin: 4px 0 6px; }
#sofix .mkdf-plc-text .mkdf-plc-category,
#sofix .mkdf-plc-text .mkdf-plc-category a { color: #888 !important; font-size: 12px; }
#sofix .mkdf-plc-text .price { font-size: 15px; font-weight: 600; }
/* link immagine sotto il testo (così il bottone resta cliccabile) */
#sofix .mkdf-plc-link { z-index: 1; }
#sofix .mkdf-plc-readmore { position: relative; z-index: 4; display: inline-block; margin-top: 10px; }

/* ========== Ricerca header: lente rossa + popup FiboSearch (forzato) ========== */
/* nascondi la casella inline nel menu (spostata nel popup via JS) */
.mkdf-main-menu li .dgwt-wcas-search-wrapp { display: none !important; }

/* LENTE nel menu — pallino rosso, icona SVG centrata, hover sempre rosso */
body .mkdf-main-menu ul li a.outletb-search-trigger,
a.outletb-search-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 6px !important;
    border-radius: 50% !important;
    background-color: #ed1d24 !important;
    background-image: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background-color .2s ease, transform .15s ease;
}
body .mkdf-main-menu ul li a.outletb-search-trigger:hover,
a.outletb-search-trigger:hover {
    background-color: #c2151b !important;
    transform: scale(1.06);
}
a.outletb-search-trigger svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}
a.outletb-search-trigger svg path { fill: #fff !important; stroke: #fff !important; }

/* OVERLAY popup (sotto i suggerimenti FiboSearch) */
.outletb-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .93);
    z-index: 999990;
    padding: 13vh 20px 20px;
}
body.outletb-search-open { overflow: hidden; }
body.outletb-search-open .outletb-search-overlay { display: block; }

.outletb-search-inner { max-width: 660px; margin: 0 auto; }
.outletb-search-inner .dgwt-wcas-search-wrapp {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* FORM: input pieno, tasto rosso pinnato a DESTRA dentro l'input */
.outletb-search-inner .dgwt-wcas-search-form { display: block !important; width: 100% !important; }
.outletb-search-inner .dgwt-wcas-sf-wrapp {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    background: #fff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.outletb-search-inner input.dgwt-wcas-search-input {
    width: 100% !important;
    height: 62px !important;
    line-height: 62px !important;
    font-size: 18px !important;
    border: none !important;
    padding: 0 80px 0 18px !important;   /* spazio per il tasto a destra */
    background: #fff !important;
    box-sizing: border-box !important;
}
.outletb-search-inner .dgwt-wcas-preloader { right: 76px !important; }
.outletb-search-inner .dgwt-wcas-voice-search { display: none !important; }
/* TASTO rosso a destra, lente bianca centrata */
.outletb-search-inner .dgwt-wcas-search-submit {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 64px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ed1d24 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2 !important;
}
.outletb-search-inner .dgwt-wcas-search-submit:hover { background: #c2151b !important; }
.outletb-search-inner .dgwt-wcas-search-submit svg,
.outletb-search-inner .dgwt-wcas-search-submit svg.dgwt-wcas-ico-magnifier {
    position: static !important;   /* FiboSearch la mette in absolute: la riporto nel flusso per centrarla */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    margin: 0 !important;
    display: block !important;
}
.outletb-search-inner .dgwt-wcas-search-submit svg path,
.outletb-search-inner .dgwt-wcas-search-submit svg.dgwt-wcas-ico-magnifier path { fill: #fff !important; }

/* Ricerca popup — responsive */
@media (max-width: 600px) {
    .outletb-search-overlay { padding: 10vh 14px 20px; }
    .outletb-search-inner input.dgwt-wcas-search-input { height: 54px !important; line-height: 54px !important; font-size: 16px !important; padding-right: 70px !important; }
    .outletb-search-inner .dgwt-wcas-search-submit { width: 56px !important; height: 54px !important; }
    .outletb-search-close { top: 14px; right: 16px; font-size: 34px; }
}

/* risultati FiboSearch SOPRA il popup */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp { z-index: 999999 !important; }

.outletb-search-close {
    position: absolute;
    top: 22px;
    right: 30px;
    width: 44px;
    height: 44px;
    line-height: 42px;
    text-align: center;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
.outletb-search-close:hover { opacity: .7; }

/* ---------- Drawer filtri: padding ridotto + elementi più compatti ---------- */
@media (max-width: 768px) {
    .woocommerce-shop .mkdf-sidebar-holder,
    .tax-product_cat .mkdf-sidebar-holder,
    .tax-product_tag .mkdf-sidebar-holder {
        padding: 42px 14px 18px;
    }
    .mkdf-sidebar-holder .mkdf-sidebar .widget {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .mkdf-sidebar-holder .mkdf-widget-title-holder { margin-bottom: 8px; }
    .mkdf-sidebar-holder .product-categories li a { padding-top: 6px; padding-bottom: 6px; }
    .mkdf-sidebar-holder .price_slider_wrapper { margin-top: 6px; }
}

/* ---------- Mobile: logo più piccolo + burger sulla stessa riga ---------- */
/* 1024px = stesso breakpoint a cui il tema attiva .mkdf-mobile-header:
   sotto 1024 era 1000px e nella fascia 1001-1024 (iPad landscape) il
   mobile header usciva senza questi fix -> cart/lente e burger su due righe. */
@media (max-width: 1024px) {
    .mkdf-mobile-header .mkdf-position-left { flex: 0 1 auto; min-width: 0; }
    .mkdf-mobile-header .mkdf-mobile-logo-wrapper a {
        height: auto !important;
        display: inline-flex !important;
        align-items: center;
    }
    /* logo: proporzioni SEMPRE mantenute (height/width auto), solo limiti max */
    .mkdf-mobile-header .mkdf-mobile-logo-wrapper img {
        height: auto !important;
        width: auto !important;
        max-height: 36px !important;
        max-width: 55vw !important;
    }
    /* logo a sinistra, burger a destra, sempre in linea */
    .mkdf-mobile-header .mkdf-vertical-align-containers {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .mkdf-mobile-header .mkdf-position-right { width: auto; white-space: nowrap; }
    .mkdf-mobile-header .mkdf-mobile-menu-opener { float: none; }

    /* lente ricerca tra logo e burger — compatti per far spazio al logo */
    .mkdf-mobile-header .mkdf-position-right,
    .mkdf-mobile-header .mkdf-position-right-inner {
        display: flex !important;
        align-items: center;
        gap: 2px;
        flex: 0 0 auto;
    }
    .outletb-search-trigger-mobile {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        flex: 0 0 auto;
    }
    .outletb-search-trigger-mobile svg { width: 18px !important; height: 18px !important; }
    .mkdf-mobile-header .mkdf-mobile-menu-opener { padding: 0 4px !important; }

    /* menu hamburger: sfondo bianco su TUTTE le voci (prima si fermava a metà) */
    .mkdf-mobile-header .mkdf-mobile-nav { background-color: #fff !important; }
    .mkdf-mobile-header .mkdf-mobile-nav ul,
    .mkdf-mobile-header .mkdf-mobile-nav ul li { background-color: transparent !important; }
    .mkdf-mobile-header .mkdf-mobile-nav ul li { border-bottom: 1px solid #eee; }
    .mkdf-mobile-header .mkdf-mobile-nav ul li a,
    .mkdf-mobile-header .mkdf-mobile-nav ul li h5,
    .mkdf-mobile-header .mkdf-mobile-nav ul li .mkdf-mobile-menu-item { color: #222 !important; }

    /* carrello nell'header mobile, allineato con lente e burger */
    .mkdf-mobile-header .mkdf-right-from-mobile-logo,
    .mkdf-mobile-header .mkdf-shopping-cart-holder,
    .mkdf-mobile-header .mkdf-header-cart { display: flex !important; align-items: center; }
    .mkdf-mobile-header .mkdf-shopping-cart-holder { margin: 0 2px; }
    .mkdf-mobile-header .mkdf-header-cart .mkdf-cart-text { display: none; } /* solo icona+contatore, niente testo */
}

/* ---------- Footer: icone social allineate sulla stessa linea ----------
   Il blocco WP rende gli <li> come inline-block (allineati alla baseline),
   per cui Instagram cascava più in basso. Forzo flex + align-items:center. */
.mkdf-page-footer ul.wp-block-social-links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mkdf-page-footer ul.wp-block-social-links li.wp-social-link {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle;
    line-height: 0;
}
.mkdf-page-footer ul.wp-block-social-links li.wp-social-link a {
    display: flex;
    align-items: center;
    line-height: 0;
}
/* ---------- Form WooCommerce: campi con font più piccolo e leggero ----------
   Richiesta cliente: il tema rendeva il testo dei campi troppo grande/grassetto. */
.woocommerce-page .mkdf-content input[type="email"],
.woocommerce-page .mkdf-content input[type="password"],
.woocommerce-page .mkdf-content input[type="tel"],
.woocommerce-page .mkdf-content input[type="text"],
.woocommerce-page .mkdf-content textarea,
div.woocommerce input[type="email"],
div.woocommerce input[type="password"],
div.woocommerce input[type="tel"],
div.woocommerce input[type="text"],
div.woocommerce textarea {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}

/* ---------- Checkout: padding campi + spaziatura + stati di errore chiari ---------- */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce form.checkout .form-row input.input-text,
.woocommerce form.checkout .form-row textarea {
    padding: 12px 16px !important;
    line-height: 1.4 !important;
}
.woocommerce-checkout .form-row { margin-bottom: 16px; }

/* campo in errore: bordo rosso + sfondo tenue */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea {
    border: 1px solid #e2401c !important;
    background-color: #fff6f5 !important;
}
/* campo validato: bordo verde */
.woocommerce form .form-row.woocommerce-validated input.input-text {
    border-color: #69bf29 !important;
}
/* box messaggi di errore */
.woocommerce-error {
    border-top-color: #e2401c !important;
    background: #fff6f5;
}
.woocommerce-error li { color: #b02a1a; }

/* ---------- Pagina Contatti: rimuove le linee verticali decorative ---------- */
.page-id-1108 .mkdf-vertical-line { display: none !important; }

/* ---------- Pagina /mototrip/ (RACING TRAVEL): logo SXI Travels accanto al titolo ---------- */
.page-id-6035 h1.mkdf-page-title {
    display: inline-flex;
    align-items: center;
    gap: .5em;
}
.page-id-6035 h1.mkdf-page-title::after {
    content: "";
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    flex: 0 0 auto;
    background: url('https://www.outletbikermotorrad.com/wp-content/uploads/2026/07/SXI-Scudetto-Travels-OK-x-Sito.jpg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
}
