/* ─── PROBLEMI — Autocambio (page-specific patterns) ─────────────── */
/* Inherits base tokens from each page's inline <style> block.        */

/* ── Hero adaptations ── */
.hero-problema .h1 { font-size: clamp(40px,5.8vw,76px); }
.hero-problema .hero-content { max-width: 660px; }
.hero-problema .hero-quote {
  margin-top: 26px;
  font-family: var(--fd);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px,1.8vw,22px);
  color: rgba(242,240,237,.92);
  line-height: 1.4;
  max-width: 540px;
  padding-left: 18px;
  border-left: 2px solid var(--or);
}

/* ── Sec 2 — Riconoscimento del sintomo (narrative block) ── */
.recog-block {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  gap: 56px;
  align-items: start;
}
.recog-side {
  padding: 30px 28px;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--or);
}
.recog-side-label {
  font-family: var(--fd); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--or);
  margin-bottom: 14px; display: block;
}
.recog-side p {
  font-family: var(--fd); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1.35; color: rgba(242,240,237,.92);
}
.recog-side p + p { margin-top: 12px; }
.recog-body {
  font-size: 18px; color: rgba(242,240,237,.78); line-height: 1.78;
}
.recog-body p + p { margin-top: 18px; }

/* ── Sec 3 — Possibili cause (hypothesis cards) ── */
.cause-intro {
  margin-top: 16px;
  font-size: 17px;
  color: var(--mu);
  font-style: italic;
  max-width: 640px;
  line-height: 1.65;
}
.cause-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--bdr);
  border: 1px solid var(--bdr);
  margin-top: 44px;
}
.cause-card {
  background: var(--bg2);
  padding: 30px 30px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: background .22s;
  position: relative;
}
.cause-card:hover { background: rgba(232,96,16,.04); }
.cause-tag {
  flex-shrink: 0;
  font-family: var(--fd); font-weight: 700; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--or);
  background: rgba(232,96,16,.08);
  border: 1px solid rgba(232,96,16,.22);
  padding: 5px 9px;
  border-radius: 2px;
  white-space: nowrap;
  margin-top: 4px;
}
.cause-text { min-width: 0; }
.cause-title {
  font-family: var(--fd); font-weight: 700;
  font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 8px; line-height: 1.25;
}
.cause-desc { font-size: 14.5px; color: var(--mu); line-height: 1.6; }
.cause-micro {
  margin-top: 30px;
  font-size: 15.5px;
  color: rgba(242,240,237,.65);
  font-style: italic;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--or);
  padding: 22px 26px;
  line-height: 1.7;
}

/* ── Sec 4 — Posso continuare a guidare? (3 severity levels) ── */
.sev-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 44px;
}
.sev-card {
  background: var(--bg3);
  border: 1px solid var(--bdr);
  padding: 28px 26px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.sev-level {
  font-family: var(--fd); font-weight: 700;
  font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sev-bars {
  display: flex; gap: 3px; flex-shrink: 0;
}
.sev-bars span {
  width: 14px; height: 4px;
  background: rgba(242,240,237,.12);
  border-radius: 1px;
}
.sev-card--1 .sev-bars span:nth-child(1) { background: #6c8a5a; }
.sev-card--2 .sev-bars span:nth-child(1),
.sev-card--2 .sev-bars span:nth-child(2) { background: #d4892a; }
.sev-card--3 .sev-bars span { background: var(--or); }
.sev-card--1 .sev-level { color: #94b07c; }
.sev-card--2 .sev-level { color: #e8a849; }
.sev-card--3 .sev-level { color: var(--or); }
.sev-title {
  font-family: var(--fd); font-weight: 700;
  font-size: 19px; text-transform: uppercase; letter-spacing: .02em;
  line-height: 1.2; margin-bottom: 12px;
  color: var(--wh);
}
.sev-body {
  font-size: 14.5px; color: rgba(242,240,237,.7); line-height: 1.6;
}
.sev-card--3 {
  background: rgba(232,96,16,.06);
  border-color: rgba(232,96,16,.32);
}
.sev-card--2 {
  background: rgba(212,137,42,.04);
  border-color: rgba(212,137,42,.18);
}

/* ── Sec 5 — Cosa NON fare ── */
.dont-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--bdr);
  border: 1px solid var(--bdr);
  margin-top: 44px;
}
.dont-card {
  background: var(--bg2);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.dont-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid rgba(242,240,237,.18);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(242,240,237,.5);
  margin-top: 2px;
}
.dont-icon svg { width: 14px; height: 14px; }
.dont-text { min-width: 0; }
.dont-title {
  font-family: var(--fd); font-weight: 700;
  font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: 6px; line-height: 1.25;
  color: rgba(242,240,237,.88);
}
.dont-desc { font-size: 13.5px; color: var(--mu); line-height: 1.6; }

/* ── Sec 6 — Quando chiamare (narrative + accent box) ── */
.when-narr {
  margin-top: 36px;
  font-size: 18px;
  color: rgba(242,240,237,.78);
  line-height: 1.78;
  max-width: 780px;
}
.when-narr p + p { margin-top: 18px; }
.when-cta-mini {
  margin-top: 32px;
  padding: 26px 28px;
  background: rgba(232,96,16,.05);
  border: 1px solid rgba(232,96,16,.22);
  border-left: 3px solid var(--or);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.when-cta-mini p {
  font-size: 16px; color: rgba(242,240,237,.92); line-height: 1.55;
  max-width: 540px; font-weight: 500;
}
.when-cta-mini p strong { color: var(--or); font-weight: 700; }

/* ── Sec 7 — Come procediamo (4 simplified steps) ── */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: var(--bdr);
  border: 1px solid var(--bdr);
  gap: 1px;
  margin-top: 44px;
}
.proc-step {
  background: var(--bg2);
  padding: 32px 26px 30px;
}
.proc-num {
  font-family: var(--fd); font-weight: 800; font-size: 44px;
  color: var(--or); line-height: 1; margin-bottom: 16px;
  letter-spacing: -.02em;
}
.proc-title {
  font-family: var(--fd); font-weight: 700;
  font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: 8px; line-height: 1.25;
}
.proc-body { font-size: 13.5px; color: var(--mu); line-height: 1.6; }
.proc-micro {
  margin-top: 26px;
  font-size: 14px;
  color: var(--mu);
  font-style: italic;
  line-height: 1.65;
  max-width: 700px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .recog-block { grid-template-columns: 1fr; gap: 28px; }
  .cause-grid { grid-template-columns: 1fr; }
  .sev-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .dont-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .when-cta-mini { flex-direction: column; align-items: flex-start; }
  .hero-problema .hero-quote { font-size: 16px; }
}

/* ── Variant: badge for breadcrumb category ── */
.cat-badge {
  background: rgba(232,96,16,.08);
  color: var(--or);
  border: 1px solid rgba(232,96,16,.28);
}
