/* ==========================================================
   Manuel Di Chiara, portfolio
   Concetto: "vetrina accesa". Notte indaco, luce ultravioletta,
   ambra da insegna. Un solo protagonista: il mockup nel hero.
   ========================================================== */
/* Caratteri ospitati sul sito (nessuna richiesta a Google) */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0D0B1E;
  --night-2: #151231;
  --night-3: #1D1942;
  --line: #2C2757;
  --text: #EEEBFF;
  --muted: #A19DCB;
  --violet: #7B61FF;
  --violet-soft: #AD9EFF;
  --amber: #FFB547;

  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --pad: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
}
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* righe generate da SplitText: la maschera nasconde il testo che sale */
.line-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* Prima che GSAP parta, il hero è nascosto per evitare lo sfarfallio.
   Se GSAP non carica, script.js toglie la classe "js" e tutto resta visibile. */
.js .hero__title, .js [data-hero-side], .js [data-stage] { visibility: hidden; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 16px/1 var(--body);
  padding: 18px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--amber);
  color: var(--night);
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(255, 181, 71, .6); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet-soft); }
.btn--small { padding: 12px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled {
  background: rgba(13, 11, 30, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(44, 39, 87, .7);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand__mark { height: 34px; width: auto; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name { height: 19px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--pad) clamp(72px, 10vw, 140px);
}
.hero__title {
  font-size: clamp(46px, 9.4vw, 148px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: .92;
  max-width: 11.5em;
  text-wrap: balance;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 4.7fr) minmax(0, 7.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero__side { padding-top: 8px; }
.hero__lead { color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Selettore esempi */
.switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.switch__label { width: 100%; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.chip {
  position: relative; overflow: hidden;
  font: 600 15px var(--body);
  color: var(--muted);
  background: var(--night-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.chip:hover { color: var(--text); border-color: var(--violet); }
.chip[aria-selected="true"] { color: var(--night); background: var(--text); border-color: var(--text); }
.chip__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--violet); transform-origin: left; transform: scaleX(0); }
.chip[aria-selected="true"] .chip__bar.run { animation: fill var(--dur, 4.5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Stage: la vetrina ---------- */
.stage { position: relative; padding: 0 5% 48px 0; perspective: 1800px; }
.stage__light {
  position: absolute; inset: -12% -8% 0 -8%;
  background:
    radial-gradient(50% 45% at 45% 45%, rgba(123, 97, 255, .42), transparent 70%),
    radial-gradient(30% 30% at 85% 80%, rgba(255, 181, 71, .2), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  opacity: var(--glow, .7);
}
.mock {
  --m-bg: #F7EFE2; --m-ink: #2A1A12; --m-accent: #C8361F; --m-soft: #EEDFC8; --m-font: "Fraunces", serif;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--night-3);
  box-shadow:
    0 0 0 1px rgba(173, 158, 255, .28),
    0 50px 90px -30px rgba(0, 0, 0, .7);
  transform-origin: 50% 0%;
  will-change: transform;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1A1737; border-bottom: 1px solid var(--line); }
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #3A3468; }
.mock__url { margin-left: 12px; flex: 1; font-size: 12.5px; color: var(--muted); background: var(--night-2); border-radius: 8px; padding: 5px 12px; }
.mock__page {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--m-bg); color: var(--m-ink);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}

/* sito dimostrativo */
.site { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4.5% 5.5%; animation: siteIn .7s var(--ease) both; }
.site.out { animation: siteOut .35s var(--ease) both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes siteOut { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
.site__nav { display: flex; align-items: center; justify-content: space-between; font-size: clamp(9px, .9vw, 12.5px); }
.site__logo { font-family: var(--m-font); font-weight: 700; font-size: clamp(12px, 1.3vw, 18px); letter-spacing: -.01em; }
.site__links { display: flex; gap: 1.4em; opacity: .7; }
.site__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 6%; align-items: center; margin-top: 2%; }
.site__badge { display: inline-block; font-size: clamp(8px, .8vw, 11.5px); font-weight: 700; padding: .45em .9em; border-radius: 99px; background: var(--m-soft); margin-bottom: .9em; }
.site__h { font-family: var(--m-font); font-weight: 700; font-size: clamp(18px, 2.5vw, 38px); line-height: 1.04; letter-spacing: -.02em; }
.site__p { font-size: clamp(9px, .9vw, 13px); opacity: .75; margin-top: .8em; line-height: 1.45; max-width: 26em; }
.site__btns { display: flex; gap: .6em; margin-top: 1.3em; font-size: clamp(8.5px, .85vw, 12.5px); font-weight: 700; }
.site__btns span { white-space: nowrap; padding: .8em 1.3em; border-radius: var(--m-radius, 99px); background: var(--m-accent); color: var(--m-on-accent, #fff); }
.site__btns span + span { background: transparent; color: var(--m-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.site__art { position: relative; height: 90%; border-radius: var(--m-art-radius, 18px); overflow: hidden; background: var(--m-art); }
.site__art::after { content: ""; position: absolute; inset: 0; background: var(--m-art-overlay, none); }
.site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 3%; }
.site__card { background: var(--m-soft); border-radius: 10px; padding: .9em 1em; font-size: clamp(8px, .8vw, 11.5px); }
.site__card b { display: block; font-family: var(--m-font); font-size: 1.25em; margin-bottom: .15em; }
.site__card span { opacity: .7; }

.phone {
  position: absolute; right: 0; bottom: 0;
  width: 25%; aspect-ratio: 9 / 19;
  border-radius: 26px;
  background: #0A0918;
  padding: 7px;
  box-shadow: 0 0 0 1px rgba(173, 158, 255, .32), 0 30px 60px -10px rgba(0, 0, 0, .75);
  will-change: transform;
}
.phone__notch { position: absolute; top: 12px; left: 50%; width: 30%; height: 10px; transform: translateX(-50%); background: #0A0918; border-radius: 10px; z-index: 2; }
.phone__page { position: relative; height: 100%; border-radius: 20px; overflow: hidden; background: var(--m-bg); color: var(--m-ink); transition: background-color .6s var(--ease); }
.phone .site { padding: 26% 9% 8%; }
.phone .site__logo { font-size: 10px; }
.phone .site__art { height: 34%; flex: none; margin-top: 10%; border-radius: 12px; }
.phone .site__h { font-size: clamp(12px, 1.2vw, 16px); margin-top: 10%; }
.phone .site__btns { font-size: 8px; margin-top: 9%; flex-direction: column; }
.phone .site__btns span { text-align: center; }
.phone .site__mbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8%; border-top: 1px solid color-mix(in srgb, var(--m-ink) 15%, transparent); font-size: 7px; opacity: .7; }
.stage__note { position: absolute; left: 0; bottom: 0; font-size: 13px; color: var(--muted); }

/* ---------- Blocchi generici ---------- */
.block { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--pad) 0; }
.block h2 { font-size: clamp(38px, 6vw, 88px); font-weight: 800; letter-spacing: -.03em; line-height: .95; }
.block__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.block__head p { color: var(--muted); max-width: 26em; padding-bottom: .4em; }

/* ---------- Progetti ---------- */
.projects { display: grid; gap: 20px; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 32px;
  background: var(--night-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .3s;
}
.project:hover { border-color: rgba(123, 97, 255, .6); }
@media (min-width: 1081px) {
  .project:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .project:nth-child(even) .project__shot { order: 2; }
  .project:nth-child(even) .project__info { padding: 8px 0 8px clamp(4px, 1.5vw, 24px); }
}
.project__shot {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border-radius: 20px;
  background: var(--shot, var(--night-3));
}
.project__shot-inner { position: absolute; inset: -8% 0; }
.project__shot img { display: block; width: 100%; height: auto; }
/* la schermata galleggia in una finestra del browser, nei colori del cliente */
.pframe {
  position: absolute; left: 9%; top: 16%; width: 82%;
  border-radius: 12px; overflow: hidden;
  background: #0E1319;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 40px 80px -20px rgba(0, 0, 0, .8),
    0 0 90px -20px rgba(212, 162, 76, .45);
  transform: rotate(-2.5deg);
  transform-origin: 0 0;
  transition: translate .6s var(--ease);
}
/* l'hover usa "translate", separato dal transform che GSAP muove con lo scroll */
.project:hover .pframe { translate: 0 -10px; }
.project:hover .pphone { translate: 0 -16px; }
.pframe--duo { left: 6%; top: 26%; width: 74%; }
.project__ph[hidden] { display: none; }
.pframe--light { background: #F3F6FA; }
.pframe--light .pframe__bar { background: #E6EBF2; border-bottom-color: rgba(0, 0, 0, .06); }
.pframe--light .pframe__bar span { background: #C5CEDB; }
.pframe--light .pframe__bar i { background: #fff; color: #5B6678; }
.pphone {
  position: absolute; right: 6%; top: 12%; width: 25%;
  border-radius: 22px; padding: 6px;
  background: #0A0918; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -12px rgba(0, 0, 0, .75);
  transform: rotate(4deg);
  transition: translate .6s var(--ease);
}
.pphone img { display: block; width: 100%; height: auto; border-radius: 17px; }
.pphone--scroll { aspect-ratio: 9 / 19; }
.pphone__screen { height: 100%; border-radius: 17px; background: #0E1319; }
.pframe__screen { aspect-ratio: 16 / 10; background: #0E1319; }
.pframe--light .pframe__screen { background: #F3F6FA; }
.pphone--light .pphone__screen { background: #F3F6FA; }
.scrollbox { overflow: hidden; }
.scrollbox img { display: block; width: 100%; height: auto; border-radius: 0; transform: translateY(0); transition: transform 1.4s var(--ease); will-change: transform; }
.project:hover .scrollbox img, .project.is-playing .scrollbox img { transform: translateY(var(--dist, 0)); transition: transform var(--dur, 12s) cubic-bezier(.45, 0, .55, 1); }
.project__hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .project:hover .scrollbox img, .project.is-playing .scrollbox img { transform: none; } }
.pframe__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #161D28; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pframe__bar span { width: clamp(6px, .7vw, 9px); height: clamp(6px, .7vw, 9px); border-radius: 50%; background: #333C4C; }
.pframe__bar i { margin-left: 10px; font: 500 clamp(8px, .9vw, 12px) var(--body); font-style: normal; color: #8A93A6; background: #0E1319; border-radius: 6px; padding: 3px 10px; }
.project__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 clamp(64px, 11vw, 170px)/1 var(--display); letter-spacing: -.06em;
  color: rgba(238, 235, 255, .92);
}
.project__info { padding: 8px clamp(4px, 1.5vw, 24px) 8px 0; }
.project__info h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.project__type { color: var(--violet-soft); font-weight: 600; margin-top: 10px; }
.project__desc { color: var(--muted); margin-top: 18px; max-width: 32em; }
.project__tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project__tags li { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: var(--night-3); }
.project__visit { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 700; }
.project__visit svg { transition: transform .35s var(--ease); }
.project:hover .project__visit svg { transform: translate(3px, -3px); }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px);
  border-radius: 32px;
  border: 1.5px dashed var(--line);
}
.next h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; }
.next p { color: var(--muted); margin-top: 8px; }

/* ---------- Servizi: righe, non card ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.service h3 { font-size: clamp(26px, 3vw, 42px); font-weight: 700; letter-spacing: -.03em; }
.service--main h3 { color: var(--amber); }
.service__body > p { color: var(--muted); font-size: 18px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.service--main .ticks li::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230D0B1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.always {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(123, 97, 255, .28), transparent 60%),
    var(--night-2);
  border: 1px solid var(--line);
}
.always h3 { font-size: 22px; margin-bottom: 24px; }
.always ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; color: var(--muted); font-size: 16px; }
.always strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 4px; }

/* ---------- Come lavoro ---------- */
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.steps__line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--violet), var(--amber)); transform-origin: top; transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; align-items: start; }
.step__n {
  position: relative; z-index: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%;
  font: 700 20px var(--display);
  background: var(--night);
  border: 2px solid var(--violet);
  transition: background-color .4s, border-color .4s, color .4s;
}
.js .step__n { border-color: var(--line); color: var(--muted); }
.js .step.is-on .step__n { border-color: var(--violet); color: var(--text); }
.step:last-child .step__n, .js .step:last-child.is-on .step__n { background: var(--amber); border-color: var(--amber); color: var(--night); }
.js .step:last-child:not(.is-on) .step__n { background: var(--night); border-color: var(--line); color: var(--muted); }
.step h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 10px 0 10px; }
.step p { color: var(--muted); max-width: 30em; }

/* ---------- Hero: prova con la tua attività ---------- */
.try { margin-top: 32px; max-width: 30em; }
.try__label { display: block; font-weight: 700; margin-bottom: 10px; }
.try__field { position: relative; }
.try__field input {
  width: 100%;
  font: 600 18px var(--body); color: var(--text);
  background: var(--night-2);
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 16px 18px;
  transition: border-color .25s, box-shadow .25s;
}
.try__field input::placeholder { color: #6F6B9B; font-weight: 500; }
.try__field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 97, 255, .22); }
.try__spark {
  position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.try.is-typing .try__spark { transform: scaleX(1); }
.try__hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.site__logo.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }

/* ---------- Come lavoro: il sito che si costruisce ---------- */
.js .step { opacity: .38; transition: opacity .4s; }
.js .step.is-current { opacity: 1; }
@media (min-width: 1081px) { .step { min-height: 40vh; } .steps { padding-bottom: 12vh; } }

.build-wrap { position: sticky; top: 110px; padding-bottom: 7%; }
.build {
  --b-ink: #13244A; --b-teal: #2E8A7E; --b-cream: #FBF7EF; --b-wire: rgba(173, 158, 255, .5);
  container-type: inline-size;
  position: relative;
  border-radius: 16px;
  background: #1A1737;
  box-shadow: 0 0 0 1px rgba(173, 158, 255, .28), 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(123, 97, 255, .6);
}
.build__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.build__bar > span { width: 9px; height: 9px; border-radius: 50%; background: #3A3468; }
.build__url {
  margin-left: 10px; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  background: var(--night-2); border-radius: 8px; padding: 5px 10px;
  white-space: nowrap; overflow: hidden;
}
.build__lock { flex: none; width: 0; opacity: 0; color: #3DDC97; transition: width .4s, opacity .4s; }
.is-5 .build__lock { width: 11px; opacity: 1; }
.build__live {
  position: relative; font-size: 11px; font-weight: 700; color: #3DDC97;
  padding: 4px 10px 4px 21px; border-radius: 99px; background: rgba(61, 220, 151, .12);
  opacity: 0; transform: scale(.7); transition: opacity .4s, transform .5s var(--ease);
}
.build__live::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #3DDC97; animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); } 100% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }
.is-5 .build__live { opacity: 1; transform: none; }

.build__page {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 0 0 16px 16px;
  background: #18163A;
  transition: background-color .9s var(--ease);
}
.build__page::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(173, 158, 255, .1) 0 1px, transparent 1px 2.6cqw),
    repeating-linear-gradient(90deg, rgba(173, 158, 255, .1) 0 1px, transparent 1px 2.6cqw);
  transition: opacity .9s;
}
.is-3 .build__page { background-color: var(--b-cream); }
.is-3 .build__page::before { opacity: 0; }

/* struttura del sito */
.bp { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4.2cqw 5.2cqw; color: var(--b-ink); opacity: 0; transition: opacity .6s; }
.is-2 .bp { opacity: 1; }
.bp__nav { display: flex; justify-content: space-between; align-items: center; height: 3.2cqw; }
.bp__logo { position: relative; font: 800 2cqw/1 var(--display); letter-spacing: -.02em; }
.bp__links { display: flex; gap: 2cqw; }
.bp__links i { width: 5.5cqw; height: .8cqw; border-radius: 99px; background: rgba(173, 158, 255, .4); transition: background-color .9s; }
.is-3 .bp__links i { background: rgba(19, 36, 74, .2); }
.bp__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4.5cqw; align-items: center; margin-top: 1.5cqw; }
.bp__badge { display: inline-block; min-width: 12cqw; height: 2.6cqw; line-height: 2.6cqw; padding: 0 1.3cqw; margin-bottom: 1.6cqw; border-radius: 99px; border: 1.5px dashed var(--b-wire); font: 700 1.15cqw var(--body); transition: background-color .7s, border-color .7s; }
.is-3 .bp__badge { border-color: transparent; background: #DDF0EC; color: #1F6F65; }
.bp__title { position: relative; font: 800 3.7cqw/1.02 var(--display); letter-spacing: -.035em; }
.bp__text { position: relative; margin-top: 1.4cqw; font-size: 1.4cqw; line-height: 1.45; color: #4B5873; }
.bp__btns { display: flex; gap: 1.2cqw; margin-top: 2.2cqw; }
.bp__btn {
  position: relative; display: inline-grid; place-items: center;
  min-width: 11cqw; height: 4cqw; padding: 0 2cqw;
  border-radius: 99px; border: 1.5px dashed var(--b-wire);
  font: 700 1.35cqw var(--body); color: var(--b-ink);
  transition: background-color .7s, border-color .7s, color .7s;
}
.is-3 .bp__btn { border: 1.5px solid var(--b-ink); }
.is-3 .bp__btn--main { background: var(--b-teal); border-color: var(--b-teal); color: #fff; }
.bp__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 2.2cqw; }
.bp__card { position: relative; min-height: 7cqw; padding: 1.4cqw 1.6cqw; border-radius: 1.4cqw; border: 1.5px dashed var(--b-wire); font-size: 1.2cqw; transition: background-color .7s, border-color .7s; }
.bp__card b { display: block; font: 800 1.6cqw var(--display); margin-bottom: .2cqw; }
.bp__card span { color: #4B5873; }
.is-3 .bp__card { border-color: transparent; background: #F1EADC; }

/* schizzo (wireframe) e contenuto vero */
.wf { position: absolute; left: 0; display: block; height: 1.1cqw; border-radius: 99px; background: rgba(173, 158, 255, .42); transform-origin: left; transition: opacity .5s, transform .6s var(--ease); }
.bp__logo .wf { top: 50%; width: 14cqw; height: 1.6cqw; margin-top: -.8cqw; }
.bp__title .wf { height: 2.8cqw; }
.bp__title .wf:nth-of-type(1) { top: .3cqw; }
.bp__title .wf:nth-of-type(2) { top: 4.2cqw; }
.bp__text .wf:nth-of-type(1) { top: .4cqw; }
.bp__text .wf:nth-of-type(2) { top: 2.6cqw; }
.bp__card .wf { left: 1.6cqw; top: 1.8cqw; width: 55%; }
.is-3 .wf { opacity: 0; transform: scaleX(.2); }
.real { display: inline-block; opacity: 0; transform: translateY(.8cqw); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.bp__title .real, .bp__text .real { display: block; }
.bp__card .real { display: block; }
.is-3 .real { opacity: 1; transform: none; }
.is-3 .bp__title .real { transition-delay: .1s; }
.is-3 .bp__text .real { transition-delay: .2s; }
.is-3 .bp__btn .real { transition-delay: .3s; }
.is-3 .bp__card .real { transition-delay: .4s; }

/* la "foto" del negozio */
.bp__img { position: relative; height: 92%; border-radius: 2cqw; border: 1.5px dashed var(--b-wire); overflow: hidden; transition: border-color .7s; }
.bp__img::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--b-wire) 50%, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), var(--b-wire) 50%, transparent calc(50% + 1px));
  transition: opacity .5s;
}
.bp__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #F9D9A6 0%, #F4BC86 55%, #E7A274 100%);
  opacity: 0; transition: opacity .9s var(--ease) .15s;
}
.is-3 .bp__img { border-color: transparent; }
.is-3 .bp__img::before { opacity: 0; }
.is-3 .bp__img::after { opacity: 1; }
.bp__sun, .bp__awning, .bp__door { position: absolute; z-index: 1; opacity: 0; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.bp__sun { width: 7cqw; height: 7cqw; border-radius: 50%; right: 12%; top: 10%; background: #FFF3D6; transform: translateY(4cqw); }
.bp__awning {
  left: 8%; right: 8%; top: 38%; height: 6cqw; border-radius: 0 0 1.5cqw 1.5cqw;
  background: repeating-linear-gradient(90deg, #2E8A7E 0 2.4cqw, #FBF7EF 2.4cqw 4.8cqw);
  transform: scaleY(0); transform-origin: top;
}
.bp__door { left: 14%; right: 14%; top: calc(38% + 6cqw); bottom: 0; background: #13244A; border-radius: .6cqw .6cqw 0 0; box-shadow: inset 0 0 0 .8cqw #1C3260; transform: translateY(100%); }
.is-3 .bp__sun, .is-3 .bp__awning, .is-3 .bp__door { opacity: 1; transform: none; }
.is-3 .bp__awning { transition-delay: .3s; }
.is-3 .bp__door { transition-delay: .2s; }

/* passo 1: appunti */
.notes { position: absolute; inset: 0; transition: opacity .5s; }
.notes span {
  position: absolute; left: var(--x); top: var(--y);
  font: 700 2.6cqw/1 "Caveat", "Comic Sans MS", cursive;
  color: #3B2F00; background: #FFE38A;
  padding: 1.1cqw 1.6cqw 1.3cqw;
  border-radius: .3cqw;
  box-shadow: 0 1.2cqw 2cqw -1cqw rgba(0, 0, 0, .5);
  transform: rotate(var(--r));
  transition: transform .7s var(--ease), opacity .5s;
}
.notes span:nth-child(even) { background: #C9F0E6; color: #0F3D36; }
.is-2 .notes { opacity: 0; pointer-events: none; }
.is-2 .notes span { transform: rotate(0deg) scale(.5) translateY(6cqw); }

/* passo 4: funziona davvero */
.cursor { position: absolute; left: 62%; top: 52%; width: 2.4cqw; height: auto; opacity: 0; pointer-events: none; z-index: 2; }
.toast {
  position: absolute; right: 3.5cqw; top: 3.5cqw; z-index: 2;
  display: flex; align-items: center; gap: .8cqw;
  padding: 1cqw 1.8cqw; border-radius: 99px;
  background: var(--b-ink); color: #fff; font: 700 1.3cqw var(--body);
  box-shadow: 0 1.5cqw 3cqw -1cqw rgba(19, 36, 74, .5);
  opacity: 0; transform: translateY(-2cqw);
}
.toast__dot { width: .9cqw; height: .9cqw; border-radius: 50%; background: #3DDC97; }
.code {
  position: absolute; left: 3.5cqw; bottom: 3.5cqw; z-index: 2; margin: 0;
  padding: 1.4cqw 1.8cqw; border-radius: 1.4cqw;
  background: #0D0B1E; color: var(--text);
  font: 500 1.3cqw/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  box-shadow: 0 2cqw 4cqw -1cqw rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(3cqw);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.c-t { color: #AD9EFF; } .c-a { color: var(--amber); } .c-s { color: #7FE0C7; }
.is-4 .code { opacity: 1; transform: none; }
.is-4:not(.is-5) .cursor { animation: cur 3.4s var(--ease) infinite; }
.is-4:not(.is-5) .bp__btn--main { animation: press 3.4s infinite; }
.is-4:not(.is-5) .toast { animation: toast 3.4s var(--ease) infinite; }
.is-5 .code { opacity: 0; transform: translateY(3cqw); }
@keyframes cur {
  0% { opacity: 0; transform: translate(10cqw, 8cqw); }
  12% { opacity: 1; }
  40% { transform: translate(0, 0); }
  46% { transform: translate(0, 0) scale(.82); }
  52% { transform: translate(0, 0) scale(1); }
  85% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(1cqw, 1cqw); }
}
@keyframes press { 0%, 44%, 56%, 100% { transform: none; } 48% { transform: scale(.93); } }
@keyframes toast { 0%, 48% { opacity: 0; transform: translateY(-2cqw); } 56%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-1cqw); } }

/* passo 5: online e su telefono */
.build__phone {
  position: absolute; right: -5%; bottom: -9%; z-index: 3;
  width: 23%; aspect-ratio: 9 / 18;
  padding: .8cqw; border-radius: 3.4cqw;
  background: #0A0918;
  box-shadow: 0 0 0 1px rgba(173, 158, 255, .3), 0 3cqw 6cqw -1cqw rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(14cqw) rotate(10deg);
  transition: opacity .6s, transform 1s var(--ease);
}
.is-5 .build__phone { opacity: 1; transform: rotate(4deg); }
.bph { height: 100%; display: flex; flex-direction: column; gap: 1.3cqw; padding: 3cqw 1.8cqw 1.4cqw; border-radius: 2.6cqw; background: var(--b-cream); color: var(--b-ink); font-size: 1.1cqw; overflow: hidden; }
.bph > b { font: 800 1.35cqw var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bph__img { flex: none; height: 26%; border-radius: 1.4cqw; background: linear-gradient(180deg, #F9D9A6, #E7A274); position: relative; overflow: hidden; }
.bph__img::after { content: ""; position: absolute; left: 8%; right: 8%; top: 40%; height: 26%; background: repeating-linear-gradient(90deg, #2E8A7E 0 1cqw, #FBF7EF 1cqw 2cqw); border-radius: 0 0 .6cqw .6cqw; }
.bph__title { font: 800 1.9cqw/1.05 var(--display); letter-spacing: -.02em; }
.bph__btn { padding: 1cqw; border-radius: 99px; background: var(--b-teal); color: #fff; text-align: center; font-weight: 700; }
.bph__bar { margin-top: auto; display: flex; justify-content: space-around; }
.bph__bar i { width: 2cqw; height: 2cqw; border-radius: .6cqw; background: rgba(19, 36, 74, .15); }
.build__caption { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------- Prima e dopo ---------- */
.ba {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #1A1737;
  box-shadow: 0 0 0 1px rgba(173, 158, 255, .28), 0 50px 90px -30px rgba(0, 0, 0, .7);
}
.ba__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ba__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #3A3468; }
.ba__bar i { margin-left: 10px; font: 500 12.5px var(--body); font-style: normal; color: var(--muted); background: var(--night-2); border-radius: 8px; padding: 5px 12px; }
.ba__view { position: relative; aspect-ratio: 1400 / 766; overflow: hidden; user-select: none; background: #F3F6FA; }
.ba__side { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-user-drag: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; pointer-events: none; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--amber); box-shadow: 0 0 24px rgba(255, 181, 71, .6); }
.ba__handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--night);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease);
}
.ba:hover .ba__handle span, .ba__range:focus-visible ~ .ba__handle span { transform: translate(-50%, -50%) scale(1.1); }
.ba__range:focus-visible ~ .ba__handle span { outline: 3px solid #fff; outline-offset: 3px; }
.ba__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba__tag { position: absolute; z-index: 2; bottom: 16px; padding: 6px 12px; border-radius: 99px; font: 700 13px var(--body); background: rgba(13, 11, 30, .8); color: var(--text); pointer-events: none; }
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; background: var(--amber); color: var(--night); }

/* ---------- Gara della velocità ---------- */
.race { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 980px; margin: 0 auto; }
.racer { margin: 0; display: grid; justify-items: center; gap: 18px; }
.racer__phone {
  position: relative; width: min(100%, 260px); aspect-ratio: 9 / 18.5;
  padding: 8px; border-radius: 34px; background: #0A0918;
  box-shadow: 0 0 0 1px rgba(173, 158, 255, .3), 0 40px 70px -20px rgba(0, 0, 0, .7);
  container-type: inline-size;
}
.racer--fast .racer__phone { box-shadow: 0 0 0 1px rgba(255, 181, 71, .45), 0 40px 70px -20px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(255, 181, 71, .35); }
.racer__load { position: absolute; z-index: 2; left: 22px; right: 22px; top: 18px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.racer__load i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--violet); border-radius: 4px; }
.racer--fast .racer__load i { background: var(--amber); }
.racer.is-done .racer__load { opacity: 0; transition: opacity .4s .2s; }
.racer__screen { position: relative; height: 100%; border-radius: 27px; overflow: hidden; background: #fff; }
.racer__spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #E2E2E8; border-top-color: #8C8AA3; opacity: 0; }
.racer.is-loading .racer__spin { opacity: 1; animation: spin .8s linear infinite; }
.racer.is-done .racer__spin { opacity: 0; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqw; padding: 16cqw 7cqw 7cqw; background: #FBF7EF; color: #13244A; opacity: 0; transform: translateY(4cqw); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.racer.is-done .mini { opacity: 1; transform: none; }
.mini__logo { font: 800 6cqw var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__img { flex: none; height: 30%; border-radius: 5cqw; position: relative; overflow: hidden; background: linear-gradient(180deg, #F9D9A6, #E7A274); }
.mini__img::after { content: ""; position: absolute; left: 8%; right: 8%; top: 40%; height: 26%; background: repeating-linear-gradient(90deg, #2E8A7E 0 4cqw, #FBF7EF 4cqw 8cqw); border-radius: 0 0 2cqw 2cqw; }
.mini__title { font: 800 8.4cqw/1.02 var(--display); letter-spacing: -.03em; }
.mini__text { height: 2.6cqw; border-radius: 9px; background: rgba(19, 36, 74, .12); }
.mini__text--short { width: 62%; margin-top: -2cqw; }
.mini__btn { padding: 3.6cqw; border-radius: 99px; background: #2E8A7E; color: #fff; text-align: center; font: 700 5cqw var(--body); }
.mini__btn--ghost { margin-top: -1.5cqw; background: transparent; color: #13244A; box-shadow: inset 0 0 0 1.5px #13244A; }
.racer figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.racer figcaption span { color: var(--muted); font-size: 15px; }
.racer__time { font: 800 clamp(32px, 4vw, 48px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.racer--fast .racer__time { color: var(--amber); }
.race__mid { display: grid; justify-items: center; gap: 16px; max-width: 220px; text-align: center; }
.race__msg { color: var(--text); font-weight: 600; min-height: 3em; }
.race__note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__portrait {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 32px;
  background: conic-gradient(from 200deg at 60% 40%, var(--violet), #2B1E7A, var(--amber), var(--violet));
  display: grid; place-items: center;
}
.about__portrait span { font: 800 clamp(120px, 20vw, 300px)/1 var(--display); color: rgba(13, 11, 30, .85); letter-spacing: -.06em; }
.about__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(238, 235, 255, .12); background: linear-gradient(180deg, transparent 65%, rgba(13, 11, 30, .35)); pointer-events: none; }
.about__text h2 { margin-bottom: 28px; }
.about__text p { color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); max-width: 32em; }
.about__text p + p { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.faq-wrap__intro { position: sticky; top: 120px; }
.faq-wrap__intro p { color: var(--muted); margin-top: 24px; font-size: 18px; }
.faq-wrap__intro a { color: var(--violet-soft); text-underline-offset: 4px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0;
  font: 700 clamp(18px, 1.7vw, 23px)/1.25 var(--display); letter-spacing: -.01em;
  transition: color .2s;
}
.faq summary:hover { color: var(--violet-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--violet); border-color: var(--violet); }
.faq__a { overflow: hidden; }
.faq__a p { color: var(--muted); max-width: 40em; padding: 0 0 28px; }

/* ---------- Contatti ---------- */
.contact {
  position: relative; overflow: hidden;
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: clamp(96px, 12vw, 180px) auto 0;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 80px);
  border-radius: clamp(28px, 3vw, 44px);
  background: var(--night-2);
  border: 1px solid var(--line);
  text-align: center;
}
@media (max-width: 1400px) { .contact { margin-left: var(--pad); margin-right: var(--pad); } }
.contact__light {
  position: absolute; left: 50%; top: -55%; width: 130%; height: 110%; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(123, 97, 255, .45), transparent),
    radial-gradient(closest-side at 72% 82%, rgba(255, 181, 71, .16), transparent);
  pointer-events: none;
}
.contact > *:not(.contact__light) { position: relative; }
.contact__title { font-size: clamp(42px, 7.5vw, 116px); font-weight: 800; letter-spacing: -.033em; line-height: .94; max-width: 11em; margin: 0 auto; text-wrap: balance; }
.contact__lead { color: var(--muted); margin: 24px auto 0; max-width: 32em; font-size: 19px; }
.form { margin: 48px auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: inherit; color: var(--text);
  background: var(--night); border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6F6B9B; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 97, 255, .22); }
.field [aria-invalid="true"] { border-color: #FF7A7A; }
.form__error { grid-column: 1 / -1; color: #FFA3A3; font-size: 15px; }
.form__error:empty { display: none; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.contact__alt { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin: 36px 0 0; }
.contact__alt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--violet-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s; }
.contact__alt a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 48px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 15px; }
.foot a { color: var(--muted); }
.foot__links { display: flex; gap: 24px; }
.form__note { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--muted); margin-top: 4px; }
.form__note a { color: var(--violet-soft); text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 760px; }
  .project { grid-template-columns: 1fr; }
  .project__info { padding: 4px 8px 12px; }
  .always ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap__intro { position: static; }
  .process__grid { grid-template-columns: 1fr; gap: 24px; }
  .build-wrap { order: -1; top: 64px; z-index: 5; padding: 10px 6% 7% 0; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: calc(var(--pad) + 6%); background: linear-gradient(var(--night) 85%, transparent); }
  .build__caption { display: none; }
  .race { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .race__mid { grid-column: 1 / -1; grid-row: 1; max-width: none; }
  .race__msg { min-height: 0; }
  .ba__handle span { width: 44px; height: 44px; }
  .build__bar > span { display: none; }
  .build__url { margin-left: 0; }
  /* su telefono l'anteprima sta subito sotto il campo del nome */
  .hero__side { display: contents; }
  .hero__lead { order: 1; }
  .try { order: 2; margin-top: 0; }
  .stage { order: 3; }
  .switch { order: 4; margin-top: 8px; }
  .hero__cta { order: 5; margin-top: 8px; }
  .hero__grid { gap: 28px; }
  .step { min-height: 52vh; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .brand__name { height: 16px; }
  .brand__mark { height: 28px; }
  .block__head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .always ul { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 300px; }
  .form { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .site__links, .site__row { display: none; }
  .site__body { grid-template-columns: 1fr .8fr; }
  .stage { padding: 0 8% 64px 0; }
  .phone { width: 31%; }
  .step { grid-template-columns: 48px 1fr; gap: 20px; }
  .step__n { width: 48px; height: 48px; font-size: 18px; }
  .steps__line { left: 23px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
