/* ==================== HERO SECTION ==================== */

.hero {
    padding: var(--space-3xl) 0 calc(var(--space-2xl) + 5rem);
    position: relative;
    background: transparent;
}

/* Dot pattern on hero background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(61, 90, 128, 0.07) 0.0625rem, transparent 0.0625rem);
    background-size: 2rem 2rem;
    pointer-events: none;
    z-index: 0;
}

/* Wave separator at hero bottom → transitions into white features section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 60C240 80 480 0 720 40C960 80 1200 20 1440 50V80H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 110rem;
}

.hero-content {
    max-width: 35rem;
}

.hero-title {
    margin-bottom: var(--space-lg);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    margin-bottom: var(--space-xl);
    font-size: 1.1875rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Trust list with check icons */
.hero-trust-list {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.hero-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-trust-list svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Screenshot */
.hero-image {
    position: relative;
}

.hero-image .screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* Decorative corner mark on screenshot */
.hero-image::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 3rem;
    height: 3rem;
    border-top: 0.1875rem solid var(--primary);
    border-right: 0.1875rem solid var(--primary);
    border-radius: 0 var(--radius-sm) 0 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: -0.5rem;
    width: 3rem;
    height: 3rem;
    border-bottom: 0.1875rem solid var(--primary);
    border-left: 0.1875rem solid var(--primary);
    border-radius: 0 0 0 var(--radius-sm);
    pointer-events: none;
    opacity: 0.6;
}

/* Text-only hero (no image column) */
.hero--text-only .container {
    grid-template-columns: 1fr;
    max-width: 45rem;
    text-align: center;
}

.hero--text-only .hero-content {
    max-width: none;
}

.hero--text-only .hero-cta {
    justify-content: center;
}

/* Hero image vertical (for mobile screenshots) */
.hero-image--vertical {
    display: flex;
    justify-content: center;
}

.hero-image--vertical .screenshot {
    max-width: 21.25rem;
    border-radius: var(--radius-lg);
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero-content {
        max-width: none;
    }

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

    .hero-trust-list {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 37.5rem;
        margin: 0 auto;
    }

    .hero-image--vertical .screenshot {
        max-width: 16.25rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-2xl) 0 calc(var(--space-xl) + 4rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .glass-btn-large {
        width: 100%;
    }

    .hero-image::before,
    .hero-image::after {
        display: none;
    }
}

/* Pagina galleria: posizionamento sfondo hero */
.page--gallery .page-hero__bg {
    background-position: center 26%;
}
