/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: Outfit, Arial, sans-serif;
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════════
   FONT-FACE
═══════════════════════════════════════════ */
@font-face {
  font-family: Outfit;
  src: url("assets/OutfitSemiBold.ttf");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("assets/OutfitExtraBold.ttf");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("assets/OutfitBlack.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* ═══════════════════════════════════════════
   ROOT
═══════════════════════════════════════════ */
:root {
  --pink: #f8485e;
  --forest: #4e5647;
  --black: #0c0b08;
  --cream: #f4f4f0;
  --white: #fbfbf9;
  --color-h: #c3d239;
  --color-a: #e9551e;
  --color-d: #009fe3;
  --h: #c3d239;
  --a: #e9551e;
  --d: #009fe3;
  --nav-height: 128px;
  --wrap-padding: 44px;
}

/* -- COLOR UTILITIES -- */
.color-a {
  color: var(--color-a);
}
.color-d {
  color: var(--color-d);
}
.color-h {
  color: var(--color-h);
}
.bg-a {
  background: var(--color-a);
}
.bg-d {
  background: var(--color-d);
}
.bg-h {
  background: var(--color-h);
}

/* -- SPACING UTILITIES -- */
.mt-28 {
  margin-top: 28px;
}
.mt-44 {
  margin-top: 44px;
}

/* -- LAYOUT -- */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--wrap-padding);
}

/* -- FOCUS STYLES -- */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- */

/* -- HEADER -- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
}

.nav-bar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  width: 245px;
  display: flex;
  align-items: center;
}

.header-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 108px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(12, 11, 8, 0.68);
}

.main-nav a:hover {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--black);
  color: white;
}

/* hamburger + mobile menu — hidden on desktop */
.hamburger {
  display: none;
}
.mobile-menu {
  display: none;
}

.scene {
  height: var(--scene-height, 100vh);
  position: relative;
}
.gruppo-scene {
  --scene-height: 90vh;
  padding: 0;
}
.aziende-outer {
  padding: 0;
  border-top: 1px solid rgba(12, 11, 8, 0.08);
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
}
.aziende-scroll-zone {
  height: 170vh;
  position: relative;
}
.aziende-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid rgba(12, 11, 8, 0.08);
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}
.aziende-sticky > .wrap {
  width: 100%;
}
.aziende-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.aziende-h2 {
  align-self: flex-start;
  margin-bottom: 48px;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--wrap-padding);
  z-index: 2;
}

.scene-content .wrap {
  width: 100%;
  padding: 0;
}

/* Background variants */
.bg-white .scene-bg {
  background: var(--white);
}
.bg-light .scene-bg {
  background: white;
}
.bg-dark .scene-bg {
  background: var(--black);
}

.gruppo-scene .scene-bg {
  background: white;
}
.gruppo-scene .scene-content {
  border-top: 1px solid rgba(12, 11, 8, 0.08);
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
  height: 90vh;
}
@media (max-width: 900px) {
  .gruppo-scene .scene-content {
    border-top: none;
    border-bottom: none;
  }
  .gruppo-scene {
    border-top: 1px solid rgba(12, 11, 8, 0.08);
    border-bottom: 1px solid rgba(12, 11, 8, 0.08);
  }
}

.gruppo-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 70px;
  align-items: start;
}
.gruppo-grid .eyebrow {
  grid-column: 1 / -1;
}
.gruppo-grid .gruppo-h2 {
  grid-column: 1;
}
.gruppo-grid .gruppo-lead {
  grid-column: 2;
}

/* -- TYPOGRAPHY -- */
h1 {
  font-size: clamp(68px, 7.3vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  font-weight: 900;
  max-width: 850px;
}

h2 {
  font-size: clamp(58px, 7.2vw, 112px);
  line-height: 0.86;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(27px, 2.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: rgba(12, 11, 8, 0.84);
}

.manifesto {
  font-size: clamp(66px, 8.5vw, 132px);
  line-height: 0.82;
  letter-spacing: -0.1em;
  text-transform: uppercase;
  font-weight: 900;
  max-width: 1120px;
  color: white;
}

/* -- SECTIONS -- */
section {
  padding: 118px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 154px;
}

.white {
  background: white;
  border-top: 1px solid rgba(12, 11, 8, 0.08);
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
}

.dark-outer {
  padding: 0;
}
.dark-scroll-zone {
  height: 170vh;
  position: relative;
}

.dark {
  background: var(--black);
  color: white;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 118px 0;
  view-timeline: --manifesto-tl block;
}

.contact {
  position: relative;
  overflow: hidden;
  view-timeline: --contact-tl block;
}

.contact > .wrap {
  position: relative;
  z-index: 1;
}

.bigx-img {
  position: absolute;
  right: -19vw;
  top: 6vh;
  width: min(72vw, 1040px);
  min-width: 720px;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.bigx-img img {
  display: block;
  width: 100%;
  height: auto;
}

.contact .bigx-img {
  left: -12vw;
  right: auto;
  top: auto;
  bottom: -7vw;
  opacity: 0.15;
  z-index: -1;
  width: min(62vw, 824px);
  min-width: 560px;
}

.dark .watermark-logo {
  position: absolute;
  right: 5vw;
  top: 70px;
  width: 260px;
  opacity: 0.08;
  pointer-events: none;
}

.dark .watermark-logo img {
  display: block;
  width: 100%;
}

.contact-info {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  margin-top: 32px;
  width: fit-content;
}
.contact-company-btn {
  padding: 8px 14px;
  font-size: 11px;
  gap: 10px;
  background: transparent;
  border-color: var(--black);
  color: var(--black);
  width: 100%;
  justify-content: space-between;
}
.contact-company-btn:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--accent, var(--black));
}
.contact-company-btn:hover .contact-arrow {
  color: var(--accent, var(--black));
  transform: translate(2px, -2px);
}
.contact-arrow {
  display: inline-block;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  flex-shrink: 0;
}
.accent-h {
  --accent: var(--h);
}
.accent-a {
  --accent: var(--a);
}
.accent-d {
  --accent: var(--d);
}

.footer-logo {
  margin-top: 44px;
  width: 160px;
}
.footer-logo img {
  display: block;
  width: 100%;
}

/* -- GRID LAYOUTS -- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 78px;
  align-items: end;
  width: 100%;
}

.hero-copy {
  font-size: clamp(18px, 1.18vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 430px;
}

.two {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 70px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 62px;
}

.step {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 24px;
}

.step span {
  display: block;
  color: var(--pink);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 28px;
}

.step p {
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: white;
}

/* -- CARDS -- */
.section-head {
  margin-bottom: 48px;
}
.cards {
  position: relative;
  width: 280px;
  height: 420px;
}
.cards li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.aziende-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: bottom left;
  cursor: pointer;
}
.aziende-card .card {
  height: 100%;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s;
}

li:nth-child(1) .aziende-card {
  z-index: 4;
  --rest-x: 0px;
  --rest-y: 0px;
  --rest-r: 0deg;
}
li:nth-child(2) .aziende-card {
  z-index: 3;
  --rest-x: 14px;
  --rest-y: 10px;
  --rest-r: 3deg;
}
li:nth-child(3) .aziende-card {
  z-index: 2;
  --rest-x: 28px;
  --rest-y: 20px;
  --rest-r: 6deg;
}
li:nth-child(4) .aziende-card {
  z-index: 1;
  --rest-x: 42px;
  --rest-y: 30px;
  --rest-r: 9deg;
}
.aziende-card.settled {
  transform: translateX(var(--rest-x)) translateY(var(--rest-y))
    rotate(var(--rest-r));
}
.aziende-card.settled:hover {
  z-index: 10 !important;
}
.aziende-card.settled:hover .card {
  border-color: rgba(248, 72, 94, 0.35);
  box-shadow: 0 8px 40px rgba(248, 72, 94, 0.3);
}
.aziende-card .card:hover {
  transform: none;
  box-shadow: none;
}

.card {
  background: white;
  border: 1px solid rgba(12, 11, 8, 0.1);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.card-strip {
  display: flex;
  align-items: center;
  height: 24px;
  background: var(--pink);
  border-radius: 6px;
  margin-top: auto;
  padding: 0 8px;
  gap: 6px;
}
.card-strip-x {
  width: 14px;
  height: 14px;
  background: var(--white);
  mask-image: url("assets/xsyde_black.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  flex-shrink: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(248, 72, 94, 0.45);
}

.brand-eyebrow {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.brand-name {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  width: 100%;
  max-width: 310px;
}

.brand-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

li:nth-child(3) .brand-logo-wrap {
  height: 148px;
  min-height: unset;
}
li:nth-child(3) .brand-logo-wrap img {
  width: auto;
  height: 100%;
}

.card h4 {
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-weight: 900;
}

.card .desc {
  font-size: 11px;
  line-height: 1.18;
  font-weight: 600;
  color: rgba(12, 11, 8, 0.63);
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(12, 11, 8, 0.08);
}

/* ═══════════════════════════════════════════
   ANIMATIONS — KEYFRAMES
═══════════════════════════════════════════ */

/* -- KEYFRAMES -- */
@keyframes manifesto-straighten {
  0% {
    transform: rotate(calc(var(--wi, 0) * 3deg + 18deg));
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes contact-contract {
  0% {
    letter-spacing: 0.45em;
  }
  100% {
    letter-spacing: -0.08em;
  }
}

@keyframes hero-scale-grow {
  0% {
    transform: translateY(60px) scale(0.75);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes hero-blur-rise {
  0% {
    transform: translateY(30px);
    opacity: 0;
    filter: blur(12px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes stamp-reverse-exit {
  0% {
    transform: translateY(-120px) scale(1.4);
    opacity: 0;
  }
  28% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  72% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.4);
    opacity: 0;
  }
}

@keyframes blur-rise-in {
  0% {
    transform: translateY(6px);
    opacity: 0;
    filter: blur(12px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes blur-rise {
  0% {
    transform: translateY(200px);
    opacity: 0;
    filter: blur(20px);
  }
  28% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
  72% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(-200px);
    opacity: 0;
    filter: blur(20px);
  }
}

@keyframes gruppo-eyebrow {
  0% {
    transform: translateY(-80px);
  }
  45% {
    transform: translateY(55px);
  }
  100% {
    transform: translateY(100px);
  }
}

@keyframes step-rise {
  0% {
    transform: translateY(280px);
    opacity: 0;
  }
  60% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* mobile-only entry keyframes for gruppo */
@keyframes scale-grow-in {
  0% {
    transform: translateY(40px) scale(0.88);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes blur-rise-in-full {
  0% {
    opacity: 0;
    filter: blur(20px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes eyebrow-in {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* -- SCROLL-DRIVEN ANIMATIONS -- */
/* Fallback: static positioned content */
@supports (animation-timeline: view()) {
  .scene {
    timeline-scope: --scene-tl;
  }
  .scene-bg {
    view-timeline: --scene-tl block;
  }

  /* Shared base for all animated words within scenes */
  .scene .word {
    display: inline-block;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --scene-tl;
    animation-range: entry 0% exit 100%;
  }

  /* ── CONTACT BUTTONS ── */
  .contact-info {
    animation: blur-rise-in linear both;
    animation-timeline: --contact-tl;
    animation-range: entry 60% entry 75%;
  }
  .contact-btn {
    animation: blur-rise-in linear both;
    animation-timeline: --contact-tl;
    animation-range: entry 70% entry 100%;
  }

  .contact-line {
    display: block;
    white-space: nowrap;
    line-height: 0.86;
    animation: contact-contract linear both;
    animation-timeline: --contact-tl;
    animation-range: entry 0% entry 60%;
  }

  .gruppo-scene .eyebrow {
    animation: gruppo-eyebrow linear both;
    animation-timeline: --scene-tl;
    animation-range: entry 25% exit 30%;
  }
  .gruppo-scene .gruppo-h2 .word {
    animation-name: stamp-reverse-exit;
    animation-range: entry 45% exit 50%;
  }
  .gruppo-scene .gruppo-lead {
    animation: blur-rise linear both;
    animation-timeline: --scene-tl;
    animation-range: entry 47% exit 40%;
  }

  /* ── MANIFESTO SECTION ── */
  .manifesto {
    word-spacing: 0.18em;
  }
  .manifesto .word {
    display: inline-block;
    transform-origin: bottom left;
    animation: manifesto-straighten linear both;
    animation-timeline: --manifesto-tl;
  }
  .manifesto .word:nth-child(1) {
    animation-range: cover 10% cover 30%;
  }
  .manifesto .word:nth-child(2) {
    animation-range: cover 15% cover 35%;
  }
  .manifesto .word:nth-child(3) {
    animation-range: cover 20% cover 40%;
  }
  .manifesto .word:nth-child(4) {
    animation-range: cover 25% cover 45%;
  }
  .manifesto .word:nth-child(5) {
    animation-range: cover 30% cover 50%;
  }
  .manifesto .word:nth-child(6) {
    animation-range: cover 35% cover 55%;
  }
  .manifesto .word:nth-child(7) {
    animation-range: cover 40% cover 60%;
  }
  .manifesto .word:nth-child(8) {
    animation-range: cover 45% cover 65%;
  }
  .manifesto .word:nth-child(9) {
    animation-range: cover 50% cover 70%;
  }

  .dark .step {
    opacity: 0;
    transform: translateY(280px);
    animation: step-rise linear both;
    animation-timeline: --manifesto-tl;
  }
  .dark .step:nth-child(1) {
    animation-range: cover 30% cover 60%;
  }
  .dark .step:nth-child(2) {
    animation-range: cover 40% cover 60%;
  }
  .dark .step:nth-child(3) {
    animation-range: cover 50% cover 60%;
  }
}

/* -- HERO TIME-BASED ANIMATIONS -- */
.hero-h1 .word {
  display: inline-block;
  opacity: 0;
  animation: hero-scale-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--wi, 0) * 0.1s + 0.3s);
  transform-origin: bottom center;
}

.hero-para {
  opacity: 0;
  animation: hero-blur-rise 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.3s;
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .word {
    display: inline-block;
  }
}

/* disable gruppo scroll-driven animations on mobile — use view() instead */
@supports (animation-timeline: view()) {
  @media (max-width: 900px) {
    .gruppo-scene .eyebrow {
      animation: eyebrow-in linear both;
      animation-timeline: view();
      animation-range: cover 2% cover 20%;
      opacity: 0;
    }
    .gruppo-scene .gruppo-h2 .word {
      animation: scale-grow-in linear both;
      animation-timeline: view();
      animation-range: cover 20% cover 38%;
      opacity: 0;
      transform-origin: bottom center;
    }
    .gruppo-scene .gruppo-lead {
      animation: blur-rise-in-full linear both;
      animation-timeline: view();
      animation-range: cover 38% cover 56%;
      opacity: 0;
      filter: blur(20px);
    }
  }
}

/* ═══════════════════════════════════════════
   PREFERS-REDUCED-MOTION
  ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Force visibility on elements that start hidden for animation */
  .hero-h1 .word,
  .hero-para,
  .gruppo-scene .eyebrow,
  .gruppo-scene .gruppo-lead,
  .dark .step,
  .contact-info,
  .contact-btn,
  .contact-line,
  .manifesto .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
    --wrap-padding: 32px;
  }

  /* ── HEADER ── */
  .header-logo {
    height: calc(var(--nav-height) - 18px);
    width: auto;
  }
  .header-logo img {
    width: auto;
    height: 100%;
  }
  .main-nav,
  .nav-bar > .btn {
    display: none;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition:
      transform 0.2s,
      opacity 0.2s;
    transform-origin: center;
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger[aria-expanded="true"] span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
  }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(12, 11, 8, 0.08);
    padding: 24px 32px 28px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateZ(0) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0s 0.2s;
    will-change: transform, opacity;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) translateY(0);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0s 0s;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
  }
  .mobile-menu nav a {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(12, 11, 8, 0.68);
    padding: 10px 0;
    border-bottom: 1px solid rgba(12, 11, 8, 0.06);
    text-align: right;
  }
  .mobile-menu .btn {
    display: inline-flex;
    align-self: flex-end;
    margin-top: 4px;
  }

  /* ── HERO ── */
  h1 {
    font-size: clamp(44px, 11vw, 68px);
  }
  .hero {
    min-height: 100dvh;
    padding-top: var(--nav-height);
    padding-bottom: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
  }
  .hero-copy {
    max-width: 100%;
    font-size: 17px;
  }
  .bigx-img {
    right: -40vw;
    top: 10vh;
    width: 110vw;
    min-width: 0;
    opacity: 0.18;
  }

  /* ── GRUPPO ── */
  .gruppo-scene {
    height: 150dvh;
    min-height: unset;
  }
  .gruppo-scene .scene-content {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: unset;
    padding: 80px var(--wrap-padding);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 180px);
  }
  .gruppo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gruppo-grid .gruppo-h2,
  .gruppo-grid .gruppo-lead {
    grid-column: 1;
  }
  h2 {
    font-size: clamp(40px, 10vw, 68px);
  }
  .lead {
    font-size: 20px;
  }

  /* ── AZIENDE CARDS ── */
  .aziende-scroll-zone {
    height: 280dvh;
  }
  .aziende-sticky {
    height: 100dvh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    display: flex;
    align-items: center;
  }
  .aziende-layout {
    align-items: center;
    width: 100%;
  }
  .aziende-h2 {
    margin-bottom: 32px;
    font-size: clamp(46px, 11vw, 72px);
  }
  .cards {
    width: calc(100vw - 144px);
    height: calc((100vw - 144px) * 1.5);
    margin: 0;
  }
  .aziende-card {
    width: calc(100vw - 144px);
    height: calc((100vw - 144px) * 1.5);
    transform-origin: center center;
  }
  .aziende-card.settled {
    transform: none;
  }
  .card-indicator {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 28px;
    width: 100%;
  }
  .card-indicator button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
  }
  .card-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(12, 11, 8, 0.15);
    transition:
      background 0.25s,
      transform 0.25s;
    pointer-events: none;
    flex-shrink: 0;
  }
  .card-indicator span.active {
    transform: scale(1.3);
  }
  .card {
    padding: 20px;
  }
  .dot {
    justify-self: start;
  }

  /* ── MANIFESTO ── */
  .dark-scroll-zone {
    height: 180dvh;
  }
  .dark {
    height: 100dvh;
    overflow: hidden;
  }
  .manifesto {
    font-size: 42px;
    word-spacing: 0.1em;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .step {
    padding-top: 14px;
  }
  .step span {
    margin-bottom: 10px;
  }
  .step p {
    font-size: 14px;
  }
  .dark .watermark-logo {
    width: 100px;
    top: 16px;
    right: 16px;
  }

  /* ── CONTACT / FOOTER ── */
  section {
    padding: 72px 0;
  }
  .contact {
    overflow: hidden;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }
  .contact h2 {
    font-size: clamp(36px, 9vw, 58px);
  }
  .contact .bigx-img {
    min-width: 0;
    width: 90vw;
    left: -20vw;
    bottom: -10vw;
  }
  .contact-line {
    display: block;
    white-space: normal;
    letter-spacing: -0.06em;
  }
  .contact-btn-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-logo {
    width: 120px;
    margin-top: 32px;
  }

  /* ── MISC ── */
  .two {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}
