body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: url('WP.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    overflow-x: hidden;
    user-select: none; /* Impedisce la selezione di testo */
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: rgba(0, 119, 204, 0.7);
    color: white;
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgba(0, 87, 138, 0.9);
    padding: 10px;
    transition: background-color 0.3s ease;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #ffcc00;
    color: #333;
    transform: scale(1.1);
}

section {
    display: flex;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards, moveIn 1s ease-in-out 0.5s forwards;
    overflow: hidden;
}

section div {
    flex: 1;
}

section div h2,
section div p,
section div ul {
    flex: 1 1 100%;
    padding: 20px;
}

section h2 {
    color: rgba(0, 119, 204, 0.8);
    font-size: 1.8em;
    margin-bottom: 15px;
}

section p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

section ul {
    text-align: left;
    margin-top: 10px;
}

section img {
    border-radius: 10px;
    max-width: 50%;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards, moveIn 1s ease-in-out 1s forwards;
    pointer-events: none; /* Impedisce l'interazione con l'immagine */
}

aside {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

aside img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards, moveIn 1s ease-in-out 1s forwards;
    pointer-events: none;
}

section#pingSection {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

section#pingSection button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

section#pingSection button:hover {
    background-color: #00558a;
}

section#pingSection p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Nuovi stili per il risultato del ping */
section#pingSection #risultatoPing {
    font-size: 1.5em;
    margin-top: 20px;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes moveIn {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}