/*
Theme Name: CRNGROUP GeneratePress Child
Theme URI: https://www.crngroup.it/
Description: Child theme per GeneratePress, predisposto per personalizzazioni CRNGROUP e WCFM.
Author: CRNGROUP
Template: generatepress
Version: 1.0.48
Text Domain: crngroup-generatepress-child
*/

body.wcfm-vendor-context .site-header .site-logo img.header-image,
body.wcfm-vendor-context .main-navigation .site-logo img.header-image,
body.wcfm-vendor-context .mobile-header-navigation .site-logo img {
    width: auto !important;
    max-width: 120px !important;
    height: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
}

body.wcfm-vendor-context .site-header,
body.wcfm-vendor-context #site-navigation,
body.wcfm-vendor-context .main-navigation,
body.wcfm-vendor-context .inside-header,
body.wcfm-vendor-context .inside-navigation {
    position: relative;
    z-index: 1000;
}

body.wcfm-vendor-context .main-navigation .main-nav,
body.wcfm-vendor-context .main-navigation .main-nav ul,
body.wcfm-vendor-context .main-navigation .main-nav li,
body.wcfm-vendor-context .main-navigation .main-nav li a {
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
}

body.wcfm-vendor-context .main-navigation .main-nav ul li a {
    white-space: nowrap;
}

body.wcfm-vendor-context .main-navigation .main-nav li.crngroup-vendor-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.wcfm-vendor-context .main-navigation .main-nav li.crngroup-vendor-social svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

body.wcfm-vendor-context .main-navigation .main-nav li.crngroup-vendor-whatsapp svg {
    width: 19px;
    height: 19px;
}


/* 1.0.10 - I social WCFM vengono spostati nell'header vendor.
   Nasconde solo il blocco social nativo dello store, non i dati venditore. */
body.wcfm-vendor-context #wcfmmp-store .social_area {
    display: none !important;
}

/* Icona X nel menu vendor */
body.wcfm-vendor-context .main-navigation .main-nav li.crngroup-vendor-x svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   1.0.11 - HERO STORE WCFM FULL WIDTH + FASCIA DATI COMPATTA
   ========================================================= */

/* Evita scrollbar orizzontali causate dal full-bleed viewport. */
body.wcfm-vendor-context {
    overflow-x: hidden;
}

/* Banner WCFM a tutta larghezza viewport, indipendente dal contenitore del tema. */
body.wcfm-vendor-context #wcfmmp-store .wcfm_banner_area {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Mantiene le misure WCFM: 350px desktop / 250px mobile,
   ma usa l'immagine come vera hero cover. */
body.wcfm-vendor-context #wcfmmp-store .banner_img {
    width: 100% !important;
    height: 350px !important;
    max-height: 350px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Il titolo vendor resta centrato sulla hero. */
body.wcfm-vendor-context #wcfmmp-store .banner_text {
    width: min(92vw, 1200px);
}

/* Nasconde avatar/logo rotondo e stelle WCFM sotto la hero. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .logo_area,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .logo_area_after {
    display: none !important;
}

/* Fascia dati full-width, sottile, centrata sotto il banner. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header {
    width: 100vw !important;
    max-width: none !important;
    min-height: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_wrapper,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_area {
    width: 100% !important;
    min-height: 0 !important;
}

/* I dati venditore diventano una riga orizzontale centrata. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_left {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address {
    float: none !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 24px !important;
    text-align: center !important;
}

/* Località, telefono ed email sulla stessa riga. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address p,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address > div {
    margin: 0 !important;
    padding: 0 !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 24px !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .store_info_parallal {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address i {
    font-size: 16px !important;
    line-height: 1 !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address span {
    width: auto !important;
    margin-left: 7px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Il blocco azioni WCFM resta disponibile ma non occupa una seconda fascia.
   "Richiesta" viene mantenuto sul lato destro della stessa barra. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_right {
    position: absolute !important;
    right: max(18px, calc((100vw - 1200px) / 2)) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 5 !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_area {
    position: static !important;
    float: none !important;
    margin: 0 !important;
}

/* Il social nativo WCFM resta nascosto: X/WhatsApp sono già nell'header menu. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .social_area {
    display: none !important;
}

/* Mobile: usa la misura nativa WCFM 520x250 e consente alla fascia dati di andare
   ordinatamente su due righe senza ripristinare avatar/logo. */
@media (max-width: 640px) {
    body.wcfm-vendor-context #wcfmmp-store .banner_img {
        height: 250px !important;
        max-height: 250px !important;
        background-position: center center !important;
    }

    body.wcfm-vendor-context #wcfmmp-store .banner_text h1 {
        font-size: clamp(30px, 10vw, 44px) !important;
        line-height: 1.1 !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_left {
        padding: 9px 12px !important;
        min-height: 0 !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address {
        gap: 6px 14px !important;
        padding-right: 0 !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .address span {
        font-size: 12px !important;
    }

    /* Su schermi stretti la Richiesta va sotto/si gestisce nel layout WCFM
       senza sovrapporsi ai dati centrali. */
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_right {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        padding: 0 10px 8px !important;
        text-align: center !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_area {
        display: inline-block !important;
    }
}


/* =========================================================
   1.0.12 - FASCIA DATI COORDINATA CON HEADER + RICHIESTA
   ========================================================= */

/* Stesso colore dell'header GeneratePress usato dal sito. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_wrapper,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_area,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_left {
    background-color: #223247 !important;
}

/* Centra verticalmente il pulsante Richiesta nella fascia dati. */
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_right {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
}

body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_area,
body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_box {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
}

@media (max-width: 640px) {
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_right {
        top: auto !important;
        transform: none !important;
        min-height: 0 !important;
        justify-content: center !important;
    }
}


/* =========================================================
   1.0.13 - CORREZIONE CENTRATURA VERTICALE PULSANTE RICHIESTA
   ========================================================= */

@media (min-width: 641px) {
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_area,
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_wrapper {
        position: relative !important;
        min-height: 44px !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .header_right {
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        height: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_area,
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_box,
    body.wcfm-vendor-context #wcfmmp-store #wcfm_store_header .bd_icon_box a {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
}


/* =========================================================
   1.0.14 - HOME STORE: GALLERIA CATEGORIE VENDOR
   ========================================================= */

/* Nella HOME del negozio nasconde il blocco standard WCFM
   (tabs Prodotti/Info/Politiche/Recensioni + loop prodotti). */
body.crngroup-wcfm-store-home #wcfmmp-store .body_area {
    display: none !important;
}

/* Galleria categorie vendor */
.crngroup-vendor-categories {
    width: min(1200px, calc(100% - 40px));
    margin: 34px auto 38px;
}

.crngroup-vendor-categories h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.2;
}

.crngroup-vendor-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.crngroup-vendor-category-card {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    border-radius: 14px;
    background: #0d223d;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.crngroup-vendor-category-card img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.crngroup-vendor-category-card:hover img {
    transform: scale(1.025);
}

.crngroup-vendor-category-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.crngroup-vendor-category-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
}

.crngroup-vendor-category-count {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
}

@media (max-width: 640px) {
    .crngroup-vendor-categories {
        width: min(100% - 24px, 1200px);
        margin-top: 24px;
    }

    .crngroup-vendor-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .crngroup-vendor-category-card img {
        height: 125px;
    }

    .crngroup-vendor-category-name {
        font-size: 14px;
    }
}


/* =========================================================
   1.0.15 - RIMOZIONE BLOCCO NATIVO WCFM DALLA HOME STORE
   ========================================================= */

/*
 * Nella sola HOME del negozio nasconde definitivamente:
 * - tab Prodotti / Info / Politiche / Recensioni
 * - ordinamento
 * - griglia/lista prodotti WCFM
 * - messaggi "nessun prodotto trovato"
 *
 * Gli endpoint /about/, /policies/, /reviews/ restano invece disponibili
 * tramite il menu superiore del venditore.
 */
body.crngroup-wcfm-store-home #wcfmmp-store .tab_area,
body.crngroup-wcfm-store-home #wcfmmp-store .right_side,
body.crngroup-wcfm-store-home #wcfmmp-store .rgt,
body.crngroup-wcfm-store-home #wcfmmp-store .body_area {
    display: none !important;
}

/* Evita che il contenitore WCFM lasci spazio bianco residuo. */
body.crngroup-wcfm-store-home #wcfmmp-store-content {
    padding-bottom: 0 !important;
}

/* La nostra galleria categorie resta visibile anche se il vendor
   non ha ancora prodotti assegnati. */
body.crngroup-wcfm-store-home .crngroup-vendor-categories {
    display: block !important;
}


/* =========================================================
   1.0.25 - WIDGET CENTRALE FOOTER DINAMICO VENDITORE
   ========================================================= */

body.wcfm-vendor-context .crngroup-vendor-footer-widget {
    text-align: center;
    width: 100%;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__logo {
    display: block;
    margin: 0 auto 12px;
    max-width: 150px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__name {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__meta a {
    text-decoration: none;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__request {
    margin-top: 12px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__request a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 768px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__logo {
        max-width: 130px;
        max-height: 64px;
    }
}


/* =========================================================
   1.0.35 - MENU VENDOR: DROPDOWN FUORI DAL FLUSSO HEADER
   ========================================================= */

/* Footer vendor a due colonne anche nelle pagine categoria. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__name {
    display: none !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__separator {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.55);
    margin: 8px 0 16px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    text-align: left;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__heading {
    font-weight: 700;
    margin-bottom: 9px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__column .crngroup-vendor-footer-widget__row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__categories li {
    margin: 0 0 5px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__request {
    text-align: left;
}

@media (min-width: 769px) {
    /*
     * La vecchia regola della child rendeva tutti gli UL position:relative.
     * Il sottomenu finiva quindi nel flusso e faceva crescere l'header.
     * Qui forziamo il dropdown come overlay assoluto.
     */
    body.wcfm-vendor-context .main-navigation .main-nav > ul > li {
        position: relative !important;
    }

    body.wcfm-vendor-context .main-navigation .main-nav > ul > li > ul.sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        z-index: 99999 !important;
        width: max-content !important;
        min-width: 220px !important;
        max-width: 320px !important;
        max-height: 420px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 6px 0 !important;
    }

    body.wcfm-vendor-context .main-navigation .main-nav > ul > li > ul.sub-menu > li {
        position: relative !important;
        width: 100% !important;
        display: block !important;
    }

    body.wcfm-vendor-context .main-navigation .main-nav > ul > li > ul.sub-menu > li > a {
        display: block !important;
        width: 100% !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 640px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* 1.0.36 - Il contesto visuale vendor si applica anche alla scheda prodotto. */
body.single-product.wcfm-vendor-context .site-header,
body.single-product.wcfm-vendor-context .main-navigation {
    position: relative;
    z-index: 1000;
}


/* =========================================================
   1.0.37 - HOME VENDOR
   ========================================================= */

/* Nasconde definitivamente la banda informativa WCFM sotto la hero
   SOLO sulla vera home del negozio. */
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .wcfmmp_store_info,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .wcfmmp-store-info,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .wcfm_store_info,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .header_area,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .header_wrapper .header_left,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context) #wcfmmp-store .header_wrapper .header_right {
    display: none !important;
}

/* Footer centrale home identico alle altre pagine vendor. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    justify-items: center;
    text-align: center;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home .crngroup-vendor-footer-widget__column {
    width: 100%;
    max-width: 230px;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home .crngroup-vendor-footer-widget__row {
    justify-content: center;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home .crngroup-vendor-footer-widget__request {
    text-align: center;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home .crngroup-vendor-footer-widget__categories {
    text-align: center;
}

@media (max-width: 640px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* =========================================================
   1.0.38 - HOME VENDOR: BANDA OFF + FOOTER ALLINEATO
   ========================================================= */

/*
 * La fascia scura residua sotto la hero è il contenitore WCFM
 * rimasto vuoto dopo aver nascosto i singoli dati.
 * Sulla sola home reale del vendor lo eliminiamo completamente.
 */
body.wcfm-vendor-context:not(.crngroup-vendor-category-context)
#wcfmmp-store .header_wrapper {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Evita eventuali spazi residui collegati al blocco informativo WCFM. */
body.wcfm-vendor-context:not(.crngroup-vendor-category-context)
#wcfmmp-store .wcfmmp_store_info,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context)
#wcfmmp-store .wcfmmp-store-info,
body.wcfm-vendor-context:not(.crngroup-vendor-category-context)
#wcfmmp-store .wcfm_store_info {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Widget centrale: stessa logica grafica degli altri due blocchi footer.
 * Il widget nel suo terzo resta centrato, ma i testi delle due colonne
 * sono allineati a sinistra.
 */
body.wcfm-vendor-context .crngroup-vendor-footer-widget {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: start;
    justify-items: stretch;
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__column {
    width: 100%;
    max-width: none !important;
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__heading {
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__row,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home
.crngroup-vendor-footer-widget__row {
    justify-content: flex-start !important;
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__request,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home
.crngroup-vendor-footer-widget__request {
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__categories,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home
.crngroup-vendor-footer-widget__categories {
    text-align: left !important;
}

/* Logo centrale realmente centrato rispetto al proprio widget. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__logo {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 640px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
        grid-template-columns: 1fr;
        max-width: 260px;
        gap: 18px;
    }
}


/* =========================================================
   1.0.39 - FOOTER VENDOR: SEPARATORE E CENTRATURA
   ========================================================= */

/* Il widget centrale occupa esattamente il proprio terzo del footer. */
body.wcfm-vendor-context .footer-widgets .footer-widget-2,
body.wcfm-vendor-context .footer-widgets .widget-area:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Il contenuto vendor è centrato come blocco, non spostato lateralmente. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Separatore: stessa presenza visiva degli altri due widget. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__separator {
    width: 100% !important;
    height: 0 !important;
    border: 0 !important;
    border-top: 2px solid rgba(255,255,255,.45) !important;
    margin: 10px auto 18px !important;
    padding: 0 !important;
}

/* Le due colonne restano centrate come gruppo,
   mentre il testo interno rimane allineato a sinistra. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
    justify-content: center !important;
    justify-items: stretch !important;
    text-align: left !important;
}

body.wcfm-vendor-context .crngroup-vendor-footer-widget__column {
    text-align: left !important;
}

@media (max-width: 640px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
        max-width: 280px !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}


/* =========================================================
   1.0.40 - FOOTER VENDOR: GEOMETRIA CENTRALE SIMMETRICA
   =========================================================
   Il terzo centrale usa ora gli stessi rientri laterali
   visivi dei due gruppi CRNGROUP e CGK Suite.
*/

body.wcfm-vendor-context .crngroup-vendor-footer-widget {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Separatore centrato con identico rientro a sinistra e destra. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__separator {
    box-sizing: border-box !important;
    width: calc(100% - 80px) !important;
    max-width: none !important;
    margin: 10px 40px 18px !important;
    border-top-width: 2px !important;
}

/* Le due colonne occupano la stessa fascia del separatore.
   Il gruppo è centrato; i contenuti restano allineati a sinistra. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
    box-sizing: border-box !important;
    width: calc(100% - 80px) !important;
    max-width: none !important;
    margin-left: 40px !important;
    margin-right: 40px !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 56px !important;
    justify-content: center !important;
    align-items: start !important;
}

/* Titoli, righe e categorie restano allineati a sinistra
   dentro le due metà perfettamente simmetriche. */
body.wcfm-vendor-context .crngroup-vendor-footer-widget__column,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__heading,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__categories,
body.wcfm-vendor-context .crngroup-vendor-footer-widget__request {
    text-align: left !important;
}

@media (max-width: 768px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__separator {
        width: calc(100% - 40px) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
        width: calc(100% - 40px) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        column-gap: 28px !important;
    }
}

@media (max-width: 640px) {
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns,
    body.wcfm-vendor-context .crngroup-vendor-footer-widget__columns--home {
        grid-template-columns: 1fr !important;
        max-width: 300px !important;
        width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        row-gap: 18px !important;
    }
}


/* =========================================================
   1.0.41 - HERO VENDOR DINAMICA
   ========================================================= */

/* La vecchia galleria sotto la hero non viene più renderizzata. */
body.crngroup-wcfm-store-home .crngroup-vendor-categories {
    display: none !important;
}

/* Più spazio verticale per titolo, descrizione e due gallerie. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_area,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_img {
    height: 560px !important;
    max-height: 560px !important;
}

body.crngroup-wcfm-store-home #wcfmmp-store .banner_text {
    width: min(94vw, 1180px) !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Titolo negozio più compatto: lascia spazio al contenuto commerciale. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: 1.05 !important;
    margin: 0 0 10px !important;
}

/* Contenuto */
.crngroup-vendor-hero-content {
    width: min(100%, 1120px);
    margin: 0 auto;
    color: #fff;
}

.crngroup-vendor-hero-description {
    width: min(92%, 760px);
    margin: 0 auto 10px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

.crngroup-vendor-hero-description p {
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.crngroup-vendor-hero-section {
    width: 100%;
    margin: 8px auto 0;
}

.crngroup-vendor-hero-section h2 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

.crngroup-vendor-hero-rail-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.crngroup-vendor-hero-rail,
.crngroup-vendor-hero-brand-rail {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 58px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 2px;
}

.crngroup-vendor-hero-rail::-webkit-scrollbar,
.crngroup-vendor-hero-brand-rail::-webkit-scrollbar {
    display: none;
}

.crngroup-vendor-hero-categories.is-slider .crngroup-vendor-hero-rail,
.crngroup-vendor-hero-brands.is-slider .crngroup-vendor-hero-brand-rail {
    justify-content: flex-start;
}

/* Categoria: compatta, mantiene l'immagine ufficiale CGK/WooCommerce. */
.crngroup-vendor-hero-category-card {
    position: relative;
    flex: 0 0 250px;
    width: 250px;
    height: 92px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(4,16,31,.72);
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    scroll-snap-align: center;
    text-decoration: none !important;
}

.crngroup-vendor-hero-category-card img,
.crngroup-vendor-hero-category-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.crngroup-vendor-hero-category-fallback {
    background: linear-gradient(135deg,#07172d,#155078);
}

.crngroup-vendor-hero-category-card:hover img {
    transform: scale(1.035);
}

.crngroup-vendor-hero-category-overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 12px 8px;
    color: #fff;
    text-align: left;
    background: linear-gradient(transparent,rgba(0,0,0,.84));
}

.crngroup-vendor-hero-category-overlay strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
}

.crngroup-vendor-hero-category-overlay small {
    margin-top: 3px;
    color: rgba(255,255,255,.82);
    font-size: 11px;
}

/* Marchi: più piccoli delle categorie. */
.crngroup-vendor-hero-brand-card {
    flex: 0 0 112px;
    width: 112px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    box-sizing: border-box;
    scroll-snap-align: center;
    color: #223247;
}

.crngroup-vendor-hero-brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crngroup-vendor-hero-brand-card strong {
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
}

/* Frecce: compaiono solo quando PHP rileva più elementi del visibile. */
.crngroup-vendor-hero-arrow {
    flex: 0 0 25px;
    width: 25px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    color: #223247;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.crngroup-vendor-hero-arrow:hover {
    background: #fff;
}

/* Mobile: hero più alta, una card categoria alla volta/scroll touch. */
@media (max-width: 640px) {
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_area,
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_img {
        height: 600px !important;
        max-height: 600px !important;
    }

    body.crngroup-wcfm-store-home #wcfmmp-store .banner_text {
        width: 94vw !important;
    }

    body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
        font-size: clamp(28px, 9vw, 40px) !important;
        margin-bottom: 8px !important;
    }

    .crngroup-vendor-hero-description {
        width: 94%;
        font-size: 12px;
        line-height: 1.35;
        max-height: 72px;
        overflow: hidden;
    }

    .crngroup-vendor-hero-section {
        margin-top: 7px;
    }

    .crngroup-vendor-hero-section h2 {
        font-size: 15px !important;
        margin-bottom: 5px !important;
    }

    .crngroup-vendor-hero-rail,
    .crngroup-vendor-hero-brand-rail {
        max-width: calc(100vw - 70px);
        justify-content: flex-start;
        gap: 10px;
    }

    .crngroup-vendor-hero-category-card {
        flex-basis: 230px;
        width: 230px;
        height: 82px;
    }

    .crngroup-vendor-hero-brand-card {
        flex-basis: 94px;
        width: 94px;
        height: 44px;
    }
}


/* =========================================================
   1.0.42 - GALLERIE HERO ALLINEATE A SHOP CRNGROUP
   ========================================================= */

/* CATEGORIE: card più alte, proporzioni e overlay come galleria CRNGROUP. */
.crngroup-vendor-hero-category-card {
    flex: 0 0 215px !important;
    width: 215px !important;
    height: 140px !important;
    border-radius: 14px !important;
    background: #07172d !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.30) !important;
}

.crngroup-vendor-hero-category-card img,
.crngroup-vendor-hero-category-fallback {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.crngroup-vendor-hero-category-overlay {
    padding: 38px 12px 10px !important;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.88) 80%) !important;
}

.crngroup-vendor-hero-category-overlay strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

.crngroup-vendor-hero-category-overlay small {
    display: none !important;
}

/* Con poche categorie restano centrate e immobili. */
.crngroup-vendor-hero-categories.is-static .crngroup-vendor-hero-rail {
    justify-content: center !important;
    overflow: hidden !important;
}

/* Con più categorie, viewport orizzontale come Shop CRNGROUP. */
.crngroup-vendor-hero-categories.is-slider .crngroup-vendor-hero-rail {
    width: min(100%, 1120px) !important;
    max-width: calc(100% - 58px) !important;
    justify-content: flex-start !important;
}

/* MARCHI: solo informativi, stessa logica visiva dei riquadri CRNGROUP. */
.crngroup-vendor-hero-brand-card {
    pointer-events: none !important;
    cursor: default !important;
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 64px !important;
    padding: 9px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.90) !important;
}

.crngroup-vendor-hero-brand-card img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Distanze più vicine al layout Shop CRNGROUP. */
.crngroup-vendor-hero-categories {
    margin-top: 10px !important;
}

.crngroup-vendor-hero-brands {
    margin-top: 16px !important;
}

.crngroup-vendor-hero-brands h2 {
    margin-bottom: 8px !important;
}

@media (max-width: 640px) {
    .crngroup-vendor-hero-category-card {
        flex-basis: 210px !important;
        width: 210px !important;
        height: 132px !important;
    }

    .crngroup-vendor-hero-brand-card {
        flex-basis: 96px !important;
        width: 96px !important;
        height: 54px !important;
    }
}


/* =========================================================
   1.0.43 - HERO DEFINITIVA: 4 CATEGORIE + 3 MARCHI IN MOVIMENTO
   ========================================================= */

/* Più respiro verticale alla hero. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_area,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_img {
    height: 650px !important;
    max-height: 650px !important;
}

/* Titolo, descrizione e titoli galleria leggibili su qualsiasi banner. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    color: #fff !important;
    -webkit-text-stroke: 0.55px rgba(0,0,0,.95);
    text-shadow:
        -1px -1px 0 rgba(0,0,0,.95),
         1px -1px 0 rgba(0,0,0,.95),
        -1px  1px 0 rgba(0,0,0,.95),
         1px  1px 0 rgba(0,0,0,.95),
         0 2px 5px rgba(0,0,0,.75) !important;
}

/* Descrizione un po' più leggibile ma sempre compatta. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    margin-bottom: 14px !important;
}

/* Titoli delle gallerie più evidenti. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

/* Le frecce non servono più: le due gallerie scorrono sempre automaticamente. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-arrow {
    display: none !important;
}

/* Viewport comune, centrato. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-rail,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
    width: min(100%, 1120px) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    gap: 14px !important;
    padding: 2px !important;
}

/* CATEGORIE: esattamente 4 visibili. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
    flex: 0 0 calc((100% - 42px) / 4) !important;
    width: calc((100% - 42px) / 4) !important;
    height: 145px !important;
}

/* MARCHI: esattamente 3 visibili. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
    flex: 0 0 calc((100% - 28px) / 3) !important;
    width: calc((100% - 28px) / 3) !important;
    height: 72px !important;
    padding: 10px 18px !important;
}

/* Più spazio tra le due sezioni. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-categories {
    margin-top: 14px !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brands {
    margin-top: 22px !important;
}

/* Recupera la banda bianca vuota sotto la hero sulla home vendor. */
body.crngroup-wcfm-store-home #wcfmmp-store .body_area,
body.crngroup-wcfm-store-home #wcfmmp-store .wcfmmp-store-content,
body.crngroup-wcfm-store-home #wcfmmp-store .right_side,
body.crngroup-wcfm-store-home #wcfmmp-store .left_sidebar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.crngroup-wcfm-store-home #wcfmmp-store .body_area:empty,
body.crngroup-wcfm-store-home #wcfmmp-store .wcfmmp-store-content:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Nella home vendor non esiste più contenuto commerciale sotto la hero:
   il footer può iniziare subito. */
body.crngroup-wcfm-store-home #wcfmmp-store {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 900px) {
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_area,
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_img {
        height: 680px !important;
        max-height: 680px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
        flex-basis: calc((100% - 14px) / 2) !important;
        width: calc((100% - 14px) / 2) !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
        flex-basis: calc((100% - 14px) / 2) !important;
        width: calc((100% - 14px) / 2) !important;
    }
}

@media (max-width: 640px) {
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_area,
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_img {
        height: 720px !important;
        max-height: 720px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
        font-size: 12px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
        font-size: 18px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
        flex-basis: 82% !important;
        width: 82% !important;
        height: 132px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
        flex-basis: calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
        height: 58px !important;
    }
}


/* =========================================================
   1.0.44 - GALLERIE HERO: HOVER FERMO + MARCHI COMPATTI
   ========================================================= */

/* Nessun elemento deve ingrandirsi/spostarsi al passaggio del mouse.
   Lo scorrimento automatico resta gestito solo dallo script. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card img,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-fallback,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card img {
    transform: none !important;
    transition: none !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card:hover,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card:hover img,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card:hover,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card:hover img {
    transform: none !important;
}

/* La galleria categorie resta esattamente com'è nella 1.0.43. */

/* MARCHI: tre elementi visibili, ma molto più compatti e centrati. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brands .crngroup-vendor-hero-rail-wrap {
    width: 100% !important;
    justify-content: center !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
    width: 620px !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    gap: 12px !important;
    overflow: hidden !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
    flex: 0 0 198px !important;
    width: 198px !important;
    height: 56px !important;
    padding: 8px 14px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.92) !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card img {
    max-width: 100% !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Su tablet restano tre elementi, leggermente più piccoli. */
@media (max-width: 900px) {
    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
        width: 520px !important;
        max-width: 92vw !important;
        gap: 10px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
        flex: 0 0 166px !important;
        width: 166px !important;
        height: 54px !important;
    }
}

/* Su mobile: tre visibili compatti, senza occupare tutta la hero. */
@media (max-width: 640px) {
    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
        width: calc(100vw - 44px) !important;
        max-width: calc(100vw - 44px) !important;
        gap: 8px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
        flex: 0 0 calc((100% - 16px) / 3) !important;
        width: calc((100% - 16px) / 3) !important;
        height: 48px !important;
        padding: 6px 8px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card img {
        max-height: 34px !important;
    }
}


/* =========================================================
   1.0.45 - MARQUEE CONTINUO + MARCHI DIMENSIONE CRNGROUP
   ========================================================= */

/* Il viewport è il contenitore: il rail può essere più largo e scorrere via transform. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-rail-wrap {
    overflow: hidden !important;
}

/* Rail categorie: larghezza naturale, nessuno scroll browser o movimento hover. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-rail {
    width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    justify-content: flex-start !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    user-select: none !important;
}

/* Mantiene esattamente le dimensioni categoria già approvate. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
    flex: 0 0 265px !important;
    width: 265px !important;
    height: 145px !important;
    transform: none !important;
    transition: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card img {
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

/* MARCHI: dimensioni equivalenti ai riquadri della galleria CRNGROUP. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brands .crngroup-vendor-hero-rail-wrap {
    width: 366px !important;       /* 3 x 112 + 2 x 15 circa */
    max-width: 92vw !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
    width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    user-select: none !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 56px !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
    user-select: none !important;
}

body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card img {
    max-width: 100% !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
}

/* Nessuna reazione al mouse: il movimento dipende solo dal marquee JS. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card:hover,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card:hover img,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card:hover,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card:hover img {
    transform: none !important;
}

/* Tablet/mobile: categorie più piccole ma marquee sempre attivo. */
@media (max-width: 900px) {
    body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
        flex-basis: 230px !important;
        width: 230px !important;
        height: 138px !important;
    }
}

@media (max-width: 640px) {
    body.crngroup-wcfm-store-home .crngroup-vendor-hero-category-card {
        flex-basis: 210px !important;
        width: 210px !important;
        height: 132px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brands .crngroup-vendor-hero-rail-wrap {
        width: 336px !important;
        max-width: calc(100vw - 36px) !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-rail {
        gap: 10px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-brand-card {
        flex-basis: 105px !important;
        width: 105px !important;
        height: 50px !important;
    }
}


/* =========================================================
   1.0.46 - HERO VENDOR: TIPOGRAFIA PULITA E LEGGIBILE
   ========================================================= */

/* Elimina il vecchio contorno aggressivo. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description,
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    -webkit-text-stroke: 0 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.88),
        0 4px 12px rgba(0,0,0,.55) !important;
    color: #fff !important;
}

/* Titolo negozio: protagonista ma pulito. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
    font-size: clamp(42px, 4.2vw, 64px) !important;
    line-height: 1.02 !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    margin: 0 0 12px !important;
}

/* Descrizione: leggibile ma subordinata al titolo. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
    width: min(92%, 820px) !important;
    margin: 0 auto 16px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    letter-spacing: .01em !important;
    text-align: center !important;
}

/* Titoli delle due gallerie: chiari, compatti, senza effetto "cartello". */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    margin: 0 0 10px !important;
    text-align: center !important;
}

/* Piccolo fondo traslucido solo ai titoli galleria:
   aumenta la leggibilità su banner molto chiari senza appesantire. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    background: rgba(0,0,0,.24) !important;
}

/* Mantiene i titoli perfettamente centrati. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section {
    text-align: center !important;
}

/* Descrizione con un velo molto leggero, utile su hero chiare. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
    display: inline-block !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,.16) !important;
}

/* Mobile */
@media (max-width: 640px) {
    body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
        font-size: clamp(30px, 9vw, 42px) !important;
        margin-bottom: 8px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
        width: 94% !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 5px 10px !important;
        margin-bottom: 10px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
        font-size: 17px !important;
        padding: 3px 9px !important;
        margin-bottom: 7px !important;
    }
}


/* =========================================================
   1.0.47 - HERO VENDOR: TESTI PULITI SENZA RIQUADRI
   ========================================================= */

/* Titolo negozio: bianco pulito con sola ombra morbida. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
    color: #fff !important;
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.82),
        0 4px 10px rgba(0,0,0,.48) !important;
    font-weight: 600 !important;
}

/* Descrizione: niente riquadro, testo bianco leggibile. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
    display: block !important;
    width: min(92%, 820px) !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.88),
        0 3px 8px rgba(0,0,0,.52) !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

/* Titoli galleria: bianchi, evidenti, senza fondo. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.90),
        0 3px 8px rgba(0,0,0,.55) !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Mantiene separazione visiva tra descrizione e prima galleria. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-categories {
    margin-top: 12px !important;
}

/* Mantiene separazione visiva tra categorie e marchi. */
body.crngroup-wcfm-store-home .crngroup-vendor-hero-brands {
    margin-top: 18px !important;
}

@media (max-width: 640px) {
    body.crngroup-wcfm-store-home .crngroup-vendor-hero-description {
        font-size: 13px !important;
        line-height: 1.38 !important;
        margin-bottom: 10px !important;
    }

    body.crngroup-wcfm-store-home .crngroup-vendor-hero-section h2 {
        font-size: 17px !important;
        margin-bottom: 7px !important;
    }
}


/* =========================================================
   1.0.48 - HERO VENDOR: FORZATURA COLORE TESTI SECONDARI
   ========================================================= */

/* Descrizione WCFM: forza il bianco anche su tutti i tag interni
   generati dall'editor visuale (p, strong, span, em, ecc.). */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description *,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description p,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description span,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description strong,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-description em {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke: 0 !important;
    background: transparent !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.92),
        0 3px 9px rgba(0,0,0,.62) !important;
}

/* Titoli Categorie / Marchi: specificità massima sul contesto banner WCFM. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-section > h2,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-categories > h2,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-brands > h2 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke: 0 !important;
    background: transparent !important;
    text-shadow:
        0 2px 4px rgba(0,0,0,.92),
        0 3px 9px rgba(0,0,0,.62) !important;
    font-weight: 700 !important;
}

/* Neutralizza eventuali colori ereditati da WCFM/banner_text. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-content {
    color: #fff !important;
}

body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-content h2,
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text .crngroup-vendor-hero-content p {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Mantiene SHOPCGK invariato rispetto alla 1.0.47. */
body.crngroup-wcfm-store-home #wcfmmp-store .banner_text > h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
