/* ── RTL OVERRIDES — html[dir="rtl"] (Arabic) ──
   Regola: ogni override deve avere selettore html[dir="rtl"] come prefisso.
   Font: DM Sans non supporta arabo — si fa fallback su system Arabic fonts.
*/

html[dir="rtl"] body {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Header */
html[dir="rtl"] header {
  flex-direction: row-reverse;
}

html[dir="rtl"] nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] nav ul {
  flex-direction: row-reverse;
}

/* Logo */
html[dir="rtl"] .logo-wrap {
  align-items: flex-end;
}

/* Hero */
html[dir="rtl"] .hero {
  direction: rtl;
}

html[dir="rtl"] .hero-left {
  border-right: none;
  border-left: 0.5px solid var(--border);
  padding: 80px 48px 80px 64px;
}

html[dir="rtl"] .hero-eyebrow {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-eyebrow::before {
  transform: scaleX(-1);
}

html[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}

/* Section labels */
html[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .section-label::before {
  transform: scaleX(-1);
}

/* Problem grid */
html[dir="rtl"] .problem-grid {
  direction: rtl;
}

html[dir="rtl"] .problem-card {
  direction: rtl;
}

/* Solution grid */
html[dir="rtl"] .solution-grid {
  direction: rtl;
}

/* Case highlight */
html[dir="rtl"] .case-highlight {
  border-left: none;
  border-right: 2px solid var(--green);
}

/* Operators */
html[dir="rtl"] .operators-grid {
  direction: rtl;
}

html[dir="rtl"] .operator-col:first-child {
  border-right: none;
  border-left: 0.5px solid var(--border);
}

html[dir="rtl"] .operator-item {
  flex-direction: row-reverse;
}

/* DPP */
html[dir="rtl"] .dpp-layout {
  direction: rtl;
}

html[dir="rtl"] .dpp-item {
  direction: rtl;
}

/* Footer */
html[dir="rtl"] footer {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-right {
  flex-direction: row-reverse;
}

/* Feature list */
html[dir="rtl"] .feature-list li {
  flex-direction: row-reverse;
}

/* Pricing */
html[dir="rtl"] .pricing-grid {
  direction: rtl;
}

html[dir="rtl"] .pricing-col {
  border-right: none;
  border-left: 0.5px solid var(--border);
}

html[dir="rtl"] .pricing-col:last-child {
  border-left: none;
}

html[dir="rtl"] .pricing-list li {
  flex-direction: row-reverse;
}

/* CTA section */
html[dir="rtl"] .cta-actions {
  flex-direction: row-reverse;
}

/* Node content */
html[dir="rtl"] .node-content {
  direction: rtl;
  text-align: right;
}
