/* ==========================================================================
   PIETRO STROLLO — Redesign 2026 (Awwwards-style)
   Visual-heavy creative dev portfolio: cinematic, gradient, kinetic
   ========================================================================== */

:root {
  --bg: #131313;
  --bg-elev: #111114;
  --bg-elev-2: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-dim: #a8a8b0;
  --text-mute: #6e6e76;
  --brand: #f18918;
  --brand-2: #ff6a3d;
  --brand-3: #ffb547;
  --accent: #ec4899;
  --accent-2: #ffd166;
  --grad-brand: linear-gradient(135deg, #ffb547 0%, #f18918 45%, #ff6a3d 100%);
  --grad-warm: linear-gradient(135deg, #f18918 0%, #ff6a3d 60%, #ec4899 100%);
  --grad-aurora:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(241, 137, 24, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 45% at 80% 20%, rgba(255, 106, 61, 0.40), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(236, 72, 153, 0.25), transparent 60%);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body.ps-redesign {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 920px) { body.ps-redesign { cursor: auto; } }

body.ps-redesign a, body.ps-redesign button { cursor: none; }
@media (max-width: 920px) { body.ps-redesign a, body.ps-redesign button { cursor: pointer; } }

.ps-redesign img { max-width: 100%; height: auto; display: block; }

.ps-redesign .ital.grad {
  padding: 0.03em 0.12em 0.06em 0.03em;
  margin: -0.03em -0.10em -0.06em -0.03em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ps-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) { .ps-container { padding: 0 20px; } }

/* ============ Custom cursor ============ */
.ps-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--text);
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  transform: translate(-50%, -50%);
}

.ps-cursor.is-hover {
  width: 34px; height: 34px;
  background: rgba(241,137,24,0.08);
  border-color: rgba(241,137,24,0.85);
  mix-blend-mode: normal;
}

.ps-cursor.is-view {
  width: 64px; height: 64px;
  background: rgba(241,137,24,0.10);
  border-color: rgba(241,137,24,0.85);
  mix-blend-mode: normal;
}

.ps-cursor.is-hero-card {
  width: 12px !important;
  height: 12px !important;
  background: var(--text) !important;
  border-color: transparent !important;
  mix-blend-mode: difference !important;
}

.ps-cursor__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0;
  transition: opacity .2s;
}

.ps-cursor.is-view .ps-cursor__label { opacity: 1; }
.ps-cursor.is-hero-card .ps-cursor__label { opacity: 0 !important; }

@media (max-width: 920px) { .ps-cursor { display: none; } }

/* ============ Background grain ============ */
.ps-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Sotto la nav (100) e sotto i video dei case study (50): la texture non deve sporcare i video. */
  z-index: 40;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Aurora background blobs (animated) ============ */
.ps-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ps-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: ps-float 20s ease-in-out infinite;
}

.ps-aurora__blob--1 { width: 600px; height: 600px; background: #f18918; top: -10%; left: -10%; }
.ps-aurora__blob--2 { width: 500px; height: 500px; background: #ff6a3d; top: 40%; right: -10%; animation-delay: -7s; }
.ps-aurora__blob--3 { width: 450px; height: 450px; background: #ec4899; bottom: -10%; left: 30%; animation-delay: -14s; }

@keyframes ps-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.95); }
}

/* ============ Navbar ============ */
.ps-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1100px;
  background: rgba(17, 17, 20, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: all .4s var(--ease);
}

.ps-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s var(--ease);
}

.ps-nav__brand:hover { opacity: 0.75; }

.ps-nav__logo {
  height: 45px !important;
  width: auto !important;
  display: block;
}

@media (max-width: 720px) { .ps-nav__logo { height: 36px !important; } }

.ps-nav__menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.ps-nav__menu a {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-dim);
  transition: all .25s var(--ease);
  text-decoration: none;
}

.ps-nav__menu a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.ps-nav__cta {
  background: var(--text);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ps-nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}

.ps-nav__cta:hover { color: #fff; }
.ps-nav__cta:hover::before { transform: translateY(0); }
.ps-nav__cta span { position: relative; z-index: 1; }

.ps-nav__burger {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text);
}

@media (max-width: 860px) {
  .ps-nav__menu { display: none; }
  .ps-nav__burger { display: grid; place-items: center; }
  .ps-nav { padding: 8px 8px 8px 18px; }
  .ps-nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    gap: 10px;
  }
  .ps-nav__menu.is-open a {
    display: block;
    padding: 16px 18px;
  }
}

@media (max-width: 400px) {
  .ps-nav__cta { display: none; }
}

/* ============ HERO — floating cards ============ */
.ps-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(241, 137, 24, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 106, 61, 0.08), transparent 60%),
    #050507;
}

.ps-hero__topbar { margin-bottom: 48px !important; }

/* Soft grid pattern */
.ps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 90%);
  pointer-events: none;
}

.ps-hero::after {
  content: '';
  position: absolute;
  inset: 8% 12% 12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 48%, rgba(241, 137, 24, 0.22), transparent 68%),
    radial-gradient(ellipse 42% 36% at 68% 58%, rgba(236, 72, 153, 0.16), transparent 70%);
  filter: blur(28px);
  opacity: 0.85;
}

/* Floating cards layer */
.ps-hero__cards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --card-side-gap: clamp(28px, 4.5vw, 96px);
}

.ps-hero__card {
  position: absolute;
  width: var(--w, 220px);
  transform: rotate(var(--r, 0deg)) translate(var(--px, 0px), var(--py, 0px));
  will-change: transform;
  transition: transform .25s var(--ease);
  color: var(--text);
  pointer-events: none;
  text-decoration: none;
}

.ps-hero__card-inner {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04);
  animation: ps-cardFloat var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
  background: var(--bg-elev);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.ps-hero__card img {
  width: 100%;
  height: auto;
  filter: saturate(0.95);
  display: block;
  transition: filter .35s var(--ease), transform .35s var(--ease);
}

.ps-hero__card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, transparent 30%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

.ps-hero__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  background: rgba(5,5,7,0.42);
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.ps-hero__card-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(8px);
  transition: transform .3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .ps-hero__card { pointer-events: auto; }

  .ps-hero__card:hover .ps-hero__card-inner {
    border-color: rgba(241,137,24,0.55);
    box-shadow:
      0 34px 70px -18px rgba(0,0,0,0.82),
      0 0 0 1px rgba(241,137,24,0.18);
    transform: translateY(-4px);
  }

  .ps-hero__card:hover img {
    filter: saturate(1.05) brightness(0.72);
    transform: scale(1.035);
  }

  .ps-hero__card:hover .ps-hero__card-overlay { opacity: 1; }
  .ps-hero__card:hover .ps-hero__card-overlay span { transform: translateY(0); }
}

@keyframes ps-cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1.2deg); }
}

/* Card placements: side rails keep the central SEO/conversion message clear. */
.ps-hero__card--1 { top: 12%; left: var(--card-side-gap); --w: 210px; --r: -7deg; --dur: 9s; --delay: 0s; }
.ps-hero__card--2 { top: 8%; right: var(--card-side-gap); --w: 230px; --r: 6deg; --dur: 11s; --delay: -2s; }
.ps-hero__card--3 { top: 40%; left: var(--card-side-gap); --w: 160px; --r: -4deg; --dur: 10s; --delay: -4s; }
.ps-hero__card--4 { bottom: 8%; right: var(--card-side-gap); --w: 220px; --r: 7deg; --dur: 12s; --delay: -6s; }
.ps-hero__card--5 { bottom: 10%; left: clamp(22px, 3.2vw, 70px); --w: 180px; --r: -6deg; --dur: 9.5s; --delay: -3s; }
.ps-hero__card--6 { top: 40%; right: var(--card-side-gap); --w: 160px; --r: 4deg; --dur: 8.5s; --delay: -5s; }

@media (max-width: 1680px) {
  .ps-hero__cards { --card-side-gap: clamp(20px, 3vw, 48px); }
  .ps-hero__card--1 { --w: 170px; top: 13%; }
  .ps-hero__card--2 { --w: 190px; top: 9%; }
  .ps-hero__card--3 { --w: 135px; left: 20px; top: 40%; }
  .ps-hero__card--4 { --w: 180px; bottom: 7%; }
  .ps-hero__card--5 { --w: 145px; left: 20px; bottom: 8%; }
  .ps-hero__card--6 { --w: 135px; right: 20px; top: 40%; }
}

@media (max-width: 1440px) {
  .ps-hero__card--3,
  .ps-hero__card--6 { display: none; }
  .ps-hero__card--1 { --w: 140px; top: 12%; left: 18px; }
  .ps-hero__card--2 { --w: 150px; top: 12%; right: 18px; }
  .ps-hero__card--4 { --w: 150px; right: 18px; bottom: 7%; }
  .ps-hero__card--5 { --w: 130px; left: 18px; bottom: 7%; }
}

@media (max-width: 1220px) {
  .ps-hero__card--1,
  .ps-hero__card--2 { display: none; }
  .ps-hero__card--4 { --w: 130px; right: 16px; bottom: 5%; }
  .ps-hero__card--5 { --w: 120px; left: 16px; bottom: 5%; }
}

@media (max-width: 920px) {
  .ps-hero__cards { display: none; }
}

.ps-hero__inner { position: relative; z-index: 3; width: 100%; }

.ps-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ps-hero__kicker span {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
}

.ps-hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

/* HERO TITLE — display */
.ps-hero__title {
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 auto 24px;
  position: relative;
  max-width: 1180px;
  text-align: center;
}

.ps-hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.06em;
}
.ps-hero__title .line-inner { display: inline-block; will-change: transform; }

.ps-hero__title .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ps-hero__title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-hero__title .stroke {
  -webkit-text-stroke: 1.5px var(--text);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* HERO bottom row */
.ps-hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  text-align: center;
}

.ps-hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0;
}

.ps-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ps-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 980px);
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  text-align: left;
}

.ps-hero__proof li {
  min-height: 132px;
  padding: 24px;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(18px);
}

.ps-hero__proof strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ps-hero__proof span {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .ps-hero__proof { grid-template-columns: 1fr; max-width: 560px; }
  .ps-hero__proof li { min-height: auto; padding: 20px; }
}

/* HERO bottom slide indicator */
.ps-hero__indicator {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
}

.ps-hero__indicator-counter {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  border-radius: 100px;
}

.ps-hero__indicator-counter b { color: var(--brand); font-weight: 500; }

.ps-hero__indicator-bar {
  width: 80px; height: 2px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.ps-hero__indicator-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform: translateX(-100%);
  animation: ps-progress 5s linear infinite;
}

@keyframes ps-progress {
  to { transform: translateX(0); }
}

@media (max-width: 720px) {
  .ps-hero__indicator { right: 20px; bottom: 20px; }
  .ps-hero__indicator-bar { width: 50px; }
}

/* ============ Buttons ============ */
.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  font-family: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.ps-btn--primary { background: var(--text); color: var(--bg); }

.ps-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}

.ps-btn--primary:hover { color: #fff; }
.ps-btn--primary:hover::before { transform: translateY(0); }
.ps-btn--primary > * { position: relative; z-index: 1; }

.ps-btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.ps-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.ps-btn .arrow {
  transition: transform .3s var(--ease);
  display: inline-flex;
}

.ps-btn__count {
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  color: var(--brand);
  margin-left: 4px;
  letter-spacing: 0.04em;
  vertical-align: baseline;
}

.ps-btn:hover .arrow { transform: translate(4px, -4px); }

/* ============ Marquee ============ */
.ps-marquee {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  z-index: 2;
}

.ps-marquee__track {
  display: flex;
  gap: 64px;
  animation: ps-scroll 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ps-marquee:hover .ps-marquee__track { animation-play-state: paused; }

.ps-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 42px);
  color: var(--text);
  font-weight: 400;
}

.ps-marquee__item .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex-shrink: 0;
}

.ps-marquee__item.is-stroke {
  -webkit-text-stroke: 1px var(--text);
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

@keyframes ps-scroll {
  to { transform: translateX(-50%); }
}

/* ============ Sections base ============ */
.ps-section {
  position: relative;
  padding: 140px 0;
  z-index: 1;
}

@media (max-width: 920px) {
  .ps-section { padding: 72px 0; }
  .ps-redesign #contatto-page { padding: 72px 0 !important; }
}

.ps-section--dark { background: #050507; }
.ps-section--alt { background: var(--bg-elev); }

.ps-section--services {
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 12% 18%, rgba(241, 137, 24, 0.16), transparent 62%),
    radial-gradient(ellipse 48% 44% at 90% 72%, rgba(236, 72, 153, 0.10), transparent 68%),
    linear-gradient(180deg, #050507 0%, #0a0a0c 48%, #050507 100%);
}

.ps-section--services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 78% 64% at 50% 44%, black, transparent 86%);
}

.ps-section--services::after {
  content: 'SERVIZI';
  position: absolute;
  right: -0.06em;
  top: 52px;
  z-index: 0;
  font-size: 180px;
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.055);
  pointer-events: none;
}

.ps-section--services .ps-container,
.ps-section--services .ps-section__head {
  position: relative;
  z-index: 1;
}

.ps-section--services .ps-section__head {
  display: block;
  max-width: 1050px;
}

.ps-section--services .ps-section__title {
  max-width: 1050px;
}

.ps-section--services .ps-section__lead {
  max-width: 980px;
}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 24px;
}

.ps-eyebrow::before {
  content: ''; width: 32px; height: 1px;
  background: var(--brand);
}

.ps-section__title {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 900px;
}

.ps-section__title .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-section__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 24px;
  margin-bottom: 24px !important;
  line-height: 1.6;
}

.ps-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 80px;
}

.ps-section__head .ps-section__lead { margin-bottom: 0; }

/* ============ Services — Editorial Bento ============ */
.ps-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.ps-service {
  position: relative;
  padding: 36px 32px 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(241,137,24,0.06), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(255,106,61,0.04), transparent 60%),
    linear-gradient(180deg, rgba(22,18,18,0.78) 0%, rgba(12,12,16,0.82) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(20px);
  transition:
    transform .55s var(--ease),
    border-color .45s var(--ease),
    background .5s var(--ease),
    box-shadow .55s var(--ease);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Pattern dot grid decorativo in basso a sinistra (sempre visibile) */
.ps-service > .ps-service__dots {
  position: absolute;
  bottom: 78px;
  right: 28px;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 100%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 100%);
}

/* Linea/barra arancione che cresce in basso al hover */
.ps-service::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease);
  z-index: 4;
}

/* Glow morbido che segue il cursore — intensifica al hover */
.ps-service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(241,137,24,0.16), transparent 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: 0;
  pointer-events: none;
}

.ps-service > * { position: relative; z-index: 2; }

/* Head: kicker mono in alto (eyebrow) + icona compatta */
.ps-service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}

.ps-service__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  transition: transform .5s var(--ease-bounce), border-color .35s var(--ease), background .35s var(--ease);
  flex-shrink: 0;
  order: 2;
}

.ps-service__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .3s var(--ease);
}

.ps-service__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,244,245,0.5);
  transition: color .35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 1;
}

.ps-service__kicker::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* Titolo */
.ps-service__title {
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.08;
  max-width: 14ch;
  text-wrap: balance;
  transition: color .35s var(--ease);
}

/* Descrizione */
.ps-service__desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
  transition: color .35s var(--ease);
}

/* Tag pill mono */
.ps-service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
}

.ps-service__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(244,244,245,0.68);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

/* Link CTA in fondo */
.ps-service__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(244,244,245,0.85);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.ps-service__link .arrow-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  transition: transform .45s var(--ease-bounce), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

/* ============ HOVER STATE — dark stays dark, accenti brand ============ */
.ps-service:hover {
  transform: translateY(-6px);
  background: rgba(20,16,14,0.82);
  border-color: rgba(241,137,24,0.45);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(241,137,24,0.10),
    0 0 60px -20px rgba(241,137,24,0.35);
}

.ps-service:hover::before { transform: scaleX(1); }
.ps-service:hover::after { opacity: 1; }

.ps-service:hover .ps-service__dots {
  opacity: 0.9;
  background-image: radial-gradient(rgba(241,137,24,0.55) 1px, transparent 1.5px);
  transform: translate(-4px, -4px);
}

.ps-service:hover .ps-service__kicker {
  color: var(--brand-3);
}

.ps-service:hover .ps-service__desc {
  color: rgba(244,244,245,0.82);
}

.ps-service:hover .ps-service__icon {
  background: rgba(241,137,24,0.16);
  border-color: rgba(241,137,24,0.5);
  transform: rotate(-6deg);
}

.ps-service:hover .ps-service__tags span {
  color: rgba(244,244,245,0.88);
  border-color: rgba(241,137,24,0.28);
  background: rgba(241,137,24,0.08);
}

.ps-service:hover .ps-service__link {
  color: var(--brand-3);
  border-top-color: rgba(241,137,24,0.22);
}

.ps-service:hover .ps-service__link .arrow-wrap {
  background: var(--brand);
  border-color: var(--brand);
  color: #0a0a0c;
  transform: translate(3px, -3px);
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .ps-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-service { min-height: 400px; }
}

@media (max-width: 720px) {
  .ps-section--services::after { display: none; }
  .ps-services { grid-template-columns: 1fr; gap: 12px; }
  .ps-service {
    min-height: auto;
    padding: 28px 24px 24px;
    border-radius: 20px;
  }
  .ps-service__title { font-size: 22px; max-width: 16ch; }
  .ps-service__icon { width: 46px; height: 46px; border-radius: 12px; }
  .ps-service__icon img { width: 24px; height: 24px; }
  .ps-service__head { margin-bottom: 22px; }
}

/* ============ Projects (uniform square grid) ============ */
.ps-section--work {
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 44% at 12% 12%, rgba(241,137,24,0.10), transparent 64%),
    radial-gradient(ellipse 48% 38% at 92% 34%, rgba(236,72,153,0.08), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, #070708 52%, var(--bg) 100%);
}

.ps-section--work::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 82% 70% at 50% 42%, black, transparent 88%);
}

.ps-section--work::after {
  content: 'LAVORI';
  position: absolute;
  right: -0.08em;
  top: 44px;
  z-index: 0;
  font-size: clamp(96px, 13vw, 210px);
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.045);
  pointer-events: none;
}

.ps-section--work .ps-container,
.ps-section--work .ps-section__head,
.ps-section--work .ps-filters,
.ps-section--work .ps-projects,
.ps-section--work .ps-work-intro,
.ps-section--work .ps-work-toolbar {
  position: relative;
  z-index: 1;
}

.ps-section--work .ps-section__head {
  align-items: flex-end;
  margin-bottom: 42px;
}

.ps-section--work .ps-section__lead {
  max-width: 760px;
  margin-bottom: 24px;
}

.ps-work-intro {
  max-width: 780px;
}

.ps-work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.ps-work-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 7px 8px 7px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035));
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.ps-work-link em {
  font-style: normal;
  color: var(--text-mute);
}

.ps-work-link svg {
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.ps-work-link:hover {
  color: var(--text);
  border-color: rgba(241,137,24,0.35);
  background:
    linear-gradient(135deg, rgba(241,137,24,0.16), rgba(255,255,255,0.055));
  transform: translateY(-2px);
}

.ps-work-link:hover svg {
  background: var(--grad-brand);
  color: #0a0a0c;
  transform: translate(3px, -3px);
}

.ps-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.ps-project {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #111114;
  border: 1px solid rgba(10,10,12,0.12);
  box-shadow: 0 26px 80px rgba(10,10,12,0.16);
  transition: transform .5s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.ps-project::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,181,71,0.26), transparent 28%),
    linear-gradient(135deg, rgba(241,137,24,0.08), rgba(236,72,153,0.06));
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.ps-project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}

.ps-project__media { position: absolute; inset: 0; overflow: hidden; }

.ps-project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(0.9) contrast(0.96);
}

.ps-project:hover {
  transform: translateY(-8px);
  border-color: rgba(241,137,24,0.34);
  box-shadow: 0 34px 110px rgba(0,0,0,0.36), 0 0 0 1px rgba(241,137,24,0.07);
}

.ps-project:hover::before { opacity: 1; }
.ps-project:hover::after {
  border-color: rgba(255,181,71,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.ps-project:hover .ps-project__media img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.02);
}

.ps-project__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,7,0.02) 0%, rgba(5,5,7,0.10) 34%, rgba(5,5,7,0.74) 72%, rgba(5,5,7,0.94) 100%);
  z-index: 1;
  transition: background .45s var(--ease);
}

.ps-project:hover .ps-project__overlay {
  background:
    linear-gradient(180deg, rgba(5,5,7,0.00) 0%, rgba(5,5,7,0.08) 34%, rgba(5,5,7,0.70) 72%, rgba(5,5,7,0.96) 100%);
}

.ps-project__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  transform: translateY(6px);
  transition: transform .45s var(--ease);
}

.ps-project:hover .ps-project__body {
  transform: translateY(0);
}

.ps-project__cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(241,137,24,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(241,137,24,0.18);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 14px;
}

.ps-project__title {
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.ps-project__title .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-project__sub {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(244,244,245,0.70);
  margin: 0;
  text-shadow: 0 10px 26px rgba(0,0,0,0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-project__arrow {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  flex-shrink: 0;
}

.ps-project:hover .ps-project__arrow {
  background: var(--grad-brand);
  border-color: transparent;
  color: #0a0a0c;
  transform: translate(3px, -3px);
}

@media (max-width: 920px) {
  .ps-projects { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ps-project__body { padding: 20px; }
  .ps-section--work::after { display: none; }
}

@media (max-width: 600px) {
  .ps-projects { grid-template-columns: 1fr; }
  .ps-project { border-radius: 22px; }
  .ps-project__body { padding: 18px; }
  .ps-project__arrow { width: 42px; height: 42px; border-radius: 12px; }
  .ps-project__sub { -webkit-line-clamp: 1; }
}

@media (min-width: 921px) {
  .ps-projects {
    padding-top: 8px;
  }
}

/* ============ Filter chips ============ */
.ps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px);
}

.ps-filter {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.ps-filter:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }

.ps-filter.is-active {
  background: var(--grad-brand);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(241,137,24,0.18);
}

@media (max-width: 720px) {
  .ps-section--work .ps-section__head {
    align-items: flex-start;
  }

  .ps-work-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .ps-work-link {
    align-self: center;
  }

  .ps-filters {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    padding: 10px;
  }
  .ps-filter { flex: 0 1 auto; }
}


/* ============ Process highlights ============ */
.ps-section--process .ps-section__head {
  align-items: flex-end;
}

.ps-section--process .ps-section__lead {
  margin-bottom: 24px;
}

.ps-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.ps-process::before {
  display: none;
}

.ps-step {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.ps-step::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  border-radius: 999px;
  background: var(--grad-brand);
  margin-bottom: 14px;
}

.ps-step:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: rgba(255,255,255,0.045);
}

.ps-step__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: none;
}

.ps-step__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

@media (max-width: 920px) {
  .ps-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ps-section--process .ps-section__head {
    align-items: flex-start;
  }

  .ps-section--process .ps-section__lead {
    margin-bottom: 0;
  }

  .ps-process { grid-template-columns: 1fr; }
}

/* ============ Portfolio page ============ */
.ps-portfolio-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 64px;
  background:
    radial-gradient(ellipse 58% 42% at 12% 18%, rgba(241,137,24,0.18), transparent 68%),
    radial-gradient(ellipse 46% 36% at 92% 36%, rgba(236,72,153,0.10), transparent 70%),
    var(--bg);
}

.ps-portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, black, transparent 88%);
}

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

.ps-portfolio-hero__inner {
  max-width: 1060px;
}

.ps-portfolio-hero__inner h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0 0 34px;
}

.ps-portfolio-hero__inner h1 .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-portfolio-hero__inner h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-portfolio-hero__inner p {
  color: var(--text-dim);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.62;
  max-width: 780px;
  margin: 0;
}

.ps-section--portfolio-list {
  padding-top: 36px;
}

.ps-portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ps-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px);
}

.ps-portfolio-filter {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.ps-portfolio-filter:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.ps-portfolio-filter.is-active {
  background: var(--grad-brand);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(241,137,24,0.18);
}

.ps-portfolio-count {
  margin: 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ps-portfolio-grid {
  transition: opacity .25s var(--ease);
}

.ps-portfolio-item[hidden] {
  display: none !important;
}

.ps-portfolio-empty {
  grid-column: 1 / -1;
  color: var(--text-dim);
  text-align: center;
  padding: 80px 0;
  margin: 0;
}

@media (max-width: 920px) {
  .ps-portfolio-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ps-portfolio-count {
    padding-left: 0;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .ps-portfolio-hero {
    padding: 150px 0 64px;
  }

  .ps-portfolio-hero__inner h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .ps-portfolio-filters {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    padding: 10px;
  }

  .ps-portfolio-filter {
    flex: 0 1 auto;
  }
}

/* ============ Case study pages ============ */
.ps-case-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 70px;
  background:
    radial-gradient(ellipse 58% 44% at 16% 14%, rgba(241,137,24,0.18), transparent 70%),
    radial-gradient(ellipse 48% 38% at 92% 34%, rgba(236,72,153,0.10), transparent 72%),
    var(--bg);
}

.ps-case-hero .ps-container {
  position: relative;
  z-index: 50; /* sopra .ps-grain (40): la cover del case study resta pulita */
}

.ps-case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.ps-case-hero__grid > *,
.ps-case-copy > * {
  min-width: 0;
}

.ps-case-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.ps-case-hero h1 .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-case-hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-case-hero__lead {
  width: 100%;
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
}

.ps-case-meta {
  display: grid;
  width: 100%;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.ps-case-meta__item {
  padding: 18px 20px;
  background: rgba(255,255,255,0.035);
}

.ps-case-meta__label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps-case-meta__value {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.ps-case-cover {
  max-width: 1320px;
  margin: 54px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--bg-elev);
  box-shadow: 0 34px 120px rgba(0,0,0,0.36);
}

.ps-case-cover img {
  width: 100%;
  height: auto;
}

.ps-case-section {
  padding: 86px 0 clamp(48px, 5vw, 82px);
}

.ps-case-copy {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.8fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}

.ps-case-copy__title {
  position: sticky;
  top: 130px;
}

.ps-case-copy__title h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ps-case-copy__body {
  max-width: 820px;
}

.ps-case-copy__body p {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.78;
  overflow-wrap: break-word;
}

.ps-case-copy__body p + p {
  margin-top: 24px;
}

.ps-case-copy__body strong {
  color: var(--text);
  font-weight: 600;
}

.ps-case-copy__body a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ps-case-copy__body a.ps-case-inline {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.ps-case-copy__body a.ps-case-inline:hover {
  color: var(--text);
  text-decoration-color: var(--brand);
}

.ps-case-media {
  max-width: 1320px;
  margin: 74px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-elev);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
}

.ps-case-media img {
  width: 100%;
  height: auto;
}

.ps-case-media--single {
  width: 100%;
}

.ps-case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1320px;
  margin: 74px auto 0;
}

.ps-case-gallery--single {
  grid-template-columns: 1fr;
}

.ps-case-gallery .ps-case-media {
  margin: 0;
}

.ps-case-gallery .ps-case-media:only-child {
  grid-column: 1 / -1;
}

.ps-case-video {
  position: relative;
  z-index: 50; /* sopra .ps-grain (40), sotto la nav (100) */
  max-width: 1320px;
  margin: 74px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-elev);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
}

/* Immagini dei case study e card progetto sopra la texture grain (40): foto e video puliti. */
.ps-case-cover,
.ps-case-media,
.ps-case-logo-panel,
.ps-project {
  position: relative;
  z-index: 50;
}

/* Le sezioni con griglie progetti hanno z-index 1 (.ps-section) che intrappolerebbe le card sotto il grain. */
.ps-section--work,
.ps-section--portfolio-list {
  z-index: 50;
}

.ps-case-video__frame {
  position: relative;
  aspect-ratio: var(--case-video-ratio, 16 / 9);
}

.ps-case-video--wide .ps-case-video__frame {
  aspect-ratio: 2 / 1;
}

.ps-case-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050507;
}

.ps-case-video--cover video {
  object-fit: cover;
}

.ps-case-logo-panel,
.ps-case-demo {
  max-width: 1320px;
  margin: 74px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(241,137,24,0.10), transparent 58%),
    var(--bg-elev);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
}

.ps-case-logo-panel {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 80px);
}

.ps-case-logo-panel img {
  width: min(100%, 360px);
  height: auto;
}

.ps-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ps-case-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

.ps-case-demo {
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}

.ps-case-demo .ps-eyebrow {
  justify-content: center;
}

.ps-case-demo h2 {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ps-case-demo p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
}

.ps-case-demo .ps-case-cta__actions {
  margin-bottom: 22px;
}

.ps-case-demo .ps-btn {
  min-height: 0;
  padding: 14px 24px;
}

.ps-case-demo__credentials {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-case-cta {
  max-width: 980px;
  margin: 96px auto 0;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(241,137,24,0.18), transparent 58%),
    var(--bg-elev);
  text-align: center;
}

.ps-case-cta h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ps-case-cta p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
}

.ps-case-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 920px) {
  .ps-case-hero__grid,
  .ps-case-copy {
    grid-template-columns: 1fr;
  }

  .ps-case-copy__title {
    position: static;
  }

  .ps-case-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ps-case-hero {
    padding: 145px 0 54px;
  }

  .ps-case-hero__lead,
  .ps-case-copy__body {
    max-width: calc(100vw - 40px);
  }

  .ps-case-hero__lead,
  .ps-case-copy__body p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .ps-case-meta {
    max-width: calc(100vw - 40px);
  }

  .ps-case-cover,
  .ps-case-media,
  .ps-case-video,
  .ps-case-cta {
    border-radius: 18px;
  }

  .ps-case-section {
    padding: 62px 0 66px;
  }

  .ps-case-gallery {
    gap: 18px;
    margin-top: 56px;
  }

  .ps-case-list {
    grid-template-columns: 1fr;
  }

  .ps-case-logo-panel,
  .ps-case-demo {
    border-radius: 18px;
  }
}

/* ============ About mini / about page ============ */
.ps-section--about-mini {
  background:
    radial-gradient(ellipse 48% 42% at 12% 0%, rgba(241,137,24,0.10), transparent 68%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ps-about-mini {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: flex-end;
}

.ps-about-mini .ps-section__title {
  max-width: 980px;
}

.ps-about-mini__content {
  margin-bottom: 24px;
  max-width: 560px;
}

.ps-about-mini__content p {
  color: var(--text-dim);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  margin: 0 0 28px;
}

.ps-about-mini__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: color .25s var(--ease);
}

.ps-about-mini__link::before {
  content: '';
  width: 46px;
  height: 1px;
  background: var(--grad-brand);
  transition: width .3s var(--ease);
}

.ps-about-mini__link .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0a0c;
  background: var(--text);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.ps-about-mini__link:hover {
  color: var(--brand);
}

.ps-about-mini__link:hover::before {
  width: 64px;
}

.ps-about-mini__link:hover .arrow {
  background: var(--grad-brand);
  transform: translate(3px, -3px);
}

.ps-about-page-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 90px;
  background:
    radial-gradient(ellipse 60% 42% at 18% 18%, rgba(241,137,24,0.18), transparent 68%),
    radial-gradient(ellipse 48% 38% at 90% 34%, rgba(236,72,153,0.10), transparent 70%),
    var(--bg);
}

.ps-about-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 86% 72% at 50% 42%, black, transparent 88%);
}

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

.ps-about-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.ps-about-page-hero__content h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0 0 34px;
  max-width: 980px;
}

.ps-about-page-hero__content h1 .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-about-page-hero__content h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-about-page-hero__content p {
  color: var(--text-dim);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.62;
  max-width: 760px;
  margin: 0;
}

.ps-about-page-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.ps-about-page-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 120px rgba(0,0,0,0.34);
}

.ps-about-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-about-page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(10,10,12,0.72));
  pointer-events: none;
}

.ps-about-page-hero__tag {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-about-page-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 70px;
}

.ps-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.ps-story__side {
  position: sticky;
  top: 130px;
}

.ps-story__content {
  max-width: 840px;
}

.ps-story__content p {
  color: var(--text-dim);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.78;
  margin: 0;
}

.ps-story__content p + p {
  margin-top: 28px;
}

.ps-story__content strong {
  color: var(--text);
  font-weight: 500;
}

.ps-about-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ps-about-skill {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(241,137,24,0.08), transparent 58%),
    var(--bg-elev);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.ps-about-skill:hover {
  transform: translateY(-4px);
  border-color: rgba(241,137,24,0.34);
}

.ps-about-skill h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 600;
}

.ps-about-skill p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}

/* ============ About ============ */
.ps-about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.ps-about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line-strong);
}

.ps-about__media img { width: 100%; height: 100%; object-fit: cover; }

.ps-about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,12,0.5));
  pointer-events: none;
}

.ps-about__media-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.ps-about__bio { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-dim); line-height: 1.7; }
.ps-about__bio b, .ps-about__bio strong { color: var(--text); font-weight: 500; }

.ps-about__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.ps-highlight {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease);
}

.ps-highlight:hover { border-color: var(--brand); transform: translateY(-4px); }

.ps-highlight::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  border-radius: 999px;
  background: var(--grad-brand);
  margin-bottom: 14px;
}

.ps-highlight__title { font-weight: 600; margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.ps-highlight__desc { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.55; }

@media (max-width: 920px) {
  .ps-about { grid-template-columns: 1fr; gap: 48px; }
  .ps-about__media { max-width: 420px; aspect-ratio: 1; }
}

/* ============ Tech stack ============ */
.ps-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.ps-stack__col h4,
.ps-stack__col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ps-stack__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.ps-stack__col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}

.ps-stack__col li:hover { color: var(--text); }

.ps-stack__col li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .ps-about-page-facts,
  .ps-about-skills,
  .ps-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .ps-about-mini,
  .ps-about-page-hero__grid,
  .ps-story {
    grid-template-columns: 1fr;
  }

  .ps-about-mini__content {
    margin-bottom: 0;
  }

  .ps-about-page-hero {
    padding-top: 150px;
  }

  .ps-about-page-hero__media {
    max-width: 460px;
  }

  .ps-story__side {
    position: static;
  }
}

@media (max-width: 720px) {
  .ps-about-page-facts,
  .ps-about-skills,
  .ps-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ps-about-page-hero {
    padding-bottom: 70px;
  }

  .ps-about-page-hero__content h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .ps-about-page-hero__tag {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============ CTA banner ============ */
.ps-cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 100px 60px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.ps-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  opacity: 0.7;
  z-index: 0;
}

.ps-cta-banner > * { position: relative; z-index: 1; }

.ps-cta-banner h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 28px;
}

.ps-cta-banner h2 .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-cta-banner p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

@media (max-width: 720px) { .ps-cta-banner { padding: 64px 24px; } }

@media (max-width: 720px) {
  .ps-case-hero,
  .ps-case-section {
    overflow: hidden;
  }

  .ps-case-hero__grid,
  .ps-case-copy {
    display: block;
    width: 100%;
  }

  .ps-case-hero__grid > *,
  .ps-case-copy > *,
  .ps-case-hero__lead,
  .ps-case-copy__body,
  .ps-case-meta,
  .ps-case-list,
  .ps-case-gallery,
  .ps-case-cover,
  .ps-case-media,
  .ps-case-video,
  .ps-case-demo,
  .ps-case-cta {
    width: 100%;
    max-width: 100%;
  }

  .ps-case-hero h1,
  .ps-case-hero__lead,
  .ps-case-copy__title h2,
  .ps-case-copy__body {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .ps-case-hero__lead,
  .ps-case-copy__body p,
  .ps-case-list li,
  .ps-case-meta__value,
  .ps-case-hero h1,
  .ps-case-copy__title h2,
  .ps-case-demo h2,
  .ps-case-cta h2 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .ps-case-hero h1 {
    font-size: clamp(30px, 8.5vw, 38px);
  }

  .ps-case-copy__title h2 {
    font-size: clamp(24px, 7.2vw, 31px);
  }

  .ps-case-copy__body {
    margin-top: 28px;
  }

  .ps-case-meta {
    margin-top: 34px;
  }
}

/* ============ Reveal ============ */
.ps-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.ps-reveal.is-visible { opacity: 1; transform: none; }

.ps-reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.ps-reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.ps-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.ps-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .15s; }
.ps-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .25s; }
.ps-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .35s; }
.ps-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .45s; }
.ps-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .55s; }

/* ============ Hero text reveal (line by line) ============ */
.ps-hero__title .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.ps-hero.is-loaded .ps-hero__title .line-inner { transform: translateY(0); }

/* ============ Override contact form (riuso include con dark theme) ============ */
.ps-redesign #contatto-page {
  position: relative;
  padding: 140px 0 !important;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(ellipse 40% 48% at 8% 4%, rgba(99, 7, 125, 0.21), transparent 70%),
    radial-gradient(ellipse 42% 46% at 92% 12%, rgba(236, 72, 153, 0.11), transparent 72%),
    linear-gradient(180deg, #242529 0%, #0b0b0d 100%) !important;
  background-size: 96px 96px, 96px 96px, auto, auto, auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

.ps-redesign #contatto-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), var(--brand-3), transparent);
  opacity: 0.9;
}

.ps-redesign #contatto-page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255,255,255,0.36) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.ps-redesign #contatto-page .container {
  position: relative;
  z-index: 1;
}

.ps-case-page #contatto-page {
  margin-top: clamp(58px, 7vw, 110px) !important;
}

.ps-redesign #contatto-page .section-heading .subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.ps-redesign #contatto-page .section-heading .title {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.08;
}

.ps-redesign #contatto-page .section-heading {
  margin-bottom: 34px;
}

.ps-redesign #contatto-page .ps-contact-copy {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.72;
}

.ps-redesign #contatto-page .mb--30 { margin-bottom: 40px; }

.ps-redesign #contatto-page .contact-form-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 96, 0, 0.31);
  border-top-color: rgba(255, 36, 0, 0.32);
  border-bottom-color: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow:
    0 32px 90px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(0,0,0,0.18);
  backdrop-filter: blur(22px);
}

.ps-redesign #contatto-page .contact-form-box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 56% at 18% 0%, rgba(255,255,255,0.16), transparent 62%),
    linear-gradient(115deg, rgba(255,255,255,0.12), transparent 34%);
  opacity: 0.8;
}

.ps-redesign #contatto-page .contact-form-box > * {
  position: relative;
  z-index: 1;
}

.ps-redesign #contatto-page .contact-form-box .title { color: var(--text); margin-bottom: 28px; font-size: 24px; }

.ps-redesign #contatto-page .address-list {
  display: grid;
  gap: 18px;
}

.ps-redesign #contatto-page .address {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.ps-redesign #contatto-page .address:first-child {
  padding-top: 0;
  border-top: 0;
}

.ps-redesign #contatto-page .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  border-radius: 12px;
  min-height: 56px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.ps-redesign #contatto-page textarea.form-control {
  min-height: 176px;
  resize: vertical;
}

.ps-redesign #contatto-page .form-control::placeholder { color: rgba(255,255,255,0.42); }

.ps-redesign #contatto-page .form-control:focus {
  border-color: var(--brand);
  outline: none;
  background: rgba(255,255,255,0.115);
  box-shadow:
    0 0 0 3px rgba(241, 137, 24, 0.14),
    0 18px 42px rgba(0,0,0,0.16);
}

.ps-redesign #contatto-page .axil-contact-form {
  display: grid;
  gap: 15px;
}

.ps-redesign #contatto-page .form-group {
  margin: 0;
}

.ps-redesign #contatto-page .form-group.mb--40 {
  margin-bottom: 0 !important;
}

.ps-redesign #contatto-page label { color: rgba(255,255,255,0.62); margin-bottom: 9px; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.ps-redesign #contatto-page .form-check-label { color: rgba(255,255,255,0.62); font-size: 13px; text-transform: none; letter-spacing: 0; font-family: inherit; }
.ps-redesign #contatto-page .form-check-label a { color: var(--brand); }
.ps-redesign #contatto-page .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}
.ps-redesign #contatto-page .form-check-input[type="checkbox"] {
  margin-top: 0.25rem;
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.ps-redesign #contatto-page .form-check-input[type="checkbox"]:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.ps-redesign #contatto-page .form-group.text-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.ps-redesign #contatto-page .axil-btn {
  background: #101010;
  color: #fff;
  border: 0;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 100px;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
  transition: all .3s var(--ease);
}
.ps-redesign #contatto-page .axil-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.ps-redesign #contatto-page .ps-form-message {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.ps-redesign #contatto-page .ps-form-message.is-visible { display: block; }
.ps-redesign #contatto-page .ps-form-message.is-success {
  color: #c5f5b8;
  background: rgba(76, 175, 80, 0.10);
  border-color: rgba(76, 175, 80, 0.30);
}
.ps-redesign #contatto-page .ps-form-message.is-error {
  color: #ffc4b3;
  background: rgba(255, 96, 0, 0.10);
  border-color: rgba(255, 96, 0, 0.32);
}
.grecaptcha-badge {
  visibility: hidden !important;
}
.ps-redesign #contatto-page .ps-recaptcha-notice {
  margin: 0;
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  line-height: 1.55;
}
.ps-redesign #contatto-page .ps-recaptcha-notice a {
  color: rgba(255,255,255,0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ps-redesign #contatto-page .address .title { color: var(--brand); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.ps-redesign #contatto-page .address a, .ps-redesign #contatto-page .address p { color: var(--text); font-size: 16px; margin: 0; }
.ps-redesign #contatto-page .ps-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s var(--ease);
}
.ps-redesign #contatto-page .ps-wa-link:hover {
  color: var(--brand);
}
.ps-redesign #contatto-page .ps-wa-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

/* ============ Contact page ============ */
.ps-contact-hero,
.ps-privacy-hero {
  padding: 175px 0 88px;
  position: relative;
  overflow: hidden;
}

.ps-contact-hero::before,
.ps-privacy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 82% 18%, rgba(236,72,153,0.14), transparent 70%),
    radial-gradient(ellipse 44% 54% at 12% 18%, rgba(241,137,24,0.12), transparent 70%);
  pointer-events: none;
}

.ps-contact-hero .ps-container,
.ps-privacy-hero .ps-container {
  position: relative;
  z-index: 1;
}

.ps-contact-hero__grid,
.ps-privacy-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
}

.ps-contact-hero h1,
.ps-privacy-hero h1 {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.ps-contact-hero__content p,
.ps-privacy-hero__content p {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.72;
}

.ps-contact-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.ps-contact-note {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(110% 95% at 0% 0%, rgba(241,137,24,0.14), transparent 60%),
    rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ps-contact-note h2 {
  margin: 18px 0 22px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.ps-contact-note ul,
.ps-privacy-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-contact-note li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  line-height: 1.58;
}

.ps-contact-note li:first-child { border-top: 0; }

.ps-contact-routes {
  padding: 0 0 96px;
}

.ps-contact-routes .ps-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ps-contact-route {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
}

.ps-contact-route span,
.ps-privacy-meta span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-contact-route a,
.ps-contact-route strong,
.ps-privacy-meta a,
.ps-privacy-meta strong {
  color: var(--text);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.2;
  text-decoration: none;
  font-weight: 600;
}

/* ============ Privacy page ============ */
.ps-privacy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 60px;
}

.ps-privacy-meta > div {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
}

.ps-privacy-section {
  padding: 110px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.ps-privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 86px);
  align-items: start;
}

.ps-privacy-index {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
}

.ps-privacy-index a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.ps-privacy-index a:hover { color: var(--text); }

.ps-privacy-content {
  display: grid;
  gap: 18px;
}

.ps-privacy-content section {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  scroll-margin-top: 120px;
}

.ps-privacy-content h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ps-privacy-content p,
.ps-privacy-content li {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.76;
}

.ps-privacy-content p { margin: 0 0 18px; }
.ps-privacy-content p:last-child { margin-bottom: 0; }

.ps-privacy-content ul {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.ps-privacy-content li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.ps-privacy-content a { color: var(--brand); }

/* ============ 404 page ============ */
.ps-error-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}

.ps-error-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 84% 20%, rgba(236,72,153,0.14), transparent 70%),
    radial-gradient(ellipse 44% 54% at 12% 20%, rgba(241,137,24,0.14), transparent 70%);
  pointer-events: none;
}

.ps-error-hero .ps-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.ps-error-hero h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(44px, 6vw, 90px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.ps-error-hero p {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.72;
}

.ps-error-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.ps-error-links {
  display: grid;
  gap: 14px;
}

.ps-error-links a {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.ps-error-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(241,137,24,0.45);
}

.ps-error-links span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-error-links strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

/* ============ Services hub / service detail pages ============ */
.ps-services-hero,
.ps-service-detail-hero {
  padding: 180px 0 86px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(ellipse 44% 46% at 8% 28%, rgba(241,137,24,0.22), transparent 70%),
    radial-gradient(ellipse 42% 42% at 90% 18%, rgba(236,72,153,0.12), transparent 72%),
    var(--bg);
  background-size: 96px 96px, 96px 96px, auto, auto, auto;
}

.ps-service-detail-page main {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.ps-service-detail-page main::before {
  content: none;
}

.ps-service-detail-intro {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    radial-gradient(ellipse 44% 42% at 7% 8%, rgba(241,137,24,0.20), transparent 72%),
    radial-gradient(ellipse 42% 40% at 92% 6%, rgba(236,72,153,0.11), transparent 74%),
    var(--bg);
  background-size: 96px 96px, 96px 96px, auto, auto, auto;
  background-position: 0 0, 0 0, center, center, center;
}

.ps-service-detail-page main section {
  position: relative;
}

.ps-service-detail-page main section > .ps-container {
  position: relative;
  z-index: 3;
}

.ps-service-detail-page .ps-service-detail-hero {
  background: transparent;
}

.ps-services-hero__grid,
.ps-service-detail-hero__grid,
.ps-service-detail-copy,
.ps-service-detail-cta .ps-container,
.ps-services-seo-band__inner,
.ps-services-proof-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.ps-services-hero h1,
.ps-service-detail-hero h1 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
  max-width: 12ch;
}

.ps-service-detail-hero h1 { max-width: 13ch; }

.ps-services-hero__content p,
.ps-service-detail-hero__content p,
.ps-services-seo-band p,
.ps-services-proof-band p,
.ps-service-detail-cta p {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.68;
}

.ps-services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ps-services-intent {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(70px, 9vw, 128px);
}

.ps-services-intent a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.ps-services-intent a:hover {
  transform: translateY(-4px);
  border-color: rgba(241,137,24,0.45);
  background: rgba(255,255,255,0.055);
}

.ps-services-intent span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ps-services-intent strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.ps-services-hub,
.ps-service-detail-section {
  padding: 110px 0;
}

.ps-service-detail-section--overview {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
}

.ps-service-detail-section--overview::before {
  content: none;
}

.ps-service-detail-section--overview .ps-container {
  position: relative;
  z-index: 3;
}

.ps-services-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 62px;
}

.ps-service-hub-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(241,137,24,0.10), transparent 58%),
    rgba(255,255,255,0.035);
  color: var(--text);
  text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
  position: relative;
}

.ps-service-hub-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.ps-service-hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(241,137,24,0.45);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(241,137,24,0.18), transparent 58%),
    rgba(255,255,255,0.055);
}

.ps-service-hub-card:hover::before { transform: scaleX(1); }

.ps-service-hub-card__eyebrow,
.ps-service-hub-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.ps-service-hub-card h2 {
  margin: auto 0 16px;
  color: var(--text);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ps-service-hub-card p {
  margin: 0 0 28px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
}

.ps-service-hub-card__link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.ps-services-seo-band {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 48% 58% at 86% 26%, rgba(236,72,153,0.12), transparent 72%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ps-services-seo-band h2,
.ps-services-proof-band h2,
.ps-services-decision h2,
.ps-service-detail-grid__head h2,
.ps-service-detail-copy h2,
.ps-service-detail-cta h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.ps-services-proof-band {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 46% 56% at 86% 22%, rgba(236,72,153,0.12), transparent 72%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ps-services-proof-band__inner {
  align-items: start;
}

.ps-services-proof-band__content ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ps-services-proof-band__content li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
}

.ps-services-decision {
  padding: 120px 0;
}

.ps-services-decision__head {
  max-width: 900px;
  margin-bottom: 54px;
}

.ps-services-decision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ps-services-decision__grid > div {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(100% 90% at 0% 0%, rgba(241,137,24,0.10), transparent 58%),
    rgba(255,255,255,0.035);
}

.ps-services-decision strong {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ps-services-decision p {
  margin: 22px 0 28px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.62;
}

.ps-services-decision a {
  margin-top: auto;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.ps-service-detail-copy {
  align-items: start;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ps-service-detail-copy--intro,
.ps-service-detail-copy--deliverables {
  position: relative;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  overflow: hidden;
}

.ps-service-detail-copy--deliverables h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ps-service-detail-copy--intro::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--grad-warm);
}

.ps-service-detail-copy__body { max-width: 820px; }

.ps-service-detail-copy__body p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.78;
}

.ps-service-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.ps-service-detail-grid__head {
  grid-column: 1 / -1;
  max-width: 860px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin: 0 0 10px;
}

.ps-service-detail-grid__head h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.2vw, 46px);
}

.ps-service-detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.ps-service-detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241,137,24,0.38);
  background:
    radial-gradient(100% 90% at 0% 0%, rgba(241,137,24,0.12), transparent 58%),
    rgba(255,255,255,0.045);
}

.ps-service-detail-card:nth-child(2),
.ps-service-detail-card:nth-child(5) {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(236,72,153,0.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
}

.ps-service-detail-card span {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 36px;
  border-radius: 100px;
  background: var(--grad-brand);
}

.ps-service-detail-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.ps-service-detail-section--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ps-service-detail-copy--deliverables .ps-service-detail-copy__body {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ps-service-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.ps-service-detail-tags li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-service-detail-cta {
  padding: 100px 0;
}

.ps-service-detail-cta .ps-container {
  align-items: center;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.ps-services-final-action {
  justify-self: end;
  width: min(100%, 330px);
}

.ps-services-final-action > span {
  display: block;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

.ps-services-final-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: color .25s var(--ease);
}

.ps-services-final-link::before {
  content: '';
  width: 46px;
  height: 1px;
  background: var(--grad-brand);
  transition: width .3s var(--ease);
}

.ps-services-final-link .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0a0c;
  background: var(--text);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.ps-services-final-link:hover {
  color: var(--brand);
}

.ps-services-final-link:hover::before {
  width: 64px;
}

.ps-services-final-link:hover .arrow {
  background: var(--grad-brand);
  transform: translate(3px, -3px);
}

.ps-service-detail-page #contatto-page,
.ps-services-page #contatto-page {
  margin-top: 0 !important;
}

/* Service detail: processo di lavoro */
.ps-service-process__head {
  max-width: 760px;
  margin-bottom: 48px;
}

.ps-service-process__head h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.03em;
}

.ps-service-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ps-service-process__step {
  padding: 26px 24px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.ps-service-process__num {
  display: block;
  margin-bottom: 30px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.ps-service-process__step h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.ps-service-process__step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* Service detail: case in evidenza */
.ps-service-fcase__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: clamp(30px, 4vw, 64px);
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(241,137,24,0.10), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
}

.ps-service-fcase__copy h2 {
  max-width: 20ch;
  margin: 14px 0 24px;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.03em;
}

.ps-service-fcase__copy p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
}

.ps-service-fcase__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .25s var(--ease);
}

.ps-service-fcase__link .arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0a0c;
  background: var(--text);
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.ps-service-fcase__link:hover { color: var(--brand); }

.ps-service-fcase__link:hover .arrow {
  background: var(--grad-brand);
  transform: translate(3px, -3px);
}

.ps-service-fcase__highlights {
  align-self: center;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-service-fcase__highlights li {
  position: relative;
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.ps-service-fcase__highlights li:last-child {
  border-bottom: 1px solid var(--line);
}

.ps-service-fcase__highlights li::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 2px;
  width: 12px;
  height: 2px;
  border-radius: 100px;
  background: var(--grad-brand);
}

/* Service detail: FAQ */
.ps-service-faq__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.ps-service-faq__head h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.03em;
}

.ps-service-faq__list {
  max-width: 900px;
}

.ps-service-faq__item {
  border-top: 1px solid var(--line);
}

.ps-service-faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.ps-service-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 24px 2px;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.ps-service-faq__item summary::-webkit-details-marker { display: none; }

.ps-service-faq__item summary i {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.ps-service-faq__item summary i::before,
.ps-service-faq__item summary i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}

.ps-service-faq__item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ps-service-faq__item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0);
}

.ps-service-faq__item > div {
  padding: 0 0 26px;
}

.ps-service-faq__item > div p {
  max-width: 72ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* Link testuale inline */
.ps-text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(241,137,24,0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}

.ps-text-link:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* Service detail: link tra servizi */
.ps-service-crosslinks .ps-container {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.ps-service-crosslinks__head {
  margin-bottom: 30px;
}

.ps-service-crosslinks__head h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.03em;
}

.ps-service-crosslinks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ps-service-crosslinks__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .25s var(--ease);
}

.ps-service-crosslinks__card span:first-child::first-letter {
  text-transform: uppercase;
}

.ps-service-crosslinks__card .arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.ps-service-crosslinks__card:hover {
  transform: translateY(-4px);
  border-color: rgba(241,137,24,0.38);
  background:
    radial-gradient(100% 90% at 0% 0%, rgba(241,137,24,0.12), transparent 58%),
    rgba(255,255,255,0.045);
  color: var(--text);
}

.ps-service-crosslinks__card:hover .arrow {
  background: var(--grad-brand);
  border-color: transparent;
  color: #0a0a0c;
  transform: translate(3px, -3px);
}

@media (max-width: 1080px) {
  .ps-service-process__grid,
  .ps-service-crosslinks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-service-fcase__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ps-service-process__grid,
  .ps-service-crosslinks__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .ps-services-intent,
  .ps-services-hub__grid,
  .ps-service-detail-grid,
  .ps-services-decision__grid,
  .ps-contact-routes .ps-container,
  .ps-privacy-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-contact-hero__grid,
  .ps-privacy-hero__grid,
  .ps-privacy-layout,
  .ps-error-hero .ps-container {
    grid-template-columns: 1fr;
  }

  .ps-privacy-index {
    position: static;
  }

  .ps-service-detail-copy--intro,
  .ps-service-detail-copy--deliverables {
    grid-template-columns: 1fr;
  }

  .ps-service-detail-card {
    grid-column: span 1;
  }

  .ps-service-detail-grid__head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ps-services-hero,
  .ps-service-detail-hero,
  .ps-contact-hero,
  .ps-privacy-hero,
  .ps-error-hero {
    padding: 145px 0 64px;
  }

  .ps-services-hero__grid,
  .ps-service-detail-hero__grid,
  .ps-contact-hero__grid,
  .ps-privacy-hero__grid,
  .ps-service-detail-copy,
  .ps-service-detail-cta .ps-container,
  .ps-services-seo-band__inner,
  .ps-services-proof-band__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ps-services-hero h1,
  .ps-service-detail-hero h1,
  .ps-contact-hero h1,
  .ps-privacy-hero h1,
  .ps-error-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    max-width: 100%;
  }

  .ps-services-hub,
  .ps-service-detail-section,
  .ps-services-seo-band,
  .ps-services-proof-band,
  .ps-services-decision,
  .ps-service-detail-cta,
  .ps-privacy-section {
    padding: 76px 0;
  }

  .ps-services-intent,
  .ps-services-hub__grid,
  .ps-service-detail-grid,
  .ps-services-decision__grid,
  .ps-contact-routes .ps-container,
  .ps-privacy-meta {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .ps-contact-routes {
    padding-bottom: 76px;
  }

  .ps-service-detail-copy {
    padding: 24px;
    border-radius: 20px;
  }

  .ps-contact-note,
  .ps-privacy-content section,
  .ps-privacy-index {
    padding: 24px;
    border-radius: 20px;
  }

  .ps-service-hub-card {
    min-height: 280px;
    padding: 24px;
  }

  .ps-services-final-action {
    justify-self: stretch;
    width: 100%;
  }
}

/* ============ Footer ============ */
.ps-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
  position: relative;
  z-index: 1;
}

.ps-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.ps-footer__big {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 24px;
}

.ps-footer__big .ital {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ps-footer__big .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
}

.ps-footer h5,
.ps-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.74);
  margin: 0 0 24px;
}

.ps-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.ps-footer ul a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s var(--ease);
}

.ps-footer ul a:hover { color: var(--brand); }

/* "Preferenze cookie": bottone (apre il pannello consenso) con l'aspetto dei link */
.ps-footer__cookie {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  transition: color .2s var(--ease);
}

.ps-footer__cookie:hover { color: var(--brand); }

.ps-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ps-footer__socials { display: flex; gap: 8px; }

.ps-footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
  color: var(--text-dim);
  text-decoration: none;
}

.ps-footer__socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #0a0a0c;
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .ps-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ps-footer__top > *:first-child { grid-column: span 2; }
}

@media (max-width: 600px) {
  .ps-footer__top { grid-template-columns: 1fr; }
  .ps-footer__top > *:first-child { grid-column: span 1; }
}

/* ============ Selection ============ */
.ps-redesign ::selection { background: var(--brand); color: #0a0a0c; }

/* ============ Scrollbar (webkit) ============ */
.ps-redesign::-webkit-scrollbar { width: 10px; }
.ps-redesign::-webkit-scrollbar-track { background: var(--bg); }
.ps-redesign::-webkit-scrollbar-thumb { background: var(--bg-elev-2); border-radius: 10px; }
.ps-redesign::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============ Service page: related cases ============ */
.ps-service-related__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 38px;
}

.ps-service-related__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
