/**
 * Simracing.Fan — Stili Unificati
 *
 * Forza font-family e dimensioni base coerenti su tutte le sezioni del sito,
 * sovrascrivendo i default di ogni singolo plugin (Youzify, BuddyPress,
 * WooCommerce, WCFM, Classified Listing, Site Reviews, ecc.).
 *
 * I font globali sono configurati in Elementor → Site Settings → Typography:
 *   Primary: variabile --e-global-typography-primary-font-family
 *   Text: variabile --e-global-typography-text-font-family
 *
 * Questo file usa le stesse variabili Elementor per coerenza.
 * Se Elementor non è caricato, usa il fallback "Poppins, sans-serif".
 */


/* ==========================================================================
   1. BASE — Font-family e dimensioni default
   ========================================================================== */

body,
body .site,
body #buddypress,
body .buddypress-wrap,
body #youzify-bp,
body .youzify,
body .youzify-page,
body .woocommerce,
body .woocommerce-page,
body .wcfm-collapse,
body .wcfmmp-store-page,
body .rtcl,
body .glsr-default {
    font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
}

/* Headings */
body h1, body h2, body h3, body h4, body h5, body h6,
body .entry-title,
body .page-title,
body .widget-title,
body .youzify-widget-title,
body .woocommerce .product_title,
body .rtcl-listing-title,
body .wcfm_store_name {
    font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
    line-height: 1.3;
}


/* ==========================================================================
   2. BUDDYPRESS / YOUZIFY — Override "Open Sans" e "Helvetica Neue"
   ========================================================================== */

/* Youzify impone Open Sans su quasi tutto */
body .youzify *,
body #youzify-bp *,
body .youzify-wall-form *,
body .youzify-wall-content *,
body .youzify-profile-navmenu *,
body .youzify-sidebar *,
body .youzify-main-column *,
body .youzify-tab-content *,
body .youzify-account-settings-menu * {
    font-family: inherit;
}

/* BuddyPress */
body #buddypress *,
body .buddypress-wrap *,
body .bp-navs *,
body .activity-list *,
body .members-list * {
    font-family: inherit;
}


/* ==========================================================================
   3. WOOCOMMERCE — Override system font stack
   ========================================================================== */

body .woocommerce *,
body .woocommerce-page *,
body .woocommerce table *,
body .woocommerce .product *,
body .woocommerce-cart *,
body .woocommerce-checkout * {
    font-family: inherit;
}

/* Prezzo: stessa famiglia, leggermente più bold */
body .woocommerce .price,
body .woocommerce .woocommerce-Price-amount {
    font-family: inherit;
    font-weight: 600;
}


/* ==========================================================================
   4. WCFM MARKETPLACE — Override Helvetica Neue
   ========================================================================== */

body .wcfm-collapse *,
body .wcfmmp-store-page *,
body .wcfm_dashboard *,
body .wcfm-store-content *,
body .wcfm_store_tab * {
    font-family: inherit;
}


/* ==========================================================================
   5. CLASSIFIED LISTING (RTCL) — Override arial
   ========================================================================== */

body .rtcl *,
body .rtcl-listing-item *,
body .rtcl-single-listing *,
body .rtcl-post-form *,
body .rtcl-Reviews * {
    font-family: inherit;
}


/* ==========================================================================
   6. SITE REVIEWS — Override
   ========================================================================== */

body .glsr-default *,
body .glsr-review * {
    font-family: inherit;
}


/* ==========================================================================
   7. FORM ELEMENTS — Coerenza input/button/select
   ========================================================================== */

body input,
body textarea,
body select,
body button,
body .button,
body input[type="submit"],
body input[type="button"] {
    font-family: inherit;
    font-size: 14px;
}

body label {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================================
   8. DIMENSIONI TESTO — Uniformità base
   ========================================================================== */

/* Body text standard */
body p,
body li,
body td,
body th,
body span:not([class*="icon"]):not([class*="fa-"]):not([class*="dashicons"]),
body .entry-content,
body .entry-content p {
    font-size: inherit;
    line-height: inherit;
}

/* Small text (meta, date, caption) */
body .entry-meta,
body .entry-meta *,
body .post-meta,
body .byline,
body .posted-on,
body .cat-links,
body .activity-time-since,
body .rtcl-listing-meta,
body .rtcl-listing-meta *,
body .comment-metadata,
body .comment-metadata * {
    font-size: 13px;
}

/* Widget titles */
body .widget-title,
body .widget .widget-title,
body .youzify-widget-title {
    font-size: 16px;
    font-weight: 700;
}
