@charset "UTF-8";
/* ================================================================
   FANTABUNDESLIGA - DESIGN SYSTEM
   ================================================================ */
:root {
  --red:      #CC0022;
  --red-d:    #a0001a;
  --red-lt:   #fff0f2;
  --gold:     #D4920A;
  --gold-lt:  #fffbec;
  --nero:     #0f0f0f;
  --dark:     #1c1c1c;
  --g800:     #2a2a2a;
  --g600:     #555;
  --g400:     #999;
  --g200:     #e0e0e0;
  --g100:     #f0f0f0;
  --g50:      #f7f7f7;
  --bianco:   #ffffff;
  --verde:    #166534;
  --verde-lt: #dcfce7;
  --blu:      #1e40af;
  --blu-lt:   #dbeafe;

  --font-t: 'Barlow Condensed', sans-serif;
  --font-b: 'Barlow', sans-serif;
  --r:  8px;
  --rl: 14px;
  --sh:  0 1px 8px rgba(0,0,0,.07);
  --shm: 0 4px 24px rgba(0,0,0,.13);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--g50); color: var(--nero); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-b); cursor: pointer; }
input, select, textarea { font-family: var(--font-b); }
img { max-width: 100%; display: block; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: var(--bianco); border-bottom: 1px solid var(--g200);
  height: 62px; transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icona {
  width: 36px; height: 36px; background: var(--red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-t); font-weight: 800; font-size: 14px; color: #fff; letter-spacing: -.5px;
}
.logo-testo { font-family: var(--font-t); font-size: 21px; font-weight: 700; color: var(--nero); }
.logo-testo strong { color: var(--red); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--r); font-size: 14px; font-weight: 500;
  color: var(--g600); transition: all .15s;
}
.nav-links a:hover { background: var(--g100); color: var(--nero); }
.nav-sep { width: 1px; height: 22px; background: var(--g200); margin: 0 6px; }
.nav-icon,
.mob-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; font-size: 15px; line-height: 1; opacity: .9; }
.btn-nav {
  background: var(--red); color: #fff; padding: 8px 18px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; transition: background .15s;
}
.btn-nav:hover { background: var(--red-d); color: #fff; }
.nav-burger {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 4px; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--nero); border-radius: 2px; transition: .2s; }
@media(max-width:900px) {
  .nav-inner {
    padding: 0 14px;
  }
  .logo {
    min-width: 0;
    flex: 1;
  }
  .logo-testo {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bianco);
    padding: 16px;
    border-bottom: 1px solid var(--g200);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .btn-nav {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-sep {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
}
@media(max-width:640px) {
  .navbar,
  .nav-inner {
    height: 58px;
  }
  .nav-links {
    top: 58px;
    padding: 14px;
  }
  .logo-icona {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .logo-testo {
    font-size: 16px;
    max-width: calc(100vw - 90px);
  }
}

/* ================================================================
   BOTTONI
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--red);    color: #fff; }
.btn-primary:hover   { background: var(--red-d); }
.btn-secondary { background: var(--g100);   color: var(--nero); border: 1px solid var(--g200); }
.btn-secondary:hover { background: var(--g200); }
.btn-outline   { background: transparent;   color: var(--nero); border: 1.5px solid var(--g200); }
.btn-outline:hover   { border-color: var(--nero); }
.btn-success   { background: var(--verde);  color: #fff; }
.btn-success:hover   { background: #14532d; }
.btn-danger    { background: var(--red);    color: #fff; }
.btn-danger:hover    { background: var(--red-d); }
.btn-gold      { background: var(--gold);   color: #fff; }
.btn-gold:hover      { background: #b07a08; }
.btn-dark      { background: var(--nero);   color: #fff; }
.btn-dark:hover      { background: var(--dark); }
.btn-sm  { padding: 6px 13px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 16px; border-radius: var(--rl); }
.btn-block { display: flex; width: 100%; }

/* ================================================================
   LAYOUT BASE
   ================================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   LANDING PAGE
   ================================================================ */
.landing { padding-top: 62px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #160005 50%, #220010 100%);
  padding: 90px 0 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 60%, rgba(204,0,34,.2) 0, transparent 50%),
              radial-gradient(ellipse at 78% 25%, rgba(204,0,34,.1) 0, transparent 45%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
@media(max-width:900px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(204,0,34,.18); border: 1px solid rgba(204,0,34,.3);
  color: #ff7090; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.tag-dot { width: 7px; height: 7px; background: #ff4060; border-radius: 50%; animation: pulsa 2s infinite; }
@keyframes pulsa { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero h1 {
  font-family: var(--font-t); font-size: 68px; font-weight: 800;
  line-height: .93; color: #fff; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.58); max-width: 460px; margin-bottom: 32px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.25); }
.hero-cta .btn-outline:hover { border-color: rgba(255,255,255,.7); }
.hero-numeri { display: flex; gap: 24px; }
.hn strong { font-family: var(--font-t); font-size: 32px; font-weight: 800; color: #fff; line-height: 1; display: block; }
.hn span   { font-size: 12px; color: rgba(255,255,255,.4); }
.hn-sep    { width: 1px; background: rgba(255,255,255,.12); }
@media(max-width:640px) {
  .container { padding: 0 16px; }
  .hero { padding: 72px 0 54px; }
  .hero h1 { font-size: 46px; line-height: .95; }
  .hero-sub { font-size: 15px; max-width: 100%; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-numeri { gap: 14px; justify-content: space-between; }
  .hn strong { font-size: 26px; }
  .sh h2 { font-size: 34px; }
  .cta-finale h2 { font-size: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 10px 14px; }
}

/* Campo preview */
.campo-preview {
  background: linear-gradient(180deg, #1a601a, #124212);
  border: 2px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.campo-preview::before, .campo-preview::after { content:''; position:absolute; }
.campo-preview::before { left:6%;right:6%;top:50%;height:1px;background:rgba(255,255,255,.12); }
.campo-preview::after  { top:50%;left:50%;width:80px;height:80px;margin:-40px 0 0 -40px;border:1px solid rgba(255,255,255,.12);border-radius:50%; }
.cp-fila { display:flex;justify-content:center;gap:10px;position:relative;z-index:2; }
.cp-dot  { width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-t);font-size:12px;font-weight:700;border:2px solid rgba(255,255,255,.3); }
.cp-dot.p  {background:#f5c518;color:#333}
.cp-dot.d  {background:#1e40af;color:#fff}
.cp-dot.c  {background:#166534;color:#fff}
.cp-dot.a  {background:#cc0022;color:#fff}

/* Sezioni landing */
.sezione { padding: 80px 0; }
.sezione-alt { background: var(--bianco); }
.sh { text-align: center; margin-bottom: 48px; }
.sh-etichetta {
  display: inline-block; background: var(--red-lt); color: var(--red);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
}
.sh h2 { font-family: var(--font-t); font-size: 42px; font-weight: 800; letter-spacing: -.5px; }
.sh p   { font-size: 16px; color: var(--g600); margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Passaggi */
.passaggi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:860px){ .passaggi-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .passaggi-grid { grid-template-columns: 1fr; } }
.passaggio {
  background: var(--g50); border: 1px solid var(--g200); border-radius: var(--rl);
  padding: 26px 22px; transition: box-shadow .2s, transform .2s;
}
.passaggio:hover { box-shadow: var(--shm); transform: translateY(-3px); }
.passaggio-num { font-family: var(--font-t); font-size: 50px; font-weight: 800; color: var(--red); opacity: .16; line-height: 1; margin-bottom: 12px; }
.passaggio h3   { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.passaggio p    { font-size: 14px; color: var(--g600); line-height: 1.6; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media(max-width:860px){ .features-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:520px){ .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bianco); border: 1px solid var(--g200); border-radius: var(--rl);
  padding: 24px 22px; transition: box-shadow .2s;
}
.feature:hover { box-shadow: var(--sh); }
.feature.scuro { background: var(--nero); border-color: var(--nero); }
.feature.scuro h3 { color: #fff; }
.feature.scuro p  { color: rgba(255,255,255,.5); }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p  { font-size: 14px; color: var(--g600); line-height: 1.6; }

/* Tabella punti */
.punti-wrap { overflow-x: auto; margin-bottom: 12px; }
.punti-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.punti-tbl th {
  background: var(--nero); color: #fff;
  font-family: var(--font-t); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 11px 16px; text-align: center;
}
.punti-tbl th:first-child { text-align: left; }
.punti-tbl td { padding: 10px 16px; text-align: center; border-bottom: 1px solid var(--g100); }
.punti-tbl td:first-child { text-align: left; font-weight: 500; }
.punti-tbl tr:hover td { background: var(--g50); }
.punti-tbl tr.malus td { color: var(--red); }
.punti-tbl tr.malus td:first-child { color: var(--nero); }

/* CTA finale */
.cta-finale { padding: 80px 0; background: var(--red); text-align: center; }
.cta-finale h2 { font-family: var(--font-t); font-size: 44px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-finale p  { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
.cta-finale .btn-primary { background: #fff; color: var(--red); }
.cta-finale .btn-primary:hover { background: var(--g100); }

/* Footer */
.footer { background: var(--nero); color: rgba(255,255,255,.4); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-t); font-size: 18px; font-weight: 600; color: rgba(255,255,255,.75); }
.footer-logo .logo-icona { width: 28px; height: 28px; font-size: 11px; }
.footer-logo strong { color: var(--red); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.4); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page { min-height: 100vh; background: var(--g50); display: flex; flex-direction: column; }
.auth-topbar {
  padding: 0 24px; height: 62px; background: var(--bianco); border-bottom: 1px solid var(--g200);
  display: flex; align-items: center; justify-content: space-between;
}
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  background: var(--bianco); border: 1px solid var(--g200); border-radius: var(--rl);
  padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shm);
}
.auth-card h1 { font-family: var(--font-t); font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--g600); margin-bottom: 26px; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--g400); }
.auth-sep::before, .auth-sep::after { content:''; flex: 1; height: 1px; background: var(--g200); }
.auth-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--g600); }
.auth-foot a { color: var(--red); font-weight: 600; }

/* ================================================================
   FORM
   ================================================================ */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--g800); margin-bottom: 6px; }
.fc {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--g200); border-radius: var(--r);
  font-size: 14px; background: var(--bianco); color: var(--nero); outline: none; transition: border-color .15s;
}
.fc:focus { border-color: var(--red); }
.fc:disabled { background: var(--g100); cursor: not-allowed; color: var(--g400); }
.fc.errore { border-color: var(--red); }
.f-hint { font-size: 12px; color: var(--g400); margin-top: 5px; }
.f-err  { font-size: 12px; color: var(--red);  margin-top: 5px; }
select.fc { cursor: pointer; }
textarea.fc { resize: vertical; min-height: 80px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.fg-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fg-check input[type=checkbox] { margin-top: 3px; cursor: pointer; accent-color: var(--red); }
.naz-picker { position: relative; }
.naz-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bianco);
  border: 1px solid var(--g200);
  border-radius: 12px;
  box-shadow: var(--shm);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}
.naz-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--nero);
  font-size: 14px;
  line-height: 1.35;
}
.naz-option:hover,
.naz-option:focus {
  background: var(--g50);
}
.naz-empty {
  padding: 10px 12px;
  color: var(--g400);
  font-size: 13px;
}

/* ================================================================
   APP LAYOUT
   ================================================================ */
.app-page { display: flex; flex-direction: column; min-height: 100vh; background: var(--g50); }
.app-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bianco); border-bottom: 1px solid var(--g200);
  height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
}
.app-nav { display: flex; gap: 2px; }
.app-nav a {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--g600); transition: all .15s;
}
.app-nav a:hover { background: var(--g100); color: var(--nero); }
.app-nav a.active { background: var(--red-lt); color: var(--red); }
.user-menu { display: flex; align-items: center; gap: 10px; position: relative; }
.notif-bell {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--g200);
  background: var(--bianco);
  color: var(--nero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.notif-bell:hover { background: var(--g50); }
.notif-bell-icon { font-size: 15px; line-height: 1; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-badge.hidden { display: none; }
.user-av {
  width: 35px; height: 35px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-t); font-size: 13px; font-weight: 800; color: #fff; cursor: pointer;
}
.user-dd {
  position: absolute; top: 48px; right: 0; width: 200px; z-index: 400;
  background: var(--bianco); border: 1px solid var(--g200); border-radius: var(--rl);
  box-shadow: var(--shm); overflow: hidden; display: none;
}
.user-dd.aperto { display: block; }
.notif-dd {
  position: absolute;
  top: 48px;
  right: 46px;
  width: 320px;
  max-height: 420px;
  z-index: 401;
  background: var(--bianco);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  box-shadow: var(--shm);
  overflow: hidden;
  display: none;
}
.notif-dd.aperto { display: block; }
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--g100);
}
.notif-markall {
  border: none;
  background: none;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.notif-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}
.notif-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  display: block;
  cursor: pointer;
}
.notif-item:hover { background: var(--g50); }
.notif-item.unread {
  background: var(--red-lt);
}
.notif-item.unread:hover {
  background: #ffe6ea;
}
.notif-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nero);
}
.notif-item-body {
  margin-top: 4px;
  font-size: 12px;
  color: var(--g600);
  line-height: 1.45;
}
.notif-item-time,
.notif-empty {
  margin-top: 6px;
  font-size: 11px;
  color: var(--g400);
}
.notif-empty {
  padding: 12px;
}
.user-dd a, .user-dd button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 15px; font-size: 14px; color: var(--nero); background: none; border: none;
  text-align: left; transition: background .15s; cursor: pointer;
}
.user-dd a:hover, .user-dd button:hover { background: var(--g50); }
.user-dd .sep { height: 1px; background: var(--g200); }
.user-dd .esci { color: var(--red); }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bianco); border-top: 1px solid var(--g200); padding: 5px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
@media(max-width:768px) { .app-nav { display: none; } .mob-nav { display: flex; justify-content: space-around; } }
@media(max-width:640px) {
  .notif-dd {
    right: 0;
    left: auto;
    width: min(92vw, 320px);
  }
}
.mob-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 10px; font-size: 10px; font-weight: 500; color: var(--g400); transition: color .15s;
}
.mob-item.active { color: var(--red); }
.mob-icon { font-size: 20px; line-height: 1; }

/* ================================================================
   CONTENUTO APP
   ================================================================ */
.app-main { flex: 1; padding: 28px 24px; max-width: 1200px; margin: 0 auto; width: 100%; }
@media(max-width:768px) { .app-main { padding: 18px 14px 80px; } }
.pagina-titolo { font-family: var(--font-t); font-size: 30px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.pagina-sub    { font-size: 14px; color: var(--g600); margin-bottom: 22px; }
@media(max-width:640px) {
  .pagina-titolo { font-size: 26px; }
  .pagina-sub { font-size: 13px; }
  .app-header { padding: 0 14px; }
}

/* Card */
.card { background: var(--bianco); border: 1px solid var(--g200); border-radius: var(--rl); overflow: hidden; }
.card + .card { margin-top: 18px; }
.card-testa {
  padding: 14px 18px; border-bottom: 1px solid var(--g100);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.card-titolo { font-size: 15px; font-weight: 700; }
.card-corpo  { padding: 18px; }

/* Stats box */
.stats-riga { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
@media(max-width:768px) { .stats-riga { grid-template-columns: repeat(2,1fr); } }
.stat-box {
  background: var(--bianco); border: 1px solid var(--g200); border-radius: var(--rl);
  padding: 16px;
}
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--g600); margin-bottom: 4px; }
.stat-valore { font-family: var(--font-t); font-size: 30px; font-weight: 800; line-height: 1; }
.stat-sub    { font-size: 12px; color: var(--g400); margin-top: 3px; }
.stat-box.rosso { background: var(--red); border-color: var(--red); }
.stat-box.rosso .stat-label  { color: rgba(255,255,255,.65); }
.stat-box.rosso .stat-valore { color: #fff; }
.stat-box.rosso .stat-sub    { color: rgba(255,255,255,.5); }
.stat-box.oro   { background: var(--gold); border-color: var(--gold); }
.stat-box.oro .stat-label  { color: rgba(255,255,255,.7); }
.stat-box.oro .stat-valore { color: #fff; }

/* Dashboard grid */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media(max-width:900px) { .dash-grid { grid-template-columns: 1fr; } }

/* Tabella classifica */
.classifica-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.classifica-tbl th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--g400); padding: 9px 12px; border-bottom: 2px solid var(--g200); text-align: left;
}
.classifica-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.classifica-tbl tr:last-child td { border: none; }
.classifica-tbl tr:hover td { background: var(--g50); }
.classifica-tbl tr.mia td { background: var(--red-lt); }
.pos-num { font-family: var(--font-t); font-size: 17px; font-weight: 800; color: var(--g200); display: block; text-align: center; width: 32px; }
.pos-num.p1 { color: #D4920A; }
.pos-num.p2 { color: #888; }
.pos-num.p3 { color: #b87333; }
.tm-nome { font-weight: 700; font-size: 14px; }
.tm-sub  { font-size: 12px; color: var(--g400); }
.tc { text-align: center !important; }
@media(max-width:768px) {
  .classifica-tbl th,
  .classifica-tbl td {
    padding: 9px 8px;
  }
}

/* Badge ruolo */
.badge-r {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700;
}
.badge-r.p  { background: var(--blu-lt);   color: var(--blu); }
.badge-r.d  { background: var(--verde-lt); color: var(--verde); }
.badge-r.c  { background: var(--gold-lt);  color: #92580a; }
.badge-r.a  { background: var(--red-lt);   color: var(--red); }

/* ================================================================
   CAMPO / FORMAZIONE
   ================================================================ */
.campo {
  background: linear-gradient(180deg, #1e6b1e, #145014);
  border-radius: var(--rl); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 560px; position: relative; overflow: hidden;
}
.campo-linea  { position: absolute; left: 6%; right: 6%; height: 1px; background: rgba(255,255,255,.13); }
.campo-cerchio {
  position: absolute; top: 50%; left: 50%;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
}
.campo-fila   { display: flex; justify-content: center; align-items: flex-start; gap: 12px; flex: 1; position: relative; z-index: 2; }
.slot         { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: transform .15s; min-width: 68px; }
.slot:hover   { transform: scale(1.08); }
.slot-cerchio {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-t); font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.3); transition: border-color .15s;
}
.slot-cerchio.vuoto  { background: rgba(255,255,255,.08); border-style: dashed; color: rgba(255,255,255,.3); font-size: 20px; font-weight: 300; }
.slot-cerchio.s-p    { background: #f5c518; color: #333; }
.slot-cerchio.s-d    { background: #1e40af; color: #fff; }
.slot-cerchio.s-c    { background: #166534; color: #fff; }
.slot-cerchio.s-a    { background: #cc0022; color: #fff; }
.slot-cerchio.cap    { border: 3px solid var(--gold) !important; }
.slot-nome  { font-size: 11px; color: rgba(255,255,255,.9); font-weight: 700; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.slot-punti { font-size: 10px; color: rgba(255,255,255,.4); }

/* ================================================================
   ASTA
   ================================================================ */
.asta-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
@media(max-width:900px) { .asta-layout { grid-template-columns: 1fr; } }
.asta-box {
  background: var(--nero); color: #fff; border-radius: var(--rl); padding: 22px;
  position: sticky; top: 72px;
}
@media(max-width:900px) {
  .asta-box { position: static; }
}
.asta-titolo  { font-family: var(--font-t); font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.asta-giocatore { font-family: var(--font-t); font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.asta-ruolo     { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.asta-offerta   { background: var(--red); border-radius: var(--r); padding: 14px; text-align: center; margin-bottom: 14px; }
.asta-offerta-lbl { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.asta-offerta-val { font-family: var(--font-t); font-size: 44px; font-weight: 800; line-height: 1; }
.asta-offerta-da  { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 3px; }
.asta-timer       { text-align: center; margin: 12px 0; }
.asta-timer-val   { font-family: var(--font-t); font-size: 48px; font-weight: 800; color: var(--gold); }
.asta-timer-lbl   { font-size: 11px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .05em; }
.asta-pulsanti { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.asta-quick {
  padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65); font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: background .15s;
}
.asta-quick:hover { background: rgba(255,255,255,.16); }
.partecipanti { margin-top: 18px; }
.part-tit { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.3); margin-bottom: 8px; }
.part-riga { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.part-riga:last-child { border: none; }
.part-budget { color: rgba(255,255,255,.4); }

/* Tabella giocatori */
.gioc-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.gioc-tbl th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--g400); padding: 9px 11px; border-bottom: 2px solid var(--g200); text-align: left; cursor: pointer; user-select: none;
}
.gioc-tbl th:hover { color: var(--nero); }
.gioc-tbl td { padding: 10px 11px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.gioc-tbl tr:last-child td { border: none; }
.gioc-tbl tr:hover td { background: var(--g50); cursor: pointer; }
.gioc-tbl tr.evidenziato td { background: var(--red-lt); }
.gioc-nome   { font-weight: 600; }
.gioc-club   { font-size: 12px; color: var(--g400); }
.gioc-prezzo { font-family: var(--font-t); font-size: 16px; font-weight: 700; }

/* ================================================================
   VOTI ADMIN
   ================================================================ */
.voti-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.voti-tbl th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--g400); padding: 9px 10px; border-bottom: 2px solid var(--g200);
  background: var(--g50); text-align: left; white-space: nowrap;
}
.voti-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.voti-tbl tr:last-child td { border: none; }
.vi {
  width: 56px; padding: 5px 7px; border: 1.5px solid var(--g200); border-radius: 6px;
  font-size: 14px; text-align: center; outline: none; font-family: var(--font-b);
}
.vi:focus { border-color: var(--red); }
.vi-sm {
  width: 44px; padding: 4px 5px; border: 1.5px solid var(--g200); border-radius: 6px;
  font-size: 13px; text-align: center; outline: none; font-family: var(--font-b);
}
.vi-sm:focus { border-color: var(--red); }
.bonus-riga { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bonus-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.bonus-item input[type=checkbox] { accent-color: var(--red); cursor: pointer; }

/* ================================================================
   PANNELLO OWNER
   ================================================================ */
.owner-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bianco); border-right: 1px solid var(--g200); min-height: calc(100vh - 60px);
  padding: 20px 0;
}
.owner-sidebar .owner-sezione-titolo {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--g400); padding: 12px 18px 6px; margin-top: 8px;
}
.owner-sidebar .owner-sezione-titolo:first-child { margin-top: 0; }
.owner-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--g600);
  transition: all .15s; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.owner-menu-item:hover { background: var(--g50); color: var(--nero); }
.owner-menu-item.active { background: var(--red-lt); color: var(--red); font-weight: 600; }
.owner-layout { display: flex; min-height: calc(100vh - 60px); }
.owner-contenuto { flex: 1; padding: 28px; overflow: auto; }

/* Owner mobile toggle button */
.owner-mob-toggle {
  display: none;
  width: 100%; padding: 12px 18px;
  background: var(--g50); border: none; border-bottom: 1px solid var(--g200);
  font-size: 14px; font-weight: 600; color: var(--nero);
  cursor: pointer; text-align: left; gap: 8px; align-items: center;
}

@media(max-width:900px) {
  .owner-layout { flex-direction: column; }
  .owner-mob-toggle { display: flex; }
  .owner-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--g200);
    padding: 0;
  }
  .owner-sidebar-menu {
    display: none;
    padding: 8px 0;
  }
  .owner-sidebar-menu.aperto { display: block; }
  .owner-contenuto { padding: 14px 12px 90px; }
  .owner-sezione-titolo { padding: 10px 16px 4px !important; }
  .owner-menu-item { padding: 10px 16px !important; font-size: 15px !important; }
  /* Card più compatte su mobile */
  .card-testa { flex-wrap: wrap; gap: 6px; }
  .card-testa .btn { font-size: 12px; padding: 5px 10px; }
}

/* ================================================================
   ALERT / TOAST
   ================================================================ */
.alert {
  padding: 11px 15px; border-radius: var(--r); font-size: 14px;
  margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px;
}
.alert-err  { background: var(--red-lt);   color: #8b0015; border: 1px solid #f5b8c0; }
.alert-ok   { background: var(--verde-lt); color: var(--verde); border: 1px solid #bbf7d0; }
.alert-info { background: var(--blu-lt);   color: var(--blu);   border: 1px solid #bfdbfe; }
.alert-warn { background: var(--gold-lt);  color: #92580a;      border: 1px solid #fde68a; }

.toast-cont { position: fixed; top: 70px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--nero); color: #fff; padding: 12px 17px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; box-shadow: var(--shm);
  display: flex; align-items: center; gap: 10px; max-width: 310px;
  animation: slideIn .2s ease;
}
.toast.ok   { background: var(--verde); }
.toast.err  { background: var(--red);   }
.toast.warn { background: var(--gold);  color: #333; }
@keyframes slideIn { from { transform: translateX(18px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.aperto { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bianco); border-radius: var(--rl);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  transform: translateY(12px); transition: transform .2s;
  box-shadow: 0 8px 48px rgba(0,0,0,.2);
}
.modal-overlay.aperto .modal { transform: translateY(0); }
.modal-testa {
  padding: 18px 22px; border-bottom: 1px solid var(--g200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-titolo { font-size: 18px; font-weight: 700; }
.modal-chiudi {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--g100); cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.modal-chiudi:hover { background: var(--g200); }
.modal-corpo { padding: 22px; }
.modal-piede {
  padding: 14px 22px; border-top: 1px solid var(--g200);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ================================================================
   TABS
   ================================================================ */
.tabs { display: flex; border-bottom: 2px solid var(--g200); margin-bottom: 22px; overflow-x: auto; gap: 0; }
.tab-btn {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--g400);
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .15s; white-space: nowrap;
}
.tab-btn:hover  { color: var(--nero); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-pane  { display: none; }
.tab-pane.active { display: block; }

/* ================================================================
   BADGE / UTILITY
   ================================================================ */
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 12px; font-size: 11px; font-weight: 700;
}
.badge-verde  { background: var(--verde-lt); color: var(--verde); }
.badge-rosso  { background: var(--red-lt);   color: var(--red);   }
.badge-oro    { background: var(--gold-lt);  color: #92580a; }
.badge-grigio { background: var(--g100);     color: var(--g600);  }
.badge-blu    { background: var(--blu-lt);   color: var(--blu);   }

.mt4  { margin-top: 4px;  } .mt8  { margin-top: 8px;  } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8  { margin-bottom: 8px;  } .mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.testo-rosso   { color: var(--red);   } .testo-verde  { color: var(--verde); }
.testo-grigio  { color: var(--g400);  } .testo-oro    { color: var(--gold); }
.f700 { font-weight: 700; } .f800 { font-weight: 800; }
.ff   { font-family: var(--font-t); }
.flex     { display: flex; }
.flex-c   { display: flex; align-items: center; }
.flex-cb  { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap6  { gap: 6px;  } .gap8  { gap: 8px;  } .gap10 { gap: 10px; }
.gap12 { gap: 12px; } .gap16 { gap: 16px; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--g400); gap: 10px; }
.spin    { width: 18px; height: 18px; border: 2px solid var(--g200); border-top-color: var(--red); border-radius: 50%; animation: gira .6s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

@media(max-width:768px) { .hide-mob { display: none !important; } }
@media(min-width:769px) { .show-mob { display: none !important; } }

/* Tabella generica */
.tabella { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabella th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--g400); padding: 9px 12px; border-bottom: 2px solid var(--g200); text-align: left;
}
.tabella td { padding: 11px 12px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
.tabella tr:last-child td { border: none; }
.tabella tr:hover td { background: var(--g50); }

.rosa-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.rosa-role-card {
  border: 1px solid var(--g200);
  border-radius: 14px;
  padding: 14px;
  background: var(--g50);
}
.rosa-role-title {
  font-family: var(--font-t);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.rosa-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--g100);
}
.rosa-player-row:last-child {
  border-bottom: none;
}
.rosa-player-row-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rosa-player-chip {
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--g200);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}
.rosa-player-chip-avatar {
  flex: 0 0 auto;
}
.rosa-player-chip-main {
  min-width: 0;
  flex: 1;
}
.rosa-player-chip-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}
.rosa-player-chip-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--g400);
  line-height: 1.4;
}
.rosa-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(208, 67, 42, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(208, 67, 42, .12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #faf8f3 100%);
}
.rosa-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.rosa-title {
  font-family: var(--font-t);
  font-size: 30px;
  font-weight: 800;
  line-height: .95;
  margin-bottom: 6px;
}
.rosa-subtitle {
  font-size: 14px;
  color: var(--g500);
  line-height: 1.65;
  max-width: 620px;
}
.budget-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bg-item {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--g200);
}
.bg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 6px;
}
.bg-value {
  font-family: var(--font-t);
  font-size: 22px;
  font-weight: 800;
  line-height: .95;
  color: var(--nero);
}
.rosa-role-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.rosa-role-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--g200);
  background: rgba(255,255,255,.88);
}
.rosa-role-pill-tag {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-t);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.rosa-role-pill.p .rosa-role-pill-tag { background: #d4a017; }
.rosa-role-pill.d .rosa-role-pill-tag { background: #2563eb; }
.rosa-role-pill.c .rosa-role-pill-tag { background: #16a34a; }
.rosa-role-pill.a .rosa-role-pill-tag { background: #dc2626; }
.rosa-role-pill-label {
  font-size: 12px;
  color: var(--g400);
}
.rosa-role-pill-value {
  font-family: var(--font-t);
  font-size: 22px;
  font-weight: 800;
  line-height: .95;
}
.rosa-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rosa-filter-bar .btn {
  border-radius: 999px;
  min-width: 110px;
}
.rosa-filter-bar .btn.is-active {
  box-shadow: 0 10px 24px rgba(208, 67, 42, .16);
}
.rosa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.rosa-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--g200);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fafc 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rosa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, .08);
}
.rosa-card.captain {
  border-color: rgba(212, 160, 23, .55);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, .25);
}
.rosa-card.vice {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}
.rosa-card.moved {
  background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
}
.rosa-card-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.rosa-card-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.rosa-card-state.normal {
  background: var(--g100);
  color: var(--g500);
}
.rosa-card-state.captain {
  background: rgba(212, 160, 23, .16);
  color: #9a6b00;
}
.rosa-card-state.vice {
  background: rgba(37, 99, 235, .14);
  color: #1d4ed8;
}
.rosa-card-state.moved {
  background: rgba(220, 38, 38, .12);
  color: #b91c1c;
}
.rosa-card-avatar {
  margin-top: 4px;
}
.rosa-card-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.rosa-card-name a {
  color: inherit;
}
.rosa-card-club {
  font-size: 12px;
  color: var(--g400);
}
.rosa-card-price {
  font-family: var(--font-t);
  font-size: 26px;
  font-weight: 800;
  line-height: .95;
  color: var(--nero);
}
.rosa-card-foot {
  font-size: 12px;
  color: var(--g500);
  line-height: 1.5;
}
.rosa-empty-state {
  text-align: center;
  padding: 44px 24px;
  color: var(--g400);
  border: 1px dashed var(--g200);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.rosa-empty-mark {
  font-family: var(--font-t);
  font-size: 42px;
  font-weight: 800;
  line-height: .9;
  margin-bottom: 12px;
}
.rosa-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nero);
  margin-bottom: 8px;
}
.rosa-empty-copy {
  font-size: 14px;
  color: var(--g500);
}
.rosa-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.bundes-match-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: none;
  border-bottom: 1px solid var(--g100);
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.bundes-match-row:hover {
  background: var(--g50);
}
.match-detail-head {
  margin-bottom: 18px;
}
.match-detail-score {
  font-family: var(--font-t);
  font-size: 34px;
  font-weight: 800;
  line-height: .95;
}
.match-detail-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--g400);
}
.match-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.match-detail-team {
  border: 1px solid var(--g200);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.match-detail-team-title {
  font-family: var(--font-t);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}
.match-event-block + .match-event-block {
  margin-top: 12px;
}
.match-event-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 8px;
}
.match-event-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.match-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--g100);
  color: var(--nero);
  font-size: 13px;
}
.match-event-chip.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.match-event-chip.warning {
  background: #fff7ed;
  color: #c2410c;
}
.match-event-empty {
  font-size: 13px;
  color: var(--g400);
}

/* Pagine informative / supporto / giocatore */
.info-page {
  max-width: 980px;
  margin: 0 auto;
}
.info-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-content h2 {
  font-family: var(--font-t);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.info-content p,
.info-content li {
  font-size: 15px;
  color: var(--g600);
}
.info-content ul,
.info-content ol {
  padding-left: 22px;
}
.support-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-msg {
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bianco);
}
.support-msg.staff {
  border-color: #bfdbfe;
  background: var(--blu-lt);
}
.back-link {
  color: var(--g400);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 14px;
}
.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.news-card-link + .news-card-link {
  margin-top: 12px;
}
.news-card-preview {
  overflow: hidden;
  border: 1px solid var(--g100);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #faf8f3 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card-link:hover .news-card-preview {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, .08);
  border-color: rgba(208, 67, 42, .18);
}
.news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.news-card-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b1b1b 0%, #4b1d14 100%);
  color: rgba(255,255,255,.82);
  font-family: var(--font-t);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .08em;
}
.news-card-body {
  padding: 14px 16px 16px;
}
.news-carousel-shell {
  position: relative;
}
.news-carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  pointer-events: none;
}
.news-carousel-btn {
  position: absolute;
  top: 68px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.94);
  color: var(--nero);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .16);
  pointer-events: auto;
}
.news-carousel-btn.prev {
  left: 12px;
}
.news-carousel-btn.next {
  right: 12px;
}
.news-carousel-dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(17, 24, 39, .12);
}
.news-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g200);
}
.news-carousel-dot.active {
  background: var(--red);
}
.news-card-title {
  font-family: var(--font-t);
  font-size: 24px;
  font-weight: 800;
  line-height: .95;
  color: var(--nero);
  margin-bottom: 6px;
}
.news-card-subtitle {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.55;
}
.news-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--g200);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(208, 67, 42, .16), transparent 40%),
    linear-gradient(135deg, #fff 0%, #fbf8f2 100%);
}
.news-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(208, 67, 42, .1);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.news-detail-copy h1 {
  font-family: var(--font-t);
  font-size: 54px;
  line-height: .92;
  margin: 0 0 10px;
}
.news-detail-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--g500);
  margin: 0 0 14px;
}
.news-detail-meta {
  font-size: 13px;
  color: var(--g400);
}
.news-detail-media img,
.news-detail-placeholder {
  width: 100%;
  min-height: 280px;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.news-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b1b1b 0%, #4b1d14 100%);
  color: rgba(255,255,255,.82);
  font-family: var(--font-t);
  font-size: 52px;
  font-weight: 800;
}
.news-detail-body {
  background: var(--bianco);
  border: 1px solid var(--g200);
  border-radius: 26px;
  padding: 26px;
}
.news-detail-body p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--g700);
}
.news-article {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bianco);
  border: 1px solid var(--g200);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .06);
}
.news-article-head {
  padding: 28px 30px 22px;
  background: linear-gradient(180deg, #fff 0%, #faf8f3 100%);
  border-bottom: 1px solid var(--g100);
}
.news-article-head h1 {
  margin: 0;
  font-family: var(--font-t);
  font-size: 54px;
  line-height: .92;
}
.news-article-meta {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
}
.news-article-subtitle {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--g500);
}
.news-article-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.news-article-body {
  padding: 30px;
}
.news-article-body p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--g700);
}
.player-hero {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
}
.player-hero-card {
  background: var(--bianco);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 20px;
}
.stat-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mini-stat {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 12px;
}
.mini-stat .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--g400);
}
.mini-stat .value {
  font-family: var(--font-t);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
@media(max-width:900px) {
  .player-hero { grid-template-columns: 1fr; }
  .stat-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
.player-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.player-cover {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(208, 67, 42, .16);
  background:
    radial-gradient(circle at top left, rgba(208, 67, 42, .18), transparent 38%),
    linear-gradient(135deg, #111827 0%, #23160f 52%, #faf7f1 52%, #fff 100%);
}
.player-cover-copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-t);
  font-size: 60px;
  line-height: .9;
}
.player-kicker {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.player-cover-sub {
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}
.player-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.player-chip.role-p { background: rgba(250, 204, 21, .16); }
.player-chip.role-d { background: rgba(59, 130, 246, .18); }
.player-chip.role-c { background: rgba(34, 197, 94, .18); }
.player-chip.role-a { background: rgba(239, 68, 68, .18); }
.player-cover-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.86) 0%, rgba(248,243,235,.96) 100%);
  overflow: hidden;
}
.player-cover-media .player-avatar,
.player-cover-media .user-av {
  box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
}
.player-cover-photo {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .16);
}
.trade-picker-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trade-picker-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.trade-player-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--g200);
  border-radius: 14px;
  background: var(--bianco);
  padding: 10px 12px;
  text-align: left;
}
.trade-player-card:hover {
  border-color: var(--red);
  background: var(--red-lt);
}
.trade-player-card.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(204, 0, 34, .12);
  background: var(--red-lt);
}
.mercato-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--g200);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.trade-selection-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trade-selection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trade-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--g200);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.trade-summary-card.mine {
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, .08);
}
.trade-summary-card.their {
  box-shadow: inset 0 0 0 1px rgba(204, 0, 34, .08);
}
.trade-summary-name {
  font-size: 14px;
  font-weight: 700;
}
.trade-summary-meta {
  font-size: 12px;
  color: var(--g400);
}
.trade-history-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.abbonamento-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--g100);
  margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 0%, var(--g50) 100%);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.abbonamento-tabs .tab-btn {
  min-height: 56px;
}
.abbonamento-panel {
  border: 1px solid var(--g200);
  border-radius: 18px;
  padding: 18px;
  background: var(--g50);
  width: 100%;
  box-sizing: border-box;
}
.mercato-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.player-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.player-stat-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--g200);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.player-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 8px;
}
.player-stat-value {
  font-family: var(--font-t);
  font-size: 34px;
  font-weight: 800;
  line-height: .95;
  color: var(--nero);
}
.player-stat-detail {
  margin-top: 8px;
  font-size: 12px;
  color: var(--g500);
}
.player-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}
.player-side-card {
  position: sticky;
  top: 92px;
}
.player-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.player-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g100);
  font-size: 13px;
}
.player-info-row span {
  color: var(--g400);
}
.player-info-row strong {
  text-align: right;
  color: var(--nero);
}
.player-note-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8ee 0%, #fff 100%);
  border: 1px solid rgba(208, 67, 42, .14);
  font-size: 14px;
  color: var(--g600);
  line-height: 1.7;
}
.player-table-wrap {
  overflow-x: auto;
}
.player-table th {
  white-space: nowrap;
}
.player-presence {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.player-presence.yes {
  background: #dcfce7;
  color: #166534;
}
.player-presence.no {
  background: #f3f4f6;
  color: #6b7280;
}
.player-presence.stats {
  background: #fef9c3;
  color: #854d0e;
}
@media(max-width:1100px) {
  .news-detail-hero,
  .player-cover,
  .player-main-grid,
  .match-detail-grid {
    grid-template-columns: 1fr;
  }
  .player-side-card {
    position: static;
  }
}
@media(max-width:900px) {
  .rosa-player-chip {
    min-width: 180px;
    flex-basis: 180px;
  }
  .rosa-role-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rosa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-card-image {
    height: 150px;
  }
  .news-carousel-controls {
    height: 150px;
  }
  .news-carousel-btn {
    top: 54px;
    width: 38px;
    height: 38px;
  }
  .news-carousel-btn.prev {
    left: 10px;
  }
  .news-carousel-btn.next {
    right: 10px;
  }
  .news-carousel-dots {
    top: 10px;
    padding: 7px 10px;
  }
  .news-card-title {
    font-size: 20px;
  }
  .news-detail-copy h1,
  .player-cover-copy h1,
  .news-article-head h1 {
    font-size: 40px;
  }
  .player-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-cover {
    padding: 18px;
    background:
      radial-gradient(circle at top left, rgba(208, 67, 42, .16), transparent 42%),
      linear-gradient(180deg, #111827 0%, #23160f 48%, #fff 48%, #fff 100%);
  }
  .trade-picker-grid,
  .mercato-columns {
    grid-template-columns: 1fr;
  }
  .mercato-subnav .tab-btn {
    flex: 1 1 calc(50% - 10px);
  }
}
@media(max-width:640px) {
  .rosa-player-chip {
    min-width: 100%;
    flex-basis: 100%;
  }
  .rosa-panel {
    padding: 16px;
    border-radius: 20px;
  }
  .rosa-title {
    font-size: 26px;
  }
  .rosa-role-summary {
    grid-template-columns: 1fr;
  }
  .rosa-grid {
    grid-template-columns: 1fr;
  }
  .rosa-filter-bar .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }
  .news-detail-hero,
  .news-detail-body {
    padding: 18px;
    border-radius: 20px;
  }
  .news-article-head,
  .news-article-body {
    padding: 20px;
  }
  .player-stat-strip {
    grid-template-columns: 1fr 1fr;
  }
  .player-cover-media {
    min-height: 220px;
  }
  .abbonamento-tabs .tab-btn {
    width: 100%;
  }
  .mercato-subnav .tab-btn {
    flex-basis: 100%;
  }
  .player-cover-copy h1 {
    font-size: 34px;
  }
  .match-detail-score {
    font-size: 28px;
  }
}

/* ================================================================
   CAMPETTO CONSIGLIATI + TITOLARITÀ + ABBONAMENTO
   ================================================================ */

/* ---- Campetto consigliati (dashboard) ---- */
.campo-consigli {
  background: linear-gradient(180deg, #1a6b1a 0%, #155015 50%, #1a6b1a 100%);
  border-radius: var(--rl);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.campo-consigli::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  top: 50%; height: 1px;
  background: rgba(255,255,255,.12);
}
.campo-consigli::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.campo-consigli-fila {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.slot-cons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: transform .15s;
  min-width: 52px;
}
.slot-cons:hover { transform: scale(1.08); }
.slot-cons-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-t); font-size: 12px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #1e40af;
}
.slot-cons-avatar.ruolo-p { background: #b8860b; }
.slot-cons-avatar.ruolo-d { background: #1e40af; }
.slot-cons-avatar.ruolo-c { background: #155a2a; }
.slot-cons-avatar.ruolo-a { background: #cc0022; }
.slot-cons-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.slot-cons-nome {
  font-size: 10px; color: rgba(255,255,255,.9);
  font-weight: 700; max-width: 56px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.slot-cons-sub {
  font-size: 9px; color: rgba(255,255,255,.5); text-align: center;
}
.cons-linea-erba {
  position: absolute; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.06);
}

/* ---- Barra probabili titolari ---- */
.titolarita-wrap {
  margin-top: 4px;
  width: 62px;
}
.titolarita-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  position: relative;
}
.titolarita-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width .3s ease;
}
.titolarita-fill.bassa { background: linear-gradient(90deg, #ef4444, #dc2626); }
.titolarita-fill.media { background: linear-gradient(90deg, #f59e0b, #d97706); }
.titolarita-label {
  font-size: 9px;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-top: 1px;
}

/* ---- Lock premium ---- */
.titolarita-lock {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.titolarita-lock::after {
  content: '🔒';
  font-size: 8px;
  position: absolute;
  top: -6px;
}
.slot-premium-hint {
  font-size: 8px;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-top: 2px;
}

/* ---- Sezione consigli dashboard ---- */
.cons-spiegazione {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cons-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--g100);
  font-size: 13px;
}
.cons-item:last-child { border-bottom: none; }
.cons-badge-r {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0;
  margin-top: 1px;
}
.cons-badge-r.p { background: #b8860b; }
.cons-badge-r.d { background: #1e40af; }
.cons-badge-r.c { background: #155a2a; }
.cons-badge-r.a { background: #cc0022; }

/* ---- Abbonamento page ---- */
.abbonamento-hero {
  text-align: center;
  padding: 48px 24px 32px;
}
.abbonamento-prezzo {
  font-family: var(--font-t);
  font-size: 56px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.abbonamento-durata {
  font-size: 16px;
  color: var(--g500);
  margin-top: 4px;
}
.abbonamento-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.abbonamento-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 12px 16px;
  background: var(--g50);
  border-radius: var(--r);
}
.abbonamento-feature-icon { font-size: 20px; }

/* ---- Badge premium ---- */
.badge-premium {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #3d2900;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: .03em;
  vertical-align: middle;
}

.leadership-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leadership-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--g100);
  border-radius: 14px;
  background: var(--g50);
}

.leadership-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--g500);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.leadership-row select {
  width: 100%;
}

.leadership-muted {
  font-size: 13px;
  color: var(--g400);
}

.leadership-help {
  font-size: 12px;
  color: var(--g400);
  line-height: 1.5;
}

.live-match-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.live-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0d2f7b, #091c43);
  color: #fff;
}

.live-score-team {
  min-width: 0;
}

.live-score-team-left {
  text-align: right;
}

.live-score-team-name {
  font-family: var(--font-t);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.live-score-team-sub,
.live-score-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.live-score-center {
  text-align: center;
  min-width: 100px;
}

.live-score-main {
  font-family: var(--font-t);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.live-teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.live-team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-team-name {
  font-family: var(--font-t);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.live-team-sub {
  font-size: 12px;
  color: var(--g400);
}

.live-team-score {
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-family: var(--font-t);
  font-size: 24px;
  font-weight: 900;
}

.live-pitch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    repeating-linear-gradient(180deg, #1ca246 0px, #1ca246 88px, #18913f 88px, #18913f 176px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}

.live-pitch::before,
.live-pitch::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 18px;
}

.live-pitch::before {
  top: 12px;
  bottom: 12px;
}

.live-pitch::after {
  top: 50%;
  left: calc(50% - 48px);
  right: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.live-pitch-center {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.22);
  transform: translateY(-50%);
}

.live-lane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-lane-label {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 54, 23, .45);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.live-lane-players {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.live-player-card {
  width: min(112px, 24%);
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #fff;
}

.live-player-card.empty {
  opacity: .72;
}

.live-player-head {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  border: 3px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.live-player-head.empty {
  color: rgba(255,255,255,.75);
  font-family: var(--font-t);
  font-size: 24px;
  font-weight: 800;
}

.live-player-head-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-player-head-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  font-family: var(--font-t);
  font-size: 20px;
  font-weight: 800;
}

.live-player-flag {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.live-player-flag.cap { background: linear-gradient(135deg, #fbbf24, #d97706); }
.live-player-flag.vice { background: linear-gradient(135deg, #60a5fa, #2563eb); }

.live-player-events {
  min-height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.live-event-ic {
  width: 18px;
  height: 18px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  font-size: 11px;
  box-shadow: none;
}

.live-player-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.live-pill {
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.live-pill.accent {
  color: #1d4ed8;
}

.live-pill.muted {
  color: #6b7280;
}

.live-player-name {
  max-width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.live-player-role,
.live-player-note {
  font-size: 11px;
  color: rgba(255,255,255,.76);
  line-height: 1.2;
}

.live-bench-wrap {
  padding: 14px 14px 10px;
  border-radius: 18px;
  background: var(--g50);
  border: 1px solid var(--g100);
}

.live-bench-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--g500);
  margin-bottom: 10px;
}

.live-bench-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.live-bench-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--g100);
}

.live-bench-card.used {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 1px rgba(34,197,94,.15);
}

.live-bench-head img,
.live-bench-head .live-player-head-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.live-bench-name {
  font-size: 13px;
  font-weight: 700;
}

.live-bench-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.live-bench-used {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
}

.live-bench-empty {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--g400);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .live-teams-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .live-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .live-score-team-left,
  .live-score-team {
    text-align: center;
  }

  .live-lane-players {
    gap: 8px;
  }

  .live-player-card {
    width: min(92px, 24%);
    min-width: 68px;
  }

  .live-player-head {
    width: 56px;
    height: 56px;
  }

  .live-player-name {
    font-size: 12px;
  }

  .live-pill {
    min-width: 28px;
    font-size: 12px;
  }
}

/* ---- Live override pulito ---- */
.live-match-shell {
  padding: 16px;
  border: 1px solid var(--g100);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.live-scoreboard {
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10357e, #0a2460);
  box-shadow: 0 12px 28px rgba(16, 53, 126, .22);
}

.live-score-main {
  font-size: 36px;
}

.live-team-sub {
  color: var(--g500);
}

.live-team-score {
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
}

.live-pitch {
  margin-top: 8px;
  padding: 18px 12px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    repeating-linear-gradient(180deg, #1faa4b 0px, #1faa4b 72px, #199744 72px, #199744 144px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.24);
}

.live-pitch-combined {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.live-pitch-half {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-pitch-half.away {
  padding-top: 14px;
  border-top: 2px solid rgba(255,255,255,.22);
}

.live-half-head {
  display: none;
}

.live-lane {
  gap: 8px;
}

.live-lane-label {
  display: none;
}

.live-lane-players {
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.live-player-card {
  width: auto;
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
}

.live-player-head {
  width: 58px;
  height: 58px;
  border-width: 2px;
}

.live-player-events {
  min-height: 16px;
}

.live-event-ic {
  width: 16px;
  height: 16px;
  font-size: 10px;
  overflow: hidden;
}

.live-event-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.live-player-name {
  font-size: 13px;
}

.live-player-role,
.live-player-note {
  color: rgba(255,255,255,.86);
}

.live-bench-wrap {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
}

.live-bench-grid {
  grid-template-columns: 1fr 1fr;
}

.live-bench-grid.single {
  grid-template-columns: 1fr;
}

.live-benches-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-bench-wrap {
  min-width: 0;
}

.live-scoreboard-inline {
  max-width: 820px;
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.live-score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-t);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.live-score-line .team {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-score-line .team.left {
  text-align: right;
}

.live-score-line .team.right {
  text-align: left;
}

.live-score-line .score {
  flex: 0 0 auto;
  padding: 0 8px;
}

.live-total-line {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.78);
}

/* live-focus-mode: la pagina live mantiene lo stesso stile del resto del sito */
body.live-focus-mode #giornataLiveCard {
  border: none;
  box-shadow: none;
}
body.live-focus-mode #giornataLiveCard .card-testa {
  display: none;
}
body.live-focus-mode #giornataLiveCard .card-corpo {
  padding: 0;
}

  .live-match-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .live-benches-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .live-player-card {
    min-width: 0;
  }

  .live-player-head {
    width: 44px;
    height: 44px;
  }

  .live-player-name {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .live-score-line {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    font-size: 18px;
  }

  .live-total-line {
    font-size: 11px;
  }

  .live-player-role,
  .live-player-note {
    display: none;
  }

  .live-lane-players {
    gap: 6px;
  }

  .live-pill {
    min-width: 24px;
    padding: 2px 6px;
    font-size: 11px;
  }

  .live-team-score {
    min-width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .live-bench-wrap {
    padding: 10px 8px;
  }

  .live-bench-title {
    font-size: 10px;
  }

  .live-bench-card {
    grid-template-columns: 30px 1fr auto;
    gap: 8px;
    padding: 6px 7px;
  }

  .live-bench-head img,
  .live-bench-head .live-player-head-fallback {
    width: 30px;
    height: 30px;
  }

  .live-bench-name {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-bench-meta {
    margin-top: 1px;
    gap: 4px;
  }
}
