:root {
  --red: #C62828;
  --red-bright: #D63031;
  --red-deep: #8B1A1A;
  --red-light: #FDEAEA;
  --red-glow: rgba(198, 40, 40, 0.08);

  --gray-900: #1A1A2E;
  --gray-800: #2D2D44;
  --gray-700: #4A4A5A;
  --gray-500: #7B7B8E;
  --gray-400: #9E9EAE;
  --gray-300: #C4C4D0;
  --gray-200: #E2E2EA;
  --gray-100: #F1F1F6;
  --gray-50: #F8F8FB;
  --white: #FFFFFF;

  --teal: #0097B2;
  --teal-light: #E6F7FA;

  --on-dark: rgba(255,255,255,0.85);
  --on-dark-secondary: rgba(255,255,255,0.6);
  --on-dark-muted: rgba(255,255,255,0.45);
  --on-dark-border: rgba(255,255,255,0.08);
  --on-dark-surface: rgba(255,255,255,0.06);
  --on-dark-surface-hover: rgba(255,255,255,0.1);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a, button, input, textarea, select { touch-action: manipulation; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 16px 0;
  transition: all 0.4s ease;
  background: rgba(255,255,255,0);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 8px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
#navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img {
  height: 60px; width: auto; object-fit: contain;
  transition: all 0.4s ease;
}
#navbar.scrolled .nav-logo-img { height: 40px; }

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--gray-700); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.3s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 700; }
.nav-links a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.btn-primary:focus-visible, .nav-cta:focus-visible, .cookie-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.menu-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

.lang-switch {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 100px; padding: 3px; display: flex; gap: 2px;
}
.lang-btn {
  background: none; border: none; color: var(--gray-500);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  padding: 10px 16px; min-height: 44px; min-width: 44px;
  border-radius: 100px; cursor: pointer; transition: all 0.3s;
  touch-action: manipulation;
}
.lang-btn.active { background: var(--red); color: var(--white); }

.nav-links a.nav-cta {
  background: var(--red); color: var(--white);
  padding: 10px 24px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s; display: none;
}
.nav-links a.nav-cta:hover { background: var(--red-bright); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(198,40,40,0.25); }
#navbar.scrolled .nav-cta { display: inline-flex; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--gray-900);
  position: absolute; left: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center;
  padding-top: 100px; position: relative; overflow: hidden;
  background: linear-gradient(175deg, var(--white) 0%, var(--gray-50) 60%, var(--red-light) 100%);
}

/* Decorative spheres mimicking logo */
.sphere {
  position: absolute; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 30% 30%, #FF6B6B, #C62828 60%, #8B1A1A);
  opacity: 0.12;
}
.sphere-1 { width: 400px; height: 400px; right: -80px; top: 10%; animation: floatSphere 20s ease-in-out infinite; }
.sphere-2 { width: 220px; height: 220px; right: 15%; top: 55%; opacity: 0.08; animation: floatSphere 15s ease-in-out infinite reverse; }
.sphere-3 { width: 120px; height: 120px; right: 28%; top: 20%; opacity: 0.06; animation: floatSphere 12s ease-in-out infinite 3s; }
.sphere-4 { width: 80px; height: 80px; left: -20px; bottom: 20%; opacity: 0.05; animation: floatSphere 18s ease-in-out infinite 5s; }

@keyframes floatSphere {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.04); }
  66% { transform: translate(-15px, 10px) scale(0.96); }
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-content { max-width: 560px; }



.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-glow); border: 1px solid rgba(198,40,40,0.12);
  border-radius: 100px; padding: 7px 18px;
  font-size: 0.8rem; font-weight: 600; color: var(--red);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.08s forwards; opacity: 0;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -1.5px;
  color: var(--gray-900); margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.16s forwards; opacity: 0;
}
.hero h1 .highlight { color: var(--red); }
.hero p {
  font-size: 1.15rem; color: var(--gray-500); max-width: 480px;
  line-height: 1.7; margin-bottom: 36px;
  animation: fadeUp 0.6s ease 0.24s forwards; opacity: 0;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.32s forwards; opacity: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 16px 34px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-bright); transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(198,40,40,0.28);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--gray-900);
  padding: 16px 34px; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--gray-200); transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.3s; }
.btn-primary:hover .btn-arrow, .btn-outline:hover .btn-arrow { transform: translateX(4px); }

/* Hero right — visual card grid */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  animation: fadeUp 0.8s ease 0.3s forwards; opacity: 0;
}
.hero-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--shadow-card); transition: all 0.3s;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-card-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: var(--red); line-height: 1;
}
.hero-card-num.teal { color: var(--teal); }
.hero-card-label {
  font-size: 0.82rem; color: var(--gray-500); margin-top: 6px; font-weight: 500;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 60px; }
.section-label {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.12;
  color: var(--gray-900); max-width: 580px;
}
.section-subtitle {
  color: var(--gray-500); font-size: 1.05rem; line-height: 1.7;
  max-width: 520px; margin-top: 14px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/servizi.webp') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}
.services > .container {
  position: relative;
  z-index: 1;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all 0.35s ease; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198,40,40,0.15);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon.red { background: var(--red-light); color: var(--red); }
.service-icon.teal { background: var(--teal-light); color: var(--teal); }

.service-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px; color: var(--gray-900);
}
.service-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.65; }

/* ===== CERTIFICATIONS ===== */
.certifications {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.cert-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF6B6B, #C62828 60%, #8B1A1A);
  opacity: 0.12;
  z-index: 0;
}
.cert-sphere-1 { width: 300px; height: 300px; left: -60px; top: -40px; animation: floatSphere 18s ease-in-out infinite; }
.cert-sphere-2 { width: 200px; height: 200px; right: -40px; bottom: 10%; opacity: 0.09; animation: floatSphere 15s ease-in-out infinite reverse; }
.cert-sphere-3 { width: 120px; height: 120px; right: 20%; top: 15%; opacity: 0.07; animation: floatSphere 12s ease-in-out infinite 2s; }
.cert-sphere-4 { width: 80px; height: 80px; left: 30%; bottom: -20px; opacity: 0.06; animation: floatSphere 16s ease-in-out infinite 4s; }
.certifications > .container {
  position: relative;
  z-index: 1;
}
.cert-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cert-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: all 0.3s;
}
.cert-item:hover { box-shadow: var(--shadow-md); }
.cert-icon { font-size: 2.2rem; margin-bottom: 14px; }
.cert-item h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  color: var(--red); margin-bottom: 4px;
}
.cert-item h4 {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 10px;
}
.cert-item p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; }

/* ===== CASES ===== */
.cases {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/codice2.webp') center/cover no-repeat;
  opacity: 0.20;
  z-index: 0;
}
.cases > .container {
  position: relative;
  z-index: 1;
}
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }

.case-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; transition: all 0.35s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-header {
  padding: 28px 28px 20px; border-bottom: 1px solid var(--gray-100);
}
.case-tag {
  display: inline-block; background: var(--red-light); color: var(--red);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.case-header h3 {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 8px;
}
.case-header p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.6; }

.case-metrics {
  display: flex; padding: 20px 28px; gap: 0;
}
.case-metric {
  flex: 1; text-align: center;
  padding: 0 8px;
}
.case-metric + .case-metric { border-left: 1px solid var(--gray-200); }
.case-metric-val {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  color: var(--red); line-height: 1;
}
.case-metric-val.teal { color: var(--teal); }
.case-metric-label { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; font-weight: 500; }

/* ===== COMPETENCES ===== */
.competences {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.comp-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF6B6B, #C62828 60%, #8B1A1A);
  opacity: 0.12;
  z-index: 0;
}
.comp-sphere-1 { width: 280px; height: 280px; right: -50px; top: -30px; animation: floatSphere 17s ease-in-out infinite; }
.comp-sphere-2 { width: 180px; height: 180px; left: -40px; bottom: 10%; opacity: 0.09; animation: floatSphere 14s ease-in-out infinite reverse; }
.comp-sphere-3 { width: 100px; height: 100px; left: 25%; top: 20%; opacity: 0.07; animation: floatSphere 13s ease-in-out infinite 3s; }
.comp-sphere-4 { width: 70px; height: 70px; right: 25%; bottom: -10px; opacity: 0.06; animation: floatSphere 15s ease-in-out infinite 5s; }
.competences > .container {
  position: relative;
  z-index: 1;
}
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-item {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 24px 18px; text-align: center;
  transition: all 0.3s;
}
.comp-item:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.comp-item-icon { margin-bottom: 10px; color: var(--red); }
.comp-item h4 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 6px;
}
.comp-item p { color: var(--gray-500); font-size: 0.82rem; line-height: 1.5; }

/* ===== ABOUT ===== */
.about {
  background: var(--gray-900); color: var(--white);
  position: relative; overflow: hidden;
}
.about::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  border-radius: 50%; right: -100px; top: -100px;
  background: radial-gradient(circle, rgba(198,40,40,0.2), transparent 70%);
}
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  position: relative; z-index: 1;
}
.about-text .section-label { color: var(--red-bright); }
.about-text h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.12; margin-bottom: 20px;
}
.about-text p { color: var(--on-dark-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 14px; }

.about-partners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.partner-card {
  background: var(--on-dark-surface); border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-sm); padding: 24px; text-align: center;
  transition: all 0.3s;
}
.partner-card:hover { background: var(--on-dark-surface-hover); }
.partner-name {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
  color: var(--red-bright); line-height: 1; margin-bottom: 6px;
}
.partner-label { font-size: 0.82rem; color: var(--on-dark-muted); font-weight: 500; }

/* ===== CONTACT ===== */
.contact {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/mappa.webp') center/cover no-repeat;
  opacity: 0.10;
  z-index: 0;
}
.contact-wrapper {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.contact-info h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800; margin-bottom: 16px;
}
.contact-info > p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--red-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-detail-text { font-size: 0.9rem; color: var(--gray-500); }
.contact-detail-text strong { display: block; color: var(--gray-900); font-weight: 600; margin-bottom: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group textarea {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 13px 16px;
  color: var(--gray-900); font-family: var(--font-body); font-size: 0.9rem;
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.08);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-message {
  display: none; padding: 12px 16px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500; margin-top: 4px;
}
.form-message.error { display: block; background: var(--red-light); color: var(--red-deep); }
.form-message.success { display: block; background: #e6f7f1; color: #0a7b5a; }
.recaptcha-notice { font-size: 0.75rem; color: var(--gray-400); line-height: 1.5; margin-top: 4px; }
.recaptcha-notice a { color: var(--gray-500); text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900); color: var(--on-dark-secondary);
  padding: 48px 0;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 32px; margin-bottom: 24px;
  border-bottom: 1px solid var(--on-dark-border);
  flex-wrap: wrap; gap: 24px;
}
.footer-brand p { color: var(--on-dark-secondary); font-size: 0.88rem; margin-top: 12px; max-width: 320px; line-height: 1.6; }
.footer-logo {
  height: 44px; width: auto;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.footer-links-grid { display: flex; gap: 48px; }
.footer-links-col h4 {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  color: var(--on-dark); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-links-col a {
  display: block; color: var(--on-dark-secondary); text-decoration: none;
  font-size: 0.88rem; margin-bottom: 8px; transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.78rem;
}
.footer-bottom a { color: var(--on-dark-secondary); text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--white); }

/* ===== SKIP LINK ===== */
.skip-to-main {
  position: absolute; top: -100%; left: 16px;
  background: var(--red); color: var(--white);
  padding: 12px 24px; border-radius: 0 0 8px 8px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  z-index: 10000; transition: top 0.2s;
}
.skip-to-main:focus { top: 0; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .services-grid, .cert-strip, .cases-grid, .comp-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer-links-grid { flex-direction: column; gap: 24px; }

}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.85rem; }
  .hero { padding: 100px 0 56px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .contact-wrapper { padding: 24px 16px; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-inner { padding: 0 16px; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* Footer LinkedIn */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-linkedin:hover { color: #0A66C2; }
.footer-linkedin svg { flex-shrink: 0; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.cookie-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.cookie-text p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 4px;
}
.cookie-policy-link {
  font-size: 0.82rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.cookie-policy-link:hover { text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  touch-action: manipulation;
}
.cookie-btn-accept {
  background: var(--red);
  color: var(--white);
}
.cookie-btn-accept:hover {
  background: var(--red-bright);
  box-shadow: 0 4px 15px rgba(198,40,40,0.25);
}
@media (max-width: 768px) {
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--red); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  transform: translateY(12px);
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--red-deep); transform: translateY(-2px);
}
.back-to-top svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-badge, .hero h1, .hero p, .hero-cta, .hero-visual { opacity: 1; transform: none; }
}

/* ===== LANGUAGE SWITCH (links) ===== */
.nav-links a.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 0.78rem; font-weight: 700; text-decoration: none;
}
.nav-links a.lang-btn:hover { color: var(--red); }
.nav-links a.lang-btn.active, .nav-links a.lang-btn.active:hover { color: var(--white); }

/* ===== CARD LINKS (home + inner pages) ===== */
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--red); font-weight: 700; font-size: 0.88rem; text-decoration: none;
}
.card-link:hover .btn-arrow, .link-card:hover .btn-arrow { transform: translateX(4px); }
.card-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.case-header .card-link { margin-top: 12px; }

/* ===== INNER PAGES ===== */
.page-hero {
  position: relative; overflow: hidden;
  padding: 150px 0 64px;
  background: linear-gradient(175deg, var(--white) 0%, var(--gray-50) 60%, var(--red-light) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--gray-500); margin-bottom: 28px;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--gray-700); font-weight: 600; }
.page-hero-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-hero-badge .service-icon { margin-bottom: 0; }
.page-hero-badge .case-tag { margin-bottom: 0; }
.page-logo { height: 48px; width: auto; }
.page-logo.round { border-radius: 30%; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px;
  color: var(--gray-900); max-width: 860px;
}
.page-lead {
  font-size: 1.15rem; color: var(--gray-700); line-height: 1.7;
  max-width: 760px; margin-top: 18px;
}
.page-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.page-metrics .hero-card { min-width: 150px; padding: 22px 24px; }
.hero-cta-static { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.page-body { padding: 80px 0 96px; background: var(--white); }
.page-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px; align-items: start;
}
.prose { max-width: 740px; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.4px; line-height: 1.25; color: var(--gray-900);
  margin: 44px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.06rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 16px; }
.prose ul { list-style: none; margin: 4px 0 20px; }
.prose li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 1.04rem; color: var(--gray-700); line-height: 1.7;
}
.prose li::before {
  content: ''; position: absolute; left: 4px; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.prose strong { color: var(--gray-900); font-weight: 700; }

.page-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px;
}
.aside-card h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 14px;
}
.aside-cta { background: var(--gray-900); border-color: var(--gray-900); }
.aside-cta h2 { color: var(--white); font-size: 1.2rem; line-height: 1.3; }
.aside-cta p { color: var(--on-dark-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 22px; }
.aside-cta .btn-primary { padding: 14px 26px; }
.aside-links a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: color 0.2s;
}
.aside-links a:last-child { border-bottom: none; padding-bottom: 0; }
.aside-links a:hover { color: var(--red); }

.related-band { padding: 88px 0; background: var(--gray-50); }
.related-band .section-title { margin-bottom: 36px; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 30px 26px;
  text-decoration: none; color: inherit; transition: all 0.3s;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(198,40,40,0.15); }
.link-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.link-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 8px;
}
.link-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.link-card .card-link { margin-top: 18px; }

.page-hero-404 { min-height: 70vh; display: flex; align-items: center; }

@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-aside { position: static; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 48px; }
  .page-body { padding: 56px 0 72px; }
  .related-band { padding: 64px 0; }
  .link-grid { grid-template-columns: 1fr; }
  .page-metrics .hero-card { min-width: 0; flex: 1 1 40%; }
}
@media (max-width: 480px) {
  .page-lead { font-size: 1rem; }
  .prose p, .prose li { font-size: 1rem; }
}
