/* =====================================================================
   BET SIMULATOR – foglio di stile v2
   Palette predefinita: navy #0B1736 · lime #C8F135 · superficie #F3F5F9
   Colori e caratteri si cambiano da Admin → Aspetto (assets/css/theme.css)
   ===================================================================== */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1736;
  --navy-2: #1C2B5A;
  --navy-3: #2A3D78;
  --lime: #C8F135;
  --lime-dark: #A9D116;
  --navy-rgb: 11, 23, 54;
  --navy-deep-rgb: 7, 16, 38;
  --lime-rgb: 200, 241, 53;
  --on-lime: #0B1736;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-slide: var(--font-title);
  --title-weight: 800;
  --surface: #F3F5F9;
  --ink: #18203A;
  --muted: #5B6478;
  --line: #E2E6EF;
  --radius: 1rem;
  --shadow: 0 1px 2px rgba(var(--navy-rgb),.05), 0 8px 24px -12px rgba(var(--navy-rgb),.18);
  --shadow-hover: 0 2px 4px rgba(var(--navy-rgb),.06), 0 18px 36px -14px rgba(var(--navy-rgb),.28);
  --font-title: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-link-color: #2B4FD8;
  --bs-link-color-rgb: 43, 79, 216;
  --bs-link-hover-color: #1d3bb0;
  --bs-border-radius: .65rem;
}
body { background: var(--surface); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .h6, .navbar, .btn, .page-title, .section-title { font-family: var(--font-title); }
h1, h2, .h4, .h5, .h6 { font-weight: 700; }
.page-title, .section-title, .slide-title, .display-5 { font-weight: var(--title-weight); }
a { text-decoration: none; }

/* ---------- Barra "nessun denaro" ---------- */
.nomoney-bar { background: var(--navy-2); color: rgba(255,255,255,.8); font-size: .75rem; text-align: center; padding: .35rem 1rem; letter-spacing: .02em; }
.nomoney-bar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: .5rem; vertical-align: middle; box-shadow: 0 0 0 3px rgba(var(--lime-rgb),.25); }

/* ---------- Navbar ---------- */
.bs-navbar { background: rgba(var(--navy-rgb),.97); backdrop-filter: saturate(160%) blur(8px); box-shadow: 0 2px 14px rgba(var(--navy-rgb),.25); padding-top: .6rem; padding-bottom: .6rem; }
.bs-navbar .nav-link { font-weight: 600; color: rgba(255,255,255,.78); padding-left: .9rem !important; padding-right: .9rem !important; border-radius: .5rem; }
.bs-navbar .nav-link.active, .bs-navbar .nav-link:hover { color: var(--lime); }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 575.98px) {
  .brand-logo { height: 24px; }
  .bs-navbar .nav-auth { padding: .3rem .6rem; font-size: .82rem; }
  .bs-navbar .navbar-toggler { padding: .3rem .5rem; }
}
.dropdown-menu { border: 0; border-radius: .8rem; box-shadow: 0 12px 40px -10px rgba(var(--navy-rgb),.35); padding: .4rem; }
.dropdown-item { border-radius: .5rem; padding: .45rem .75rem; font-weight: 500; }
.dropdown-item.active, .dropdown-item:active { background: var(--navy); }
.dropdown-sports { min-width: 230px; }
.sport-ico-sm { display: inline-block; width: 1.6rem; }
.btn-lang, .btn-user { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; font-weight: 600; }
.btn-lang:hover, .btn-user:hover, .btn-lang.show, .btn-user.show { background: rgba(255,255,255,.16); color: #fff; }
.btn-lang .flag { font-size: 1.05rem; line-height: 1; }
.points-pill { align-items: center; gap: .2rem; background: var(--lime); color: var(--on-lime); font-weight: 800; font-family: var(--font-title); border-radius: 99px; padding: .25rem .75rem; font-size: .85rem; }
.points-pill small { font-weight: 700; opacity: .7; }
.avatar-xs, .avatar-md, .avatar-lg { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--lime), #7fd13b); color: var(--on-lime); font-weight: 800; font-family: var(--font-title); }
.avatar-xs { width: 24px; height: 24px; font-size: .75rem; }
.avatar-md { width: 46px; height: 46px; font-size: 1.1rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; }

/* ---------- Bottoni ---------- */
.btn { border-radius: .65rem; font-weight: 600; }
.btn-lg { padding: .75rem 1.4rem; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 700; box-shadow: 0 6px 18px -8px rgba(var(--lime-rgb),.9); }
.btn-lime:hover, .btn-lime:focus { background: var(--lime-dark); border-color: var(--lime-dark); color: var(--navy); transform: translateY(-1px); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* ---------- Slider ---------- */
.hero-slider { position: relative; background: var(--navy); }
.hero-slider .carousel-item { height: clamp(340px, 46vw, 560px); }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--navy-deep-rgb),.92) 0%, rgba(var(--navy-deep-rgb),.65) 45%, rgba(var(--navy-deep-rgb),.05) 85%); }
.slide-content { position: relative; height: 100%; display: flex; align-items: center; }
.slide-text { max-width: 560px; color: #fff; animation: slideUp .8s ease both; }
.carousel-item.active .slide-text { animation: slideUp .8s ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slide-kicker { display: inline-block; background: rgba(var(--lime-rgb),.14); color: var(--lime); border: 1px solid rgba(var(--lime-rgb),.35); border-radius: 99px; padding: .25rem .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.slide-title { font-family: var(--font-slide); font-weight: var(--slide-weight, 800); text-transform: var(--slide-case, none); font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: .9rem; color: #fff; }
.slide-sub { font-size: clamp(.95rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.82); margin-bottom: 1.6rem; }
.hero-slider .carousel-indicators { margin-bottom: 1.4rem; }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 3px; border: 0; background: #fff; opacity: .4; }
.hero-slider .carousel-indicators .active { background: var(--lime); opacity: 1; width: 44px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; }
.hero-plain { background: var(--navy); padding: 4rem 0; }
@media (max-width: 767.98px) {
  .slide-overlay { background: linear-gradient(180deg, rgba(var(--navy-deep-rgb),.35) 0%, rgba(var(--navy-deep-rgb),.92) 70%); }
  .slide-content { align-items: flex-end; padding-bottom: 3.2rem; }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
}

/* ---------- Selettore sport ---------- */
.sport-picker { display: flex; gap: .7rem; overflow-x: auto; padding: 1.4rem .2rem .6rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hero-slider + .container .sport-picker { margin-top: -2.6rem; position: relative; z-index: 3; }
.sp-tile { flex: 0 0 auto; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; width: 104px; height: 104px; background: #fff; border: 2px solid transparent; border-radius: 1.1rem; box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: .8rem; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; padding: .5rem; }
.sp-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.sp-tile.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.sp-ico { font-size: 2rem; line-height: 1; }
.sp-name { line-height: 1.15; }
.sp-count { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--lime); color: var(--on-lime); font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; }
.sp-count.zero { background: var(--surface); color: var(--muted); }
.sport-picker-sm { padding-top: .2rem; }
.sport-picker-sm .sp-tile { width: auto; height: auto; flex-direction: row; padding: .55rem .9rem; border-radius: 99px; font-size: .85rem; gap: .45rem; }
.sport-picker-sm .sp-ico { font-size: 1.15rem; }
@media (max-width: 575.98px) { .sp-tile { width: 88px; height: 88px; } .sp-ico { font-size: 1.7rem; } }

/* ---------- Sezioni ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; gap: 1rem; }
.section-title { font-weight: 800; font-size: 1.35rem; margin: 0; }
.page-title { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.2rem; }
.chip { display: inline-block; padding: .4rem .9rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .85rem; transition: .12s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .25rem; gap: .2rem; flex-wrap: wrap; }
.seg a { padding: .45rem 1rem; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.seg a.active { background: var(--lime); color: var(--on-lime); }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-ico { font-size: 2.6rem; margin-bottom: .6rem; }
.pts-badge { display: inline-block; background: rgba(var(--lime-rgb),.25); color: #4d6400; font-weight: 800; font-size: .75rem; border-radius: 99px; padding: .15rem .55rem; font-family: var(--font-title); }

/* ---------- Card evento ---------- */
.ev-card { display: flex; flex-direction: column; gap: .9rem; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; color: var(--ink); border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden; }
.ev-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lime); opacity: 0; transition: .15s; }
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.ev-card:hover::before { opacity: 1; }
.ev-card.is-live { border-color: rgba(220,53,69,.35); }
.ev-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); }
.ev-comp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ico { margin-right: .35rem; }
.ev-when { background: var(--surface); border-radius: 99px; padding: .15rem .55rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.ev-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.ev-team { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; min-width: 0; }
.ev-name { font-weight: 700; font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.ev-mid { text-align: center; }
.ev-vs { font-family: var(--font-title); font-weight: 800; color: #b7bfd0; font-size: .85rem; }
.ev-score { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.ev-score i { font-style: normal; color: #b7bfd0; margin: 0 .25rem; }
.ev-race { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-family: var(--font-title); font-size: 1.05rem; min-height: 72px; }
.ev-race-flag { font-size: 1.8rem; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: auto; font-size: .8rem; }
.ev-date { color: var(--muted); font-weight: 500; }
.ev-cta { background: var(--navy); color: #fff; font-weight: 700; padding: .3rem .8rem; border-radius: 99px; font-family: var(--font-title); }
.ev-card:hover .ev-cta { background: var(--lime); color: var(--on-lime); }
.ev-mine { color: #2b8a3e; font-weight: 700; }
.team-avatar { --h: 220; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--font-title); font-weight: 800; font-size: .9rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 65% 48%), hsl(calc(var(--h) + 35) 70% 34%)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.team-avatar.xl { width: 72px; height: 72px; font-size: 1.4rem; }

/* ---------- Card utente / podio ---------- */
.me-card { background: radial-gradient(500px 200px at 100% 0, var(--navy-3) 0, transparent 70%), var(--navy); color: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.me-stats div { background: rgba(255,255,255,.07); border-radius: .7rem; padding: .7rem .3rem; }
.me-stats b { display: block; font-family: var(--font-title); font-size: 1.3rem; color: var(--lime); }
.me-stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: .6rem; padding: 1.4rem 1rem 0; background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%); }
.podium-step { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 31%; max-width: 160px; min-width: 0; }
.podium-name { font-weight: 700; font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-pts { font-size: .72rem; color: var(--muted); font-weight: 600; }
.podium-block { width: 100%; border-radius: .6rem .6rem 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: .4rem; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; margin-top: .3rem; }
.step-1 .podium-block { height: 86px; background: linear-gradient(180deg, #F9D86A, #F0BE2C); color: #4a3800; }
.step-2 .podium-block { height: 62px; background: linear-gradient(180deg, #E1E5EC, #C3CAD6); color: #2f3644; }
.step-3 .podium-block { height: 46px; background: linear-gradient(180deg, #EDB98D, #D9935B); color: #4a2805; }
.step-1 .avatar-md { width: 56px; height: 56px; box-shadow: 0 0 0 4px #F6C945; }
.podium-lg { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.podium-lg .step-1 .podium-block { height: 120px; } .podium-lg .step-2 .podium-block { height: 88px; } .podium-lg .step-3 .podium-block { height: 64px; }

/* ---------- Generico ---------- */
.bs-card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.bs-card > .card-header { background: #fff; border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; }
.stat-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; text-align: center; position: relative; }
.stat-ico { font-size: 1.3rem; }
.stat-num { font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; color: var(--navy); }
.stat-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pos { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); font-weight: 800; font-size: .8rem; font-family: var(--font-title); }
.pos-1 { background: #F6C945; color: #4a3800; } .pos-2 { background: #CED4DE; color: #2f3644; } .pos-3 { background: #E3A46E; color: #4a2805; }
.table-me td { background: rgba(var(--lime-rgb),.18) !important; }
.acc { display: inline-block; width: 60px; height: 6px; background: var(--surface); border-radius: 3px; margin-right: .5rem; vertical-align: middle; overflow: hidden; }
.acc i { display: block; height: 100%; background: var(--lime-dark); }
.badge-status { font-weight: 600; }
.how-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; height: 100%; overflow: hidden; }
.how-n { position: absolute; right: 1rem; top: .2rem; font-family: var(--font-title); font-weight: 800; font-size: 4rem; color: var(--surface); line-height: 1; }
.how-ico { position: relative; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--navy); font-size: 1.5rem; margin-bottom: 1rem; }
.cta-banner { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; background: #fff; border-left: 5px solid var(--lime); border-radius: .8rem; box-shadow: var(--shadow); padding: .9rem 1.1rem; font-weight: 600; }

/* ---------- Pagina sport / classifica ---------- */
.sport-hero, .lb-hero { display: flex; align-items: center; gap: 1.2rem; background: radial-gradient(700px 240px at 100% 0, var(--navy-3) 0, transparent 70%), var(--navy); color: #fff; border-radius: 1.2rem; padding: 1.6rem 1.8rem; }
.lb-hero { display: block; }
.sport-hero-ico { font-size: 3.4rem; line-height: 1; background: rgba(255,255,255,.08); border-radius: 1.2rem; width: 86px; height: 86px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sport-hero-title { font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin: 0; }
.sport-hero-title span { color: var(--lime); font-weight: 700; }
.sport-hero .breadcrumb-item, .sport-hero .breadcrumb-item a, .sport-hero .breadcrumb-item::before { color: rgba(255,255,255,.65) !important; font-size: .85rem; }

/* ---------- Pagina evento ---------- */
.match-head { background: radial-gradient(900px 300px at 50% -20%, var(--navy-3) 0, transparent 70%), var(--navy); color: #fff; border-radius: 1.2rem; padding: 1.8rem 1.2rem; text-align: center; }
.match-head.is-live { box-shadow: 0 0 0 3px rgba(220,53,69,.5); }
.match-comp { color: rgba(255,255,255,.72); font-size: .85rem; margin-bottom: 1.2rem; }
.match-title { font-weight: 800; }
.match-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--font-title); font-weight: 800; font-size: clamp(.95rem, 2.6vw, 1.5rem); }
.match-score { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 7vw, 3.4rem); color: var(--lime); line-height: 1; }
.match-score small { display: block; font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 500; margin-top: .5rem; }
.match-vs { color: rgba(255,255,255,.35); font-size: 1.5rem; }
.match-count { color: var(--lime); font-weight: 700; margin-top: .5rem; }
.podium-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; counter-reset: pod; }
.podium-list li { counter-increment: pod; background: var(--navy-2); border-radius: 99px; padding: .35rem 1rem; font-weight: 600; }
.podium-list li::before { content: counter(pod) "°  "; color: var(--lime); font-weight: 800; }
.market-card { transition: box-shadow .2s; }
.market-card.has-pick { box-shadow: 0 0 0 2px rgba(var(--lime-rgb),.9), var(--shadow); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .55rem; }
.pick { position: relative; border: 2px solid var(--line); background: #fff; border-radius: .75rem; padding: .7rem .5rem; font-weight: 700; font-size: .85rem; color: var(--ink); transition: .12s; text-align: center; line-height: 1.2; }
.pick:hover:not(:disabled) { border-color: var(--navy); transform: translateY(-1px); }
.pick.selected { background: var(--navy); border-color: var(--on-lime); color: #fff; box-shadow: inset 0 -4px 0 var(--lime); }
.pick:disabled { opacity: .65; cursor: not-allowed; }
.pick.selected:disabled { opacity: 1; }
.pick-bar { display: block; height: 4px; background: var(--surface); border-radius: 2px; margin: .45rem .3rem 0; overflow: hidden; }
.pick-bar i { display: block; height: 100%; background: var(--lime-dark); }
.pick.selected .pick-bar { background: rgba(255,255,255,.2); }
.pick-pct { display: block; font-size: .7rem; font-weight: 600; opacity: .65; margin-top: .2rem; }
.pick.busy { opacity: .5; pointer-events: none; }
.pick-pts { display: inline-block; margin-top: .35rem; padding: .1rem .45rem; border-radius: 1rem; background: var(--surface); color: var(--navy); font-size: .72rem; font-weight: 800; }
.pick-pts.up { background: var(--lime); color: var(--on-lime); }
.pick.selected .pick-pts { background: rgba(255,255,255,.15); color: #fff; }
.pick.selected .pick-pts.up { background: var(--lime); color: var(--on-lime); }
.pts-at-stake { margin-left: .35rem; font-weight: 600; }
.cs-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cs-side { display: flex; flex-direction: column; max-width: 110px; }
.cs-form .form-control { width: 80px; text-align: center; font-weight: 800; font-size: 1.3rem; font-family: var(--font-title); }
.market-card.flash { animation: flash 1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--lime); } 100% { box-shadow: 0 0 0 2px rgba(var(--lime-rgb),.9); } }

/* ---------- I miei pronostici ---------- */
.pred-list { display: flex; flex-direction: column; gap: .6rem; }
.pred-item { display: grid; grid-template-columns: 2fr 1.6fr auto auto; gap: 1rem; align-items: center; background: #fff; border-radius: .9rem; box-shadow: var(--shadow); padding: .9rem 1.1rem; border-left: 5px solid #cfd5e1; }
.pred-item.st-won { border-left-color: #2fb344; } .pred-item.st-lost { border-left-color: #e35d6a; } .pred-item.st-void { border-left-color: #f2b740; }
.pred-event { font-weight: 700; color: var(--ink); }
.pred-pts { margin-left: .5rem; font-family: var(--font-title); font-weight: 800; color: #2b8a3e; }
.pred-actions { display: flex; gap: .4rem; justify-content: flex-end; }
@media (max-width: 767.98px) { .pred-item { grid-template-columns: 1fr auto; } .pred-pick { grid-column: 1 / -1; } .pred-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Regolamento ---------- */
.rule-card { display: flex; gap: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.rule-card.nomoney { border-left: 5px solid var(--lime); }
.rule-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* ---------- Accesso / registrazione ---------- */
.auth-page { background: radial-gradient(900px 500px at 0% 0%, #dfe6f7 0, transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(var(--lime-rgb),.22) 0, transparent 60%), var(--surface); }
.auth-wrap { max-width: 1040px; margin: 1rem auto 2rem; }
.auth-box { background: #fff; border-radius: 1.4rem; box-shadow: 0 30px 80px -30px rgba(var(--navy-rgb),.45); overflow: hidden; }
.auth-aside { flex-direction: column; justify-content: space-between; color: #fff; padding: 2.6rem; background: radial-gradient(500px 300px at 100% 0, var(--navy-3) 0, transparent 70%), radial-gradient(400px 300px at 0 100%, rgba(var(--lime-rgb),.18) 0, transparent 70%), var(--navy); }
.auth-logo { height: 34px; width: auto; }
.auth-claim { font-weight: 800; font-size: 1.9rem; line-height: 1.15; margin: 2.2rem 0 1.6rem; }
.auth-perks { list-style: none; padding: 0; margin: 0; }
.auth-perks li { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; font-weight: 600; color: rgba(255,255,255,.88); }
.auth-perks span { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.09); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.auth-sports { display: flex; flex-wrap: wrap; gap: .5rem; font-size: 1.4rem; opacity: .9; margin-top: 2rem; }
.auth-form { display: flex; align-items: center; }
.auth-inner { width: 100%; max-width: 460px; margin: 0 auto; padding: 2.6rem 1.6rem; }
.auth-title { font-weight: 800; font-size: 1.9rem; margin-bottom: .3rem; }
.form-floating > .form-control { border-radius: .75rem; border: 1.5px solid var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(var(--navy-rgb),.12); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.05rem; opacity: .55; z-index: 5; }
.pw-toggle:hover { opacity: 1; }
.pw-meter { height: 5px; background: var(--surface); border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- Footer ---------- */
.bs-footer { background: var(--navy); color: #fff; margin-top: 4rem; }
.footer-logo { height: 30px; width: auto; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: .9rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.82); }
.footer-links a:hover { color: var(--lime); }

/* ---------- Admin ---------- */
.admin-side { background: var(--navy); min-height: 100vh; }
.admin-side .nav-link { color: rgba(255,255,255,.75); border-radius: .5rem; font-weight: 500; }
.admin-side .nav-link:hover, .admin-side .nav-link.active { background: var(--navy-2); color: var(--lime); }
.admin-main { background: var(--surface); min-height: 100vh; }
.provider-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; }
.provider-dot.ok { background: #22c55e; } .provider-dot.error { background: #ef4444; }
.provider-dot.not_configured { background: #f59e0b; } .provider-dot.never { background: #94a3b8; }
.slide-thumb { width: 180px; height: 70px; object-fit: cover; border-radius: .5rem; }
@media (max-width: 991.98px) { .admin-side { min-height: auto; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ======================= v3 ======================= */
/* Captcha */
.captcha-img { border-radius: .6rem; border: 1px solid var(--line); background: var(--surface); user-select: none; }
.captcha-input { max-width: 110px; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; text-align: center; }

/* Cookie: banner, pannello, icona in basso a sinistra */
.ck-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2050; max-width: 980px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 1.1rem; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); padding: 1.3rem 1.4rem; display: flex; gap: 1.2rem; align-items: center; }
.ck-banner[hidden], .ck-modal[hidden] { display: none !important; }
.ck-title { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; color: #fff; }
.ck-text { font-size: .85rem; color: rgba(255,255,255,.82); margin: 0; }
.ck-text a { color: var(--lime); text-decoration: underline; }
.ck-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.ck-actions .btn { min-width: 118px; }
.ck-x { position: absolute; top: .3rem; right: .6rem; background: transparent; border: 0; color: rgba(255,255,255,.7); font-size: 1.6rem; line-height: 1; padding: .2rem .4rem; }
.ck-x:hover { color: #fff; }
.ck-modal { position: fixed; inset: 0; z-index: 2060; background: rgba(var(--navy-deep-rgb),.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ck-panel { background: #fff; border-radius: 1.1rem; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 1.5rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.ck-cat { border: 1px solid var(--line); border-radius: .8rem; padding: .8rem 1rem; margin-bottom: .6rem; }
.ck-cat .form-check-input { width: 2.6em; height: 1.35em; }
.ck-fab { position: fixed; left: 16px; bottom: 16px; z-index: 2040; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--lime); color: #d39b4a; box-shadow: 0 8px 22px -6px rgba(var(--navy-rgb),.45); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.ck-fab svg path { fill: #E8B46A; }
.ck-fab:hover { transform: scale(1.08) rotate(-10deg); }
@media (max-width: 767.98px) {
  .ck-banner { flex-direction: column; align-items: stretch; left: .6rem; right: .6rem; bottom: .6rem; padding: 1.2rem 1rem 1rem; }
  .ck-actions { flex-direction: column-reverse; }
  .ck-actions .btn { width: 100%; }
  .ck-fab { width: 42px; height: 42px; left: 10px; bottom: 10px; opacity: .92; }
  .ck-fab svg { width: 22px; height: 22px; }
}

/* Pagine legali */
.legal-page { max-width: 860px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal-page mark { background: #fff3cd; padding: 0 .2rem; }
@media (max-width: 575.98px) { .legal-page { padding: 1.2rem; } }

/* Pagine SEO */
.seo-hero { display: flex; align-items: center; gap: 1.2rem; background: radial-gradient(700px 240px at 100% 0, var(--navy-3) 0, transparent 70%), var(--navy); color: #fff; border-radius: 1.2rem; padding: 1.6rem 1.8rem; }
.seo-hero-ico { font-size: 3rem; line-height: 1; background: rgba(255,255,255,.08); border-radius: 1.2rem; width: 80px; height: 80px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.seo-hero-title { font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 .3rem; color: #fff; }
.seo-intro p:last-child { margin-bottom: 0; }
.seo-intro { font-size: 1.02rem; line-height: 1.65; }
.hub-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; color: var(--ink); height: 100%; transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.hub-ico { font-size: 1.8rem; line-height: 1; }
.faq .accordion-button { font-weight: 700; font-family: var(--font-title); }
.faq .accordion-button:not(.collapsed) { background: rgba(var(--lime-rgb),.18); color: var(--navy); box-shadow: none; }
.faq .accordion-item { border-color: var(--line); }
@media (max-width: 575.98px) { .seo-hero { padding: 1.2rem; } .seo-hero-ico { width: 56px; height: 56px; font-size: 2rem; } }

/* Probabilità stimate */
.prob-card { border-top: 4px solid var(--lime); }
.prob-bar { display: flex; height: 34px; border-radius: .6rem; overflow: hidden; font-family: var(--font-title); font-weight: 800; font-size: .85rem; }
.prob-bar span { display: flex; align-items: center; justify-content: center; color: #fff; min-width: 2px; transition: width .4s; }
.pb-1 { background: var(--navy); }
.pb-x { background: #9AA4BC; }
.pb-2 { background: var(--bs-link-color); }
.prob-legend { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; margin-top: .8rem; font-size: .9rem; }
.form-dots { display: inline-flex; gap: 3px; margin-top: .35rem; }
.form-dots i { font-style: normal; width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; color: #fff; }
.form-dots .f-W { background: #2fb344; } .form-dots .f-D { background: #9AA4BC; } .form-dots .f-L { background: #e35d6a; }
.text-end .form-dots { justify-content: flex-end; }
.race-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 2fr auto; gap: .8rem; align-items: center; padding: .35rem 0; }
.race-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-bar { height: 10px; background: var(--surface); border-radius: 5px; overflow: hidden; }
.race-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); }
.race-pct { font-family: var(--font-title); min-width: 42px; text-align: right; }
.ev-prob { margin-top: -.2rem; }
.mini-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; }
.mini-lbl { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: .25rem; }
@media (max-width: 575.98px) { .prob-legend { grid-template-columns: 1fr 1fr; } .prob-legend > div:nth-child(2) { display: none; } }
.footer-lang { color: rgba(255,255,255,.8); font-weight: 600; }
.footer-lang:hover { color: var(--lime); }

/* ======================= Pubblicità ======================= */
.ad-slot { position: relative; display: block; margin: 0 auto 1.5rem; text-align: center; }
.ad-slot img { display: block; width: 100%; height: auto; border-radius: .7rem; }
.ad-slot a { display: block; border-radius: .7rem; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.ad-slot a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ad-horizontal { max-width: 1100px; }
.ad-pos-top { margin-top: .5rem; }
.ad-pos-bottom { margin-top: 2rem; }
.ad-square { width: 100%; margin-top: 1.5rem; }
.ad-square img { aspect-ratio: 1 / 1; object-fit: cover; }
.ad-feed-col { display: flex; }
.ad-feed-col .ad-slot { margin: 0; flex: 1; display: flex; flex-direction: column; }
.ad-feed-col .ad-slot > a, .ad-feed-col .ad-slot > ins { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--navy); min-height: 180px; }
.ad-feed-col .ad-square img { aspect-ratio: auto; width: auto; max-width: 100%; max-height: 210px; object-fit: contain; border-radius: 0; }
.ad-pos-side.ad-top-of-col { margin-top: 0; }
svg.brand-logo, svg.footer-logo, svg.auth-logo { width: auto; display: block; }
@media (min-width: 1200px) { .home-side-left { order: -1; } }
.home-side .me-card { margin-bottom: 0 !important; }
.home-side .ad-square { margin-top: 0; }
.ad-label { display: block; text-align: right; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: #8B93A7; margin-bottom: .2rem; }
.ad-slot ins.adsbygoogle { min-height: 90px; }
.ad-square ins.adsbygoogle { min-height: 250px; }
.ad-thumb { width: 92px; height: 32px; object-fit: cover; border-radius: .35rem; border: 1px solid var(--line); flex: 0 0 auto; }
.ad-thumb.sq { width: 44px; height: 44px; }
.ad-thumb.gs { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff; color: #4285F4; font-weight: 800; font-family: Arial, sans-serif; font-size: 1.3rem; }
.ad-chart { width: 100%; height: auto; }
.legend-sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 3px; }
.report-thumb { max-width: 100%; max-height: 160px; border-radius: .6rem; box-shadow: var(--shadow); }
.report-thumb.sq { max-height: 200px; }

/* ---------- Admin → Aspetto: anteprime ---------- */
.palette-card { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 2px solid var(--line); border-radius: .8rem; background: #fff; text-align: left; transition: .15s; }
.palette-card:hover { border-color: #b7bfd0; }
.palette-card.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(var(--navy-rgb),.12); }
.pc-swatch { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: .55rem; overflow: hidden; }
.pc-swatch span { position: absolute; right: 0; bottom: 0; width: 50%; height: 50%; border-top-left-radius: .4rem; }
.pc-name { font-size: .85rem; font-weight: 600; line-height: 1.2; }
.theme-preview { --p: #0B1736; --a: #C8F135; --s: #F3F5F9; --i: #18203A; --l: #2B4FD8; --on: #0B1736; border-radius: 1rem; overflow: hidden; background: var(--s); color: var(--i); box-shadow: var(--shadow); }
.tp-bar { background: color-mix(in srgb, var(--p) 85%, #fff); color: rgba(255,255,255,.8); font-size: .7rem; text-align: center; padding: .3rem; }
.tp-nav { background: var(--p); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; }
.tp-logo { font-weight: 800; letter-spacing: .02em; } .tp-logo b { color: var(--a); font-weight: 500; }
.tp-btn { display: inline-block; background: var(--a); color: var(--on); font-weight: 700; border-radius: .55rem; padding: .35rem .8rem; font-size: .85rem; }
.tp-body { padding: 1rem; }
.tp-card { background: #fff; border-radius: .8rem; padding: .8rem; margin-bottom: .8rem; border-left: 4px solid var(--a); }
.tp-comp { font-size: .72rem; color: color-mix(in srgb, var(--i) 60%, #fff); text-transform: uppercase; font-weight: 700; }
.tp-teams { font-weight: 800; margin: .2rem 0 .5rem; }
.tp-picks { display: flex; gap: .4rem; } .tp-picks span { flex: 1; text-align: center; border: 1px solid #e2e6ef; border-radius: .5rem; padding: .3rem; font-size: .8rem; font-weight: 600; }
.tp-picks .sel { background: var(--p); color: #fff; border-color: var(--p); }
.tp-text a { color: var(--l); text-decoration: underline; }
.tp-slide { background: linear-gradient(120deg, var(--p), color-mix(in srgb, var(--p) 70%, #000)); border-radius: .8rem; padding: 1.4rem; }
.tp-slide-title { color: #fff; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.tp-h { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; color: var(--p); }
.font-sample { background: #fff; border: 1px solid var(--line); border-radius: .7rem; padding: .6rem .8rem; display: flex; flex-direction: column; }
.fs-name { font-size: .78rem; font-weight: 700; color: var(--muted); font-family: system-ui, sans-serif; } .fs-name small { font-weight: 400; }
.fs-text { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.shape-opt { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .8rem; border: 2px solid var(--line); border-radius: .8rem; cursor: pointer; text-align: center; }
.shape-opt input { position: absolute; opacity: 0; }
.shape-opt:has(input:checked) { border-color: var(--navy); background: rgba(var(--navy-rgb),.04); }
.so-box { width: 70px; height: 46px; background: #fff; border: 1px solid #d5dbe6; }
.img-prev { display: flex; align-items: center; justify-content: center; min-height: 110px; border-radius: .7rem; background: var(--navy); padding: .8rem; }
.img-prev img { max-width: 100%; max-height: 140px; }
.img-prev.fav-prev img { width: 64px; height: 64px; }
.img-prev.og-prev { background: #e9edf4; }
.img-prev svg.brand-logo { height: 34px; }
.sort-list .list-group-item { cursor: default; }

/* Home: titolo e testo introduttivo (Admin → SEO) */
.home-intro { max-width: 900px; margin: 1.6rem auto 1.4rem; text-align: center; }
.home-h1 { font-family: var(--font-title); font-weight: var(--title-weight); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); color: var(--navy); line-height: 1.2; margin-bottom: .6rem; }
.home-intro p { color: var(--muted); margin-bottom: .5rem; font-size: 1.02rem; }
