/* =====================================================
   AUXILIUM SERVICE PROVIDER · main.css
   Design system based on brand colors #193A89 + #E55125
   Typography: DM Sans (UI) + Archivo (display) + JetBrains Mono (technical)
   Approach: Brand espanso tech (P2) + dark accents from P3
   ===================================================== */

/* ============ TOKENS ============ */
:root {
  /* Brand */
  --blu: #193A89;
  --blu-deep: #0F2562;
  --blu-navy: #0A1438;
  --blu-50: #F0F4FE;
  --blu-100: #DDE7FB;
  --blu-200: #B6CAF5;

  --arancio: #E55125;
  --arancio-deep: #C9421A;
  --arancio-50: #FEF1ED;
  --arancio-100: #FDD9CC;

  /* Neutrals */
  --paper: #FAFAF7;
  --cream: #F5F2ED;
  --ink: #0F0F0F;
  --gray-50: #FAFAF7;
  --gray-100: #F5F5F1;
  --gray-200: #E5E5E0;
  --gray-300: #D4D4CE;
  --gray-400: #A1A19C;
  --gray-500: #737370;
  --gray-600: #525250;
  --gray-700: #3F3F3D;
  --gray-800: #262625;

  /* Functional */
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Layout */
  --max-width: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
  --header-h: 88px;

  /* Type scale */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: 21px;
  --t-xl: clamp(28px, 4vw, 36px);
  --t-2xl: clamp(36px, 5vw, 48px);
  --t-3xl: clamp(44px, 7vw, 72px);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Helvetica, sans-serif;
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection { background: var(--arancio); color: white; }

/* ============ UTILITIES ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(56px, 10vw, 96px) 0; }
.section-sm { padding: clamp(40px, 6vw, 64px) 0; }

.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arancio);
}
.kicker.line {
  display: flex; align-items: center; gap: 12px;
}
.kicker.line::before {
  content: ''; width: 28px; height: 1px; background: var(--arancio);
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--blu);
}
h1 { font-size: var(--t-3xl); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
h1 em, h2 em, h3 em, h4 em {
  color: var(--arancio); font-style: normal;
}

p { color: var(--gray-700); }
.lead {
  font-size: var(--t-md);
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 620px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-sm);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: transform 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blu); color: white; }
.btn-primary:hover { background: var(--blu-deep); }
.btn-accent { background: var(--arancio); color: white; }
.btn-accent:hover { background: var(--arancio-deep); }
.btn-ghost {
  background: transparent; color: var(--blu);
  border: 1px solid var(--blu);
}
.btn-ghost:hover { background: var(--blu); color: white; }
.btn-light {
  background: var(--blu-50); color: var(--blu);
}
.btn-light:hover { background: var(--blu-100); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand-link { display: inline-flex; align-items: center; gap: 0; }
.brand-link img { height: 56px; width: auto; }
.main-nav {
  display: flex; gap: 28px; align-items: center;
}
.main-nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--blu); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--arancio);
}
.header-cta { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs); letter-spacing: 0.1em;
  color: var(--gray-500);
}
.lang-switch a { color: var(--gray-500); padding: 4px 6px; }
.lang-switch a.active { color: var(--blu); font-weight: 600; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 16px; height: 2px;
  background: var(--blu); display: block;
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute;
  left: 0; right: 0; height: 2px; background: var(--blu);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

@media (max-width: 940px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .mobile-nav { display: none; }
  .mobile-nav.open {
    display: block; position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: white;
    padding: 24px var(--pad-x);
    border-bottom: 1px solid var(--gray-200);
    z-index: 49;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .mobile-nav a {
    display: block; padding: 12px 0;
    font-size: var(--t-md); font-weight: 500;
    color: var(--blu); border-bottom: 1px solid var(--gray-100);
  }
  .mobile-nav .btn { width: 100%; justify-content: center; margin-top: 16px; }
}
@media (min-width: 941px) { .mobile-nav { display: none; } }

/* ============ HERO ============ */
.hero {
  padding: 56px 0 88px;
  background:
    radial-gradient(ellipse at top right, rgba(229,81,37,0.08), transparent 60%),
    var(--paper);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; background: white;
  border: 1px solid var(--gray-200); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs); color: var(--blu);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--arancio);
  box-shadow: 0 0 0 3px rgba(229,81,37,0.15);
}
.hero h1 { margin-top: 18px; }
.hero p.lead { margin-top: 22px; }
.hero .cta-row {
  margin-top: 32px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* hero monitoring panel (P3 dark accent) */
.monitor-panel {
  background: var(--blu-navy);
  color: white;
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 24px 60px -20px rgba(15,37,98,0.4);
}
.monitor-panel::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(229,81,37,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,81,37,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.monitor-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.monitor-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
}
.monitor-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  opacity: 0.55;
}
.monitor-list {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; z-index: 1;
}
.monitor-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
}
.monitor-row .lbl { opacity: 0.8; }
.monitor-row .val { font-weight: 600; color: #4ADE80; }
.monitor-row .val.warn { color: var(--arancio); }
.monitor-row .val.alert { color: #EF4444; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--arancio);
  animation: pulse 1.6s infinite;
  box-shadow: 0 0 8px var(--arancio);
}

/* ============ SECTIONS ============ */
.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.section-head .kicker { margin-bottom: 12px; }
.section-head h2 + p { margin-top: 14px; }

/* ============ STATS BAR ============ */
.stats-bar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell {
  padding: 18px 16px;
  background: var(--gray-50);
  border-radius: var(--r-md);
}
.stat-cell.alt { background: var(--blu); color: white; }
.stat-cell .num {
  font-family: 'Archivo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--blu);
}
.stat-cell.alt .num { color: white; }
.stat-cell.alt .num em { color: var(--arancio); font-style: normal; }
.stat-cell .label {
  font-size: var(--t-xs);
  color: var(--gray-500);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.stat-cell.alt .label { color: rgba(255,255,255,0.7); }

/* ============ SERVICE CARDS ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--blu);
  box-shadow: 0 12px 32px -12px rgba(15,37,98,0.18);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 46px; height: 46px;
  background: var(--blu); color: white;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 700;
}
.service-card .icon.alt { background: var(--arancio); }
.service-card h3 {
  font-size: var(--t-md);
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: var(--t-sm);
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.5;
}
.service-card .arrow {
  margin-top: auto;
  padding-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--arancio);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ============ CASE TEASER ============ */
.case-teaser {
  background: linear-gradient(135deg, var(--blu) 0%, var(--blu-deep) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .case-teaser { grid-template-columns: 1fr; }
}
.case-teaser::before {
  content: '';
  position: absolute;
  right: -180px; bottom: -180px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,81,37,0.32), transparent 65%);
  pointer-events: none;
}
.case-teaser h3 { color: white; font-size: var(--t-xl); }
.case-teaser h3 em { color: var(--arancio); }
.case-teaser .desc {
  margin-top: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative; z-index: 1;
}
.case-stat {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 18px;
}
.case-stat .num {
  font-family: 'Archivo', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-stat .label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ MANIFESTO BLOCK ============ */
.manifesto {
  background: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: clamp(56px, 10vw, 96px) 0;
}
.manifesto-text {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.3;
  color: var(--blu);
  font-style: italic;
  font-weight: 400;
  max-width: 880px;
}
.manifesto-text em {
  color: var(--arancio);
  font-style: italic;
  font-weight: 500;
}
.manifesto-attr {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* ============ PILLAR / INFO ROWS ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
}
.pillar .num {
  font-family: 'Archivo', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--arancio);
  letter-spacing: -0.025em;
  line-height: 1;
}
.pillar h4 {
  margin-top: 14px;
  font-size: var(--t-md);
}
.pillar p {
  margin-top: 10px;
  font-size: var(--t-sm);
  color: var(--gray-600);
}

/* ============ FEATURE LIST ============ */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-top: 24px;
}
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--t-sm);
  color: var(--gray-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.feature-list li::before {
  content: '→';
  color: var(--arancio);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--blu);
  color: white;
  padding: clamp(40px, 8vw, 72px) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(229,81,37,0.18), transparent 50%);
  pointer-events: none;
}
.cta-strip h2 { color: white; max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.cta-strip h2 em { color: var(--arancio); }
.cta-strip p {
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 16px auto 32px;
  position: relative; z-index: 1;
}
.cta-strip .btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-strip .btn-primary {
  background: var(--arancio); color: white;
}
.cta-strip .btn-primary:hover { background: var(--arancio-deep); }
.cta-strip .btn-ghost {
  color: white; border-color: rgba(255,255,255,0.3);
}
.cta-strip .btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }

/* ============ PAGE HEADER (interna) ============ */
.page-header {
  background:
    radial-gradient(ellipse at top right, rgba(229,81,37,0.06), transparent 60%),
    var(--cream);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--gray-200);
}
.page-header .kicker { margin-bottom: 16px; }
.page-header h1 {
  font-size: var(--t-2xl);
}
.page-header p.lead {
  margin-top: 18px;
}
.breadcrumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--gray-500);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--blu); }
.breadcrumbs span { color: var(--gray-400); margin: 0 6px; }

/* ============ CONTENT (article-style) ============ */
.content {
  max-width: 720px;
}
.content > * + * { margin-top: 18px; }
.content h2 {
  font-size: var(--t-xl);
  margin-top: 48px !important;
}
.content h3 {
  font-size: var(--t-lg);
  margin-top: 32px !important;
}
.content p { color: var(--gray-700); }
.content ul {
  padding-left: 0;
}
.content ul li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--gray-700);
}
.content ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--arancio);
  font-weight: 600;
}
.content blockquote {
  border-left: 3px solid var(--arancio);
  padding: 4px 0 4px 22px;
  margin: 24px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: var(--t-md);
  color: var(--blu);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

.aside-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.aside-card h4 {
  font-size: var(--t-md);
  margin-bottom: 12px;
}
.aside-card p {
  font-size: var(--t-sm);
  color: var(--gray-600);
  margin-bottom: 16px;
}
.aside-card .btn { width: 100%; justify-content: center; }

/* ============ BLOG ============ */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .blog-list { grid-template-columns: 1fr; } }
.blog-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--blu); transform: translateY(-2px); }
.blog-card .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--arancio);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-card h3 {
  font-size: var(--t-md);
  margin-top: 12px;
}
.blog-card .excerpt {
  margin-top: 12px;
  font-size: var(--t-sm);
  color: var(--gray-600);
}
.blog-card .read {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--blu);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--blu);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: var(--t-base);
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-sm);
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blu);
  box-shadow: 0 0 0 3px rgba(25,58,137,0.1);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { font-size: var(--t-xs); color: var(--gray-500); }
.form-row.checkbox {
  flex-direction: row; align-items: flex-start; gap: 10px;
}
.form-row.checkbox label {
  font-family: inherit; font-size: var(--t-sm);
  text-transform: none; letter-spacing: 0;
  font-weight: 400; color: var(--gray-700);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--blu-navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--arancio), transparent);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 320px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: var(--arancio);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul li { margin: 8px 0; }
.footer-col a {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.65);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: white; }

/* ============ RESPONSIVE TYPE TWEAKS ============ */
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .brand-link img { height: 44px; }
  .hero { padding: 32px 0 56px; }
  .stats-bar .stat-cell { padding: 14px 12px; }
  .stats-bar .stat-cell .num { font-size: 22px; }
}

/* ============================================================
   Cookie banner (axi-cb-*) — iniettato da assets/js/cookie-banner.js
   ============================================================ */
.axi-cb-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -6px 24px rgba(10,20,56,.12);
  z-index: 100;
  padding: 18px 20px;
}
.axi-cb-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.axi-cb-banner__text h3 {
  margin: 0 0 6px;
  font-size: var(--t-md);
  color: var(--blu-navy);
}
.axi-cb-banner__text p {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--gray-500);
  line-height: 1.55;
}
.axi-cb-banner__text a { color: var(--blu); text-decoration: underline; }
.axi-cb-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.axi-cb-btn {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--t-sm);
  font-family: inherit;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.axi-cb-btn--primary {
  background: var(--arancio);
  color: #fff;
  border-color: var(--arancio);
}
.axi-cb-btn--primary:hover { background: var(--arancio-deep); border-color: var(--arancio-deep); }
.axi-cb-btn--ghost {
  background: transparent;
  color: var(--blu);
  border-color: var(--blu);
}
.axi-cb-btn--ghost:hover { background: var(--blu); color: #fff; }
.axi-cb-btn--link {
  background: transparent;
  color: var(--gray-500);
  border: 0;
  text-decoration: underline;
  padding: 9px 10px;
}
.axi-cb-btn--link:hover { color: var(--blu); }

@media (max-width: 720px) {
  .axi-cb-banner__inner { grid-template-columns: 1fr; }
  .axi-cb-banner__actions { justify-content: stretch; }
  .axi-cb-btn { flex: 1; min-width: 0; }
}

/* Modal preferenze */
.axi-cb-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,20,56,.55);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.axi-cb-modal-open { overflow: hidden; }
.axi-cb-modal__panel {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 560px;
  width: 100%;
  padding: 32px 28px 24px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(10,20,56,.30);
}
.axi-cb-modal__panel h3 {
  margin: 0 0 10px;
  color: var(--blu-navy);
  font-size: var(--t-lg);
}
.axi-cb-modal__intro {
  color: var(--gray-500);
  font-size: var(--t-sm);
  margin: 0 0 22px;
}
.axi-cb-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
}
.axi-cb-modal__close:hover { color: var(--blu-navy); }
.axi-cb-cat {
  border-top: 1px solid var(--gray-200);
  padding: 14px 0;
}
.axi-cb-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.axi-cb-cat__head strong {
  font-size: var(--t-base);
  color: var(--blu-navy);
}
.axi-cb-cat__always {
  font-size: var(--t-xs);
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.axi-cb-cat p {
  margin: 6px 0 0;
  font-size: var(--t-sm);
  color: var(--gray-500);
}
.axi-cb-toggle {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  flex: none;
}
.axi-cb-toggle input { opacity: 0; width: 0; height: 0; }
.axi-cb-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 24px;
  transition: background .18s;
}
.axi-cb-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
}
.axi-cb-toggle input:checked + .axi-cb-toggle__slider { background: var(--arancio); }
.axi-cb-toggle input:checked + .axi-cb-toggle__slider::before { transform: translateX(18px); }
.axi-cb-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
}

/* ============================================================
   Form contatti — honeypot + banner errore
   ============================================================ */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}
.form-error {
  background: #FEE2E2;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
  font-size: var(--t-sm);
}
