/* RUNTSapi – stili */
:root {
  --ra-navy: #0a2540;
  --ra-blue: #0f5fa8;
  --ra-blue-soft: #e8f1fb;
  --ra-green: #12a36b;
  --ra-green-dark: #0c8556;
  --ra-green-soft: #e6f7ef;
  --ra-bg: #f5f8fb;
  --ra-text: #1d2b3a;
  --ra-muted: #5b6b7c;
  --ra-border: #e2e9f0;
  --ra-radius: 1rem;
  --bs-primary: #0f5fa8;
  --bs-primary-rgb: 15, 95, 168;
  --bs-link-color: #0f5fa8;
  --bs-link-color-rgb: 15, 95, 168;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: #1d2b3a;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: hidden; line-height: 1.65; }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
.fw-800 { font-weight: 800; }
.mono, code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Bottoni */
.btn { font-weight: 600; border-radius: .7rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-accent { background: var(--ra-green); border-color: var(--ra-green); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--ra-green-dark); border-color: var(--ra-green-dark); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--ra-blue); --bs-btn-border-color: var(--ra-blue); --bs-btn-hover-bg: var(--ra-blue); --bs-btn-hover-border-color: var(--ra-blue); --bs-btn-active-bg: var(--ra-blue); }

/* Navbar */
.navbar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; padding-block: .6rem; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(10,37,64,.08); }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--ra-navy); padding: .1rem .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(18,163,107,.3); }
.nav-link { font-weight: 600; color: var(--ra-text); padding: .65rem .8rem !important; border-radius: .5rem; }
.nav-link:hover, .nav-link.active { color: var(--ra-green-dark) !important; }

/* Hero */
.hero {
  padding: 8rem 0 4.5rem;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(18,163,107,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15,95,168,.55), transparent 60%),
    var(--ra-navy);
}
.hero .lead { color: #cfdcea; font-size: 1.1rem; }
.text-gradient { background: linear-gradient(90deg, #5fe0a8, #7cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facts li { font-size: .92rem; color: #cfdcea; }
.hero-facts i { color: #5fe0a8; margin-right: .3rem; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ra-green-dark); background: var(--ra-green-soft); padding: .35rem .75rem; border-radius: 99px; }
.eyebrow-light { color: #9af0cb; background: rgba(95,224,168,.12); }

.code-window { background: #06182b; border: 1px solid rgba(255,255,255,.12); border-radius: var(--ra-radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.code-bar, .panel-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: rgba(255,255,255,.06); }
.code-bar span, .panel-bar span { width: .65rem; height: .65rem; border-radius: 50%; background: #3b526b; }
.code-bar small { margin-left: .6rem; color: #8fa5bd; }
.code-window pre { margin: 0; padding: 1.2rem; font-size: .8rem; line-height: 1.7; color: #d7e3f0; overflow-x: auto; }
.c-k { color: #7cc4ff; } .c-s { color: #8ee6b8; } .c-p { color: #ffd580; } .c-n { color: #ff9e9e; } .c-c { color: #6f859c; }
.code-note { font-size: .78rem; color: #8fa5bd; margin: .6rem 0 0; }

/* Sezioni */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--ra-bg); }
.section-dark { background: var(--ra-navy); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ra-muted); margin-bottom: 0; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 1rem 0; }

.stat-card { height: 100%; background: #fff; border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.stat-card i { font-size: 1.6rem; color: var(--ra-green); }
.stat-card strong { font-size: 1.05rem; }
.stat-card span { font-size: .88rem; color: var(--ra-muted); line-height: 1.45; }

.notice { display: flex; gap: .9rem; background: var(--ra-blue-soft); border-left: 4px solid var(--ra-blue); border-radius: .75rem; padding: 1rem 1.2rem; font-size: .95rem; }
.notice i { color: var(--ra-blue); font-size: 1.3rem; line-height: 1.3; }

.target-card { height: 100%; background: #fff; border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s; }
.target-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,37,64,.08); }
.target-card i { display: inline-grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.4rem; color: var(--ra-blue); background: var(--ra-blue-soft); border-radius: .8rem; margin-bottom: 1rem; }
.target-card h3, .feature h3, .step h3 { font-size: 1.08rem; font-weight: 700; }
.target-card p, .feature p { font-size: .93rem; color: var(--ra-muted); margin: 0; }

.feature { height: 100%; padding: 1.5rem; border-radius: var(--ra-radius); border: 1px solid var(--ra-border); background: #fff; }
.feature-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--ra-green), var(--ra-blue)); border-radius: .8rem; margin-bottom: 1rem; }
.feature-roadmap { border-style: dashed; background: var(--ra-bg); }
.feature-roadmap .feature-icon { background: #8497ab; }
.feature .badge { background: var(--ra-blue-soft); color: var(--ra-blue); font-weight: 600; font-size: .7rem; vertical-align: middle; }

/* Mockup pannello */
.panel-mock { border: 1px solid var(--ra-border); border-radius: var(--ra-radius); overflow: hidden; box-shadow: 0 24px 50px rgba(10,37,64,.1); background: #fff; }
.panel-bar { background: var(--ra-navy); }
.panel-bar small { margin-left: .6rem; color: #a9bdd2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-body { padding: 1.2rem; }
.panel-search { flex: 1 1 220px; color: var(--ra-muted); font-size: .88rem; border: 1px solid var(--ra-border); border-radius: .6rem; padding: .45rem .8rem; }
.panel-mock table { font-size: .88rem; min-width: 720px; }
.panel-mock th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ra-muted); font-weight: 700; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 99px; white-space: nowrap; }
.pill-ok { background: var(--ra-green-soft); color: var(--ra-green-dark); }
.pill-new { background: #fff3d6; color: #8a5a00; }

/* Step */
.step { height: 100%; padding: 1.6rem; border-radius: var(--ra-radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step p { color: #c3d2e2; margin: 0; font-size: .95rem; }
.step-n { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ra-green); font-weight: 800; margin-bottom: 1rem; }

/* Prezzi */
.price-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 1.8rem 1.5rem; }
.price-card h3 { font-weight: 800; font-size: 1.5rem; margin: 0; }
.price-sub { color: var(--ra-muted); margin-bottom: 1rem; }
.price { color: var(--ra-muted); margin-bottom: 1.2rem; }
.price span { font-size: 2.2rem; font-weight: 800; color: var(--ra-navy); letter-spacing: -0.03em; }
.price .price-text { font-size: 1.8rem; }
.price-card ul { flex: 1; margin-bottom: 1.5rem; }
.price-card li { display: flex; gap: .55rem; font-size: .92rem; padding: .35rem 0; }
.price-card li small { color: var(--ra-muted); }
.price-card li i { color: var(--ra-green); font-size: 1.05rem; }
.price-featured { border: 2px solid var(--ra-green); box-shadow: 0 20px 40px rgba(18,163,107,.15); }
.price-flag { position: absolute; top: -0.8rem; left: 1.5rem; background: var(--ra-green); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 99px; }

/* FAQ */
.accordion { max-width: 820px; --bs-accordion-border-color: var(--ra-border); --bs-accordion-active-bg: var(--ra-green-soft); --bs-accordion-active-color: var(--ra-navy); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(18,163,107,.25); }
.accordion-item { border-radius: .8rem !important; overflow: hidden; margin-bottom: .7rem; border: 1px solid var(--ra-border) !important; }
.accordion-button { font-weight: 700; }

/* Contatti */
.contact-form { background: #fff; border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 1.5rem; box-shadow: 0 14px 30px rgba(10,37,64,.06); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select { padding: .7rem .9rem; border-radius: .6rem; border-color: #cfd9e3; }
.form-control:focus, .form-select:focus { border-color: var(--ra-green); box-shadow: 0 0 0 .2rem rgba(18,163,107,.2); }
.contact-list li { padding: .4rem 0; }
.contact-list i { color: var(--ra-green); margin-right: .5rem; }

/* Footer */
.footer { background: var(--ra-navy); color: #b9c9da; padding: 3.5rem 0 2rem; font-size: .93rem; }
.footer a { color: #dbe6f1; text-decoration: none; display: inline-block; padding: .25rem 0; }
.footer a:hover { color: #5fe0a8; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 700; margin-bottom: .8rem; }
.footer hr { border-color: rgba(255,255,255,.15); margin: 2rem 0 1.5rem; opacity: 1; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--ra-green); color: #fff; font-size: 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; text-decoration: none; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--ra-green-dark); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding: .5rem 0 1rem; }
  .hero { padding: 6.5rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 2.1rem; }
  .code-window pre { font-size: .72rem; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .target-card { transition: none; }
}
