:root {
  --bg: #0e0e0e;
  --surface: #171716;
  --surface-2: #20201f;
  --surface-3: #2a2a2a;
  --text: #e9e4df;
  --muted: #bfd1df;
  --soft: #8ea7ba;
  --line: rgba(188, 225, 255, .16);
  --primary: #8fd8ff;
  --primary-2: #3fa9f5;
  --ink: #041521;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 74% 0%, rgba(63, 169, 245, .14), transparent 34rem),
    radial-gradient(circle at 12% 42%, rgba(143, 216, 255, .08), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 76%, transparent);
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor label,
  html.has-custom-cursor [role="button"] {
    cursor: none !important;
  }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
p { margin: 0; color: var(--muted); line-height: 1.7; }
h1, h2, h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.06;
  letter-spacing: 0;
}
h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 66px); }
h3 { font-size: clamp(25px, 3vw, 34px); }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.accent { color: var(--primary); font-style: italic; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px var(--primary);
}

.material-symbols-outlined { font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24; }
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(14,14,14,.76);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--primary);
  font-size: 29px;
  font-weight: 400;
  white-space: nowrap;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.links a:hover, .links a.active { color: var(--primary); }
.topbar .button {
  font-weight: 400;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(143,216,255,.48); }
.button.primary {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 18px 60px rgba(63, 169, 245, .2);
}

main { padding-top: 74px; }
section { padding: 104px 0; }
.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  padding: 84px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p {
  max-width: 660px;
  margin: 28px 0 36px;
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.web-hero {
  text-align: center;
}
.web-hero .hero-copy {
  max-width: 980px;
  margin: 0 auto;
}
.web-hero h1 {
  white-space: nowrap;
  font-size: clamp(38px, 6vw, 86px);
}
.web-hero .hero-copy p {
  max-width: 820px;
  margin: 18px auto 0;
  color: #e9e4df;
  font-size: clamp(16px, 1.55vw, 19px);
}
.web-hero .hero-copy strong {
  color: #9adefb;
}
.web-hero .hero-copy p:first-of-type {
  margin-top: 28px;
}
.web-hero .hero-actions {
  margin-top: 36px;
  justify-content: center;
}
.advertising-hero .hero-copy {
  width: 100%;
  max-width: 1120px;
}
.advertising-hero h1 {
  max-width: none;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(36px, 5.4vw, 76px);
}
.branding-hero .hero-copy {
  width: 100%;
  max-width: 1120px;
}
.branding-hero h1 {
  max-width: none;
  margin: 0 auto;
  text-align: center;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.process-step-card {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  padding: 14px 20px 18px;
  border-radius: 12px;
  background: rgba(23,23,23,.94);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .24s ease, background .24s ease;
}
.process-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143,216,255,.34);
  background: rgba(34,34,34,.78);
}
.process-step-front {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease, filter .24s ease;
}
.process-step-front span {
  color: var(--primary-2);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1;
}
.process-step-front h3 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 400;
  line-height: .9;
}
.process-step-detail {
  position: absolute;
  top: -56px;
  left: 50%;
  width: min(420px, calc(100% - 64px));
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 24px) scale(.97);
  filter: blur(8px);
  transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .24s ease, filter .28s ease;
}
.process-step-card:hover .process-step-front {
  opacity: 0;
  transform: translateY(-24px) scale(.96);
  filter: blur(8px);
}
.process-step-card:hover .process-step-detail {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  filter: blur(0);
}
.home-hero {
  min-height: calc(100svh - 74px);
  padding: 96px 0 74px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(78vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(143, 216, 255, .12);
  filter: blur(110px);
  pointer-events: none;
}
.home-hero .wrap { position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 15px;
  border: 1px solid rgba(143, 216, 255, .22);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(143, 216, 255, .06);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}
.home-title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(50px, 8vw, 96px);
}
.home-hero p {
  max-width: 780px;
  margin: 28px auto 36px;
  font-size: clamp(18px, 2vw, 22px);
}
.home-hero .hero-actions { justify-content: center; }
.home-about {
  text-align: center;
}
.home-about .wrap {
  max-width: 1080px;
}
.home-about-kicker {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}
.home-about-description {
  max-width: 1040px;
  margin: 0 auto 34px;
  color: rgba(248, 252, 255, .98);
  font-size: clamp(27px, 3.7vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}
.home-about-description span {
  color: rgba(245, 250, 252, .58);
}
.home-about .hero-actions {
  justify-content: center;
}
.hero-orbit {
  position: relative;
  height: 390px;
  max-width: 960px;
  margin: 70px auto 0;
}
.floating-card {
  position: absolute;
  z-index: 2;
  width: min(270px, 40vw);
  padding: 22px;
  text-align: left;
}
.floating-card.spotlight-target {
  position: absolute;
}
.floating-card.left { top: 10px; left: 0; transform: rotate(-5deg); animation: floatSlow 8s ease-in-out infinite; }
.floating-card.right { right: 0; bottom: 36px; transform: rotate(3deg); animation: float 6s ease-in-out infinite; }
.mini-label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.progress span {
  display: block;
  width: 85%;
  height: 100%;
  background: var(--primary);
}
.swatches { display: flex; gap: 9px; margin: 12px 0 16px; }
.swatches span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
}
.swatches span:nth-child(2) { background: #d3c5aa; }
.swatches span:nth-child(3) { background: #c9c6c5; }
.growth-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--primary);
  opacity: .22;
}
.hero-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  isolation: isolate;
}
.hero-media img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; opacity: .68; filter: saturate(.9) contrast(1.08); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(14,14,14,.88), transparent 58%), radial-gradient(circle at 70% 28%, rgba(143,216,255,.26), transparent 23rem);
}
.metric-grid {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.metric, .glass {
  border: 1px solid var(--line);
  background: rgba(26,26,26,.68);
  backdrop-filter: blur(18px);
  border-radius: 18px;
}
.spotlight-target {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-opacity: 0;
  --spot-size: 220px;
}
.spotlight-target::before,
.spotlight-target::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--spot-opacity);
  transition: opacity .22s ease;
}
.spotlight-target::before {
  background:
    radial-gradient(
      var(--spot-size) var(--spot-size) at var(--spot-x) var(--spot-y),
      rgba(143, 216, 255, .18),
      transparent 68%
    );
  z-index: 0;
}
.spotlight-target::after {
  padding: 1px;
  background:
    radial-gradient(
      calc(var(--spot-size) * .72) calc(var(--spot-size) * .72) at var(--spot-x) var(--spot-y),
      rgba(143, 216, 255, .95),
      rgba(80, 174, 255, .55) 34%,
      transparent 72%
    );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 3;
}
.spotlight-target > * {
  position: relative;
  z-index: 1;
}
.metric { padding: 18px; }
.metric strong { display: block; color: var(--primary); font-size: 30px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 800; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 46px;
}
.section-head.centered {
  display: block;
  text-align: center;
}
.section-head.centered h2 {
  margin-inline: auto;
}
.section-head p { max-width: 540px; }
.cards-4, .cards-3 { display: grid; gap: 18px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
#servizi .wrap { width: min(calc(100% - 40px), 1220px); }
#servizi .cards-4 { gap: 8px; }
.card {
  padding: 28px;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}
.service-card {
  position: relative;
  z-index: 51;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(29,29,29,.6);
  backdrop-filter: none;
  transform-origin: center bottom;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .22s ease, background .22s ease;
}
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.service-card h3 {
  max-width: 150px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.02;
}
.service-bottom {
  display: grid;
  grid-template-columns: minmax(0, 136px) 48px;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}
.service-bottom p {
  margin: 0;
  max-width: 136px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}
.service-dot {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--primary);
  font-size: 27px;
  font-weight: 500;
  line-height: .9;
  padding-bottom: 2px;
  box-shadow: 0 0 10px rgba(143,216,255,.35), 0 0 22px rgba(63,169,245,.16);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.service-card:hover .service-dot {
  transform: translateY(-3px) scale(1.08);
  background: #a9e3ff;
  box-shadow: 0 0 14px rgba(143,216,255,.42), 0 0 28px rgba(63,169,245,.2);
}
.card-kicker {
  display: block;
  margin: 2px 0 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card:hover { transform: translateY(-6px); border-color: rgba(143,216,255,.42); background: rgba(32,32,31,.78); }
.service-card:hover {
  transform: translateY(-10px) scale(1.015) rotateX(2deg);
  border-color: rgba(143,216,255,.34);
  background: rgba(34,34,34,.6);
}
.icon {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}
.icon .material-symbols-outlined {
  font-size: 34px;
  filter: none;
}
.card p { margin-top: 14px; }
.service-card p { margin-top: 0; }
.chip {
  display: inline-flex;
  margin: 0 7px 7px 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(143,216,255,.09);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}
.media-block {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
}
.media-block img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; filter: grayscale(.25); }
.copy-stack > * + * { margin-top: 22px; }

.stats-panel {
  position: relative;
  overflow: visible;
  padding: clamp(42px, 6vw, 66px) clamp(22px, 5vw, 76px) clamp(44px, 6vw, 70px);
  text-align: center;
}
.stats-panel::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -22%;
  width: min(520px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(63, 169, 245, .13);
  filter: blur(92px);
  opacity: .9;
}
.stats-panel > * {
  position: relative;
  z-index: 1;
}
.stats-panel h2 {
  max-width: none;
  margin: 0 auto;
  white-space: nowrap;
}
.stats-panel p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(233, 228, 223, .72);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: clamp(72px, 8vw, 98px);
}
.stat-item strong {
  display: block;
  color: var(--primary);
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 500;
  line-height: .92;
  text-shadow: 0 0 26px rgba(143,216,255,.2);
}
.stat-item span {
  display: block;
  margin-top: 10px;
  color: rgba(233, 228, 223, .66);
  font-size: clamp(14px, 1.35vw, 18px);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}
.work {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.social-work-grid .work {
  height: 440px;
  min-height: 0;
}
.branding-work-grid .work {
  min-height: 160px;
}
.work.large { grid-column: span 7; }
.work.small { grid-column: span 5; }
.work img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .7s ease, opacity .36s ease, filter .36s ease; }
.work:hover img,
.work:focus-within img {
  opacity: .58;
  filter: blur(2px);
  transform: scale(1.05);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.86), transparent 62%);
}
.work-info { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; }
.work-info h3 {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  filter: blur(8px);
  transition: opacity .26s ease, transform .38s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.work-info p {
  margin-top: 8px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(18px) scale(.96);
  filter: blur(8px);
  transition: opacity .26s ease, transform .38s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.work:hover .work-info h3,
.work:focus-within .work-info h3 {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.work:hover .work-info p,
.work:focus-within .work-info p {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.team-grid {
  align-items: start;
  gap: clamp(34px, 7vw, 92px);
}
.team-card {
  display: grid;
  justify-items: center;
  padding: 0;
  text-align: center;
}
.team-card:nth-child(2) {
  margin-top: 118px;
}
.team-card img {
  width: min(260px, 72vw);
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(.35);
  background: #050505;
}
.team-card .body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 0;
}
.team-card h3 {
  order: 1;
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 400;
  line-height: 1.2;
}
.team-card .chip {
  order: 2;
  margin: 5px 0 0;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.team-card p {
  display: none;
}
.testimonial-slider {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote {
  min-height: 190px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  transition: opacity .18s ease;
}
.testimonial-quote.is-changing {
  opacity: 0;
}
.testimonial-controls {
  width: max-content;
  display: grid;
  grid-template-columns: 120px 240px;
  align-items: center;
  gap: 44px;
  margin-top: 56px;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(34px);
}
.testimonial-faces {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(22px);
}
.testimonial-face {
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.testimonial-face:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(143,216,255,.7);
  opacity: 1;
}
.testimonial-face + .testimonial-face {
  margin-left: -12px;
}
.testimonial-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.8);
}
.testimonial-face.active {
  z-index: 2;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}
.testimonial-face.active img {
  filter: none;
}
.testimonial-person {
  min-height: 46px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.testimonial-person strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.testimonial-person span {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}
.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 22px;
  color: var(--primary);
}
.person-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.avatar {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(143,216,255,.14);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-row strong { display: block; }
.person-row span { color: var(--soft); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.contact-box {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
}
.contact-panel {
  padding: 44px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.contact-panel p { margin-top: 18px; color: rgba(35,17,3,.78); }
form { display: grid; gap: 22px; padding: 44px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 15px;
  outline: 0;
  color: var(--text);
  background: rgba(255,255,255,.035);
}
textarea { min-height: 132px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(143,216,255,.75); }
option { background: #161616; }

.footer {
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0a0a0a;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--soft);
}
.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer h4 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
}
.footer ul a:hover { color: var(--primary); }

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4f4f4;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.8);
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 0 18px rgba(244, 244, 244, .24);
}
.cursor-dot.visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-14px) rotate(-7deg); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
#servizi .service-card.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .links {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(14,14,14,.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
  }
  .links.open { display: flex; }
  .nav > .button { display: none; }
  .hero-grid, .split, .contact-box { grid-template-columns: 1fr; }
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-panel h2 { white-space: normal; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 46px; }
  .team-card:nth-child(2) { margin-top: 0; }
  #servizi .cards-4 {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .section-head { display: grid; }
  .footer-columns { grid-template-columns: 1fr; }
  .work.large, .work.small { grid-column: 1 / -1; }
  .hero-media, .hero-media img { min-height: 420px; }
  .media-block, .media-block img { min-height: 420px; }
  .spotlight-target {
    --spot-size: 180px;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .brand { font-size: 24px; }
  section { padding: 78px 0; }
  .hero { padding-top: 58px; }
  .hero-actions .button, .inline-actions .button { width: 100%; }
  .home-hero { padding-top: 64px; }
  .home-hero .hero-actions .button { width: 100%; }
  .hero-orbit { height: auto; margin-top: 42px; display: grid; gap: 14px; }
  .floating-card { position: static; width: 100%; animation: none !important; transform: none !important; }
  .growth-curve { display: none; }
  .metric-grid, .fields { grid-template-columns: 1fr; }
  .contact-panel, form { padding: 30px; }
  .work { min-height: 360px; }
  .social-work-grid .work { height: 440px; min-height: 0; }
}
