@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

body {
    margin: 0;
    font-family: "Verdana", sans-serif;
    color: white;
    text-align: center;
    min-height: 100vh;
    position: relative;

    /* Mantieni il gradiente e altri effetti */
    background: radial-gradient(circle at 30% 20%, #3fae55 0%, #2f8a41 40%, #135423 100%);
    background-repeat: no-repeat;
    background-attachment: fixed; /* rimane per PC */
    background-size: cover;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4);

    /* Hack per Safari/iOS: forzare il rendering corretto */
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
}

/* Pseudo-elemento per l'immagine con trasparenza */
body::before {
    content: "";
    position: fixed; /* resta fisso come l’immagine originale */
    inset: 0;
    background-image: url("../images/sfondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06; /* <-- regola qui la trasparenza */
    z-index: -1; /* resta dietro al contenuto */

    /* Hack iOS per migliorare il rendering */
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8em;
    }

    input[type="button"] {
        font-size: 1.3em;
        padding: 14px 35px;
    }
}
