:root {
  --panna: #FAF8F5;
  --rosso: #e6194b;
  --rosso-light: #ff2d5e;
  --dark: #1E2D37;
  --deep: #121c23;
  --ink: #1a1a1a;
  --muted: #5d6670;
  --soft: rgba(250, 248, 245, 0.68);
  --line: rgba(250, 248, 245, 0.14);
  --hair: rgba(30, 45, 55, 0.10);
  --hair-soft: rgba(30, 45, 55, 0.06);
  --shadow-soft: 0 1px 2px rgba(30, 45, 55, 0.04), 0 18px 48px -24px rgba(30, 45, 55, 0.22);
  --shadow-lift: 0 1px 2px rgba(30, 45, 55, 0.05), 0 32px 64px -28px rgba(30, 45, 55, 0.32);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  --gut: 28px;
  --term-green: #57c98a;
  --term-comment: #7d8893;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  background-color: var(--deep);
  color: var(--panna);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
}

em { font-style: italic; color: var(--rosso-light); }

a { color: inherit; text-decoration: none; }

.im-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.im-grain {
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main, .cine-foot-wrap { position: relative; z-index: 1; }

.im-kicker {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rosso-light);
  margin: 0 0 18px;
}

.im-head {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 16px;
  pointer-events: none;
}

.im-head-pill {
  position: relative;
  pointer-events: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  color: var(--dark);
}

.im-brand img { display: block; height: 30px; width: auto; }

.im-nav { display: flex; align-items: center; gap: 28px; }

.im-nav > a:not(.im-btn-area) {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
}

.im-nav > a:not(.im-btn-area)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--rosso);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.im-nav > a:not(.im-btn-area):hover::after,
.im-nav > a.is-current::after { transform: scaleX(1); transform-origin: left; }

.im-btn-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.4s var(--ease);
}

.im-btn-area:hover { background: #16242d; }

.im-btn-area-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}

.im-btn-area:hover .im-btn-area-ico { background: var(--rosso); transform: translateX(2px); }
.im-btn-area-ico svg { width: 14px; height: 14px; }

.im-progress {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 2px;
  display: flex;
  gap: 6px;
}

.im-progress i {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(30, 45, 55, 0.10);
}

.im-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--rosso), var(--rosso-light));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.im-hud {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin: 0 auto 0 2px;
  padding: 3px 0 3px 18px;
  border-left: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.im-hud-n { color: var(--rosso); font-weight: 700; }
.im-hud-tot { margin-right: 8px; }
.im-hud-path { overflow: hidden; text-overflow: ellipsis; }
.im-hud-t { color: var(--dark); font-weight: 700; }
.im-hud-s { color: var(--rosso); }

.im-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 120vmax;
  height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(230, 25, 75, 0.22), rgba(230, 25, 75, 0.07) 45%, transparent 72%);
  transform: translate3d(var(--lx, 82vw), var(--ly, 12vh), 0) scale(var(--ls, 1));
  opacity: var(--lo, 1);
  transition: transform 2s var(--ease), opacity 1.2s var(--ease);
}

body.is-light .im-light { opacity: 0; }

.im-hint {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(18, 28, 35, 0.74);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.im-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.im-hint-p { color: var(--rosso-light); }
.im-hint-bar { color: var(--panna); }
.im-hint-pct { min-width: 4ch; text-align: right; }

.im-chap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 62vh;
  min-height: 62svh;
  padding: 40px var(--gut);
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}

.im-chap-k {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--term-comment);
  transition: color 0.6s var(--ease);
}

.im-chap-stack { display: grid; place-items: center; }
.im-chap-stack > span { grid-area: 1 / 1; }

.im-chap-n {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(10rem, 32vw, 26rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 248, 245, 0.22);
  background-image: linear-gradient(180deg, rgba(250, 248, 245, 0.12), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: -webkit-text-stroke-color 0.6s var(--ease);
  will-change: transform, opacity;
}

.im-chap-t {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--panna);
  transition: color 0.6s var(--ease);
}

.im-chap-cmd {
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--soft);
  transition: color 0.6s var(--ease);
}

.im-chap-cmd b { color: var(--rosso-light); font-weight: 700; }

.im-anim .im-regia-stage > .im-chap,
.im-pin .im-servizi-stage > .im-chap,
.im-pin .im-metodo-stage > .im-chap {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 3;
}

html:not(.im-anim) .im-contatti .im-chap-n,
body.is-light .im-contatti .im-chap-n {
  -webkit-text-stroke-color: rgba(30, 45, 55, 0.22);
  background-image: linear-gradient(180deg, rgba(30, 45, 55, 0.08), transparent 75%);
}

html:not(.im-anim) .im-contatti .im-chap-t,
body.is-light .im-contatti .im-chap-t { color: var(--dark); }

html:not(.im-anim) .im-contatti .im-chap-k,
html:not(.im-anim) .im-contatti .im-chap-cmd,
body.is-light .im-contatti .im-chap-k,
body.is-light .im-contatti .im-chap-cmd { color: var(--muted); }

.im-nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--dark);
  cursor: pointer;
}

.im-nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.45s var(--ease);
}

.im-nav-toggle span:nth-child(1) { top: 18px; }
.im-nav-toggle span:nth-child(2) { top: 24px; }
.im-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.im-nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.im-index {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 55;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-index a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 120px;
  height: 26px;
  color: var(--panna);
  transition: color 0.5s var(--ease);
}

.im-index a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}

.im-index span {
  margin-right: 14px;
  font-family: "Sora", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.im-index a:hover span { opacity: 1; transform: none; }
.im-index a.is-on::after { opacity: 1; background: var(--rosso-light); transform: scale(1.5); }
.im-index a:hover::after { opacity: 1; }
body.is-light .im-index a { color: var(--dark); }
body.is-foot .im-index { opacity: 0; pointer-events: none; }
.im-index { transition: opacity 0.5s var(--ease); }

.im-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 15px 15px 26px;
  border-radius: 999px;
  background: var(--rosso);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(230, 25, 75, 0.7);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}

.im-btn-primary:hover { background: var(--rosso-light); box-shadow: 0 22px 44px -16px rgba(230, 25, 75, 0.8); }

.im-btn-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.5s var(--ease);
}

.im-btn-primary:hover .im-btn-ico { transform: translateX(3px); }
.im-btn-ico svg { width: 16px; height: 16px; }
.im-btn-block { width: 100%; justify-content: center; }

.im-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--panna);
  box-shadow: inset 0 0 0 1.5px rgba(250, 248, 245, 0.22);
  transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  will-change: transform;
}

.im-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(250, 248, 245, 0.5); background: rgba(250, 248, 245, 0.04); }

.im-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
}

.im-hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.im-hero-title {
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 clamp(26px, 4vw, 44px);
}

.im-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.im-line > span { display: inline-block; }
.im-anim .im-line > span { transform: translateY(110%); }
.im-anim .im-hero-title.is-in .im-line > span { transform: none; transition: transform 1.2s var(--ease); }
.im-anim .im-hero-title.is-in .im-line:nth-child(2) > span { transition-delay: 0.1s; }
.im-anim .im-hero-title.is-in .im-line:nth-child(3) > span { transition-delay: 0.2s; }

.im-hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}

.im-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--soft);
  max-width: 46ch;
  margin: 0;
}

.im-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.im-anim [data-hero-k],
.im-anim [data-hero-foot] { opacity: 0; transform: translateY(18px); }
.im-anim .is-ready [data-hero-k],
.im-anim .is-ready [data-hero-foot] { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }
.im-anim .is-ready [data-hero-foot] { transition-delay: 0.7s; }

.im-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
}

.im-scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  background: rgba(250, 248, 245, 0.18);
  overflow: hidden;
}

.im-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--rosso-light);
  animation: im-cue 1.8s var(--ease) 1.4s 3 both;
}

@keyframes im-cue { to { top: 100%; } }

.im-regia {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.im-regia-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 110px 20px 60px;
  perspective: 1400px;
}

.im-term-outer {
  width: 100%;
  max-width: 600px;
  will-change: transform, opacity;
}

.im-term-wrap {
  width: 100%;
  padding: 10px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  will-change: transform, opacity;
}

.im-anim .im-quote {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.im-quote {
  margin: 0;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  color: var(--panna);
}

.im-quote > span { display: block; }
.im-quote-b { color: rgba(250, 248, 245, 0.55); font-size: 0.62em; margin-top: 0.3em; font-weight: 700; }
.im-quote b { color: var(--rosso-light); font-weight: 800; }

.term {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(230, 25, 75, 0.22), transparent 55%),
    linear-gradient(165deg, #243743, var(--dark) 60%, #16232c);
  border-radius: calc(var(--r-lg) - 8px);
  padding: 22px;
  color: #eef2f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.term-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dots { display: flex; gap: 7px; }
.term-dots i { display: block; width: 11px; height: 11px; border-radius: 999px; }
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--mono); font-size: 12px; color: #aeb8bf; }

.term-stamp {
  margin-left: auto;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfd7dc;
}

.term-body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.95;
  padding-top: 16px;
  min-height: 236px;
}

.term-ln { display: block; white-space: pre-wrap; }
.term-sp { height: 0.5em; }
.term-ind { color: #aab4bb; }
.term-cmt { color: var(--term-comment); }
.term-me { color: var(--rosso-light); font-weight: 700; }
.term-sep { color: var(--term-comment); }
.term-flag { color: #cdd5da; }
.term-tool { color: var(--term-green); font-weight: 700; }
.term-ok { color: var(--term-green); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--rosso-light);
  vertical-align: -2px;
  margin-left: 2px;
  animation: term-blink 1s steps(1) 8;
}

@keyframes term-blink { 50% { opacity: 0; } }

.im-sec-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
}

.im-sub {
  font-size: 1.08rem;
  color: var(--soft);
  margin: 20px 0 0;
  max-width: 52ch;
}

.im-servizi { position: relative; }

.im-servizi-stage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--gut);
}

.im-serv-shape { display: none; }
.im-serv-cards { display: grid; gap: 18px; margin-top: 36px; }

.im-serv {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(250, 248, 245, 0.06), rgba(250, 248, 245, 0.015));
  box-shadow: inset 0 0 0 1px var(--line);
}

.im-serv-anchor { height: 190px; margin: -6px 0 10px; }

.im-serv-n {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rosso-light);
  margin-bottom: 10px;
}

.im-serv h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.im-serv p { margin: 0 0 18px; color: var(--soft); max-width: 46ch; }

.im-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.im-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--panna);
  background: rgba(250, 248, 245, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.im-chips li::before {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -3px;
  border-left: 2px solid var(--rosso-light);
  border-bottom: 2px solid var(--rosso-light);
  transform: rotate(-45deg);
}

.im-chips li:hover { background: rgba(250, 248, 245, 0.09); transform: translateY(-3px); }

.im-serv-bars { display: none; }

.im-pin .im-servizi-stage {
  height: 100vh;
  height: 100svh;
  padding: 108px var(--gut) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "head shape" "cards shape" "bars shape";
  column-gap: clamp(32px, 5vw, 80px);
}

.im-pin .im-servizi-head { grid-area: head; }
.im-pin .im-serv-shape { display: block; grid-area: shape; min-height: 0; }

.im-pin .im-serv-cards {
  grid-area: cards;
  position: relative;
  display: block;
  margin-top: 28px;
  min-height: 0;
}

.im-pin .im-serv {
  position: absolute;
  inset: 0 0 auto 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.im-pin .im-serv-anchor { display: none; }

.im-pin .im-serv-bars {
  grid-area: bars;
  display: flex;
  gap: 8px;
  max-width: 360px;
}

.im-serv-bars i {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(250, 248, 245, 0.14);
  overflow: hidden;
}

.im-serv-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rosso-light);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.im-bridge {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 12vh, 140px) var(--gut);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.im-bridge-txt {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 5vw, 4.2rem);
  max-width: 20ch;
}

.im-hl-w { transition: none; }

.im-metodo {
  position: relative;
  overflow: hidden;
}

.im-metodo-code {
  position: absolute;
  inset: -10% 0 auto 0;
  z-index: 0;
  pointer-events: none;
  padding: 0 var(--gut);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.15;
  color: #fff;
  opacity: 0.05;
  white-space: pre;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.im-metodo-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--gut);
}

.im-met-shape { display: none; }

.im-steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
}

.im-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.im-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.im-step-anchor { grid-column: 1 / -1; height: 160px; margin-bottom: 4px; }

.im-step-n {
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.34);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s var(--ease);
}

.im-step.is-on .im-step-n { color: var(--rosso-light); -webkit-text-stroke-color: transparent; }
.im-step h3 { font-size: 1.55rem; margin-bottom: 8px; color: #fff; }
.im-step p { margin: 0; color: rgba(238, 242, 244, 0.72); max-width: 52ch; }
.im-met-rail { display: none; }

.im-pin .im-metodo-stage {
  height: 100vh;
  height: 100svh;
  padding: 100px var(--gut) 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  column-gap: clamp(32px, 5vw, 80px);
}

.im-pin .im-met-shape { display: block; height: min(64vh, 520px); }
.im-pin .im-met-text { position: relative; padding-left: 34px; }
.im-pin .im-step-anchor { display: none; }
.im-pin .im-steps { margin-top: 28px; }
.im-pin .im-step { padding: 15px 0; opacity: 0.32; transition: opacity 0.6s var(--ease); }
.im-pin .im-step.is-on { opacity: 1; }
.im-pin .im-step-n { font-size: 2rem; }
.im-pin .im-metodo .im-sec-head h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.im-pin .im-metodo .im-sub { margin-top: 14px; font-size: 1rem; }
.im-pin .im-step h3 { font-size: 1.4rem; }
.im-pin .im-step p { font-size: 15.5px; }

.im-pin .im-met-rail {
  display: block;
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(250, 248, 245, 0.12);
  overflow: hidden;
}

.im-met-rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--rosso), var(--rosso-light));
  transform: scaleY(0);
  transform-origin: top;
}

.im-contatti { position: relative; }
html:not(.im-anim) .im-contatti { background: var(--panna); }

.im-contatti-grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gut) clamp(64px, 10vh, 120px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.im-contatti h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; }
.im-contatti h2, .im-contatti .im-sub, .im-contatti .im-kicker,
.im-metodo h2, .im-metodo .im-sub, .im-metodo .im-kicker, .im-step h3, .im-step p, .im-metodo-code {
  transition: color 0.6s var(--ease);
}
html:not(.im-anim) .im-contatti h2, body.is-light .im-contatti h2, body.is-light .im-metodo h2, body.is-light .im-step h3 { color: var(--dark); }
html:not(.im-anim) .im-contatti .im-sub, body.is-light .im-contatti .im-sub, body.is-light .im-metodo .im-sub, body.is-light .im-step p { color: var(--muted); }
html:not(.im-anim) .im-contatti .im-kicker, body.is-light .im-contatti .im-kicker, body.is-light .im-metodo .im-kicker { color: var(--rosso); }
body.is-light .im-metodo-code { color: var(--dark); }
.im-target { height: 260px; margin-top: 26px; }

.im-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 18px;
}

.im-field { display: grid; gap: 8px; }

.im-field label {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.im-field input,
.im-field textarea {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--panna);
  border: 1.5px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.im-field input::placeholder,
.im-field textarea::placeholder { color: #6e767e; }

.im-field input:focus,
.im-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--rosso);
  box-shadow: 0 0 0 4px rgba(230, 25, 75, 0.12);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.im-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em 0; margin: 0 -0.08em -0.1em 0; }
.im-w > span { display: inline-block; }
.im-anim .im-split .im-w > span { transform: translateY(108%); }
.im-anim .im-split.is-in .im-w > span { transform: none; transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }

.im-anim [data-rv] { opacity: 0; transform: translateY(24px); }
.im-anim [data-rv].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s; }
.im-anim [data-rv].is-done { transition: none; }

.im-anim:not(.im-pin) .im-serv,
.im-anim:not(.im-pin) .im-step { opacity: 0; transform: translateY(30px); }
.im-anim:not(.im-pin) .im-serv.is-in,
.im-anim:not(.im-pin) .im-step.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

.im-flash {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--rosso);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
}

.im-flash-ok { border-left-color: var(--term-green); }

.im-foot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--panna);
  padding-top: clamp(110px, 16vh, 170px);
}

.im-foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.im-foot-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.im-foot-head {
  font-size: clamp(2.6rem, 6.6vw, 5.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.im-foot-head em { color: var(--rosso-light); }

.im-foot-cmd {
  margin: 0;
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--soft);
}

.im-foot-cmd b { color: var(--rosso-light); font-weight: 700; }

.im-foot-rows { display: grid; gap: 14px; width: 100%; margin-top: 12px; }

.im-foot-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.im-foot-label { font-family: var(--mono); font-size: 12.5px; color: var(--term-comment); }
.im-foot-label::before { content: "--"; color: var(--rosso-light); }

.im-foot-links { display: flex; flex-wrap: wrap; gap: 8px; }

.im-foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--panna);
  background: rgba(250, 248, 245, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}

.im-foot-pill:hover { background: rgba(250, 248, 245, 0.1); box-shadow: inset 0 0 0 1px rgba(250, 248, 245, 0.32); }
.im-foot-pill svg { width: 17px; height: 17px; }
.im-foot-row + .im-foot-row .im-foot-pill { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }

.im-foot-shape { height: min(46vh, 380px); }

.im-foot-log {
  list-style: none;
  max-width: var(--maxw);
  margin: clamp(48px, 8vh, 84px) auto 0;
  padding: 0 var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--soft);
}

.im-foot-log li::before { content: "✓ "; color: var(--term-green); }

.im-foot-bottom {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 18px var(--gut) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.im-foot-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gut);
  right: var(--gut);
  height: 1px;
  background: var(--line);
}

.im-foot-copy { font-family: var(--mono); font-size: 12px; color: var(--soft); }

.im-foot-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--panna);
  background: rgba(250, 248, 245, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s var(--ease);
  will-change: transform;
}

.im-foot-top:hover { background: rgba(250, 248, 245, 0.12); }
.im-foot-top svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.im-foot-top:hover svg { transform: translateY(-3px); }

.im-foot-giant {
  position: relative;
  z-index: 0;
  margin: 10px 0 -2.6vw;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 13.6vw;
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 248, 245, 0.16);
  background-image: linear-gradient(180deg, rgba(250, 248, 245, 0.14), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

.im-foot-giant i { font-style: normal; -webkit-text-stroke-color: rgba(255, 45, 94, 0.55); }

html:not(.im-anim) .im-foot { background: var(--deep); }

.im-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  display: none;
}

.im-cursor span {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 45, 94, 0.7);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.im-cursor span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 999px;
  background: var(--rosso-light);
}

.has-cursor .im-cursor { display: block; }
.im-cursor.is-link span { transform: scale(1.7); background: rgba(255, 45, 94, 0.10); border-color: rgba(255, 45, 94, 0.35); }
.im-cursor.is-text span { transform: scale(0.5); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rosso-light);
  outline-offset: 3px;
}

.cine-foot a:focus-visible,
.cine-foot button:focus-visible { outline-color: #FAF8F5; }

@media (max-width: 1199px) {
  .im-index { display: none; }
}

@media (max-width: 980px) {
  .im-contatti-grid { grid-template-columns: 1fr; }
  .im-foot-inner { grid-template-columns: 1fr; }
  .im-foot-shape { order: -1; height: 170px; }
  .im-target { height: 190px; }
}

@media (max-width: 720px) {
  .im-nav-toggle { display: block; }
  .im-head-pill { height: 58px; padding: 0 7px 0 18px; }
  .im-brand img { height: 27px; }
  .im-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--r-md);
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  .im-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .im-nav > a:not(.im-btn-area) { font-size: 17px; padding: 14px; border-radius: var(--r-sm); }
  .im-nav > a:not(.im-btn-area)::after { display: none; }
  .im-nav > a:not(.im-btn-area):active { background: var(--hair-soft); }
  .im-btn-area { justify-content: center; margin-top: 4px; padding: 12px 18px; font-size: 15px; }
  .im-progress { left: 22px; right: 22px; gap: 4px; }
  .im-hud { padding-left: 12px; font-size: 11.5px; gap: 4px; }
  .im-hud-tot { margin-right: 5px; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .im-hero { padding: 108px 0 96px; align-items: flex-end; }
  .im-hero-title { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .im-hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .im-hero-cta .im-btn-primary,
  .im-hero-cta .im-btn-ghost { justify-content: center; }
  .im-scroll-cue { bottom: 18px; }
  .im-scroll-cue span { display: none; }
  .im-regia-stage { padding: 96px 16px 40px; }
  .im-term-wrap { padding: 7px; }
  .term { padding: 16px; }
  .term-top { padding-bottom: 12px; }
  .term-body { font-size: 12.5px; line-height: 1.85; min-height: 0; }
  .im-quote { font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
  .im-servizi-stage { padding: 56px var(--gut); }
  .im-serv { padding: 20px 18px 22px; }
  .im-serv-anchor { height: 160px; }
  .im-chips li { font-size: 13.5px; }
  .im-metodo-stage { padding: 64px var(--gut); }
  .im-metodo-code { opacity: 0.035; }
  .im-step { grid-template-columns: 1fr; gap: 6px; }
  .im-step-anchor { height: 150px; }
  .im-step-n { font-size: 1rem; -webkit-text-stroke: 0; color: var(--rosso-light); letter-spacing: 0.14em; font-family: var(--mono); font-weight: 700; }
  .im-contatti-grid { padding: 0 var(--gut) 64px; gap: 28px; }
  .im-target { height: 150px; margin-top: 18px; }
  .im-bridge { gap: 24px; }
  .im-chap { min-height: 50svh; gap: 12px; }
  .im-chap-n { font-size: clamp(8rem, 46vw, 12rem); }
  .im-chap-t { font-size: clamp(2.2rem, 11vw, 3rem); }
  .im-chap-k, .im-chap-cmd { font-size: 12.5px; }
  .im-hint { bottom: 16px; padding: 8px 13px; gap: 8px; font-size: 11px; }
  .im-foot { padding-top: 72px; }
  .im-foot-head { font-size: clamp(2.4rem, 11.5vw, 3.2rem); }
  .im-foot-row { grid-template-columns: 1fr; gap: 10px; }
  .im-foot-pill { padding: 10px 14px; font-size: 14px; }
  .im-foot-shape { height: 150px; }
  .im-foot-log { gap: 6px 16px; font-size: 12px; }
  .im-foot-bottom { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .im-hud-tot { display: none; }
  .im-hud-n { margin-right: 4px; }
  .im-sec-head h2 br, .im-contatti h2 br { display: none; }
  .im-sec-head h2 { font-size: clamp(1.75rem, 8vw, 2.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
