/* Placement Hub page styles (loaded after index.css). */

.ph-page main {
  padding-top: clamp(1.85rem, 4.5vw, 2.85rem);
  padding-bottom: clamp(6.25rem, 12.5vw, 9.5rem);
}

.ph-page main > .section:not(:first-child) {
  margin-top: clamp(2.45rem, 5.8vw, 3.85rem);
}

.ph-page main > .section.ph-section--fit {
  margin-top: clamp(2.75rem, 6.2vw, 4.1rem);
}

/* ─── Header ─── */
.ph-page .site-header.ph-header {
  height: 4.25rem;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.ph-header {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: rgba(4, 4, 6, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #11192a;
}

.ph-header__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.ph-header__brand-lockup {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.ph-header__brand-lines {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.2;
}

.ph-header__brand-line1 {
  display: block;
  font-size: clamp(0.78rem, 1.65vw, 0.945rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #4f95ff;
}

.ph-header__brand-line2 {
  display: block;
  font-size: clamp(0.78rem, 1.65vw, 0.945rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #f2f5fb;
}

.ph-header__cluster {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0.5rem;
}

.ph-header__nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ph-header__nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--t1);
  transition: color 0.2s, background 0.2s;
}

.ph-header__nav-link:hover {
  color: var(--t0);
  background: rgba(248, 250, 252, 0.06);
}

.ph-header__login {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.14);
  color: rgba(248, 250, 252, 0.96);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ph-header__login:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.12);
  color: #fff;
}

/* Bar stays viewport-fixed */
.ph-page .site-header.ph-header {
  z-index: 50;
}

/* ─── Hero ─── */
.ph-hero--no-photo.hero {
  isolation: isolate;
}

.ph-hero--no-photo .ph-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(
      ellipse 95% 52% at 50% 108%,
      rgba(96, 165, 250, 0.16) 0%,
      rgba(96, 165, 250, 0.04) 42%,
      transparent 58%
    ),
    radial-gradient(ellipse 100% 72% at 50% -18%, var(--blue-mid), transparent 52%),
    radial-gradient(ellipse 78% 52% at 100% 38%, var(--blue-dim), transparent 42%),
    radial-gradient(ellipse 58% 48% at 0% 82%, var(--blue-dim), transparent 38%),
    linear-gradient(185deg, var(--bg-1) 0%, var(--bg-0) 42%, #020203 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ph-hero--no-photo .ph-hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 85% 65% at 50% 38%,
    rgba(4, 4, 8, 0) 0%,
    rgba(4, 4, 8, 0.32) 62%,
    rgba(2, 2, 6, 0.72) 100%
  );
}

.ph-hero--no-photo .ph-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.05) 1px, transparent 1px);
  background-size: 96px 80px;
  mask-image: radial-gradient(ellipse 80% 58% at 50% 0%, #000 64%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 58% at 50% 0%, #000 64%, transparent 100%);
}

.ph-hero--no-photo.hero::before {
  z-index: 1;
  background:
    radial-gradient(
      ellipse 108% 88% at 50% 44%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.08) 72%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 3, 10, 0.12) 0%,
      rgba(2, 3, 10, 0.02) 45%,
      rgba(2, 3, 10, 0.08) 100%
    );
}

.ph-hero--no-photo.hero::after {
  z-index: 3;
  height: clamp(200px, 36vh, 480px);
  background: linear-gradient(
    to bottom,
    rgba(4, 4, 8, 0) 0%,
    rgba(4, 4, 8, 0.12) 38%,
    rgba(4, 4, 8, 0.55) 78%,
    var(--bg-0) 100%
  );
}

.ph-hero--no-photo .hero-content {
  z-index: 4;
}

.ph-hero--no-photo .down-arrows {
  z-index: 5;
}

.ph-page .hero .eyebrow {
  letter-spacing: 0.22em;
  font-size: clamp(0.5625rem, 1.1vw, 0.6875rem);
}

.ph-page .ph-hero--no-photo .hero-content {
  padding-top: clamp(5.5rem, 13vh, 8rem);
  padding-bottom: clamp(0.25rem, 1.2vw, 0.6rem);
}

.ph-system-note {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  line-height: 1.45;
}

.ph-system-note--header {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.09);
  color: rgba(215, 225, 238, 0.96);
}

/* ─── Dual CTA boxes ─── */
.ph-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.4rem);
  margin-top: clamp(1.4rem, 3.5vh, 2.1rem);
  width: 100%;
  max-width: min(100%, 48rem);
}

.ph-cta-grid--hero {
  text-align: left;
}

.ph-cta-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.78rem;
  padding: clamp(1.15rem, 2.8vw, 1.45rem);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: linear-gradient(180deg, rgba(22, 24, 36, 0.72) 0%, rgba(12, 12, 20, 0.65) 100%);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.ph-cta-grid--hero .ph-cta-box {
  text-align: center;
}

.ph-cta-grid--hero .ph-cta-box:last-child .ph-cta-box__hint {
  white-space: nowrap;
  max-width: none;
}

@media (max-width: 420px) {
  .ph-cta-grid--hero .ph-cta-box:last-child .ph-cta-box__hint {
    white-space: normal;
  }
}

.ph-cta-box__tag {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7bb8ff;
}

.ph-cta-box__hint {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(220, 228, 240, 0.95);
}

.ph-cta-box .btn {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.72rem 1.5rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px -2px rgba(96, 165, 250, 0.3);
}

.ph-cta-box .btn:hover {
  box-shadow: 0 4px 20px -2px rgba(96, 165, 250, 0.4);
}

/* ─── Final CTA ─── */
.ph-final-cta {
  text-align: center;
  position: relative;
  border-color: rgba(96, 165, 250, 0.4);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(96, 165, 250, 0.1) 0%, transparent 65%),
    linear-gradient(
      165deg,
      rgba(18, 20, 32, 0.98) 0%,
      rgba(13, 15, 24, 0.96) 48%,
      rgba(9, 9, 14, 0.94) 100%
    );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 56px -12px rgba(96, 165, 250, 0.14),
    0 0 80px -20px rgba(96, 165, 250, 0.08);
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.65rem, 4vw, 3.35rem);
}

.ph-final-cta__inner {
  max-width: min(100%, 52rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ph-final-cta__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
}

.ph-final-cta__head .ph-section__kicker {
  margin: 0;
}

.ph-final-cta__head h2 {
  margin: 0;
  max-width: 22ch;
}

.ph-final-cta__head .ph-final-cta__lead {
  margin: 0;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--t1);
}

.ph-cta-grid--footer {
  margin-top: clamp(1.6rem, 3.8vw, 2.35rem);
  max-width: 44rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(1.15rem, 2.5vw, 1.5rem);
}

.ph-cta-grid--footer .ph-cta-box {
  text-align: center;
  align-items: center;
  padding: clamp(1.28rem, 2.9vw, 1.65rem);
  gap: 0.85rem;
}

.ph-cta-box--accent {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(
    180deg,
    rgba(28, 36, 58, 0.82) 0%,
    rgba(14, 16, 28, 0.72) 100%
  );
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.1) inset,
    0 8px 28px -6px rgba(0, 0, 0, 0.45),
    0 0 32px -12px rgba(96, 165, 250, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ph-cta-box--accent:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.15) inset,
    0 12px 36px -6px rgba(0, 0, 0, 0.5),
    0 0 36px -8px rgba(96, 165, 250, 0.14);
}

.ph-cta-box--accent .ph-cta-box__hint {
  max-width: 32ch;
}

@media (min-width: 761px) {
  .ph-cta-grid--footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ph-cta-grid--footer .ph-cta-box {
    min-height: 100%;
  }
}

/* ─── Sections: shared ─── */
.ph-section {
  padding: clamp(1.65rem, 4vw, 3.35rem);
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(
    165deg,
    rgba(16, 16, 26, 0.98) 0%,
    rgba(12, 12, 18, 0.96) 48%,
    rgba(9, 9, 14, 0.94) 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.ph-section p {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.ph-section__kicker {
  margin: 0 0 0.45rem;
  max-width: none;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(160, 175, 195, 0.95);
}

.ph-section__intro {
  margin-top: 0.85rem;
}

/* ─── Definition ─── */
.ph-definition {
  margin-top: 0;
  padding: clamp(1.25rem, 3.2vw, 1.75rem) clamp(1.3rem, 3.5vw, 1.85rem);
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  background: linear-gradient(
    135deg,
    rgba(22, 22, 34, 0.98) 0%,
    rgba(13, 13, 20, 0.96) 100%
  );
}

.ph-definition__kicker {
  margin: 0 0 0.55rem;
  max-width: none;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.ph-definition__body {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(215, 225, 238, 0.96);
}

/* ─── Come funziona (open layout) ─── */
.ph-how-open {
  padding: clamp(1.65rem, 4vw, 3.35rem);
  border-radius: var(--radius);
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(
    165deg,
    rgba(16, 16, 26, 0.98) 0%,
    rgba(12, 12, 18, 0.96) 48%,
    rgba(9, 9, 14, 0.94) 100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.ph-how__topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ph-how__topbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ph-how__topbar-left .ph-section__kicker {
  margin: 0;
}

.ph-how__topbar-left h2 {
  margin: 0;
}

/* ─── Toggle pills ─── */
.ph-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.12);
  background: rgba(8, 8, 14, 0.65);
  flex-shrink: 0;
}

.ph-toggle__btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  color: var(--t2);
  background: transparent;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.ph-toggle__btn:hover {
  color: var(--t1);
}

.ph-toggle__btn--active {
  color: #fff;
  background: rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35) inset;
}

.ph-toggle__btn--active:hover {
  color: #fff;
}

/* ─── Step cards ─── */
.ph-step-cards-wrapper {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
}

.ph-step-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ph-step-cards--hidden {
  display: none;
}

.ph-step-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  box-sizing: border-box;
  min-width: 0;
}

.ph-step-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(20, 24, 38, 0.95) 0%,
    rgba(12, 14, 24, 0.92) 100%
  );
  border: 1px solid rgba(248, 250, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.85rem, 2vw, 1.15rem);
}

.ph-step-card__img svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.ph-step-card__title {
  margin: 0 0 0.35rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--t0);
}

.ph-step-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(160, 175, 195, 0.95);
}

/* ─── Proof section ─── */
.ph-section--fit {
  padding-top: clamp(2rem, 4.5vw, 3rem);
  padding-bottom: clamp(2.25rem, 5.5vw, 3.5rem);
}

.ph-section--fit .ph-section__kicker {
  margin-bottom: 0.72rem;
}

.ph-section--fit h2 {
  margin-bottom: 0.85rem;
}

.ph-section--fit .proof.ph-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}

.ph-section--fit .proof.ph-panel:hover {
  border-color: var(--border-h);
}

.ph-section__fit-lead {
  margin: 0 0 clamp(1.5rem, 3.4vw, 2rem);
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.58;
  color: rgba(215, 225, 238, 0.95);
}

.ph-proof-split {
  margin-top: clamp(1.5rem, 3.5vw, 2.15rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.75rem, 6vw, 4rem);
  align-items: start;
}

.ph-proof-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.ph-proof-group__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7bb8ff;
}

.ph-proof-metrics {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.25rem 0;
}

.ph-proof-group .ph-proof-grid--metrics {
  margin-top: 0;
}

.ph-proof-grid--metrics.proof-grid {
  margin-top: 0;
  text-align: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(0.55rem, 1.85vw, 0.9rem);
  max-width: min(100%, 27.5rem);
  width: 100%;
  margin-inline: auto;
}

.ph-proof-grid--metrics .proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.32rem;
  padding: clamp(0.82rem, 2vw, 1.05rem) clamp(0.65rem, 1.6vw, 0.95rem);
  min-width: 0;
}

.ph-proof-grid--metrics .proof-number {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--t0);
}

.ph-proof-grid--metrics .proof-label {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(0.625rem, 1.35vw, 0.71875rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(160, 175, 195, 0.95);
}

/* ─── Testimonial marquee (closers) ─── */
.ph-testimonial-marquee {
  --ph-testimonial-gap: clamp(0.95rem, 2.4vw, 1.28rem);
  margin-top: clamp(1rem, 2.5vw, 1.4rem);
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0;
}

.ph-testimonial-marquee__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.ph-testimonial-marquee__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: max-content;
  gap: var(--ph-testimonial-gap);
  will-change: transform;
}

.ph-testimonial-marquee__track--js {
  animation: none;
}

.ph-testimonial-card {
  flex: 0 0 auto;
  width: clamp(268px, 72vw, 340px);
  margin: 0;
  min-height: clamp(188px, 32vw, 228px);
  padding: clamp(1.28rem, 3.2vw, 1.65rem) clamp(1.12rem, 2.8vw, 1.42rem);
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: linear-gradient(
    168deg,
    rgba(24, 26, 40, 0.95) 0%,
    rgba(14, 16, 26, 0.92) 45%,
    rgba(10, 11, 20, 0.94) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 16px 40px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.28rem);
}

.ph-testimonial-card__header {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 0.95rem);
  min-width: 0;
}

.ph-testimonial-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(96, 165, 250, 0.22);
  background: rgba(6, 8, 14, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ph-testimonial-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-testimonial-card__who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

.ph-testimonial-card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--t0);
}

.ph-testimonial-card__role {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, 0.88);
  line-height: 1.3;
}

.ph-testimonial-card__meta {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--t2);
}

.ph-testimonial-card__quote {
  margin: 0;
  margin-top: auto;
  padding: clamp(0.9rem, 2.4vw, 1.15rem) 0 0;
  border: none;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.01em;
  color: rgba(215, 225, 238, 0.95);
  flex: 1;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ph-testimonial-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ─── Aziende: 2/3 + 1/3 layout ─── */
.ph-aziende-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.ph-aziende-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.5vw, 0.75rem);
}

.ph-aziende-metrics-stack .proof.ph-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: clamp(0.95rem, 2.2vw, 1.2rem) clamp(0.75rem, 1.8vw, 1rem);
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.2s;
}

.ph-aziende-metrics-stack .proof.ph-panel:hover {
  border-color: var(--border-h);
}

.ph-aziende-metrics-stack .proof-number {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--t0);
}

.ph-aziende-metrics-stack .proof-label {
  margin: 0;
  font-size: clamp(0.5625rem, 1.2vw, 0.6875rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(160, 175, 195, 0.95);
}

/* ─── Case study carousel ─── */
.ph-case-carousel {
  min-width: 0;
}

.ph-case-carousel__viewport {
  overflow: hidden;
  border-radius: 16px;
}

.ph-case-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ph-case-card {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  min-height: clamp(280px, 38vw, 340px);
  padding: clamp(1.65rem, 3.8vw, 2.25rem);
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: linear-gradient(
    168deg,
    rgba(24, 26, 40, 0.95) 0%,
    rgba(14, 16, 26, 0.92) 45%,
    rgba(10, 11, 20, 0.94) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 16px 40px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.1rem);
}

.ph-case-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.72rem;
  border-radius: 5px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(96, 165, 250, 0.95);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.ph-case-card__title {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--t0);
}

.ph-case-card__body {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: rgba(215, 225, 238, 0.95);
  flex: 1;
}

.ph-case-card__stats {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding-top: clamp(0.85rem, 2vw, 1.1rem);
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  margin-top: auto;
}

.ph-case-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  flex: 1;
  text-align: center;
}

.ph-case-card__stat-value {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--t0);
}

.ph-case-card__stat-label {
  font-size: clamp(0.5625rem, 1.2vw, 0.6875rem);
  font-weight: 500;
  line-height: 1.25;
  color: rgba(160, 175, 195, 0.95);
}

/* Dots */
.ph-case-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(0.75rem, 1.8vw, 1rem);
  padding: 0.25rem 0;
}

.ph-case-dot {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  height: 3px;
  width: 20px;
  border-radius: 2px;
  background: rgba(100, 116, 139, 0.45);
  opacity: 0.8;
  transition: width 0.4s ease, background-color 0.4s ease, opacity 0.4s ease;
}

.ph-case-dot--active {
  width: 32px;
  background: var(--t0);
  opacity: 1;
}

/* ─── Brand ─── */
.ph-section .placement-hub__actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

.ph-brand {
  margin-top: 0;
  padding-top: clamp(2.5rem, 6vw, 3.8rem);
  padding-bottom: clamp(0.85rem, 2.2vw, 1.25rem);
}

.ph-brand__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.45rem, 3.6vw, 2.55rem);
  align-items: center;
}

.ph-brand__copy {
  min-width: 0;
}

.ph-brand__visual {
  margin: 0;
  min-width: 0;
  max-width: min(100%, 26rem);
  justify-self: end;
}

.ph-brand__frame {
  position: relative;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.1);
  background: rgba(6, 8, 14, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: min(100%, 24rem);
  margin-inline: auto;
}

.ph-brand__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.ph-brand__frame picture {
  display: contents;
}

.ph-brand__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ph-brand__meta {
  margin-bottom: 0;
}

.ph-brand__link {
  color: var(--t2);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(148, 163, 184, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.ph-brand__link:hover {
  color: var(--t1);
  text-decoration-color: rgba(96, 165, 250, 0.45);
}

/* ─── Bottom strip ─── */
.ph-bottom-cta {
  margin-top: clamp(0.65rem, 1.8vw, 1rem);
  padding: clamp(1.45rem, 3.4vw, 1.95rem) var(--space-gutter);
  border-top: 1px solid rgba(248, 250, 252, 0.1);
}

.ph-bottom-cta__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 1.65rem;
}

.ph-bottom-cta__text {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--t1);
}

.ph-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.62rem 1.35rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.14);
  color: #fff;
  box-shadow: 0 2px 10px -3px rgba(96, 165, 250, 0.2);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ph-bottom-cta__btn:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.2);
  color: #fff;
  box-shadow: 0 4px 16px -3px rgba(96, 165, 250, 0.3);
}

/* ─── Footer ─── */
.ph-page .site-footer.ph-footer {
  margin-top: clamp(5rem, 10vw, 7rem);
}

.ph-footer {
  border-top-color: rgba(96, 165, 250, 0.2);
}

.ph-footer .site-footer__meta a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.ph-footer .site-footer__meta a:hover {
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ph-footer .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  margin: 0.55rem 0 0;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.ph-footer .site-footer__legal a + a::before {
  content: '|';
  margin-right: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.ph-footer .site-footer__legal a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.ph-footer .site-footer__legal a:hover {
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Responsive: 980px ─── */
@media (max-width: 980px) {
  .ph-brand__layout {
    grid-template-columns: 1fr;
  }

  .ph-brand__visual {
    justify-self: center;
    max-width: min(100%, 22rem);
  }

  .ph-brand__frame {
    max-width: min(100%, 22rem);
  }

  .ph-aziende-layout {
    grid-template-columns: 1fr;
  }

  .ph-aziende-metrics-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.55rem, 1.85vw, 0.9rem);
    max-width: min(100%, 27.5rem);
    margin-inline: auto;
  }
}

/* ─── Responsive: 760px ─── */
@media (max-width: 760px) {
  .ph-page .site-header.ph-header {
    height: 3.5rem;
  }

  .ph-header__brand-lines {
    gap: 0;
    line-height: 1;
  }

  .ph-header__brand-line1 {
    font-size: 0.63rem;
    line-height: 1;
  }

  .ph-header__brand-line2 {
    font-size: 0.63rem;
    line-height: 1;
  }

  .ph-header__nav {
    display: none;
  }

  .ph-header__lead {
    min-width: 0;
  }

  .ph-system-note--header {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ph-cta-grid {
    grid-template-columns: 1fr;
  }

  .ph-section,
  .ph-how-open {
    padding: clamp(1.25rem, 5.2vw, 1.55rem);
  }

  .ph-page main > .section:not(:first-child) {
    margin-top: clamp(2rem, 6.5vw, 2.85rem);
  }

  .ph-page main > .section.ph-section--fit {
    margin-top: clamp(2.2rem, 7vw, 3.15rem);
  }

  .ph-how__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  /* Step cards: horizontal scroll */
  .ph-step-cards {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1rem);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .ph-step-cards::-webkit-scrollbar {
    display: none;
  }

  .ph-step-card {
    flex: 0 0 clamp(240px, 78vw, 300px);
    scroll-snap-align: center;
  }

  .ph-bottom-cta__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ph-bottom-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .ph-proof-grid--metrics.proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(100%, 22.5rem);
    gap: 0.38rem;
  }

  .ph-proof-grid--metrics .proof {
    padding: 0.52rem 0.38rem;
  }

  .ph-proof-grid--metrics .proof-number {
    font-size: clamp(0.74rem, 3.2vw, 0.88rem);
  }

  .ph-proof-grid--metrics .proof-label {
    max-width: none;
    font-size: clamp(0.5rem, 2.6vw, 0.5625rem);
    line-height: 1.15;
  }

  .ph-testimonial-card {
    width: min(100%, clamp(252px, 86vw, 300px));
    min-height: clamp(172px, 42vw, 200px);
    padding: 1.05rem 0.95rem;
    gap: 0.85rem;
    border-radius: 14px;
  }

  .ph-testimonial-card__avatar {
    width: 48px;
    height: 48px;
  }

  .ph-testimonial-card__name {
    font-size: 0.875rem;
  }

  .ph-testimonial-card__role {
    font-size: 0.6875rem;
  }

  .ph-testimonial-card__meta {
    font-size: 0.625rem;
  }

  .ph-testimonial-card__quote {
    padding-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.52;
  }

  .ph-case-card {
    padding: 1.25rem 1.05rem;
    border-radius: 14px;
    gap: 0.7rem;
    min-height: clamp(250px, 62vw, 300px);
  }

  .ph-case-card__title {
    font-size: 0.9375rem;
  }

  .ph-case-card__body {
    font-size: 0.75rem;
    line-height: 1.52;
  }

  .ph-case-card__stats {
    gap: 0.55rem;
    padding-top: 0.72rem;
  }

  .ph-case-card__stat-value {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  .ph-case-card__stat-label {
    font-size: clamp(0.5rem, 2.4vw, 0.5625rem);
  }

  .ph-aziende-metrics-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    max-width: min(100%, 22.5rem);
    margin-inline: auto;
  }

  .ph-aziende-metrics-stack .proof-number {
    font-size: clamp(0.74rem, 3.2vw, 0.88rem);
  }

  .ph-aziende-metrics-stack .proof-label {
    font-size: clamp(0.5rem, 2.6vw, 0.5625rem);
    line-height: 1.15;
  }

  .ph-footer .site-footer__legal {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 761px) {
  .ph-proof-grid--metrics.proof-grid {
    max-width: min(100%, 42.5rem);
    gap: clamp(0.85rem, 2vw, 1.2rem);
  }

  .ph-proof-grid--metrics .proof {
    padding: clamp(0.95rem, 2.15vw, 1.2rem) clamp(0.85rem, 2vw, 1.1rem);
  }

  .ph-proof-grid--metrics .proof-label {
    max-width: none;
    font-size: 0.71875rem;
    line-height: 1.28;
  }
}
