/* ============================================================================
   ERA GATE — style.css · Proposta grafica sito marketing v0.1
   ----------------------------------------------------------------------------
   Struttura pensata per il co-sviluppo:
   1. Design token (variabili CSS) — QUI si cambia il brand, non nel resto
   2. Base e utilità
   3. Componenti (bottoni, card, badge)
   4. Sezioni della pagina, in ordine di apparizione
   Convenzioni: classi tipo BEM semplificato (.blocco, .blocco-elemento),
   niente framework, mobile-first con breakpoint a 720px e 980px.
   ============================================================================ */

/* 1 · DESIGN TOKEN ---------------------------------------------------------- */
:root {
  /* Palette (identica al prodotto: continuità brand kiosk ↔ sito) */
  --ink: #0E1726;          /* blu inchiostro — testo e fondi scuri */
  --ink-2: #1B2A44;        /* variante per superfici scure */
  --paper: #F4F6F4;        /* fondo pagina, neutro freddo */
  --card: #FFFFFF;
  --line: #DDE3E0;
  --accent: #2E5BFF;       /* blu "varco" — azioni e firma visiva */
  --green: #128A54;        /* stato ok / check-in */
  --green-soft: #E2F3EA;
  --amber: #C97A12;
  --muted: #5C6B7A;

  /* Tipografia */
  --font-display: 'Archivo', sans-serif;   /* titoli: pesi 800–900 */
  --font-body: 'Inter', sans-serif;        /* testo: 400–600 */

  /* Ritmo */
  --radius: 14px;
  --radius-lg: 20px;
  --section-y: clamp(56px, 9vw, 110px);    /* respiro verticale sezioni */
  --container: 1120px;

  /* Firma visiva: la "striscia varco" (barriera d'ingresso stilizzata) */
  --gate-stripe: repeating-linear-gradient(-55deg, var(--ink) 0 14px, var(--accent) 14px 28px);
}

/* 2 · BASE ------------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--section-y); }

/* titoli */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(34px, 5.6vw, 58px); }
h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-weight: 800; font-size: 19px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 620px; }

/* firma visiva: striscia varco come divisore di sezione */
.gate-stripe { height: 8px; background: var(--gate-stripe); }
.gate-stripe--thin { height: 5px; border-radius: 3px; }

/* 3 · COMPONENTI ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 15.5px;
  padding: 14px 26px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: repeating-linear-gradient(-55deg, var(--accent) 0 7px, #fff 7px 14px); flex: none; }
.logo b { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: .02em; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14,23,38,.10); }

.pill {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 99px;
}
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--ink { background: var(--ink); color: #fff; }

/* 4 · SEZIONI --------------------------------------------------------------- */

/* 4.1 · Annuncio */
.topbar {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 13.5px; padding: 9px 16px;
}
.topbar a { color: #9DB4FF; font-weight: 600; }

/* 4.2 · Navigazione */
.nav { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; }        /* hamburger: al programmatore (JS) */

/* 4.3 · Hero — la tesi: il badge è il prodotto */
.hero { background: var(--card); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; padding-block: var(--section-y); }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-block: 20px 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.hero-note b { color: var(--green); }

/* visual del hero: badge visitatore costruito in puro CSS (nessuna immagine) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.badge-card {
  width: min(320px, 88%); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 26px 60px rgba(14,23,38,.18);
  transform: rotate(-3deg); position: relative; z-index: 2;
}
.badge-card-stripe { height: 12px; background: var(--gate-stripe); }
.badge-card-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; }
.badge-card-head i { width: 20px; height: 20px; border-radius: 5px; background: repeating-linear-gradient(-55deg, var(--accent) 0 4px, var(--ink) 4px 8px); }
.badge-card-head b { font-family: var(--font-display); font-weight: 900; font-size: 12px; letter-spacing: .07em; }
.badge-card-body { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.badge-photo {
  width: 64px; height: 64px; border-radius: 12px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.badge-name { font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.badge-co { font-size: 13px; color: var(--muted); }
.badge-card-foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 20px 18px; font-size: 11px; color: var(--muted); }
.badge-qr { width: 48px; height: 48px; border-radius: 5px; border: 4px solid #fff; outline: 1px solid var(--line);
  background: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 11px 11px; }
/* seconda card sfumata dietro: profondità senza immagini */
.badge-card--ghost {
  position: absolute; inset: auto; width: min(300px, 80%);
  transform: rotate(4deg) translate(46px, 26px); opacity: .35; z-index: 1; filter: grayscale(.3);
}

/* 4.4 · Barra fiducia (i 4 differenziatori, non loghi clienti finti) */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust-grid { display: grid; gap: 18px; padding-block: 26px; grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.trust-item i { font-style: normal; font-size: 20px; }

/* 4.5 · Come funziona (3 passi: la sequenza è reale, la numerazione è informazione) */
.steps-grid { display: grid; gap: 20px; margin-top: 40px; }
.step { position: relative; }
.step-n {
  font-family: var(--font-display); font-weight: 900; font-size: 40px;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* 4.6 · Moduli */
.modules { background: var(--card); }
.modules-grid { display: grid; gap: 20px; margin-top: 40px; }
.module-card h3 { margin-block: 6px 8px; }
.module-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.module-card ul { list-style: none; font-size: 14px; }
.module-card li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.module-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* 4.7 · On-premise — la sezione distintiva (fondo scuro, tono tecnico) */
.onprem { background: var(--ink); color: #fff; }
.onprem .eyebrow { color: #9DB4FF; }
.onprem .lead { color: #B9C5D4; }
.onprem-grid { display: grid; gap: 44px; align-items: center; }
.onprem-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.onprem-points li { display: flex; gap: 12px; font-size: 15.5px; }
.onprem-points i { font-style: normal; color: #9DB4FF; }
/* riquadro "server" in CSS: terminale stilizzato */
.server-box {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 22px; font-family: 'DejaVu Sans Mono', monospace; font-size: 13px; line-height: 1.8;
  color: #C7D4E4; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.server-box .ok { color: #6FE3A5; }
.server-box .cmd { color: #fff; }

/* 4.8 · Prezzi */
.pricing-grid { display: grid; gap: 20px; margin-top: 40px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-display); font-weight: 900; font-size: 40px; margin-block: 10px 2px; }
.price-card .per { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.price-card ul { list-style: none; font-size: 14.5px; margin-bottom: 22px; }
.price-card li { padding-left: 22px; position: relative; margin-bottom: 7px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card--featured { border: 2px solid var(--accent); position: relative; }
.price-card--featured .pill { position: absolute; top: -13px; left: 24px; }

/* 4.9 · CTA finale */
.cta-final { text-align: center; }
.cta-final .lead { margin-inline: auto; margin-block: 16px 30px; }

/* 4.10 · Footer */
.footer { background: var(--ink); color: #B9C5D4; font-size: 14px; }
.footer-grid { display: grid; gap: 34px; padding-block: 54px; }
.footer h4 { font-family: var(--font-display); color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* 5 · RESPONSIVE ------------------------------------------------------------ */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .onprem-grid { grid-template-columns: 1.1fr .9fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 719px) {
  .nav-links { display: none; }        /* menu mobile: al programmatore */
  .nav-toggle { display: block; margin-left: auto; background: none; border: none; font-size: 24px; cursor: pointer; }
}
