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

:root {
    /* Colori Principali */
    --primary-color: #1a4d8c;
    --primary-dark: #0f3460;
    --primary-light: #2d6fc7;
    --secondary-color: #f4a261;
    --accent-color: #e76f51;
    
    /* Colori Neutri */
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --white: #ffffff;
    
    /* Gradienti */
    --gradient-primary: linear-gradient(135deg, #1a4d8c 0%, #2d6fc7 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 77, 140, 0.9) 0%, rgba(15, 52, 96, 0.9) 100%);
    
    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transizioni */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(26, 77, 140, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    position: relative;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.menu-toggle {
    display: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a4d8c 0%, #0f3460 100%);
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
    /* Fix Safari mobile */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* Fix Safari mobile */
    -webkit-object-fit: cover;
    -webkit-object-position: center;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 77, 140, 0.35) 0%,
        rgba(15, 52, 96, 0.45) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-lg);
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.98;
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(26, 77, 140, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 77, 140, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-alt {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle strong,
.section-subtitle .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.content-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.content-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.content-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   CROWDFUNDING SECTION
   ============================================ */
.crowdfunding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.crowdfunding-text .lead {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
    line-height: 1;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.7;
}

.crowdfunding-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.crowdfunding-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* ============================================
   REFERRAL SECTION
   ============================================ */
.referral-hero {
    text-align: center;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 20px;
    color: var(--white);
}

.referral-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.badge-text {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 2px;
}

.badge-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin: var(--spacing-sm) 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.referral-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.referral-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.referral-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 77, 140, 0.2);
}

.referral-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.referral-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.referral-card p {
    color: var(--gray);
    line-height: 1.7;
}

.referral-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ============================================
   PROFITTI SECTION
   ============================================ */
.profitti-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: start;
}

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

.profit-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(26, 77, 140, 0.3);
    margin-bottom: var(--spacing-md);
}

.profit-percentage {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.profit-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.profit-explanation {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

.profitti-details h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.profit-reasons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.reason-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.reason-icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.reason-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reason-content p {
    color: var(--gray);
    line-height: 1.7;
}

.profit-comparison {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-item {
    margin-bottom: var(--spacing-md);
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
}

.comparison-bar {
    height: 40px;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--spacing-sm);
    color: var(--white);
    font-weight: 600;
    transition: width 1s ease;
}

.highlight-bar {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

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

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    line-height: 1.7;
}

.social-links {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.social-icon {
    font-size: 2rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
}

.footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-contact h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .footer-contact ul {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-contact ul li:not(:last-child)::after {
        content: '•';
        margin-left: 1rem;
        opacity: 0.6;
    }
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-social {
    display: flex;
    gap: var(--spacing-xs);
}

.footer-social a {
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-menu li {
        width: auto;
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .logo img {
        height: 45px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero .container {
        min-height: calc(100vh - 70px);
        padding: 1rem;
    }

    .hero-video,
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
        -webkit-object-fit: cover;
        -webkit-object-position: center;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(26, 77, 140, 0.45) 0%,
            rgba(15, 52, 96, 0.55) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }

    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.15;
        margin-bottom: 1rem;
        text-shadow: 0 3px 25px rgba(0, 0, 0, 0.7);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .crowdfunding-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profitti-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .badge-number {
        font-size: 4rem;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-wrapper {
        padding: 0.5rem 0;
    }

    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero .container {
        min-height: calc(100vh - 60px);
        padding: 0.5rem;
    }

    .hero-video,
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
        -webkit-object-fit: cover;
        -webkit-object-position: center;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(26, 77, 140, 0.5) 0%,
            rgba(15, 52, 96, 0.6) 50%,
            rgba(0, 0, 0, 0.35) 100%
        );
    }

    .hero-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 30px;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

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

    .content-grid,
    .referral-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-card,
    .referral-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .badge-number {
        font-size: 3rem;
    }

    .profit-percentage {
        font-size: 2.5rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

/* Media query per schermi molto piccoli */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
    }

    .hero-buttons .btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .content-card,
    .referral-card {
        padding: 1.25rem;
    }

    .badge-number {
        font-size: 2.5rem;
    }
}


/* Fix specifico per Safari iOS */
@supports (-webkit-touch-callout: none) {
    .hero-video,
    .hero-image {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
}
