/* ======================================================
   ROOT + SPACING SYSTEM
====================================================== */
.pv{
  --pv-accent: #00b4f0;
  --pv-text: #0b0b0b;
  --pv-muted: #444;
  --pv-border: rgba(0,0,0,.14);
  --pv-soft: #f6f7f9;

  /* ritmo spaziature (responsive) */
  --pv-gap-tight: clamp(6px, 1.2vw, 8px);      /* tra input e errore */
  --pv-gap:       clamp(10px, 1.6vw, 14px);    /* standard */
  --pv-gap-block: clamp(16px, 2.2vw, 22px);    /* tra blocchi */
  --pv-gap-actions: clamp(18px, 2.6vw, 26px);  /* prima dei bottoni */

  width: min(92vw, 680px);
  margin: clamp(18px, 3vw, 34px) auto clamp(36px, 6vw, 80px);
  position: relative;
}

/* ======================================================
   HEADER / STEPS
====================================================== */
.pv__head{
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: 14px;
}

.pv__steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pv__dot{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pv-border);
  background: #fff;
  color: rgba(0,0,0,.55);
  font-weight: 900;
  font-size: 14px;
}
.pv__dot.is-on{
  border-color: rgba(0,180,240,.35);
  box-shadow: 0 10px 24px rgba(0,180,240,.10), 0 2px 10px rgba(0,0,0,.06);
  color: var(--pv-text);
}

/* ======================================================
   PANELS / CARD
====================================================== */
.pv__panel{ display: none; }
.pv__panel.is-active{ display: block; }

.pv__card{
  border: 1px solid var(--pv-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  border-radius: 20px;
  padding: clamp(18px, 2.2vw, 26px);
}

.pv__cardTitle{
  margin: 0 0 var(--pv-gap);
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

/* ======================================================
   FIELD WRAPPER (gestisce tutto lo spacing)
====================================================== */
.pv__field{
  margin-top: var(--pv-gap-block);
}
.pv__cardTitle + .pv__field{
  margin-top: 0; /* primo blocco subito sotto titolo */
}

/* ======================================================
   LABEL / INPUT / TEXTAREA
====================================================== */
.pv__label{
  display: block;
  margin: 0 0 var(--pv-gap-tight);
  font-weight: 800;
  font-size: 13px;
  color: rgba(0,0,0,.70);
}

.pv__input,
.pv__textarea{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--pv-soft);
  color: var(--pv-text);
  margin: 0;              /* ✅ niente margin casuali */
  box-sizing: border-box;
}

.pv__textarea{
  min-height: 120px;
  resize: vertical;
}

.pv__input--readonly{
  background: #fff;
  color: rgba(0,0,0,.65);
}

.pv__input.is-error{
  border-color: rgba(217,48,37,.55);
  box-shadow: 0 0 0 3px rgba(217,48,37,.12);
}

/* ======================================================
   ERROR (poco sotto l’elemento, poi più spazio prima del prossimo blocco)
====================================================== */
.pv__error{
  display: block;
  margin-top: var(--pv-gap-tight);   /* ✅ non attaccato all’input */
  margin-bottom: 0;                  /* ✅ lo spacing lo gestisce .pv__field */
  font-size: 12px;
  font-weight: 800;
  color: #d93025;
  line-height: 1.2;
  min-height: 14px;
}

/* ======================================================
   HINT
====================================================== */
.pv__hint{
  margin-top: var(--pv-gap);
  margin-bottom: var(--pv-gap-block);
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,.62);
}

/* ======================================================
   BUTTONS
====================================================== */
.pv__btn{
  width: 100%;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  color: var(--pv-text);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pv__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.pv__btn--primary{
  border-color: rgba(0,180,240,.35);
  background: linear-gradient(135deg, rgba(0,180,240,.14), rgba(0,180,240,.03));
}
.pv__btn--ghost{
  background: #fff;
  color: rgba(0,0,0,.70);
}

.pv__actions{
  margin-top: var(--pv-gap-actions); /* ✅ spazio costante prima del bottone singolo */
}

.pv__btnRow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--pv-gap-actions); /* ✅ stesso spazio per i bottoni */
}

/* responsive bottoni */
@media (max-width: 560px){
  .pv__btnRow{ grid-template-columns: 1fr; }
}

/* ======================================================
   STEP 4 ERROR (SERVIZI)
====================================================== */
.pv__error--services{
  border: 1px solid rgba(217,48,37,.25);
  background: rgba(217,48,37,.06);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: var(--pv-gap);
  margin-bottom: var(--pv-gap);
}
.pv__error--services[hidden],
.pv__error--services:empty{
  display: none !important;
}

/* ======================================================
   STEP 4 TABLE HEAD
====================================================== */
.pv__tableHead{
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  margin-top: var(--pv-gap-block);
  align-items: center;
}
.pv__th{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}
.pv__th--right{ text-align: right; }

/* ======================================================
   STEP 4 TABLE BASE
====================================================== */
.pv__table{
  margin-top: var(--pv-gap);
  border-radius: 16px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}

/* ======================================================
   CHECKLIST
====================================================== */
.pv__table--checklist{ display: grid; }

.pv__chkRow{
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
  user-select: none;
}
.pv__chkRow:last-child{ border-bottom: 0; }

.pv__chkText{
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .02em;
  color: rgba(0,0,0,.80);
}

.pv__chkCtrl{
  justify-self: end;
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
}
.pv__chkInput{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pv__chkBox{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,.18);
  background: var(--pv-soft);
  display: grid;
  place-items: center;
}
.pv__chkInput:checked + .pv__chkBox{
  border-color: rgba(0,180,240,.55);
  box-shadow: 0 0 0 3px rgba(0,180,240,.12);
}
.pv__chkInput:checked + .pv__chkBox::after{
  content: "✓";
  font-weight: 900;
  transform: translateY(-1px);
  color: rgba(0,0,0,.75);
}

/* ======================================================
   CONSENSO PRIVACY / CONDIZIONI
====================================================== */
.pv__consent{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;

  padding: 18px 16px; /* ✅ più respiro interno senza esagerare */
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,180,240,.06), rgba(0,180,240,.02));
  border: 1px solid rgba(0,180,240,.18);

  cursor: pointer;
  user-select: none;
}

.pv__consent > input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,.25);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* SOLO la V (più su) */
.pv__consent > input[type="checkbox"]::after{
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-2px);
  opacity: 0;
}

.pv__consent > input[type="checkbox"]:checked{
  background: var(--pv-accent);
  border-color: var(--pv-accent);
}
.pv__consent > input[type="checkbox"]:checked::after{ opacity: 1; }

.pv__consentText{
  font-size: 13.5px;
  line-height: 1.45;
  transform: translateY(1px);
  color: rgba(0,0,0,.82);
}
.pv__consentText a{
  color: var(--pv-accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,180,240,.35);
}
.pv__consentText a:hover{
  border-bottom-color: rgba(0,180,240,.65);
}
.modulo-process__intro{
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  border-radius: 16px;
  padding: clamp(22px, 2.2vw, 32px);
}
.modulo-process__title{
  margin: 0 0 14px 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #444;
}