:root {
  --ink: #000;
  --ink-2: #111;
  --paper: #fff;
  --paper-2: #f5f5f5;
  --line: #e6e6e6;
  --muted: #6b6b6b;
  --yellow: #f2e821;
  --blue: #021bff;
  --red: #f41d38;
  --red-text: #c8102e; /* rosso brand scurito per testi piccoli: contrasto 5,9:1 su bianco */
  --pink: #ff4590;
  --green: #09975d;
  --radius: 22px;
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* Mockup ribbon */
.mock-ribbon {
  background: var(--ink);
  color: var(--yellow);
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 400; font-size: 16px; }
.nav a { text-decoration: none; opacity: .75; }
.nav a:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; padding: 17px 28px;
  font: 500 17px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { box-shadow: 6px 6px 0 var(--yellow); transform: translate(-2px,-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 6px 6px 0 var(--blue); transform: translate(-2px,-2px); }
.btn-sm { padding: 12px 20px; font-size: 14px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow.red { color: var(--red-text); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.yellow { color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
.display {
  font-weight: 800; font-size: clamp(46px, 6.6vw, 98px);
  line-height: .95; text-transform: none;
}
.h2 { font-weight: 700; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }
.h3 { font-weight: 700; font-size: 26px; line-height: 1.1; }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 60ch; color: #222; }
.hl-red { color: var(--red); }
.hl-blue { color: var(--blue); }
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .06em;
}
.muted { color: var(--muted); }

/* Brand glyph: triangoli Hanami */
.glyph { display: inline-block; width: 30px; height: 26px; flex: none; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .display { margin: 22px 0 26px; }
.hero-title { font-size: clamp(44px, 5.2vw, 80px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--green); font-weight: 700; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-visual .halo {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(242,232,33,.55), rgba(242,232,33,0) 62%);
  filter: blur(4px);
}
.hero-visual img.art { position: relative; width: 100%; height: 100%; object-fit: contain; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font: 500 13px/1 var(--mono); padding: 10px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  animation: float 6s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.chip.blue i { background: var(--blue); box-shadow: 0 0 0 3px rgba(2,27,255,.25); }
.chip.red i { background: var(--red); }
.chip.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.chip b { font-weight: 500; color: var(--yellow); }
.chip.light b { color: var(--blue); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Trust bar */
.trust { border-block: 1px solid var(--line); padding: 26px 0; }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust-badges { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust-badges img { height: 46px; width: auto; }
.badge-dark { background: var(--ink); border-radius: 12px; padding: 8px 12px; }
.trust-stat { display: flex; flex-direction: column; }
.trust-stat strong { font: 800 34px/1 var(--display); letter-spacing: -.02em; }
.trust-stat span { font-size: 14px; color: var(--muted); }

.logos { overflow: hidden; padding: 30px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.logos-track img { height: 42px; width: auto; filter: grayscale(1); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section.block { padding: 112px 0; }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.block-head .h2 { margin-top: 16px; }
.bg-soft { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .lead { color: #d8d8d8; }
.bg-ink .muted { color: #a3a3a3; }

/* Problem cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: 34px 30px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.card .num { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.card .h3 { margin: 18px 0 12px; }
.card p { margin: 0; color: #333; font-size: 17px; }
.card .tag { margin-top: 22px; display: inline-block; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-radius: 999px; background: var(--paper-2); }

/* Funnel diagram */
.funnel-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.funnel { display: grid; gap: 12px; }
.f-row { display: grid; grid-template-columns: 140px 1fr 70px; align-items: center; gap: 18px; }
.f-row .label { font-weight: 500; font-size: 17px; }
.f-row .bar { height: 46px; border-radius: 12px; background: #2a2a2a; position: relative; overflow: hidden; }
.f-row .bar span { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: #3d3d3d; }
.f-row.focus .bar span { background: var(--blue); }
.f-row.focus .label { color: var(--yellow); }
.f-row .note { font: 500 12px/1.2 var(--mono); color: #9b9b9b; text-align: right; }
.f-row.focus .note { color: var(--yellow); }
.f-callout {
  margin-top: 26px; display: flex; gap: 14px; align-items: flex-start;
  border: 1px dashed #555; border-radius: 16px; padding: 18px 20px; font-size: 16px; color: #ddd;
}

/* Method */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.step { padding: 30px 26px 10px 0; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step .when { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.step .h3 { margin: 16px 0 12px; font-size: 24px; }
.step p { font-size: 16px; color: #333; margin: 0 0 16px; }
.step .out { font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.step .out b { font-weight: 500; }
.step::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink);
}
.step + .step::before { left: 26px; }
.step:last-child::before { background: var(--red); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; min-height: 360px; }
.case.c1 { background: var(--yellow); }
.case.c2 { background: var(--blue); color: var(--paper); }
.case.c3 { background: var(--ink); color: var(--paper); }
.case .ctx { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.case .big { font: 800 clamp(52px, 5vw, 76px)/.9 var(--display); letter-spacing: -.03em; margin: auto 0 8px; }
.case .what { font-size: 17px; }
.case .sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid currentColor; font-size: 15px; opacity: .85; display: grid; gap: 4px; }
.source-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Testimonial and team */
.testimonial-card {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(32px, 6vw, 80px); align-items: end;
  padding: clamp(36px, 6vw, 72px); border-radius: 32px; background: var(--ink); color: var(--paper);
}
.testimonial-card blockquote { margin: 24px 0 0; font: 700 clamp(30px, 4vw, 52px)/1.08 var(--display); letter-spacing: -.02em; }
.testimonial-meta { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid #444; }
.testimonial-meta strong { font: 700 22px/1.1 var(--display); }
.testimonial-meta span { color: #cfcfcf; }
.testimonial-meta a, .stat-side a { color: inherit; text-underline-offset: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { min-width: 0; }
.team-card img { display: block; width: 100%; aspect-ratio: 384 / 420; object-fit: cover; border-radius: 22px; background: var(--paper-2); }
.team-card h3 { margin: 18px 0 5px; font-size: 22px; }
.team-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Offer / deliverables */
.offer { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.offer-card { border-radius: 28px; padding: 44px; background: var(--paper); border: 1.5px solid var(--ink); }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 18px; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 3px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.quiz-preview {
  border-radius: 28px; padding: 36px; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
}
.quiz-preview .q { font: 700 26px/1.15 var(--display); }
.qp-opt { border: 1px solid #333; border-radius: 14px; padding: 14px 16px; font-size: 16px; display: flex; justify-content: space-between; }
.qp-opt.on { border-color: var(--yellow); color: var(--yellow); }
.qp-bar { height: 6px; border-radius: 6px; background: #262626; overflow: hidden; }
.qp-bar span { display: block; height: 100%; width: 38%; background: var(--yellow); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 500 22px/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 30px; line-height: .8; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; max-width: 70ch; color: #333; }
.todo { font: 500 11px/1 var(--mono); background: var(--pink); color: var(--paper); padding: 4px 8px; border-radius: 6px; vertical-align: middle; margin-left: 8px; letter-spacing: .06em; }

/* Final CTA */
.final { padding: 32px 0 112px; }
.final-box {
  border-radius: 36px; background: var(--yellow); padding: clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; position: relative; overflow: hidden;
}
.final-box .display { font-size: clamp(42px, 5.4vw, 80px); }
.final-box .glyph-big { position: absolute; right: -40px; top: -40px; width: 260px; height: 230px; opacity: .95; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Consent fallback: viene sostituito da iubenda quando gli ID reali sono configurati. */
.consent-banner {
  position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px;
  max-width: 760px; margin-inline: auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--ink); color: var(--paper); border: 1px solid #333; border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.3); font-size: 16px;
}
.consent-banner p { margin: 0; }
.consent-banner div { display: flex; gap: 10px; flex: none; }
.consent-banner button { border: 1px solid #777; border-radius: 999px; padding: 11px 16px; background: transparent; color: var(--paper); cursor: pointer; font: 500 14px var(--display); }
.consent-banner button[data-consent="accept"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .funnel-wrap, .offer, .final-box, .block-head, .testimonial-card { grid-template-columns: 1fr; }
  .cards-3, .cases { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step + .step::before { left: 0; }
  section.block { padding: 76px 0; }
  .f-row { grid-template-columns: 96px 1fr 56px; gap: 10px; }
  .offer-card, .quiz-preview { padding: 28px; }
  .team-grid { gap: 24px 14px; }
  .team-card h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Promessa in prima schermata */
.promise { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 12px; align-items: baseline; font-size: 18px; }
.promise li b { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); min-width: 92px; }
.hero-dark .promise li b { color: var(--yellow); }

/* Etichetta per schemi non basati su dati */
.illustr { display: inline-block; margin-top: 14px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8a8a8a; }

/* CTA corta su telefono e barra fissa */
.cta-short { display: none; }
.mobile-cta { display: none; }
@media (max-width: 620px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    justify-content: space-between; align-items: center; gap: 12px;
    background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 10px 10px 20px;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
    transform: translateY(140%); transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta span { font-size: 14px; color: #cfcfcf; }
  .mobile-cta .btn { padding: 12px 18px; font-size: 14px; }
  .site-footer { padding-bottom: 96px; }
  .consent-banner { align-items: stretch; flex-direction: column; left: 12px; right: 12px; bottom: 12px; gap: 14px; }
  .consent-banner div, .consent-banner button { width: 100%; }
}
