/* ==========================================================================
   Blugea Website - Bundle CSS
   Variables + Fonts + Main Styles + Responsive
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  /* Colors - Primary */
  --color-primary: #1a1a2e;
  --color-primary-light: #252540;
  --color-primary-dark: #0f0f1a;

  /* Colors - Secondary */
  --color-secondary: #4361ee;
  --color-secondary-light: #5a7cf7;
  --color-secondary-dark: #3451d4;

  /* Colors - Accent */
  --color-accent: #7209b7;
  --color-accent-light: #9b2ed6;
  --color-accent-dark: #5a0790;

  /* Colors - Status */
  --color-success: #06d6a0;
  --color-warning: #ffd166;
  --color-error: #ef476f;

  /* Colors - Neutral */
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #868e96;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-black: #000000;

  /* Text Colors */
  --text-light: #ffffff;
  --text-dark: #2d3436;
  --text-muted: #6c757d;

  /* Background Colors */
  --bg-dark: var(--color-primary);
  --bg-light: var(--color-gray-50);
  --bg-white: var(--color-white);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-hero: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  --gradient-cta: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing */
  --space-0: 0;
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* Dark Mode Variables (optional, for future use) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Can override variables here for dark mode */
  }
}

/* ==========================================================================
   Self-Hosted Fonts
   ========================================================================== */

/* Inter - v20 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Open Sans - v44 */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: clip;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-light { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: #1a1a1a;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: #111111;
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-img {
  height: 45px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-light);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-light);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: var(--space-4);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-gray-100);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.dropdown-icon svg,
.dropdown-icon i {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  font-size: 18px;
}

.dropdown-content {
  flex: 1;
}

.dropdown-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}

.dropdown-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-snug);
}

/* Dropdown Wide - per menu con molti elementi */
.dropdown-wide {
  min-width: 580px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.dropdown-wide .dropdown-item {
  padding: var(--space-2) var(--space-3);
}

.dropdown-wide .dropdown-icon {
  width: 36px;
  height: 36px;
}

.dropdown-wide .dropdown-icon svg,
.dropdown-wide .dropdown-icon i {
  width: 18px;
  height: 18px;
  font-size: 16px;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--text-light);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--text-light);
}

.btn-dark:hover {
  background: var(--color-primary-dark);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  padding: var(--space-3);
}

/* ==========================================================================
   Hero Section - STILE SPORTIGO
   ========================================================================== */

.hero-sportigo {
  background: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.8)), url('../images/sfondo_lucid.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: clip;
}

/* Texture pattern Sportigo - cerchi concentrici */
.hero-sportigo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 11px, transparent 11px),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px, transparent 21px),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 30px, rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 31px, transparent 31px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-sportigo-inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
}

.hero-sportigo-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-sportigo-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  font-style: italic;
}

.hero-sportigo-title span {
  color: #ffffff;
}

/* Tags nell'hero - compatti */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
a.hero-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-sportigo-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

.highlight-box {
  display: inline-block;
  background: #22c55e;
  color: #000;
  padding: 2px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.hero-sportigo-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-sportigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-sportigo-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-sportigo-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sportigo-green {
  background: #22c55e;
  color: #000;
  border: 2px solid #22c55e;
}

.btn-sportigo-green:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-sportigo-free {
  background: transparent;
  color: #4361ee;
  border: 2px solid #4361ee;
  display: none; /* Nascosto su desktop */
}

.btn-sportigo-free:hover {
  background: #4361ee;
  color: #fff;
  border-color: #4361ee;
}

/* Mostra solo su mobile */
@media (max-width: 768px) {
  .btn-sportigo-free {
    display: inline-flex;
  }
}

/* Loghi clienti nell'hero - CAROUSEL */
.hero-clients {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-clients-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hero-clients-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logos-scroll 25s linear infinite;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hero-clients-logos:hover {
  animation-play-state: paused;
}

.hero-clients-logos img {
  height: 45px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.hero-clients-logos img:hover {
  transform: scale(1.05);
}

@keyframes logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Box messaggio valore */
.home-value-msg {
  padding: 60px 0;
  background: #fff;
}
.home-value-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: #f8f9fa;
  border: 2px dashed #d4a017;
  border-radius: 20px;
  padding: 40px 48px;
}
.home-value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-value-icon i {
  font-size: 28px;
  color: #d4a017;
}
.home-value-box p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}
.home-value-box p:last-child {
  margin-bottom: 0;
}
.home-value-main {
  font-size: 20px !important;
  color: #1a1a2e !important;
  line-height: 1.5 !important;
}
.home-value-idea {
  font-size: 17px !important;
  color: #444 !important;
}
.home-value-box strong {
  color: #1a1a2e;
}
@media (max-width: 768px) {
  .home-value-box {
    padding: 28px 24px;
  }
  .home-value-main {
    font-size: 17px !important;
  }
}

/* Screenshot nell'hero - Cornice Desktop */
.hero-screenshot {
  position: relative;
  margin-top: 20px;
  padding-bottom: 0;
}

.desktop-frame {
  max-width: 900px;
  width: 85%;
  margin: 0 auto;
  background: #2d2d2d;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.desktop-frame-header {
  background: #3d3d3d;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stile Windows */
.desktop-frame.windows .desktop-frame-header {
  background: #202020;
}

.desktop-frame-title {
  font-size: 12px;
  color: #999;
}

.desktop-frame-buttons {
  display: flex;
  gap: 0;
}

.desktop-frame-btn {
  width: 46px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.desktop-frame-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.desktop-frame-btn.close:hover {
  background: #e81123;
}

/* Icona minimizza - linea orizzontale */
.desktop-frame-btn.minimize::before {
  content: '';
  width: 10px;
  height: 1px;
  background: #999;
}

/* Icona massimizza - quadrato */
.desktop-frame-btn.maximize::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid #999;
}

/* Icona chiudi - X */
.desktop-frame-btn.close::before,
.desktop-frame-btn.close::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 1px;
  background: #999;
}

.desktop-frame-btn.close::before {
  transform: rotate(45deg);
}

.desktop-frame-btn.close::after {
  transform: rotate(-45deg);
}

.desktop-frame-btn.close:hover::before,
.desktop-frame-btn.close:hover::after {
  background: #fff;
}

.desktop-frame-content {
  background: #1a1a2e;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.hero-screenshot-img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-sportigo-inner {
    padding-top: 100px;
  }

  .hero-sportigo-title {
    font-size: 2rem;
  }

  .hero-sportigo-desc {
    font-size: 1rem;
  }

  .btn-sportigo {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .hero-clients-logos {
    gap: 20px;
  }

  .hero-clients-logos img {
    height: 30px;
    max-width: 80px;
  }
}

/* ==========================================================================
   OLD HERO - Kept for legacy pages
   ========================================================================== */

/* Old hero classes - available if needed for other pages */

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-description {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.feature-icon svg,
.feature-icon i {
  width: 32px;
  height: 32px;
  font-size: 28px;
  color: var(--text-light);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  transition: gap var(--transition-fast);
}

.feature-link:hover {
  gap: var(--space-3);
}

.feature-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   About/Why Section
   ========================================================================== */

.about {
  background: var(--bg-white);
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-row:not(:last-child) {
  margin-bottom: var(--space-24);
}

.about-row.reverse {
  direction: rtl;
}

.about-row.reverse > * {
  direction: ltr;
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content {
  max-width: 500px;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.about-title {
  margin-bottom: var(--space-4);
}

.about-description {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.about-list-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.about-list-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

/* ==========================================================================
   Hardware Section
   ========================================================================== */

.hardware {
  background: var(--gradient-hero);
}

.hardware .section-header {
  color: var(--text-light);
}

.hardware .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.hardware-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.hardware-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.hardware-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
}

.hardware-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hardware-title {
  font-size: var(--text-xl);
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.hardware-description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Activities Section
   ========================================================================== */

.activities {
  background: var(--bg-white);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.activity-card {
  display: block;
  background: var(--bg-light);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

.activity-card:hover {
  background: var(--color-secondary);
  transform: translateY(-4px);
}

.activity-card:hover .activity-icon,
.activity-card:hover .activity-title,
.activity-card:hover .activity-subtitle {
  color: #fff;
}

.activity-card:hover .activity-icon svg {
  color: #fff;
}

.activity-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
}

.activity-icon svg {
  width: 32px;
  height: 32px;
}

.activity-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.activity-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.activity-arrow {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.activity-card:hover .activity-arrow {
  opacity: 1;
  color: #fff;
}

.activity-arrow svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Why Blugea Section
   ========================================================================== */

.why-blugea {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-content {
  max-width: 500px;
}

.why-description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.why-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-dark);
}

.why-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.why-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
  background: var(--gradient-hero);
  padding: var(--space-16) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  color: #fff;
}

.stat-number {
  display: block;
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Hardware Section
   ========================================================================== */

.hardware {
  background: var(--bg-white);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.hardware-card {
  background: var(--bg-light);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.hardware-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hardware-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-6);
}

.hardware-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.hardware-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.hardware-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.hardware-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-secondary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.hardware-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--bg-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  color: var(--color-warning);
  fill: var(--color-warning);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-gray-200);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: var(--font-semibold);
  color: var(--text-dark);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: var(--gradient-accent);
  text-align: center;
}

.cta-title {
  font-size: var(--text-4xl);
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.cta-section .btn-primary {
  background: var(--bg-white);
  color: var(--color-accent);
}

.cta-section .btn-primary:hover {
  background: var(--color-gray-100);
}

/* ==========================================================================
   Features Grid 6 Columns (Sportigo Style)
   ========================================================================== */

.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 992px) {
  .features-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid-6 {
    grid-template-columns: 1fr;
  }
}

.feature-card-sportigo {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card-sportigo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-card-sportigo .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light, #dcfce7);
  border-radius: var(--radius-lg);
}

.feature-card-sportigo .feature-icon svg,
.feature-card-sportigo .feature-icon i {
  width: 32px;
  height: 32px;
  font-size: 28px;
  color: var(--color-success);
}

.feature-card-sportigo .feature-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.feature-card-sportigo .feature-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.feature-link-sportigo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  transition: gap var(--transition-fast);
}

.feature-link-sportigo:hover {
  gap: var(--space-3);
}

.feature-link-sportigo svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Offer Section (Offerta chiavi in mano)
   ========================================================================== */

.offer-section {
  background: #f8fafc;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 992px) {
  .offer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.offer-content {
  max-width: 540px;
}

.offer-badge {
  display: inline-block;
  background: var(--color-success-light, #dcfce7);
  color: var(--color-success);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-4);
}

.offer-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.offer-highlight {
  color: var(--color-success);
}

.offer-content p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  transition: gap var(--transition-fast);
}

.offer-cta:hover {
  gap: var(--space-3);
}

.offer-cta svg {
  width: 20px;
  height: 20px;
}

/* Button color variants for offer section (light background) */
.offer-section .btn-sportigo-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.offer-section .btn-sportigo-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-sportigo-blue {
  background: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}
.btn-sportigo-blue:hover {
  background: #3a56d4;
  border-color: #3a56d4;
}
.btn-sportigo-white {
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid #e2e8f0;
}
.btn-sportigo-white:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.offer-image {
  display: flex;
  justify-content: center;
}

.offer-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Image Size Variants */
.offer-image.img-small img,
.app-image.img-small img {
  max-width: 50%;
}
.offer-image.img-medium img,
.app-image.img-medium img {
  max-width: 75%;
}
.offer-image.img-large img,
.app-image.img-large img {
  max-width: 90%;
}
.offer-image.img-full img,
.app-image.img-full img {
  max-width: 100%;
}

/* Desktop Frame Size Variants - ridimensiona l'intero frame */
.desktop-frame.img-small {
  max-width: 450px;
}
.desktop-frame.img-medium {
  max-width: 675px;
}
.desktop-frame.img-large {
  max-width: 810px;
}
.desktop-frame.img-full {
  max-width: 900px;
}
/* img-auto = default (max-width: 900px definito sopra) */

/* ==========================================================================
   App Section (App Mobile)
   ========================================================================== */

.app-section {
  background: var(--color-primary);
  color: var(--text-light);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 992px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .app-image {
    order: -1;
  }
}

.app-image {
  display: flex;
  justify-content: center;
}

.app-image img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
}

.app-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.app-content > p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.app-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.app-feature-icon svg,
.app-feature-icon i {
  width: 24px;
  height: 24px;
  font-size: 22px;
  color: var(--color-success);
}

.app-feature h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.app-feature p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Extra Features Section
   ========================================================================== */

.extra-features {
  background: #f8fafc;
  padding-top: 80px;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .extra-grid {
    grid-template-columns: 1fr;
  }
}

.extra-item {
  text-align: center;
  padding: var(--space-8);
}

.extra-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light, #dcfce7);
  border-radius: var(--radius-xl);
}

.extra-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
}

.extra-icon i {
  font-size: 42px;
  color: var(--color-success);
}

.extra-item h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.extra-item p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Security Section (Sicurezza Ingressi)
   ========================================================================== */

.security-section {
  background: var(--bg-white);
}

.security-section .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.security-section .section-header h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

.security-section .section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.security-card {
  background: #f8fafc;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.security-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.security-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-success);
}

.security-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.security-card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
}

.security-cta {
  text-align: center;
}

.security-section .btn-sportigo-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.security-section .btn-sportigo-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   All Features Grid (Griglia Funzionalità Complete)
   ========================================================================== */

.all-features {
  background: var(--color-primary);
  color: var(--text-light);
}

.all-features .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.all-features .section-header h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.all-features .section-header p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.all-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 992px) {
  .all-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .all-features-grid {
    grid-template-columns: 1fr;
  }
}

.features-column {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-success);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
}

.features-list li a {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.features-list li a:hover {
  color: var(--color-success);
}

.feature-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-name {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-light);
  margin-bottom: var(--space-1);
}

.feature-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Join CTA Section
   ========================================================================== */

.join-cta {
  background: linear-gradient(135deg, var(--color-success) 0%, #16a34a 100%);
  text-align: center;
  color: var(--text-light);
}

.join-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.join-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.btn-large {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

.join-cta .btn-primary {
  background: var(--bg-white);
  color: var(--color-success);
}

.join-cta .btn-primary:hover {
  background: var(--color-gray-100);
}

.join-cta .btn-sportigo-green {
  background: var(--bg-white);
  color: var(--color-primary);
  border-color: var(--bg-white);
}

.join-cta .btn-sportigo-green:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-100);
}

/* ==========================================================================
   Migration Section
   ========================================================================== */

.migration-section {
  background: #f8fafc;
}

.migration-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.migration-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light, #dcfce7);
  border-radius: var(--radius-full);
}

.migration-icon svg {
  width: 50px;
  height: 50px;
  color: var(--color-success);
}

.migration-content h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-6);
}

.migration-content > p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-primary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-light);
}

.footer-description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-light);
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-secondary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-column h4,
.footer-column .footer-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.footer-sep {
  margin: 0 0.3em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-policy-link {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-policy-link:hover {
  color: var(--text-light);
}

.footer-map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.footer-map-container iframe {
  display: block;
}

.footer-map-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-map-link:hover {
  color: var(--text-light);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Activity Pages
   ========================================================================== */

.activity-hero {
  background: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.8)), url('../images/sfondo_lucid.jpg');
  background-size: cover;
  background-position: center;
  padding: var(--space-32) 0 var(--space-20);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.activity-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-light);
  margin-bottom: var(--space-6);
}

.activity-badge svg {
  width: 20px;
  height: 20px;
}

.activity-title {
  font-size: var(--text-5xl);
  color: var(--text-light);
  margin-bottom: var(--space-6);
}

.activity-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.activity-description {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.activity-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Activity Features */
.activity-features {
  background: var(--bg-white);
}

/* Activity Benefits */
.activity-benefits {
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.benefits-content {
  max-width: 500px;
}

.benefits-content h2 {
  margin-bottom: var(--space-6);
}

.benefits-content > p {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-dark);
}

.benefits-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--color-success);
}

.benefits-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.benefits-image img {
  width: 100%;
  height: auto;
}

/* Access Control Section */
.activity-access {
  background: var(--bg-white);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.access-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-gray-100);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.access-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.access-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
}

.access-icon svg,
.access-icon i {
  color: var(--text-light);
  font-size: 36px;
}

.access-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}

.access-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Responsive Activity Pages */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .benefits-content {
    max-width: 100%;
  }

  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .activity-hero {
    padding: var(--space-20) 0 var(--space-12);
    min-height: auto;
  }

  .activity-hero-content {
    padding: 0 var(--space-4);
  }

  .activity-badge {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }

  .activity-title {
    font-size: 1.75rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .activity-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .activity-cta {
    flex-direction: column;
    gap: var(--space-3);
  }

  .activity-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .benefits-image {
    order: -1;
  }
}

@media (max-width: 480px) {
  .activity-hero {
    padding: var(--space-16) 0 var(--space-10);
  }

  .activity-title {
    font-size: 1.5rem;
  }

  .activity-description {
    font-size: 0.9rem;
  }

  .access-card {
    padding: var(--space-6);
  }

  .access-icon {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* ==========================================================================
   Large Desktop (< 1536px)
   ========================================================================== */

@media (max-width: 1536px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* ==========================================================================
   Desktop (< 1280px)
   ========================================================================== */

@media (max-width: 1280px) {
  .container {
    max-width: var(--container-lg);
    padding: 0 var(--space-8);
  }


  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* ==========================================================================
   Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
    --text-7xl: 3.5rem;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-24) 0;
  }

  /* Header */
  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-32) 0 var(--space-16);
  }

  .hero-content {
    max-width: 100%;
    padding: var(--space-24) var(--space-4);
  }

  /* About */
  .about-row {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-row.reverse {
    direction: ltr;
  }

  .about-content {
    max-width: 100%;
  }

  /* Hardware */
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

/* ==========================================================================
   Tablet Small (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-5xl: 2.25rem;
    --text-6xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-4);
    max-width: 100%;
  }

  /* Prevent horizontal scroll */
  .clients-carousel,
  .clients-track {
    max-width: 100vw;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  /* Header */
  .header-inner {
    height: 60px;
  }

  .logo-img {
    height: 35px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .header-cta {
    display: none;
  }

  /* Hero */
  .hero {
    padding: var(--space-20) 0 var(--space-12);
  }

  .hero-content {
    padding: var(--space-16) var(--space-4);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-card {
    padding: var(--space-6);
  }

  /* Hardware */
  .hardware-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* ==========================================================================
   Mobile (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2rem;
  }

  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
  }

  /* Logo */
  .logo-text {
    font-size: var(--text-xl);
  }

  /* Hero */
  .hero-badge {
    font-size: var(--text-xs);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  /* Cards */
  .feature-card,
  .hardware-card,
  .testimonial-card {
    padding: var(--space-5);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Clients */
  .clients-carousel img {
    height: 30px;
  }

  /* Footer */
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  padding: var(--space-24) var(--space-6) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  color: var(--text-light);
}

.mobile-nav {
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-section {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-4) 0 var(--space-2);
  margin-top: var(--space-2);
  border-bottom: none;
}

.mobile-nav-section:first-child {
  margin-top: 0;
  padding-top: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--text-light);
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.mobile-nav-item.open .mobile-nav-link svg {
  transform: rotate(180deg);
}

.mobile-dropdown {
  display: none;
  padding-bottom: var(--space-4);
}

.mobile-nav-item.open .mobile-dropdown {
  display: block;
}

.mobile-dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.mobile-dropdown-link:hover {
  color: var(--text-light);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .header,
  .footer,
  .mobile-menu,
  .cta-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    background: none;
    color: black;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-title,
  .hero-description {
    color: black;
  }

  .section {
    padding: 2rem 0;
  }

  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }

  .clients-carousel {
    animation: none;
  }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #0000ff;
    --text-muted: #333333;
  }

  .btn {
    border-width: 3px;
  }

  .feature-card,
  .testimonial-card {
    border: 2px solid var(--color-gray-800);
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 74px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.back-to-top:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 74px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 48px;
  }

  .nav-link {
    min-height: 44px;
  }

  .dropdown-item {
    padding: var(--space-4);
  }

  /* Disable hover-based dropdowns on touch */
  .nav-item:hover .dropdown {
    opacity: 0;
    visibility: hidden;
  }

  /* Remove hover effects that don't work well on touch */
  .feature-card:hover,
  .hardware-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Landscape Phone Optimizations
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0 var(--space-8);
  }

  .hero-content {
    padding: var(--space-12) var(--space-4);
  }

  .section {
    padding: var(--space-8) 0;
  }
}

/* ==========================================================================
   Very Small Screens (< 360px)
   ========================================================================== */

@media (max-width: 360px) {
  :root {
    --text-2xl: 1.25rem;
    --text-3xl: 1.375rem;
    --text-4xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .hero-badge {
    padding: var(--space-1) var(--space-3);
  }

  .feature-card,
  .hardware-card,
  .testimonial-card {
    padding: var(--space-4);
  }

  .footer-social {
    gap: var(--space-2);
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Ultra Wide Screens (> 1920px)
   ========================================================================== */

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .hero-content {
    max-width: 900px;
  }

  .features-grid {
    gap: var(--space-8);
  }

  .about-row {
    gap: var(--space-20);
  }
}

/* ==========================================================================
   Activity Pages Responsive
   ========================================================================== */

@media (max-width: 768px) {
  /* Activity Hero */
  .activity-hero {
    padding: var(--space-20) 0 var(--space-12);
    min-height: auto;
  }

  .activity-hero-content {
    padding: 0 var(--space-4);
  }

  .activity-hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .activity-hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .activity-hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .activity-hero-cta {
    flex-direction: column;
    gap: var(--space-3);
  }

  .activity-hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Activity Features Grid */
  .activity-features-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }

  .activity-feature-card {
    padding: var(--space-5);
  }

  /* Activity Benefits */
  .activity-benefits-list {
    grid-template-columns: 1fr !important;
  }

  /* Activity CTA */
  .activity-cta-buttons {
    flex-direction: column;
  }

  .activity-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .activity-hero-title {
    font-size: 1.5rem;
  }

  .activity-hero-description {
    font-size: 0.85rem;
  }

  .activity-feature-card {
    padding: var(--space-4);
  }

  .activity-feature-card h3 {
    font-size: 1rem;
  }

  .activity-feature-card p {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Funzionalita Pages Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .funzionalita-hero {
    padding: var(--space-20) 0 var(--space-12);
    min-height: auto;
  }

  .funzionalita-hero-content {
    padding: 0 var(--space-4);
  }

  .funzionalita-hero h1 {
    font-size: 1.75rem;
  }

  .funzionalita-hero p {
    font-size: 0.9rem;
  }

  /* Feature blocks alternating layout */
  .feature-block {
    grid-template-columns: 1fr !important;
    gap: var(--space-6);
  }

  .feature-block.reverse {
    direction: ltr;
  }

  .feature-block-image {
    order: -1;
  }

  .feature-block-content {
    padding: var(--space-4);
  }

  /* Benefits grid */
  .benefits-grid {
    grid-template-columns: 1fr !important;
  }

  /* Tech cards (controllo-accessi) */
  .tech-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Payment methods (contabilita) */
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .funzionalita-hero h1 {
    font-size: 1.5rem;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Prezzi Page Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: var(--space-20) 0 var(--space-12);
  }

  .pricing-hero h1 {
    font-size: 1.75rem;
  }

  .pricing-toggle {
    flex-direction: column;
    gap: var(--space-2);
  }

  .pricing-card {
    padding: var(--space-6);
  }

  /* Comparison table */
  .comparison-table {
    font-size: 0.8rem;
    overflow-x: auto;
    display: block;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 4px;
    min-width: 60px;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-item {
    padding: var(--space-4);
  }
}

/* ==========================================================================
   Contatti Page Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-form {
    padding: var(--space-6);
  }

  .contact-info-card {
    padding: var(--space-5);
  }

  .contact-hero {
    padding: var(--space-20) 0 var(--space-12);
  }

  .contact-hero h1 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Notizie Page Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr !important;
  }

  .news-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: var(--space-20) 0 var(--space-12);
    min-height: auto;
  }

  .page-hero-title {
    font-size: 1.75rem;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item-image {
    width: 100%;
    height: 200px;
  }

  .news-item-content {
    padding: var(--space-4);
  }
}

/* ==========================================================================
   Global Mobile Fixes
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent container from overflowing */
  .container {
    max-width: 100%;
  }

  /* Section padding */
  .section {
    padding: var(--space-10) 0;
  }

  /* Text sizes */
  h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 14px 24px;
  }

  /* Grid fixes */
  [class*="grid"] {
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Home Arrow CTA + Form
   ========================================================================== */
.home-arrow-cta {
  padding: 50px 0 60px;
}
.home-arrow-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.home-arrow-head-l,
.home-arrow-head-r {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.home-arrow-draw.animate .home-arrow-line {
  animation: homeArrowDraw 0.8s ease-in-out forwards;
}
.home-arrow-draw.animate .home-arrow-head-l {
  animation: homeArrowDraw 0.15s ease-out 0.7s forwards;
}
.home-arrow-draw.animate .home-arrow-head-r {
  animation: homeArrowDraw 0.15s ease-out 0.7s forwards;
}
@keyframes homeArrowDraw {
  to { stroke-dashoffset: 0; }
}
.home-lead-form {
  max-width: 520px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  text-align: left;
}
.home-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.home-form-group {
  margin-bottom: 12px;
}
.home-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.home-form-group input,
.home-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}
.home-form-group input:focus,
.home-form-group select:focus {
  outline: none;
  border-color: #10b981;
}
.home-form-submit {
  width: 100%;
  padding: 14px;
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.home-form-submit:hover {
  background: #059669;
}
.home-form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.home-form-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 12px;
}
.home-form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-trust-strip span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-trust-strip span i {
  color: #10b981;
  font-size: 11px;
}
@media (max-width: 600px) {
  .hero-trust-strip {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .home-form-row {
    grid-template-columns: 1fr;
  }
  .home-lead-form {
    padding: 24px 20px;
  }
}

/* =====================================================
   ECOSYSTEM STRIP (Gate 2)
   ===================================================== */
.ecosystem-strip {
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 14px 0;
}
.ecosystem-strip .container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ecosystem-strip-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.ecosystem-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ecosystem-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: all .2s;
  cursor: default;
}
.ecosystem-chip em {
  font-style: normal;
  font-size: .7rem;
  color: rgba(255,255,255,.38);
}
a.ecosystem-chip {
  cursor: pointer;
}
a.ecosystem-chip:hover {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.35);
  color: #10b981;
}
a.ecosystem-chip:hover em {
  color: rgba(16,185,129,.7);
}
.ecosystem-chip i {
  font-size: .72rem;
}
.ecosystem-chip strong {
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.ecosystem-chip-core {
  background: rgba(217,178,76,.07);
  border-color: rgba(217,178,76,.22);
}
.ecosystem-chip-core strong {
  color: #D9B24C;
}
a.ecosystem-chip-core:hover {
  background: rgba(217,178,76,.18) !important;
  border-color: #D9B24C !important;
  color: #D9B24C !important;
}
@media (max-width: 768px) {
  .ecosystem-strip .container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ecosystem-strip .container::-webkit-scrollbar {
    display: none;
  }
  .ecosystem-chips {
    flex-wrap: nowrap;
  }
  .ecosystem-strip-label {
    display: none;
  }
}

/* =====================================================
   ACTIVITY SELECTOR GRID (Gate 2)
   ===================================================== */
.activity-selector {
  background: #141414;
  padding: 60px 0 52px;
}
.activity-selector .section-header {
  text-align: center;
  margin-bottom: 34px;
}
.activity-selector .section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #F8F6F1;
  margin: 0 0 8px;
}
.section-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 20px 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
  transition: all .22s ease;
  line-height: 1.3;
}
.activity-card:hover {
  background: rgba(16,185,129,.09);
  border-color: rgba(16,185,129,.3);
  color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16,185,129,.1);
}
.activity-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  transition: all .22s ease;
}
.activity-card:hover .activity-card-icon {
  background: rgba(16,185,129,.16);
  color: #10b981;
}
@media (max-width: 768px) {
  .activity-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .activity-selector .section-title {
    font-size: 1.25rem;
  }
  .activity-card {
    padding: 14px 8px 12px;
    font-size: .72rem;
  }
  .activity-card-icon {
    width: 38px;
    height: 38px;
    font-size: .9rem;
  }
}
@media (max-width: 480px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 360px;
  }
}

/* =====================================================
   HOME PRICING PREVIEW (Gate 3)
   ===================================================== */
.home-pricing-preview {
  background: #0A0A0A;
  padding: 72px 0 64px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.home-pricing-preview .section-title {
  color: #F8F6F1;
}
.hpp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 28px;
}
.hpp-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.hpp-card-featured {
  border-color: rgba(217,178,76,.4);
  background: rgba(217,178,76,.05);
}
.hpp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #D9B24C;
  color: #0A0A0A;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.hpp-name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
}
.hpp-card-featured .hpp-name {
  color: #D9B24C;
}
.hpp-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #F8F6F1;
  line-height: 1;
  margin-bottom: 4px;
}
.hpp-price-custom {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
  padding-top: 4px;
}
.hpp-currency {
  font-size: 1.1rem;
  vertical-align: super;
  margin-right: 2px;
}
.hpp-period {
  font-size: .9rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
}
.hpp-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin: 0 0 18px;
}
.hpp-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.hpp-features li {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-left: 18px;
  position: relative;
}
.hpp-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-size: .8rem;
}
.hpp-cta {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.hpp-footer-cta {
  text-align: center;
  margin: 0;
}
.hpp-footer-cta a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}
.hpp-footer-cta a:hover {
  color: #D9B24C;
}
@media (max-width: 768px) {
  .hpp-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .hpp-card-featured {
    order: -1;
  }
}

/* =====================================================
   HOME GUARANTEES (Gate 3)
   ===================================================== */
.home-guarantees {
  background: #141414;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16,185,129,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #10b981;
  margin-bottom: 4px;
}
.guarantee-item strong {
  font-size: .82rem;
  font-weight: 700;
  color: #F8F6F1;
}
.guarantee-item span {
  font-size: .73rem;
  color: rgba(255,255,255,.45);
}
@media (max-width: 768px) {
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
  }
}

/* =====================================================
   HOME MIGRATION STEPS (Gate 3)
   ===================================================== */
.home-migration {
  background: #0A0A0A;
  padding: 72px 0 64px;
}
.home-migration .section-title {
  color: #F8F6F1;
}
.migration-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 40px;
  position: relative;
}
.migration-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(12.5% + 22px);
  right: calc(12.5% + 22px);
  height: 2px;
  background: linear-gradient(90deg, rgba(217,178,76,.2), rgba(16,185,129,.3), rgba(217,178,76,.2));
  z-index: 0;
}
.migration-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.migration-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D9B24C, #b8882a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0A0A0A;
  flex-shrink: 0;
}
.migration-step h3 {
  font-size: .9rem;
  font-weight: 700;
  color: #F8F6F1;
  margin: 0;
}
.migration-step p {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin: 0;
  line-height: 1.5;
}
.migration-cta-wrap {
  text-align: center;
}
@media (max-width: 768px) {
  .migration-steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .migration-steps::before {
    display: none;
  }
}
@media (max-width: 480px) {
  .migration-steps {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .migration-step {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .migration-step-num {
    width: 40px;
    height: 40px;
    font-size: .95rem;
    flex-shrink: 0;
  }
}

/* =====================================================
   HOME ASD/SSD SECTION (Gate 3)
   ===================================================== */
.home-asd {
  background: #111827;
  padding: 72px 0 64px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.home-asd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.home-asd-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(217,178,76,.12);
  color: #D9B24C;
  border: 1px solid rgba(217,178,76,.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.home-asd-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #F8F6F1;
  margin: 0 0 14px;
  line-height: 1.25;
}
.home-asd-content p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 22px;
  line-height: 1.65;
}
.home-asd-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.home-asd-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  padding: 6px 0;
}
.home-asd-list li i {
  color: #10b981;
  font-size: .8rem;
  flex-shrink: 0;
}
.home-asd-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-asd-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.home-asd-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217,178,76,.1);
  border: 1px solid rgba(217,178,76,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #D9B24C;
  flex-shrink: 0;
}
.home-asd-card-label {
  font-size: .88rem;
  font-weight: 700;
  color: #F8F6F1;
  margin-bottom: 3px;
}
.home-asd-card-desc {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}
@media (max-width: 768px) {
  .home-asd-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-asd-content h2 {
    font-size: 1.3rem;
  }
}
