body {
    background-color: rgb(249, 237, 221);
}

.titolo {
    color: rgb(233, 119, 5);

    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 900;
    font-size: 5rem;

    text-align: center;

    margin-top: 0;
    margin-bottom: 5px;
}

.sottotitolo {
    margin: 0;
    font-size: 4rem;
    font-weight: 900;
}

.paragrafo {
    text-align: justify;
    margin: 0;
    font-size: 2rem;
}

.contenitorePadre {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.contenitore {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
}

/* ✅ REGOLA MAGICA: inverti ordine solo qui */
.contenitore.invertito .div {
    order: 2;
}
.contenitore.invertito .divTxt {
    order: 1;
}

.div {
    background-color: rgb(233, 119, 5);
    color: white;
    width: 40%;

    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

    margin-top: 8px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.divTxt {
    background-color: rgb(233, 119, 5);
    color: white;
    width: 60%;

    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);

    margin-top: 8px;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.contenuto {
    width: 100%;
    padding: 0 15px 10px 15px;
    box-sizing: border-box;
    
    display: flex;
    align-items: center;
}

.div img {
    width: 90%;
    height: auto;
    margin: 3px;
    border-radius: 20px;
}

.linea {
    width: 95%;
    border: 1px solid white;
    margin-top: 2px;
}
