/* Sporty, la mascotte di SportyGo (si carica solo dove e' acceso: SportyHelper.Risorse e home page) */
.sg-sporty-av { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px rgba(7,38,75,.08); }
.sg-sporty-av img { width: 126%; max-width: none; height: auto; display: block; margin-top: 8%; }
.sg-sporty-av-sm { width: 36px; height: 36px; }
.sg-sporty-av-lg { width: 72px; height: 72px; }

/* conferme verdi: Sporty sorride al posto dell'icona */
.sg-sporty-alert { display: flex; align-items: center; gap: .65rem; }
.sg-sporty-alert > .sg-sporty-av { width: 34px; height: 34px; }

/* pagine e riquadri vuoti */
.sg-empty img.sg-sporty-vuoto { display: block; width: 74px; height: auto; margin: 0 auto .4rem; }

/* fumetto */
.sg-sporty-fumetto { position: relative; background: #fff; border: 1px solid #DCE6F0; border-radius: 16px 16px 16px 4px; padding: .7rem .95rem; color: #18263A; }
.sg-sporty-fumetto b { color: #07264B; }

/* gestionale: "Sporty ti segnala" sotto il saluto */
.sg-sporty-box { display: flex; align-items: flex-end; gap: .9rem; margin-bottom: 1.25rem; padding: .9rem 1rem 0; border-radius: 18px;
  background: linear-gradient(135deg, #FDEBDC 0%, #DCEBF7 100%); }
.sg-sporty-box > img { width: 92px; height: auto; flex: none; align-self: flex-end; }
.sg-sporty-box .sg-sporty-fumetto { flex: 1 1 auto; min-width: 0; margin-bottom: .9rem; }
.sg-sporty-box .sg-sporty-azioni { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.sg-sporty-box .sg-sporty-nome { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C25A17; }
.sg-sporty-box .sg-sporty-x { position: absolute; top: .3rem; right: .4rem; }
@media (max-width: 575.98px) { .sg-sporty-box > img { width: 68px; } }

/* app: Sporty ti ricorda */
.sg-sporty-app { display: flex; gap: .75rem; align-items: flex-start; background: #FDEBDC; border-radius: 16px; padding: .8rem; margin-bottom: 1rem; }
.sg-sporty-app .sg-sporty-fumetto { flex: 1 1 auto; min-width: 0; border: 0; }
.sg-sporty-app.ok { background: #E3F4EA; }
.sg-sporty-app .btn { margin-top: .5rem; }

/* home page: Ti presento Sporty */
.sg-sporty-home { background: linear-gradient(150deg, #07264B, #0E3F73 60%, #1478B1); color: #fff; overflow: hidden; padding-bottom: 0 !important; }
.sg-sporty-home .sg-eyebrow { color: #F7A86E; }
.sg-sporty-home h2 { color: #fff; }
.sg-sporty-home .lead { color: #C9D8EA; max-width: 40rem; }
.sg-sporty-punti { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.sg-sporty-punti li { background: rgba(255,255,255,.08); border-radius: 14px; padding: .85rem 1rem; display: grid; gap: .15rem; }
.sg-sporty-punti b { color: #fff; }
.sg-sporty-punti span { color: #C9D8EA; font-size: .92rem; }
.sg-sporty-home .sg-sporty-testo { padding-bottom: 3.5rem; }
.sg-sporty-home .sg-sporty-figura { display: grid; justify-items: center; align-content: end; height: 100%; }
.sg-sporty-home .sg-sporty-figura img { width: min(100%, 300px); height: auto; display: block; }
.sg-sporty-home .sg-sporty-fumetto { justify-self: start; max-width: 260px; font-weight: 700; color: #07264B; margin-bottom: -.4rem; z-index: 1; }
@media (max-width: 991.98px) { .sg-sporty-home .sg-sporty-testo { padding-bottom: 0; } .sg-sporty-home .sg-sporty-figura img { width: min(70%, 240px); } }

/* Impostazioni > Il tuo Sporty */
.sg-sporty-anteprima { background: linear-gradient(135deg, #FDEBDC, #DCEBF7); border-radius: 18px; padding: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: end; }
.sg-sporty-anteprima img { width: 100%; height: auto; display: block; }
.sg-sporty-anteprima .sg-sporty-av { justify-self: center; }
.sg-sporty-scelte { display: flex; flex-wrap: wrap; gap: .4rem; }
.sg-sporty-scelte .btn-check + label { min-width: 2.5rem; }
.sg-sporty-col { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); vertical-align: middle; }

/* Chiedi a Sporty: chat nel pannello laterale */
.sg-sporty-chat { --bs-offcanvas-width: 420px; }
.sg-sporty-chat .offcanvas-header { gap: .6rem; border-bottom: 1px solid #DCE6F0; background: linear-gradient(135deg, #FDEBDC, #DCEBF7); }
.sg-sporty-chat .offcanvas-header .sg-sporty-av { width: 42px; height: 42px; }
.sg-sporty-chat .offcanvas-header .btn-close { margin: 0; }
.sg-sporty-chat .offcanvas-body { display: flex; flex-direction: column; }
.sg-sporty-msgs { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding: .25rem .1rem .75rem; min-height: 160px; }
.sg-sporty-msg { max-width: 90%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; font-size: .94rem; }
.sg-sporty-msg p:last-child, .sg-sporty-msg ul:last-child, .sg-sporty-msg ol:last-child { margin-bottom: 0; }
.sg-sporty-msg ul, .sg-sporty-msg ol { padding-left: 1.2rem; margin-bottom: .4rem; }
.sg-sporty-msg.io { align-self: flex-end; background: #07264B; color: #fff; border-bottom-right-radius: 4px; }
.sg-sporty-msg.ai { align-self: flex-start; background: #F1F4F9; border-bottom-left-radius: 4px; }
.sg-sporty-msg.err { align-self: flex-start; background: #FDECEC; color: #8A1C1C; }
.sg-sporty-pausa { display: flex; gap: .75rem; align-items: center; padding: .75rem; border-radius: 14px; background: #FFF7ED; border: 1px solid #F9D3B0; margin-bottom: .5rem; font-size: .9rem; }
.sg-sporty-pausa img { width: 70px; height: auto; flex: none; }

/* etichetta "AI" accanto a Sporty */
.sg-ai { display: inline-block; padding: .08rem .42rem; border-radius: 999px; font-size: .68em; font-weight: 800; letter-spacing: .06em; line-height: 1.4; vertical-align: .12em;
  color: #fff; background: linear-gradient(120deg, #1478B1, #7C3AED 60%, #F28C45); }
