/* =========================================================
   FLATTO — Valutatore (wizard)
   Adattamento del valutatore esterno al design system flatto.
   ========================================================= */

.valuta-page {
  background: var(--peach-light);
  min-height: calc(100vh - var(--nav-height));
}

.valuta-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(72px + var(--nav-height)) 24px 96px;
}

/* ---- PROGRESS BAR ---- */
.prog {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.ps {
  flex: 1;
  height: 4px;
  background: rgba(61, 21, 18, 0.12);
  border-radius: 4px;
  transition: background 0.35s ease;
}

.ps.on {
  background: var(--coral);
}

.step-count {
  display: block;
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* ---- STEPS ---- */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: stepFadeUp 0.35s ease both;
}

@keyframes stepFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- TYPOGRAPHY ---- */
.valuta-shell .eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
  display: inline-block;
}

.valuta-shell h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.valuta-shell h1 em {
  font-style: normal;
  color: var(--coral);
}

.valuta-shell .sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: var(--misura-testo);
}

/* ---- FIELD ---- */
.field {
  margin-bottom: 28px;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.field > label,
.field-row label {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.req {
  color: var(--coral);
  margin-left: 2px;
}

.opt {
  font-weight: 400;
  color: var(--gray);
  opacity: 0.7;
}

.fhint {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.55;
}

.charcount {
  font-size: 12px;
  color: var(--gray);
  opacity: 0.6;
  font-weight: 500;
}

.charcount.ok {
  color: var(--coral);
  opacity: 1;
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-control);
  border-radius: var(--radius-input);
  color: var(--navy);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 18px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(107, 38, 32, 0.14);
}

/* P1.6 — niente doppio anello: il glow box-shadow basta, no outline focus-visible */
input[type=text]:focus-visible,
input[type=email]:focus-visible,
input[type=tel]:focus-visible,
textarea:focus-visible {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray);
  opacity: 0.5;
  font-weight: 400;
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.55;
}

/* Errors */
.field.has-error input,
.field.has-error textarea,
.field.has-error .chips-wrap {
  border-color: var(--coral) !important;
  background: rgba(224, 112, 95, 0.06);
}

.field.has-error .chips-wrap {
  box-shadow: 0 0 0 4px rgba(107, 38, 32, 0.10);
}

.field-err {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
  line-height: 1.4;
}

.field.has-error .field-err {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.field-err::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23F0634A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- CHIPS ---- */
.chips-wrap {
  border: 1.5px solid transparent;
  border-radius: var(--radius-input);
  padding: 0;
  margin: -2px;
  transition: all 0.18s;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
}

.chip {
  padding: 11px 20px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-control);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--navy);
  background: var(--white);
  transition: all 0.18s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  border-color: var(--navy);
  background: var(--gray-light);
}

.chip.on {
  background: var(--peach-light);
  color: var(--navy);
  border-color: var(--coral);
  padding-left: 14px;
}

.chip.on::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1.5,5.5 4,8 8.5,2' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/9px no-repeat;
  flex-shrink: 0;
}

.selcount {
  font-size: 12px;
  color: var(--coral);
  font-weight: 600;
  margin-top: 12px;
  display: none;
  letter-spacing: 0.02em;
}

.selcount.show {
  display: block;
}

/* ---- DIVIDER ---- */
.valuta-shell .divider {
  height: 1px;
  background: rgba(61, 21, 18, 0.12);
  margin: 36px 0;
}

/* ---- BUTTONS ---- */
.btn-valuta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  margin-top: 16px;
  box-shadow: 0 8px 24px -8px rgba(107, 38, 32, 0.4);
}

.btn-valuta:hover:not(:disabled) {
  background: var(--coral-dark);
  box-shadow: 0 12px 28px -8px rgba(107, 38, 32, 0.5);
  transform: translateY(-1px);
}

.btn-valuta:active:not(:disabled) {
  transform: translateY(0);
}

.btn-valuta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-valuta .mini-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(253, 247, 243, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: none;
}

.btn-valuta.loading .mini-spin {
  display: inline-block;
}

.btn-valuta.loading .btn-arrow {
  display: none;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px 28px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-control);
  border-radius: var(--radius-btn);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 10px;
}

.btn-back:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ---- TRUST ROW ---- */
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust span::before {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23F0634A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  display: inline-block;
}

/* ---- RESULT HERO ---- */
.rhero {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 56px 40px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.rhero-lbl {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.rhero-num {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 56px);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

.rhero-timing {
  font-size: 15px;
  color: var(--fg-label-dark);
  font-weight: 500;
}

/* ---- RESULT CARDS ---- */
.rcard {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.rcard-ttl {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.8;
  margin-bottom: 20px;
}

.bk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(61, 21, 18, 0.08);
  font-size: 15px;
  gap: 16px;
}

.bk-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bk-lbl {
  color: var(--gray);
}

.bk-val {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.inc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(61, 21, 18, 0.08);
  font-size: 15px;
  color: var(--gray);
  line-height: 1.55;
}

.inc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.inc-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  background: rgba(224, 112, 95, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inc-ico svg {
  width: 11px;
  height: 11px;
}

.rnote {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  padding: 22px 24px;
  background: rgba(224, 112, 95, 0.08);
  border-radius: var(--radius-input);
  border-left: 3px solid var(--coral);
  margin-top: 20px;
}

/* ---- CTA STRIP ---- */
.cta-strip {
  background: var(--peach-light);
  border: 1px solid rgba(107, 38, 32, 0.20);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  box-shadow: none;
}

.cta-txt {
  flex: 1;
  min-width: 220px;
}

.cta-txt strong {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cta-txt span {
  font-size: 14px;
  color: var(--mid);
}

.btn-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 15px 30px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
}

.btn-strip:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* ---- BRIEF BOX ---- */
.brief-wrap {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(61, 21, 18, 0.12);
}

.brief-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brief-lbl {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.8;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border-control);
  color: var(--gray);
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  transition: all 0.18s;
}

.btn-copy:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.btn-copy.copied {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.brief-box {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
  white-space: pre-wrap;
  box-shadow: var(--shadow-card);
}

/* ---- LOADING ---- */
.loading {
  text-align: center;
  padding: 96px 0;
}

.spin {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(61, 21, 18, 0.12);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  font-size: 16px;
  color: var(--gray);
  transition: opacity 0.4s;
  font-weight: 500;
}

/* ---- ERROR CARD ---- */
.err-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--coral);
}

.err-card h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.err-card p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 8px;
}

.err-card .err-detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--gray);
  background: var(--peach-light);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 20px 0 24px;
  word-break: break-word;
}

.err-card .btn-valuta {
  width: auto;
  display: inline-flex;
  padding: 14px 36px;
  margin-top: 0;
}

.err-foot {
  font-size: 12px;
  color: var(--gray);
  opacity: 0.7;
  margin-top: 20px;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px -8px rgba(61, 21, 18, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 540px) {
  .valuta-shell {
    padding: calc(48px + var(--nav-height)) 18px 80px;
  }

  .rhero {
    padding: 40px 24px;
  }

  .rcard {
    padding: 24px 22px;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .btn-strip {
    width: 100%;
    justify-content: center;
  }

  .trust {
    gap: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step.active {
    animation: none;
  }

  .spin {
    animation: none;
  }
}

/* =========================================================
   MOBILE — Wizard valuta (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
  .valuta-shell {
    padding: calc(28px + var(--nav-height)) 16px 72px;
  }

  .step-count {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .prog {
    gap: 5px;
    margin-bottom: 20px;
  }

  .ps { height: 3px; }

  .valuta-shell h1 {
    font-size: 28px;
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .valuta-shell .sub {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 32px;
  }

  .field { margin-bottom: 24px; }
  .field > label,
  .field-row label {
    font-size: 13px;
  }

  .fhint { font-size: 13px; margin-bottom: 10px; }

  input[type=text],
  input[type=email],
  input[type=tel],
  textarea {
    /* 16px evita auto-zoom iOS Safari al focus */
    font-size: 16px;
    padding: 14px 16px;
  }

  textarea { min-height: 100px; }

  /* Chips: aumenta touch target */
  .chips { gap: 8px; }
  .chip {
    font-size: 13px;
    padding: 12px 16px;
    min-height: 42px;
  }

  .btn-valuta {
    padding: 16px 24px;
    font-size: 15px;
    margin-top: 12px;
  }

  .btn-back { padding: 12px 22px; font-size: 13px; }

  .trust {
    gap: 12px;
    font-size: 12px;
    margin-top: 14px;
  }

  /* Result page */
  .rhero { padding: 32px 22px; }
  .rhero-lbl { font-size: 11px; margin-bottom: 12px; }
  .rhero-num { font-size: 34px; margin-bottom: 10px; }
  .rhero-timing { font-size: 13px; }

  .rcard { padding: 22px 20px; }
  .rcard-ttl { font-size: 10px; margin-bottom: 16px; }
  .bk-row { font-size: 14px; padding: 12px 0; }
  .inc-item { font-size: 14px; gap: 10px; }
  .rnote { font-size: 13px; padding: 16px 18px; }

  .cta-strip {
    padding: 22px 20px;
    border-radius: var(--radius-card);
    gap: 16px;
  }
  .cta-txt strong { font-size: 18px; }
  .cta-txt span { font-size: 13px; }
  .btn-strip {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 14px;
  }

  .brief-wrap { margin-top: 28px; padding-top: 24px; }
  .brief-box { padding: 18px; font-size: 13px; line-height: 1.7; }
  .btn-copy { padding: 8px 14px; font-size: 11px; }

  /* Error card */
  .err-card { padding: 28px 22px; }
  .err-card h3 { font-size: 18px; }
  .err-card p { font-size: 14px; }
  .err-card .err-detail { font-size: 11px; padding: 10px 12px; }
}



/* Riga rassicurante sopra il bottone submit step 2 */
.form-reassure {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
  margin: 16px 0 -4px;
  line-height: 1.45;
}
.form-reassure::before {
  content: '↓';
  color: var(--coral);
  font-weight: 700;
  margin-right: 6px;
}


/* Seconda porta: prenota 15 minuti col team (Binario B) */
.valuta-or-call {
  margin: 0 0 24px;
  text-align: center;
  font-size: 13px;
  color: var(--mid);
}
.valuta-or-call a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   SLICE 4 — Styling risultato v3 (effort, ruoli, piani, abbonamento)
   ========================================================= */

/* 1. Badge BETA navbar */
.nav-beta {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--coral);
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -2px;
}

/* 2. Beta note sotto h1 */
.beta-note {
  font-size: 13px;
  color: var(--mid);
  margin: -8px 0 20px;
  line-height: 1.5;
}

/* 3. Effort hero */
#effort-hero {
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin: 24px 0;
  color: var(--white);
  text-align: center;
}
#ore-totali {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}
.effort-tariffa {
  font-size: 14px;
  color: var(--fg-label-dark);
  margin-top: 8px;
}

/* 4. Ruoli e attività */
#ruoli-list, #attivita-list {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}
.ruolo-row, .attivita-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(61, 21, 18,0.08);
  font-size: 15px;
}
.ruolo-row:last-child, .attivita-row:last-child {
  border-bottom: none;
}
.ruolo-name, .attivita-name {
  font-weight: 600;
  color: var(--navy);
}
.ruolo-ore, .attivita-ore {
  font-size: 13px;
  color: var(--mid);
  white-space: nowrap;
  margin-left: 12px;
}
.attivita-ruolo {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

/* 6. Riga abbonamento bridge */
#abbonamento-bridge {
  background: var(--peach-light);
  border: 1px solid rgba(107, 38, 32,0.20);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.6;
}
#abbonamento-bridge a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 7. Sezioni label */
.result-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* =========================================================
   SLICE 6 — Fix UX piani + fee disclosure + giornate equivalenti
   ========================================================= */

/* Giornate equivalenti sotto ore-totali (dentro #effort-hero) */
.effort-giorni {
  font-size: 13px;
  color: var(--fg-label-dark);
  display: block;
  margin-top: 4px;
}

/* Fee disclosure expandable */
/* Disclaimer sotto l'H1 risultato */
.beta-disclaimer {
  font-size: 13px;
  color: var(--mid);
  margin: -8px 0 20px;
}

/* Riga di hint sotto il bottone "Scarica PDF" */
.pdf-foot {
  font-size: 12px;
  color: var(--mid);
  text-align: center;
  margin-top: 8px;
}

.effort-fee-info {
  background: var(--white);
  border: 1px solid rgba(61, 21, 18,0.10);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--mid);
  cursor: pointer;
}
.effort-fee-info summary {
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.effort-fee-info p {
  margin-top: 10px;
  line-height: 1.6;
}

/* =========================================================
   STEP 3 — Q&A conversazionale (v3.1)
   Card domande con num floating, chip multi/singola, errori inline
   ========================================================= */

.qa-loading {
  text-align: center;
  padding: 96px 0;
}
.qa-loading p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--mid);
}

.qa-ready h1 { margin-bottom: 16px; }
.qa-ready .sub { margin-bottom: 32px; }

#qa-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.qa-card {
  background: var(--white);
  border: 2px solid rgba(61, 21, 18, 0.08);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.qa-card.qa-has-error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(107, 38, 32, 0.12);
}

.qa-num {
  position: absolute;
  top: 18px;
  left: -14px;
  background: var(--coral);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(107, 38, 32, 0.30);
}

.qa-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.35;
  padding-left: 20px;
}

.qa-hint {
  font-size: 13px;
  color: var(--mid);
  margin: 0 0 10px;
  padding-left: 20px;
}

.qa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 20px;
}
.qa-chips .chip { cursor: pointer; }
.qa-chips .chip.on {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.qa-input, .qa-textarea {
  width: calc(100% - 20px);
  margin-left: 20px;
  margin-top: 4px;
}

.qa-err {
  margin: 12px 0 0 20px;
  font-size: 13px;
  color: var(--coral);
  font-weight: 600;
}

.qa-err-global {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(224, 112, 95, 0.08);
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

/* Mobile — card più compatte, num più piccolo, indent ridotto */
@media (max-width: 480px) {
  .qa-card { padding: 20px 22px; }
  .qa-num { left: -10px; width: 24px; height: 24px; font-size: 12px; }
  .qa-question { font-size: 16px; padding-left: 14px; }
  .qa-chips, .qa-hint, .qa-err { padding-left: 14px; }
  .qa-input, .qa-textarea { width: calc(100% - 14px); margin-left: 14px; }
}

/* =========================================================
   v4 — Blocchi Setup / Ricorrenti / Totale + bridge hybrid
   Aggiunte additive: non sovrascrivono nulla di v3.1.
   ========================================================= */

/* Layout testata card con valore a destra */
.rcard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rcard-meta {
  font-size: 13px;
  color: var(--mid);
  white-space: nowrap;
}
.rcard-meta-strong {
  font-size: 14px;
  color: var(--navy);
}
.rcard-meta-strong strong { color: var(--coral); }
.rcard-sub {
  font-size: 13px;
  color: var(--mid);
  margin: 0 0 14px;
}
.rcard-totale {
  background: var(--peach-light);
  border: 1px solid rgba(107, 38, 32, 0.20);
}

/* Bridge abbonamento — variante hybrid */
.bridge-detail {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.bridge-detail li {
  font-size: 14px;
  color: var(--navy);
  padding: 4px 0;
  line-height: 1.5;
}
.bridge-saving {
  font-size: 14px;
  color: var(--coral);
  font-weight: 600;
  margin: 0 0 12px;
}
@media (max-width: 480px) {
  .rcard-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rcard-meta { white-space: normal; }
}

/* =========================================================
   v4 — Piano Continuativo Flatto + bottone outline PDF
   ========================================================= */
.piano-cont-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 8px 0 20px; }
.piano-cont-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.piano-cont-hero-left, .piano-cont-hero-right { background: var(--white); border: 0.5px solid rgba(61, 21, 18,0.10); border-radius: var(--radius-card); padding: 20px; }
.piano-cont-ore { display: block; font-size: 56px; font-weight: 700; color: var(--coral); line-height: 1; }
.piano-cont-ore-label { font-size: 13px; color: var(--mid); margin-top: 4px; display: block; }
.piano-cont-costo { display: block; font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; }
.piano-cont-costo-label { font-size: 12px; color: var(--mid); margin-top: 4px; display: block; }
.piano-cont-meta { font-size: 13px; color: var(--mid); margin-bottom: 20px; }
.piano-cont-benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.piano-cont-benefit { border-left: 3px solid var(--coral); padding: 10px 16px; background: var(--white); border-radius: 0 8px 8px 0; }
.piano-cont-benefit strong { font-size: 14px; color: var(--coral); display: block; margin-bottom: 4px; }
.piano-cont-benefit p { font-size: 13px; color: var(--navy); margin: 0; line-height: 1.5; }
.btn-valuta-outline { display: block; width: 100%; padding: 14px; background: transparent; border: 2px solid var(--coral); border-radius: 100px; color: var(--coral); font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 12px; transition: background 200ms, color 200ms; }
.btn-valuta-outline:hover { background: var(--coral); color: var(--white); }
@media (max-width: 480px) {
  .piano-cont-hero { grid-template-columns: 1fr; }
  .piano-cont-ore { font-size: 40px; }
  .piano-cont-costo { font-size: 24px; }
}

/* =========================================================
   v4 — Divisore "oppure" fra piani-block e piano-continuativo
   ========================================================= */
.piani-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  color: var(--mid);
  font-size: 13px;
  font-weight: 600;
}
.piani-divider::before, .piani-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(61, 21, 18,0.12);
}

/* =========================================================
   v4 — Budget alert: budget dichiarato < stima essenziale
   ========================================================= */
.budget-alert {
  background: var(--peach-50);
  border: 1.5px solid var(--coral);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 20px;
}
.budget-alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.budget-alert-body {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 12px;
}
.budget-alert-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   v4 — PDF quick-download sotto effort-hero (secondario)
   ========================================================= */
.pdf-quick {
  text-align: right;
  margin: -8px 0 16px;
}
.pdf-quick-btn {
  background: transparent;
  border: none;
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   v4 — Budget alert: hint piano a ore (per progetti con ricorrenti)
   ========================================================= */
.budget-alert-hint {
  font-size: 13px;
  color: var(--navy);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(107, 38, 32,0.20);
}

/* =========================================================
   v5 — Risultato sottratto: accordion attività + piano unico
   ========================================================= */
.attivita-accordion {
  margin-bottom: 16px;
}
.attivita-accordion-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  border-top: 0.5px solid rgba(61, 21, 18,0.10);
  border-bottom: 0.5px solid rgba(61, 21, 18,0.10);
}
.attivita-accordion-summary::-webkit-details-marker { display: none; }
.attivita-accordion[open] .attivita-accordion-summary { border-bottom: none; }

.piano-unico {
  background: var(--white);
  border: 0.5px solid rgba(61, 21, 18,0.10);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 16px;
}
.piano-unico-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.piano-unico-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.piano-unico-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--coral);
}
.piano-unico-meta {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 4px;
}
.piano-unico-fee {
  font-size: 12px;
  color: var(--mid);
}
.cta-micro {
  font-size: 11px;
  color: var(--mid);
  text-align: center;
  margin: 6px 0 16px;
}


/* =========================================================
   Stima lampo: la prima indicazione, prima dei contatti
   ========================================================= */
.lampo {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-control);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 0 0 24px;
}

.lampo-attesa {
  margin: 0;
  font-size: 15px;
  color: var(--fg2);
}

.lampo-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-label);
  margin-bottom: 8px;
}

.lampo-cifra {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--fg2);
}

.lampo-cifra strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg1);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.lampo-nota {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg2);
}

.piano-unico-revisioni {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg2);
}

.piano-unico-revisioni strong { color: var(--fg1); font-weight: 700; }
