/* ==========================================================
   Mani Pasticciate — palette dal biglietto da visita
   crema/pesca + petali cipria + inchiostro nero a pennello,
   accenti dai colori che Cristina usa davvero (verde acqua chalk, senape, corallo)
   ========================================================== */
:root {
  --crema: #F6EADB;
  --crema-2: #FBF4EA;
  --pesca: #F1D6C2;
  --cipria: #E8B7B0;
  --rosa: #D98A93;
  --teal: #1F8A8F;
  --teal-scuro: #11494D;
  --senape: #D9A441;
  --corallo: #E0705A;
  --salvia: #8FA88A;
  --oro: #C9A24A;
  --inchiostro: #231F1C;
  --inchiostro-2: #4A403A;

  --f-brush: "Nanum Brush Script", "Segoe Script", cursive;
  --f-serif: "Alegreya", Georgia, serif;
  --f-sans: "Montserrat", system-ui, sans-serif;

  --r: 18px;
  --shadow: 0 18px 40px -18px rgba(60, 35, 20, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 70px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--inchiostro);
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grana carta */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
::selection { background: var(--cipria); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

#paint-trail {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 90;
  mix-blend-mode: multiply;
}

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--f-serif); font-weight: 800; line-height: 1.05; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
.brush { font-family: var(--f-brush); font-weight: 400; letter-spacing: 0; line-height: .9; }
h2 .brush { display: inline-block; font-size: 1.3em; }
.accent { color: var(--teal); }
.accent-light { color: var(--cipria); }
.eyebrow {
  font-family: var(--f-sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--rosa);
  margin: 0 0 1rem;
}
.sub { max-width: 60ch; color: var(--inchiostro-2); font-size: 1.1em; }

.painted { position: relative; white-space: nowrap; display: inline-block; }
.painted svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .42em; overflow: visible; z-index: -1; }
.painted path {
  fill: none; stroke: var(--senape); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.2s var(--ease) .4s;
}
.painted.soft path { stroke: var(--cipria); stroke-width: 12; }
.is-in .painted path, .painted.is-in path { stroke-dashoffset: 0; }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--inchiostro); --fg: var(--crema-2);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  box-shadow: 4px 4px 0 var(--senape);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--corallo); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--corallo); }
.btn:focus-visible, .chip:focus-visible, .swatch:focus-visible, a:focus-visible { outline: 3px dashed var(--teal); outline-offset: 3px; }
.btn-ghost { --bg: transparent; --fg: var(--inchiostro); border-color: var(--inchiostro); box-shadow: 4px 4px 0 var(--cipria); }
.btn-ghost:hover { background: var(--inchiostro); color: var(--crema-2); }
.btn-small { padding: .7em 1.2em; font-size: .82rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1240px, 100% - 24px); z-index: 80;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem .6rem .55rem 1.2rem; border-radius: 999px;
  background: rgba(251, 244, 234, .72);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(35, 31, 28, .08);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: var(--shadow); background: rgba(251, 244, 234, .92); }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-text { font-family: var(--f-brush); font-size: 2rem; line-height: 1; white-space: nowrap; }
.logo-text em { font-style: normal; }
.logo-moon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 64% 40%, var(--crema-2) 0 42%, transparent 43%),
    conic-gradient(from 200deg, #e9c46a, var(--oro), #b8892f, #e9c46a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 0 0 4px rgba(232,183,176,.45);
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { font-family: var(--f-sans); font-size: .85rem; font-weight: 500; text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--corallo); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 110px 0 70px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(246,234,219,.97) 0%, rgba(246,234,219,.9) 38%, rgba(246,234,219,.45) 70%, rgba(246,234,219,.25) 100%),
    linear-gradient(0deg, var(--crema) 0%, transparent 25%);
}
.hero-inner { position: relative; width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); margin-bottom: .35em; }
.hero h1 .big { display: block; font-size: 1.25em; color: var(--teal-scuro); line-height: .85; margin-bottom: .05em; }
.hero h1 .line2 { display: block; }
.lead { font-size: 1.18em; max-width: 34ch; color: var(--inchiostro-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-3d { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 600px; justify-self: center; }
.hero-3d::before {
  content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 40% 35%, var(--cipria), var(--pesca) 60%, transparent 72%);
  filter: blur(4px); opacity: .85;
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; transform: rotate(8deg) scale(1.04); } }
#stage { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#stage:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: cover; border-radius: var(--r); display: none; box-shadow: var(--shadow); }
.no-webgl #stage { display: none; }
.no-webgl .stage-fallback { display: block; }
.stage-tag { position: absolute; top: 6%; right: 2%; display: flex; align-items: flex-end; gap: .2rem; color: var(--corallo); transform: rotate(8deg); pointer-events: none; }
.stage-tag .brush { font-size: 2.6rem; }
.stage-tag svg { width: 54px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1) rotate(30deg); }
.stage-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-family: var(--f-sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--inchiostro-2); background: var(--crema-2); padding: .5em 1em; border-radius: 999px; box-shadow: var(--shadow); }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; border: 2px solid var(--inchiostro); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; border-radius: 4px; background: var(--corallo); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- marquee ---------- */
.marquee { background: var(--inchiostro); color: var(--crema); overflow: hidden; padding: .9rem 0; transform: rotate(-1.2deg); margin: -10px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee span { font-family: var(--f-brush); font-size: 2.2rem; white-space: nowrap; line-height: 1; }
.marquee i { color: var(--senape); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- petali (come il biglietto) ---------- */
.petals { position: relative; }
.petals::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23E8B7B0' fill-opacity='.35'%3E%3Cpath d='M40 60c18-30 52-22 50 6-2 26-34 38-50 28s-12-20 0-34z'/%3E%3Cpath d='M180 30c26-6 44 20 28 40s-46 10-44-10 4-26 16-30z'/%3E%3Cpath d='M150 170c30-12 56 14 40 38s-54 16-56-6 4-26 16-32z'/%3E%3Cpath d='M30 190c14-22 44-16 44 6s-30 34-44 22-8-16 0-28z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23D98A93' stroke-opacity='.25' stroke-width='1.2'%3E%3Cpath d='M48 66c10 4 24 10 34 4'/%3E%3Cpath d='M186 40c8 8 16 14 24 16'/%3E%3Cpath d='M158 180c12 6 22 12 30 22'/%3E%3C/g%3E%3C/svg%3E");
}
.petals > * { position: relative; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--crema-2); }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.manifesto-copy p { color: var(--inchiostro-2); }
.manifesto blockquote {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-left: 5px solid var(--teal);
  font-size: 1.3em; font-style: italic; font-weight: 500; line-height: 1.45; background: var(--crema); border-radius: 0 var(--r) var(--r) 0;
}
.manifesto-img { position: relative; margin: 0; min-height: 520px; }
.polaroid { background: #fffdf8; padding: 12px 12px 0; box-shadow: var(--shadow); border-radius: 4px; width: 78%; transition: transform .6s var(--ease); }
.polaroid img { aspect-ratio: 4/3.4; object-fit: cover; width: 100%; border-radius: 2px; }
.polaroid figcaption { font-size: 1.9rem; text-align: center; padding: .4rem 0 .6rem; color: var(--inchiostro-2); }
.tilt-l { transform: rotate(-5deg); }
.tilt-r { transform: rotate(4deg); }
.polaroid.over { position: absolute; right: 0; bottom: 0; width: 62%; }
.polaroid.over img { aspect-ratio: 3/3.6; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }

/* ---------- cosa ---------- */
.cosa { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-head { margin-bottom: 3rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; perspective: 1200px; }
.card {
  background: var(--crema-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
  will-change: transform; display: flex; flex-direction: column;
}
.card:nth-child(3n+2) { margin-top: 2.5rem; }
.card-img { aspect-ratio: 4/4.2; overflow: hidden; transform: translateZ(30px); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; position: relative; transform: translateZ(20px); }
.card-num { position: absolute; top: -1.8rem; right: 1.2rem; font-family: var(--f-brush); font-size: 3.4rem; color: var(--corallo); line-height: 1; text-shadow: 0 2px 0 var(--crema-2); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0 0 1rem; color: var(--inchiostro-2); font-size: .98em; }
.card-link { font-family: var(--f-sans); font-weight: 600; font-size: .85rem; color: var(--teal); text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- prima & dopo ---------- */
.ba { background: var(--teal-scuro); color: var(--crema); padding: clamp(5rem, 9vw, 8rem) 0; position: relative; overflow: hidden; }
.ba::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(232,183,176,.25), transparent 70%); }
.section-head.light .eyebrow { color: var(--senape); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; position: relative; z-index: 1; }
.ba-item h3 { margin-top: 1.4rem; }
.ba-item p { color: rgba(246,234,219,.82); margin: 0; }
.ba-slider { position: relative; aspect-ratio: 1 / .95; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); background: #ddd; user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; background: var(--crema-2); transform: translateX(-50%); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--senape); color: var(--inchiostro); display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ba-slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 14px; font-family: var(--f-brush); font-size: 2rem; line-height: 1; background: var(--crema-2); color: var(--inchiostro); padding: .15em .5em .05em; border-radius: 8px; pointer-events: none; }
.ba-label.l { left: 14px; transform: rotate(-4deg); }
.ba-label.r { right: 14px; transform: rotate(4deg); background: var(--corallo); color: var(--crema-2); }

/* ---------- opere / galleria ---------- */
.opere { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--crema-2); }
.gallery { columns: 4 260px; column-gap: 1.2rem; width: min(1320px, 100% - 32px); margin-inline: auto; }
.g-item { break-inside: avoid; margin: 0 0 1.2rem; border-radius: var(--r); overflow: hidden; position: relative; box-shadow: var(--shadow); background: #eee; }
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.g-item.tall img { aspect-ratio: 3/4; object-fit: cover; }
.g-item:not(.tall) img { aspect-ratio: 1/1; object-fit: cover; }
.g-item figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; font-family: var(--f-brush); font-size: 1.7rem; line-height: 1;
  color: var(--crema-2); text-shadow: 0 2px 10px rgba(0,0,0,.6);
  transform: translateY(8px); opacity: .0; transition: .5s var(--ease);
}
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,12,.65), transparent 45%); opacity: 0; transition: opacity .5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after, .g-item:hover figcaption { opacity: 1; transform: none; }
.g-item figcaption { z-index: 1; }

/* ---------- mani ---------- */
.hands { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--inchiostro); color: var(--crema); min-height: 80vh; }
.hands-media { position: relative; overflow: hidden; }
.hands-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hands-copy { padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem); align-self: center; }
.hands-copy .eyebrow { color: var(--senape); }
.hands-copy .accent { color: var(--cipria); }
.hands-copy p { color: rgba(246,234,219,.82); }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; font-family: var(--f-sans); font-size: .9rem; }
.checks li { display: flex; gap: .8rem; align-items: center; }
.checks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FBF4EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* ---------- come ---------- */
.come { padding: clamp(5rem, 9vw, 8rem) 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding: 2.4rem 1.6rem 1.8rem; background: var(--crema-2); border-radius: var(--r); box-shadow: var(--shadow); }
.step:nth-child(even) { transform: translateY(1.8rem); }
.step-n { position: absolute; top: -1.6rem; left: 1.2rem; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; font-family: var(--f-brush); font-size: 2.6rem; color: var(--crema-2); background: var(--corallo); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; line-height: 1; }
.step:nth-child(2) .step-n { background: var(--teal); }
.step:nth-child(3) .step-n { background: var(--senape); }
.step:nth-child(4) .step-n { background: var(--rosa); }
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; color: var(--inchiostro-2); font-size: .96em; }
.note { margin-top: 4.5rem; text-align: center; font-size: 1.15em; font-style: italic; }

/* ---------- chi ---------- */
.chi { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--pesca); }
.chi-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.chi-copy p { color: var(--inchiostro-2); }
.signature { font-size: 3.4rem; color: var(--inchiostro); margin-top: 1rem; transform: rotate(-3deg); display: inline-block; }
.chi-img { position: relative; margin: 0; }
.chi-img .polaroid { width: 92%; margin-left: auto; }
.stamp { position: absolute; left: -10px; bottom: -30px; width: 150px; height: 150px; display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.stamp text { font-family: var(--f-sans); font-size: 13.5px; font-weight: 700; letter-spacing: 2.1px; fill: var(--inchiostro); }
.stamp span { width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: var(--crema-2); display: grid; place-items: center; text-align: center; font-family: var(--f-brush); font-size: 1.7rem; line-height: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form ---------- */
.form-section { background: var(--teal-scuro); color: var(--crema); padding: clamp(5rem, 9vw, 8rem) 0; position: relative; overflow: hidden; }
.form-section::before { content: ""; position: absolute; left: -200px; bottom: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(217,164,65,.22), transparent 70%); }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; }
.form-intro { position: sticky; top: 110px; }
.form-intro .eyebrow { color: var(--senape); }
.form-intro p { color: rgba(246,234,219,.85); }
.form-promise { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: .7rem; font-family: var(--f-sans); font-size: .9rem; }
.form-promise span { color: var(--senape); margin-right: .4rem; }
.form-contacts { display: flex; flex-direction: column; gap: .4rem; font-family: var(--f-sans); font-size: .9rem; }
.form-contacts a { color: var(--cipria); }

.custom-form { background: var(--crema-2); color: var(--inchiostro); border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.custom-form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.custom-form legend { font-family: var(--f-serif); font-weight: 700; font-size: 1.2rem; margin-bottom: .8rem; padding: 0; }
.custom-form legend small { font-weight: 400; color: var(--inchiostro-2); font-size: .8em; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  font-family: var(--f-sans); font-size: .86rem; font-weight: 500;
  padding: .62em 1.05em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(35,31,28,.22); background: #fff; color: var(--inchiostro);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--inchiostro); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--inchiostro); color: var(--crema-2); border-color: var(--inchiostro); box-shadow: 3px 3px 0 var(--senape); }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch {
  width: 42px; height: 42px; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; cursor: pointer;
  background: var(--c); border: 2px solid rgba(35,31,28,.15); transition: transform .25s var(--ease), box-shadow .25s;
}
.swatch:hover { transform: scale(1.12) rotate(-6deg); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--crema-2), 0 0 0 5px var(--inchiostro); transform: scale(1.08); }
.swatch-picked { font-size: .9rem; color: var(--inchiostro-2); margin: .7rem 0 0; font-style: italic; }
.custom-form textarea, .custom-form input[type=text], .custom-form select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--inchiostro);
  padding: .85em 1em; border-radius: 14px; border: 1.5px solid rgba(35,31,28,.2); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.custom-form textarea { resize: vertical; min-height: 120px; }
.custom-form textarea:focus, .custom-form input:focus, .custom-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,138,143,.18); }
.custom-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.custom-form label > span { display: block; font-family: var(--f-sans); font-size: .8rem; font-weight: 600; margin-bottom: .4rem; letter-spacing: .02em; }
.toggle { display: flex !important; align-items: center; gap: .7rem; cursor: pointer; padding-bottom: .8em; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle > span:last-child { margin: 0 !important; font-size: .95rem !important; font-family: var(--f-serif) !important; font-weight: 500 !important; }
.toggle-ui { width: 50px; height: 28px; border-radius: 999px; background: rgba(35,31,28,.18); position: relative; transition: background .25s; flex: none; margin: 0 !important; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-ui { background: var(--corallo); }
.toggle input:checked + .toggle-ui::after { transform: translateX(22px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px dashed var(--teal); outline-offset: 3px; }
.btn-wa { --bg: #1f9e55; --fg: #fff; width: 100%; justify-content: center; font-size: 1rem; padding: 1.15em 1.6em; box-shadow: 5px 5px 0 var(--inchiostro); }
.btn-wa:hover { box-shadow: 8px 8px 0 var(--inchiostro); }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.form-error { color: #b8322e; font-family: var(--f-sans); font-size: .88rem; min-height: 1.2em; margin: 0 0 .6rem; }
.form-small { font-size: .8rem; color: var(--inchiostro-2); text-align: center; margin: .9rem 0 0; font-family: var(--f-sans); }

/* ---------- footer ---------- */
.footer { background: var(--crema); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--f-sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rosa); margin: .4rem 0 .8rem; }
.footer p { margin: 0; color: var(--inchiostro-2); font-size: .95rem; line-height: 1.8; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--teal); }
.footer-logo .logo-text { font-size: 2.6rem; }
.footer-claim { font-style: italic; margin-top: .6rem !important; }
.footer-bottom { text-align: center; font-family: var(--f-sans); font-size: .75rem; color: var(--inchiostro-2); margin: 3.5rem auto 0; padding: 1.5rem 16px 0; border-top: 1px solid rgba(35,31,28,.1); width: min(1200px, 100% - 32px); opacity: .75; }

/* ---------- whatsapp flottante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 85;
  display: flex; align-items: center; gap: .5rem;
  background: #1f9e55; color: #fff; text-decoration: none;
  padding: .8rem 1.1rem .8rem .9rem; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 600; font-size: .88rem;
  box-shadow: 0 12px 30px -8px rgba(31,158,85,.6);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px) rotate(-2deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1f9e55; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in { transform: none; }
.step.reveal.is-in:nth-child(even) { transform: translateY(1.8rem); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { gap: 1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n+2) { margin-top: 0; }
  .card:nth-child(even) { margin-top: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
}
@media (max-width: 860px) {
  .nav { gap: .6rem; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--crema-2); border-radius: 22px; padding: .6rem; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .3s var(--ease);
  }
  .nav-links a { padding: .9rem 1rem; font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav .btn-small { margin-left: auto; }
  .burger { display: grid; gap: 6px; place-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--inchiostro); cursor: pointer; flex: none; }
  .burger span { width: 18px; height: 2px; background: var(--crema-2); border-radius: 2px; transition: .3s; }
  .nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding-top: 100px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-veil { background: linear-gradient(180deg, rgba(246,234,219,.94) 0%, rgba(246,234,219,.85) 55%, rgba(246,234,219,.7) 100%); }
  .hero-3d { max-width: 420px; }
  .manifesto-grid, .chi-grid, .form-grid, .hands, .ba-grid { grid-template-columns: 1fr; }
  .manifesto-img { min-height: 420px; order: 2; }
  .hands-media { min-height: 60vw; }
  .form-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo-text { font-size: 1.7rem; }
  .nav .btn-small { display: none; }
  .burger { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even), .step.reveal.is-in:nth-child(even) { transform: none; }
  .custom-form .row { grid-template-columns: 1fr; }
  .manifesto-img { min-height: 340px; }
  .stage-caption { font-size: .62rem; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; }
  .marquee span { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- anteprima riservata (BrandEvolve) ---------- */
html, body { overflow-x: clip; }
main, footer { overflow-x: clip; }
:root { --preview-h: 0px; }
body { padding-bottom: var(--preview-h); }
.preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15rem .5rem;
  padding: .5rem 16px calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(35, 31, 28, .82); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--f-sans); font-size: 12.5px; line-height: 1.35; text-align: center; letter-spacing: .01em;
}
.preview-bar .pb-timer { color: var(--senape); font-weight: 600; }
.wa-float { bottom: calc(18px + var(--preview-h)); }
.expired {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--preview-h));
  background: rgba(246, 234, 219, .9); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.expired[hidden] { display: none; }
.expired-card {
  width: min(460px, 100%); text-align: center; background: var(--crema-2); border-radius: 26px;
  padding: 2.4rem 1.8rem 2rem; box-shadow: 0 40px 80px -30px rgba(60,35,20,.45); border: 1px solid rgba(35,31,28,.08);
}
.expired-card .logo-moon { display: block; width: 46px; height: 46px; margin: 0 auto 1.2rem; }
.expired-card h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
.expired-card p { color: var(--inchiostro-2); margin: 0 0 1.6rem; }
.expired-card .btn-wa { width: auto; }
.is-expired, .is-expired body { overflow: hidden !important; height: 100%; }
@media (max-width: 560px) { .preview-bar .pb-sep { display: none; } }
