/* AFM Manageriale · v1095
   Unico sfondo premium vettoriale, tutte le pagine incluse.
   Conserva il look del Listone v1094; mai reintrodurre il JPG sgranato.
   Solo decorazione, nessuna modifica a layout, controlli o dati. */
html:root {
  background-color:#061523!important;
}
html body,
html body[class] {
  --afm-stadium-strength:.82;
  position:relative!important;
  isolation:isolate!important;
  background-color:transparent!important;
  background-image:none!important;
  background-attachment:scroll!important;
}

/* One decorative layer for every page, including pages with no body class
   or without the navigation CSS. Specificity wins over the old
   body[class]::before + desktop-v4::before styles. */
html body::before,
html body[class]::before {
  content:""!important;
  display:block!important;
  position:fixed!important;
  inset:0!important;
  z-index:-1!important;
  width:auto!important;
  height:auto!important;
  pointer-events:none!important;
  background-color:#061523!important;
  background-image:url('/afm-premium-stadium-vector-v1094.svg')!important;
  background-size:cover!important;
  background-position:center 24%!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
  opacity:var(--afm-stadium-strength,.82)!important;
  filter:none!important;
  transform:none!important;
  transition:none!important;
  border:0!important;
}

/* Showpiece: atmospheric stadium + blue/gold floodlights.
   Listone retains close to the approved v1094 intensity. */
html body:is(
  .afm-home,.afm-diretta-gol,.afm-competition,.afm-nation,
  .afm-stadium,.afm-club-public,.afm-tour-public
) {--afm-stadium-strength:.94}
html body.afm-listone {--afm-stadium-strength:.90}
html body.afm-premium.coppe-watermark {--afm-stadium-strength:.93}

/* Normal reading: details, clubs, managers, classifications. */
html body:is(
  .afm-club,.afm-manager,.afm-roster,.afm-credits,
  .afm-lineup-history,.afm-live-mode
) {--afm-stadium-strength:.77}

/* Dense data and transactional pages: the same stadium but quieter. */
html body:is(
  .afm-lineup,.afm-trades,.afm-releases,.afm-reconfirmations,
  .afm-initial-bids,.afm-market-envelopes
) {--afm-stadium-strength:.70}

/* Staff, stress, real-time auctions: maximize contrast and performance. */
html body:is(
  .afm-admin-dashboard,.afm-audit-admin,.afm-cups-admin,
  .afm-auction-admin
) {--afm-stadium-strength:.62}

/* An older Coppe-only navy background may be stronger than the general
   background rule: disable it but leave illustrated cup cards untouched. */
html body.afm-premium.coppe-watermark {
  background:transparent!important;
}

/* Preserve the original premium stadium background on all screen sizes.
   Desktop fixed full-page decoration, with a calmer intensity to protect
   tables and operational grids. */
@media(min-width:901px) {
  html body,html body[class] {--afm-stadium-strength:.72}
  html body:is(.afm-home,.afm-diretta-gol,.afm-competition,.afm-nation,.afm-stadium,.afm-club-public) {
    --afm-stadium-strength:.82
  }
  html body.afm-listone,html body.afm-premium.coppe-watermark {--afm-stadium-strength:.82}
  html body:is(.afm-lineup,.afm-trades,.afm-releases,.afm-reconfirmations,.afm-initial-bids,.afm-market-envelopes) {
    --afm-stadium-strength:.56
  }
  html body:is(.afm-admin-dashboard,.afm-audit-admin,.afm-cups-admin,.afm-auction-admin) {
    --afm-stadium-strength:.50
  }
}
@media(max-width:900px) {
  html body,html body[class] {
    background-color:transparent!important;
    background-image:none!important;
  }
  html body::before,html body[class]::before {
    inset:-1%!important;
    background-position:center 19%!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  html body::before,html body[class]::before {animation:none!important;transition:none!important}
  /* Chi ha chiesto meno animazioni al telefono o al computer: niente movimento anche nel resto delle pagine. */
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* Segno di focus per chi usa la tastiera. :where() lo tiene a priorità zero: ogni regola più specifica delle pagine continua a vincere. */
:where(a,button,summary,select,[role="button"]):focus-visible{outline:2px solid #e1b33d;outline-offset:3px}