/* Smetch — Michel Sirotti
   Layout: griglia 1420px su base 1512 (gutter 46), sezioni a tutta larghezza alternate chiaro/nero.
   Valori ricavati dal file Figma "Smetch" (MS-Home desktop + iPhone mobile). */
:root {
  --black: #050505;
  --ink: #292929;          /* testo nav, bordi card */
  --light: #f4f4f4;        /* fondo hero */
  --pale: #d9d9d9;         /* titoli su nero, fascia contatti */
  --grey: #8c8c8c;         /* testo secondario */
  --dim: #292929;          /* testo non ancora letto */
  --red: #de3636;          /* accento */
  --purple: #b478c8;       /* accento progetto Doody */
  --white: #f7f7f7;

  --font: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --font-label: "Poppins", "Jost", "Avenir Next", sans-serif;

  --max: 1420px;
  --gutter: clamp(12px, 3.05vw, 46px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Transizione di pagina: pannello rosso che sale e riscende ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--red); transform: translateY(101%); visibility: hidden;
}
.pt-full .page-transition, .pt-in .page-transition, .pt-out .page-transition { visibility: visible; }
.pt-full .page-transition { animation: pt-full 1.25s cubic-bezier(.7, 0, .3, 1) both; }
.pt-in .page-transition { animation: pt-in .7s cubic-bezier(.7, 0, .3, 1) both; }
.pt-out .page-transition { transform: none; transition: transform .55s cubic-bezier(.7, 0, .3, 1); pointer-events: auto; }
.pt-full { --pt-delay: .7s; }
.pt-in { --pt-delay: .2s; }
@keyframes pt-full {
  0% { transform: translateY(101%); }
  44%, 56% { transform: none; }
  100% { transform: translateY(101%); }
}
@keyframes pt-in {
  0%, 12% { transform: none; }
  100% { transform: translateY(101%); }
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--pale);
  font-family: var(--font);
  font-size: 18px;
  line-height: 30px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
html { -webkit-tap-highlight-color: transparent; }
/* Contorno rosso solo per chi naviga con la tastiera; sugli schermi touch non compare */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
@media (hover: none), (pointer: coarse) { :focus-visible { outline: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Pulsanti e link ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 46px; padding-inline: 24px;
  border: 1px solid currentColor; border-radius: 60px;
  font-size: 18px; line-height: 32px; letter-spacing: 0.05em;
  transition: background-color .25s, color .25s, border-color .25s;
}
.pill--light { color: var(--pale); }
.pill--light:hover { background: var(--pale); color: var(--black); }
.pill--down { gap: 14px; padding-inline: 26px 30px; }
.pill--down svg { width: 11px; height: 23px; flex: none; transition: transform .3s ease; }
.pill--down:hover svg { transform: translateY(3px); }
.pill--dark { color: var(--black); }
.pill--dark:hover { background: var(--black); color: var(--pale); }
.pill--muted { color: var(--grey); border-color: var(--ink); font-size: 16px; }
.pill--muted:hover { border-color: var(--pale); color: var(--pale); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 14.2px; letter-spacing: 0.1em; line-height: 1.2;
}
.arrow-link img { width: 28px; height: auto; transition: transform .25s; }
.arrow-link:hover img { transform: translateX(6px); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white); color: var(--ink);
  /* la foto riempie esattamente uno schermo all'apertura */
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.site-header > .wrap { flex: 1 0 auto; display: flex; flex-direction: column; }
/* La hero resta ferma e il resto della pagina le scorre sopra */
.site-header { position: sticky; top: 0; z-index: 0; overflow: hidden; isolation: isolate; }

main { position: relative; z-index: 1; background: var(--black); }
.menu-open .site-header { z-index: 40; }
.menu-open .site-header .nav { transform: none !important; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px; border-bottom: 1px solid var(--black);
}
.nav__logo img { width: 50px; height: 50px; }
.nav__links { display: flex; gap: clamp(60px, 17.2vw, 260px); }
.nav__links a {
  position: relative; width: 100px; text-align: center;
  font-size: 24px; line-height: 30px; color: var(--ink);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -36px; height: 6px;
  background: var(--black); transform: scaleX(0); transition: transform .3s;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; }
.nav__links .nav__home { display: none; } /* la voce Home compare solo nel menu mobile */

/* ---------- Hero: foto a tutto schermo dietro al menu ---------- */
.hero { position: static; flex: 1 0 auto; }
.hero__photo {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 0;
}
.hero__photo { will-change: transform, opacity; }
.hero__role, .marquee { will-change: transform, opacity; }
.hero__role {
  /* attaccata al bordo sinistro dello schermo, non alla griglia */
  position: absolute; z-index: 2; margin: 0;
  left: clamp(20px, 3.3vw, 50px); bottom: clamp(32px, 4.6vh, 60px);
  font-weight: 700; font-size: clamp(22px, 1.85vw, 36px); line-height: .95; letter-spacing: -0.01em; color: var(--black);
}
/* Nome in grande che scorre in loop: bianco in "differenza", scuro sul chiaro e chiaro sullo scuro */
.marquee {
  position: absolute; left: 0; right: 0; top: 71%; transform: translateY(-100%);
  overflow: hidden; pointer-events: none; mix-blend-mode: difference; z-index: 1;
}
.marquee__track {
  display: flex; width: max-content; will-change: transform;
  font-weight: 400; font-size: clamp(110px, 21vw, 460px); line-height: .82; letter-spacing: -0.01em;
  color: #fff; white-space: nowrap; padding-block: .06em;
}
.marquee__track span { flex: none; }

/* ---------- Social ---------- */
.social { position: relative; display: flex; align-items: center; gap: 11px; }
.social ul { display: flex; flex-direction: column; gap: 5px; font-size: 14px; letter-spacing: 0.1em; line-height: 20px; }
.social a { color: var(--grey); transition: color .2s; }
.social a.is-on, .social a:hover { color: var(--light); }
.social__arrow { width: 28px; height: auto; transition: translate .3s ease; }

/* ---------- Intro ---------- */
.intro { padding-top: 87px; }
.intro__portrait { width: 137px; height: auto; }
.intro__statement {
  margin-top: 25px;
  font-weight: 500; font-size: clamp(32px, 4.63vw, 70px); line-height: 1.143; letter-spacing: -0.05em;
  color: var(--pale);
}
.intro__statement em { font-style: normal; color: var(--red); }
/* Riempimento lettera per lettera allo scroll (attivato da JS) */
.fill-word { display: inline-block; white-space: nowrap; }
.fill-char { color: var(--dim); transition: color .18s linear; }
.fill-char.is-on { color: var(--pale); }
em .fill-char.is-on { color: var(--red); }
.intro__side { width: min(580px, 100%); margin: 51px 0 0 auto; display: flex; flex-direction: column; gap: 25px; align-items: flex-start; color: var(--grey); }
.intro__place { margin-top: 11px; font-size: 14px; line-height: 1.5; color: var(--grey); }

/* ---------- Etichette di sezione ---------- */
.label {
  position: relative; display: flex; align-items: center; gap: 15px;
  padding: 14px 14px 0;
  border-top: 1px solid var(--ink);
  font-family: var(--font-label); font-weight: 700; font-size: 18px; line-height: 18px; color: var(--red);
}
.label img { width: 19px; height: auto; aspect-ratio: 31.16 / 28.3; }
/* Etichette di sezione fisse in alto finché non arriva la sezione successiva */
.label {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  padding-bottom: 14px; background: var(--black);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--black); }

/* ---------- Servizi ---------- */
.services { position: relative; margin-top: 98px; isolation: isolate; overflow-x: clip; }
.services__bg {
  position: absolute; z-index: -1; top: 192px; left: calc(50% - 454px);
  width: 1155px; max-width: none; height: auto; opacity: .055; pointer-events: none;
}
.services__list { display: flex; flex-direction: column; gap: 91px; padding-top: 86px; }
.service { display: grid; grid-template-columns: 460px minmax(0, 940px); justify-content: space-between; align-items: start; }
.service__num {
  font-weight: 200; font-size: 360px; line-height: 265px; height: 265px;
  color: transparent; -webkit-text-stroke: 1px var(--grey); letter-spacing: -0.02em;
  margin-left: -14px; user-select: none;
}
.service__head { display: flex; flex-direction: column; gap: 20px; }
.service__title { font-weight: 600; font-size: clamp(33px, 3.57vw, 54px); line-height: 50px; letter-spacing: -0.06em; color: var(--pale); }
.service__desc { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.42; color: var(--grey); }
.service__items { margin-top: 50px; }
.service__items li {
  display: flex; align-items: center; gap: 19px; height: 65px;
  border-bottom: 1px solid var(--ink);
  font-size: 20px; color: var(--grey);
}
.service__items li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Ogni progetto ha una storia ---------- */
.story { padding-top: 132px; padding-bottom: 108px; text-align: center; }
.story__title { font-weight: 700; font-size: clamp(46px, 7.14vw, 108px); line-height: .935; letter-spacing: -0.05em; color: var(--white); }
.story__title span { display: block; color: var(--red); }
.story__sub { margin-top: 0; font-weight: 500; font-size: clamp(20px, 1.98vw, 30px); line-height: 80px; color: var(--grey); }

/* ---------- Progetti ---------- */
.projects { --stick: 47px; }
.projects > .wrap { max-width: none; }
/* Progetti impilati: ognuno occupa lo schermo, resta fisso sotto l'etichetta
   e si rimpicciolisce mentre il successivo sale dal basso */
.projects__list { display: flex; flex-direction: column; gap: 8vh; padding-top: 16px; }
.project {
  position: sticky; top: calc(var(--stick) + 16px);
  height: calc(100vh - var(--stick) - 32px);
  height: calc(100svh - var(--stick) - 32px);
  display: grid; grid-template-columns: minmax(0, 820fr) minmax(0, 580fr); gap: 20px;
  background: var(--black);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}
/* Ombra del progetto che sale: disegnata DENTRO le card sotto (foto e riquadro testo),
   così i bordi grigi restano visibili. La posizione (--cut) la calcola il JS. */
.project__media::after, .project__card::after {
  content: ""; position: absolute; left: 0; right: 0; top: var(--cut, -9999px); height: clamp(90px, 16vh, 180px);
  transform: translateY(-100%); pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0));
}
.project__card { position: relative; }
.project__media { position: relative; border-radius: 30px; overflow: hidden; height: 100%; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__media img { transform: scale(1.03); }
.project__card { min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: clamp(22px, 2vw, 32px) clamp(24px, 2.4vw, 36px) clamp(14px, 1.2vw, 20px) clamp(22px, 2vw, 30px);
  border: 1px solid var(--ink); border-radius: 30px;
}
.project__title { font-weight: 700; font-size: clamp(32px, 2.78vw, 46px); line-height: 1.2; letter-spacing: -0.01em; color: var(--pale); }
.project__desc { margin-top: clamp(14px, 1.4vw, 24px); max-width: 640px; font-size: clamp(15px, 1.06vw, 17px); line-height: 1.6; color: var(--grey); }
.project__items li {
  padding: clamp(10px, 1vw, 15px) 0;
  border-top: 1px solid var(--ink);
  font-size: clamp(13px, .93vw, 15px); line-height: 20px; color: var(--grey);
}
.projects__more { display: flex; justify-content: flex-end; margin-top: 86px; }

/* Schermi bassi: compatta il blocco info perché stia sempre nell'altezza disponibile */
@media (min-width: 761px) and (max-height: 760px) {
  .project__items li { padding-block: 8px; }
}
@media (min-width: 761px) and (max-height: 600px) {
  .project__desc { font-size: 14px; line-height: 22px; }
  .project__items li { padding-block: 5px; font-size: 13px; }
}

/* Cursore "View" sulle card progetto (solo mouse) */
.cursor-view {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
}
.cursor-view span {
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-weight: 400; font-size: 18px; letter-spacing: 0.02em;
  transform: scale(0); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.cursor-view.is-on span { transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .has-view-cursor .project, .has-view-cursor .project * { cursor: none; }
}

/* ---------- Claim + contatti ---------- */
.contact-block { margin-top: 129px; }
.claim { position: relative; isolation: isolate; overflow-x: clip; padding-top: 221px; padding-bottom: 136px; }
.claim__bg {
  position: absolute; z-index: -1; right: 0; bottom: -62px;
  width: 1157px; max-width: none; height: auto; pointer-events: none;
}
.claim__text {
  font-weight: 700; font-size: clamp(48px, 9.66vw, 146px); line-height: .959; letter-spacing: -0.06em;
  text-align: center; color: var(--pale); text-wrap: balance;
}
.claim__text em { font-style: normal; color: var(--red); }

.cta { position: relative; z-index: 1; background: var(--pale); color: var(--black); text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; padding-block: 113px 0; }
.cta__portrait { width: 106px; height: auto; }
.cta__name { margin-top: 37px; font-weight: 700; font-size: 23px; line-height: 30px; }
.cta__role { font-size: 20px; line-height: 30px; color: var(--grey); }
.cta__q { margin-top: 50px; font-weight: 700; font-size: clamp(26px, 2.78vw, 42px); line-height: 1.45; color: #0c0c0c; text-wrap: balance; }
.cta .pill { margin-top: 18px; }

.footer { margin-top: 139px; }
.footer__years { display: flex; align-items: center; justify-content: center; gap: 43px; font-size: 12px; letter-spacing: .3em; color: var(--grey); }
.footer__years img { width: 53px; height: 53px; }
.footer__legal { margin-top: 38px; border-top: 1px solid var(--black); }
.footer__legal p { padding-block: 26px 40px; font-size: 14px; line-height: 20px; text-align: center; color: var(--black); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animazioni d'ingresso (contenuto già visibile a riposo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(24px); opacity: .001; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
  .js .reveal.is-in { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ======================================================
   Tablet
   ====================================================== */
@media (max-width: 1180px) {
  .service { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
  .service__num { font-size: 26vw; line-height: .74; height: auto; }
}

/* ======================================================
   Mobile (layout iPhone 393)
   ====================================================== */
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 26px; }
  .nav { border-bottom: 0; padding-block: 22px 0; }
  .nav__logo img { width: 53px; height: 53px; }
  /* Logo e pulsante restano sopra il menu aperto, nella stessa posizione */
  .nav__logo, .nav__toggle { position: relative; z-index: 31; }
  .hero__photo { object-position: 54% 0; }
  .marquee { top: 70%; }
  .marquee__track { font-size: 38vw; }
  .hero__role { font-size: 24px; color: var(--light); transition: color .4s; }
  .hero__role.is-faded { color: var(--black); }
  .nav__toggle {
    display: block; width: 44px; height: 44px; margin-right: -8px; padding: 0;
    border: 0; background: none; cursor: pointer; color: var(--black);
  }
  .nav__toggle span:not(.sr-only) {
    position: absolute; left: 8px; width: 28px; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: top .2s ease .2s, transform .2s ease;
  }
  .nav__toggle span:nth-child(1) { top: 17px; }
  .nav__toggle span:nth-child(2) { top: 26px; }
  /* aperto: le due linee si uniscono al centro e poi ruotano formando la X */
  .nav.is-open .nav__toggle span:not(.sr-only) { top: 21.5px; transition: top .2s ease, transform .2s ease .2s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    background: var(--light);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav__links a {
    width: auto; text-align: left; font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.05em; color: var(--black);
    transition: color .2s;
  }
  .nav__links a::after { display: none; }
  .nav__links .nav__home { display: block; }
  .nav__links a[aria-current="page"] { color: var(--red); }
  .nav__links a:hover, .nav__links a:focus-visible, .nav__links a:active { color: var(--red); }


  .social ul { font-size: 13px; gap: 2px; }

  .intro { padding-top: 28px; }
  .intro__portrait { width: 149px; }
  .intro__statement { margin-top: 46px; line-height: 38px; letter-spacing: -0.05em; }
  .intro__side { margin-top: 21px; }

  /* Etichetta di sezione mobile: freccia grande, titolo e linea che prosegue fino al bordo */
  .label {
    height: 60px; padding: 0 0 0 8px; gap: 10px; border-top: 0;
    font-size: 18px; line-height: 1; letter-spacing: -0.01em;
  }
  .label img { width: 23px; }
  .label::after { content: ""; flex: 1; height: 1px; margin-left: 7px; background: var(--ink); }

  .services { margin-top: 92px; }
  .services__bg { display: none; }
  .services__list { gap: 70px; padding-top: 50px; }
  .service { grid-template-columns: 1fr; }
  .service__num { display: none; }
  .service__title { line-height: 50px; letter-spacing: -0.06em; font-weight: 700; }
  .service__head { gap: 6px; padding-bottom: 20px; }
  .service__desc { font-size: 18px; line-height: 1.45; }
  .service__items { margin-top: 0; margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--ink); }
  .service__items li { font-size: 16px; padding-left: calc(var(--gutter) + 12px); gap: 17px; }

  .story { padding-block: 90px 70px; }
  .story__title { line-height: .914; }
  .story__sub { line-height: 25px; margin-top: 12px; }

  .projects { --stick: 44px; }
  .projects__list { gap: 6vh; padding-top: 0; }
  /* Mobile: card unica con titolo, foto e caratteristiche (senza descrizione) */
  .project {
    display: flex; flex-direction: column; gap: 20px; min-height: 0;
    top: calc(var(--stick) + 8px);
    height: calc(100vh - var(--stick) - 16px); height: calc(100svh - var(--stick) - 16px);
    padding: 22px 20px 12px; border: 1px solid var(--ink); border-radius: 30px;
  }
  .project__card, .project__card > div { display: contents; }
  .project { overflow: hidden; }
  .project__card::after { content: none; }
  /* su mobile la card è unica: l'ombra sta dentro il suo bordo */
  .project::after {
    content: ""; position: absolute; left: 0; right: 0; top: var(--cut, -9999px); height: clamp(90px, 16vh, 180px);
    transform: translateY(-100%); pointer-events: none; z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0));
  }
  .project__media::after { content: none; }
  .project__title { order: 1; font-size: clamp(26px, 7.6vw, 34px); line-height: 1.1; }
  .project__desc { display: none; }
  .project__media { order: 2; flex: 1 1 auto; min-height: 140px; height: auto; border-radius: 24px; }
  .project__items { order: 3; flex: none; }
  .project__items li { padding: 11px 0; font-size: 14px; }
  .projects__more { justify-content: center; margin-top: 50px; }

  .contact-block { margin-top: 90px; }
  .claim { padding-block: 90px 80px; }
  .claim__bg { width: 100%; bottom: -20px; }

  .cta__inner { padding-top: 70px; }
  .footer { margin-top: 80px; }
}


/* ======================================================
   Pagine interne (About, Progetti, Contatti)
   ====================================================== */
.site-header--page { position: relative; z-index: 2; min-height: 0; overflow: visible; }
.site-header--dark { background: var(--black); color: var(--light); }
.site-header--dark .nav { border-bottom-color: var(--ink); }
.site-header--dark .nav__links a { color: var(--light); }
.site-header--dark .nav__links a::after { background: var(--ink); }

/* ---------- About ---------- */
.about-intro { padding-top: 94px; }
.about-statement {
  font-weight: 500; font-size: clamp(34px, 4.63vw, 70px); line-height: 1.143; letter-spacing: -0.04em;
  color: var(--pale);
}
.about-statement .about-portrait {
  display: inline-block; vertical-align: baseline;
  width: clamp(90px, 9vw, 137px); height: auto; margin-right: clamp(20px, 3.8vw, 58px);
}
.about-portrait--mobile { display: none; }
.about-cols {
  margin-top: 82px; columns: 2; column-gap: clamp(32px, 3.4vw, 51px);
  color: var(--grey);
}
.about-cols p { break-inside: auto; }
.about-cols p + p { margin-top: 30px; }
.about-years--mobile { display: none; }

.about-photo { margin: 250px 0 0; position: relative; overflow: hidden; aspect-ratio: 1512 / 772; }
/* Parallasse: l'immagine è più alta del riquadro e scorre più lenta della pagina */
.about-photo img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%; max-width: none;
  object-fit: cover; will-change: transform;
}

.about-cta { padding-top: 148px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about-cta__text { max-width: 1346px; font-weight: 500; font-size: clamp(24px, 3.05vw, 46px); line-height: 1.4; letter-spacing: -0.02em; color: var(--light); }
.about-cta__text em { font-style: normal; color: var(--red); }
.pill--red { min-width: 313px; border-color: var(--red); background: var(--red); color: var(--black); }
.pill--red:hover { background: transparent; color: var(--red); }

.site-footer { margin-top: 250px; }
.site-footer .footer__legal { border-top-color: var(--ink); }
.site-footer .footer__legal p { color: var(--grey); }

@media (max-width: 760px) {
  .site-header--dark .nav__links { background: var(--black); }
  .site-header--dark .nav__links a { color: var(--light); }
  .site-header--dark .nav__links a[aria-current="page"] { color: var(--red); }
  .site-header--dark .nav__links a:hover, .site-header--dark .nav__links a:focus-visible, .site-header--dark .nav__links a:active { color: var(--red); }
  .site-header--dark .nav__toggle { color: var(--light); }

  .about-intro { padding-top: 56px; }
  .about-statement { line-height: 1.12; letter-spacing: -0.04em; }
  .about-statement .about-portrait { display: none; }
  .about-portrait--mobile { display: block; width: 149px; height: auto; margin: 36px auto 0; }
  .about-cols { columns: 1; margin-top: 44px; font-size: 16px; line-height: 26px; }
  .about-years--mobile { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 56px; font-size: 12px; letter-spacing: .3em; color: var(--grey); }
  .about-years--mobile img { width: 53px; height: 53px; }
  .about-photo { margin-top: 56px; }
  .about-photo { aspect-ratio: 393 / 240; }
  .about-cta { padding-top: 40px; }
  .pill--red { min-width: 0; width: 100%; }
  .site-footer { margin-top: 110px; }
}


/* ---------- Contatti ---------- */
.contact { padding-top: 126px; display: grid; grid-template-columns: minmax(0, 538fr) minmax(0, 851fr); column-gap: clamp(32px, 2.2vw, 31px); justify-content: space-between; }
.contact > * { min-width: 0; }
.contact__intro { display: flex; flex-direction: column; }
.contact__title {
  font-weight: 700; font-size: clamp(48px, 6.4vw, 100px); line-height: .9; letter-spacing: -0.05em;
  color: var(--pale); white-space: nowrap;
}
.contact__sub { margin-top: 38px; max-width: 500px; font-weight: 500; font-size: clamp(22px, 1.98vw, 30px); line-height: 1.3; color: var(--grey); }
.social--contact { margin-top: 110px; align-self: flex-start; align-items: flex-start; }
.social--contact ul { gap: 12px; font-size: 16px; }
.social--contact .social__arrow { position: absolute; left: 0; top: 0; rotate: 180deg; }

.contact__form { margin-top: calc(clamp(48px, 6.4vw, 100px) * 1.8 + 34px); display: flex; flex-direction: column; }
.field { position: relative; padding-top: 26px; border-bottom: 1px solid var(--ink); transition: border-color .25s; }
.field + .field { margin-top: 46px; }
.field:focus-within { border-bottom-color: var(--grey); }
.field label {
  position: absolute; left: 0; top: 26px; pointer-events: none;
  font-size: 18px; line-height: 30px; color: #c9c9c9;
  transform-origin: 0 0; transition: transform .25s ease, color .25s;
}
.field input, .field textarea {
  display: block; width: 100%; padding: 0 0 12px; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 18px; line-height: 30px; color: var(--light); resize: none;
}
.field textarea { min-height: 42px; overflow: hidden; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-26px) scale(.78); color: var(--grey); }
.field.is-invalid { border-bottom-color: var(--red); }
.field__error { position: absolute; right: 0; top: 30px; font-size: 13px; color: var(--red); }
.contact__send {
  margin-top: 74px; align-self: flex-start; min-width: 197px; height: 46px; padding-inline: 32px;
  border: 1px solid var(--pale); border-radius: 60px; background: var(--pale); color: var(--black);
  font: inherit; font-size: 18px; letter-spacing: .02em; cursor: pointer; transition: background-color .25s, color .25s;
}
.contact__send:hover { background: transparent; color: var(--pale); }
.contact__status { margin-top: 18px; min-height: 30px; color: var(--grey); }
.contact__status.is-ok { color: var(--light); }

.contact__info { margin-top: 104px; display: flex; flex-direction: column; gap: 22px; font-family: var(--font-label); font-size: 18px; line-height: 30px; color: var(--grey); }
.contact__info b { font-weight: 700; color: var(--light); }
.contact__info a:hover { color: var(--light); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; padding-top: 56px; }
  .contact__sub { margin-top: 20px; }
  .social--contact { margin-top: 44px; }
  .contact__form { margin-top: 56px; }
  .field + .field { margin-top: 34px; }
  .contact__send { margin-top: 48px; width: 100%; }
  .contact__info { margin-top: 64px; font-size: 16px; gap: 14px; }
}


/* ---------- Portfolio ---------- */
.pf-intro { padding-top: 70px; padding-bottom: 80px; }
.pf-title { font-weight: 700; font-size: clamp(46px, 6.4vw, 96px); line-height: .94; letter-spacing: -0.05em; color: var(--pale); text-wrap: balance; }
.pf-sub { margin-top: 30px; max-width: 560px; font-size: clamp(16px, 1.32vw, 20px); line-height: 1.6; color: var(--grey); }

.pf-outro { margin-top: clamp(100px, 10vw, 160px); }
.pf-update { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.pf-update b { font-weight: 600; color: var(--pale); }
.pf-outro .about-cta { padding-top: 40px; }

@media (max-width: 760px) {
  .pf-intro { padding-top: 48px; padding-bottom: 50px; }
  .br-desk { display: none; }
  .pf-update { flex-direction: column; gap: 4px; }
}


/* ======================================================
   Pagina di dettaglio progetto (case study)
   ====================================================== */
.cs { background: var(--black); }
/* La foto di apertura resta ferma e si scurisce mentre il contenuto sale a coprirla */
.cs-hero { position: sticky; top: 0; z-index: 0; overflow: hidden; height: min(60.6vw, 100svh); min-height: 320px; }
.cs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.cs-body { position: relative; z-index: 1; background: var(--black); }
.cs-close {
  position: absolute; z-index: 2;
  top: max(24px, calc(env(safe-area-inset-top, 0px) + 16px)); right: max(var(--gutter), env(safe-area-inset-right, 0px));
  width: 52px; height: 52px; display: grid; place-items: center; color: var(--white);
  transition: rotate .3s ease, opacity .2s;
}
.cs-close:hover { rotate: 90deg; }
.cs-close svg { width: 34px; height: 34px; }

/* Colonna centrale: testi e immagini non vanno a pieno schermo */
.cs-body { --col: min(60vw, 1160px); --gap: clamp(10px, 1.2vw, 18px); --radius: clamp(10px, 1.1vw, 18px); }
.cs-body .cs-text, .cs-body .cs-cards { max-width: none; padding-inline: 0; }
.cs-text, .cs-band, .cs-img, .cs-cards, .cs-feature { width: var(--col); margin-inline: auto; }
.cs-text {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter);
  padding-block: clamp(50px, 5.4vw, 96px);
}
.cs-text--short { padding-block: clamp(44px, 4.6vw, 80px); }
.cs-title { font-weight: 700; font-size: clamp(36px, 3.4vw, 60px); line-height: 1; letter-spacing: -0.04em; color: var(--pale); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(18px, 1.9vw, 30px) 0 0; padding: 0; list-style: none; }
.cs-tags li { padding: 3px 11px 4px; border-radius: 60px; background: var(--pale); color: var(--black); font-size: clamp(11px, .8vw, 13px); line-height: 1.3; white-space: nowrap; }
.cs-year { margin-top: 10px; font-size: clamp(11px, .8vw, 13px); color: var(--grey); }
.cs-lead {
  grid-column: 2;
  font-weight: 400; font-size: clamp(16px, calc(1.6vw - 2px), 26px); line-height: 1.35; letter-spacing: -0.01em; color: var(--light);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.cs-lead em { font-style: normal; font-weight: 400; color: var(--purple); }
.cs-lead p + p { margin-top: .9em; }

.cs-img { display: block; height: auto; border-radius: var(--radius); }
/* Stesso spazio tra tutti i blocchi consecutivi */
:is(.cs-band, .cs-logos, .cs-img, .cs-cards, .cs-pair, .cs-type, .cs-ba, .cs-phone, .cs-elisir, .cs-run, .cs-gm-logo, .cs-gm-pattern) + :is(.cs-band, .cs-logos, .cs-img, .cs-cards, .cs-pair, .cs-type, .cs-ba, .cs-phone, .cs-elisir, .cs-run, .cs-gm-logo, .cs-gm-pattern) { margin-top: var(--gap); }
.cs-band { background: #b378c8; text-align: center; border-radius: var(--radius); padding: clamp(44px, 6.6vw, 120px) var(--gutter); }
.cs-band img { width: min(47.5vw, 720px); height: auto; margin-inline: auto; }

/* Logo Doody: la griglia di costruzione si disegna, poi compare il logo e la griglia sfuma.
   Stato finale (senza JS o con "riduci movimento"): solo il logo. */
.logo-grid { display: block; width: 62%; height: auto; margin-inline: auto; overflow: visible; }
.lg-grid { opacity: 0; }
.lg-grid .g-main { stroke-width: 1; }
.lg-grid .g-thin { stroke-width: .4; }
.lg-logo path { transform-box: fill-box; transform-origin: 50% 60%; }

.logo-grid.is-armed .lg-grid { opacity: 1; }
.logo-grid.is-armed .lg-grid line, .logo-grid.is-armed .lg-grid circle, .logo-grid.is-armed .lg-grid > path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo-grid.is-armed .lg-nums { opacity: 0; }
.logo-grid.is-armed .lg-logo path { opacity: 0; transform: scale(.94); }

.logo-grid.is-drawn .lg-grid line, .logo-grid.is-drawn .lg-grid circle, .logo-grid.is-drawn .lg-grid > path {
  stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .3, 1) var(--d);
}
.logo-grid.is-drawn .lg-nums { opacity: 1; transition: opacity .6s ease var(--d); }
.logo-grid.is-drawn .lg-logo path { opacity: 1; transform: none; transition: opacity .6s ease var(--d), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d); }
.logo-grid.is-drawn .lg-grid { opacity: 0; transition: opacity 1.2s ease var(--fade); }
/* Varianti colore del logo e didascalia sul nero */
.cs-logos { width: var(--col); margin: var(--gap) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-logos__box { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; }
.cs-logos__box svg { width: 58%; aspect-ratio: 2040 / 1260; height: auto; fill: currentColor; }
.cs-logos__box--orange { background: #dc7f40; color: #d9d9d9; }
.cs-logos__box--grey { background: #d9d9d9; color: #ab7fc6; }
.cs-caption {
  width: var(--col); margin: 0 auto; padding-block: clamp(56px, 6.4vw, 110px);
  text-align: center; font-size: clamp(17px, 1.65vw, 28px); line-height: 1.3; letter-spacing: -0.01em; color: var(--light); text-wrap: balance;
}
.cs-caption strong { font-weight: 400; color: var(--purple); }

.cs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cs-cards img { width: 100%; height: auto; aspect-ratio: 295 / 481; object-fit: cover; border-radius: var(--radius); }

/* Tipografia Doody: quattro blocchi quadrati in Nunito */
.cs-type { width: var(--col); margin: var(--gap) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); container-type: inline-size; --u: calc((100cqi - var(--gap)) / 200); }
.cs-type__box {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  font-family: "Nunito", var(--font);
}
.cs-type__box p, .cs-type__box ul { margin: 0; }
.cs-type__weights { background: #e48c4d; color: #fff; padding: calc(var(--u) * 9.5) calc(var(--u) * 6.5); }
.cs-type__weights ul { list-style: none; padding: 0; font-size: calc(var(--u) * 7.4); line-height: 1.38; }
.cs-type__mascot { background: #806fbf; display: grid; place-items: center; }
.cs-type__mascot img { width: 86%; height: auto; transform: translateX(-2%); }
.cs-type__specimen { background: #fff; color: #ac7ec5; padding: calc(var(--u) * 9) calc(var(--u) * 6.5) calc(var(--u) * 8); display: flex; flex-direction: column; }
.cs-type__name { font-weight: 800; font-size: calc(var(--u) * 6.4); line-height: 1; color: #7d6bc1; }
.cs-type__num { margin: auto 0 !important; font-size: calc(var(--u) * 34); line-height: 1; letter-spacing: -0.01em; font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-type__abc { font-weight: 800; font-size: calc(var(--u) * 3.6); line-height: 1.3; letter-spacing: .08em; word-spacing: -.1em; }
.cs-type__claim { background: #7bbcd7; color: #fff; display: grid; place-items: center; text-align: center; padding: calc(var(--u) * 6); }
.cs-type__claim p { font-weight: 900; font-size: calc(var(--u) * 15.5); line-height: .9; letter-spacing: -0.01em; }

/* Acetaia AMV: oro come accento, varianti del logo, coppia di foto */
.cs--amv { --accent: #b29d6c; }
.cs--amv .cs-lead em { color: var(--accent); }
.cs-band--amv { background: var(--accent); padding-block: clamp(60px, 7.4vw, 130px); }
.amv-drop { display: block; width: clamp(80px, 11.5vw, 190px); height: auto; margin-inline: auto; fill: #fff; }
.cs-logos__box--dark { background: #161616; color: #e9e9e9; }
.cs-logos__box--white { background: #fff; color: var(--black); }
.cs-logos__box svg.amv-full { width: 72%; aspect-ratio: 1034 / 432; }
.cs-slides { position: relative; overflow: hidden; }
.cs-slides img { position: absolute; left: 50%; top: 50%; width: 62%; height: auto; translate: -50% -50%; opacity: 0; }
.cs-slides img.is-on { opacity: 1; }
.cs-logos__box--map { background: #f7f7f7; }
.cs-logos__box--map img { width: 50%; height: auto; }
/* Prima / dopo: la linea scorre con lo scroll e rivela i murales */
.cs-ba { --p: 0%; position: relative; width: var(--col); margin-inline: auto; margin-bottom: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1600 / 959; }
.cs-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-ba__after { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cs-ba__line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.25); opacity: calc(min(var(--o, 1), 1)); }
.cs-pair { width: var(--col); margin: var(--gap) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-pair img { width: 100%; height: auto; aspect-ratio: 1 / 1.02; object-fit: cover; border-radius: var(--radius); }
.cs-pair img:first-child { object-position: 30% 50%; }
.cs-pair img:last-child { object-position: 58% 50%; }

/* Post social dentro lo schermo di un iPhone: carosello con i pallini, parte quando si arriva al blocco */
.cs-phone {
  --w: 66%; position: relative; width: var(--col); margin-inline: auto; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: #ecebe6;
}
.cs-phone__device { position: absolute; width: var(--w); left: calc(50% - var(--w) * .2762); bottom: 0; aspect-ratio: 1400 / 1470; }
.cs-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.cs-phone__screen {
  position: absolute; left: 9.3%; top: 1.4%; width: 36.6%; height: 75.1%; z-index: 1;
  overflow: hidden; border-radius: 11% / 5.2%; background: #f3f2ee; container-type: inline-size;
}
.cs-phone__status { display: flex; align-items: flex-end; justify-content: space-between; height: 15cqi; padding: 0 7cqi 1.5cqi; font-size: 4.6cqi; font-weight: 600; color: #050505; background: #f3f2ee; position: relative; z-index: 1; }
.cs-phone__app { font-weight: 700; font-size: 5.2cqi; letter-spacing: -0.02em; }
.ig-post { background: #f3f2ee; color: #050505; }

.ig-post__head { display: flex; align-items: center; gap: 2.6cqi; height: 14cqi; padding: 0 4cqi; font-size: 4.4cqi; }
.ig-post__avatar { display: grid; place-items: center; width: 9cqi; height: 9cqi; border-radius: 50%; background: #fff; flex: none; }
.ig-post__avatar svg { width: 72%; height: 72%; fill: #050505; }
.ig-post__user { font-weight: 600; flex: 1; }
.ig-post__more { font-size: 5.5cqi; line-height: 1; }
.ig-post__foot { display: flex; align-items: center; height: 14cqi; padding: 0 4cqi; }
.ig-post__icons { display: flex; align-items: center; gap: 4cqi; width: 100%; }
.ig-post__icons svg { width: 6.4cqi; height: 6.4cqi; fill: none; stroke: #050505; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ig-post__icons .ig-post__save { margin-left: auto; }
.ig-like { transform-origin: 50% 60%; transform-box: fill-box; }
.ig-post__foot { position: relative; }
.ig-carousel__media { overflow: hidden; }
.ig-carousel__track { display: flex; }
.ig-carousel__track.is-moving { transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.ig-carousel__track img { flex: 0 0 100%; display: block; width: 100%; height: 126.2cqi; object-fit: cover; }
.ig-carousel__dots { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; gap: 1.6cqi; }
.ig-carousel__dots i { width: 1.9cqi; height: 1.9cqi; border-radius: 50%; background: #c4c4c4; transition: background-color .3s; }
.ig-carousel__dots i.is-on { background: #3897f0; }
.ig-post__caption { display: flex; flex-direction: column; gap: 2.2cqi; padding: 1cqi 4cqi 0; }
.ig-post__caption span { height: 2.6cqi; border-radius: 2cqi; background: #dedcd5; }
.ig-post__caption span:nth-child(1) { width: 38%; background: #cfcdc5; }
.ig-post__caption span:nth-child(2) { width: 88%; }
.ig-post__caption span:nth-child(3) { width: 64%; }
.ig-like.is-liked { animation: ig-pop .5s ease both; fill: #ed4956; stroke: #ed4956; }
@keyframes ig-pop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 760px) {
  .cs-phone { --w: 118%; aspect-ratio: 3 / 4; }
}

/* Banner "L'Elisir della Lentezza": sfondo di foglie, bottiglia che galleggia piano */
.cs-elisir {
  position: relative; width: var(--col); margin-inline: auto; overflow: hidden; container-type: inline-size;
  aspect-ratio: 1482 / 784; border-radius: var(--radius);
  background: #04040a url("../assets/progetti/acetomodena/elisir-sfondo.jpg") center / cover no-repeat;
}
.cs-elisir__text { position: absolute; left: 35.4%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; text-align: center; width: 54cqi; }
.cs-elisir__title { font-family: "Bodoni Moda", "Didot", "Bodoni 72", serif; font-weight: 700; font-size: 5.75cqi; line-height: 1; letter-spacing: -0.01em; color: #fff; }
.cs-elisir__sub { margin-top: 3.1cqi; font-family: "Montserrat", var(--font); font-size: 1.75cqi; line-height: 1.2; color: #af9e75; }
.cs-elisir__btn {
  display: inline-grid; place-items: center; margin-top: 3cqi; width: 18cqi; height: 3.1cqi; border-radius: 60px;
  background: #af9e75; color: #111; font-family: "Montserrat", var(--font); font-weight: 500; font-size: 1.1cqi; letter-spacing: .12em; text-transform: uppercase;
}
.cs-elisir__bottle { position: absolute; left: 54.5%; top: 2.86cqi; width: 27.9%; height: auto; }
.cs-elisir.is-in .cs-elisir__bottle { animation: elisir-float 6s ease-in-out infinite; }
@keyframes elisir-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqi); } }
@media (max-width: 760px) {
  .cs-elisir { aspect-ratio: 3 / 4; background-position: 30% 0; }
  .cs-elisir { aspect-ratio: 3 / 4.6; }
  .cs-elisir__text { left: 50%; top: auto; bottom: 18.5cqi; width: 90cqi; translate: -50% 0; }
  .cs-elisir__title { font-size: 9.6cqi; }
  .cs-elisir__sub { margin-top: 5cqi; font-size: 4cqi; }
  .cs-elisir__btn { margin-top: 5cqi; width: 44cqi; height: 9cqi; font-size: 3.2cqi; }
  .cs-elisir__bottle { left: 21%; top: 3.5cqi; width: 58%; }
}

/* Bodoni Moda sempre con optical size 12 (titolo del banner e blocchi tipografici) */
.cs-elisir__title, .cs-type--amv .cs-type__box { font-optical-sizing: none; font-variation-settings: "opsz" 12; }
/* Tipografia Acetaia AMV: stessi quattro blocchi di Doody, in Bodoni Moda */
.cs-type--amv .cs-type__box { font-family: "Bodoni Moda", "Didot", "Bodoni 72", serif; }
.cs-type--amv .cs-type__weights { background: #af9e75; display: flex; align-items: center; padding: 0 calc(var(--u) * 6); }
.cs-type--amv .cs-type__weights ul { font-size: calc(var(--u) * 6.2); line-height: 1.9; }
.cs-type__aa { background: #f6f6f6; color: #af9e75; display: grid; place-items: center; }
.cs-type__aa span { font-weight: 700; font-size: calc(var(--u) * 46); line-height: 1; letter-spacing: -0.02em; margin-bottom: calc(var(--u) * 8); }
.cs-type--amv .cs-type__specimen { background: #f6f6f6; color: #af9e75; }
.cs-type--amv .cs-type__name { color: #050505; font-weight: 700; }
.cs-type--amv .cs-type__num { letter-spacing: 0; }
.cs-type--amv .cs-type__abc { color: #050505; letter-spacing: .12em; }
.cs-type--amv .cs-type__claim { background: #262046; color: #af9e75; }
.cs-type--amv .cs-type__claim p { font-weight: 700; font-size: calc(var(--u) * 15); line-height: .95; letter-spacing: 0; }

/* Credits a fine progetto */
.cs-credits { margin: clamp(90px, 11vw, 180px) auto 0; padding-inline: var(--gutter); text-align: center; }
.cs-credits__title { font-weight: 600; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; text-transform: uppercase; color: var(--white); }
.cs-credits dl { margin: clamp(26px, 2.6vw, 40px) 0 0; display: flex; flex-direction: column; gap: clamp(10px, 1vw, 14px); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.4; }
.cs-credits dt, .cs-credits dd { display: inline; margin: 0; }
.cs-credits dt { color: var(--grey); }
.cs-credits dd { color: var(--white); }
.cs-credits + .cs-thanks { margin-top: clamp(80px, 9vw, 150px); }

/* Doody: la mascotte che corre sullo sfondo di forme colorate */
.cs-run {
  position: relative; width: var(--col); margin-inline: auto; overflow: hidden; container-type: inline-size;
  aspect-ratio: 1196 / 578; border-radius: var(--radius);
  background: #d2b0e1 url("../assets/progetti/doody/sfondo-pattern.jpg") center / cover no-repeat;
}
.cs-run__mascot { position: absolute; left: 50%; top: 50%; height: 72%; width: auto; translate: -50% -50%; }
/* entrata a popup: la mascotte "salta fuori" una volta quando il blocco diventa visibile */
.cs-run.is-armed .cs-run__mascot { opacity: 0; transform: scale(.4); }
.cs-run.is-armed.is-shown .cs-run__mascot { opacity: 1; transform: none; transition: opacity .35s ease, transform .75s cubic-bezier(.34, 1.56, .64, 1); }
@media (max-width: 760px) { .cs-run { aspect-ratio: 4 / 3; } .cs-run__mascot { height: 78%; } }

/* Gurmont: sottotitolo e accento caldo del legno */
.cs-sub { margin-top: clamp(10px, 1vw, 16px); max-width: 26ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.35; color: var(--grey); }
.cs--gurmont .cs-lead em { color: #e08a4c; }
.cs-gm-logo { width: var(--col); margin-inline: auto; aspect-ratio: 1368 / 785; border-radius: var(--radius); background: #c66c2e; color: #d9d9d9; display: grid; place-items: center; }
.cs-gm-logo__full { width: 50%; height: auto; fill: currentColor; }
.cs-logos--gm .cs-logos__box img { width: 45%; height: auto; }
.cs-gm-dark { background: #1b1b1a; color: #d9d9d9; }
.cs-gm-light { background: #d9d9d9; color: #1b1b1a; }
@media (max-width: 760px) { .cs-gm-logo { aspect-ratio: 4 / 3; } .cs-gm-logo__full { width: 70%; } }

/* Gurmont: griglia del pattern. Dal modulo centrale il pieno si allarga a tutta la griglia, poi torna al contorno (loop) */
.cs-gm-pattern { width: var(--col); margin-inline: auto; overflow: hidden; aspect-ratio: 2 / 1; border-radius: var(--radius); background: #ef5f45; }
.cs-gm-pattern svg { display: block; width: 100%; height: 100%; }
.gmp-outline { fill: none; stroke: #ece5e0; stroke-width: .9px; vector-effect: non-scaling-stroke; }
.gmp-outline use, .gmp-outline path { vector-effect: non-scaling-stroke; }
.gmp-grid { stroke: #ece5e0; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .9; }
.gmp-grid line { vector-effect: non-scaling-stroke; }
.gmp-fill { fill: #ece5e0; }
.gmp-fill use { opacity: 1; }
/* stato "contorno": pieno solo il modulo centrale; stato "pieno" (.is-full): il pieno si allarga dal centro.
   Al ritorno i moduli tornano al contorno dall'esterno verso il centro, che resta sempre pieno. */
.cs-gm-pattern.is-armed .gmp-fill use { opacity: 0; transition: opacity .5s ease; transition-delay: calc(1.32s - var(--d)); }
.cs-gm-pattern.is-armed .gmp-fill use.gmp-center { opacity: 1; }
.cs-gm-pattern.is-armed.is-full .gmp-fill use { opacity: 1; transition-delay: var(--d); }
.cs-gm-pattern.is-armed .gmp-grid { transition: opacity .8s ease 1.3s; }
.cs-gm-pattern.is-armed.is-full .gmp-grid { opacity: 0; transition-delay: .2s; }
@media (max-width: 760px) { .cs-gm-pattern { aspect-ratio: 1 / 1; } }

/* Ringraziamento a fine progetto */
.cs-thanks {
  margin: clamp(90px, 11vw, 180px) auto 0; padding-inline: var(--gutter); text-align: center;
  font-weight: 700; font-size: clamp(34px, 4.2vw, 72px); line-height: 1.1; letter-spacing: -0.02em; color: var(--pale);
}
.cs-thanks + .cs-end { margin-top: clamp(50px, 5.5vw, 90px); }
.cs-end { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: clamp(90px, 11vw, 170px); }
.cs-all {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 38px;
  border: 1px solid var(--pale); border-radius: 60px; color: var(--light); font-size: 18px;
  transition: background-color .25s, color .25s;
}
.cs-all svg { width: 13px; height: 13px; }
.cs-all:hover { background: var(--pale); color: var(--black); }
.cs-top {
  width: 32px; height: 46px; padding: 0; border: 0; border-radius: 60px; background: var(--red); color: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: translate .25s;
}
.cs-top:hover { translate: 0 -4px; }
.cs-top svg { width: 12px; height: 18px; }
.cs .site-footer { margin-top: clamp(110px, 12vw, 190px); }

@media (max-width: 760px) {
  .cs-hero { height: 78svh; }
  .cs-text { grid-template-columns: 1fr; row-gap: 26px; }
  .cs-lead { grid-column: 1; max-width: none; }
  .cs-body { --col: calc(100% - 2 * var(--gutter)); }
  .cs-band img { width: 72vw; }
  .logo-grid { width: 84%; }
  .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-type { grid-template-columns: 1fr; --u: 1cqi; }
}
