/* Studio Alessandro Montuori. Bianco e nero. */

@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --black-2: #161616;
  --white: #ffffff;
  --grey-1: #f4f4f4;
  --grey-2: #e9e9e9;
  --muted: #6b6b6b;
  --muted-light: #9a9a9a;
  --line: rgba(10, 10, 10, .12);
  --line-light: rgba(255, 255, 255, .14);
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
figure { margin: 0; }
/* l'accento è il peso leggero, non un secondo carattere */
em { font-style: normal; font-weight: 200; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- NAV IN VETRO ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 2 * clamp(12px, 3vw, 40px)); max-width: 1240px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 9px 9px 24px;
  border-radius: 999px;
  color: var(--black);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(10, 10, 10, .07);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: background .5s var(--ease), color .4s, border-color .4s, box-shadow .5s;
}
.nav__brand { display: block; position: relative; width: 118px; flex: none; }
.nav__logo { width: 100%; height: auto; transition: opacity .4s; }
.nav__logo--light { position: absolute; inset: 0; opacity: 0; }
.nav__menu { display: flex; gap: 6px; align-items: center; }
.nav__menu a {
  text-decoration: none; font-size: 13.5px; font-weight: 400; letter-spacing: .01em;
  padding: 9px 14px; border-radius: 999px; transition: background .3s, color .3s;
}
.nav__menu a:hover { background: rgba(10, 10, 10, .06); }
.nav__menu a.nav__cta { background: var(--black); color: var(--white); padding: 10px 20px; margin-left: 6px; }
.nav__menu a.nav__cta:hover { background: #333; }
.nav__toggle { display: none; }

.nav.is-dark {
  color: var(--white);
  background: rgba(22, 22, 22, .45);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nav.is-dark .nav__logo--dark { opacity: 0; }
.nav.is-dark .nav__logo--light { opacity: 1; }
.nav.is-dark .nav__menu a:hover { background: rgba(255, 255, 255, .1); }
.nav.is-dark .nav__menu a.nav__cta { background: var(--white); color: var(--black); }

/* ---------- HERO 3D ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--white); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; left: 50%; top: 46%; width: min(78vw, 980px); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero--static .hero__fallback { opacity: 1; }
.hero--static .hero__canvas { display: none; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(0deg, #fff 10%, rgba(255,255,255,0)); pointer-events: none;
  transition: opacity 1.2s var(--ease);
}

.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(44px, 8vh, 90px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  animation: heroIn 1.2s var(--ease) .5s both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__content .eyebrow { margin: 0 0 10px; }
.hero__title { font-size: clamp(30px, 3.8vw, 58px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 64px;
  background: rgba(10,10,10,.12); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--black); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(90px, 14vw, 190px) 0 clamp(90px, 12vw, 160px); }
.manifesto__big {
  font-size: clamp(30px, 4.4vw, 66px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500;
  max-width: 21ch;
}
.manifesto__cols {
  margin-top: clamp(50px, 7vw, 100px); margin-left: auto; max-width: 760px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  color: var(--muted); font-size: 15.5px;
}

/* ---------- TITOLI DI SEZIONE ---------- */
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 780px; }
.sec-title { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.sec-lead { margin-top: 24px; font-size: 17px; color: var(--muted); max-width: 52ch; }

/* ---------- METODO ---------- */
.method { padding: clamp(90px, 11vw, 160px) 0; background: var(--grey-1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.step__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--grey-2); margin-bottom: 24px; }
.step__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.6s var(--ease); }
.step:hover .step__img img { transform: scale(1.08); }
.step__n { font-size: 13px; font-weight: 400; letter-spacing: .1em; color: var(--muted); }
.step h3 { margin: 8px 0 10px; font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- INTERLUDIO ---------- */
.interlude { position: relative; height: clamp(440px, 80vh, 820px); overflow: hidden; display: grid; place-items: center; color: var(--white); background: #2a2a2a center / cover; }
.interlude__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.interlude__text { position: relative; z-index: 1; text-align: center; font-size: clamp(40px, 7.4vw, 116px); line-height: 1; letter-spacing: -.05em; font-weight: 500; padding: 0 var(--gutter); }

/* ---------- AMBITI ---------- */
.services { padding: clamp(100px, 12vw, 170px) 0; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.svc li { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.svc li + li { padding-left: 28px; }
.svc li:last-child { border-right: 0; }
.svc__n { font-size: 64px; font-weight: 200; line-height: .9; letter-spacing: -.04em; }
.svc h3 { margin: 22px 0 12px; font-size: 20px; letter-spacing: -.02em; font-weight: 500; }
.svc p { color: var(--muted); font-size: 15px; }

/* ---------- FASCIA DI LUCE ---------- */
.lightband { height: clamp(260px, 42vw, 560px); overflow: hidden; background: var(--grey-2); }
.lightband img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }

/* ---------- STAMPA ---------- */
.press { padding: clamp(100px, 12vw, 170px) 0; }
.press__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press__list a, .press__item {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .5s var(--ease), opacity .3s;
}
.press__list a:hover { padding-left: 18px; }
.press__list a:hover .press__title::after { opacity: 1; transform: none; }
.press__src { font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.press__title { font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.15; font-weight: 400; }
.press__title::after { content: " ↗"; display: inline-block; opacity: 0; transform: translate(-6px, 4px); transition: all .4s var(--ease); font-weight: 200; }
.press__year { font-size: 22px; font-weight: 200; color: var(--muted); }

/* ---------- CONTATTI ---------- */
.contact { background: var(--black); color: var(--white); padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 130px); }
.contact .eyebrow { color: var(--muted-light); }
.contact__title { font-size: clamp(48px, 9vw, 144px); line-height: .95; letter-spacing: -.055em; font-weight: 500; }
.contact__grid { margin-top: clamp(60px, 8vw, 110px); display: grid; grid-template-columns: .8fr 1.1fr 1.45fr 1fr; border-top: 1px solid var(--line-light); }
.contact__item {
  display: block; padding: 28px 24px 28px 0; text-decoration: none; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.45;
  border-right: 1px solid var(--line-light); transition: opacity .3s; overflow-wrap: break-word; min-width: 0;
}
.contact__item + .contact__item { padding-left: 24px; }
.contact__item:last-child { border-right: 0; }
.contact__item span { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 12px; }
.contact__item:hover { opacity: .6; }

/* ---------- FOOTER ---------- */
.foot { background: var(--black); color: var(--muted-light); border-top: 1px solid var(--line-light); padding: 44px 0 50px; font-size: 13px; }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: end; }
.foot__logo { width: 130px; height: auto; }
.foot__links { display: flex; gap: 24px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--white); }

/* ---------- COMPARSA ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li { border-right: 0; padding: 30px 0; border-bottom: 1px solid var(--line); }
  .svc li + li { padding-left: 0; }
  .svc li:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line); }
  .svc li:nth-child(even) { padding-left: 28px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__item { border-bottom: 1px solid var(--line-light); }
  .contact__item:nth-child(even) { border-right: 0; }
  .contact__item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 20px; }
  .nav__toggle { all: unset; display: block; cursor: pointer; width: 42px; height: 42px; position: relative; z-index: 2; border-radius: 999px; background: var(--black); }
  .nav__toggle span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), top .4s; }
  .nav__toggle span:nth-child(1) { top: 17px; }
  .nav__toggle span:nth-child(2) { top: 24px; }
  .nav.is-dark .nav__toggle { background: var(--white); }
  .nav.is-dark .nav__toggle span:not(.sr) { background: var(--black); }
  .nav.is-open .nav__toggle span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }
  .nav__menu {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 26px; background: #fff;
    border: 1px solid rgba(10, 10, 10, .07); box-shadow: 0 20px 50px rgba(0,0,0,.12);
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav.is-dark .nav__menu { background: #161616; border-color: rgba(255,255,255,.12); }
  .nav.is-open { background: #fff; }
  .nav.is-dark.is-open { background: #161616; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { font-size: 20px; font-weight: 400; letter-spacing: -.02em; padding: 12px 16px; }
  .nav__menu a.nav__cta { margin: 8px 0 0; text-align: center; }

  .manifesto__cols { grid-template-columns: 1fr; gap: 22px; }
  .press__list a, .press__item { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .press__src { grid-column: 1 / -1; }
  .foot__inner { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step__img { aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(n) { padding: 28px 0; border-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__item:nth-child(n) { padding: 22px 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .hero__content { animation: none; }
  .step__img img { transition: none; }
}
