:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(71, 85, 105, 1);
  /* Slate 600 per miglior contrasto */
  --color-cream-100-rgb: 255, 255, 253;
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  /* New accent colors */
  --color-indigo-500: #6366f1;
  --color-amber-500: #f59e0b;

  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-indigo-500-rgb: 99, 102, 241;
  --color-amber-500-rgb: 245, 158, 11;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: #334155;
  /* Slate 700 per un contrasto ancora migliore */
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
    --color-indigo-500-rgb: 99, 102, 241;
    --color-amber-500-rgb: 245, 158, 11;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15);
  /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15);
  /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15);
  /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15);
  /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15);
  /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15);
  /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15);
  /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
  --color-indigo-500-rgb: 99, 102, 241;
  --color-amber-500-rgb: 245, 158, 11;
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  color: var(--color-btn-primary-text);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.3px;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-teal-700) 100%);
  box-shadow: 0 6px 16px rgba(var(--color-teal-500-rgb), 0.4);
  transform: translateY(-2px);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--color-teal-500-rgb), 0.3);
}

.btn--apply {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  min-width: 220px;
}

.btn--apply:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--sponsor {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  /* Usa il colore primario del sito (teal) */
  color: var(--color-btn-primary-text) !important;
  /* Testo bianco */
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(var(--color-teal-500-rgb), 0.5);
  /* Ombra più pronunciata */
  border: none;
}

.btn--sponsor:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-teal-700) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--color-teal-500-rgb), 0.6);
  /* Ombra ancora più pronunciata all'hover */
}

.btn--outline {
  /* MODIFICA: Sfondo solido invece di trasparente */
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn--outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  transition: left var(--duration-normal) var(--ease-standard);
  z-index: -1;
}

.btn--outline:hover {
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.25);
  transform: translateY(-2px);
}

.btn--outline:hover::before {
  left: 0;
}

.btn--outline:active {
  transform: translateY(0);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

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

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Per browser meno recenti */
.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.025em;
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(var(--color-success-rgb, 33, 128, 141),
      var(--status-bg-opacity));
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(var(--color-error-rgb, 192, 21, 47),
      var(--status-bg-opacity));
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(var(--color-warning-rgb, 168, 75, 47),
      var(--status-bg-opacity));
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(var(--color-info-rgb, 98, 108, 113),
      var(--status-bg-opacity));
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}

.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-standard);
}

.header.scrolled {
  background: var(--color-slate-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__brand h2 {
  color: var(--color-white);
  margin: 0;
  font-weight: var(--font-weight-bold);
}

.nav__logo {
  height: 50px;
  width: auto;
  display: block;
  color: var(--color-white);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.nav__logo:hover {
  transform: scale(1.05);
}


/* Responsive logo adjustments */
@media (max-width: 768px) {
  .nav__logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .nav__logo {
    height: 35px;
  }
}

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-32);
  margin-left: auto;
  margin-right: var(--space-32);
  align-items: center;
  margin-top: 5px;
}

.nav__link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: var(--space-4) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-standard);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--color-white);
  margin: 3px 0;
  transition: transform var(--duration-normal) var(--ease-standard);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* UISwitch Language Selector */
.lang-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-left: var(--space-16);
}

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

.lang-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  background-color: var(--color-secondary);
  transition: .4s;
  border-radius: 34px;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.lang-switch .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 2.5px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 0v30h60V0H0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

.lang-switch input:checked+.slider:before {
  transform: translateX(30px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23009246' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ce2b37' d='M2 0h1v2H2z'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 110px;
  /* Evita che la targhetta finisca sotto l'header fisso */
  padding-bottom: 60px;
  box-sizing: border-box;
  /* ORIGINALE: background-image: url('https://pplx-res.cloudinary.com/image/upload/v1755256775/pplx_project_search_images/4067949dc21d4fe748c6eedcf2627b82b7e7cf40.png'); */
  background-image: url('backgroundprova.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 52, 59, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(2.0rem, 4.5vw, 3.0rem);
  font-weight: 800;
  margin-bottom: var(--space-12);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero__title-route {
  display: block;
  font-size: clamp(2.2rem, 5.0vw, 3.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-8);
  letter-spacing: 0.5px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__countdown {
  margin-bottom: 20px;
}

.hero__description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-32);
  color: rgba(255, 255, 255, 0.9);
  /* Aumentato leggermente il contrasto */
}


.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-24);
  margin-bottom: var(--space-16);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  /* Leggermente più visibile */
  padding: var(--space-16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.countdown__number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: white;
}

.countdown__label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
}

.hero__actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-48);
}

.hero__sponsor-container {
  margin-top: var(--space-48);
}

.hero__actions--2027 {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* About Section */
.about {
  background: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
  margin-bottom: var(--space-32);
}

.about__content h2 {
  margin-bottom: var(--space-16);
  color: var(--color-primary);
}

.about__content h3 {
  margin: var(--space-24) 0 var(--space-12) 0;
  color: var(--color-text);
}

.about__content p {
  margin-bottom: var(--space-16);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.route-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-24) 0;
}

.route-list li {
  padding: var(--space-8) 0;
  padding-left: var(--space-24);
  position: relative;
  color: var(--color-text-secondary);
}

.route-list li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.about__image {
  position: relative;
}

.about__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.testimonial {
  background: var(--color-bg-1);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  text-align: center;
}

.testimonial__quote {
  font-size: var(--font-size-lg);
  font-style: italic;
  margin: 0 0 var(--space-16) 0;
  color: var(--color-text);
  line-height: 1.6;
}

.testimonial__author {
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

/* Challenge Section */
.challenge {
  background: var(--color-background);
}

.challenge__title {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
}

.challenge__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.stat {
  text-align: center;
  padding: var(--space-24);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
}

.stat__number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-8);
}

.stat__label {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.challenge__requirements h3 {
  text-align: center;
  margin-bottom: var(--space-24);
  color: var(--color-text);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.requirement {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  text-align: center;
}

.requirement h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.requirement p {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Gallery Section - FIXED */
.gallery {
  background: var(--color-surface);
}

.gallery h2 {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-16);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}

.gallery-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-modal__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.gallery-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-8);
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.gallery-modal__close:hover {
  opacity: 0.7;
}

/* FAQ Section */
.faq {
  background: var(--color-background);
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-16);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
}

.faq__question {
  width: 100%;
  padding: var(--space-20);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--duration-fast) var(--ease-standard);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-20) var(--space-20);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-standard);
}

.faq__item.open .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Registration Section */
.register {
  background: var(--color-slate-900);
  color: var(--color-white);
}

.register__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.register h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.register p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-32);
}

.registration-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  cursor: pointer;
  line-height: 1.5;
  color: var(--color-white);
}

.checkbox-label input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  position: relative;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-standard);
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-message {
  margin-top: var(--space-16);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  text-align: center;
}

.form-message.success {
  background: rgba(var(--color-success-rgb), 0.1);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.2);
}

.form-message.error {
  background: rgba(var(--color-error-rgb), 0.1);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.2);
}

/* Contact Section */
.contact {
  background: var(--color-background);
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
}

.contact__info h3 {
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.contact__info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

.contact__item {
  margin-bottom: var(--space-12);
  color: var(--color-text-secondary);
}

.contact__item strong {
  color: var(--color-text);
}

.contact__logo {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Footer */
.footer {
  background: var(--color-slate-900);
  color: var(--color-gray-200);
  padding: var(--space-32) 0 var(--space-16);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer__section h3,
.footer__section h4 {
  color: var(--color-teal-300);
  margin-bottom: var(--space-16);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-8);
}

.footer__links a {
  color: var(--color-gray-200);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__links a:hover {
  color: var(--color-teal-300);
}

.footer__bottom {
  border-top: 1px solid rgba(var(--color-gray-400-rgb), 0.2);
  padding-top: var(--space-16);
  text-align: center;
  color: rgba(var(--color-gray-200-rgb), 0.7);
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {

  /* Correzioni specifiche per mobile per mantenere i colori del testo e la leggibilità */
  .nav__brand h2,
  .nav__logo {
    color: var(--color-white) !important;
  }

  .nav__toggle span {
    background: var(--color-white) !important;
  }

  .header {
    height: 70px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }

  .header.scrolled {
    background: var(--color-slate-900);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  }

  .hero__title {
    color: var(--color-white) !important;
    font-size: 1.8rem !important;
  }

  .hero__title-route {
    font-size: 2.1rem !important;
    margin-top: 4px;
    font-weight: 600;
  }

  .register p {
    color: rgba(255, 255, 255, 0.9);
  }

  .lang-switcher {
    display: none;
    /* Hidden on mobile header, moved inside menu */
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    /* Usa il colore di superficie del tema */
    backdrop-filter: blur(15px);
    /* Effetto sfocatura */
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 100px var(--space-16) var(--space-32);
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    align-items: stretch;
    margin-top: 0;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__item--switch {
    order: -1;
    /* Sposta il selettore lingua in cima */
    margin-bottom: var(--space-24);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav__menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 300px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }

  .nav__menu.active::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 1.15rem;
    padding: var(--space-16) var(--space-20);
    color: var(--color-slate-900);
    font-weight: var(--font-weight-semibold);
    border-bottom: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-standard);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
  }

  .nav__link::before {
    display: none;
    /* Rimuoviamo la barra laterale per un look più pulito */
  }

  .nav__link:hover {
    background: rgba(var(--color-teal-500-rgb), 0.08);
    color: var(--color-primary);
    transform: translateX(5px);
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .countdown {
    gap: var(--space-16);
  }

  .countdown__item {
    min-width: 60px;
    padding: var(--space-12);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact__content {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem !important;
    line-height: 1.15;
  }

  .hero__title-route {
    font-size: 1.8rem !important;
    margin-top: 4px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }

  .hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--space-16);
  }

  .countdown {
    gap: 8px;
  }

  .countdown__item {
    min-width: 62px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
  }

  .countdown__number {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* Year Selector Modal */
.year-selector-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.year-selector-modal.active {
  display: flex;
  opacity: 1;
}

.year-selector-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.year-selector-modal.active .year-selector-content {
  transform: scale(1);
}

.year-selector-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.year-selector-close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.year-selector-title {
  color: var(--color-primary);
  margin-bottom: var(--space-24);
  text-align: center;
  font-size: var(--font-size-2xl);
}

.year-selector-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.year-button {
  display: block;
  padding: var(--space-20);
  /* MODIFICA: Sfondo solido per leggibilità */
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.year-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  transition: left var(--duration-normal) var(--ease-standard);
  z-index: -1;
}

.year-button:hover {
  border-color: var(--color-primary);
  color: var(--color-btn-primary-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-teal-500-rgb), 0.3);
}

.year-button:hover::before {
  left: 0;
}

.year-button-active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
}

.year-button-active::after {
  content: '✓';
  position: absolute;
  right: var(--space-16);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xl);
  font-weight: bold;
}

/* Edition Badge */
.edition-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  color: var(--color-btn-primary-text);
  padding: var(--space-10) var(--space-24);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-20);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.4);
  animation: badgePulse 3s ease-in-out infinite;
  letter-spacing: 1.5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.edition-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 6px 20px rgba(var(--color-teal-500-rgb), 0.6);
    transform: scale(1.05);
  }
}

@keyframes badgeShine {
  0% {
    left: -50%;
  }

  50% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

/* Responsive adjustments for year selector and badge */
@media (max-width: 768px) {
  .year-selector-modal {
    padding: var(--space-16);
  }

  .year-selector-content {
    padding: var(--space-32) var(--space-24);
    width: 95%;
    max-width: 400px;
  }

  .year-selector-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-20);
  }

  .year-button {
    padding: var(--space-16) var(--space-20);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
  }

  .year-button-active::after {
    right: var(--space-12);
    font-size: var(--font-size-lg);
  }

  .edition-badge {
    font-size: var(--font-size-lg);
    padding: var(--space-8) var(--space-20);
    margin-bottom: var(--space-16);
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .year-selector-content {
    padding: var(--space-24) var(--space-20);
    width: 90%;
    border-radius: var(--radius-md);
  }

  .year-selector-close {
    width: 36px;
    height: 36px;
    font-size: 1.75rem;
    top: var(--space-12);
    right: var(--space-12);
  }

  .year-selector-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-16);
    padding-right: var(--space-32);
  }

  .year-selector-buttons {
    gap: var(--space-12);
  }

  .year-button {
    padding: var(--space-14) var(--space-16);
    font-size: var(--font-size-base);
    border-radius: var(--radius-base);
  }

  .year-button-active::after {
    right: var(--space-12);
    font-size: var(--font-size-base);
  }

  .edition-badge {
    font-size: var(--font-size-base);
    padding: var(--space-6) var(--space-16);
    margin-bottom: var(--space-12);
    letter-spacing: 0.8px;
    border-width: 1.5px;
  }

  /* Improve hero section spacing on mobile */
  .hero__content {
    padding: var(--space-20) var(--space-16);
  }

  .hero__title {
    margin-top: var(--space-8);
  }
}

@media (max-width: 360px) {
  .year-selector-content {
    width: 95%;
    padding: var(--space-20) var(--space-16);
  }

  .year-selector-title {
    font-size: var(--font-size-base);
  }

  .year-button {
    padding: var(--space-12);
    font-size: var(--font-size-sm);
  }

  .edition-badge {
    font-size: var(--font-size-sm);
    padding: var(--space-4) var(--space-12);
    letter-spacing: 0.5px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger animation delays */
.stat:nth-child(1) {
  animation-delay: 0.1s;
}

.stat:nth-child(2) {
  animation-delay: 0.2s;
}

.stat:nth-child(3) {
  animation-delay: 0.3s;
}

.stat:nth-child(4) {
  animation-delay: 0.4s;
}

.requirement:nth-child(1) {
  animation-delay: 0.1s;
}

.requirement:nth-child(2) {
  animation-delay: 0.2s;
}

.requirement:nth-child(3) {
  animation-delay: 0.3s;
}

.requirement:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery__item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery__item:nth-child(2) {
  animation-delay: 0.15s;
}

.gallery__item:nth-child(3) {
  animation-delay: 0.2s;
}

.gallery__item:nth-child(4) {
  animation-delay: 0.25s;
}

.gallery__item:nth-child(5) {
  animation-delay: 0.3s;
}

.gallery__item:nth-child(6) {
  animation-delay: 0.35s;
}

.faq__item:nth-child(1) {
  animation-delay: 0.1s;
}

.faq__item:nth-child(2) {
  animation-delay: 0.2s;
}

.faq__item:nth-child(3) {
  animation-delay: 0.3s;
}

.faq__item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
  }

  50% {
    box-shadow: 0 6px 20px rgba(var(--color-teal-500-rgb), 0.5);
  }
}

.btn--primary {
  animation: pulse 3s ease-in-out infinite;
}

.btn--primary:hover {
  animation: none;
}

/* ============================================
   LOADING SCREEN STYLES - SPORT BICYCLE VERSION
   ============================================ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #21808d 0%, #134252 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  position: relative;
}

.cyclist-container {
  position: relative;
  width: 320px;
  height: 200px;
  margin: 0 auto 50px;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

/* ===== SPORT BIKE FRAME - AERODYNAMIC DESIGN ===== */
.bike {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Main frame - sleek racing geometry */
.bike-frame {
  position: absolute;
  width: 5px;
  height: 85px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  left: 48%;
  top: 38%;
  transform: rotate(-25deg);
  border-radius: 3px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

/* Top tube - horizontal racing position */
.bike-frame::before {
  content: '';
  position: absolute;
  width: 95px;
  height: 5px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  top: 8px;
  left: -5px;
  transform: rotate(15deg);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Down tube - aggressive angle */
.bike-frame::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 75px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  bottom: -15px;
  left: 0;
  transform: rotate(35deg);
  border-radius: 3px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

/* Chain stays */
.bike-seat::after {
  content: '';
  position: absolute;
  width: 65px;
  height: 4px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(220, 220, 220, 0.9) 100%);
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ===== SPORT BIKE WHEELS - RACING DESIGN ===== */
.bike-wheel {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.08) 40%,
      transparent 70%);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.25),
    0 5px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
  animation: wheelRotate 0.6s linear infinite;
}

.bike-wheel-front {
  right: 20px;
  bottom: 20px;
}

.bike-wheel-back {
  left: 30px;
  bottom: 20px;
}

/* Racing spokes - aerodynamic */
.wheel-spoke {
  position: absolute;
  width: 2.5px;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.9) 100%);
  left: 50%;
  top: 0;
  transform-origin: center;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.wheel-spoke:nth-child(1) {
  transform: translateX(-50%) rotate(0deg);
}

.wheel-spoke:nth-child(2) {
  transform: translateX(-50%) rotate(60deg);
}

.wheel-spoke:nth-child(3) {
  transform: translateX(-50%) rotate(120deg);
}

/* Wheel hub - detailed */
.bike-wheel::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 1) 0%,
      rgba(240, 240, 240, 0.98) 50%,
      rgba(220, 220, 220, 0.95) 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* Tire tread effect */
.bike-wheel::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(200, 200, 200, 0.3);
  top: 0;
  left: 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes wheelRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===== RACING SADDLE ===== */
.bike-seat {
  position: absolute;
  width: 35px;
  height: 12px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  border-radius: 18px 18px 6px 6px;
  left: 48%;
  top: 28%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Seat post */
.bike-seat::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 28px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(220, 220, 220, 0.9) 100%);
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

/* ===== DROP HANDLEBARS - RACING STYLE ===== */
.bike-handlebar {
  position: absolute;
  width: 42px;
  height: 5px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  border-radius: 6px;
  right: 32px;
  top: 35%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Handlebar stem */
.bike-handlebar::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 32px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(220, 220, 220, 0.9) 100%);
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 3px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

/* Drop bar curves */
.bike-handlebar::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  top: -3px;
  left: -5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ===== RACING CYCLIST - AERODYNAMIC POSITION ===== */
.cyclist {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: cyclistBounce 0.3s ease-in-out infinite;
}

@keyframes cyclistBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Cyclist head with aero helmet */
.cyclist-head {
  position: absolute;
  width: 32px;
  height: 30px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(240, 240, 240, 0.96) 50%,
      rgba(255, 255, 255, 0.98) 100%);
  border-radius: 50%;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4),
    inset -3px -3px 8px rgba(0, 0, 0, 0.15);
}

/* Aero helmet - streamlined */
.cyclist-head::after {
  content: '';
  position: absolute;
  width: 38px;
  height: 22px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  top: -10px;
  left: -3px;
  border: 2.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* Visor detail */
.cyclist-head::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 10px;
  background: linear-gradient(to bottom,
      rgba(100, 100, 100, 0.4) 0%,
      rgba(50, 50, 50, 0.6) 100%);
  border-radius: 50% 50% 30% 30%;
  top: 8px;
  left: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Cyclist body - aerodynamic racing position */
.cyclist-body {
  position: absolute;
  width: 45px;
  height: 38px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(235, 235, 235, 0.92) 50%,
      rgba(255, 255, 255, 0.95) 100%);
  border-radius: 45% 45% 35% 35% / 50% 50% 40% 40%;
  left: 46%;
  top: 28%;
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4),
    inset -2px -2px 6px rgba(0, 0, 0, 0.12);
}

/* Jersey details */
.cyclist-body::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 50%;
  background: linear-gradient(135deg,
      rgba(33, 128, 141, 0.3) 0%,
      rgba(33, 128, 141, 0.15) 100%);
  border-radius: 45% 45% 20% 20% / 50% 50% 30% 30%;
  top: 0;
  left: 0;
}

/* Back detail */
.cyclist-body::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 25px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(230, 230, 230, 0.85) 100%);
  border-radius: 40%;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

/* Left arm - reaching for handlebars */
.cyclist-arm-left {
  position: absolute;
  width: 4px;
  height: 42px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(240, 240, 240, 0.9) 50%,
      rgba(255, 255, 255, 0.95) 100%);
  border-radius: 3px;
  left: 54%;
  top: 32%;
  transform-origin: top center;
  transform: rotate(35deg);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Left hand */
.cyclist-arm-left::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Right arm - reaching for handlebars */
.cyclist-arm-right {
  position: absolute;
  width: 4px;
  height: 40px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(235, 235, 235, 0.88) 50%,
      rgba(255, 255, 255, 0.92) 100%);
  border-radius: 3px;
  left: 38%;
  top: 33%;
  transform-origin: top center;
  transform: rotate(-40deg);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Right hand */
.cyclist-arm-right::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Left leg - pedaling animation */
.cyclist-leg-left {
  position: absolute;
  width: 5px;
  height: 48px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(240, 240, 240, 0.9) 50%,
      rgba(255, 255, 255, 0.95) 100%);
  border-radius: 3px;
  left: 42%;
  top: 52%;
  transform-origin: top center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: pedalLeft 0.6s ease-in-out infinite;
}

/* Left foot/shoe */
.cyclist-leg-left::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 7px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(230, 230, 230, 0.9) 100%);
  border-radius: 40% 60% 40% 60%;
  bottom: -3px;
  left: -5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Right leg - pedaling animation (opposite phase) */
.cyclist-leg-right {
  position: absolute;
  width: 5px;
  height: 48px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(235, 235, 235, 0.88) 50%,
      rgba(255, 255, 255, 0.92) 100%);
  border-radius: 3px;
  left: 52%;
  top: 52%;
  transform-origin: top center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: pedalRight 0.6s ease-in-out infinite;
}

/* Right foot/shoe */
.cyclist-leg-right::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 7px;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(225, 225, 225, 0.88) 100%);
  border-radius: 40% 60% 40% 60%;
  bottom: -3px;
  left: -5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Pedaling animations */
@keyframes pedalLeft {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(25deg);
  }

  75% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes pedalRight {
  0% {
    transform: rotate(25deg);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(15deg);
  }

  100% {
    transform: rotate(25deg);
  }
}

/* ===== PROFESSIONAL BIKE ENHANCEMENTS ===== */

/* Carbon fiber texture on frame */
.bike-frame {
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(230, 230, 230, 0.95) 25%,
      rgba(245, 245, 245, 0.96) 50%,
      rgba(230, 230, 230, 0.95) 75%,
      rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3),
    inset 1px 0 2px rgba(255, 255, 255, 0.5),
    inset -1px 0 2px rgba(0, 0, 0, 0.1);
}

/* Chain */
.bike-frame::before {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Fork for front wheel */
.bike-handlebar::before {
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3),
    inset 1px 0 2px rgba(255, 255, 255, 0.4);
}

/* Chainring and pedals */
.bike-wheel-back::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  animation: wheelRotate 0.6s linear infinite;
}

/* Chain connecting chainring */
.bike-seat::after {
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(220, 220, 220, 0.9) 20%,
      rgba(240, 240, 240, 0.92) 40%,
      rgba(220, 220, 220, 0.9) 60%,
      rgba(240, 240, 240, 0.92) 80%,
      rgba(220, 220, 220, 0.9) 100%);
  height: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Water bottle cage */
.bike-frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 25px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Water bottle */
.bike-frame::after::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 20px;
  background: linear-gradient(to bottom,
      rgba(33, 128, 141, 0.6) 0%,
      rgba(33, 128, 141, 0.4) 100%);
  border-radius: 3px;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* Brake calipers on wheels */
.bike-wheel-front::before {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    0 -2px 4px rgba(255, 255, 255, 0.3);
}

.bike-wheel-back::before {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    0 -2px 4px rgba(255, 255, 255, 0.3);
}

/* Enhanced wheel rim depth (aero wheels) */
.bike-wheel {
  border-width: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3),
    0 6px 25px rgba(0, 0, 0, 0.45),
    inset 0 3px 8px rgba(255, 255, 255, 0.4),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}

/* Valve stem on wheels */
.bike-wheel-front::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(200, 200, 200, 0.8) 100%);
  border-radius: 1px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: wheelRotate 0.6s linear infinite;
}

/* Add more spokes for realism */
.bike-wheel {
  position: relative;
}

.wheel-spoke:nth-child(4) {
  transform: translateX(-50%) rotate(30deg);
}

.wheel-spoke:nth-child(5) {
  transform: translateX(-50%) rotate(90deg);
}

.wheel-spoke:nth-child(6) {
  transform: translateX(-50%) rotate(150deg);
}

/* Saddle rails */
.bike-seat {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

/* ===== LOADING ROAD ANIMATION ===== */
.loading-road {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 25%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0.3) 75%,
      transparent 100%);
  background-size: 200% 100%;
  animation: roadScroll 1.5s linear infinite;
  box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.2);
}

/* Road dashes */
.loading-road::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(to right,
      transparent 0px,
      transparent 20px,
      rgba(255, 255, 255, 0.4) 20px,
      rgba(255, 255, 255, 0.4) 40px);
  animation: roadScroll 1s linear infinite;
}

@keyframes roadScroll {
  0% {
    background-position: 0% 0%;
    transform: translateX(0);
  }

  100% {
    background-position: 200% 0%;
    transform: translateX(-40px);
  }
}

/* ===== LOADING TEXT ===== */
.loading-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 30px;
  animation: textPulse 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* Loading dots animation */
.loading-text::after {
  content: '';
  animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

/* ===== MOTION EFFECTS ===== */

/* Speed lines behind bike */
.cyclist-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(to right,
      transparent 0px,
      transparent 30px,
      rgba(255, 255, 255, 0.1) 30px,
      rgba(255, 255, 255, 0.1) 32px);
  left: -100%;
  animation: speedLines 0.8s linear infinite;
  pointer-events: none;
}

@keyframes speedLines {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

/* Wheel motion blur effect */
.bike-wheel {
  animation: wheelRotate 0.6s linear infinite, wheelBlur 0.6s ease-in-out infinite;
}

@keyframes wheelBlur {

  0%,
  100% {
    filter: blur(0px);
  }

  50% {
    filter: blur(0.5px);
  }
}

/* Enhanced shadow for depth */
.cyclist-container::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 15px;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      transparent 100%);
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation: shadowPulse 0.3s ease-in-out infinite;
}

@keyframes shadowPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-50%) scale(1.05);
    opacity: 0.8;
  }
}

/* Responsive adjustments for loading screen */
@media (max-width: 768px) {
  .cyclist-container {
    width: 280px;
    height: 180px;
    transform: scale(0.9);
  }

  .loading-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .cyclist-container {
    width: 240px;
    height: 160px;
    transform: scale(0.8);
  }

  .loading-text {
    font-size: 1rem;
  }
}

/* ============================================
   ADDITIONAL RESPONSIVE STYLES
   ============================================ */

/* General Typography and Layout Adjustments for Mobile */
@media (max-width: 768px) {

  /* Reduce base font size for better readability on smaller screens */
  html {
    font-size: 13px;
  }

  /* Increase padding for sections to give more breathing room */
  .py-16 {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  /* Adjust headings for smaller viewports */
  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  h3 {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .py-16 {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

/* Header & Navigation */
@media (max-width: 768px) {
  .nav {
    padding: var(--space-12) 0;
  }
}

/* Hero Section */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    /* Allow hero to shrink */
    padding: 120px 0 60px;
    /* Adjust padding */
    background-attachment: scroll;
    /* Parallax effect is often problematic on mobile */
  }

  .hero__content {
    padding: 0 var(--space-16);
  }
}

/* About Section */
@media (max-width: 768px) {
  .about__img {
    height: 300px;
    /* Adjust image height */
  }

  .testimonial {
    padding: var(--space-24);
  }
}

/* Challenge Section */
@media (max-width: 768px) {
  .challenge__stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .challenge__stats {
    grid-template-columns: 1fr;
    /* Stack stats on very small screens */
    gap: var(--space-16);
  }

  .stat {
    padding: var(--space-16);
  }

  .stat__number {
    font-size: var(--font-size-3xl);
  }

  .requirements-grid {
    grid-template-columns: 1fr;
    /* Stack requirements */
  }
}

/* Gallery Section */
@media (max-width: 768px) {
  .gallery__grid {
    gap: var(--space-12);
  }
}

/* FAQ Section */
@media (max-width: 768px) {
  .faq__question {
    padding: var(--space-16);
    font-size: var(--font-size-md);
  }

  .faq__answer {
    padding: 0 var(--space-16) var(--space-16);
  }

  .faq__item.open .faq__answer {
    max-height: 300px;
    /* Increase max-height for potentially longer answers */
  }
}

/* Registration Section */
@media (max-width: 768px) {
  .register__content {
    padding: 0 var(--space-16);
  }

  .checkbox-label {
    font-size: var(--font-size-sm);
  }
}

/* Contact Section */
@media (max-width: 768px) {
  .contact__content {
    gap: var(--space-24);
    text-align: center;
  }

  .contact__image {
    order: -1;
    /* Move logo to the top */
    margin: 0 auto;
  }
}

/* Footer */
@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    font-size: var(--font-size-xs);
  }
}


.flag-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin: 0 2px;
  background-size: cover;
}

.flag-icon-uk {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='1' y='4' width='30' height='24' rx='4' ry='4' fill='%23071b65'/%3E%3Cpath d='M5.101,4h-.101c-1.981,0-3.615,1.444-3.933,3.334L26.899,28h.101c1.981,0,3.615-1.444,3.933-3.334L5.101,4Z' fill='%23fff'/%3E%3Cpath d='M22.25,19h-2.5l9.934,7.947c.387-.353,.704-.777,.929-1.257l-8.363-6.691Z' fill='%23b92932'/%3E%3Cpath d='M1.387,6.309l8.363,6.691h2.5L2.316,5.053c-.387,.353-.704,.777-.929,1.257Z' fill='%23b92932'/%3E%3Cpath d='M5,28h.101L30.933,7.334c-.318-1.891-1.952-3.334-3.933-3.334h-.101L1.067,24.666c.318,1.891,1.952,3.334,3.933,3.334Z' fill='%23fff'/%3E%3Crect x='13' y='4' width='6' height='24' fill='%23fff'/%3E%3Crect x='1' y='13' width='30' height='6' fill='%23fff'/%3E%3Crect x='14' y='4' width='4' height='24' fill='%23b92932'/%3E%3Crect x='14' y='1' width='4' height='30' transform='translate(32) rotate(90)' fill='%23b92932'/%3E%3Cpath d='M28.222,4.21l-9.222,7.376v1.414h.75l9.943-7.94c-.419-.384-.918-.671-1.471-.85Z' fill='%23b92932'/%3E%3Cpath d='M2.328,26.957c.414,.374,.904,.656,1.447,.832l9.225-7.38v-1.408h-.75L2.328,26.957Z' fill='%23b92932'/%3E%3Cpath d='M27,4H5c-2.209,0-4,1.791-4,4V24c0,2.209,1.791,4,4,4H27c2.209,0,4-1.791,4-4V8c0-2.209-1.791-4-4-4Zm3,20c0,1.654-1.346,3-3,3H5c-1.654,0-3-1.346-3-3V8c0-1.654,1.346-3,3-3H27c1.654,0,3,1.346,3,3V24Z' opacity='.15'/%3E%3Cpath d='M27,5H5c-1.657,0-3,1.343-3,3v1c0-1.657,1.343-3,3-3H27c1.657,0,3,1.343,3,3v-1c0-1.657-1.343-3-3-3Z' fill='%23fff' opacity='.2'/%3E%3C/svg%3E");
}

.flag-icon-it {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M10 4H22V28H10z'/%3E%3Cpath d='M5,4h6V28H5c-2.208,0-4-1.792-4-4V8c0-2.208,1.792-4,4-4Z' fill='%2341914d'/%3E%3Cpath d='M25,4h6V28h-6c-2.208,0-4-1.792-4-4V8c0-2.208,1.792-4,4-4Z' transform='rotate(180 26 16)' fill='%23bf393b'/%3E%3Cpath d='M27,4H5c-2.209,0-4,1.791-4,4V24c0,2.209,1.791,4,4,4H27c2.209,0,4-1.791,4-4V8c0-2.209-1.791-4-4-4Zm3,20c0,1.654-1.346,3-3,3H5c-1.654,0-3-1.346-3-3V8c0-1.654,1.346-3,3-3H27c1.654,0,3,1.346,3,3V24Z' opacity='.15'/%3E%3Cpath d='M27,5H5c-1.657,0-3,1.343-3,3v1c0-1.657,1.343-3,3-3H27c1.657,0,3,1.343,3,3v-1c0-1.657-1.343-3-3-3Z' fill='%23fff' opacity='.2'/%3E%3C/svg%3E");
}

/* Phone Prefix Select Styling */
.phone-prefix-select {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.phone-prefix-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.1);
}

.phone-prefix-select option {
  padding: 10px;
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
}

/* Improve select dropdown appearance */
@media (max-width: 768px) {
  .phone-prefix-select {
    font-size: var(--font-size-sm);
  }

  .phone-prefix-select option {
    font-size: var(--font-size-sm);
  }
}

/* Phone Row Custom Layout */
.form-row--phone {
  grid-template-columns: 160px 1fr !important;
}

/* ============================================
   HERO CTA CONTAINER - Apple Style Unified Layout
   ============================================ */
.hero__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
  width: 100%;
}

.hero__actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions-grid {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ============================================
   INFO BANNER - Registration Notice
   ============================================ */
.hero__info-banner {
  margin-bottom: var(--space-24);
  width: 100%;
  max-width: 600px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.info-banner__content {
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.info-banner__icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.info-banner__text {
  margin: 0;
  color: white;
  font-size: var(--font-size-base);
  line-height: 1.4;
}

.info-banner__text strong {
  color: #fbbf24;
  /* Amber per evidenziare */
}
.info-banner__button {
  display: inline-block;
  background: #ffffff;
  color: #111111;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.info-banner__button:hover,
.info-banner__button:focus {
  background: #21808d;
  color: #ffffff;
  border-color: #21808d;
  box-shadow: 0 6px 24px rgba(33, 128, 141, 0.4);
}
/* ============================================
   ROADMAP SECTION - Responsive with Info Button
   ============================================ */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: var(--space-20);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.roadmap-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  color: white;
  border-radius: 50%;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.roadmap-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.roadmap-step-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.roadmap-step-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Info button for mobile */
.roadmap-info-btn {
  display: none;
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-sm);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-info-btn:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Roadmap Modal */
.roadmap-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.roadmap-modal.active {
  display: flex;
}

.roadmap-modal__content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.roadmap-modal__close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-modal__close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.roadmap-modal__title {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  padding-right: var(--space-32);
}

.roadmap-modal__desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

/* Desktop: show all descriptions */
@media (min-width: 769px) {
  .roadmap-info-btn {
    display: none !important;
  }

  .roadmap-step-desc {
    display: block !important;
  }
}

/* Mobile: hide descriptions, show info button */
@media (max-width: 768px) {
  .roadmap-list {
    gap: var(--space-12);
  }

  .roadmap-item {
    flex-direction: column;
    padding: var(--space-16);
  }

  .roadmap-info-btn {
    display: inline-flex;
    align-self: flex-start;
    margin-top: var(--space-8);
  }

  .roadmap-step-desc {
    display: none;
  }

  .roadmap-modal__content {
    padding: var(--space-24);
    margin: var(--space-16);
  }
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .hero__info-banner {
    margin-bottom: var(--space-16);
  }

  .info-banner__content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-12) var(--space-16);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .form-row--phone {
    grid-template-columns: 110px 1fr !important;
    gap: var(--space-8) !important;
  }
}

/* Gallery Section for 2025 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-24);
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: var(--space-16);
  }
}

.gallery-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.gallery-item h4 {
  padding: var(--space-16);
  margin: 0;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-card-border-inner);
}

.gallery-item .strava-embed-placeholder {
  padding: var(--space-16);
}

/* Strava Blur/Reveal logic */
.strava-container {
  position: relative;
  min-height: 160px;
  background: rgba(var(--color-slate-900-rgb), 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.strava-container .strava-embed-placeholder {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-standard);
  pointer-events: none;
}

.strava-container.revealed .strava-embed-placeholder {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Effetto caricamento progressivo */
.strava-container {
  position: relative;
  min-height: 160px;
  background: rgba(var(--color-slate-900-rgb), 0.03);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dashboard Extras */
.form-switch {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  margin-bottom: var(--space-16);
}

/* Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

.modal-content {
  background-color: var(--color-surface);
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid var(--color-border);
  width: 80%;
  /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: var(--radius-lg);
  position: relative;
}

.close-button {
  color: var(--color-text-secondary);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  margin-top: 20px;
}

.modal-body p {
  white-space: pre-wrap;
  /* Preserve whitespace and line breaks */
}

/* Spam Toggle Switch */
.spam-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.spam-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.spam-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 24px;
}

.spam-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.spam-slider {
  background-color: var(--color-error);
}

/* Red for spam */
input:focus+.spam-slider {
  box-shadow: 0 0 1px var(--color-error);
}

input:checked+.spam-slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* ============================================
   HOMEPAGE UPDATE - INFO BANNER & CTA
   ============================================ */

/* Hero Info Banner */
.hero__info-banner {
  margin: 0 auto 24px;
  max-width: 600px;
}

.info-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.info-banner__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-banner__text {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.info-banner__text strong {
  color: #fff;
  font-weight: 600;
}

/* Hero CTA Container - Apple style unified layout */
.hero__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__cta-container .hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta-container .hero__actions-grid {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Edition Banner Notice */
.edition-banner-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.edition-banner-notice__icon {
  font-size: 14px;
}

.edition-banner-notice__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive CTA */
@media (max-width: 768px) {
  .hero__cta-container {
    margin-bottom: 24px;
  }

  .hero__cta-container .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-container .hero__actions a {
    width: 100%;
    max-width: 280px;
  }

  .info-banner__content {
    flex-direction: column;
    text-align: center;
    padding: 14px 18px;
  }

  .info-banner__text {
    font-size: 14px;
  }
}

/* ============================================
   ROADMAP RESPONSIVE WITH INFO MODAL
   ============================================ */

.roadmap {
  background: var(--color-surface);
}

.roadmap-container {
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-background);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.roadmap-step-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 16px;
}

.roadmap-info {
  display: none;
  /* Hidden on desktop, shown on mobile */
}

.roadmap-step-desc {
  display: block;
  /* Visible on desktop */
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Roadmap Modal */
.roadmap-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.roadmap-modal.active {
  display: flex;
}

.roadmap-modal .modal-content {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

.roadmap-modal .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.roadmap-modal .close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.roadmap-modal h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 20px;
}

.roadmap-modal p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Mobile Roadmap - hide descriptions, show info button */
@media (max-width: 768px) {
  .roadmap-list {
    gap: 12px;
  }

  .roadmap-item {
    flex-wrap: wrap;
    padding: 16px;
  }

  .roadmap-step-title {
    flex: 1;
    min-width: 70%;
  }

  .roadmap-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .roadmap-info:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
  }

  .roadmap-step-desc {
    display: none;
    /* Hidden on mobile */
  }

  .roadmap-modal .modal-content {
    padding: 24px;
    margin: 16px;
  }
}

/* Desktop - hide info buttons */
@media (min-width: 769px) {
  .roadmap-info {
    display: none !important;
  }
}

/* ============================================
   HOMEPAGE UPDATE - EDITION BANNER & CTA STYLES
   ============================================ */

/* Edition Banner Notice */
.edition-banner-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: linear-gradient(135deg, rgba(33, 128, 141, 0.9) 0%, rgba(19, 82, 89, 0.95) 100%);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-16);
  box-shadow: 0 4px 16px rgba(var(--color-teal-500-rgb), 0.3);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.edition-banner-notice__icon {
  font-size: var(--font-size-lg);
}

.edition-banner-notice__text {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.edition-banner-notice__text strong {
  font-weight: var(--font-weight-bold);
}

/* Hero Info Banner — compact single-row frosted glass badge */
.hero__info-banner {
  display: inline-block;
  margin-bottom: 24px;
}

.info-banner__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  white-space: nowrap;
}

.info-banner__icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.info-banner__text {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.info-banner__text strong {
  font-weight: 700;
  color: #ffffff;
}

/* CTA Container - unified button layout */
.hero__cta-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero__cta-container .hero__actions,
.hero__cta-container .hero__actions-grid {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.hero__cta-container .btn {
  min-width: 140px;
  flex: 1;
  max-width: 200px;
}

/* Responsive CTA */
@media (max-width: 480px) {

  .hero__cta-container .hero__actions,
  .hero__cta-container .hero__actions-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta-container .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   ROADMAP RESPONSIVE STYLES
   ============================================ */

/* Roadmap Section */
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-16);
}

.roadmap-item {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.roadmap-step-title {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.roadmap-step-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: var(--space-12) 0 0 0;
  font-size: var(--font-size-base);
}

/* Info button style */
.roadmap-info {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-info:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* DESKTOP: Show descriptions by default */
@media (min-width: 769px) {
  .roadmap-step-desc {
    display: block !important;
    opacity: 1;
  }

  .roadmap-info {
    display: none;
  }
}

/* MOBILE: Hide descriptions, show info button */
@media (max-width: 768px) {
  .roadmap-step-desc {
    display: none;
  }

  .roadmap-item .roadmap-info {
    display: block;
  }
}

/* Roadmap Modal */
.roadmap-modal .modal-content {
  max-width: 500px;
}

.roadmap-modal h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.roadmap-modal p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   MINIMALIST APPLE-STYLE UI ENHANCEMENTS
   ============================================ */
.apple-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  padding: 20px;
  text-align: center;
}

.apple-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  background: #ffffff;
  animation: fadeIn 0.8s ease-out;
}

.apple-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.apple-input-group {
  margin-bottom: 24px;
  text-align: left;
}

.apple-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.apple-input {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  background: #f5f5f7;
  border: none;
  border-radius: 12px;
  color: #1d1d1f;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
  outline: none;
}

.btn--apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 980px;
  background: #0071e3;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn--apple-black {
  background: #000000;
}

.btn--apple:hover {
  opacity: 0.9;
  transform: scale(0.99);
}

/* Hero Actions - Combined Layout for Donate, Sponsorship, Next Edition */
.hero__actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-32);
}

.hero__actions-main {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions-secondary {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Info Banner - Edition Alert */
.hero__edition-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  background: linear-gradient(135deg, rgba(168, 75, 47, 0.15) 0%, rgba(192, 21, 47, 0.1) 100%);
  border: 1px solid rgba(var(--color-warning-rgb), 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-12) var(--space-24);
  margin-bottom: var(--space-24);
  max-width: 600px;
}

.hero__edition-banner-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__edition-banner-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.hero__edition-banner-cta {
  flex-shrink: 0;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}

.hero__edition-banner-cta:hover {
  color: var(--color-primary-hover);
}

/* Roadmap - Responsive Info Button */
.roadmap {
  background: var(--color-surface);
}

.roadmap-container {
  position: relative;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.roadmap-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-16);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.roadmap-step-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  flex: 1;
}

.roadmap-info {
  flex-shrink: 0;
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: rgba(var(--color-teal-500-rgb), 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-info:hover {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.roadmap-step-desc {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  display: none;
  /* Hidden by default on mobile */
}

.roadmap-step-desc.visible {
  display: block;
}

/* Desktop: Show descriptions by default */
@media (min-width: 769px) {
  .roadmap-step-desc {
    display: block;
  }

  .roadmap-info {
    display: none;
    /* Hide info button on desktop */
  }
}

/* Mobile: Hide descriptions, show info button */
@media (max-width: 768px) {
  .hero__edition-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-16);
    margin: 0 var(--space-16) var(--space-24);
  }

  .roadmap-item {
    padding: var(--space-12);
  }

  .roadmap-item-header {
    flex-wrap: wrap;
  }

  .roadmap-step-title {
    font-size: var(--font-size-md);
  }
}

/* Roadmap Modal */
.roadmap-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.roadmap-modal.active {
  display: flex;
}

.roadmap-modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-modal-close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-modal-close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.roadmap-modal-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  padding-right: var(--space-32);
}

.roadmap-modal-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

.hero__actions--2027 {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: 40px;
}

.fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sponsor Section Styles */
.sponsors {
  padding: var(--space-32) 0;
  background: var(--color-surface);
}

.sponsors__title {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sponsors__grid {
  display: grid;
  gap: var(--space-24);
  /* Layout fluido: si adatta automaticamente allo schermo */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 480px) {
  .sponsors__grid {
    /* Su smartphone molto piccoli, una sola colonna per massima leggibilità */
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

.sponsor-card {
  /* Sfondo blu scuro per le card */
  background: var(--color-slate-900);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
}

.sponsor-card__logo-container {
  background: #ffffff;
  /* Sfondo bianco puro per i loghi */
  padding: var(--space-12);
  border-radius: var(--radius-md);
  width: 100%;
  height: 120px;
  /* Altezza fissa per uniformità */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-16);
}

/* Modal Sponsor specifico */
.sponsor-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sponsor-modal.active {
  display: flex;
}

.sponsor-modal__content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 30px;
  position: relative;
  text-align: center;
}

.sponsor-modal__logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.sponsor-modal__address {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 15px 0;
  font-style: italic;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sponsor-card__logo {
  max-width: 100%;
  /* Il logo si adatta al contenitore */
  max-height: 100%;
  /* Il logo si adatta al contenitore */
  object-fit: contain;
}

.sponsor-card__name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-20);
  /* Testo chiaro su card blu scuro */
  color: var(--color-cream-100);
}

.sponsor-card__badge {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  background: var(--color-primary);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

/* Stile Mappa Sponsor */
#sponsorMap {
  width: 100%;
  height: 400px;
  margin-top: var(--space-32);
  border-radius: var(--radius-xl, 20px);
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

@media (max-width: 768px) {
  #sponsorMap {
    height: 300px;
    margin-top: var(--space-16);
  }
}

@media (max-width: 480px) {
  #sponsorMap {
    height: 250px;
    /* Riduce leggermente l'altezza su schermi mini */
    border-width: 2px;
  }
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--shadow-lg);
}

.custom-leaflet-popup .leaflet-popup-tip {
  background: white;
}

.map-popup a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.nation-dot {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  /* Usa il blu/teal del brand o #0066ff */
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  /* Nasconde eventuali testi/numeri */
}

.nation-dot:hover {
  transform: scale(1.2);
  background: var(--color-slate-900);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ROADMAP SECTION STYLES
   ============================================ */
.roadmap {
  background: var(--color-surface);
}

.roadmap-container {
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.roadmap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-20) var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.roadmap-step-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  font-size: var(--font-size-lg);
}

.roadmap-step-desc {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-top: var(--space-8);
}

/* Info Button - Desktop always visible */
.roadmap-info {
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  flex-shrink: 0;
  margin-left: var(--space-16);
}

.roadmap-info:hover {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
}

/* Mobile: hide descriptions, show only titles + info button */
@media (max-width: 768px) {
  .roadmap-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
    padding: var(--space-16);
  }

  .roadmap-step-desc {
    display: none;
  }

  .roadmap-info {
    display: inline-flex;
    margin-left: 0;
  }
}

/* Desktop: show descriptions */
@media (min-width: 769px) {
  .roadmap-info {
    display: none;
  }

  .roadmap-step-desc {
    display: block;
  }
}

/* Roadmap Modal */
.roadmap-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.roadmap-modal.active {
  display: flex;
}

.roadmap-modal .modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-modal .close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-standard);
}

.roadmap-modal .close:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.roadmap-modal h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  padding-right: var(--space-32);
}

.roadmap-modal p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   HERO CTA CONTAINER - Apple Style 2+1 Layout
   ============================================ */
.hero__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  margin: var(--space-32) 0;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Row layout for buttons: 2 top + 1 bottom centered */
.hero__cta-row {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  width: 100%;
}

.hero__cta-row--single {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-12);
}

/* Ensure buttons have consistent width in row */
.hero__cta-row .btn {
  min-width: 160px;
  flex: 1;
  max-width: 200px;
}

/* Full width for single button */
.hero__cta-row--single .btn {
  min-width: 200px;
  max-width: 280px;
}

/* Desktop: side by side buttons */
@media (min-width: 640px) {
  .hero__cta-row {
    gap: var(--space-20);
  }

  .hero__cta-row .btn {
    min-width: 180px;
  }
}

/* Mobile: stacked vertically */
@media (max-width: 480px) {
  .hero__cta-row {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta-row .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero__cta-row--single .btn {
    width: 100%;
    max-width: 280px;
  }
}

.hero__actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions-grid {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   INFO BANNER STYLES
   ============================================ */
.hero__info-banner,
.edition-banner-notice {
  margin-bottom: var(--space-20);
}

.info-banner__content,
.edition-banner-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-20);
  background: linear-gradient(135deg, rgba(var(--color-amber-500-rgb), 0.15) 0%, rgba(var(--color-orange-500-rgb), 0.1) 100%);
  border: 1px solid rgba(var(--color-amber-500-rgb), 0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.info-banner__icon,
.edition-banner-notice__icon {
  font-size: 1.25rem;
}

.info-banner__text,
.edition-banner-notice__text {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.info-banner__text strong,
.edition-banner-notice__text strong {
  color: var(--color-primary);
}

/* --- Dashboard WebApp Styles --- */
.dashboard-app {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

/* Overrides per il testo della dashboard su sfondi chiari */
.dashboard-app h1,
.dashboard-app h2,
.dashboard-app h3,
.dashboard-container h1,
.dashboard-container h2,
.dashboard-container h3,
.dashboard-container h4,
.dashboard-container h5 {
  color: var(--color-slate-900);
}

.dashboard-app .form-control,
.dashboard-container .form-control {
  color: var(--color-slate-900);
  /* Assicuriamoci che il testo sia visibile su sfondo chiaro */
}

.dashboard-app .form-control::placeholder,
.dashboard-container .form-control::placeholder {
  color: var(--color-slate-500);
  opacity: 0.7;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--color-slate-900);
  color: white;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
}

.dashboard-main {
  flex: 1;
  padding: var(--space-32);
  overflow-y: auto;
}

.app-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-24);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-24);
}

.sponsor-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-20);
}

.input-group-modern {
  margin-bottom: 20px;
}

.input-group-modern label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input-modern {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e4e8;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.input-modern:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Stile per i marker Leaflet blu chiaro */
.leaflet-marker-icon {
  /* Questo filtro trasforma l'icona di default (blu) in un blu più chiaro/ciano */
  filter: hue-rotate(160deg) brightness(1.2);
}

/* ============================================
   LANGUAGE SELECTION MODAL
   ============================================ */
.lang-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.lang-modal.active {
  display: flex;
  opacity: 1;
}

.lang-modal__content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
}



.lang-modal.active .lang-modal__content {
  transform: scale(1);
}

.lang-modal__logo svg,
.lang-modal__logo img {
  width: 100%;
  height: auto;
}

.lang-modal__logo {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-24);
}

.lang-modal__logo svg {
  width: 100%;
  height: auto;
  max-height: 60px;
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================ */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-lg);
  z-index: 5001;
  display: none;
  flex-direction: column;
  text-align: center;
  gap: var(--space-16);
  width: 90%;
  max-width: 550px;
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
}

@media (min-width: 768px) {
  .cookie-banner {
    padding: var(--space-48);
  }

  .cookie-banner__actions {
    justify-content: center;
  }
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.cookie-banner__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__consent-check {
  margin: var(--space-16) 0;
  padding: var(--space-12);
  background: rgba(var(--color-slate-900-rgb), 0.05);
  border-radius: var(--radius-base);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.cookie-banner__consent-check.error {
  border-color: var(--color-error);
  background: rgba(var(--color-error-rgb), 0.08);
  animation: pulse-error 0.5s ease-in-out;
}

@keyframes pulse-error {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* Cookie Settings Modal Specifics */
.cookie-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-setting-item:last-child {
  border-bottom: none;
}

.cookie-setting-info {
  padding-right: var(--space-24);
}

.cookie-setting-name {
  display: block;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.cookie-setting-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

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

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

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--color-secondary);
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider-round {
  background-color: var(--color-primary);
}

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

input:disabled+.slider-round {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   HOMEPAGE UPDATE STYLES
   ============================================ */

/* Hero Info Banner */
.hero__info-banner {
  display: inline-block;
  max-width: fit-content;
  margin: 0 auto var(--space-24);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
}

.info-banner__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-banner__icon {
  display: none;
  /* Nascondi se presente nell'HTML */
}

.info-banner__text {
  color: var(--color-white);
  font-size: 1.12rem !important;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.info-banner__link {
  color: #fbbf24;
  /* Colore oro/ambra per risaltare */
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.info-banner__link:hover {
  color: #f59e0b;
  text-decoration: underline;
}

/* CTA Container - Unified button layout */
.hero__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.hero__cta-container .hero__actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta-container .hero__actions--primary .btn {
  min-width: 160px;
}

.hero__cta-container .hero__actions--secondary .btn {
  min-width: 200px;
  margin-top: var(--space-8);
}

/* Responsive CTA */
@media (min-width: 640px) {
  .hero__cta-container {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-24);
  }

  .hero__cta-container .hero__actions--secondary {
    margin-top: 0;
  }

  .hero__cta-container .hero__actions {
    gap: var(--space-20);
  }
}

/* ============================================
   ROADMAP RESPONSIVE STYLES
   ============================================ */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Desktop: show full content */
@media (min-width: 769px) {
  .roadmap-step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
  }

  .roadmap-step-desc {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    opacity: 1;
  }

  .roadmap-info {
    display: none;
    /* Hidden on desktop */
  }
}

/* Mobile: show only title + info button */
@media (max-width: 768px) {
  .roadmap-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .roadmap-step-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    flex: 1;
  }

  .roadmap-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-12);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
  }

  .roadmap-info:hover {
    background: var(--color-primary-hover);
    transform: scale(1.05);
  }

  .roadmap-step-desc {
    display: none;
    /* Hidden on mobile */
  }
}

/* Roadmap Modal */
.roadmap-modal .modal-content {
  max-width: 500px;
  padding: var(--space-32);
}

#roadmapModalTitle {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

#roadmapModalDesc {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Donation Stats Dashboard */
.donation-preview {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  margin-bottom: var(--space-32);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.donation-stats__total {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.donation-split-badge {
  font-size: var(--font-size-xs);
  background: rgba(var(--color-teal-500-rgb), 0.1);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-20);
  display: block;
  line-height: 1.4;
}

/* ============================================
   ALERT BANNER - EDITION STATUS
   ============================================ */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-24);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-600) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-24);
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  box-shadow: 0 4px 12px rgba(var(--color-teal-500-rgb), 0.3);
}

.alert-banner__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.alert-banner__text {
  text-align: center;
}

.alert-banner__text strong {
  display: block;
  font-size: var(--font-size-base);
  margin-bottom: 2px;
}

.alert-banner__text span {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .alert-banner {
    flex-direction: column;
    padding: var(--space-12) var(--space-16);
    gap: var(--space-8);
  }

  .alert-banner__text {
    text-align: center;
  }
}

/* ============================================
   ROADMAP SECTION - RESPONSIVE
   ============================================ */
.roadmap {
  background: var(--color-surface);
}

.roadmap h2 {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-primary);
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-16);
}

.roadmap-item {
  background: var(--color-background);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
}

.roadmap-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.roadmap-step-title {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.roadmap-step-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
}

/* Desktop: mostra descrizioni sempre */
@media (min-width: 769px) {
  .roadmap-item {
    display: flex;
    flex-direction: column;
  }

  .roadmap-step-desc {
    display: block;
  }

  .roadmap-info {
    display: none;
  }
}

/* Mobile: nascondi descrizioni, mostra bottone info */
@media (max-width: 768px) {
  .roadmap-list {
    gap: var(--space-12);
  }

  .roadmap-item {
    padding: var(--space-16);
  }

  .roadmap-step-desc {
    display: none;
  }

  .roadmap-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-12);
    font-size: var(--font-size-xs);
    background: var(--color-secondary);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
  }

  .roadmap-info:hover {
    background: var(--color-secondary-hover);
    color: var(--color-primary);
  }
}

/* Roadmap Modal */
.roadmap-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.roadmap-modal.active {
  display: flex;
}

.roadmap-modal .modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-modal h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  padding-right: var(--space-32);
}

.roadmap-modal p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   HERO ACTIONS - UNIFIED BUTTONS LAYOUT
   Apple-style minimalista e pulito
   ============================================ */
.hero__actions-unified {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.hero__actions-unified .btn {
  min-width: 160px;
}

/* Desktop: layout orizzontale uniforme */
@media (min-width: 640px) {
  .hero__actions-unified {
    gap: var(--space-20);
  }

  .hero__actions-unified .btn {
    min-width: 180px;
  }
}

/* Mobile: stack verticale */
@media (max-width: 480px) {
  .hero__actions-unified {
    flex-direction: column;
    gap: var(--space-12);
  }

  .hero__actions-unified .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Priorità visiva: CTA principale (Dona) più prominente */
.hero__actions-unified .btn--primary {
  position: relative;
  z-index: 2;
}

.hero__actions-unified .btn--outline {
  position: relative;
}

.hero__actions-unified .btn--apply {
  margin-top: 0;
}

.chart-container {
  margin-top: var(--space-16);
}

.chart-bar-bg {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.chart-bar-sponsors {
  background: var(--color-primary);
  height: 100%;
  transition: width 1s ease-out;
}

.chart-bar-individuals {
  background: var(--color-indigo-500);
  height: 100%;
  transition: width 1s ease-out;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* ============================================
   HERO CTA BUTTONS — Site-cohesive Style
   ============================================ */

/* Register Now / Registrati Ora — elegant pill, matches site teal palette */
.btn-apple-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  background: transparent;
  color: #ffffff !important;
  font-family: var(--font-family-base, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-apple-register:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #ffffff !important;
}

.btn-apple-register:active {
  transform: scale(0.97);
  background-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   HERO CTA CONTAINER & RESPONSIVE LAYOUT
   ============================================ */
.hero__cta-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px auto;
  width: 100%;
}

/* Donate button: solid teal gradient, pill-shaped for hero */
.hero__cta-container .btn--primary {
  background: linear-gradient(135deg, #21808d 0%, #134252 100%);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 4px 20px rgba(33, 128, 141, 0.45);
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 160px;
  text-align: center;
}

.hero__cta-container .btn--primary:hover {
  background: linear-gradient(135deg, #2b9cac 0%, #1a5268 100%);
  box-shadow: 0 8px 28px rgba(33, 128, 141, 0.6);
  transform: translateY(-2px) scale(1.03);
}

/* Sponsorship button: frosted glass outline for hero */
.hero__cta-container .btn--outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 160px;
  text-align: center;
}

.hero__cta-container .btn--outline::before {
  display: none;
  /* Remove the pseudo-element slide animation in hero context */
}

.hero__cta-container .btn--outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #ffffff !important;
}

@media (max-width: 576px) {
  .hero__cta-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 24px auto !important;
  }

  .hero__cta-container .btn-apple-register {
    display: none !important;
  }

  .hero__cta-container .btn {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    font-size: 1.12rem !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .info-banner__content {
    white-space: normal !important;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .info-banner__text {
    white-space: normal !important;
    font-size: 1.02rem !important;
    text-align: center;
  }
}

.hero__cta-container .btn,
.btn-apple-register {
  white-space: nowrap !important;
}

/* ============================================
   RE-DESIGNED ARRIVAL ROADMAP (Apple 2x2 Style)
   ============================================ */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Center the third card in the 2-column grid row */
.roadmap-timeline .roadmap-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 484px;
}

@media (max-width: 768px) {
  .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
  }

  .roadmap-timeline .roadmap-card:last-child {
    max-width: 100%;
  }
}

.roadmap-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-card.fade-in-up {
  animation: none !important;
  opacity: 1;
  transform: translateY(0);
}

/* Stagger scroll animation delays for cards */
.roadmap-card:nth-child(1) {
  transition-delay: 0.1s;
}

.roadmap-card:nth-child(2) {
  transition-delay: 0.2s;
}

.roadmap-card:nth-child(3) {
  transition-delay: 0.3s;
}

.roadmap-card:nth-child(4) {
  transition-delay: 0.4s;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
  border-color: rgba(33, 128, 141, 0.2);
  transition-delay: 0s !important;
}

.roadmap-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.roadmap-card__number {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.90rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Individual premium themed color schemes for each card (matching icons and numbers) */
.roadmap-card:nth-child(1) .roadmap-card__icon,
.roadmap-card:nth-child(1) .roadmap-card__number {
  background: rgba(33, 128, 141, 0.1);
  color: #21808d;
}

.roadmap-card:nth-child(2) .roadmap-card__icon,
.roadmap-card:nth-child(2) .roadmap-card__number {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.roadmap-card:nth-child(3) .roadmap-card__icon,
.roadmap-card:nth-child(3) .roadmap-card__number {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.roadmap-card:nth-child(4) .roadmap-card__icon,
.roadmap-card:nth-child(4) .roadmap-card__number {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

/* Dynamic Hover upscale */
.roadmap-card:hover .roadmap-card__icon,
.roadmap-card:hover .roadmap-card__number {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Dynamic Hover background highlight */
.roadmap-card:nth-child(1):hover .roadmap-card__icon,
.roadmap-card:nth-child(1):hover .roadmap-card__number {
  background: rgba(33, 128, 141, 0.2);
}

.roadmap-card:nth-child(2):hover .roadmap-card__icon,
.roadmap-card:nth-child(2):hover .roadmap-card__number {
  background: rgba(231, 76, 60, 0.2);
}

.roadmap-card:nth-child(3):hover .roadmap-card__icon,
.roadmap-card:nth-child(3):hover .roadmap-card__number {
  background: rgba(155, 89, 182, 0.2);
}

.roadmap-card:nth-child(4):hover .roadmap-card__icon,
.roadmap-card:nth-child(4):hover .roadmap-card__number {
  background: rgba(243, 156, 18, 0.2);
}

.roadmap-card__title {
  margin: 0 0 12px 0;
  color: #1d1d1f;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.roadmap-card__desc {
  margin: 0;
  color: #515154;
  /* Apple secondary text gray */
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================
   RESPONSIVE ROADMAP COLLAPSE LOGIC
   ============================================ */
.roadmap-card__toggle {
  display: none !important;
}

@media (max-width: 768px) {
  .roadmap-card__desc {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
  }
}

.hero__info-banner {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Frosted glass pill tab styled similarly to the buttons */
.info-banner__content {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: none !important;
}

.info-banner__content:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.info-banner__icon {
  display: none !important;
}

/* ============================================
   STAGE SELECTOR BUTTON
   ============================================ */
.select-stage-btn {
  text-align: left !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
}

.select-stage-btn.has-value {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.select-stage-btn:hover {
  border-color: var(--color-primary);
  background: rgba(13, 148, 136, 0.04);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.select-stage-btn svg.chevron-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-text-secondary);
}

.select-stage-btn:hover svg.chevron-icon {
  color: var(--color-primary);
  transform: translateY(2px);
}

/* Duplicate block removed */

/* ============================================
   REGISTRATION STATUS PANEL
   ============================================ */
.reg-status-panel {
  display: none;
  background: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--color-border);
  margin: 0 auto;
  max-width: 640px;
}

.reg-status-panel.visible {
  display: block;
  animation: slideUpFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reg-status-panel__header {
  background: linear-gradient(135deg, #0d9488 0%, #134252 100%);
  padding: 28px 32px;
}

.reg-status-panel__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 24px;
}

.reg-status-panel__name {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.reg-status-panel__tagline {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.reg-status-panel__body {
  padding: 28px 32px;
}

.reg-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.reg-status-item {
  background: var(--color-background);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
}

.reg-status-item__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}

.reg-status-item__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.reg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

.reg-status-badge--pending {
  background: #fef3c7;
  color: #d97706;
}

.reg-status-badge--approved {
  background: #dcfce7;
  color: #16a34a;
}

.reg-status-badge--rejected {
  background: #fee2e2;
  color: #dc2626;
}

.reg-status-badge--waitlist {
  background: #eff6ff;
  color: #2563eb;
}

.reg-status-panel__footer {
  padding: 0 32px 28px;
}

.reg-status-panel__contact {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.reg-status-panel__contact a {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 576px) {
  .stage-card {
    flex-wrap: wrap;
  }

  .stage-card__select-btn {
    width: 100%;
    text-align: center;
  }

  .reg-status-grid {
    grid-template-columns: 1fr;
  }

  .reg-status-panel__header,
  .reg-status-panel__body,
  .reg-status-panel__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}




.select-stage-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.select-stage-btn .chevron {
  border: solid var(--color-text-secondary);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.select-stage-btn:hover .chevron {
  border-color: var(--color-primary);
}

/* ============================================================
   REGISTER SECTION — white title & subtitle
   ============================================================ */
.register h2,
.register__content > h2 {
  color: #ffffff !important;
}
.register__content > p {
  color: rgba(255,255,255,0.82) !important;
}

/* ============================================================
   STAGE SELECTION MODAL — full redesign
   ============================================================ */
.stage-modal {
  display: flex;
  position: fixed;
  z-index: 20000;
  inset: 0;
  background: rgba(10, 20, 30, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
              visibility 0.35s cubic-bezier(0.16,1,0.3,1);
}

@media (min-width: 640px) {
  .stage-modal {
    align-items: center;
    padding: 20px;
  }
}

.stage-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stage-modal__content {
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  transform: translateY(60px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

@media (min-width: 640px) {
  .stage-modal__content {
    border-radius: 24px;
    max-height: 82vh;
    max-width: 800px; /* Wider modal for desktop table layout */
    transform: translateY(0) scale(0.95);
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
  }
}

.stage-modal.active .stage-modal__content {
  transform: translateY(0) scale(1);
}

/* Header gradient */
.stage-modal__header {
  background: linear-gradient(135deg, #21808d 0%, #135252 100%);
  padding: 28px 28px 20px;
  position: relative;
  flex-shrink: 0;
}

.stage-modal__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stage-modal__icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.stage-modal__title {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stage-modal__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
}

.stage-modal__close {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.stage-modal__close:hover {
  background: rgba(255,255,255,0.32);
}

/* Search */
.stage-modal__search-wrapper {
  padding: 16px 20px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef3;
  flex-shrink: 0;
  position: relative;
}

.stage-modal__search-icon {
  position: absolute;
  left: 36px;
  top: 27px;
  display: flex;
  align-items: center;
  color: #94a3b8;
  pointer-events: none;
}

.stage-modal__search {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 16px 11px 40px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stage-modal__search::placeholder { color: #94a3b8; }

.stage-modal__search:focus {
  border-color: #21808d;
  box-shadow: 0 0 0 3px rgba(33,128,141,0.12);
}

/* Stage count label */
.stage-modal__count {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
  padding-left: 2px;
}

/* Scrollable list */
.stage-modal__list {
  overflow-y: auto;
  flex: 1;
  padding: 16px;
  display: block;
}

.stage-modal__list::-webkit-scrollbar { width: 6px; }
.stage-modal__list::-webkit-scrollbar-track { background: transparent; }
.stage-modal__list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Stage card */
.stage-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e9eef3;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: stageCardIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes stageCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stage-card:hover {
  border-color: #21808d;
  box-shadow: 0 4px 20px rgba(33,128,141,0.12);
  transform: translateY(-2px);
}

/* Card top area */
.stage-card__body {
  padding: 14px 16px 10px;
  flex: 1;
}

.stage-card__badges {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.stage-card__number-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #21808d, #135252);
  color: #ffffff;
}

.stage-card__distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.stage-card__route {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.4;
}

.stage-card__route-from,
.stage-card__route-to {
  color: #1e293b;
}

.stage-card__route-arrow {
  display: inline-flex;
  align-items: center;
  color: #21808d;
  flex-shrink: 0;
}

/* Card actions row */
.stage-card__actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.stage-card__info-btn {
  flex: 0 0 auto;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stage-card__info-btn:hover {
  background: rgba(33,128,141,0.1);
  color: #21808d;
}

.stage-card__info-btn.active {
  background: rgba(33,128,141,0.12);
  color: #21808d;
}

.stage-card__select-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #21808d 0%, #135252 100%);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stage-card__select-btn:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* Info / description drawer */
.stage-card__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1), padding 0.2s ease;
  background: #f8fafc;
  border-top: 1px solid #e9eef3;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  padding: 0 16px;
}

.stage-card__desc.open {
  max-height: 200px;
  padding: 12px 16px;
}

/* Empty / loading state */
.stage-modal__state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.stage-modal__state svg {
  display: block;
  margin: 0 auto 12px;
  opacity: 0.35;
}

/* Select-stage trigger button */
.select-stage-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.select-stage-btn .chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.5;
}

@media (max-width: 576px) {
  .stage-modal__list {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .stage-modal__title { font-size: 1.2rem; }
  .stage-card__actions { flex-direction: column; }
  .stage-card__info-btn { justify-content: center; }
}

/* ============================================================
   DAILY UPDATES SECTION
   ============================================================ */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.update-timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .update-timeline-item {
    flex-direction: column;
    gap: 12px;
  }
}

.update-item__badge {
  background: linear-gradient(135deg, #21808d 0%, #135252 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(33,128,141,0.18);
  flex-shrink: 0;
}

.update-item__content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row;
  width: 100%;
}

@media (max-width: 576px) {
  .update-item__content-card {
    flex-direction: column;
  }
}

.update-item__image-wrapper {
  width: 180px;
  min-width: 180px;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .update-item__image-wrapper {
    width: 100%;
    height: 180px;
  }
}

.update-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-item__details {
  padding: 20px;
  flex: 1;
}

.update-item__date {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.update-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.update-item__desc {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Interactive Hero Play Video Badge/Button */
button.edition-badge--interactive {
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
  padding: var(--space-6) var(--space-16);
  font-size: var(--font-size-md);
  letter-spacing: 1px;
}

button.edition-badge--interactive:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--color-teal-500-rgb), 0.6);
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, var(--color-teal-600) 0%, var(--color-primary) 100%);
}

button.edition-badge--interactive:active {
  transform: scale(0.98);
}

button.edition-badge--interactive .play-icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Event Video Player Component */
.about__video-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-color: #000;
}

.about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.about__video-container.playing .about__video {
  filter: grayscale(0%);
}

.about__video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.about__video-play-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  margin-left: 4px; /* visually center play triangle */
  transition: transform 0.3s ease;
}

.about__video-play-btn:hover {
  background: rgba(13, 148, 136, 0.85);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.6);
}

.about__video-play-btn:hover svg {
  transform: scale(1.1);
}

.about__video-container.playing .about__video-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Custom WebVTT Subtitles Styling */
video::cue {
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 10px;
}

/* Responsive adjustment for video container */
@media (max-width: 768px) {
  .about__video-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: var(--space-24) auto 0;
  }
  .about__video-play-btn {
    width: 60px;
    height: 60px;
  }
  .about__video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
  }
}

/* Stage selection table style */
.stage-select-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.stage-select-table th {
  background-color: #f8fafc;
  padding: 14px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.stage-select-table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

.stage-select-table tr.stage-table-row:hover td {
  background-color: #f8fafc;
}

.stage-table-desc-row td {
  padding: 0;
}

.stage-table-desc-row .stage-card__desc {
  border-top: none;
}

/* Widescreen adjustments & mobile card conversion */
@media (max-width: 640px) {
  .stage-select-table {
    border: none !important;
  }
  .stage-select-table thead {
    display: none !important;
  }
  .stage-select-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .stage-select-table tr.stage-table-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: 
      "badge distance"
      "route route"
      "action action" !important;
    gap: 12px !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
    margin: 0 !important;
  }
  .stage-select-table tr.stage-table-row td {
    border: none !important;
    padding: 0 !important;
    background: none !important;
  }
  
  .stage-select-table tr.stage-table-row td:nth-child(1) {
    grid-area: badge !important;
    display: flex !important;
    align-items: center !important;
  }
  .stage-select-table tr.stage-table-row td:nth-child(2) {
    grid-area: route !important;
    font-size: 0.95rem !important;
  }
  .stage-select-table tr.stage-table-row td:nth-child(3) {
    grid-area: distance !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  .stage-select-table tr.stage-table-row td:nth-child(4) {
    display: none !important;
  }
  .stage-select-table tr.stage-table-row td:nth-child(5) {
    grid-area: action !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 12px !important;
    margin-top: 4px !important;
  }
  .stage-select-table tr.stage-table-row td:nth-child(5) .stage-card__select-btn {
    flex: 1 !important;
    margin-left: 8px !important;
  }

  .stage-table-desc-row {
    display: block !important;
    margin-top: -12px !important;
    margin-bottom: 4px !important;
  }
  .stage-table-desc-row td {
    display: block !important;
    width: 100% !important;
  }
  .stage-table-desc-row .stage-card__desc {
    border-radius: 0 0 16px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-top: none !important;
    margin: 0 !important;
  }
}

/* Custom switch toggle styles for dashboard stages */
.switch-toggle input:checked + .switch-slider {
  background-color: #21808d !important;
}

.switch-toggle input:checked + .switch-slider .switch-knob {
  transform: translateX(20px) !important;
}

/* end of stylesheet */
