@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);
}

.product-card.ended {
  pointer-events: none;
  opacity: 0.2;
}

/*
@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);
}

/* Gruppi collassabili (admin) */
.sidebar-group {
  display: flex;
  flex-direction: column;
}

.sidebar-group-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sidebar-group-summary::-webkit-details-marker {
  display: none;
}

.sidebar-group-summary .sidebar-chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.sidebar-group[open] > .sidebar-group-summary .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 14px;
  margin-left: 9px;
  border-left: 1px solid var(--white-10);
}

.sidebar-group-items .sidebar-btn {
  font-size: 0.78rem;
  padding: 0.5rem 0.7rem;
  letter-spacing: 0.03em;
}

.sidebar-group-items .sidebar-btn svg {
  width: 15px;
  height: 15px;
}

/* ═══════════════════════════════════════════
   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-level-fidal {
  margin-left: 8px;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  text-transform: none;
}

.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-disconnect-btn {
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--white-40);
  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-disconnect-btn:hover {
  border-color: var(--error);
  color: var(--error);
}

.strava-disconnect-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 {
  display: block;
  grid-row: 1/3;
  grid-column: 1;
  width: 40px;
  min-width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  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-70);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

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

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

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

.switch-desc {
  grid-row: 2;
  grid-column: 2;
  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-display);
  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;
  }
}
/* --- Outlet: blocco a parte in coda al catalogo --- */
.shop-outlet {
  border-top: 1px solid var(--card-border);
  padding-top: 2.5rem;
}

.shop-outlet-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.shop-outlet-head h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.shop-outlet-head p {
  color: var(--white-40);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .shop-outlet {
    padding-top: 1.75rem;
  }
  .shop-outlet-head h2 {
    font-size: 1.5rem;
  }
}
/* --- 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-display);
  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;
  position: relative;
}

.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);
}

/* Overlay nome prodotto sull'immagine — sempre visibile (universal mobile + desktop) */
.product-card-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-card-img .product-name-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

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

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

.product-card-info .product-name {
  display: none; /* nome ora mostrato in overlay sull'immagine */
}

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

/* --- 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-display);
  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-display);
  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-display);
  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-display);
  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-display);
  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-display);
  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;
}

/* ═══════════════════════════════════════════
   CHECKOUT INLINE (coupon + PayPal)
   ═══════════════════════════════════════════ */
.checkout-panel {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--white-05, rgba(255, 255, 255, 0.03));
  animation: checkoutSlide 0.25s ease-out;
}

.checkout-panel.open {
  display: block;
}

@keyframes checkoutSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-70);
  margin-bottom: 0.7rem;
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.coupon-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--white-05, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coupon-row input:focus {
  outline: none;
  border-color: var(--red);
}

.coupon-row button {
  padding: 0 1.25rem;
  background: transparent;
  border: 1px solid var(--white-40);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-row button:hover {
  border-color: var(--white);
  background: var(--white-10);
}

.coupon-feedback {
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 1rem;
}

.coupon-feedback.valid {
  color: #4ade80;
}

.coupon-feedback.invalid {
  color: var(--red);
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1.2rem;
}

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

.checkout-summary .total {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.checkout-summary .discount-line {
  display: block;
  font-size: 0.75rem;
  color: #4ade80;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.paypal-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-paypal:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-paypal.paypal-yellow {
  background: #ffc439;
  color: #003087;
}

.btn-paypal.paypal-card {
  background: #2c2e2f;
  color: #fff;
  border: 1px solid #444;
}

.btn-paypal .pp-logo {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.btn-paypal .pp-logo .pp-blue {
  color: #003087;
}

.btn-paypal .pp-logo .pp-light {
  color: #009cde;
}

.btn-paypal.paypal-card .pp-logo .pp-blue,
.btn-paypal.paypal-card .pp-logo .pp-light {
  color: #fff;
}

.checkout-cancel {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.8rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--white-40);
  font-size: 0.85rem;
  cursor: pointer;
}

.checkout-cancel:hover {
  color: var(--white-70);
}

/* ═══════════════════════════════════════════
   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, rgb(17, 17, 17) 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;
}

/* ============================================
   ARTICOLI / NEWS LIST (articoli.html)
   ============================================ */
.articles-page-header {
  margin-bottom: 2.5rem;
}

.articles-page-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

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

.articles-page-header p {
  color: var(--white-70);
  font-size: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: transparent;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.featured {
  display: flex;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.featured .feat-image {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.featured .feat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured:hover .feat-image img {
  transform: scale(1.03);
}

.featured .feat-image .tags,
.article-card .card-image .tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.featured .feat-image .tags {
  top: 1rem;
  left: 1rem;
  right: 1rem;
  gap: 0.4rem;
}

.featured .feat-image .tags .tag {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.featured .feat-body {
  flex: 1;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured .feat-body .meta {
  color: var(--white-40);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured .feat-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.featured .feat-body .excerpt {
  color: var(--white-70);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.featured .feat-body .read-more {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

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

.article-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.article-card .card-image .tags .tag {
  position: static;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  color: var(--white);
  background: var(--red);
}

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

.article-card .card-body .meta {
  color: var(--white-40);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.article-card .card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.article-card .card-body .excerpt {
  color: var(--white-70);
  font-size: 0.83rem;
  line-height: 1.5;
  flex: 1;
}

.article-card .card-footer {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-card .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.article-card .author-name {
  color: var(--white-70);
  font-size: 0.78rem;
}

.tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white-70);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover {
  border-color: var(--white-40);
  color: var(--white);
}

.pagination button.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.pagination button.nav-btn {
  width: auto;
  padding: 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .featured {
    flex-direction: column;
  }
  .featured .feat-image {
    width: 100%;
    height: 220px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-page-header h1 {
    font-size: 2.2rem;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ═══════════════════════════════════════════
   GARE — Races list page (gare.html)
   ═══════════════════════════════════════════ */
.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;
}

.races-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.race-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s, transform 0.2s;
  text-decoration: none;
  color: var(--white);
}

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

.race-card-img {
  width: 220px;
  min-height: 180px;
  flex-shrink: 0;
  background: var(--white-06);
  overflow: hidden;
  position: relative;
}

.race-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.race-card-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.race-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.race-date-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--red);
}

.race-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.race-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--white-40);
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.race-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.race-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--white-40);
}

.race-card p {
  font-size: 0.9rem;
  color: var(--white-70);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.race-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.race-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);
}

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

.race-tag.tag-closed {
  background: rgba(212, 46, 46, 0.12);
  color: var(--red);
  border-color: rgba(212, 46, 46, 0.25);
}

.past-section {
  margin-top: 3rem;
  opacity: 0.75;
}

.past-section .race-card {
  opacity: 0.7;
}

.past-section .race-card:hover {
  opacity: 1;
}

.past-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: var(--white-10);
  color: var(--white-40);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 1.5rem 1.5rem;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .races-container {
    padding: 1.5rem 1rem 3rem;
  }
  .race-card {
    flex-direction: column;
  }
  .race-card-img {
    width: 100%;
    min-height: 160px;
    max-height: 200px;
  }
  .race-card-body {
    padding: 1.25rem;
  }
}
/* ═══════════════════════════════════════════
   GARA DETTAGLIO — Race detail page (gara-dettaglio.html)
   ═══════════════════════════════════════════ */
.event-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.event-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.event-image {
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white-06);
  border: 1px solid var(--card-border);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-info {
  flex: 1;
}

.event-info .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.event-info .date-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
}

.event-info h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--white-40);
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-meta svg {
  width: 16px;
  height: 16px;
  fill: var(--white-40);
}

.event-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-description {
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.75;
}

.event-description p {
  margin-bottom: 1rem;
}

#raceMap {
  width: 100%;
  height: 400px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.directions-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.directions-form input {
  flex: 1;
  min-width: 200px;
  height: 2.75rem;
  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;
}

.directions-form input::placeholder {
  color: var(--white-40);
}

.directions-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

.directions-info {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--white-70);
  display: none;
  padding: 0.75rem 1rem;
  background: var(--white-06);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

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

.login-gate {
  text-align: center;
  padding: 2rem;
  color: var(--white-40);
}

.login-gate svg {
  width: 40px;
  height: 40px;
  fill: var(--white-10);
  margin-bottom: 0.75rem;
}

.login-gate p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

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

.login-gate a:hover {
  text-decoration: underline;
}

.attendees-list {
  display: none;
}

.attendee-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--white-06);
}

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

.attendee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white-70);
  flex-shrink: 0;
}

.attendee-name {
  font-size: 0.9rem;
  color: var(--white);
}

.attendee-cat {
  font-size: 0.78rem;
  color: var(--white-40);
  margin-left: auto;
}

.attendees-count {
  font-size: 0.82rem;
  color: var(--white-40);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--white-06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-show-all {
  background: none;
  border: 1px solid var(--white-20);
  color: var(--white-70);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

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

.attendee-row.hidden {
  display: none;
}

.reg-state {
  display: none;
}

.reg-state.active {
  display: block;
}

.reg-login-gate {
  text-align: center;
  padding: 2rem;
}

.reg-login-gate svg {
  width: 48px;
  height: 48px;
  fill: var(--white-10);
  margin-bottom: 0.75rem;
}

.reg-login-gate p {
  color: var(--white-40);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.reg-login-gate a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.reg-closed {
  text-align: center;
  padding: 2rem;
}

.reg-closed svg {
  width: 48px;
  height: 48px;
  fill: var(--white-10);
  margin-bottom: 0.75rem;
}

.reg-closed p {
  color: var(--white-40);
  font-size: 0.95rem;
}

.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 .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;
}

.reg-already {
  text-align: center;
  padding: 2rem;
}

.reg-already svg {
  width: 48px;
  height: 48px;
  fill: var(--green);
  margin-bottom: 0.75rem;
}

.reg-already .msg {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reg-already .sub {
  color: var(--white-40);
  font-size: 0.85rem;
}

.reg-price {
  text-align: center;
  padding: 2rem;
}

.price-box {
  display: inline-block;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem 2.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
}

.price-label {
  font-size: 0.82rem;
  color: var(--white-40);
  margin-top: 0.25rem;
}

.price-deadline {
  font-size: 0.82rem;
  color: var(--yellow);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.price-deadline svg {
  width: 14px;
  height: 14px;
  fill: var(--yellow);
}

.price-tiers {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.price-tier {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  background: var(--white-06);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.price-tier:hover {
  border-color: var(--white-20);
}

.price-tier.selected {
  border-color: var(--red);
  background: rgba(212, 46, 46, 0.08);
}

.price-tier .tier-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-40);
  margin-bottom: 0.5rem;
}

.price-tier.selected .tier-name {
  color: var(--red);
}

.price-tier .tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.price-tier .tier-deadline {
  font-size: 0.75rem;
  color: var(--white-40);
  margin-top: 0.4rem;
}

.price-tier.expired {
  opacity: 0.4;
  pointer-events: none;
}

.price-tier.expired .tier-price {
  text-decoration: line-through;
}

.price-tier .tier-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-directions {
  height: 2.75rem;
  padding: 0 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

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

.btn-register {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* --- Logistics box --- */
.logistics-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.logistics-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.logistics-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: var(--red);
  margin-top: 2px;
}

.logistics-item .log-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
  margin-bottom: 0.2rem;
}

.logistics-item .log-value {
  font-size: 0.85rem;
  color: var(--white-40);
  line-height: 1.4;
}

/* --- Registration note --- */
.reg-note {
  background: rgba(212, 46, 46, 0.08);
  border: 1px solid rgba(212, 46, 46, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--white-60);
  text-align: center;
  margin-bottom: 1.25rem;
}

.reg-form {
  display: none;
}

.reg-form.active {
  display: block;
}

.reg-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reg-form .form-group {
  display: flex;
  flex-direction: column;
}

.reg-form .form-group.full {
  grid-column: 1/-1;
}

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

.reg-form input, .reg-form select, .reg-form textarea {
  height: 2.75rem;
  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;
}

.reg-form textarea {
  height: 80px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

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

.reg-form select {
  appearance: none;
}

.reg-payment {
  display: none;
}

.reg-payment.active {
  display: block;
}

.payment-summary {
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.payment-summary h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-06);
}

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

.summary-row .val {
  color: var(--white);
  font-weight: 500;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--card-border);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.paypal-btn {
  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;
  margin-bottom: 0.75rem;
  font-family: Arial, sans-serif;
}

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

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

.offline-btn {
  width: 100%;
  height: 2.5rem;
  background: transparent;
  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);
}

.reg-result {
  display: none;
  text-align: center;
  padding: 2rem;
}

.reg-result.active {
  display: block;
}

.reg-result.success svg {
  fill: var(--green);
}

.reg-result.error svg {
  fill: var(--red);
}

.reg-result svg {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.reg-result .result-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reg-result.success .result-title {
  color: var(--green);
}

.reg-result.error .result-title {
  color: var(--red);
}

.reg-result .result-msg {
  color: var(--white-70);
  font-size: 0.9rem;
}

.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);
}

@media (max-width: 768px) {
  .event-container {
    padding: 0 1rem 4rem;
  }
  .event-header {
    flex-direction: column;
  }
  .event-image {
    width: 100%;
    height: 200px;
  }
  .event-info h1 {
    font-size: 2rem;
  }
  .reg-form .form-grid {
    grid-template-columns: 1fr;
  }
  .directions-form {
    flex-direction: column;
  }
  .directions-form input {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .price-tiers {
    flex-direction: column;
    align-items: center;
  }
  .price-tier {
    max-width: 100%;
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn-secondary,
  .form-actions .btn-submit {
    width: 100%;
    min-width: unset;
  }
}
/* ============================================
   PASSWORD TOGGLE (eye icon)
   ============================================ */
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap input {
  width: 100%;
  padding-right: 2.75rem !important;
}
.pw-wrap .pw-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--white-40);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}
.pw-wrap .pw-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.pw-wrap .pw-toggle:hover {
  color: var(--white);
  background: var(--white-06);
}
.pw-wrap .pw-toggle:focus-visible {
  outline: none;
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(212, 46, 46, 0.25);
}

/* ===== Badge stato certificato medico ===== */
.cert-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.cert-status.cert-status-ok {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}
.cert-status.cert-status-ko {
  background: rgba(212, 46, 46, 0.12);
  color: #d42e2e;
  border-color: rgba(212, 46, 46, 0.35);
}
.cert-status.cert-status-wait {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

/* ===== Azioni certificato (Approva / Respingi) ===== */
.cert-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white-06);
  color: var(--white-70);
}

.status-btn:hover {
  background: var(--white-10);
  color: var(--white);
}

.status-btn.ok {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.status-btn.ok:hover {
  background: rgba(74, 222, 128, 0.22);
  color: #5ee68c;
  border-color: rgba(74, 222, 128, 0.55);
}

.status-btn.danger {
  background: rgba(212, 46, 46, 0.12);
  color: #d42e2e;
  border-color: rgba(212, 46, 46, 0.35);
}

.status-btn.danger:hover {
  background: rgba(212, 46, 46, 0.22);
  color: #e04040;
  border-color: rgba(212, 46, 46, 0.55);
}

/* ===== Badge stato ordine (area utente) ===== */
.order-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.order-status.order-status-ok {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}
.order-status.order-status-ko {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  text-decoration: line-through;
}
.order-status.order-status-ready {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.order-status.order-status-paid {
  background: rgba(212, 46, 46, 0.12);
  color: #d42e2e;
  border-color: rgba(212, 46, 46, 0.35);
}
.order-status.order-status-wait {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   AREA UTENTE · GALLERIA FOTO
   Griglia delle foto caricate dall'utente (upload + elenco)
   ───────────────────────────────────────────────────────────── */
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.galleria-grid .galleria-card {
  display: flex;
  flex-direction: column;
  background: var(--ur-surface-2, #1a1a1a);
  border: 1px solid var(--ur-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.galleria-grid .galleria-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 46, 46, 0.45);
}
.galleria-grid .galleria-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #000;
  overflow: hidden;
}
.galleria-grid .galleria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galleria-grid .galleria-card-body {
  padding: 0.65rem 0.75rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.galleria-grid .galleria-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.galleria-grid .galleria-card-date {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  font-size: 0.95rem;
}
.galleria-grid .galleria-card-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.galleria-grid .galleria-card-caption {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.galleria-grid .galleria-card-uploaded {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: auto;
}
.galleria-grid .galleria-card-actions {
  padding: 0.5rem 0.75rem 0.75rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 540px) {
  .galleria-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
  }
}
/* ─────────────────────────────────────────────────────────────
   FORM GRID GENERICO (usato es. in area-utente/galleria upload)
   ───────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-grid.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}
.form-grid.form-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-grid .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.form-grid .form-field.form-field-full {
  grid-column: 1/-1;
}
.form-grid .form-field label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.form-grid .form-field input[type=text],
.form-grid .form-field input[type=email],
.form-grid .form-field input[type=tel],
.form-grid .form-field input[type=number],
.form-grid .form-field input[type=date],
.form-grid .form-field input[type=time],
.form-grid .form-field input[type=url],
.form-grid .form-field input[type=password],
.form-grid .form-field input[type=search],
.form-grid .form-field input[type=file],
.form-grid .form-field select,
.form-grid .form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-grid .form-field input[type=text]:focus,
.form-grid .form-field input[type=email]:focus,
.form-grid .form-field input[type=tel]:focus,
.form-grid .form-field input[type=number]:focus,
.form-grid .form-field input[type=date]:focus,
.form-grid .form-field input[type=time]:focus,
.form-grid .form-field input[type=url]:focus,
.form-grid .form-field input[type=password]:focus,
.form-grid .form-field input[type=search]:focus,
.form-grid .form-field input[type=file]:focus,
.form-grid .form-field select:focus,
.form-grid .form-field textarea:focus {
  outline: none;
  border-color: #d42e2e;
  background: rgba(255, 255, 255, 0.06);
}
.form-grid .form-field input[type=text]::placeholder,
.form-grid .form-field input[type=email]::placeholder,
.form-grid .form-field input[type=tel]::placeholder,
.form-grid .form-field input[type=number]::placeholder,
.form-grid .form-field input[type=date]::placeholder,
.form-grid .form-field input[type=time]::placeholder,
.form-grid .form-field input[type=url]::placeholder,
.form-grid .form-field input[type=password]::placeholder,
.form-grid .form-field input[type=search]::placeholder,
.form-grid .form-field input[type=file]::placeholder,
.form-grid .form-field select::placeholder,
.form-grid .form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-grid .form-field input[type=file] {
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}
.form-grid .form-field input[type=file]::file-selector-button {
  background: #d42e2e;
  color: #fff;
  border: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-right: 0.65rem;
}
.form-grid .form-field {
  /* Date/time pickers — icona bianca su dark */
}
.form-grid .form-field input[type=date],
.form-grid .form-field input[type=time] {
  color-scheme: dark;
}
.form-grid .form-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .form-grid.form-grid-2,
  .form-grid.form-grid-3 {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════
   LOGGED USER CHIP IN HEADER
   ═══════════════════════════════════════════ */
.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--white-06);
  border: 1px solid var(--white-12, rgba(255, 255, 255, 0.12));
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-user:hover {
  background: var(--white-12, rgba(255, 255, 255, 0.12));
  border-color: var(--red);
}
.nav-user:active {
  transform: scale(0.97);
}

.nav-user-compact {
  margin-left: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.nav-user-compact:hover {
  background: transparent;
  border: none;
}

.nav-user-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: visible;
  flex: 0 0 36px;
  background: var(--red);
  border: 2px solid var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-user-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg, #0a0a0a);
}

.nav-user-info {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-user-hello {
  font-size: 0.65rem;
  color: var(--white-40, rgba(255, 255, 255, 0.45));
  font-weight: 500;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

/* Mobile drawer user card */
.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  margin: 0 1rem 0.5rem;
  border-radius: var(--radius);
  background: var(--white-06);
  border: 1px solid var(--white-12, rgba(255, 255, 255, 0.12));
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-user-card:hover {
  background: var(--white-12, rgba(255, 255, 255, 0.12));
  border-color: var(--red);
}
.mobile-user-card .nav-user-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-size: 1.05rem;
}

.mobile-user-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
}

.mobile-user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-user-link {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 500;
}

/* Responsive: switch to compact avatar in mobile cluster */
@media (max-width: 900px) {
  .header-mobile-actions {
    display: flex;
  }
}
/* ─────────────────────────────────────────────────────────────────────
   IMPERSONATION BAR — Admin che naviga come utente
   ───────────────────────────────────────────────────────────────────── */
.ur-impersonate-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: repeating-linear-gradient(45deg, #d42e2e, #d42e2e 14px, #b81f1f 14px, #b81f1f 28px);
  color: #fff;
  border-top: 3px solid #ffd84a;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  animation: urImpersonateSlideUp 0.35s ease-out;
}

@keyframes urImpersonateSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.ur-impersonate-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ur-impersonate-msg {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ur-impersonate-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffd84a;
  color: #b81f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: urImpersonatePulse 1.6s ease-in-out infinite;
}

@keyframes urImpersonatePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 216, 74, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 216, 74, 0);
  }
}
.ur-impersonate-msg strong {
  color: #ffd84a;
  font-weight: 800;
}

.ur-impersonate-stop {
  background: #fff;
  color: #b81f1f;
  border: none;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ur-impersonate-stop:hover {
  background: #ffd84a;
  color: #b81f1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ur-impersonate-stop svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .ur-impersonate-inner {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .ur-impersonate-msg {
    font-size: 0.9rem;
    gap: 0.6rem;
  }
  .ur-impersonate-icon {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .ur-impersonate-stop {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }
}
/* Add bottom padding to body so bar doesn't cover footer content */
body.has-impersonate-bar {
  padding-bottom: 80px;
}

/* ============================================================
 * Eventi · sotto-tipologia "kind" (evento | allenamento)
 * Colori: evento = oro (#d29922) · allenamento = viola (#a78bfa)
 * Il filtro nel calendario/immagine resta UNICO ("Eventi e
 * allenamenti"); cambia solo il colore di rendering dell'item.
 * ============================================================ */
.badge-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-kind.kind-evento {
  background: rgba(210, 153, 34, 0.18);
  color: #e3b341;
}
.badge-kind.kind-allenamento {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

/* ─── Admin event list ─── */
.ev-list {
  display: block;
}

.ev-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.ev-row.k-allenamento {
  border-left: 3px solid #a78bfa;
}
.ev-row.k-evento {
  border-left: 3px solid #d29922;
}
.ev-row .ev-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ev-row .ev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-row .ev-cover-placeholder {
  background: linear-gradient(135deg, var(--red), #8a1c1c);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ev-row .ev-cover-placeholder svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  opacity: 0.7;
}
.ev-row .ev-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white-90);
  margin-bottom: 0.2rem;
}
.ev-row .ev-meta {
  font-size: 0.85rem;
  color: var(--white-70);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.ev-row .ev-actions {
  display: flex;
  gap: 0.5rem;
}

.badge-status {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-status.pub {
  background: rgba(63, 185, 80, 0.18);
  color: #56d364;
}
.badge-status.draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-40);
}

.badge-recur {
  background: rgba(56, 139, 253, 0.18);
  color: #58a6ff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .ev-row {
    grid-template-columns: 60px 1fr;
  }
  .ev-row .ev-thumb {
    width: 60px;
    height: 45px;
  }
  .ev-row .ev-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}
/* Toggle tipologia nel form evento */
.kind-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.kind-toggle .kind-opt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  transition: background 0.15s, border-color 0.15s;
}
.kind-toggle .kind-opt input {
  display: none;
}
.kind-toggle .kind-opt .kind-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 0.2rem;
}
.kind-toggle .kind-opt small {
  color: var(--white-40);
  font-size: 0.75rem;
}
.kind-toggle .kind-opt span:not(.kind-dot) {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white-90);
}
.kind-toggle .kind-opt.k-evento .kind-dot {
  background: #d29922;
}
.kind-toggle .kind-opt.k-allenamento .kind-dot {
  background: #a78bfa;
}
.kind-toggle .kind-opt.k-evento.selected {
  background: rgba(210, 153, 34, 0.1);
  border-color: rgba(210, 153, 34, 0.55);
}
.kind-toggle .kind-opt.k-allenamento.selected {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.55);
}

@media (max-width: 600px) {
  .kind-toggle {
    grid-template-columns: 1fr;
  }
}
/* ===== Generatore immagine calendario settimanale (admin eventi) ===== */
.ci-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ci-panel .ci-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  cursor: pointer;
  user-select: none;
}
.ci-panel .ci-panel-head h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-90);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ci-panel .ci-panel-head .ci-chev {
  transition: transform 0.2s;
  width: 16px;
  height: 16px;
  color: var(--white-70);
}
.ci-panel[open] .ci-chev {
  transform: rotate(180deg);
}
.ci-panel .ci-panel-body {
  display: none;
  padding: 0 1rem 1.25rem;
  border-top: 1px solid var(--card-border);
}
.ci-panel[open] .ci-panel-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .ci-panel[open] .ci-panel-body {
    grid-template-columns: 1fr;
  }
}
.ci-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
  margin: 0.9rem 0 0.35rem;
}
.ci-form label:first-child {
  margin-top: 0;
}
.ci-form input[type=date], .ci-form input[type=text] {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  color: var(--white-90);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
}

.ci-week-nav {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.ci-week-nav button {
  flex: 1;
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  color: var(--white-90);
  padding: 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.ci-week-nav button:hover {
  border-color: var(--red);
}

.ci-week-label {
  font-size: 0.82rem;
  color: var(--white-70);
  margin-top: 0.4rem;
  text-align: center;
}

.ci-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.ci-types label.chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  color: var(--white-90);
}
.ci-types label.chip input {
  accent-color: var(--red);
}
.ci-types label.chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.ci-types label.chip.gara .dot {
  background: #d42e2e;
}
.ci-types label.chip.appunt .dot {
  background: #3aa6ff;
}
.ci-types label.chip.allen .dot {
  background: #4ade80;
}
.ci-types label.chip.evento .dot {
  background: #e3b341;
}
.ci-types label.chip.evento .dot.dot-evento {
  background: #e3b341;
  margin-right: 2px;
}
.ci-types label.chip.evento .dot.dot-allenamento {
  background: #a78bfa;
}

.ci-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ci-actions button {
  flex: 1;
  padding: 0.7rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ci-actions .btn-primary {
  background: var(--red);
  color: #fff;
}
.ci-actions .btn-secondary {
  background: #0f0f0f;
  color: var(--white-90);
  border: 1px solid var(--card-border);
}

.ci-canvas-frame {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.ci-canvas-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.ci-preview-hint {
  font-size: 0.75rem;
  color: var(--white-40);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
 * Pagina pubblica: dettaglio evento (evento-dettaglio.html)
 * ============================================================ */
.ev-detail-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.ev-detail-wrap .ev-cover {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.25rem;
}
.ev-detail-wrap .ev-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-detail-wrap .ev-cover-placeholder--hero {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-detail-wrap .ev-head {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ev-detail-wrap .ev-head h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.ev-detail-wrap .ev-head-main {
  flex: 1;
  min-width: 260px;
}
.ev-detail-wrap .ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  color: var(--white-70);
  font-size: 0.95rem;
}
.ev-detail-wrap .ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(210, 153, 34, 0.2);
  color: #e3b341;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.ev-detail-wrap .ev-badge--allenamento {
  background: rgba(139, 92, 246, 0.2);
  color: #b794f4;
}
.ev-detail-wrap .ev-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: filter 0.15s;
}
.ev-detail-wrap .ev-cta:hover {
  filter: brightness(1.1);
}
.ev-detail-wrap .ev-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.ev-detail-wrap .ev-prose {
  color: var(--white-90);
  line-height: 1.65;
}
.ev-detail-wrap .ev-prose p {
  margin-bottom: 0.85rem;
}
.ev-detail-wrap .ev-prose ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}
.ev-detail-wrap .ev-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--card-border);
  text-decoration: none;
  color: var(--white-90);
  transition: border-color 0.15s, background 0.15s;
}
.ev-detail-wrap .ev-attach:hover {
  border-color: var(--red);
  background: rgba(212, 46, 46, 0.06);
}
.ev-detail-wrap .ev-attach svg {
  width: 18px;
  height: 18px;
  fill: var(--red);
}
.ev-detail-wrap .ev-map-label {
  margin-bottom: 0.85rem;
  color: var(--white-70);
}
.ev-detail-wrap .ev-map {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
@media (max-width: 600px) {
  .ev-detail-wrap .ev-head h1 {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════
   DIRETTIVO (pagina /direttivo)
   ═══════════════════════════════════════════ */
.dir-section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.dir-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.dir-section-title em {
  color: var(--red);
  font-style: normal;
}

.dir-section-sub {
  color: var(--white-70);
  margin-bottom: 2rem;
  max-width: 720px;
}

.board-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.board-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.board-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.board-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--red);
  display: block;
  filter: grayscale(25%);
}

.board-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.board-role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--red-15);
  color: var(--red);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
}

.board-bio {
  color: var(--white-70);
  font-size: 0.85rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-more {
  display: inline-block;
  margin-top: 0.7rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  transition: opacity 0.15s;
}
.board-more:hover {
  opacity: 0.75;
  text-decoration: underline;
}
.board-more[hidden] {
  display: none;
}

.board-others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.board-card-sm {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.1rem;
}
.board-card-sm:hover {
  border-color: var(--red);
}
.board-card-sm .name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.board-card-sm .role {
  color: var(--white-60, rgba(255, 255, 255, 0.6));
  font-size: 0.78rem;
}
.board-card-sm .bio {
  color: var(--white-70);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-card-sm-body {
  min-width: 0;
}

.board-photo-sm {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(25%);
}

/* Popup scheda membro del direttivo */
body.dir-modal-open {
  overflow: hidden;
}

.dir-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.dir-modal[hidden] {
  display: none;
}

.dir-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.dir-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dir-modal__x {
  position: absolute;
  top: 0.5rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--white-70);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.dir-modal__x:hover {
  color: var(--red);
}

.dir-modal__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--red);
  display: block;
  filter: grayscale(25%);
}

.dir-modal__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.dir-modal__role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--red-15);
  color: var(--red);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.dir-modal__bio {
  color: var(--white-70);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.doc-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.doc-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.doc-card .doc-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-card .doc-ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}
.doc-card .doc-info {
  flex: 1;
  min-width: 0;
}
.doc-card .doc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.doc-card .doc-meta {
  color: var(--white-60, rgba(255, 255, 255, 0.6));
  font-size: 0.75rem;
}
.doc-card .doc-arrow {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
}

.gate-box {
  background: linear-gradient(135deg, var(--card-bg) 0%, #1f1f1f 100%);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.gate-box .gate-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.gate-box .gate-ic svg {
  width: 30px;
  height: 30px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}
.gate-box h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.gate-box p {
  color: var(--white-70);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.gate-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.gate-btn.primary {
  background: var(--red);
  color: #fff;
}
.gate-btn.ghost {
  border: 1px solid var(--card-border);
  color: var(--white);
}
.gate-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.verbali-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.verbale-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.verbale-row:hover {
  border-color: var(--red);
}

.verbale-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  min-width: 95px;
}

.verbale-title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--white);
}

.verbale-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}
.verbale-dl:hover {
  background: var(--red);
  border-color: var(--red);
}
.verbale-dl svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ═══════════════════════════════════════════
   SOCIETÀ AMICHE (pagina /societa-amiche)
   ═══════════════════════════════════════════ */
.sa-section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.sa-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.sa-section-title em {
  color: var(--red);
  font-style: normal;
}

.sa-section-sub {
  color: var(--white-70);
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Spazio tra le sezioni RETE e CREW */
.sa-net-section + .sa-net-section {
  margin-top: 4.5rem;
}

/* Fasciconi orizzontali (1..3 società) */
.sa-bands {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sa-band {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
}
.sa-band:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.sa-band:nth-child(even) {
  grid-template-columns: 1fr 380px;
}
.sa-band:nth-child(even) .sa-band-media {
  order: 2;
}

.sa-band-media {
  position: relative;
  background: #1a1a1a;
  min-height: 240px;
}
.sa-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.sa-band-logo {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  max-width: 60%;
  display: inline-flex;
  align-items: center;
  height: 60px;
}
.sa-band-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.sa-band-logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: 0.04em;
}

.sa-band-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}
.sa-band-body .sa-name {
  font-size: 1.6rem;
  margin: 0;
}
.sa-band-body .sa-desc {
  font-size: 0.95rem;
}
.sa-band-body .sa-link {
  padding-top: 0.5rem;
  border-top: none;
}

/* Griglia (4+ società) */
.sa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sa-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.sa-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.sa-card .body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.sa-cover-wrap {
  position: relative;
}

.sa-cover {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  background: #1a1a1a;
}

.sa-logo {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  min-width: 80px;
  height: 56px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--red);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.sa-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.sa-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}

.sa-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--red-15);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
}
.sa-city svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

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

.sa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  transition: color 0.2s, gap 0.2s;
}
.sa-link:hover {
  color: var(--red);
  gap: 0.6rem;
}

/* ═══════════════════════════════════════════
   SERVIZI (pagina /servizi)
   ═══════════════════════════════════════════ */
.biz-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(212, 46, 46, 0.35) 100%), url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=1800&h=900&fit=crop") center/cover;
  padding: 4rem 6%;
}

.biz-hero-inner {
  max-width: 720px;
}

.biz-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(212, 46, 46, 0.12);
  border: 1px solid rgba(212, 46, 46, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

.biz-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.biz-hero h1 em {
  color: var(--red);
  font-style: normal;
}

.biz-hero p {
  font-size: 1.15rem;
  color: var(--white-80, rgba(255, 255, 255, 0.8));
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 580px;
}

.biz-hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.biz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.2s, opacity 0.2s;
}
.biz-btn:hover {
  transform: translateY(-2px);
}
.biz-btn.primary {
  background: var(--red);
  color: #fff;
}
.biz-btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.biz-section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.biz-section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.biz-section-title em {
  color: var(--red);
  font-style: normal;
}

.biz-section-sub {
  color: var(--white-70);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.svc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.svc-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  background: #1d1d1d;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.svc-card p {
  color: var(--white-70);
  font-size: 0.92rem;
  line-height: 1.6;
}

.svc-ic {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--red-15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-ic svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.8;
}

.svc-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60, rgba(255, 255, 255, 0.6));
  border-top: 1px solid var(--card-border);
  padding-top: 0.8rem;
  margin-top: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
  position: relative;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}
.step .n {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.step p {
  color: var(--white-70);
  font-size: 0.85rem;
  line-height: 1.55;
}

.contact-section {
  margin: 3rem -6% -3rem;
  padding: 5rem 6%;
  background: linear-gradient(135deg, rgba(212, 46, 46, 0.92) 0%, rgba(140, 20, 20, 0.95) 100%), url("https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1800&h=900&fit=crop") center/cover;
}
.contact-section .label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}
.contact-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.contact-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}

.biz-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.biz-form .full {
  grid-column: 1/-1;
}
.biz-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.4rem;
}
.biz-form input, .biz-form select, .biz-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #fff;
  font: inherit;
  font-family: "DM Sans", sans-serif;
}
.biz-form input::placeholder, .biz-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.biz-form input:focus, .biz-form select:focus, .biz-form textarea:focus {
  outline: none;
  border-color: #fff;
}
.biz-form textarea {
  min-height: 130px;
  resize: vertical;
}
.biz-form button {
  grid-column: 1/-1;
  padding: 1rem 1.5rem;
  background: #fff;
  color: var(--red);
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s;
}
.biz-form button:hover {
  transform: translateY(-2px);
}

@media (max-width: 1200px) and (min-width: 900px) {
  .sa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .board-featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-others {
    grid-template-columns: 1fr;
  }
  .verbale-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .verbale-date {
    min-width: 0;
  }
  .sa-grid {
    grid-template-columns: 1fr;
  }
  .sa-band, .sa-band:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .sa-band:nth-child(even) .sa-band-media {
    order: 0;
  }
  .sa-band-media {
    min-height: 200px;
    aspect-ratio: 16/9;
  }
  .sa-band-body {
    padding: 1.5rem;
  }
  .sa-band-body .sa-name {
    font-size: 1.3rem;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .biz-form {
    grid-template-columns: 1fr;
  }
  .contact-section {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 520px) {
  .board-featured {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════
   ADMIN CRUD — Riusabile (list + edit form)
   Usato da: admin-direttivo, admin-documenti-societari, admin-societa-amiche
   ═══════════════════════════════════════════ */
.admin-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.admin-toolbar .count {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white-70);
  font-size: 0.85rem;
  margin-right: auto;
}
.admin-toolbar select, .admin-toolbar input[type=text] {
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  color: var(--white-90);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--white-90);
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 0.6rem;
}
.filters-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.filters-toggle[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.admin-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.admin-row .ar-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background: #0f0f0f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-row .ar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-row .ar-thumb.contain img {
  object-fit: contain;
  padding: 0.4rem;
}
.admin-row .ar-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white-90);
  margin-bottom: 0.2rem;
}
.admin-row .ar-meta {
  font-size: 0.85rem;
  color: var(--white-70);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.admin-row .ar-actions {
  display: flex;
  gap: 0.5rem;
}

.badge-pub {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(63, 185, 80, 0.18);
  color: #56d364;
}

.badge-pub.draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-40);
}

.badge-pub.feat {
  background: rgba(212, 46, 46, 0.18);
  color: var(--red);
}

.badge-pub.tipo-verbale {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.badge-pub.tipo-pubblico {
  background: rgba(56, 139, 253, 0.18);
  color: #58a6ff;
}

.breadcrumb {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--white-70);
  padding: 1rem 1.25rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a {
  color: var(--white-70);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--red);
}
.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--white-40);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-grid .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-grid .form-field.full {
  grid-column: 1/-1;
}
.form-grid label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
}
.form-grid input[type=text], .form-grid input[type=url], .form-grid input[type=date], .form-grid input[type=number], .form-grid input[type=email], .form-grid select, .form-grid textarea {
  background: #0f0f0f;
  border: 1px solid var(--card-border);
  color: var(--white-90);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.form-grid textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.form-grid .hint {
  font-size: 0.78rem;
  color: var(--white-40);
}
.form-grid .preview-img {
  max-width: 220px;
  max-height: 140px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  margin-top: 0.4rem;
  background: #0f0f0f;
}
.form-grid .preview-img.contain {
  object-fit: contain;
  padding: 0.4rem;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333;
  transition: 0.2s;
  border-radius: 24px;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  transition: 0.2s;
  border-radius: 50%;
}

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

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 768px) {
  .filters-toggle {
    display: inline-flex;
  }
  .admin-toolbar {
    display: none;
  }
  .admin-toolbar.open {
    display: flex;
  }
  .admin-toolbar .count {
    display: none;
  }
  .admin-row {
    grid-template-columns: 60px 1fr;
  }
  .admin-row .ar-thumb {
    width: 60px;
    height: 45px;
  }
  .admin-row .ar-actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================================================================
 * Share button + fallback overlay (ur-share.js)
 * ===================================================================== */
.ur-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white-06);
  color: var(--white-90);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ur-share-btn:hover {
  border-color: var(--red);
  color: var(--white);
  background: var(--red-10, rgba(212, 46, 46, 0.1));
}

.ur-share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ur-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ur-share-overlay.is-open {
  opacity: 1;
}

.ur-share-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px 14px 0 0;
  padding: 1rem 1rem 1.25rem;
  transform: translateY(20px);
  transition: transform 0.18s ease;
}

.ur-share-overlay.is-open .ur-share-sheet {
  transform: translateY(0);
}

.ur-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.ur-share-head strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ur-share-close {
  background: transparent;
  border: 0;
  color: var(--white-70);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
}

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

.ur-share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ur-share-act {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  color: var(--white);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ur-share-act:hover {
  border-color: var(--red);
  background: var(--red-10, rgba(212, 46, 46, 0.1));
}

.ur-share-ic {
  font-size: 1.25rem;
}

.ur-share-wa:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.12);
}

@media (min-width: 560px) {
  .ur-share-overlay {
    align-items: center;
  }
  .ur-share-sheet {
    border-radius: 14px;
  }
}
/* ─────────────────────────────────────────────────────────────
   AUTOCOMPLETE — single & multi-select con chip
   Markup: .ac-wrapper (>.ac-chips opzionale) > .ac-input + .ac-toggle + .ac-dropdown
   ───────────────────────────────────────────────────────────── */
.ac-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: var(--white-05, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--white-15, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  min-height: 44px;
}
.ac-wrapper:focus-within {
  border-color: var(--red, #d42e2e);
  box-shadow: 0 0 0 3px rgba(212, 46, 46, 0.18);
}
.ac-wrapper .ac-chips {
  display: contents;
}
.ac-wrapper .ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: var(--red, #d42e2e);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.ac-wrapper .ac-chip-x {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0 0 0.15rem;
  opacity: 0.85;
}
.ac-wrapper .ac-chip-x:hover {
  opacity: 1;
}
.ac-wrapper .ac-input {
  flex: 1 1 140px;
  min-width: 140px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--white, #fff);
  font: inherit;
  padding: 0.25rem 0;
}
.ac-wrapper .ac-toggle {
  background: transparent;
  border: none;
  color: var(--white-60, rgba(255, 255, 255, 0.6));
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  font-size: 0.7rem;
}
.ac-wrapper .ac-toggle:hover {
  color: var(--white, #fff);
}
.ac-wrapper .ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid var(--white-15, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: none;
}
.ac-wrapper .ac-dropdown.open {
  display: block;
}
.ac-wrapper .ac-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--white, #fff);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--white-05, rgba(255, 255, 255, 0.05));
}
.ac-wrapper .ac-item:last-child {
  border-bottom: none;
}
.ac-wrapper .ac-item.highlighted, .ac-wrapper .ac-item:hover {
  background: var(--white-05, rgba(255, 255, 255, 0.06));
}
.ac-wrapper .ac-item.selected {
  color: var(--red, #d42e2e);
  font-weight: 600;
}
.ac-wrapper .ac-item.ac-create {
  color: var(--white-80, rgba(255, 255, 255, 0.85));
  font-style: italic;
}
.ac-wrapper .ac-item .check {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  color: var(--red, #d42e2e);
  font-weight: 700;
}
.ac-wrapper .ac-empty, .ac-wrapper .ac-loading {
  padding: 0.7rem 0.85rem;
  color: var(--white-60, rgba(255, 255, 255, 0.6));
  font-size: 0.9rem;
  text-align: center;
}
.ac-wrapper .ac-loading .spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white-15, rgba(255, 255, 255, 0.2));
  border-top-color: var(--red, #d42e2e);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: ac-spin 0.8s linear infinite;
  vertical-align: -2px;
}

@keyframes ac-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ═══════════════════════════════════════════
   TESSERATI (pagina /tesserati)
   ═══════════════════════════════════════════ */
.tess-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tess-cat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.tess-cat-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.tess-cat-count {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  line-height: 1.4;
}

.tess-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.tess-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}

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

.tess-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--red);
  /* Ripiego iniziali: sfondo pieno brand */
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.tess-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(25%);
}

.tess-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.tess-badge {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 0.12rem 0.34rem;
  flex-shrink: 0;
}

.tess-badge-inline {
  margin-left: 0;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .tess-grid {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════════
   WIZARD NOVITÀ DEL SITO (novita-wizard.js)
   ═══════════════════════════════════════════ */
.ur-nw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ur-nw-overlay.visibile {
  opacity: 1;
}

.ur-nw-overlay.chiusura {
  opacity: 0;
}

body.ur-nw-aperto {
  overflow: hidden;
}

.ur-nw-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--red);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ur-nw-overlay.visibile .ur-nw-modal {
  transform: translateY(0) scale(1);
}

/* il focus si posa sulla finestra all'apertura: nessun anello sul pulsante,
   ma da tastiera i comandi restano ben visibili */
.ur-nw-modal:focus {
  outline: none;
}

.ur-nw-modal :focus-visible {
  outline: 2px solid var(--white-70);
  outline-offset: 2px;
}

.ur-nw-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white-40);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ── corpo scorrevole ── */
.ur-nw-scroll {
  display: flex;
  align-items: stretch;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ur-nw-media {
  flex: 0 0 260px;
  background: var(--bg-darker);
}

.ur-nw-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ur-nw-body {
  flex: 1 1 auto;
  padding: 2rem 2rem 1.75rem;
  min-width: 0;
}

.ur-nw-modal.senza-media .ur-nw-body {
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
}

.ur-nw-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.ur-nw-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 0.85rem;
}

.ur-nw-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--white-70);
  margin: 0;
}

.ur-nw-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.ur-nw-cta:hover {
  background: var(--red-hover);
  color: var(--white);
}

/* il testo cambia con una dissolvenza, così si vede che si è girato pagina */
.ur-nw-fade {
  animation: urNwFade 0.32s ease;
}

@keyframes urNwFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ── comandi ── */
.ur-nw-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
}

.ur-nw-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.15rem;
  color: var(--white-70);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ur-nw-btn:hover:not(:disabled) {
  color: var(--white);
  border-color: var(--white-20);
}

.ur-nw-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.ur-nw-btn-fine, .ur-nw-next {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.ur-nw-btn-fine:hover:not(:disabled), .ur-nw-next:hover:not(:disabled) {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
}

.ur-nw-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ur-nw-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--white-20);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.ur-nw-dot:hover {
  background: var(--white-40);
}

.ur-nw-dot.attivo {
  background: var(--red);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .ur-nw-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ur-nw-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 10px 10px 0 0;
  }
  .ur-nw-scroll {
    flex-direction: column;
  }
  .ur-nw-media {
    flex: 0 0 auto;
    max-height: 34vh;
  }
  .ur-nw-img {
    max-height: 34vh;
  }
  .ur-nw-body {
    padding: 1.5rem 1.35rem 1.25rem;
  }
  .ur-nw-modal.senza-media .ur-nw-body {
    padding: 2rem 1.35rem 1.5rem;
  }
  .ur-nw-title {
    font-size: 1.45rem;
  }
  .ur-nw-text {
    font-size: 0.9rem;
  }
  .ur-nw-foot {
    padding: 0.8rem 1rem;
  }
  .ur-nw-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ur-nw-overlay, .ur-nw-modal {
    transition: none;
  }
  .ur-nw-fade {
    animation: none;
  }
}
#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;
    max-width: 100%;
  }
}

.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;
}

.pagination button A {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px 0;
}

.mobile-nav-link.active,
.mobile-nav-group-items a.active {
  background: var(--red-10);
  color: var(--red);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--white-70);
}
.check-item .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-item .check-icon.checked {
  background: var(--lime);
}
.check-item .check-icon.checked svg {
  stroke: var(--lime-dark);
}
.check-item .check-icon.unchecked {
  background: var(--white-06);
  border: 1px solid var(--card-border);
}
.check-item .check-icon.unchecked svg {
  stroke: var(--white-20);
}
.check-item .check-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-item.active {
  color: var(--white);
  font-weight: 500;
}

.check-item-radio .check-icon {
  border-radius: 50%;
}
.check-item-radio .check-icon.checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime-dark);
  border-radius: 50%;
}
.check-item-radio .check-icon.unchecked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--white-20);
  border-radius: 50%;
}

.mobile-drawer-header .logo-img {
  max-width: calc(100% - 20px);
}

.home-hero IMG {
  filter: brightness(0.7);
}

.product-card-img .product-name-overlay {
  background: linear-gradient(to top, rgb(17, 17, 17) 0%, rgba(17, 17, 17, 0.6) 40%, transparent 100%);
  padding: 3rem 0.85rem 1rem;
}

.reg-note {
  margin-bottom: 0;
}

.footer-col.footer-brand .footer-logo {
  max-width: 100%;
}

/* Pagina di errore (404): vive in root perché nessuna rotta la carica,
   quindi non può avere un css per pagina come le altre sezioni. */
.ur-error {
  padding: 5rem 2rem 6rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--red-glow) 0%, transparent 60%), var(--bg-dark);
}

.ur-error-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ur-error-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--white-20);
  margin-bottom: 1rem;
}

.ur-error-shoe {
  width: 7rem;
  height: 7rem;
  color: var(--red);
  filter: drop-shadow(0 0 24px var(--red-glow));
  animation: ur-error-stride 2.4s ease-in-out infinite;
}

@keyframes ur-error-stride {
  0%, 100% {
    transform: translateX(-4px) rotate(-3deg);
  }
  50% {
    transform: translateX(4px) rotate(3deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ur-error-shoe {
    animation: none;
  }
}
.ur-error h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.ur-error h1 span {
  color: var(--red);
}

.ur-error-text {
  color: var(--white-70);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.ur-error-detail {
  margin: 1.25rem auto 0;
  max-width: 520px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--white-90);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.ur-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ur-error-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-10);
  font-size: 0.9rem;
  color: var(--white-40);
}
.ur-error-links span {
  margin-right: 0.35rem;
}
.ur-error-links a {
  color: var(--white-70);
  text-decoration: none;
  padding: 0 0.5rem;
  border-right: 1px solid var(--white-10);
}
.ur-error-links a:last-child {
  border-right: none;
}
.ur-error-links a:hover {
  color: var(--red);
}

@media (max-width: 600px) {
  .ur-error {
    padding: 3rem 1.25rem 4rem;
  }
  .ur-error-code {
    font-size: 5.5rem;
  }
  .ur-error-shoe {
    width: 4.5rem;
    height: 4.5rem;
  }
  .ur-error h1 {
    font-size: 2.1rem;
  }
  .ur-error-links a {
    display: inline-block;
    line-height: 1.9;
  }
}

/*# sourceMappingURL=root.css.map */
