
/* ─── HEADER / NAVBAR ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}

.site-header .nav-logo-text {
  color: #ffffff;
  transition: color 0.2s ease;
}

.site-header .nav-link {
  color: #ffffff;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-header .nav-link:hover {
  color: var(--orange-light) !important;
}

.site-header.scrolled,
.site-header.site-header--white {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .nav-logo-text,
.site-header.site-header--white .nav-logo-text {
  color: var(--ink) !important;
}

.site-header.scrolled .nav-link,
.site-header.site-header--white .nav-link {
  color: var(--ink) !important;
}

.site-header.scrolled .nav-link:hover,
.site-header.site-header--white .nav-link:hover {
  color: var(--orange) !important;
}

.hamburger-btn {
  display: none !important;
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 28px;
}

@media (max-width: 1023px) {
  .site-header .nav-menu {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: #ffffff;
    cursor: pointer;
  }
}

/**
 * ==============================================================================
 * COMPONENTS.CSS — UI COMPONENTS (IMPACTA HUB)
 * ==============================================================================
 */

/* ─── 1. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-button);
  padding: 14px 28px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 91, 22, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(255, 91, 22, 0.45);
}

.btn-hero-cta {
  background: #ffffff;
  color: var(--ink);
  font-weight: var(--font-weight-bold);
  font-size: 1.0625rem;
  padding: 16px 36px;
  min-height: 56px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-hero-cta:hover {
  background: #f8fafc;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--orange);
  color: var(--orange-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--orange-wash);
  color: var(--orange-dark);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 38px;
}

/* ─── 2. BADGES & PILLS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-uppercase);
}

.badge-orange {
  background: rgba(255, 91, 22, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 91, 22, 0.3);
}

.badge-orange-solid {
  background: var(--orange);
  color: #ffffff;
}

.badge-demo {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* ─── 3. MOCKUP MAC GLASS DASHBOARD (3D PERSPECTIVE) ─── */
.mac-dashboard-mockup {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: perspective(1200px) rotateY(-9deg) rotateX(4deg);
  transition: transform var(--transition-normal);
  color: #ffffff;
  overflow: hidden;
  user-select: none;
}

.mac-dashboard-mockup:hover {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.mac-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.mac-traffic-lights {
  display: flex;
  gap: 6px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mac-dot-red { background: #ff5f56; }
.mac-dot-yellow { background: #ffbd2e; }
.mac-dot-green { background: #27c93f; }

.mac-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.mac-body {
  padding: 20px;
}

.mac-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mac-kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 10px;
}

.mac-kpi-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mac-kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.mac-chart {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.mac-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.mac-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 70px;
  gap: 8px;
}

.mac-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(255, 91, 22, 0.3) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.mac-pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  margin-top: 6px;
  font-size: 0.75rem;
}

.mac-status-tag {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 91, 22, 0.2);
  color: var(--orange-light);
}

/* ─── 4. MOCKUP IPHONE 3D (FRONT LAYER) ─── */
.phone-mockup-wrapper {
  position: absolute;
  bottom: -40px;
  left: -20px;
  z-index: 20;
  width: 230px;
  height: 460px;
}

.phone-realistic {
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px #262626;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #151515;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: #000000;
  border-radius: 12px;
  z-index: 10;
}

.phone-content {
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
  justify-content: space-between;
}

.phone-cover-box {
  background: linear-gradient(135deg, #2a1105 0%, #160b06 100%);
  border: 1px solid rgba(255, 91, 22, 0.3);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  margin-top: 10px;
}

.phone-guide-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.phone-guide-sub {
  font-size: 0.6875rem;
  color: var(--orange-light);
  margin-bottom: 12px;
}

.phone-btn-demo {
  background: var(--orange);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  text-align: center;
  cursor: default;
}

.phone-bottom-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

/* ─── 5. LAPTOP MOCKUP CSS ─── */
.laptop-mockup-frame {
  width: 100%;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #333333;
}

.laptop-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #252525;
  border-bottom: 1px solid #333333;
}

.laptop-url-bar {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #181818;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: #888888;
  font-family: var(--font-mono);
}

.laptop-screen-content {
  aspect-ratio: 16 / 10;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ─── 6. ACCORDION ─── */
.faq-accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.faq-accordion-trigger:hover {
  color: var(--orange);
}

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.faq-accordion-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: #ffffff;
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.faq-accordion-item.active .faq-accordion-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.faq-accordion-content p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: var(--line-height-body);
}

/* ─── 7. CARD FAN (VENTAGLIO 3D) ─── */
.fan-deck-container {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  max-width: 1100px;
}

.fan-card {
  position: absolute;
  width: 240px;
  height: 310px;
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
  user-select: none;
}

.fan-card:hover {
  transform: translateY(-16px) scale(1.04) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  z-index: 50 !important;
}

.fan-card-num {
  font-size: 3.5rem;
  font-weight: var(--font-weight-black);
  line-height: 1;
}

.fan-card-label {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
}

.fan-card-white {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.fan-card-white .fan-card-num { color: var(--orange); }

.fan-card-dark {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.fan-card-dark .fan-card-num { color: #ffffff; }

.fan-card-orange {
  background: var(--orange);
  border: 1px solid var(--orange-dark);
  color: #ffffff;
}
.fan-card-orange .fan-card-num { color: #ffffff; }

@media (max-width: 768px) {
  .fan-deck-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-height: auto;
  }
  .fan-card {
    position: static;
    width: 100%;
    height: auto;
    min-height: 180px;
    transform: none !important;
    padding: 24px 16px;
  }
}

/* Mobile header adjustments */

@media (max-width: 768px) {
  .site-header .btn-header-cta {
    display: none !important;
  }
  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .btn {
    white-space: normal !important;
    text-align: center !important;
  }
  .btn-hero-cta {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }
}


/* ─── OFFICIAL IMPACTA HUB LOGO VECTOR STYLES ─── */
.nav-logo-symbol {
  height: 34px;
  width: auto;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-logo-link:hover .nav-logo-symbol {
  transform: scale(1.05);
}

.site-header .nav-logo-stem {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.site-header.scrolled .nav-logo-stem,
.site-header.site-header--white .nav-logo-stem {
  fill: var(--ink) !important;
}

/* Dark Mode Form Inputs */
.section-dark .form-input,
.section-dark .form-textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-dark .form-input:focus,
.section-dark .form-textarea:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 91, 22, 0.25) !important;
  outline: none !important;
}

.section-dark .form-input::placeholder,
.section-dark .form-textarea::placeholder {
  color: #64748b !important;
}

.section-dark .challenge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px 20px;
  color: #cbd5e1;
  transition: all 0.2s ease;
  cursor: pointer;
}

.section-dark .challenge-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.section-dark .challenge-card.is-selected,
.section-dark .challenge-card input:checked + .challenge-card-content {
  border-color: var(--orange) !important;
  background: rgba(255, 91, 22, 0.15) !important;
  color: #ffffff !important;
}


.nav-logo-link {
  color: #ffffff !important;
}
.nav-logo-stem {
  fill: #ffffff !important;
  transition: fill 0.2s ease;
}
.site-header.scrolled .nav-logo-link,
.site-header.site-header--white .nav-logo-link {
  color: var(--ink) !important;
}
.site-header.scrolled .nav-logo-stem,
.site-header.site-header--white .nav-logo-stem {
  fill: var(--ink) !important;
}


/* ──────────────────────────────────────────────────────────────────────────
   HEADER DROPDOWN MENUS (DARK LUXURY)
   ────────────────────────────────────────────────────────────────────────── */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown > a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px;
  background: rgba(13, 14, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

/* Invisible bridge to prevent hover loss */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 18px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item .dropdown-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item:hover .dropdown-title {
  color: var(--orange);
}

.dropdown-item .dropdown-sub {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Scrolled header dark luxury styling */
.site-header.scrolled {
  background: rgba(12, 13, 18, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled .nav-link {
  color: #ffffff !important;
}

.site-header.scrolled .nav-link:hover {
  color: var(--orange) !important;
}

.site-header.scrolled .hamburger-btn {
  color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   OFFICIAL IMPACTA HUB RESPONSIVE VECTOR LOGO (ZERO GREY BOX / HIGH CONTRAST)
   ────────────────────────────────────────────────────────────────────────── */
.nav-brand-logo {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.nav-logo-link:hover .nav-brand-logo {
  transform: scale(1.03);
}

.nav-brand-logo .logo-stem-fill,
.nav-brand-logo .logo-text-brand {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.site-header.site-header--white:not(.scrolled) .nav-brand-logo .logo-stem-fill,
.site-header.site-header--white:not(.scrolled) .nav-brand-logo .logo-text-brand {
  fill: #09090B !important;
}

.site-header.site-header--white.scrolled .nav-brand-logo .logo-stem-fill,
.site-header.site-header--white.scrolled .nav-brand-logo .logo-text-brand {
  fill: #ffffff !important;
}



/* ──────────────────────────────────────────────────────────────────────────
   CASI STUDIO & PROGETTI REALIZZATI (DIGITAM CASI-STUDIO SYSTEM)
   ────────────────────────────────────────────────────────────────────────── */
.case-studies-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.case-study-hero-item {
  position: relative;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border, #e7e7e7);
}

.case-study-hero-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.case-study-watermark-num {
  position: absolute;
  left: -10px;
  top: -40px;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 91, 22, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  font-family: 'Montserrat', -apple-system, sans-serif;
}

@media (min-width: 768px) {
  .case-study-watermark-num {
    left: -20px;
    top: -60px;
    font-size: 170px;
  }
}

.case-study-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--ink, #080808);
  color: var(--white, #ffffff);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.case-study-header-pill:hover {
  transform: translateY(-1px);
  background: #1a1a1e;
}

.case-study-header-pill a {
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-study-header-pill svg {
  stroke: var(--orange, #ff5b16);
}

.case-study-main-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 850px;
  color: var(--ink, #080808);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .case-study-main-title {
    font-size: 2.75rem;
  }
}

.case-study-media-wrap {
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border, #e7e7e7);
  background: #000;
}

.case-study-media-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-hero-item:hover .case-study-media-wrap img {
  transform: scale(1.015);
}

.case-study-body-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted, #5f5f5f);
  max-width: 900px;
  margin-bottom: 20px;
}

/* Before / After visual split grid */
.before-after-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .before-after-split-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: center;
  }
}

.comparison-card-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: var(--surface-soft, #f6f6f6);
  border: 1px solid var(--border, #e7e7e7);
}

.comparison-card-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}

.comparison-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-before {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
}

.badge-after {
  background: var(--orange, #ff5b16);
  color: #ffffff;
}

.comparison-arrow-divider {
  display: none;
}

@media (min-width: 1024px) {
  .comparison-arrow-divider {
    display: flex;
    position: absolute;
    left: 46%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange, #ff5b16), #ea580c);
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 91, 22, 0.35);
    z-index: 10;
  }
}

/* Pre-Footer Consultation CTA Section */
.pre-footer-cta-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(135deg, #170b05 0%, #2b0f05 50%, #ff5b16 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.pre-footer-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .pre-footer-cta-title {
    font-size: 3.25rem;
  }
}

.pre-footer-cta-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

