/* ──────────────────────────────────────────
   BASE
   Variabili tema, reset, tipografia, accessibility
   ────────────────────────────────────────── */

:root {
  --bg-color: #000000;
  --bg-darker: #0a0a0a;
  --bg-section: #080808;
  --accent-color: #e1a34b;
  --accent-hover: #f0b55e;
  --accent-soft: rgba(225, 163, 75, 0.12);
  --accent-softer: rgba(225, 163, 75, 0.07);
  --border-soft: rgba(225, 163, 75, 0.25);
  --border-faint: rgba(255, 255, 255, 0.06);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --font-primary: "ClearSans", sans-serif;
  --radius-card: 10px;
  --transition-fast: 0.2s ease;
  --transition-mid: 0.3s ease;
}

/* Hide scrollbars globally, keep scroll behaviour */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Prevent horizontal scroll caused by transformed elements
   (e.g. closed mobile offcanvas with translateX) */
html,
body {
  overflow-x: clip;
}

/* Lock vertical scroll when the mobile nav offcanvas is open.
   Bootstrap auto-locks body for plain .offcanvas, but not for responsive
   variants (offcanvas-lg), so we handle it manually.
   Lock both html and body, otherwise touch scroll on backdrop chains to html. */
@media (max-width: 991.98px) {
  html:has(.profm-nav__panel.show),
  html:has(.profm-nav__panel.show) body {
    overflow: hidden;
    height: 100%;
  }

  /* Prevent scroll chaining from the offcanvas panel content */
  .profm-nav__panel {
    overscroll-behavior: contain;
  }
}

body {
  font-size: 1rem;
  line-height: 1.65;
}

.bg-darker {
  background-color: var(--bg-darker);
}

h1,
h2,
h3 {
  font-family: var(--font-primary);
}

h1 {
  text-transform: uppercase;
  color: var(--accent-color);
}

h2 {
  color: var(--accent-color);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p {
  line-height: 1.7;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-faint);
  margin: 0;
}

.section-heading-block {
  margin-bottom: 3rem;
}

.section-heading-block h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.section-heading-block .lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Generic gold link */
.link-gold {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-mid);
}

.link-gold:hover {
  color: #fff;
}

.link-gold:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Generic gold icon (used in card sets) */
.icon-feature {
  font-size: 2.2rem !important;
  color: var(--accent-color);
  display: block;
  line-height: 1;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent-color);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  text-decoration: none;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* Smooth scroll */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
