/*
  TICRONOMETRO — Theme bridge per include della home
  Da caricare DOPO gli include o incollare in fondo alla index, prima del footer.
  Serve a far ereditare i colori evento anche ai blocchi che hanno CSS interno proprio.
*/

body.home-page-custom-colors,
body[class*="home-theme-"]{
    --theme-primary: var(--primary, #123b67);
    --theme-primary-2: var(--primary-2, #1b5c97);
    --theme-surface: var(--surface, #ffffff);
    --theme-surface-soft: var(--surface-soft, #f1f6fb);
    --theme-text: var(--text, #0f2745);
    --theme-muted: var(--muted, #5b6775);
    --theme-border: var(--border, #d8e3ef);
}

/* Card/pannelli comuni degli include */
body.home-page-custom-colors .editorial-counters--bonus,
body.home-page-custom-colors .gazzetta-home-panel,
body.home-page-custom-colors .rss-home-panel,
body.home-page-custom-colors .social-home-panel,
body[class*="home-theme-"] .editorial-counters--bonus,
body[class*="home-theme-"] .gazzetta-home-panel,
body[class*="home-theme-"] .rss-home-panel,
body[class*="home-theme-"] .social-home-panel{
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
}

/* Titoli */
body.home-page-custom-colors .editorial-counters__hero h2,
body.home-page-custom-colors .gazzetta-home-panel h2,
body.home-page-custom-colors .rss-home-panel h2,
body.home-page-custom-colors .social-home-panel h2,
body[class*="home-theme-"] .editorial-counters__hero h2,
body[class*="home-theme-"] .gazzetta-home-panel h2,
body[class*="home-theme-"] .rss-home-panel h2,
body[class*="home-theme-"] .social-home-panel h2{
    color: var(--theme-text) !important;
}

/* Testi secondari */
body.home-page-custom-colors .editorial-counters__hero p,
body.home-page-custom-colors .gazzetta-home-panel p,
body.home-page-custom-colors .rss-home-panel p,
body.home-page-custom-colors .social-home-panel p,
body[class*="home-theme-"] .editorial-counters__hero p,
body[class*="home-theme-"] .gazzetta-home-panel p,
body[class*="home-theme-"] .rss-home-panel p,
body[class*="home-theme-"] .social-home-panel p{
    color: var(--theme-muted) !important;
}

/* Badge */
body.home-page-custom-colors .editorial-counters__label,
body.home-page-custom-colors .gazzetta-home-panel .home-eyebrow,
body.home-page-custom-colors .rss-home-panel .home-eyebrow,
body.home-page-custom-colors .social-home-panel .home-eyebrow,
body[class*="home-theme-"] .editorial-counters__label,
body[class*="home-theme-"] .gazzetta-home-panel .home-eyebrow,
body[class*="home-theme-"] .rss-home-panel .home-eyebrow,
body[class*="home-theme-"] .social-home-panel .home-eyebrow{
    background: var(--theme-surface-soft) !important;
    color: var(--theme-primary) !important;
    border-color: var(--theme-border) !important;
}

/* Pulsanti */
body.home-page-custom-colors .gazzetta-home-panel a[class*="button"],
body.home-page-custom-colors .rss-home-panel a[class*="button"],
body.home-page-custom-colors .social-home-panel a[class*="button"],
body[class*="home-theme-"] .gazzetta-home-panel a[class*="button"],
body[class*="home-theme-"] .rss-home-panel a[class*="button"],
body[class*="home-theme-"] .social-home-panel a[class*="button"]{
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-2)) !important;
    color: #fff !important;
    border-color: transparent !important;
}
