/* upnxt.it — minimal, with one accent */

/* Instrument Sans (SIL Open Font License), served from the site itself: no requests to Google */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: #FFFFFF;
  --mist: #F5F5F7;
  --ink: #1D1D1F;
  --grey: #6E6E73;        /* 4.9:1 on white */
  --grey-dark: #A1A1A6;   /* secondary text on black */
  --line: #DCDCE0;
  --black: #000000;
  --blue: #3A2EFF;        /* the one accent */
  --blue-soft: #8F88FF;   /* accent on black */

  --f: "Instrument Sans", -apple-system, system-ui, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --block: clamp(4rem, 7vw, 6.5rem);
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --t-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --t-lead: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.hero :focus-visible, .block--dark :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 64px; padding: 0 max(var(--gutter), (100% - var(--max)) / 2);
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
  /* frosted dark glass over the hero video */
  background: rgba(16,16,18,.38);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-solid {
  color: var(--ink);
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav.is-solid.is-dark { color: #fff; background: rgba(0,0,0,.7); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.logo {
  font-size: 1.375rem; font-weight: 600; letter-spacing: -.045em;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); font-size: .9375rem; }
.nav__links a { min-height: 44px; display: inline-flex; align-items: center; opacity: .8; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__links .nav__cta {
  opacity: 1; min-height: 36px; padding: 0 1rem; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 500;
}
.nav.is-solid .nav__cta { background: var(--blue); color: #fff; }

/* Mobile menu: toggle + full-screen sheet */
.nav__toggle { display: none; }
.mnav { display: none; }
@media (max-width: 700px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__links .nav__cta { min-height: 40px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: .5rem; margin-right: -10px; color: inherit;
  }
  .nav__toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; }
  /* without anim.js (Motion animates these) */
  html:not(.js-anim) .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  html:not(.js-anim) .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav > .logo { margin-right: auto; }
  .nav.is-open { color: var(--ink); background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .nav.is-open .nav__cta { background: var(--blue); color: #fff; }

  .mnav {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 64px 0 0 0; z-index: 49;
    padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--white); overflow-y: auto;
  }
  .mnav[hidden] { display: none; }
  .mnav li { border-bottom: 1px solid var(--line); }
  .mnav li a {
    display: flex; align-items: center; min-height: 64px;
    font-size: 2rem; font-weight: 500; letter-spacing: -.04em;
  }
  .mnav li a:active { color: var(--blue); }
  .mnav__cta { margin-top: 2rem; justify-content: center; }
  html.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: 1rem;
  transition: background-color .2s var(--ease), opacity .2s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2A1FE0; }
.btn--text { color: #fff; opacity: .85; padding: 0 .5rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn--text:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--black); color: #fff; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--black); transform: scale(1.03); }

/* Lens: soft blur over the whole reel, with a sharp window that follows the mouse.
   Only on devices with a real pointer; touch devices get a pre-blurred file instead. */
.hero__lens { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .hero__lens {
    display: block; position: absolute; inset: 0;
    --x: 50%; --y: 50%; --r: 0px;
    -webkit-backdrop-filter: blur(9px) saturate(115%);
    backdrop-filter: blur(9px) saturate(115%);
    -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0%, transparent 45%, #000 100%);
    mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0%, transparent 45%, #000 100%);
  }
}

.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 50%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%),
    rgba(0,0,0,.22);
}

.hero__content {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
}
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.25rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -.045em;
  text-shadow: 0 2px 40px rgba(0,0,0,.25);
}
.hero__lead {
  margin-top: 2.25rem; max-width: 44ch;
  font-size: var(--t-lead); line-height: 1.45; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 20px rgba(0,0,0,.3);
}
.hero__actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
}
/* Intro (anim.js): hidden until GSAP takes over; the head script removes .js-anim if it never does */
.js-anim .hero__in, .js-anim .hero__lead, .js-anim .hero__actions > *,
.js-anim .clients__title, .js-anim .clients__list li { visibility: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__in { display: inline-block; }

/* Rotating word: one SME type at a time, sliding up like a feed */
.rot {
  position: relative; display: inline-grid; vertical-align: bottom;
  width: var(--w, auto);
  overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em;
}
.rot__w { grid-area: 1 / 1; justify-self: start; white-space: nowrap; }
.rot__w:not(:first-child) { opacity: 0; visibility: hidden; }
.rot__bar {
  position: absolute; left: 0; right: .35em; bottom: .02em; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.22); overflow: hidden;
}
.rot__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

.hero__pause {
  margin-left: auto; padding: 0 .5rem; margin-right: -.5rem;
  font-size: .875rem; opacity: .7; min-height: 44px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.hero__pause:hover { opacity: 1; }

/* ---------- Manifesto ---------- */
.manifesto__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.manifesto__text {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);
  font-weight: 400; line-height: 1.3; letter-spacing: -.025em;
  max-width: 30ch;
}
.verb {
  cursor: pointer;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  background-image: linear-gradient(rgba(58,46,255,.25), rgba(58,46,255,.25));
  transition: color .3s var(--ease), background-image .3s;
}
.verb.is-active { color: var(--blue); background-image: linear-gradient(var(--blue), var(--blue)); }

/* ---------- Motion graphic card ---------- */
.mg-wrap {
  position: relative; width: 100%; max-width: 560px; justify-self: end;
  perspective: 1200px;
}
/* coloured, blurred glow under the card */
.mg-wrap::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -7%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58,46,255,.55), rgba(58,46,255,0)),
              radial-gradient(closest-side at 25% 60%, rgba(139,60,224,.45), rgba(139,60,224,0)),
              radial-gradient(closest-side at 80% 55%, rgba(255,138,61,.35), rgba(255,138,61,0));
  filter: blur(42px);
  z-index: 0; pointer-events: none;
  transform: translate3d(calc(var(--gx, 0) * 1px), 0, 0);
}
.mg {
  position: relative; z-index: 1; aspect-ratio: 1; width: 100%;
  border-radius: 28px; background: var(--mist); overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 8px 16px -8px rgba(20,16,60,.12),
    0 30px 60px -24px rgba(20,16,60,.28),
    0 60px 100px -40px rgba(58,46,255,.28);
  will-change: transform;
}
.mg__bars { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 6px; z-index: 5; }
.mg__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(29,29,31,.12); overflow: hidden; position: relative; }
.mg__bars b { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.mg__label {
  position: absolute; left: 22px; bottom: 18px; z-index: 5;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.mg__scene {
  position: absolute; inset: 0; padding: 56px 28px 56px;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
}
.mg__scene[data-scene="0"] { opacity: 1; visibility: visible; } /* GSAP crossfades the scenes */

/* 1. Pensiamo — storyboard draws itself */
.sb { width: 100%; max-width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sb__p { aspect-ratio: 10 / 7; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -14px rgba(0,0,0,.2); position: relative; }
.sb__p svg { width: 78%; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.sb__p--note { background: var(--blue); color: #fff; }
.sb__p--note span { position: absolute; top: 12px; left: 14px; font-weight: 600; font-size: .9375rem; }
.sb__p--note svg { stroke: #fff; }

/* 2. Giriamo — camera viewfinder */
.vf { position: relative; width: 100%; max-width: 440px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #0d0a24; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }
.vf__img {
  position: absolute; inset: -8%;
  background:
    radial-gradient(60% 90% at 70% 100%, #FFB26B 0%, rgba(255,178,107,0) 70%),
    linear-gradient(180deg, #2B2470 0%, #7D4AA6 55%, #F2A46B 100%);
}
.vf__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #120E26;
  clip-path: polygon(0 60%, 14% 38%, 26% 54%, 40% 22%, 52% 46%, 66% 30%, 80% 52%, 100% 34%, 100% 100%, 0 100%); }
.vf__c { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.85); }
.vf__c--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf__c--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf__c--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf__c--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vf__focus { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1.5px solid #fff; border-radius: 6px; }
.vf__rec { position: absolute; top: 18px; left: 46px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vf__rec b { font-weight: 500; opacity: .9; }
.vf__rec i { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; }
.vf__fmt { position: absolute; top: 18px; right: 46px; color: rgba(255,255,255,.85); font-size: .75rem; font-weight: 500; }

/* 3. Montiamo — editing timeline */
.ed { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.ed__mon { aspect-ratio: 16 / 8; border-radius: 12px; background: #1D1D1F; padding: 8px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.45); }
.ed__frame { width: 100%; height: 100%; border-radius: 6px;
  background: linear-gradient(120deg, #3A2EFF, #8B3CE0, #FF8A3D, #3A2EFF); background-size: 300% 100%; }
.ed__tl { position: relative; background: #fff; border-radius: 12px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.2); }
.ed__track { position: relative; height: 26px; border-radius: 6px; background: var(--mist); }
.c { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; display: block; }
.c1 { left: 2%; width: 30%; background: var(--blue); }
.c2 { left: 33%; width: 24%; background: #8F88FF; }
.c3 { left: 58%; width: 38%; background: var(--blue); }
.c4 { left: 14%; width: 22%; background: #FF8A3D; }
.c5 { left: 62%; width: 18%; background: var(--ink); }
.c6 { left: 2%; right: 4%; background: repeating-linear-gradient(90deg, #B5B5BA 0 2px, transparent 2px 5px); opacity: .9; }
.ed__head { position: absolute; top: 4px; bottom: 4px; left: 12px; width: 2px; background: #FF3B30; border-radius: 2px; }
.ed__head::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 8px; background: #FF3B30; border-radius: 2px; }

/* 4. Pubblichiamo — post goes live */
.pub { position: relative; width: 100%; max-width: 440px; display: grid; justify-items: center; }
.pub__phone { position: relative; width: 58%; border-radius: 26px; background: #fff; padding: 10px 10px 14px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.35); }
.pub__img { aspect-ratio: 4 / 5; border-radius: 16px;
  background: radial-gradient(110% 70% at 30% 15%, rgba(255,166,77,.9), rgba(255,166,77,0) 60%), radial-gradient(90% 70% at 80% 80%, #3A2EFF, rgba(58,46,255,0) 70%), #1b1446; }
.pub__meta { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0; }
.pub__like { width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z' fill='%23FF3B5C'/%3E%3C/svg%3E") center / contain no-repeat; }
.pub__line { height: 6px; border-radius: 3px; background: var(--line); flex: 1; }
.pub__line--s { flex: .5; }
.pub__hearts { position: absolute; right: 14%; bottom: 22%; width: 30px; height: 60%; pointer-events: none; }
.pub__hearts i {
  position: absolute; bottom: 0; left: 0; width: 26px; height: 26px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.3 2.4.7-1.2 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z' fill='%23FF3B5C'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pub__hearts i:nth-child(2) { left: -14px; } .pub__hearts i:nth-child(3) { left: 10px; }
.pub__hearts i:nth-child(4) { left: -6px; } .pub__hearts i:nth-child(5) { left: 6px; }
.pub__notif {
  position: absolute; top: -6px; left: 50%; z-index: 2; width: min(86%, 300px);
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -16px rgba(0,0,0,.35);
  font-size: .875rem; line-height: 1.3; transform: translateX(-50%);
}
.pub__notif b { font-weight: 600; color: var(--blue); font-size: .8125rem; }

@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .mg-wrap { justify-self: start; max-width: 520px; }
  .mg { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 520px) {
  .mg { aspect-ratio: 1; }
  .mg__label { display: none; }
  .mg__scene { padding: 44px 20px 24px; }
  .pub__phone { width: 56%; }
}

/* ---------- Blocks ---------- */
.block { padding: var(--block) var(--gutter); }
.block > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.block--mist { background: var(--mist); }
.block--dark { background: var(--black); color: #fff; }

.head { margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
/* Two sections in a row with the same background: no double gap */
.block:not(.block--mist):not(.hero) + .block:not(.block--mist), .block--mist + .block--mist:not(.contact) { padding-top: calc(var(--block) * .45); }
.head h2 {
  font-size: var(--t-h2); font-weight: 500; line-height: 1.02; letter-spacing: -.045em;
  max-width: 18ch;
}
.head--wide h2 { max-width: 24ch; }
.head p { margin-top: 1.5rem; font-size: var(--t-lead); color: var(--grey); max-width: 42ch; }
.block--dark .head p { color: var(--grey-dark); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps__n { display: block; font-size: .9375rem; font-weight: 600; color: var(--blue); margin-bottom: 2.5rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.steps p { margin-top: .6rem; color: var(--grey); font-size: 1rem; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); column-gap: 1rem; align-items: stretch; }
.compare__col { grid-row: span 5; display: grid; grid-template-rows: subgrid; border-radius: 28px; padding: clamp(1.75rem, 3vw, 2.75rem); }
.compare__col--them { background: transparent; border: 1px solid var(--line); color: var(--grey); }
.compare__col--us {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, #6A5FFF 0%, rgba(106,95,255,0) 60%), var(--blue);
  box-shadow: 0 40px 80px -30px rgba(58,46,255,.6), 0 12px 24px -12px rgba(58,46,255,.35);
  margin-block: -1.25rem; padding-block: calc(clamp(1.75rem, 3vw, 2.75rem) + 1.25rem);
}
.compare__head { padding-bottom: 1.5rem; }
.compare__kicker { min-height: 28px; display: flex; align-items: center; font-size: .8125rem; letter-spacing: .02em; color: #A1A1A6; margin-bottom: .75rem; }
.compare__badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 .8rem; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 500; }
.compare__col h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.03em; }
.compare__brand {
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem) !important; font-weight: 600 !important; letter-spacing: -.06em !important; line-height: .9;
  background: linear-gradient(180deg, #fff 30%, #CFCBFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: flex-end; padding-bottom: .06em;
}
.compare__dot { width: .16em; height: .16em; border-radius: 50%; background: #fff; margin: 0 0 .1em .06em; box-shadow: 0 0 0 .07em rgba(255,255,255,.25), 0 0 24px 4px rgba(255,255,255,.55); }
.compare__sub { margin-top: .6rem; font-size: .9375rem; line-height: 1.4; }
.compare__col--them .compare__sub { color: #A1A1A6; }
.compare__col--us .compare__sub { color: rgba(255,255,255,.8); }
.compare__col--them h3 { color: var(--ink); opacity: .7; }
.compare__row { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; align-items: start; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.compare__col--us .compare__row { border-top-color: rgba(255,255,255,.22); }
.compare__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; opacity: .7; }
.compare__val { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.compare__col--them .compare__val { color: #6E6E73; }
.compare__col--us .compare__val { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.compare__desc { margin-top: .25rem; font-size: .9375rem; line-height: 1.45; }
.compare__col--them .compare__desc { color: #A1A1A6; }
.compare__col--us .compare__desc { color: rgba(255,255,255,.78); }
.compare__ico { width: 28px; height: 28px; border-radius: 50%; position: relative; margin-top: .1rem; }
.compare__col--them .compare__ico { background: #EDEDF0; }
.compare__col--them .compare__ico::before, .compare__col--them .compare__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: #A1A1A6; border-radius: 1px; transform: translate(-50%,-50%) rotate(45deg); }
.compare__col--them .compare__ico::after { transform: translate(-50%,-50%) rotate(-45deg); }
.compare__col--us .compare__ico { background: #fff; }
.compare__col--us .compare__ico::before { content: ""; position: absolute; left: 9px; top: 8px; width: 10px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.compare__foot { align-self: end; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9375rem; color: #A1A1A6; }
.compare__col--us .compare__foot { border-top-color: rgba(255,255,255,.22); }
.compare__foot .btn { width: 100%; justify-content: center; }

/* contact */
.contact__mail {
  display: inline-block;
  font-size: clamp(2.5rem, 1rem + 7.5vw, 8.5rem);
  font-weight: 500; line-height: 1; letter-spacing: -.055em;
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  padding-bottom: .1em;
  transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.contact__mail:hover { background-size: 100% 3px; }
.contact__phone { margin-top: 1.5rem; font-size: var(--t-lead); }
.contact__phone a { min-height: 44px; display: inline-flex; align-items: center; }
.contact__phone a:hover { color: var(--blue); }

/* ---------- Folders (services) ---------- */
.btn--dark { background: var(--ink); color: #fff; min-height: 46px; padding: 0 1.4rem; font-size: .9375rem; }
.btn--dark:hover { background: #000; }

.folders { position: relative; }
.folder {
  --tab-h: 52px;
  --tab-w: 18.5%;
  position: relative;
  padding-top: var(--tab-h);
  margin-bottom: 1.5rem;
}
.folder:last-child { margin-bottom: 0; }

/* Desktop: scroll-driven stack. The stage stays pinned for the whole section;
   each card slides up from below and lands on the previous one (JS sets --ty). */
.folders.is-stacked { height: var(--stack-h, auto); }
.folders.is-stacked .folders__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.folders.is-stacked .folder {
  position: absolute; left: 0; right: 0; margin: 0;
  top: calc(84px + var(--i) * 12px);
  will-change: transform;
}
.folders.is-stacked .folder__body { height: var(--card-h); min-height: 0; }
.folder__tab {
  position: absolute; top: 0;
  left: calc(2% + var(--i) * 19.5%);
  width: var(--tab-w); height: calc(var(--tab-h) + 2px);
  display: grid; place-items: center;
  font-size: clamp(.75rem, .65rem + .2vw, .8125rem); letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); text-align: center; line-height: 1.25; white-space: nowrap;
  padding: 0 1rem;
  z-index: 1;
}
.folder__tab::before { /* trapezoid tab joined to the card */
  content: ""; position: absolute; inset: 0;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  transform: perspective(60px) rotateX(9deg);
  transform-origin: bottom;
  box-shadow: 0 -6px 14px -8px rgba(0,0,0,.08);
  z-index: -1;
}
.folder__tab b { font-weight: 600; }
.folder__body {
  background: var(--white);
  border-radius: 28px;
  /* shadow points up, so stacked cards read as layers without piling up grey halos */
  box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 -14px 30px -20px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.04);
  min-height: min(560px, calc(100svh - 180px));
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.folder__text h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.folder__sub { margin-top: .75rem; color: var(--grey); }
.folder__desc { margin-top: 1.75rem; font-size: 1.125rem; line-height: 1.6; max-width: 44ch; }
.folder__hl { margin-top: 1.75rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 500; letter-spacing: -.03em; color: var(--blue); }
.folder__text .btn { margin-top: 1.75rem; }
.folder__visual {
  height: 100%; min-height: 300px;
  border-radius: 20px; background: var(--mist);
  border: 1px solid #ECECEF;
  display: grid; place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
}

/* visual: calendar */
.v-cal { width: 100%; font-size: .75rem; color: var(--grey); }
.v-cal__head, .v-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.v-cal__head { margin-bottom: 8px; }
.v-cal__grid span { min-height: 54px; border-radius: 8px; background: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 6px; }
.v-cal__grid i { height: 6px; border-radius: 3px; display: block; }
.v-cal__grid .k-reel { width: 100%; background: var(--blue); }
.v-cal__grid .k-post { width: 70%; background: var(--ink); }
.v-cal__grid .k-story { width: 45%; background: #B5B5BA; }

/* visual: phones */
.v-phones { display: flex; align-items: center; gap: 4%; width: 100%; justify-content: center; }
.ph { display: block; aspect-ratio: 9 / 16; border-radius: 16px; position: relative; overflow: hidden; }
.ph--a, .ph--c { width: 26%; }
.ph--b { width: 34%; box-shadow: 0 20px 40px -16px rgba(0,0,0,.35); }
.ph--a { background: linear-gradient(160deg, #D9D9DE, #B9B9C0); }
.ph--c { background: linear-gradient(200deg, #CFCFD6, #A9A9B2); }
.ph--b { background: radial-gradient(120% 70% at 30% 20%, rgba(255,166,77,.9), rgba(255,166,77,0) 60%), radial-gradient(90% 70% at 80% 75%, #3A2EFF, rgba(58,46,255,0) 70%), linear-gradient(160deg, #241a5e, #0d0a24); }
.ph--b i { position: absolute; top: 10px; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff 45%, rgba(255,255,255,.35) 45%); }

/* visual: spot frame */
.v-frame {
  position: relative; width: 100%; aspect-ratio: 2.39 / 1; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.5)), radial-gradient(60% 90% at 70% 100%, #FFB26B 0%, rgba(255,178,107,0) 70%), linear-gradient(180deg, #2B2470 0%, #7D4AA6 55%, #F2A46B 100%);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.35);
}
.v-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: #120E26;
  clip-path: polygon(0 60%, 14% 38%, 26% 54%, 40% 22%, 52% 46%, 66% 30%, 80% 52%, 100% 34%, 100% 100%, 0 100%); }
.v-frame__safe { position: absolute; inset: 10% 8%; border: 1px dashed rgba(255,255,255,.4); border-radius: 4px; z-index: 1; }
.v-frame__tc { position: absolute; top: 10px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.v-frame__tc i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; }

/* visual: motion */
.v-motion { width: 100%; display: grid; gap: 1.25rem; }
.v-motion__stage { position: relative; height: 140px; border-radius: 14px; background: var(--white); overflow: hidden; }
.sh { position: absolute; top: 50%; display: block; }
.sh--circle { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--blue); left: 12%; }
.sh--square { width: 46px; height: 46px; margin-top: -23px; border-radius: 8px; background: var(--ink); left: 44%; }
.sh--pill { width: 84px; height: 28px; margin-top: -14px; border-radius: 14px; background: #FF8A3D; right: 10%; }
.v-motion__curve { width: 100%; height: 60px; overflow: visible; }
.v-motion__curve path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* visual: growth */
.v-growth { width: 100%; height: 100%; min-height: 240px; }
.v-growth__line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- AI: blue boxes ---------- */
/* Grid background across the whole section (full width), fading out at top and bottom */
.ai { position: relative; isolation: isolate; }
.ai::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(#E8E8EC 1px, transparent 1px),
    linear-gradient(90deg, #E8E8EC 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center calc(50% + var(--grid-y, 0px));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.ai__panel { max-width: 1360px; margin: 0 auto; }
.head--center { text-align: center; margin-left: auto; margin-right: auto; }
.head--center h2, .head--center p { margin-left: auto; margin-right: auto; }
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 1040px; margin: 0 auto; }
.boxes li {
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #4A3FFF 0%, rgba(74,63,255,0) 60%), linear-gradient(135deg, #2E22F0 0%, #1A12B8 100%);
  box-shadow: 0 18px 40px -18px rgba(42,31,224,.55);
}
.boxes h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.boxes p { margin-top: .85rem; color: rgba(255,255,255,.85); max-width: 40ch; margin-left: auto; margin-right: auto; }

/* Desktop: the whole AI section fits in one screen (title + 4 boxes on one row) */
@media (min-width: 901px) {
  .ai {
    min-height: calc(100vh - 64px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(2.5rem, 7vh, 5rem); padding-bottom: clamp(2.5rem, 7vh, 5rem);
  }
  .ai__panel { width: 100%; }
  .ai .head { margin-bottom: clamp(2rem, 6vh, 4rem); }
  .ai .head h2 { font-size: clamp(2.5rem, 1.2rem + 3vw, 4.25rem); max-width: none; }
  .ai .head p { margin-top: 1.1rem; font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); }
  .boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1200px; width: 100%; }
  .boxes li { padding: clamp(1.5rem, 3.5vh, 2.25rem) 1.4rem; display: flex; flex-direction: column; justify-content: center; }
  .boxes h3 { font-size: clamp(1.2rem, .9rem + .7vw, 1.5rem); }
  .boxes p { margin-top: .7rem; font-size: .95rem; line-height: 1.5; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* folders + boxes on small screens */
@media (max-width: 900px) {
  .folder { position: relative; top: auto; margin-bottom: 1.5rem; }
  .folder__tab { left: 1.25rem; width: auto; min-width: 60%; padding: 0 1.75rem; }
  .folder__body { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; }
  .folder__visual { min-height: 180px; }
  .folder__desc { margin-top: 1.1rem; font-size: 1rem; }
  .folder__hl, .folder__text .btn { margin-top: 1.1rem; }
  .boxes { grid-template-columns: 1fr; }
}


/* ---------- More buttons ---------- */
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E8E8ED; }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.round {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--white);
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reels ---------- */
.reels { padding-left: 0; padding-right: 0; overflow: hidden; }
.reels__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.reels__nav { display: flex; gap: .5rem; margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.reels__track {
  max-width: none; margin: 0;
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), (100% - var(--max)) / 2) 1rem;
  scroll-padding-left: max(var(--gutter), (100% - var(--max)) / 2);
}
.reels__track::-webkit-scrollbar { display: none; }
/* All cards share one height: vertical 9:16 cards are narrow, horizontal 16:9 cards are wide */
.reels__track { --rh: clamp(380px, 34vw, 500px); align-items: flex-start; }
.reel { flex: 0 0 auto; scroll-snap-align: start; }
.reel__media {
  position: relative; height: var(--rh); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: #141416;
}
.reel--wide .reel__media { aspect-ratio: 16 / 9; height: auto; width: min(calc(var(--rh) * 16 / 9), calc(100vw - 2 * var(--gutter))); }
.reel__media::after { /* play glyph, hidden once the video plays */
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l9 6-9 6z' fill='%231D1D1F'/%3E%3C/svg%3E") center / 22px no-repeat;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .3s; pointer-events: none;
}
.reel.is-playing .reel__media::after { opacity: 0; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__bg { display: none; }
.reel__sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(20,20,22,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s;
}
.reel__sound:hover { background: rgba(20,20,22,.7); }
.reel__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.reel__sound[aria-pressed="true"] { background: var(--blue); }
.reel__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel__sound .spk { fill: currentColor; }
.reel__sound .on, .reel__sound[aria-pressed="true"] .off { display: none; }
.reel__sound[aria-pressed="true"] .on { display: inline; }
.reel__cap { margin-top: .85rem; font-weight: 500; letter-spacing: -.01em; }
.reel__cap span { display: block; margin-top: .15rem; color: var(--grey); font-weight: 400; font-size: .9rem; }
/* Phones: horizontal videos sit in a card as tall as the vertical ones, over a blurred copy of the frame */
@media (max-width: 700px) {
  .reel--wide .reel__media { height: var(--rh); width: calc(var(--rh) * .78); aspect-ratio: auto; }
  .reel__bg {
    display: block; position: absolute; inset: -24px;
    background: center / cover no-repeat;
    filter: blur(22px) brightness(.55) saturate(1.2);
  }
  .reel--wide video { object-fit: contain; }
}

/* ---------- Clients: logo strip at the bottom of the hero ---------- */
.hero__clients {
  position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 1.75rem) var(--gutter) clamp(1.5rem, 4vh, 2.25rem);
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}
.hero__clients::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.2); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.clients__title { flex: none; font-size: .875rem; color: rgba(255,255,255,.72); white-space: nowrap; }
.clients__list {
  flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.clients__list li { display: flex; align-items: center; justify-content: center; min-height: 44px; color: rgba(255,255,255,.8); transition: color .25s; }
.clients__list li:hover { color: #fff; }
/* Each logo is a mask filled with the text colour: all monochrome, same weight */
.clogo {
  display: block; height: var(--h); aspect-ratio: var(--ar); max-width: 100%;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.25));
}
.clogo--f1       { --src: url("../assets/img/logos/f1.svg");           --ar: 4;     --h: clamp(16px, 1.6vw, 24px); }
.clogo--aston    { --src: url("../assets/img/logos/aston-martin.svg"); --ar: 4.376; --h: clamp(18px, 1.8vw, 27px); }
.clogo--kings    { --src: url("../assets/img/logos/kings-league.svg"); --ar: 2.503; --h: clamp(24px, 2.4vw, 36px); }
.clogo--callback { --src: url("../assets/img/logos/callback.png");     --ar: 4.889; --h: clamp(18px, 1.7vw, 26px); }
.clogo--ied      { --src: url("../assets/img/logos/ied.svg");          --ar: 2.827; --h: clamp(22px, 2.1vw, 31px); }
.clogo--hellas   { --src: url("../assets/img/logos/hellas-verona.svg"); --ar: 1.154; --h: clamp(22px, 2.1vw, 30px); }
.logo-comune { display: inline-flex; align-items: center; gap: .45rem; }
.logo-comune svg { width: auto; height: clamp(24px, 2.3vw, 33px); }
.logo-comune span:not(.clogo) { font-size: clamp(.75rem, .5rem + .4vw, .9375rem); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 900px) {
  .hero__clients { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .clients__list { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .75rem; }
}

/* ---------- Su misura ---------- */
.fit { background: var(--white); border-radius: 24px; padding: clamp(1.75rem, 3.5vw, 3rem); }
.fit__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.fit__list li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.fit__n { display: block; font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--blue); margin-bottom: 1.5rem; font-variant-numeric: tabular-nums; }
.fit__list h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.fit__list p { margin-top: .75rem; color: var(--grey); }
.fit__foot { margin-top: clamp(2.25rem, 4vw, 3rem); padding-top: 1.75rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; }
.fit__foot p { color: var(--grey); max-width: 56ch; }
/* Desktop: one full screen (e.g. 1920×1080), content centred below the 64px nav.
   min-height, not height: on short screens it grows instead of clipping. */
@media (min-width: 901px) {
  #su-misura {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(64px + clamp(1.5rem, 4vh, 3rem)); padding-bottom: clamp(1.5rem, 4vh, 3rem);
    scroll-margin-top: -64px; /* the menu link lands with the section filling the screen */
  }
  #su-misura > * { width: 100%; }
  #su-misura .head { margin-bottom: clamp(2rem, 5.5vh, 4rem); }
  #su-misura .fit { padding-block: clamp(1.75rem, 4.5vh, 3rem); }
  #su-misura .fit__n { margin-bottom: clamp(1rem, 2.5vh, 1.5rem); }
}

/* ---------- Privacy page ---------- */
.legal { padding: calc(64px + clamp(3rem, 8vw, 6rem)) var(--gutter) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 44rem; margin: 0 auto; }
.legal__kicker { font-size: .875rem; color: var(--grey); }
.legal h1 { margin-top: .75rem; font-size: var(--t-h2); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.legal__lead { margin-top: 1.5rem; font-size: var(--t-lead); color: var(--grey); }
.legal h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.legal h3 { margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: .75rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: .5rem; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 600; }
/* Fields still to fill in before going live */
.todo { background: #FFF3B0; color: inherit; padding: 0 .2em; border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; position: sticky; top: 100px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 72px; padding: 1.25rem 0;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 500; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq summary:hover::after { background-color: #E8E8ED; }
.faq details[open] summary:hover::after { background-color: var(--blue); }
.faq details p { padding: 0 3.5rem 1.5rem 0; color: var(--grey); max-width: 60ch; }
.faq details p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq details p a:hover { color: var(--blue); }

/* ---------- Contact grid + form ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__label { font-size: .9375rem; color: var(--grey); margin-bottom: .5rem; }
.contact__label:not(:first-child) { margin-top: 2.5rem; }
.contact__direct .contact__mail { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
.contact__direct .contact__phone { margin-top: 0; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); letter-spacing: -.03em; }

.form { background: var(--white); border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { font-weight: 500; margin-bottom: .75rem; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--line); font-size: .9375rem; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chips span:hover { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; font-size: .9375rem; }
.req { color: var(--blue); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: 1rem;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(58,46,255,.15); }
.field input[aria-invalid="true"] { border-color: #D70015; }
.field__error { font-size: .875rem; color: #D70015; }
.field__error:empty { display: none; }
.form .btn { justify-self: start; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.form__note { font-size: .875rem; color: var(--grey); }
.form__note.is-ok { color: #1F7A3A; font-weight: 500; }
.form__note.is-error { color: #D70015; font-weight: 500; }
.form__legal { font-size: .8125rem; color: var(--grey); }
.form__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--ink); }
/* Spam trap: invisible to people, bots tick it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .fit__list { grid-template-columns: 1fr; gap: 2rem; }
  .faq, .contact__grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .reels__nav { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .faq details p { padding-right: 0; }
}


/* ---------- Contact box: tabs, booking ---------- */
.cbox { background: var(--white); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.cbox .form { background: none; border-radius: 0; padding: 0; }

.book__info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.book__title { font-size: 1.375rem; font-weight: 500; letter-spacing: -.025em; }
.book__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--grey); font-size: .9375rem; }
.book__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.book__meta svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.book__picker { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.cal__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__month { font-weight: 500; font-size: 1.0625rem; text-transform: capitalize; }
.cal__arrows { display: flex; gap: .4rem; }
.round--sm { width: 40px; height: 40px; }
.round--sm svg { width: 16px; height: 16px; }
.cal__dow, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal__dow { font-size: .8125rem; color: var(--grey); margin-bottom: .4rem; }
.cal__days button, .cal__days span {
  aspect-ratio: 1; min-height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.cal__days button { font-weight: 500; color: var(--blue); background: rgba(58,46,255,.08); transition: background-color .15s, color .15s; }
.cal__days button:hover { background: rgba(58,46,255,.16); }
.cal__days button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cal__days span.is-off { color: #C2C2C7; }

.slots__day { font-weight: 500; margin-bottom: 1rem; min-height: 40px; display: flex; align-items: center; }
.slots__list { display: grid; gap: .5rem; }
.slots__list button {
  min-height: 46px; border-radius: 12px; border: 1.5px solid rgba(58,46,255,.35);
  color: var(--blue); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s, border-color .15s;
}
.slots__list button:hover { border-color: var(--blue); background: rgba(58,46,255,.06); }
.slots__empty { color: var(--grey); font-size: .9375rem; }

.book__form { display: grid; gap: 1.25rem; }
.book__form[hidden] { display: none; }
.book__back { justify-self: start; color: var(--blue); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.book__back::before { content: ""; width: .45em; height: .45em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.book__chosen { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 500; letter-spacing: -.025em; }
.book__form .btn { justify-self: start; }
.book__embed { width: 100%; height: 680px; border: 0; border-radius: 16px; display: block; }

@media (max-width: 1100px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__direct { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 4rem; }
  .contact__direct .contact__label { margin-top: 0; grid-row: 1; }
}
@media (max-width: 640px) {
  .book__picker { grid-template-columns: 1fr; }
  .slots__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__direct { grid-template-columns: 1fr; gap: 0; }
  .contact__direct .contact__label { grid-row: auto; }
  .contact__direct .contact__label:not(:first-child) { margin-top: 2rem; }
  .book__form .btn { justify-self: stretch; }
}

/* ---------- Contact: everything in one section (title + contacts on top, call and form side by side) ---------- */
.contact__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 4rem; margin-bottom: clamp(1.5rem, 4vh, 2.75rem); }
.contact .head { margin-bottom: 0; }
.contact .head h2 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.75rem); max-width: 19ch; }
.contact .head p { margin-top: .9rem; font-size: clamp(1.0625rem, .95rem + .35vw, 1.25rem); max-width: 52ch; }
.contact__top .contact__label { margin-bottom: .2rem; font-size: .875rem; }
.contact__top .contact__label:not(:first-child) { margin-top: 1rem; }
.contact__top .contact__mail { font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.75rem); min-height: 44px; }
.contact__top .contact__phone { font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); }
.contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.cbox { padding: clamp(1.25rem, 2.2vw, 2rem); }
.cbox__title { margin-bottom: 1.25rem; }
.contact .book__info { padding-bottom: 1rem; margin-bottom: 1.25rem; }
.contact .book__picker { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
.contact .cal__days button, .contact .cal__days span { min-height: 36px; font-size: .875rem; }
.contact .slots__day { min-height: 36px; margin-bottom: .6rem; }
.contact .slots__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.contact .slots__list button { min-height: 42px; border-radius: 10px; font-size: .9375rem; }
.cbox .form { gap: 1rem; }
.cbox .chips legend { margin-bottom: .5rem; font-size: .9375rem; }
.cbox .chips { gap: .4rem; }
.cbox .chips span { min-height: 40px; padding: 0 .95rem; font-size: .875rem; }
.cbox .field-row { gap: 1rem; }
.cbox .field input { min-height: 46px; padding: .6rem .9rem; }
.cbox .field textarea { min-height: 76px; padding: .6rem .9rem; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.form__foot .form__note { flex: 1 1 14rem; }
.contact .cal__days { gap: 2px 4px; }
.contact .cal__days button, .contact .cal__days span { aspect-ratio: auto; width: 36px; height: 36px; min-height: 36px; justify-self: center; }
.contact .head h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.125rem); }
.contact .head p { max-width: 70ch; }
@media (max-width: 640px) {
  .contact .cal__days button, .contact .cal__days span { width: 40px; height: 40px; min-height: 40px; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .field-row--3 .field:last-child { grid-column: 1 / -1; }
  .contact .book__picker { grid-template-columns: 1fr; }
  .contact .slots__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .field-row--3 { grid-template-columns: 1fr; }
}
/* Short desktop screens: tighter so the whole section still fits */
@media (min-width: 1101px) and (max-height: 900px) {
  .contact { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .contact__top { margin-bottom: 1.25rem; }
  .contact .head h2 { font-size: clamp(1.875rem, 1rem + 1.6vw, 2.5rem); }
  .contact .head p { margin-top: .5rem; font-size: 1rem; }
  .contact__top .contact__label:not(:first-child) { margin-top: .5rem; }
  .contact__top .contact__mail { font-size: 2rem; }
  .contact__top .contact__phone { font-size: 1.25rem; }
  .cbox { padding: 1.25rem 1.5rem; }
  .cbox__title { margin-bottom: .75rem; font-size: 1.25rem; }
  .contact .book__info { padding-bottom: .75rem; margin-bottom: .75rem; }
  .contact .cal__top { margin-bottom: .5rem; }
  .contact .cal__days button, .contact .cal__days span { width: 32px; height: 32px; min-height: 32px; }
  .contact .slots__list button { min-height: 38px; }
  .cbox .form { gap: .75rem; }
  .cbox .chips span { min-height: 36px; }
  .cbox .field input { min-height: 42px; }
  .cbox .field textarea { min-height: 60px; }
}

@media (min-width: 1101px) {
  .contact {
    min-height: calc(100vh - 64px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(2rem, 5vh, 4rem); padding-bottom: clamp(2rem, 5vh, 4rem);
  }
  .contact > * { width: 100%; }
}
@media (max-width: 1100px) {
  .block--mist + .contact { padding-top: calc(var(--block) * .45); }
  .contact__top { grid-template-columns: 1fr; align-items: start; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 1.5rem max(var(--gutter), (100% - var(--max)) / 2) 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .875rem; color: var(--grey);
}
.footer { align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.footer__item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.footer__item a { color: var(--ink); }
.footer__item a:hover { color: var(--blue); }
@media (max-width: 700px) {
  .footer nav { column-gap: 1.5rem; }
  .footer__item { flex-basis: 100%; }
}
.footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps__n { margin-bottom: 1rem; }
  .compare { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1rem; }
  .compare__col { grid-row: auto; grid-template-rows: none; }
  .compare__col--us { margin-block: 0; padding-block: clamp(1.75rem, 3vw, 2.75rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small or short phones: keep the hero title clear of the nav */
@media (max-width: 700px) and (max-height: 780px), (max-width: 370px) {
  .hero__title { font-size: 2.25rem; }
  .hero__lead { margin-top: 1.5rem; font-size: 1.0625rem; }
  .hero__actions { margin-top: 1.5rem; }
}

/* Touch devices (phones and tablets): comfortable tap targets */
@media (hover: none) {
  .nav__links .nav__cta { min-height: 40px; }
  .contact .cal__days button, .contact .cal__days span { width: 40px; height: 40px; min-height: 40px; }
}
