/* ===== 1. RESET E TIPOGRAFIA GLOBALE ===== */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== 2. STRUTTURA LAYOUT ===== */
#column {
    width: 100%;
    flex-grow: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
}

#SplitContent {
    width: 100%;
    padding: 0 3%;
    box-sizing: border-box;
}

#RighTextContainer {
    width: 100%;
}

#TransparentSpacer {
    height: 30px;
}

footer {
    width: 100%;
    background-color: black;
    color: white;
    height: auto;
    padding: 20px 0; 
    text-align: center;
    flex-shrink: 0;
}

/* ===== 3. LAYOUT DESKTOP (AFFIANCATO) ===== */
#RightTextContent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    line-height: 1.6;
}

#SBLImage {
    flex-shrink: 0;
    width: 250px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.bio-text-wrapper {
    flex: 1;
    min-width: 0;
}

.bio-text-wrapper p, .bio-testo-attivo {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* ===== 4. LAYOUT MOBILE (COSTRUTTORE VERTICALE) ===== */
@media screen and (max-width: 768px) {

    /* Sposta il testo sotto l'immagine */
    #RightTextContent {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;    
        gap: 25px !important;
        width: 100% !important;
    }

    /* INGRANDISCE L'IMMAGINE su mobile (prende l'80% della larghezza schermo) */
    #SBLImage {
        display: block !important;
        width: 80% !important;             
        max-width: 340px !important;       
        height: auto !important;           
        float: none !important;            
        flex-shrink: 0 !important;
    }

    /* MANDA IL TESTO A CAPO occupando tutta la larghezza */
    .bio-testo-attivo {
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;        
        line-height: 1.6 !important;
        color: white !important;
        word-wrap: break-word !important;  
    }

    /* Formatta i paragrafi se stampati dal PHP */
    .bio-testo-attivo p {
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5em !important;
    }
}