/* Reset CSS base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - Layout principale con transizioni */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.8s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 1rem;
}

/* Container per l'immagine di sfondo */
#background-image {
    width: 65%;
    max-width: 300px;
    margin-top: 3rem;
    /* opacity: 0; */
    transform: translateY(300px);
    transition: all 1s ease-in-out, transform 1s ease-in-out;
    position: absolute;
    top: 55%;
}

#background-image.visible {
    opacity: 1;
    transform: translateY(0);
}

#background-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main container */
main {
    text-align: center;
    padding: 2rem;
}

/* Testo principale con transizioni */
h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.8s ease-in-out;
    margin: 0;
}

/* Responsive design per schermi piccoli */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    h1 {
        font-size: clamp(3rem, 12vw, 6rem);
    }
}

/* Responsive design per schermi molto piccoli */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }
}

/* Responsive design per schermi molto grandi */
@media (min-width: 1920px) {
    h1 {
        font-size: 8rem;
    }
}