
/* ==========================================================
   E.B.Italy starter framework
   Palette derivata dalla bozza verde/arancio
   File: assets/css/style.css
   ========================================================== */

:root {
  --color-primary: #064e4a;
  --color-primary-2: #0f766e;
  --color-primary-3: #0d9488;
  --color-accent: #f97316;
  --color-accent-2: #ffb25f;
  --color-blue: #1d4ed8;
  --color-red: #e30613;
  --color-green-logo: #178b18;
  --color-dark: #0b1736;
  --color-title: #0f2f2d;
  --color-text: #344054;
  --color-muted: #667085;
  --color-border: #dfe7e5;
  --color-soft: #f6f8f4;
  --color-soft-2: #eef6f4;
  --color-white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1180px;
  --header-height: 94px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  color: var(--color-title);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(2.85rem, 6vw, 5.3rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
h4 { font-size: 1.2rem; }

ul, ol { margin-top: 0; }

/* Layout base ------------------------------------------------ */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}

.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 118px 0; }
.section-soft { background: var(--color-soft); }
.section-dark { background: var(--color-primary); color: rgba(255,255,255,0.78); }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--color-white); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 38px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 38px; }

/* Header ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(6, 78, 74, 0.10);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
}

.brand img {
  width: 148px;
  max-height: 76px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(6, 78, 74, 0.15);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-primary);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: var(--transition);
}

.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translate(1px, -1px); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-dark);
  font-size: 0.93rem;
  font-weight: 800;
}

.primary-nav a {
  position: relative;
  padding: 12px 0;
}

.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

/* Buttons ---------------------------------------------------- */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 16px 34px rgba(6, 78, 74, 0.22);
}

.btn-primary:hover { background: var(--color-primary-2); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.btn-accent:hover { background: #ea650d; }

.btn-outline {
  border-color: rgba(6, 78, 74, 0.18);
  color: var(--color-primary);
  background: var(--color-white);
}

.btn-outline:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--color-white);
}

.btn-sm { min-height: 38px; padding: 9px 15px; font-size: 0.88rem; }
.btn-lg { min-height: 56px; padding: 16px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn .arrow { font-size: 1.15em; line-height: 0; }

/* Typography helpers ---------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.lead {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading .lead { max-width: 670px; }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }

/* Hero home -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background:
    linear-gradient(105deg, rgba(6, 78, 74, 0.96) 0%, rgba(15, 118, 110, 0.90) 49%, rgba(15, 118, 110, 0.28) 100%),
    url('../img/hero-handshake.svg') center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 64px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 0 80px rgba(249, 115, 22, 0.06);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 58px;
  align-items: center;
  padding: 78px 0;
}

.hero h1 {
  max-width: 740px;
  color: var(--color-white);
}

.hero h1 span { color: #fed7aa; }

.hero .lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-panel {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(249, 115, 22, 0.30);
  border-radius: 30px;
  pointer-events: none;
}

.hero-panel > * { position: relative; z-index: 1; }

.hero-panel h2 {
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.check-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 15px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.11);
  color: var(--color-primary);
  font-weight: 950;
}

.panel-note {
  padding: 18px;
  border-radius: 20px;
  background: var(--color-soft-2);
  color: var(--color-muted);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
}

.trust-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.trust-card strong {
  display: block;
  color: #fed7aa;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

/* Placeholder hero SVG background --------------------------- */
/* Viene generato in assets/img/hero-handshake.svg */

/* Cards ------------------------------------------------------ */
.card {
  background: var(--color-white);
  border: 1px solid rgba(6, 78, 74, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body { padding: 26px; }
.card-lg .card-body { padding: 34px; }
.card:hover.card-hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-hover { transition: transform var(--transition), box-shadow var(--transition); }

.icon-box {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.icon-box svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.icon-box.accent { background: rgba(249, 115, 22, 0.12); color: var(--color-accent); }
.icon-box.blue { background: rgba(29, 78, 216, 0.10); color: var(--color-blue); }
.icon-box.red { background: rgba(227, 6, 19, 0.10); color: var(--color-red); }

.service-card { min-height: 245px; }
.service-card h3 { color: var(--color-primary); font-size: 1.22rem; }
.service-card p { color: var(--color-muted); font-size: 0.96rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 850;
  margin-top: 10px;
}

/* Mission / image blocks ------------------------------------ */
.split-box {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 52px;
  align-items: center;
}

.image-card {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6,78,74,.95), rgba(15,118,110,.65)), url('../img/office-abstract.svg') center/cover;
  box-shadow: var(--shadow-md);
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  color: var(--color-primary);
  font-weight: 850;
}

.feature-pill .icon-box {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  border-radius: 50%;
}

/* CTA -------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.23);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.cta-band h2,
.cta-band h3 { color: var(--color-white); }
.cta-band ul { margin: 0; padding-left: 19px; }
.cta-band li { margin: 4px 0; }

/* Page header ------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(249,115,22,0.16), transparent 30%),
    linear-gradient(135deg, var(--color-soft), #ffffff 64%);
  border-bottom: 1px solid rgba(6, 78, 74, 0.08);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.10);
}

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a { color: var(--color-primary); }

.page-hero h1 { max-width: 870px; margin-bottom: 18px; }
.page-hero .lead { max-width: 760px; }

/* Content pages --------------------------------------------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
  align-items: start;
}

.prose {
  font-size: 1.04rem;
}

.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--color-text); }
.prose blockquote {
  margin: 32px 0;
  padding: 26px 30px;
  border-left: 5px solid var(--color-accent);
  background: var(--color-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-primary);
  font-weight: 750;
}

.sidebar-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(6, 78, 74, 0.09);
  box-shadow: var(--shadow-sm);
}

.sidebar-card + .sidebar-card { margin-top: 20px; }
.sidebar-card h3 { font-size: 1.25rem; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-soft);
  color: var(--color-primary);
  font-weight: 800;
}
.sidebar-menu a:hover { background: var(--color-primary); color: var(--color-white); }

/* News / events --------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(6, 78, 74, 0.14);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 850;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.news-card .thumb,
.event-card .thumb {
  min-height: 190px;
  background: linear-gradient(135deg, rgba(6,78,74,.95), rgba(249,115,22,.55)), url('../img/pattern.svg') center/cover;
}

.news-meta,
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.primary { background: rgba(15,118,110,0.11); color: var(--color-primary); }
.badge.blue { background: rgba(29,78,216,0.10); color: var(--color-blue); }
.badge.red { background: rgba(227,6,19,0.10); color: var(--color-red); }

.event-date {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(6, 78, 74, 0.18);
}
.event-date strong { display: block; font-size: 1.85rem; }
.event-date span { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 850; text-transform: uppercase; }
.event-card .card-body { display: grid; grid-template-columns: auto 1fr; gap: 18px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid rgba(6, 78, 74, 0.12);
  color: var(--color-primary);
  font-weight: 850;
}
.pagination .is-active { background: var(--color-primary); color: var(--color-white); }

/* Components ------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.accordion-item {
  border: 1px solid rgba(6, 78, 74, 0.10);
  border-radius: 18px;
  background: var(--color-white);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-weight: 900;
  text-align: left;
}
.accordion-trigger::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-soft);
}
.accordion-item.is-open .accordion-trigger::after { content: "−"; background: var(--color-primary); color: var(--color-white); }
.accordion-panel { display: none; padding: 0 20px 20px; color: var(--color-muted); }
.accordion-item.is-open .accordion-panel { display: block; }

.tabs { margin-top: 28px; }
.tab-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn {
  border: 1px solid rgba(6, 78, 74, 0.13);
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 850;
}
.tab-btn.is-active { background: var(--color-primary); color: var(--color-white); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-item {
  min-height: 220px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15,118,110,.90), rgba(249,115,22,.52)), url('../img/pattern.svg') center/cover;
  box-shadow: var(--shadow-sm);
}

.module-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(6, 78, 74, 0.09);
  box-shadow: var(--shadow-sm);
}
.module-box.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: rgba(255, 255, 255, 0.78);
}
.module-box.highlight h3 { color: var(--color-white); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--color-primary); font-weight: 850; font-size: 0.92rem; }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(6, 78, 74, 0.16);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-text);
  outline: 0;
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-control:focus { border-color: var(--color-primary-2); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10); }

/* Footer ----------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 26px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.70);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
}
.footer-brand img { width: 160px; max-height: 86px; object-fit: contain; margin-bottom: 18px; }
.site-footer h4 { color: var(--color-white); letter-spacing: -0.02em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.11);
  color: var(--color-white);
  font-weight: 900;
}

/* Responsive ------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-height: 82px; }
  .brand img { width: 122px; max-height: 68px; }
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(6,78,74,0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  body.nav-open .primary-nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .primary-nav a { padding: 12px 14px; border-radius: 12px; }
  .primary-nav a:hover { background: var(--color-soft); }
  .primary-nav a::after { display: none; }
  .primary-nav .btn { justify-content: center; margin-top: 6px; }

  .hero-grid,
  .split-box,
  .content-layout,
  .services-split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-panel { max-width: 660px; }
  .section-heading { display: block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-card { position: static; }
  .cta-band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .container-narrow { width: min(100% - 28px, var(--container)); }
  .section { padding: 68px 0; }
  .hero-grid { padding: 60px 0; }
  .hero-actions, .filters { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .trust-row, .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .gallery, .form-grid { grid-template-columns: 1fr; }
  .feature-row { display: grid; grid-template-columns: 1fr; }
  .event-card .card-body { grid-template-columns: 1fr; }
  .event-date { width: 68px; height: 68px; }
  .cta-band { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

/* Extra CMS pages ------------------------------------------------ */
.article-content { color: var(--color-text); font-size: 1.08rem; }
.article-content p { margin-bottom: 1.15rem; }
.article-content a { color: var(--color-primary-2); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.article-content h2,
.article-content h3,
.article-content h4 { margin-top: 2rem; }
.content-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(15,118,110,.10);
  color: var(--color-primary);
}
.badge.red { background: rgba(227,6,19,.10); color: var(--color-red); }
.badge.blue { background: rgba(29,78,216,.10); color: var(--color-blue); }
.badge.primary { background: rgba(15,118,110,.10); color: var(--color-primary); }
.badge.accent { background: rgba(249,115,22,.12); color: var(--color-accent); }
.module-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-soft);
  border: 1px solid rgba(6,78,74,.09);
}
.thumb { background-size: cover; background-position: center; }
@media (max-width: 640px) {
  .filter-pills .btn { width: auto; }
}
