/* ============================================================
   MST MANTOVANI SPECIAL TECHNOLOGIES — Custom CSS
   Design: Dark Tech Cinematic / Industrial HUD
   Palette: #2a2e36 (charcoal scuro) · #363b44 (mid) · #c8a84b (gold) · #f0f2f4 (light)
   Font: Barlow Condensed (display) · Barlow (body) · JetBrains Mono (tech)
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mst-dark {
  background-color: #2a2e36;
  color: #f0f2f4;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(200, 168, 75, 0.25);
  color: #f0f2f4;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #2a2e36; }
::-webkit-scrollbar-thumb { background: rgba(200,168,75,0.3); }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,75,0.6); }

/* ---- Typography helpers ---- */
.mst-gold  { color: #c8a84b !important; }
.mst-light { color: #f0f2f4; }
.mst-muted { color: rgba(168,178,188,0.75); }
.mst-mono  { font-family: 'JetBrains Mono', monospace; }

.mst-lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.75;
  color: #f0f2f4;
}
.mst-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(168,178,188,0.85);
}

/* ---- Navbar ---- */
.mst-navbar {
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  padding: 0.75rem 0;
}
.mst-navbar.scrolled {
  background: rgba(42,46,54,0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Logo */
.mst-logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Navbar logo */
.mst-navbar-logo {
  height: 44px;
  width: auto;
  filter: invert(1);
  transition: opacity 0.3s;
}
.mst-logo-brand:hover .mst-navbar-logo {
  opacity: 0.85;
}

/* Loader logo */
.mst-loader-logo {
  height: 72px;
  width: auto;
  filter: invert(1) drop-shadow(0 0 24px rgba(200,168,75,0.35));
}

/* Footer logo */
.mst-footer-logo {
  height: 48px;
  width: auto;
  filter: invert(1);
}

/* Logo text */
.mst-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-left: 0.75rem;
}
.mst-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #f0f2f4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mst-logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #c8a84b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Nav links */
.mst-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168,178,188,0.85) !important;
  padding: 0.4rem 0.6rem !important;
  position: relative;
  transition: color 0.2s;
}
.mst-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: #c8a84b;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.mst-nav-link:hover { color: #c8a84b !important; }
.mst-nav-link:hover::after { transform: scaleX(1); }

/* Toggler mobile */
.mst-toggler {
  border: 1px solid rgba(200,168,75,0.4);
  padding: 0.35rem 0.6rem;
  background: transparent;
  color: #f0f2f4;
  font-size: 1.3rem;
  line-height: 1;
}
.mst-toggler:focus { box-shadow: none; }

/* Buttons */
.mst-btn-gold {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #c8a84b;
  color: #2a2e36;
  border: none;
  border-radius: 0;
  padding: 0.75rem 2rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.mst-btn-gold:hover {
  background: #d4b85a;
  color: #2a2e36;
  box-shadow: 0 0 28px rgba(200,168,75,0.35);
}
.mst-btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: #f0f2f4;
  border: 1px solid rgba(240,242,244,0.3);
  border-radius: 0;
  padding: 0.75rem 2rem;
  transition: border-color 0.3s, color 0.3s;
}
.mst-btn-ghost:hover {
  border-color: #c8a84b;
  color: #c8a84b;
}
.mst-btn-outline-gold {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: #c8a84b;
  border: 1px solid #c8a84b;
  border-radius: 0;
  padding: 0.6rem 1.5rem;
  transition: background 0.3s, color 0.3s;
}
.mst-btn-outline-gold:hover {
  background: #c8a84b;
  color: #2a2e36;
}

/* ---- Hero ---- */
.mst-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #2a2e36;
}
.mst-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}
.mst-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
  /* desaturazione + contrasto per coerenza con la palette dark/gold */
  filter: grayscale(0.35) contrast(1.05) brightness(0.85);
  opacity: 0;
  animation: mstHeroVideoIn 1.4s ease 0.2s forwards;
}
@keyframes mstHeroVideoIn {
  to { opacity: 1; }
}
.mst-hero-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #2a2e36 28%, rgba(42,46,54,0.78) 55%, rgba(42,46,54,0.35) 80%, rgba(42,46,54,0.15) 100%);
  z-index: 1;
}
.mst-hero-overlay-tb {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(42,46,54,0.45) 0%, rgba(42,46,54,0.15) 40%, #2a2e36 100%);
  z-index: 1;
}
.mst-hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .mst-hero-video { display: none; }
}
@media (max-width: 768px) {
  /* su mobile la connessione è spesso lenta: niente video, resta l'immagine */
  .mst-hero-video { display: none; }
}
.mst-hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* HUD corners */
.mst-hud-tl {
  position: absolute;
  top: 5.5rem;
  left: 1.5rem;
  width: 60px;
  height: 60px;
  border-top: 2px solid rgba(200,168,75,0.35);
  border-left: 2px solid rgba(200,168,75,0.35);
  pointer-events: none;
}
.mst-hud-br {
  position: absolute;
  bottom: 4rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid rgba(200,168,75,0.35);
  border-right: 2px solid rgba(200,168,75,0.35);
  pointer-events: none;
}
.mst-hud-tl-sm {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-top: 1.5px solid rgba(200,168,75,0.55);
  border-left: 1.5px solid rgba(200,168,75,0.55);
  pointer-events: none;
}
.mst-hud-br-sm {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-bottom: 1.5px solid rgba(200,168,75,0.55);
  border-right: 1.5px solid rgba(200,168,75,0.55);
  pointer-events: none;
}

/* Hero content */
.mst-hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mst-line-gold {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #c8a84b;
  flex-shrink: 0;
}
.mst-hero-label .mst-mono {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8a84b;
}
.mst-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.95;
  color: #f0f2f4;
  letter-spacing: -0.01em;
}
.mst-rotating-word {
  display: inline-block;
  transition: opacity 0.35s ease;
}
.mst-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(168,178,188,0.9);
  line-height: 1.7;
  max-width: 500px;
}
.mst-hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.mst-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mst-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  color: #c8a84b;
  line-height: 1;
}
.mst-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168,178,188,0.55);
}

/* Scroll down */
.mst-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(168,178,188,0.5);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mst-scroll-down i {
  font-size: 1rem;
  animation: bounce 1.8s infinite;
}
.mst-scroll-down:hover { color: #c8a84b; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---- Stats Bar ---- */
.mst-stats-bar {
  background: #363b44;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0;
}
.mst-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  position: relative;
}
@media (min-width: 768px) {
  .mst-stat-item { align-items: flex-start; text-align: left; padding-left: 2rem; }
  .mst-stat-item + .mst-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3rem;
    background: rgba(255,255,255,0.08);
  }
}
.mst-counter {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1;
  display: block;
}
.mst-stat-item-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-top: 0.3rem;
  display: block;
}
.mst-stat-item-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(168,178,188,0.45);
  margin-top: 0.15rem;
  display: block;
}

/* ---- Sections ---- */
.mst-section { padding: 5rem 0 6rem; overflow: hidden; position: relative; }
.mst-section-dark { background: #2a2e36; }
.mst-section-mid  { background: #363b44; }

/* Grid background */
.mst-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,1) 1px, transparent 1px);
  background-size: 65px 65px;
  opacity: 0.025;
  pointer-events: none;
}
.mst-gold-accent-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to left, rgba(200,168,75,0.03), transparent);
  pointer-events: none;
}

/* Section header */
.mst-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mst-section-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,168,75,0.45);
}
.mst-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.mst-section-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.mst-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  color: #f0f2f4;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.mst-gold-bar {
  width: 3rem;
  height: 2px;
  background: #c8a84b;
}

/* ---- Value cards ---- */
.mst-value-card {
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, background 0.3s;
}
.mst-value-card:hover {
  border-color: rgba(200,168,75,0.35);
  background: rgba(255,255,255,0.04);
}
.mst-value-card i { font-size: 1.1rem; display: block; }
.mst-value-card h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-bottom: 0.4rem;
}
.mst-value-card p {
  font-size: 0.85rem;
  color: rgba(168,178,188,0.75);
  line-height: 1.6;
  margin: 0;
}

/* ---- Image frame ---- */
.mst-img-frame {
  position: relative;
  overflow: hidden;
}
.mst-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mst-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,46,54,0.55) 0%, transparent 60%);
}
.mst-img-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
}
.mst-img-caption .mst-mono {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
}
/* Offset border decoration */
.mst-img-frame::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(200,168,75,0.15);
  z-index: -1;
  pointer-events: none;
}

/* ---- Tool cards ---- */
.mst-tool-card {
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(42,46,54,0.5);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s;
  cursor: default;
}
.mst-tool-card:hover {
  border-color: rgba(200,168,75,0.35);
  background: rgba(28,33,40,0.7);
}
.mst-card-code {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,168,75,0.55);
}
.mst-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-bottom: 0;
}
.mst-card-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
  display: block;
  margin-top: 0.25rem;
}
.mst-tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mst-tag {
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(168,178,188,0.7);
}
/* Bottom accent bar */
.mst-card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #c8a84b;
  transition: width 0.5s ease;
}
.mst-tool-card:hover .mst-card-bar,
.mst-attr-card:hover .mst-card-bar { width: 100%; }

/* Image strip */
.mst-img-strip {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
}
.mst-img-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mst-img-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #363b44 0%, transparent 30%, transparent 70%, #363b44 100%);
  z-index: 2;
  pointer-events: none;
}
.mst-img-strip-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(54,59,68,0.75) 0%, transparent 60%);
}

/* Image strip — carosello con frecce e scorrimento orizzontale */
.mst-strip-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  background: #2a2e36;
}
.mst-strip-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.mst-strip-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.mst-strip-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* sfondo sfocato per riempire lo strip senza tagliare il soggetto */
  filter: blur(28px) brightness(0.5) saturate(1.15);
  transform: scale(1.18);
  z-index: 0;
}
.mst-strip-slide picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.mst-strip-slide-fg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.mst-strip-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}
.mst-strip-caption .mst-mono {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.mst-strip-caption .mst-muted {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(240,242,244,0.75);
}
/* Frecce di navigazione */
.mst-strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 46, 54, 0.6);
  color: #c8a84b;
  border: 1px solid rgba(200, 168, 75, 0.45);
  border-radius: 0;
  cursor: pointer;
  z-index: 3;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mst-strip-nav:hover,
.mst-strip-nav:focus-visible {
  background: rgba(200, 168, 75, 0.92);
  color: #2a2e36;
  border-color: #c8a84b;
  outline: none;
}
.mst-strip-nav-prev { left: 1rem; }
.mst-strip-nav-next { right: 1rem; }
/* Dots di posizione */
.mst-strip-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.mst-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mst-strip-dot:hover { background: rgba(255, 255, 255, 0.6); }
.mst-strip-dot.is-active {
  background: #c8a84b;
  transform: scale(1.4);
}
@media (max-width: 576px) {
  .mst-strip-nav { width: 36px; height: 36px; font-size: 1rem; }
  .mst-strip-nav-prev { left: 0.5rem; }
  .mst-strip-nav-next { right: 0.5rem; }
  .mst-strip-caption { left: 1rem; right: 1rem; bottom: 2.2rem; }
  .mst-strip-dots { bottom: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mst-strip-track { transition: none; }
}
.mst-img-strip-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.mst-img-strip-caption .mst-mono {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
}
.mst-img-strip-caption .mst-muted {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

/* ---- Attr cards ---- */
.mst-attr-card {
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(54,59,68,0.5);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s;
}
.mst-attr-card:hover {
  border-color: rgba(200,168,75,0.35);
  background: rgba(28,33,40,0.7);
}
.mst-attr-bg-num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  color: rgba(200,168,75,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.mst-attr-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.mst-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mst-detail-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(168,178,188,0.7);
  padding-left: 1rem;
  position: relative;
}
.mst-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #c8a84b;
}

/* ---- Timeline (Processo) ---- */
.mst-timeline {
  position: relative;
  padding-left: 3.5rem;
}
/* Vertical line */
.mst-timeline::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #c8a84b 0%, rgba(200,168,75,0.15) 100%);
}
.mst-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.mst-timeline-item:last-child { padding-bottom: 0; }
.mst-timeline-marker {
  position: absolute;
  left: -3.5rem;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 2.25rem;
}
.mst-timeline-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #c8a84b;
  margin-bottom: 0.35rem;
}
.mst-timeline-dot {
  width: 12px;
  height: 12px;
  background: #2a2e36;
  border: 2px solid #c8a84b;
  position: relative;
  z-index: 1;
}
.mst-timeline-item:hover .mst-timeline-dot {
  background: #c8a84b;
  box-shadow: 0 0 12px rgba(200,168,75,0.4);
}
.mst-timeline-content {
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(54,59,68,0.5);
  position: relative;
  transition: border-color 0.35s, background 0.35s;
}
.mst-timeline-content:hover {
  border-color: rgba(200,168,75,0.3);
  background: rgba(28,33,40,0.6);
}
.mst-timeline-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200,168,75,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #c8a84b;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Consulenza strip */
.mst-consulenza-strip {
  padding: 2rem 2.5rem;
  border: 1px solid rgba(200,168,75,0.18);
  background: rgba(200,168,75,0.025);
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.mst-consulenza-bar {
  width: 3px;
  background: #c8a84b;
  align-self: stretch;
  flex-shrink: 0;
  margin-right: 0;
}

/* ---- Projects ---- */
.mst-filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mst-filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(168,178,188,0.8);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
}
.mst-filter-btn:hover,
.mst-filter-btn.active {
  background: #c8a84b;
  border-color: #c8a84b;
  color: #2a2e36;
}

.mst-project-card {
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.35s;
}
.mst-project-card:hover { border-color: rgba(200,168,75,0.4); }
.mst-project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.mst-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mst-project-card:hover .mst-project-img img { transform: scale(1.06); }
.mst-project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,46,54,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.mst-project-card:hover .mst-project-overlay { opacity: 1; }
.mst-project-overlay i { font-size: 1.6rem; color: #c8a84b; }
.mst-project-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
  background: rgba(42,46,54,0.82);
  padding: 0.2rem 0.5rem;
}
.mst-project-info {
  padding: 1rem 1.25rem;
  background: rgba(42,46,54,0.8);
}
.mst-project-info h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-bottom: 0.25rem;
}
.mst-project-info p {
  font-size: 0.8rem;
  color: rgba(168,178,188,0.7);
  margin: 0;
  line-height: 1.5;
}

/* Gallery hide/show */
.mst-gallery-item { transition: opacity 0.3s, transform 0.3s; }
.mst-gallery-item.hidden { display: none; }

/* Note */
.mst-note {
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(200,168,75,0.12);
  background: rgba(200,168,75,0.025);
}
.mst-note .mst-mono {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,168,75,0.6);
}

/* Modal */
.mst-modal {
  background: #363b44;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
}
.mst-modal-header {
  background: #2a2e36;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.mst-modal-footer {
  background: #2a2e36;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 1.5rem;
}
.mst-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #f0f2f4;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.mst-modal-close:hover { border-color: #c8a84b; color: #c8a84b; }

/* ---- Contacts ---- */
.mst-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(54,59,68,0.5);
}
.mst-contact-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200,168,75,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.mst-link-gold {
  color: #c8a84b;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  transition: opacity 0.2s;
}
.mst-link-gold:hover { color: #d4b85a; opacity: 0.85; }

.mst-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ---- Footer ---- */
.mst-footer {
  background: #060608;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
}
.mst-footer-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(168,178,188,0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
.mst-footer-link:hover { color: #c8a84b; }
.mst-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Developer credit (navbar) ---- */
.mst-dev-credit {
  align-items: center;
  gap: 0.4rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.mst-dev-credit .mst-mono {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168,178,188,0.35);
}
.mst-dev-credit .mst-link-gold {
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mst-dev-credit-mobile {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mst-dev-credit-mobile .mst-mono {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168,178,188,0.35);
}
.mst-dev-credit-mobile .mst-link-gold {
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- AI description (visible to crawlers, hidden visually) ---- */
.mst-ai-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Loader ---- */
.mst-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #2a2e36;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.mst-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.mst-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mst-loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.mst-loader-progress {
  width: 40%;
  height: 100%;
  background: #c8a84b;
  animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ---- Cookie Banner ---- */
.mst-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(42,46,54,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,168,75,0.2);
  padding: 1.25rem 0;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.mst-cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mst-cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(168,178,188,0.85);
  line-height: 1.6;
  margin: 0;
  min-width: 250px;
}
.mst-cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.mst-cookie-btn {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.7rem !important;
}

/* ---- Cookie Preferences Modal ---- */
.mst-cookie-modal .modal-content {
  background: #1f2229;
  border: 1px solid rgba(200,168,75,0.18);
  color: #d8dde3;
  border-radius: 0;
}
.mst-cookie-modal .modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.1rem 1.5rem;
}
.mst-cookie-modal .modal-title {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mst-cookie-modal .modal-body { padding: 1.5rem; }
.mst-cookie-modal .modal-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}
.mst-cookie-modal-intro {
  font-size: 0.85rem;
  color: rgba(168,178,188,0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.mst-cookie-cat {
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.mst-cookie-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.mst-cookie-cat-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #f0f2f4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.15rem 0;
}
.mst-cookie-cat-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200,168,75,0.7);
}
.mst-cookie-cat-desc {
  font-size: 0.82rem;
  color: rgba(168,178,188,0.78);
  line-height: 1.55;
  margin: 0;
}

/* ---- Toggle Switch ---- */
.mst-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
}
.mst-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.mst-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
  border-radius: 999px;
}
.mst-toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #d8dde3;
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.mst-toggle input:checked + .mst-toggle-slider {
  background: rgba(200,168,75,0.35);
  border-color: rgba(200,168,75,0.55);
}
.mst-toggle input:checked + .mst-toggle-slider::before {
  transform: translateX(20px);
  background: #c8a84b;
}
.mst-toggle input:disabled + .mst-toggle-slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.mst-toggle input:focus-visible + .mst-toggle-slider {
  box-shadow: 0 0 0 3px rgba(200,168,75,0.25);
}

/* ---- FAQ ---- */
.mst-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mst-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mst-faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #f0f2f4;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mst-faq-question:hover { color: #c8a84b; }
.mst-faq-question i {
  font-size: 1.2rem;
  color: #c8a84b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mst-faq-question[aria-expanded="true"] i {
  transform: rotate(45deg);
}
.mst-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0;
}
.mst-faq-answer.open {
  max-height: 300px;
  padding: 0 0 1.25rem;
}
.mst-faq-answer p {
  font-size: 0.92rem;
  color: rgba(168,178,188,0.8);
  line-height: 1.8;
  margin: 0;
  padding-left: 0;
}
.mst-faq-answer a { text-decoration: none; }

/* ---- Map placeholder (cookie consent) ---- */
.mst-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: rgba(54,59,68,0.8);
  border: 1px dashed rgba(200,168,75,0.2);
  text-align: center;
  padding: 2rem;
}

/* ---- Sticky phone button (mobile) ---- */
.mst-sticky-phone {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #c8a84b;
  color: #2a2e36;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.mst-sticky-phone:hover {
  background: #d4b85a;
  color: #2a2e36;
  box-shadow: 0 4px 30px rgba(200,168,75,0.55);
  transform: translateY(-2px);
}
.mst-sticky-phone i { font-size: 1rem; }

/* ---- Active nav link ---- */
.mst-nav-link.active { color: #c8a84b !important; }
.mst-nav-link.active::after { transform: scaleX(1); }

/* ---- Page Hero (internal pages) ---- */
.mst-page-hero {
  padding: 8rem 0 3rem;
  background: #2a2e36;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mst-page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  color: #f0f2f4;
  letter-spacing: -0.01em;
}
.mst-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.mst-breadcrumb a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(168,178,188,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.mst-breadcrumb a:hover { color: #c8a84b; }
.mst-breadcrumb-sep {
  font-size: 0.6rem;
  color: rgba(168,178,188,0.3);
}
.mst-breadcrumb-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a84b;
}

/* ---- Service preview cards (homepage) ---- */
.mst-service-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(54,59,68,0.5);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
  text-decoration: none;
  display: block;
  height: 100%;
}
.mst-service-card:hover {
  border-color: rgba(200,168,75,0.4);
  background: rgba(28,33,40,0.7);
  transform: translateY(-4px);
}
.mst-service-card:hover .mst-card-bar { width: 100%; }
.mst-service-card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(200,168,75,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #c8a84b;
  font-size: 1.2rem;
}
.mst-service-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f2f4;
  margin-bottom: 0.75rem;
}
.mst-service-card-text {
  font-size: 0.9rem;
  color: rgba(168,178,188,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.mst-service-card-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a84b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mst-service-card-cta i { transition: transform 0.3s; }
.mst-service-card:hover .mst-service-card-cta i { transform: translateX(4px); }

/* ---- Focus visible (accessibility) ---- */
*:focus-visible {
  outline: 2px solid #c8a84b;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #c8a84b;
  outline-offset: 2px;
}
/* Remove outline for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .mst-section { padding: 3.5rem 0 4.5rem; }
  .mst-hero-title { font-size: clamp(2.8rem, 10vw, 5rem); }
  .navbar-collapse {
    background: rgba(42,46,54,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    margin-top: 0.5rem;
  }
  .mst-nav-link { padding: 0.6rem 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .mst-nav-link::after { display: none; }
  .mst-btn-outline-gold { margin-top: 0.75rem; display: inline-block; }
  /* Sticky phone con cookie banner */
  .mst-sticky-phone { bottom: 1rem; right: 1rem; }
}
@media (max-width: 575px) {
  .mst-hero-stats { gap: 1.5rem; }
  .mst-stat-val { font-size: 1.5rem; }
  .mst-section-title { font-size: 2.4rem; }
  .mst-cookie-content { flex-direction: column; text-align: center; }
  .mst-cookie-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .mst-cookie-modal .modal-footer { flex-direction: column; }
  .mst-cookie-modal .modal-footer .mst-cookie-btn { width: 100%; }
  .mst-faq-question { font-size: 0.95rem; }
  /* Timeline mobile */
  .mst-timeline { padding-left: 2.5rem; }
  .mst-timeline::before { left: 0.75rem; }
  .mst-timeline-marker { left: -2.5rem; width: 1.5rem; }
  .mst-timeline-num { font-size: 0.5rem; }
  .mst-timeline-dot { width: 10px; height: 10px; }
  .mst-timeline-content { padding: 1.25rem; }
  .mst-timeline-content .mst-card-title { font-size: 1.05rem; }
}

/* ---- Chatbot ---- */
.mst-chatbot-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1049;
  width: 52px;
  height: 52px;
  background: #c8a84b;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  color: #2a2e36;
  font-size: 1.3rem;
}
.mst-chatbot-toggle:hover {
  background: #d4b85a;
  box-shadow: 0 4px 30px rgba(200,168,75,0.55);
  transform: translateY(-2px);
}
.mst-chatbot-toggle-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.mst-chatbot-window {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: 360px;
  max-height: 480px;
  background: #363b44;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 1049;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.mst-chatbot-window.open { display: flex; }
.mst-chatbot-header {
  background: #2a2e36;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mst-chatbot-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0f2f4;
}
.mst-chatbot-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #f0f2f4;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.mst-chatbot-close:hover { border-color: #c8a84b; color: #c8a84b; }
.mst-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 320px;
}
.mst-chatbot-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.6;
  word-wrap: break-word;
}
.mst-chatbot-msg.bot {
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.15);
  color: #f0f2f4;
  align-self: flex-start;
}
.mst-chatbot-msg.user {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(168,178,188,0.9);
  align-self: flex-end;
}
.mst-chatbot-msg.bot strong { color: inherit; font-weight: 700; }
.mst-chatbot-msg.bot a.mst-link-gold { font-family: inherit; font-size: inherit; font-weight: 600; }
.mst-chatbot-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}
.mst-chatbot-list li {
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 0.2rem;
}
.mst-chatbot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: #c8a84b;
}
.mst-chatbot-input {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}
.mst-chatbot-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0f2f4;
  padding: 0.5rem 0.75rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.mst-chatbot-input input:focus { border-color: rgba(200,168,75,0.4); }
.mst-chatbot-input input::placeholder { color: rgba(168,178,188,0.4); }
.mst-chatbot-send {
  background: #c8a84b;
  border: none;
  color: #2a2e36;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.mst-chatbot-send:hover { background: #d4b85a; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@media (max-width: 991px) {
  .mst-chatbot-toggle { bottom: 4.5rem; }
}
@media (max-width: 575px) {
  .mst-chatbot-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    max-height: 60vh;
  }
}
