/* ============ GFX-OVER Manuale Utente — Stylesheet ============ */

:root {
  --navy: #122649;
  --navy-light: #1c3a6b;
  --orange: #f97316;
  --orange-light: #fb923c;
  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #1f2937;
  --text-muted: #5b6677;
  --text-faint: #8a93a3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(18, 38, 73, 0.06), 0 8px 24px rgba(18, 38, 73, 0.06);
  --shadow-lg: 0 20px 60px rgba(18, 38, 73, 0.18);
  --sidebar-w: 280px;
  --content-max: 100%;
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

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

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

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ============ Top bar (mobile) ============ */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.topbar .brand img { width: 30px; height: 30px; border-radius: 7px; }
.menu-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

/* ============ Layout shell ============ */
.shell {
  display: flex;
  min-height: 100vh;
}

/* ============ Sidebar ============ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy);
  color: #cdd8ec;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 0 28px 0;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.sidebar-header img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.sidebar-header .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.2px;
}
.sidebar-header .brand-sub {
  font-size: 0.68rem;
  color: var(--orange-light);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7d9e;
  padding: 14px 24px 6px;
  font-weight: 600;
}

.nav-list { list-style: none; margin: 0; padding: 0 12px; }
.nav-list li { margin: 1px 0; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #b9c6de;
  font-size: 0.89rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}
.nav-list a.active {
  background: var(--orange);
  color: #fff;
}
.nav-list .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-list a.active .num { background: rgba(255,255,255,0.25); }

.sidebar-footer {
  padding: 20px 24px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.74rem;
  color: #6b7d9e;
}

/* ============ Sidebar overlay (mobile) ============ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 30, 0.55);
  z-index: 55;
}
.sidebar-overlay.show { display: block; }

/* ============ Main content ============ */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ============ Hero (cover) ============ */
.hero {
  position: relative;
  margin: 0 0 0;
  padding: 0;
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.hero-photo-wrap { position: relative; }
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,38,73,0) 40%, rgba(10,18,35,0.75) 100%);
}
.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.hero-card {
  text-align: center;
  padding: 56px 24px 64px;
}
.hero-card .logo {
  width: 170px;
  height: 170px;
  border-radius: 22px;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-lg);
}
.hero-card h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-card .eyebrow {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
}
.hero-card .divider {
  width: 64px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 22px auto;
}
.hero-card .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto;
}
.hero-card .tagline-sub {
  font-size: 0.95rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 8px;
}
.hero-mockup {
  margin-top: 40px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.version-tag {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ============ Quick nav chips (cover) ============ */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 640px;
  margin: 36px auto 0;
}
@media (max-width: 640px) {
  .quick-nav { grid-template-columns: repeat(2, 1fr); }
}
.quick-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick-nav a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
  text-decoration: none;
}
.quick-nav .qn-icon { font-size: 1.3rem; }

/* ============ Section ============ */
.section {
  padding: 64px 0 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.section:last-of-type { border-bottom: none; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.section h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section .lede {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
}

.subsection { margin-top: 44px; }
.subsection h3.sub-title {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-top: 6px;
}

/* ============ Screen card (title bar + screenshot) ============ */
.screen-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 22px 0 28px;
}
.screen-card .shot-pane {
  background: linear-gradient(160deg, #0d1b33, #14305c);
  padding: 26px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 480px;
}
.screen-card .shot-pane img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.screen-card .info-pane {
  padding: 26px 26px 26px 0;
  flex: 1;
  min-width: 0;
}
.screen-card .info-pane .tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.screen-card .info-pane h4 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.screen-card .info-pane .subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .screen-card { flex-direction: column; }
  .screen-card .shot-pane { width: 100%; padding: 28px; }
  .screen-card .shot-pane img { max-width: 220px; margin: 0 auto; }
  .screen-card .info-pane { padding: 22px; }
}

/* Two-shot comparison (lineup home/away) */
.screen-card.two-shot .shot-pane {
  width: auto;
  display: flex;
  gap: 14px;
}
.screen-card.two-shot .shot-pane img { width: 150px; }
@media (max-width: 760px) {
  .screen-card.two-shot .shot-pane { flex-wrap: wrap; justify-content: center; }
}

/* ============ Field list ============ */
.field-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.field-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
  color: var(--text);
}
.field-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.field-list strong { color: var(--navy); }

/* ============ Steps ============ */
.steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 28px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.step .step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.step .step-body h5 {
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.step .step-body p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

/* ============ Callout ============ */
.callout {
  border-left: 4px solid var(--orange);
  background: #fff7f0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout.note { background: #eef4ff; border-left-color: #3b82f6; }
.callout.tip { background: #effaf1; border-left-color: #22c55e; }
.callout .callout-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout p { margin: 4px 0; font-size: 0.93rem; color: #3a4150; }
.callout p:last-child { margin-bottom: 0; }

/* ============ Table ============ */
.table-wrap { overflow-x: auto; margin: 18px 0 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  white-space: nowrap;
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ============ Photo banner ============ */
.photo-banner {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-banner img { width: 100%; }
.photo-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 10px;
}

/* ============ Pill badges (control buttons) ============ */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
}
.pill.in { background: #1f6fe8; color: #fff; }
.pill.out { background: #e1453a; color: #fff; }
.pill.upd { background: #6b6f76; color: #fff; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 40;
  border: none;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--orange); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============ Footer ============ */
.page-footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.page-footer img { width: 130px; margin: 0 auto 16px; opacity: 0.9; }
.page-footer .signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ============ Progress bar ============ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--orange);
  z-index: 70;
  width: 0%;
  transition: width 0.1s;
}
@media (min-width: 901px) {
  .progress-bar { left: var(--sidebar-w); }
}

/* ============ Responsive: collapse sidebar ============ */
@media (max-width: 900px) {
  .topbar { display: flex; }
  .progress-bar { left: 0; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 56;
    width: min(82vw, 320px);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 0 18px 64px; }
  .hero-inner { padding: 0 18px; }
  .hero-card { padding: 36px 12px 44px; }
}

@media (max-width: 480px) {
  .screen-card .shot-pane img { max-width: 170px; }
  .hero-card .logo { width: 76px; height: 76px; }
}

/* Print */
@media print {
  .sidebar, .topbar, .back-to-top, .progress-bar { display: none !important; }
  .content { max-width: 100%; }
}
