﻿/* Versione flashy: blu elettrico, inchiostro, carta; rosa e arancio come luci.
   Layout: hero a tutto schermo, esempi in orizzontale, schede che si impilano. */
:root {
  --blue: #1735F0;
  --blue-deep: #0F22B8;
  --ink: #121318;
  --paper: #EEF0EC;
  --paper-2: #E3E6E0;
  --pink: #FF3D8B;
  --orange: #FF8A3D;
  --muted: #5F646C;
  --line: #CDD1CA;
  --white: #FFFFFF;
  --on-blue-muted: #C7CFFF;

  /* nomi usati dai blocchi del sito principale (modulo, FAQ…) */
  --select: var(--blue);
  --guide: var(--pink);
  --tint: #EEF1FF;
  --tint-2: #DDE3FF;
  --on-ink-muted: #A4A9B0;
  --error: #C2185B;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  font-variation-settings: "opsz" 16; -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--ink); }
:root { accent-color: var(--blue); }

/* ---------- schermata iniziale ---------- */
.loader { display: none; }
html.motion .loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
  background: var(--blue); color: var(--paper);
}
html.motion.motion-ready .loader:not(.done) { display: none; }
.loader.done { pointer-events: none; }
.loader-name { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.loader-count {
  font-size: clamp(120px, 24vw, 360px); line-height: .82; font-weight: 800;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 75;
  font-variant-numeric: tabular-nums;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  color: var(--paper); mix-blend-mode: difference;
  transition: translate .45s var(--ease-out);
}
/* scendendo il menu si nasconde, risalendo torna (così non copre i titoli) */
.nav.nav-hide { translate: 0 -110%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; font-variation-settings: "opsz" 24, "wdth" 85; }
.brand-mark { width: 14px; height: 14px; display: inline-block; border: 2px solid currentColor; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 5px; height: 5px; background: currentColor; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 600; }
.nav nav a.nav-cta { border: 1.5px solid currentColor; padding: 8px 16px; border-radius: 999px; }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--blue); color: var(--white); border: 0; border-radius: 999px;
  padding: 16px 28px; align-self: flex-start;
  transition: background-color .2s ease, color .2s ease, transform 160ms var(--ease-out);
}
.btn:hover { background: var(--ink); }
.btn:active, .nav-cta:active, .slot:active, .day:not(:disabled):active, .cal-nav:not(:disabled):active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #E8916B; color: var(--ink); }
.btn-wide { align-self: stretch; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--pink); color: var(--ink); }
.btn-big { font-size: 20px; padding: 20px 36px; }
.btn-line { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--pink); padding-bottom: 3px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid;
  background: var(--blue); color: var(--paper);
}
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter) 40px;
  display: grid; grid-template-rows: 1fr auto auto; gap: 40px;
}
.hero-title {
  align-self: center; margin: 0;
  font-size: clamp(56px, 11.4vw, 190px); line-height: .92; font-weight: 800;
  letter-spacing: -0.018em; font-variation-settings: "opsz" 96, "wdth" 75;
}
.ht-line { display: block; }
.ht-indent { padding-left: 1.2em; color: var(--ink); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: end; }
.hero-lead { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-blue-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-scroll { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--on-blue-muted); }
.hero-scroll span { width: 1.5px; height: 34px; background: currentColor; transform-origin: top; animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-rows: auto; align-content: start; gap: 36px; padding: 120px var(--gutter) 48px; }
  .hero-title { font-size: clamp(56px, 15vw, 110px); }
  .hero-foot { grid-template-columns: 1fr; }
  .ht-indent { padding-left: .5em; }
}
/* testi nascosti finché GSAP non li fa entrare */
html.motion:not(.motion-ready):not(.motion-go) .hero-title,
html.motion:not(.motion-ready):not(.motion-go) .hero-foot { visibility: hidden; }
.loader.loader-on { display: flex !important; }

.char { display: inline-block; }

/* ---------- ESEMPI: mirino fisso, striscia di foto (reference: ORYZO, Tikka) ----------
   Base (telefono, o animazioni ridotte): schede una sotto l'altra. */
.works { background: var(--ink); color: var(--paper); padding: 84px 0 48px; }
.works-pin { display: grid; gap: 18px; padding: 0 var(--gutter); }
.vf-side { order: -1; }
.vf-side h2 { font-size: clamp(30px, 7vw, 48px); }
.vf-name, .vf-frame, .vf-flash, .vf-meta, .vf-now { display: none; }
.works-note { margin: 0; font-size: 13px; opacity: .7; order: -1; }
.vf-track { display: grid; gap: 18px; }
.vf-card { margin: 0; border-radius: 20px; overflow: hidden; background: var(--pb); color: var(--pi); }
.vf-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vf-card figcaption { padding: 20px 22px 24px; display: grid; gap: 10px; }
.vf-card figcaption b { font-family: var(--pf); font-weight: var(--pw); color: var(--pa); font-size: clamp(38px, 9vw, 64px); line-height: 1; }
.vf-card figcaption span { font-size: 19px; font-weight: 650; line-height: 1.25; }
.vf-card figcaption ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vf-card figcaption li { padding: 7px 13px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); font-size: 14px; font-weight: 600; }

@media all {
  html.motion .works {
    --pb: #2A1814; --pi: #F6EADB; --pa: #E2452B; --pf: "Fraunces", serif; --pw: 800;
    --cw: min(27vw, 390px); --ch: min(60vh, 560px);
    padding: 0; background: var(--pb); color: var(--pi);
    transition: background-color .6s ease, color .6s ease;
  }
  html.motion .works-pin { display: block; position: relative; height: 100svh; overflow: hidden; padding: 0; }

  /* nome gigante con l'eco (Tikka) dietro la striscia */
  html.motion .vf-name { display: grid; place-items: center; position: absolute; inset: 0; margin: 0; z-index: 0; pointer-events: none; padding-bottom: 8vh; }
  html.motion #vf-name {
    position: relative; display: block; white-space: nowrap;
    font-family: var(--pf); font-weight: var(--pw); color: var(--pa);
    font-size: clamp(90px, 14vw, 260px); line-height: 1; letter-spacing: 0;
  }
  html.motion #vf-name::before, html.motion #vf-name::after {
    content: attr(data-text); position: absolute; left: 0; top: 0;
    color: transparent; -webkit-text-stroke: 1.5px var(--pa);
  }
  html.motion #vf-name::before { transform: translateY(.2em); opacity: .55; }
  html.motion #vf-name::after { transform: translateY(.4em); opacity: .25; }

  /* striscia di foto */
  /* centrata con top calcolato (non con translate: GSAP lo perde quando la finestra cambia misura) */
  html.motion .vf-track { position: absolute; left: 0; top: calc(50% - var(--ch) / 2); height: var(--ch); z-index: 1; display: flex; align-items: center; gap: 3vw; will-change: transform; }
  html.motion .vf-card { flex: none; width: var(--cw); height: var(--ch); border-radius: 4px; background: transparent; box-shadow: 0 40px 70px -40px rgba(0,0,0,.7); will-change: transform; position: relative; }
  html.motion .vf-card img { height: 100%; aspect-ratio: auto; }
  html.motion .vf-card figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }

  /* mirino fisso da editor (ORYZO) */
  html.motion .vf-frame {
    display: block; position: absolute; left: 50%; top: 50%; z-index: 3;
    width: calc(var(--cw) + 34px); height: calc(var(--ch) + 34px); translate: -50% -50%;
    border: 1.5px dashed currentColor; pointer-events: none;
  }
  html.motion .vf-frame .h { position: absolute; width: 10px; height: 10px; background: var(--pb); border: 1.5px solid currentColor; transition: background-color .6s ease; }
  html.motion .vf-frame .tl { left: -6px; top: -6px; } html.motion .vf-frame .tr { right: -6px; top: -6px; }
  html.motion .vf-frame .bl { left: -6px; bottom: -6px; } html.motion .vf-frame .br { right: -6px; bottom: -6px; }
  html.motion .vf-tag {
    position: absolute; left: -1.5px; bottom: calc(100% + 10px);
    font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
    background: var(--pi); color: var(--pb); padding: 6px 10px; border-radius: 3px;
    transition: background-color .6s ease, color .6s ease;
  }
  html.motion .vf-flash {
    display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.7), rgba(255,255,255,0) 55%);
    mix-blend-mode: screen;
  }

  /* testi ai lati, piccoli come in ORYZO */
  html.motion .vf-side {
    position: absolute; z-index: 4; left: var(--gutter); top: 96px; bottom: 60px;
    width: min(22vw, 300px); display: flex; flex-direction: column; justify-content: space-between;
  }
  html.motion .vf-side h2 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
  html.motion .vf-now { display: grid; gap: 14px; }
  html.motion .vf-title { margin: 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 650; line-height: 1.3; }
  html.motion .vf-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  html.motion .vf-feats li { padding: 6px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, currentColor 40%, transparent); font-size: 13px; font-weight: 600; }
  html.motion .vf-meta {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
    position: absolute; z-index: 4; right: var(--gutter); top: 90px; bottom: 60px; text-align: right;
  }
  html.motion .vf-count { margin: 0; font-size: clamp(34px, 3.4vw, 52px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 60, "wdth" 75; }
  html.motion .vf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
  html.motion .vf-list li { opacity: .4; transition: opacity .3s ease, transform .35s var(--ease-out); }
  html.motion .vf-list li.on { opacity: 1; transform: translateX(-8px); }
  html.motion .works-note { position: absolute; z-index: 4; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap; }
}

/* ---------- NASTRO ---------- */
.marquee { overflow: hidden; padding-block: clamp(32px, 4vw, 56px); background: var(--paper); }
.mq-band { width: 112%; margin-left: -6%; background: var(--ink); color: var(--paper); rotate: -2.5deg; padding-block: clamp(14px, 1.6vw, 22px); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { margin: 0; display: flex; align-items: center; flex: none; gap: clamp(22px, 2.6vw, 44px); padding-right: clamp(22px, 2.6vw, 44px); font-size: clamp(52px, 8.4vw, 136px); line-height: 1; font-weight: 800; letter-spacing: -0.012em; font-variation-settings: "opsz" 96, "wdth" 75; white-space: nowrap; }
.mq-out { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.mq-star { flex: none; width: clamp(26px, 3vw, 46px); height: auto; fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; }

/* ---------- blocchi comuni ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter) 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
h2 { margin: 0; font-size: clamp(36px, 5.2vw, 72px); line-height: 1; font-weight: 740; letter-spacing: -0.012em; font-variation-settings: "opsz" 72, "wdth" 76; text-wrap: balance; }
.block-head p { margin: 0; max-width: 46ch; color: var(--muted); }
@media (max-width: 760px) { .block-head { grid-template-columns: 1fr; } }

/* ---------- METODO: schede che si impilano ---------- */
.method { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gutter) 0; }
.method-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.method-head p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .method-head { grid-template-columns: 1fr; } }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card {
  position: sticky; top: calc(90px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px clamp(28px, 4vw, 64px);
  padding: clamp(26px, 3vw, 46px) clamp(28px, 4vw, 60px);
  background: var(--cb); color: var(--ci);
  border-radius: 28px; transform-origin: 50% 0;
  box-shadow: 0 -20px 50px -30px rgba(0,0,0,.35);
}
.card:nth-child(1) { --i: 0; } .card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; }
.card:nth-child(4) { border: 1.5px solid var(--ink); }
.card-n {
  align-self: center;
  min-width: 1.1ch; text-align: center;
  font-size: clamp(110px, 12vw, 190px); line-height: .8; font-weight: 800;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 75;
}
.card h3 { margin: 0 0 12px; font-size: clamp(36px, 4.8vw, 78px); line-height: 1; font-weight: 760; letter-spacing: -0.012em; font-variation-settings: "opsz" 60, "wdth" 78; }
.card p { margin: 0; max-width: 36ch; font-size: clamp(19px, 1.9vw, 28px); line-height: 1.35; opacity: .9; }
@media (max-width: 700px) {
  .card { grid-template-columns: 1fr; min-height: 0; top: calc(76px + var(--i, 0) * 14px); }
  .card-n { text-align: left; }
}

/* ---------- CHIUSURA ---------- */
.finale {
  margin-top: clamp(64px, 8vw, 112px);
  background: var(--blue); color: var(--paper);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; overflow: hidden;
}
.finale-line {
  margin: 0; font-size: clamp(52px, 9.6vw, 170px); line-height: .94; font-weight: 800;
  letter-spacing: -0.018em; font-variation-settings: "opsz" 96, "wdth" 75; text-wrap: balance;
}
.finale .btn { align-self: center; background: var(--paper); color: var(--ink); }
.finale .btn:hover { background: var(--pink); }

.foot {
  background: var(--blue); color: var(--on-blue-muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px var(--gutter) 36px; font-size: 15px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.foot p { margin: 0; display: inline-flex; align-items: center; gap: 10px; }


/* ================= blocchi comuni dal sito principale ================= */
/* (rimossi: vecchi blocchi Esigenze, Metodo a fascia e Prenotazione, non più nel sito) */

/* ---------- FAQ ---------- */
.faq-layout { max-width: 820px; margin: 0 auto; }
.faq-side { text-align: center; margin-bottom: 36px; }
.faq-side p { margin: 14px auto 0; color: var(--muted); }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative;
  font-size: clamp(19px, 2vw, 23px); font-weight: 650; letter-spacing: -0.01em;
  transition: color .2s;
}
.faq summary:hover { color: var(--select); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform 200ms var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq details p { margin: 0 0 26px; max-width: 60ch; color: var(--muted); }


/* ---------- ritocchi della versione flashy (dopo i blocchi comuni) ---------- */
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #E8916B; color: var(--ink); }
.finale .btn { background: var(--paper); color: var(--ink); }
.finale .btn:hover { background: var(--pink); color: var(--ink); }
.brief { background: var(--blue); }
.brief .btn-light:hover { background: var(--pink); color: var(--ink); }
.needs label:has(input:checked) { background: var(--tint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-property: color, background-color, border-color, opacity !important; }
  .mq-band { rotate: 0deg; }
  .card { position: relative; top: 0; }
}
/* ================================================================
   TESTI PIÙ GRANDI E SLIDE PIÙ GRANDI (ritocco finale)
   ================================================================ */
body { font-size: 18px; }
.nav nav a { font-size: 16px; }
.hero-scroll { font-size: 15px; }
.hero-lead { font-size: clamp(18px, 1.6vw, 22px); }

/* slide: base (telefono) */
.vf-card figcaption li { font-size: 15px; }
.works-note { font-size: 14px; }

@media all {
  html.motion .works { --cw: min(34vw, 540px); --ch: min(72vh, 700px); }
  html.motion .vf-side { width: min(25vw, 350px); top: 92px; bottom: 52px; }
  html.motion .vf-side h2 { font-size: clamp(30px, 3vw, 46px); }
  html.motion .vf-title { font-size: clamp(20px, 1.75vw, 28px); line-height: 1.25; }
  html.motion .vf-feats li { font-size: 15px; padding: 7px 14px; }
  html.motion .vf-count { font-size: clamp(46px, 4.4vw, 70px); }
  html.motion .vf-list { font-size: 17px; gap: 6px; }
  html.motion .vf-tag { font-size: 15px; padding: 7px 11px; }
  html.motion .works-note { font-size: 14px; bottom: 18px; }
  html.motion #vf-name { font-size: clamp(100px, 15vw, 290px); }
}

/* blocchi: niente sotto i 15-16px */
.needs b { font-size: 20px; }
.needs label span { font-size: 16.5px; }
.brief h3 { font-size: 24px; }
.brief-row > span { font-size: 14px; }
.brief li, .brief-row strong { font-size: 18px; }
.brief-empty { font-size: 16px; }
.facts li { font-size: 16px; }
.panel-h { font-size: 22px; }
.pn { font-size: 15px; width: 32px; height: 32px; }
.cal-head h4 { font-size: 20px; }
.cal-week span { font-size: 14px; }
.day { font-size: 17px; }
.cal-note, .empty { font-size: 15px; }
.mini-h, .field label { font-size: 16px; }
.slot, .mode span { font-size: 16px; }
.field input, .field textarea { font-size: 17px; }
.summary { font-size: 17px; }
.form-error { font-size: 16px; }
.faq details p { font-size: 18px; }
.foot { font-size: 16px; }

/* mirino: compare solo quando la foto è centrata (classe "on" dallo script) */
@media all {
  html.motion .vf-frame { opacity: 0; scale: 1.06; transition: opacity .25s ease, scale .4s var(--ease-out); }
  html.motion .vf-frame.on { opacity: 1; scale: 1; }
}

/* ---------- mirino elegante: angoli a L, etichetta con puntino, misure ---------- */
@media all {
  html.motion .vf-frame {
    width: calc(var(--cw) + 40px); height: calc(var(--ch) + 40px);
    border: 1px solid color-mix(in srgb, var(--pa) 30%, transparent);
    border-radius: 10px;
    color: var(--pa);
  }
  html.motion .vf-frame .c {
    position: absolute; width: 42px; height: 42px;
    border: 3px solid var(--pa);
    transition: translate .5s var(--ease-out), border-color .6s ease;
  }
  html.motion .vf-frame .c.tl { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; translate: -16px -16px; }
  html.motion .vf-frame .c.tr { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; translate: 16px -16px; }
  html.motion .vf-frame .c.bl { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; translate: -16px 16px; }
  html.motion .vf-frame .c.br { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; translate: 16px 16px; }
  html.motion .vf-frame.on .c { translate: 0 0; }

  html.motion .vf-tag {
    left: 50%; translate: -50% 0; bottom: calc(100% + 16px);
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--pa); color: var(--pb);
    padding: 8px 15px 8px 12px; border-radius: 999px;
    font-size: 15px; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 10px 24px -12px rgba(0,0,0,.5);
  }
  html.motion .vf-tag::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    animation: rec 1.4s ease-in-out infinite;
  }
  @keyframes rec { 50% { opacity: .2; } }

  html.motion .vf-size {
    position: absolute; right: 2px; top: calc(100% + 14px);
    font-size: 14px; font-weight: 700; color: var(--pa);
    font-variant-numeric: tabular-nums; letter-spacing: .02em;
  }
}

/* ---------- mirino + striscia anche su telefono (schermo verticale) ---------- */
@media (max-width: 860px) {
  html.motion .works { --cw: min(68vw, 320px); --ch: min(46svh, 400px); }
  html.motion .vf-track { top: calc(48% - var(--ch) / 2); gap: 7vw; }
  html.motion .vf-frame { top: 48%; width: calc(var(--cw) + 26px); height: calc(var(--ch) + 26px); }
  html.motion .vf-frame .c { width: 26px; height: 26px; border-width: 2.5px; }
  html.motion .vf-tag { bottom: auto; top: calc(100% + 12px); font-size: 14px; padding: 6px 12px 6px 10px; }
  html.motion .vf-size, html.motion .vf-list { display: none; }
  html.motion .vf-name { padding-bottom: 10vh; }
  html.motion #vf-name { font-size: 24vw; }
  html.motion .vf-side { left: var(--gutter); right: var(--gutter); width: auto; top: 74px; bottom: 20px; }
  html.motion .vf-side h2 { font-size: 22px; max-width: calc(100% - 84px); }
  html.motion .vf-now { gap: 10px; }
  html.motion .vf-title { font-size: 17px; }
  html.motion .vf-feats li { font-size: 14px; padding: 5px 11px; }
  html.motion .vf-meta { top: 70px; bottom: auto; }
  html.motion .vf-count { font-size: 34px; }
  html.motion .works-note { left: var(--gutter); top: 128px; bottom: auto; translate: none; font-size: 12px; }
  /* telefono: si sfoglia col dito (lo scroll verticale resta alla pagina) */
  /* foto un po' più strette e più vicine: quelle accanto spuntano ai lati */
  html.motion .works { --cw: min(64vw, 300px); }
  html.motion .vf-track { gap: 4vw; }
  html.motion .works-pin { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  html.motion .works-pin.dragging { cursor: grabbing; }
  html.motion .vf-card img { pointer-events: none; }
  html.motion .vf-swipe {
    display: inline-flex; position: absolute; right: 0; top: calc(100% + 14px);
    align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--cream);
    opacity: .85; transition: opacity .4s ease;
  }
  html.motion .vf-swipe b { display: inline-block; animation: vf-nudge 1.4s var(--ease-out) infinite; }
  html.motion .vf-swipe.gone { opacity: 0; }
}
.vf-swipe { display: none; }
@keyframes vf-nudge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(6px); } }
/* onda che parte dal punto toccato/cliccato nella parte alta */
.tap-wave {
  position: absolute; z-index: 0; pointer-events: none;
  width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .75);
  background: radial-gradient(circle, rgba(255, 61, 139, .35), rgba(255, 61, 139, 0) 65%);
  animation: tap-wave .9s var(--ease-out) forwards;
}
@keyframes tap-wave { from { transform: scale(.1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-wave { display: none; } }
.hero-inner { position: relative; z-index: 1; }

/* slide: scurimento leggero (solo opacità) e bianco e nero a scatti morbidi */
@media all {
  html.motion .vf-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: #0d0d0d; opacity: var(--dim, 0);
  }
  html.motion .vf-card img { transition: filter .45s ease; }
  html.motion .vf-card.dim img { filter: grayscale(1); }
}
/* ---------- caricamento: luci che si radunano attorno al numero,
     poi un cerchio si apre dal centro e mostra la prima pagina ---------- */
html.motion .loader {
  background: #121318; padding: 0; display: block; overflow: hidden; color: #F4EEE2;
  --hole: -100px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 90px));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 90px));
}
html.motion .loader.loader-on { display: block !important; }
.ld-light {
  position: absolute; left: 50%; top: 50%; width: 56vmin; aspect-ratio: 1; margin: -28vmin 0 0 -28vmin;
  border-radius: 50%; mix-blend-mode: screen; will-change: transform, opacity;
  background: radial-gradient(circle, var(--c) 0%, color-mix(in srgb, var(--c) 0%, transparent) 70%);
}
.ld-light.l1 { --c: rgba(217, 101, 59, .95); }
.ld-light.l2 { --c: rgba(108, 123, 217, .95); }
.ld-light.l3 { --c: rgba(201, 168, 106, .9); }
.ld-grain {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
  animation: grain-pos .6s steps(1) infinite;
}
.ld-center { position: absolute; inset: 0; display: grid; place-items: center; }
.loader-count {
  display: block; font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  font-variation-settings: normal; font-variant-numeric: tabular-nums;
  font-size: clamp(120px, 19vw, 260px); line-height: 1; letter-spacing: -0.02em;
  color: #F4EEE2; -webkit-text-fill-color: #F4EEE2; background: none;
  text-shadow: 0 0 60px rgba(0, 0, 0, .25); filter: none; will-change: transform, opacity, filter;
  padding: 0 .08em;
}
@media (max-width: 600px) { .loader-count { font-size: 34vw; } .ld-light { width: 80vmin; margin: -40vmin 0 0 -40vmin; } }

/* ---------- contatti nella chiusura blu ---------- */
/* stato "dal vivo": cambia con l'ora (lo scrive lo script) */
.finale-sub {
  margin: -6px 0 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: var(--paper);
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 650;
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DFF9A; box-shadow: 0 0 0 0 rgba(61, 255, 154, .6); animation: live 1.8s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 255, 154, 0); } }

/* due "adesivi" grandi, storti, che si raddrizzano quando li punti */
.contact {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px); width: min(100%, 1040px); margin-top: 18px; perspective: 900px;
}
.contact-btn {
  --tilt: -3deg;
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: clamp(16px, 1.8vw, 26px); row-gap: 10px;
  padding: clamp(22px, 2.6vw, 38px) clamp(22px, 2.8vw, 40px);
  border-radius: 28px; text-align: left; text-decoration: none; color: var(--ink);
  background: var(--pink); rotate: var(--tilt);
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 30px 50px -30px rgba(6, 12, 70, .8);
  transition: rotate .45s var(--ease-out), translate .45s var(--ease-out), box-shadow .45s var(--ease-out), scale .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact-btn.c-mail { --tilt: 2.5deg; background: #F5E10A; }
html:not(.motion) .contact-btn:active { scale: .96; }
.contact-btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; }
@media (hover: hover) {
  .contact-btn:hover { rotate: 0deg; translate: 0 -8px; box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 46px 60px -30px rgba(6, 12, 70, .9); }
}

.c-ico {
  position: relative; grid-row: span 2; display: grid; place-items: center;
  width: clamp(64px, 6.4vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--ink);
}
.c-ico svg { width: 46%; height: 46%; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.c-call .c-ico svg { transform-origin: 50% 60%; }
.c-mail .letter { fill: var(--paper); stroke: none; transition: translate .4s var(--ease-out); }
.c-mail .ico-mail rect:nth-child(2) { fill: var(--ink); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; pointer-events: none; }

.c-txt { display: grid; gap: 4px; min-width: 0; }
.contact-btn b {
  font-size: clamp(38px, 4.6vw, 72px); font-weight: 800; line-height: .95; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.contact-btn small { font-size: clamp(16px, 1.3vw, 19px); font-weight: 650; color: rgba(18, 19, 24, .78); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.c-hint {
  position: absolute; top: -14px; right: 22px;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 700; rotate: 4deg; white-space: nowrap;
}
.c-mail .c-hint { rotate: -4deg; }

/* bollino che gira, tra i due adesivi */
.c-badge {
  position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%;
  width: clamp(96px, 9vw, 128px); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none;
}
.c-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 14s linear infinite; }
.c-badge text { fill: var(--paper); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.c-badge span {
  width: 54%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--blue); font-size: clamp(15px, 1.3vw, 18px); font-weight: 800; rotate: -12deg;
}
@keyframes badge-spin { to { rotate: 360deg; } }

/* animazioni delle icone (al passaggio su PC, al tocco su telefono: classe "go") */
.contact-btn:hover .ico-phone, .contact-btn.go .ico-phone { animation: phone-ring .9s ease-in-out; }
.contact-btn:hover .ring, .contact-btn.go .ring { animation: ring-out 1s var(--ease-out); }
.contact-btn:hover .ring.r2, .contact-btn.go .ring.r2 { animation-delay: .25s; }
.contact-btn:hover .letter, .contact-btn.go .letter { translate: 0 -6px; }
@keyframes phone-ring {
  0%, 100% { rotate: 0deg; } 10%, 30%, 50% { rotate: -16deg; } 20%, 40%, 60% { rotate: 16deg; } 70% { rotate: 0deg; }
}
@keyframes ring-out { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 1.7; } }

/* effetto adesivo: riflesso che segue il cursore e angolo che si piega.
   --p = quanto è piegato l'angolo (lo muove lo script, morbido).
   L'adesivo viene "tagliato" lungo la piega (si vede il blu sotto) e il lembo piegato
   è il triangolo riflesso, con ombra e sfumatura come la carta. */
.contact-btn {
  --mx: 50%; --my: 50%; --p: 0px;
  clip-path: polygon(-80px -80px, calc(100% + 80px) -80px, calc(100% + 80px) calc(100% - var(--p) - 80px),
                     calc(100% - var(--p) - 80px) calc(100% + 80px), -80px calc(100% + 80px));
}
.c-peel {
  position: absolute; right: 0; bottom: 0; width: var(--p); height: var(--p); pointer-events: none;
  filter: drop-shadow(-10px -10px 16px rgba(6, 12, 70, .38)) drop-shadow(-2px -2px 2px rgba(6, 12, 70, .22));
}
.c-peel i {
  position: absolute; inset: 0; display: block;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top-left-radius: min(26px, 45%);
  /* punta chiara, più scuro vicino alla piega: sembra carta che si arrotola */
  background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 18%, #d6d9e3 36%, #aeb2c4 46%, #8a8fa6 50%);
}
.contact-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%);
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: soft-light;
}
.contact-btn.is-on::before { opacity: 1; }
.contact-btn b .char { display: inline-block; }

/* solo icona + parola, centrate nell'adesivo */
.contact-btn { grid-template-columns: auto auto; justify-content: center; }
.contact-btn .c-ico { grid-row: auto; }

/* coriandoli quando copi il numero o apri l'email */
.c-confetti { position: fixed; z-index: 60; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 26px; }
  .contact-btn { --tilt: -1.8deg; }
  .contact-btn.c-mail { --tilt: 1.6deg; }
  .c-badge { left: -8px; top: 50%; translate: 0 -50%; width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-btn { rotate: none; transition: none; }
  .live-dot, .c-badge svg, .ico-phone, .ring { animation: none !important; }
}

/* ================================================================
   ADESIVI CONTATTI v2: bordo bianco da adesivo fustellato,
   parola in Fraunces corsivo "morbido", icone illustrate
   ================================================================ */
.contact-btn {
  border: 5px solid #fff;
  padding: clamp(22px, 2.4vw, 34px) clamp(28px, 3.4vw, 54px);
  column-gap: clamp(14px, 1.6vw, 26px);
  min-height: clamp(128px, 12vw, 176px);
}
.contact-btn b {
  /* Bagel Fat One: lettere grosse e tonde, sembrano gonfiate come un adesivo in rilievo */
  font-family: "Bagel Fat One", "Bricolage Grotesque", sans-serif; font-style: normal; font-weight: 400;
  font-variation-settings: normal;
  font-size: clamp(46px, 4.6vw, 78px); line-height: 1; letter-spacing: 0;
  white-space: nowrap; /* la parola non va mai a capo */
  padding: .04em .04em .08em; /* spazio per la coda del corsivo, uguale a destra e sinistra */
}
.contact-btn .c-txt { justify-items: center; }
/* il blocco icona + parola sta esattamente al centro dell'adesivo, in orizzontale e in verticale */
.contact-btn { justify-content: center; align-content: center; justify-items: center; }
.contact-btn .c-ico, .contact-btn .c-txt { align-self: center; }

/* icona: niente cerchio nero, un piccolo disegno storto come un adesivo nell'adesivo */
.contact-btn .c-ico {
  background: none; border-radius: 0;
  width: clamp(68px, 6.2vw, 100px); rotate: -8deg;
}
.contact-btn.c-mail .c-ico { rotate: 7deg; }
.contact-btn .c-ico svg.ico {
  width: 100%; height: 100%; overflow: visible;
  stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.ico .shade { fill: var(--ink); stroke: none; }
.ico-phone .body { fill: #F5E10A; stroke-width: 1.6; } /* il tratto è scalato x1.9 */
.ico-phone .gloss { fill: none; stroke: #fff; stroke-width: 3; opacity: .9; }
.ico-phone .waves path { fill: none; stroke-width: 3.6; }
.ico-phone .handset { transform-box: fill-box; transform-origin: 40% 60%; }
.ico-mail .back { fill: #C42466; }
.ico-mail .letter { transition: translate .45s var(--ease-out); }
.ico-mail .letter rect { fill: #fff; stroke-width: 2.6; }
.ico-mail .letter path { fill: none; stroke: var(--blue); stroke-width: 2.8; }
.ico-mail .pocket { fill: var(--pink); }
.ico-mail .seal circle { fill: #FF8A3D; stroke-width: 2.6; }
.ico-mail .seal path { fill: #fff; stroke: none; }
.ico-mail .seal { transform-box: fill-box; transform-origin: center; }

/* movimento: al passaggio (PC) o al tocco (telefono, classe "go") */
.contact-btn:hover .ico-phone, .contact-btn.go .ico-phone { animation: none; }
/* onde sempre visibili: riempiono il lato destro dell'icona, così il disegno sta in equilibrio */
.ico-phone .waves path { opacity: 1; }
.contact-btn:hover .handset, .contact-btn.go .handset { animation: handset-ring .9s ease-in-out; }
.contact-btn:hover .waves .w1, .contact-btn.go .waves .w1 { animation: wave-blink .9s ease-out; }
.contact-btn:hover .waves .w2, .contact-btn.go .waves .w2 { animation: wave-blink .9s ease-out .12s; }
@keyframes handset-ring {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  10%, 30%, 50% { rotate: -14deg; translate: 0 -3px; }
  20%, 40%, 60% { rotate: 14deg; translate: 0 -3px; }
  75% { rotate: 0deg; translate: 0 0; }
}
@keyframes wave-blink { 0%, 100% { opacity: 1; } 25% { opacity: .15; } 50% { opacity: 1; } 75% { opacity: .15; } }
.contact-btn:hover .ico-mail .letter, .contact-btn.go .ico-mail .letter { translate: 0 -12px; }
.contact-btn:hover .ico-mail .seal, .contact-btn.go .ico-mail .seal { animation: seal-pop .6s var(--ease-out); }
@keyframes seal-pop { 40% { scale: 1.35; rotate: -12deg; } 100% { scale: 1; rotate: 0deg; } }

@media (max-width: 860px) {
  .contact-btn { padding: 20px 24px; column-gap: 14px; min-height: 0; }
  .contact-btn b { font-size: clamp(44px, 12.5vw, 66px); }
  .contact-btn .c-ico { width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .handset, .waves path, .seal { animation: none !important; }
  .ico-phone .waves path { opacity: 1; }
}

/* ================================================================
   PAROLA AL CENTRO ESATTO DELL'ADESIVO
   L'icona non occupa più spazio accanto alla parola: è un adesivino
   attaccato sull'angolo in alto a sinistra. Così "Chiamami" e
   "Scrivimi" sono centrati solo rispetto al box.
   ================================================================ */
.contact-btn {
  grid-template-columns: 1fr; justify-items: center; align-items: center;
  text-align: center;
}
.contact-btn .c-txt { grid-column: 1; grid-row: 1; justify-self: center; }
.contact-btn .c-ico {
  position: absolute; z-index: 2; left: -22px; top: -34px;
  width: clamp(62px, 5.4vw, 88px);
}
.contact-btn.c-mail .c-ico { left: auto; right: auto; left: -18px; top: -30px; }
.contact-btn .c-ico svg.ico { filter: drop-shadow(0 6px 10px rgba(6, 12, 70, .35)); }

@media (max-width: 860px) {
  .contact { gap: 46px; margin-top: 34px; }
  .contact-btn { padding: 26px 24px; }
  .contact-btn .c-ico { width: 58px; left: -10px; top: -28px; }
  .contact-btn.c-mail .c-ico { left: -8px; top: -26px; }
  .c-badge { left: 50%; translate: -50% -50%; width: 78px; }
}

/* ================================================================
   ULTIMA PAGINA "NOTTE": fondo nero, adesivi lime e rosa
   ================================================================ */
.finale, .foot { background: var(--ink); }
.foot { color: #9A9DA8; border-top: 1px solid rgba(255, 255, 255, .08); }
.finale-sub { background: rgba(255, 255, 255, .08); }

.contact-btn.c-call { background: #C6FF3D; }
.contact-btn.c-mail { background: var(--pink); }
.contact-btn { box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 30px 50px -28px rgba(0, 0, 0, .9); }
@media (hover: hover) {
  .contact-btn.c-call:hover { box-shadow: 0 46px 60px -28px rgba(0,0,0,1), 0 0 70px -18px rgba(198, 255, 61, .55); }
  .contact-btn.c-mail:hover { box-shadow: 0 46px 60px -28px rgba(0,0,0,1), 0 0 70px -18px rgba(255, 61, 139, .55); }
}

/* icone: colori che si staccano dal nuovo fondo dell'adesivo */
.ico-phone .body { fill: var(--pink); }
.ico-mail .back { fill: #C9B800; }
.ico-mail .pocket { fill: #F5E10A; }
.contact-btn .c-ico svg.ico { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }

/* bollino */
.c-badge span { background: #C6FF3D; color: var(--ink); }

/* ================================================================
   ADESIVI "LUCE SFUMATA CON GRANA" (scelta di Cristian)
   Tre macchie di luce morbide che si spostano piano + grana di pellicola.
   Si muovono con transform (leggero anche sul telefono); al passaggio
   o al tocco lo script le fa accelerare.
   ================================================================ */
.contact-btn { isolation: isolate; border: 1.5px solid rgba(244, 238, 226, .5); color: #F4EEE2; }
.contact-btn.c-call { background: #3B1C14; --b1: #D9653B; --b2: #C9A86A; --b3: #7A2E3A; }
.contact-btn.c-mail { background: #14203B; --b1: #6C7BD9; --b2: #D9A6C9; --b3: #2E4A7A; }

.c-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.c-bg .bl {
  position: absolute; border-radius: 50%; will-change: transform;
  animation: blob-a 10s ease-in-out infinite;
}
.c-bg .b1 { width: 85%; aspect-ratio: 1; left: -22%; top: -55%; background: radial-gradient(circle, var(--b1) 0%, color-mix(in srgb, var(--b1) 0%, transparent) 68%); }
.c-bg .b2 { width: 90%; aspect-ratio: 1; right: -28%; bottom: -70%; background: radial-gradient(circle, var(--b2) 0%, color-mix(in srgb, var(--b2) 0%, transparent) 68%); animation-name: blob-b; animation-duration: 12s; }
.c-bg .b3 { width: 55%; aspect-ratio: 1; left: 42%; top: -40%; background: radial-gradient(circle, var(--b3) 0%, color-mix(in srgb, var(--b3) 0%, transparent) 70%); animation-name: blob-c; animation-duration: 14s; }
@keyframes blob-a { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(22%, 18%); } 66% { transform: translate(-6%, 30%); } }
@keyframes blob-b { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-24%, -16%); } 66% { transform: translate(-8%, -30%); } }
@keyframes blob-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40%, 45%); } }

/* grana: un'immagine di rumore fatta una volta sola, che salta a scatti come la pellicola */
.c-bg .grain {
  position: absolute; inset: -50%; opacity: .3; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); }
}

/* scritta: corsivo elegante color crema */
.contact-btn b {
  font-family: "Instrument Serif", "Fraunces", serif; font-style: italic; font-weight: 400;
  font-variation-settings: normal; color: #F4EEE2;
  font-size: clamp(58px, 5.8vw, 100px); line-height: 1; letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
  padding: .02em .1em .1em;
}
@media (max-width: 860px) { .contact-btn b { font-size: clamp(54px, 15vw, 80px); } }

/* etichette, icone, bollino e aloni nei colori della luce */
.c-hint { background: #F4EEE2; color: #121318; }
.ico-phone .body { fill: #F4EEE2; }
.ico-phone .gloss { stroke: #D9653B; }
.ico-mail .back { fill: #C9A86A; }
.ico-mail .pocket { fill: #F4EEE2; }
.ico-mail .seal circle { fill: #6C7BD9; }
.c-badge span { background: #F4EEE2; color: #121318; }
.contact-btn:focus-visible { outline-color: #F4EEE2; }
@media (hover: hover) {
  .contact-btn.c-call:hover { box-shadow: 0 46px 60px -28px rgba(0,0,0,1), 0 0 80px -18px rgba(217, 101, 59, .6); }
  .contact-btn.c-mail:hover { box-shadow: 0 46px 60px -28px rgba(0,0,0,1), 0 0 80px -18px rgba(108, 123, 217, .6); }
}
@media (prefers-reduced-motion: reduce) { .c-bg .bl, .c-bg .grain { animation: none; } }

/* angolo che si piega tolto: niente più ritaglio dell'adesivo (così anche l'alone non viene tagliato) */
.contact-btn { clip-path: none; }

/* ================================================================
   PRIMA PAGINA come l'ultima: fondo nero, luci calde e fredde, grana
   ================================================================ */
.hero { background: var(--ink); }
.hero-lead, .hero-scroll { color: rgba(244, 238, 226, .74); }
.hero::after {
  content: ""; position: absolute; inset: -50%; z-index: 0; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(5) infinite;
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* telefono: niente onde (lampeggiando sembravano lineette che sfarfallano); squilla solo la cornetta */
.ico-phone .waves { display: none; }

/* bollino: disco scuro con bordo sottile, testo distribuito su tutto il giro, "ciao!" in corsivo */
.c-badge { width: clamp(104px, 9vw, 130px); }
.c-badge .b-disc { fill: #121318; stroke: rgba(244, 238, 226, .45); stroke-width: 1; }
.c-badge text { fill: #F4EEE2; font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.c-badge span {
  width: 50%; rotate: 0deg; background: #F4EEE2; color: #121318;
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  font-size: clamp(19px, 1.6vw, 24px); line-height: 1; padding-bottom: .08em;
}
@media (max-width: 860px) { .c-badge { width: 92px; } .c-badge span { font-size: 18px; } }

/* ================================================================
   FIX "lineette che lampeggiano" negli adesivi
   1) La grana prima si spostava con transform a mezzi pixel: tra una
      piastrella di rumore e l'altra comparivano righine sottili.
      Ora salta con background-position a pixel interi (niente righe).
   2) Lo sfondo animato ora combacia col bordo arrotondato, senza
      spiragli del colore di base agli angoli quando l'adesivo si inclina.
   ================================================================ */
.c-bg { inset: 0; border-radius: 26.5px; backface-visibility: hidden; transform: translateZ(0); }
.c-bg .grain {
  inset: 0; transform: none; background-size: 180px 180px; background-repeat: repeat;
  animation: grain-pos .6s steps(1) infinite;
}
@keyframes grain-pos {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 41px -29px; }
  60% { background-position: -19px 47px; } 80% { background-position: 53px 11px; } 100% { background-position: 0 0; }
}
.hero::after { inset: 0; transform: none; background-size: 180px 180px; animation: grain-pos .6s steps(1) infinite; }
.contact-btn { background-clip: padding-box; }
@media (prefers-reduced-motion: reduce) { .c-bg .grain, .hero::after { animation: none; } }

/* ================================================================
   TITOLO "Basta siti / tutti / uguali." centrato nella pagina
   ================================================================ */
.hero-inner { justify-items: center; }
.hero-title {
  justify-self: center; align-self: center; text-align: center;
  font-size: clamp(64px, 12.5vw, 220px); line-height: .9;
}
.ht-line { padding-left: 0; }
/* riga di mezzo: corsivo elegante color crema, lo stesso di "Chiamami" e "Scrivimi" */
.ht-mid {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  font-variation-settings: normal; color: #F4EEE2; letter-spacing: -0.01em;
  font-size: 1.08em; line-height: .95; padding: 0 .06em;
}
/* sotto il titolo: testo e pulsanti centrati anche loro */
.hero-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; width: 100%; }
.hero-lead { margin-inline: auto; }
.hero-actions { justify-content: center; }
@media (max-width: 860px) { .hero-title { font-size: clamp(64px, 21vw, 150px); } }

/* ================================================================
   STILE UNICO: tutto il sito scuro ed elegante come inizio e fine
   (fondo nero, testo crema, luci calde/fredde, corsivo Instrument Serif)
   ================================================================ */
:root { --cream: #F4EEE2; --cream-muted: #A9ABB3; --muted: var(--cream-muted); --line: rgba(244, 238, 226, .14); }
body { background: var(--ink); color: var(--cream); }
h2 { color: var(--cream); }
.block-head p, .method-head p, .faq-side p { color: var(--cream-muted); }
::selection { background: #D9653B; color: var(--ink); }
:focus-visible { outline-color: var(--cream); }

/* scritta che scorre: nastro crema su fondo nero */
.marquee { background: var(--ink); }
.mq-band { background: var(--cream); color: var(--ink); }
.mq-out { -webkit-text-stroke-color: var(--ink); }
.mq-star { stroke: #D9653B; }

/* passi: schede con la luce sfumata e un velo di grana */
.card { background: var(--cb); box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .8); overflow: hidden; isolation: isolate; }
.card:nth-child(4) { border: 0; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
}
.card-n {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-variation-settings: normal;
  font-size: clamp(120px, 13vw, 210px); line-height: .85; padding-right: .06em;
}

/* domande frequenti su fondo scuro */
.faq { border-top-color: rgba(244, 238, 226, .5); }
.faq summary:hover { color: #E8916B; }
.faq summary::after { border-color: var(--line); }
.faq details[open] summary::after { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.faq details p { color: var(--cream-muted); }
/* negli esempi il titolo prende il colore di ogni sito (alcuni hanno il fondo chiaro) */
.works h2 { color: inherit; }
.btn-line { border-bottom-color: #D9653B; }

/* sezione fuori schermo (classe messa dallo script): tutte le animazioni CSS in pausa */
.is-off, .is-off::before, .is-off::after,
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
.foot-links { display: inline-flex; gap: 24px; }

/* ================================================================
   ESEMPI nello stile del sito: fondo nero fisso, il colore di ogni
   attività diventa una luce sfumata dietro le foto. Mirino semplice
   color crema, nome dell'attività pulito (senza eco) nel suo font.
   ================================================================ */
@property --pg { syntax: "<color>"; inherits: true; initial-value: #E2452B; }
@property --pn { syntax: "<color>"; inherits: true; initial-value: #EE6A4F; }
@media all {
  html.motion .works {
    background: var(--ink); color: var(--cream);
    transition: --pg .8s ease, --pn .6s ease;
  }
  html.motion .vf-glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(42% 58% at 50% 52%, color-mix(in srgb, var(--pg) 62%, transparent), transparent 72%),
      radial-gradient(70% 80% at 50% 60%, color-mix(in srgb, var(--pg) 18%, transparent), transparent 80%);
  }
  html.motion .vf-glow::after {
    content: ""; position: absolute; inset: 0; opacity: .2; mix-blend-mode: overlay;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
  }

  /* nome: niente eco, colore dell'attività, un po' più discreto */
  html.motion #vf-name { color: var(--pn); opacity: .92; }
  html.motion #vf-name::before, html.motion #vf-name::after { content: none; }

  /* mirino: solo quattro angoli sottili color crema */
  html.motion .vf-frame { border: 0; color: var(--cream); }
  html.motion .vf-frame .c { border-color: rgba(244, 238, 226, .9); border-width: 1.5px; width: 34px; height: 34px; }
  html.motion .vf-frame .c.tl { border-top-left-radius: 10px; }
  html.motion .vf-frame .c.tr { border-top-right-radius: 10px; }
  html.motion .vf-frame .c.bl { border-bottom-left-radius: 10px; }
  html.motion .vf-frame .c.br { border-bottom-right-radius: 10px; }
  html.motion .vf-size { display: none; }
  /* etichetta: solo il tipo di attività, in corsivo, senza puntino */
  html.motion .vf-tag {
    background: none; box-shadow: none; padding: 0; color: var(--cream);
    font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: 0;
  }
  html.motion .vf-tag::before { content: none; }

  /* testi ai lati e contatore in crema, elenco con la linea sottile */
  html.motion .vf-feats li { border-color: rgba(244, 238, 226, .3); }
  html.motion .works-note { color: var(--cream-muted); opacity: 1; }
}
@media (max-width: 860px) {
  html.motion .vf-frame .c { width: 24px; height: 24px; }
  html.motion .vf-tag { font-size: 22px; }
}

/* mirino più curato: angoli a L più morbidi, nel colore della luce dietro,
   con un leggero bagliore. Anche l'etichetta (Pizzeria…) prende quel colore. */
@media all {
  html.motion .vf-frame .c {
    width: 44px; height: 44px; border-width: 2.5px;
    border-color: var(--pn);
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--pg) 75%, transparent));
  }
  html.motion .vf-frame .c.tl { border-top-left-radius: 18px; }
  html.motion .vf-frame .c.tr { border-top-right-radius: 18px; }
  html.motion .vf-frame .c.bl { border-bottom-left-radius: 18px; }
  html.motion .vf-frame .c.br { border-bottom-right-radius: 18px; }
  html.motion .vf-tag {
    color: var(--pn);
    text-shadow: 0 0 18px color-mix(in srgb, var(--pg) 65%, transparent);
  }
  html.motion .vf-swipe b { color: var(--pn); }
}
@media (max-width: 860px) {
  html.motion .vf-frame .c { width: 30px; height: 30px; border-width: 2px; }
  html.motion .vf-frame .c.tl { border-top-left-radius: 14px; }
  html.motion .vf-frame .c.tr { border-top-right-radius: 14px; }
  html.motion .vf-frame .c.bl { border-bottom-left-radius: 14px; }
  html.motion .vf-frame .c.br { border-bottom-right-radius: 14px; }
}

/* ================================================================
   MARCHIO "Crick": pallina di luce (stessi colori del sito) con una
   C e un puntino, il "click". Nome in corsivo elegante.
   ================================================================ */
.brand { gap: 10px; }
.brand-ico { width: 30px; height: 30px; flex: none; display: block; transition: rotate .6s var(--ease-out), scale .3s var(--ease-out); }
.brand:hover .brand-ico { rotate: -25deg; scale: 1.08; }
.brand-name {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-variation-settings: normal;
  font-size: 30px; line-height: 1; letter-spacing: -0.01em; padding-bottom: .06em;
}
.foot .brand-ico { width: 22px; height: 22px; }

/* menu: niente più fusione "difference" (tingeva il logo); colori veri + velo scuro quando si scorre */
.nav { mix-blend-mode: normal; color: var(--cream); transition: translate .45s var(--ease-out), background-color .3s ease, backdrop-filter .3s ease; }
.nav.nav-solid { background: rgba(18, 19, 24, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ================================================================
   MENU: le voci si accendono
   - Esempi / Come lavoro / Domande: il testo si illumina (bagliore caldo)
     e sotto nasce una linea di luce arancio-blu dal punto del cursore.
   - Contattami: dentro la pillola si accende la luce sfumata del sito.
   Su telefono: stesso effetto al tocco (classe "lit" dallo script).
   ================================================================ */
.nav nav a { position: relative; transition: color .3s ease, text-shadow .4s ease; }
.nav nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #D9653B, #F6C29E 50%, #6C7BD9);
  box-shadow: 0 0 12px rgba(217, 101, 59, .7);
  transform: scaleX(0); transform-origin: var(--ox, 50%) 50%;
  transition: transform .45s var(--ease-out);
}
.nav nav a:not(.nav-cta):hover, .nav nav a:not(.nav-cta).lit, .nav nav a:not(.nav-cta):focus-visible {
  color: #FFF6EA; text-shadow: 0 0 14px rgba(246, 194, 158, .75), 0 0 2px rgba(255, 246, 234, .6);
}
.nav nav a:not(.nav-cta):hover::after, .nav nav a:not(.nav-cta).lit::after, .nav nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav nav a.nav-cta {
  overflow: hidden; isolation: isolate; border-color: rgba(244, 238, 226, .7);
  transition: color .3s ease, border-color .3s ease, box-shadow .4s ease, scale .15s var(--ease-out);
}
.nav nav a.nav-cta::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(60% 80% at var(--ox, 30%) 30%, #F6C29E 0%, transparent 60%),
    radial-gradient(70% 90% at 80% 80%, #6C7BD9 0%, transparent 65%),
    #D9653B;
  opacity: 0; scale: .6; transition: opacity .35s ease, scale .5s var(--ease-out);
}
.nav nav a.nav-cta:hover, .nav nav a.nav-cta.lit, .nav nav a.nav-cta:focus-visible {
  color: #121318; border-color: transparent; box-shadow: 0 0 26px -4px rgba(217, 101, 59, .75);
}
.nav nav a.nav-cta:hover::before, .nav nav a.nav-cta.lit::before, .nav nav a.nav-cta:focus-visible::before { opacity: 1; scale: 1; }
.nav nav a.nav-cta:active { scale: .95; }
@media (prefers-reduced-motion: reduce) { .nav nav a::after, .nav nav a::before { transition: none; } }

/* titolo più grande: cresce con la larghezza ma non supera l'altezza dello schermo */
.hero-title { font-size: clamp(72px, min(15.5vw, 25vh), 290px); }
@media (max-width: 860px) { .hero-title { font-size: clamp(64px, 23.5vw, 170px); } }

/* ================================================================
   "COME LAVORIAMO INSIEME" centrato, come "Domande frequenti".
   Sotto: due voci, "Tu" e "Io", in corsivo elegante (calda e fredda),
   e una pillola con il puntino verde: "Sito pronto in circa una settimana".
   ================================================================ */
.method-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); }
.method-head h2 { font-size: clamp(44px, 6.4vw, 96px); }
.faq-side h2 { font-size: clamp(44px, 6.4vw, 96px); }
.method-lead {
  margin: 0; max-width: 30ch; color: var(--cream); text-wrap: balance;
  font-size: clamp(21px, 2.1vw, 30px); line-height: 1.35; font-weight: 500;
}
.ml-who {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-variation-settings: normal;
  font-size: 1.45em; line-height: 0; padding-right: .06em;
}
.ml-you { color: #E8916B; }
.ml-me { color: #8E9BEB; }
.method-pill {
  margin: 4px 0 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(244, 238, 226, .08); border: 1px solid rgba(244, 238, 226, .14);
  color: var(--cream); font-size: clamp(15px, 1.2vw, 17px); font-weight: 650;
}
/* titoli giocabili: la mano che indica che si può interagire */
.play-title { cursor: default; }
.method-head .method-lead, .method-head .method-pill { color: var(--cream); }

/* ================================================================
   FLUIDITÀ (scroll verso la fine)
   Le cose più pesanti per il browser erano:
   1) la sfocatura dietro il menu (backdrop-filter): ricalcolata a ogni
      pixel di scroll su tutto quello che passa sotto;
   2) la grana con "mix-blend-mode: overlay": costringe il browser a
      ridisegnare insieme tutto ciò che c'è sotto, a ogni fotogramma;
   3) ombre enormi e riflessi con fusione sugli adesivi.
   Qui le sostituisco con versioni quasi identiche a vedersi ma leggere.
   ================================================================ */
.nav.nav-solid { background: rgba(18, 19, 24, .88); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* grana: semplice velo semitrasparente, senza fusione */
.hero::after, .c-bg .grain, .card::after, html.motion .vf-glow::after, .ld-grain {
  mix-blend-mode: normal; opacity: .07;
}

/* adesivi: ombra più corta, riflesso senza fusione */
.contact-btn { box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .9); }
@media (hover: hover) {
  .contact-btn.c-call:hover { box-shadow: 0 30px 44px -24px rgba(0, 0, 0, .95), 0 0 50px -16px rgba(217, 101, 59, .55); }
  .contact-btn.c-mail:hover { box-shadow: 0 30px 44px -24px rgba(0, 0, 0, .95), 0 0 50px -16px rgba(108, 123, 217, .55); }
}
.contact-btn::before { mix-blend-mode: normal; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%); }
.c-bg .bl { will-change: transform; contain: strict; }
.c-badge svg { will-change: transform; }

/* schede dei passi: stanno sulla scheda video mentre si rimpiccioliscono con lo scroll */
html.motion .card { will-change: transform; }
.card { box-shadow: 0 -16px 40px -26px rgba(0, 0, 0, .8); }

/* ================================================================
   "tutti" che si accende con le luci
   Il testo è grigio con fusione "color-dodge": sul nero resta nero
   (quasi invisibile), dove dietro passa una pallina di luce le lettere
   prendono il suo colore e brillano più forte.
   Perché la fusione veda le palline, il contenitore del titolo non deve
   fare da "livello separato": tolgo il suo z-index e metto la grana dietro.
   ================================================================ */
.hero-inner { z-index: auto; }
.hero::after { z-index: -1; }
.ht-mid { color: #A3A3A3; mix-blend-mode: color-dodge; text-shadow: none; }

/* menu: torna la sfocatura (piaceva a Cristian, soprattutto sopra le foto degli esempi).
   È solo la striscia del menu, quindi il costo resta basso; raggio un po' più piccolo di prima. */
.nav.nav-solid { background: rgba(18, 19, 24, .5); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }

/* controllo finale: titolo grande ma con testo e pulsanti dentro la prima schermata */
.hero-title { font-size: clamp(72px, min(13.4vw, 19.5vh), 250px); }
.hero-lead { max-width: 62ch; }
/* PC: la busta di "Scrivimi" più a destra, così non tocca il bollino "ciao!" */
@media (min-width: 861px) { .contact-btn.c-mail .c-ico { left: 70px; } }
/* telefono: il titolo torna grande (la regola sopra per PC lo rimpiccioliva anche qui) */
@media (max-width: 860px) { .hero-title { font-size: clamp(64px, 23.5vw, 170px); } .finale-sub { text-align: left; } }

/* ================================================================
   CARICAMENTO "Crick che cambia font": la parola Crick ha le lettere
   che saltano tra i font e i colori del sito (lo stesso gioco del
   titolo), poi si fermano nel corsivo del logo e lo schermo sale via.
   ================================================================ */
html.motion .loader { -webkit-mask-image: none; mask-image: none; background: var(--ink); will-change: transform; }
.ld-word {
  display: inline-flex; align-items: baseline; justify-content: center;
  font-size: clamp(96px, 17vw, 240px); line-height: 1; color: var(--cream); letter-spacing: -0.01em;
  will-change: transform;
}
.ld-word span { display: inline-block; text-align: center; min-width: .42em; }
@media (max-width: 600px) { .ld-word { font-size: 26vw; } }

/* caricamento: lettere un po' più vicine + grana più presente e un leggero alone al centro (stesso nero) */
.ld-word span { min-width: 0; margin-inline: -0.012em; }
.ld-word { letter-spacing: -0.02em; }
html.motion .loader { background: radial-gradient(ellipse 70% 60% at 50% 50%, #1C1D25 0%, #121318 75%); }
.ld-grain { opacity: .16; background-size: 140px 140px; }

/* caricamento: la parola "irradia" luce. Più chiaro vicino a Crick, sempre più scuro verso i bordi. */
html.motion .loader { background: radial-gradient(ellipse 75% 70% at 50% 50%, #1A1B22 0%, #121318 45%, #08090C 100%); }
.ld-glow {
  position: absolute; left: 50%; top: 50%; width: 130vmax; aspect-ratio: 1; margin: -65vmax 0 0 -65vmax;
  border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(244, 238, 226, .2) 0%, rgba(244, 238, 226, .09) 14%, rgba(244, 238, 226, .03) 30%, rgba(244, 238, 226, 0) 48%);
}
.ld-word { text-shadow: 0 0 28px rgba(244, 238, 226, .28), 0 0 90px rgba(244, 238, 226, .14); }

/* "Come lavoriamo insieme" su telefono: schede centrate come il titolo sopra.
   Numero grande in corsivo, una lineetta, titolo deciso e testo morbido.
   Tutte alte uguali e col contenuto al centro: niente vuoti in fondo. */
@media (max-width: 700px) {
  .stack { gap: 26px; }
  .card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 0;
    min-height: 330px; padding: 30px 26px 34px; border-radius: 26px;
    top: calc(76px + var(--i, 0) * 14px);
  }
  .card > div { display: flex; flex-direction: column; align-items: center; }
  .card-n {
    font-size: 150px; line-height: .74; min-width: 0; padding: 0 .08em 0 0; margin: 0 0 18px;
    text-align: center; letter-spacing: -0.03em;
    text-shadow: 0 0 46px rgba(255, 255, 255, .22);
  }
  .card:nth-child(4) .card-n { text-shadow: none; }
  /* numeri in corsivo: la base della cifra sta più a sinistra del centro.
     Sposto ogni cifra (misurata sul font) così la sua base cade esattamente sopra la lineetta. */
  .card .card-n { padding: 0; }
  .card:nth-child(1) .card-n { translate: .059em 0; }
  .card:nth-child(2) .card-n { translate: .059em 0; }
  .card:nth-child(3) .card-n { translate: .083em 0; }
  .card:nth-child(4) .card-n { translate: -.015em 0; }
  .card h3 {
    font-size: 31px; line-height: 1.02; margin: 0 0 12px; font-weight: 720;
    letter-spacing: -0.015em; font-variation-settings: "opsz" 48, "wdth" 82;
    text-wrap: balance;
  }
  /* lineetta tra numero e titolo */
  .card h3::before {
    content: ""; display: block; width: 32px; height: 2px; margin: 0 auto 16px;
    background: currentColor; opacity: .45; border-radius: 2px;
  }
  .card p { font-size: 16.5px; line-height: 1.45; max-width: 29ch; opacity: .82; text-wrap: pretty; }
}
/* PC: foto degli esempi un filo più basse, così l'etichetta sopra (Pizzeria…) non finisce sotto il menu */
@media (min-width: 861px) {
  html.motion .works { --ch: min(68vh, 680px); }
}
/* "Come lavoriamo insieme" su PC: la scheda è larga, quindi il contenuto si stende su tutta la riga.
   Numero | titolo | descrizione (separata da una linea sottile). Niente mezza scheda vuota a destra. */
@media (min-width: 1000px) {
  .card {
    grid-template-columns: auto minmax(0, 1fr); align-items: center;
    column-gap: clamp(32px, 3.6vw, 60px);
    padding: clamp(28px, 2.6vw, 40px) clamp(36px, 4vw, 64px);
  }
  .card > div {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center; column-gap: clamp(28px, 3.2vw, 56px);
  }
  .card h3 { margin: 0; font-size: clamp(40px, 4.2vw, 72px); text-wrap: balance; }
  .card p {
    max-width: none; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.45; text-wrap: pretty;
    padding-left: clamp(28px, 3.2vw, 56px); border-left: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  }
}
/* PC con finestra media: resta numero + testo, ma la descrizione usa tutta la larghezza */
@media (min-width: 701px) and (max-width: 999px) {
  .card p { max-width: none; }
}
/* i titoli animati non vanno più a capo: se una parola si allarga per un attimo, non crea scroll laterale */
.method, #domande, .finale { overflow-x: clip; }
@media (max-width: 360px) {
  .card { min-height: 310px; padding: 26px 20px 30px; }
  .card-n { font-size: 128px; }
  .card h3 { font-size: 27px; }
  .card p { font-size: 15.5px; }
}

/* ================================================================
   TERZO TASTO: WhatsApp. Sta sopra, largo quanto i due sotto,
   con la stessa luce sfumata con grana ma nei verdi.
   Sotto restano Chiamami e Scrivimi con il bollino in mezzo.
   ================================================================ */
/* 4 tasti: griglia 2x2 su PC (bollino "ciao!" nell'incrocio al centro), colonna su telefono.
   Inclinazioni a scacchiera: ogni adesivo pende al contrario dei vicini. */
.contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 38px); perspective: 900px; }
.contact-btn.c-wa { --tilt: -2.2deg; background: #0E2A1F; --b1: #2FBF71; --b2: #D7E6A6; --b3: #155C45; }
.contact-btn.c-ig { --tilt: 2.2deg; background: #2A1230; --b1: #D9467A; --b2: #F2A65A; --b3: #6A3FB5; }
.contact-btn.c-call { --tilt: 2deg; }
.contact-btn.c-mail { --tilt: -2deg; }
@media (hover: hover) {
  .contact-btn.c-ig:hover { box-shadow: 0 30px 44px -24px rgba(0, 0, 0, .95), 0 0 50px -16px rgba(217, 70, 122, .6); }
}
.contact-btn.c-ig .c-hint { rotate: -3deg; }
/* icona Instagram: macchina fotografica crema, obiettivo rosa, flash arancio */
.ico-cam .body { fill: #F4EEE2; stroke-width: 3; }
.ico-cam .lens { fill: #D9467A; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.ico-cam .flash { fill: #F2A65A; stroke: none; transform-box: fill-box; transform-origin: center; }
.contact-btn:hover .ico-cam .lens, .contact-btn.go .ico-cam .lens { animation: cam-snap .5s var(--ease-out); }
.contact-btn:hover .ico-cam .flash, .contact-btn.go .ico-cam .flash { animation: cam-flash .6s ease-out; }
@keyframes cam-snap { 35% { scale: .72; } 100% { scale: 1; } }
@keyframes cam-flash { 0%, 100% { scale: 1; fill: #F2A65A; } 30% { scale: 1.9; fill: #FFF6D8; } }
@media (prefers-reduced-motion: reduce) { .ico-cam .lens, .ico-cam .flash { animation: none !important; } }
/* il bollino sta dove si incontrano i quattro tasti: le icone in alto a sinistra non gli finiscono sotto */
.contact .c-badge { left: 50%; top: 50%; translate: -50% -50%; }
@media (min-width: 861px) {
  /* tutte e quattro le icone nello stesso punto: angolo in alto a sinistra */
  .contact-btn.c-wa .c-ico, .contact-btn.c-ig .c-ico,
  .contact-btn.c-call .c-ico, .contact-btn.c-mail .c-ico { left: -22px; top: -34px; }
}
/* il bollino "ciao!" è stato tolto */
.c-badge { display: none; }

/* disposizione A (scelta di Cristian): 2x2 su PC, una colonna su telefono, tutti dritti e ordinati */
.contact { gap: clamp(22px, 2.6vw, 34px); }
.contact-btn, .contact-btn.c-wa, .contact-btn.c-ig, .contact-btn.c-call, .contact-btn.c-mail { --tilt: 0deg; }
@media (max-width: 860px) {
  .contact { gap: 34px; }
  .contact-btn, .contact-btn.c-wa, .contact-btn.c-ig, .contact-btn.c-call, .contact-btn.c-mail { --tilt: 0deg; }
}
@media (hover: hover) {
  .contact-btn.c-wa:hover { box-shadow: 0 30px 44px -24px rgba(0, 0, 0, .95), 0 0 50px -16px rgba(47, 191, 113, .6); }
}
.contact-btn.c-wa .c-hint { rotate: 3deg; }
/* icona: fumetto crema con i tre puntini verdi di "sta scrivendo…" */
.ico-chat .body { fill: #F4EEE2; stroke-width: 3; }
.ico-chat .dots circle { fill: #2FBF71; stroke: none; }
.ico-chat .dots circle { transform-box: fill-box; transform-origin: center; }
.contact-btn:hover .ico-chat .dots circle, .contact-btn.go .ico-chat .dots circle { animation: chat-dot .9s ease-in-out; }
.contact-btn:hover .ico-chat .dots circle:nth-child(2), .contact-btn.go .ico-chat .dots circle:nth-child(2) { animation-delay: .12s; }
.contact-btn:hover .ico-chat .dots circle:nth-child(3), .contact-btn.go .ico-chat .dots circle:nth-child(3) { animation-delay: .24s; }
@keyframes chat-dot { 0%, 100% { translate: 0 0; } 30% { translate: 0 -6px; } 60% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ico-chat .dots circle { animation: none !important; } }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .contact-btn.c-mail .c-ico { left: -10px; top: -28px; }
}
