/* ============================================================
   NUTRIGO — CONFIGURATORE HERO · stile coerente con design system
============================================================ */

.ng-cfg {
  position: relative;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--ng-ink-100);
}

/* Back button flottante */
.ng-cfg__back {
  position: absolute;
  top: 20px; left: 24px;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--ng-ink-200);
  border-radius: var(--ng-r-pill);
  padding: 8px 16px;
  color: var(--ng-ink-700);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--ng-font);
  cursor: pointer;
  transition: all .15s;
  box-shadow: var(--ng-shadow-sm);
}
.ng-cfg__back:hover { background: var(--ng-primary-soft); color: var(--ng-primary-deep); border-color: var(--ng-primary); }

/* Progress bar */
.ng-cfg__progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--ng-ink-100);
  z-index: 5;
}
.ng-cfg__progress-fill {
  height: 100%; background: var(--ng-primary);
  transition: width .35s ease;
}

/* ============ S1: HERO ============ */
.ng-cfg__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.ng-cfg__hero-img {
  position: relative;
  background: var(--ng-ink-100);
  overflow: hidden;
}
.ng-cfg__hero-img image-slot { width: 100%; height: 100%; min-height: 560px; }
.ng-cfg__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 0%, transparent 70%, rgba(255,255,255,.6) 95%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}
.ng-cfg__hero-card {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  max-width: 560px;
}
.ng-cfg__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ng-primary-soft);
  border: 1px solid rgba(33,180,161,.2);
  border-radius: var(--ng-r-pill);
  padding: 6px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--ng-primary-deep);
  margin-bottom: 24px;
  width: fit-content;
}
.ng-cfg__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ng-primary); animation: ngPulse 2s infinite; }
@keyframes ngPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.ng-cfg__h1 {
  font-size: 44px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ng-ink-900);
  margin: 0 0 16px;
  text-wrap: balance;
}
.ng-cfg__sub {
  font-size: 17px; line-height: 1.55;
  color: var(--ng-ink-500);
  margin: 0 0 32px;
}

.ng-cfg__btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--ng-r-md);
  font-size: 15px; font-weight: 600;
  font-family: var(--ng-font);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .15s;
}
.ng-cfg__btn--primary { background: var(--ng-primary); color: #fff; margin-bottom: 12px; }
.ng-cfg__btn--primary:hover { background: var(--ng-primary-deep); transform: translateY(-1px); box-shadow: var(--ng-shadow-md); }
.ng-cfg__btn--ghost { background: transparent; color: var(--ng-ink-500); border: 1px solid var(--ng-ink-200); height: 48px; font-size: 14px; }
.ng-cfg__btn--ghost:hover { border-color: var(--ng-primary); color: var(--ng-primary); }

.ng-cfg__trust {
  display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap;
}
.ng-cfg__trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ng-ink-400);
}
.ng-cfg__trust-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ng-primary);
}

/* ============ STEP layout generico ============ */
.ng-cfg__step {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 520px;
  animation: ngStepIn .25s ease;
}
@keyframes ngStepIn { from { opacity:0; transform: translateY(8px) } to { opacity:1; transform: none } }

.ng-cfg__step-left {
  background: var(--ng-ink-900);
  background: linear-gradient(155deg, var(--ng-ink-900) 0%, #163838 100%);
  padding: 56px 44px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  position: relative;
}
.ng-cfg__step-left::before {
  content: ""; position: absolute;
  top: 0; right: 0; bottom: 0; width: 4px;
  background: var(--ng-primary);
}
.ng-cfg__step-num {
  font-family: var(--ng-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ng-primary);
  margin-bottom: 14px;
  font-weight: 500;
}
.ng-cfg__step-title {
  font-size: 30px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ng-cfg__step-sub {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.65);
  margin: 0;
}

.ng-cfg__step-right {
  background: #fff;
  padding: 56px 56px;
  display: flex; flex-direction: column;
}
.ng-cfg__hint {
  font-size: 13px;
  color: var(--ng-ink-500);
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--ng-bg-soft);
  border-left: 3px solid var(--ng-primary);
  border-radius: 0 var(--ng-r-sm) var(--ng-r-sm) 0;
}

.ng-cfg__next {
  margin-top: auto;
  height: 52px;
  background: var(--ng-primary);
  color: #fff;
  border: none;
  border-radius: var(--ng-r-md);
  font-size: 15px; font-weight: 600;
  font-family: var(--ng-font);
  cursor: pointer;
  transition: all .15s;
  align-self: stretch;
}
.ng-cfg__next:hover { background: var(--ng-primary-deep); }

/* ============ Choice cards ============ */
.ng-cfg__choices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.ng-cfg__choice {
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: all .15s;
  background: #fff;
}
.ng-cfg__choice:hover { border-color: var(--ng-primary); background: var(--ng-primary-tint); }
.ng-cfg__choice.is-active { border-color: var(--ng-primary); background: var(--ng-primary-soft); }
.ng-cfg__choice-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ng-ink-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  transition: background .15s;
}
.ng-cfg__choice.is-active .ng-cfg__choice-icon { background: var(--ng-primary); }
.ng-cfg__choice-body { flex: 1; }
.ng-cfg__choice-title { font-size: 14px; font-weight: 600; color: var(--ng-ink-900); margin-bottom: 3px; }
.ng-cfg__choice.is-active .ng-cfg__choice-title { color: var(--ng-primary-deep); }
.ng-cfg__choice-sub { font-size: 12px; color: var(--ng-ink-500); line-height: 1.4; }
.ng-cfg__choice-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--ng-ink-300);
  flex-shrink: 0; position: relative;
  transition: all .15s;
}
.ng-cfg__choice.is-active .ng-cfg__choice-radio,
.ng-cfg__plan.is-active .ng-cfg__choice-radio {
  background: var(--ng-primary); border-color: var(--ng-primary);
}
.ng-cfg__choice.is-active .ng-cfg__choice-radio::after,
.ng-cfg__plan.is-active .ng-cfg__choice-radio::after {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

/* Nutri box */
.ng-cfg__nutri-box {
  background: var(--ng-bg-soft);
  border: 1px solid var(--ng-ink-100);
  border-radius: var(--ng-r-md);
  padding: 20px;
  margin-bottom: 16px;
  display: flex; gap: 16px;
}
.ng-cfg__nutri-icon { font-size: 28px; flex-shrink: 0; }
.ng-cfg__nutri-title { font-size: 14px; font-weight: 600; color: var(--ng-ink-900); margin-bottom: 4px; }
.ng-cfg__nutri-sub { font-size: 12px; color: var(--ng-ink-500); line-height: 1.5; margin: 0 0 12px; }
.ng-cfg__nutri-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ng-cfg__nutri-feats li {
  font-size: 12px; color: var(--ng-ink-700);
  position: relative; padding-left: 14px;
}
.ng-cfg__nutri-feats li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ng-primary);
}

/* ============ Plan cards (S6) — grid 3 colonne verticali, click-to-continue ============ */
.ng-cfg__plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 780px) {
  .ng-cfg__plan-cards { grid-template-columns: 1fr; gap: 10px; }
}
.ng-cfg__plan-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 28px 18px 22px;
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  font-family: inherit;
  min-height: 260px;
}
.ng-cfg__plan-card:hover {
  border-color: var(--ng-primary);
  background: var(--ng-primary-tint);
  transform: translateY(-2px);
  box-shadow: var(--ng-shadow-md);
}
.ng-cfg__plan-card:disabled { cursor: default; pointer-events: none; opacity: .55; }
.ng-cfg__plan-card.is-active {
  border-color: var(--ng-primary);
  background: var(--ng-primary-soft);
  box-shadow: 0 0 0 3px rgba(33,180,161,.18);
  transform: translateY(-2px);
}
.ng-cfg__plan-card.is-active:disabled { opacity: 1; }
.ng-cfg__plan-card.is-featured { border-color: rgba(33,180,161,.4); }
.ng-cfg__plan-card-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--ng-primary); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--ng-r-pill);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ng-cfg__plan-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 64px;
  color: var(--ng-primary-deep);
  margin-bottom: 4px;
  transition: color .18s ease, transform .18s ease;
}
.ng-cfg__plan-card:hover .ng-cfg__plan-card-icon { color: var(--ng-primary); }
.ng-cfg__plan-card.is-active .ng-cfg__plan-card-icon {
  color: var(--ng-primary);
  transform: scale(1.05);
}
.ng-cfg__plan-card-name {
  font-size: 17px; font-weight: 600; color: var(--ng-ink-900);
  line-height: 1.2;
}
.ng-cfg__plan-card.is-active .ng-cfg__plan-card-name { color: var(--ng-primary-deep); }
.ng-cfg__plan-card-what {
  font-size: 12.5px; color: var(--ng-ink-500); line-height: 1.4;
  max-width: 220px;
}
.ng-cfg__plan-card-divider {
  width: 32px; height: 1px; background: var(--ng-ink-200);
  margin: 8px 0 6px;
}
.ng-cfg__plan-card.is-active .ng-cfg__plan-card-divider { background: rgba(33,180,161,.3); }
.ng-cfg__plan-card-ideale-lbl {
  font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ng-ink-400);
}
.ng-cfg__plan-card-ideale {
  font-size: 14.5px; font-weight: 600; color: var(--ng-ink-900);
  line-height: 1.25;
}
.ng-cfg__plan-card.is-active .ng-cfg__plan-card-ideale { color: var(--ng-primary-deep); }
.ng-cfg__plan-card-desc {
  font-size: 12px; color: var(--ng-ink-500); line-height: 1.35;
  max-width: 200px;
}

/* ============ Plans (S6 — versione legacy a righe, conservata) ============ */
.ng-cfg__plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ng-cfg__plan {
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: all .15s;
}
.ng-cfg__plan:hover { border-color: var(--ng-primary); background: var(--ng-primary-tint); }
.ng-cfg__plan.is-active { border-color: var(--ng-primary); background: var(--ng-primary-soft); }
.ng-cfg__plan-left { flex: 1; }
.ng-cfg__plan-name { font-size: 15px; font-weight: 600; color: var(--ng-ink-900); margin-bottom: 4px; }
.ng-cfg__plan.is-active .ng-cfg__plan-name { color: var(--ng-primary-deep); }
.ng-cfg__plan-desc { font-size: 12px; color: var(--ng-ink-500); }
.ng-cfg__plan-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  background: var(--ng-primary); color: #fff;
  padding: 3px 10px;
  border-radius: var(--ng-r-pill);
  margin-top: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}
.ng-cfg__plan-right { text-align: right; }
.ng-cfg__plan-price { font-size: 22px; font-weight: 700; color: var(--ng-primary); line-height: 1; font-feature-settings: "tnum"; }
.ng-cfg__plan-unit { font-size: 11px; color: var(--ng-ink-400); margin-top: 4px; }

/* Variante "Ideale per" — sostituisce il prezzo su S6 (i prezzi si vedono solo a S10). */
.ng-cfg__plan-right--ideale {
  text-align: right;
  max-width: 200px;
  min-width: 140px;
}
.ng-cfg__plan-ideale-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ng-ink-400);
  margin-bottom: 4px;
}
.ng-cfg__plan-ideale-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ng-ink-700, var(--ng-ink-900));
  line-height: 1.25;
  margin-bottom: 3px;
}
.ng-cfg__plan-ideale-desc {
  font-size: 12.5px;
  color: var(--ng-ink-500);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .ng-cfg__plan-right--ideale { text-align: left; max-width: none; min-width: 0; }
}

/* ============ Cards obiettivo (S15) — grid 3×2 con icone ============ */
.ng-cfg__obiettivi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .ng-cfg__obiettivi { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .ng-cfg__obiettivi { grid-template-columns: 1fr 1fr; }
}
.ng-cfg__obiettivo {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  background: #fff;
  color: var(--ng-ink-700);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  font-family: inherit;
  min-height: 130px;
}
.ng-cfg__obiettivo:hover {
  border-color: var(--ng-primary);
  background: var(--ng-primary-tint);
  transform: translateY(-2px);
  box-shadow: var(--ng-shadow-md);
}
.ng-cfg__obiettivo:disabled { cursor: default; pointer-events: none; opacity: 0.55; }
.ng-cfg__obiettivo.is-active {
  border-color: var(--ng-primary);
  background: var(--ng-primary-soft);
  box-shadow: 0 0 0 3px rgba(33,180,161,.18);
  transform: translateY(-2px);
}
.ng-cfg__obiettivo.is-active:disabled {
  opacity: 1;
}
.ng-cfg__obiettivo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ng-primary-soft);
  color: var(--ng-primary-deep);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  flex-shrink: 0;
}
.ng-cfg__obiettivo:hover .ng-cfg__obiettivo-icon {
  background: #fff;
  color: var(--ng-primary);
}
.ng-cfg__obiettivo.is-active .ng-cfg__obiettivo-icon {
  background: var(--ng-primary);
  color: #fff;
  transform: scale(1.05);
}
.ng-cfg__obiettivo-label {
  font-size: 15px; font-weight: 600; color: var(--ng-ink-900);
  line-height: 1.25;
}
.ng-cfg__obiettivo.is-active .ng-cfg__obiettivo-label { color: var(--ng-primary-deep); }
.ng-cfg__obiettivo-desc {
  font-size: 12.5px; color: var(--ng-ink-500); line-height: 1.4;
}
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.ng-cfg__chip {
  padding: 10px 16px;
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-pill);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ng-ink-700);
  font-family: inherit;
  transition: all .15s ease;
  line-height: 1;
}
.ng-cfg__chip:hover {
  border-color: var(--ng-primary);
  background: var(--ng-primary-tint);
  color: var(--ng-primary-deep);
}
.ng-cfg__chip.is-active {
  border-color: var(--ng-primary);
  background: var(--ng-primary-soft);
  color: var(--ng-primary-deep);
  font-weight: 600;
}

/* ============ Opt cards (S7, S9) & Del cards (S8) ============ */
.ng-cfg__opts { display: flex; gap: 14px; margin-bottom: 16px; }
.ng-cfg__opt, .ng-cfg__del {
  flex: 1;
  border: 1.5px solid var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  padding: 22px 18px;
  cursor: pointer;
  position: relative;
  transition: all .15s;
  background: #fff;
}
.ng-cfg__opt { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ng-cfg__opt:hover, .ng-cfg__del:hover { border-color: var(--ng-primary); background: var(--ng-primary-tint); }
.ng-cfg__opt.is-active, .ng-cfg__del.is-active { border-color: var(--ng-primary); background: var(--ng-primary-soft); }
.ng-cfg__opt-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--ng-primary); color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--ng-r-pill);
  white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
.ng-cfg__opt-icon { font-size: 24px; }
.ng-cfg__opt-title { font-size: 18px; font-weight: 700; color: var(--ng-ink-900); }
.ng-cfg__opt.is-active .ng-cfg__opt-title { color: var(--ng-primary-deep); }
.ng-cfg__opt-label { font-size: 12px; color: var(--ng-ink-500); line-height: 1.4; }
.ng-cfg__opt-price { font-size: 14px; font-weight: 700; color: var(--ng-primary); margin-top: 4px; font-feature-settings: "tnum"; }
.ng-cfg__opt-sub { font-size: 11px; color: var(--ng-ink-400); }

.ng-cfg__del-check {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ng-ink-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
  transition: all .15s;
}
.ng-cfg__del.is-active .ng-cfg__del-check { background: var(--ng-primary); border-color: var(--ng-primary); }
.ng-cfg__del-icon { font-size: 28px; margin-bottom: 10px; }
.ng-cfg__del-title { font-size: 15px; font-weight: 600; color: var(--ng-ink-900); margin-bottom: 6px; }
.ng-cfg__del.is-active .ng-cfg__del-title { color: var(--ng-primary-deep); }
.ng-cfg__del-desc { font-size: 12px; color: var(--ng-ink-500); line-height: 1.5; margin: 0 0 10px; }
.ng-cfg__del-tag {
  display: inline-block;
  font-size: 10px;
  background: var(--ng-ink-100);
  color: var(--ng-ink-500);
  padding: 3px 10px;
  border-radius: var(--ng-r-pill);
}
.ng-cfg__del.is-active .ng-cfg__del-tag { background: var(--ng-primary); color: #fff; }

/* ============ Price (S10) ============ */
.ng-cfg__price {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 520px;
}
.ng-cfg__price-left {
  background: linear-gradient(155deg, var(--ng-primary) 0%, var(--ng-primary-deep) 100%);
  padding: 56px 44px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.ng-cfg__price-lbl {
  font-family: var(--ng-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.ng-cfg__price-amt {
  font-size: 64px; font-weight: 700; line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.ng-cfg__price-per {
  font-size: 14px; color: rgba(255,255,255,.7);
  margin-top: 8px;
}
.ng-cfg__price-save {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--ng-r-pill);
  padding: 6px 14px;
  margin-top: 18px;
  font-size: 12px; font-weight: 500;
  width: fit-content;
}
.ng-cfg__price-right {
  background: #fff;
  padding: 56px;
  display: flex; flex-direction: column;
}
.ng-cfg__price-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ng-cfg__price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--ng-bg-soft);
  border-radius: var(--ng-r-sm);
  font-size: 13px;
}
.ng-cfg__price-row span { color: var(--ng-ink-500); }
.ng-cfg__price-row b { color: var(--ng-ink-900); font-weight: 600; }
.ng-cfg__price-ppg {
  font-size: 13px; color: var(--ng-ink-500);
  margin: 0 0 16px;
}
.ng-cfg__price-ppg strong { color: var(--ng-primary-deep); }

/* Recap senza prezzo (S11 dopo modifica "prezzo solo dopo submit") */
.ng-cfg__recap-prev {
  font-size: 13px;
  color: var(--ng-primary-deep);
  font-weight: 500;
  background: rgba(33,180,161,.18);
  padding: 4px 12px;
  border-radius: var(--ng-r-pill);
}
.ng-cfg__price-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--ng-bg-soft);
  border: 1px solid var(--ng-ink-100);
  border-radius: var(--ng-r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ng-cfg__price-note-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ng-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.ng-cfg__price-note strong {
  display: block;
  font-size: 13.5px; color: var(--ng-ink-900);
  margin-bottom: 3px;
}
.ng-cfg__price-note span:not(.ng-cfg__price-note-icon) {
  font-size: 12.5px; color: var(--ng-ink-500); line-height: 1.45;
}

/* ============ Form (S4, S11, S12) ============ */
.ng-cfg__recap {
  background: var(--ng-primary-soft);
  border: 1px solid rgba(33,180,161,.2);
  border-radius: var(--ng-r-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.ng-cfg__recap--col { flex-direction: column; align-items: flex-start; gap: 4px; }
.ng-cfg__recap-label { font-size: 12px; color: var(--ng-primary-deep); font-weight: 500; }
.ng-cfg__recap-mini { font-size: 11px; color: var(--ng-ink-500); }
.ng-cfg__recap-price { font-size: 18px; font-weight: 700; color: var(--ng-primary-deep); font-feature-settings: "tnum"; }

.ng-cfg__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.ng-cfg__field--full { grid-column: 1 / -1; }
.ng-cfg__field label {
  display: block;
  font-family: var(--ng-mono);
  font-size: 10px; font-weight: 500;
  color: var(--ng-ink-400);
  margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.ng-cfg__field input {
  width: 100%; height: 46px;
  border: 1px solid var(--ng-ink-200);
  border-radius: var(--ng-r-sm);
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--ng-font);
  color: var(--ng-ink-900);
  outline: none;
  transition: all .15s;
  background: #fff;
}
.ng-cfg__field input:focus {
  border-color: var(--ng-primary);
  box-shadow: 0 0 0 3px rgba(33,180,161,.15);
}
.ng-cfg__field input.is-error {
  border-color: #D9534F;
  background: #FEF5F4;
}
.ng-cfg__field-err {
  font-size: 11px; color: #D9534F;
  margin-top: 4px; display: block;
}
.ng-cfg__submit {
  width: 100%; height: 52px;
  background: var(--ng-primary); color: #fff;
  border: none;
  border-radius: var(--ng-r-md);
  font-size: 15px; font-weight: 600;
  font-family: var(--ng-font);
  cursor: pointer;
  transition: all .15s;
}
.ng-cfg__submit:hover { background: var(--ng-primary-deep); transform: translateY(-1px); box-shadow: var(--ng-shadow-md); }
.ng-cfg__microtrust {
  text-align: center;
  font-size: 11px;
  color: var(--ng-ink-400);
  margin: 10px 0 0;
}

/* ============ Confirm (S5, S13) ============ */
.ng-cfg__conf {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 460px;
}
.ng-cfg__conf-left {
  background: linear-gradient(155deg, var(--ng-primary) 0%, var(--ng-primary-deep) 100%);
  padding: 56px 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
}
.ng-cfg__conf-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
}
.ng-cfg__conf-title { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.ng-cfg__conf-sub { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.6; margin: 0; }
.ng-cfg__conf-right {
  background: #fff;
  padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.ng-cfg__conf-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ng-cfg__conf-tag {
  background: var(--ng-bg-soft);
  border: 1px solid var(--ng-ink-100);
  border-radius: var(--ng-r-md);
  padding: 14px 16px;
}
.ng-cfg__conf-tag-l {
  font-family: var(--ng-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ng-ink-400);
  margin-bottom: 4px;
}
.ng-cfg__conf-tag-v {
  font-size: 13px; font-weight: 600;
  color: var(--ng-ink-900);
}

/* ============ Below-fold pills ============ */
.ng-cfg__below {
  background: #fff;
  border-top: 1px solid var(--ng-ink-100);
  padding: 16px 40px;
  display: flex; align-items: center; gap: 8px;
  justify-content: center; flex-wrap: wrap;
}
.ng-cfg__below-label { font-size: 11px; color: var(--ng-ink-400); }
.ng-cfg__pill {
  background: var(--ng-bg-soft);
  border: 1px solid var(--ng-ink-200);
  border-radius: var(--ng-r-pill);
  padding: 5px 14px;
  font-size: 11px;
  color: var(--ng-ink-500);
  text-decoration: none;
  transition: all .15s;
}
.ng-cfg__pill:hover { background: var(--ng-primary-soft); border-color: var(--ng-primary); color: var(--ng-primary-deep); }
.ng-cfg__below-arrow { font-size: 12px; color: var(--ng-ink-300); }

/* ============ Upload (S14) ============ */
.ng-cfg__upload {
  border: 2px dashed var(--ng-ink-200);
  border-radius: var(--ng-r-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--ng-bg-soft);
}
.ng-cfg__upload:hover { border-color: var(--ng-primary); background: var(--ng-primary-tint); }
.ng-cfg__upload-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ng-primary-soft); color: var(--ng-primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin: 0 auto 14px;
}
.ng-cfg__upload-title { font-size: 14px; font-weight: 600; color: var(--ng-ink-900); margin-bottom: 4px; }
.ng-cfg__upload-hint { font-size: 12px; color: var(--ng-ink-400); }
.ng-cfg__upload-file {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 8px 4px;
}
.ng-cfg__upload-file-icon { font-size: 28px; }
.ng-cfg__upload-file-name { font-size: 14px; font-weight: 600; color: var(--ng-ink-900); }
.ng-cfg__upload-file-size { font-size: 12px; color: var(--ng-primary-deep); }
.ng-cfg__upload-remove {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--ng-ink-200); background: #fff;
  color: var(--ng-ink-500); font-size: 18px; cursor: pointer;
}
.ng-cfg__upload-remove:hover { border-color: #D9534F; color: #D9534F; }

/* ============ B2B form ============ */
.ng-b2b-form {
  background: #fff;
  border: 1px solid var(--ng-ink-100);
  border-radius: var(--ng-r-lg);
  padding: 28px;
  box-shadow: var(--ng-shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.ng-b2b-form__title { font-size: 16px; font-weight: 600; color: var(--ng-ink-900); margin: 0 0 4px; }
.ng-b2b-form__sub { font-size: 13px; color: var(--ng-ink-500); margin: 0 0 8px; }
.ng-b2b-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ng-b2b-form__full { grid-column: 1 / -1; }
.ng-b2b-form input, .ng-b2b-form textarea {
  width: 100%; height: 44px;
  border: 1px solid var(--ng-ink-200);
  border-radius: var(--ng-r-sm);
  padding: 0 14px;
  font-size: 14px; font-family: var(--ng-font);
  background: #fff;
  outline: none;
  transition: all .15s;
}
.ng-b2b-form textarea { height: 80px; padding: 12px 14px; resize: vertical; }
.ng-b2b-form input:focus, .ng-b2b-form textarea:focus {
  border-color: var(--ng-primary);
  box-shadow: 0 0 0 3px rgba(33,180,161,.15);
}
.ng-b2b-form__success {
  background: var(--ng-primary-soft);
  border: 1px solid rgba(33,180,161,.3);
  border-radius: var(--ng-r-md);
  padding: 16px;
  color: var(--ng-primary-deep);
  font-size: 14px;
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .ng-cfg__hero,
  .ng-cfg__step,
  .ng-cfg__price,
  .ng-cfg__conf { grid-template-columns: 1fr; }
  .ng-cfg__hero-img,
  .ng-cfg__hero-img image-slot { min-height: 280px; }
  .ng-cfg__hero-overlay {
    background: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,.7) 100%);
  }
  .ng-cfg__hero-card,
  .ng-cfg__step-left,
  .ng-cfg__step-right,
  .ng-cfg__price-left,
  .ng-cfg__price-right,
  .ng-cfg__conf-left,
  .ng-cfg__conf-right { padding: 32px 24px; }
  .ng-cfg__h1 { font-size: 32px; }
  .ng-cfg__step-title { font-size: 24px; }
  .ng-cfg__price-amt { font-size: 48px; }
  .ng-cfg__opts { flex-direction: column; }
  .ng-cfg__form-grid,
  .ng-cfg__conf-tags { grid-template-columns: 1fr; }
  .ng-cfg__back { top: 12px; left: 12px; padding: 6px 12px; font-size: 12px; }
  .ng-cfg__below { padding: 14px 16px; gap: 6px; }
}

/* ============================================================
   SCROLL LOCK — quando l'utente entra nel configuratore (step != 1)
   il resto della landing viene nascosto e il configuratore occupa
   tutto il viewport. Si scrolla solo all'interno della section.
============================================================ */
/* ============================================================
   SCROLL LOCK — quando l'utente entra nel configuratore (step != 1)
   il resto della landing viene nascosto e il configuratore occupa
   tutto il viewport. Si scrolla solo all'interno della section.
   La tecnica position:fixed+top:-Y è l'unica che funziona davvero
   su iOS Safari e Chrome Android (overflow:hidden da solo non basta).
============================================================ */
body.ng-cfg-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  /* top viene settato via JS al valore -scrollY corrente */
}
body.ng-cfg-locked .ng-cfg {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
}
/* la barra di progresso resta sticky in alto dentro alla section */
body.ng-cfg-locked .ng-cfg__progress {
  position: sticky;
  top: 0;
}
/* nascondi lo sticky CTA mobile e il "Continua il sito" mentre si è nel flow */
body.ng-cfg-locked #ng-mcta-sticky,
body.ng-cfg-locked .ng-cfg__below { display: none !important; }
