@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --card-hover: #222222;
  /* White scale */
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-06: rgba(255,255,255,0.06);
  /* Primary — Red */
  --red: #d42e2e;
  --red-hover: #e04040;
  --red-10: rgba(212,46,46,0.1);
  --red-15: rgba(212,46,46,0.15);
  --red-glow: rgba(212,46,46,0.15);
  --red-dark: #111111;
  /* Legacy aliases (some pages still reference --lime) */
  --lime: var(--red);
  --lime-hover: var(--red-hover);
  --lime-dark: var(--white);
  --lime-10: var(--red-10);
  --lime-15: var(--red-15);
  /* Accents */
  --cyan: #44d9ee;
  --cyan-10: rgba(68,217,238,0.1);
  --orange: #ee9a44;
  --orange-10: rgba(238,154,68,0.1);
  --yellow: #f5a623;
  --green: #34c759;
  /* Status */
  --success: #44ee6c;
  --success-15: rgba(68,238,108,0.15);
  --warning: #eec844;
  --warning-15: rgba(238,200,68,0.15);
  --error: #ff4d4d;
  --info: #60a5fa;
  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* Misc */
  --radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --card-hover: #222222;
  /* White scale */
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-06: rgba(255,255,255,0.06);
  /* Primary — Red */
  --red: #d42e2e;
  --red-hover: #e04040;
  --red-10: rgba(212,46,46,0.1);
  --red-15: rgba(212,46,46,0.15);
  --red-glow: rgba(212,46,46,0.15);
  --red-dark: #111111;
  /* Legacy aliases (some pages still reference --lime) */
  --lime: var(--red);
  --lime-hover: var(--red-hover);
  --lime-dark: var(--white);
  --lime-10: var(--red-10);
  --lime-15: var(--red-15);
  /* Accents */
  --cyan: #44d9ee;
  --cyan-10: rgba(68,217,238,0.1);
  --orange: #ee9a44;
  --orange-10: rgba(238,154,68,0.1);
  --yellow: #f5a623;
  --green: #34c759;
  /* Status */
  --success: #44ee6c;
  --success-15: rgba(68,238,108,0.15);
  --warning: #eec844;
  --warning-15: rgba(238,200,68,0.15);
  --error: #ff4d4d;
  --info: #60a5fa;
  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* Misc */
  --radius: 4px;
}

/* ---- Success State ---- */
.success-state-container-external {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.success-state-container-external .success-state-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.success-state {
  display: none;
}
.success-state.visible {
  display: block;
}
.success-state .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
  background: rgba(68, 238, 108, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-state .success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-state h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.success-state p {
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--bg-darker);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-10);
}

.top-bar .top-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar .top-info a {
  color: var(--white-70);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar .top-info a:hover {
  color: var(--red);
}

.top-bar .top-social {
  display: flex;
  gap: 1rem;
}

.top-bar .top-social a {
  color: var(--white-40);
  text-decoration: none;
  font-size: 0.85rem;
}

.top-bar .top-social a:hover {
  color: var(--red);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}
ul.menu .accedi-li {
  display: none;
}
ul.menu .accedi-li A {
  color: var(--red);
}

/*
@import 'bootstrap.min';
@import 'bootstrap.rtl.min';
@import 'bootstrap-grid.min';
@import 'bootstrap-reboot.min';
@import 'bootstrap-utilities.rtl.min';
@import 'bootstrap-utilities.min';
@import 'bootstrap-reboot.rtl.min';
@import 'bootstrap-grid.rtl.min';
@import 'style';
@import 'responsive';
@import 'owl.carousel';
@import 'animate';
@import 'animate.min';
@import 'swiper-bundle.min';
@import 'magnific-popup.min';
@import 'map.min';
@import 'shortcodes';
 */
/*
 * Urban Runners — Shared Stylesheet
 * Centralized CSS for all HTML pages.
 * Page-specific overrides stay in each HTML file's <style> block.
 */
/* ═══════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-dark: #111111;
  --bg-darker: #0a0a0a;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --card-hover: #222222;
  /* White scale */
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-06: rgba(255,255,255,0.06);
  /* Primary — Red */
  --red: #d42e2e;
  --red-hover: #e04040;
  --red-10: rgba(212,46,46,0.1);
  --red-15: rgba(212,46,46,0.15);
  --red-glow: rgba(212,46,46,0.15);
  --red-dark: #111111;
  /* Legacy aliases (some pages still reference --lime) */
  --lime: var(--red);
  --lime-hover: var(--red-hover);
  --lime-dark: var(--white);
  --lime-10: var(--red-10);
  --lime-15: var(--red-15);
  /* Accents */
  --cyan: #44d9ee;
  --cyan-10: rgba(68,217,238,0.1);
  --orange: #ee9a44;
  --orange-10: rgba(238,154,68,0.1);
  --yellow: #f5a623;
  --green: #34c759;
  /* Status */
  --success: #44ee6c;
  --success-15: rgba(68,238,108,0.15);
  --warning: #eec844;
  --warning-15: rgba(238,200,68,0.15);
  --error: #ff4d4d;
  --info: #60a5fa;
  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* Misc */
  --radius: 4px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.top-bar {
  background: var(--bg-darker);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-10);
}

.top-bar .top-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar .top-info a {
  color: var(--white-70);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar .top-info a:hover {
  color: var(--red);
}

.top-bar .top-social {
  display: flex;
  gap: 1rem;
}

.top-bar .top-social a {
  color: var(--white-40);
  text-decoration: none;
  font-size: 0.85rem;
}

.top-bar .top-social a:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--bg-dark);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  border-bottom: 1px solid var(--white-10);
  position: relative;
  z-index: 900;
  transition: box-shadow 0.3s;
}

.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Push content down when header is sticky */
body.has-sticky-header .top-bar + .site-header.sticky ~ * {
  /* handled by JS adding padding to body */
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.logo span {
  color: var(--red);
}

/* Main nav (desktop) */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav > a,
.nav-dropdown-trigger {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

.main-nav > a:hover,
.nav-dropdown-trigger:hover,
.main-nav > a.active {
  color: var(--red);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 950;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background: var(--white-06);
}

/* CTA button in nav */
.btn-nav,
.btn-nav-cta {
  margin-left: 0.5rem;
  background: var(--red) !important;
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-nav:hover,
.btn-nav-cta:hover {
  background: var(--red-hover) !important;
}

.btn-nav-cta:active {
  transform: scale(0.97);
}

/* Legacy .site-header nav support */
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--red);
}

/* ═══════════════════════════════════════════
   HAMBURGER & MOBILE DRAWER
   ═══════════════════════════════════════════ */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

/* Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  z-index: 1000;
  background: var(--bg-darker);
  border-right: 1px solid var(--white-10);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--white-10);
}

.mobile-drawer-header .logo-img {
  height: 24px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--white-40);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.mobile-drawer-close:hover {
  color: var(--white);
}

/* Mobile nav items */
.mobile-drawer-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-link:hover {
  color: var(--red);
  background: var(--white-06);
}

.mobile-nav-cta {
  margin: 0.5rem 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius);
  text-align: center;
}

.mobile-nav-cta:hover {
  background: var(--red-hover);
  color: var(--white) !important;
}

/* Mobile accordion groups */
.mobile-nav-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.mobile-nav-group-trigger:hover {
  color: var(--red);
}

.mobile-nav-group-trigger svg {
  transition: transform 0.25s;
  color: var(--white-40);
}

.mobile-nav-group.open > .mobile-nav-group-trigger svg {
  transform: rotate(180deg);
}

.mobile-nav-group-items {
  display: none;
  flex-direction: column;
  padding: 0 0 0.5rem;
  background: var(--white-06);
}

.mobile-nav-group.open > .mobile-nav-group-items {
  display: flex;
}

.mobile-nav-group-items a {
  display: block;
  padding: 0.6rem 1.5rem 0.6rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color 0.15s;
}

.mobile-nav-group-items a:hover {
  color: var(--red);
}

.mobile-nav-logout {
  color: var(--red) !important;
}

/* Legacy mobile nav (backward compat) */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav a:hover {
  color: var(--red);
}

.mobile-nav .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.mobile-nav .close-btn svg {
  width: 32px;
  height: 32px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer-new {
  background: var(--bg-darker);
  border-top: 1px solid var(--white-10);
  padding: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--white-40);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  color: var(--red);
  border-color: var(--red);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--white-40);
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--white-40);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--white-40);
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--red);
}

/* Legacy footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--white-40);
  font-size: 0.82rem;
  border-top: 1px solid var(--white-10);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero,
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero {
  height: 420px;
}

.hero-section {
  height: 360px;
}

.hero img,
.hero-section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-section img {
  filter: brightness(0.4);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 3rem;
  width: 100%;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, transparent 100%);
}

.hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-overlay h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-overlay p {
  color: var(--white-70);
  font-size: 1.05rem;
  max-width: 650px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PAGE CONTENT & LAYOUT
   ═══════════════════════════════════════════ */
.page-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 20% 10%, rgba(212, 46, 46, 0.04) 0%, transparent 60%), var(--bg-dark);
}

.content-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  align-self: flex-start;
}

/* Page hero (gare, etc.) */
.page-hero {
  padding: 4rem 2rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--red-glow) 0%, transparent 60%), var(--bg-dark);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.page-hero h1 span {
  color: var(--red);
}

.page-hero p {
  color: var(--white-70);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  font-size: 0.82rem;
  color: var(--white-40);
}

.breadcrumb a {
  color: var(--white-40);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Dashboard layout */
.app-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 130px);
}

/* ═══════════════════════════════════════════
   SIDEBAR (Dashboard)
   ═══════════════════════════════════════════ */
.sidebar {
  width: 220px;
  background: var(--bg-darker);
  border-right: 1px solid var(--white-10);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: 0.15s;
  width: 100%;
  text-align: left;
}

.sidebar-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-btn:hover {
  background: var(--white-06);
  color: var(--white);
}

.sidebar-btn.active {
  background: var(--red-10);
  color: var(--red);
}

/* ═══════════════════════════════════════════
   CONTENT AREA (Dashboard)
   ═══════════════════════════════════════════ */
.content {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: auto;
  background: radial-gradient(ellipse at 10% 0%, rgba(212, 46, 46, 0.03) 0%, transparent 50%), var(--bg-dark);
}

.content .content-inner {
  max-width: 960px;
  margin: 0 auto;
}

.content .content-inner > * + * {
  margin-top: 1.25rem;
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-title p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white-40);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 0.4rem;
}

.page-subtitle {
  color: var(--white-70);
  margin-top: 4px;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--red);
}

.section-title em {
  font-style: normal;
  color: var(--red);
}

.section-subtitle {
  color: var(--white-70);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary,
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  min-width: 160px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost,
.btn.btn-ghost {
  background: none;
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--red-10);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  min-width: 160px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  padding: 0 1.5rem;
}

.btn-secondary:hover {
  border-color: var(--white-40);
  color: var(--white);
  background: var(--white-10);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  min-width: 160px;
  padding: 0 2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--red-hover);
}

.btn-submit:active {
  transform: scale(0.98);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.75rem 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--white);
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 2rem;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-white:hover {
  background: var(--white);
  color: var(--bg-dark);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  min-width: 160px;
  padding: 0 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-outline-white:hover {
  border-color: var(--white-40);
  background: var(--white-10);
}

.btn-sm,
.btn.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
}

.card .card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Info cards grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.info-card:hover {
  border-color: var(--red);
}

.info-card .ic-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.info-card .ic-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.info-card p,
.info-card a {
  color: var(--white-70);
  font-size: 0.88rem;
  line-height: 1.6;
  text-decoration: none;
}

.info-card a:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════════
   STATS GRID (Dashboard)
   ═══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--white-40);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--white-40);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.badge-success {
  background: var(--success-15);
  color: var(--success);
  border-color: rgba(68, 238, 108, 0.2);
}

.badge-warning {
  background: var(--warning-15);
  color: var(--warning);
  border-color: rgba(238, 200, 68, 0.2);
}

.badge-primary {
  background: var(--red-10);
  color: var(--red);
  border-color: rgba(212, 46, 46, 0.2);
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 0;
}

table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--card-border);
}

table td {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-06);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background: var(--white-06);
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--white-40);
}

.font-medium {
  font-weight: 500;
  color: var(--white);
}

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */
.tab-group {
  display: flex;
  gap: 2px;
  background: var(--white-06);
  border-radius: var(--radius);
  padding: 3px;
}

.tab-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: calc(var(--radius) - 1px);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white-40);
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.tab-btn:hover {
  color: var(--white-70);
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   USER INFO (Dashboard)
   ═══════════════════════════════════════════ */
.user-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
}

.user-row .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red-10);
  border: 2px solid rgba(212, 46, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
}

.user-row .user-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.user-row .user-level {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--red);
  color: var(--white);
}

.user-row .user-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--white-70);
  flex-wrap: wrap;
}

.user-row .user-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-row .user-meta svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
   GOAL CARD (Dashboard)
   ═══════════════════════════════════════════ */
.goal-card {
  padding: 1.25rem;
}

.goal-card .goal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.goal-card .goal-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-90);
}

.goal-card .goal-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--red);
}

.progress-bar {
  height: 8px;
  background: var(--white-06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  transition: width 0.4s;
}

/* ═══════════════════════════════════════════
   MINI BADGES (Dashboard)
   ═══════════════════════════════════════════ */
.mini-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-badge {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card-bg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.mini-badge:hover {
  border-color: var(--white-40);
}

.mini-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.mini-badge-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-90);
}

/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--white-70);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white-06);
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  height: auto;
  min-height: 5rem;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-40);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(212, 46, 46, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group select option {
  background: var(--card-bg);
  color: var(--white);
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--white-40);
  margin-top: 0.35rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.form-section .section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: none;
  padding-left: 0;
}

.form-section .section-icon {
  width: 32px;
  height: 32px;
  background: var(--red-15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-section .section-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-section .section-desc {
  color: var(--white-40);
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--white-70);
}

.checkbox-group input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--red);
  flex-shrink: 0;
}

.checkbox-group a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.form-group-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--white-70);
}

.form-group-inline label {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   AUTH CARDS (login, register, etc.)
   ═══════════════════════════════════════════ */
.auth-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(212, 46, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}

.form-options .remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-70);
}

.form-options .remember input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
}

.form-options a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

.form-options a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--white-40);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.social-buttons {
  display: flex;
  gap: 0.75rem;
}

.social-buttons button {
  flex: 1;
  height: 3rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white-06);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.social-buttons button:hover {
  background: var(--white-10);
  border-color: var(--white-40);
}

.social-buttons button svg {
  width: 18px;
  height: 18px;
}

.card-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--white-70);
}

.card-footer a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   OTP INPUTS
   ═══════════════════════════════════════════ */
.otp-group {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.otp-group input {
  width: 52px;
  height: 64px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  caret-color: var(--red);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-group input::placeholder {
  color: var(--white-40);
  font-size: 1.25rem;
}

.otp-group input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(212, 46, 46, 0.18);
}

.otp-group input.filled {
  border-color: var(--red);
  background: rgba(212, 46, 46, 0.06);
}

.otp-group input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.15);
}

.error-msg {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* ═══════════════════════════════════════════
   PASSWORD STRENGTH
   ═══════════════════════════════════════════ */
.password-strength {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.password-strength .bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--card-border);
  transition: background 0.3s;
}

.password-strength.strength-1 .bar:nth-child(1) {
  background: var(--error);
}

.password-strength.strength-2 .bar:nth-child(-n+2) {
  background: #f5a623;
}

.password-strength.strength-3 .bar:nth-child(-n+3) {
  background: var(--red);
}

.password-strength.strength-4 .bar {
  background: var(--success);
}

.strength-text {
  font-size: 0.75rem;
  color: var(--white-40);
  margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════
   RESEND & BACK LINKS
   ═══════════════════════════════════════════ */
.resend-section {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--white-70);
}

.resend-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0;
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link:disabled {
  color: var(--white-40);
  cursor: not-allowed;
}

.resend-link:disabled:hover {
  text-decoration: none;
}

.timer {
  color: var(--white-40);
  font-variant-numeric: tabular-nums;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  color: var(--white-40);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.back-link:hover {
  color: var(--white-70);
}

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════
   FOUNDER CARDS
   ═══════════════════════════════════════════ */
.founder-card {
  display: flex;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.founder-card:hover {
  border-color: var(--red);
}

.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--card-border);
}

.founder-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.founder-info .role {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.founder-info p {
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--red) 0%, #8b1a1a 100%);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   DOC LINKS
   ═══════════════════════════════════════════ */
.docs-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--white-70);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}

.doc-link:hover {
  border-color: var(--red);
  color: var(--white);
}

.doc-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

/* ═══════════════════════════════════════════
   INTRO & TEXT CONTENT
   ═══════════════════════════════════════════ */
.intro-section {
  margin-bottom: 3rem;
}

.intro-section .lead {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.intro-section p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.intro-section .highlight {
  color: var(--red);
  font-weight: 600;
}

.intro-text {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.intro-text p {
  margin-bottom: 1rem;
}

/* Article content */
.article-content p {
  color: var(--white-70);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.5rem 0 1rem;
  color: var(--white);
}

.article-content h2 em {
  font-style: normal;
  color: var(--red);
}

.article-content strong {
  color: var(--white);
}

.article-content blockquote {
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--white-06);
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--white-40);
  font-size: 0.85rem;
  font-style: normal;
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-content .caption {
  text-align: center;
  color: var(--white-40);
  font-size: 0.82rem;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.article-content ul {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════
   TAGS
   ═══════════════════════════════════════════ */
.tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: var(--white-06);
  color: var(--white-70);
  border: 1px solid var(--card-border);
}

.tag-open {
  background: rgba(52, 199, 89, 0.12);
  color: var(--green);
  border-color: rgba(52, 199, 89, 0.25);
}

.tag-pill {
  font-size: 0.78rem;
  color: var(--white-70);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-pill:hover {
  border-color: var(--red);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   BTN-OUTLINE (view actions, etc.)
   ═══════════════════════════════════════════ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  min-width: 160px;
  padding: 0 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--white-40);
  background: var(--white-10);
}

/* ═══════════════════════════════════════════
   PAYMENT BUTTONS (PayPal, Card)
   ═══════════════════════════════════════════ */
.btn-paypal {
  width: 100%;
  height: 3.25rem;
  background: #ffc439;
  color: #003087;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
  font-family: Arial, sans-serif;
}

.btn-paypal:hover {
  background: #f0b82d;
}

.btn-paypal svg {
  height: 20px;
  flex-shrink: 0;
}

.btn-pay-card {
  width: 100%;
  height: 3.25rem;
  background: var(--white-06);
  color: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-pay-card:hover {
  border-color: var(--white-40);
  background: var(--white-10);
}

.btn-pay-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Summary total (tesseramento/gare payment step) */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.summary-total .total-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white-70);
}

.summary-total .total-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  word-break: break-word;
}

.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════ */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-darker);
  color: var(--white-40);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--white-10);
  margin-top: auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SHARED BREAKPOINTS
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-overlay h1 {
    font-size: 2.5rem;
  }
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-photo {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .site-header {
    padding: 0 1rem;
    height: 60px;
  }
  .main-nav {
    display: none;
  }
  .site-header nav.desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .page-hero {
    padding: 3rem 1.5rem 1.5rem;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .hero {
    height: 280px;
  }
  .hero-overlay {
    padding: 2rem 1.5rem;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .page-content {
    padding: 2rem 1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-badges {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  /* Step nav: stack back/next vertically on mobile */
  .step-nav {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .step-nav .btn-primary,
  .step-nav .btn-secondary,
  .step-nav .btn-outline-white {
    width: 100%;
    min-width: unset;
  }
  .step-nav .spacer {
    display: none;
  }
  .step-nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  /* Date inputs: prevent overflow */
  .form-group input[type=date],
  .form-group input[type=time],
  .form-group input[type=datetime-local],
  .form-group input[type=month],
  .form-group input[type=week] {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Summary total: stack on mobile */
  .summary-total {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
  }
  .summary-total .total-amount {
    font-size: 2rem;
  }
  /* Select multiple: constrain */
  .form-group select[multiple] {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* View actions: stack on mobile */
  .view-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .view-actions .btn-outline,
  .view-actions .btn-primary {
    width: 100%;
    min-width: unset;
  }
  /* Directions input mobile */
  .directions-form {
    flex-direction: column;
  }
  .directions-form input {
    min-width: unset;
    width: 100%;
  }
}
/* ═══════════════════════════════════════════
   ARTICLE SIDEBAR
   ═══════════════════════════════════════════ */
.article-sidebar .sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Author card */
.sidebar-author {
  text-align: center;
}

.sidebar-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  margin-bottom: 0.75rem;
}

.sidebar-author .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.sidebar-author .role {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.sidebar-author .bio {
  color: var(--white-70);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Table of contents */
.sidebar-toc h4,
.sidebar-related h4,
.sidebar-cta h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-40);
  margin-bottom: 1rem;
}

.sidebar-toc a {
  display: block;
  color: var(--white-70);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--white-06);
  transition: color 0.2s;
}

.sidebar-toc a:last-child {
  border-bottom: none;
}

.sidebar-toc a:hover {
  color: var(--red);
}

/* Related articles */
.sidebar-related .sr-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--white-06);
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s;
}

.sidebar-related .sr-item:last-child {
  border-bottom: none;
}

.sidebar-related .sr-item:hover {
  opacity: 0.8;
}

.sidebar-related .sr-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-related .sr-info .meta {
  font-size: 0.72rem;
  color: var(--white-40);
  margin-bottom: 0.2rem;
}

.sidebar-related .sr-info h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* CTA sidebar */
.sidebar-cta p {
  color: var(--white-70);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-cta .btn-white {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-cta .btn-white:hover {
  background: var(--red-hover);
}

/* ═══════════════════════════════════════════
   LANDING / PROSE CONTENT
   ═══════════════════════════════════════════ */
/* Hero split (image + text side by side) */
.hero-split {
  display: flex;
  min-height: 420px;
}

.hero-split .hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--bg-dark);
}

.hero-split .hero-text .label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-split .hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-split .hero-text h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-split .hero-text p {
  color: var(--white-70);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.hero-split .hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.hero-split .hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content blocks (alternating text + image) */
.content-block {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block .cb-text {
  flex: 1;
}

.content-block .cb-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.content-block .cb-text h2 em {
  font-style: normal;
  color: var(--red);
}

.content-block .cb-text p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-block .cb-image {
  flex: 1;
}

.content-block .cb-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Prose – rich text area for landing pages */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.5rem 0 1rem;
  color: var(--white);
}

.prose h2 em {
  font-style: normal;
  color: var(--red);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  color: var(--white);
}

.prose p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose strong {
  color: var(--white);
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--red-hover);
}

.prose img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

.prose .caption {
  text-align: center;
  color: var(--white-40);
  font-size: 0.82rem;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.prose ul, .prose ol {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--white-06);
  border-radius: 0 8px 8px 0;
}

.prose blockquote p {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--white-40);
  font-size: 0.85rem;
  font-style: normal;
}

.prose .lead {
  font-size: 1.2rem;
  color: var(--white-90);
  font-weight: 500;
  line-height: 1.7;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 2.5rem 0;
}

/* Highlight box */
.highlight-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.highlight-box.accent {
  border-left: 3px solid var(--red);
}

/* Quote banner (full width) */
.quote-banner {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 3rem 2rem;
  margin: 3rem 0;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.3;
  border: none;
  padding: 0;
  background: none;
}

.quote-banner blockquote em {
  font-style: normal;
  color: var(--red);
}

.quote-banner cite {
  display: block;
  margin-top: 1rem;
  color: var(--white-70);
  font-size: 0.9rem;
  font-style: normal;
}

/* Features grid (landing) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--red);
}

.feature-card .fc-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-card .fc-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--white-70);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg-dark);
  z-index: 1;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-item .year {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  color: var(--white-70);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Number stats row */
.stats-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.stats-row .stat-item {
  text-align: center;
  min-width: 120px;
}

.stats-row .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stats-row .stat-text {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
  margin-top: 0.5rem;
}

/* Two-column text */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
  }
  .hero-split .hero-text {
    padding: 2.5rem 1.5rem;
  }
  .hero-split .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-split .hero-image {
    height: 250px;
    flex: none;
  }
  .content-block, .content-block.reverse {
    flex-direction: column;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .site-header {
    padding: 0 1rem;
  }
  .main-nav {
    display: none;
  }
  .site-header nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .quote-banner blockquote {
    font-size: 1.3rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* ═══════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════ */
.faq-hero {
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.faq-hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-hero h1 em {
  color: var(--red);
  font-style: normal;
}

.faq-hero p {
  color: var(--white-40);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.faq-filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--white-70);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-filter-btn:hover {
  border-color: var(--white-40);
  color: var(--white);
}

.faq-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.faq-category {
  margin-bottom: 2.5rem;
}

.faq-category-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-category-title .cat-count {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--red-10);
  color: var(--red);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.faq-category.hidden {
  display: none;
}

.faq-item {
  border-bottom: 1px solid var(--white-06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 1.1rem 0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--red);
}

.faq-question .faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  stroke: var(--white-40);
  fill: none;
  stroke-width: 2;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
  stroke: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.2rem;
}

.faq-answer a {
  color: var(--red);
  text-decoration: underline;
}

.faq-search {
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.faq-search input::placeholder {
  color: var(--white-40);
}

.faq-search input:focus {
  border-color: var(--red);
}

.faq-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--white-40);
  fill: none;
  stroke-width: 2;
}

.no-results {
  text-align: center;
  color: var(--white-40);
  padding: 2rem 0;
  display: none;
}

@media (max-width: 900px) {
  .faq-hero h1 {
    font-size: 2.2rem;
  }
}
/* ═══════════════════════════════════════════
   ALLENAMENTI (Training) PAGE
   ═══════════════════════════════════════════ */
.training-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

/* Gate states */
.gate-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 2rem auto;
}

.gate-card .gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.gate-card .gate-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.gate-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.gate-card p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.gate-card .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.gate-card .btn-primary:hover {
  background: var(--red-hover);
}

/* Week navigation */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.week-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--white-70);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.week-nav-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.week-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.week-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.week-title .week-dates {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-70);
  margin-top: 0.15rem;
}

/* Day cards */
.day-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.day-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.day-card.is-today {
  border-color: var(--red);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.day-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day-date {
  font-size: 0.82rem;
  color: var(--white-40);
}

.day-badge-today {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  margin-left: 0.5rem;
}

.day-badge-rest {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--white-10);
  color: var(--white-40);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  margin-left: 0.5rem;
}

.day-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--white-40);
  fill: none;
  stroke-width: 2;
  transition: transform 0.25s;
}

.day-card.open .day-toggle svg {
  transform: rotate(180deg);
}

.day-body {
  display: none;
  border-top: 1px solid var(--card-border);
}

.day-card.open .day-body {
  display: block;
}

.day-card.is-today .day-body {
  display: block;
}

.day-card.is-today .day-toggle svg {
  transform: rotate(180deg);
}

/* Group rows */
.group-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--white-06);
}

.group-row:last-child {
  border-bottom: none;
}

.group-label {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.group-label.top {
  color: #ff4d4d;
}

.group-label.advanced {
  color: #f5a623;
}

.group-label.basic {
  color: #44d9ee;
}

.group-label.beginners {
  color: #34c759;
}

.group-label.starters {
  color: #a78bfa;
}

.group-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.6;
}

.group-content strong {
  color: var(--white-90);
  font-weight: 600;
}

.rest-message {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--white-40);
  font-size: 0.9rem;
  font-style: italic;
}

/* Past day dim */
.day-card.is-past {
  opacity: 0.5;
}

.day-card.is-past:hover {
  opacity: 0.75;
}

/* Demo bar */
.demo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.demo-bar span {
  font-size: 0.7rem;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.demo-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  color: var(--white-70);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.demo-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ═══════════════════════════════════════════
   STRAVA INTEGRATION BLOCK
   ═══════════════════════════════════════════ */
.strava-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.strava-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.strava-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strava-logo-sm {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.strava-header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
}

.strava-sync-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.strava-sync-date {
  font-size: 0.72rem;
  color: var(--white-40);
}

.strava-refresh-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.strava-refresh-btn {
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--white-70);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.strava-refresh-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.strava-refresh-btn svg {
  width: 14px;
  height: 14px;
}

.strava-rate-error {
  font-size: 0.68rem;
  color: var(--orange);
  font-style: italic;
  white-space: nowrap;
}

/* Strava stats grid */
.strava-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; /* borders handle separation */
}

.strava-stat {
  padding: 1rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--card-border);
}

.strava-stat:last-child {
  border-right: none;
}

.strava-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}

.strava-stat-label {
  font-size: 0.72rem;
  color: var(--white-40);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.strava-stat-sub {
  font-size: 0.68rem;
  color: var(--white-20);
  margin-top: 0.1rem;
}

.strava-tabs {
  display: flex;
  border-bottom: 1px solid var(--card-border);
}

.strava-tab {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-40);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.strava-tab:hover {
  color: var(--white-70);
}

.strava-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* Connect state */
.strava-connect {
  padding: 2rem 1.25rem;
  text-align: center;
}

.strava-connect p {
  font-size: 0.88rem;
  color: var(--white-40);
  margin-bottom: 1.25rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.strava-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FC4C02;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
}

.strava-connect-btn:hover {
  background: #e04400;
}

.strava-connect-btn img {
  height: 22px;
  width: auto;
}

/* Connection error */
.strava-error {
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(212, 46, 46, 0.06);
  border-top: 2px solid var(--red);
}

.strava-error-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.strava-error-icon svg {
  width: 18px;
  height: 18px;
}

.strava-error-text h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.strava-error-text p {
  font-size: 0.8rem;
  color: var(--white-40);
  line-height: 1.4;
}

.strava-error-text button {
  margin-top: 0.65rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s;
}

.strava-error-text button:hover {
  background: var(--red-hover);
}

/* Strava powered-by footer */
.strava-footer {
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-top: 1px solid var(--card-border);
}

.strava-footer span {
  font-size: 0.65rem;
  color: var(--white-20);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.strava-footer img {
  height: 14px;
  opacity: 0.4;
}

.strava-view-all {
  margin-left: auto;
  font-size: 0.8rem;
  color: #FC4C02;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.strava-view-all:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   STRAVA ACTIVITIES PAGE
   ═══════════════════════════════════════════ */
.strava-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.strava-page-header img {
  height: 24px;
  opacity: 0.8;
}

.strava-page-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

.strava-page-subtitle {
  font-size: 0.85rem;
  color: var(--white-40);
  margin-bottom: 2rem;
}

.strava-page-subtitle a {
  color: #FC4C02;
  text-decoration: none;
}

.strava-activities-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.strava-activities-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-40);
  border-bottom: 1px solid var(--card-border);
  background: var(--card-bg);
}

.strava-activities-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--white-06);
  color: var(--white-70);
}

.strava-activities-table tbody tr:hover {
  background: var(--white-06);
}

.strava-activities-table .activity-name {
  color: var(--white-90);
  font-weight: 500;
}

.strava-activities-table .activity-type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-type-run {
  background: #FC4C02;
  color: #fff;
}

.activity-type-ride {
  background: var(--cyan);
  color: #111;
}

.activity-type-walk {
  background: var(--green);
  color: #111;
}

.activity-type-other {
  background: var(--white-20);
  color: var(--white-70);
}

/* Route preview */
.activity-route-cell {
  width: 80px;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

.activity-route-svg {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  background: var(--white-06);
  display: block;
}

@media (max-width: 768px) {
  .strava-activities-table thead {
    display: none;
  }
  .strava-activities-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--card-border);
  }
  .strava-activities-table tbody td {
    padding: 2px 0;
    border: none;
    font-size: 0.82rem;
  }
  .strava-activities-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--white-40);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  /* Route thumbnail on left, name spans rest */
  .strava-activities-table tbody td.activity-route-cell {
    grid-row: 1/3;
    width: auto;
    display: flex;
    align-items: center;
  }
  .strava-activities-table tbody td.activity-route-cell::before {
    display: none;
  }
  .strava-activities-table tbody td.activity-name {
    grid-column: 2;
  }
  .activity-route-svg {
    width: 56px;
    height: 38px;
  }
}
@media (max-width: 768px) {
  .strava-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .strava-stat {
    border-bottom: 1px solid var(--card-border);
  }
  .strava-stat:nth-child(2) {
    border-right: none;
  }
  .strava-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .strava-rate-error {
    white-space: normal;
  }
}
/* Allenamenti responsive */
@media (max-width: 768px) {
  .training-container {
    padding: 1.5rem 1rem 5rem;
  }
  .group-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .group-label {
    width: auto;
  }
  .week-nav-btn span.hide-m {
    display: none;
  }
  .gate-card {
    padding: 2rem 1.5rem;
  }
}
/* ═══════════════════════════════════════════
   CONVENZIONI PAGE
   ═══════════════════════════════════════════ */
/* Filter chips */
.conv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.conv-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--white-70);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.conv-chip:hover {
  border-color: var(--white-40);
  color: var(--white);
}

.conv-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 600;
}

/* Card grid */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.conv-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.conv-card:hover {
  border-color: var(--red);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.conv-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.conv-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conv-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.35rem;
  font-family: "Barlow Condensed", sans-serif;
}

.conv-card-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.conv-card-text {
  font-size: 0.88rem;
  color: var(--white-70);
  line-height: 1.55;
  flex: 1;
}

/* Divider */
.conv-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.conv-divider span {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* Running4You partner section */
.r4y-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.r4y-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--red);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 4px;
}

.r4y-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.r4y-logo {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}

.r4y-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r4y-text h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.r4y-text h2 em {
  color: var(--red);
  font-style: normal;
}

.r4y-text p {
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.r4y-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.r4y-cta:hover {
  color: var(--red-hover);
}

@media (max-width: 600px) {
  .conv-grid {
    grid-template-columns: 1fr;
  }
  .r4y-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .r4y-logo {
    width: 80px;
    height: 80px;
  }
  .r4y-section {
    padding: 2rem 1.25rem;
  }
}
/* ═══════════════════════════════════════════
   BOOKING / PRENOTAZIONE APPUNTAMENTI
   ═══════════════════════════════════════════ */
.booking-hero {
  background: linear-gradient(135deg, var(--bg-darker) 0%, #1a1a1a 100%);
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--white-10);
}

.booking-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-hero h1 em {
  color: var(--red);
  font-style: normal;
}

.booking-hero p {
  color: var(--white-40);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.booking-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Intro */
.booking-intro {
  margin-bottom: 2rem;
}

.booking-intro > p {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.booking-locations-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.loc-sum {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.loc-sum strong {
  color: var(--white);
}

.loc-sum span:not(.loc-sum-icon) {
  color: var(--white-70);
}

.loc-sum-icon {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.booking-contact {
  font-size: 0.85rem;
  color: var(--white-40);
}

.booking-contact a {
  color: var(--red);
}

.booking-contact a:hover {
  color: var(--red-hover);
}

/* Tabs */
.booking-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.booking-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--white-70);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.booking-tab:hover {
  border-color: var(--white-20);
  color: var(--white);
}

.booking-tab.active {
  border-color: var(--red);
  background: var(--red-10);
  color: var(--white);
}

.tab-icon {
  font-size: 1.1rem;
}

/* Location header inside panel */
.booking-loc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.loc-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--red-10);
  color: var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.loc-addr {
  font-size: 0.82rem;
  color: var(--white-40);
}

/* Slots list */
.booking-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slot-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.slot-card:hover {
  border-color: var(--red);
  background: var(--red-10);
  transform: translateY(-1px);
}

.slot-today {
  border-color: var(--red) !important;
  background: var(--red-10);
}

.slot-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white-06);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  min-width: 52px;
}

.slot-day-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.slot-month {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.slot-day-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.slot-day-label em {
  color: var(--red);
  font-style: normal;
  font-size: 0.8rem;
}

.slot-times {
  font-size: 0.82rem;
  color: var(--white-40);
}

.slot-arrow {
  font-size: 1.2rem;
  color: var(--white-20);
  transition: color 0.2s;
}

.slot-card:hover .slot-arrow {
  color: var(--red);
}

/* Empty state */
.booking-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
}

.booking-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.booking-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.booking-empty p {
  color: var(--white-40);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Form */
.booking-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.booking-form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--white-10);
}

.booking-form-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-form-header p {
  color: var(--white-40);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.booking-change-date {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-change-date:hover {
  color: var(--red-hover);
}

.booking-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-form-wrapper .field-group {
  margin-bottom: 1rem;
}

.booking-form-wrapper label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-display);
}

.booking-form-wrapper input[type=text],
.booking-form-wrapper input[type=email],
.booking-form-wrapper select,
.booking-form-wrapper textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.booking-form-wrapper input:focus,
.booking-form-wrapper select:focus,
.booking-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--red);
}

.booking-form-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* Switches */
.booking-switches {
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--white-10);
}

.booking-switches h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white-70);
  margin-bottom: 0.75rem;
}

.booking-switch {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  padding: 0.75rem 0;
  cursor: pointer;
  border-bottom: 1px solid var(--white-06);
}

.booking-switch:last-of-type {
  border-bottom: none;
}

.booking-switch input {
  display: none;
}

.switch-slider {
  grid-row: 1/3;
  grid-column: 1;
  width: 40px;
  height: 22px;
  background: var(--white-10);
  border-radius: 11px;
  position: relative;
  transition: background 0.25s;
  align-self: center;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white-40);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.booking-switch input:checked + .switch-slider {
  background: var(--red);
}

.booking-switch input:checked + .switch-slider::after {
  transform: translateX(18px);
  background: var(--white);
}

.switch-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  align-self: end;
}

.switch-desc {
  font-size: 0.78rem;
  color: var(--white-40);
  align-self: start;
}

/* Submit */
.booking-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.booking-submit:hover {
  background: var(--red-hover);
}

/* Success */
.booking-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.booking-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-15);
  color: var(--success);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.booking-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.booking-success p {
  color: var(--white-40);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .booking-hero h1 {
    font-size: 2rem;
  }
  .booking-tabs {
    flex-direction: column;
  }
  .booking-fields-row {
    grid-template-columns: 1fr;
  }
  .booking-form-wrapper {
    padding: 1.25rem;
  }
  .slot-card {
    padding: 0.85rem 1rem;
  }
}
/* ═══════════════════════════════════════════
   FULLSCREEN LOADER
   ═══════════════════════════════════════════ */
.ur-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  animation: loaderFadeIn 0.25s ease-out;
}

.ur-loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--white-10);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: loaderSpin 0.7s linear infinite;
}

.ur-loader-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-70);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ═══════════════════════════════════════════
   ARTICLE GALLERY
   ═══════════════════════════════════════════ */
.article-gallery {
  margin-top: 2.5rem;
}

.article-gallery h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--white-90);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

.gallery-lightbox .lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-20);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.gallery-lightbox .lb-close:hover {
  border-color: var(--red);
}

.gallery-lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--white-20);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.gallery-lightbox .lb-nav:hover {
  border-color: var(--lime);
}

.gallery-lightbox .lb-prev {
  left: 1.5rem;
}

.gallery-lightbox .lb-next {
  right: 1.5rem;
}

/* Article video cover */
.featured-video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.featured-video video, .featured-video iframe {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-lightbox .lb-prev {
    left: 0.5rem;
  }
  .gallery-lightbox .lb-next {
    right: 0.5rem;
  }
}
/* ═══════════════════════════════════════════
   POPUP / MODAL
   ═══════════════════════════════════════════ */
.ur-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: urPopupFadeIn 0.25s ease;
}

.ur-popup-overlay.closing {
  animation: urPopupFadeOut 0.2s ease forwards;
}

.ur-popup {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: urPopupSlideIn 0.3s ease;
}

.ur-popup-overlay.closing .ur-popup {
  animation: urPopupSlideOut 0.2s ease forwards;
}

.ur-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--white-40);
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.ur-popup-close:hover {
  color: var(--white);
  background: var(--white-10);
}

.ur-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
}

.ur-popup-icon.icon-success {
  background: var(--success-15);
  color: var(--success);
}

.ur-popup-icon.icon-warning {
  background: var(--warning-15);
  color: var(--warning);
}

.ur-popup-icon.icon-error {
  background: rgba(255, 77, 77, 0.15);
  color: var(--error);
}

.ur-popup-icon.icon-info {
  background: rgba(96, 165, 250, 0.15);
  color: var(--info);
}

.ur-popup-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ur-popup-subtitle {
  font-size: 0.95rem;
  color: var(--white-70);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.ur-popup-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ur-popup-actions:empty {
  display: none;
}

.ur-popup-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ur-popup-btn.btn-primary {
  background: var(--red);
  color: var(--white);
}

.ur-popup-btn.btn-primary:hover {
  background: var(--red-hover);
}

.ur-popup-btn.btn-secondary {
  background: var(--white-10);
  color: var(--white);
}

.ur-popup-btn.btn-secondary:hover {
  background: var(--white-20);
}

.ur-popup-btn.btn-ghost {
  background: transparent;
  color: var(--white-70);
}

.ur-popup-btn.btn-ghost:hover {
  color: var(--white);
  background: var(--white-06);
}

.ur-popup-btn.btn-success {
  background: var(--success);
  color: #111;
}

.ur-popup-btn.btn-success:hover {
  filter: brightness(1.1);
}

.ur-popup-btn.btn-warning {
  background: var(--warning);
  color: #111;
}

.ur-popup-btn.btn-warning:hover {
  filter: brightness(1.1);
}

.ur-popup-btn.btn-danger {
  background: var(--error);
  color: var(--white);
}

.ur-popup-btn.btn-danger:hover {
  filter: brightness(1.1);
}

@keyframes urPopupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes urPopupFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes urPopupSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes urPopupSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}
/* ═══════════════════════════════════════════
   SHOP — PRODUCT GRID & DETAIL
   ═══════════════════════════════════════════ */
/* --- Page title --- */
.shop-page-title {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 2.5rem;
}

.shop-page-title h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.shop-page-title h1 em {
  color: var(--red);
  font-style: normal;
}

/* --- Product grid --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 0 3rem;
}

@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
/* --- Product card --- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.product-card.sold-out {
  opacity: 0.45;
  pointer-events: none;
  position: relative;
}

.product-card.sold-out::after {
  content: "ESAURITO";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-card-img {
  aspect-ratio: 720/1005;
  overflow: hidden;
  background: #151515;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 1rem 1.1rem;
}

.product-card-info .product-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.product-card-info .product-name:hover {
  color: var(--red);
}

.product-card-info .product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white-90);
}

/* --- Breadcrumb --- */
.shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: var(--white-40);
}

.shop-breadcrumb a {
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.2s;
}

.shop-breadcrumb a:hover {
  color: var(--red);
}

.shop-breadcrumb .sep {
  color: var(--white-20);
}

/* --- Product detail layout --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* Media / gallery */
.product-media {
  position: sticky;
  top: 100px;
}

.product-media-main {
  width: 100%;
  aspect-ratio: 1;
  background: #151515;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.product-media-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-thumbs .thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}

.product-thumbs .thumb.active,
.product-thumbs .thumb:hover {
  opacity: 1;
  border-color: var(--red);
}

.product-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info column */
.product-info h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-info .product-price-detail {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Size picker */
.variant-picker {
  margin-bottom: 1.5rem;
}

.variant-picker-label {
  font-size: 0.85rem;
  color: var(--white-70);
  margin-bottom: 0.6rem;
}

.variant-picker-label strong {
  color: var(--white);
  font-weight: 600;
}

.variant-picker-values {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.variant-picker-values input[type=radio] {
  display: none;
}

.variant-picker-values label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.variant-picker-values label:hover {
  border-color: var(--white-40);
  color: var(--white);
}

.variant-picker-values input[type=radio]:checked + label {
  border-color: var(--white);
  background: var(--white);
  color: #111;
}

.variant-picker-values input[type=radio].disabled + label,
.variant-picker-values label.disabled {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

/* Quantity selector */
.qty-selector {
  margin-bottom: 1.5rem;
}

.qty-selector-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 0.6rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-controls button {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--white-70);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-controls button:hover {
  background: var(--white-06);
}

.qty-controls input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  height: 44px;
}

.qty-controls input:focus {
  outline: none;
}

/* Order CTA */
.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.btn-order:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

/* Availability box */
.availability-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.availability-box .avail-icon {
  width: 28px;
  height: 28px;
  color: var(--white-40);
}

.availability-box p {
  font-size: 0.9rem;
  color: var(--white-70);
}

.availability-box strong {
  color: var(--white);
}

/* Product description tabs */
.product-tabs {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  margin-top: 1rem;
}

.product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
}

.product-tabs-nav button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-40);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.product-tabs-nav button.active,
.product-tabs-nav button:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

.product-tabs-content {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════ */
/* Full-width homepage wrapper (no max-width constraint) */
.home-content {
  flex: 1;
  overflow-x: hidden;
}

/* Full-bleed hero */
.home-hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.home-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 3rem;
  background: linear-gradient(to top, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0.6) 40%, transparent 100%);
}

.home-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  max-width: 750px;
}

.home-hero-overlay h1 em {
  font-style: normal;
  color: var(--red);
}

.home-hero-overlay p {
  color: var(--white-70);
  font-size: 1.15rem;
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.home-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Home section wrapper (centered, padded) */
.home-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.home-section-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Section header */
.home-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.home-section-header h2 em {
  font-style: normal;
  color: var(--red);
}

.home-section-header p {
  color: var(--white-40);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Divider band between sections */
.home-divider {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 0;
}

/* Presentation text block (stands out from background) */
.home-intro {
  background: linear-gradient(135deg, rgba(212, 46, 46, 0.06) 0%, transparent 50%), var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
  padding: 4rem 2rem;
}

.home-intro-inner {
  max-width: 800px;
  margin: 0 auto;
}

.home-intro h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home-intro h2 em {
  font-style: normal;
  color: var(--red);
}

.home-intro p {
  color: var(--white-70);
  font-size: 1.1rem;
  line-height: 1.8;
}

.home-intro p strong {
  color: var(--white);
}

/* Triple card row (tesseramento, gare, allenamenti) */
.home-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.home-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.home-card .hc-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.home-card .hc-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.home-card p {
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.home-card .btn-primary {
  align-self: flex-start;
  min-width: unset;
  height: 2.75rem;
  font-size: 0.85rem;
  padding: 0 1.25rem;
}

/* Upcoming events/races strip */
.home-events {
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.home-events-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.home-event-card:hover {
  border-color: var(--red);
}

.home-event-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.home-event-date .day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.home-event-date .month {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-40);
}

.home-event-info h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.home-event-info p {
  color: var(--white-40);
  font-size: 0.82rem;
}

.home-event-info .event-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--red-10);
  color: var(--red);
}

/* News grid */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.home-news-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.home-news-card .news-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #151515;
}

.home-news-card .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.home-news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.home-news-card .news-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-news-card .news-meta {
  font-size: 0.75rem;
  color: var(--white-40);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.home-news-card .news-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.home-news-card .news-body p {
  color: var(--white-70);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

/* Instagram feed */
.home-ig {
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.home-ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.home-ig-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  display: block;
}

.home-ig-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.home-ig-grid a:hover img {
  transform: scale(1.1);
}

.home-ig-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 46, 46, 0);
  transition: background 0.3s;
}

.home-ig-grid a:hover::after {
  background: rgba(212, 46, 46, 0.2);
}

/* Shop preview row */
.home-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Quick-links row (appuntamenti, convenzioni, faq) */
.home-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-quick-link {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.home-quick-link:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.home-quick-link .ql-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.home-quick-link .ql-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-quick-link h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.home-quick-link p {
  color: var(--white-40);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Homepage hero-less variant intro */
.home-hero-minimal {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 46, 46, 0.08) 0%, transparent 60%), var(--bg-dark);
}

.home-hero-minimal h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.home-hero-minimal h1 em {
  font-style: normal;
  color: var(--red);
}

.home-hero-minimal p {
  color: var(--white-70);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.home-hero-minimal .home-hero-ctas {
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero {
    height: 65vh;
    min-height: 400px;
  }
  .home-hero-overlay h1 {
    font-size: 3rem;
  }
  .home-hero-minimal h1 {
    font-size: 2.5rem;
  }
  .home-cards-3 {
    grid-template-columns: 1fr;
  }
  .home-events-list {
    grid-template-columns: 1fr;
  }
  .home-news-grid {
    grid-template-columns: 1fr;
  }
  .home-ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-quick-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .home-hero-overlay {
    padding: 2.5rem 1.5rem;
  }
  .home-hero-overlay h1 {
    font-size: 2.2rem;
  }
  .home-hero-minimal h1 {
    font-size: 2rem;
  }
  .home-section, .home-section-wide {
    padding: 3rem 1.25rem;
  }
  .home-ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-shop-grid {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════ */
.ur-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.ur-cookie-banner.visible {
  transform: translateY(0);
}

.ur-cookie-banner.closing {
  transform: translateY(100%);
}

.ur-cookie-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem 2rem 1.5rem;
}

/* ── close ── */
.ur-cookie-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--white-40);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.ur-cookie-close:hover {
  color: var(--white);
}

/* ── text ── */
.ur-cookie-text {
  margin-bottom: 1.25rem;
}

.ur-cookie-text p {
  font-size: 0.82rem;
  color: var(--white-70);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.ur-cookie-text p:last-child {
  margin-bottom: 0;
}

.ur-cookie-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ur-cookie-link:hover {
  color: var(--red-hover);
}

/* ── toggle rows ── */
.ur-cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ur-cookie-row {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.ur-cookie-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.ur-cookie-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.ur-cookie-required {
  font-size: 0.75rem;
  color: var(--white-40);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

.ur-cookie-desc {
  font-size: 0.78rem;
  color: var(--white-40);
  line-height: 1.5;
}

/* ── custom switch ── */
.ur-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.ur-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ur-cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--white-10);
  border: 1px solid var(--card-border);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ur-cookie-slider::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white-40);
  transition: transform 0.2s, background 0.2s;
}

.ur-cookie-switch input:checked + .ur-cookie-slider {
  background: var(--red-10);
  border-color: var(--red);
}

.ur-cookie-switch input:checked + .ur-cookie-slider::after {
  transform: translateY(-50%) translateX(20px);
  background: var(--red);
}

.ur-cookie-switch.disabled .ur-cookie-slider {
  cursor: default;
  background: var(--red-10);
  border-color: var(--red);
  opacity: 0.5;
}

.ur-cookie-switch.disabled .ur-cookie-slider::after {
  transform: translateY(-50%) translateX(20px);
  background: var(--red);
}

/* ── actions ── */
.ur-cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ur-cookie-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ur-cookie-btn.btn-accept-all {
  background: var(--red);
  color: var(--white);
}

.ur-cookie-btn.btn-accept-all:hover {
  background: var(--red-hover);
}

.ur-cookie-btn.btn-save {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-20);
}

.ur-cookie-btn.btn-save:hover {
  border-color: var(--white-40);
}

.ur-cookie-btn.btn-reject {
  background: transparent;
  color: var(--white-40);
  border: 1px solid transparent;
}

.ur-cookie-btn.btn-reject:hover {
  color: var(--white-70);
}

/* ── responsive ── */
@media (max-width: 600px) {
  .ur-cookie-inner {
    padding: 1.25rem 1.25rem 1rem;
  }
  .ur-cookie-actions {
    flex-direction: column;
  }
  .ur-cookie-btn {
    width: 100%;
    text-align: center;
  }
}
/* ═══════════════════════════════════════════
   COACHING SECTION (allenamenti.html)
   ═══════════════════════════════════════════ */
.coaching-section {
  padding: 4rem 2rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--white-10);
}

.coaching-container {
  max-width: 800px;
  margin: 0 auto;
}

.coaching-block p {
  color: var(--white-70);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.coaching-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.coaching-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.coaching-link:hover {
  color: var(--red-hover);
}

.coaching-cta-text {
  background: var(--red-10);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white-90) !important;
}

.coaching-warning {
  background: var(--white-06);
  border-left: 3px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white-90) !important;
}

.coaching-warning strong {
  color: var(--orange);
}

.coaching-divider {
  height: 1px;
  background: var(--white-10);
  margin: 2.5rem 0;
}

#L2 {
  background-color: var(--black);
}

/* Header Fix */
.site-header.downscrolled {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 998;
  transition: background ease 0.3s;
}

.site-header.upscrolled {
  opacity: 1;
  top: 0;
  max-width: 100%;
  margin: 0 auto;
  z-index: 999;
}

.btn-primary:disabled {
  background-color: #cacaca;
  color: var(--white);
  border-color: #cacaca;
}

#wizardProgress {
  overflow-x: visible;
}
@media (max-width: 900px) {
  #wizardProgress {
    overflow-x: auto;
  }
}

#errorMsg A {
  text-decoration: underline;
}

.offline-btn {
  margin-top: 1rem;
  width: 100%;
  height: 2.5rem;
  background: var(--white-20);
  color: var(--white-40);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.offline-btn:hover {
  border-color: var(--white-40);
  color: var(--white-70);
}

.nexi-btn-container,
.offline-btn-container {
  text-align: center;
}
.nexi-btn-container .offline-btn,
.nexi-btn-container .btn-nexi,
.offline-btn-container .offline-btn,
.offline-btn-container .btn-nexi {
  width: 400px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#payment-info {
  margin-bottom: 30px;
}

.reg-no-permission {
  text-align: center;
  padding: 2rem;
}

.reg-no-permission svg {
  width: 48px;
  height: 48px;
  fill: var(--yellow);
  margin-bottom: 0.75rem;
}

.reg-no-permission.error svg {
  fill: var(--red);
}

.reg-no-permission .msg {
  color: var(--white-70);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.reg-no-permission .sub {
  color: var(--white-40);
  font-size: 0.85rem;
}

.reg-no-permission a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.footer-social a svg {
  margin: 5px 9px;
}

.footer-col.contact-container A {
  display: inline-block;
}

@media (max-width: 600px) {
  .logo-img {
    height: auto;
  }
}

.btn-nexi {
  --nexi-blue: #2D32AA;
  --nexi-blue-dark: #212861;
  --nexi-white: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--nexi-blue);
  color: var(--nexi-white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(45, 50, 170, 0.22);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.btn-nexi:hover {
  background: var(--nexi-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(33, 40, 97, 0.28);
}

.btn-nexi:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(33, 40, 97, 0.22);
}

.btn-nexi:focus-visible {
  outline: 3px solid rgba(43, 212, 217, 0.65);
  outline-offset: 3px;
}

.btn-nexi[aria-disabled=true],
.btn-nexi.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
}

.btn-nexi__label {
  white-space: nowrap;
}

.btn-nexi__arrow {
  font-size: 18px;
  line-height: 1;
}

.custom-radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.custom-radio input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}
.custom-radio .radiomark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  transition: all 0.2s;
}
.custom-radio .radiomark::after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-dark);
}
.custom-radio input:checked ~ .radiomark {
  background: var(--lime);
  border-color: var(--lime);
}
.custom-radio input:checked ~ .radiomark::after {
  display: block;
}
.custom-radio input:focus ~ .radiomark {
  box-shadow: 0 0 0 2px var(--lime-15);
}

.nav-dropdown.active .nav-dropdown-trigger {
  color: var(--red);
}

.back-link.personal-area {
  margin: 0;
}

.time-group INPUT {
  padding: 0;
}

/*# sourceMappingURL=root.css.map */
