html, body {
  margin: 0;
  padding: 0;
  background-color: black;
  height: auto;        /* ← QUESTO */
  overflow-y: auto;    /* scroll SOLO se serve */
  overflow-x: hidden;
}

.step{
  display:none;
  width:100%;
  min-height:100vh;   /* <-- non dvh qui */
  height:auto;
  justify-content:center;
  align-items:stretch;
}

.step.active {
  display: flex;
}

.card-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  max-width: 454px;
  height: auto;
  padding: 1rem;
  background: linear-gradient(160deg, #625d5d 0%, #3d3a3a 50%, #151414 100%);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  box-sizing: border-box;
}

.card-box h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
}

.card-box h2 span {
  font-size: 1.5rem;
}

.card-box p,
.card-box .btn-next {
  font-family: Arial, sans-serif;
}

.card-content-top {
  flex-shrink: 0;
}

.card-button {
  margin-top: auto;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.card-footer {
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
  border: none;
}

.card-footer img {
  max-width: 180px;
  height: auto;
}

.btn-next {
  background-color: #00ff00;
  color: black;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

.form-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.5rem; /* aggiunge spazio dopo l'etichetta */
}

.custom-input {
  background-color: transparent !important;
  border-top: 2px solid #00ff00;
  border-bottom: 2px solid #00ff00;
  border-left: 2px solid #00ff00;   /* lati aggiunti */
  border-right: 2px solid #00ff00;
  height: 60px;
  width: 100%;
  color: white;
  font-size: 1.2rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  z-index: 1;
}

/* hover/focus: NON cambiamo il bordo, resta uguale */
.custom-input:focus,
.custom-input:hover {
  background-color: transparent !important;
  color: white;
  box-shadow: none !important;
}

.custom-input-area {
  background-color: transparent !important;
  border: 2px solid #00ff00;
  border-radius: 10px;
  width: 100%;
  color: white;
  font-size: 1rem;
  padding: 1rem;
  resize: none;
  box-shadow: none !important;
  outline: none !important;
}

.custom-input-area::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.custom-input-area:focus {
  border-color: #00ff00;
  background-color: transparent;
  color: white;
}

.gender-icons div {
  font-size: 3rem;
  cursor: pointer;
  margin: 0 30px;
  transition: all 0.3s ease;
  padding: 10px;
}

.gender-icons div:hover {
  transform: scale(1.1);
}

.gender-icons div.selected {
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 6px 12px;
  background-color: rgba(0, 255, 0, 0.1);
}

.text-pink {
  color: #ff69b4;
}

/* Chrome, Safari, Edge, Opera */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.no-spin {
  -moz-appearance: textfield;
}

.img-trainer {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
  transition: transform 0.3s ease;
}

.img-trainer:hover {
  transform: scale(1.05);
}

.phone-wrapper {
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0.5rem 0;
}

.mockup-phone {
  width: 120px;
  margin: 0 auto;
}

.phone-upload-box {
  flex: 0 0 auto;
  text-align: center;
}

#somatotipoContainer {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.somatotipo-option {
  flex: 0 0 auto;
  width: 100px;
  background-color: #fff;
  color: #000;
  padding: 12px 10px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 255, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.somatotipo-option.selected {
  border: 2px solid #00ff00;
  background-color: #eaffea;
}

.somatotipo-option img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-top: 6px;
}

.somatotipo-option p {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.gruppo-muscolare {
  background-color: #333;
  color: yellow;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gruppo-muscolare input {
  accent-color: yellow;
}

.gruppo-muscolare:hover {
  border-color: yellow;
  background-color: #444;
}

.corpo-totale {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #ff0;
  text-align: center;
}

.gruppo-muscolare.singola {
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 300px;
  width: 100%;
}

.gruppo-muscolare.singola.selected {
  border-color: #00ff00;
  background-color: #444;
}

.frequenza-option {
  background-color: #333;
  padding: 10px 16px; /* 👈 più compatto */
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1.2;
}

.frequenza-option:hover {
  background-color: #444;
}

.frequenza-option.selected {
  border-color: #00ff00;
  background-color: rgba(0, 255, 0, 0.1);
}

@media (max-width: 480px) {
  .mockup-phone {
    width: 120px;
  }

  .phone-wrapper {
    flex-wrap: nowrap;
  }
  
  .allenamento-luoghi {
    gap: 1rem !important; /* riduci lo spazio tra i blocchi */
  }

  .allenamento-box input {
    height: 50px !important; /* più compatto */
    font-size: 1rem;
  }
  
  #frequenzaAllenamentoBox {
    gap: 0.6rem !important;
  }

  .frequenza-option {
    padding: 10px 12px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .card-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;       /* non più space-between */
    align-items: stretch;
    width: 100%;
    max-width: 454px;
    height: 100dvh;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(160deg, #625d5d 0%, #3d3a3a 50%, #151414 100%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    box-sizing: border-box;
    overflow-y: auto;                  /* ✅ scroll verticale abilitato */
    overflow-x: hidden;
  }

  .card-content-top {
    flex: 1 1 auto;                    /* parte che può scorrere */
    margin-bottom: 2rem;
  }

  .card-button {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;                    /* resta in basso */
  }

  .card-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
    flex-shrink: 0;                    /* resta in basso */
  }

  .card-footer img {
    max-width: 150px;
    height: auto;
  }

  .card-box h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .card-box h2 span {
    font-size: 1.2rem;
  }

  .img-trainer {
    width: 140px;
    height: 140px;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .step {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
  }

  .card-box {
	height: auto;
	width: 100%;
	margin: 0 auto;
	padding: 1rem;       /* STOP 200px */
	min-height: 100dvh;  /* mantiene la card piena */
	overflow-x: hidden;
  }
}

@media (min-width: 1025px) {
  .card-box {
    height: auto;        /* ✅ non bloccare */
    min-height: 800px;   /* ✅ se vuoi “effetto card alta” */
    margin: 40px auto;
  }
}

.btn-invia-manuale {
  font-size: 1rem;
  padding: 14px 16px;        /* simile ai bottoni PayPal */
  border-radius: 5px;
  width: 100%;
  display: block;
  text-align: center;
  font-weight: 600;
}

/* ===== NOTE PAGAMENTO (trainer) - box dedicato ===== */
.payment-note-box{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-left: 4px solid #0ea5e9;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}

.payment-note-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.payment-note-text{
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  white-space: pre-line; /* mantiene a capo del trainer */
}
