/* ── Font — Adobe Typekit ── */
@import url("https://use.typekit.net/qqg2fgi.css");

/* ── Reset & Scope ── */
.gs-case-study,
.gs-case-study *,
.gs-case-study *::before,
.gs-case-study *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  list-style: none;
  outline: none;
  text-decoration: none;
}

.gs-case-study {
  /* Palette esatta dal sito Growesia */
  --mainColor: #ffffff;
  --secondaryColor: #d4cee4;
  --mainBackground: #0d0a16;
  --secondaryBackground: rgba(34, 36, 75, 0.25);
  --linesColor: rgba(55, 59, 123, 0.25);
  --glassBackground: #22244B40;
  --backdropBlur: 10px;
  --accentNeg: #c4879a;
  --accentPos: #8abfa5;

  background: radial-gradient(ellipse at center, #130F1F 0%, #000000 100%);
  background-attachment: fixed;
  color: var(--mainColor);
  font-family: "neue-haas-grotesk-display", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

/* ── Typography — Zeyna scale ── */
.gs-case-study h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0em;
  font-weight: 300;
  color: var(--mainColor);
}
.gs-case-study h2 {
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: 0em;
  font-weight: 300;
  color: var(--mainColor);
}
.gs-case-study h3 {
  font-size: 1.333rem;
  line-height: 1.4;
  letter-spacing: 0em;
  font-weight: 300;
  color: var(--mainColor);
}
.gs-case-study h6 {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--mainColor);
}
.gs-case-study p {
  margin-bottom: 0;
}

/* ── Hero ── */
.gs-case-study .hero {
  padding: 5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--linesColor);
  background: transparent;
}
.gs-case-study .hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .hero > * { position: relative; z-index: 2; }
.gs-case-study .hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(55, 59, 123, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.gs-case-study .hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.gs-case-study .badge {
  display: inline-block;
  background: rgba(13, 10, 22, 0.6);
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 0.4em 1.2em;
  margin-bottom: 1.5em;
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 26px;
  font-weight: 300;
}
.gs-case-study .hero h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.5em;
}
.gs-case-study .hero h1.revealed { opacity: 1; transform: none; }
.gs-case-study .hero h1 .red { color: var(--accentNeg); }
.gs-case-study .hero h1 .grn { color: var(--accentPos); }

.gs-case-study .hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--secondaryColor);
  line-height: 26px;
  letter-spacing: 0.5px;
  max-width: 620px;
  margin-bottom: 2.5em;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.gs-case-study .hero-sub.revealed { opacity: 1; transform: none; }

/* ── KPI Grid ── */
.gs-case-study .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.gs-case-study .kpi-grid.revealed { opacity: 1; transform: none; }
.gs-case-study .kpi-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1.25em 1em;
  overflow: hidden;
}
.gs-case-study .kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .kpi-card > * { position: relative; z-index: 2; }
.gs-case-study .kpi-label {
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  line-height: 26px;
  font-weight: 300;
}
.gs-case-study .kpi-value {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0em;
  color: var(--mainColor);
}
.gs-case-study .kpi-sub {
  font-size: 14px;
  color: var(--secondaryColor);
  margin-top: 0.4em;
  line-height: 26px;
  opacity: 0.6;
  font-weight: 300;
}

/* ── Nav ── */
.gs-case-study .nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--linesColor) !important;
  padding: 0 2rem;
}
.gs-case-study .nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 10, 22, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 0;
}
.gs-case-study .nav > * { position: relative; z-index: 2; }
.gs-case-study .nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
}
.gs-case-study .nav-btn {
  font-family: "neue-haas-grotesk-display", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--secondaryColor);
  background: none;
  border: none !important;
  border-bottom: 1px solid transparent !important;
  padding: 1em 1.25em;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 26px;
  border-radius: 0;
  opacity: 0.5;
}
.gs-case-study .nav-btn:hover { color: var(--mainColor); opacity: 1; }
.gs-case-study .nav-btn.active {
  font-weight: 300;
  color: var(--mainColor);
  border-bottom-color: transparent !important;
  opacity: 1;
}

/* ── Content ── */
.gs-case-study .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5em 2em 5em;
}
.gs-case-study .section {
  display: none !important;
  flex-direction: column;
}
.gs-case-study .section.active {
  display: flex !important;
  flex-direction: column;
  animation: gsFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gs-case-study .section.active.gap-28 { gap: 2em; }
.gs-case-study .section.active.gap-20 { gap: 1.5em; }
.gs-case-study .section.active.gap-16 { gap: 1.25em; }

.gs-case-study h2.section-title {
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: 0em;
  font-weight: 300;
  color: var(--mainColor);
  margin-bottom: 0.25em;
}
.gs-case-study .section-desc {
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  letter-spacing: 0.5px;
  margin-bottom: 1.5em;
  font-weight: 300;
}

/* ── Toggle ── */
.gs-case-study .toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.gs-case-study .toggle-label {
  font-family: "neue-haas-grotesk-display", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  line-height: 26px;
}
.gs-case-study .toggle-label.active { font-weight: 300; color: var(--mainColor); }
.gs-case-study .toggle-label.off { color: var(--secondaryColor); }
.gs-case-study .toggle-label.on { color: var(--secondaryColor); }
.gs-case-study .toggle-label.dim { font-weight: 300; color: var(--secondaryColor); opacity: 0.4; }

.gs-case-study .toggle-track {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.gs-case-study .toggle-track.off { background: rgba(55, 59, 123, 0.5); }
.gs-case-study .toggle-track.on { background: var(--mainColor); }
.gs-case-study .toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mainBackground);
  position: absolute;
  top: 3px;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.gs-case-study .toggle-knob.off { left: 3px; }
.gs-case-study .toggle-knob.on { left: 25px; }

/* ── Insight Cards ── */
.gs-case-study .insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}
.gs-case-study .insight-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1.5em 1.25em;
  overflow: hidden;
  transition: all 0.4s;
}
.gs-case-study .insight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .insight-card > * { position: relative; z-index: 2; }
.gs-case-study .insight-icon {
  font-size: 22px;
  margin-bottom: 0.6em;
  line-height: 1;
}
.gs-case-study .insight-label {
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  line-height: 26px;
  font-weight: 300;
}
.gs-case-study .insight-value {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 0.3em;
  letter-spacing: 0em;
  color: var(--mainColor);
}
.gs-case-study .insight-desc {
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* ── Waterfall ── */
.gs-case-study .waterfall {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
}
.gs-case-study .wf-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gs-case-study .wf-pct {
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  color: var(--mainColor);
  letter-spacing: 0.5px;
}
.gs-case-study .wf-bar {
  width: 100%;
  border-radius: 0;
  background: rgba(55, 59, 123, 0.6);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .wf-label {
  font-size: 11px;
  color: var(--secondaryColor);
  text-align: center;
  line-height: 1.3;
  white-space: pre-line;
  letter-spacing: 0.5px;
  font-weight: 300;
}

/* ── Intervento Steps ── */
.gs-case-study .steps-row {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.5em;
}
.gs-case-study .step-btn {
  flex: 1;
  padding: 1em;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid var(--linesColor) !important;
  border-top: 2px solid transparent !important;
  background: transparent;
  transition: all 0.3s;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.gs-case-study .step-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
  transition: background 0.3s;
}
.gs-case-study .step-btn > * { position: relative; z-index: 2; }
.gs-case-study .step-btn:hover::before { background: var(--glassBackground); }
.gs-case-study .step-btn.active::before { background: var(--glassBackground); }
.gs-case-study .step-num {
  font-size: 1.333rem;
  font-weight: 300;
  margin-bottom: 0.25em;
  color: rgba(55, 59, 123, 0.5);
  line-height: 1.2;
}
.gs-case-study .step-btn.active .step-num { color: var(--mainColor); }
.gs-case-study .step-title {
  font-size: 16px;
  font-weight: 300;
  color: var(--secondaryColor);
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .step-btn.active .step-title { color: var(--mainColor); }

.gs-case-study .step-body {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1.75em;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5em;
  min-height: 150px;
  overflow: hidden;
}
.gs-case-study .step-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .step-body > * { position: relative; z-index: 2; }
.gs-case-study .step-sub {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  line-height: 26px;
  color: var(--secondaryColor);
}
.gs-case-study .step-desc {
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  letter-spacing: 0.5px;
  margin-bottom: 1em;
  font-weight: 300;
}
.gs-case-study .step-result {
  font-size: 16px;
  color: var(--mainColor);
  font-weight: 300;
  background: rgba(13, 10, 22, 0.6);
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 0.75em 1em;
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .step-stat-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  border-left: 1px solid var(--linesColor) !important;
  min-width: 80px;
}
.gs-case-study .step-stat {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0em;
  color: var(--mainColor);
}
.gs-case-study .step-stat-label {
  font-size: 12px;
  color: var(--secondaryColor);
  text-align: center;
  margin-top: 0.3em;
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ── Results Box ── */
.gs-case-study .results-box {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 2em;
  margin-top: 0.25em;
  overflow: hidden;
}
.gs-case-study .results-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .results-box > * { position: relative; z-index: 2; }
.gs-case-study .results-label {
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1em;
  line-height: 26px;
  font-weight: 300;
}
.gs-case-study .results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5em;
}
.gs-case-study .results-item { text-align: center; }
.gs-case-study .results-item-label {
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  line-height: 26px;
  font-weight: 300;
}
.gs-case-study .results-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
.gs-case-study .results-before {
  font-size: 1.333rem;
  font-weight: 300;
  color: var(--accentNeg);
  line-height: 1;
}
.gs-case-study .results-arrow {
  color: var(--secondaryColor);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.4;
}
.gs-case-study .results-after {
  font-size: 1.333rem;
  font-weight: 300;
  color: var(--accentPos);
  line-height: 1;
}

/* ── Category Filters ── */
.gs-case-study .cat-filters {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.gs-case-study .cat-btn {
  font-family: "neue-haas-grotesk-display", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  border-radius: 0;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--secondaryColor);
  background: var(--glassBackground);
  border: 1px solid var(--linesColor) !important;
  line-height: 26px;
}
.gs-case-study .cat-btn:hover {
  color: var(--mainColor);
  background: rgba(55, 59, 123, 0.35);
  border-color: rgba(55, 59, 123, 0.5) !important;
}
.gs-case-study .cat-btn.active {
  color: var(--mainColor);
  background: rgba(55, 59, 123, 0.35);
  border-color: rgba(55, 59, 123, 0.5) !important;
  font-weight: 300;
}
.gs-case-study .cat-count {
  font-size: 11px;
  opacity: 0.5;
  background: rgba(0,0,0,0.3);
  border-radius: 0;
  padding: 0.1em 0.5em;
  line-height: 26px;
}

/* ── Table ── */
.gs-case-study .table-wrap { overflow-x: auto; }
.gs-case-study table {
  width: 100%;
  border-collapse: collapse;
  font-family: "neue-haas-grotesk-display", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}
.gs-case-study th {
  padding: 0.75em 0.5em;
  text-align: left;
  font-size: 12px;
  font-weight: 300;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--linesColor) !important;
  background: transparent;
  line-height: 26px;
}
.gs-case-study th.right { text-align: right; }
.gs-case-study th.center { text-align: center; }
.gs-case-study th.sortable { cursor: pointer; user-select: none; }
.gs-case-study td {
  padding: 0.6em 0.5em;
  border-bottom: 1px solid var(--linesColor) !important;
  transition: background 0.15s;
  background: transparent;
  text-align: left;
  line-height: 26px;
  color: var(--secondaryColor);
  font-weight: 300;
  letter-spacing: 0.5px;
}
.gs-case-study tr {
  border: none !important;
  background: transparent;
  line-height: 26px;
}
.gs-case-study tr.neg-row { background: rgba(55, 59, 123, 0.05); }
.gs-case-study tr:hover td { background: rgba(55, 59, 123, 0.08); }
.gs-case-study .prod-name {
  color: var(--mainColor);
  font-weight: 300;
  white-space: nowrap;
}
.gs-case-study .cat-tag {
  font-size: 11px;
  font-weight: 300;
  color: var(--mainBackground);
  background: var(--secondaryColor);
  border-radius: 0;
  padding: 0.15em 0.6em;
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 26px;
}

.gs-case-study .margin-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.gs-case-study .margin-bar-left {
  width: 45%;
  display: flex;
  justify-content: flex-end;
}
.gs-case-study .margin-bar-center {
  width: 1px;
  height: 14px;
  background: var(--linesColor);
  flex-shrink: 0;
}
.gs-case-study .margin-bar-right { width: 45%; }
.gs-case-study .margin-bar-neg {
  height: 3px;
  background: var(--accentNeg);
  border-radius: 0;
  min-width: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.5;
}
.gs-case-study .margin-bar-pos {
  height: 3px;
  background: var(--accentPos);
  border-radius: 0;
  min-width: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}
.gs-case-study .val-neg { color: var(--accentNeg); }
.gs-case-study .val-pos { color: var(--accentPos); }
.gs-case-study .val-mono {
  font-size: 14px;
  font-weight: 300;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gs-case-study .delta-mono {
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

/* ── Category Summary ── */
.gs-case-study .cat-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.gs-case-study .cat-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 1em;
  padding: 1em;
  position: relative;
  background: transparent;
  border-radius: 0;
  border: 1px solid var(--linesColor) !important;
  overflow: hidden;
}
.gs-case-study .cat-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .cat-row > * { position: relative; z-index: 2; }
.gs-case-study .cat-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(55, 59, 123, 0.6);
}
.gs-case-study .cat-row-name {
  font-size: 16px;
  font-weight: 300;
  color: var(--mainColor);
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .cat-row-meta {
  font-size: 12px;
  color: var(--secondaryColor);
  margin-left: 16px;
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.gs-case-study .cat-bar-track {
  flex: 1;
  height: 4px;
  border-radius: 0;
  background: rgba(55, 59, 123, 0.15);
  overflow: hidden;
}
.gs-case-study .cat-bar-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .cat-bar-neg { background: var(--accentNeg); opacity: 0.5; }
.gs-case-study .cat-bar-pos { background: var(--accentPos); opacity: 0.6; }
.gs-case-study .cat-pct {
  font-size: 14px;
  font-weight: 300;
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gs-case-study .delta-badge {
  font-size: 12px;
  border-radius: 0;
  padding: 0.15em 0.6em;
  display: inline-block;
  line-height: 26px;
  font-weight: 300;
  color: var(--mainColor);
  background: rgba(55, 59, 123, 0.3);
  letter-spacing: 0.5px;
}

/* ── Bottom Cards ── */
.gs-case-study .bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-top: 0.5em;
}
.gs-case-study .bottom-card {
  border-radius: 0;
  padding: 1.5em;
  transition: all 0.4s;
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  overflow: hidden;
}
.gs-case-study .bottom-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .bottom-card > * { position: relative; z-index: 2; }
.gs-case-study .bottom-card-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  line-height: 26px;
  font-weight: 300;
  color: var(--secondaryColor);
}
.gs-case-study .bottom-card-text {
  font-size: 16px;
  line-height: 26px;
  color: var(--secondaryColor);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ── Footer ── */
.gs-case-study .gs-footer {
  border-top: 1px solid var(--linesColor) !important;
  padding: 2em;
  text-align: center;
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 26px;
  font-weight: 300;
  opacity: 0.4;
}

/* ── Utility ── */
.gs-case-study .flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1em;
}
.gs-case-study .gs-wf-heading {
  font-size: 12px;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25em;
  line-height: 26px;
  font-weight: 300;
}

/* ── Scroll Reveal Animations (Zeyna fadeUp pattern) ── */
@keyframes gsRevealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gsRevealLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gsBarGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.gs-case-study .gs-reveal {
  opacity: 0;
  transform: translateY(40px);
}
.gs-case-study .gs-reveal.gs-visible {
  animation: gsRevealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gs-case-study .gs-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}
.gs-case-study .gs-reveal-left.gs-visible {
  animation: gsRevealLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger children inside grids */
.gs-case-study .gs-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}
.gs-case-study .gs-stagger.gs-visible > * {
  animation: gsRevealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.gs-case-study .gs-stagger.gs-visible > *:nth-child(1) { animation-delay: 0s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(2) { animation-delay: 0.1s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(3) { animation-delay: 0.2s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(4) { animation-delay: 0.3s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(5) { animation-delay: 0.4s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(6) { animation-delay: 0.5s; }
.gs-case-study .gs-stagger.gs-visible > *:nth-child(7) { animation-delay: 0.6s; }

/* Card hover effects — Zeyna style subtle glow */
.gs-case-study .kpi-card,
.gs-case-study .insight-card,
.gs-case-study .bottom-card,
.gs-case-study .cat-row,
.gs-case-study .results-box {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .kpi-card:hover,
.gs-case-study .insight-card:hover,
.gs-case-study .bottom-card:hover {
  border-color: rgba(55, 59, 123, 0.5) !important;
  box-shadow: 0 4px 24px rgba(55, 59, 123, 0.08);
  transform: translateY(-2px);
}
.gs-case-study .cat-row:hover {
  border-color: rgba(55, 59, 123, 0.5) !important;
  box-shadow: 0 2px 16px rgba(55, 59, 123, 0.06);
}

/* Waterfall bar grow animation */
.gs-case-study .waterfall.gs-visible .wf-bar {
  transform: scaleY(1);
}
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(1) .wf-bar { transition-delay: 0s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(2) .wf-bar { transition-delay: 0.06s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(3) .wf-bar { transition-delay: 0.12s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(4) .wf-bar { transition-delay: 0.18s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(5) .wf-bar { transition-delay: 0.24s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(6) .wf-bar { transition-delay: 0.30s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(7) .wf-bar { transition-delay: 0.36s; }
.gs-case-study .waterfall.gs-visible .wf-col:nth-child(8) .wf-bar { transition-delay: 0.42s; }

/* Table row stagger entrance */
.gs-case-study .table-wrap.gs-visible tbody tr {
  animation: gsFadeIn 0.4s ease forwards;
  opacity: 0;
}
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(1) { animation-delay: 0s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(2) { animation-delay: 0.02s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(3) { animation-delay: 0.04s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(4) { animation-delay: 0.06s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(5) { animation-delay: 0.08s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(6) { animation-delay: 0.10s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(7) { animation-delay: 0.12s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(8) { animation-delay: 0.14s; }
.gs-case-study .table-wrap.gs-visible tbody tr:nth-child(n+9) { animation-delay: 0.16s; }

/* Nav button smooth underline */
.gs-case-study .nav-btn {
  position: relative;
}
.gs-case-study .nav-btn::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 1px;
  background: var(--mainColor);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .nav-btn.active::after {
  left: 0; right: 0;
}

/* Step button border-top transition */
.gs-case-study .step-btn {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .step-btn .step-num,
.gs-case-study .step-btn .step-title {
  transition: color 0.4s ease;
}

/* Toggle smooth color transitions */
.gs-case-study .toggle-label {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Insight value number transition feel */
.gs-case-study .insight-value,
.gs-case-study .kpi-value {
  transition: color 0.4s ease;
}

/* Cat filter buttons */
.gs-case-study .cat-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Results values smooth swap */
.gs-case-study .results-before,
.gs-case-study .results-after {
  transition: color 0.3s ease;
}

/* Delta badge pop-in */
.gs-case-study .delta-badge {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer reveal */
.gs-case-study .gs-footer {
  transition: opacity 0.6s ease;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .gs-case-study .hero { padding: 2.5em 1em 2em; }
  .gs-case-study .nav { padding: 0 1em; }
  .gs-case-study .nav-btn { padding: 0.75em; font-size: 14px; }
  .gs-case-study .content { padding: 1.5em 1em 4em; }
  .gs-case-study .steps-row { flex-direction: column; }
  .gs-case-study .step-body { grid-template-columns: 1fr; }
  .gs-case-study .step-stat-wrap {
    border-left: none !important;
    border-top: 1px solid var(--linesColor) !important;
    padding: 1em 0 0;
    flex-direction: row;
    gap: 0.5em;
  }
  .gs-case-study .results-grid { grid-template-columns: 1fr; gap: 1em; }
  .gs-case-study .bottom-cards { grid-template-columns: 1fr; }
  .gs-case-study .cat-row { grid-template-columns: 1fr; gap: 0.5em; }
}

/* ── EBITDA Trajectory (used by Pallet, Ristorazione) ── */
.gs-case-study .ebitda-trajectory {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5em;
  padding: 1em 0;
}
.gs-case-study .ebitda-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 160px;
}
.gs-case-study .ebitda-val {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--mainColor);
  letter-spacing: 0em;
}
.gs-case-study .ebitda-bar {
  width: 100%;
  border-radius: 0;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-case-study .ebitda-trajectory.gs-visible .ebitda-bar,
.gs-case-study .ebitda-trajectory.gs-stagger.gs-visible .ebitda-bar {
  transform: scaleY(1);
}
.gs-case-study .ebitda-trajectory.gs-visible .ebitda-col:nth-child(1) .ebitda-bar { transition-delay: 0s; }
.gs-case-study .ebitda-trajectory.gs-visible .ebitda-col:nth-child(2) .ebitda-bar { transition-delay: 0.1s; }
.gs-case-study .ebitda-trajectory.gs-visible .ebitda-col:nth-child(3) .ebitda-bar { transition-delay: 0.2s; }
.gs-case-study .ebitda-trajectory.gs-visible .ebitda-col:nth-child(4) .ebitda-bar { transition-delay: 0.3s; }
.gs-case-study .ebitda-year {
  font-size: 14px;
  font-weight: 300;
  color: var(--mainColor);
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .ebitda-sub {
  font-size: 12px;
  color: var(--secondaryColor);
  text-align: center;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.gs-case-study .ebitda-explain {
  display: block;
  font-size: 14px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-top: 0.5em;
  font-style: italic;
}

/* ── Callout (used by Software Edile) ── */
.gs-case-study .callout {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1.25em 1.5em;
  overflow: hidden;
}
.gs-case-study .callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .callout > * { position: relative; z-index: 2; }
.gs-case-study .callout-title {
  font-size: 12px;
  font-weight: 300;
  color: var(--secondaryColor);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  line-height: 26px;
}
.gs-case-study .callout-body {
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ── Module Cards (used by Software Edile) ── */
.gs-case-study .mod-cards {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.gs-case-study .mod-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.gs-case-study .mod-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .mod-card > * { position: relative; z-index: 2; }
.gs-case-study .mod-card:hover {
  border-color: rgba(55, 59, 123, 0.5) !important;
}
.gs-case-study .mod-card-header {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.25em 1.5em;
  cursor: pointer;
  user-select: none;
}
.gs-case-study .mod-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(55, 59, 123, 0.15);
}
.gs-case-study .mod-card-info {
  flex: 1;
  min-width: 0;
}
.gs-case-study .mod-card-title {
  font-size: 16px;
  font-weight: 300;
  color: var(--mainColor);
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .mod-card-subtitle {
  font-size: 14px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.gs-case-study .mod-card-toggle {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: rgba(55, 59, 123, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--secondaryColor);
  transition: all 0.3s;
  flex-shrink: 0;
}
.gs-case-study .mod-card.open .mod-card-toggle {
  transform: rotate(180deg);
  color: var(--mainColor);
}
.gs-case-study .mod-card-body {
  display: none;
  padding: 0 1.5em 1.5em;
}
.gs-case-study .mod-card.open .mod-card-body {
  display: block;
}
.gs-case-study .mod-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 1em;
}
.gs-case-study .mod-side {
  border-radius: 0;
  padding: 1.25em;
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  overflow: hidden;
}
.gs-case-study .mod-side::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .mod-side > * { position: relative; z-index: 2; }
.gs-case-study .mod-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.8em;
  border-radius: 0;
  margin-bottom: 0.75em;
  line-height: 26px;
}
.gs-case-study .mod-side-badge.excel {
  background: rgba(196, 135, 154, 0.15);
  color: var(--accentNeg);
}
.gs-case-study .mod-side-badge.soft {
  background: rgba(138, 191, 165, 0.15);
  color: var(--accentPos);
}
.gs-case-study .mod-side-heading {
  font-size: 16px;
  font-weight: 300;
  color: var(--mainColor);
  margin-bottom: 0.5em;
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .mod-side-text {
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ── Hero Alert (used by Software Edile) ── */
.gs-case-study .hero-alert {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1em 1.5em;
  max-width: 620px;
  margin-bottom: 2em;
  font-size: 16px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.gs-case-study .hero-alert.revealed { opacity: 1; transform: none; }

/* ── Hero Claim Grid (used by Software Edile) ── */
.gs-case-study .hero-claim {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
  max-width: 700px;
  margin-bottom: 2em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}
.gs-case-study .hero-claim.revealed { opacity: 1; transform: none; }
.gs-case-study .hc-item {
  position: relative;
  background: transparent;
  border: 1px solid var(--linesColor) !important;
  border-radius: 0;
  padding: 1.25em 1em;
  text-align: center;
  overflow: hidden;
}
.gs-case-study .hc-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--glassBackground);
  backdrop-filter: blur(var(--backdropBlur));
  -webkit-backdrop-filter: blur(var(--backdropBlur));
  z-index: 0;
}
.gs-case-study .hc-item > * { position: relative; z-index: 2; }
.gs-case-study .hc-icon {
  font-size: 22px;
  margin-bottom: 0.5em;
  line-height: 1;
}
.gs-case-study .hc-title {
  font-size: 16px;
  font-weight: 300;
  color: var(--mainColor);
  margin-bottom: 0.25em;
  line-height: 26px;
  letter-spacing: 0.5px;
}
.gs-case-study .hc-text {
  font-size: 14px;
  color: var(--secondaryColor);
  line-height: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .gs-case-study .ebitda-trajectory { gap: 0.75em; }
  .gs-case-study .mod-compare { grid-template-columns: 1fr; }
  .gs-case-study .hero-claim { grid-template-columns: 1fr; }
}
