/* ============================
   PALETTE PTRStudio.it
============================ */
:root {
  --ptr-dark: #1F1F1F;
  --ptr-dark2: #2E2E2E;
  --ptr-light: #F5F5F5;
  --ptr-white: #FFFFFF;
  --ptr-blue: #3A6EA5;
  --ptr-blue-light: #5A8CCB;

  --badge-bg: #3A6EA5;
  --badge-text: #FFFFFF;
}

/* ============================
   DARK MODE AUTOMATICA
============================ */
.dark-mode-schede {
    background: #111 !important;
    color: #eee !important;
}

.dark-mode-schede h1,
.dark-mode-schede h2,
.dark-mode-schede h3,
.dark-mode-schede p,
.dark-mode-schede label {
    color: #eee !important;
}

.dark-mode-schede .esercizio-riga {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

.dark-mode-schede input,
.dark-mode-schede textarea,
.dark-mode-schede select {
    background: #222 !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}

.dark-mode-schede .btn,
.dark-mode-schede button {
    background: #3A6EA5 !important;
    color: #fff !important;
}


/* ============================
   WRAP CENTRATO
============================ */
.wrap {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

/* ============================
   TITOLO PAGINA
============================ */
.titolo-pagina {
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--ptr-dark);
}

/* ============================
   FILTRI
============================ */
.filtri-esercizi {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
  text-align: left;
}

.filtri-esercizi label {
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
  color: #1F1F1F;
  font-size: 1rem;
}

.filtri-esercizi select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #666;
  font-size: 1rem;
  background: #FFFFFF;
  width: 100%;
  max-width: 300px;
  color: #1F1F1F;
  font-weight: 700;
  transition: 0.2s ease;
}

.filtri-esercizi select:hover {
  border-color: var(--ptr-blue);
}

.filtri-esercizi button {
  padding: 10px 18px;
  background: var(--ptr-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.filtri-esercizi button:hover {
  background: var(--ptr-blue-light);
  transform: translateY(-2px);
}

/* ============================
   LISTA ESERCIZI
============================ */
.lista-esercizi {
  display: block;
  margin-top: 20px;
}

/* ============================
   CARD ESERCIZIO
============================ */
.esercizio-riga {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: var(--ptr-white);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 25px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.esercizio-riga:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ============================
   IMMAGINE ESERCIZIO
============================ */
.esercizio-thumb img {
  border-radius: 14px;
  width: 220px;
  height: auto;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.esercizio-riga:hover .esercizio-thumb img {
  filter: brightness(0.95);
  transform: scale(1.02);
}

/* ============================
   TESTO ESERCIZIO
============================ */
.esercizio-info {
  flex: 1;
}

.esercizio-info h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ptr-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icona nei titoli */
.esercizio-info h2::before {
  content: "🏋️";
  font-size: 1.2rem;
}

/* Badge */
.esercizio-info p strong {
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-right: 6px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {

  .wrap {
    max-width: 100%;
    margin-top: 100px; /* evita sovrapposizione con logo/menu */
  }

  .titolo-pagina {
    font-size: 1.1rem; /* più piccolo su mobile */
    margin-bottom: 20px;
  }

  .esercizio-riga {
    flex-direction: column;
    text-align: center;
  }

  .esercizio-thumb img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .filtri-esercizi {
    width: 100%;
  }

  .filtri-esercizi select {
    max-width: 100%;
  }
}

/* ============================
   PAGINA SCHEDA PREMIUM
============================ */

.wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.titolo-pagina {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #3A6EA5;
}

.lista-esercizi {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.esercizio-riga {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esercizio-riga:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.esercizio-info h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1F1F1F;
}

.remove-from-scheda {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #d9534f;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.scheda-note-form {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 14px;
}

.scheda-note-form input,
.scheda-note-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.scheda-note-form button {
    background: #3A6EA5;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.download-buttons .btn {
    display: inline-block;
    margin-right: 15px;
    padding: 12px 20px;
    background: #3A6EA5;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}

/* ============================
   DARK MODE PREMIUM
============================ */

.dark-mode-schede {
    background: #0d0d0d !important;
    color: #e6e6e6 !important;
}

/* Titoli */
.dark-mode-schede h1,
.dark-mode-schede h2,
.dark-mode-schede h3 {
    color: #fff !important;
}

/* Card esercizi */
.dark-mode-schede .esercizio-riga {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    transition: transform .2s ease, box-shadow .2s ease;
}

.dark-mode-schede .esercizio-riga:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* Input */
.dark-mode-schede input,
.dark-mode-schede textarea,
.dark-mode-schede select {
    background: #222 !important;
    color: #eee !important;
    border: 1px solid #444 !important;
}

/* Pulsanti */
.dark-mode-schede .btn,
.dark-mode-schede button {
    background: #3A6EA5 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    transition: background .2s ease;
}

.dark-mode-schede .btn:hover,
.dark-mode-schede button:hover {
    background: #4a82c7 !important;
}

/* Link rimuovi */
.dark-mode-schede .remove-from-scheda {
    color: #ff6b6b !important;
}
