﻿:root {
    --bg-dark: #05060a;
    --bg-gradient: radial-gradient(circle at center, #3b1d4a, #05060a 70%);
    --primary: #5b7cfa;
    --secondary: #b06cf7;
    --text-main: #ffffff;
    --text-muted: #cfcfe6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* HERO / CAROSELLO */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel {
    height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 13%), rgba(0, 0, 0, .85));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-content {
    max-width: 900px;
    text-align: -webkit-center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white !important;
}

    .hero h1 span {
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 25px rgba(91,124,250,.5);
}

    .btn-primary:hover {
        transform: scale(1.05);
    }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
}

    .btn-outline:hover {
        background: rgba(255,255,255,.1);
    }

/* SEZIONI */
section {
    padding: 5rem 1.5rem;
    max-width: 1100px;
    margin: auto;
}

    section h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    section p {
        color: var(--text-muted);
    }

.card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 0;
}
.scroll-down {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}


    .scroll-down a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        color: #fff;
        text-decoration: none;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        opacity: 0.9;
        animation: bounce 2s infinite;
    }


    .scroll-down img {
        width: 36px;
        height: auto;
        filter: invert(1);
    }


    .scroll-down a:hover {
        opacity: 1;
    }


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

40% {
    transform: translateY(8px);
}

60% {
    transform: translateY(4px);
}

}

.card-image {
    width: 100%;
    height: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    margin-top: 2rem;
}

    .card-image img {
        width: 100%;
        max-width: fit-content;
        height: 100%;
        place-self: center;
        object-fit: contain;
        display: block;
    }

.card-wrapper {
    margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    section {
        padding: 3rem 1.2rem;
    }
}