/* ──────────────────────────────────────────
   PAGE: GUIDE (chatter-scripts.php e altre)
   Hero compatto, breadcrumb, body articolo
   e tutti i componenti visivi delle guide.
   ────────────────────────────────────────── */

/* Guide hero (compact) */
.guide-hero {
  background-image: url("../img/star-texture.svg"),
    linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92));
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  border-bottom: 1px solid var(--accent-soft);
  padding-top: 3.25rem;
  padding-bottom: 3rem;
}

.guide-hero__title {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 820px;
}

@media (max-width: 575.98px) {
  .guide-hero {
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }
}

/* Back breadcrumb */
.guide-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  color: var(--accent-color);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.guide-back:hover {
  border-color: var(--accent-color);
  color: var(--accent-hover);
  background-color: var(--accent-soft);
}

/* Article wrapper */
.guide-article {
  font-size: 1rem;
  line-height: 1.75;
}

.guide-article h2 {
  color: var(--accent-color);
  letter-spacing: 0.02em;
}

.guide-article h3 {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.03em;
}

.guide-article p {
  color: rgba(255, 255, 255, 0.88);
}

.guide-article p strong {
  color: #fff;
}

.guide-article a:not(.guide-back):not(.btn) {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

/* Stat callout */
.guide-stat {
  padding: 1rem 0.5rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
}

.guide-stat__value {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.1;
}

.guide-stat__label {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Guide card (icona + testo) */
.guide-card {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.025);
  transition: border-color var(--transition-fast);
}

.guide-card:hover {
  border-color: var(--border-soft);
}

.guide-card__icon {
  font-size: 1.6rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.guide-card__metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-weight: 700;
  font-family: var(--font-primary);
  margin: 0 auto 0.6rem;
}

/* Pricing ladder */
.pricing-ladder {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.pricing-ladder__step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-faint);
  transition: background-color var(--transition-fast);
}

.pricing-ladder__step:last-child {
  border-bottom: none;
}

.pricing-ladder__step--peak {
  background-color: rgba(225, 163, 75, 0.08);
}

.pricing-ladder__num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--bg-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 0.85rem;
}

.pricing-ladder__label {
  flex: 1 1 auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.pricing-ladder__price {
  flex-shrink: 0;
  font-family: var(--font-primary);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.pricing-ladder__step--peak .pricing-ladder__price {
  font-size: 1.2rem;
}

/* PPV step (scaletta 0-5) */
.ppv-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ppv-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
}

.ppv-step--peak {
  border-color: var(--border-soft);
  background-color: rgba(225, 163, 75, 0.06);
}

.ppv-step__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--bg-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.ppv-step__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ppv-step__body p:last-child {
  margin-bottom: 0;
}

/* Callout (regola operativa, attenzione) */
.guide-callout {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-color);
  border-radius: var(--radius-card);
  background-color: var(--accent-soft);
}

.guide-callout--warn {
  border-color: rgba(176, 72, 72, 0.35);
  border-left-color: #b04848;
  background-color: rgba(176, 72, 72, 0.08);
}

.guide-callout__icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-top: 0.15rem;
}

.guide-callout--warn .guide-callout__icon {
  color: #d56767;
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

/* Tip card */
.guide-tip {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
  height: 100%;
}

.guide-tip__icon {
  flex-shrink: 0;
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.guide-tip p {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Branch (bivi sì / no, positivo / neutro) */
.guide-branch {
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
}

.guide-branch--positive {
  border-color: rgba(225, 163, 75, 0.3);
  background-color: rgba(225, 163, 75, 0.05);
}

.guide-branch__tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.guide-branch--positive .guide-branch__tag {
  background-color: var(--accent-soft);
  color: var(--accent-color);
}

/* Checklist */
.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.guide-checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.guide-checklist li::before {
  content: "\F26A"; /* bi-check2 */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Quote */
.guide-quote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-color);
  background-color: rgba(255, 255, 255, 0.025);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

/* Chat thread + chat bubble */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
}

.chat-bubble {
  position: relative;
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.chat-bubble--out {
  align-self: flex-end;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-bottom-right-radius: 4px;
}

.chat-bubble--in {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 4px;
}

.chat-bubble__role {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}

/* Objection card */
.objection-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-card);
  background-color: rgba(255, 255, 255, 0.02);
  height: 100%;
}

.objection-card__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.objection-card__num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  border: 1px solid var(--border-soft);
}

@media (max-width: 575.98px) {
  .ppv-step {
    padding: 1rem;
    gap: 0.8rem;
  }
  .ppv-step__num {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
  }
  .pricing-ladder__step {
    padding: 0.7rem 0.85rem;
    gap: 0.7rem;
  }
  .chat-bubble {
    max-width: 95%;
    font-size: 0.88rem;
  }
}
