/* ==========================================================================
   Marketing Forfettario — Nutrizionisti · Redesign
   Editorial organic + technical precision
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-500.ttf") format("truetype");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-600.ttf") format("truetype");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-700.ttf") format("truetype");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/fraunces-800.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-700.ttf") format("truetype");
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5ed;
  --paper-soft: #f0ede1;
  --cream: #fdfcf7;
  --sage: #e6eedd;
  --sage-deep: #d6e3cc;

  --ink: #10231b;
  --ink-soft: #54655c;
  --ink-faint: #8a978f;
  --line: rgba(16, 35, 27, 0.12);
  --line-soft: rgba(16, 35, 27, 0.07);

  --green: #0d4a37;
  --green-bright: #14644a;
  --green-dark: #093226;
  --green-ink: #04211a;
  --green-glass: rgba(13, 74, 55, 0.08);

  --lime: #c9ef62;
  --lime-deep: #a8d83e;
  --lime-soft: #ecf9c4;
  --lime-ink: #1d2c08;

  --amber: #e9b949;
  --star: #efaf3c;

  --shadow-sm: 0 1px 2px rgba(16, 35, 27, 0.05), 0 4px 12px rgba(16, 35, 27, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 35, 27, 0.04), 0 12px 32px rgba(16, 35, 27, 0.09);
  --shadow-lg: 0 4px 10px rgba(16, 35, 27, 0.05), 0 30px 70px rgba(16, 35, 27, 0.13);
  --shadow-dark: 0 24px 70px rgba(4, 33, 26, 0.45);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% -4%, rgba(13, 74, 55, 0.06), transparent 36%),
    radial-gradient(circle at 96% 12%, rgba(201, 239, 98, 0.10), transparent 30%);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.offcanvas-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--lime-ink);
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.4vw, 52px);
  text-wrap: balance;
}

h3 {
  line-height: 1.25;
}

.container {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 130px);
}

.section-lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 17.5px;
}

.small-note {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Grain overlay — quiet texture over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 120;
  transform: translateY(-220%);
  background: var(--green);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  --scroll-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-bright) 55%, var(--lime-deep));
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Header — floating glass pill
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1080px, 100%);
  padding: 9px 10px 9px 20px;
  border: 1px solid rgba(16, 35, 27, 0.08);
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 1px rgba(16, 35, 27, 0.03), 0 10px 36px rgba(16, 35, 27, 0.07);
  transition: box-shadow 300ms ease, background-color 300ms ease;
}

.site-header.is-scrolled .nav-pill {
  background: rgba(253, 252, 247, 0.9);
  box-shadow: 0 1px 1px rgba(16, 35, 27, 0.04), 0 16px 44px rgba(16, 35, 27, 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--green) 20%, var(--green-dark));
  color: var(--lime);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.logo strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding-block: 6px;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--lime-deep);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--green);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, color 200ms ease;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform 360ms var(--ease-out);
}

.nav-cta:hover {
  color: var(--lime-ink);
  box-shadow: 0 10px 26px rgba(16, 35, 27, 0.18);
}

.nav-cta:hover::before {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.button-block {
  width: 100%;
}

.button-primary {
  background: linear-gradient(160deg, var(--green-bright) -20%, var(--green) 45%, var(--green-dark) 130%);
  color: #f1ffd9;
  box-shadow: 0 2px 5px rgba(9, 50, 38, 0.28), 0 14px 34px rgba(9, 50, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.02) 60%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease-out);
}

.button-primary:hover {
  box-shadow: 0 4px 8px rgba(9, 50, 38, 0.3), 0 22px 48px rgba(9, 50, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-primary:hover::after {
  transform: translateX(110%);
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: -8px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  transition: transform 260ms var(--ease-spring);
}

.button-arrow svg {
  width: 13px;
  height: 13px;
}

.button-primary:hover .button-arrow {
  transform: translateX(3px) rotate(-8deg);
}

.button-secondary {
  background: rgba(253, 252, 247, 0.7);
  border: 1.5px solid rgba(16, 35, 27, 0.18);
  color: var(--ink);
  padding-block: 14.5px;
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.button-on-dark {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(169, 216, 62, 0.18);
}

.button-on-dark:hover {
  background: #d8f97e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 22px 52px rgba(169, 216, 62, 0.26);
}

.button-ghost {
  align-self: center;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.button-ghost:hover {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Eyebrow / shared atoms
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime-deep), var(--green));
  flex: none;
}

.eyebrow.light {
  color: var(--lime);
}

.eyebrow.light::before {
  background: linear-gradient(90deg, var(--lime), rgba(201, 239, 98, 0.2));
}

.rating-stars::before {
  content: "★★★★★";
  display: inline-block;
  color: var(--star);
  font-size: 15px;
  letter-spacing: 3px;
  line-height: 1;
}

.check-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-soft);
}

.check-list li strong {
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2c08' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(168, 216, 62, 0.4);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 800ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 800ms var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: clamp(140px, 17vh, 190px) 0 clamp(56px, 7vw, 90px);
  min-height: 92svh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.aurora-a {
  top: -16%;
  left: -8%;
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(13, 74, 55, 0.20), transparent 64%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora-b {
  top: 4%;
  right: -14%;
  width: 48vw;
  height: 48vw;
  max-width: 660px;
  max-height: 660px;
  background: radial-gradient(circle, rgba(201, 239, 98, 0.32), transparent 62%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora-c {
  bottom: -28%;
  left: 26%;
  width: 50vw;
  height: 42vw;
  max-width: 700px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(233, 185, 73, 0.16), transparent 60%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5%, 7%, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-6%, 9%, 0) scale(0.96); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 35, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 27, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-eyebrow {
  font-size: 13.5px;
}

.hero h1 {
  margin: 0 0 26px;
}

.h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.06em;
}

.h1-line > span {
  display: inline-block;
  transform: translateY(120%);
}

body.is-loaded .h1-line > span {
  animation: line-up 1s var(--ease-out) forwards;
}

body.is-loaded .h1-line:nth-child(2) > span {
  animation-delay: 140ms;
}

@keyframes line-up {
  to { transform: translateY(0); }
}

.h1-line:first-child {
  font-size: clamp(21px, 2.4vw, 32px);
  font-weight: 600;
  font-style: italic;
  color: var(--green);
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 0.35em;
}

.h1-line--accent {
  max-width: 14ch;
  font-size: clamp(40px, 5vw, 70px);
  letter-spacing: -0.015em;
}

.hero-subtitle {
  max-width: 54ch;
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.45;
}

.subtitle-em {
  background-image: linear-gradient(180deg, transparent 62%, rgba(201, 239, 98, 0.65) 62% 92%, transparent 92%);
}

.hero-body {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 17.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.scarcity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(233, 185, 73, 0.5);
  border-radius: 999px;
  background: rgba(233, 185, 73, 0.1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.scarcity-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  color: #3d2c05;
  font-size: 13px;
  font-weight: 800;
}

/* Hero proof column */
.hero-proof {
  display: grid;
  gap: 16px;
  align-content: center;
}

.mini-testimonial {
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(16, 35, 27, 0.08);
  border-radius: var(--r-md);
  background: rgba(253, 252, 247, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease;
}

.mini-testimonial:nth-child(1) { transform: rotate(-1deg); }
.mini-testimonial:nth-child(2) { transform: rotate(0.8deg) translateX(14px); }
.mini-testimonial:nth-child(3) { transform: rotate(-0.5deg); }

.mini-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mini-testimonial .rating-stars {
  margin-bottom: 10px;
}

.mini-testimonial .rating-stars::before {
  font-size: 13px;
}

.mini-testimonial p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.55;
}

.mini-testimonial footer {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mini-testimonial strong {
  font-size: 13.5px;
}

.mini-testimonial span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Pain section — bento grid
   -------------------------------------------------------------------------- */

.pain-section {
  background: linear-gradient(180deg, transparent, rgba(230, 238, 221, 0.5) 30% 70%, transparent);
}

.section-intro {
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-intro h2 {
  max-width: 21ch;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.pain-card {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: 30px 28px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease, border-color 350ms ease;
}

.pain-card:nth-child(4) { grid-column: span 3; }
.pain-card--wide { grid-column: span 3; }

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--lime-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease-out);
}

.pain-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 74, 55, 0.16);
  box-shadow: var(--shadow-lg);
}

.pain-card:hover::before {
  transform: scaleX(1);
}

.pain-index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: rgba(16, 35, 27, 0.08);
}

.pain-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--green);
}

.pain-icon svg {
  width: 23px;
  height: 23px;
}

.pain-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
}

.pain-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Comparison
   -------------------------------------------------------------------------- */

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
}

.comparison-table table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
}

.comparison-table thead th {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.comparison-table tbody th,
.comparison-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody th {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 650;
  min-width: 170px;
}

.comparison-table tbody td {
  color: var(--ink-soft);
}

.comparison-table tbody tr:not(.featured-row):hover {
  background: rgba(230, 238, 221, 0.35);
}

.comparison-table .featured-row th,
.comparison-table .featured-row td {
  position: relative;
  background: var(--green);
  color: rgba(243, 255, 226, 0.96);
  border-bottom: none;
}

.comparison-table .featured-row th {
  color: #fff;
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 239, 98, 0.22), transparent 60%),
    var(--green);
}

.comparison-table .featured-row td:last-child {
  font-weight: 600;
  color: var(--lime);
}

.featured-flag {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 11px;
  vertical-align: -4px;
}

/* Mobile accordion */
.mobile-accordion {
  display: none;
  gap: 12px;
}

.option-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.option-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.option-panel summary::-webkit-details-marker {
  display: none;
}

.acc-chevron {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}

.acc-chevron::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7.5px;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.option-panel[open] .acc-chevron {
  transform: rotate(180deg);
}

.option-panel__body {
  padding: 0 20px 18px;
}

.option-panel__body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.option-panel__body strong {
  color: var(--ink);
}

.option-panel--featured {
  border: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 239, 98, 0.16), transparent 40%),
    linear-gradient(150deg, var(--green-bright) -30%, var(--green) 45%, var(--green-dark) 140%);
  color: rgba(241, 255, 217, 0.92);
  box-shadow: var(--shadow-dark);
}

.option-panel--featured summary {
  color: #fff;
}

.option-panel--featured .acc-chevron {
  border-color: rgba(255, 255, 255, 0.35);
}

.option-panel--featured .option-panel__body p {
  color: rgba(241, 255, 217, 0.85);
}

.option-panel--featured .option-panel__body strong {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Zone section
   -------------------------------------------------------------------------- */

.zone-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 239, 98, 0.14), transparent 38%),
    linear-gradient(180deg, var(--paper), var(--sage) 26% 78%, var(--paper));
}

.zone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.zone-copy h2 {
  font-size: clamp(36px, 4.8vw, 58px);
}

/* fanned report previews */
.report-stack {
  display: flex;
  margin-top: 38px;
  padding-left: 8px;
}

.report-page {
  display: grid;
  gap: 10px;
  align-content: end;
  width: 132px;
  height: 158px;
  padding: 14px;
  margin-right: -26px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  transition: transform 420ms var(--ease-spring);
}

.report-page span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.report-page i {
  display: block;
  height: 64px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(13, 74, 55, 0.16) 2px, transparent 2px) 0 100% / 100% 33% repeat-y,
    linear-gradient(180deg, rgba(201, 239, 98, 0.35), rgba(230, 238, 221, 0.6));
}

.page-a { transform: rotate(-5deg) translateY(8px); z-index: 3; }
.page-b { transform: rotate(1deg); z-index: 2; }
.page-c { transform: rotate(6deg) translateY(10px); z-index: 1; }

.page-b i {
  background:
    radial-gradient(circle at 30% 60%, rgba(13, 74, 55, 0.25) 0 8px, transparent 9px),
    radial-gradient(circle at 60% 40%, rgba(168, 216, 62, 0.5) 0 12px, transparent 13px),
    linear-gradient(180deg, rgba(230, 238, 221, 0.9), rgba(214, 227, 204, 0.7));
}

.page-c i {
  background:
    conic-gradient(var(--green) 0 68%, rgba(16, 35, 27, 0.1) 68% 100%) 50% 50% / 44px 44px no-repeat,
    linear-gradient(180deg, rgba(236, 249, 196, 0.8), rgba(230, 238, 221, 0.5));
  border-radius: 8px;
}

.report-stack:hover .page-a { transform: rotate(-8deg) translate(-10px, 4px); }
.report-stack:hover .page-b { transform: rotate(0deg) translateY(-6px); }
.report-stack:hover .page-c { transform: rotate(9deg) translate(10px, 6px); }

/* Form panel (shared) */
.form-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid rgba(16, 35, 27, 0.08);
  border-radius: var(--r-xl);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

/* Gradient ring: pseudo masked to the border band only, so the panel
   background stays clean (negative z-index would paint over it). */
.zone-flow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r-xl) + 2px);
  padding: 2px;
  background: linear-gradient(160deg, var(--lime-deep), rgba(13, 74, 55, 0.45) 40%, rgba(13, 74, 55, 0.1) 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.form-panel h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 650;
}

.form-panel label {
  display: grid;
  gap: 7px;
}

.form-panel label > span,
.inline-form label > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel textarea,
.inline-form input[type="text"],
.inline-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-panel textarea {
  resize: vertical;
  min-height: 96px;
}

.form-panel input:focus,
.form-panel textarea:focus,
.inline-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(168, 216, 62, 0.28);
}

.form-panel ::placeholder {
  color: var(--ink-faint);
}

.consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex: none;
}

.consent a {
  color: var(--green);
  font-weight: 600;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Zone flow steps */
.zone-step-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.zone-step-strip > span[data-zone-step-dot] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 280ms ease;
}

.zone-step-strip > span.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--lime);
}

.strip-track {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.strip-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--lime-deep));
  transition: width 600ms var(--ease-out);
}

[data-zone-flow][data-step="report"] .strip-track i {
  width: 100%;
}

.zone-step-form {
  display: grid;
  gap: 16px;
}

.asset-intro strong {
  font-size: 14px;
}

.asset-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.asset-option {
  position: relative;
}

.asset-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.asset-option span {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 200ms ease;
  user-select: none;
}

.asset-option:hover span {
  border-color: rgba(13, 74, 55, 0.4);
  color: var(--green);
}

.asset-option input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--lime);
  box-shadow: 0 4px 12px rgba(13, 74, 55, 0.25);
}

.asset-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(168, 216, 62, 0.35);
}

.zone-result {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(13, 74, 55, 0.2);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--lime-soft), rgba(230, 238, 221, 0.5));
}

.zone-result > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--green);
}

.zone-result > strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(168, 216, 62, 0.3);
}

.zone-result p {
  margin: 0;
  font-size: 14.5px;
}

.zone-result ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.result-lock {
  font-weight: 700;
  color: var(--green) !important;
}

.zone-step-actions {
  display: grid;
  gap: 10px;
}

/* Keyword river */
.keyword-river {
  margin-top: clamp(48px, 6vw, 76px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12% 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12% 88%, transparent);
}

.keyword-river__track {
  display: flex;
  gap: 14px;
  width: max-content;
  /* --river-shift è impostato da JS sulla larghezza esatta di un periodo;
     il fallback -50% copre il caso senza JS. */
  animation: river 30s linear infinite;
}

.keyword-river:hover .keyword-river__track {
  animation-play-state: paused;
}

.keyword-river__track span {
  flex: none;
  padding: 11px 22px;
  border: 1px solid rgba(13, 74, 55, 0.18);
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.8);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.keyword-river__track span:nth-child(even) {
  background: var(--green);
  color: rgba(241, 255, 217, 0.95);
  border-color: transparent;
}

@keyframes river {
  to { transform: translateX(var(--river-shift, -50%)); }
}

/* --------------------------------------------------------------------------
   System scroll — sticky pillars
   -------------------------------------------------------------------------- */

.system-scroll {
  position: relative;
  min-height: 280vh;
}

.system-scroll__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: min(1160px, calc(100% - 44px));
  min-height: 100vh;
  margin-inline: auto;
  padding-block: 90px 60px;
}

.system-scroll__copy h2 {
  max-width: 17ch;
}

.system-pillars {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.system-pillar {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  opacity: 0.45;
  transform: translateY(var(--step-shift, 0));
  transition: opacity 400ms ease, background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}

.system-pillar.is-active {
  opacity: 1;
  border-color: var(--line-soft);
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

.system-pillar__number {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-faint);
  transition: all 400ms ease;
}

.system-pillar.is-active .system-pillar__number {
  border-color: transparent;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 4px 14px rgba(168, 216, 62, 0.45);
}

.system-pillar h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
}

.system-pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.system-scroll__visual {
  position: relative;
}

.system-visual-stage {
  position: relative;
  height: min(68vh, 620px);
}

.system-visual-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 26px 26px 64px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 239, 98, 0.14), transparent 40%),
    var(--cream);
  box-shadow: var(--shadow-lg);
  opacity: var(--opacity, 1);
  transform: translateY(var(--y, 0)) scale(var(--scale, 1));
  filter: blur(var(--blur, 0));
  will-change: transform, opacity;
}

.system-visual-card img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.system-visual-card figcaption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(16, 35, 27, 0.08);
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.system-visual-card figcaption span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-visual-card figcaption strong {
  font-family: var(--serif);
  font-size: 15px;
}

.system-visual-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.system-visual-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 35, 27, 0.16);
  transition: all 350ms var(--ease-out);
}

.system-visual-progress span.is-active {
  width: 30px;
  background: var(--green);
}

/* --------------------------------------------------------------------------
   Network section
   -------------------------------------------------------------------------- */

.network-section {
  background: linear-gradient(180deg, transparent, rgba(240, 237, 225, 0.8) 24% 76%, transparent);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5.5vw, 76px);
  align-items: center;
}

.network-visual {
  display: grid;
  gap: 18px;
}

.network-card {
  padding: 16px 16px 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease;
}

.network-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.network-card--good {
  border-color: rgba(13, 74, 55, 0.2);
}

.network-card > p {
  margin: 10px 6px 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.network-card--good > p {
  color: var(--green);
}

.network-field {
  stroke: rgba(16, 35, 27, 0.06);
}

.network-lines path {
  fill: none;
  stroke: rgba(16, 35, 27, 0.1);
  stroke-width: 1.4;
}

.nodes.muted circle {
  fill: #b7c4b6;
}

.active-node {
  fill: var(--green);
  stroke: var(--lime);
  stroke-width: 2.5;
}

.network-signal path {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 30 400;
  stroke-dashoffset: 430;
  animation: signal-run 4.2s linear infinite;
}

.parallel-signal path {
  stroke: var(--lime-deep);
  animation-duration: 3s;
}

.parallel-signal path:nth-child(1) { animation-delay: 0s; }
.parallel-signal path:nth-child(2) { animation-delay: 0.5s; }
.parallel-signal path:nth-child(3) { animation-delay: 1s; }
.parallel-signal path:nth-child(4) { animation-delay: 1.5s; }
.parallel-signal path:nth-child(5) { animation-delay: 2s; }

@keyframes signal-run {
  to { stroke-dashoffset: 0; }
}

.pulse circle {
  fill: none;
  stroke: rgba(13, 74, 55, 0.4);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 3.4s ease-out infinite;
}

.pulse.multi circle {
  stroke: rgba(168, 216, 62, 0.7);
}

.pulse circle:nth-child(2) { animation-delay: 0.7s; }
.pulse circle:nth-child(3) { animation-delay: 1.4s; }
.pulse circle:nth-child(4) { animation-delay: 2.1s; }
.pulse circle:nth-child(5) { animation-delay: 2.8s; }

@keyframes pulse-ring {
  0% { transform: scale(0.3); opacity: 0.9; }
  80% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.network-copy blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--lime-deep);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(201, 239, 98, 0.14);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: var(--green);
}

.network-copy p {
  color: var(--ink-soft);
}

.network-copy p:first-of-type {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Guide section
   -------------------------------------------------------------------------- */

.guide-grid {
  align-items: center;
}

.guide-copy > p {
  color: var(--ink-soft);
}

.inline-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

.inline-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-form label {
  display: grid;
  gap: 6px;
}

/* Guide art */
.guide-visual {
  display: grid;
  place-items: center;
}

.guide-art {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
}

.guide-art__sheet {
  position: absolute;
  top: 12%;
  left: 22%;
  width: 56%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-sm);
}

.guide-art__sheet--back {
  transform: rotate(-9deg) translate(-16px, 8px);
}

.guide-art__sheet--middle {
  transform: rotate(5deg) translate(14px, 2px);
  background: #fff;
}

.guide-art__book {
  position: absolute;
  top: 9%;
  left: 24%;
  display: grid;
  gap: 8px;
  align-content: end;
  width: 52%;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 8%, rgba(201, 239, 98, 0.25), transparent 36%),
    linear-gradient(155deg, var(--green-bright) -28%, var(--green) 38%, var(--green-ink) 130%);
  box-shadow: var(--shadow-dark);
  transform: translateZ(46px);
}

.guide-art__book::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
}

.guide-art__book span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-art__book strong {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.02;
  color: #fff;
}

.guide-art__book small {
  color: rgba(241, 255, 217, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.guide-art__note {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 13px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(253, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transform: translateZ(72px);
}

.guide-art__note span {
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-art__note strong {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
}

.guide-art__note--agency {
  top: 6%;
  left: 0;
  animation: float-a 7s ease-in-out infinite;
}

.guide-art__note--cost {
  right: 0;
  bottom: 16%;
  animation: float-a 8.5s ease-in-out infinite reverse;
}

@keyframes float-a {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

.guide-art__chart {
  position: absolute;
  bottom: 4%;
  left: 7%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 74px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(253, 252, 247, 0.94);
  box-shadow: var(--shadow-md);
  transform: translateZ(58px);
}

.guide-art__chart span {
  width: 13px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--lime-deep), var(--green));
  transform-origin: bottom;
  animation: bar-grow 1.2s var(--ease-out) backwards;
}

.guide-art__chart span:nth-child(1) { height: 36%; animation-delay: 0.1s; }
.guide-art__chart span:nth-child(2) { height: 56%; animation-delay: 0.25s; }
.guide-art__chart span:nth-child(3) { height: 74%; animation-delay: 0.4s; }
.guide-art__chart span:nth-child(4) { height: 100%; animation-delay: 0.55s; }

@keyframes bar-grow {
  from { transform: scaleY(0); }
}

.guide-art__seal {
  position: absolute;
  top: 13%;
  right: 4%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 10px 28px rgba(168, 216, 62, 0.45);
  transform: translateZ(84px) rotate(10deg);
}

.guide-art__seal b {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Urgency section — dark, technical
   -------------------------------------------------------------------------- */

.urgency-section {
  overflow: clip;
  color: rgba(241, 250, 240, 0.92);
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 100, 74, 0.5), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(201, 239, 98, 0.08), transparent 38%),
    linear-gradient(160deg, #07291f, var(--green-ink) 60%);
}

.urgency-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 250, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 250, 240, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 78%);
  pointer-events: none;
}

.advantage-layout {
  position: relative;
  display: grid;
  gap: clamp(44px, 6vw, 70px);
  min-width: 0;
}

.urgency-copy {
  max-width: 880px;
}

.urgency-copy .eyebrow {
  color: var(--lime);
}

.urgency-copy .eyebrow::before {
  background: linear-gradient(90deg, var(--lime), rgba(201, 239, 98, 0.2));
}

.urgency-copy h2 {
  color: #fff;
  max-width: 24ch;
}

.urgency-copy p {
  color: rgba(241, 250, 240, 0.78);
  max-width: 72ch;
}

.urgency-copy strong {
  color: #fff;
}

.urgency-copy h3 {
  margin: 30px 0 14px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 650;
  color: var(--lime);
}

.urgency-copy blockquote {
  margin: 0;
  padding: 18px 24px;
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(201, 239, 98, 0.07);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: rgba(241, 255, 217, 0.95);
}

.advantage-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

.advantage-panel {
  position: relative;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--r-lg);
}

.advantage-panel__head {
  display: grid;
  gap: 3px;
  margin-bottom: 18px;
}

.advantage-panel__head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.advantage-panel__head strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
}

/* SEO panel: light "old world" card */
.seo-panel {
  border: 1px solid rgba(241, 250, 240, 0.14);
  background: linear-gradient(165deg, #f4f1e6, #e7e2d2);
  color: var(--ink);
  box-shadow: var(--shadow-dark);
}

.seo-panel .advantage-panel__head span {
  color: var(--ink-faint);
}

.serp-window {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.serp-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.serp-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 35, 27, 0.14);
}

.serp-chrome i:first-child { background: #e8a49c; }
.serp-chrome i:nth-child(2) { background: #ead9a0; }
.serp-chrome i:nth-child(3) { background: #b5d4ae; }

.serp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.serp-search span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink-faint);
  border-radius: 50%;
  position: relative;
}

.serp-search span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -3px;
  width: 6px;
  height: 2px;
  background: var(--ink-faint);
  border-radius: 2px;
  transform: rotate(45deg);
}

.serp-search strong {
  font-size: 13.5px;
}

.serp-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.serp-result--locked {
  background: var(--paper-soft);
}

.serp-result--new {
  border-style: dashed;
  border-color: rgba(16, 35, 27, 0.25);
  background: transparent;
  opacity: 0.75;
}

.serp-rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.serp-result--new .serp-rank {
  background: transparent;
  border: 1.5px dashed var(--ink-faint);
  color: var(--ink-faint);
}

.serp-result strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.serp-result small {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.35;
}

.seo-layers {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.seo-layers span {
  padding: 7px 13px;
  border: 1px solid rgba(16, 35, 27, 0.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
}

/* System panel: dark machine */
.system-panel {
  color: #fff;
  border: 1px solid rgba(201, 239, 98, 0.16);
  background:
    radial-gradient(circle at 76% 12%, rgba(201, 239, 98, 0.1), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(20, 100, 74, 0.4), transparent 40%),
    linear-gradient(150deg, #0b4030, #062419 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.system-panel .advantage-panel__head span {
  color: var(--lime);
}

.ads-infographic {
  position: relative;
  z-index: 1;
  min-height: 500px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(219, 233, 220, 0.14);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 50% 50%, rgba(219, 233, 220, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.ads-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-line {
  fill: none;
  stroke: rgba(219, 233, 220, 0.4);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 12;
  animation: flow-dash 1.6s linear infinite;
}

.flow-line--memory,
.flow-line--output {
  stroke: rgba(201, 239, 98, 0.55);
}

.flow-line--waste {
  stroke: rgba(233, 185, 73, 0.6);
  stroke-dasharray: 4 10;
}

@keyframes flow-dash {
  to { stroke-dashoffset: -19; }
}

@keyframes flow-down {
  to { background-position-y: 14px; }
}

.system-kicker {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-source,
.memory-vault,
.waste-bucket,
.clean-output {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(219, 233, 220, 0.16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.signal-source {
  top: 38px;
  left: 22px;
  width: 194px;
}

.signal-source strong,
.memory-vault strong,
.waste-bucket strong,
.clean-output strong {
  color: #fff;
  line-height: 1.15;
}

.signal-source strong,
.memory-vault strong {
  font-size: 16px;
}

.signal-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-cloud span {
  padding: 6px 9px;
  border: 1px solid rgba(219, 233, 220, 0.22);
  border-radius: 999px;
  color: #dbe9dc;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.signal-cloud .noise {
  color: rgba(219, 233, 220, 0.4);
  text-decoration: line-through;
}

.campaign-engine {
  position: absolute;
  top: 200px;
  left: 50%;
  z-index: 2;
  width: 168px;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.engine-core {
  position: absolute;
  inset: 17px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(201, 239, 98, 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    var(--green);
  box-shadow:
    0 0 0 14px rgba(201, 239, 98, 0.05),
    0 0 44px rgba(201, 239, 98, 0.14),
    0 20px 42px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.engine-core::before,
.engine-core::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(201, 239, 98, 0.3);
  border-radius: 50%;
  animation: orbit 26s linear infinite;
}

.engine-core::before {
  inset: -21px;
}

.engine-core::after {
  inset: -38px;
  border-color: rgba(219, 233, 220, 0.14);
  animation-duration: 40s;
  animation-direction: reverse;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.engine-core span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engine-core strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.06;
}

.engine-chip {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(201, 239, 98, 0.3);
  border-radius: 999px;
  background: rgba(6, 36, 25, 0.85);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-ads {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.chip-pages {
  right: -15px;
  bottom: 32px;
}

.chip-data {
  bottom: 32px;
  left: -7px;
}

.waste-bucket {
  bottom: 148px;
  left: 32px;
  width: 158px;
  border-color: rgba(233, 185, 73, 0.3);
  background: rgba(233, 185, 73, 0.07);
}

.waste-bucket span {
  color: rgba(234, 216, 170, 0.75);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.waste-bucket strong {
  color: #ead8aa;
  font-size: 14.5px;
}

.memory-vault {
  top: 42px;
  right: 22px;
  width: 214px;
  background:
    linear-gradient(145deg, rgba(201, 239, 98, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.memory-layers {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}

.memory-layers span {
  position: relative;
  padding: 9px 10px 9px 32px;
  border: 1px solid rgba(219, 233, 220, 0.2);
  border-radius: 8px;
  background: rgba(219, 233, 220, 0.08);
  color: #dbe9dc;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.memory-layers span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(201, 239, 98, 0.8);
}

.clean-output {
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 15px 18px;
  border-color: rgba(201, 239, 98, 0.28);
  background:
    linear-gradient(135deg, rgba(201, 239, 98, 0.14), rgba(201, 239, 98, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.clean-output span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clean-output strong {
  font-family: var(--serif);
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.founder-photo {
  position: relative;
  display: grid;
  justify-content: center;
}

.founder-portrait {
  position: relative;
  width: min(380px, 100%);
  padding: 14px 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  transition: transform 400ms var(--ease-out);
}

.founder-portrait:hover {
  transform: rotate(0deg) scale(1.01);
}

.founder-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sage-deep);
  transform: rotate(3deg) translate(12px, 10px);
}

.founder-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 8px);
}

.founder-copy h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.founder-copy p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.founder-copy p:first-of-type {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials-section {
  background: linear-gradient(180deg, transparent, rgba(230, 238, 221, 0.55) 30% 75%, transparent);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.testimonial-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card:nth-child(2) {
  margin-top: 26px;
}

.quote-mark {
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(168, 216, 62, 0.4);
  pointer-events: none;
}

.testimonial-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--lime);
  box-shadow: 0 0 0 3px rgba(13, 74, 55, 0.12);
}

.testimonial-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
}

.testimonial-head span {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.testimonial-head small {
  display: inline-block;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}

.testimonial-head .rating-stars {
  margin-top: 4px;
}

.testimonial-head .rating-stars::before {
  font-size: 13px;
}

.testimonial-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: clip;
  isolation: isolate;
  color: rgba(241, 250, 240, 0.92);
  padding-block: clamp(86px, 11vw, 150px);
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 14%, rgba(201, 239, 98, 0.13), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(20, 100, 74, 0.55), transparent 46%),
    linear-gradient(155deg, #093226, var(--green-ink) 64%);
}

.final-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 250, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 250, 240, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 80% at 30% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 30% 30%, black, transparent 80%);
}

#contatto {
  position: absolute;
  top: -90px;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}

.final-copy h2 {
  color: #fff;
  font-size: clamp(36px, 4.8vw, 58px);
  max-width: 16ch;
}

.final-copy p {
  color: rgba(241, 250, 240, 0.78);
  max-width: 52ch;
  font-size: 17.5px;
}

.final-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-weight: 600;
  color: rgba(241, 255, 217, 0.95) !important;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 239, 98, 0.7);
  animation: dot-ping 2s ease-out infinite;
}

@keyframes dot-ping {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

.form-panel.dark {
  border: 1px solid rgba(241, 250, 240, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(4, 33, 26, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-panel.dark h3 {
  color: #fff;
}

.form-panel.dark label > span {
  color: rgba(241, 250, 240, 0.72);
}

.form-panel.dark input[type="text"],
.form-panel.dark input[type="email"],
.form-panel.dark input[type="tel"],
.form-panel.dark textarea {
  border-color: rgba(241, 250, 240, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.form-panel.dark ::placeholder {
  color: rgba(241, 250, 240, 0.4);
}

.form-panel.dark input:focus,
.form-panel.dark textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 239, 98, 0.2);
}

.form-panel.dark .consent {
  color: rgba(241, 250, 240, 0.7);
}

.form-panel.dark .consent a {
  color: var(--lime);
}

.form-panel.dark .consent input {
  accent-color: var(--lime);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-ink);
  border-top: 1px solid rgba(241, 250, 240, 0.08);
  color: rgba(241, 250, 240, 0.6);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding-block: 44px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: rgba(241, 250, 240, 0.9);
}

.footer-inner a {
  color: rgba(241, 250, 240, 0.75);
  text-decoration-color: rgba(241, 250, 240, 0.3);
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.footer-inner a:hover {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Offcanvas
   -------------------------------------------------------------------------- */

.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 33, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 320ms ease;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.offcanvas-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(500px, 100%);
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  box-shadow: -30px 0 80px rgba(4, 33, 26, 0.3);
  animation: panel-in 460ms var(--ease-out);
}

@keyframes panel-in {
  from { transform: translateX(60px); opacity: 0; }
}

.offcanvas-panel h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
}

.offcanvas-panel > p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.offcanvas-panel .form-panel {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: all 220ms ease;
}

.close-button:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
  transform: rotate(90deg);
}

.close-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Success / errors
   -------------------------------------------------------------------------- */

.success-message {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 30px 28px 30px 76px;
  border: 1px solid rgba(13, 74, 55, 0.22);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--cream), var(--lime-soft));
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.success-message::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2c08' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 17px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 18px rgba(168, 216, 62, 0.5);
}

.success-message h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.success-message p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.form-error {
  margin: 4px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(190, 64, 50, 0.3);
  border-radius: var(--r-sm);
  background: rgba(190, 64, 50, 0.08);
  color: #9c3527;
  font-size: 14px;
  font-weight: 600;
}

.form-panel.dark .form-error {
  background: rgba(190, 64, 50, 0.18);
  color: #ffb3a8;
}

/* --------------------------------------------------------------------------
   Mobile sticky bar
   -------------------------------------------------------------------------- */

.mobile-sticky {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 85;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(241, 250, 240, 0.12);
  border-radius: 18px;
  background: rgba(6, 36, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(4, 33, 26, 0.4);
}

.mobile-sticky .button {
  flex: 1;
  padding: 13px 14px;
  font-size: 14.5px;
}

.mobile-sticky .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(241, 250, 240, 0.25);
  color: #fff;
}

.mobile-sticky .button-primary {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    min-height: 0;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .mini-testimonial:nth-child(2) {
    transform: rotate(0.8deg);
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 84px;
  }

  .nav-links {
    display: none;
  }

  .split-grid,
  .zone-grid,
  .final-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .network-grid .network-visual {
    order: 2;
  }

  .system-scroll {
    min-height: 0;
  }

  .system-scroll__sticky {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: clamp(76px, 10vw, 110px) 0;
    gap: 44px;
  }

  .system-visual-stage {
    height: auto;
    display: grid;
    gap: 18px;
  }

  .system-visual-card {
    position: static;
    padding: 22px 22px 64px;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .system-visual-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .system-visual-progress {
    display: none;
  }

  .system-pillar {
    opacity: 1;
    border-color: var(--line-soft);
    background: var(--cream);
    box-shadow: var(--shadow-sm);
    transform: none !important;
  }

  .system-pillar__number {
    border-color: transparent;
    background: var(--lime);
    color: var(--lime-ink);
  }

  .advantage-visual {
    grid-template-columns: 1fr;
  }

  .guide-visual {
    order: -1;
  }

  .guide-art {
    width: min(420px, 92%);
  }

  .founder-photo {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .comparison-table {
    display: none;
  }

  .mobile-accordion {
    display: grid;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card:nth-child(2) {
    margin-top: 0;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .mini-testimonial:nth-child(2) {
    transform: rotate(0.8deg) translateX(0);
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-card,
  .pain-card:nth-child(4),
  .pain-card--wide {
    grid-column: auto;
  }

  .inline-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 120px;
  }

  .cta-row .button {
    width: 100%;
  }

  .site-header {
    top: 10px;
    padding-inline: 10px;
  }

  .nav-pill {
    padding-left: 14px;
  }

  .logo strong {
    display: none;
  }

  .keyword-river__track {
    animation-duration: 22s;
  }

  /* Infografica Google Ads: su mobile diventa una pipeline verticale che
     conserva la geometria del desktop — motore centrale con anelli e chip
     orbitanti, collegato ai nodi da linee tratteggiate animate. */
  .ads-infographic {
    min-height: 0;
    padding: 18px 14px;
    display: grid;
    grid-template-areas:
      "input input"
      "engine engine"
      "waste memory"
      "output output";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
  }

  .ads-flow {
    display: none;
  }

  .signal-source,
  .memory-vault,
  .waste-bucket,
  .clean-output {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .signal-source {
    grid-area: input;
  }

  .campaign-engine {
    grid-area: engine;
    position: relative;
    inset: auto;
    transform: none;
    justify-self: center;
    margin-block: 56px 42px;
  }

  .waste-bucket,
  .clean-output {
    align-content: center;
  }

  /* Linea di flusso: input -> motore */
  .campaign-engine::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 2px;
    height: 42px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(219, 233, 220, 0.65) 0 55%, transparent 55%);
    background-size: 2px 14px;
    animation: flow-down 0.9s linear infinite;
  }

  .waste-bucket {
    grid-area: waste;
    margin-top: 44px;
  }

  .memory-vault {
    grid-area: memory;
    margin-top: 44px;
  }

  /* Linee divergenti: motore -> budget sprecato / memoria locale */
  .waste-bucket::before,
  .memory-vault::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    width: 2px;
    height: 36px;
    background: linear-gradient(180deg, rgba(201, 239, 98, 0.55) 0 55%, transparent 55%);
    background-size: 2px 14px;
    animation: flow-down 0.9s linear infinite;
  }

  .waste-bucket::before {
    left: 72%;
    transform: rotate(14deg);
    background-image: linear-gradient(180deg, rgba(233, 185, 73, 0.6) 0 55%, transparent 55%);
  }

  .memory-vault::before {
    left: 28%;
    transform: rotate(-14deg);
  }

  .clean-output {
    grid-area: output;
    margin-top: 42px;
  }

  /* Linea di flusso: -> risultato */
  .clean-output::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    width: 2px;
    height: 34px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(201, 239, 98, 0.7) 0 55%, transparent 55%);
    background-size: 2px 14px;
    animation: flow-down 0.9s linear infinite;
  }

  .memory-layers span {
    padding-left: 26px;
    font-size: 10px;
  }

  .memory-layers span::before {
    left: 9px;
  }

  .signal-cloud span,
  .engine-chip {
    font-size: 9.5px;
  }

  .advantage-panel {
    min-height: 0;
  }

  .scarcity {
    font-size: 13px;
  }

  .report-stack {
    justify-content: center;
    padding-left: 0;
  }
}

@media (max-width: 430px) {
  .ads-infographic {
    grid-template-columns: minmax(92px, 0.56fr) minmax(0, 1fr);
    column-gap: 9px;
    padding-inline: 12px;
  }

  .waste-bucket {
    padding-inline: 10px;
  }

  .waste-bucket strong {
    font-size: 13px;
  }

  .memory-vault {
    padding-inline: 12px;
  }

  .memory-layers span {
    padding-right: 8px;
  }
}

/* Page bottom padding so the mobile sticky bar never covers the footer text */
@media (max-width: 680px) {
  .site-footer .footer-inner {
    padding-bottom: 100px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .h1-line > span {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .keyword-river__track {
    animation: none;
  }
}
