/* Pagine per ristoratori: /demo, /prezzi, /promozioni, /partner. Mobile-first. */
:root {
  --blue: #1F4FD8;
  --blue-dark: #173CA6;
  --blue-soft: #EAF0FD;
  --ink: #121826;
  --muted: #4B5565;
  --line: #DDE3EE;
  --alt: #F5F7FB;
  --ok: #167A43;
  --r: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 9vw, 56px); }
h2 { font-size: clamp(25px, 5.5vw, 34px); margin-bottom: 20px; }
h3 { font-size: 18px; margin-bottom: 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.r-wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.r-section { padding: 48px 0; }
.r-section.alt { background: var(--alt); }
.sub { color: var(--muted); margin: -8px 0 20px; }

/* Header */
.r-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.r-top .r-wrap { display: flex; align-items: center; height: 60px; gap: 12px; }
.logo { font-family: "Bitcount", monospace; font-weight: 700; font-size: 24px; letter-spacing: 3px; color: #DC2626; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.r-top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.r-top nav a:not(.r-btn) { color: var(--ink); text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; }
.r-top nav a:not(.r-btn):hover { color: var(--blue); }

/* Pulsanti: almeno 48 px di altezza */
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; font-family: inherit; text-align: center; }
.r-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.r-btn.ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.r-btn.ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.r-btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.link-arrow { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.link-arrow::after { content: " →"; white-space: pre; }

/* Fascia codice invito */
.ref-banner { background: var(--ok); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }
.ref-banner[hidden] { display: none; }

/* Apertura */
.hero { padding: 36px 0 44px; background: linear-gradient(180deg, var(--blue-soft), #fff 85%); }
.eyebrow { display: inline-block; background: #fff; color: var(--blue-dark); border: 1px solid #C9D6F7; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 620px; margin-bottom: 24px; }
.cta { display: flex; flex-direction: column; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Schede */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; flex: none; color: var(--blue); background: var(--blue-soft); border-radius: 12px; padding: 10px; }

/* Passi */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 0; color: var(--muted); }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 18px/40px "Space Grotesk", sans-serif; text-align: center; }

/* Tabelle: su mobile scorrono dentro il riquadro */
.table-box { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: "Space Grotesk", sans-serif; font-size: 15px; background: var(--alt); }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.tick { width: 22px; height: 22px; margin: 0 auto; }
.yes { color: var(--ok); }
.no { color: #6B7486; }
.price-line { margin: 20px 0 4px; font-size: 18px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; min-height: 44px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Chiusura */
.closing { background: var(--blue); color: #fff; }
.closing h2 { color: #fff; }
.closing .r-btn { background: #fff; color: var(--blue); border-color: #fff; }
.closing .r-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.closing .r-btn:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* Footer */
.r-bottom { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
.r-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
.r-bottom nav a { color: var(--muted); padding: 0 6px; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 599px) {
  .r-top nav a.hide-sm { display: none; }
}
@media (min-width: 600px) {
  .cta { flex-direction: row; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .r-section { padding: 72px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-2 { grid-template-columns: repeat(4, 1fr); }
}

/* /prezzi */
.hero-sm { padding-bottom: 28px; }
.hero-sm .lead { margin-bottom: 20px; }
.billing { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.billing label { position: relative; cursor: pointer; }
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.billing em { font-style: normal; font-size: 12.5px; background: #E7F5EC; color: #14532D; padding: 2px 8px; border-radius: 999px; }
.billing input:checked + span { background: var(--blue); color: #fff; }
.billing input:checked + span em { background: #fff; color: #14532D; }
.billing input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.plans-sec { padding-top: 8px; }
.plans { display: grid; gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan.rec { border: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(31,79,216,.10); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan h3 { font-size: 22px; margin: 0; }
.badge { font-size: 13px; font-weight: 700; background: var(--blue-soft); color: var(--blue-dark); padding: 3px 10px; border-radius: 999px; }
.plan.rec .badge { background: var(--blue); color: #fff; }
.plan-sum { color: var(--muted); margin: 0; }
.price { margin: 0; font-family: "Space Grotesk", sans-serif; }
.price .amount { font-size: 34px; font-weight: 700; }
.price .per { color: var(--muted); font-size: 16px; margin-left: 2px; }
.price-sub { margin: 0; color: var(--muted); font-size: 14px; }
.price-sub.save { color: var(--ok); font-weight: 700; }
.plan .r-btn { width: 100%; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.feats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; }
.feats li { display: flex; gap: 8px; align-items: flex-start; }
.tick-s { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }
.vat { color: var(--muted); font-size: 14px; margin-top: 16px; }
.compare.wide { min-width: 560px; }
.compare.wide th[scope="row"] { min-width: 180px; }
.table-box:focus-visible { outline: 3px solid var(--blue); }
.guarantee { display: flex; gap: 14px; align-items: center; background: #E7F5EC; border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.guarantee p { margin: 0; color: #14532D; }
.guarantee .ico { color: var(--ok); background: #fff; }
.founders-banner { display: grid; gap: 4px; text-decoration: none; background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px 20px; }
.founders-banner strong { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.founders-banner span { color: #D7DEEA; }
.founders-banner .go { color: #fff; font-weight: 700; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } .plan.rec { transform: translateY(-6px); } }

/* /promozioni */
.eyebrow.dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.founders-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; }
.founders-box h2 { color: #fff; }
.founders-box p { color: #D7DEEA; }
.founders-box .seats { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin: 8px 0 16px; }
.founders-box .r-btn { background: #fff; color: var(--blue); border-color: #fff; }
.promo-founders { padding-bottom: 32px; }
.promo-grid { display: grid; gap: 14px; }
.card.promo h2 { font-size: 22px; margin-bottom: 8px; }
.card.promo p { font-size: 16px; margin-bottom: 12px; }
.ref-me { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--alt); display: grid; gap: 12px; }
.ref-me p { margin: 0; }
.ref-me [hidden] { display: none; }
.ref-link { word-break: break-all; color: var(--muted); font-size: 15px; }
.closing p { color: #E6ECFB; }
@media (min-width: 900px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }

/* /partner */
.narrow { max-width: 640px; }
.example { margin-top: 16px; font-size: 17px; }
.compare.money td { white-space: nowrap; }
.levels .level { align-items: center; justify-content: space-between; }
.levels .level strong { font-family: "Space Grotesk", sans-serif; font-size: 28px; color: var(--blue); }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.pform { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; padding: 12px; min-height: 48px; border: 1px solid #8A94A6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.form-error { color: #B42318; font-weight: 600; margin: 0; }
.form-error[hidden], .form-ok[hidden], .pform[hidden] { display: none; }
.form-ok { background: #E7F5EC; color: #14532D; border-radius: var(--r); padding: 20px; }
.form-ok h3 { margin: 0; }
@media (min-width: 960px) { .steps.steps-6 { grid-template-columns: repeat(3, 1fr); } .cards.levels { grid-template-columns: repeat(3, 1fr); } }

/* Banner cookie (solo con Meta Pixel configurato) */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(18,24,38,.18); padding: 16px; max-width: 560px; margin: 0 auto; }
.cookie-banner p { font-size: 14px; margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions .r-btn { flex: 1; }
.r-bottom [data-cookie-prefs][hidden] { display: none; }
