/* ==========================================================================
   Opscadia — remote-access.css
   Pagina "Accesso remoto ai PLC via VPN Teltonika".
   Impianto volutamente DIVERSO da connect.html: layout tipo documentazione
   tecnica — hero split, indice laterale sticky, sezioni numerate allineate a
   sinistra, topologia verticale, tabella comparativa modelli, stepper.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --purple:       #4f46e5;
  --purple-light: #6366f1;
  --indigo:       #4f46e5;
  --text:         #0f0e1a;
  --text-muted:   rgba(15,14,26,0.55);
  --text-soft:    rgba(15,14,26,0.38);
  --surface:      rgba(0,0,0,0.03);
  --border:       rgba(0,0,0,0.09);
  --border-strong:rgba(0,0,0,0.14);
  --amber:        #b45309;
  --amber-bg:     #fff7ed;
  --amber-border: rgba(180,83,9,0.28);
  --green:        #15803d;
  --green-bg:     rgba(34,197,94,0.08);
  --green-border: rgba(34,197,94,0.25);
  --ink:          #12111c;
  --container:    1220px;
}

html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: #f7f7f9;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sfondo di pagina: immagine fissa a tutto schermo + velo chiaro per tenere
   leggibili testi e card. Layer separato (non background-attachment: fixed su
   body) perché su iOS lo scroll con attachment fixed è a scatti. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(247,247,249,0.55) 0%, rgba(247,247,249,0.78) 55%, rgba(247,247,249,0.9) 100%),
    url("../images/remote-access/Sfondo-remote-access.avif");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

main a { color: var(--purple); text-decoration: none; }
main a:hover { text-decoration: underline; }
button { font: inherit; }

/* ---------- Header light-theme overrides ---------- */
.site-header__inner {
  background: rgba(247,247,249,0.75) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled .site-header__inner {
  background: rgba(247,247,249,0.9) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08) !important;
}
.site-header__inner .brand__name,
.site-header__inner .nav-link { color: var(--text) !important; }
.site-header__inner .btn--ghost {
  color: var(--text) !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.site-header__inner .btn--ghost:hover { background: rgba(0,0,0,0.05) !important; }
.nav-link:hover { color: var(--text) !important; background: rgba(0,0,0,0.05) !important; }

/* ---------- Layout base ---------- */
.ra-main { padding: 6rem 1.25rem 1.5rem; }
.ra-wrap { max-width: var(--container); margin: 0 auto; }

/* ==========================================================================
   HERO — split asimmetrico, testo a sinistra + pannello topologia a destra
   ========================================================================== */
.ra-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 0.5rem 0 2.5rem;
}
@media (max-width: 900px) {
  .ra-hero { grid-template-columns: 1fr; }
}

.ra-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  background: rgba(79,70,229,0.07);
  border: 1px solid rgba(79,70,229,0.2);
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
}
.ra-hero__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 1rem 0 0.85rem;
  text-wrap: balance;
}
/* i gruppi di parole vanno a capo interi: mai spezzare "sito-a-sito" */
.ra-hero__title .ra-nb { display: inline-block; }
.ra-hero__accent { color: var(--indigo); }
.ra-hero__sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0;
}
.ra-hero__sub strong { color: var(--text); font-weight: 600; }

.ra-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.ra-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 9999px;
  padding: 0.62rem 1.25rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ra-hero__cta:hover {
  text-decoration: none;
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79,70,229,0.25);
}
.ra-hero__cta--ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
}
.ra-hero__cta--ghost:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

/* Pannello topologia dell'hero: mini-schema verticale su fondo scuro */
.ra-topo {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background:
    linear-gradient(160deg, rgba(79,70,229,0.22) 0%, transparent 55%),
    var(--ink);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 30px 70px rgba(15,14,26,0.28);
  color: #fff;
  overflow: hidden;
}
.ra-topo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.ra-topo__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.1rem;
}
.ra-topo__dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.55);
  animation: ra-pulse 2.4s ease-out infinite;
}
@keyframes ra-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.ra-topo__rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* il blocco si restringe al contenuto e si centra nella card,
     mantenendo icone e connettori allineati tra loro */
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.ra-topo__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem 0;
}
.ra-topo__ic {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c7d2fe;
}
.ra-topo__name { font-size: 0.9rem; font-weight: 600; margin: 0; }
.ra-topo__meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0.1rem 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.ra-topo__link {
  /* i connettori sono figli flex di .ra-topo__rows, non celle di griglia:
     vanno centrati a mano sotto la colonna icone (2.5rem) */
  align-self: flex-start;
  margin-left: calc(1.25rem - 1px);
  width: 2px;
  height: 1.5rem;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(199,210,254,0.55), rgba(199,210,254,0.12));
}
.ra-topo__link--tunnel {
  background: repeating-linear-gradient(
    180deg,
    rgba(52,211,153,0.85) 0 5px,
    transparent 5px 10px
  );
  animation: ra-flow 0.9s linear infinite;
}
@keyframes ra-flow {
  from { background-position: 0 0; }
  to   { background-position: 0 10px; }
}
.ra-topo__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: rgba(52,211,153,0.14);
  border: 1px solid rgba(52,211,153,0.3);
  color: #6ee7b7;
  margin-left: 0.4rem;
  vertical-align: 1px;
}

/* ==========================================================================
   CORPO — indice sticky a sinistra, contenuto a destra
   ========================================================================== */
.ra-body {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 2.75rem;
}
@media (max-width: 980px) {
  .ra-body { grid-template-columns: 1fr; gap: 1.75rem; }
}

.ra-toc { position: sticky; top: 6.5rem; }
@media (max-width: 980px) {
  .ra-toc {
    position: static;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
  }
}
.ra-toc__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
}
.ra-toc__list { list-style: none; margin: 0; padding: 0; }
.ra-toc__list li { border-left: 2px solid var(--border); }
.ra-toc__list a {
  display: block;
  padding: 0.42rem 0 0.42rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}
.ra-toc__list a:hover { text-decoration: none; color: var(--text); transform: translateX(2px); }
.ra-toc__list li.is-active { border-left-color: var(--purple); }
.ra-toc__list li.is-active a { color: var(--purple); font-weight: 600; }
@media (max-width: 980px) {
  .ra-toc__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .ra-toc__list li { border-left: 0; }
  .ra-toc__list a {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
  }
  .ra-toc__list li.is-active a { border-color: var(--purple); }
}

.ra-content { min-width: 0; }

/* ---------- Sezione: intestazione numerata, allineata a sinistra ---------- */
.ra-section { scroll-margin-top: 6.5rem; padding-bottom: 3.25rem; }
.ra-section + .ra-section { border-top: 1px dashed var(--border); padding-top: 2.75rem; }
.ra-section__num {
  display: block;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.ra-section__title {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  text-align: left;
}
.ra-section__lead {
  color: var(--text-muted);
  margin: 0 0 1.6rem;
  max-width: 62ch;
  font-size: 0.95rem;
}
.ra-section__lead strong { color: var(--text); font-weight: 600; }

/* ---------- Scenari: righe numerate, non card ---------- */
.ra-cases { list-style: none; margin: 0; padding: 0; }
.ra-cases li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}
.ra-cases li:first-child { border-top: 1px solid var(--border); }
.ra-cases b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
}
.ra-cases h3 { margin: 0 0 0.15rem; font-size: 0.975rem; font-weight: 600; }
.ra-cases p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Topologia verticale (Come funziona) ---------- */
.ra-chain { position: relative; margin: 0; padding: 0 0 0 1.75rem; list-style: none; }
.ra-chain::before {
  content: '';
  position: absolute;
  left: 0.44rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), rgba(79,70,229,0.15));
  border-radius: 2px;
}
.ra-chain__step { position: relative; padding: 0 0 1.4rem; }
.ra-chain__step:last-child { padding-bottom: 0; }
.ra-chain__step::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid var(--purple);
  box-shadow: 0 0 0 4px rgba(247,247,249,0.85);
}
.ra-chain__card {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ra-chain__card:hover {
  border-color: rgba(79,70,229,0.3);
  box-shadow: 0 12px 30px rgba(99,102,241,0.1);
}
.ra-chain__ic {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(79,70,229,0.07);
  color: var(--purple);
}
.ra-chain__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.ra-chain__head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.ra-chain__zone {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
}
.ra-chain__card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.ra-chain__card code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
}
@media (max-width: 560px) {
  .ra-chain__card { grid-template-columns: 1fr; }
  .ra-chain__ic { display: none; }
}

/* ---------- Architettura NAT: due opzioni affiancate con separatore ---------- */
.ra-note {
  display: flex;
  gap: 0.75rem;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 0.6rem;
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.ra-note svg { flex: none; color: var(--amber); margin-top: 0.15rem; }
.ra-note strong { color: var(--amber); }

.ra-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .ra-options { grid-template-columns: 1fr; }
}
.ra-options__or {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
}
.ra-options__or::before,
.ra-options__or::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--border);
}
@media (max-width: 760px) {
  .ra-options__or { flex-direction: row; }
  .ra-options__or::before,
  .ra-options__or::after { width: auto; height: 1px; }
}
.ra-option {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.25rem 1.35rem;
}
.ra-option--pick {
  border-color: rgba(79,70,229,0.35);
  box-shadow: 0 16px 40px rgba(79,70,229,0.1);
}
.ra-option__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  margin-bottom: 0.6rem;
}
.ra-option--pick .ra-option__tag { color: var(--purple); background: rgba(79,70,229,0.09); }
.ra-option h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.ra-option p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Motivi: righe a due colonne, stile scheda tecnica ---------- */
.ra-specs { border-top: 1px solid var(--border); }
.ra-spec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease;
}
.ra-spec:hover { background: rgba(79,70,229,0.025); }
@media (max-width: 620px) {
  .ra-spec { grid-template-columns: 1fr; gap: 0.3rem; }
}
.ra-spec__key {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.925rem;
  font-weight: 600;
}
.ra-spec__key svg { flex: none; color: var(--purple); }
.ra-spec__val { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Modelli: tabella comparativa ---------- */
.ra-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ra-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.ra-table th,
.ra-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ra-table tbody tr:last-child td { border-bottom: 0; }
.ra-table thead th {
  background: rgba(0,0,0,0.02);
  vertical-align: bottom;
}
.ra-table thead th:not(:first-child) { border-left: 1px solid var(--border); }
.ra-table tbody td:not(:first-child) { border-left: 1px solid var(--border); }
.ra-table__rowkey {
  font-weight: 600;
  color: var(--text);
  width: 190px;
  background: rgba(0,0,0,0.015);
}
.ra-table__img {
  display: block;
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 0 0.65rem;
}
.ra-table__model { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.ra-table__badge {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  color: var(--purple);
  background: rgba(79,70,229,0.08);
}
.ra-table td svg { color: var(--green); vertical-align: -2px; margin-right: 0.35rem; }
.ra-table td .ra-no { color: var(--text-soft); }
.ra-table__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.ra-table__cta:hover { text-decoration: none; background: var(--purple); color: #fff; }
.ra-catalog {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.ra-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 70ch;
}

/* ---------- Configurazione: stepper verticale numerato ---------- */
.ra-steps { counter-reset: ra-step; margin: 0; padding: 0; list-style: none; }
.ra-step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1.15rem;
  padding: 0 0 1.6rem;
  position: relative;
}
.ra-step:last-child { padding-bottom: 0; }
.ra-step::before {
  counter-increment: ra-step;
  content: counter(ra-step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--purple);
  background: #fff;
  border: 1px solid rgba(79,70,229,0.3);
}
.ra-step::after {
  content: '';
  position: absolute;
  left: 1.3rem;
  top: 3.1rem;
  bottom: 0.9rem;
  width: 1px;
  background: var(--border);
}
.ra-step:last-child::after { display: none; }
.ra-step__body { padding-top: 0.15rem; }
.ra-step__body h3 { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 600; }
.ra-step__body p { margin: 0 0 0.6rem; font-size: 0.925rem; color: var(--text-muted); }
.ra-step__body p:last-child { margin-bottom: 0; }
.ra-step__body strong { color: var(--text); font-weight: 600; }
.ra-step__body ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.9rem; }
.ra-step__body li { margin: 0.25rem 0; }
.ra-step__body code,
.ra-note code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
}
.ra-path {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  margin: 0.15rem 0 0.6rem;
}
.ra-tip {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 0.6rem;
  font-size: 0.9rem;
}
.ra-tip b { color: var(--green); }
.ra-tip p { margin: 0.35rem 0 0; color: var(--text-muted); }

/* ---------- Crosslink verso Connect ---------- */
.ra-cross {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
  margin-top: 0.5rem;
}
.ra-cross h3 { margin: 0 0 0.2rem; font-size: 1rem; font-weight: 600; }
.ra-cross p { margin: 0; font-size: 0.9rem; color: var(--text-muted); max-width: 56ch; }
.ra-cross a.ra-hero__cta { flex: none; }

/* ---------- FAQ (accordion condiviso con connect.html/pricing.html) ---------- */
.faq__list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  padding: 1.125rem 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.45;
  list-style: none;
  user-select: none;
}
.faq__q::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(124,58,237,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: transform 0.22s ease;
  opacity: 0.7;
}
.faq__item.is-open .faq__q::after { transform: rotate(180deg); opacity: 1; }
.faq__item.is-open .faq__q { color: var(--purple); }

@keyframes faq-open {
  from { opacity: 0; filter: blur(8px); transform: translateY(-5px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
@keyframes faq-close {
  from { opacity: 1; filter: blur(0);   transform: translateY(0); }
  to   { opacity: 0; filter: blur(8px); transform: translateY(-5px); }
}
.faq__a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  padding: 0 0 1.25rem;
  display: none;
}
.faq__item.is-open .faq__a {
  display: block;
  animation: faq-open 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.faq__item.is-closing .faq__a {
  display: block;
  animation: faq-close 0.22s ease forwards;
}
.faq__a a { color: var(--purple); text-decoration: none; }
.faq__a a:hover { text-decoration: underline; }
.faq__a strong { color: var(--text); font-weight: 600; }
.faq__a code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
}

/* ---------- Back link ---------- */
.ra-back { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ra-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.ra-back a:hover { text-decoration: none; color: var(--purple); }

/* ---------- Footer ----------
   .final-footer è position:absolute in styles.css (pensato per la scena
   finale della home): su una pagina normale va riportato nel flusso. */
.final-footer {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.final-footer__sep { opacity: 0.5; }
.final-footer__link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.final-footer__link:hover { color: var(--text); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ra-topo__dot,
  .ra-topo__link--tunnel { animation: none; }
}
