/* =====================================================================
   NETFITNESS.IT — grafica
   Colori ripresi dal sito alessandralodifitness.com (nero, magenta, oro),
   con il rosa acceso dell'icona come colore di accento.
   ===================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2?v=2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2?v=2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2?v=2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2?v=2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url(/fonts/montserrat-latin-900-normal.woff2?v=2) format("woff2"); }

:root {
  --bg: #141014;          /* fondo */
  --bg-2: #1E181D;        /* nero del sito */
  --card: #262029;        /* nero-2 del sito */
  --linea: #3a3039;
  --rosa: #FF4DA6;        /* rosa "cartoon" (icona) */
  --rosa-ombra: #B0125F;  /* ombra netta dei pulsanti, effetto cartoon */
  --rosa-scuro: #A3246A;  /* magenta del sito */
  --rosa-chiaro: #E58DBB;
  --oro: #E4C07A;
  --testo: #F6F0EC;
  --grigio: #BDB1B7;
  --ok: #49c58a;
  --raggio: 14px;
  --bg-trasp: rgba(20, 16, 20, 0);
  --hero-fade: rgba(20, 16, 20, .92);
  --ombra: rgba(0, 0, 0, .5);
  --sicuro-alto: env(safe-area-inset-top, 0px);
  --sicuro-basso: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;  /* (v0.37.0) icone del browser (calendario delle date) chiare su fondo scuro */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--testo);
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;            /* testo comodo da leggere */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--rosa-chiaro); }
[hidden] { display: none !important; }

/* ---------- marchio ---------- */
.wordmark { font-weight: 900; letter-spacing: .06em; font-size: 22px; line-height: 1; white-space: nowrap; }
.wordmark .w-net { color: var(--rosa); }
.wordmark--big { font-size: 42px; }
.byline { font-size: 14px; color: var(--grigio); letter-spacing: .04em; margin-top: 8px; }
.byline strong { color: var(--testo); font-weight: 600; }

.splash { min-height: 100vh; display: grid; place-items: center; animation: respiro 1.6s ease-in-out infinite; }
@keyframes respiro { 50% { opacity: .55; } }

/* ---------- pulsanti e campi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--rosa); color: #140a10; font-weight: 800; font-size: 18px;
  cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .1s;
  box-shadow: 0 5px 0 var(--rosa-ombra);
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rosa-ombra); }
.btn--ghost { box-shadow: none; }
.btn--ghost:active { transform: scale(.98); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--testo); border: 1.5px solid var(--linea); }
.btn--small { min-height: 42px; font-size: 15px; padding: 0 18px; }
.link-btn { background: none; border: 0; color: var(--rosa-chiaro); text-decoration: underline; cursor: pointer; padding: 8px 0; font-size: 15px; }

.field { display: block; margin: 0 0 16px; }
.field span { display: block; font-size: 14px; color: var(--grigio); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--linea); font-size: 18px; outline: none;
}
.field input:focus { border-color: var(--rosa); }
.field input.code { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 700; }

.msg { border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 0 0 16px; }
.msg--err { background: rgba(255, 77, 166, .12); border: 1px solid rgba(255, 77, 166, .45); }
.msg--info { background: rgba(228, 192, 122, .1); border: 1px solid rgba(228, 192, 122, .4); }

/* ---------- schermata di accesso ---------- */
.login {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(32px + var(--sicuro-alto)) 22px calc(32px + var(--sicuro-basso));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 77, 166, .22), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.login__box { width: 100%; max-width: 420px; margin: 0 auto; }
.login__brand { text-align: center; margin-bottom: 40px; }
.login h1 { font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.login p.sub { color: var(--grigio); margin: 0 0 24px; font-size: 16px; }
.login__foot { text-align: center; margin-top: 28px; font-size: 13px; color: var(--grigio); }

/* ---------- intestazione ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--sicuro-alto)) 18px 14px;
  background: linear-gradient(var(--bg) 70%, var(--bg-trasp));
}
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font-weight: 800; color: var(--rosa); cursor: pointer; }

.menu {
  position: fixed; top: calc(64px + var(--sicuro-alto)); right: 14px; z-index: 20;
  background: var(--card); border: 1px solid var(--linea); border-radius: var(--raggio);
  min-width: 230px; padding: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.menu button { display: block; width: 100%; text-align: left; padding: 14px 14px; background: none; border: 0; border-radius: 10px; cursor: pointer; font-size: 16px; }
.menu button:hover { background: var(--bg-2); }
.menu .menu__who { padding: 10px 14px 12px; font-size: 13px; color: var(--grigio); border-bottom: 1px solid var(--linea); margin-bottom: 4px; }

/* ---------- copertina (hero) ---------- */
.hero {
  position: relative; margin: 0 14px; min-height: 340px; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 22px;
  background: var(--card);
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero__bg--vuoto { background: radial-gradient(90% 70% at 80% 10%, rgba(255, 77, 166, .55), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .7), transparent 60%), var(--bg-2); opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, var(--hero-fade)); }
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }
.hero__season { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--rosa); text-transform: uppercase; }
.hero__title { font-size: 34px; line-height: 1.1; font-weight: 900; margin: 6px 0 8px; }
.hero__meta { color: var(--grigio); font-size: 15px; margin-bottom: 18px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- sezioni ---------- */
.section { padding: 26px 0 4px; }
.section h2 { font-size: 20px; font-weight: 800; margin: 0 18px 12px; }
.section h2 small { font-weight: 600; color: var(--grigio); font-size: 14px; margin-left: 6px; }

/* fila di miniature da scorrere */
.row { display: flex; align-items: flex-start; gap: 12px; scroll-padding: 0 18px; overflow-x: auto; padding: 4px 18px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 132px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.tile__img { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--card); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__num { position: absolute; left: 10px; bottom: 6px; font-size: 44px; font-weight: 900; line-height: 1; color: var(--testo); text-shadow: 0 2px 0 var(--rosa-ombra), 0 0 12px rgba(0,0,0,.6); }
.tile__badge { position: absolute; top: 8px; left: 8px; right: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; background: var(--rosa); color: #140a10; border-radius: 6px; padding: 3px 6px; text-transform: uppercase; text-align: center; }
.tile__play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(20, 16, 20, .7); display: grid; place-items: center; font-size: 14px; }
.tile__name { font-size: 14px; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.tile__sett { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rosa); margin-top: 8px; }
.tile__sum { font-size: 12px; color: var(--grigio); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 60% at 70% 20%, rgba(255, 77, 166, .35), transparent 70%), var(--card); }

/* elenco esercizi */
.list { margin: 0 14px; display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; width: 100%; background: var(--card); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 10px; cursor: pointer; text-align: left; }
.item__thumb { flex: 0 0 64px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--bg-2); position: relative; }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.item__thumb .n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: var(--rosa); }
.item__body { flex: 1; min-width: 0; }
.item__ep { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--rosa); text-transform: uppercase; }
.item__name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.item__sum { font-size: 14px; color: var(--grigio); }
.item__go { font-size: 22px; color: var(--grigio); padding-right: 6px; }
.superset-label { margin: 10px 4px 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--oro); text-transform: uppercase; }

/* ---------- il mio pacchetto ---------- */
.card { margin: 0 14px; background: var(--card); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 18px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linea); font-size: 16px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--grigio); }
.kv span:last-child { font-weight: 700; text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill--ok { background: rgba(73, 197, 138, .15); color: var(--ok); }
.pill--wait { background: rgba(228, 192, 122, .15); color: var(--oro); }
.pill--late { background: rgba(255, 77, 166, .15); color: var(--rosa); }

/* ---------- schermate di stato (attesa, scaduto, non attivo) ---------- */
.state { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 30px 26px; max-width: 480px; margin: 0 auto; }
.state__icon { font-size: 54px; margin-bottom: 10px; }
.state h1 { font-size: 26px; font-weight: 900; margin: 0 0 10px; }
.state p { color: var(--grigio); margin: 0 0 16px; }
.countdown { font-size: 56px; font-weight: 900; color: var(--rosa); line-height: 1; margin: 10px 0 2px; }
.countdown-label { font-size: 14px; color: var(--grigio); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }

/* ---------- avviso installazione ---------- */
.install { margin: 18px 14px 0; background: linear-gradient(135deg, rgba(255, 77, 166, .16), rgba(163, 36, 106, .16)); border: 1px solid rgba(255, 77, 166, .35); border-radius: var(--raggio); padding: 14px 16px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.install b { color: var(--testo); }
.install .x { margin-left: auto; background: none; border: 0; color: var(--grigio); font-size: 20px; cursor: pointer; padding: 0 4px; }

.admin-bar { margin: 0 14px 14px; padding: 12px 16px; border-radius: 12px; background: rgba(228, 192, 122, .1); border: 1px solid rgba(228, 192, 122, .4); font-size: 14px; }

.footer { text-align: center; color: var(--grigio); font-size: 12px; padding: 34px 20px calc(30px + var(--sicuro-basso)); }

/* ---------- finestra dell'episodio ---------- */
.episode { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.episode__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--sicuro-alto)) 14px 10px; background: var(--bg); }
.episode__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font-size: 22px; cursor: pointer; }
/* (v0.19.0) musica di sottofondo */
/* il 🎵 sta un po' più in basso della ✕ e, quando la musica è accesa, è un cerchio rosa pieno: si vede */
.musica-btn { position: relative; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; flex: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: background .15s, box-shadow .15s; }
.musica-btn.is-on { background: var(--rosa); box-shadow: 0 2px 14px rgba(255, 77, 166, .45); }
.musica-btn svg { width: 21px; height: 21px; display: block; margin: 0 auto; color: var(--grigio); }
.musica-btn.is-on svg { color: #14090F; }
.musica-pan { position: fixed; z-index: 210; right: 12px; top: calc(62px + var(--sicuro-alto)); width: min(290px, calc(100vw - 24px));
  background: var(--card); border: 1px solid var(--linea); border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.musica-pan__riga { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.musica-pan__chiudi { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; }
.musica-pan__sw { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.musica-pan__vol { display: block; padding: 6px 0; font-size: 14px; color: var(--grigio); }
.musica-pan__vol input { width: 100%; margin-top: 6px; accent-color: var(--rosa); }
.musica-pan__ora { font-size: 13px; color: var(--grigio); margin: 6px 0 4px; min-height: 18px; }
.musica-pan__nota { font-size: 12px; color: var(--grigio); margin: 10px 0 0; line-height: 1.4; }

/* (v0.36.0) scritta a sinistra, accanto alla ✕: lascia il posto al pulsante «Riposo»; se è stretta va su due righe */
/* (v0.36.1) top 10px = stessa altezza di «Riposo» e 🎵 (più in alto si leggeva male); anche la ✕ dell'esercizio */
#epClose { position: relative; top: 10px; }
.episode__count { position: relative; top: 10px; flex: 1; min-width: 0; margin: 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; color: var(--rosa); text-transform: uppercase; }
.episode__count span { white-space: nowrap; }
/* video incorniciato come una pellicola: perforazioni rosa ai lati che sfumano in alto e in basso */
.video {
  --foro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Crect x='4' y='9' width='14' height='16' rx='4' fill='%23FF4DA6'/%3E%3C/svg%3E");
  position: relative; width: fit-content; max-width: 100%; margin: 6px auto 0; padding: 14px 30px;
  background: #0b080b; border-radius: 22px;
}
.video::before, .video::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30px;
  background-image: var(--foro); background-repeat: repeat-y; background-position: center top; background-size: 22px 34px;
  opacity: .85;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.video::before { left: 4px; }
.video::after { right: 4px; }
/* (v0.25.0) il riquadro prende la forma vera del video (--ar = larghezza/altezza, da Bunny):
   niente strisce sopra e sotto. Senza misure resta verticale 9:16 come prima. */
.video__screen { position: relative; aspect-ratio: var(--ar, 0.5625); width: min(calc(100vw - 60px), calc(64vh * var(--ar, 0.5625)), var(--maxw, 400px)); margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 2px rgba(255, 77, 166, .25), 0 10px 30px rgba(0, 0, 0, .6); }
.video__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .novideo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--grigio); text-align: center; padding: 20px; }

/* (v0.35.0) riposo fra le serie: pastiglia nell'angolo del video + conto alla rovescia a tutto schermo */
/* (v0.36.0) in alto, a sinistra della musica (prima era sul video e copriva); top 10px = allineato al 🎵 */
.riposo-btn { position: relative; top: 10px; flex: none; margin-right: 10px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--rosa); color: #140a10; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5); }
.riposo-btn:active { transform: scale(.96); }
.riposo-btn b { font-variant-numeric: tabular-nums; }
/* sempre scuro, anche col tema chiaro: è una pausa, non una pagina */
.riposo { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: calc(24px + var(--sicuro-alto)) 24px 24px; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 38%, #3a1730, #1E181D 62%); }
.riposo__titolo { font-size: 14px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #E4C07A; }
.riposo__anello { position: relative; width: min(72vw, 46vh, 320px); aspect-ratio: 1; }
.riposo__anello svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; overflow: visible; }
.riposo__base, .riposo__giro { fill: none; stroke-width: 5; }
.riposo__base { stroke: rgba(255, 255, 255, .1); }
.riposo__giro { stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 5px rgba(255, 77, 166, .55)); }
.riposo__num { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(54px, 19vw, 84px); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.riposo__sotto { font-size: 16px; color: rgba(255, 255, 255, .7); }
.riposo__salta { min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1.5px solid #E4C07A; background: rgba(228, 192, 122, .12);
  color: #E4C07A; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.riposo__salta:active { background: rgba(228, 192, 122, .28); }
@media (prefers-reduced-motion: reduce) { .riposo__giro { transition: none; } }
.episode__body { max-width: 560px; margin: 0 auto; padding: 18px 18px calc(30px + var(--sicuro-basso)); }
.episode__name { font-size: 26px; font-weight: 900; line-height: 1.15; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--linea); }
.chip--rosa { border-color: var(--rosa); color: var(--rosa); }
.chip--oro { border-color: var(--oro); color: var(--oro); }
.note { background: var(--card); border-left: 4px solid var(--rosa); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 16px; }
.note b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); margin-bottom: 2px; }
.sets { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 20px; }
.sets th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--grigio); font-weight: 700; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linea); }
.sets td { padding: 12px 6px; border-bottom: 1px solid var(--linea); }
.sets td.serie { font-weight: 800; color: var(--rosa); width: 36px; }
/* (v0.40.0) spunta della serie fatta */
.sets th.sets__ok, .sets td.sets__ok { width: 44px; padding-left: 0; padding-right: 0; }
.sets .solo-voce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sets .ok { width: 44px; height: 44px; margin: -10px 0; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sets .ok::before { content: ""; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linea); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.sets tr.ora .ok::before { border-color: var(--rosa); }
.sets tr.fatta .ok::before { content: "✓"; background: var(--rosa); border-color: var(--rosa); color: #140a10; }
.sets tr.fatta td:not(.sets__ok) { opacity: .45; text-decoration: line-through; }
.sets .ok:active::before { transform: scale(.92); }
.sets .warm { color: var(--oro); font-size: 13px; font-weight: 700; }
.episode__nav { display: flex; gap: 10px; }
.episode__nav .btn { flex: 1; padding: 0 12px; font-size: 17px; white-space: nowrap; }

@media (min-width: 900px) {
  .hero { min-height: 420px; max-width: 1100px; margin: 0 auto; }
  .section, .list, .card { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .tile { flex-basis: 160px; }
}

/* =====================================================================
   AREA DI GESTIONE (admin.js)
   ===================================================================== */
.adm-tag { font-size: 11px; letter-spacing: .14em; color: var(--oro); font-weight: 800; margin-left: 6px; vertical-align: middle; }
.adm-tabs { display: flex; gap: 6px; padding: 0 14px 10px; position: sticky; top: calc(72px + var(--sicuro-alto)); z-index: 4; background: var(--bg); }
.adm-tabs button { flex: 1; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--card); font-weight: 700; cursor: pointer; }
.adm-tabs button.on { background: var(--rosa); color: #140a10; border-color: var(--rosa); }
.adm-body { padding-bottom: 20px; max-width: 900px; margin: 0 auto; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 14px 10px; flex-wrap: wrap; }
.adm-head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.adm-head__btn { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }   /* (v0.54.0) «Nuovo modello» + «Programmi specifici» */
.adm-head h2 small { color: var(--grigio); font-size: 15px; font-weight: 600; }
.adm-search { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--linea); font-size: 16px; outline: none; }
.adm-head .adm-search { flex: 1 1 220px; }
.adm-hint { color: var(--grigio); font-size: 14px; margin: 6px 14px 12px; }
.card .adm-hint { margin: 6px 0 12px; }
.adm-title { margin: 6px 14px 12px; font-size: 26px; font-weight: 900; }
.adm-body > .link-btn { margin: 4px 14px 0; }
.adm-card { margin-bottom: 14px; }
.adm-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.adm-card select, .adm-card .field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; }
.adm-card details summary { cursor: pointer; font-weight: 700; color: var(--rosa-chiaro); margin: 10px 0 14px; }
.adm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-row .field { flex: 1 1 120px; }
.adm-check { display: flex !important; align-items: center; gap: 8px; padding-top: 22px; }
.adm-check input { width: 22px !important; min-height: 22px !important; }
.adm-alert { margin: 14px 14px 0; padding: 14px 16px; border-radius: var(--raggio); background: rgba(255, 77, 166, .12); border: 1.5px solid rgba(255, 77, 166, .55); }
.adm-alert--oro { background: rgba(228, 192, 122, .1); border-color: rgba(228, 192, 122, .5); }
.adm-alert b { display: block; margin-bottom: 6px; }
.adm-alert__row { padding: 8px 0; border-top: 1px solid var(--linea); cursor: pointer; font-size: 15px; }
.switch { display: flex; align-items: center; gap: 10px; margin: 14px 0; cursor: pointer; font-size: 16px; }
.switch input { display: none; }
.switch span { width: 52px; height: 30px; border-radius: 999px; background: var(--linea); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--testo); transition: left .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 25px; }
.adm-item__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.adm-ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--linea); background: var(--bg-2); cursor: pointer; font-size: 16px; }
.adm-ico:disabled { opacity: .3; }
.adm-sets { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-sets th { text-align: left; color: var(--grigio); font-weight: 700; font-size: 12px; padding: 4px 3px; }
.adm-sets td { padding: 3px; }
.adm-sets input, .adm-sets select { width: 100%; min-width: 0; min-height: 40px; padding: 0 6px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--linea); font-size: 15px; }
.adm-sets td:first-child { color: var(--rosa); font-weight: 800; width: 22px; }
/* (v0.16.0) ci stanno tutti gli esercizi: si scorre, il riquadro non cresce */
.adm-results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }

/* (v0.16.0) superserie: riga di collegamento in cima all'esercizio + cornice oro su chi è in superserie */
.adm-ss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; font-size: 13px; }
.adm-ss__btn { color: var(--grigio); }
.adm-ss__btn:hover { color: var(--rosa); }
.adm-ss__on { color: #e8c35a; font-weight: 600; }
.adm-item--ss { border-left: 3px solid #e8c35a; }
.adm-hint--tempo { margin-top: -4px; }
.adm-chip { border: 1px solid var(--linea); background: var(--bg-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: 14px; text-align: left; }
.adm-chip small { color: var(--grigio); }
.adm-save { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px calc(12px + var(--sicuro-basso)); background: linear-gradient(var(--bg-trasp), var(--bg) 30%); }
.adm-save .btn:first-child { flex: 1; }
.adm-es { cursor: default; }
.adm-guid { width: 100%; margin-top: 8px; min-height: 40px; padding: 0 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--linea); font-size: 13px; color: var(--grigio); }
.toast { position: fixed; left: 50%; top: calc(16px + var(--sicuro-alto)); transform: translateX(-50%); z-index: 100; background: var(--ok); color: #08130d; font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 90vw; text-align: center; }
.toast--err { background: var(--rosa); color: #140a10; }

.adm-sets .adm-tipo { min-width: 64px; }
.adm-sets th:nth-child(2), .adm-sets td:nth-child(2) { width: 70px; }

.install__steps { margin: 8px 0 0; padding-left: 20px; }
.install__steps li { margin: 6px 0; }
.ico { width: 22px; height: 22px; vertical-align: -6px; color: var(--rosa); margin: 0 2px; }


/* =====================================================================
   v0.3.0 — TEMA CHIARO (scelto da ogni persona: menu › ☀︎ Tema chiaro)
   Crema caldo, mai bianco puro; il rosa del marchio resta il protagonista.
   Il video resta incorniciato al buio, come al cinema.
   ===================================================================== */
:root[data-tema="chiaro"] {
  --bg: #F6EDE8;
  --bg-2: #EFE2DB;
  --card: #FCF6F3;
  --linea: #E3D0C8;
  --rosa: #E83A8E;
  --rosa-scuro: #A3246A;
  --rosa-chiaro: #B81F68;
  --rosa-ombra: #9E1457;
  --oro: #9A6B1F;
  --testo: #2A1F27;
  --grigio: #76646D;
  --ok: #1E8A55;
  --bg-trasp: rgba(246, 237, 232, 0);
  --hero-fade: rgba(246, 237, 232, .94);
  --ombra: rgba(90, 40, 60, .18);
  color-scheme: light;
}
:root[data-tema="chiaro"] .hero__bg--vuoto {
  background: radial-gradient(90% 70% at 80% 10%, rgba(232, 58, 142, .45), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .35), transparent 60%), var(--bg-2);
}
:root[data-tema="chiaro"] .login {
  background: radial-gradient(120% 60% at 50% 0%, rgba(232, 58, 142, .22), transparent 60%), var(--bg);
}
:root[data-tema="chiaro"] .tile__num { color: #fff; }
:root[data-tema="chiaro"] .placeholder { background: radial-gradient(80% 60% at 70% 20%, rgba(232, 58, 142, .35), transparent 70%), var(--bg-2); }
:root[data-tema="chiaro"] .tile__play { background: rgba(255, 255, 255, .8); }
:root[data-tema="chiaro"] .menu { box-shadow: 0 12px 40px var(--ombra); }
:root[data-tema="chiaro"] .msg--err, :root[data-tema="chiaro"] .adm-alert { background: rgba(232, 58, 142, .08); }
:root[data-tema="chiaro"] .install { background: linear-gradient(135deg, rgba(232, 58, 142, .10), rgba(163, 36, 106, .08)); }
:root[data-tema="chiaro"] .episode .episode__top { background: var(--bg); }
:root[data-tema="chiaro"] .note b { color: var(--rosa); }
:root[data-tema="chiaro"] .wordmark .w-net { color: var(--rosa); }

/* ---------- intestazione: chat + iniziali ---------- */
.topbar__right { display: flex; align-items: center; gap: 8px; }
.menu-btn { font-size: 15px; letter-spacing: .02em; }
.chat-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--rosa); cursor: pointer; display: grid; place-items: center; }
.chat-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rosa); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.item__thumb { position: relative; }
.item__thumb .badge { top: 4px; right: 4px; }

/* pulsante fisso per tornare alla gestione (solo Alessandra in anteprima) */
.back-admin { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 0 22px; bottom: calc(16px + var(--sicuro-basso)); min-height: 48px; font-size: 16px; box-shadow: 0 5px 0 var(--rosa-ombra), 0 10px 30px var(--ombra); }
.back-admin:active { transform: translateX(-50%) translateY(4px); }

/* ---------- banner messaggio e avvisi nella home ---------- */
.msg-banner { display: flex; gap: 12px; align-items: center; width: calc(100% - 28px); margin: 16px 14px 0; padding: 14px 16px; border-radius: var(--raggio); border: 1.5px solid var(--rosa); background: var(--card); text-align: left; cursor: pointer; }
.msg-banner__ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--rosa); color: #fff; display: grid; place-items: center; }
.msg-banner__ico svg { width: 22px; height: 22px; }
.msg-banner__txt { display: block; color: var(--grigio); font-size: 14px; margin-top: 2px; }
.avvisi { margin: 14px 14px 0; padding: 6px 16px; border-radius: var(--raggio); background: var(--card); border: 1.5px solid var(--oro); }
.avvisi__row { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--linea); }
.avvisi__row:last-child { border-bottom: 0; }

/* ---------- chat ---------- */
.chat { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.chat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--sicuro-alto)) 14px 10px; border-bottom: 1px solid var(--linea); text-align: center; }
.chat__title { font-weight: 800; font-size: 17px; }
.chat__sub { font-size: 12px; color: var(--grigio); }
.chat__list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.chat__list--inline { max-height: 380px; min-height: 120px; padding: 6px 0 10px; border-bottom: 1px solid var(--linea); margin-bottom: 12px; }
.chat__day { align-self: center; font-size: 12px; color: var(--grigio); background: var(--bg-2); padding: 3px 10px; border-radius: 999px; margin: 6px 0; text-transform: capitalize; }
.bubble { max-width: 82%; align-self: flex-start; background: var(--card); border: 1px solid var(--linea); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 16px; line-height: 1.4; white-space: normal; word-wrap: break-word; }
.bubble--me { align-self: flex-end; background: var(--rosa); color: #fff; border-color: var(--rosa); border-radius: 16px 16px 4px 16px; }
.bubble__t { display: block; font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.chat__form { position: relative; display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--sicuro-basso)); border-top: 1px solid var(--linea); background: var(--bg); }
.chat__form--inline { padding: 0; border-top: 0; background: none; }
.chat__form textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--linea); font-size: 16px; color: var(--testo); outline: none; font-family: inherit; }
.chat__form textarea:focus { border-color: var(--rosa); }
.adm-card textarea { width: 100%; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; color: var(--testo); font-family: inherit; resize: vertical; }

/* ---------- registro allenamenti (gestione) ---------- */
.adm-workouts .kv { align-items: flex-start; }
.adm-workouts small { color: var(--grigio); font-weight: 500; }
.adm-wk[data-c] { cursor: pointer; }
.adm-alert--chat { background: rgba(255, 77, 166, .08); }

/* =====================================================================
   v0.3.1 — gestione più comoda: chat in alto, trascinamento, esercizi
   ===================================================================== */
.adm-tabs button { position: relative; padding: 0 6px; font-size: 15px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--rosa); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 1px; }
.adm-tabs button.on .tab-badge { background: #140a10; color: var(--rosa); }
.tab-badge[hidden], .badge[hidden] { display: none; }

.item--off { opacity: .55; }
.item--nuovo { border-color: var(--rosa); }
.item__thumb--tondo { flex-basis: 52px; height: 52px; border-radius: 50%; }
.item__thumb--tondo .n { font-size: 18px; }
.item__ora { float: right; font-size: 12px; font-weight: 600; color: var(--grigio); margin-left: 8px; }
.item__anteprima { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* salti rapidi nella scheda cliente */
.adm-jump { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.adm-jump::-webkit-scrollbar { display: none; }
/* (v0.54.0) col mouse la striscia non si può trascinare: va a capo e si vedono tutti i pulsanti */
@media (hover: hover) and (pointer: fine) { .adm-jump { flex-wrap: wrap; overflow-x: visible; } }
.adm-jump a { flex: none; text-decoration: none; color: var(--testo); background: var(--card); border: 1px solid var(--linea); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.adm-card { scroll-margin-top: calc(130px + var(--sicuro-alto)); }

/* riepilogo allenamenti (gestione) */
.adm-stats, .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.adm-stats div, .stats div { background: var(--bg-2); border-radius: 12px; padding: 10px 8px; text-align: center; }
.adm-stats b, .stats b { display: block; font-size: 24px; font-weight: 900; color: var(--rosa); line-height: 1.1; }
.adm-stats span, .stats span { font-size: 12px; color: var(--grigio); }
/* riepilogo allenamenti (cliente, nella home) */
.stats { margin: 0 14px 6px; }
.stats div { background: var(--card); border: 1px solid var(--linea); }
.stats__frase { margin: 4px 14px 0; color: var(--grigio); font-size: 14px; }

/* ordine degli episodi: trascina ⠿ */
.adm-order { list-style: none; margin: 0; padding: 0; }
.adm-order__row { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--linea); border-radius: 12px; padding: 4px 10px 4px 4px; margin-bottom: 6px; position: relative; }
.adm-order__row--su { z-index: 5; border-color: var(--rosa); box-shadow: 0 10px 28px var(--ombra); background: var(--card); }
.adm-order__grip { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; color: var(--rosa); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 10px; }
.adm-order__row--su .adm-order__grip { cursor: grabbing; }
.adm-order__n { font-weight: 900; color: var(--rosa); min-width: 20px; }
.adm-order__name { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-item__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-item__title img { width: 36px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.adm-item__btns { display: flex; gap: 4px; flex: none; }
.adm-row--btn { align-items: center; gap: 16px; }
.adm-chip__no { color: var(--rosa) !important; }
.adm-search--box { display: block; margin: 0 14px 4px; width: calc(100% - 28px); }
.adm-filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 14px 12px; }
.adm-filtri .adm-search { flex: 1 1 240px; width: auto; }
.adm-check--inline { padding-top: 0; font-size: 14px; color: var(--grigio); margin: 10px 0; }

/* esercizi: riga che si apre per modificare */
details.adm-es { display: block; padding: 0; }
.adm-es__sum { display: flex; gap: 14px; align-items: center; padding: 10px; cursor: pointer; list-style: none; }
.adm-es__sum::-webkit-details-marker { display: none; }
.item__thumb--es { flex-basis: 48px; height: 64px; }
.item__thumb--es .n { font-size: 18px; }

/* (v0.18.0) anteprime che si possono guardare, nell'area di gestione */
.adm-play { padding: 0; border: 0; background: var(--bg-2); cursor: pointer; display: block; }
.adm-play:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }
.adm-play__ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; color: #fff;
  background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.adm-play:hover .adm-play__ico, .adm-play:focus-visible .adm-play__ico { opacity: 1; }
@media (hover: none) { .adm-play__ico { opacity: 1; background: rgba(0, 0, 0, .25); } }
.adm-item__thumb { position: relative; width: 36px; height: 48px; border-radius: 6px; overflow: hidden; flex: none; }
.adm-item__thumb .adm-play__ico { font-size: 13px; }
.adm-velo__nome { margin: 10px 0 0; text-align: center; font-weight: 700; color: #fff; }
.adm-es[open] { border-color: var(--rosa); }
.adm-es__form { padding: 4px 14px 14px; border-top: 1px solid var(--linea); }
.adm-es__form .field input, .adm-es__form select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; }

/* esito del collegamento Bunny */
.adm-esito__tot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 8px; }
.adm-esito__tot div { background: var(--bg-2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.adm-esito__tot b { display: block; font-size: 20px; font-weight: 900; color: var(--rosa); }
.adm-esito__tot span { font-size: 11px; color: var(--grigio); }
.adm-esito { margin: 6px 0; }
.adm-esito summary { margin: 6px 0 !important; font-size: 15px; }
.adm-esito ul { margin: 0 0 8px; padding-left: 20px; max-height: 260px; overflow-y: auto; font-size: 14px; }
.adm-esito li { margin: 3px 0; }
input[type="checkbox"] { accent-color: var(--rosa); width: 20px; height: 20px; }

/* =====================================================================
   v0.3.3 — il peso della cliente e "come si esegue"
   ===================================================================== */
.peso { background: var(--card); border: 1.5px solid var(--rosa); border-radius: var(--raggio); padding: 14px 16px; margin-bottom: 16px; }
.peso__testa { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.peso__testa b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); }
.peso__stato { font-size: 13px; color: var(--grigio); }
.peso__stato--err { color: var(--rosa); font-weight: 700; }
.peso__ctrl { display: flex; align-items: center; gap: 12px; }
.peso__btn { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--rosa); color: #140a10; font-size: 30px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--rosa-ombra); }
.peso__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rosa-ombra); }
.peso__val { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; background: var(--bg-2); border-radius: 14px; padding: 6px 10px; }
.peso__val input { width: 100%; max-width: 120px; background: none; border: 0; outline: none; text-align: right; font-size: 38px; font-weight: 900; color: var(--testo); padding: 0; }
.peso__val span { font-size: 18px; font-weight: 700; color: var(--grigio); }
.peso__info { margin: 10px 0 0; font-size: 13px; color: var(--grigio); }
.come { background: var(--card); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 12px 14px; margin-bottom: 16px; }
.come summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); }
.come__testo { margin-top: 8px; font-size: 16px; line-height: 1.5; white-space: pre-line; }
.adm-es__form textarea { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; color: var(--testo); font-family: inherit; resize: vertical; }
.adm-pesi .kv span:last-child { text-align: right; }
.adm-pesi small { color: var(--grigio); font-weight: 500; }

/* =====================================================================
   v0.4.0 — Stagione → Settimane (carosello) → Giorni → Esercizi
   ===================================================================== */
.stagione { padding: 6px 0 0; }
.settimane { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 14px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.settimane::-webkit-scrollbar { display: none; }
.sett {
  position: relative; flex: 0 0 calc(100% - 44px); max-width: 560px; min-height: 300px; scroll-snap-align: center;
  border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 77, 166, .55), transparent 62%),
    radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .65), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--linea);
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.sett__num {
  position: absolute; right: -6px; top: -26px; font-size: 230px; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .22); pointer-events: none; user-select: none;
}
.sett__corpo { position: relative; padding: 22px 20px 20px; width: 100%; background: linear-gradient(transparent, rgba(10, 6, 9, .55) 45%); }
.sett__stagione { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--rosa); text-transform: uppercase; }
.sett__titolo { font-size: 40px; font-weight: 900; line-height: 1.02; margin: 2px 0 4px; color: #fff; }
.sett__stato { font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: 12px; }
.sett__giorni { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gpill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.gpill--ok { background: rgba(73, 197, 138, .22); border-color: rgba(73, 197, 138, .5); color: #c9f3dd; }
.sett__btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* settimana finita: più scura e sfumata, con il timbro */
.sett--fatta { filter: grayscale(.75) brightness(.62); }
.sett--fatta .sett__btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.sett__timbro {
  position: absolute; top: 22px; right: 18px; transform: rotate(8deg);
  border: 2.5px solid #c9f3dd; color: #c9f3dd; border-radius: 10px; padding: 4px 10px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; background: rgba(0, 0, 0, .2);
}
.sett--ora { border-color: var(--rosa); box-shadow: 0 0 0 1px var(--rosa), 0 14px 40px rgba(255, 77, 166, .18); }
.settimane__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 0; }
.settimane__freccia { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--linea); background: var(--card); color: var(--testo); font-size: 20px; cursor: pointer; }
.settimane__freccia:disabled { opacity: .3; cursor: default; }
.settimane__punti { display: flex; gap: 8px; }
.punto { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: var(--linea); cursor: pointer; transition: width .25s ease, background .25s ease; }
.punto--on { width: 24px; background: var(--rosa); }
@media (pointer: coarse) { .settimane__freccia { display: none; } }

/* riepilogo della settimana */
.stats b i { font-style: normal; font-size: 15px; color: var(--grigio); font-weight: 700; }
.barra { height: 6px; margin: 2px 14px 0; border-radius: 999px; background: var(--card); overflow: hidden; border: 1px solid var(--linea); }
.barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--rosa-scuro), var(--rosa)); border-radius: 999px; transition: width .5s ease; }

/* episodi = giorni */
.tile__giorno { position: absolute; left: 10px; right: 10px; bottom: 6px; font-size: 44px; font-weight: 900; line-height: .95; color: #fff; text-shadow: 0 2px 0 var(--rosa-ombra), 0 0 14px rgba(0, 0, 0, .6); }
.tile__giorno small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); margin-bottom: 2px; }
.tile--giorno { transition: opacity .3s ease, filter .3s ease; }
.tile--sel .tile__img { box-shadow: 0 0 0 3px var(--rosa); }
.tile--fatto .tile__img { filter: grayscale(.8) brightness(.55); }
.tile--fatto .tile__name, .tile--fatto .tile__sum, .tile--fatto .tile__sett { opacity: .6; }
.tile__badge--ok { left: auto; right: 8px; background: var(--ok); color: #08130d; }
.tile--fatto .tile__badge--ok { filter: none; }

/* linguette dei giorni sopra gli esercizi */
.giorni-tab { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.giorni-tab::-webkit-scrollbar { display: none; }
.gtab { flex: none; border: 1.5px solid var(--linea); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.gtab--on { border-color: var(--rosa); background: var(--rosa); color: #140a10; }
.gtab--ok:not(.gtab--on) { color: var(--ok); border-color: rgba(73, 197, 138, .45); }
.note--giorno { margin: 0 14px 12px; }

/* esercizio già visto nell'allenamento in corso */
.item--visto { opacity: .55; }
.item--visto .item__thumb img { filter: grayscale(.8); }
.item__ok { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #08130d; font-size: 13px; font-weight: 900; display: grid; place-items: center; }

/* foto e misure: riquadro in home */
.progressi-card { display: flex; gap: 14px; align-items: center; width: calc(100% - 28px); margin: 0 14px; padding: 14px 16px; border-radius: var(--raggio); background: var(--card); border: 1.5px solid var(--linea); text-align: left; cursor: pointer; }
.progressi-card__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--rosa-scuro), var(--rosa)); }
.progressi-card__testo { flex: 1; min-width: 0; }
.progressi-card__testo b { display: block; font-size: 16px; }
.progressi-card__testo span { display: block; font-size: 14px; color: var(--grigio); }

/* pannello a tutto schermo */
.pannello { z-index: 70; }
.pannello__corpo { flex: 1; overflow-y: auto; padding: 16px 14px calc(30px + var(--sicuro-basso)); -webkit-overflow-scrolling: touch; }
.pannello__corpo > .btn { margin-bottom: 16px; }
.pg-titolo { margin: 22px 0 10px; font-size: 18px; font-weight: 900; }
.pg-vuoto { color: var(--grigio); text-align: center; padding: 24px 10px; }
.pg-info { color: var(--grigio); font-size: 13px; margin-top: 18px; }
.pg-form { margin: 0 0 16px; }
.pg-form .field input, .pg-form textarea { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 17px; }
.pg-form textarea { padding: 10px 12px; font-family: inherit; color: var(--testo); resize: vertical; }
.pg-campi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
.pg-foto-testa { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; }
.pg-foto-testa small { color: var(--grigio); }
.pg-slot-riga { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pg-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px dashed var(--linea); background: var(--bg-2); overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.pg-slot__vuoto { text-align: center; color: var(--grigio); font-size: 13px; font-weight: 700; line-height: 1.5; }
.pg-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-slot__nome { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 6px; border-radius: 6px; text-transform: capitalize; }
.pg-consenso { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.pg-consenso p { margin: 0 0 6px; color: var(--grigio); }
.pg-check { background: var(--card); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 14px; margin-bottom: 12px; }
.pg-check__testa { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pg-check__testa .link-btn { padding: 0; font-size: 13px; }
.pg-misure { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pg-misura { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; }
.pg-misura span { display: block; font-size: 12px; color: var(--grigio); }
.pg-misura b { font-size: 20px; font-weight: 900; }
.pg-misura b i { font-style: normal; font-size: 12px; color: var(--grigio); margin-left: 2px; font-weight: 700; }
.pg-misura small { display: block; font-size: 12px; color: var(--grigio); }
.pg-mini { display: flex; gap: 8px; margin-top: 10px; }
.pg-mini__foto { position: relative; width: 74px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--bg-2); }
.pg-mini__foto img { width: 100%; height: 100%; object-fit: cover; }
.pg-mini__foto span { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 5px; text-transform: capitalize; }
.pg-note { margin: 10px 0 0; font-size: 14px; color: var(--grigio); }
.pg-confronto { background: var(--card); border: 1.5px solid var(--rosa); border-radius: var(--raggio); padding: 14px; margin-bottom: 8px; }
.pg-confronto__testa { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pg-confronto__testa b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); }
.pg-viste { display: flex; gap: 6px; }
.pg-vista { border: 1px solid var(--linea); background: var(--bg-2); border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pg-vista--on { background: var(--rosa); border-color: var(--rosa); color: #140a10; }
.pg-confronto__foto { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-confronto__foto figure { margin: 0; }
.pg-confronto__foto img, .pg-vuota { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; cursor: zoom-in; }
.pg-confronto__foto figcaption { text-align: center; font-size: 12px; color: var(--grigio); margin-top: 4px; }
.pg-differenze { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pg-differenze span { font-size: 13px; font-weight: 700; background: var(--bg-2); border-radius: 999px; padding: 4px 10px; }
.pg-zoom { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: calc(60px + var(--sicuro-alto)) 10px calc(20px + var(--sicuro-basso)); }
.pg-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pg-zoom__x { position: absolute; top: calc(10px + var(--sicuro-alto)); left: 14px; }

/* contenuti speciali: scaffali Guide e Ricette con le locandine */
.speciali h2 small { font-weight: 600; }
.scaffale { margin-bottom: 18px; }
.scaffale__nome { margin: 0 14px 10px; font-size: 16px; font-weight: 800; }
.scaffale__nome small { color: var(--grigio); font-weight: 600; margin-left: 4px; }
.row--locandine .locandina { flex: 0 0 138px; }
.locandina { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; scroll-snap-align: start; }
.locandina__img { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 10px 24px var(--ombra); }
.locandina__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.locandina:active .locandina__img img { transform: scale(.97); }
.locandina__titolo { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.scaffale__vuoto { margin: 0 14px; padding: 16px; border-radius: 12px; border: 1.5px dashed var(--linea); color: var(--grigio); font-size: 14px; text-align: center; }
.speciale__carico { padding: 30px; text-align: center; color: var(--grigio); }
.speciale__pagina { flex: 1; width: 100%; border: 0; background: #fff; }
@media (min-width: 900px) { .row--locandine .locandina { flex-basis: 170px; } .sett { flex-basis: 640px; } }

/* tema chiaro */
:root[data-tema="chiaro"] .sett { background: radial-gradient(90% 70% at 85% 0%, rgba(232, 58, 142, .55), transparent 62%), radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .55), transparent 60%), #3a2733; border-color: transparent; }
:root[data-tema="chiaro"] .sett--fatta { filter: grayscale(.75) brightness(.8); opacity: .8; }
:root[data-tema="chiaro"] .tile--fatto .tile__img { filter: grayscale(.8) brightness(.8); opacity: .75; }
/* giorni: ▶ in alto a destra, "Fatto" in alto a sinistra, nome del giorno in basso a tutta larghezza */
.tile--giorno .tile__play { top: 8px; bottom: auto; right: 8px; }
.tile--giorno .tile__badge--ok { left: 8px; right: auto; }

/* v0.4.0 · editor delle Stagioni (area riservata) */
.adm-field--largo { flex: 3 1 200px !important; }
.adm-field--stretto { flex: 1 1 90px !important; max-width: 140px; }
.adm-giorni__tab { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.adm-giorni__tab::-webkit-scrollbar { display: none; }
.adm-giorni__tab .gtab small { opacity: .7; font-weight: 600; margin-left: 4px; }
.gtab--nuovo { border-style: dashed; color: var(--rosa); }
.adm-giorni__nome { align-items: flex-end; }
.adm-giorni__nome .adm-item__btns { display: flex; gap: 6px; padding-bottom: 10px; }
.adm-giorni__elenco { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.adm-giorni__elenco .gpill { background: transparent; color: var(--testo); border-color: var(--linea); padding: 2px 8px; font-size: 11.5px; }

/* ---------------------------------------------------------------------
   v0.5.0 · date della Stagione e check di fine Stagione
   --------------------------------------------------------------------- */

.progressi-card--check { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(255, 77, 166, .18); }
.progressi-card--check .progressi-card__testo b { color: var(--rosa); }

.menu-pallino { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 2px var(--card); }

.check-avviso { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: calc(20px + var(--sicuro-alto)) 18px calc(20px + var(--sicuro-basso)); background: rgba(10, 6, 9, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: check-entra .28s ease-out; }
.check-avviso__card { width: 100%; max-width: 380px; text-align: center; padding: 28px 22px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 77, 166, .16), rgba(255, 77, 166, 0) 55%), var(--card); border: 1.5px solid rgba(255, 77, 166, .45); box-shadow: 0 24px 60px var(--ombra); display: flex; flex-direction: column; gap: 12px; }
.check-avviso__ico { font-size: 46px; line-height: 1; }
.check-avviso__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rosa); }
.check-avviso h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.check-avviso p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; color: var(--testo); }
.check-avviso .btn { width: 100%; }
.check-avviso__pallino { font-size: 13.5px; margin-top: 2px; }
@keyframes check-entra { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .check-avviso { animation: none; } }

/* v0.5.0 · area di gestione: date della Stagione */
.adm-alert--check { border-color: var(--rosa); }
.adm-alert--check b { color: var(--rosa); }
.adm-stagione { margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linea); background: rgba(255, 77, 166, .06); }
.adm-stagione__titolo { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.adm-stagione__date { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.adm-stagione__date div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--linea); }
.adm-stagione__date span { font-size: 11.5px; color: var(--grigio); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.adm-stagione__date b { font-size: 17px; }
.adm-stagione__check { border-color: rgba(255, 77, 166, .5) !important; }
.adm-stagione__check b { color: var(--rosa); }

/* ---------------------------------------------------------------------
   v0.6.0 · notifiche sul telefono
   --------------------------------------------------------------------- */
.invito-notifiche { display: flex; align-items: center; gap: 12px; margin: 14px 14px 0; padding: 14px 12px 14px 16px; border-radius: var(--raggio); background: linear-gradient(90deg, rgba(255, 77, 166, .14), rgba(255, 77, 166, .04)); border: 1.5px solid rgba(255, 77, 166, .4); }
.invito-notifiche__ico { font-size: 26px; flex: none; }
.invito-notifiche__testo { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.invito-notifiche__testo b { font-size: 15px; }
.invito-notifiche__testo span { font-size: 13px; color: var(--grigio); line-height: 1.4; }
.invito-notifiche .btn { flex: none; }
.invito-notifiche__x { flex: none; align-self: flex-start; width: 28px; height: 28px; margin: -6px -2px 0 0; border: 0; background: none; color: var(--grigio); font-size: 22px; line-height: 1; cursor: pointer; }
.toast--info { background: var(--card); color: var(--testo); border: 1.5px solid var(--rosa); font-weight: 600; line-height: 1.45; border-radius: 16px; padding: 14px 18px; width: min(92vw, 420px); cursor: pointer; }
/* v0.6.0 · la copertina dell'esercizio resta dietro il lettore finché il video non è pronto */
.video__screen[style] { background-color: #000; background-size: cover; background-position: center; }

/* ---------------------------------------------------------------------
   v0.7.0 · affidabilità: senza connessione, stato del sistema
   --------------------------------------------------------------------- */
.offline { display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 12px 14px; border-radius: var(--raggio); background: var(--card); border: 1.5px solid var(--oro); font-size: 14px; line-height: 1.4; }
.offline__ico { font-size: 22px; flex: none; }
.offline span:nth-child(2) { flex: 1; }
.offline .btn { flex: none; }

.stato-pallino { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--bg); }
.adm-stato { display: grid; gap: 10px; }
.adm-stato__riga { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--linea); }
.adm-stato__luce { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; background: var(--grigio); }
.adm-stato__luce--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(73, 197, 138, .18); }
.adm-stato__luce--attenzione { background: var(--oro); box-shadow: 0 0 0 4px rgba(228, 192, 122, .2); }
.adm-stato__luce--ko { background: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .2); }
.adm-stato__testo { flex: 1; min-width: 0; }
.adm-stato__testo > b { display: block; font-size: 15px; }
.adm-stato__testo span b { color: var(--testo); }
.adm-stato__testo span { display: block; font-size: 13px; color: var(--grigio); line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.adm-errori { display: grid; gap: 8px; }
.adm-errore { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linea); font-size: 13px; line-height: 1.45; }
.adm-errore b { font-size: 13.5px; }
.adm-errore code { display: block; margin-top: 4px; font-size: 12px; color: var(--grigio); overflow-wrap: anywhere; white-space: pre-wrap; }
.adm-banner-stato { display: flex; gap: 10px; align-items: center; margin: 14px 14px 0; padding: 12px 14px; border-radius: var(--raggio); background: rgba(255, 59, 48, .1); border: 1.5px solid rgba(255, 59, 48, .5); cursor: pointer; font-size: 14.5px; }
.adm-h3 { margin: 22px 14px 10px; font-size: 16px; }
.adm-stato, .adm-errori { margin: 0 14px; }

/* =====================================================================
   v0.8.0 — pacchetto, blocco, fatture, guide protette, anamnesi,
   foto del check, costanza, presenza, impostazioni
   ===================================================================== */

/* schede della gestione: scorrono se non ci stanno (5 schede sul telefono) */
.adm-tabs { overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: 1 0 auto; padding: 0 14px; }

/* il mio pacchetto: conto alla rovescia */
.pk-count { margin: 0 14px 12px; padding: 18px; border-radius: var(--raggio); text-align: center;
  background: radial-gradient(90% 90% at 100% 0%, rgba(255, 77, 166, .22), transparent 65%), var(--card); border: 1px solid var(--linea); }
.pk-count__num { font-size: 52px; font-weight: 900; line-height: 1; color: var(--rosa); }
.pk-count__lbl { font-size: 14px; color: var(--grigio); font-weight: 700; letter-spacing: .04em; margin-top: 4px; }
.pk-count__date { font-size: 13px; color: var(--grigio); margin-top: 8px; }
.pk-count--pausa .pk-count__num { color: var(--oro); }
.pk-count--fine .pk-count__lbl { color: var(--testo); }
.pk-bar { height: 6px; border-radius: 999px; background: var(--linea); overflow: hidden; margin: 12px auto 0; max-width: 320px; }
.pk-bar span { display: block; height: 100%; background: var(--rosa); border-radius: inherit; }
.pk-count--pausa .pk-bar span { background: var(--oro); }
.pk-h3 { margin: 18px 14px 8px; font-size: 16px; font-weight: 800; }
.pk-sconto { margin: 14px 14px 0; padding: 14px 16px; border-radius: var(--raggio); border: 1.5px solid var(--oro); background: rgba(228, 192, 122, .1); font-size: 15px; }
.pk-fattura { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--linea); cursor: pointer; text-align: left; }
.pk-fattura span:first-child { color: var(--testo) !important; font-weight: 700; }
.pk-fattura span:last-child { color: var(--rosa-chiaro); font-weight: 600 !important; }

/* schermata di blocco (pagamento o pausa) */
.blocco { min-height: 0; padding-top: 40px; }
.blocco h1 { font-size: 24px; }
.blocco__lista { margin: 4px 0 14px; text-align: left; }
.blocco__lista .kv span:last-child { color: var(--rosa); }
.blocco__come { margin: 0 0 14px; text-align: left; }
.blocco__come p { margin: 6px 0 0; color: var(--testo); white-space: pre-line; font-size: 15px; }
.blocco__nota { font-size: 14px; }
.blocco__btn { display: grid; gap: 10px; }
.blocco__btn .link-btn { justify-self: center; }

/* guide e ricette */
.locandina__finta { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px;
  background: radial-gradient(90% 70% at 85% 0%, rgba(255, 77, 166, .55), transparent 62%), radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .6), transparent 60%), #2a1d27; }
.locandina__finta--ricetta { background: radial-gradient(90% 70% at 85% 0%, rgba(228, 192, 122, .55), transparent 62%), radial-gradient(80% 80% at 0% 100%, rgba(163, 36, 106, .55), transparent 60%), #2a1d27; }
.locandina__finta span { font-size: 30px; }
.locandina__finta b { font-size: 16px; font-weight: 900; line-height: 1.15; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.ct-vista { flex: 1; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg-2);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ct-pagine { display: grid; gap: 10px; padding: 10px 0 calc(30px + var(--sicuro-basso)); justify-items: center; }
.ct-pagina { width: 100%; max-width: 900px; height: auto; background: #fff; display: block; -webkit-user-drag: none; pointer-events: none; }
.ct-pagina:not(.ct-pagina--pronta) { background: linear-gradient(90deg, #f3f0ee, #fff, #f3f0ee); background-size: 200% 100%; animation: ct-carica 1.4s linear infinite; }
@keyframes ct-carica { to { background-position: -200% 0; } }
@media print { .ct-vista, .speciale__pagina { display: none !important; } }
.ct-thumb { width: 56px; height: 84px; border-radius: 8px; overflow: hidden; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-btns { margin-top: 8px; flex-wrap: wrap; }
.ct-item { cursor: default; }

/* foto del check: 4 spazi + altre */
.pg-slot-riga--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .pg-slot-riga--4 { gap: 6px; } .pg-slot-riga--4 .pg-slot__vuoto { font-size: 12px; } .pg-slot-riga--4 .pg-slot__nome { font-size: 10px; left: 4px; bottom: 4px; } }
.pg-slot--piu { border-style: dashed; border-color: var(--rosa); color: inherit; font: inherit; }
.pg-slot--piu .pg-slot__vuoto { color: var(--rosa-chiaro); }
.pg-slot__nome { text-transform: none; }
.pg-istruzioni { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--linea); font-size: 14px; }
.pg-istruzioni summary { cursor: pointer; font-weight: 800; }
.pg-istruzioni ul { margin: 10px 0 0; padding-left: 20px; color: var(--grigio); }
.pg-istruzioni li { margin-bottom: 6px; }

/* anamnesi (cliente) */
.an-intro { color: var(--grigio); font-size: 15px; margin: 0 0 16px; }
.an-form { display: grid; gap: 4px; }
.an-sez { margin: 18px 0 6px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--rosa-chiaro); }
.an-d { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--linea); margin-bottom: 8px; }
.an-d--manca { border-color: var(--rosa); background: rgba(255, 77, 166, .08); }
.an-q label { display: block; font-weight: 700; margin-bottom: 4px; }
.an-q small { display: block; color: var(--grigio); font-size: 13px; margin-bottom: 6px; }
.an-obbl { color: var(--rosa); }
.an-d input:not([type=radio]):not([type=checkbox]), .an-d textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 17px; margin-top: 4px; }
.an-scelte { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.an-scelte--col { flex-direction: column; }
.an-scelta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); cursor: pointer; font-size: 16px; }
.an-scelta input { width: 20px; height: 20px; accent-color: var(--rosa); flex: none; }
.an-scelta:has(input:checked) { border-color: var(--rosa); }
.an-consenso { margin: 14px 0 6px; }
.an-nota { font-size: 13px; color: var(--grigio); text-align: center; margin: 8px 0 0; }

/* gestione: livelli delle Stagioni */
.pill--livello { vertical-align: middle; }
.pill--principiante { background: rgba(73, 197, 138, .15); color: var(--ok); }
.pill--medio { background: rgba(228, 192, 122, .18); color: var(--oro); }
.pill--avanzato { background: rgba(255, 77, 166, .15); color: var(--rosa); }

/* gestione: chi è nell'app adesso */
.adm-presenza { margin: 14px 14px 0; padding: 12px 16px; border-radius: var(--raggio); background: var(--card); border: 1px solid var(--linea); }
.adm-presenza__testa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-presenza__testa small { margin-left: auto; color: var(--grigio); font-size: 13px; }
.adm-presenza__luce { width: 10px; height: 10px; border-radius: 50%; background: var(--linea); flex: none; }
.adm-presenza--on { border-color: rgba(73, 197, 138, .55); }
.adm-presenza--on .adm-presenza__luce { background: var(--ok); box-shadow: 0 0 0 0 rgba(73, 197, 138, .6); animation: adm-pulsa 1.8s infinite; }
@keyframes adm-pulsa { 70% { box-shadow: 0 0 0 8px rgba(73, 197, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(73, 197, 138, 0); } }
.adm-presenza__riga { display: flex; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; border-top: 1px solid var(--linea); padding: 9px 0; margin-top: 8px; cursor: pointer; text-align: left; font-size: 15px; }
.adm-presenza__riga span { color: var(--grigio); text-align: right; }
.adm-alert--pausa { background: rgba(228, 192, 122, .08); border-color: rgba(228, 192, 122, .4); }

/* gestione: costanza */
.adm-cost__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 8px; }
.adm-cost { background: var(--bg-2); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 14px; }
.adm-cost__testa { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-cost__testa b { display: block; font-size: 15px; }
.adm-cost__testa small { color: var(--grigio); font-size: 13px; }
.adm-cost__spiega { font-size: 13px; color: var(--grigio); margin: 8px 0 0; }
.adm-cost__numeri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.adm-cost__numeri div { background: var(--card); border-radius: 10px; padding: 8px 4px; text-align: center; }
.adm-cost__numeri b { display: block; font-size: 18px; font-weight: 900; }
.adm-cost__numeri span { font-size: 11px; color: var(--grigio); line-height: 1.2; display: block; }
.adm-cost__sett { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-top: 12px; }
.adm-cost__sett div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.adm-cost__sett span { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--linea); }
.adm-cost__sett span.pill--ok { background: var(--ok); }
.adm-cost__sett span.pill--wait { background: var(--oro); }
.adm-cost__sett span.pill--late { background: var(--rosa); }
.adm-cost__sett small { font-size: 11px; color: var(--grigio); }
.adm-cost__es { margin-top: 10px; }
.adm-cost__es summary { font-size: 14px; }
.adm-cost__media { margin: 0 0 10px; font-weight: 700; }
.adm-anello { --pct: 0; --col: var(--grigio); width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--col) calc(var(--pct) * 1%), var(--linea) 0); }
.adm-anello span { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.adm-anello.pill--ok { --col: var(--ok); background: conic-gradient(var(--ok) calc(var(--pct) * 1%), var(--linea) 0); }
.adm-anello.pill--wait { --col: var(--oro); background: conic-gradient(var(--oro) calc(var(--pct) * 1%), var(--linea) 0); }
.adm-anello.pill--late { --col: var(--rosa); background: conic-gradient(var(--rosa) calc(var(--pct) * 1%), var(--linea) 0); }
.adm-anello.pill--ok, .adm-anello.pill--wait, .adm-anello.pill--late { padding: 0; color: inherit; font-size: inherit; }

/* gestione: pacchetto */
.adm-h4 { margin: 20px 0 8px; font-size: 15px; font-weight: 800; }
.adm-h4 .adm-hint { font-weight: 500; }
.adm-avviso { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(228, 192, 122, .12); border: 1px solid rgba(228, 192, 122, .45); font-size: 14px; }
.adm-avviso--forte { background: rgba(255, 77, 166, .12); border-color: rgba(255, 77, 166, .55); }
.adm-blocco { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 77, 166, .12); border: 1.5px solid rgba(255, 77, 166, .6); }
.adm-blocco__riga { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; }
.adm-pk-conto { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.adm-pk-conto__num { font-size: 36px; font-weight: 900; color: var(--rosa); line-height: 1; }
.adm-pk-conto--pausa .adm-pk-conto__num { color: var(--oro); }
.adm-pk-conto small { color: var(--grigio); }
.adm-pk-conto .pill { margin-left: auto; }
.adm-row--fondo { align-items: flex-end; }
.adm-row--fondo > .btn { margin-bottom: 16px; }
.adm-row--fondo > .adm-hint { flex: 1 1 200px; margin: 0 0 16px; }
.adm-seg { display: inline-flex; border: 1.5px solid var(--linea); border-radius: 999px; padding: 3px; margin-bottom: 12px; background: var(--bg-2); }
.adm-seg label { cursor: pointer; }
.adm-seg input { display: none; }
.adm-seg span { display: block; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.adm-seg input:checked + span { background: var(--rosa); color: #140a10; }
.adm-rata { display: grid; grid-template-columns: 22px 1.2fr 0.9fr 1.2fr 40px 40px; gap: 6px; align-items: center; margin-bottom: 6px; }
.adm-rata input { width: 100%; min-height: 44px; padding: 0 8px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 15px; min-width: 0; }
.adm-rata--testa { font-size: 12px; color: var(--grigio); margin-bottom: 4px; }
.adm-rata__n { font-weight: 800; color: var(--grigio); text-align: center; }
.adm-pausa { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(228, 192, 122, .1); border: 1px solid rgba(228, 192, 122, .45); margin-bottom: 14px; font-size: 15px; }
/* (v0.37.0) le due date della sospensione: in riga, senza sbordare sui telefoni stretti */
.adm-pausa .field { flex: 1 1 100%; min-width: 0; margin-bottom: 0; }   /* (v0.42.0) una data sotto l'altra: affiancate sbordavano sull'iPhone */
.adm-pausa .field input { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.adm-pausa .btn { flex: 1 1 100%; }
.adm-pk-nuovo { margin-top: 16px; border-top: 1px solid var(--linea); padding-top: 4px; }
.adm-card textarea, .adm-textarea { width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; }

/* gestione: clienti collegate */
.adm-collegate { margin-top: 18px; border-top: 1px solid var(--linea); padding-top: 4px; }
.adm-collegate__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-chip--coll { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.adm-chip--coll button { background: none; border: 0; color: var(--grigio); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }

/* gestione: anamnesi */
.adm-anam { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.adm-anam__btn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-anam__risposte { margin-top: 12px; }
.adm-anam__d { padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.adm-anam__d b { display: block; }
.adm-anam__d span { color: var(--grigio); white-space: pre-line; }
.adm-dom-lista { margin-bottom: 12px; }
.adm-dom-sez { margin: 14px 0 6px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--rosa-chiaro); }
.adm-dom { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.adm-dom--off { opacity: .5; }
.adm-dom__n { width: 24px; text-align: center; color: var(--grigio); font-weight: 800; flex: none; }
.adm-dom__t { flex: 1; min-width: 0; }
.adm-dom__t small { display: block; color: var(--grigio); font-size: 13px; }
.adm-dom-form { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1.5px solid var(--rosa); }
.adm-dom-form .field input, .adm-dom-form select { background: var(--card); }
.adm-dom-obbl { align-self: flex-end; }

/* tema chiaro */
:root[data-tema="chiaro"] .locandina__finta b { color: #fff; }
:root[data-tema="chiaro"] .ct-vista { background: #e9e4e1; }

/* griglia delle rate sul telefono: ogni rata su due righe con le etichette */
.adm-rata__lbl { display: none; }
@media (max-width: 600px) {
  .adm-rata--testa { display: none; }
  .adm-rata:not(.adm-rata--testa) { grid-template-columns: 22px 1fr 96px 44px; grid-template-areas: "n ls li li" "n d i i" "n lp lp lp" "x p p ok";
    row-gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--linea); margin-bottom: 0; }
  .adm-rata__lbl { display: block; font-size: 12px; color: var(--grigio); }
  .adm-rata__n { grid-area: n; align-self: start; padding-top: 22px; }
  .adm-rata__lbl--s { grid-area: ls; } .adm-rata__lbl--i { grid-area: li; } .adm-rata__lbl--p { grid-area: lp; margin-top: 4px; }
  .adm-rata .rData { grid-area: d; } .adm-rata .rImp { grid-area: i; } .adm-rata .rPagata { grid-area: p; } .adm-rata .rOggi { grid-area: ok; } .adm-rata .rVia { grid-area: x; width: 22px; padding: 0; border: 0; background: none; }
}

/* v0.8.0 (pomeriggio): Gym / Home, recesso nella gestione */
.pill--luogo { vertical-align: middle; }
.pill--gym { background: rgba(120, 160, 255, .16); color: #9db8ff; }
.pill--home { background: rgba(73, 197, 138, .15); color: var(--ok); }
:root[data-tema="chiaro"] .pill--gym { color: #3b5bc4; }
.adm-recesso { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 15px; }
.adm-recesso > span:first-child { color: var(--grigio); }
.adm-recesso b { font-size: 16px; }
.adm-recesso .pill { margin-left: auto; }
.adm-recesso--aperto { border-color: rgba(228, 192, 122, .6); }
/* v0.8.0 (sera) */
.pk-bar { height: 8px; max-width: 360px; }
.pk-count__pct { font-size: 13px; font-weight: 700; color: var(--testo); margin-top: 8px; }
.adm-accesso { margin: 6px 0 4px; padding: 4px 14px; border-radius: 12px; border: 1.5px solid rgba(73, 197, 138, .5); background: rgba(73, 197, 138, .06); }
.adm-accesso--off { border-color: rgba(255, 77, 166, .6); background: rgba(255, 77, 166, .08); }
.adm-cerca-riga { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-cerca-riga .adm-search { flex: 1 1 220px; }
.adm-ordina { min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--linea); font-weight: 700; font-size: 14px; }
.adm-gruppo { margin: 16px 14px 6px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--rosa-chiaro); }
.adm-copie { margin: 10px 14px; }
.adm-prog-attuale { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; }
.adm-prog-attuale span, .adm-prog-attuale small { display: block; }
.adm-prog-attuale b { display: block; font-size: 16px; }
.adm-avviso--modello { border-color: rgba(120, 160, 255, .5); background: rgba(120, 160, 255, .08); }

/* =====================================================================
   v0.9.0 — firma in fondo, schermate di blocco, guida all'installazione,
   invito alle notifiche, video delle esecuzioni, privacy
   ===================================================================== */

/* "Il tuo allenamento di oggi": giorno e settimana tutti insieme sulla riga sotto */
.section h2 small.oggi-sub { display: block; margin: 4px 0 0; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--rosa); letter-spacing: .01em; }

/* firma: proprietà e diritti */
.firma { text-align: center; padding: 40px 20px calc(30px + var(--sicuro-basso)); color: var(--grigio); }
.firma__linea { height: 2px; width: min(220px, 60%); margin: 0 auto 22px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rosa), var(--oro), var(--rosa), transparent); opacity: .8; }
.firma__logo { font-size: 20px; margin-bottom: 12px; }
.firma p { margin: 0; }
.firma__prop { font-size: 13.5px; letter-spacing: .02em; color: var(--testo); }
.firma__prop b { font-weight: 800; }
.firma__prop b:first-child { letter-spacing: .08em; }
.firma__copy { font-size: 12.5px; margin-top: 6px !important; letter-spacing: .06em; text-transform: uppercase; }
.firma__ver { font-size: 11px; margin-top: 12px !important; opacity: .65; letter-spacing: .08em; }

/* schermate di blocco (attesa, pagamento, pausa): scrive NetFitness */
.blocco__titolo { font-size: 24px; line-height: 1.25; font-weight: 900; color: var(--testo) !important; margin: 0 0 12px !important; }
.blocco__lucchetto { filter: drop-shadow(0 6px 18px rgba(255, 77, 166, .45)); }
.blocco__mail { margin: -2px 0 2px !important; font-size: 13.5px; color: var(--grigio); letter-spacing: .02em; }
.blocco--attesa + .install { margin-bottom: 4px; }

/* guida all'installazione (iPhone / Android) */
.guida { min-height: 100vh; max-width: 480px; margin: 0 auto; padding: calc(34px + var(--sicuro-alto)) 22px calc(30px + var(--sicuro-basso)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.guida .wordmark--big { font-size: 34px; margin-bottom: 22px; }
.guida h1 { font-size: 25px; line-height: 1.2; margin: 0 0 10px; font-weight: 900; }
.guida__sub { color: var(--grigio); margin: 0 0 22px; }
.guida__scelte { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.guida__scelta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 16px; border-radius: 20px; cursor: pointer;
  background: radial-gradient(90% 70% at 50% 0%, rgba(255, 77, 166, .18), transparent 70%), var(--card); border: 1.5px solid var(--linea); transition: transform .12s, border-color .12s; }
.guida__scelta:active { transform: scale(.97); }
.guida__scelta--mio { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(255, 77, 166, .18), 0 16px 40px var(--ombra); }
.guida__scelta .tel { width: 62px; height: auto; margin-bottom: 6px; }
.guida__nome { font-size: 20px; font-weight: 900; }
.guida__marche { font-size: 12.5px; color: var(--grigio); line-height: 1.35; min-height: 34px; }
.guida__tuo { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--rosa); color: #140a10; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.guida__testa { display: flex; align-items: center; gap: 16px; text-align: left; margin: 6px 0 14px; }
.guida__testa .tel { width: 54px; flex: none; }
.guida__testa h1 { margin: 0; }
.guida__testa p { margin: 2px 0 0; color: var(--grigio); }
.guida__passi { text-align: left; margin: 0; padding: 16px 16px 16px 38px; background: var(--card); border: 1px solid var(--linea); border-radius: 18px; width: 100%; }
.guida__passi li { margin: 8px 0; line-height: 1.45; }
.guida__passi .ico { width: 20px; height: 20px; vertical-align: -5px; color: var(--rosa); }
.guida__installa { margin-bottom: 4px; }
.guida__installa .ico { width: 22px; height: 22px; }
.guida__oppure, .guida__nota { font-size: 13.5px; color: var(--grigio); margin: 10px 0 8px; }
.guida__indietro { align-self: flex-start; margin-bottom: 4px; }
.guida__salta { margin-top: auto; padding-top: 26px; color: var(--grigio); }

/* avvisi a tutto schermo: ✕ in alto, invito alle notifiche */
.check-avviso__card { position: relative; }
.check-avviso__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--grigio); font-size: 16px; cursor: pointer; }
.btn--grande { min-height: 62px; font-size: 19px; }
.campanella { display: inline-block; transform-origin: 50% 0; animation: campanella 1.6s ease-in-out .3s 2; }
@keyframes campanella { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .campanella { animation: none; } }
.check-avviso--notifiche .link-btn { color: var(--grigio); }

/* video delle esecuzioni */
.ve-intro { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 77, 166, .14), rgba(255, 77, 166, .03)); border: 1px solid rgba(255, 77, 166, .35); }
.ve-intro__ico { font-size: 28px; line-height: 1; }
.ve-intro p { margin: 0; font-size: 15px; }
.ve-riga { display: flex; gap: 12px; align-items: center; padding: 10px; margin: 0 0 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--linea); }
.ve-riga__anteprima { width: 58px; height: 84px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.ve-riga__corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ve-riga__es { width: 100%; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--linea); background: var(--bg-2); padding: 0 10px; font-size: 15px; }
.ve-riga__corpo small { color: var(--grigio); font-size: 12.5px; }
.ve-riga__x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--grigio); cursor: pointer; flex: none; }
.ve-barra { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.ve-barra span { display: block; height: 100%; width: 0; background: var(--rosa); transition: width .4s; }
.ve-aggiungi { margin: 0 0 12px; cursor: pointer; }
#veInvia { margin: 4px 0 18px; }
.ve-lista { display: grid; gap: 12px; }
.ve-mio { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--linea); }
.ve-mio video, .ve-mio__vuoto { width: 96px; height: 150px; border-radius: 10px; background: #000; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 26px; }
.ve-mio__testo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ve-mio__testo small { color: var(--grigio); font-size: 12.5px; line-height: 1.4; }
.ve-mio__testo .link-btn { align-self: flex-start; padding: 4px 0; font-size: 13.5px; color: var(--grigio); }
.ve-visto { color: var(--ok); font-weight: 700; }
.ve-mio--nuovo { border-color: var(--rosa); }
.ve-azioni { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ve-lista--adm .ve-mio video { width: 120px; height: 190px; }

/* privacy e cookie policy */
.privacy__testa { text-align: center; padding: 6px 4px 10px; }
.privacy__testa .wordmark { font-size: 20px; margin-bottom: 12px; }
.privacy__testa h2 { margin: 0 0 8px; font-size: 22px; }
.privacy__testa p { margin: 0; color: var(--grigio); font-size: 15px; }
.privacy__sez { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea); }
.privacy__sez h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.privacy__sez h3 span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rosa); color: #140a10; font-size: 13px; font-weight: 900; }
.privacy__sez p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--testo); }
.privacy__sez p:last-child { margin-bottom: 0; }
.privacy__fine { text-align: center; color: var(--grigio); font-size: 13px; margin: 20px 0 6px; line-height: 1.6; }

/* gestione: in attesa di attivazione, video da guardare, dettagli chiusi */
.adm-attesa { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px 0 12px; padding: 14px; border-radius: 14px; background: rgba(228, 192, 122, .12); border: 1.5px solid var(--oro); }
.adm-attesa b { font-size: 16px; }
.adm-attesa p { margin: 4px 0 0; font-size: 13.5px; color: var(--grigio); }
.pill--attesa { background: rgba(228, 192, 122, .18); color: var(--oro); }
.adm-dettagli > summary { list-style: none; cursor: pointer; }
.adm-dettagli > summary::-webkit-details-marker { display: none; }
.adm-dettagli__testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-dettagli__testa h3 { margin: 0; }
.adm-dettagli__apri { font-size: 14px; font-weight: 700; color: var(--rosa); white-space: nowrap; }
.adm-dettagli[open] .adm-dettagli__apri::after { content: " ▲"; }
.adm-dettagli:not([open]) .adm-dettagli__apri::after { content: " ▼"; }
/* (v0.53.0) riga di riassunto sotto il titolo di ogni tendina della scheda cliente */
.adm-sintesi { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--grigio); }
.adm-sintesi b { color: var(--rosa); }
.adm-sintesi .pill { margin-left: 4px; vertical-align: 1px; }
.adm-dettagli[open] > summary .adm-sintesi { margin-bottom: 10px; }
.adm-svuota { min-width: 42px; }
.adm-invito-msg { white-space: pre-line; font-size: 14px; background: var(--bg-2); border: 1px dashed var(--linea); border-radius: 12px; padding: 12px; margin: 10px 0; }
.adm-spazio { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; margin: 6px 0 2px; }
.adm-spazio span { display: block; height: 100%; background: var(--ok); }
.adm-spazio--50 span { background: var(--oro); }
.adm-spazio--80 span { background: #ff3b30; }

/* =====================================================================
   v0.9.1 — guida all'installazione: pulsante Android, passi illustrati iPhone
   ===================================================================== */
.guida__testa--piccola { margin-bottom: 6px; }
.guida__punti { display: flex; gap: 6px; justify-content: center; margin: 0 0 14px; }
.guida__punti span { width: 26px; height: 6px; border-radius: 3px; background: var(--linea); }
.guida__punti span.fatto { background: rgba(255, 77, 166, .45); }
.guida__punti span.on { background: var(--rosa); }
.guida__passo { width: 100%; padding: 16px 14px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--linea); }
.guida__passo h2 { margin: 14px 0 6px; font-size: 20px; line-height: 1.3; }
.guida__passo h2 .ico { width: 22px; height: 22px; vertical-align: -5px; color: var(--rosa); }
.guida__passo p { margin: 0; color: var(--grigio); font-size: 15px; }
.mock { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.mock__tocca { animation: tocca 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mock__tocca--riga { animation-name: tocca-riga; }
@keyframes tocca { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes tocca-riga { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.guida__nav { display: flex; gap: 10px; width: 100%; margin-top: 16px; }
.guida__nav .btn { flex: 1; }
.guida__installa { margin: 6px 0 4px; }
.guida__installa .ico { width: 24px; height: 24px; }
.guida__installa:disabled { opacity: .6; }
/* freccia che indica il pulsante vero di Safari, sotto la pagina */
.guida__freccia { position: fixed; bottom: calc(6px + var(--sicuro-basso)); z-index: 30; font-size: 44px; line-height: 1; color: var(--rosa);
  text-shadow: 0 4px 16px rgba(255, 77, 166, .6); animation: freccia 1s ease-in-out infinite; pointer-events: none; }
.guida__freccia--destra { right: 18px; }
.guida__freccia--centro { left: 50%; margin-left: -22px; }
@keyframes freccia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .mock__tocca, .guida__freccia { animation: none; } }
.install__btn { margin-top: 10px; }

/* =====================================================================
   v0.10.0 — contratto nell'app, primi passi, guida iPhone rifatta, gestione programmi
   ===================================================================== */

/* contratto di adesione: una schermata che scorre */
.contratto { max-width: 640px; margin: 0 auto; padding: calc(24px + var(--sicuro-alto)) 16px calc(36px + var(--sicuro-basso)); }
.contratto > .wordmark { text-align: center; margin-bottom: 18px; }
.ct-kicker { margin: 0; text-align: center; color: var(--rosa); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contratto h1 { font-size: 23px; line-height: 1.25; margin: 6px 0 10px; text-align: center; font-weight: 900; }
.ct-intro { color: var(--grigio); font-size: 15px; margin: 0 0 14px; }
.ct-mail { padding: 12px 14px; border-radius: 14px; background: rgba(255, 77, 166, .1); border: 1px solid rgba(255, 77, 166, .4); font-size: 15px; margin: 0 0 16px; }
.ct-sez { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea); scroll-margin-top: 16px; transition: box-shadow .3s; }
.ct-sez--evidenzia { box-shadow: 0 0 0 3px var(--rosa); }
.ct-sez h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.ct-sez h2 span { display: block; color: var(--rosa); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.ct-testo p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }
.ct-domanda { margin: 0 0 10px; font-weight: 700; }
.ct-obbl { display: inline-block; font-size: 11px; font-weight: 700; color: var(--rosa-chiaro); letter-spacing: .04em; text-transform: uppercase; margin-left: 4px; }
.ct-casella, .ct-scelta { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 0; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1.5px solid var(--linea); cursor: pointer; }
.ct-casella input, .ct-scelta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-casella__box, .ct-scelta__box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--grigio); display: grid; place-items: center; margin-top: 1px; }
.ct-scelta__box { border-radius: 50%; }
.ct-casella input:checked + .ct-casella__box { background: var(--rosa); border-color: var(--rosa); }
.ct-casella input:checked + .ct-casella__box::after { content: "✓"; color: #140a10; font-weight: 900; font-size: 18px; }
.ct-scelta input:checked + .ct-scelta__box { border-color: var(--rosa); }
.ct-scelta input:checked + .ct-scelta__box::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--rosa); }
.ct-casella:has(input:checked), .ct-scelta:has(input:checked) { border-color: var(--rosa); }
.ct-casella input:focus-visible + span, .ct-scelta input:focus-visible + span { outline: 3px solid var(--rosa-chiaro); outline-offset: 2px; }
.ct-casella__testo, .ct-scelta__testo { font-size: 15px; line-height: 1.5; }
.ct-scelta__testo b { display: block; margin-bottom: 2px; }
.ct-privacy { display: block; margin: 0 0 4px; padding: 4px 0; }
.ct-nota { font-size: 13px; color: var(--grigio); margin: 8px 0 0; }
.ct-fondo { position: sticky; bottom: 0; z-index: 2; margin: 18px -16px 0; padding: 10px 16px calc(10px + var(--sicuro-basso)); background: var(--bg); box-shadow: 0 -10px 24px var(--ombra); border-top: 1px solid var(--linea); }
.ct-fondo .btn--grande { min-height: 54px; }
.ct-manca { margin: 0 0 8px; text-align: center; font-size: 14.5px; }
#ctMsg .msg { margin-top: 12px; }
.ct-manca .link-btn { padding: 0 4px; }
.ct-manca--ok { color: var(--ok); font-weight: 700; }
.ct-fatto { padding-top: 60px; }

/* primi passi dopo l'attivazione */
.inizio { margin: 18px 16px 6px; padding: 20px 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 77, 166, .16), rgba(255, 77, 166, .03) 60%), var(--card); border: 1px solid rgba(255, 77, 166, .35); }
.inizio--finito { border-color: var(--ok); background: linear-gradient(160deg, rgba(73, 197, 138, .16), rgba(73, 197, 138, .03) 60%), var(--card); }
.inizio__kicker { color: var(--rosa); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.inizio--finito .inizio__kicker { color: var(--ok); }
.inizio h1 { margin: 4px 0 8px; font-size: 24px; line-height: 1.25; font-weight: 900; }
.inizio > p { margin: 0 0 14px; font-size: 15.5px; }
.inizio__passi { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inizio__passo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1.5px solid var(--linea); opacity: .7; }
.inizio__passo--ok { opacity: 1; }
.inizio__passo--ora { opacity: 1; border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(255, 77, 166, .15); }
.inizio__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: 17px; }
.inizio__passo--ok .inizio__ico { background: var(--ok); color: #0d1f16; font-weight: 900; }
.inizio__testo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inizio__testo small { color: var(--grigio); font-size: 13px; line-height: 1.4; }
.inizio__passo .btn { flex: none; }

/* lucchetto: contratto firmato e quanto pagare */
.blocco__ok { color: var(--ok) !important; font-weight: 700; font-size: 15px; margin: -4px 0 12px !important; }
.blocco__lista-t { display: block; margin-bottom: 4px; font-size: 14px; color: var(--grigio); }

/* guida all'installazione: consigliato, ma si può continuare nel browser */
.guida__consiglio { width: 100%; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 77, 166, .1); border: 1px solid rgba(255, 77, 166, .35); font-size: 14px; text-align: left; }
.guida__browser { width: 100%; margin-top: auto; padding-top: 24px; }
.guida__browser p { margin: 0 0 10px; font-size: 14px; color: var(--grigio); }
.guida__passo p b { color: var(--testo); }
.mock--barra { max-width: 320px; }
.mock-doppio { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mock-oppure { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--grigio); }
.guida__passo h2 .ico { width: 26px; height: 26px; vertical-align: -7px; }

/* gestione: contratto e programmi */
.adm-contratto { margin: 6px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(228, 192, 122, .12); border: 1px solid rgba(228, 192, 122, .45); font-size: 14px; }
.adm-contratto--ok { background: rgba(73, 197, 138, .1); border-color: rgba(73, 197, 138, .45); }
.adm-contratto .link-btn { padding: 2px 0; }
.adm-contratto__testo { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.5; max-height: 420px; overflow: auto; margin: 8px 0 0; padding: 10px; border-radius: 10px; background: var(--bg-2); }
.adm-prog-scelte { display: grid; gap: 10px; margin: 10px 0 4px; }
.adm-prog-azione { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--linea); background: var(--bg-2); cursor: pointer; }
.adm-prog-azione b { font-size: 16px; }
.adm-prog-azione span { font-size: 13.5px; color: var(--grigio); line-height: 1.4; }
.adm-prog-azione--prima { border-color: var(--rosa); margin: 10px 0 0; }
.adm-prog-azione:disabled { opacity: .5; cursor: default; }
.adm-assegna { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--linea); }
@media (min-width: 720px) { .adm-prog-scelte { grid-template-columns: 1fr 1fr; } }
.adm-card--sost { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(255, 77, 166, .15); }
.adm-card--sost h3 .link-btn { font-size: 14px; margin-left: 6px; }

/* =====================================================================
   v0.11.0 — guida iPhone con l'azione in evidenza, date del programma,
   durata stimata degli allenamenti
   ===================================================================== */

/* guida: "cosa fare" in alto, grande, prima del disegno */
.guida__passo h2.guida__azione { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 14px; padding: 12px 12px 14px;
  border-radius: 16px; border: 2px solid var(--rosa); background: rgba(255, 77, 166, .12); }
.guida__azione-k { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); }
.guida__azione-t { font-size: 23px; line-height: 1.3; font-weight: 900; color: var(--testo); }
.guida__azione-t b { color: var(--rosa); font-weight: 900; }
.guida__azione-t .ico { width: 30px; height: 30px; vertical-align: -8px; margin: 0 2px; }
.guida__passo .mock { margin-bottom: 10px; }
.guida__passo > p { font-size: 15.5px; line-height: 1.5; }

/* date del programma sotto il carosello: nome, poi Inizio · Fine · Check */
.prog-date { margin: 12px 14px 0; padding: 12px 12px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--linea); }
.prog-date__titolo { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rosa); text-align: center; margin: 0 0 10px; }
.prog-date__celle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prog-date__cella { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--bg-2); text-align: center; min-width: 0; }
.prog-date__cella span { font-size: 11.5px; color: var(--grigio); font-weight: 700; letter-spacing: .02em; }
.prog-date__cella b { font-size: 15px; color: var(--testo); font-weight: 800; white-space: nowrap; }
.prog-date__cella--check { box-shadow: inset 0 0 0 1.5px rgba(255, 77, 166, .45); }
.prog-date__cella--urgente { background: rgba(255, 77, 166, .16); box-shadow: inset 0 0 0 2px var(--rosa); }
.prog-date__cella--urgente span, .prog-date__cella--urgente b { color: var(--rosa); }
.prog-date__cella--ok span, .prog-date__cella--ok b { color: var(--ok); }
@media (max-width: 350px) { .prog-date__cella b { font-size: 13.5px; } }

/* gestione: avviso nella riga delle date */
.adm-avviso-testo { color: var(--rosa); font-weight: 700; }

/* durata stimata: sul giorno (cliente) e nell'editor (gestione) */
.tile__durata { color: var(--rosa); font-weight: 700; white-space: nowrap; }
.durata-giorno { margin: 4px 14px 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 77, 166, .1); border: 1px solid rgba(255, 77, 166, .3); font-size: 14.5px; color: var(--testo); }
.durata-giorno b { color: var(--rosa); }
.adm-durata { margin: 4px 0 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 77, 166, .08); border: 1px solid rgba(255, 77, 166, .3); font-size: 15px; }
.adm-durata b { color: var(--rosa); }
.adm-durata small { color: var(--grigio); }
.adm-durata .adm-hint { display: block; margin: 4px 0 0; font-size: 12.5px; }

/* (v0.12.0) "cosa deve compilare", contratto fuori dall'app, cancellazione, "Altro" nell'anamnesi */
.adm-compila { margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--linea); }
.adm-compila > b { display: block; margin-bottom: 6px; }
.adm-compila .switch { display: flex; margin: 6px 0; }
.adm-compila [hidden] { display: none !important; }
.adm-fuori { margin-top: 8px; }
.adm-fuori summary { cursor: pointer; font-weight: 700; color: var(--rosa); font-size: 14px; }
.adm-cancella { border-color: rgba(229, 72, 77, .45); }
.adm-cancella h3 { color: #e5484d; }
.adm-cancella__passi summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.adm-cancella__passi p { margin: 12px 0 6px; }
.adm-btn-rosso { background: #e5484d; color: #fff; box-shadow: 0 4px 0 #8f1d22; }
.adm-btn-rosso:disabled { opacity: .45; cursor: not-allowed; }
.an-altro { margin-top: 8px !important; }

/* (v0.13.0) home: pulsante per mandare i video delle esecuzioni */
.home-video { padding-top: 0; }
.home-video__btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card); color: var(--testo); border: 1.5px solid var(--rosa, #FF4DA6); box-shadow: none; font-size: 15px; line-height: 1.25; text-align: left; position: relative; }
.home-video__ico { font-size: 24px; line-height: 1; }
.home-video__btn .menu-pallino { position: absolute; top: 8px; right: 10px; }

/* (v0.13.0) video delle esecuzioni: audio facoltativo */
.ve-esercizio { margin: 0 0 10px; font-size: 14px; color: var(--grigio); }
.ve-riga__nome { display: block; font-size: 14px; }
.ve-audio { margin: 12px 0; padding: 12px 14px; border-radius: var(--raggio); border: 1.5px dashed var(--linea); }
.ve-audio__testo { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.ve-audio__ferma { background: #c0392b; color: #fff; }
.ve-audio__pronto { display: grid; gap: 6px; }
.ve-audio__pronto audio, .ve-mio__audio audio { width: 100%; height: 36px; }
.ve-mio__audio { display: grid; gap: 4px; margin: 6px 0; }

/* (v0.13.0) foto e misure: video tutorial delle misure */
.pg-tutorial { margin: 0 0 14px; border-radius: var(--raggio); border: 1.5px solid var(--rosa); background: var(--card); overflow: hidden; }
.pg-tutorial summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.pg-tutorial summary::-webkit-details-marker { display: none; }
.pg-tutorial__ico { font-size: 28px; line-height: 1; }
.pg-tutorial summary b { display: block; font-size: 15px; }
.pg-tutorial summary small { display: block; color: var(--grigio); font-size: 13px; margin-top: 2px; }
.pg-tutorial summary > span:nth-child(2) { flex: 1; }
/* (v0.15.0) pallino ▶ a destra: si capisce al volo che è un video da toccare */
.pg-tutorial__play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--rosa); color: #000;
  display: grid; place-items: center; font-size: 14px; }
.pg-tutorial[open] .pg-tutorial__play { opacity: .35; }
.pg-tutorial__video { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; background: #000; }
.pg-tutorial__video:empty { display: none; }
.pg-tutorial__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* (v0.13.0) gestione: nome e cognome affiancati */
.adm-due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .adm-due { grid-template-columns: 1fr; } }

/* (v0.13.0) gestione: schede di sintesi delle clienti */
.item--sintesi .item__sum { margin-top: 3px; }
.sint-numeri { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sint-pct { display: inline-flex; align-items: baseline; gap: 3px; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .08); border: 1px solid var(--linea); }
.sint-pct small { font-weight: 600; font-size: 11px; opacity: .85; }
.sint-pct.pill--ok { background: rgba(73, 197, 138, .18); border-color: rgba(73, 197, 138, .6); }
.sint-pct.pill--wait { background: rgba(228, 192, 122, .18); border-color: rgba(228, 192, 122, .6); }
.sint-pct.pill--late { background: rgba(255, 77, 166, .18); border-color: rgba(255, 77, 166, .6); }
.sint-pct--tot { background: rgba(255, 77, 166, .1); border-color: rgba(255, 77, 166, .45); }
.sint-video { white-space: nowrap; }
.sint-recesso { color: var(--oro); }
.sint-urgente { color: var(--rosa); }

/* (v0.13.0) gestione: panoramica dei video di una cliente */
.adm-pano .check-avviso__card { max-width: 420px; max-height: calc(100vh - 40px); overflow-y: auto; text-align: left; }
.adm-pano h2 { margin: 0; font-size: 20px; text-align: center; }
.adm-pano .check-avviso__ico { text-align: center; }
.adm-pano__x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--testo); font-size: 20px; cursor: pointer; }
.adm-pano__avviso { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(228, 192, 122, .14); font-size: 14px; }
.adm-pano__numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-pano__numeri div { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; }
.adm-pano__numeri b { display: block; font-size: 20px; }
.adm-pano__numeri b.pill--ok { color: #49c58a; } .adm-pano__numeri b.pill--wait { color: var(--oro); } .adm-pano__numeri b.pill--late { color: var(--rosa); }
.adm-pano__numeri span { font-size: 11.5px; color: var(--grigio); line-height: 1.3; display: block; }
.adm-pano__riga { margin: 0; font-size: 14px; }
.adm-pano__mesi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 90px; align-items: end; }
.adm-pano__mesi div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.adm-pano__mesi span { width: 70%; border-radius: 6px 6px 2px 2px; background: var(--linea); }
.adm-pano__mesi span.pill--ok { background: var(--rosa); }
.adm-pano__mesi small { font-size: 11px; color: var(--grigio); }
.adm-pano__mesi em { font-style: normal; font-size: 11px; font-weight: 700; }
.adm-tut-anteprima img { display: block; max-width: 140px; border-radius: 12px; margin: 4px 0 10px; }

/* (v0.14.0) video tutorial dell'installazione su iPhone: anteprima fissa in basso a destra */
.guida-tut { order: -1; width: 100%; margin: 0 0 18px;   /* (v0.41.7) tasto grande da parte a parte, al posto della scritta NETFITNESS */
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px 10px 10px; border: 2px solid var(--rosa); border-radius: 20px;
  background: var(--card); color: var(--testo); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 77, 166, .15); }
.guida-tut:active { transform: scale(.97); }
.guida-tut__img { position: relative; width: 60px; height: 84px; border-radius: 10px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #FF4DA6, #A3246A); }
.guida-tut__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guida-tut__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.guida-tut__txt { font-size: 21px; font-weight: 900; line-height: 1.2; }
.guida:has(.guida-tut) .wordmark { display: none; }
.guida-velo { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .82); }
.guida-velo__box { position: relative; width: min(100%, 420px); }
.guida-velo__video { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 82vh; border-radius: 16px; overflow: hidden; background: #000; }
.guida-velo__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guida-velo__chiudi { position: absolute; top: -12px; right: -6px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--rosa); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.5); }

/* (v0.14.0) emoji nella chat: pulsante 😊 e piccola tavolozza sopra il campo di testo */
.emoji-btn { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--linea); background: var(--card);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.emoji-btn[aria-expanded="true"] { border-color: var(--rosa); }
.emoji-tav { position: absolute; left: 12px; bottom: calc(100% + 6px); z-index: 30; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  width: min(calc(100% - 24px), 360px); padding: 8px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--rosa);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45); }
.chat__form--inline .emoji-tav { left: 0; }
.emoji-tav--sotto { bottom: auto; top: calc(100% + 6px); }
.emoji-tav__e { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.emoji-tav__e:hover, .emoji-tav__e:focus-visible { background: rgba(255, 77, 166, .16); outline: none; }

/* (v0.26.0) esercizi alternativi nella scheda esercizio (area di gestione) */
.adm-alt { display: grid; gap: 8px; }
.adm-alt__scelti, .adm-alt__ris { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip--on { display: inline-flex; align-items: center; gap: 6px; cursor: default; border-color: var(--rosa); }
.adm-chip__x { border: 0; background: transparent; color: var(--grigio); cursor: pointer; font-size: 13px; padding: 0 2px; }
.adm-chip__x:hover { color: var(--rosa); }

/* (v0.27.0) niente zoom col doppio tocco: toccando + / − (o qualsiasi pulsante) più volte di fila
   l'iPhone ingrandiva la pagina. "manipulation" toglie solo il doppio tocco: l'ingrandimento
   con due dita resta, per chi ne ha bisogno. */
button, a, input, select, textarea, label, summary, .peso, .peso__ctrl, .episode__body, .sets { touch-action: manipulation; }

/* ---------- (v0.30.0) apertura immediata: la home dalla copia sul telefono mentre arrivano i dati freschi ---------- */
.app--fermo { pointer-events: none; }
.app--aggiorna::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: linear-gradient(90deg, transparent, var(--rosa), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: aggiorna 1.1s linear infinite;
}
@keyframes aggiorna { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .app--aggiorna::before { animation: none; background-size: 100% 100%; opacity: .6; } }

/* ---------- (v0.31.0) "Il mio pacchetto" in una riga nella home: il dettaglio si apre toccandola ---------- */
.pk-chiuso > summary { list-style: none; cursor: pointer; }
.pk-chiuso > summary::-webkit-details-marker { display: none; }
.pk-riga { display: flex; align-items: center; gap: 14px; margin: 0 14px 12px; padding: 16px 18px; border-radius: var(--raggio);
  background: var(--card); border: 1px solid var(--linea); -webkit-tap-highlight-color: transparent; }
.pk-riga__num { flex: 0 0 auto; min-width: 44px; text-align: center; font-size: 34px; font-weight: 900; line-height: 1; color: var(--rosa); }
.pk-riga__testo { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pk-riga__testo b { font-weight: 700; }
.pk-riga__testo small { font-size: 14px; opacity: .75; }
.pk-riga__freccia { font-size: 24px; opacity: .6; transition: transform .2s; }
.pk-chiuso[open] .pk-riga__freccia { transform: rotate(90deg); }

/* (v0.37.0) avvisi che si aprono solo se li schiacci (es. «Video che non arrivano») */
details.adm-alert > summary { cursor: pointer; list-style: none; }
details.adm-alert > summary::-webkit-details-marker { display: none; }
details.adm-alert > summary b { display: inline; margin: 0; }
details.adm-alert > summary::after { content: " ›"; color: var(--grigio); }
details.adm-alert[open] > summary::after { content: " ⌄"; }
details.adm-alert[open] > summary { display: block; margin-bottom: 6px; }

/* (v0.37.0) colore sotto le iniziali nell'elenco clienti:
   arancione = il pacchetto scade entro 10 giorni · rosso = pacchetto scaduto */
.item__thumb--scade { background: #8A4B12; }
.item__thumb--scade .n { color: #FFC78A; }
.item__thumb--scaduta { background: #7A1620; }
.item__thumb--scaduta .n { color: #FFB3BC; }
.item__thumb--archivio { background: var(--bg-2); }
.item__thumb--archivio .n { color: var(--grigio); }

/* (v0.37.0) tasto Archivio: scritta sfumata, è il passato */
.adm-tab--archivio { color: var(--grigio); opacity: .75; }
.adm-tab--archivio.on { opacity: 1; color: #140a10; }

/* (v0.37.0) titolo dell'avviso che apre l'elenco completo (video, check) */
.adm-alert__tutti { cursor: pointer; }

/* (v0.37.0) nell'area di gestione il video si allarga appena parte */
.ve-lista--adm .ve-mio--aperto { flex-direction: column; }
.ve-lista--adm .ve-mio--aperto video { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }

/* ---------- (v0.38.0) Metriche corporee (metriche.js) ---------- */
.mt-elenco { padding: 4px 0; margin-bottom: 14px; }
.mt-riga { display: grid; grid-template-columns: 1fr 64px auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--linea); }
.mt-riga:last-child { border-bottom: 0; }
.mt-riga__testo { min-width: 0; }
.mt-riga__nome { display: block; font-weight: 700; font-size: 16px; }
.mt-riga__data { display: block; font-size: 12px; color: var(--grigio); margin-top: 2px; }
.mt-graf { width: 64px; height: 28px; color: var(--rosa); overflow: visible; }
.mt-riga__valore { text-align: right; }
.mt-riga__valore b { font-size: 20px; font-weight: 900; white-space: nowrap; }
.mt-riga__valore b i { font-style: normal; font-size: 12px; color: var(--grigio); margin-left: 2px; font-weight: 700; }
.mt-delta { display: block; font-size: 12px; color: var(--grigio); }
.mt-bmi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 16px 18px;
  border-radius: var(--raggio); background: var(--card); border: 1.5px solid var(--rosa); }
.mt-bmi__eti { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rosa); margin-right: 10px; }
.mt-bmi b { font-size: 30px; font-weight: 900; }
.mt-bmi__fascia { font-size: 14px; font-weight: 800; border-radius: 999px; padding: 5px 12px; background: var(--bg-2); }
.mt-bmi--ok .mt-bmi__fascia { color: #8BE09A; }
.mt-bmi--basso .mt-bmi__fascia, .mt-bmi--alto .mt-bmi__fascia { color: #FFC78A; }
.mt-info { margin: 0 0 16px; font-size: 13px; color: var(--grigio); }
.mt-storico { margin-top: 4px; }
.mt-storico__riga { padding: 10px 0; border-top: 1px solid var(--linea); }
.mt-storico__testa { display: flex; justify-content: space-between; align-items: center; }
.mt-storico__testa .link-btn { padding: 0; font-size: 13px; }
.mt-storico__valori { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mt-storico__valori span { font-size: 13px; color: var(--grigio); background: var(--bg-2); border-radius: 999px; padding: 3px 10px; }
/* riga sotto "Foto e misure" nella home della cliente */
.mt-link { display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 8px 14px 0; padding: 14px 18px;
  border-radius: var(--raggio); background: var(--card); border: 1px solid var(--linea); color: var(--testo);
  font: inherit; font-weight: 700; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mt-link__ico { font-size: 22px; line-height: 1; }
.mt-link span.item__go { margin-left: auto; opacity: .6; }
.mt-origine { font-size: 12px; color: var(--grigio); }

/* (v0.41.7) tutorial iPhone: titolo grande e tasto "Aggiungi" disegnato come sull'iPhone */
.guida__titolo { font-size: 24px; line-height: 1.2; font-weight: 900; letter-spacing: .02em; }
.guida__icona-app { width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.guida__btn-aggiungi { display: inline-block; padding: 2px 14px; border-radius: 999px; background: #0A84FF; color: #fff; font-weight: 700; font-size: 20px; }
.guida__nowrap { white-space: nowrap; }
.guida__finale { display: block; margin-top: 6px; font-size: 23px; line-height: 1.35; font-weight: 800; color: var(--rosa); }
.guida__finale b { color: var(--rosa); }
/* (v0.41.7) i 4 passi hanno la stessa altezza: Indietro/Avanti restano alla stessa quota */
.guida__passo { min-height: 392px; }

/* (v0.42.0) pagina iniziale della gestione: riquadri a tendina (riga sottile con titolo + numero) */
details.adm-tendina { margin: 10px 14px 0; padding: 0 16px; }
details.adm-tendina > summary, details.adm-alert.adm-tendina[open] > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
details.adm-tendina > summary b { flex: 1; }
details.adm-tendina[open] { padding-bottom: 8px; }
.adm-alert__n { min-width: 26px; padding: 2px 9px; border-radius: 999px; text-align: center; font-weight: 800; font-size: 14px; background: var(--rosa); color: #140a10; }
.adm-alert--oro .adm-alert__n { background: var(--oro); }
.adm-presenza--on .adm-alert__n { background: var(--ok); }
.adm-presenza:not(.adm-presenza--on) .adm-alert__n { background: var(--linea); color: var(--grigio); }
.adm-tendina .adm-presenza__luce { flex: none; }
.adm-tendina .adm-presenza__riga { margin-top: 0; }
.adm-banner-notifica { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--raggio); background: rgba(255, 77, 166, .12); border: 1.5px solid var(--rosa); font-size: 15px; }

/* (v0.42.0) «Collega a»: casella di ricerca sopra l'elenco */
#collBox .field .adm-search { margin-bottom: 8px; }
/* (v0.42.0) elenco clienti: «Aggiungi una nuova cliente» sta dentro l'intestazione (stessa resa di prima su telefono) */
.adm-head #nuovaBox { flex: 1 1 100%; margin: 0; }
/* sul browser largo: ricerca grande a tutta larghezza, «Aggiungi» piccola a destra del titolo */
@media (min-width: 900px) {
  .adm-head { align-items: center; }
  .adm-head h2 { order: 1; flex: 1; }
  .adm-head #nuovaBox { order: 2; flex: 0 0 300px; }
  .adm-head #nuovaBox[open] { order: 4; flex: 1 1 100%; }
  .adm-head .adm-cerca-riga { order: 3; flex: 1 1 100%; flex-wrap: nowrap; }
  .adm-head .adm-cerca-riga .adm-search { min-height: 60px; font-size: 19px; padding: 0 20px; }
}

/* (v0.42.1) iPhone: il campo data ignorava la larghezza e usciva dal riquadro; così si adatta come gli altri campi */
.adm-pausa .field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: left; }
.adm-pausa .field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
#collBox .field .adm-search { display: block; width: 100%; box-sizing: border-box; }

/* ---------- (v0.43.0) Conta calorie (calorie.js) — stile pulito, tanto spazio, angoli morbidi ---------- */
.cc-barra { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--sicuro-alto)) 16px 6px; }
.cc-barra h2 { font-size: 17px; font-weight: 800; }
.cc-indietro { background: none; border: 0; color: var(--rosa); font-family: inherit; font-weight: 700; font-size: 15px; min-width: 64px; text-align: left; cursor: pointer; padding: 8px 0; }
.cc-indietro--corpo { display: block; margin-bottom: 6px; }
.cc-icona { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); color: var(--oro); font-size: 17px; cursor: pointer; }
.cc-corpo { padding-top: 8px; }
.cc-giorno { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.cc-giorno button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); color: var(--grigio); font-size: 20px; cursor: pointer; }
.cc-data { text-align: center; }
.cc-data b { display: block; font-size: 17px; font-weight: 800; }
.cc-data span { font-size: 12px; color: var(--grigio); }
.cc-segmento, .cc-schede { display: flex; background: var(--bg-2); border-radius: 12px; padding: 3px; margin-bottom: 20px; }
.cc-segmento button, .cc-schede button { flex: 1; border: 0; background: none; color: var(--grigio); font-family: inherit; font-weight: 700; font-size: 13px; padding: 9px 0; border-radius: 10px; cursor: pointer; }
.cc-segmento .attivo, .cc-schede .attivo { background: var(--card); color: var(--testo); box-shadow: 0 2px 8px var(--ombra); }
.cc-segmento .attivo i { color: var(--oro); font-style: normal; }
.cc-voce { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--linea); font-size: 14px; }
.cc-voce > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cc-voce small { display: block; color: var(--grigio); font-size: 11px; margin-top: 2px; }
.cc-k { color: var(--grigio); font-variant-numeric: tabular-nums; }
.cc-x { border: 0; background: none; color: var(--grigio); font-size: 14px; padding: 6px; cursor: pointer; opacity: .7; }
.cc-nota { font-size: 12px; color: var(--grigio); margin: 10px 4px 14px; line-height: 1.5; }
.cc-nota--su { margin-top: 0; }
.cc-titolo { font-size: 22px; font-weight: 800; margin: 6px 4px 0; }
.cc-sezione { font-size: 12px; color: var(--grigio); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 18px 4px 8px; }
.cc-lista { background: var(--card); border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
.cc-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; border-top: 1px solid var(--linea); }
.cc-lista > .cc-r:first-child { border-top: 0; }
.cc-r input { width: 96px; border: 0; background: none; color: var(--testo); font-family: inherit; font-weight: 600; font-size: 15px; text-align: right; outline: none; }
.cc-r input:focus { color: var(--rosa); }
/* foglio dal basso */
.cc-velo { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; }
.cc-foglio { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 88vh; overflow-y: auto; background: var(--bg-2); border-radius: 26px 26px 0 0; padding: 8px 20px calc(24px + var(--sicuro-basso)); max-width: 640px; margin: 0 auto; animation: ccSu .22s ease-out; -webkit-overflow-scrolling: touch; }
@keyframes ccSu { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.cc-maniglia { width: 38px; height: 5px; background: var(--linea); border-radius: 3px; margin: 0 auto 14px; }
.cc-foglio h3 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cc-foglio h3 button { border: 0; background: none; color: var(--grigio); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.cc-sec { display: block; width: 100%; background: none; border: 0; color: var(--rosa); font-family: inherit; font-weight: 700; font-size: 13px; padding: 12px; margin-top: 4px; cursor: pointer; }
.cc-ris { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 14px; padding: 13px 16px; margin-bottom: 8px; color: var(--testo); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.cc-ris small { color: var(--grigio); font-weight: 400; font-size: 12px; white-space: nowrap; }
.cc-ris em { font-style: normal; font-size: 10px; color: var(--oro); border: 1px solid var(--oro); border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.cc-letto { background: var(--card); border-radius: 16px; padding: 14px 16px; margin-bottom: 4px; }
.cc-ok { font-size: 11px; color: var(--oro); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cc-nome { font-size: 16px; font-weight: 800; margin: 6px 0 12px; overflow-wrap: anywhere; }
.cc-valori { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.cc-valori b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-valori span { font-size: 10px; color: var(--grigio); }
.cc-grammi { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; font-size: 14px; }
.cc-campo { background: var(--card); border-radius: 12px; padding: 8px 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cc-campo input { width: 70px; border: 0; background: none; color: var(--testo); font-family: inherit; font-weight: 700; font-size: 18px; text-align: right; outline: none; }
.cc-totale { font-size: 12px; color: var(--grigio); text-align: center; margin: 0 0 14px; min-height: 16px; }
.cc-totale b { color: var(--testo); }
.cc-due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-due .field, .cc-tre .field { margin-bottom: 10px; }
.cc-due .field input, .cc-tre .field input { padding: 0 12px; font-size: 16px; }
.cc-spunta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grigio); margin: 4px 0 14px; }
/* gestione / nutrizionista */
.cc-giorno--adm { margin: 0 0 10px; }
.cc-giorno--adm button { width: 32px; height: 32px; font-size: 17px; }
.cc-adm-tot { font-size: 13px; margin: 0 0 12px; text-align: center; color: var(--grigio); }
.cc-adm-tot b { color: var(--testo); }
.cc-adm-pasto { margin-bottom: 12px; font-size: 14px; }
.cc-adm-pasto small { color: var(--grigio); }
.cc-adm-voce { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0 5px 8px; font-size: 13px; border-bottom: 1px solid var(--linea); }
.cc-adm-voce small { color: var(--grigio); }
.cc-adm-ob { margin-top: 12px; }
/* (v0.44.0) codice a barre: prima la foto, poi le cifre */
.cc-msg-cod { margin-top: 12px; }
.cc-oppure { text-align: center; font-size: 12px; color: var(--grigio); margin: 16px 0 8px; }
.cc-cifre { display: flex; gap: 8px; }
.cc-cifre input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--linea); color: var(--testo); font-family: inherit; font-size: 17px; letter-spacing: .04em; outline: none; }
.cc-cifre input:focus { border-color: var(--rosa); }
.cc-cifre button { border: 0; border-radius: 12px; padding: 0 18px; background: var(--card); color: var(--rosa); font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }

/* (v0.45.0) conta calorie più bello: settimana, anelli dei macro, pasti con icona e «+», riquadro in home */
.cc-arco { transition: stroke-dashoffset .7s cubic-bezier(.22, .8, .3, 1); }
.cc-punto { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.cc-punto--si { background: var(--linea); }
.cc-punto--ok { background: var(--oro); box-shadow: 0 0 6px rgba(228, 192, 122, .7); }
.cc-piu, .cc-home__piu { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rosa); color: #140a10; font-size: 24px; font-weight: 600; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--rosa-ombra); transition: transform .1s; }
.cc-piu:active, .cc-home__piu:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rosa-ombra); }
.cc-home { display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 0 14px; padding: 12px 14px 12px 12px; border-radius: var(--raggio); background: linear-gradient(135deg, rgba(163, 36, 106, .35), var(--card) 65%); border: 1.5px solid rgba(255, 77, 166, .35); }
.cc-home__apri { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; color: var(--testo); font-family: inherit; text-align: left; cursor: pointer; }
.cc-home__anello { flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.cc-home__ico { font-size: 28px; }
.cc-home__testo { min-width: 0; }
.cc-home__testo b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.cc-home__testo span { display: block; font-size: 13px; color: var(--oro); margin-top: 2px; }
.cc-home__piu { width: 44px; height: 44px; font-size: 28px; }
/* (v0.53.0) conta calorie: titolo grande, striscia compatta, riquadro rosa, barre dei macro, pasti 2×2 */
.cc-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.cc-grande { font-size: 30px; font-weight: 800; color: var(--rosa); letter-spacing: -.01em; line-height: 1.1; }
.cc-quando { display: block; font-size: 13px; color: var(--grigio); margin-top: 3px; }
.cc-frecce { display: flex; gap: 6px; flex: none; }
.cc-frecce button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); color: var(--grigio); font-size: 19px; cursor: pointer; }
.cc-settimana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 14px; }
.cc-sg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--grigio); font-family: inherit; cursor: pointer; }
.cc-sg span { font-size: 10px; font-weight: 600; }
.cc-sg b { font-size: 14px; font-weight: 700; color: var(--testo); }
.cc-sg.attivo { background: var(--rosa); color: #fff; }
.cc-sg.attivo b { color: #fff; }
.cc-sg.futuro b { opacity: .45; }
.cc-sg.attivo .cc-punto--si { background: rgba(255, 255, 255, .6); }
.cc-rosa { display: flex; align-items: center; gap: 18px; background: #FF4DA6; color: #fff; border-radius: 28px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(176, 18, 95, .35); }
.cc-rosa__sx { flex: none; display: flex; flex-direction: column; align-items: center; }
.cc-rosa__dx { flex: 1; min-width: 0; }
.cc-anello { position: relative; width: 120px; height: 120px; }
.cc-anello svg { transform: rotate(-90deg); }
.cc-anello__centro { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cc-num { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-di { font-size: 13px; font-weight: 600; opacity: .9; margin-top: 4px; }
.cc-rim { font-size: 14px; font-weight: 800; margin-top: 8px; }
.cc-imposta { background: none; border: 0; color: #fff; font-family: inherit; font-weight: 700; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 8px 0 0; }
.cc-pillola { margin-top: 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-family: inherit; font-weight: 700; font-size: 12px; padding: 7px 12px; cursor: pointer; }
.cc-macro { background: var(--card); border-radius: 22px; padding: 16px 18px; margin-bottom: 6px; display: grid; gap: 12px; }
.cc-mb__riga { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.cc-mb__riga span:last-child { color: var(--grigio); font-variant-numeric: tabular-nums; }
.cc-mb__riga b { color: var(--testo); font-weight: 700; }
.cc-mb__barra { height: 8px; border-radius: 4px; background: var(--linea); overflow: hidden; }
.cc-mb__barra div { height: 100%; border-radius: 4px; transition: width .7s cubic-bezier(.22, .8, .3, 1); }
/* (v0.50.1) oltre l'obiettivo il riquadro passa al magenta del marchio */
.cc-rosa--oltre { background: #A3246A; box-shadow: 0 10px 24px rgba(163, 36, 106, .4); }
.cc-pasti { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-pasto { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 0; border-radius: 20px; background: var(--card); color: var(--testo); font-family: inherit; text-align: left; cursor: pointer; }
.cc-pasto b { font-size: 15px; font-weight: 800; margin-top: 6px; }
.cc-pasto__ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; }
.cc-pasto__ico--colazione { background: rgba(228, 192, 122, .28); }
.cc-pasto__ico--spuntino { background: rgba(255, 140, 198, .28); }
.cc-pasto__ico--pranzo { background: rgba(255, 77, 166, .3); }
.cc-pasto__ico--cena { background: rgba(199, 107, 255, .28); }
.cc-pasto__k { font-size: 14px; font-weight: 800; color: var(--rosa); font-variant-numeric: tabular-nums; }
.cc-pasto__agg { font-size: 13px; font-weight: 600; color: var(--grigio); }
.cc-pasto__piu { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); color: var(--rosa); font-style: normal; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.cc-lista > .cc-voce:first-child { border-top: 0; }
.cc-voce__ico { flex: none; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .cc-arco, .cc-foglio, .cc-mb__barra div { transition: none; animation: none; } }

/* (v0.47.0) "I miei video" della cliente: video grande, si guarda senza allargarlo; scritte ridotte sopra */
.ve-mio--grande { flex-direction: column; gap: 8px; }
.ve-mio--grande video, .ve-mio--grande .ve-mio__vuoto { width: 100%; height: auto; max-height: 62vh; aspect-ratio: 9 / 16; object-fit: contain; }
.ve-mio--grande .ve-mio__testo small .link-btn { display: inline; padding: 0; font-size: 12.5px; }
.ve-mio--grande .ve-mio__audio { margin: 0; }
.ve-manca { margin: 0 0 8px; font-size: 13.5px; color: var(--grigio); text-align: center; }
.episode__video { display: block; margin: 14px auto 0; font-size: 14.5px; }

/* (v0.47.0) chat: casella per scrivere più grande; nel gestionale la chat aperta da sola occupa lo schermo */
.chat__form textarea { min-height: 84px; max-height: 260px; }
.adm-chat-sola .chat__list--inline { max-height: calc(100vh - 360px); min-height: 240px; }
#admSchedaIntera { margin-top: 12px; }

/* (v0.47.0) tavolozza delle emoji più ricca: a gruppi, scorre */
.emoji-tav { max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.emoji-tav__tit { grid-column: 1 / -1; padding: 6px 4px 2px; font-size: 12px; font-weight: 700; color: var(--grigio); text-transform: uppercase; letter-spacing: .04em; }
.emoji-campo { position: relative; display: flex; gap: 8px; align-items: flex-end; }
.emoji-campo textarea { flex: 1; }

/* (v0.47.0) foto ingrandita: sempre dentro lo schermo (prima dal computer usciva enorme), frecce per passare alle altre */
.pg-zoom img { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px - var(--sicuro-alto) - var(--sicuro-basso)); max-width: min(100%, 900px); touch-action: pan-y pinch-zoom; }
.pg-zoom__f { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.pg-zoom__f--sx { left: 8px; }
.pg-zoom__f--dx { right: 8px; }
.pg-zoom__n { position: absolute; top: calc(18px + var(--sicuro-alto)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700; }

/* (v0.47.0) date del programma in corso nel gestionale */
.adm-prog-date { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; align-items: end; }
.adm-prog-date .field b { display: block; min-height: 44px; padding: 11px 0 0; }
@media (max-width: 520px) { .adm-prog-date { grid-template-columns: 1fr 1fr; } }

/* (v0.48.0) correzione di Alessandra sotto il video (gestione e cliente) */
.ve-corr { display: grid; gap: 8px; margin-top: 10px; }
.ve-corr__fatta, .ve-corr--cliente { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1.5px solid var(--rosa); }
.ve-corr__fatta p, .ve-corr--cliente p { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.ve-corr--cliente b { font-size: 14px; color: var(--rosa-chiaro); }
.ve-corr audio { width: 100%; height: 36px; }
.ve-corr__testo { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--linea); font-size: 16px; color: var(--testo); font-family: inherit; resize: vertical; }
.ve-corr__audio { display: grid; gap: 6px; }
.ve-corr__audio .link-btn { justify-self: start; padding: 2px 0; font-size: 13.5px; }

/* (v0.48.0) reazioni ai messaggi */
.bubble { position: relative; -webkit-touch-callout: none; }
.bubble--reaz { margin-bottom: 14px; }
.bubble__reaz { position: absolute; right: 8px; bottom: -14px; padding: 1px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--linea); font-size: 15px; line-height: 1.4; }
.bubble[data-msg] { cursor: pointer; }
.reaz-barra { position: fixed; z-index: 140; display: flex; gap: 2px; padding: 6px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--rosa); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.reaz-barra button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.reaz-barra button.on { background: rgba(255, 77, 166, .25); }
