/* ============================================================
   Guida TicketReport — foglio di stile condiviso
   Palette allineata all'app (sidebar.css):
     blu scuro  #2e4a63   azzurro  #5b8db8   oro  #ffd54a
   Font: Raleway (titoli) + Segoe UI (testo)
   Questo file è condiviso da tutte le pagine della guida.
   Modificalo per cambiare l'aspetto dell'intera guida.
   ============================================================ */

:root {
  --brand:        #2e4a63;
  --brand-2:      #5b8db8;
  --brand-soft:   #9bc1f5;
  --gold:         #ffd54a;
  --ink:          #1f2a37;
  --muted:        #5b6b7c;
  --line:         #e3e7ec;
  --bg:           #f5f7fa;
  --card:         #ffffff;
  --ok:           #1f9d57;
  --warn:         #c77700;
  --radius:       14px;
  --shadow:       0 1px 3px rgba(16,32,52,.06), 0 8px 24px rgba(16,32,52,.06);
  --shadow-hover: 0 4px 10px rgba(16,32,52,.10), 0 16px 40px rgba(16,32,52,.12);
  --sidebar-w:    268px;
  --maxw:         1180px;
  --font:         'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-head:    'Raleway', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout a due colonne: nav fissa + contenuto ---------- */
.layout { display: flex; min-height: 100vh; }

.sidenav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  padding: 0 0 24px;
}
.sidenav .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  margin-bottom: 10px;
}
.sidenav .brand img { height: 30px; width: auto; display: block; }
.sidenav .brand .tag {
  font: 700 11px/1 var(--font-head);
  letter-spacing: 1.5px;
  color: var(--brand-soft);
  text-transform: uppercase;
}
.sidenav .nav-group-label {
  font: 700 11px/1 var(--font-head);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 16px 22px 6px;
}
.sidenav a.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 22px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidenav a.nav-item i { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.sidenav a.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sidenav a.nav-item.active {
  background: rgba(255,255,255,.11);
  border-left-color: var(--gold);
  color: #fff; font-weight: 600;
}
.sidenav a.nav-item .soon {
  margin-left: auto; font-size: 9px; font-weight: 700;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.7);
  padding: 2px 6px; border-radius: 20px; letter-spacing: .3px;
}

/* ---------- Colonna contenuto ---------- */
.content { flex: 1; min-width: 0; }
.content-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px 80px; }

/* ---------- Hero (solo home) ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(91,141,184,.45), transparent 60%),
    linear-gradient(135deg, #26405a 0%, #2e4a63 55%, #38597a 100%);
  color: #fff;
  padding: 54px 40px 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,213,74,.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero img.logo { height: 46px; margin-bottom: 22px; }
.hero h1 {
  font: 800 34px/1.15 var(--font-head);
  margin: 0 0 12px;
  letter-spacing: -.3px;
}
.hero p.lead { font-size: 17px; max-width: 640px; margin: 0 0 22px; color: rgba(255,255,255,.9); }
.hero .meta { font-size: 13px; color: rgba(255,255,255,.65); }
.hero .meta strong { color: var(--gold); font-weight: 600; }

/* ---------- Barra di ricerca ---------- */
.searchbar {
  max-width: var(--maxw); margin: -26px auto 0; padding: 0 40px; position: relative; z-index: 3;
}
.searchbar .box {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow);
}
.searchbar i { color: var(--muted); font-size: 16px; }
.searchbar input {
  border: 0; outline: 0; flex: 1; font-size: 15px; font-family: var(--font); background: transparent; color: var(--ink);
}

/* ---------- Griglia schede ---------- */
.section-title {
  font: 700 13px/1 var(--font-head); letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
  margin: 40px 0 16px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  color: var(--ink); text-decoration: none; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfd8e3; text-decoration: none; }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.card h3 { margin: 0 0 6px; font: 700 17px/1.25 var(--font-head); color: var(--brand); }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .arrow { position: absolute; top: 22px; right: 20px; color: #c2ccd8; transition: transform .15s, color .15s; }
.card:hover .arrow { transform: translateX(3px); color: var(--brand-2); }
.card.coming { opacity: .72; }
.card.coming .badge-soon {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  background: #fff6df; color: var(--warn);
  border: 1px solid #f2e0b0; padding: 3px 8px; border-radius: 20px;
}
.card.hide { display: none; }

.no-results {
  display: none; padding: 30px; text-align: center; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 18px;
}

/* ---------- Blocchi utili riusabili nelle pagine di sezione ---------- */
.callout { border-left: 4px solid var(--brand-2); background: #eef4fb; border-radius: 8px; padding: 14px 16px; margin: 18px 0; font-size: 14px; }
.callout.tip { border-color: var(--ok); background: #eefaf2; }
.callout.warn { border-color: var(--warn); background: #fff6e8; }

figure.shot { margin: 22px 0; }
figure.shot img { width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: block; }
figure.shot .placeholder {
  width: 100%; aspect-ratio: 16/9; border: 2px dashed #c4d0dd; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); background: #eef2f7; text-align: center; gap: 6px; padding: 20px;
}
figure.shot .placeholder i { font-size: 26px; color: var(--brand-soft); }
figure.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
figure.shot .shot-stack { display: flex; flex-direction: column; gap: 10px; }
/* Immagini strette (UI verticali: login, menu): non ingrandire oltre il naturale */
figure.shot.narrow img { width: auto; max-width: 100%; margin: 0 auto; }
figure.shot.narrow.w360 img { max-width: 360px; }

/* ---------- Ricostruzioni fedeli dell'interfaccia (mock HTML) ---------- */
.uimock {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.uimock-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 10px 14px; font-size: 13px; color: var(--ink);
  justify-content: space-between;
}
.uimock-cluster { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uimock-title { font: 800 17px/1 var(--font-head); color: var(--ink); }
.uimock-title .b { color: var(--brand-2); }
.uimock-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f1f4f8; border: 1px solid #dde3ea; border-radius: 20px;
  padding: 7px 14px; color: #93a1b2; min-width: 210px;
}
.uimock-check { display: inline-flex; align-items: center; gap: 6px; color: #2b3a4b; white-space: nowrap; }
.uimock-check .box {
  width: 15px; height: 15px; border-radius: 3px; background: var(--brand-2);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
}
.uimock-ico {
  width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dde3ea; background: #fff; color: #56657a; font-size: 13px;
}
.uimock-ico.round { border-radius: 50%; border: none; color: #fff; font-weight: 700; }
.uimock-ico.blue { background: var(--brand-2); }
.uimock-ico.dark { background: var(--brand); }
.uimock-ico.orange { background: #f5a623; }
.uimock-sep { width: 1px; height: 22px; background: var(--line); }
.uimock-sort { display: inline-flex; align-items: center; gap: 6px; color: #2b3a4b; }
.uimock-interval { display: inline-flex; align-items: center; gap: 6px; color: #5b6b7c; white-space: nowrap; }
.uimock-interval .n {
  width: 24px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dde3ea; background: #fff; color: #56657a; font-weight: 600; font-size: 12px;
}
.uimock-interval .n.active { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.uimock-badge { position: relative; }
.uimock-badge .dot {
  position: absolute; top: -5px; right: -5px; background: #e53e3e; color: #fff;
  font-size: 9px; font-weight: 700; min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.uimock-user { color: #56657a; white-space: nowrap; }
.uimock-user b { color: var(--ink); }

/* Ricostruzione della scheda evento */
.cardmock {
  position: relative; display: flex; align-items: center; gap: 16px;
  border: 1px solid #dbe2ea; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); padding: 14px 18px; overflow: hidden;
}
.cardmock .cm-date {
  flex-shrink: 0; width: 62px; text-align: center; border: 1px solid #e0e6ee;
  border-radius: 8px; padding: 6px 4px; line-height: 1.1;
}
.cardmock .cm-date .wd { font-size: 10px; color: #8a97a6; font-weight: 700; letter-spacing: .5px; }
.cardmock .cm-date .d { font-size: 26px; font-weight: 800; color: #e23b3b; font-family: var(--font-head); }
.cardmock .cm-date .mo { font-size: 11px; color: #8a97a6; font-weight: 700; letter-spacing: .5px; }
.cardmock .cm-date .yr { font-size: 9px; color: #b3bdc9; }
.cardmock .cm-info { flex: 1; min-width: 0; }
.cardmock .cm-info .t { font: 800 16px/1.2 var(--font-head); color: var(--ink); }
.cardmock .cm-info .v { font-size: 12.5px; color: #55636f; margin-top: 2px; }
.cardmock .cm-info .o { font-size: 11px; color: var(--brand-2); margin-top: 1px; }
.cardmock .cm-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #8895a4; font-size: 14px; }
.cardmock .cm-actions .pie {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--brand-2) 0 50%, #e6ecf3 50% 100%);
  display: inline-flex; align-items: center; justify-content: center;
}
.cardmock .cm-actions .pie span { font-size: 8px; font-weight: 700; color: var(--brand); background:#fff; width:15px;height:15px;border-radius:50%;display:flex;align-items:center;justify-content:center; }
.cardmock .cm-actions .vt { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-2); color:#fff; font-weight:700; font-size:11px; display:inline-flex; align-items:center; justify-content:center; }
.cardmock .cm-actions .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color:#fff; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.cardmock .cm-kpis { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cardmock .kpi {
  min-width: 96px; text-align: center; border-radius: 9px; padding: 8px 10px; background: #eef3f9;
}
.cardmock .kpi.hl { background: #dce8f6; }
.cardmock .kpi .kl { font-size: 10px; color: #7a8896; text-transform: uppercase; letter-spacing: .4px; }
.cardmock .kpi .kv { font-size: 16px; font-weight: 800; color: var(--brand); font-family: var(--font-head); }
.cardmock .diff {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: #e3f6ea; color: #1f9d57; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cardmock .cm-hide { position: absolute; top: 10px; right: 12px; color: #c2ccd8; font-size: 13px; }
@media (max-width: 760px) {
  .cardmock { flex-wrap: wrap; }
  .cardmock .cm-kpis { width: 100%; overflow-x: auto; }
}

/* ---------- Pagine di sezione: intestazione e prosa ---------- */
.page-head { padding: 30px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--brand-2); }
.breadcrumb i { font-size: 10px; margin: 0 6px; color: #b6c1cd; }
.page-head h1 {
  font: 800 30px/1.15 var(--font-head); color: var(--brand);
  margin: 0 0 8px; letter-spacing: -.3px; display: flex; align-items: center; gap: 12px;
}
.page-head h1 .ic {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.page-head p.sub { font-size: 16px; color: var(--muted); margin: 0; max-width: 720px; }

.prose { padding-top: 6px; }
.prose h2 {
  font: 700 22px/1.3 var(--font-head); color: var(--brand);
  margin: 38px 0 10px; padding-top: 8px; scroll-margin-top: 20px;
}
.prose h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; font-size: 14px; margin-right: 10px;
  background: #eef4fb; color: var(--brand-2); font-family: var(--font);
}
.prose h3 { font: 700 17px/1.35 var(--font-head); color: var(--ink); margin: 24px 0 6px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose code {
  background: #eef2f7; border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 13px; font-family: Consolas, 'Courier New', monospace; color: #33506b;
}

/* Pillole per elementi UI citati (es. un pulsante o una spunta) */
.ui {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef4fb; border: 1px solid #d6e3f1; color: var(--brand);
  border-radius: 6px; padding: 1px 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ui i { font-size: 12px; }

/* Tabella dei significati (colonne/KPI) */
.deftable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.deftable th, .deftable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deftable th { background: #f0f4f9; color: var(--brand); font: 700 13px/1.3 var(--font-head); }
.deftable tr:last-child td { border-bottom: 0; }
.deftable td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.deftable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }

/* Passi numerati */
.steps { counter-reset: step; padding: 0; margin: 16px 0; list-style: none; }
.steps li {
  position: relative; padding: 4px 0 16px 44px; margin: 0;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--line);
}

/* FAQ: accordion nativi details/summary */
.faq-group { margin: 26px 0 10px; }
.faq-group-title {
  font: 700 13px/1 var(--font-head); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--brand-2); margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  margin: 8px 0; overflow: hidden; box-shadow: var(--shadow);
}
details.faq > summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative;
  font-weight: 600; color: var(--ink); font-size: 15px; user-select: none;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: #b6c1cd; font-size: 13px; transition: transform .2s;
}
details.faq[open] > summary::after { transform: translateY(-50%) rotate(180deg); color: var(--brand-2); }
details.faq[open] > summary { color: var(--brand); }
details.faq .faq-body { padding: 0 16px 16px; font-size: 14px; color: var(--muted); }
details.faq .faq-body p { margin: 4px 0 8px; }
details.faq .faq-body a { color: var(--brand-2); }
details.faq.hide { display: none; }
.faq-noresults { display: none; padding: 24px; text-align: center; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: 10px; margin-top: 12px; }

/* Blocco "vedi anche" */
.seealso { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.seealso a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none;
}
.seealso a:hover { border-color: var(--brand-2); box-shadow: var(--shadow); text-decoration: none; }
.seealso a i { color: var(--brand-2); font-size: 15px; }

/* ---------- Footer ---------- */
.help-footer {
  border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 40px;
  color: var(--muted); font-size: 13px;
}
.help-footer .inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 9999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Menu mobile ---------- */
.topbar-mobile { display: none; }

@media (max-width: 900px) {
  .sidenav {
    position: fixed; left: 0; top: 0; z-index: 1000;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.25);
  }
  .sidenav.open { transform: translateX(0); }
  .topbar-mobile {
    display: flex; align-items: center; gap: 12px;
    background: var(--brand); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 500;
  }
  .topbar-mobile img { height: 24px; }
  .topbar-mobile button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
  .content-inner, .hero-inner, .searchbar, .help-footer .inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 36px 20px; }
  .searchbar { padding: 0 20px; }
  .backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 900; }
  .backdrop.show { display: block; }
}
