/* Forager — bold, sans, accenti scribble */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg:        #f7f7f5;
  --surface:   #ffffff;
  --surface-2: #fafaf9;
  --line:      #e7e5e4;
  --line-soft: #f1efed;

  --ink-200: #e4e4e7;
  --ink-300: #d4d4d8;
  --ink-400: #a1a1aa;
  --ink-500: #71717a;
  --ink-600: #52525b;
  --ink-700: #3f3f46;
  --ink-800: #27272a;
  --ink-900: #18181b;

  --accent:   #18181b;
  --accent-h: #27272a;
  /* niente viola nel marketing: gli "accenti" scribble sono neri, l'highlighter è giallo */
  --violet:   #18181b;
  --violet-soft: #f4f4f5;
  --violet-line: #e4e4e7;
  --yellow:   #fde047;
  --pink:     #fde047;
}

* { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
  position: relative;
}

/* ============ GRADIENT MESH HERO ============ */
.mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.mesh-bg::before, .mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.mesh-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: float-a 20s ease-in-out infinite;
}
.mesh-bg::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #fde047 0%, transparent 70%);
  top: 100px; right: -180px;
  opacity: 0.35;
  animation: float-b 25s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 50px) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(0.95); }
}
.hero-mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,24,27,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,24,27,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ============ FRECCE SCRIBBLE ============ */
.arrow-scribble {
  position: absolute;
  width: 110px; height: 70px;
  color: var(--violet);
  pointer-events: none;
}
.arrow-scribble path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-scribble .line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.5s ease .3s;
}
.arrow-scribble .head {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset .8s ease 1.6s;
}
.js-on .arrow-scribble.in-view .line { stroke-dashoffset: 0; }
.js-on .arrow-scribble.in-view .head { stroke-dashoffset: 0; }

.arrow-hero {
  top: -20px; right: 12%;
  transform: rotate(15deg);
}
.arrow-cta-final {
  position: absolute;
  width: 130px; height: 80px;
  top: -50px; left: 50%;
  transform: translateX(-130%) rotate(20deg);
  color: var(--violet);
}
.arrow-features {
  position: relative;
  display: inline-block;
  width: 80px; height: 50px;
  margin-left: 12px;
  vertical-align: middle;
  color: var(--ink-700);
}

/* ============ GLOBO TERRESTRE — radar/research ============ */
.globe-section {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.globe-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .globe-wrap { grid-template-columns: 1fr; } }
.globe-text h2 { margin-bottom: 16px; }
.globe-text .stats-mini {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 28px;
}
.globe-text .stats-mini > div {
  display: flex; align-items: center; gap: 10px;
}
.globe-text .stats-mini .dot {
  width: 8px; height: 8px; border-radius: 999px;
  position: relative;
}
.globe-text .stats-mini .dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  background: inherit;
  animation: ping 2s ease-out infinite;
}
.globe-text .stats-mini .dot.v { background: var(--ink-900); }
.globe-text .stats-mini .dot.e { background: #facc15; }
.globe-text .stats-mini .dot.a { background: var(--ink-400); }
.globe-text .stats-mini > div span:not(.dot) { font-size: 13px; color: var(--ink-700); font-weight: 500; }
@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(3); opacity: 0; }
}

/* === NETGRAPH: grafo prospect === */
.netgraph {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.netgraph svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.netgraph .net-edge {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: edge-draw 1.2s cubic-bezier(.5,0,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes edge-draw {
  to { stroke-dashoffset: 0; }
}
.netgraph .net-node {
  opacity: 0;
  transform-origin: center;
  animation: node-in .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
.netgraph .net-node.center { animation-delay: 0s; }
.netgraph .net-node[data-d="0.4s"]  { animation-delay: 0.4s; }
.netgraph .net-node[data-d="0.55s"] { animation-delay: 0.55s; }
.netgraph .net-node[data-d="0.7s"]  { animation-delay: 0.7s; }
.netgraph .net-node[data-d="0.85s"] { animation-delay: 0.85s; }
.netgraph .net-node[data-d="1.0s"]  { animation-delay: 1.0s; }
.netgraph .net-node[data-d="1.15s"] { animation-delay: 1.15s; }
.netgraph .net-node[data-d="1.3s"]  { animation-delay: 1.3s; }
.netgraph .net-node[data-d="1.45s"] { animation-delay: 1.45s; }
@keyframes node-in {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
.netgraph .pulse-ring {
  opacity: 0;
  transform-origin: center;
  animation: pulse-ring 2.2s ease-out infinite;
  animation-delay: 2s;
}
@keyframes pulse-ring {
  0%   { opacity: .9; stroke-width: 2; transform: scale(1); }
  100% { opacity: 0; stroke-width: 0; transform: scale(2); }
}
.netgraph svg [class*="pulse-ring"] { transform-box: fill-box; }

/* === TICKER LIVE === */
.ticker {
  margin: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  font-size: 13px;
}
.ticker-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  padding-right: 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ticker-label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--violet);
  animation: blink-fast 1.4s infinite;
}
@keyframes blink-fast { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0.2; } }
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.ticker-row {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 28px;
}
.ticker-row span {
  color: var(--ink-700);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-row span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--ink-300);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ MAGNIFIER LENS sul mockup ============ */
.mockup-wrap { position: relative; cursor: zoom-in; }
.mockup-wrap { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

/* ============ SPOTLIGHT CURSOR ============ */
.spotlight {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,224,71,0.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
  mix-blend-mode: multiply;
}
.spotlight.on { opacity: 1; }
@media (hover: none) { .spotlight { display: none; } }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ============ NAV — DESKTOP ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,247,245,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s;
}
.nav.scrolled {
  background: rgba(247,247,245,.92);
  box-shadow: 0 1px 0 var(--line), 0 4px 14px -8px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 18px;
  text-decoration: none; color: var(--ink-900);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 70;
  transition: transform .2s;
}
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink-900); color: white;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.4,1.5,.5,1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg { width: 15px; height: 15px; }
.brand-plus {
  color: var(--ink-300);
  font-weight: 400;
  margin: 0 4px;
  font-size: 14px;
}
.brand-claude {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  background: rgba(204,120,92,0.08);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(204,120,92,0.25);
  transition: background .2s, border-color .2s;
}
.brand-claude svg { width: 14px; height: 14px; }
.brand:hover .brand-claude { background: rgba(204,120,92,0.16); border-color: rgba(204,120,92,0.4); }
@media (max-width: 540px) { .brand-plus, .brand-claude { display: none; } }

/* === Desktop links con pillola animata === */
.nav-mid {
  display: flex; align-items: center;
  margin: 0 auto;
  position: relative;
  background: rgba(24,24,27,0.03);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid var(--line);
}
.nav-mid a {
  position: relative;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  border-radius: 999px;
  z-index: 2;
  transition: color .25s ease;
}
.nav-mid a:hover { color: var(--ink-900); }
.nav-mid a.active { color: var(--ink-900); font-weight: 600; }
/* sliding indicator */
.nav-mid .indicator {
  position: absolute;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  background: white;
  border-radius: 999px;
  z-index: 1;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), width .35s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  opacity: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  pointer-events: none;
}
.nav-mid:hover .indicator { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: white !important;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); }
.nav-cta:hover::before { transform: translateX(100%); }

/* === Hamburger button === */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  z-index: 70;
  transition: background .15s;
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.8px;
  background: var(--ink-900);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.55,0,.45,1), opacity .25s ease;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.nav-burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scale(0); }
.nav-burger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* === MOBILE OVERLAY MENU === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 90px 28px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,.84,.44,1), visibility .35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-mesh {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.mobile-menu-mesh::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  filter: blur(60px);
  opacity: .5;
  top: -100px; right: -100px;
  animation: float-a 20s ease-in-out infinite;
}
.mobile-menu-mesh::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, transparent 70%);
  filter: blur(60px);
  opacity: .4;
  bottom: -80px; left: -80px;
  animation: float-b 25s ease-in-out infinite;
}

.mobile-menu nav {
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.mobile-menu nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s, padding-left .3s cubic-bezier(.16,.84,.44,1);
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.open nav a {
  transform: translateY(0);
  opacity: 1;
  transition: transform .5s cubic-bezier(.16,.84,.44,1), opacity .5s ease, padding-left .3s cubic-bezier(.16,.84,.44,1), color .2s;
}
.mobile-menu.open nav a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .30s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .36s; }
.mobile-menu nav a:hover, .mobile-menu nav a:active {
  color: var(--violet);
  padding-left: 12px;
}
.mobile-menu nav a .arr {
  font-size: 0.6em;
  color: var(--ink-300);
  font-weight: 400;
  transition: transform .25s, color .2s;
}
.mobile-menu nav a:hover .arr, .mobile-menu nav a:active .arr {
  color: var(--violet);
  transform: translateX(8px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 32px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-500);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16,.84,.44,1) .45s, opacity .5s ease .45s;
}
.mobile-menu.open .mobile-menu-footer { transform: translateY(0); opacity: 1; }
.mobile-menu-footer .mm-cta {
  background: var(--ink-900);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.menu-open { overflow: hidden; }

/* === Responsive nav === */
@media (max-width: 880px) {
  .nav-mid { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 881px) {
  .mobile-menu { display: none; }
}

/* ============ TITOLI GIGANTI ============ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink-900);
}
h1 { font-size: clamp(60px, 12vw, 140px); letter-spacing: -0.055em; line-height: 0.92; font-weight: 700; }
h2 { font-size: clamp(48px, 9vw, 100px); letter-spacing: -0.05em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.025em; font-weight: 600; }

/* ============ EFFETTI SCRIBBLE ============ */
/* Highlight giallo dietro testo */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 0.05em; top: 30%;
  background: var(--yellow);
  z-index: -1;
  transform: skew(-3deg) rotate(-1deg);
  border-radius: 4px;
}
.hl.pink::before { background: var(--pink); }
.hl.violet::before { background: var(--violet-soft); border: 1px solid var(--violet-line); }

/* Cerchio disegnato a mano intorno a una parola */
.circ {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}
.circ::before {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  top: -8%; bottom: -8%;
  border: 3px solid var(--violet);
  border-radius: 50%;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Sottolineatura ondulata scribble */
.uwave {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.uwave::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q 10 0 20 4 T 40 4 T 60 4 T 80 4' stroke='%2318181b' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 80px 8px;
}
.uwave.black::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q 10 0 20 4 T 40 4 T 60 4 T 80 4' stroke='%2318181b' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
}

/* Underline retta semplice tipo penna */
.uline {
  background-image: linear-gradient(transparent calc(100% - 6px), var(--violet) calc(100% - 6px), var(--violet) calc(100% - 3px), transparent calc(100% - 3px));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 4px;
}

/* Freccia disegnata */
.arrow-cta {
  display: inline-block;
  position: relative;
  transition: transform .25s ease;
}
.arrow-cta::after {
  content: '→';
  margin-left: 8px;
  font-weight: 400;
  transition: transform .25s ease;
  display: inline-block;
}
.arrow-cta:hover::after { transform: translateX(6px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .2s;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent); color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px -8px rgba(0,0,0,.25);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 22px -8px rgba(0,0,0,.35); }
.btn-ghost { background: white; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-700); transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }

/* ============ TRUST BAR — Claude + GitHub ============ */
.trust-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
}
.trust-bar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.trust-bar .tb-item:hover { color: var(--ink-900); }
.trust-bar .tb-item strong { font-weight: 700; color: var(--ink-900); }
.trust-bar .sep {
  width: 1px; height: 18px;
  background: var(--line);
}
.claude-logo {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.gh-logo {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: blink-fast 1.8s infinite;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .trust-bar { padding: 8px 14px; font-size: 12.5px; gap: 12px; }
  .trust-bar .sep { display: none; }
}

/* === BUILT-ON STACK BAND === */
.built-on {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  text-align: center;
}
.built-on .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.built-on .item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-800);
}
.built-on .item svg { width: 18px; height: 18px; }
.hero h1 {
  margin-bottom: 32px;
  max-width: 18ch;
}
.hero p.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--ink-700);
  max-width: 64ch;
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* ============ MOCKUP (hero card) ============ */
.mockup {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 50px -28px rgba(0,0,0,.18);
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 999px; }
.mockup-bar .dot.r { background: #ff5f57; }
.mockup-bar .dot.y { background: #febc2e; }
.mockup-bar .dot.g { background: #28c840; }
.mockup-bar .url {
  margin-left: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink-500);
  background: white;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mockup-body { display: grid; grid-template-columns: 220px 1fr; min-height: 460px; }
.mockup-sb {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.mockup-sb-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); margin: 18px 6px 6px; }
.mockup-sb-section:first-child { margin-top: 0; }
.mockup-sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  color: var(--ink-600);
  border-radius: 7px;
  font-weight: 500; font-size: 12.5px;
}
.mockup-sb-item.active { background: white; color: var(--ink-900); font-weight: 600; border: 1px solid var(--line); }
.mockup-sb-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.mockup-main { padding: 28px 32px; }
.mockup-name { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.mockup-role { font-size: 14px; color: var(--ink-500); margin-top: 4px; margin-bottom: 14px; }
.mockup-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px; font-weight: 600;
}
.pill.violet  { background: #fff; color: var(--ink-700); border-color: var(--ink-300); }
.pill.amber   { background: #fff; color: var(--ink-700); border-color: var(--ink-300); }
.pill.emerald { background: var(--yellow); color: var(--ink-900); border-color: #facc15; }
.mockup-scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mockup-scores > div { padding: 14px 4px; text-align: center; border-right: 1px solid var(--line-soft); }
.mockup-scores > div:last-child { border-right: 0; }
.mockup-scores .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 700; margin-bottom: 6px; }
.mockup-scores .val { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mockup-scores .val .u { color: var(--ink-400); font-size: 12px; font-weight: 500; }
.mockup-scores .stars { color: var(--ink-900); font-size: 15px; letter-spacing: 1.5px; line-height: 1; }
.mockup-scores .stars .o { color: var(--ink-200); }
.mockup-summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.55;
  margin-bottom: 12px;
}
.mockup-next {
  background: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}
.mockup-next .lb { font-size: 10px; color: var(--yellow); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
@media (max-width: 720px) {
  .mockup-body { grid-template-columns: 1fr; min-height: 0; }
  .mockup-sb { display: none; }
  .mockup-main { padding: 22px 20px; }
}

/* ============ SECTIONS ============ */
section { padding: clamp(56px, 8vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 22ch; }

/* ============ FEATURE GRID ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.feat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.feat-card:hover {
  border-color: var(--ink-700);
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 30px -16px rgba(0,0,0,.18);
}
.feat-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feat-card p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
}

/* ============ METHOD ============ */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-step { padding: 20px 0 0; border-top: 3px solid var(--ink-900); }
.method-step .n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--violet);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.method-step h3 { font-size: 22px; margin-bottom: 8px; }
.method-step p { font-size: 14.5px; color: var(--ink-600); margin: 0; line-height: 1.5; }
@media (max-width: 720px) { .method { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }

/* ============ INSTALL ============ */
.code-block {
  background: var(--ink-900);
  color: white;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.9;
  padding: 22px 26px;
  margin: 24px 0;
  white-space: pre;
  overflow-x: auto;
  border-radius: 12px;
  position: relative;
}
.code-block .prompt { color: #8a8a8a; user-select: none; }
.code-block .cmt    { color: #8a8a8a; }
.code-block .copy {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.1);
  border: 0; color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.code-block .copy:hover { background: rgba(255,255,255,.2); }
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.req-grid .ttl { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.015em; }
.req-grid .d { font-size: 13.5px; color: var(--ink-600); line-height: 1.5; }

/* ============ NUMBERS ============ */
.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nums > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}
.nums .n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nums .l {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 640px) { .nums { grid-template-columns: 1fr 1fr; } }

/* ============ MANIFESTO (fascia scura) ============ */
.manifesto {
  background: var(--ink-900);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  margin: clamp(40px, 6vw, 80px) 0;
}
.manifesto h2 {
  color: #fff;
  margin: 0 0 20px;
}
.manifesto h2 .hl { color: var(--ink-900); }
.manifesto h2 .hl::before { background: var(--yellow); }
.manifesto p {
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
  margin: 0;
}

/* ============ FAQ ============ */
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--ink-700); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--ink-500);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* ============ FINAL CTA ============ */
.final {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.final h2 { margin: 0 auto 32px; max-width: 18ch; }
.final-actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============ FOOTER ============ */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
}
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink-900); }

/* ============ REVEAL (fail-safe) ============ */
.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.js-on .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none !important; opacity: 1 !important; transform: none !important; }
}
/* stagger children */
.stagger > * { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }
.stagger > *:nth-child(7) { transition-delay: 360ms; }
.stagger > *:nth-child(8) { transition-delay: 420ms; }

/* ============ EFFETTI SCRIBBLE — ANIMATI ALL'ENTRATA ============ */
.js-on .hl::before {
  transform-origin: left center;
  transform: skew(-3deg) rotate(-1deg) scaleX(0);
  transition: transform .9s cubic-bezier(.5, 0, .2, 1) .2s;
}
.js-on .hl.in-view::before {
  transform: skew(-3deg) rotate(-1deg) scaleX(1);
}
.js-on .circ::before {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(.5,0,.2,1) .3s;
}
.js-on .circ.in-view::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.js-on .uwave::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.5,0,.2,1) .25s;
}
.js-on .uwave.in-view::after { transform: scaleX(1); }

/* ============ MAGNETIC BUTTON (handled in JS) ============ */
.btn { will-change: transform; }

/* ============ TILT 3D CARD ============ */
.feat-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.feat-card.tilt-glow {
  position: relative;
}
.feat-card.tilt-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(253,224,71,0.13), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.feat-card.tilt-glow:hover::before { opacity: 1; }

/* ============ NUMBER COUNT-UP ============ */
.nums .n { transition: opacity .4s; }

/* ============ MOCKUP PARALLAX ============ */
.mockup-wrap { perspective: 1500px; }
.mockup {
  transition: transform .8s cubic-bezier(.16,.84,.44,1);
  transform-origin: center top;
}
.js-on .mockup-wrap.reveal .mockup {
  transform: perspective(1500px) rotateX(8deg);
}
.js-on .mockup-wrap.reveal.in .mockup {
  transform: perspective(1500px) rotateX(0deg);
}

/* ============ SCROLL BUTTON IN NAV (logo scale) ============ */
.nav.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* selettore lingua nav (i18n + hreflang) */
.nav-lang{font:600 12px/1 'Inter',system-ui,sans-serif;color:#71717a;text-decoration:none;padding:6px 8px;border-radius:6px;letter-spacing:.04em;transition:color .15s,background .15s}
.nav-lang:hover{color:#18181b;background:rgba(0,0,0,.05)}

/* ============ FEATURE GROUPS (v1.0) ============ */
.feat-group-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin: 44px 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.feat-group-label:first-of-type { margin-top: 8px; }
.feat-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.feat-group-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--yellow);
  border: 1.5px solid var(--ink-900);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ============ CICLO (5 step) ============ */
.method.cycle { grid-template-columns: repeat(5, 1fr); }
.method.cycle .method-step { position: relative; }
.method.cycle .method-step::after {
  content: '→';
  position: absolute;
  top: 22px; right: -19px;
  font-size: 16px;
  color: var(--ink-400);
}
.method.cycle .method-step:last-child::after { content: '↺'; color: var(--ink-900); }
@media (max-width: 880px) { .method.cycle { grid-template-columns: 1fr 1fr; } .method.cycle .method-step::after { display: none; } }
@media (max-width: 480px) { .method.cycle { grid-template-columns: 1fr; } }

/* =====================================================================
   FIX GRAFICI + STILI SITO FLASK (form download, admin, legal)
   Aggiunti 2026-06-15. Caricati dopo le regole base → vincono la cascata.
   ===================================================================== */

/* --- bug viola reali → giallo brand --- */
.spotlight {
  background: radial-gradient(circle, rgba(253,224,71,0.16) 0%, transparent 60%);
}
.feat-card.tilt-glow::before {
  background: radial-gradient(circle 200px at var(--mx,50%) var(--my,50%), rgba(253,224,71,0.13), transparent 50%);
}

/* --- accessibilità tastiera --- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- reduced motion: ferma le animazioni infinite/decorative --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- overflow mockup url su mobile --- */
.mockup-bar { min-width: 0; }
.mockup-bar .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* --- highlight: consenti il wrap (no overflow orizzontale) --- */
.hl { white-space: normal; }

/* --- numeri: cifre tabellari (no micro layout-shift nel count-up) --- */
.nums .n { font-variant-numeric: tabular-nums; }

/* --- legenda grafo coerente coi nodi gialli --- */
.stats-mini .dot.v { background: #facc15; }

/* --- contrasto commenti codice --- */
.code-block .cmt, .code-block .prompt { color: #a1a1aa; }

/* --- nodi grafo: origine scale corretta --- */
.netgraph .net-node { transform-box: fill-box; }

/* --- freccia scribble decorativa: via su mobile --- */
@media (max-width: 600px) { .arrow-cta-final { display: none !important; } }

/* =====================================================================
   FORM / PAGINE DI SERVIZIO
   ===================================================================== */
.page-narrow { max-width: 640px; margin: 0 auto; padding: 0 22px; }
.page-pad { padding-top: 120px; padding-bottom: 90px; }

.lead-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
  max-width: 1000px; margin: 0 auto; padding: 0 22px;
}
@media (max-width: 820px) { .lead-grid { grid-template-columns: 1fr; gap: 28px; } }

.dl-aside { position: sticky; top: 110px; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 'Inter',system-ui;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-900);
  background: var(--yellow); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px;
}
.dl-app-icon {
  width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center;
  background: #18181b; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); margin-bottom: 18px;
}
.dl-app-icon svg { width: 46px; height: 46px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: var(--ink-600); font-size: 13.5px; }
.dl-meta b { color: var(--ink-900); font-weight: 600; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 1px 0 var(--line-soft); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 12px/1 'Inter',system-ui; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-600); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 15px; font-family: inherit;
  color: var(--ink-900); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.field input::placeholder { color: var(--ink-400); }
.field input:focus { outline: none; border-color: var(--ink-900); background: #fff; }
.field .hint { font-size: 12px; color: var(--ink-500); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 14px 0; font-size: 13.5px; color: var(--ink-700); line-height: 1.5; }
.consent input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: #18181b; flex-shrink: 0; cursor: pointer; }
.consent a { color: var(--ink-900); text-decoration: underline; text-underline-offset: 2px; }
.consent.req { font-weight: 500; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.flash.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.flash.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.flash.info { background: #f4f4f5; border: 1px solid var(--line); color: var(--ink-700); }

.btn-block { width: 100%; justify-content: center; }

/* legal / privacy */
.legal { max-width: 760px; margin: 0 auto; padding: 0 22px; color: var(--ink-700); line-height: 1.7; font-size: 16px; }
.legal h2 { font-family: 'Space Grotesk',sans-serif; font-size: 22px; font-weight: 700; color: var(--ink-900); margin: 36px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 700; color: var(--ink-900); margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink-900); text-decoration: underline; text-underline-offset: 2px; }
.legal em { color: var(--ink-500); }

/* page hero compatto per pagine di servizio */
.svc-head { text-align: center; max-width: 620px; margin: 0 auto 38px; padding: 0 22px; }
.svc-head h1 { font-family: 'Space Grotesk',sans-serif; font-size: clamp(30px,5vw,46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 14px; }
.svc-head p { font-size: 17px; color: var(--ink-600); line-height: 1.55; }

/* footer link minimale per pagine di servizio */
.mini-footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 28px 22px; text-align: center; color: var(--ink-500); font-size: 13.5px; }
.mini-footer a { color: var(--ink-600); text-decoration: none; margin: 0 9px; }
.mini-footer a:hover { color: var(--ink-900); }

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 90px 22px 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-top h1 { font-family: 'Space Grotesk',sans-serif; font-size: 28px; font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 640px) { .admin-stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat .v { font-family: 'Space Grotesk',sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin-top: 8px; }

.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table.leads { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.leads th { text-align: left; font: 600 11px/1 'Inter',system-ui; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); padding: 13px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.leads td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-800); vertical-align: middle; }
table.leads tr:last-child td { border-bottom: 0; }
table.leads tr:hover td { background: var(--surface-2); }
.tag { display: inline-block; font: 700 10px/1 'Inter',system-ui; padding: 4px 8px; border-radius: 999px; }
.tag.yes { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag.no { background: #f4f4f5; color: var(--ink-500); border: 1px solid var(--line); }
.btn-mini { font: 600 12px/1 'Inter',system-ui; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); cursor: pointer; }
.btn-mini:hover { border-color: #ef4444; color: #ef4444; }
.btn-danger { color: #ef4444; }
.admin-empty { padding: 50px; text-align: center; color: var(--ink-500); }
.login-card { max-width: 380px; margin: 130px auto 0; }
.tbl-scroll { overflow-x: auto; }

/* =====================================================================
   ADMIN v1.1 — dashboard lead migliorata (ricerca, filtri, card mobile)
   ===================================================================== */
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }

/* header con brand */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-brand { display: inline-flex; align-items: center; gap: 13px; }
.admin-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--ink-900); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.admin-brand .brand-mark svg { width: 20px; height: 20px; }
.admin-brand h1 { font-family: 'Space Grotesk', sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.admin-brand .sub { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* statistiche: 4 colonne */
.admin-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .admin-stats { grid-template-columns: 1fr; } }
.stat { position: relative; overflow: hidden; }
.stat .v { display: flex; align-items: baseline; gap: 7px; }
.stat .v small { font-size: 13px; font-weight: 600; color: var(--ink-400); font-family: 'Inter', system-ui; letter-spacing: 0; }
.stat .l { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.stat .l .sd { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.stat.s-tot  .l .sd { background: var(--ink-900); }
.stat.s-new  .l .sd { background: var(--yellow); border: 1px solid #facc15; }
.stat.s-dl   .l .sd { background: #3b82f6; }
.stat.s-week .l .sd { background: #10b981; }

/* toolbar ricerca + filtri */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search { position: relative; flex: 1; min-width: 220px; }
.admin-search input { width: 100%; box-sizing: border-box; padding: 11px 14px 11px 40px; font-size: 14px; font-family: inherit; color: var(--ink-900); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.admin-search input:focus { outline: none; border-color: var(--ink-900); }
.admin-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-400); pointer-events: none; }
.admin-filter { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-700); cursor: pointer; user-select: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); white-space: nowrap; transition: border-color .15s, background .15s; }
.admin-filter:hover { border-color: var(--ink-300); }
.admin-filter input { accent-color: #18181b; width: 16px; height: 16px; cursor: pointer; }
.admin-count { font-size: 13px; color: var(--ink-500); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* identità lead: avatar iniziali + nome */
.lead-id { display: flex; align-items: center; gap: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-700); font: 700 12px/1 'Space Grotesk', sans-serif; }
.lead-name { font-weight: 600; color: var(--ink-900); }

/* header sticky dentro lo scroll */
.tbl-wrap { position: relative; }
table.leads th { position: sticky; top: 0; z-index: 2; }

/* badge extra */
.tag.dl    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag.muted { background: var(--surface-2); color: var(--ink-400); border: 1px solid var(--line); }
.lang-pill { display: inline-block; font: 700 10px/1 'Inter', system-ui; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; }

/* filtro ricerca */
tr.hide { display: none; }
.no-match { padding: 44px; text-align: center; color: var(--ink-500); }
.no-match.hide { display: none; }

/* card su mobile */
@media (max-width: 680px) {
  table.leads thead { display: none; }
  table.leads, table.leads tbody, table.leads tr, table.leads td { display: block; width: 100%; box-sizing: border-box; }
  table.leads tr { border-bottom: 1px solid var(--line); padding: 12px 6px; }
  table.leads tr:hover td { background: transparent; }
  table.leads td { border: 0 !important; padding: 5px 14px; }
  table.leads td[data-l]::before { content: attr(data-l) ":\00a0"; font: 600 11px/1.4 'Inter', system-ui; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); }
  table.leads td.cell-id::before { display: none; }
  table.leads td.actions { text-align: left; padding-top: 10px; }
}

/* =====================================================================
   HOME v1.1 — strumenti reali, card in evidenza, pannello corso, badge
   Aggiunti 2026-06-15. Stile sito: nero/bianco/giallo, Space Grotesk.
   ===================================================================== */

/* --- badge riutilizzabili (sostituiscono gli stili inline) --- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 10px/1 'Inter', system-ui; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 10px;
}
.badge .live-dot { width: 6px; height: 6px; }
.badge--live   { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }
.badge--soon   { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.badge--course { color: var(--ink-900); background: var(--yellow); border: 1px solid #facc15; }

/* --- card strumento in evidenza (Forager) --- */
.tool-feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(180deg, #fff, var(--surface-2));
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 3.2vw, 38px);
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .2s;
  margin-bottom: 16px;
}
.tool-feature:hover {
  border-color: var(--ink-700); transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 22px 44px -24px rgba(0,0,0,.22);
}
.tool-feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.03em;
  margin: 14px 0 10px;
}
.tool-feature p { font-size: 15px; color: var(--ink-600); line-height: 1.55; margin: 0; max-width: 48ch; }
.tf-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 600; font-size: 15px; }
.tool-feature:hover .tf-cta .arr { transform: translateX(5px); }
.tf-cta .arr { transition: transform .2s; }
.tf-visual { display: flex; flex-direction: column; gap: 10px; }
.tf-chip {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 14px; font-weight: 500; color: var(--ink-800);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: transform .2s, border-color .2s;
}
.tool-feature:hover .tf-chip { border-color: var(--ink-300); }
.tf-chip b { font-family: 'Space Grotesk', sans-serif; color: var(--ink-400); font-weight: 700; font-size: 13px; flex-shrink: 0; }
@media (max-width: 720px) { .tool-feature { grid-template-columns: 1fr; } .tf-visual { order: -1; } }

/* --- card strumento esterno (i progetti live) --- */
.tool-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.tool-card .ext { color: var(--ink-300); font-size: 17px; line-height: 1; transition: transform .2s, color .2s; }
.tool-card:hover .ext { color: var(--ink-900); transform: translate(3px, -3px); }
.tool-card h3 { margin-bottom: 8px; }
.tool-card p { flex: 1; }
.tool-domain {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-soft);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px;
  color: var(--ink-500); display: flex; align-items: center; gap: 7px;
}
.tool-domain svg { width: 13px; height: 13px; opacity: .6; }

/* --- pannello corso (sezione formazione) --- */
.course-panel {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 52px); align-items: center;
  background: linear-gradient(135deg, #fffdf2 0%, #ffffff 60%);
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 4vw, 54px); position: relative; overflow: hidden;
}
.course-panel::before {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, transparent 70%);
  filter: blur(70px); opacity: .55; top: -130px; right: -70px; pointer-events: none;
}
.course-main { position: relative; z-index: 2; }
.course-main h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.03em; line-height: 1;
  margin: 16px 0 12px;
}
.course-main p { font-size: 15.5px; color: var(--ink-700); line-height: 1.55; margin: 0 0 20px; max-width: 50ch; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.course-tags span {
  font-size: 12.5px; font-weight: 500; color: var(--ink-700);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.course-visual { position: relative; z-index: 2; }
.cv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -28px rgba(0,0,0,.22);
}
.cv-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-600);
}
.cv-play {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink-900); color: var(--yellow);
  display: grid; place-items: center; flex-shrink: 0;
}
.cv-play svg { width: 12px; height: 12px; }
.cv-row {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-800);
}
.cv-row + .cv-row { border-top: 1px solid var(--line-soft); }
.cv-row b { font-family: 'Space Grotesk', sans-serif; color: var(--ink-300); font-weight: 700; font-size: 13px; }
@media (max-width: 760px) { .course-panel { grid-template-columns: 1fr; } .course-visual { order: -1; } }

/* footer un po' più ricco */
.foot-links a { transition: color .15s; }
