/* ==========================================================================
   Coinfisco — sito pubblico
   Token del marchio: logo-kit (blu notte #263D4B, ardesia #537588,
   azzurro #8CC0D8, lucchetto #6A94A9).
   ========================================================================== */

:root {
  --navy: #263d4b;
  --navy-700: #1d303c;
  --navy-900: #101d25;
  --slate: #537588;
  --lock: #6a94a9;
  --sky: #8cc0d8;
  --sky-50: #eef6fa;

  --ink: #0e1a21;
  --text: #24323b;
  --muted: #5c6b75;
  --line: #e4e9ed;
  --line-strong: #d3dbe1;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --ok: #1f8a5b;
  --ok-bg: #e7f5ee;
  --neg: #b4443b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgb(16 29 37 / 0.06);
  --shadow: 0 1px 2px rgb(16 29 37 / 0.04), 0 8px 24px -6px rgb(16 29 37 / 0.1);
  --shadow-lg: 0 2px 4px rgb(16 29 37 / 0.04), 0 30px 60px -20px rgb(16 29 37 / 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* Tipografia ------------------------------------------------------------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin-bottom: 14px;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.display--sm {
  font-size: clamp(36px, 5.4vw, 64px);
}

.grad {
  background: linear-gradient(92deg, var(--navy) 0%, var(--slate) 55%, var(--lock) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  letter-spacing: -0.01em;
}
.lead strong {
  color: var(--ink);
  font-weight: 600;
}
.lead--sm {
  font-size: 18px;
}
.lead--light {
  color: rgb(255 255 255 / 0.72);
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

/* Bottoni ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  cursor: pointer;
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(2px);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 15px;
}
.btn--lg {
  height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 6px 16px -6px rgb(38 61 75 / 0.55);
}
.btn--primary:hover {
  background: var(--navy-700);
}

.btn--ghost {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn--ghost:hover {
  background: #eaeef1;
}

.btn--light {
  background: #fff;
  color: var(--navy);
}
.btn--light:hover {
  background: var(--sky-50);
}

.btn--outline-light {
  color: #fff;
  border-color: rgb(255 255 255 / 0.28);
}
.btn--outline-light:hover {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.06);
}

.link-quiet {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 6px;
  transition: color 0.2s var(--ease);
}
.link-quiet:hover {
  color: var(--slate);
}

/* Navigazione ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(255 255 255 / 0.86);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand img {
  height: 18px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav__toggle span:first-child {
  top: 16px;
}
.nav__toggle span:last-child {
  top: 23px;
}
.nav__toggle[aria-expanded="true"] span:first-child {
  top: 19.5px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  top: 19.5px;
  transform: rotate(-45deg);
}

.nav__mobile {
  border-top: 1px solid var(--line);
  padding: 12px 24px 24px;
  background: #fff;
}
.nav__mobile > a {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mobile-cta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

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

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 120%;
  background:
    radial-gradient(closest-side, rgb(140 192 216 / 0.35), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgb(106 148 169 / 0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__copy .lead {
  margin-top: 24px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__cta--center {
  justify-content: center;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__trust svg,
.float__icon svg,
.fake-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__trust svg {
  color: var(--ok);
}

.hero__visual {
  position: relative;
  padding: 28px 0 40px;
}
.hero__note {
  position: absolute;
  right: 4px;
  bottom: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Anteprima app */
.device {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.device__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.device__url {
  margin: 0 auto;
  padding: 3px 14px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateX(-15px);
}
.device__body {
  padding: 24px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.panel__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill--ok::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.panel__total {
  margin: 20px 0 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, #34556a 100%);
  color: #fff;
}
.panel__label {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
}
.panel__amount {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: 4px;
}
.panel__sub {
  font-size: 13px;
  color: var(--sky);
  margin-top: 6px;
}

.rows > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 2px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.rows > div:last-child {
  border-bottom: 0;
}
.rows dt {
  color: var(--muted);
}
.rows dd {
  font-weight: 600;
  color: var(--ink);
}
.rows dd.neg {
  color: var(--neg);
}

.panel__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--navy);
  color: #fff;
}
.fake-btn--ghost {
  background: var(--bg-soft);
  color: var(--ink);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float--a {
  left: -36px;
  bottom: -4px;
}
.float--b {
  right: -20px;
  top: 0;
  gap: 4px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  animation-delay: -3s;
}
.float--b img {
  border-radius: 7px;
  box-shadow: 0 0 0 2px #fff;
}
.float--b span {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.float__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.float__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.float__sub {
  font-size: 12px;
  color: var(--muted);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Loghi ------------------------------------------------------------------ */

.logos {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos__title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.logos__more {
  max-width: 44em;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
}
.marquee.is-animated .marquee__track {
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}
.marquee__track img {
  border-radius: 7px;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

/* Sezioni ---------------------------------------------------------------- */

.section {
  padding: clamp(80px, 11vw, 140px) 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .lead {
  margin: 18px auto 0;
}

/* Passaggi */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 28px;
}
.step h3,
.card h3,
.sec h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.step p,
.card p,
.sec p {
  font-size: 16px;
  color: var(--muted);
}

/* Regole */
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.rules__copy .lead {
  margin: 20px 0 32px;
}
.rules__table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 8px 20px;
  box-shadow: var(--shadow);
}
.rules__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.rules__table th,
.rules__table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.rules__table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.rules__table tbody th {
  font-weight: 700;
  color: var(--ink);
}
.rules__table td {
  color: var(--text);
}
.rules__table tr.is-hot th,
.rules__table tr.is-hot td {
  background: var(--sky-50);
  border-bottom: 0;
}
.rules__table tr.is-hot td:first-of-type {
  font-weight: 700;
  color: var(--navy);
}
.rules__table tr.is-hot th {
  border-radius: 12px 0 0 12px;
}
.rules__table tr.is-hot td:last-child {
  border-radius: 0 12px 12px 0;
}
.rules__src {
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
}
.card--dark {
  background: radial-gradient(120% 140% at 100% 0%, #34556a 0%, var(--navy) 45%, var(--navy-900) 100%);
  color: #fff;
}
.card--dark h3 {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.card--dark p {
  color: rgb(255 255 255 / 0.72);
  font-size: 17px;
}
.card--dark:hover {
  transform: none;
}

.lots {
  display: grid;
  gap: 10px;
}
.lot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-size: 15px;
}
.lot span {
  flex: 1;
  color: rgb(255 255 255 / 0.75);
}
.lot b {
  font-weight: 600;
}
.lot em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy-900);
}
.lot--used {
  border-color: var(--sky);
  background: rgb(140 192 216 / 0.12);
}
.lot--sell {
  background: transparent;
  border-style: dashed;
}

/* Pubblico */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.aud {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.aud__tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-50);
  margin-bottom: 24px;
}
.aud h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.checks {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%23263D4B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.aud--pro {
  background: var(--navy);
  border-color: var(--navy);
}
.aud--pro .aud__tag {
  background: rgb(255 255 255 / 0.1);
  color: var(--sky);
}
.aud--pro h3 {
  color: #fff;
}
.aud--pro .checks li {
  color: rgb(255 255 255 / 0.82);
}
.aud--pro .checks li::before {
  background-color: rgb(255 255 255 / 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%238CC0D8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Sicurezza */
.lock {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff, var(--sky-50));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.security {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.sec {
  padding: 36px 32px 0 0;
}
.sec + .sec {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.faq__list {
  border-top: 1px solid var(--line-strong);
}
.qa {
  border-bottom: 1px solid var(--line-strong);
}
.qa summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%23263D4B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}
.qa[open] summary::after {
  transform: rotate(45deg);
}
.qa p {
  padding: 0 48px 26px 0;
  font-size: 16px;
  color: var(--muted);
}

/* CTA finale */
.final {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0;
  background: radial-gradient(80% 120% at 50% 0%, #3a5d72 0%, var(--navy) 45%, var(--navy-900) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.final::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(140 192 216 / 0.5), transparent);
}
.final .display {
  color: #fff;
}
.final .lead {
  margin: 20px auto 0;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand img {
  height: 15px;
  width: auto;
  margin-bottom: 14px;
}
.footer__brand p {
  max-width: 26em;
  font-size: 14px;
  color: var(--muted);
}
.footer__nav {
  display: flex;
  gap: 64px;
}
.footer__nav div {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer__nav p {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer__nav a {
  font-size: 14px;
  color: var(--muted);
}
.footer__nav a:hover {
  color: var(--ink);
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* Animazioni d'ingresso (solo con JS) ------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float,
  .marquee.is-animated .marquee__track {
    animation: none;
  }
}

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

@media (max-width: 1020px) {
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
  .hero__grid,
  .rules,
  .faq {
    grid-template-columns: 1fr;
  }
  .hero__grid {
    gap: 24px;
  }
  .hero__visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .float--a {
    left: -12px;
  }
  .float--b {
    right: -8px;
  }
  .rules,
  .faq {
    gap: 40px;
  }
  .faq__head {
    position: static;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .nav__actions .link-quiet,
  .nav__actions .btn {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .float--a {
    left: 8px;
    bottom: -8px;
  }
  .float--b {
    right: 8px;
  }
  .device__body {
    padding: 18px;
  }
  .panel__actions .fake-btn--ghost {
    display: none;
  }
  .steps,
  .bento,
  .audience,
  .security {
    grid-template-columns: 1fr;
  }
  .card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .aud {
    padding: 32px;
  }
  .sec,
  .sec + .sec {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .footer__inner,
  .footer__legal {
    flex-direction: column;
  }
  .footer__nav {
    gap: 48px;
  }
}

@media (min-width: 761px) {
  .nav__mobile {
    display: none !important;
  }
}

/* 404 */
.notfound__logo {
  margin: 0 auto 48px;
}
