/* ===== FONT SELF-HOSTED ===== */
@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('assets/fonts/roboto-condensed-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('assets/fonts/roboto-condensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('assets/fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #080808;
  --bg-elevated:   #101010;
  --bg-card:       #141414;
  --bg-input:      #0d0d0d;
  --accent:        #cc0000;
  --accent-light:  #ff2a2a;
  --accent-grad:   linear-gradient(135deg, #cc0000 0%, #ff2020 100%);
  --text:          #f5f5f5;
  --text-muted:    #999;
  --text-soft:     #cccccc;
  --border:        #1e1e1e;
  --border-light:  #282828;
  --shadow-card:   0 4px 28px rgba(0, 0, 0, 0.65);
  --shadow-red:    0 4px 20px rgba(204, 0, 0, 0.25);
  --radius:        0px;
  --radius-sm:     0px;
  --topbar-h:      90px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}


h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 { font-size: 3rem; }
h3 { font-size: 1.2rem; }

/* Scrollbar sottile */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

/* ===== UTILITY ===== */
.nascosta { display: none !important; }
.vista { min-height: 100vh; position: relative; }

.errore   { color: #ff6b6b; font-size: 0.875rem; margin-top: 0.5rem; }
.successo { color: #4ade80; font-size: 0.875rem; margin-top: 0.5rem; }
.messaggio { font-size: 0.875rem; margin-top: 0.5rem; min-height: 1.25rem; }

.testo-segnaposto {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.25rem 0;
  font-style: italic;
  text-align: center;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.topbar-logo {
  height: 68px;
  width: auto;
  display: block;
}

.topbar-destra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.topbar-utente {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  display: none; /* nascosto su mobile piccolo */
}

@media (min-width: 480px) {
  .topbar-utente { display: block; }
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(204, 0, 0, 0.5);
  flex-shrink: 0;
}

.btn-topbar-indietro {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  transition: color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.btn-topbar-indietro:hover { color: #fff; }

/* ===== BOTTONE ICONA TOPBAR ===== */
.btn-topbar-icon {
  position: relative;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  min-height: 44px;
  line-height: 1;
}

.btn-topbar-icon:hover { color: #fff; }

.badge-notifica {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
}

@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.badge-notifica:not(.nascosta) {
  animation: badge-pulse 1.4s ease-in-out infinite;
}

/* ===== TOPBAR PRINCIPALE (dashboard — layout 3 colonne) ===== */
.topbar-principale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: unset;
  gap: 0;
}

.topbar-principale .topbar-destra {
  justify-self: end;
}

.topbar-identita {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.topbar-avatar-grande {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.topbar-avatar-default {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.topbar-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar-nome {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.3rem;
}

.topbar-palestra {
  font-family: 'Anton', sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Pulsanti topbar: testo a sinistra, icona a destra, impilati in verticale */
.btn-topbar-vt {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  gap: 0.4rem;
  min-height: 32px;
  transition: opacity 0.15s;
}

.btn-topbar-vt:hover { opacity: 0.75; }

.topbar-vt-icona {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
  position: relative;
}

.topbar-vt-label {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

@media (max-width: 480px) {
  .topbar-palestra { display: none; }
  .topbar-avatar-grande,
  .topbar-avatar-default { width: 48px; height: 48px; font-size: 1.5rem; }
  .topbar-nome { font-size: 0.9rem; }
  .topbar-vt-label { font-size: 0.9rem; }
}

/* ===== CONTENUTO ===== */
.contenuto {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 600px) {
  .contenuto { padding: 2rem 1.5rem; }
}

.contenuto h2 {
  margin-bottom: 1.25rem;
  text-align: center;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GRIGLIA DUE COLONNE ===== */
.griglia-due-colonne {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .griglia-due-colonne { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* ===== CARD / SEZIONE ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.sezione-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s;
}

@media (min-width: 600px) {
  .sezione-card { padding: 1.5rem; }
}

.sezione-card h3 {
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ===== LOGIN ===== */
.login-card {
  max-width: 400px;
  margin: 2.5rem auto;
  background: linear-gradient(160deg, #161616 0%, #0d0d0d 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(204,0,0,0.05);
}

@media (min-width: 480px) {
  .login-card { margin: 4rem auto; }
}

.login-logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 16px rgba(204,0,0,0.3));
}

.login-card h1 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.link-secondario {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s;
}

.link-secondario:hover { color: var(--text-soft); }

.credit-login {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: #333;
}

.credit-login a {
  color: #3a3a3a;
  text-decoration: none;
  transition: color 0.15s;
}

.credit-login a:hover { color: var(--text-muted); }

/* ===== FORM ===== */
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  margin-top: 0.9rem;
  font-family: 'Roboto Condensed', sans-serif;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px evita zoom su iOS */
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

input::placeholder { color: #333; }

/* ===== SELECT ===== */
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
  min-height: 48px;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

select option { background: #1a1a1a; }

/* Override opzioni select nelle viste a tema chiaro */
#vista-dashboard-trainer select option,
#vista-crea-scheda select option,
#vista-profilo-trainer select option {
  background: #f0f0f0;
  color: #111111;
}

/* ===== TEXTAREA ===== */
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

textarea::placeholder { color: #333; }

/* ===== BOTTONI ===== */
.btn-primario {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: opacity 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
  min-height: 52px;
  box-shadow: var(--shadow-red);
}

.btn-primario:hover    { opacity: 0.9; box-shadow: 0 6px 24px rgba(204, 0, 0, 0.4); }
.btn-primario:active   { opacity: 0.8; }
.btn-primario:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.btn-auto { width: auto; min-height: 44px; }

.btn-secondario {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}

.btn-secondario:hover {
  border-color: #3a3a3a;
  color: var(--text);
  background: #1a1a1a;
}

/* ===== INTESTAZIONE SEZIONE ===== */
.intestazione-sezione {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.intestazione-cliente-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.intestazione-cliente-azioni {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ===== LISTA CLIENTI ===== */
.cliente-riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 0 -0.6rem;
  transition: background 0.15s;
  min-height: 60px;
}

.cliente-riga:last-child { border-bottom: none; }
.cliente-riga:hover      { background: rgba(255,255,255,0.03); }

.cliente-nome { font-weight: 600; font-size: 1.15rem; }

.cliente-username {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dot-stato {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

.dot-attivo  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.dot-sospeso { background: #cc0000; box-shadow: 0 0 6px rgba(204,0,0,0.5); }

.cliente-freccia { color: #444; font-size: 1.2rem; }

.cliente-riga-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
}

.cliente-stato-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== BADGE STATO ===== */
.badge-stato {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stato-attivo  { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.stato-sospeso { background: #111; color: #555; border: 1px solid #1e1e1e; }

.btn-sospendi {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}

.btn-sospendi:hover { background: #1a1a1a; border-color: #3a3a3a; color: var(--text); }

.btn-riattiva {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: #4ade80;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}

.btn-riattiva:hover { background: rgba(34,197,94,0.18); }

/* ===== LISTA SCHEDE (trainer) ===== */
.scheda-riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
  margin: 0 -0.6rem;
  min-height: 60px;
}

.scheda-riga:last-child { border-bottom: none; }
.scheda-riga:hover      { background: rgba(255,255,255,0.03); }

.scheda-info { display: flex; flex-direction: column; gap: 0.2rem; }
.scheda-nome { font-weight: 600; font-size: 1.15rem; }
.scheda-data { font-size: 0.82rem; color: var(--text-muted); }

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-attiva  { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-inattiva { background: #111; color: #444; border: 1px solid #1e1e1e; }

.scheda-riga-destra { display: flex; align-items: center; gap: 0.5rem; }

.btn-pdf-scheda {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
  min-height: 36px;
}

.btn-pdf-scheda:hover {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: var(--text);
}

/* ===== FORM RIGA DUE COLONNE ===== */
.form-riga-due {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== ESERCIZI NELLA SCHEDA IN CREAZIONE ===== */
.esercizio-riga-scheda {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.esercizio-riga-scheda:last-child { border-bottom: none; }

.esercizio-numero {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  box-shadow: 0 2px 8px rgba(204,0,0,0.3);
}

.esercizio-dettagli { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; }
.esercizio-nome     { font-weight: 600; font-size: 0.95rem; }
.esercizio-target   { font-size: 0.8rem; color: var(--accent-light); font-weight: 500; }
.esercizio-note-scheda { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.btn-rimuovi {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #333;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s;
  min-height: 36px;
}

.btn-rimuovi { border-radius: 0; }
.btn-rimuovi:hover { background: rgba(204,0,0,0.1); color: #ff6b6b; }

/* ===== RIGA SALVA ===== */
.riga-salva {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.riga-salva .messaggio { margin-top: 0; }

/* ===== DATA SESSIONE ===== */
.data-sessione {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  margin-top: -0.5rem;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ===== LIBRERIA ESERCIZI ===== */
.label-sezione {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: 'Roboto Condensed', sans-serif;
}

.libreria-riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  min-height: 44px;
}

.libreria-riga:last-child { border-bottom: none; }
.libreria-nome { font-weight: 600; }
.libreria-gruppo { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }

.badge-tipo {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  background: rgba(129, 140, 248, 0.1);
  color: #818cf8;
  border: 1px solid rgba(129,140,248,0.2);
  white-space: nowrap;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== CONTENUTO STRETTO ===== */
.contenuto-stretto { max-width: 560px; }
.contenuto-stretto .sezione-card { margin-bottom: 1.25rem; }

/* ===== LINK PRIVACY ===== */
.link-privacy-profilo {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.link-privacy-profilo:hover { color: var(--accent-light); }

/* ===== ZONA PERICOLO ===== */
.sezione-pericolo { border: 1px solid rgba(204, 0, 0, 0.2); }
.sezione-pericolo h3 { color: #ff6b6b; }

.testo-pericolo {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-pericolo {
  background: linear-gradient(135deg, #991111, #cc0000);
  color: #fff;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 48px;
}

.btn-pericolo:hover    { opacity: 0.85; }
.btn-pericolo:disabled { opacity: 0.4; cursor: not-allowed; }

.box-conferma {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(204, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.testo-conferma {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 0.75rem;
}

.riga-conferma { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-annulla {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 48px;
}

.btn-annulla:hover { background: #1a1a1a; color: var(--text); }

/* ===== LISTA SCHEDE CLIENTE ===== */
.scheda-cliente-riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: box-shadow 0.2s, border-left-color 0.2s;
  min-height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: #111111;
}

.scheda-cliente-riga:hover {
  box-shadow: 0 4px 20px rgba(204,0,0,0.18);
  border-left-color: var(--accent-light);
}

.scheda-nome { color: #111111; font-weight: 700; font-size: 1.5rem; }

.scheda-note-preview {
  display: block;
  font-size: 0.82rem;
  color: #666666;
  margin-top: 0.25rem;
}

.scheda-cliente-riga .cliente-freccia { color: #aaaaaa; }

/* ===== ESERCIZIO CARD (allenamento cliente) ===== */
.esercizio-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  color: #111111;
  text-align: center;
}

.esercizio-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.esercizio-card-nome {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.esercizio-card-target {
  display: block;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.esercizio-card-note {
  font-size: 0.85rem;
  color: #555555;
  font-style: italic;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: #f7f7f7;
  border-radius: 0;
  border-left: 3px solid var(--accent);
  text-align: left;
}

.btn-storico-sm {
  background: transparent;
  border: 1px solid #cccccc;
  color: #666666;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  min-height: 36px;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-storico-sm:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SERIE COMPLETATE ===== */
.serie-completate {
  margin: 0.5rem 0 0.75rem;
  border-top: 1px solid #eeeeee;
  padding-top: 0.6rem;
}

.serie-riga {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #f5f5f5;
}

.serie-riga:last-child { border-bottom: none; }

.serie-num  { color: #888888; font-size: 0.95rem; font-weight: 600; }
.serie-vals { font-weight: 700; color: #111111; font-size: 1.1rem; }
.serie-ok   { color: var(--accent); font-weight: 900; font-size: 1.4rem; line-height: 1; }

.testo-segnaposto-sm {
  font-size: 0.85rem;
  color: #aaaaaa;
  font-style: italic;
  padding: 0.4rem 0;
}

/* ===== FORM AGGIUNGI SERIE ===== */
.form-serie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eeeeee;
}

.form-serie-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.input-serie {
  width: 5.5rem;
  padding: 0.6rem 0.5rem;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: #f5f5f5;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  min-height: 48px;
}

.input-serie:focus { outline: none; border-color: var(--accent); background: #1a1a1a; }

.form-serie-sep { color: #999999; font-weight: 700; font-size: 1.1rem; }

.btn-aggiungi-serie {
  background: var(--accent-grad);
  color: #ffffff;
  border: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  min-height: 60px;
  width: 100%;
  box-shadow: 0 3px 12px rgba(204,0,0,0.35);
}

.btn-aggiungi-serie:hover { opacity: 0.88; box-shadow: 0 5px 18px rgba(204,0,0,0.45); }

/* ===== STATISTICHE — CARDS RIEPILOGO ===== */
.stats-riepilogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 380px) {
  .stats-riepilogo { grid-template-columns: repeat(2, 1fr); }
  .stats-riepilogo .stats-card:last-child { grid-column: span 2; }
}

.stats-card {
  background: linear-gradient(145deg, #161616, #111);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.stats-card-valore {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.stats-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Roboto Condensed', sans-serif;
}

/* ===== GRAFICO PROGRESSIONE ===== */
.chart-container {
  position: relative;
  height: 160px;
  margin: 0.75rem 0 1rem;
}

@media (min-width: 480px) {
  .chart-container { height: 180px; }
}

/* ===== STATS ESERCIZIO CARD ===== */
.stats-esercizio-card {
  background: linear-gradient(145deg, #161616, #111);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

@media (min-width: 480px) {
  .stats-esercizio-card { padding: 1.25rem; }
}

.stats-esercizio-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.stats-storico { display: flex; flex-direction: column; gap: 0.5rem; }

.stats-sessione {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  border: 1px solid #e5e5e5;
  border-left: 3px solid var(--accent);
  color: #111111;
}

.stats-data {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.35rem;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== STORICO ===== */
.storico-giorno {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  color: #111111;
}

@media (min-width: 480px) {
  .storico-giorno { padding: 1rem 1.25rem; }
}

.storico-data {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.storico-serie-riga {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #eeeeee;
}

.storico-serie-riga:last-child { border-bottom: none; }

.storico-giorno .serie-num  { color: #888888; }
.storico-giorno .serie-vals { color: #111111; }

/* ===== COMUNICAZIONI — TRAINER ===== */
.comunicazione-riga {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.comunicazione-riga:last-child { border-bottom: none; }

.comunicazione-contenuto { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }

.comunicazione-testo {
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.comunicazione-data {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-rimuovi-com { margin-top: 0.1rem; flex-shrink: 0; }

/* ===== COMUNICAZIONI — CLIENTE ===== */
.comunicazione-card {
  background: linear-gradient(135deg, #161616, #111111);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.com-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(204,0,0,0.3);
  box-shadow: 0 2px 8px rgba(204,0,0,0.15);
}

.com-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ===== PRIVACY ===== */
.privacy-card {
  max-width: 640px;
  margin: 2.5rem auto;
}

.privacy-card h2 {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.testo-privacy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testo-privacy p      { margin-bottom: 0.5rem; }
.testo-privacy h3     { font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.1em; background: none; -webkit-text-fill-color: unset; }
.testo-privacy strong { color: var(--text-soft); font-weight: 600; }
.testo-privacy a      { color: var(--accent); text-decoration: none; }
.testo-privacy a:hover { text-decoration: underline; }


/* ===== CHART HEADER (storico) ===== */
.chart-header {
  margin: 1.25rem 0 0.5rem;
  text-align: center;
}

.chart-titolo {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.chart-sottotitolo {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ===== STORICO ESPANDIBILE ===== */
.storico-extra { display: none; }
.storico-extra.visibile { display: block; }

.btn-vedi-storico {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.15s;
  min-height: 48px;
}

.btn-vedi-storico:hover { border-color: var(--accent); color: var(--accent-light); }

/* ===== BARRA PROGRESSO ALLENAMENTO ===== */
.barra-progresso-container {
  position: sticky;
  top: var(--topbar-h);
  z-index: 90;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--accent);
  padding: 0.45rem 1.25rem 0.55rem;
}

.barra-progresso-inner {
  max-width: 960px;
  margin: 0 auto;
}

.barra-progresso-testo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.barra-progresso-perc {
  font-weight: 700;
  color: var(--accent-light);
}

.barra-progresso-track {
  height: 5px;
  background: #222222;
  overflow: hidden;
}

.barra-progresso-fill {
  height: 100%;
  background: var(--accent-grad);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(204, 0, 0, 0.5);
}

/* ===== POPUP COMPLETAMENTO SCHEDA ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent);
  padding: 2.25rem 1.75rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(204, 0, 0, 0.15);
}

.popup-testo {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* ===== LINK NELLE COMUNICAZIONI ===== */
.link-comunicazione {
  color: var(--accent-light);
  text-decoration: underline;
  word-break: break-all;
  transition: color 0.15s;
}

.link-comunicazione:hover { color: var(--accent); }

/* ===================================================
   TEMA CHIARO — VISTE CLIENTE
   Sfondo bianco/grigio chiaro, testi neri, titoli rossi
   =================================================== */

#vista-dashboard-cliente,
#vista-allenamento,
#vista-storico-esercizio,
#vista-profilo-cliente,
#vista-comunicazioni-cliente {
  background: #080808;
}

/* h2 rosso solido (sovrascrive il gradiente trasparente) */
#vista-dashboard-cliente .contenuto h2,
#vista-allenamento .contenuto h2,
#vista-storico-esercizio .contenuto h2,
#vista-profilo-cliente .contenuto h2,
#vista-comunicazioni-cliente .contenuto h2 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--accent);
}

/* Sezioni card bianche nelle viste cliente */
#vista-profilo-cliente .sezione-card,
#vista-comunicazioni-cliente .sezione-card {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #111111;
}

#vista-profilo-cliente .sezione-card h3,
#vista-comunicazioni-cliente .sezione-card h3 {
  color: var(--accent);
  border-bottom-color: #e5e5e5;
}

/* Zona pericolo nel profilo: mantiene il bordo rosso su sfondo bianco */
#vista-profilo-cliente .sezione-pericolo {
  background: #ffffff;
  border-color: rgba(204, 0, 0, 0.25);
}

/* Input e label nel profilo su sfondo chiaro */
#vista-profilo-cliente input {
  background: #f0f0f0;
  border-color: #d0d0d0;
  color: #111111;
}

#vista-profilo-cliente input:focus {
  background: #ffffff;
  border-color: var(--accent);
}

#vista-profilo-cliente label {
  color: #555555;
}

/* Stats cards nel storico cliente */
#vista-storico-esercizio .stats-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#vista-storico-esercizio .stats-card-label {
  color: #666666;
}

/* Data sessione su sfondo scuro */
#vista-allenamento .data-sessione {
  color: #888888;
}

/* Contenitore visibile della lista esercizi */
#lista-esercizi-allenamento {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--accent);
  padding: 1rem 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Dentro il contenitore i card non hanno più shadow esterna */
#lista-esercizi-allenamento .esercizio-card {
  box-shadow: none;
  border: 1px solid #e8e8e8;
  border-left: 4px solid var(--accent);
}

/* Comunicazioni cliente — card bianche */
.comunicazione-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #111111;
}

.comunicazione-testo { color: #111111; }

/* ===================================================
   TEMA CHIARO — VISTE TRAINER
   =================================================== */

#vista-dashboard-trainer,
#vista-dettaglio-cliente,
#vista-crea-scheda,
#vista-statistiche-scheda,
#vista-profilo-trainer {
  background: #080808;
}

/* h2 rosso solido nelle viste trainer */
#vista-dashboard-trainer .contenuto h2,
#vista-dettaglio-cliente .contenuto h2,
#vista-crea-scheda .contenuto h2,
#vista-statistiche-scheda .contenuto h2,
#vista-profilo-trainer .contenuto h2 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--accent);
}

/* Sezione card bianche nelle viste trainer */
#vista-dashboard-trainer .sezione-card,
#vista-dettaglio-cliente .sezione-card,
#vista-crea-scheda .sezione-card,
#vista-statistiche-scheda .sezione-card,
#vista-profilo-trainer .sezione-card {
  background: #ffffff;
  border-color: #e5e5e5;
  color: #111111;
}

#vista-dashboard-trainer .sezione-card h3,
#vista-dettaglio-cliente .sezione-card h3,
#vista-crea-scheda .sezione-card h3,
#vista-statistiche-scheda .sezione-card h3,
#vista-profilo-trainer .sezione-card h3 {
  color: var(--accent);
  border-bottom-color: #e5e5e5;
}

/* Input, select, textarea su sfondo chiaro nelle viste trainer */
#vista-dashboard-trainer input,
#vista-dashboard-trainer select,
#vista-dashboard-trainer textarea,
#vista-dettaglio-cliente input,
#vista-crea-scheda input,
#vista-crea-scheda select,
#vista-crea-scheda textarea,
#vista-profilo-trainer input {
  background: #f0f0f0;
  border-color: #d0d0d0;
  color: #111111;
}

#vista-dashboard-trainer input:focus,
#vista-dashboard-trainer select:focus,
#vista-dashboard-trainer textarea:focus,
#vista-crea-scheda input:focus,
#vista-crea-scheda select:focus,
#vista-crea-scheda textarea:focus,
#vista-profilo-trainer input:focus {
  background: #ffffff;
  border-color: var(--accent);
}

#vista-dashboard-trainer label,
#vista-crea-scheda label,
#vista-profilo-trainer label {
  color: #555555;
}

/* Bordi liste nelle sezioni chiare */
#vista-dashboard-trainer .cliente-riga,
#vista-dashboard-trainer .libreria-riga,
#vista-dashboard-trainer .comunicazione-riga,
#vista-dettaglio-cliente .scheda-riga,
#vista-crea-scheda .esercizio-riga-scheda {
  border-bottom-color: #e5e5e5;
}

/* Testi lista clienti */
#vista-dashboard-trainer .cliente-nome  { color: #111111; }
#vista-dashboard-trainer .cliente-username { color: #666666; }

/* Stats e storico nella scheda trainer */
#vista-statistiche-scheda .stats-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#vista-statistiche-scheda .stats-card-label { color: #666666; }

#vista-statistiche-scheda .stats-esercizio-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #111111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#vista-statistiche-scheda .stats-esercizio-header {
  border-bottom-color: #e5e5e5;
}

/* Zona pericolo nel dettaglio cliente */
#vista-dettaglio-cliente .sezione-pericolo {
  background: #ffffff;
  border-color: rgba(204,0,0,0.25);
}

/* Scheda-riga come card nel dettaglio cliente (trainer) */
#vista-dettaglio-cliente .scheda-riga {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid var(--accent);
  margin: 0 0 0.75rem 0;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

#vista-dettaglio-cliente .scheda-riga:last-child {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}

#vista-dettaglio-cliente .scheda-riga:hover {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(204, 0, 0, 0.14);
  border-left-color: var(--accent-light);
}

#vista-dettaglio-cliente .scheda-nome { color: #111111; }
#vista-dettaglio-cliente .scheda-data { color: #888888; }

/* ===== BOTTONI AZIONE SCHEDA (toggle / modifica / elimina) ===== */
.btn-scheda-azione {
  background: transparent;
  border: 1px solid #d0d0d0;
  color: #666666;
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 34px;
  min-width: 34px;
  line-height: 1;
}

.btn-scheda-azione:hover { border-color: var(--accent); color: var(--accent); background: rgba(204,0,0,0.05); }

.btn-elimina-scheda:hover { border-color: #cc0000; color: #cc0000; }

/* ===== SCHEDA INATTIVA (lista cliente) ===== */
.scheda-cliente-riga.scheda-inattiva {
  opacity: 0.6;
  border-left-color: #aaaaaa;
}

.scheda-cliente-riga.scheda-inattiva:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-left-color: #888888;
}

.scheda-storico-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888888;
  background: #eeeeee;
  padding: 0.15rem 0.5rem;
  margin-top: 0.3rem;
  border-radius: 2px;
  font-family: 'Roboto Condensed', sans-serif;
}

/* ===== BANNER SCHEDA INATTIVA (vista allenamento) ===== */
.banner-inattiva {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f59e0b;
  color: #78350f;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* ===== LOGO FILIGRANA DI SFONDO ===== */
#vista-dashboard-trainer::after,
#vista-dettaglio-cliente::after,
#vista-crea-scheda::after,
#vista-statistiche-scheda::after,
#vista-profilo-trainer::after,
#vista-dashboard-cliente::after,
#vista-allenamento::after,
#vista-storico-esercizio::after,
#vista-profilo-cliente::after,
#vista-comunicazioni-cliente::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 85vw);
  height: min(680px, 85vw);
  background: url('assets/LOGO_2.jpeg') no-repeat center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ===== PULSANTE CANCELLA SERIE ===== */
.btn-cancella-serie {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  opacity: 0.55;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.btn-cancella-serie:hover { opacity: 1; }
