@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --bg: #f3f4f6;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #101216;
  --muted: #4c5564;
  --accent: #005bbb;
  --accent-2: #1d7cf2;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 50px rgba(16, 18, 22, 0.12);
  --radius: 18px;

  /* Colori tag */
  --red-bg: rgba(0, 91, 187, 0.12);
  --red-fg: #0a3f86;
  --blue-bg: rgba(37, 99, 235, 0.12);
  --blue-fg: #1e40af;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --yellow-fg: #92400e;
  --green-bg: rgba(16, 185, 129, 0.12);
  --green-fg: #065f46;
  --purple-bg: rgba(124, 58, 237, 0.12);
  --purple-fg: #5b21b6;
  --cyan-bg: rgba(6, 182, 212, 0.12);
  --cyan-fg: #0e7490;
  --lilac-bg: rgba(167, 139, 250, 0.12);
  --lilac-fg: #6d28d9;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --orange-fg: #9a3412;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

p {
  line-height: 1.65;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: #222a34;
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  letter-spacing: 0.4px;
}

.brand img {
  height: 44px;
  max-width: min(34vw, 320px);
  width: auto;
}

.brand span {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    120deg,
    rgba(0, 91, 187, 0.16),
    rgba(29, 124, 242, 0.08)
  );
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition:
    transform 0.2s ease,
    border 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.25);
}

.group-banner {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 91, 187, 0.14);
}

.group-banner-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #005bbb;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.group-banner-inner img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 126px);
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -24%;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("../hero-nuovo-test.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::after {
  content: none;
}

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

.hero + .hero {
  padding-top: 30px;
}

.hero-variant-title {
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 580px);
  gap: 32px;
  align-items: center;
}

.hero-grid.alt {
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
}

h1 {
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  margin: 12px 0 18px;
  color: #ffffff;
}

.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background: rgb(254, 211, 54);
  color: #101216;
  box-shadow: 0 10px 30px rgba(254, 211, 54, 0.32);
}

.btn-secondary {
  border-color: rgba(254, 211, 54, 0.55);
  color: #101216;
  background: rgb(254, 211, 54);
}

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

.hero-visual {
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.02),
    rgba(255, 255, 255, 0.6)
  );
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 180%;
  object-fit: cover;
  border-radius: 18px;
  filter: contrast(1.05) brightness(1.02);
}

.hero-visual::after {
  content: none;
}

.hero-visual.full-bleed {
  padding: 0;
  border-radius: 28px;
  min-height: 380px;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-visual.full-bleed img {
  border-radius: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-split {
  display: grid;
  gap: 22px;
}

.hero-visual.tall {
  min-height: 420px;
}

.hero-visual.tall img {
  object-position: center 20%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px;
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.35);
  color: #ffffff;
}

.metric strong {
  font-size: 22px;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}

section {
  padding: 70px 0;
}

#prodotti {
  background-color: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
}

.history-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.history-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  align-items: center;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}

.history-row.reverse .history-media {
  order: 2;
}

.history-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.history-content h3 {
  margin: 12px 0 10px;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 24px;
}

.history-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.storia-split {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-split-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.history-split-title {
  position: sticky;
  top: 110px;
  align-self: start;
}

.history-split-title .section-title {
  margin: 0;
}

.history-split-list {
  display: grid;
  gap: 24px;
}

.history-split-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.history-split-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.history-split-content {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.history-split-content h3 {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 24px;
}

.history-split-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 160%;
}

.history-gallery-band {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 54px;
  padding-bottom: 24px;
}

.timeline-title {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
}

.timeline-wrap {
  margin-top: 28px;
}

.history-gallery-rail-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.history-gallery-shell {
  position: relative;
}

.history-strip-controls {
  display: none;
}

.history-strip-arrow {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.94);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 18, 22, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.history-strip-arrow:hover:not(:disabled),
.history-strip-arrow:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(16, 18, 22, 0.2);
}

.history-strip-arrow:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.pdf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.pdf-gallery.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.pdf-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(16, 18, 22, 0.12);
  display: grid;
  gap: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pdf-card:hover,
.pdf-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(16, 18, 22, 0.16);
}

.pdf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.pdf-card h4 {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 15px;
}

.pdf-card span {
  color: var(--muted);
  font-size: 12px;
}

.history-gallery-band .pdf-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 22px);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 2px;
  padding-right: 0;
  padding-bottom: 64px;
  padding-left: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.history-gallery-band .pdf-strip-spacer {
  flex: 0 0 136px;
  pointer-events: none;
  scroll-snap-align: none;
}

.history-gallery-band .pdf-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.history-gallery-band .pdf-tile {
  flex: 0 0 clamp(176px, 13vw, 230px);
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  aspect-ratio: 61 / 102;
  scroll-snap-align: start;
  background: #f0eeeb;
  box-shadow: 0 14px 36px rgba(16, 18, 22, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.history-gallery-band .pdf-tile:hover,
.history-gallery-band .pdf-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(16, 18, 22, 0.18);
}

.history-gallery-band .pdf-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #f0eeeb;
}

.history-gallery-band .pdf-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(16, 18, 22, 0.74);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

@media (min-width: 821px) {
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(0, 91, 187, 0.95) 0%,
      rgba(0, 91, 187, 0.95) 35%,
      rgba(0, 91, 187, 0) 65%
    );
    z-index: 0;
  }

  .history-gallery-shell .history-strip-controls {
    display: contents;
  }

  .history-gallery-shell .history-strip-arrow {
    position: absolute;
    top: 41%;
    z-index: 2;
  }

  .history-gallery-shell .history-strip-arrow-prev {
    left: clamp(16px, 2vw, 34px);
  }

  .history-gallery-shell .history-strip-arrow-next {
    right: clamp(16px, 2vw, 34px);
  }

  .history-gallery-shell .pdf-strip {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 18, 22, 0.35) rgba(16, 18, 22, 0.08);
  }

  .history-gallery-shell .pdf-strip::-webkit-scrollbar {
    display: block;
    width: 10px;
    height: 10px;
  }

  .history-gallery-shell .pdf-strip::-webkit-scrollbar-track {
    background: rgba(16, 18, 22, 0.08);
    border-radius: 999px;
  }

  .history-gallery-shell .pdf-strip::-webkit-scrollbar-thumb {
    background: rgba(16, 18, 22, 0.35);
    border-radius: 999px;
  }
}

.pdf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.8);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 2000;
}

.pdf-lightbox.is-open {
  display: grid;
}

.pdf-lightbox-card {
  width: min(1280px, 96vw);
  height: 92vh;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  position: relative;
}

.pdf-lightbox-card:focus {
  outline: none;
}

.pdf-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8f6f3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: var(--muted);
}

.pdf-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-lightbox-actions button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.pdf-lightbox-body {
  position: relative;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.pdf-lightbox-body img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  cursor: zoom-in;
}

.pdf-lightbox-body.is-zoomed {
  overflow: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.pdf-lightbox-body.is-zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.pdf-lightbox[data-variant="B"] .pdf-lightbox-card {
  grid-template-rows: 1fr auto;
}

.pdf-lightbox[data-variant="B"] .pdf-lightbox-header {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
}

.pdf-lightbox[data-variant="C"] .pdf-lightbox-card {
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr;
}

.pdf-lightbox[data-variant="C"] .pdf-lightbox-header {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
}

.pdf-lightbox[data-variant="C"] .pdf-lightbox-body {
  height: 100%;
}

.pdf-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.pdf-mosaic a {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 90px;
  background: #fff;
}

.pdf-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-mosaic span {
  position: absolute;
  inset: auto 8px 8px 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pdf-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 18, 22, 0.1);
}

.pdf-list img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pdf-list h4 {
  margin: 0 0 4px;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 14px;
}

.pdf-list span {
  font-size: 12px;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.story-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card span {
  color: var(--accent);
  font-size: 13px;
}

.story-card h3 {
  margin: 10px 0 8px;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}

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

.product-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(16, 18, 22, 0.18);
}

.product-card img {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #eceff2, #f5f6f7);
}

.product-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-bg);
  color: var(--red-fg);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Varianti colore */
.tag.red {
  background: var(--red-bg);
  color: var(--red-fg);
}

.tag.blue {
  background: var(--blue-bg);
  color: var(--blue-fg);
}

.tag.yellow {
  background: var(--yellow-bg);
  color: var(--yellow-fg);
}

.tag.green {
  background: var(--green-bg);
  color: var(--green-fg);
}

.tag.purple {
  background: var(--purple-bg);
  color: var(--purple-fg);
}

.tag.cyan {
  background: var(--cyan-bg);
  color: var(--cyan-fg);
}

.tag.lilac {
  background: var(--lilac-bg);
  color: var(--lilac-fg);
}

.tag.orange {
  background: var(--orange-bg);
  color: var(--orange-fg);
}

.product-card h3 {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}

.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.product-card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.product-card p {
  padding: 0;
  margin: 0;
  color: var(--muted);
  gap: 8px;
  font-size: 14px;
  line-height: 160%;
}

.product-card .product-detail-link {
  margin-top: auto;
  width: fit-content;
}

.carousel {
  position: relative;
  margin-top: 30px;
}

.market-stories {
  position: relative;
}

.market-stories-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.market-stories-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.market-story {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 18, 22, 0.14);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.market-story-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.market-story-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.market-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(16, 18, 22, 0.18);
}

.market-story h3 {
  margin: 0;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

.market-story p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 160%;
  min-height: 2.6em;
  letter-spacing: 0.01em;
}

.story-tag-slot {
  margin-top: auto;
}

.story-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-tag-slot + .story-link {
  margin-top: 6px;
}

.cta-section {
  background: linear-gradient(
    120deg,
    rgba(0, 91, 187, 0.16),
    rgba(255, 255, 255, 0.4)
  );
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-section.pattern {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23005bbb' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  overflow: hidden;
  border: 1px solid white;
}

.cta-section.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.cta-section.pattern > * {
  position: relative;
  z-index: 1;
}

footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 91, 187, 0.6);
    z-index: 0;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #222a34;
    color: rgba(255, 255, 255, 0.86);
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    width: min(240px, 80vw);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .history-row.reverse .history-media {
    order: 0;
  }

  .history-split-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .history-split-title {
    position: static;
  }

  .history-split-media img {
    height: 200px;
  }

  .market-stories-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 28px;
  }

  .pdf-lightbox-card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .pdf-lightbox {
    padding: 0;
  }

  .pdf-lightbox[data-variant="C"] .pdf-lightbox-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .pdf-lightbox[data-variant="C"] .pdf-lightbox-header {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .history-gallery-band {
    padding-top: 44px;
    padding-bottom: 24px;
  }

  .timeline-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .history-gallery-rail-bleed {
    margin-left: calc(50% - 50vw);
  }

  .history-gallery-band .pdf-strip {
    gap: 12px;
    padding-right: 0;
    padding-bottom: 64px;
  }

  .history-gallery-band .pdf-strip-spacer {
    flex-basis: 14px;
  }

  .history-gallery-band .pdf-tile {
    flex-basis: clamp(160px, 46vw, 198px);
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 14px 0;
  }

  .nav-cta {
    display: none;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .group-banner-inner {
    min-height: 50px;
    gap: 10px;
    font-size: 14px;
  }

  .group-banner-inner img {
    height: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .market-story {
    padding: 18px;
  }
}
