/* NEW SYSTECH - Custom styles */

:root {
  --ns-primary: #16a34a;
  --ns-dark: #0f172a;
  --ns-navy: #064e3b;

  /* Bootstrap primary override */
  --bs-primary: #16a34a;
  --bs-primary-rgb: 22, 163, 74;
  --bs-link-color: #16a34a;
  --bs-link-color-rgb: 22, 163, 74;
}

/* Bootstrap button overrides */
.btn-primary {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
  --bs-btn-active-bg: #14532d;
}
.btn-outline-primary {
  --bs-btn-color: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #16a34a;
  --bs-btn-hover-border-color: #16a34a;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #212529;
}

/* ── NAVBAR ── */
.ns-navbar {
  background: #052e16 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ns-navbar .navbar-brand img {
  filter: brightness(0) invert(1);
}
.ns-navbar .nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ns-navbar .nav-link:hover {
  color: #86efac !important;
}
.ns-navbar .navbar-brand,
.ns-navbar .navbar-brand span,
.ns-navbar .nav-link {
  color: #ffffff !important;
}
.ns-navbar .nav-link.active {
  color: #86efac !important;
}

/* ── HERO ── */
.ns-hero {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 60%, #059669 100%);
  min-height: 420px;
}
.ns-hero,
.ns-hero h1,
.ns-hero h2,
.ns-hero p,
.ns-hero span,
.ns-hero a:not(.btn) {
  color: #ffffff;
}
.ns-hero-img {
  max-height: 340px;
  object-fit: cover;
  opacity: 0.92;
}
.ns-badge {
  background: rgba(255,255,255,0.12);
  color: #93c5fd;
  font-weight: 500;
  border-radius: 6px;
}

/* ── TYPOGRAPHY ── */
.ls-wide {
  letter-spacing: 0.08em;
}

/* ── SERVICES SECTION ── */
.ns-services {
  background: #f8fafc;
}

/* ── CARDS ── */
.ns-card {
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--ns-primary) !important;
}
.ns-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.12) !important;
}

/* ── ICON CIRCLE ── */
.ns-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ns-primary);
}

/* ── CTA SECTION ── */
.ns-cta {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}
.ns-cta,
.ns-cta h3,
.ns-cta p {
  color: #ffffff;
}

/* ── FOOTER ── */
.ns-footer {
  background: #052e16;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0;
}
.ns-footer strong,
.ns-footer span {
  color: #f1f5f9;
}
.ns-footer small,
.ns-footer .text-secondary {
  color: #94a3b8 !important;
}
.ns-footer a {
  color: #e2e8f0;
}
.ns-footer a:hover {
  color: #86efac !important;
}

/* ── PAGE HEADER (pagine interne) ── */
.ns-page-header {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 60%, #059669 100%);
}

/* ── CONTACT CARDS ── */
.ns-contact-card {
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}
.ns-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.15) !important;
}

/* ── COOKIE NOTICE ── */
.ns-cookie-notice {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 760px;
  background: #1a1a1a;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1050;
}

/* ── CONTENT PAGES ── */
.content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.content table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #dee2e6;
}
