.intro {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.animation-section {
    position: relative;
    height: 400vh;
}

.animation-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video a schermo intero */
.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fullscreen-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container del logo visibile */
.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 0; /* Inizia invisibile */
}

.logo-wrapper {
    position: relative;
    width: 70%;
    max-width: 800px;
    transform: scale(4); /* Inizia molto grande */
}

/* Container per il video mascherato */
.masked-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    opacity: 0; /* Inizia invisibile */
}

.masked-video-wrapper {
    position: relative;
    width: 70%;
    max-width: 800px;
    height: 0;
    padding-bottom: 53.3%; /* Proporzione basata sull'aspetto del logo */
}

.masked-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* La maschera verrà applicata via JavaScript */
}

.masked-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.outro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.outro h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.outro p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.button {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
}

