/* ==========================================================
   Polyphorm — grigio chiaro, vetro, Avenir Next semigrassetto
   ========================================================== */

:root {
  --bg: #E6E6E3;
  --bg-hi: #F6F6F4;
  --paper: #F4F4F1;
  --ink: #121212;
  --ink-2: #4F4F4A;
  --ink-3: #8C8C86;
  --line: rgba(18, 18, 18, .1);
  --glass: rgba(255, 255, 255, .45);
  --glass-line: rgba(255, 255, 255, .72);
  --pen: #1E2B4F;

  --font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", "Noteworthy", "Segoe Script", cursive;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --cw: clamp(112px, min(14vw, 21svh), 196px);
  --rc: calc(var(--cw) * .23);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* grana finissima: dà corpo al grigio */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ink); color: var(--bg); }

[hidden] { display: none !important; }

.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;
}

.wrap { width: min(1180px, 100% - clamp(32px, 7vw, 112px)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

h2 {
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

/* comparsa allo scroll (solo se JS è attivo) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Navbar a capsula ---------- */

.nav-wrap {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 14px 34px -16px rgba(0, 0, 0, .28),
    0 2px 6px -2px rgba(0, 0, 0, .06);
}
.nav__logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.nav__logo svg { width: 21px; height: 19px; }
.nav__logo:hover { transform: rotate(-8deg) scale(1.06); }

.nav__links { position: relative; display: flex; }
.nav__links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: opacity .3s;
}
.nav__links a:not(.is-active) { opacity: .72; }
.nav__links a:hover { opacity: 1; }
.nav__pill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -6px rgba(0, 0, 0, .16);
  opacity: 0;
  transition: left .55s var(--ease), width .55s var(--ease), opacity .3s;
}

.hand {
  width: 18px; height: 18px;
  color: #000;
  transform-origin: 70% 85%;
}
.nav__links a:hover .hand,
.hand.is-waving,
.in .hand--wave { animation: wave 1.1s var(--ease) 1; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(16deg); }
  35% { transform: rotate(-10deg); }
  55% { transform: rotate(14deg); }
  75% { transform: rotate(-6deg); }
}

/* ---------- Hero / ideas ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  padding: calc(92px + env(safe-area-inset-top)) 0 28px;
  overflow: clip;
  background: radial-gradient(ellipse 72% 58% at 50% 44%, var(--bg-hi) 0%, rgba(246, 246, 244, 0) 72%);
}
.hero__kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-3);
  text-align: center;
  padding-inline: 16px;
}
.hero__kicker span { color: var(--ink); font-weight: 600; }

.stage {
  position: relative;
  width: 100%;
  min-height: calc(var(--cw) * 3.1);
  perspective: 1600px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.stage.is-dragging { cursor: grabbing; }
.card:focus-visible .card__front,
.stage:focus-visible .card.is-front .card__front { outline: 2px solid var(--ink); outline-offset: 6px; }
.sheet:focus { outline: none; }

.hero__giant {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(130px, 31vw, 480px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.07em;
  color: rgba(18, 18, 18, .045);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  pointer-events: none;
  transform: translateY(-4%);
  white-space: nowrap;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* card: tutte nel loro colore; quella davanti si accende, le altre sono appena più spente e trasparenti, come vetro */
.card {
  position: absolute;
  width: var(--cw);
  height: var(--cw);
  left: calc(var(--cw) / -2);
  top: calc(var(--cw) / -2);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.card__front {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--rc);
  overflow: hidden;
  background: var(--c);
  color: var(--fg);
  opacity: .8;
  filter: saturate(.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .45),
    0 20px 38px -26px rgba(0, 0, 0, .35);
  transition: opacity .45s ease, filter .45s ease, box-shadow .6s ease;
}
.card__front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}
.card__logo {
  width: calc(var(--cw) * var(--s, .56));
  height: 54%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.card.is-front .card__front {
  opacity: 1;
  filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    0 30px 60px -24px rgba(0, 0, 0, .5),
    0 0 100px -14px color-mix(in srgb, var(--c) 60%, transparent);
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  padding-inline: 16px;
  margin-top: 4px;
}
.round {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .3);
  transition: transform .4s var(--ease), background .3s;
}
.round svg, .glass-btn svg, .btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.round:hover { transform: scale(1.06); background: rgba(255, 255, 255, .75); }
.round:active { transform: scale(.96); }

.caption {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: min(420px, 62vw);
  text-align: center;
}
.caption__num { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.caption__name { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.caption__tag { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.caption:hover .caption__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hint {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Indice ---------- */

.index { padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.sec-head { display: grid; gap: 18px; margin-bottom: 48px; }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head .sub { max-width: 34em; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

.rows { list-style: none; border-top: 1px solid var(--line); }
.row {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 2fr auto 40px;
  grid-template-areas: "num name tag status go";
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: padding .5s var(--ease), background .4s;
}
.row__num { grid-area: num; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.row__name {
  grid-area: name;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.035em;
}
.row__name::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .5s var(--ease);
}
.row__tag { grid-area: tag; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.row__status {
  grid-area: status;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
}
.row__go {
  grid-area: go;
  justify-self: end;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.row__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .row:hover { padding-left: 20px; background: rgba(255, 255, 255, .38); }
  .row:hover .row__name::before { transform: scale(1.6); }
  .row:hover .row__go { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }
}

/* ---------- Studio ---------- */

.studio { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 6vw, 80px); }

.statement {
  margin: 22px 0 clamp(48px, 7vw, 88px);
  font-size: clamp(42px, 7.6vw, 116px);
  line-height: .98;
  letter-spacing: -.05em;
}
.strike, .under { position: relative; display: inline-block; white-space: nowrap; }
.strike { transition: color 1s var(--ease) .5s; }
.strike::after, .under::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em;
  height: .075em;
  border-radius: 1em;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}
.strike::after { top: 54%; background: var(--ink); transition-delay: .35s; }
.under::after { bottom: -.02em; background: var(--stripe, var(--ink)); transition-delay: 1.15s; }
.statement.in .strike { color: var(--ink-3); }
.statement.in .strike::after,
.statement.in .under::after { transform: scaleX(1); }

.studio__lead { display: grid; gap: 22px; max-width: 980px; }
.lead {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  letter-spacing: -.012em;
}
.lead--2 { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

/* molte forme: una forma cambia insieme alla parola */
.forms {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 110px);
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 30px 60px -40px rgba(0, 0, 0, .3);
}
.forms__title {
  margin: 16px 0 26px;
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.forms__line {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.forms__word { display: inline-grid; vertical-align: top; }
.forms__word span { grid-area: 1 / 1; white-space: nowrap; animation: wordIn .6s var(--ease); }
.forms__word span.is-out { animation: wordOut .45s var(--ease) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(55%); } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-55%); } }
.forms__p { margin-top: 22px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.forms__shape { width: min(100%, 300px); aspect-ratio: 1; justify-self: center; overflow: visible; }
.forms__shape path { transition: fill .7s var(--ease); }

/* per chi */
.offer {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 96px);
}
.offer li { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.offer li:nth-child(2) { transition-delay: .12s; }
.offer li:nth-child(3) { transition-delay: .24s; }
.offer__k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.offer h3 { margin: 26px 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.offer p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* metamorfosi guidata dallo scroll */
.meta { position: relative; height: 620vh; margin-top: clamp(72px, 9vw, 120px); }
.meta__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.meta__word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.meta__word span {
  grid-area: 1 / 1;
  font-size: clamp(72px, 15vw, 250px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(18, 18, 18, .1);
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}
.meta__word span.is-on { opacity: 1; transform: none; }
.meta__word .meta__word--stripe {
  -webkit-text-stroke: 0;
  background: var(--stripe);
  -webkit-background-clip: text;
  background-clip: text;
}
.meta__word .meta__word--stripe.is-on { opacity: .2; }

.meta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.meta__title {
  margin: 16px 0 30px;
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.meta__steps { list-style: none; display: grid; gap: 22px; }
.meta__steps li {
  padding-left: 20px;
  border-left: 2px solid var(--line);
  opacity: .3;
  transition: opacity .6s var(--ease), border-color .6s;
}
.meta__steps li.is-on { opacity: 1; border-color: var(--ink); }
.meta__k {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta__k i { font-style: normal; color: var(--ink); }
.meta__steps strong { display: block; margin-top: 6px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.025em; }
.meta__steps p { margin-top: 6px; max-width: 46ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.meta__bar {
  max-width: 360px;
  height: 4px;
  margin-top: 30px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(18, 18, 18, .08);
}
.meta__bar span {
  display: block;
  height: 100%;
  background: var(--stripe, var(--ink));
  transform: scaleX(0);
  transform-origin: left center;
}
.meta__art { position: relative; }
.meta__anchor { width: 100%; aspect-ratio: 600 / 420; }
.meta__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity .4s ease;
}
.meta__canvas.is-flown { opacity: 0; }
.meta__legend {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
}
.meta__legend li { display: inline-flex; align-items: center; gap: 7px; }
.meta__legend i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

.meta__outro {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding-top: clamp(40px, 6vw, 72px);
  text-align: center;
}
.meta__outro p { font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.meta__outro p span { color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* la farfalla uscita dal disegno segue il cursore */
.flutter {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  width: 84px; height: 72px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.flutter.is-on { opacity: 1; }
.flutter canvas { display: block; width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .flutter { display: none; } }

/* ---------- Hello / cartolina ---------- */

.hello { padding: clamp(90px, 13vw, 160px) 0 clamp(80px, 10vw, 120px); }
.hello .eyebrow { gap: 8px; }
.hello .eyebrow .hand { width: 16px; height: 16px; }

.scene {
  display: grid;
  justify-items: center;
  perspective: 2200px;
}
.postcard {
  position: relative;
  width: min(800px, 100%);
  display: grid;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-io), opacity .7s ease;
}
.pc-face {
  grid-area: 1 / 1;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, .04),
    0 30px 70px -30px rgba(0, 0, 0, .32),
    0 8px 18px -10px rgba(0, 0, 0, .1);
}
.pc-back {
  display: grid;
  grid-template-columns: 1.25fr 1px 1fr;
  gap: clamp(20px, 3vw, 32px);
  min-height: 460px;
  padding: clamp(22px, 3.4vw, 36px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)),
    #F7F4EC;
}
.pc-write { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc-write textarea {
  flex: 1;
  width: 100%;
  min-height: 252px;
  resize: none;
  border: 0;
  outline: none;
  padding: 2px 0 0;
  font-family: var(--hand);
  font-size: 27px;
  line-height: 36px;
  color: var(--pen);
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(30, 30, 30, .13) 35px 36px);
  background-attachment: local;
}
.pc-write textarea::placeholder, .pc-sign input::placeholder { color: rgba(30, 43, 79, .38); }
.pc-sign {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(30, 30, 30, .2);
}
.pc-sign label, .pc-to__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pc-sign input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 4px 0 2px;
  font-family: var(--hand);
  font-size: 27px;
  color: var(--pen);
}
.pc-rule { background: rgba(30, 30, 30, .14); }
.pc-addr {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
}

.stamp {
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 110px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .16));
  transform: rotate(3deg);
}
.stamp__paper {
  width: 100%; height: 100%;
  padding: 7px;
  background: #fff;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle at center, transparent 3px, #000 3.5px) -5px -5px / 10px 10px;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle at center, transparent 3px, #000 3.5px) -5px -5px / 10px 10px;
}
.stamp__in {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: radial-gradient(120% 90% at 30% 15%, #2a2a2a, #111);
  color: #E6E6E3;
}
.stamp__in svg { width: 40px; height: 36px; }
.stamp__in span { font-size: 9px; font-weight: 600; letter-spacing: .24em; opacity: .7; }

.postmark {
  position: absolute;
  top: 34px;
  right: 18px;
  width: 200px;
  fill: none;
  stroke: rgba(28, 28, 32, .55);
  stroke-width: 1.6;
  opacity: 0;
  transform: scale(1.35) rotate(-14deg);
  transition: opacity .25s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.postmark text { fill: rgba(28, 28, 32, .62); stroke: none; font-family: var(--font); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; }
.postmark .pm-date { font-size: 12px; letter-spacing: .06em; }
.is-stamped .postmark { opacity: 1; transform: scale(1) rotate(-14deg); }

.pc-to { display: grid; }
.pc-to__line {
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(30, 30, 30, .2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.pc-to__label { margin-bottom: 2px; }

.pc-front {
  position: relative;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  transform: rotateY(180deg);
  background: radial-gradient(120% 95% at 22% 12%, #FFFFFF 0%, #ECECE9 52%, #D8D8D3 100%);
}
.pc-front__small { font-family: var(--hand); font-size: 36px; color: var(--ink-2); }
.pc-front__big { width: clamp(200px, 52vw, 440px); height: auto; aspect-ratio: 1176 / 241; color: var(--ink); }
.pc-front__dots { display: flex; gap: 10px; margin-top: 22px; }
.pc-front__dots span { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pc-front__mark {
  position: absolute;
  right: -6%; bottom: -14%;
  width: 46%; height: auto;
  aspect-ratio: 239 / 215;
  color: rgba(0, 0, 0, .05);
}

.postcard.is-flipped { transform: rotateY(180deg); }
.postcard.is-sent { transform: translateY(-70px) rotateY(180deg) rotateZ(5deg) scale(.86); opacity: 0; }

.pc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.pc-error { min-height: 20px; font-size: 14px; color: #A3361B; }
.pc-privacy { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.pc-privacy a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pc-error:empty { min-height: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 26px 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #F4F4F1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .55);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .6); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { transition: transform .4s var(--ease); }
.btn:active { transform: translateY(0) scale(.98); }

.pc-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 460px;
  margin-top: 8px;
  padding: 48px 0 8px;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  animation: rise .9s var(--ease);
}
.pc-done[hidden] { display: none; }
.pc-done__title { font-size: 30px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.link-btn { margin-top: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 64px;
  font-size: 16px;
  color: var(--ink-2);
  text-align: center;
}
.direct a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 600;
  transition: background .3s;
}
.chip:hover { background: #fff; }

/* ---------- Footer ---------- */

.foot { padding-top: 20px; overflow: hidden; }
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.foot__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.foot__p { width: 22px; height: 20px; }
.foot__wm { width: auto; height: 17px; aspect-ratio: 1176 / 241; }
.foot__in a:not(.foot__brand):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot__copy { color: var(--ink-3); }
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.foot__legal a { color: var(--ink-2); }
.foot__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pagine legali ---------- */

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: calc(28px + env(safe-area-inset-top));
}
.legal-top a.legal-home { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.legal-top .foot__p { width: 22px; height: 20px; }
.legal-top .foot__wm { height: 17px; width: auto; aspect-ratio: 1176 / 241; }
.legal-back { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.legal-back:hover { color: var(--ink); }
.legal { max-width: 760px; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 110px); }
.legal h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.legal .legal-sub { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.legal h2 { margin-top: 44px; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.legal p + p { margin-top: .8em; }
.legal ul { margin-top: 10px; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; gap: 12px; margin-top: 22px; padding: 22px 0; border-block: 1px solid var(--line); }
.legal .legal-row { display: grid; grid-template-columns: 9em 1fr; gap: 24px; align-items: baseline; }
.legal dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.legal dd { font-size: 16.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .legal .legal-row { grid-template-columns: 1fr; gap: 2px; } }
.foot__giant {
  display: block;
  width: calc(100% - 24px);
  height: auto;
  aspect-ratio: 1176 / 241;
  margin: clamp(32px, 5vw, 64px) auto -1.2%;
  color: #DCDCD8;
}

/* ---------- Scheda progetto ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  clip-path: inset(0px 0px 0px 0px round 0px);
  transition: clip-path .9s var(--ease-io), opacity .45s ease;
}
.sheet[hidden] { display: none; }
.sheet.is-fading { opacity: 0; }

.sh-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sh-bar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 16px; right: 16px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.glass-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 28px -14px rgba(0, 0, 0, .3);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background .3s, transform .4s var(--ease);
}
.glass-btn:hover { background: rgba(255, 255, 255, .8); }
.glass-btn--round { width: 46px; padding: 0; justify-content: center; }

.sh-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--c);
  color: var(--fg);
}
.sh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 30% 10%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.sh-hero__logo {
  position: relative;
  width: calc(var(--s, .56) * min(66vw, 60svh));
  max-height: 46svh;
  object-fit: contain;
  transform: scale(.62) translateY(-2%);
  transition: transform 1.1s var(--ease-io);
}
.sheet.is-open .sh-hero__logo { transform: translateY(-6%); }

.sh-hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin-inline: auto;
  padding-bottom: clamp(28px, 5vh, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.sh-hero__meta > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease) .55s, transform .9s var(--ease) .55s;
}
.sheet.is-open .sh-hero__meta > * { opacity: 1; transform: none; }
.sh-hero__idx { font-size: 13px; font-weight: 600; letter-spacing: .06em; opacity: .7; margin-bottom: 10px; }
.sh-hero__name { font-size: clamp(48px, 8vw, 116px); line-height: .92; letter-spacing: -.05em; }
.sh-hero__tag { margin-top: 14px; max-width: 30ch; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.4; opacity: .88; }
.sh-hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: .8;
}
.sh-hero__cue i {
  position: relative;
  width: 1.5px; height: 40px;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 25%, transparent);
}
.sh-hero__cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--fg);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

.sh-body { padding: clamp(72px, 10vw, 120px) 0 clamp(80px, 10vw, 120px); }
.sh-intro { max-width: 1000px; }
.sh-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sh-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--ac, var(--ink)); }
.sh-kicker--gap { margin-top: clamp(64px, 8vw, 104px); }
.sh-lead { margin-top: 22px; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.038em; font-weight: 600; }

/* i tre atti: problema (bruco), idea (crisalide), valore (farfalla) */
.sh-acts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(52px, 6vw, 84px);
}
.sh-acts li {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 26px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 22px 46px -32px rgba(0, 0, 0, .3);
}
.sh-acts__icon svg { width: 72px; height: 40px; fill: var(--ac, var(--ink)); }
.sh-acts__icon .ic-ink { fill: var(--ink); }
.sh-acts__icon .ic-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.sh-acts__k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sh-acts p { font-size: 17px; line-height: 1.62; color: var(--ink-2); }

.sh-quote { margin: clamp(72px, 9vw, 120px) 0 0; max-width: 1000px; }
.sh-quote p {
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-indent: -.4em;
}
.sh-quote p::before { content: "“"; color: var(--ac, var(--ink)); }
.sh-quote p::after { content: "”"; color: var(--ac, var(--ink)); }
.sh-text p { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.sh-text p + p { margin-top: 1em; }

.sh-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}
.sh-points li { border-top: 1.5px solid var(--ink); padding-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.sh-points span { display: block; margin-bottom: 14px; font-size: 12px; color: var(--ink-3); }

.sh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin-top: 56px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.sh-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sh-meta dd { margin-top: 6px; font-size: 16px; font-weight: 600; }
.sh-meta a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.sh-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(56px, 7vw, 88px);
}
.sh-gallery figure {
  grid-column: span 12;
  aspect-ratio: var(--ratio, 16 / 10);
  overflow: hidden;
  border-radius: 22px;
  background: color-mix(in srgb, var(--c) 10%, #E9E9E6);
}
.sh-gallery .half { grid-column: span 6; }
.sh-gallery .third { grid-column: span 4; border-radius: 20px; }
.sh-gallery .quarter { grid-column: span 3; border-radius: 18px; }
.sh-gallery img { width: 100%; height: 100%; object-fit: cover; }
.sh-gallery .contain img { object-fit: contain; padding: 6%; }

.sh-next {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.sh-next__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sh-next__name { display: block; margin-top: 10px; font-size: clamp(44px, 7vw, 96px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.sh-next__dot {
  width: clamp(56px, 7vw, 88px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--nc);
  color: var(--nfg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
  transition: transform .6s var(--ease);
}
.sh-next__dot svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .sh-next:hover .sh-next__dot { transform: scale(1.12) rotate(-45deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .sh-points, .sh-acts, .offer, .forms { grid-template-columns: 1fr; }
  .forms__shape { order: -1; width: min(56%, 220px); }
  .meta { height: 420vh; }
  .meta__sticky { align-items: start; padding-top: calc(78px + env(safe-area-inset-top)); }
  .meta__grid { grid-template-columns: 1fr; gap: 6px; }
  .meta__art { order: -1; width: min(100%, 56svh); margin-inline: auto; }
  .meta__title { margin: 8px 0 16px; font-size: 30px; }
  .meta__steps { grid-template-areas: "s"; }
  .meta__steps li { grid-area: s; opacity: 0; border: 0; padding-left: 0; }
  .meta__steps li.is-on { opacity: 1; }
  .meta__steps p { font-size: 15px; }
  .meta__bar { margin-top: 18px; }
  .row {
    grid-template-columns: 32px 1fr 40px;
    grid-template-areas: "num name go" ". tag go" ". status go";
    gap: 6px 14px;
    padding: 22px 4px;
  }
  .row__status { justify-self: start; margin-top: 6px; }
}

@media (max-width: 720px) {
  :root { --cw: clamp(88px, 24vw, 128px); }
  .nav__links a { padding: 0 13px; font-size: 14px; }
  .nav__logo { width: 38px; height: 38px; }
  .hero { padding-top: calc(84px + env(safe-area-inset-top)); }
  .hero__kicker { font-size: 12px; }
  .round { width: 42px; height: 42px; }
  .caption__tag { font-size: 13px; }

  .pc-back { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .pc-rule { height: 1px; }
  .pc-write textarea { min-height: 216px; font-size: 25px; }
  .pc-addr { min-height: 210px; }
  .stamp { width: 70px; height: 90px; }
  .stamp__in svg { width: 30px; height: 27px; }
  .postmark { width: 170px; top: 20px; right: 8px; }

  .sh-hero__meta { grid-template-columns: 1fr; }
  .sh-hero__cue { display: none; }
  .sh-gallery { grid-template-columns: repeat(2, 1fr); }
  .sh-gallery figure, .sh-gallery .half { grid-column: span 2; }
  .sh-gallery .third, .sh-gallery .quarter { grid-column: span 1; }
  .sh-text p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { transform: none; }
}
