/* Sfondo della pagina come nel laboratorio */
body {
    background-color: #4a332d; /* Il marrone scuro che vediamo nello screenshot */
    margin: 0;
    padding: 0;
}

.laboratorio-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px;
    min-height: 100vh;
}

/* Il foglio crema responsive */
.foglio-manuale {
    background-color: #f4e9cd; /* Il crema del manuale */
    border: 1px dashed #63422e;
    border-radius: 4px;
    padding: 30px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: #4a332d;
}

/* Icone piccole e pulite */
.scelta-personaggio {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.icona-mini {
    width:100px; /* Piccole  */
    height: auto;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 5px;
    transition: 0.3s;
    cursor: pointer;
}

/* Effetto selezione */
input[type="radio"]:checked + img {
    border-color: #63422e;
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

/* Input e Bottone stile Manuale */
.input-nome {
    width: 100%;
    padding: 12px;
    border: 1px solid #63422e;
    background: #fff;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn-scarica {
    background-color: #63422e;
    color: #f4e9cd;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}
.testo-discorsivo {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #5d4037;
    text-align: left; /* Per dare l'idea di una lettera/manuale */
}

.titolo-manuale {
    font-family: 'Fredoka One', cursive; /* O il font medievale che preferisci */
    color: #a52a2a;
    margin-top: 0;
}

.label-input {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.pulsantiera-diplomi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondario {
    display: block;
    background-color: transparent;
    color: #63422e;
    border: 2px solid #63422e;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondario:hover {
    background-color: #63422e;
    color: #f4e9cd;
}

/* Responsività per schermi medi */
@media (min-width: 600px) {
    .pulsantiera-diplomi {
        flex-direction: row;
    }
    .btn-scarica, .btn-secondario {
        flex: 1;
    }
}
.stellina-magica {
    position: fixed;
    pointer-events: none;
    width: 15px;
    height: 15px;
    background-color: gold;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 9999;
    animation: sparisci 1s forwards;
}

@keyframes sparisci {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(180deg) translateY(50px); opacity: 0; }
}