/*
 * StileJuventus.com — V9.404
 * Revisione sicura della palette V9.402.
 *
 * Obiettivo:
 * - Giorno: CTA primarie nere, testo bianco; stati editoriali attivi rossi.
 * - Notte: CTA e stati editoriali attivi gialli, testo sempre contrastato.
 * - Nessuna ricolorazione globale di componenti semantici o complessi.
 *
 * Componenti lasciati intenzionalmente ai fogli originali:
 * Legal/Centro assistenza e relativo footer, notifiche, azioni post/articoli,
 * Match Center e campo formazioni, Rosa, popup account, cover profili,
 * embed esterni, loghi, badge collaboratori e stati funzionali.
 */

html[data-slr-theme="light"]{
  --slr-min-bg:#fff;
  --slr-min-surface:#fff;
  --slr-min-soft:#f4f6f7;
  --slr-min-hover:#eef1f3;
  --slr-min-text:#0f1419;
  --slr-min-muted:#536471;
  --slr-min-line:#d9dfe3;
  --slr-min-accent:#980b35;
  --slr-min-primary:#0f1419;
  --slr-min-primary-hover:#292e33;
  --slr-min-primary-text:#fff;
}
html[data-slr-theme="dark"]{
  --slr-min-bg:#000;
  --slr-min-surface:#000;
  --slr-min-soft:#15181b;
  --slr-min-hover:#1d2125;
  --slr-min-text:#eff3f4;
  --slr-min-muted:#9aa4ad;
  --slr-min-line:#2f3336;
  --slr-min-accent:#f0b51d;
  --slr-min-primary:#f0b51d;
  --slr-min-primary-hover:#ffd258;
  --slr-min-primary-text:#171006;
}

/* --------------------------------------------------------------------------
   CTA primarie. Il selettore è volutamente limitato ai controlli realmente
   primari: non prende Segui, menu, azioni social, popup e controlli calcistici.
   -------------------------------------------------------------------------- */
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-social-auth-submit,
  .slr-settings-form-actions button[type="submit"],
  .slr-settings-primary-link,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-comment-submit,
  .slr-post-edit-save,
  .slr-ai-send,
  [data-comment-submit],
  [data-social-composer-submit],
  [data-home-inline-submit]
){
  background:#0f1419!important;
  background-color:#0f1419!important;
  background-image:none!important;
  border-color:#0f1419!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
}
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-social-auth-submit,
  .slr-settings-form-actions button[type="submit"],
  .slr-settings-primary-link,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-comment-submit,
  .slr-post-edit-save,
  .slr-ai-send,
  [data-comment-submit],
  [data-social-composer-submit],
  [data-home-inline-submit]
):not(:disabled):is(:hover,:focus-visible){
  background:#292e33!important;
  background-color:#292e33!important;
  border-color:#292e33!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-social-auth-submit,
  .slr-settings-form-actions button[type="submit"],
  .slr-settings-primary-link,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-comment-submit,
  .slr-post-edit-save,
  .slr-ai-send,
  [data-comment-submit],
  [data-social-composer-submit],
  [data-home-inline-submit]
){
  background:#f0b51d!important;
  background-color:#f0b51d!important;
  background-image:none!important;
  border-color:#f0b51d!important;
  color:#171006!important;
  -webkit-text-fill-color:#171006!important;
  box-shadow:none!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-social-auth-submit,
  .slr-settings-form-actions button[type="submit"],
  .slr-settings-primary-link,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-comment-submit,
  .slr-post-edit-save,
  .slr-ai-send,
  [data-comment-submit],
  [data-social-composer-submit],
  [data-home-inline-submit]
):not(:disabled):is(:hover,:focus-visible){
  background:#ffd258!important;
  background-color:#ffd258!important;
  border-color:#ffd258!important;
  color:#171006!important;
  -webkit-text-fill-color:#171006!important;
}

/* I discendenti delle sole CTA primarie ereditano sempre il contrasto corretto. */
html[data-slr-theme] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-social-auth-submit,
  .slr-settings-form-actions button[type="submit"],
  .slr-settings-primary-link,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-comment-submit,
  .slr-post-edit-save,
  .slr-ai-send,
  [data-comment-submit],
  [data-social-composer-submit],
  [data-home-inline-submit]
) :is(span,strong,b,i,em,small,svg){
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
  opacity:1!important;
}

/* --------------------------------------------------------------------------
   Navigazione e tab: soltanto lo stato attivo usa l'accento del tema.
   Gli hover non attivi restano neutrali e non trasformano il testo in bianco.
   -------------------------------------------------------------------------- */
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,
  .slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,
  .slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,
  .slr-roma-team-switch
) :is(.is-active,[aria-current="page"],[aria-selected="true"]){
  color:#980b35!important;
  -webkit-text-fill-color:#980b35!important;
  border-color:#980b35!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,
  .slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,
  .slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,
  .slr-roma-team-switch
) :is(.is-active,[aria-current="page"],[aria-selected="true"]){
  color:#f0b51d!important;
  -webkit-text-fill-color:#f0b51d!important;
  border-color:#f0b51d!important;
}
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,
  .slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,
  .slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,
  .slr-roma-team-switch
) :is(a,button):not(.is-active):not([aria-current="page"]):not([aria-selected="true"]):is(:hover,:focus-visible){
  background-color:#eef1f3!important;
  color:#0f1419!important;
  -webkit-text-fill-color:#0f1419!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-nav,.slr-social-mobile-nav,.slr-social-feed-tabs,.slr-social-explore-tabs,
  .slr-social-match-tabs,.slr-player-profile-tabs,.slr-author-profile-tabs,
  .slr-market-tabs,.slr-match-side-tabs,.slr-match-mobile-tabs,.slr-social-match-months,
  .slr-roma-team-switch
) :is(a,button):not(.is-active):not([aria-current="page"]):not([aria-selected="true"]):is(:hover,:focus-visible){
  background-color:#15181b!important;
  color:#eff3f4!important;
  -webkit-text-fill-color:#eff3f4!important;
}
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-feed-tabs,.slr-social-explore-tabs,.slr-social-match-tabs,
  .slr-player-profile-tabs,.slr-author-profile-tabs,.slr-market-tabs
) :is(.is-active,[aria-current="page"],[aria-selected="true"])::after{background:#980b35!important}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-feed-tabs,.slr-social-explore-tabs,.slr-social-match-tabs,
  .slr-player-profile-tabs,.slr-author-profile-tabs,.slr-market-tabs
) :is(.is-active,[aria-current="page"],[aria-selected="true"])::after{background:#f0b51d!important}

/* Link editoriali interni: rosso nel Giorno, giallo nella Notte. Legal e
   assistenza sono esclusi e mantengono esattamente la loro palette storica. */
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-article-body,.slr-social-post-body,.slr-comment-body,.slr-social-rich-editor
) a:not(.slr-social-primary-action){
  color:#980b35!important;
  -webkit-text-fill-color:#980b35!important;
  text-decoration-color:#980b35!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-article-body,.slr-social-post-body,.slr-comment-body,.slr-social-rich-editor
) a:not(.slr-social-primary-action){
  color:#f0b51d!important;
  -webkit-text-fill-color:#f0b51d!important;
  text-decoration-color:#f0b51d!important;
}

/* Composer: nel Giorno strumenti neutri/neri; nel Notte l'hover usa il giallo.
   Le azioni sotto post e articoli sono escluse e restano identiche all'originale. */
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-post-composer-tools,.slr-comment-composer-tools,.slr-home-inline-tools,
  .slr-comment-modal-tools
) button{
  color:#536471!important;
  -webkit-text-fill-color:#536471!important;
}
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(
  .slr-post-composer-tools,.slr-comment-composer-tools,.slr-home-inline-tools,
  .slr-comment-modal-tools
) button:is(:hover,:focus-visible){
  background:#eef1f3!important;
  color:#0f1419!important;
  -webkit-text-fill-color:#0f1419!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-post-composer-tools,.slr-comment-composer-tools,.slr-home-inline-tools,
  .slr-comment-modal-tools
) button{
  color:#9aa4ad!important;
  -webkit-text-fill-color:#9aa4ad!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(
  .slr-post-composer-tools,.slr-comment-composer-tools,.slr-home-inline-tools,
  .slr-comment-modal-tools
) button:is(:hover,:focus-visible){
  background:#15181b!important;
  color:#f0b51d!important;
  -webkit-text-fill-color:#f0b51d!important;
}

/* Badge collaboratori: unica eccezione cromatica permanente approvata. */
body.slr-site .slr-social-badge.is-editorial .slr-badge-bg{fill:#f0b51d!important}
body.slr-site .slr-social-badge.is-editorial .slr-badge-mark{stroke:#111!important}

/* Focus accessibile coerente; non modifica il colore del testo. */
html[data-slr-theme="light"] body.slr-site:not(.slr-legal-site) :is(a,button,input,textarea,select,[role="button"]):focus-visible{
  outline-color:#980b35!important;
}
html[data-slr-theme="dark"] body.slr-site:not(.slr-legal-site) :is(a,button,input,textarea,select,[role="button"]):focus-visible{
  outline-color:#f0b51d!important;
}
html[data-slr-theme] body.slr-site:not(.slr-legal-site) :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:var(--slr-min-accent)!important}

/* --------------------------------------------------------------------------
   Rimozione sfumature limitata ai componenti che non hanno valore grafico o
   semantico proprio. Sono esclusi Legal/Assistenza, Match Center, formazioni,
   profili, Rosa, notifiche, popup e media.
   -------------------------------------------------------------------------- */
html[data-slr-theme] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-settings-form-actions button,
  .slr-settings-primary-link,
  .slr-social-auth-submit,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button,
  .slr-support-form-card button[type="submit"],
  .slr-collabora-form button[type="submit"],
  .slr-social-submit-form button[type="submit"],
  .slr-consent-actions .is-accept,
  .slr-consent-preference-actions .is-accept,
  .slr-ai-composer-dock,
  .slr-ai-topbar,
  .slr-fan-club-directory-hero,
  .slr-fan-club-map-coming,
  .slr-fan-club-location-placeholder,
  .slr-news-intro,
  .slr-news-category-card,
  .slr-news-series-card,
  .slr-social-now,
  .slr-social-community-preview,
  .slr-social-player-card,
  .slr-social-match-pulse-card,
  .slr-social-side-match-body,
  .slr-standing-row.is-roma,
  .slr-social-side-standing>div>a.is-roma
){background-image:none!important}

/* Ombre colorate rimosse soltanto dai controlli minimali. */
html[data-slr-theme] body.slr-site:not(.slr-legal-site) :is(
  .slr-social-primary-action,
  .slr-post-composer-submit button,
  .slr-home-inline-composer-submit,
  .slr-settings-form-actions button,
  .slr-settings-primary-link,
  .slr-social-auth-submit,
  .slr-fan-club-primary,
  .slr-fan-club-header-action,
  .slr-fan-club-search button
){box-shadow:none!important}

/* Amministrazione: intervento ristretto a CTA e voce attiva. */
html[data-slr-theme="light"] body.admin-shell :is(button[type="submit"],.button.is-primary,.admin-primary-action){
  background:#0f1419!important;border-color:#0f1419!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background-image:none!important
}
html[data-slr-theme="light"] body.admin-shell :is(button[type="submit"],.button.is-primary,.admin-primary-action):not(:disabled):is(:hover,:focus-visible){
  background:#292e33!important;border-color:#292e33!important;color:#fff!important;-webkit-text-fill-color:#fff!important
}
html[data-slr-theme="dark"] body.admin-shell :is(button[type="submit"],.button.is-primary,.admin-primary-action){
  background:#f0b51d!important;border-color:#f0b51d!important;color:#171006!important;-webkit-text-fill-color:#171006!important;background-image:none!important
}
html[data-slr-theme="dark"] body.admin-shell :is(button[type="submit"],.button.is-primary,.admin-primary-action):not(:disabled):is(:hover,:focus-visible){
  background:#ffd258!important;border-color:#ffd258!important;color:#171006!important;-webkit-text-fill-color:#171006!important
}
html[data-slr-theme="light"] body.admin-shell .admin-menu-link.active{color:#980b35!important}
html[data-slr-theme="dark"] body.admin-shell .admin-menu-link.active{color:#f0b51d!important}
