/* =========================================================
   Gabriele Messineo — sito personale
   Stile chiaro, pulito, da prodotto digitale
   ========================================================= */

/* Font ospitati sul sito (nessuna richiesta a Google) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --band: #f5f5f5;
  --band-green: #f5f5f5;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2e2e2e;
  --muted: #5f5f5f;
  --faint: #8f8f8f;
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --accent: #0a0a0a;
  --accent-ink: #2b2b2b;
  --accent-soft: #efefef;
  --plate: #eeeeee;
  --ok: #0a0a0a;
  --ok-soft: #efefef;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.06; letter-spacing: -0.045em; color: var(--ink); }
h3 { letter-spacing: -0.025em; line-height: 1.2; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; justify-self: start; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: -0.03em;
}
.nav { display: flex; align-items: center; gap: 4px; justify-self: center; }
.nav a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 6px 12px; border-radius: 6px; transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 500; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav .nav-cta { display: none; }

.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .site-header .container { grid-template-columns: 1fr auto; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 20px; display: none;
    justify-self: stretch; width: 100%;
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-radius: 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav .nav-cta { display: flex; justify-content: center; margin-top: 16px; border-bottom: 0; color: #fff; padding: 12px 16px; border-radius: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: -0.006em;
  padding: 10px 16px; border-radius: 6px; border: 1px solid transparent; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--sm { padding: 7px 12px; font-size: 13.5px; }
.btn--link { padding: 10px 6px; color: var(--ink); }
.btn--link:hover { color: var(--accent); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.arr { display: inline-block; transition: transform .15s ease; }
a:hover > .arr { transform: translate(2px, -2px); }
.arr--r { }
a:hover > .arr--r { transform: translateX(3px); }

/* ---------- Text helpers ---------- */
.kicker { font-size: 13.5px; font-weight: 500; color: var(--accent); letter-spacing: -0.005em; }
.label { font-size: 13px; font-weight: 500; color: var(--faint); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); line-height: 1.7; max-width: 30em; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--band { background: var(--band); }
.section--band-green { background: var(--band-green); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 640px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 76px); margin: 0 0 24px; max-width: 9.5ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 32px; }
.hero__note { margin-top: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges svg { width: 15px; height: 15px; color: var(--ink-soft); }

/* Card con riquadro sfalsato dietro */
.showcase { position: relative; }
.showcase__card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -20px rgba(0, 0, 0, .22);
}
.showcase__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.showcase__bar strong { font-weight: 600; }
.showcase__photo { position: relative; aspect-ratio: 4 / 5; background: var(--band); overflow: hidden; }
.showcase__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  font-size: clamp(64px, 10vw, 120px); font-weight: 600; color: var(--ink); letter-spacing: -0.06em;
}
.no-photo .photo-fallback { display: grid; }
.showcase__rows { padding: 6px 16px 14px; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 8px; border-radius: 6px; font-size: 14px;
}
.row + .row { border-top: 1px solid var(--line); border-radius: 0; }
.row .label { width: 28px; flex: none; }
.row__pill {
  margin-left: auto; font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); white-space: nowrap;
}
.row__pill--blue { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 520px) {
  .showcase__bar .label { display: none; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .showcase { max-width: 560px; }
}

/* ---------- Audience strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px; font-size: 15px; color: var(--muted); }
.strip strong { color: var(--ink); font-weight: 500; }
.strip i { font-style: normal; color: var(--line-strong); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: 10px; align-content: start; }
.step__num {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 13px; font-weight: 500; background: var(--surface); margin-bottom: 6px;
}
.step__kicker { font-size: 13.5px; color: var(--accent); font-weight: 500; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.035em; }
.card p { color: var(--muted); }
.card--link { text-decoration: none; transition: border-color .15s ease, box-shadow .2s ease; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink); display: inline-flex; gap: 6px; }
.card--link:hover .card__go { color: var(--accent); }
.card--link:hover .card__go .arr { transform: translate(2px, -2px); }

.icon {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); display: grid; place-items: center;
}
.icon svg { width: 20px; height: 20px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 600; font-size: 13px; }

/* ---------- Split (testo + pannello) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__text { display: grid; gap: 18px; }
.split__text h2 { font-size: clamp(32px, 4.4vw, 48px); }
.split__text p { color: var(--muted); max-width: 32em; }
.split__text .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.panel { background: var(--band); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3.6vw, 40px); }
.panel--white { background: var(--surface); box-shadow: var(--shadow); }

/* Mockup sito progetto */
.site-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.site-mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.site-mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.site-mock__bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.site-mock__hero {
  height: 150px; position: relative;
  background: linear-gradient(160deg, #8a8a8a 0%, #3a3a3a 55%, #141414 100%);
  display: flex; align-items: flex-end; padding: 16px;
}
.site-mock__hero b { color: #fff; font-weight: 500; font-size: 20px; letter-spacing: -0.03em; line-height: 1.15; max-width: 12ch; }
.site-mock__body { padding: 14px 16px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-mock__body s { display: block; height: 54px; border-radius: 6px; background: var(--band); text-decoration: none; }
.panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; }
.panel__foot:hover { color: var(--accent); }

/* ---------- Recensioni ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.review__stars { color: #0a0a0a; letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); letter-spacing: -0.01em; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.review figcaption strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.review figcaption span span { display: block; font-size: 13px; color: var(--muted); }
/* Segnaposto ben visibile finché non c'è il testo vero */
.review--todo { border: 1.5px dashed #0a0a0a; box-shadow: none; }
.review--todo blockquote { color: var(--muted); font-style: italic; }

/* ---------- CTA finale ---------- */
.final { display: grid; justify-items: start; gap: 18px; }
.final h2 { font-size: clamp(36px, 5.2vw, 60px); max-width: 14ch; }
.final p { color: var(--muted); max-width: 30em; }
.section--dark .final h2 { color: #fff; }
.section--dark .final p { color: rgba(255, 255, 255, .7); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head .kicker { display: block; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(42px, 6.4vw, 72px); margin-bottom: 22px; max-width: 13ch; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__text { display: grid; gap: 18px; font-size: 17px; color: var(--ink-soft); }
.about__text strong { color: var(--ink); font-weight: 600; }
.traits { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 20px; }
.trait { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 15px; }
.trait + .trait { border-top: 1px solid var(--line); }
.trait strong { font-weight: 500; }
.trait span { color: var(--muted); text-align: right; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .trait { flex-direction: column; gap: 2px; } .trait span { text-align: left; } }

.timeline { display: grid; border-top: 1px solid var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.tl-item__date { font-size: 13.5px; font-weight: 500; color: var(--accent); padding-top: 6px; }
.tl-item h3 { font-size: clamp(21px, 2.4vw, 26px); }
.tl-item__role { color: var(--ink-soft); margin: 4px 0 12px; font-size: 15px; }
.tl-item p { color: var(--muted); max-width: 40em; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }

.cert {
  margin-top: 32px; display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px;
}
.cert .icon { background: var(--accent-soft); color: var(--accent); border-color: transparent; flex: none; }
.cert strong { display: block; font-weight: 500; font-size: 16px; }
.cert span { color: var(--muted); font-size: 14px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(24px, 3.6vw, 36px); text-decoration: none; display: grid; gap: 12px;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.contact-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.contact-card__value { font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact-card__go { font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; color: var(--accent); }
.contact-card:hover .contact-card__go .arr { transform: translate(2px, -2px); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; display: grid; gap: 16px; color: var(--ink-soft); }
.prose h2 { font-size: 22px; letter-spacing: -0.03em; margin-top: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Effetti
   ========================================================= */

/* Entrata a cascata del testo in alto */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__text > *, .page-head .container > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2), .page-head .container > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3), .page-head .container > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4), .page-head .container > :nth-child(4) { animation-delay: .24s; }
.hero__text > :nth-child(5) { animation-delay: .32s; }

/* Alone colorato dietro la foto */
.showcase::before {
  content: ""; position: absolute; z-index: 0; inset: 8% -6% -4% -6%;
  background:
    radial-gradient(45% 40% at 30% 30%, rgba(0, 0, 0, .42), transparent 70%),
    radial-gradient(40% 40% at 75% 75%, rgba(0, 0, 0, .75), transparent 70%);
  filter: blur(40px);
  animation: glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow {
  from { transform: translate(-2%, -2%) scale(1); }
  to   { transform: translate(3%, 2%) scale(1.06); }
}

/* Inclinazione 3D della card con riflesso */
.showcase { perspective: 1200px; }
.showcase__card {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
  will-change: transform;
}
.showcase.is-tilting .showcase__card {
  transition: transform .12s linear, box-shadow .3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 36px 64px -24px rgba(0, 0, 0, .3);
}
.showcase__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.showcase.is-tilting .showcase__card::after { opacity: 1; }

/* Leggero zoom della foto al passaggio */
.showcase__photo img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.showcase:hover .showcase__photo img { transform: scale(1.03); }

/* Pallino "attivo" sulle etichette */
.row__pill { display: inline-flex; align-items: center; gap: 6px; }
.row__pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
.row:nth-child(2) .row__pill::before { animation-delay: 1.2s; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 4px transparent; opacity: .55; }
}

/* Card che si sollevano */
.card--link, .contact-card, .review, .trait, .cert {
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .15s ease, box-shadow .25s ease;
}
.card--link:hover, .contact-card:hover { transform: translateY(-4px); }
.review:hover { transform: translateY(-3px); }

/* Icone che ruotano un poco */
.icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .2s ease, color .2s ease; }
.card:hover .icon, .contact-card:hover .icon { transform: rotate(-6deg) scale(1.06); background: var(--accent-soft); color: var(--accent); }

/* Bottone principale con riflesso al passaggio */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 120%; }

/* Linea sotto i link del menu */
@media (min-width: 821px) {
  .nav a { position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Comparsa in sequenza dentro le griglie */
.steps > .reveal:nth-child(2), .cards > .reveal:nth-child(2), .reviews > .reveal:nth-child(2), .contact-grid > .reveal:nth-child(2) { transition-delay: .1s; }
.steps > .reveal:nth-child(3), .reviews > .reveal:nth-child(3) { transition-delay: .2s; }
.timeline > .reveal:nth-child(2) { transition-delay: .08s; }
.timeline > .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .page-head .container > * { animation: none; }
  .showcase::before, .row__pill::before { animation: none; }
  .showcase__card, .showcase__photo img, .card--link, .contact-card, .review, .icon, .btn--primary::after { transition: none; }
  .showcase__card { transform: none !important; }
  .card--link:hover, .contact-card:hover, .review:hover, .showcase:hover .showcase__photo img { transform: none; }
}

/* =========================================================
   Pagina Chi sono
   ========================================================= */
.about-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.about-hero__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 16px 0 22px; max-width: 12ch; }
.about-hero .lead strong { color: var(--ink); font-weight: 500; }
.about-photo {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -20px rgba(0, 0, 0, .22);
  max-width: 380px; justify-self: end; width: 100%;
}
.about-photo .showcase__photo { aspect-ratio: 4 / 5; }
.about-photo figcaption { padding: 14px 18px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.about-photo figcaption strong { font-weight: 600; font-size: 15px; }
.about-photo figcaption span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-photo { justify-self: start; max-width: 340px; }
}

/* In breve */
.facts-wrap { padding-bottom: clamp(16px, 3vw, 32px); }
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.fact { padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 13px; font-weight: 500; color: var(--accent); }
.fact dd { margin: 0; display: grid; gap: 2px; }
.fact dd strong { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.fact dd span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* Storia + Come lavoro */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story__text { display: grid; gap: 18px; }
.story__text h2 { font-size: clamp(30px, 4vw, 44px); max-width: 16ch; }
.story__text p { font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.story__text strong { color: var(--ink); font-weight: 600; }
.story__approach { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.story__approach h3 { font-size: 18px; margin-bottom: 8px; }
.approach { list-style: none; margin: 0; padding: 0; display: grid; }
.approach li { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.approach li + li { border-top: 1px solid var(--line); }
.approach__icon {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.approach__icon svg { width: 19px; height: 19px; }
.approach strong { display: block; font-weight: 500; font-size: 15.5px; }
.approach li span:not(.approach__icon) { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Percorso con linea */
.path { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 20px; }
.path::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--line-strong));
  border-radius: 2px;
}
.path__item { position: relative; padding-left: 40px; }
.path__dot {
  position: absolute; left: 0; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.path__item--cert .path__dot { background: var(--accent); }
.path__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(20px, 3vw, 28px); display: grid; gap: 8px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.path__card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.path__item--cert .path__card { background: var(--accent-soft); border-color: rgba(0, 0, 0, .2); }
.path__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.path__date { font-size: 14px; font-weight: 600; color: var(--ink); }
.path__type {
  font-size: 12.5px; font-weight: 500; color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px;
}
.path__item--cert .path__type { background: var(--surface); }
.path__card h3 { font-size: clamp(20px, 2.4vw, 24px); }
.path__role { font-size: 15px; color: var(--ink-soft); }
.path__card p:not(.path__role) { color: var(--muted); max-width: 46em; }
.tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--band); border: 1px solid var(--line); color: var(--ink-soft); }
.about-hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.about-hero__text > :nth-child(2) { animation-delay: .08s; }
.about-hero__text > :nth-child(3) { animation-delay: .16s; }
.about-hero__text > :nth-child(4) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .about-hero__text > * { animation: none; }
  .path__card { transition: none; }
  .path__card:hover { transform: none; }
}

/* =========================================================
   Pagina Competenze
   ========================================================= */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr; } }
.skill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.skill:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill__visual {
  height: 200px; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(0, 0, 0, .04), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(0, 0, 0, .05), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.skill__body { padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 12px; }
.skill__body h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; }
.skill__body p { color: var(--muted); }
.checks--2 { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 420px) { .checks--2 { grid-template-columns: 1fr; } }

/* Annuncio di esempio */
.ad-mock {
  width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: grid; gap: 6px; box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.ad-mock__tag { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.ad-mock__url { font-size: 12.5px; color: var(--muted); }
.ad-mock__title { font-size: 17px; color: #0a0a0a; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.ad-mock__line { height: 7px; border-radius: 4px; background: var(--band); margin-top: 4px; }
.ad-mock__line--short { width: 65%; margin-top: 0; }
.skill:hover .ad-mock { transform: translateY(-4px) rotate(-1deg); }

/* Sito di esempio */
.web-mock {
  width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.web-mock__bar { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.web-mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.web-mock__hero { padding: 14px 14px 10px; display: grid; gap: 6px; }
.web-mock__hero b { display: block; height: 10px; width: 70%; border-radius: 4px; background: var(--ink); }
.web-mock__hero b.short { width: 45%; }
.web-mock__hero s { display: block; width: 64px; height: 18px; border-radius: 5px; background: var(--accent); margin-top: 6px; }
.web-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 14px 14px; }
.web-mock__grid span { height: 38px; border-radius: 6px; background: var(--band); }
.skill:hover .web-mock { transform: translateY(-4px) rotate(1deg); }

@media (prefers-reduced-motion: reduce) {
  .skill, .ad-mock, .web-mock { transition: none; }
  .skill:hover, .skill:hover .ad-mock, .skill:hover .web-mock { transform: none; }
}

/* =========================================================
   Pagina Contatti
   ========================================================= */
.contact-hero { padding-bottom: clamp(72px, 10vw, 128px); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -20px rgba(0, 0, 0, .18);
  padding: 8px 24px 0;
}
.contact-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.contact-row__label { font-size: 13px; font-weight: 500; color: var(--accent); }
.contact-row__value { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-row__value:hover { color: var(--accent); }
.contact-row__actions { display: flex; gap: 8px; flex: none; }
.copy-btn { cursor: pointer; min-width: 74px; }
.copy-btn.is-copied { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.contact-panel__foot { margin: 0 -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 16px 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) {
  .contact-panel { padding: 4px 18px 0; }
  .contact-panel__foot { margin: 0 -18px; padding: 12px 18px; }
  .contact-row { flex-wrap: wrap; }
  .contact-row__text { flex-basis: calc(100% - 54px); }
  .contact-row__actions { width: 100%; padding-left: 54px; }
}

/* =========================================================
   Chi sono: date in colonna su desktop
   ========================================================= */
@media (min-width: 861px) {
  .path__card { grid-template-columns: 150px 1fr; column-gap: 28px; }
  .path__card > * { grid-column: 2; }
  .path__card > .path__head { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
}
@media (min-width: 861px) { .path__item--cert .path__card > .path__head { grid-row: 1 / span 2; } }

/* Footer sempre in fondo anche nelle pagine corte */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Contatti: email su una riga */
.contact-layout { grid-template-columns: 0.85fr 1.15fr; }
@media (min-width: 521px) { .contact-row__value { white-space: nowrap; overflow-wrap: normal; } }
@media (max-width: 1000px) and (min-width: 901px) { .contact-row__value { font-size: 16px; } }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .path__card { grid-template-columns: 190px 1fr; } }
.path__type { white-space: nowrap; }
@media (max-width: 520px) { .contact-row__value { font-size: clamp(13px, 4vw, 17px); white-space: nowrap; overflow-wrap: normal; } }

/* =========================================================
   Competenze: effetti sui riquadri
   ========================================================= */
.skill { position: relative; isolation: isolate; }
/* Luce che segue il mouse */
.skill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 0, 0, .09), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.skill:hover::before { opacity: 1; }
/* Bordo che si accende */
.skill::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 0, 0, .7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.skill:hover::after { opacity: 1; }
.skill__body, .skill__visual { position: relative; }

/* Annuncio: il cursore arriva e clicca il titolo */
.ad-mock { position: relative; }
.ad-mock__title { position: relative; width: fit-content; }
.ad-mock__title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.ad-mock__cursor {
  position: absolute; width: 22px; height: 22px; left: 78%; top: 110%;
  opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); pointer-events: none;
}
.ad-mock__ripple {
  position: absolute; left: 62%; top: 52%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.skill.is-visible .ad-mock__cursor, .skill:hover .ad-mock__cursor { animation: cursorClick 3.6s cubic-bezier(.4, 0, .2, 1) .6s infinite; }
.skill.is-visible .ad-mock__ripple, .skill:hover .ad-mock__ripple { animation: ripple 3.6s ease-out .6s infinite; }
.skill.is-visible .ad-mock__title::after { animation: underline 3.6s ease .6s infinite; }
@keyframes cursorClick {
  0%   { left: 82%; top: 115%; opacity: 0; transform: scale(1); }
  12%  { opacity: 1; }
  40%  { left: 60%; top: 46%; transform: scale(1); }
  46%  { transform: scale(.82); }
  52%  { transform: scale(1); }
  80%  { left: 60%; top: 46%; opacity: 1; }
  100% { left: 60%; top: 46%; opacity: 0; }
}
@keyframes ripple {
  0%, 44% { opacity: 0; transform: scale(.4); }
  48% { opacity: .9; transform: scale(1); }
  70% { opacity: 0; transform: scale(3.2); }
  100% { opacity: 0; }
}
@keyframes underline {
  0%, 45% { transform: scaleX(0); }
  52%, 82% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

/* Sito: i blocchi si costruiscono uno dopo l'altro */
.web-mock__hero b, .web-mock__hero s, .web-mock__grid span { transform-origin: left; }
.skill.is-visible .web-mock__hero b { animation: build .7s cubic-bezier(.2, .7, .2, 1) both; }
.skill.is-visible .web-mock__hero b.short { animation-delay: .15s; }
.skill.is-visible .web-mock__hero s { animation: pop .5s cubic-bezier(.3, 1.5, .5, 1) .35s both, btnPulse 2.4s ease-in-out 1.4s infinite; }
.skill.is-visible .web-mock__grid span { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.skill.is-visible .web-mock__grid span:nth-child(1) { animation-delay: .5s; }
.skill.is-visible .web-mock__grid span:nth-child(2) { animation-delay: .62s; }
.skill.is-visible .web-mock__grid span:nth-child(3) { animation-delay: .74s; }
@keyframes build { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes btnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .45); } 50% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); } }
.web-mock__grid span { transition: transform .3s ease, background .3s ease; }
.skill:hover .web-mock__grid span { background: var(--accent-soft); }
.skill:hover .web-mock__grid span:nth-child(1) { transform: translateY(-3px); }
.skill:hover .web-mock__grid span:nth-child(2) { transform: translateY(-5px); transition-delay: .05s; }
.skill:hover .web-mock__grid span:nth-child(3) { transform: translateY(-3px); transition-delay: .1s; }

/* Le competenze compaiono una alla volta */
.skill .checks li { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.skill.is-visible .checks li { opacity: 1; transform: none; }
.skill.is-visible .checks li:nth-child(1) { transition-delay: .35s; }
.skill.is-visible .checks li:nth-child(2) { transition-delay: .45s; }
.skill.is-visible .checks li:nth-child(3) { transition-delay: .55s; }
.skill.is-visible .checks li:nth-child(4) { transition-delay: .65s; }
.skill .checks li::before { transition: transform .3s ease; display: inline-block; }
.skill:hover .checks li::before { transform: scale(1.25); }

/* Kicker numerato che si colora */
.skill .kicker { transition: letter-spacing .3s ease; }
.skill:hover .kicker { letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  .ad-mock__cursor, .ad-mock__ripple { display: none; }
  .skill.is-visible .ad-mock__title::after,
  .skill.is-visible .web-mock__hero b, .skill.is-visible .web-mock__hero s, .skill.is-visible .web-mock__grid span { animation: none; }
  .skill .checks li { opacity: 1; transform: none; transition: none; }
  .web-mock__grid span { transition: none; }
  .skill:hover .web-mock__grid span { transform: none; }
}

/* =========================================================
   Sito orientato alla vendita
   ========================================================= */
.kicker--light { color: #a8a8a8; }
.final__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--wa { background: #0a0a0a; color: #fff; }
.btn--wa:hover { background: #0a0a0a; }

/* Perché Google Ads */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }
.benefit { display: grid; gap: 12px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit h3 { font-size: 20px; }
.benefit p { color: var(--muted); }

/* Servizi in Home */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.offer {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .2s ease;
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.offer:first-child { border-color: rgba(0, 0, 0, .35); box-shadow: 0 0 0 3px var(--accent-soft); }
.offer h3 { font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -0.035em; }
.offer p { color: var(--muted); }
.offer__tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--accent); padding: 4px 10px; border-radius: 999px; }
.offer__tag--alt { background: var(--ink); }
.offer .checks { padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 4px; }
.offer .card__go { margin-top: auto; text-decoration: none; }
.offer .card__go:hover { color: var(--accent); }
.offers__note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Come funziona */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.process__step { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 4px; }
.process__step h3 { font-size: 19px; }
.process__step p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 901px) {
  .process__step:not(:last-child)::after {
    content: ""; position: absolute; top: 19px; left: 44px; right: -10px; height: 1px;
    background: linear-gradient(to right, var(--line-strong), transparent);
  }
}
.process__step .step__num { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Costi */
.costs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cost { padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 10px; align-content: start; }
.cost + .cost { border-left: 1px solid var(--line); }
.cost h3 { font-size: 21px; }
.cost p { color: var(--muted); }
@media (max-width: 760px) { .costs { grid-template-columns: 1fr; } .cost + .cost { border-left: 0; border-top: 1px solid var(--line); } }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq-layout .lead a { color: var(--accent); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; font-size: 17px; letter-spacing: -0.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .25s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { padding: 0 0 20px; color: var(--muted); max-width: 46em; }

/* Contatti con modulo */
.contact-layout { align-items: start; }
.contact-intro { display: grid; gap: 28px; }
.contact-promises { margin: 0; }
.contact-direct { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-direct__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-direct__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.contact-direct__mail a { text-decoration: none; font-weight: 500; }
.contact-direct__mail a:hover { color: var(--accent); }

.lead-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -20px rgba(0, 0, 0, .18);
  padding: clamp(22px, 3.4vw, 34px); display: grid; gap: 16px;
}
.lead-form__title { font-size: 22px; letter-spacing: -0.03em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.lead-form__submit { justify-self: start; padding: 13px 20px; font-size: 15px; }
.lead-form__privacy { font-size: 13px; color: var(--muted); }
.lead-form__privacy a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .lead-form__submit { justify-self: stretch; } }

@media (prefers-reduced-motion: reduce) {
  .benefit, .offer { transition: none; }
  .benefit:hover, .offer:hover { transform: none; }
}
.hero h1 { max-width: 12ch; font-size: clamp(42px, 5.8vw, 70px); margin-top: 14px; }
.contact-hero h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 14ch; }

/* Home: servizi in primo piano */
.skill--home .skill__body { gap: 14px; }
.skill--home .offer__tag { justify-self: start; }
.skill--home h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; }
.skill__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.skill--home:first-child { border-color: rgba(0, 0, 0, .35); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero { overflow-x: clip; }

/* =========================================================
   Home: parte iniziale più convincente
   ========================================================= */
.btn--lg { padding: 13px 20px; font-size: 15px; }
.btn--wa-outline { border-color: #0a0a0a; color: #0a0a0a; background: var(--surface); }
.btn--wa-outline:hover { background: #f2f2f2; }
.hero h1 { max-width: 13ch; }
.hero__trust {
  list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.hero__trust li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.hero__trust strong { color: var(--ink); font-weight: 500; }
.hero__trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Card foto con badge e annuncio fluttuanti */
.showcase { padding: 0 12px 28px 0; }
.float-badge {
  position: absolute; top: 64px; right: -6px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 10px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35);
  animation: floatY 6s ease-in-out infinite;
}
.float-badge__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.float-badge__icon svg { width: 19px; height: 19px; }
.float-badge strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.float-badge small { display: block; font-size: 12px; color: var(--muted); }
.float-ad {
  position: absolute; left: -28px; bottom: 0; z-index: 3; width: min(300px, 80%);
  display: grid; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .4);
  animation: floatY 7s ease-in-out -2s infinite;
}
.float-ad__tag { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.float-ad__title { font-size: 16px; font-weight: 500; color: #0a0a0a; letter-spacing: -0.01em; }
.float-ad__url { font-size: 12.5px; color: var(--ok); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .showcase { padding: 0 0 28px; max-width: 460px; }
  .float-ad { left: 12px; }
  .float-badge { right: 12px; }
}
@media (max-width: 520px) {
  .float-badge { top: 56px; padding: 8px 10px 8px 8px; }
  .float-ad__title { font-size: 15px; }
  .hero__trust { gap: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) { .float-badge, .float-ad { animation: none; } }
.showcase { padding-bottom: 0; }

/* Foto in Home: niente alone colorato, solo ombra */
.showcase::before { content: none; display: none; }
.showcase__card { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 28px 56px -24px rgba(0, 0, 0, .28); }

/* =========================================================
   Bianco e nero: effetti
   ========================================================= */
/* Barra di avanzamento in cima */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: var(--ink); transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* Sottolineatura che si disegna sotto il titolo */
.mark {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0% .09em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: drawMark 1.1s cubic-bezier(.6, 0, .2, 1) .7s forwards;
}
@keyframes drawMark { to { background-size: 100% .09em; } }

/* Foto in bianco e nero che si colora al passaggio */
.showcase__photo img, .about-photo img { filter: grayscale(1) contrast(1.05); transition: filter .7s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.showcase:hover .showcase__photo img { filter: grayscale(0) contrast(1); }

/* Bottoni che si riempiono */
.btn--outline, .btn--wa-outline, .btn--light, .btn--ghost-light { position: relative; overflow: hidden; isolation: isolate; transition: color .3s ease, border-color .3s ease; }
.btn--outline::before, .btn--wa-outline::before, .btn--light::before, .btn--ghost-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.6, 0, .2, 1);
}
.btn--outline::before, .btn--wa-outline::before { background: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--ghost-light::before { background: #fff; }
.btn--outline:hover, .btn--wa-outline:hover { color: #fff; border-color: var(--ink); background: var(--surface); }
.btn--light:hover { color: #fff; background: #fff; box-shadow: inset 0 0 0 1px #fff; }
.btn--ghost-light:hover { color: var(--ink); }
.btn--outline:hover::before, .btn--wa-outline:hover::before, .btn--light:hover::before, .btn--ghost-light:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--wa-outline { border-color: var(--ink); color: var(--ink); }

/* Fascia scorrevole */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ticker__track span { font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.ticker__track i { font-style: normal; font-size: 12px; color: var(--faint); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Numeri dei passi che si accendono in sequenza */
.process__step .step__num { background: var(--surface); color: var(--ink); border-color: var(--ink); transition: background .4s ease, color .4s ease; }
.process__step.is-visible .step__num { background: var(--ink); color: #fff; }
.process__step.is-visible:nth-child(2) .step__num { transition-delay: .25s; }
.process__step.is-visible:nth-child(3) .step__num { transition-delay: .5s; }
.process__step.is-visible:nth-child(4) .step__num { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; background-size: 100% .09em; }
  .ticker__track { animation: none; }
  .btn--outline::before, .btn--wa-outline::before, .btn--light::before, .btn--ghost-light::before { transition: none; }
}

/* Foto sempre a colori */
.showcase__photo img, .about-photo img, .showcase:hover .showcase__photo img { filter: none; }

/* WhatsApp sempre verde */
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--wa-outline { border-color: #1fa855; color: #178a45; background: var(--surface); }
.btn--wa-outline::before { background: #1fa855; }
.btn--wa-outline:hover { color: #fff; border-color: #1fa855; }
.hero h1 { max-width: 14ch; } .hero h1 .mark { white-space: nowrap; }

/* =========================================================
   Home: "Cosa posso fare per te"
   ========================================================= */
.services-head { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.services-head h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 12px; }
.services-head p { color: var(--muted); font-size: 17px; }
@media (max-width: 820px) { .services-head { grid-template-columns: 1fr; } }

.svc-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.svc__top { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 0; }
.svc__num { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--faint); }
.svc__tag { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); }
.svc__visual { height: 210px; margin: 18px 26px 0; border-radius: 14px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc__body { padding: 26px; display: grid; gap: 14px; flex: 1; align-content: start; }
.svc__body h3 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.045em; line-height: 1.05; }
.svc__body > p { color: var(--muted); font-size: 16.5px; max-width: 34em; }
.svc__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.svc__list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); }
.svc__list li:last-child { border-bottom: 1px solid var(--line); }
.svc__list li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 10px; }
.svc__more { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink); display: inline-flex; gap: 6px; }
.svc__more:hover .arr { transform: translate(2px, -2px); }

/* Card in evidenza: nera */
.svc--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc--dark h3 { color: #fff; }
.svc--dark .svc__body > p { color: rgba(255, 255, 255, .68); }
.svc--dark .svc__num { color: rgba(255, 255, 255, .45); }
.svc--dark .svc__tag { background: #fff; color: var(--ink); border-color: #fff; }
.svc--dark .svc__visual { background: #1b1b1b; border-color: rgba(255, 255, 255, .1); }
.svc--dark .svc__list li { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88); }
.svc--dark .svc__list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.svc--dark .svc__more { color: #fff; }
.svc--dark::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .08), transparent 60%); }
.svc--dark::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .6), transparent 70%); }
.svc--dark .ad-mock { box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
.svc .skill__visual { padding: 24px; }
.svc.skill:hover { transform: translateY(-6px); }

.svc-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.svc-note span { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); font-weight: 600; font-size: 14px; background: var(--surface); }

@media (max-width: 520px) {
  .svc__top { padding: 18px 18px 0; }
  .svc__visual { margin: 14px 18px 0; height: 180px; }
  .svc__body { padding: 20px 18px 22px; }
  .svc__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .svc, .svc:hover { transition: none; transform: none; } }

/* =========================================================
   Servizi: più attenzione
   ========================================================= */
/* Bordo luminoso che gira intorno alla card nera */
@property --ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.svc__ring {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), transparent 0deg, transparent 250deg, rgba(255, 255, 255, .95) 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ringSpin 4.5s linear infinite;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }

/* Numeri grandi contornati */
.svc__num {
  font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.2px var(--line-strong);
  transition: -webkit-text-stroke-color .3s ease, color .3s ease;
}
.svc:hover .svc__num { -webkit-text-stroke-color: var(--ink); }
.svc--dark .svc__num { -webkit-text-stroke-color: rgba(255, 255, 255, .35); color: transparent; }
.svc--dark:hover .svc__num { -webkit-text-stroke-color: #fff; }
.svc__top { align-items: flex-end; }

/* Etichetta con puntino che pulsa */
.svc__tag { display: inline-flex; align-items: center; gap: 7px; }
.svc__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.svc__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: dotPing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes dotPing { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Notifiche d'esempio */
.svc__visual { position: relative; }
.notif {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px);
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px 9px 9px;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(12px) scale(.96);
}
.notif__icon { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.notif__icon svg { width: 16px; height: 16px; }
.notif strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.notif small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.svc.is-visible .notif--call { animation: notifIn 3.6s cubic-bezier(.2, .7, .2, 1) .6s infinite; }
.svc.is-visible .notif--form { animation: notifIn 4.2s cubic-bezier(.2, .7, .2, 1) 1.4s infinite; }
@keyframes notifIn {
  0%, 52% { opacity: 0; transform: translateY(12px) scale(.96); }
  60%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}

/* Entrata dai lati */
.svc-grid > .svc.reveal:nth-child(1) { transform: translateX(-40px); }
.svc-grid > .svc.reveal:nth-child(2) { transform: translateX(40px); transition-delay: .12s; }
.svc-grid > .svc.reveal.is-visible { transform: none; }
.svc-grid > .svc.reveal.is-visible:hover { transform: translateY(-6px); }

/* Freccia del bottone che invita al clic */
.svc__actions .btn .arr--r { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(4px); } }

/* Titolo della sezione: sottolineatura che si disegna */
.services-head h2 .mark { animation: none; }
.services-head.is-visible h2 .mark { animation: drawMark 1s cubic-bezier(.6, 0, .2, 1) .3s forwards; }

@media (max-width: 520px) {
  .notif { right: 10px; bottom: 10px; padding: 7px 10px 7px 7px; }
  .notif small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .svc__ring, .svc__dot::after, .svc__actions .btn .arr--r { animation: none; }
  .svc.is-visible .notif--call, .svc.is-visible .notif--form { animation: none; opacity: 1; transform: none; }
  .svc-grid > .svc.reveal:nth-child(n) { transform: none; }
  .services-head.is-visible h2 .mark { animation: none; background-size: 100% .09em; }
}

/* =========================================================
   Analisi gratuita in evidenza
   ========================================================= */
/* Barra in cima */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 9px var(--gutter); font-size: 14px; text-align: center;
}
.topbar__pill { background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.topbar__text { color: rgba(255, 255, 255, .82); }
.topbar__text strong { color: #fff; font-weight: 600; }
.topbar__go { font-weight: 600; display: inline-flex; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.topbar:hover .topbar__go .arr { transform: translateX(3px); }
@media (max-width: 640px) { .topbar__go { display: none; } .topbar { font-size: 13px; gap: 8px; } }

/* Riquadro 0 € nella parte iniziale */
.free-callout {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 470px;
  border: 1.5px dashed var(--ink); border-radius: 14px; padding: 12px 16px 12px 12px; background: var(--surface);
}
.free-callout__price {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.03em;
  animation: freePop 3s ease-in-out infinite;
}
.free-callout__text { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.free-callout__text strong { color: var(--ink); font-weight: 600; }
@keyframes freePop { 0%, 80%, 100% { transform: rotate(0) scale(1); } 86% { transform: rotate(-6deg) scale(1.06); } 92% { transform: rotate(4deg) scale(1.03); } }

/* Bollino nel blocco finale */
.final { position: relative; }
.free-stamp {
  position: absolute; right: 0; top: -8px; width: 132px; height: 132px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-content: center; text-align: center; gap: 2px;
  transform: rotate(-10deg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
  animation: stampSpin 14s linear infinite;
}
.free-stamp b { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.free-stamp small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
@keyframes stampSpin { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@media (max-width: 760px) { .free-stamp { position: static; width: 104px; height: 104px; margin-bottom: 8px; } .free-stamp b { font-size: 26px; } }

/* Etichetta nel modulo */
.lead-form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.free-pill { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) { .free-callout__price, .free-stamp { animation: none; } }

/* Modulo semplice */
.lead-form { gap: 14px; }
.lead-form .field span { font-size: 14.5px; color: var(--ink); }
.lead-form .field input { padding: 13px 14px; }
.lead-form__submit { justify-self: stretch; padding: 15px 20px; font-size: 15.5px; margin-top: 4px; }

/* Home senza foto: testo su tutta la larghezza */
.hero--solo .container { grid-template-columns: 1fr; }
.hero--solo .hero__text { max-width: 820px; }
.hero--solo h1 { max-width: 16ch; font-size: clamp(44px, 7vw, 88px); }
.hero--solo .lead { max-width: 34em; }

/* Chi sono con foto */
.about-hero__grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.about-showcase { max-width: 400px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .about-showcase { justify-self: start; max-width: 380px; } }

/* Home: parte iniziale centrata */
.hero--solo .hero__text { margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero--solo h1 { margin-left: auto; margin-right: auto; }
.hero--solo .lead { margin-left: auto; margin-right: auto; }
.hero--solo .hero__actions { justify-content: center; }
.hero--solo .free-callout { text-align: left; }
.hero--solo .hero__trust { justify-content: center; width: 100%; }

/* Etichetta grande sopra il titolo della Home */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px 9px 14px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .25);
}
.hero-badge b { color: var(--faint); font-weight: 400; }
.hero-badge .svc__dot { width: 8px; height: 8px; color: #1fa855; }
.hero-badge { font-size: clamp(16px, 2vw, 22px); padding: 11px 24px 11px 18px; gap: 12px; margin-bottom: 8px; }
.hero-badge .svc__dot { width: 10px; height: 10px; }
.hero-kicker { font-size: clamp(16px, 1.9vw, 21px); }

/* Vicenza in evidenza sotto "Consulente Google Ads" */
.hero-place {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-size: clamp(14px, 1.5vw, 16px); font-weight: 600; letter-spacing: .01em;
  padding: 7px 16px 7px 12px;
}
.hero-place svg { width: 17px; height: 17px; }

/* Home: sfondo sfumato dietro la parte iniziale */
.hero--solo { position: relative; isolation: isolate; }
.hero--solo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(0, 0, 0, .06), transparent 70%),
    linear-gradient(to bottom, #f4f4f4, #ffffff 85%);
}
.hero--solo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
}

/* Sfondo della Home che scende mentre scorri (parallasse) */
.hero--solo { overflow: clip; }
.hero--solo::before, .hero--solo::after {
  transform: translate3d(0, calc(var(--hero-shift, 0) * 1px), 0);
  will-change: transform;
}
.hero--solo::after { transform: translate3d(0, calc(var(--hero-shift, 0) * 1.6px), 0) scale(calc(1 + var(--hero-zoom, 0))); }
@media (prefers-reduced-motion: reduce) { .hero--solo::before, .hero--solo::after { transform: none; } }

/* =========================================================
   Sfondo sfumato + griglia con parallasse in cima a ogni pagina
   ========================================================= */
.about-hero, .page-head { position: relative; isolation: isolate; overflow: clip; }
.about-hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(0, 0, 0, .06), transparent 70%),
    linear-gradient(to bottom, #f4f4f4, #ffffff 85%);
  transform: translate3d(0, calc(var(--hero-shift, 0) * 1px), 0);
  will-change: transform;
}
.about-hero::after, .page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  transform: translate3d(0, calc(var(--hero-shift, 0) * 1.6px), 0) scale(calc(1 + var(--hero-zoom, 0)));
  will-change: transform;
}
/* Nelle pagine con testo a sinistra, la luce parte da sinistra */
.about-hero::before { background:
    radial-gradient(55% 60% at 20% 0%, rgba(0, 0, 0, .06), transparent 70%),
    linear-gradient(to bottom, #f4f4f4, #ffffff 85%); }
.about-hero::after { -webkit-mask-image: radial-gradient(75% 75% at 30% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(75% 75% at 30% 30%, #000 20%, transparent 75%); }
@media (prefers-reduced-motion: reduce) {
  .about-hero::before, .about-hero::after, .page-head::before, .page-head::after { transform: none; }
}

/* Navbar più grande */
.site-header .container { height: 80px; }
.brand { font-size: 17px; gap: 11px; }
.brand__mark { width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
.nav { gap: 8px; }
.nav a { font-size: 16px; padding: 8px 14px; }
.header-cta .btn--sm { font-size: 15px; padding: 11px 18px; }
@media (max-width: 820px) {
  .site-header .container { height: 68px; }
  .nav { top: 68px; }
  .menu-toggle { width: 44px; height: 44px; }
}

/* Sfondo in cima alle pagine: un po' più visibile */
.hero--solo::before, .page-head::before {
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(0, 0, 0, .09), transparent 70%),
    linear-gradient(to bottom, #eeeeee, #ffffff 85%);
}
.about-hero::before {
  background:
    radial-gradient(55% 60% at 20% 0%, rgba(0, 0, 0, .09), transparent 70%),
    linear-gradient(to bottom, #eeeeee, #ffffff 85%);
}
.hero--solo::after, .about-hero::after, .page-head::after {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .09) 1px, transparent 1px);
}

/* Home: invito "Gratis" al posto del bottone */
.free-cta {
  display: flex; align-items: center; gap: 18px; margin-top: 30px; text-align: left; text-decoration: none;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px;
  padding: 14px 20px 14px 14px; max-width: 560px; width: 100%;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.free-cta:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.free-cta:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.free-cta__badge {
  flex: none; display: grid; place-items: center; min-width: 96px; height: 64px; padding: 0 14px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  animation: freePop 3s ease-in-out infinite;
}
.free-cta__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.free-cta__text strong { font-size: clamp(17px, 1.8vw, 19px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.free-cta__text small { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.free-cta__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 18px; transition: background .2s ease, color .2s ease; }
.free-cta:hover .free-cta__go { background: var(--ink); color: #fff; }
.free-cta__go .arr { animation: nudge 1.8s ease-in-out infinite; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 500; color: #178a45; text-decoration: none; }
.hero-wa svg { width: 18px; height: 18px; }
.hero-wa:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .free-cta { gap: 12px; padding: 12px; box-shadow: 4px 4px 0 var(--ink); }
  .free-cta__badge { min-width: 76px; height: 54px; font-size: 17px; }
  .free-cta__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .free-cta__badge, .free-cta__go .arr { animation: none; } .free-cta { transition: none; } }
.hero--solo h1 { font-size: clamp(40px, 6.1vw, 76px); max-width: 17ch; }
.hero--solo h1 { max-width: 15ch; }


/* =========================================================
   Spazi bianchi più compatti
   ========================================================= */
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.services-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5.5vw, 72px); }
.about-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); }
.contact-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.hero__trust { margin-top: 22px; padding-top: 16px; }
.free-cta { margin-top: 24px; }
.hero-wa { margin-top: 14px; }
.svc-note { margin-top: 18px; }
.tl-item, .path__item { scroll-margin-top: 90px; }
.site-footer { padding: 22px 0 28px; }

/* Mobile: keep the about hero in one column after desktop overrides. */
@media (max-width: 860px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
  .about-hero__text { min-width: 0; }
  .about-hero h1 { max-width: 15ch; }
  .about-showcase { justify-self: center; width: 100%; max-width: 380px; padding: 0; }
  .about-showcase .showcase__card { width: 100%; min-width: 0; transform: none !important; }
  .about-showcase .showcase__bar { flex-wrap: wrap; gap: 6px 14px; }
  .about-showcase .float-badge { top: auto; bottom: 20px; right: 12px; left: auto; max-width: calc(100% - 24px); }
  .about-showcase:hover .showcase__photo img { transform: none; }
}
@media (max-width: 380px) {
  .about-hero h1 { font-size: 38px; }
  .about-hero .hero__actions { gap: 12px; }
  .site-header .brand { min-width: 0; }
}

/* Portfolio personale: allineamento e contenimento mobile */
html,body{max-width:100%;overflow-x:clip}.site-footer .container{align-items:center}.site-footer .brand{font-size:14px}.site-footer nav{align-items:center}.site-footer .brand__mark{flex:none}.svc__body>.btn{margin-top:22px}.hero--solo h1{max-width:18ch}.page-head .lead{max-width:40em}
@media(max-width:600px){.site-footer .container{align-items:flex-start}.site-footer nav{gap:16px;flex-wrap:wrap}.hero--solo h1{font-size:clamp(36px,10vw,54px)}}
