/**
 * STRAVIA — Marketing site
 * Design system dedicato al sito pubblico (prefisso .mk-)
 */

:root {
  --mk-navy-950: #070f24;
  --mk-navy-900: #0b1b3a;
  --mk-navy-800: #10244d;
  --mk-blue: #2563eb;
  --mk-blue-dark: #1d4ed8;
  --mk-sky: #38bdf8;
  --mk-ink: #0f172a;
  --mk-muted: #5b6579;
  --mk-line: #e6eaf2;
  --mk-surface: #f6f8fc;
  --mk-radius: 1rem;
  --mk-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --mk-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.mk-body {
  font-family: var(--mk-font-body);
  color: var(--mk-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.mk-body h1, .mk-body h2, .mk-body h3, .mk-body h4, .mk-body h5 {
  font-family: var(--mk-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mk-ink);
}

/* ============ NAVBAR ============ */
.mk-navbar {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mk-line);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.mk-brand {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--mk-ink) !important;
}

.mk-brand-logo { height: 34px; width: auto; border-radius: .5rem; }

.mk-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: .6rem;
  background: linear-gradient(135deg, var(--mk-blue), var(--mk-navy-800));
  color: #fff;
  font-size: .85rem;
}

.mk-nav-links .nav-link {
  color: #33405c;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: .5rem;
  transition: color .15s ease, background .15s ease;
}

.mk-nav-links .nav-link:hover { color: var(--mk-blue); background: #eef3fe; }

/* ============ BOTTONI ============ */
.mk-btn-primary {
  background: linear-gradient(135deg, var(--mk-blue), var(--mk-blue-dark));
  color: #fff !important;
  font-weight: 600;
  border: 0;
  border-radius: .65rem;
  padding: .55rem 1.25rem;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.mk-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, .65);
}

.mk-btn-ghost {
  color: #33405c;
  font-weight: 600;
  border-radius: .65rem;
  padding: .55rem 1rem;
}

.mk-btn-ghost:hover { color: var(--mk-blue); background: #eef3fe; }

.mk-btn-outline {
  color: var(--mk-blue);
  border: 1.5px solid #c4d4f8;
  border-radius: .65rem;
  font-weight: 600;
  padding: .55rem 1.25rem;
  transition: all .15s ease;
}

.mk-btn-outline:hover { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; }

.mk-btn-outline-light {
  color: #dbe6ff;
  border: 1.5px solid rgba(219, 230, 255, .35);
  border-radius: .65rem;
  font-weight: 600;
  transition: all .15s ease;
}

.mk-btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(219, 230, 255, .6); }

.mk-btn-light {
  background: #fff;
  color: var(--mk-navy-900) !important;
  font-weight: 700;
  border-radius: .65rem;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mk-btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }

/* ============ HERO ============ */
.mk-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mk-navy-950) 0%, var(--mk-navy-900) 45%, #132a5e 100%);
  padding: 5.5rem 0 6rem;
}

.mk-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 82% 18%, rgba(56, 189, 248, .16), transparent 65%),
    radial-gradient(700px 460px at 12% 88%, rgba(37, 99, 235, .28), transparent 65%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  pointer-events: none;
}

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9fc3ff;
  background: rgba(37, 99, 235, .18);
  border: 1px solid rgba(126, 168, 255, .3);
  border-radius: 2rem;
  padding: .4rem 1rem;
  margin-bottom: 1.25rem;
}

.mk-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mk-sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .25);
}

.mk-hero .mk-hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.mk-grad {
  background: linear-gradient(90deg, var(--mk-sky), #7ea8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mk-hero-lead {
  color: #b7c5e4;
  font-size: 1.15rem;
  line-height: 1.65;
  margin-top: 1.1rem;
  max-width: 34rem;
}

.mk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.75rem;
}

.mk-hero-note {
  color: #8fa3cc;
  font-size: .9rem;
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.mk-hero-note i { color: #4ade80; }

/* Mockup dashboard */
.mk-hero-visual { position: relative; max-width: 590px; margin: 0 auto; }

.mk-window {
  background: #0d1830;
  border: 1px solid rgba(126, 168, 255, .22);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

.mk-window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(126, 168, 255, .15);
}

.mk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mk-dot-r { background: #f87171; }
.mk-dot-y { background: #fbbf24; }
.mk-dot-g { background: #34d399; }

.mk-window-url {
  margin-left: .75rem;
  font-size: .72rem;
  color: #8fa3cc;
  background: rgba(255, 255, 255, .06);
  border-radius: .4rem;
  padding: .2rem .7rem;
}

.mk-window-body { display: flex; min-height: 320px; }

.mk-mock-side {
  width: 56px;
  flex: 0 0 56px;
  background: rgba(255, 255, 255, .03);
  border-right: 1px solid rgba(126, 168, 255, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: .9rem 0;
}

.mk-mock-logo {
  width: 26px;
  height: 26px;
  border-radius: .5rem;
  background: linear-gradient(135deg, var(--mk-sky), var(--mk-blue));
  margin-bottom: .35rem;
}

.mk-mock-item {
  width: 24px;
  height: 24px;
  border-radius: .45rem;
  background: rgba(255, 255, 255, .08);
}

.mk-mock-item.active { background: rgba(56, 189, 248, .45); }

.mk-mock-main { flex: 1; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }

.mk-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }

.mk-kpi {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(126, 168, 255, .14);
  border-radius: .7rem;
  padding: .65rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.mk-kpi-label { font-size: .62rem; color: #8fa3cc; text-transform: uppercase; letter-spacing: .05em; }
.mk-kpi-value { font-family: var(--mk-font-display); font-size: 1.05rem; font-weight: 700; color: #fff; }
.mk-kpi-trend { font-size: .62rem; font-weight: 600; }
.mk-kpi-trend.up { color: #4ade80; }

.mk-mock-chart {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(126, 168, 255, .12);
  border-radius: .7rem;
  padding: .85rem .9rem .7rem;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.mk-bars { display: flex; align-items: flex-end; gap: .5rem; width: 100%; height: 84px; }

.mk-bars span {
  flex: 1;
  border-radius: .3rem .3rem 0 0;
  background: linear-gradient(180deg, var(--mk-sky), var(--mk-blue));
  opacity: .9;
  min-height: 8px;
}

.mk-bars span:nth-child(odd) { opacity: .55; }

.mk-mock-rows { display: flex; flex-direction: column; gap: .5rem; }

.mk-mock-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(126, 168, 255, .1);
  border-radius: .6rem;
  padding: .5rem .7rem;
}

.mk-chip { width: 22px; height: 22px; border-radius: .4rem; flex: 0 0 22px; }
.mk-chip-blue { background: rgba(37, 99, 235, .8); }
.mk-chip-cyan { background: rgba(8, 145, 178, .8); }
.mk-chip-amber { background: rgba(217, 119, 6, .8); }

.mk-line {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
}

.mk-line.w-25 { width: 25%; } .mk-line.w-30 { width: 30%; } .mk-line.w-40 { width: 40%; }
.mk-line.w-45 { width: 45%; } .mk-line.w-50 { width: 50%; }

.mk-pill {
  margin-left: auto;
  font-size: .62rem;
  font-weight: 600;
  border-radius: 2rem;
  padding: .18rem .6rem;
  white-space: nowrap;
}

.mk-pill-green { background: rgba(52, 211, 153, .16); color: #4ade80; }
.mk-pill-amber { background: rgba(251, 191, 36, .16); color: #fbbf24; }

/* Card flottanti */
.mk-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border-radius: .8rem;
  padding: .65rem .9rem;
  box-shadow: 0 20px 40px -12px rgba(2, 12, 40, .45);
  animation: mk-float 5s ease-in-out infinite;
}

.mk-float strong { display: block; font-size: .8rem; color: var(--mk-ink); }
.mk-float small { display: block; font-size: .68rem; color: var(--mk-muted); }

.mk-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: .6rem;
  background: #e5edff;
  color: var(--mk-blue);
  font-size: .85rem;
}

.mk-float-icon-green { background: #d9f7ea; color: #059669; }

.mk-float-1 { top: 38%; left: -1.5rem; }
.mk-float-2 { bottom: -1.5rem; right: -0.5rem; animation-delay: 2.5s; }

@keyframes mk-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-float { animation: none; }
}

/* ============ STRIP ============ */
.mk-strip { background: #fff; border-bottom: 1px solid var(--mk-line); padding: 1.6rem 0; }

.mk-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: #33405c;
}

.mk-strip-item i { font-size: 1.3rem; color: var(--mk-blue); }

/* ============ SEZIONI ============ */
.mk-section { padding: 5.5rem 0; }
.mk-section-alt { background: var(--mk-surface); }

.mk-section-head { max-width: 44rem; margin: 0 auto 3.25rem; }

.mk-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }

.mk-section-head p { color: var(--mk-muted); font-size: 1.05rem; margin-top: .85rem; }

.mk-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mk-blue);
  margin-bottom: .75rem;
}

.mk-kicker-light { color: var(--mk-sky); }

/* Card funzionalità */
.mk-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  padding: 1.75rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mk-card:hover {
  transform: translateY(-4px);
  border-color: #cdd9ef;
  box-shadow: 0 24px 48px -24px rgba(11, 27, 58, .25);
}

.mk-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: .85rem;
  font-size: 1.15rem;
  color: var(--ic, var(--mk-blue));
  background: #eef3fe;
  background: color-mix(in srgb, var(--ic, var(--mk-blue)) 12%, #fff);
  margin-bottom: 1.1rem;
}

.mk-card h5 { font-size: 1.08rem; margin-bottom: .5rem; }

.mk-card p { color: var(--mk-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 0; }

/* Passi */
.mk-step {
  height: 100%;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  padding: 2rem 1.6rem;
  text-align: center;
}

.mk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mk-blue), var(--mk-blue-dark));
  color: #fff;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .5);
}

.mk-step h5 { font-size: 1.05rem; }

.mk-step p { color: var(--mk-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 0; }

.mk-step a { color: var(--mk-blue); font-weight: 600; text-decoration: none; }
.mk-step a:hover { text-decoration: underline; }

/* ============ SEZIONE DARK ============ */
.mk-dark {
  background: linear-gradient(160deg, var(--mk-navy-950), var(--mk-navy-900) 60%, #10244d);
  position: relative;
  overflow: hidden;
}

.mk-dark-lead { color: #b7c5e4; font-size: 1.05rem; line-height: 1.65; }

.mk-checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }

.mk-checklist li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  color: #dbe6ff;
  font-size: .98rem;
  padding: .45rem 0;
}

.mk-checklist i {
  color: #4ade80;
  background: rgba(74, 222, 128, .12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  position: relative;
  top: .2rem;
}

/* Visual tenants */
.mk-tenants { position: relative; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.mk-tenant {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(126, 168, 255, .18);
  border-radius: .9rem;
  padding: 1rem 1.15rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.mk-tenant:nth-child(2) { margin-left: 2rem; }
.mk-tenant:nth-child(3) { margin-left: 4rem; }

.mk-tenant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: .7rem;
  background: var(--tc, var(--mk-blue));
  color: #fff;
  font-family: var(--mk-font-display);
  font-weight: 800;
}

.mk-tenant-lines { flex: 1; display: flex; flex-direction: column; gap: .45rem; }

.mk-tenant .mk-pill { font-size: .7rem; }

.mk-tenant-shield {
  position: absolute;
  top: -1.4rem;
  right: .5rem;
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mk-sky), var(--mk-blue));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 18px 36px -12px rgba(56, 189, 248, .55);
}

/* ============ CTA FINALE ============ */
.mk-cta {
  background: linear-gradient(135deg, var(--mk-blue) 0%, var(--mk-navy-900) 90%);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.mk-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 85% 15%, rgba(56, 189, 248, .3), transparent 65%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  pointer-events: none;
}

.mk-cta > * { position: relative; }

.mk-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }

.mk-cta p { color: #c3d2f0; font-size: 1.08rem; max-width: 36rem; margin: .85rem auto 0; }

/* ============ FOOTER ============ */
.mk-footer { background: var(--mk-navy-950); color: #8fa3cc; }

.mk-footer-brand {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.mk-footer-desc { font-size: .92rem; line-height: 1.65; color: #8fa3cc; }

.mk-footer-title {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
}

.mk-footer-links { list-style: none; padding: 0; margin: 0; }

.mk-footer-links li { padding: .3rem 0; }

.mk-footer-links a { color: #8fa3cc; text-decoration: none; font-size: .92rem; transition: color .15s ease; }

.mk-footer-links a:hover { color: #fff; }

.mk-footer-bottom { border-top: 1px solid rgba(126, 168, 255, .14); font-size: .85rem; }

.mk-footer-bottom a { color: #b7c5e4; text-decoration: none; }
.mk-footer-bottom a:hover { color: #fff; }

/* ============ GUIDE: screenshot frame (usato dalle pagine /guide) ============ */
.screenshot-frame {
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.screenshot-frame img { display: block; width: 100%; height: auto; }

.screenshot-frame figcaption {
  padding: .5rem .75rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-size: .875rem;
  color: #6c757d;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .mk-nav-cta { padding: .75rem 0 .25rem; }
  .mk-hero { padding: 3.5rem 0 4rem; }
  .mk-section { padding: 3.75rem 0; }
  .mk-tenant:nth-child(2), .mk-tenant:nth-child(3) { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .mk-float { display: none; }
  .mk-mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mk-kpi:last-child { display: none; }
  .mk-hero-actions .btn { width: 100%; }
  .mk-cta { padding: 3rem 1.25rem; }
}
