/* =========================================================
   tela studio — Landing one-page
   Stile: moderno, chiaro, minimale (Linear / Vercel / Apple).
   Bianco, molto spazio, Inter, gerarchia forte, un solo accento.
========================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #F6F6F8;          /* sezioni alternate */
  --ink: #0D0D10;              /* testo / titoli (near-black) */
  --ink-2: #2C2C31;
  --muted: #6B6B75;            /* testo secondario */
  --line: #ECECEF;             /* hairline */
  --line-2: #E2E2E7;
  --accent: #4F46E5;           /* indigo (unico accento) */
  --accent-2: #6366F1;
  --accent-ink: #4338CA;
  --accent-tint: #EEF0FE;      /* sfondo tenue accento */
  --dark: #0C0C0F;             /* sezioni scure */
  --dark-2: #16161B;
  --green: #16A34A;
  --red: #E5484D;

  --maxw: 1080px;
  --maxw-wide: 1200px;

  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13,13,16,0.05), 0 1px 3px rgba(13,13,16,0.05);
  --shadow: 0 6px 16px rgba(13,13,16,0.06), 0 14px 40px rgba(13,13,16,0.07);
  --shadow-lg: 0 24px 70px rgba(13,13,16,0.14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --accent-warm: #FF6A3D;      /* accento caldo per le pennellate astratte */

  /* Pennellata vera (dry-brush): corpo pieno + setole + estremità sfrangiate */
  --brush-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 140' preserveAspectRatio='none'%3E%3Cfilter id='c' x='-3%25' y='-30%25' width='112%25' height='160%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.08' numOctaves='2' seed='6' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='13' result='d'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.9' numOctaves='2' seed='15' result='br'/%3E%3CfeColorMatrix in='br' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0.55'/%3E%3CfeComposite in='d' operator='in'/%3E%3C/filter%3E%3Cg filter='url(%23c)' fill='%23000'%3E%3Cpath d='M30,70 C120,50 280,42 430,50 C560,57 660,57 772,66 C760,75 690,94 560,98 C400,102 220,95 110,89 C70,87 36,85 30,74 Z'/%3E%3Cpath d='M745,62 C762,60 782,58 798,58 C782,63 762,66 746,68 Z'/%3E%3Cpath d='M748,72 C766,72 786,74 800,75 C786,77 766,76 748,77 Z'/%3E%3Cpath d='M740,82 C758,84 776,86 792,89 C776,87 758,85 742,84 Z'/%3E%3Cpath d='M30,64 C20,63 12,62 4,62 C12,66 22,68 31,70 Z'/%3E%3C/g%3E%3C/svg%3E");
  /* macchia di colore (dab) organica, irregolare */
  --brush-dab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cfilter id='bd'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.045' numOctaves='2' seed='7' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='24'/%3E%3C/filter%3E%3Ccircle filter='url(%23bd)' cx='60' cy='60' r='38' fill='%23000'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* blocca lo scroll del body quando il menu mobile è aperto */
body.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(79,70,229,0.16); }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 28px;
}
.narrow { max-width: 760px; }
.only-mobile { display: none; }

/* ===== Tipografia ===== */
h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* etichette (eyebrow / kicker) come pill discreta */
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.section-kicker-light {
  color: #C7C9F6;
  background: rgba(255,255,255,0.08);
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
}
.lead-light { color: rgba(255,255,255,0.66); }
.accent { color: var(--accent); }

/* ===== Bottoni ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 14px 8px;
}
.btn-link:hover { color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-full { width: 100%; margin-top: 4px; }

/* sezioni scure: bottoni chiari */
.section-dark .btn-primary { background: #fff; color: var(--ink); }
.section-dark .btn-primary:hover { background: #fff; opacity: 0.92; }

/* =========================================================
   HEADER
========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 28px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand .brand-la { position: relative; color: var(--accent); }
.brand .brand-la::after {
  content: "";
  position: absolute;
  left: -2px; right: -3px;
  bottom: -4px;
  height: 7px;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
}
.brand .brand-dot { color: var(--accent); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-la,
.footer-brand .brand .brand-dot { color: var(--accent-2); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-list a:hover { color: var(--ink); background: var(--bg-soft); }
/* la CTA nella lista nav serve solo nel menu mobile: nascosta su desktop */
.nav-cta-li { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform-origin: center; will-change: transform, opacity; transition: transform 0.28s var(--ease), opacity 0.18s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 13vh, 150px) 0 clamp(72px, 9vh, 110px);
}
/* backdrop moderno: glow tenue + griglia di punti sfumata */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob-1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(99,102,241,0.30), transparent 70%);
  top: -200px; left: 50%; transform: translateX(-60%);
}
.blob-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(255,106,61,0.16), transparent 70%);
  top: -100px; right: -90px;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(13,13,16,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 30%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 55% at 50% 30%, #000, transparent 72%);
}

/* pennellate di sfondo: orientamenti misti, si "tracciano" una dopo l'altra */
.hs {
  position: absolute;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  animation: heroStroke 0.75s var(--ease) forwards;
  will-change: clip-path;
}
@keyframes heroStroke {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 -4% 0 0); }
}
.hs-1 { top: 11%; left: 5%;    width: clamp(150px, 19vw, 290px); height: 58px; transform: rotate(-34deg); opacity: 0.34; animation-delay: 0.30s; }
.hs-2 { top: 14%; right: 6%;   width: clamp(140px, 17vw, 260px); height: 52px; transform: rotate(46deg);  opacity: 0.30; animation-delay: 0.70s; background: var(--accent-warm); }
.hs-3 { top: 43%; left: 2.5%;  width: clamp(120px, 14vw, 210px); height: 46px; transform: rotate(78deg);  opacity: 0.26; animation-delay: 1.10s; background: #9B6BE8; }
.hs-4 { bottom: 13%; right: 7%; width: clamp(150px, 18vw, 280px); height: 54px; transform: rotate(-24deg); opacity: 0.34; animation-delay: 1.50s; }
.hs-5 { bottom: 19%; left: 8%; width: clamp(140px, 17vw, 250px); height: 50px; transform: rotate(15deg);  opacity: 0.28; animation-delay: 1.90s; background: #F5B73D; }

/* macchie di colore (dab) — come gocce su una tela */
.dab {
  position: absolute;
  background: var(--accent);
  -webkit-mask: var(--brush-dab) center / 100% 100% no-repeat;
          mask: var(--brush-dab) center / 100% 100% no-repeat;
  opacity: 0;
  transform: scale(0.5);
  animation: dabPop 0.55s var(--ease) forwards;
  will-change: transform, opacity;
}
@keyframes dabPop { to { opacity: var(--o); transform: scale(1); } }
.dab-1 { top: 25%; left: 15%;   width: 62px; height: 62px; background: var(--accent);      --o: 0.26; animation-delay: 0.55s; }
.dab-2 { top: 13%; right: 23%;  width: 52px; height: 52px; background: #F5B73D;            --o: 0.32; animation-delay: 1.00s; }
.dab-3 { bottom: 25%; left: 23%; width: 56px; height: 56px; background: var(--accent-warm); --o: 0.28; animation-delay: 1.70s; }
.dab-4 { bottom: 15%; right: 21%; width: 46px; height: 46px; background: #9B6BE8;           --o: 0.26; animation-delay: 2.20s; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { margin-bottom: clamp(26px, 3.6vh, 40px); }
/* parola evidenziata con pennellata vera */
.brush-word { position: relative; white-space: nowrap; }
.brush-word .brush {
  position: absolute;
  left: -3%; right: -3%;
  bottom: -0.12em;
  height: 0.36em;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.hero-inner.visible .brush-word .brush {
  animation: brushReveal 0.85s var(--ease) 0.45s forwards;
}
@keyframes brushReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 -4% 0 0); }
}

.hero-tagline {
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 500;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto clamp(34px, 4.6vh, 48px);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}
.hero-price { font-size: clamp(17px, 1.45vw, 19px); color: var(--ink-2); }
.hero-price strong { color: var(--ink); font-weight: 700; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 16px;
}
.hero-trust li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 13px; height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.hero-scroll {
  position: absolute;
  left: 50%; bottom: clamp(20px, 4vh, 38px);
  transform: translateX(-50%);
  z-index: 1;
  width: 24px; height: 38px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
}
.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollCue 1.8s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(11px); }
  100% { opacity: 0; transform: translateY(11px); }
}

/* =========================================================
   SEZIONI
========================================================== */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4em;
  margin-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 150px;
  height: 0.32em;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.section-head.visible h2::after { animation: brushReveal 0.7s var(--ease) 0.3s forwards; }
.section-dark .section-head h2::after { background: #fff; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-cta { margin-top: 36px; text-align: center; }
.offer-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 28px; }
.offer-note strong { color: var(--ink); font-weight: 600; }

.pullquote {
  max-width: 800px;
  margin: 56px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-dark .pullquote { color: #fff; }

/* Callout di chiusura "Come funziona" — stesso linguaggio dei titoli del sito */
.closing-callout {
  max-width: 720px;
  margin: clamp(44px, 6vw, 64px) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing-headline {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  padding-bottom: 0.32em;
  margin-bottom: 16px;
}
.closing-headline::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; height: 0.3em;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.closing-callout.visible .closing-headline::after { animation: brushReveal 0.7s var(--ease) 0.25s forwards; }
.closing-sub {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
}

/* Blocco missione (Chi siamo) — pannello coerente con le card del sito */
.mission {
  max-width: 820px;
  margin: clamp(44px, 6vw, 64px) auto 0;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mission h3 {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  padding-bottom: 0.3em;
  margin: 2px 0 20px;
}
.mission h3::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 72%; height: 0.3em;
  background: var(--accent);
  -webkit-mask: var(--brush-stroke) center / 100% 100% no-repeat;
          mask: var(--brush-stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
}
.mission.visible h3::after { animation: brushReveal 0.7s var(--ease) 0.3s forwards; }
.mission p {
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}
.mission strong { color: var(--ink); font-weight: 600; }
.mission p.mission-quote {
  width: 100%;
  max-width: none;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--accent-ink);
}

/* ===== Card grid ===== */
.cards-grid { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* =========================================================
   FASCIA NUMERI
========================================================== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 4.5vw, 56px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-figure { position: relative; display: inline-block; }
.stat-brush { display: none; }
.stat.painted .stat-brush { animation: brushReveal 0.55s var(--ease) forwards; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
}
.stat.painted .stat-num { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 500; }

/* =========================================================
   OFFERTA — include + smartphone + due prezzi
========================================================== */
.offer-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.include-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.include-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.include-item:last-child { border-bottom: none; }
.include-item .tick {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.include-item strong { display: block; font-size: 16px; font-weight: 600; }
.include-item span:not(.tick) { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* smartphone moderno con sito in auto-scroll */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative;
  width: clamp(238px, 26vw, 280px);
  aspect-ratio: 280 / 580;
  background: #0D0D10;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 18px;
  background: #0D0D10;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
}
.phone-screen img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: auto;
  display: block;
  will-change: transform;
  animation: phoneScroll 52s linear infinite alternate;
}
@keyframes phoneScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-88.2%); }
}
.phone-caption { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }

/* prezzi */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: clamp(44px, 6vw, 64px) auto 0;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.section-alt .price-card { background: #fff; }
.price-card { cursor: pointer; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-card.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.price-card.selected:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.price-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.price-badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}
.price-kind {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 10px 0 2px;
  line-height: 1;
}
.price-amount .per { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.price-amount .vat { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 2px; min-height: 38px; }
.price-feats {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-feats li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.price-feats li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* =========================================================
   CASI STUDIO
========================================================== */
.case-grid { gap: 24px; }
.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-cover {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.case-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease); }
.case-card:hover .case-shot { transform: scale(1.04); }
.case-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13,13,16,0);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.case-card:hover .case-hover { opacity: 1; background: rgba(13,13,16,0.45); }
.case-info { padding: 24px 26px 28px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.case-info h3 { font-size: 21px; margin-bottom: 8px; }
.case-info p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.case-link { font-weight: 600; font-size: 14.5px; color: var(--accent); }
.case-card:hover .case-link { color: var(--accent-ink); }

/* =========================================================
   ESCLUSIONI (sezione scura)
========================================================== */
.excl-title {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 4px 0 26px;
}
.exclude-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  max-width: 720px;
  margin: 0 auto;
}
.exclude-list li {
  position: relative;
  padding: 13px 0 13px 30px;
  color: rgba(255,255,255,0.66);
  font-size: 15.5px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.exclude-list li::before {
  content: "×";
  position: absolute;
  left: 4px; top: 11px;
  color: rgba(255,255,255,0.38);
  font-size: 18px;
}
.note-line {
  text-align: center;
  margin-top: 38px;
  font-weight: 500;
  font-size: 17px;
  color: rgba(255,255,255,0.82);
}

/* =========================================================
   CHI SIAMO
========================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.founder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.section-alt .founder { background: #fff; }
.founder h3 { margin-bottom: 12px; color: var(--ink); }
.founder p { color: var(--muted); font-size: 15px; }

/* logo wall a scorrimento */
.companies-marquee { margin-top: 56px; text-align: center; }
.companies-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.marquee-frame {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.03em;
  color: #B7B7C0;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee-item:hover { color: var(--ink); }
.marquee-item .logo-arrow { display: none; }

/* =========================================================
   FAQ
========================================================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--line-2); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-icon { flex: 0 0 auto; position: relative; width: 16px; height: 16px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); }
.faq-answer p { color: var(--muted); font-size: 16px; padding: 0 22px 22px; }

/* =========================================================
   FORM
========================================================== */
.two-col-form { align-items: start; gap: 56px; }
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.req { color: var(--accent); }
.lead-form input, .lead-form textarea {
  font-family: var(--font);
  font-size: 16px; /* 16px = evita lo zoom automatico al focus su iOS Safari */
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #A4A4AE; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
}
.lead-form textarea { resize: vertical; }
.error-msg { font-size: 13px; color: var(--red); }
.lead-form input.invalid, .field-consent.invalid input { border-color: var(--red); }
.form-feedback { font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.form-feedback.ok { color: var(--green); }
.form-feedback.err { color: var(--red); }

.field-consent { margin-top: 2px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 2px;
  width: 17px; height: 17px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: var(--accent); text-decoration: underline; }
.field-consent.invalid .consent span:not(.req) { color: var(--red); }

.price-tag { margin-top: 24px; }
.price-tag-light strong { color: #fff; font-weight: 600; }
.price-tag-light { color: rgba(255,255,255,0.7); font-size: 15px; }

/* =========================================================
   CTA MOBILE FISSA (barra in basso, solo smartphone)
========================================================== */
.mobile-cta {
  display: none; /* attivata solo nel breakpoint mobile */
}

/* =========================================================
   FOOTER
========================================================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 10px; font-size: 14px; max-width: 280px; }
.footer-meta { text-align: right; font-size: 14px; line-height: 1.9; }
.footer-meta a { color: rgba(255,255,255,0.6); }
.footer-meta a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* =========================================================
   ANIMAZIONI (reveal)
========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   PAGINA LEGALE (privacy.html)
========================================================== */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 18px; }
.legal-content > .lead { margin-bottom: 8px; }
.legal-content section { margin-top: 40px; }
.legal-content h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 14px;
}
.legal-content p,
.legal-content ul { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { padding-left: 24px; margin: 8px 0 16px; list-style: disc; }
.legal-content ul li { margin-bottom: 6px; color: var(--ink-2); }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content code {
  background: var(--accent-tint);
  color: var(--accent-ink);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "SF Mono", Menlo, Monaco, monospace;
}
.legal-placeholder {
  background: #FFF8E6;
  border: 1px solid #F3D58A;
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 24px 0 8px;
  font-size: 14.5px;
  color: #6B5215;
  line-height: 1.55;
}
.legal-placeholder code { background: rgba(0,0,0,0.06); color: #6B5215; }
.legal-date {
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .offer-layout { grid-template-columns: 1fr; gap: 48px; max-width: 520px; }
  .phone-wrap { order: -1; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  body { font-size: 16px; }
  .only-mobile { display: inline; }
  .hero { min-height: 90svh; }

  /* HERO mobile: sfondo più pulito per non disturbare la lettura.
     Restano solo il glow tenue e la griglia di punti; via pennellate e macchie. */
  .hs, .dab { display: none; }
  .blob { opacity: 0.34; filter: blur(70px); }
  .hero-dots { opacity: 0.6; }

  /* più respiro nel titolo (le due righe non più "appiccicate") + ritmo verticale */
  .hero h1 { line-height: 1.1; margin-bottom: 24px; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero-tagline { margin-bottom: 34px; }
  .hero-cta { margin-bottom: 24px; }
  .hero-trust { margin-top: 20px; gap: 12px 22px; }

  .header-inner { height: 60px; }
  .nav {
    position: fixed;
    inset: 60px 0 auto 0;
    /* fondo pieno opaco: niente blur animato (causa di scatti su mobile) */
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(13, 13, 16, 0.07);
    transform: translateY(-145%);
    transition: transform 0.34s var(--ease);
    will-change: transform;
    z-index: 90;
    margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 24px 22px; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 15px 4px; font-size: 17px; border-radius: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .two-col, .founders, .cards-3, .field-row { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .exclude-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

  .form-wrap { padding: 24px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .section-head { margin-bottom: 40px; }
  .price-note { min-height: 0; }

  /* gutter più stretto: più spazio ai contenuti su schermi piccoli */
  .container { padding: 0 20px; }

  /* CTA hero: pulsante principale a tutta larghezza, gerarchia chiara */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-cta .btn { width: 100%; }

  /* CTA dentro il menu mobile (l'header-cta è nascosto su mobile) */
  .nav-cta-li { display: block; border-bottom: none !important; padding-top: 14px; }
  .nav-list .nav-cta {
    padding: 15px 20px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
  }
  .nav-list .nav-cta:hover,
  .nav-list .nav-cta:active { background: #000; color: #fff; }

  /* barra CTA fissa in basso: comparsa dopo l'hero, nascosta vicino al form */
  .mobile-cta {
    position: fixed;
    left: 16px; right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: var(--r-sm);
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    text-align: center;
    box-shadow: 0 10px 30px rgba(79,70,229,0.42);
    transform: translateY(160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  }
  .mobile-cta.visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  /* col menu aperto la barra fissa si ritira (niente sovrapposizioni) */
  body.menu-open .mobile-cta {
    transform: translateY(160%);
    opacity: 0;
    pointer-events: none;
  }
}

/* telefoni piccoli: scala l'h1 per evitare overflow di "il tuo sito." (nowrap) */
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero .eyebrow { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none; }
  .brush-word .brush, .stat-brush, .section-head h2::after, .hs { clip-path: none; animation: none; }
  .dab { opacity: var(--o); transform: scale(1); animation: none; }
  .hero-scroll::before { animation: none; }
  .phone-screen img { animation: none; }
  .marquee-track { animation: none; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
