/* ============================================
   Padel Town - Acilia Padel Club
   Stylesheet elegante e professionale
   ============================================ */

/* CSS Variables */
:root {
    /* Colori */
    --color-primary: #1B5E20;
    --color-primary-dark: #0D3310;
    --color-primary-light: #2E7D32;
    --color-accent: #C9A962;
    --color-accent-hover: #B8984F;
    --color-dark: #0a0a0a;
    --color-dark-light: #1a1a1a;
    --color-gray-900: #1f1f1f;
    --color-gray-800: #2d2d2d;
    --color-gray-700: #404040;
    --color-gray-600: #525252;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-gray-300: #d1d5db;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
    --color-white: #ffffff;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spaziature */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transizioni */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(27, 94, 32, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--color-gray-600);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-600);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Padding */
.section-padding {
    padding: var(--space-3xl) 0;
}

/* Background Colors */
.bg-light { background-color: var(--color-gray-100); }
.bg-dark { 
    background-color: var(--color-dark); 
    color: var(--color-white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-white);
}
.bg-dark p {
    color: var(--color-gray-400);
}

/* Section Header */
.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--color-primary);
}

.section-label.light {
    color: var(--color-accent);
}

.section-label.light::before {
    background-color: var(--color-accent);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-title.light {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-icon {
    width: 45px;
    height: 45px;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.logo-img {
    height: 85px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

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

.navbar.scrolled .logo-icon {
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    line-height: 1;
    transition: var(--transition-base);
}

.navbar.scrolled .logo-main {
    color: var(--color-dark);
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    transition: var(--transition-base);
}

.navbar.scrolled .logo-sub {
    color: var(--color-gray-600);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-link {
    color: var(--color-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--color-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 var(--space-lg);
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-gray-200);
    line-height: 1.1;
}

.hero-title .line-accent {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    margin-top: var(--space-sm);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-200);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Hero Prezzi */
.hero-prezzi {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: clamp(3rem, 26vw, 36rem);
    padding: 0 var(--space-xl);
    z-index: 2;
    pointer-events: none;
}

.hero-prezzo {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-2xl);
    text-align: center;
    color: var(--color-white);
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.07);
}

.hero-prezzo-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
    margin-bottom: 0.375rem;
}

.hero-prezzo-importo {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
}

.hero-prezzo-durata {
    display: block;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.hero-prezzo-persona {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .hero-prezzi {
        gap: var(--space-lg);
        bottom: 4%;
        padding: 0 var(--space-sm);
    }

    .hero-prezzo {
        padding: var(--space-md) var(--space-lg);
    }

    .hero-prezzo-importo {
        font-size: 2.25rem;
    }

    .hero-prezzo-label {
        font-size: 0.75rem;
    }
}

/* Features Section — Stat Strip */
.features-stats-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
}

.features-stat {
    flex: 1;
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    border-right: 1px solid var(--color-gray-200);
}

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

.features-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.features-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

/* Features Section — Services + Partner Grid */
.features-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.features-service-card {
    padding: var(--space-lg);
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.features-service-card:hover {
    background: var(--color-white);
    border-color: var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

/* Partner link (Playtomic) */
a.features-partner-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.features-partner-link:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

a.features-partner-link .link-arrow {
    display: inline-block;
    transition: transform var(--transition-base);
    font-size: 0.875em;
}

a.features-partner-link:hover .link-arrow {
    transform: translateX(4px);
}

.features-service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.features-service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
    fill: none;
    stroke-width: 2;
}

/* Partner card icon: logo su sfondo bianco, più grande */
.features-partner-icon {
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
}

.features-partner-icon img {
    width: auto;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Logo partner diretto nella card (senza contenitore icona) */
.features-partner-logo {
    object-fit: contain;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
}

/* Logo quadrato (Wellhub): grande nella card */
.features-partner-logo--square {
    width: 64px;
    height: 64px;
}

.features-service-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.375rem;
}

.features-service-card p {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent);
    color: var(--color-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-content .lead {
    margin-bottom: var(--space-md);
}

.about-content p {
    margin-bottom: var(--space-lg);
}

.about-content .btn {
    margin-top: var(--space-sm);
}

/* Courses Preview */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.course-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.course-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(1.02);
}

.course-badge {
    position: absolute;
    top: -1px;
    right: var(--space-xl);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.course-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
}

.course-price {
    margin-bottom: var(--space-md);
}

.course-price .price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.course-price .period {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.course-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-md);
}

.course-features {
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.course-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    border-bottom: 1px solid var(--color-gray-100);
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li::before {
    content: '✓';
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.course-card .btn {
    width: 100%;
}

/* Instructors Preview */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.instructor-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.instructor-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.instructor-info {
    padding: var(--space-md);
    text-align: center;
}

.instructor-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.instructor-role {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instructor-certs {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.centered-cta {
    text-align: center;
}

/* Instructors Home - Cliccabili */
.instructors-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.instructor-card-home {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: block;
}

.instructor-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.instructor-image-home {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.instructor-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.instructor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 94, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instructor-card-home:hover .instructor-overlay {
    opacity: 1;
}

.instructor-overlay span {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-full);
}

.instructor-info-home {
    padding: var(--space-md);
    text-align: center;
}

.instructor-info-home h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.instructor-info-home .instructor-role {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.instructor-info-home .instructor-certs {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.instructor-bio {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--space-3xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
}

.cta-content {
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    padding: 0 var(--space-lg);
    z-index: 1;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--color-gray-300);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-400);
    padding-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.footer-logo .logo-sub {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-gray-800);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-accent);
}

.footer-contact a {
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    background: #128C7E;
}

.whatsapp-text {
    display: block;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 16px;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-float svg {
        width: 34px;
        height: 34px;
    }
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card.featured {
        transform: none;
    }
    
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructors-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu - Unified Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 100px 30px 40px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Overlay scuro quando menu è aperto */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 997;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.12s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.16s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.20s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.24s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.28s; }
    
    /* IMPORTANTE: Testo sempre bianco nel menu mobile */
    .nav-link {
        font-size: 1.25rem;
        font-weight: 500;
        color: #ffffff !important;
        padding: 18px 0;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--color-accent) !important;
        border-bottom-color: var(--color-accent);
        padding-left: 10px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Header scuro quando menu è aperto */
    .navbar.menu-open {
        background: rgba(10, 10, 10, 0.95) !important;
    }
    
    .section-padding {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .hero {
        min-height: 500px;
    }

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

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

    .about-image img {
        height: 280px;
    }

    .about-badge {
        right: 10px;
        bottom: -10px;
    }

    .about-content .lead {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }

    .about-content p {
        font-size: 0.9375rem;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section {
        min-height: 380px;
        padding: var(--space-xl) 0;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
    }

    .section-padding {
        padding: var(--space-2xl) 0;
    }

    .features-service-card {
        padding: var(--space-sm);
    }

    .course-card {
        padding: var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .section-title {
        margin-bottom: var(--space-xs);
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .features-services-grid {
        gap: var(--space-sm);
    }

    .courses-grid {
        gap: var(--space-md);
    }

    .cta-section {
        min-height: 350px;
        padding: var(--space-2xl) 0;
    }

    .footer {
        padding-top: var(--space-2xl);
    }

    .footer-grid {
        gap: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}


/* ============================================
   NUOVE ANIMAZIONI E OTTIMIZZAZIONI
   Aggiunte: Parallax, Staggered Effects, 
   Mobile Optimizations, Touch-Friendly UI
   ============================================ */

/* --- PARALLAX PIÙ MARCATO --- */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    animation: parallaxMove 30s ease-in-out infinite alternate;
}

@keyframes parallaxMove {
    0% { transform: translateY(-5%) scale(1.1); }
    100% { transform: translateY(5%) scale(1.15); }
}

.hero-bg img {
    animation: heroParallax 25s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroParallax {
    0% { 
        transform: scale(1) translateY(0);
    }
    100% { 
        transform: scale(1.08) translateY(-20px);
    }
}

.page-header-bg img {
    animation: headerParallax 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes headerParallax {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.05) translateY(-15px); }
}

/* --- DISABLE PARALLAX ON MOBILE --- */
@media (max-width: 768px) {
    .hero-bg img,
    .page-header-bg img {
        animation: none !important;
        will-change: auto;
        transform: scale(1);
    }

    .parallax-bg {
        animation: none !important;
        will-change: auto;
        inset: 0;
    }
}

/* --- TRANSIZIONI PIÙ FLUIDI --- */
.smooth-transition {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out-expo {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.ease-out-back {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- FADE-IN STAGGERED PER LE CARD --- */
.stagger-container {
    --stagger-delay: 0.1s;
}

.stagger-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: staggerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-item:nth-child(1) { animation-delay: calc(var(--stagger-delay) * 0); }
.stagger-item:nth-child(2) { animation-delay: calc(var(--stagger-delay) * 1); }
.stagger-item:nth-child(3) { animation-delay: calc(var(--stagger-delay) * 2); }
.stagger-item:nth-child(4) { animation-delay: calc(var(--stagger-delay) * 3); }
.stagger-item:nth-child(5) { animation-delay: calc(var(--stagger-delay) * 4); }
.stagger-item:nth-child(6) { animation-delay: calc(var(--stagger-delay) * 5); }

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

/* Enhanced reveal animations */
.reveal-up-enhanced {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up-enhanced.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotateX(45deg) translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: rotateX(0) translateY(0);
}

/* --- EFFETTO HOVER PIÙ ELABORATO --- */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-glow {
    position: relative;
    transition: all 0.4s ease;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.hover-glow:hover::before {
    opacity: 0.5;
}

.hover-glow:hover {
    transform: translateY(-8px);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.hover-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.hover-image-zoom {
    overflow: hidden;
}

.hover-image-zoom img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-image-zoom:hover img {
    transform: scale(1.1);
}

/* Card 3D tilt effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulse animation for CTAs */
.pulse-animation {
    animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Mobile menu styles are defined in the media query below */

/* --- OTTIMIZZAZIONE FONT PER MOBILE --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
    h3 { font-size: clamp(1.1rem, 4vw, 1.35rem); }
    
    .hero-title .line {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .hero-title .line-accent {
        font-size: clamp(0.65rem, 2.5vw, 0.9rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .page-header-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    /* Istruttori grid mobile - due card per riga */
    .instructors-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .instructor-card-home {
        max-width: 100%;
    }

    .instructor-info-home {
        padding: var(--space-xs) var(--space-xs) var(--space-sm);
    }

    .instructor-info-home h3 {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }

    .instructor-info-home .instructor-role {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }

    .instructor-info-home .instructor-certs {
        font-size: 0.5625rem;
        margin-bottom: 0;
    }

    /* Features su mobile — Stat strip */
    .features .section-header .section-subtitle {
        display: none;
    }

    .features .section-header {
        margin-bottom: var(--space-lg);
    }

    .features.section-padding {
        padding: var(--space-2xl) 0;
    }

    .features-stats-strip {
        margin-bottom: var(--space-lg);
    }

    .features-stat {
        padding: var(--space-md) var(--space-xs);
    }

    .features-stat-label {
        font-size: 0.6875rem;
    }

    /* Features su mobile — Services grid */
    .features-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .features-service-card {
        padding: var(--space-md);
    }

    .features-service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-xs);
    }

    .features-service-icon svg {
        width: 20px;
        height: 20px;
    }

    .features-partner-icon {
        width: auto;
        height: auto;
        padding: 8px 12px;
    }

    .features-partner-icon img {
        height: 24px;
        width: auto;
    }

    .features-partner-logo--square {
        width: 52px;
        height: 52px;
    }

    .features-service-card h4 {
        font-size: 0.875rem;
    }

    .features-service-card p {
        font-size: 0.6875rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
}

/* --- TOUCH-FRIENDLY BUTTONS --- */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-outline-light {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .card-link,
    .nav-link,
    .footer-links a,
    .footer-contact a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .features-service-card,
    .course-card,
    .instructor-card-home {
        touch-action: pan-y;
    }

    .features-service-card:active,
    .course-card:active,
    .instructor-card-home:active {
        transform: scale(0.98);
    }
    
    .whatsapp-float {
        min-height: 56px;
        min-width: 56px;
    }
    
    .whatsapp-float:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets for form elements */
    input,
    select,
    textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group label {
        font-size: 0.9375rem;
    }
    
    /* Gallery items larger touch targets */
    .gallery-item,
    .gallery-overlay {
        touch-action: manipulation;
    }
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* --- LOADING SKELETON --- */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- FLOATING ANIMATION --- */
.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- GRADIENT TEXT --- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- GLASSMORPHISM --- */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg img,
    .page-header-bg img {
        animation: none;
    }
    
    .parallax-bg {
        animation: none;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-up-enhanced,
    .reveal-scale,
    .reveal-rotate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .stagger-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- PRINT STYLES --- */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-indicator,
    .cta-section,
    .footer-social {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg img {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
