/* SerieAGoal v1.77 — scrollbar invisibile, scroll integro.
   Solo interfaccia pubblica; amministrazione e strumenti esterni esclusi.
   Non cambiare overflow, touch-action, wheel, keyboard, overscroll o JS. */
html[data-sg-theme],
html[data-sg-theme] body.sg-body,
html[data-sg-theme] body.sg-body * {
  scrollbar-width:none!important;     /* Firefox */
  -ms-overflow-style:none!important;   /* vecchi motori */
}
html[data-sg-theme]::-webkit-scrollbar,
html[data-sg-theme] body.sg-body::-webkit-scrollbar,
html[data-sg-theme] body.sg-body *::-webkit-scrollbar {
  width:0!important;
  height:0!important;
  display:none!important;              /* Chrome, Safari, Edge */
}


/* v1.94 - Solo Premier League INGLESE (football league 39), tema notte.
   Fonte grafica: PL Digital Negative fornito dal titolare del sito.
   Il leone bianco e' estratto dal PNG orizzontale, senza wordmark.
   NON sostituire mai l'originale nei loghi gia' dentro tessere bianche.
   Nessuna modifica al layout, al tema giorno o alla logica dei pronostici. */
@supports (content:url('/assets/img/sg-premier-league-lion-white-v194.png')) {
  :is(html[data-sg-theme="dark"],html[data-slr-theme="dark"])
  body.sg-body
  img:is([src*="/leagues/39.png"], [src*="/leagues/39.webp"], [src*="/leagues/39.svg"], [src*="/competitions/39.png"], [src*="/leagues/39?"]):not(:is(
    .sg-team-fixture-context i img,
    .sg-match-center-head>a>img,
    .sg-fixture-competition-head>img,
    .sg-sidebar-competition-logo img,
    .sg-league-logo img,
    .sg-competition-profile-logo img,
    .sg-editorial-league-logo img,
    .sg-competition-search-logo img,
    .sg-search-logo img,
    .sg-search2-row[data-kind="competition"] .sg-search2-media img,
    .sg-news-entity-logo img,
    .sg-logo-white-tile img,
    .sg-competition-logo-frame img,
    .sg-competition-logo-white img,
    [class*="logo-white"] img,
    [class*="logo-frame"] img,
    [class*="logo-tile"] img
  )){
    content:url('/assets/img/sg-premier-league-lion-white-v194.png') !important;
    object-fit:contain !important;
  }
  /* Dalla v1.76 il profilo competizione non ha piu' il riquadro bianco:
     qui il leone bianco va mostrato, malgrado il vecchio nome della classe. */
  :is(html[data-sg-theme="dark"],html[data-slr-theme="dark"])
  body.sg-body.sgw-editorial-mode .sg-main .sg-feed > .sg-competition-profile
  .sg-competition-profile-logo img:is([src*="/leagues/39.png"],[src*="/leagues/39.webp"],[src*="/leagues/39.svg"]){
    content:url('/assets/img/sg-premier-league-lion-white-v194.png') !important;
    object-fit:contain !important;
  }
}


/* v1.95 - Loghi bianchi in tema notte anche per Champions, Europa,
   Conference League ed Eredivisie. Si applica SOLO su superfici scure,
   mai dentro i riquadri bianchi gia' presenti sul sito.
   Implementazione non distruttiva: filtro sui loghi originali, tema giorno invariato.
   ID competizioni: Champions 2, Europa 3, Eredivisie 88, Conference 848. */
:is(html[data-sg-theme="dark"],html[data-slr-theme="dark"]) body.sg-body img:is(
  [src*="/leagues/2.png"],[src*="/leagues/2.webp"],[src*="/leagues/2.svg"],[src*="/competitions/2.png"],[src*="/leagues/2?"],
  [src*="/leagues/3.png"],[src*="/leagues/3.webp"],[src*="/leagues/3.svg"],[src*="/competitions/3.png"],[src*="/leagues/3?"],
  [src*="/leagues/88.png"],[src*="/leagues/88.webp"],[src*="/leagues/88.svg"],[src*="/competitions/88.png"],[src*="/leagues/88?"],
  [src*="/leagues/848.png"],[src*="/leagues/848.webp"],[src*="/leagues/848.svg"],[src*="/competitions/848.png"],[src*="/leagues/848?"]
):not(:is(
    .sg-team-fixture-context i img,
    .sg-match-center-head>a>img,
    .sg-fixture-competition-head>img,
    .sg-sidebar-competition-logo img,
    .sg-league-logo img,
    .sg-competition-profile-logo img,
    .sg-editorial-league-logo img,
    .sg-competition-search-logo img,
    .sg-search-logo img,
    .sg-search2-row[data-kind="competition"] .sg-search2-media img,
    .sg-news-entity-logo img,
    .sg-logo-white-tile img,
    .sg-competition-logo-frame img,
    .sg-competition-logo-white img,
    [class*="logo-white"] img,
    [class*="logo-frame"] img,
    [class*="logo-tile"] img
  )){
  filter: brightness(0) invert(1) saturate(0) !important;
}
/* Dalla v1.76 i profili competizione non hanno piu' il riquadro bianco:
   anche qui in tema notte il logo deve risultare bianco. */
:is(html[data-sg-theme="dark"],html[data-slr-theme="dark"]) body.sg-body.sgw-editorial-mode .sg-main .sg-feed > .sg-competition-profile .sg-competition-profile-logo img:is(
  [src*="/leagues/2.png"],[src*="/leagues/2.webp"],[src*="/leagues/2.svg"],
  [src*="/leagues/3.png"],[src*="/leagues/3.webp"],[src*="/leagues/3.svg"],
  [src*="/leagues/88.png"],[src*="/leagues/88.webp"],[src*="/leagues/88.svg"],
  [src*="/leagues/848.png"],[src*="/leagues/848.webp"],[src*="/leagues/848.svg"]
){
  filter: brightness(0) invert(1) saturate(0) !important;
}


/* SerieAGoal v1.96 — Ligue 1, bianco per il solo tema notte su superfici prive di riquadro.
   ID 61 API-Football. Resta originale dove il logo ha la propria tessera bianca. */
:is(html[data-sg-theme="dark"],html[data-slr-theme="dark"]) body.sg-body img:is(
  [src*="/leagues/61.png"],[src*="/leagues/61.webp"],[src*="/leagues/61.svg"],
  [src*="/competitions/61.png"],[src*="/leagues/61?"]
):not(:is(
    .sg-team-fixture-context i img,
    .sg-match-center-head>a>img,
    .sg-fixture-competition-head>img,
    .sg-sidebar-competition-logo img,
    .sg-league-logo img,
    .sg-competition-profile-logo img,
    .sg-editorial-league-logo img,
    .sg-competition-search-logo img,
    .sg-search-logo img,
    .sg-search2-row[data-kind="competition"] .sg-search2-media img,
    .sg-news-entity-logo img,
    .sg-logo-white-tile img,
    .sg-competition-logo-frame img,
    .sg-competition-logo-white img,
    [class*="logo-white"] img,
    [class*="logo-frame"] img,
    [class*="logo-tile"] img
  )){
  filter:brightness(0) invert(1) saturate(0) !important;
}
:is(html[data-sg-theme="dark"],html[data-slr-theme="dark"]) body.sg-body.sgw-editorial-mode .sg-main .sg-feed > .sg-competition-profile .sg-competition-profile-logo img:is(
  [src*="/leagues/61.png"],[src*="/leagues/61.webp"],[src*="/leagues/61.svg"]
){
  filter:brightness(0) invert(1) saturate(0) !important;
}

/* Banner ufficiale iOS nella colonna Seguici del footer, sotto Ultime notizie.
   Niente PWA, pop-up, o interventi ai flussi di abbonamento. */
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge,
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge:hover{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:190px !important;
  max-width:min(100%,190px) !important;
  height:auto !important;
  margin:10px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:7px !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:0 !important;
  text-decoration:none !important;
  transform:none !important;
  overflow:visible !important;
}
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:790 / 236 !important;
  object-fit:contain !important;
  border:0 !important;
  border-radius:7px !important;
  filter:none !important;
  box-shadow:none !important;
}
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge:hover img{
  opacity:.88 !important;
}
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge:focus-visible{
  outline:2px solid var(--sgf-accent,#70f0e5) !important;
  outline-offset:5px !important;
}
@media(max-width:440px){
  .sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge{width:182px !important;max-width:100% !important;}
}


/* v1.97: i loghi originali si vedono SEMPRE nei contenitori bianchi,
   inclusi Calendario/Risultati, Match Center, riquadri di ricerca e sidebar.
   La versione negativa sul canvas scuro resta attiva SOLO fuori da questi.
   Campionati 39, 2, 3, 848, 88, 61. Tema giorno intatto. */
:is(html[data-sg-theme="dark"],html[data-slr-theme="dark"]) body.sg-body :is(
  .sg-team-fixture-context i img,
  .sg-match-center-head>a>img,
  .sg-fixture-competition-head>img,
  .sg-sidebar-competition-logo img,
  .sg-league-logo img,
  .sg-editorial-league-logo img,
  .sg-competition-search-logo img,
  .sg-search-logo img,
  .sg-search2-row[data-kind="competition"] .sg-search2-media img,
  .sg-news-entity-logo img,
  .sg-logo-white-tile img,
  .sg-competition-logo-frame img,
  .sg-competition-logo-white img,
  [class*="logo-white"] img,
  [class*="logo-frame"] img,
  [class*="logo-tile"] img
):is(
  [src*="/leagues/39.png"],
  [src*="/leagues/39.webp"],
  [src*="/leagues/39.svg"],
  [src*="/competitions/39.png"],
  [src*="/leagues/39?"],
  [src*="/leagues/2.png"],
  [src*="/leagues/2.webp"],
  [src*="/leagues/2.svg"],
  [src*="/competitions/2.png"],
  [src*="/leagues/2?"],
  [src*="/leagues/3.png"],
  [src*="/leagues/3.webp"],
  [src*="/leagues/3.svg"],
  [src*="/competitions/3.png"],
  [src*="/leagues/3?"],
  [src*="/leagues/848.png"],
  [src*="/leagues/848.webp"],
  [src*="/leagues/848.svg"],
  [src*="/competitions/848.png"],
  [src*="/leagues/848?"],
  [src*="/leagues/88.png"],
  [src*="/leagues/88.webp"],
  [src*="/leagues/88.svg"],
  [src*="/competitions/88.png"],
  [src*="/leagues/88?"],
  [src*="/leagues/61.png"],
  [src*="/leagues/61.webp"],
  [src*="/leagues/61.svg"],
  [src*="/competitions/61.png"],
  [src*="/leagues/61?"]
){
  content:normal !important;
  filter:none !important;
}


/* v1.97: badge App Store piu' discreto, senza deformazioni. */
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge,
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge:hover{
  width:142px !important;
  max-width:min(100%,142px) !important;
  margin-top:8px !important;
}
.sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge img{
  width:100% !important;
  height:auto !important;
}

/* Usa la seconda colonna del footer che e' rimasta libera dopo la PWA.
   Struttura e temi ereditati dal footer nativo SerieAGoal. */
.sg-site-footer .sg-site-footer-secondary > .sg-footer-network-links{
  align-self:start;
  justify-self:start;
  width:100%;
  min-width:0;
  margin:0;
  padding:0 0 36px;
}
.sg-site-footer .sg-site-footer-secondary .sg-footer-network-links > strong{
  margin-bottom:5px;
}
.sg-site-footer .sg-footer-network-links a{
  overflow-wrap:anywhere;
}
@media (min-width:761px) and (max-width:1100px){
  .sg-site-footer .sg-site-footer-secondary{
    grid-template-columns:minmax(0,2fr) minmax(190px,.85fr) !important;
    gap:30px !important;
  }
  .sg-site-footer .sg-site-footer-secondary-links{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:25px !important;
  }
  .sg-site-footer .sg-site-footer-follow{grid-column:auto !important;}
}
@media(max-width:760px){
  .sg-site-footer .sg-site-footer-secondary > .sg-footer-network-links{
    padding-bottom:26px;
  }
  .sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge,
  .sg-site-footer .sg-site-footer-follow > a.sg-app-store-footer-badge:hover{
    width:134px !important;
    max-width:min(100%,134px) !important;
  }
}
