:root {
    /* === TEMA MOCHI - Blu elettrico + Arancio energico === */
    --primary: #2B4C7E;        /* Blu royal intenso */
    --primary-dark: #1F3659;   /* Blu profondo */
    --primary-light: #4A6FA5;  /* Blu luminoso */
    --accent: #BC5F3A;         /* Arancio bruciato/terracotta */
    --accent-light: #D67F5C;   /* Arancio chiaro */
    --dark: #0B0C0D;           /* Nero intenso */
    --gray: #4a5568;
    --light-gray: #e2e8f0;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --black: #000000;

    /* === COLORI CON TRASPARENZA === */
    --white-98: rgba(255, 255, 255, 0.98);
    --white-95: rgba(255, 255, 255, 0.95);
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);
    
    --black-30: rgba(0, 0, 0, 0.3);
    --black-20: rgba(0, 0, 0, 0.2);
    --black-15: rgba(0, 0, 0, 0.15);
    --black-10: rgba(0, 0, 0, 0.1);
    --black-08: rgba(0, 0, 0, 0.08);
    --black-05: rgba(0, 0, 0, 0.05);

    /* === COLORI PRIMARI CON TRASPARENZA === */
    --primary-30: rgba(43, 76, 126, 0.3);
    --primary-light-15: rgba(74, 111, 165, 0.15);
    
    /* === COLORI ACCENT CON TRASPARENZA === */
    --accent-30: rgba(188, 95, 58, 0.3);

    /* === COLORI DARK CON TRASPARENZA === */
    --dark-88: rgba(11, 12, 13, 0.88);
    --dark-82: rgba(43, 76, 126, 0.82);

    /* === OMBRE === */
    --shadow-sm: 0 2px 8px var(--black-08);
    --shadow-md: 0 4px 12px var(--black-15);
    --shadow-lg: 0 12px 24px var(--black-10);
    --shadow-xl: 0 20px 60px var(--black-15);
    --shadow-2xl: 0 20px 40px var(--black-30);
    
    --shadow-primary: 0 4px 12px var(--primary-30);
    --shadow-accent: 0 8px 24px var(--accent-30);
    
    --text-shadow-sm: 0 1px 10px var(--black-20);
    --text-shadow-md: 0 2px 10px var(--black-30);
    --text-shadow-lg: 0 2px 20px var(--black-30);

    /* === DIMENSIONI === */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    --transition-fast: 0.3s;
    --transition-smooth: 0.6s;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/inter-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/inter-800.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white-98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-fast) ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* === MOBILE MENU TOGGLE === */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}
.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.25rem;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: background var(--transition-fast);
    font-weight: 500;
}
.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}
.dropdown-menu a::after {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}
a.btn-primary { 
    color: var(--white) !important; 
}
a.btn-primary:hover { 
    color: var(--white) !important; 
}
a.btn-primary::after {
    display: none !important;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--white);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-block;
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}
.btn-accent {
    background: var(--accent);
    color: var(--white) !important;
}
.btn-accent:hover {
    background: var(--accent-light);
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.avatar-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

/* === HOME - HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--dark-88) 0%, var(--dark-82) 100%), url('/img/banner.png') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--primary-30) 0%, transparent 50%);
    pointer-events: none;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 700px;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow-lg);
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--white-95);
    line-height: 1.8;
    text-shadow: var(--text-shadow-sm);
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--white-20);
}
.stat-item {
    text-align: center;
    animation: fadeInUp var(--transition-smooth) ease-out backwards;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    text-shadow: var(--text-shadow-md);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--white-80);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HOME - FEATURES SECTION === */
.features {
    padding: 5rem 2rem;
    background: var(--bg-light);
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 400px;
    height: 400px;
    background: url('/img/imm1_little.png') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
}
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--black-05);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}
.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}
.feature-card a:hover {
    color: var(--primary-light);
}

/* === HOME - SHOWCASE SECTION === */
.showcase {
    padding: 5rem 2rem;
    background: var(--white);
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}
.showcase-grid:last-child {
    margin-bottom: 0;
}
.showcase-grid:nth-child(even) {
    direction: rtl;
}
.showcase-grid:nth-child(even) > * {
    direction: ltr;
}
.showcase-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.showcase-content p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.showcase-image {
    position: relative;
}
.showcase-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-fast);
}
.showcase-image:hover img {
    transform: scale(1.02);
}
.showcase-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-accent);
    font-weight: 700;
    font-size: 1.125rem;
}

/* === HOME - PORTALS SECTION === */
.portals {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}
.portals::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-light-15) 0%, transparent 70%);
    pointer-events: none;
}
.portals .section-header, .portals .section-title {
    color: var(--white);
}
.portals .section-subtitle {
    color: var(--white-80);
}
.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.portal-card {
    position: relative;
    background: var(--white-10);
    backdrop-filter: blur(10px);
    border: 2px solid var(--white-20);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.portal-card:hover {
    transform: translateY(-8px);
    border-color: var(--white-40);
    box-shadow: var(--shadow-2xl);
}
.portal-card:hover::before {
    opacity: 0.9;
}
.portal-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}
.portal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
.portal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.portal-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}
.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: gap var(--transition-fast);
}
.portal-card:hover .portal-link {
    gap: 0.75rem;
}

/* === HOME - CTA SECTION === */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: url('/img/imm2_little.png') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: url('/img/imm3_little.png') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* === FOOTER === */
.footer {
    font-size: 0.875rem;
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}
.footer-links {
    list-style: none;
}
.footer-links a {
    color: var(--white-70);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid var(--white-10);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--white-60);
    font-size: 0.875rem;
}

/* === AUTH PAGES === */
.hero-auth {
  background: linear-gradient(135deg, var(--dark-88) 0%, var(--dark-82) 100%);
  color: var(--white);
  padding: 2rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.auth-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: 1.125rem;
  color: var(--white-80);
}

.auth-section {
  padding: 3rem 2rem 5rem;
  background: var(--bg-light);
  min-height: calc(100vh - 300px);
}

.auth-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.auth-container-wide {
  max-width: 700px;
  grid-template-columns: 1fr;
}

.auth-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.auth-card-header {
  margin-bottom: 2rem;
}

.auth-card-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.required {
  color: var(--accent);
}

.form-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--gray);
}

.form-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 0.5rem 0;
}

.form-actions {
  margin-top: 0.5rem;
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #c82333;
}

.alert-icon {
  font-size: 1.25rem;
}

/* Auth Footer */
.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.auth-footer p {
  margin: 0.5rem 0;
  color: var(--gray);
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.auth-link-secondary {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.auth-link-secondary:hover {
  color: var(--primary);
}

/* Info Card */
.auth-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-primary);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-header h1 {
    font-size: 1.75rem;
  }

  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .auth-info-card {
    order: -1;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    height: 100vh;
    overflow-y: auto;
    gap: 0;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-links > li > a {
    display: block;
    padding: 1rem 0;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 500px;
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .portals-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-grid:nth-child(even) {
    direction: ltr;
  }

  .showcase-badge {
    bottom: 10px;
    right: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  /* Tabelle responsive */
  .data-table {
    font-size: 0.75rem; /* Ridotto da default ~1rem */
  }
  
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem; /* Ridotto padding */
  }
  
  .data-table th {
    font-size: 0.7rem;
  }
  
  /* Badge più piccoli */
  .badge-apparatus,
  .badge-cat-sm {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  
  /* Link atleti/gare */
  .athlete-link,
  .gara-link {
    font-size: 0.7rem;
  }
  
  /* Numeri punteggi */
  .score-cell-total {
    font-size: 0.8rem;
  }
  
  /* Colonne strette per numeri */
  .text-right {
    min-width: 45px;
  }
  
  /* Header tabella */
  .page-header h1 {
    font-size: 1.25rem;
  }
  
  /* Filtri più compatti */
  .btn-chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  
  .filter-label {
    font-size: 0.8rem;
  }
  
  /* Tabs */
  .tab {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp var(--transition-smooth) ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}
