/* ==================================================================
   nicolapiscaglia.it — foglio di stile unico
   Minimale e moderno: sezioni scure (testo acceso) alternate a sezioni
   chiare (testo scuro), parole chiave evidenziate col colore, mai col
   corsivo. Le animazioni allo scroll sono in js/main.js.
   ================================================================== */

/* ---------- 01. FONT (ospitati sul sito, nessun servizio esterno) --- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 02. TOKEN ---------------------------------------------- */
:root {
  --ink: #0b0f1a;
  --ink-2: #121829;
  --paper: #ffffff;
  --paper-2: #f4f6fa;

  --text-dark: #0b0f1a;
  --text-dark-muted: #4a5163;
  --text-light: #f3f5fb;
  --text-light-muted: #a6aec2;

  /* Colori accesi (su scuro) */
  --blue: #4f8cff;
  --green: #2fd58e;
  --orange: #ff8a3d;
  /* Varianti leggibili su bianco (contrasto AA) */
  --blue-d: #1f55d6;
  --green-d: #047a4a;
  --orange-d: #c24a0c;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(2.2rem, 1.5rem + 3vw, 4.25rem);
  --fs-h1: clamp(3.1rem, 1.4rem + 7.6vw, 9.5rem);

  --gutter: clamp(1.25rem, 0.8rem + 2vw, 3rem);
  --maxw: 1240px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 03. BASE ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em, i { font-style: normal; }   /* niente corsivo: si evidenzia col colore */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--orange); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Parole chiave colorate */
.c-blue { color: var(--blue); }
.c-green { color: var(--green); }
.c-orange { color: var(--orange); }
.is-light .c-blue { color: var(--blue-d); }
.is-light .c-green { color: var(--green-d); }
.is-light .c-orange { color: var(--orange-d); }

/* ---------- 04. LAYOUT E SEZIONI ----------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(5rem, 3rem + 8vw, 10rem); overflow: hidden; }
.is-dark { background: var(--ink); color: var(--text-light); }
.is-light { background: var(--paper); color: var(--text-dark); }
.is-accent { background: linear-gradient(135deg, #1f55d6 0%, #3a6ff0 55%, #1b46b8 100%); color: #fff; }
.section.curtain { will-change: clip-path; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-light-muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.is-light .eyebrow { color: var(--text-dark-muted); }
.is-accent .eyebrow { color: rgba(255, 255, 255, .8); }

.h2 { font-size: var(--fs-h2); max-width: 17ch; margin-bottom: 1.5rem; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; color: var(--text-light-muted); }
.is-light .lead { color: var(--text-dark-muted); }
.is-accent .lead { color: rgba(255, 255, 255, .88); }

/* ---------- 05. HEADER: si restringe in una "pillola" scorrendo ----- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: 1rem; color: var(--text-light); pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin-inline: auto;
  padding: .55rem var(--gutter);
  border-radius: 999px; border: 1px solid transparent;
  transition: max-width .7s var(--ease), padding .6s var(--ease), background-color .5s, border-color .5s, box-shadow .6s var(--ease), backdrop-filter .5s;
}
.site-header.is-scrolled .bar {
  max-width: min(940px, calc(100% - 1.5rem));
  padding: .45rem .5rem .45rem 1.1rem;
  background: rgba(18, 24, 41, .72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(243, 245, 251, .1);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
}
/* Coming soon: all'apertura la barra si restringe in una "pillola" stretta e quasi opaca
   (stesso effetto dello scroll sulla landing, qui senza script) */
.site-header.is-solid .bar {
  max-width: min(400px, calc(100% - 2 * var(--gutter)));
  margin-left: auto; margin-right: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter));   /* a destra, in linea col testo */
  background: rgba(18, 24, 41, .94); border-color: rgba(243, 245, 251, .14);
  animation: pill-in 1.1s var(--ease) .5s both;
}
@keyframes pill-in {
  from { max-width: var(--maxw); padding: .55rem var(--gutter); background-color: rgba(18, 24, 41, 0); border-color: transparent; box-shadow: none; }
}
.site-header.is-scrolled .logo-mark { width: 36px; }
.site-header.is-scrolled .btn { min-height: 44px; padding: .7rem 1.2rem; }
.nav { display: none; gap: 1.8rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--text-light-muted); transition: color .3s; }
.nav a:hover { color: var(--text-light); }
@media (min-width: 900px) { .nav { display: flex; } }

.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.logo-name span { color: var(--green); }
/* riga piccola che cambia colore insieme al cursore (senza lampeggiare) */
.logo-role { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); animation: lm-colors-text 6.6s linear infinite; }
@media (max-width: 420px) { .logo-name { font-size: .98rem; } }

/* Monogramma "np": la gamba della n diventa l'asta della p; il cursore
   lampeggia e cambia colore in loop; al passaggio le lettere si ridisegnano. */
.logo-mark { width: 44px; height: auto; overflow: visible; flex: none; transition: width .6s var(--ease); }
.logo-mark path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 0; }
.logo-mark .lm-cursor { fill: var(--green); animation: lm-blink 1.1s steps(1) infinite, lm-colors 6.6s linear infinite; }
@keyframes lm-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes lm-colors { 0%, 33% { fill: var(--green); } 33.4%, 66% { fill: var(--blue); } 66.4%, 100% { fill: var(--orange); } }
@keyframes lm-colors-text { 0%, 33% { color: var(--green); } 33.4%, 66% { color: var(--blue); } 66.4%, 100% { color: var(--orange); } }
.logo:hover .lm-n, .logo:focus-visible .lm-n { animation: lm-draw .9s var(--ease) both; }
.logo:hover .lm-p, .logo:focus-visible .lm-p { animation: lm-draw .9s .12s var(--ease) both; }
@keyframes lm-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

/* ---------- 06. PULSANTI E LINK (hover moderni) -------------------- */
.btn {
  --btn-bg: var(--text-light); --btn-fg: var(--ink); --btn-fill: var(--green);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.6rem;
  border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), min-height .5s var(--ease), padding .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-light); --btn-fill: var(--text-light); box-shadow: inset 0 0 0 1.5px rgba(243, 245, 251, .35); }
.btn--ghost:hover { --btn-fg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-fill: var(--orange); }
.is-light .btn { --btn-bg: var(--ink); --btn-fg: var(--text-light); --btn-fill: var(--blue-d); }
.is-light .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11, 15, 26, .25); }
.is-light .btn--ghost:hover { --btn-fg: var(--text-light); }
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

.link-u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.link-u:hover { background-size: 100% 2px; }

/* ---------- 07. HERO ----------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 8rem 5rem; isolation: isolate;
}
/* Aurora: tre luci di colore che si muovono lente (solo transform) */
.aurora { position: absolute; inset: -20%; z-index: -2; pointer-events: none; }
.aurora__b { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .6; will-change: transform; }
.aurora__b--blue { left: 45%; top: -5%; background: radial-gradient(circle, rgba(79, 140, 255, .55), transparent 62%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora__b--green { left: -5%; top: 35%; background: radial-gradient(circle, rgba(47, 213, 142, .38), transparent 62%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora__b--orange { left: 55%; top: 50%; background: radial-gradient(circle, rgba(255, 138, 61, .32), transparent 62%); animation: drift-c 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-18%, 22%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(25%, -15%) scale(.9); } }
@keyframes drift-c { to { transform: translate(-30%, -20%) scale(1.2); } }
/* grana leggera per un effetto "pellicola" */
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__title { font-size: var(--fs-h1); line-height: .9; letter-spacing: -0.045em; margin-bottom: 2.4rem; }
.hero__title .line { display: block; }
.hero__kicker { display: block; font-family: var(--font-body); font-size: clamp(.8rem, .75rem + .2vw, .95rem); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-light-muted); margin-bottom: 1.6rem; line-height: 1.4; }
.hero__bottom { display: grid; gap: 2rem; }
.hero__bottom .lead { margin: 0; }




/* Seconda scena: senza animazioni è una riga normale sotto l'hero */
.hero__after { margin-top: 4rem; }
.hero__statement { font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0 auto; max-width: var(--maxw); padding-inline: var(--gutter); display: flex; flex-wrap: wrap; gap: .2em .6em; }
.hero__statement strong { font-weight: 700; }
/* con le animazioni su desktop diventa una scena sovrapposta, centrata */
.hero.is-staged .hero__after { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero.is-staged .hero__statement { justify-content: center; text-align: center; font-size: clamp(2.4rem, 1rem + 4.8vw, 6rem); flex-direction: column; align-items: center; }


.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light-muted); margin: 0; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 38px; margin: .6rem auto 0; background: linear-gradient(var(--text-light-muted), transparent); }

/* ---------- 08. "TI RICONOSCI?" ------------------------------------ */
.pains { list-style: none; margin: 3.5rem 0 0; padding: 0; }
.pains li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.6rem 0; border-top: 1px solid rgba(11, 15, 26, .12);
  font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.25; letter-spacing: -0.02em;
  transition: padding-left .45s var(--ease);
}
.pains li:last-child { border-bottom: 1px solid rgba(11, 15, 26, .12); }
.pains li:hover { padding-left: .8rem; }
.pains .n { font-size: .95rem; font-family: var(--font-body); color: var(--text-dark-muted); }

/* ---------- 09. SERVIZI: schede con alone che segue il mouse -------- */
.cards { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } .card--wide { grid-column: 1 / -1; } }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem);
  border-radius: var(--radius); background: var(--ink-2);
  border: 1px solid rgba(243, 245, 251, .08);
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow, rgba(79, 140, 255, .18)), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-4px); border-color: rgba(243, 245, 251, .2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: var(--fs-h3); margin: 1.1rem 0 .7rem; }
.card p { color: var(--text-light-muted); margin: 0; }
.card .tag { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card--green { --glow: rgba(47, 213, 142, .16); }
.card--orange { --glow: rgba(255, 138, 61, .16); }
.card--wide { background: linear-gradient(120deg, rgba(47, 213, 142, .12), rgba(79, 140, 255, .1)), var(--ink-2); }
.card--wide h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); max-width: 24ch; }
.card--wide p { max-width: 70ch; }

/* ---------- 10. NASTRI DI LOGHI IN LOOP ---------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; gap: 1rem; margin: 0; padding: 1rem 0; list-style: none; animation: marquee 45s linear infinite; }
.marquee--slow .marquee__track { animation-duration: 70s; gap: 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.marquee--slow .marquee__track { animation-name: marquee-0; }
@keyframes marquee-0 { to { transform: translateX(-50%); } }

.tools { margin-top: clamp(4rem, 3rem + 3vw, 6rem); }
.tools__label { font-size: .9rem; color: var(--text-light-muted); margin-bottom: .5rem; }
/* loghi in bianco e nero, a colori e leggermente ingranditi al passaggio */
.logo-chip {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 1.5rem; border-radius: 18px;
  background: var(--ink-2); border: 1px solid rgba(243, 245, 251, .08);
  color: var(--text-light-muted); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform .45s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.logo-chip svg { width: 30px; height: 30px; fill: currentColor; transition: fill .35s; }
.logo-chip:hover { transform: scale(1.08); background: #fff; color: var(--ink); border-color: #fff; }
.logo-chip:hover svg { fill: var(--brand); }

.brands { margin-top: 3rem; }
.brand {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap;
  padding: .4rem 1.6rem; color: rgba(243, 245, 251, .38);
  transition: color .35s, transform .45s var(--ease);
}
.brand::after { content: "✦"; display: inline-block; font-size: .45em; margin-left: 3.2rem; color: rgba(243, 245, 251, .2); vertical-align: middle; }
.brand:hover { transform: scale(1.08); }
.brand--blue:hover { color: var(--blue); }
.brand--green:hover { color: var(--green); }
.brand--orange:hover { color: var(--orange); }

/* loghi dei brand: bianchi in negativo, a colori su tessera bianca al passaggio */
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: 1.2rem 2rem; margin-inline: .5rem; border-radius: 18px;
  transition: background-color .35s, transform .45s var(--ease);
}
.brand-logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: filter .35s, opacity .35s; }
.brand-logo:hover { background: #fff; transform: scale(1.08); }
.brand-logo:hover img { filter: none; opacity: 1; }
.brand-logo--dark:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(243, 245, 251, .2); }

/* ---------- 11. METODO: box colorati che entrano uno alla volta ---- */
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; overflow: hidden; color: #fff;
  padding: 2rem 1.6rem 2.2rem; border-radius: var(--radius); min-height: 280px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(11, 15, 26, .45); }
.step--blue { background: linear-gradient(150deg, #2b62e6, #1a46b5); }
.step--green { background: linear-gradient(150deg, #0e9a60, #04683f); }
.step--orange { background: linear-gradient(150deg, #e2621c, #b4410a); }
.step--ink { background: linear-gradient(150deg, #1d2540, #0b0f1a); }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 2.4rem + 2vw, 4.4rem); letter-spacing: -0.05em; line-height: 1; opacity: .9; margin-bottom: auto; padding-bottom: 2.5rem; }
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step p { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, .86); }

/* ---------- 12. ANALISI DEL SITO ----------------------------------- */
.audit { display: grid; gap: 2.5rem; }
.audit .h2 { max-width: 20ch; }
.audit .lead strong { color: #fff; }
.audit__form { display: grid; gap: 1rem; max-width: 980px; }
.audit__row { display: grid; gap: .8rem; }
@media (min-width: 900px) { .audit__row { grid-template-columns: 1.4fr 1fr auto; } }
.audit__row input {
  width: 100%; font: inherit; min-height: 58px; padding: .9rem 1.2rem;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: border-color .3s, background-color .3s;
}
.audit__row input::placeholder { color: rgba(255, 255, 255, .7); }
.audit__row input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .2); }
.audit__row .btn { min-height: 58px; justify-content: center; }
.is-accent .check { color: rgba(255, 255, 255, .85); }
.is-accent .check input { accent-color: var(--orange); }

/* ---------- 13. CHI SONO ------------------------------------------- */
.about { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: stretch; } }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; aspect-ratio: 4 / 5; }
@media (min-width: 960px) { .portrait { aspect-ratio: auto; height: 100%; min-height: 520px; } }
.portrait picture, .portrait img { width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.about__text > p:not(.lead):not(.eyebrow) { color: var(--text-dark-muted); max-width: 60ch; }
.about__text > p:last-child { margin-bottom: 0; }
.crafts { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .crafts { grid-template-columns: 1fr 1fr; } }
.crafts li { padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--paper-2); transition: transform .45s var(--ease), background-color .3s; }
.crafts li:hover { transform: translateY(-4px); background: #eaf0ff; }
.crafts strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin-bottom: .35rem; }
.crafts span { font-size: .97rem; color: var(--text-dark-muted); }
.faq-wrap { margin-top: clamp(5rem, 3rem + 6vw, 9rem); }

/* ---------- 14. FAQ ------------------------------------------------ */
.faq { margin-top: 3rem; border-top: 1px solid rgba(11, 15, 26, .12); }
.faq details { border-bottom: 1px solid rgba(11, 15, 26, .12); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-d); }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; transition: transform .45s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.6rem; max-width: 68ch; color: var(--text-dark-muted); }

/* ---------- 15. CONTATTO ------------------------------------------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact-direct { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; }
.contact-direct a { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 600; }
.contact-direct span { display: block; font-size: .85rem; color: var(--text-light-muted); }
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: .9rem; margin-bottom: .45rem; color: var(--text-light-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text-light);
  background: var(--ink-2); border: 1px solid rgba(243, 245, 251, .14); border-radius: 14px;
  padding: .95rem 1.1rem; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(79, 140, 255, .2); }
.field select option { color: var(--ink); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-light-muted); }
.check input { margin-top: .3rem; accent-color: var(--green); }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 500; margin: 0; }
.form-msg.ok { background: rgba(47, 213, 142, .16); color: var(--green); }
.form-msg.err { background: rgba(255, 138, 61, .16); color: var(--orange); }
.is-accent .form-msg { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- 16. FOOTER --------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-light-muted); padding-block: 3rem; border-top: 1px solid rgba(243, 245, 251, .08); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--text-light); }
/* Coming soon: footer a "pillola" sulla destra, come l'header. Si restringe quando entra
   nella finestra (animazione legata allo scroll dove supportata, altrimenti all'apertura). */
.site-footer.is-pill { width: 100%; margin-top: 4rem; border-top: 0; padding-block: 0; background: transparent; font-size: .85rem; }
.site-footer.is-pill .wrap {
  width: fit-content; min-width: 0; max-width: calc(100% - 2 * var(--gutter));   /* larga quanto il testo */
  margin-left: auto; margin-right: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter));
  padding: .8rem 1.4rem; gap: .4rem 1.5rem; align-items: center;
  border-radius: 999px; background: rgba(18, 24, 41, .94); border: 1px solid rgba(243, 245, 251, .14);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6);
  animation: footer-pill-in 1.1s var(--ease) .5s both;
}
/* come pill-in, ma parte da una larghezza minima: la pillola si stringe fino al suo contenuto */
@keyframes footer-pill-in {
  from { min-width: min(var(--maxw), calc(100% - 2 * var(--gutter))); padding: .55rem var(--gutter); background-color: rgba(18, 24, 41, 0); border-color: transparent; box-shadow: none; }
}
@supports (animation-timeline: view()) {
  .site-footer.is-pill .wrap { animation: footer-pill-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@media (max-width: 600px) { .site-footer.is-pill .wrap { border-radius: 1.4rem; } }

/* ---------- 17. PAGINE DI TESTO (privacy) -------------------------- */
.page-text { padding-block: 9rem 6rem; }
.page-text .wrap { max-width: 820px; }
.page-text h1 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem); margin-bottom: 2rem; }
.page-text h2 { font-size: 1.4rem; margin: 2.5rem 0 .8rem; }

/* ---------- 18. MOVIMENTO RIDOTTO ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- 19. PUNTATORE: anello che segue il mouse ---------------
   Solo con il mouse e con le animazioni attive; il puntatore normale
   resta visibile. Inverte i colori sotto (mix-blend-mode) così si vede
   sia sulle sezioni chiare sia su quelle scure. */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid #fff; mix-blend-mode: difference;
  opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s, border-color .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.cursor.is-brand { width: 70px; height: 70px; margin: -35px 0 0 -35px; mix-blend-mode: normal; border-color: var(--cursor-color, var(--green)); background: transparent; }
.cursor.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }
/* loghi quadrati: un po' più alti per avere lo stesso peso visivo degli altri */
.brand-logo img[src*="/bmw."], .brand-logo img[src*="/monte-dei-paschi"], .brand-logo img[src*="/visit-romagna"] { height: 58px; }

/* ---------- 20. PAGINA 404 ----------------------------------------
   Grande "404" con effetto glitch nei tre colori, terminale che
   scrive le righe una alla volta (solo CSS). */
.e404 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-block: 8rem 4rem; }
.e404__inner { display: grid; gap: 2rem; justify-items: start; }
.e404__code {
  position: relative; margin: 0; line-height: .8;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.06em;
  font-size: clamp(7rem, 4rem + 18vw, 17rem); color: var(--text-light);
}
.e404__code::before, .e404__code::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; }
.e404__code::before { color: var(--blue); animation: glitch-a 2.8s infinite steps(1); }
.e404__code::after { color: var(--orange); animation: glitch-b 3.4s infinite steps(1); }
@keyframes glitch-a {
  0%, 86%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
  88% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); opacity: 1; }
  91% { transform: translate(5px, -3px); clip-path: inset(60% 0 8% 0); opacity: 1; }
  94% { transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); opacity: 1; }
}
@keyframes glitch-b {
  0%, 80%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
  82% { transform: translate(7px, -2px); clip-path: inset(45% 0 25% 0); opacity: 1; }
  85% { transform: translate(-5px, 3px); clip-path: inset(5% 0 70% 0); opacity: 1; }
}
.e404__title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); max-width: 22ch; }
.terminal { width: min(640px, 100%); border-radius: 16px; background: rgba(18, 24, 41, .85); border: 1px solid rgba(243, 245, 251, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.terminal__bar { display: flex; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(243, 245, 251, .08); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(243, 245, 251, .25); }
.terminal__bar span:nth-child(1) { background: var(--orange); }
.terminal__bar span:nth-child(2) { background: #ffd166; }
.terminal__bar span:nth-child(3) { background: var(--green); }
.terminal__body { margin: 0; padding: 1.2rem 1.3rem 1.4rem; font: 500 clamp(.85rem, .8rem + .25vw, 1rem)/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-light); white-space: pre-wrap; word-break: break-word; }
.t-line { display: inline-block; opacity: 0; animation: t-in .01s forwards; animation-delay: calc(var(--d) * .7s + .4s); }
@keyframes t-in { to { opacity: 1; } }
.t-caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--green); animation: lm-blink 1.1s steps(1) infinite; }
.e404__actions { margin-top: .5rem; }
@media (prefers-reduced-motion: reduce) { .t-line { opacity: 1; } .e404__code::before, .e404__code::after { display: none; } }

/* ---------- 21. PAGINA "COMING SOON" ------------------------------
   Solo CSS: elementi che entrano in sequenza, barra di avanzamento
   e puntini animati. Con movimento ridotto tutto è subito fermo. */
.soon { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-block: 8rem 1.5rem; }
.soon__inner { margin-block: auto; }   /* centrato in verticale, footer in fondo */
.soon__inner { display: grid; gap: 1.8rem; justify-items: start; }
.soon__kicker { font-family: var(--font-body); font-size: clamp(.8rem, .75rem + .25vw, 1rem); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-light-muted); line-height: 1.4; margin: 0; }
.soon__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 8.5rem); line-height: .92; letter-spacing: -0.045em; }
.soon__status { margin: 0; display: grid; gap: .7rem; font: 500 clamp(.9rem, .85rem + .2vw, 1.05rem)/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-light-muted); }
.soon__dots::after { content: ""; animation: soon-dots 1.6s steps(4, end) infinite; }
@keyframes soon-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.soon__bar { display: block; width: min(420px, 80vw); height: 6px; border-radius: 999px; background: rgba(243, 245, 251, .1); overflow: hidden; }
.soon__bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange)); transform-origin: left; animation: soon-bar 6s var(--ease) infinite; }
@keyframes soon-bar { 0% { transform: scaleX(.05); } 60% { transform: scaleX(.88); } 85%, 100% { transform: scaleX(.92); } }
.soon .lead { max-width: 62ch; margin: 0; }
.soon__contacts { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 1rem 2.5rem; }
@media (min-width: 760px) { .soon__contacts { grid-template-columns: repeat(2, auto); } }
.soon__contacts span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light-muted); }
.soon__contacts a { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 600; }
.soon__in { animation: soon-in 1s var(--ease) both; animation-delay: calc(var(--d) * .12s); }
@keyframes soon-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.soon__title.soon__in { animation-name: soon-title; }
@keyframes soon-title { from { opacity: 1; transform: translateY(18px); } to { opacity: 1; transform: none; } }   /* titolo visibile subito (LCP) */
@media (prefers-reduced-motion: reduce) { .soon__bar span { transform: scaleX(.88); } .soon__dots::after { content: "..."; } }
@media (max-width: 600px) { .soon { padding-block: 7rem 1.25rem; } .soon__contacts a { word-break: break-word; } }
