/* =====================================================================
   UFFICIO IMMIGRAZIONE — BLUE NAVY DESIGN SYSTEM
   Visual Idea: "A clear route across borders."
   Source of Truth: Blue Navy Design System Specification
   Navy 950: #061624 | Navy 900: #0A2035 | Navy 800: #103653 | Navy 700: #164D78
   Cobalt 600: #1672B8 | Cobalt 500: #258ED2 | Sky 100: #DFF2FC | Ice 50: #F5FAFD
   Paper: #FFFFFF | Ink: #102A43 | Muted: #61788B | Line: #D6E2EA
   Success: #2E8B6D | Warning: #C88A2C | Danger: #C45151
   Typography: Manrope (Headings) · Inter (Body/UI) · IBM Plex Mono (Data/Codes)
   ===================================================================== */

:root {
  /* ---------------- Core Color Tokens ---------------- */
  --navy-950: #061624;
  --navy-900: #0A2035;
  --navy-800: #103653;
  --navy-700: #164D78;
  --cobalt-600: #1672B8;
  --cobalt-500: #258ED2;
  --sky-100: #DFF2FC;
  --ice-50: #F5FAFD;
  --paper: #FFFFFF;
  --ink: #102A43;
  --muted: #61788B;
  --line: #D6E2EA;
  --success: #2E8B6D;
  --warning: #C88A2C;
  --danger: #C45151;

  /* ---------------- Typography Families ---------------- */
  --font-display: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ---------------- Container Layouts ---------------- */
  --shell: min(1200px, calc(100% - 48px));
  --shell-reading: min(760px, calc(100% - 40px));
  --shell-modal: min(1040px, calc(100% - 32px));

  /* ---------------- Radii Scale ---------------- */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-card: 12px;
  --radius-modal: 16px;

  /* ---------------- Shadows ---------------- */
  --shadow-card: 0 12px 32px rgba(6, 22, 36, 0.08);
  --shadow-navy: 0 14px 34px rgba(6, 22, 36, 0.18);
  --shadow-form: 0 16px 42px rgba(6, 22, 36, 0.10);
  --shadow-modal: 0 30px 90px rgba(0, 0, 0, 0.25);
  --shadow-header: 0 4px 20px rgba(6, 22, 36, 0.12);

  /* ---------------- Motion Curves ---------------- */
  --ease-hover: cubic-bezier(.16, 1, .3, 1);
  --ease-reveal: cubic-bezier(.2, .8, .2, 1);
  --ease-modal: cubic-bezier(.2, .9, .2, 1);

  /* ---------------- Legacy & Component Aliases ---------------- */
  --admin-bg: var(--ice-50);
  --admin-surface: var(--paper);
  --admin-navy: var(--navy-900);
  --admin-navy-deep: var(--navy-950);
  --admin-navy-surface: var(--navy-800);
  --admin-gold: var(--cobalt-500);
  --admin-gold-soft: var(--sky-100);
  --admin-terracotta: var(--cobalt-600);
  --admin-terracotta-dark: var(--navy-800);
  --admin-terracotta-light: var(--sky-100);
  --admin-mint: var(--success);
  --admin-mint-bg: #ECF7F1;
  --admin-danger: var(--danger);
  --admin-danger-bg: #FDF1F1;
  --admin-warning: var(--warning);
  --admin-warning-bg: #FFF9E6;
  --admin-info: var(--navy-700);
  --admin-info-bg: var(--sky-100);
  --admin-text: var(--ink);
  --admin-text-muted: var(--muted);
  --admin-border: var(--line);
  --admin-border-medium: rgba(16, 42, 67, 0.20);
  --admin-radius: var(--radius-card);
  --admin-radius-sm: var(--radius-sm);
  --admin-radius-lg: var(--radius-modal);
  --admin-shadow: var(--shadow-card);
  --admin-shadow-lg: var(--shadow-form);

  --ink-soft: var(--muted);
  --cream: var(--ice-50);
  --paper-soft: var(--ice-50);
  --terracotta: var(--cobalt-600);
  --terracotta-dark: var(--navy-800);
  --olive: var(--success);
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html, body {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  background-color: var(--ice-50);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

section[id],
div[id],
article[id] {
  scroll-margin-top: 84px;
}

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 180ms var(--ease-hover);
}

a:hover {
  color: var(--cobalt-600);
}

.shell {
  width: var(--shell);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* ---------------- Typography Hierarchy ---------------- */
h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.08;
  margin-bottom: 18px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--navy-900);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.hero-copy .eyebrow {
  color: var(--sky-100);
}

p {
  color: var(--ink);
  line-height: 1.55;
}

/* ---------------- Accessibility ---------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--navy-950);
  color: #FFFFFF;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--cobalt-500);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--cobalt-500);
  outline-offset: 3px;
}

/* ---------------- Button System (Section 7) ---------------- */
.button,
.btn-adm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 24px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 180ms var(--ease-hover),
              border-color 180ms var(--ease-hover),
              color 180ms var(--ease-hover),
              transform 120ms ease-out,
              box-shadow 180ms var(--ease-hover);
  line-height: 1.2;
}

.button:active,
.btn-adm:active {
  transform: translateY(1px);
}

/* Primary Button: Cobalt 600 -> Cobalt 500 */
.button-primary,
.button-submit,
.btn-adm-primary,
.form-submit-btn {
  background: var(--cobalt-600) !important;
  color: #FFFFFF !important;
  border-color: var(--cobalt-600) !important;
  box-shadow: 0 2px 8px rgba(22, 114, 184, 0.25);
}

.button-primary:hover,
.button-submit:hover,
.btn-adm-primary:hover,
.form-submit-btn:hover {
  background: var(--cobalt-500) !important;
  border-color: var(--cobalt-500) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 142, 210, 0.35);
}

/* Secondary Button Light (Paper Background) */
.button-secondary,
.btn-adm-secondary {
  background: transparent !important;
  color: var(--navy-800) !important;
  border: 1px solid var(--navy-800) !important;
}

.button-secondary:hover,
.btn-adm-secondary:hover {
  background: var(--sky-100) !important;
  border-color: var(--navy-700) !important;
  color: var(--navy-900) !important;
}

/* Secondary Button Dark (Used on Navy Hero / Dark Surfaces) */
.button-secondary-dark,
.hero-actions .button-secondary {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.50) !important;
}

.button-secondary-dark:hover,
.hero-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.button[disabled],
.button.is-busy,
.btn-adm[disabled] {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

/* ---------------- Header Specification (Section 5) ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(10, 32, 53, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  transition: height 220ms var(--ease-hover), background-color 220ms var(--ease-hover), box-shadow 220ms var(--ease-hover);
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(10, 32, 53, 0.97);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--sky-100);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 180ms var(--ease-hover);
}

.header-link:hover,
.header-link.active {
  color: #FFFFFF;
}

.header-link.active::after,
.header-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cobalt-500);
  border-radius: 1px;
}

.header-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(46, 139, 109, 0.22);
  border: 1px solid rgba(46, 139, 109, 0.50);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms var(--ease-hover), border-color 180ms var(--ease-hover);
}

.header-wa-badge:hover {
  background: rgba(46, 139, 109, 0.35);
  border-color: #2E8B6D;
  color: #FFFFFF;
}

.wa-dot {
  width: 8px;
  height: 8px;
  background: #2E8B6D;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(46, 139, 109, 0.6);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms var(--ease-hover), border-color 180ms var(--ease-hover);
}

.language-switch:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--cobalt-600);
  color: #FFFFFF !important;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 180ms var(--ease-hover), transform 120ms ease-out, box-shadow 180ms var(--ease-hover);
  box-shadow: 0 2px 8px rgba(22, 114, 184, 0.30);
}

.header-cta-btn:hover {
  background: var(--cobalt-500);
  box-shadow: 0 4px 14px rgba(37, 142, 210, 0.40);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  pointer-events: none;
  transition: transform 200ms ease, opacity 180ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Hero Section Specification (Full-Width Background Slideshow) ---------------- */
.hero-section,
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #FFFFFF;
  min-height: 740px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background Slider & Layers */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms cubic-bezier(.2, .8, .2, 1), transform 7000ms ease-out;
  pointer-events: none;
  max-width: 100%;
  overflow: hidden;
}

.hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 22, 36, 0.84) 0%, rgba(10, 32, 53, 0.88) 55%, rgba(6, 22, 36, 0.96) 100%),
              radial-gradient(circle at center 40%, rgba(16, 54, 83, 0.35) 0%, transparent 75%);
}

/* Hero Content Wrapper */
.hero-fullbg-inner {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 48px));
  max-width: 100%;
  margin-inline: auto;
  padding: 68px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Eyebrow & Scope Badges */
.hero-eyebrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  max-width: 100%;
  width: 100%;
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: rgba(37, 142, 210, 0.18);
  border: 1px solid rgba(37, 142, 210, 0.50);
  color: var(--sky-100);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(6, 22, 36, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}

.hero-eyebrow-shield {
  font-size: 13px;
}

.hero-scope-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(6, 22, 36, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  flex-wrap: wrap;
  text-align: center;
}

.scope-separator {
  color: var(--cobalt-500);
  font-weight: 700;
}

/* Headline & Subtitle */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 880px;
  margin: 0 auto 20px;
  text-shadow: 0 4px 24px rgba(6, 22, 36, 0.85);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-intro-text {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: #FFFFFF;
  background: rgba(6, 22, 36, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 22px 28px;
  max-width: 900px;
  margin: 0 auto 30px;
  box-shadow: 0 10px 32px rgba(6, 22, 36, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.hero-intro-text p {
  margin: 0;
  color: #FFFFFF;
}

.hero-intro-text p + p,
.hero-intro-sub {
  margin-top: 12px !important;
  color: var(--sky-100);
  font-size: 0.96em;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
  opacity: 1;
}

/* ---------------- Hero Quick Action CTAs (Richiedi Lavoratore & WhatsApp) ---------------- */
.hero-quick-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 660px;
  margin: 0 auto 36px;
  box-sizing: border-box;
}

.hero-btn-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  background: var(--cobalt-600);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #FFFFFF !important;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(22, 114, 184, 0.45);
  transition: background-color 180ms var(--ease-hover), transform 120ms ease-out, box-shadow 180ms var(--ease-hover);
  cursor: pointer;
  box-sizing: border-box;
}

.hero-btn-request:hover {
  background: var(--cobalt-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 142, 210, 0.55);
  color: #FFFFFF !important;
}

.hero-btn-request:active {
  transform: translateY(1px);
}

.hero-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  background: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius);
  color: #FFFFFF !important;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.40);
  transition: background-color 180ms var(--ease-hover), transform 120ms ease-out, box-shadow 180ms var(--ease-hover);
  cursor: pointer;
  box-sizing: border-box;
}

.hero-btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
  color: #FFFFFF !important;
}

.hero-btn-whatsapp:active {
  transform: translateY(1px);
}

.btn-cta-icon {
  font-size: 18px;
  line-height: 1;
}

.btn-cta-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 140ms ease;
}

.hero-btn-request:hover .btn-cta-arrow {
  transform: translateX(3px);
}

.card-deck-body {
  display: flex;
  flex-direction: column;
}

/* 4 Glassmorphic Workforce Spectrum Cards */
.hero-spectrum-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 34px;
}

.spectrum-card-deck {
  background: rgba(10, 32, 53, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  text-align: left;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: transform 200ms var(--ease-hover), border-color 200ms var(--ease-hover), background-color 200ms var(--ease-hover), box-shadow 200ms var(--ease-hover);
  box-shadow: 0 12px 32px rgba(6, 22, 36, 0.40);
}

.spectrum-card-deck:hover {
  transform: translateY(-4px);
  background: rgba(16, 54, 83, 0.90);
  border-color: var(--cobalt-500);
  box-shadow: 0 16px 42px rgba(22, 114, 184, 0.30);
}

.card-deck-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-deck-icon {
  font-size: 24px;
  line-height: 1;
}

.card-deck-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.tag-stag {
  background: rgba(46, 139, 109, 0.30);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.40);
}

.tag-nonstag {
  background: rgba(200, 138, 44, 0.30);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.40);
}

.tag-care {
  background: rgba(37, 142, 210, 0.30);
  color: var(--sky-100);
  border: 1px solid rgba(223, 242, 252, 0.40);
}

.tag-bluecard {
  background: rgba(168, 85, 247, 0.30);
  color: #D8B4FE;
  border: 1px solid rgba(216, 180, 254, 0.40);
}

.card-deck-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: block;
}

.card-deck-sub {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin: 0;
}

/* Actions Row */
.hero-actions-deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-btn-main {
  min-width: 220px;
  height: 50px;
  font-size: 15.5px;
}

/* Deck Footer & Slide Selectors */
.hero-deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slide-dot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms var(--ease-hover);
}

.slide-dot:hover,
.slide-dot.is-active {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 114, 184, 0.4);
}

.dot-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-proof-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 0;
}

/* ---------------- Stats Band / KPI (Section 8 & 11) ---------------- */
.admin-stats-band {
  background: var(--ice-50);
  padding: 48px 0 24px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}

.stat-card .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
}

.stat-card .sub {
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
}

.stat-card.primary { border-left: 4px solid var(--cobalt-600); }
.stat-card.qualified { border-left: 4px solid var(--success); }
.stat-card.progress { border-left: 4px solid var(--warning); }
.stat-card.new { border-left: 4px solid var(--navy-700); }

/* ---------------- Workforce Rail / Carousel Specification (Section 9) ---------------- */
.workforce-section {
  padding: 72px 0 36px;
  background: var(--ice-50);
  position: relative;
}

.workforce-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.workforce-header-copy {
  max-width: 640px;
}

.workforce-header-copy h2 {
  margin-bottom: 10px;
}

.workforce-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.workforce-filter-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 180ms var(--ease-hover);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workforce-filter-chip:hover {
  background: var(--sky-100);
  color: var(--navy-900);
  border-color: var(--cobalt-500);
}

.workforce-filter-chip.active {
  background: var(--navy-800);
  color: #FFFFFF;
  border-color: var(--navy-800);
  box-shadow: 0 2px 8px rgba(16, 54, 83, 0.25);
}

.workforce-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-900);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(6, 22, 36, 0.04);
  transition: all 180ms var(--ease-hover);
}

.arrow-control:hover {
  background: var(--cobalt-600);
  color: #FFFFFF;
  border-color: var(--cobalt-600);
  transform: translateY(-1px);
}

.workforce-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--cobalt-500) transparent;
}

.workforce-rail::-webkit-scrollbar {
  height: 6px;
}

.workforce-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.workforce-card {
  flex: 0 0 320px;
  min-height: 390px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease-hover), box-shadow 200ms var(--ease-hover), border-color 200ms ease;
  position: relative;
  overflow: hidden;
}

.workforce-card:hover {
  transform: translateY(-4px);
  border-color: var(--cobalt-600);
  box-shadow: var(--shadow-navy);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sector-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ice-50);
  border: 1px solid var(--line);
  color: var(--navy-800);
}

.icon-wash-vineyard { background: #ECF7F1; color: var(--success); border-color: rgba(46, 139, 109, 0.25); }
.icon-wash-construction { background: var(--sky-100); color: var(--navy-800); border-color: rgba(22, 114, 184, 0.25); }
.icon-wash-welding { background: #FFF9E6; color: var(--warning); border-color: rgba(200, 138, 44, 0.25); }
.icon-wash-mechanics { background: var(--sky-100); color: var(--navy-700); border-color: rgba(22, 77, 120, 0.25); }
.icon-wash-factory { background: var(--ice-50); color: var(--navy-900); border-color: var(--line); }
.icon-wash-hotel { background: #FFF9E6; color: var(--warning); border-color: rgba(200, 138, 44, 0.25); }
.icon-wash-care { background: #ECF7F1; color: var(--success); border-color: rgba(46, 139, 109, 0.25); }
.icon-wash-family { background: var(--sky-100); color: var(--navy-800); border-color: rgba(22, 114, 184, 0.25); }
.icon-wash-skills { background: var(--sky-100); color: var(--cobalt-600); border-color: rgba(22, 114, 184, 0.35); }

.card-route-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  background: var(--sky-100);
  color: var(--navy-800);
}

.workforce-card h3 {
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--navy-900);
}

.card-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.card-chip {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--navy-800);
  background: rgba(22, 114, 184, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.workforce-card p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--ice-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms var(--ease-hover);
}

.card-action-btn:hover {
  background: var(--cobalt-600);
  color: #FFFFFF;
  border-color: var(--cobalt-600);
}

.card-action-btn span:last-child {
  transition: transform 150ms ease;
}

.card-action-btn:hover span:last-child {
  transform: translateX(4px);
}

/* ---------------- Process Section (Section 3 & 4) ---------------- */
.process {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  padding: 48px 0 72px;
}

.process-intro h2 {
  max-width: 440px;
  margin-bottom: 0;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-number {
  font-family: var(--font-mono);
  color: var(--cobalt-600);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-item h3 {
  margin-bottom: 6px;
  font-size: 20px;
  color: var(--navy-900);
}

.process-item p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------- Decreto Flussi Routes Section (Section 8) ---------------- */
.routes-section {
  background: var(--paper);
  padding: 80px 0 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .routes-grid {
    grid-template-columns: 1fr;
  }
}

.route-card {
  background: var(--ice-50);
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}

.route-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}

.route-card h3 {
  font-size: 22px;
  margin: 14px 0 10px;
  color: var(--navy-900);
}

.route-card p {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}

.route-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-points li {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.route-points li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

/* ---------------- ATECO Compact Explorer Teaser ---------------- */
.ateco-teaser-section {
  background: var(--ice-50);
  padding: 100px 0 110px;
}

.ateco-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.ateco-teaser-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.ateco-input-row {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.ateco-input-row input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  transition: border-color 160ms var(--ease-hover), box-shadow 160ms var(--ease-hover);
}

.ateco-input-row input:focus {
  border-color: var(--cobalt-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 142, 210, 0.18);
}

.ateco-live-box {
  background: var(--sky-100);
  border: 1px solid rgba(22, 114, 184, 0.20);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--navy-900);
}

/* ---------------- Contact & Forms Section (Section 10) ---------------- */
.contact-section {
  background: var(--paper);
  padding: 108px 0 120px;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 440px;
  margin-bottom: 0;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 400px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.contact-note {
  display: flex;
  gap: 10px;
  max-width: 380px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.contact-note > span:first-child {
  color: var(--cobalt-600);
  font-size: 18px;
  line-height: 1;
  flex: none;
}

/* ---------------- Form Surface (Section 8 & 10) ---------------- */
.form-card-login,
.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-form);
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}

.form-card-brand,
.login-brand {
  text-align: center;
  margin-bottom: 1.8rem;
}

.form-card-brand svg,
.login-brand svg {
  margin-bottom: 0.5rem;
}

.form-card-brand h2,
.login-brand h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.3rem 0 0.2rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.form-card-brand p,
.login-brand p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.form-role-badge {
  display: inline-block;
  background: var(--sky-100);
  color: var(--navy-800);
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem !important;
  border: 1px solid rgba(22, 114, 184, 0.20);
}

/* Segmented Control Tabs */
.admin-form-tabs {
  display: flex;
  gap: 8px;
  background: var(--ice-50);
  padding: 6px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.admin-form-tabs .form-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 160ms var(--ease-hover);
  text-align: center;
}

.admin-form-tabs .form-tab-btn:hover {
  color: var(--navy-900);
}

.admin-form-tabs .form-tab-btn.active {
  background: var(--navy-800);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 54, 83, 0.20);
}

.form-tab-panel {
  display: block;
}

.form-tab-panel[hidden] {
  display: none !important;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-field {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--navy-900);
}

.optional,
.form-field .optional {
  position: static !important;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 15px;
  background: #FFFFFF;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 160ms var(--ease-hover), box-shadow 160ms var(--ease-hover);
}

.form-field select {
  cursor: pointer;
}

.form-field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cobalt-500);
  box-shadow: 0 0 0 3px rgba(37, 142, 210, 0.18);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: var(--danger);
  background: #FDF1F1;
  box-shadow: 0 0 0 3px rgba(196, 81, 81, 0.15);
}

.field-error-msg {
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.field-error-msg:empty {
  display: none;
}

/* File Upload Dropzone */
.file-upload-block {
  border: 1.5px dashed var(--line);
  background: var(--ice-50);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
  transition: border-color 160ms var(--ease-hover), background-color 160ms var(--ease-hover);
}

.file-upload-block:hover,
.file-upload-block.dragover {
  border-color: var(--cobalt-500);
  background: #FFFFFF;
}

.file-upload-block input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
}

.file-upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Consent checkboxes */
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin: 18px 0 10px;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--cobalt-600);
}

.consent label {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.consent p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Operational Alerts */
.adm-alert {
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.adm-alert-success {
  background: #ECF7F1;
  color: var(--success);
  border: 1px solid var(--success);
}

.form-success-banner {
  text-align: center !important;
  padding: 32px 24px;
  background: #ECF7F1;
  color: var(--navy-900);
  border: 1px solid var(--success);
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}

.form-success-banner .success-icon {
  width: 52px;
  height: 52px;
  background: var(--success);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(46, 139, 109, 0.35);
}

.form-success-banner .success-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #145A32;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
}

.form-success-banner .success-body,
.form-success-banner p[data-success-body] {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #102A43;
  text-align: center;
}

.form-success-banner .success-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.success-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px;
  min-height: 50px;
  padding: 0 32px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  background: #25D366 !important;
  color: #07381E !important;
  border: 1px solid #20BA5A !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease !important;
}

.success-wa-btn:hover {
  background: #20BA5A !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45) !important;
}

.adm-alert-danger {
  background: #FDF1F1;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.form-card-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.form-card-footer a {
  color: var(--cobalt-600);
  font-weight: 600;
}

.form-card-footer a:hover {
  color: var(--cobalt-500);
}

/* ---------------- FAQ & Institutional Trust ---------------- */
.faq-section {
  padding: 100px 0 110px;
  background: var(--ice-50);
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-marker {
  color: var(--cobalt-600);
  font-size: 20px;
  font-weight: 700;
}

.faq-content {
  padding-bottom: 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
}

.trust-section {
  background: var(--paper);
  padding: 96px 0 104px;
  border-top: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  background: var(--ice-50);
  transition: transform 180ms var(--ease-hover), box-shadow 180ms var(--ease-hover);
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--cobalt-500);
}

.trust-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.trust-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.trust-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cobalt-600);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.trust-source-link:hover {
  color: var(--cobalt-500);
  transform: translateX(2px);
  text-decoration: underline;
}

/* ---------------- Modal Specification (Section 8) ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop-blur {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 36, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-drawer-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  width: min(1040px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  border-radius: var(--radius-modal);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ice-50);
}

.modal-head h2 {
  font-size: 24px;
  margin: 0;
  color: var(--navy-900);
}

.modal-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-wrap: wrap;
}

.modal-filter-bar input[type="search"] {
  flex: 1 1 240px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--ice-50);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
}

.modal-filter-bar input[type="search"]:focus {
  border-color: var(--cobalt-500);
  outline: none;
}

.modal-table-scroll {
  overflow-y: auto;
  padding: 16px 28px 24px;
}

.ateco-full-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}

.ateco-full-table th,
.ateco-full-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ateco-full-table th {
  background: var(--navy-900);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

.ateco-prefix-cell {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cobalt-600);
  font-weight: 600;
}

/* ---------------- Footer Specification (Section 2 & 5) ---------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 80px 0 40px;
  background: var(--navy-950);
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 500px;
}

.footer-legal {
  color: var(--sky-100);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.footer-contact strong {
  color: #FFFFFF;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-100);
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 180ms var(--ease-hover);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.admin-entry-link {
  color: var(--cobalt-500) !important;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.60);
}

/* ---------------- Cookie Banner ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  margin-inline: auto;
  z-index: 180;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-modal);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------------- Critical: 100% Content Visibility Guarantee ---------------- */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

[data-reveal].is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------- Responsive Breakpoints (Section 13) ---------------- */
#form-card-container,
.form-card-login,
.login-card {
  scroll-margin-top: 96px;
}

@media (max-width: 992px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }
  .site-header {
    overflow: visible !important;
  }
  .header-cta-btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--navy-900);
    border-bottom: 2px solid var(--cobalt-500);
    flex-direction: column;
    padding: 20px 28px;
    gap: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.40);
    z-index: 250;
  }
  .header-nav.is-open {
    display: flex !important;
  }
  .header-link {
    width: 100%;
    padding: 10px 0;
  }
  .header-wa-badge {
    display: none;
  }
  .hero-grid,
  .hero.shell {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 72px;
    gap: 48px;
  }
  .hero-spectrum-deck {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-deck-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ateco-teaser-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 576px) {
  :root {
    --shell: calc(100% - 28px);
  }
  #form-card-container,
  .form-card-login,
  .login-card {
    scroll-margin-top: 76px;
  }
  .site-header {
    height: 60px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .header-inner {
    gap: 8px;
    max-width: 100%;
    width: 100%;
  }
  .header-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }
  .brand-text {
    min-width: 0;
    overflow: hidden;
  }
  .brand-title {
    font-size: 15.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
    letter-spacing: 0.02em;
  }
  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }
  .language-switch {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .hero-fullbg-inner {
    padding: 38px 0 38px;
    width: calc(100% - 28px);
    max-width: 100%;
  }
  .hero-eyebrow-container {
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
  }
  .hero-eyebrow-badge,
  .hero-scope-pill {
    font-size: 11px;
    padding: 5px 12px;
    line-height: 1.35;
    max-width: 100%;
  }
  .hero-headline {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 16px;
    line-height: 1.25;
  }
  .hero-intro-text {
    font-size: 14.5px;
    padding: 16px 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    border-radius: 10px;
  }
  .hero-quick-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
  }
  .hero-btn-request,
  .hero-btn-whatsapp {
    width: 100%;
    height: 50px;
    font-size: 15.5px;
    padding: 0 16px;
  }
  .hero-spectrum-deck {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-actions-deck {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions-deck .button {
    width: 100%;
  }
  .hero-slide-dots {
    justify-content: center;
  }
  .slide-dot {
    font-size: 11px;
    padding: 5px 10px;
  }
  .workforce-card {
    flex: 0 0 78vw;
  }
  .ateco-teaser-card {
    padding: 20px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ateco-teaser-grid {
    gap: 28px;
    max-width: 100%;
  }
  .ateco-input-row {
    flex-direction: column;
    gap: 10px;
  }
  .ateco-input-row .button {
    width: 100%;
  }
  .button,
  .btn-adm {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .trust-source-link {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }
  .contact-section {
    padding: 60px 0 68px;
  }
  .form-card-login,
  .login-card {
    padding: 22px 16px;
  }
  .footer-grid {
    gap: 32px;
  }
  .footer-nav-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: 16px 18px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cookie-banner button {
    width: 100%;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-drawer-panel {
    max-height: 94vh;
    border-radius: var(--radius-card);
  }
  .modal-head {
    padding: 16px 18px 12px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .modal-filter-bar {
    padding: 12px 16px;
    gap: 10px;
  }
  .modal-table-scroll {
    padding: 12px 14px 18px;
  }
  section[id],
  div[id],
  article[id] {
    scroll-margin-top: 68px;
  }
}

