/* ============================================
   EMOTIONAL SPORT - PREMIUM DESIGN SYSTEM
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors */
    --primary: #d9324c;
    --primary-dark: #b01f36;
    --primary-light: #ff4d6a;
    --secondary: #676a6c;
    --dark: #1a1a1a;
    --dark-soft: #2c2c2c;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #95a5a6;

    /* Glassmorphism */
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-dark: rgba(0, 0, 0, 0.7);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 8px 20px rgba(217, 50, 76, 0.3);

    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    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-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

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

.text-white {
    color: var(--white);
}

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

.text-uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

/* Text Highlight Effect */
.text-highlight {
    background: linear-gradient(120deg, rgba(217, 50, 76, 0.1) 0%, rgba(217, 50, 76, 0.2) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--dark);
    box-shadow: inset 0 -2px 0 rgba(217, 50, 76, 0.3);
}

/* Text Outline Effect */
.text-outline {
    -webkit-text-stroke: 1px rgba(217, 50, 76, 0.3);
    font-weight: 800;
}

/* Emphasized Text */
strong,
b {
    font-weight: 700;
    color: var(--dark);
    position: relative;
}

strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.3;
}

/* Quote Styling */
blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: rgba(217, 50, 76, 0.03);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* === UTILITIES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

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

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

/* Enhanced List Styling */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(217, 50, 76, 0.3);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(217, 50, 76, 0.4);
}

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

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

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.header.scrolled {
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo img {
    height: 45px;
    width: auto;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: var(--spacing-xs) 0;
}

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

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

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

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    overflow: hidden;
    z-index: 1;
    padding: 140px 2rem 5rem;
    /* Replaces inline padding */
}

.partners {
    position: relative;
    z-index: 2;
    background: white;
    margin-top: -2rem;
    padding: 3rem 0;
    /* Updated padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(217, 50, 76, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1300px;
    /* Matched to inline style */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Matched to inline style */
    align-items: center;
}

.hero-text {
    z-index: 2;
    max-width: 600px;
    /* Matched to inline style */
}

.hero-label {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(217, 50, 76, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.hero-text h1 {
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-text h1 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(217, 50, 76, 0.08) 0%, rgba(217, 50, 76, 0.15) 100%);
    padding: 0.1em 0.3em;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(217, 50, 76, 0.15);
    transition: all 0.3s ease;
}

.hero-text h1 .highlight::before {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.15em;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    opacity: 0.6;
}

.hero-text h1 .highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(217, 50, 76, 0.25);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
    max-width: 550px;
    /* Matched to inline style */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* Matched to inline style */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* Matched to inline style */
    transition: var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(217, 50, 76, 0.08);
    border-radius: var(--radius-full);
}

.section-title {
    margin-bottom: var(--spacing-md);
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: var(--spacing-md) auto 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(217, 50, 76, 0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === CARDS === */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(217, 50, 76, 0.06);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(217, 50, 76, 0.12);
    border-color: rgba(217, 50, 76, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(217, 50, 76, 0.12), rgba(217, 50, 76, 0.06));
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.card h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* === PARTNERS === */
.partners {
    padding: var(--spacing-2xl) 0;
    background: var(--light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    height: 120px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partner Cards (Desktop Base) */
.partner-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Main Sponsor - Larger */
.partner-card:first-child .partner-logo-container {
    height: 200px;
}

.partner-card:first-child .partner-logo-container img {
    max-height: 120px;
}

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

.partner-logo-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.partner-logo-container img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.partner-info {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #eeeeee;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.partner-name {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}


/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--dark);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 4px;
}

.contact-item a {
    color: var(--white);
}

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

.promo-box {
    background: linear-gradient(135deg, rgba(217, 50, 76, 0.2), rgba(217, 50, 76, 0.1));
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-top: var(--spacing-xl);
}

.promo-box h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === FOOTER === */
.footer {
    background: #0a0a0a;
    color: #aaa;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 1400px;
    margin: 0 auto var(--spacing-2xl);
    padding: 0 var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #aaa;
    margin-bottom: var(--spacing-xs);
    display: block;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-base);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === MOTTO BANNER === */
.motto-banner {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #d42222 100%);
    color: white;
    overflow: hidden;
    margin: 4rem 0;
}

.motto-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.motto-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

/* === TESTIMONIALS (DESKTOP) === */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(217, 50, 76, 0.08);
    flex: 0 0 calc(33.333% - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 50, 76, 0.15);
    border-color: rgba(217, 50, 76, 0.2);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #444;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.15;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #fff0f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--spacing-md);
    }

    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-image {
        order: -1;
        margin: 0 auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 10001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-lg);
        padding: var(--spacing-2xl);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        z-index: 10000;
    }

    .nav-menu.active {
        right: 0;
    }

    .header {
        padding: 1.5rem 0 !important;
    }

    .logo img {
        height: 35px !important;
    }

    /* 1. MOBILE HERO - COMPLETE RESET */
    .hero {
        display: block !important;
        min-height: 0 !important;
        /* Remove vh-based height to prevent jitter */
        height: auto !important;
        padding: 140px 0 3rem !important;
        /* Fixed padding instead of vh */
        overflow: hidden !important;
        z-index: 1 !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .hero-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        gap: 0 !important;
        grid-template-columns: 1fr !important;
    }

    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 0 2rem 0 !important;
        text-align: center !important;
    }

    .hero-text p {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-image {
        display: block !important; /* Force block to contain carousel */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 0 3rem 0 !important;
    }

    .hero-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .cta-group {
        justify-content: center !important;
        margin-bottom: 3rem !important;
    }

    /* 2. PARTNERS - NO OVERLAP */
    .partners {
        margin-top: 0 !important;
        padding: 3rem 0 !important;
        position: relative !important;
        z-index: 100 !important;
        background: white !important;
        width: 100% !important;
        clear: both !important;
    }

    /* 2. Horizontal Scroll Fix */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    .grid-cards,
    .testimonials-grid,
    .partners-grid {
        grid-template-columns: 1fr !important;
    }

    /* 3. Compact Partners (Not Gigantic) */
    .partner-card {
        flex-direction: row !important;
        /* Side-by-side */
        align-items: center !important;
        padding: 0.75rem !important;
        height: auto !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 0.5rem !important;
        border: 1px solid #f5f5f5 !important;
    }

    .partner-logo-container {
        height: 60px !important;
        width: 80px !important;
        padding: 0.5rem !important;
        flex-shrink: 0 !important;
        background: transparent !important;
    }

    .partner-info {
        text-align: left !important;
        padding: 0 0.5rem !important;
        border-top: none !important;
    }

    .partner-name {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
    }

    .partner-role {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }

    /* 4. Testimonials Mobile - Wider & Less Tall */
    .testimonials-grid {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .testimonial-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.25rem 1.5rem !important;
        margin-bottom: 0.75rem !important;
        min-height: auto !important;
        flex: none !important;
    }

    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .quote-icon {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .testimonial-author {
        padding-top: 1rem !important;
    }
}

/* === FOOTER (BASE) === */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: white !important;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === MAIN SPONSOR MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
    .partner-card:first-child {
        margin-bottom: 2rem !important;
        border: 1px solid var(--primary) !important;
        /* Leggero bordo */
        box-shadow: 0 4px 15px rgba(217, 50, 76, 0.15) !important;
    }

    .partner-card:first-child .partner-logo-container {
        height: 120px !important;
        /* Molto più piccolo */
        padding: 0.5rem !important;
    }

    .partner-card:first-child .partner-logo-container img {
        max-height: 100px !important;
        /* Logo grande ma proporzionato */
        transform: scale(1.3) !important;
        /* Zoom importante per visibilità */
    }

    .partner-card:first-child .partner-info {
        padding: 1.5rem 1rem !important;
    }

    .partner-card:first-child .partner-role {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .partner-card:first-child .partner-name {
        font-size: 1.2rem !important;
    }
}