/* Reset e impostazioni base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a; /* Grigio scuro coerente con la home */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    padding-top: 200px; /* Spazio per l'header fisso */
}

/* Header Animato (uguale alla Home) */
.titolo {
    position: fixed;
    top: 0;
    width: 80%;
    left: 10%;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border: 3px solid black;
    animation: titolo 7s infinite;
}

@keyframes titolo {
    0% { background: #00ffff; color: #0000ff; }
    50% { background: #0000ff; color: #00ffff; }
    100% { background: #00ffff; color: #0000ff; }
}

/* Bottone Menu/Back */
.menubtn {
    width: 60px;
    height: auto;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.menubtn:hover {
    transform: scale(1.1);
}

/* Spaziatori */
.spazio {
    height: 20px;
}

.riga {
    height: 40px;
}

/* Card delle Versioni */
.versione {
    background: #2d2d2d;
    width: 80%;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border: 3px solid black;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-bottom: 5px solid #00ffff;
}

.rigatitoloversione {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3b3b3b;
    border-bottom: 3px solid black;
}

.nomeversione {
    background: transparent;
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 20px;
    width: 70%;
}

.dataversione {
    background: rgba(0,0,0,0.2);
    color: #aaa;
    font-size: 1.1rem;
    padding: 15px 20px;
    text-align: right;
    width: 30%;
}

/* Contenuto della card */
.descrizioneversione {
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 25px;
    color: #e0e0e0;
}

/* Bottone "See More" */
.linkversione {
    width: 60%;
    margin: 15px auto 25px auto;
    background: #00ffff;
    color: #000;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 12px;
    border: 2px solid black;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.linkversione:hover {
    background: #ffffff;
    transform: scale(1.05);
}

/* Rimuove i bordi extra usati come distanziatori nel vecchio codice */
.versione .riga {
    display: none; /* Nascondiamo i div riga dentro la card per pulizia */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .titolo {
        width: 100%;
        left: 0;
        border-radius: 0;
        font-size: 1.5rem;
    }
    
    .versione {
        width: 95%;
    }
    
    .rigatitoloversione {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nomeversione, .dataversione {
        width: 100%;
        text-align: left;
    }

    .menubtn {
        width: 45px;
    }
}