/* ============ Token ============ */
:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --ink: #f5f3f0;
  --muted: #9d9a93;
  --brand: #ff4d12;
  --brand-2: #ff8a3d;
  --ok: #3ddc97;
  --glow: 0 0 0 1px rgba(255, 77, 18, .35), 0 20px 80px -20px rgba(255, 77, 18, .45);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* griglia di fondo + alone */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: 50%; top: -520px; translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 77, 18, .28), transparent 62%);
  filter: blur(20px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); letter-spacing: -.03em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 60%, #ffc79e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .76rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 1.4rem;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg-2); padding: 8px 14px; }

/* ============ Pulsanti ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5rem; border-radius: 12px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s; cursor: pointer;
}
.btn--primary {
  background: linear-gradient(180deg, #ff6a33, var(--brand)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -8px rgba(255, 77, 18, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 40px -8px rgba(255, 77, 18, .9); }
.btn--ghost { border-color: var(--border-2); color: var(--ink); background: var(--panel); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============ Header ============ */
.header { position: sticky; top: 14px; z-index: 50; padding-inline: var(--gutter); }
.header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 10px 0 18px; width: min(100%, var(--wrap));
  background: rgba(12, 12, 17, .7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border); border-radius: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.1; }
.brand img { width: 30px; height: 30px; }
.brand strong { display: block; font-weight: 700; font-size: .98rem; }
.brand small { display: block; font: 500 .62rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 44px; padding-inline: 1.1rem; border-radius: 10px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--panel); color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; top: 72px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0; display: none;
    background: rgba(12, 12, 17, .96); border: 1px solid var(--border); border-radius: 16px; padding: 8px 18px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; }
}

/* ============ Hero ============ */
.hero { padding-block: clamp(64px, 10vw, 120px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .3em; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; }
.rotator .word { transition: opacity .35s, transform .35s, filter .35s; }
.rotator .word:not(.on) { opacity: 0; transform: translateY(.35em); filter: blur(6px); }
.hero .lead { margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font: 500 .8rem/1 var(--mono); color: var(--muted); }
.hero-meta span::before { content: "✓ "; color: var(--ok); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Dashboard "control room" */
.dash {
  position: relative; border-radius: 22px; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 138, 61, .55), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .03));
  box-shadow: 0 40px 120px -40px rgba(255, 77, 18, .5);
}
.dash-in { background: rgba(13, 13, 18, .92); border-radius: 21px; overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font: 500 .72rem/1 var(--mono); color: var(--muted); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.dash-bar i:first-child { background: var(--brand); }
.dash-bar b { margin-left: auto; font-weight: 500; color: var(--ok); }
.dash-bar b::before { content: "● "; animation: blink 1.6s infinite; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 14px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; min-width: 0; }
.tile--wide { grid-column: 1 / -1; }
.tile h4 { margin: 0 0 10px; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.tile h4 em { font-style: normal; color: var(--ok); }
.chart { width: 100%; height: 110px; display: block; }
.chart .line { fill: none; stroke: url(#lg); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s cubic-bezier(.6, 0, .2, 1) forwards; }
.chart .area { fill: url(#ag); opacity: 0; animation: fade 1s 1.8s forwards; }
.chart .dot { fill: var(--brand-2); opacity: 0; animation: fade .4s 2.6s forwards, pulse 2s 3s infinite; transform-origin: center; transform-box: fill-box; }
.funnel { display: grid; gap: 7px; }
.funnel div { height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); display: flex; align-items: center; padding-left: 8px; font: 500 .66rem/1 var(--mono); color: #1a0a03; width: 0; animation: grow 1.2s cubic-bezier(.6, 0, .2, 1) forwards; }
.funnel div:nth-child(1) { --w: 100%; animation-delay: .6s; }
.funnel div:nth-child(2) { --w: 78%; animation-delay: .8s; }
.funnel div:nth-child(3) { --w: 54%; animation-delay: 1s; }
.funnel div:nth-child(4) { --w: 36%; animation-delay: 1.2s; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 500 .68rem/1 var(--mono); }
.flow span { padding: 7px 9px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-2); white-space: nowrap; }
.flow span:last-child { border-color: var(--ok); color: var(--ok); }
.flow i { width: 18px; height: 1px; background: linear-gradient(90deg, var(--brand), transparent); position: relative; }
.flow i::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); animation: travel 1.8s linear infinite; }
.diag { list-style: none; margin: 0; padding: 0; font: 500 .74rem/1.3 var(--mono); }
.diag li { display: flex; gap: 8px; padding: 5px 0; color: var(--muted); opacity: .35; animation: check .01s forwards; }
.diag li::before { content: "✓"; color: var(--ok); }
.diag li:nth-child(1) { animation-delay: 1.2s; } .diag li:nth-child(2) { animation-delay: 1.9s; }
.diag li:nth-child(3) { animation-delay: 2.6s; } .diag li:nth-child(4) { animation-delay: 3.3s; }
.dash-note { font: 400 .7rem/1 var(--mono); color: var(--muted); text-align: right; margin: 10px 4px 0; opacity: .7; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { width: var(--w); } }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .4; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes travel { to { left: 100%; opacity: 0; } }
@keyframes check { to { opacity: 1; color: var(--ink); } }
@media (max-width: 480px) { .dash-grid { grid-template-columns: 1fr; } }

/* ============ Loghi ============ */
.logos { padding-block: 40px; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.logos p { text-align: center; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 64px; width: max-content; list-style: none; margin: 0; padding: 0; animation: scroll 55s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee img { height: 50px; width: auto; opacity: .55; filter: grayscale(1) invert(1) brightness(1.4); mix-blend-mode: screen; transition: opacity .2s; }
.marquee img:hover { opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Card con spotlight ============ */
.spot {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; isolation: isolate; transition: border-color .3s, transform .3s;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 77, 18, .16), transparent 45%);
}
.spot:hover { border-color: var(--border-2); }
.spot:hover::before { opacity: 1; }

/* ============ Problemi (errori) ============ */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { padding: 28px; }
.pain .code { display: inline-flex; gap: 8px; align-items: center; font: 500 .72rem/1 var(--mono); color: #ff7a6b; padding: 6px 10px; border-radius: 8px; background: rgba(255, 70, 50, .1); border: 1px solid rgba(255, 70, 50, .25); margin-bottom: 22px; }
.pain .code::before { content: "▲"; font-size: .6rem; }
.pain p { color: var(--muted); margin: 0; }
.pain .fix { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-2); font: 500 .76rem/1.5 var(--mono); color: var(--ok); }
.pain .fix::before { content: "→ fix: "; color: var(--muted); }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr; } }

.statement { margin-top: clamp(48px, 7vw, 80px); font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.2 var(--display); letter-spacing: -.02em; max-width: 960px; color: var(--muted); }
.statement strong { color: var(--ink); font-weight: 600; }

/* ============ Metodo: pipeline ============ */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.pipeline::before, .pipeline::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--border);
}
.pipeline::after { background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; box-shadow: 0 0 16px var(--brand); }
.pipeline li { position: relative; z-index: 1; }
.node {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border-2); font: 600 .9rem/1 var(--mono); color: var(--brand-2); margin-bottom: 18px;
  transition: box-shadow .4s, border-color .4s;
}
.pipeline li.lit .node { border-color: var(--brand); box-shadow: var(--glow); }
.pipeline .spot { padding: 22px; }
.pipeline p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; gap: 20px; padding-left: 0; }
  .pipeline::before, .pipeline::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .pipeline::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .pipeline li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
  .node { margin: 0; }
}

.stack { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack b { font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.stack span { font: 500 .85rem/1 var(--mono); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); transition: border-color .2s, color .2s; }
.stack span:hover { border-color: var(--brand); color: var(--brand-2); }

/* ============ Chi sono ============ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 77, 18, .35), transparent 55%), var(--bg-2);
  border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted);
  font: 500 .8rem/1.6 var(--mono); text-align: center; padding: 24px;
}
.portrait::after { /* scanline */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; font: 500 .72rem/1 var(--mono); padding: 8px 10px; border-radius: 8px; background: rgba(7, 7, 10, .8); border: 1px solid var(--border-2); color: var(--ink); }
.portrait .tag::before { content: "● "; color: var(--ok); }
.terminal { margin-top: 28px; padding: 18px 20px; font: 400 .86rem/1.8 var(--mono); }
.terminal .p { color: var(--brand-2); }
.terminal .c { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); margin-top: 24px; }
.badge img { width: 52px; border-radius: 10px; background: #fff; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* ============ Testimonianze ============ */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; padding: 26px; }
.quote blockquote::before { content: "“"; display: block; font: 700 3rem/.5 var(--display); color: var(--brand); margin: 14px 0 6px; }
.quote blockquote { margin: 0 0 1.2em; font-size: 1rem; color: #d9d6d0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92rem; }
.quote figcaption::before {
  content: attr(data-i); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .8rem/1 var(--mono); color: #fff; background: linear-gradient(135deg, var(--brand), #7a2a0c);
}

/* ============ Prezzi ============ */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; margin-inline: auto; }
.plan { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; position: relative; }
.plan--featured { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, conic-gradient(from var(--a, 0deg), var(--brand), transparent 30%, transparent 70%, var(--brand-2)) border-box; border: 1.5px solid transparent; animation: spin 6s linear infinite; box-shadow: 0 30px 100px -40px rgba(255, 77, 18, .6); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.plan .label { font: 500 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .price { font: 600 clamp(3rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -.04em; margin: 20px 0 6px; }
.plan .price del { font-size: .38em; color: var(--muted); margin-left: 8px; font-weight: 400; letter-spacing: 0; }
.plan .price small { font: 500 .9rem var(--sans); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 32px; flex: 1; }
.plan li { padding: 11px 0 11px 30px; border-top: 1px solid var(--border); position: relative; font-size: .97rem; color: #d9d6d0; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .7rem; color: var(--ok); background: rgba(61, 220, 151, .1); }
.pill { display: inline-block; font: 600 .7rem/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--brand); color: #fff; margin-left: 6px; vertical-align: middle; letter-spacing: 0; text-transform: none; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 1.08rem/1.35 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font: 400 1.5rem/1 var(--mono); color: var(--brand-2); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* ============ CTA finale ============ */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; text-align: center;
  padding: clamp(56px, 9vw, 112px) clamp(24px, 6vw, 80px);
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(255, 77, 18, .55), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-2);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { color: #cfcac2; max-width: 56ch; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* ============ Footer ============ */
.footer { padding-block: 72px 32px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--border); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer h4 { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font: 400 .78rem/1.5 var(--mono); }
.footer .big { font: 700 clamp(3rem, 13vw, 11rem)/.85 var(--display); letter-spacing: -.05em; margin: 0 0 40px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }

/* ============ Pagine interne ============ */
.page-hero { padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.buybox { position: sticky; top: 104px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }
.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--border); }
.checklist li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: rgba(61, 220, 151, .1); color: var(--ok); font-size: .75rem; }
.timeline { list-style: none; counter-reset: s; padding: 0; margin: 0; max-width: 860px; display: grid; gap: 10px; }
.timeline li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; align-items: center; }
.timeline li::before { content: "0" counter(s); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border-2); font: 600 .9rem/1 var(--mono); color: var(--brand-2); background: var(--bg-2); }
.timeline h3 { font-size: 1.15rem; margin-bottom: .2em; }
.timeline p { color: var(--muted); margin: 0; }
.fine { font-size: .8rem; color: var(--muted); max-width: 90ch; opacity: .8; }
@media (max-width: 900px) {
  .page-hero .wrap, .grid-2 { grid-template-columns: 1fr; }
  .buybox { position: static; }
}

/* ============ Form ============ */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font: 500 .78rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field label span { text-transform: none; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 77, 18, .15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.side-list { list-style: none; padding: 0; margin: 0 0 28px; }
.side-list li { padding: 14px 0; border-top: 1px solid var(--border); }
.side-list b { display: block; font-family: var(--display); }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .marquee ul { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .marquee li[aria-hidden] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ Form: avvisi, anti-spam, cookie ============ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 12px; margin: 0 0 16px; }
.notice--ok { border: 1px solid rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); color: #c9f5e1; }
.notice--err { border: 1px solid rgba(255, 90, 70, .45); background: rgba(255, 90, 70, .08); color: #ffc9c0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--ink); }
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  background: rgba(12, 12, 17, .96); backdrop-filter: blur(12px); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7); font-size: .92rem;
}
.cookie p { color: var(--muted); margin-bottom: 14px; }
.cookie .btn { min-height: 44px; flex: 1; }

/* ============ Pannello admin ============ */
.adm main { padding-block: 24px 80px; }
.adm-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tabs a { text-decoration: none; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: .95rem; }
.adm-tabs a[aria-current] { background: var(--panel-2); color: var(--ink); }
.adm-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-bar h1 { font-size: 2.2rem; margin: 0; }
.adm-bar > span { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-groups { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip { display: inline-block; text-decoration: none; font: 500 .8rem/1 var(--mono); padding: 8px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.chip.on { border-color: var(--brand); color: var(--ink); }
.chip.audit { color: var(--brand-2); border-color: rgba(255, 138, 61, .4); }
.adm-row { padding: 0; margin-bottom: 10px; }
.adm-row summary { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 20px; cursor: pointer; list-style: none; }
.adm-row summary::-webkit-details-marker { display: none; }
.adm-row summary .mono { margin-left: auto; font-size: .8rem; }
.adm-row > :not(summary) { margin-inline: 20px; }
.adm-row > :last-child { margin-bottom: 20px; }
.adm-row dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin-top: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.adm-row dt { color: var(--muted); font-size: .88rem; }
.adm-row dd { margin: 0; }
.adm-row select, .adm .field select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; padding: 12px; }
.st { font: 500 .72rem/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.st--nuova { background: rgba(255, 77, 18, .15); color: var(--brand-2); }
.st--pagato, .st--chiusa { background: rgba(61, 220, 151, .12); color: var(--ok); }
.st--err { background: rgba(255, 90, 70, .15); color: #ff9a8a; }
.danger:hover { border-color: #ff5a46; color: #ff9a8a; }
.adm code { font-family: var(--mono); font-size: .85em; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.adm textarea.mono { font-family: var(--mono); font-size: .85rem; }
@media (max-width: 640px) { .adm-row dl { grid-template-columns: 1fr; } }
