/* ============================================
   STT.IT – Design System & Homepage Styles
   WCAG 2.2 AA Compliant
   ============================================ */

/* ---------- 1. CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --color-brand:        #0a2540;
  --color-brand-mid:    #1e4080;
  --color-accent:       #0d6efd;
  --color-accent-dark:  #0b5ed7;
  --color-accent-light: #e8f0fe;

  /* Neutrals */
  --color-bg:           #ffffff;
  --color-bg-alt:       #f6f8fc;
  --color-text:         #1a1f2e;
  --color-text-muted:   #4a5568;
  --color-border:       #dde3ee;

  /* Semantic */
  --color-success:      #198754;
  --color-error:        #dc3545;
  --color-focus:        #0d6efd;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);
  --radius-sm:     0.375rem;
  --radius-md:     0.75rem;
  --radius-lg:     1.25rem;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,37,64,.08), 0 1px 2px rgba(10,37,64,.04);
  --shadow-md:  0 4px 16px rgba(10,37,64,.10), 0 2px 6px rgba(10,37,64,.06);
  --shadow-lg:  0 12px 40px rgba(10,37,64,.14), 0 4px 12px rgba(10,37,64,.08);

  /* Transitions */
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Respect user preferences (WCAG 2.2 / prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .graphic-ring {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 3. Accessibility Utilities ---------- */

/* Skip Link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--space-4);
}

/* Screen reader only text (WCAG 1.3.1) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible (WCAG 2.4.11, 2.4.12) */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. Layout Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-24);
}

.text-center { text-align: center; }

/* ---------- 5. Typography Scale ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.section-header {
  margin-bottom: var(--space-12);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  /* WCAG 2.5.8: min touch target 24×24 px */
  min-height: 44px;
}

.btn-sm { padding: 0.375rem 1rem; font-size: var(--text-sm); min-height: 36px; }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--text-lg); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(13,110,253,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  color: var(--color-accent);

}

.btn-white {
  background: #fff;
  color: var(--color-brand);
  border-color: #fff;
}
.btn-white:hover, .btn-white:focus-visible {
  background: var(--color-accent-light);
  box-shadow: 0 4px 14px rgba(255,255,255,.3);
  transform: translateY(-1px);
}

/* ---------- 7. Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar { padding-block: var(--space-4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-mark {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -.02em;
}
.logo-tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--color-brand);
  background: var(--color-bg-alt);
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.nav-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- 8. Hero ---------- */
.hero {
  background: linear-gradient(145deg, var(--color-brand) 0%, var(--color-brand-mid) 60%, #1a5fb4 100%);
  color: #fff;
  padding-block: var(--space-24) calc(var(--space-24) + 40px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-3);
}

.hero-heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: #fff;
}
.hero-heading em {
  font-style: normal;
  color: #60b0ff;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.8);
  max-width: 50ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero Graphic */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  position: relative;
  width: 340px;
  height: 340px;
}

.graphic-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  animation: pulse-ring 3s ease-in-out infinite;
}
.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: .6s; border-style: dashed; }
.ring-3 { width: 340px; height: 340px; animation-delay: 1.2s; }

@keyframes pulse-ring {
  0%,100% { opacity: .15; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.graphic-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(96,176,255,.8);
}
.node-a { top: 20%; left: 50%; transform: translate(-50%,-50%); }
.node-b { top: 50%; right: 8%;  transform: translateY(-50%); }
.node-c { bottom: 20%; left: 50%; transform: translate(-50%,50%); }
.node-d { top: 50%; left: 8%;  transform: translateY(-50%); }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ---------- 9. Trust Bar ---------- */
.trust-bar {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.trust-label {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.logo-placeholder {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  filter: grayscale(1);
  opacity: .6;
  transition: opacity var(--transition); 
}
.logo-placeholder:hover { opacity: 1; }

/* ---------- 10. Services ---------- */
.services { background: var(--color-bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.service-link:hover { color: var(--color-accent-dark); }

.service-card--cta {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-mid) 100%);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
}
.service-cta-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ---------- 11. Stats ---------- */
.stats {
  background: var(--color-brand);
  padding-block: var(--space-16);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-8);
  text-align: center;
  justify-content: center;
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }

.stat-number {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-base);
  color: rgba(255,255,255,.65);
}

/* ---------- 12. About ---------- */
.about { background: var(--color-bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder svg { width: 100%; height: auto; display: block; }

.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-badge {
position: absolute;
  bottom: var(--space-6);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: translateX(var(--space-6));
}
.badge-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
}
.badge-text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-block: var(--space-6);
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.value-icon {
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- 13. Case Studies ---------- */
.brand { background: var(--color-bg-alt); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--space-6);
}

.case-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.case-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
}

.case-img img{margin-top: 2vw;}
.case-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: #f4f4f4;
  color: 0a2540;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.case-body { 
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  height: 100%;
}

.case-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.case-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.case-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top:40px;
}

/* ---------- 14. Testimonials ---------- */
.testimonials { background: var(--color-bg); }

.testimonials-track { position: relative; min-height: 180px; margin-bottom: var(--space-8); }

.testimonial-card {
  display: none;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  max-width: 720px;
  margin: 0 auto;
}
.testimonial-card.active { display: block; }

.testimonial-quote p {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-6);
}
.testimonial-quote p::before { content: '\201C'; }
.testimonial-quote p::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--color-brand);
}
.author-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition), transform var(--transition);
  /* WCAG 2.5.8 – min 24px touch target via padding */
  padding: 6px;
  width: 24px;
  height: 24px;
  background-clip: content-box;
}
.t-btn.active, .t-btn[aria-pressed="true"] {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ---------- 15. CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, #0b5ed7 100%);
  padding-block: var(--space-16);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
}
.cta-sub {
  color: rgba(255,255,255,.8);
  font-size: var(--text-lg);
}

/* ---------- 16. Contact ---------- */
.contact { background: var(--color-bg-alt); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-sub {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-details { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-muted);
}
.contact-detail--labeled {
  flex-direction: column;
  gap: var(--space-1);
}
.contact-detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.sub-label {
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.contact-form-wrap {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.required { color: var(--color-error); margin-left: 2px; }

.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  /* WCAG 2.5.8 – min 44px height */
  min-height: 44px;
}
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13,110,253,.2);
  outline: none;
}
.form-input.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,53,69,.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-check-group {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.form-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-accent);
  margin-top: 2px;
}
.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  flex: 1;
}
.form-link {
  color: var(--color-accent);
  text-decoration: underline;
}
.cf-turnstile {
  margin-bottom: var(--space-4);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
  min-height: 1em;
}

.form-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
  display: none;
}
.form-status.success {
  display: block;
  background: #d1e7dd;
  color: #0a3622;
}
.form-status.error {
  display: block;
  background: #f8d7da;
  color: #58151c;
}

/* ---------- 17. Job / Careers Page ---------- */
.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 800px;
  margin-inline: auto;
}

.job-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.job-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
}

.job-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-1);
}

.job-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.job-body {
  padding: var(--space-6);
}

.job-desc {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.job-req-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.job-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.job-req-list li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.job-req-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.job-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

@media (max-width: 600px) {
  .job-card-header { flex-direction: column; }
}

/* ---------- 18. Legal Pages (privacy, termini, accessibilità) ---------- */
.legal-content {
  max-width: 72ch;
  margin-inline: auto;
}

.legal-article {
  margin-bottom: var(--space-12);
}

.legal-heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.legal-article p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.legal-article ul,
.legal-article ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-article ol  { list-style: decimal; }
.legal-article li  { margin-bottom: var(--space-2); }

.legal-article a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-article a:hover { color: var(--color-accent-dark); }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--color-brand);
  color: rgba(255,255,255,.8);
  padding-top: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

.footer-logo .logo-mark { color: #fff; font-size: var(--text-2xl); }
.footer-tagline {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  color: rgba(255,255,255,.6);
  max-width: 28ch;
}

/* Solcial Links
.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.social-link:hover, .social-link:focus-visible {
  background: var(--color-accent);
  color: #fff;
}
 */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--space-8);
}
.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-link:hover, .footer-link:focus-visible { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-badge   { transform: none; right: var(--space-4); }
  .stats-grid    { grid-template-columns: repeat(2,2fr); gap: var(--space-12); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --container-pad: var(--space-4); }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { justify-content: flex-start; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-heading { font-size: var(--text-3xl); }

  /* Grids */
  .services-grid  { grid-template-columns: 1fr; }
  .cases-grid     { grid-template-columns: 1fr; }
  .about-inner    { grid-template-columns: 1fr; }
  .about-visual   { order: 2; }
  .about-values   { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav   { grid-template-columns: repeat(2,1fr); }

  .cta-inner    { flex-direction: column; text-align: center; }
  .form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-nav   { grid-template-columns: 1fr; }
  .hero-cta     { flex-direction: column; }
}

/* ---------- 19. High-contrast mode support ---------- */
@media (forced-colors: active) {
  .btn-primary, .btn-outline, .btn-white { border: 2px solid ButtonText; }
  .service-card, .case-card, .testimonial-card { border: 1px solid ButtonText; }
}

/* ---------- 20. Chi Siamo Page ---------- */

/* Nav active state */
.nav-link--active {
  color: var(--color-accent) !important;
  font-weight: 600;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(145deg, var(--color-brand) 0%, var(--color-brand-mid) 60%, #1a5fb4 100%);
  color: #fff;
  padding-block: var(--space-24) calc(var(--space-16) + 40px);
  position: relative;
  text-align: center;
}
.page-hero-inner {
  max-width: 720px;
  margin-inline: auto;
}
.page-hero-heading {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  margin-block: var(--space-4) var(--space-6);
}
.page-hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin-inline: auto;
}

/* Values grid – 3 card box */
.cs-values { background: var(--color-bg-alt); }
.cs-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.cs-value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cs-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cs-value-card--accent {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.cs-value-card--accent .cs-value-text { color: rgba(255,255,255,.82); }
.cs-value-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.cs-value-card--accent .cs-value-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.cs-value-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.cs-value-card--accent .cs-value-title { color: #fff; }
.cs-value-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Timeline */
.cs-timeline-section { background: var(--color-bg); }
.cs-timeline {
  position: relative;
  list-style: none;
  margin-top: var(--space-12);
  padding-left: var(--space-6);
}
.cs-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-brand-mid));
  border-radius: 2px;
}
.cs-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-12);
  padding-left: var(--space-8);
}
.cs-timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.cs-timeline-year {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: 2px;
}
.cs-timeline-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.cs-timeline-body p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Team grid */
.cs-team { background: var(--color-bg-alt); }
.cs-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.cs-team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cs-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs-team-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-team-role {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.cs-team-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-values-grid,
  .cs-team-grid { grid-template-columns: 1fr; }
  .cs-timeline-item { grid-template-columns: 60px 1fr; }
}
@media (max-width: 480px) {
  .cs-timeline-item { grid-template-columns: 1fr; padding-left: var(--space-6); }
  .cs-timeline-year { font-size: var(--text-xs); }
}

/* ---------- 21. Print ---------- */
@media print {
  .site-header, .hero-visual, .cta-band, .testimonials, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; }
}
