/* 1X2SCOMMESSE — stile unico del sito (pagine pubbliche e personali). */
:root {
  --sx-fondo: #f2f4ef;
  --sx-carta: #ffffff;
  --sx-testo: #14201a;
  --sx-tenue: #5c6a62;
  --sx-bordo: #dfe4dc;
  --sx-scuro: #0d1a14;
  --sx-scuro-2: #16281f;
  --sx-lime: #c6f432;
  --sx-verde: #1f7a4d;
  --sx-verde-ch: #e3f1e8;
  --sx-seg-1: #1f7a4d;
  --sx-seg-x: #9a6b00;
  --sx-seg-2: #2457a6;
  --sx-giu: #0f7a55;
  --sx-su: #b4471a;
  --sx-ko: #b42318;
  --sx-ko-ch: #fdecea;
  --sx-ok-ch: #e5f4ea;
  --sx-r: 14px;
  --sx-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sx-fondo); color: var(--sx-testo); font: 16px/1.5 var(--sx-font); }
a { color: var(--sx-verde); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
small { font-size: .8em; }
:focus-visible { outline: 3px solid var(--sx-lime); outline-offset: 2px; border-radius: 4px; }
.sx-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barra ─────────────────────────────────────────────────────────── */
.sx-barra { background: var(--sx-scuro); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.sx-barra-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 22px; }
.sx-marchio { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.sx-logo { background: var(--sx-lime); color: var(--sx-scuro); border-radius: 7px; padding: 3px 7px; font-size: .9rem; letter-spacing: .02em; }
.sx-marchio-t span { color: var(--sx-lime); }
.sx-menu { display: flex; gap: 4px; flex: 1; }
.sx-menu a { color: #cfdad3; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.sx-menu a:hover { color: #fff; background: var(--sx-scuro-2); }
.sx-menu a.sx-attiva { color: var(--sx-scuro); background: var(--sx-lime); }
.sx-chi { display: flex; align-items: center; gap: 10px; }
.sx-saldo { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; color: #fff; text-decoration: none; }
.sx-saldo-n { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sx-lime); }
.sx-saldo-t { font-size: .72rem; color: #9fb0a6; }
.sx-utente { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.sx-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-scuro-2); border: 2px solid var(--sx-lime); font-weight: 800; }
.sx-fascia { background: #fff6d6; border-bottom: 1px solid #f0dc94; padding: 9px 16px; text-align: center; font-size: .92rem; }
.sx-fascia button { margin-left: 8px; background: none; border: 0; color: var(--sx-verde); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ── Corpo e piede ─────────────────────────────────────────────────── */
.sx-corpo { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; min-height: 60vh; }
.sx-piede { background: var(--sx-scuro); color: #aebcb3; font-size: .85rem; }
.sx-piede-in { max-width: 1120px; margin: 0 auto; padding: 22px 16px 28px; }
.sx-piede a { color: #e8f0eb; }
.sx-piede-gioco { margin: 0 0 12px; max-width: 820px; }
.sx-piede-gioco b { color: #fff; }
.sx-piede-link { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sx-piede-tit { margin-left: auto; }

/* ── Elementi comuni ───────────────────────────────────────────────── */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.sx-btn-p { background: var(--sx-lime); color: var(--sx-scuro); }
.sx-btn-p:hover { background: #b6e52a; }
.sx-btn-l { background: transparent; border-color: currentColor; color: inherit; }
.sx-barra .sx-btn-l { color: #fff; border-color: #3b5246; }
.sx-btn-largo { width: 100%; margin-top: 8px; }
.sx-card { background: var(--sx-carta); border: 1px solid var(--sx-bordo); border-radius: var(--sx-r); padding: 20px; margin-bottom: 18px; }
.sx-card-scura { background: var(--sx-scuro); border-color: var(--sx-scuro); color: #e5ede8; }
.sx-card-scura .sx-nota { color: #a9b8af; }
.sx-card-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-card-testa h2 { margin: 0; }
.sx-vuoto { text-align: center; padding: 36px 20px; }
.sx-vuoto p { max-width: 560px; margin-left: auto; margin-right: auto; }
.sx-testata { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-testata h1 { margin: 0; }
.sx-nota { color: var(--sx-tenue); font-size: .88rem; }
.sx-etichetta { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--sx-tenue); }
.sx-card-scura .sx-etichetta { color: var(--sx-lime); }
.sx-grande { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0; }
.sx-grande small { font-size: 1rem; font-weight: 600; color: #a9b8af; }
.sx-griglia-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sx-griglia-2 .sx-card { margin-bottom: 0; }
.sx-griglia-2 + .sx-card { margin-top: 18px; }
.sx-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 10px 0 0; }
.sx-dl dt { color: var(--sx-tenue); }
.sx-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sx-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--sx-carta); border: 1px solid var(--sx-bordo);
  color: var(--sx-testo); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
a.sx-pill:hover { border-color: var(--sx-verde); }
.sx-pill-ok { background: var(--sx-ok-ch); border-color: #b9dfc6; color: #13603c; }
.sx-pill-ko { background: #fff6d6; border-color: #f0dc94; color: #7a5a00; }
.sx-msg { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.sx-ok { background: var(--sx-ok-ch); color: #13603c; }
.sx-ko { background: var(--sx-ko-ch); color: var(--sx-ko); }
.sx-giu { color: var(--sx-giu); }
.sx-su { color: var(--sx-su); }
.sx-q-n .sx-giu, .sx-q-n .sx-su, .sx-esito-q .sx-giu, .sx-esito-q .sx-su { font-size: .7em; margin-left: 3px; vertical-align: 1px; }

/* ── Moduli e accesso ──────────────────────────────────────────────── */
.sx-accesso { display: grid; place-items: start center; padding: 18px 0; }
.sx-accesso-box { width: 100%; max-width: 440px; background: var(--sx-carta); border: 1px solid var(--sx-bordo); border-radius: var(--sx-r); padding: 26px 24px; }
.sx-accesso-box h1 { font-size: 1.6rem; }
.sx-sotto { color: var(--sx-tenue); margin: -4px 0 18px; }
.sx-form label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: .95rem; }
.sx-form label small { color: var(--sx-tenue); font-weight: 400; }
.sx-form input[type=text], .sx-form input:not([type]), .sx-form input[type=email], .sx-form input[type=password], .sx-form input[type=search] {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--sx-bordo); border-radius: 10px; font: inherit; background: #fff; color: var(--sx-testo); }
.sx-form input:focus { border-color: var(--sx-verde); outline: none; box-shadow: 0 0 0 3px rgba(31,122,77,.15); }
.sx-form .sx-spunta { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0 0; }
.sx-form .sx-spunta input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sx-verde); flex: none; }
.sx-form .sx-nota { margin: 14px 0 0; text-align: center; }
.sx-form-stretto { max-width: 420px; }
.sx-form-stretto .sx-btn { margin-top: 14px; }
.sx-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Home: presentazione ───────────────────────────────────────────── */
.sx-hero { background: var(--sx-scuro); color: #dfe8e2; border-radius: 20px; padding: 30px 28px; margin-bottom: 26px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center;
  background-image: radial-gradient(circle at 100% 0, rgba(198,244,50,.16), transparent 45%); }
.sx-occhiello { color: var(--sx-lime); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 8px; }
.sx-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.sx-hero h1 span { color: var(--sx-lime); }
.sx-hero p { max-width: 560px; }
.sx-hero-azioni { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.sx-hero .sx-btn-l { color: #fff; border-color: #3b5246; }
.sx-hero-punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-hero-punti li { background: var(--sx-scuro-2); border-radius: 12px; padding: 12px 14px; }
.sx-hero-punti b { color: var(--sx-lime); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ── Home: giorni, filtri, elenco ──────────────────────────────────── */
.sx-h1-giorno small { font-size: .55em; color: var(--sx-tenue); font-weight: 500; margin-left: 6px; }
.sx-agg { font-size: .85rem; color: var(--sx-tenue); }
.sx-giorni { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 10px; scrollbar-width: thin; }
.sx-giorni a { flex: none; display: grid; justify-items: center; min-width: 64px; padding: 7px 8px; border-radius: 12px; background: var(--sx-carta);
  border: 1px solid var(--sx-bordo); color: var(--sx-testo); text-decoration: none; line-height: 1.2; }
.sx-giorni a:hover { border-color: var(--sx-verde); }
.sx-giorni a.sx-attiva { background: var(--sx-scuro); border-color: var(--sx-scuro); color: #fff; }
.sx-giorni-g { font-weight: 700; font-size: .85rem; text-transform: capitalize; }
.sx-giorni-d { font-size: .8rem; color: var(--sx-tenue); }
.sx-attiva .sx-giorni-d { color: #a9b8af; }
.sx-giorni-n { font-size: .72rem; font-weight: 700; margin-top: 3px; background: var(--sx-fondo); border-radius: 999px; padding: 0 7px; color: var(--sx-tenue); }
.sx-attiva .sx-giorni-n { background: var(--sx-lime); color: var(--sx-scuro); }
.sx-filtri { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.sx-cerca { flex: 1 1 260px; max-width: 380px; }
.sx-cerca input { width: 100%; min-height: 42px; padding: 8px 12px 8px 36px; border: 1.5px solid var(--sx-bordo); border-radius: 10px; font: inherit;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235c6a62' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 11px 50%; }
.sx-cerca input:focus { border-color: var(--sx-verde); outline: none; }
.sx-evidenza { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-comp { background: var(--sx-carta); border: 1px solid var(--sx-bordo); border-radius: var(--sx-r); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 70px; }
.sx-comp-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 11px 16px; font-size: 1rem; background: #f7f9f5; border-bottom: 1px solid var(--sx-bordo); }
.sx-comp-t a { color: var(--sx-testo); text-decoration: none; }
.sx-comp-t a:hover { color: var(--sx-verde); }
.sx-comp-paese { color: var(--sx-tenue); font-weight: 600; }
.sx-comp-n { font-size: .78rem; color: var(--sx-tenue); font-weight: 600; }
.sx-comp-intest, .sx-riga { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 76px) repeat(2, 68px); gap: 6px; align-items: center; padding: 0 16px; }
.sx-comp-intest { padding-top: 7px; padding-bottom: 2px; font-size: .72rem; font-weight: 700; color: var(--sx-tenue); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.sx-riga { padding-top: 9px; padding-bottom: 9px; color: var(--sx-testo); text-decoration: none; border-top: 1px solid #eef1eb; }
.sx-riga:first-of-type { border-top: 0; }
.sx-riga:hover { background: #f7faf4; }
.sx-riga-chi { display: flex; gap: 14px; align-items: center; min-width: 0; }
.sx-riga-ora { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--sx-tenue); font-size: .9rem; width: 46px; flex: none; }
.sx-iniziata .sx-riga-ora { font-size: .72rem; color: var(--sx-su); }
.sx-riga-sq { display: grid; min-width: 0; font-weight: 600; line-height: 1.35; }
.sx-riga-sq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-q { display: grid; justify-items: center; background: var(--sx-fondo); border-radius: 9px; padding: 6px 2px; line-height: 1.15; }
.sx-q-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.sx-q-p { font-size: .72rem; color: var(--sx-tenue); font-variant-numeric: tabular-nums; }
.sx-q-uo { background: transparent; border: 1px dashed var(--sx-bordo); }
.sx-q-uo .sx-q-n { font-weight: 700; color: #34433b; }
.sx-iniziata .sx-q { opacity: .55; }
.sx-spiega { margin-top: 18px; max-width: 820px; }

/* ── Scheda partita ────────────────────────────────────────────────── */
.sx-briciole { margin-bottom: 10px; font-size: .92rem; }
.sx-briciole a { text-decoration: none; font-weight: 600; }
.sx-match { background: var(--sx-scuro); color: #dfe8e2; border-radius: 20px; padding: 24px; margin-bottom: 18px; text-align: center;
  background-image: radial-gradient(circle at 50% 120%, rgba(198,244,50,.18), transparent 55%); }
.sx-match-comp { color: var(--sx-lime); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.sx-match-sq { color: #fff; font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 10px 0; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.sx-match-vs { color: var(--sx-lime); }
.sx-match-quando { font-size: .95rem; }
.sx-esiti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sx-esito { border: 1px solid var(--sx-bordo); border-radius: 12px; padding: 14px; border-top: 4px solid var(--sx-seg); }
.sx-esito-1 { --sx-seg: var(--sx-seg-1); }
.sx-esito-x { --sx-seg: var(--sx-seg-x); }
.sx-esito-2 { --sx-seg: var(--sx-seg-2); }
.sx-esito-seg { font-weight: 800; color: var(--sx-seg); font-size: .85rem; }
.sx-esito-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-esito-q { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 4px 0 8px; }
.sx-barra-p { height: 8px; background: var(--sx-fondo); border-radius: 999px; overflow: hidden; }
.sx-barra-p span { display: block; height: 100%; background: var(--sx-seg); border-radius: 999px; }
.sx-esito-p { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sx-esito-p small { color: var(--sx-tenue); font-weight: 500; }
.sx-esito-p span { display: block; font-size: .8rem; font-weight: 600; }
.sx-uo { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sx-bordo); }
.sx-uo b { font-size: 1.15rem; font-variant-numeric: tabular-nums; margin-left: 6px; }
.sx-community { border-style: dashed; background: #fbfcf9; }
.sx-grafico-box { overflow-x: auto; }
.sx-grafico { width: 100%; min-width: 480px; height: auto; display: block; }
.sx-g-griglia { stroke: #e6eae3; stroke-width: 1; }
.sx-g-asse { fill: var(--sx-tenue); font-size: 12px; font-family: var(--sx-font); }
.sx-g-linea { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.sx-g-1 { stroke: var(--sx-seg-1); }
.sx-g-x { stroke: var(--sx-seg-x); }
.sx-g-2 { stroke: var(--sx-seg-2); }
.sx-g-et { font-size: 13px; font-weight: 700; font-family: var(--sx-font); }
.sx-g-et-1 { fill: var(--sx-seg-1); }
.sx-g-et-x { fill: var(--sx-seg-x); }
.sx-g-et-2 { fill: var(--sx-seg-2); }
.sx-dettagli summary { cursor: pointer; font-weight: 600; color: var(--sx-verde); margin-top: 6px; }
.sx-tabella-box { overflow-x: auto; margin-top: 10px; }
.sx-tabella { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.sx-tabella th, .sx-tabella td { padding: 7px 10px; border-bottom: 1px solid #eef1eb; text-align: right; white-space: nowrap; }
.sx-tabella th:first-child, .sx-tabella td:first-child { text-align: left; }
.sx-tabella th { font-size: .78rem; color: var(--sx-tenue); text-transform: uppercase; letter-spacing: .04em; }

/* ── Pagine legali ─────────────────────────────────────────────────── */
.sx-legale { max-width: 820px; margin: 0 auto; }
.sx-legale h2 { margin-top: 1.4em; font-size: 1.1rem; }
.sx-legale ul { padding-left: 1.2em; }

/* ── Telefono ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .sx-hero { grid-template-columns: 1fr; }
  .sx-hero-punti { grid-template-columns: repeat(3, 1fr); }
  .sx-hero-punti li { font-size: .82rem; }
}
@media (max-width: 720px) {
  .sx-barra-in { gap: 10px; flex-wrap: wrap; }
  .sx-menu { order: 3; flex-basis: 100%; }
  .sx-chi { margin-left: auto; }
  .sx-utente-n { display: none; }
  .sx-comp-intest, .sx-riga { grid-template-columns: minmax(0, 1fr) repeat(3, 58px); padding-left: 12px; padding-right: 12px; gap: 5px; }
  .sx-col-uo, .sx-q-uo { display: none; }
  .sx-riga-chi { gap: 8px; }
  .sx-riga-ora { width: 40px; font-size: .82rem; }
  .sx-riga-sq { font-size: .92rem; }
  .sx-griglia-2 { grid-template-columns: 1fr; }
  .sx-esiti { grid-template-columns: 1fr; }
  .sx-esito { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; }
  .sx-esito-seg { grid-row: span 2; font-size: 1.3rem; }
  .sx-esito-q { margin: 0; font-size: 1.5rem; grid-row: span 2; grid-column: 3; grid-row-start: 1; }
  .sx-esito .sx-barra-p, .sx-esito .sx-esito-p { grid-column: 1 / -1; }
  .sx-piede-tit { margin-left: 0; flex-basis: 100%; }
  .sx-card { padding: 16px; }
  .sx-hero { padding: 24px 18px; }
  .sx-hero-punti { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .sx-marchio-t { display: none; }
  .sx-comp-intest, .sx-riga { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); }
  .sx-q-p { font-size: .66rem; }
}
