/* 1. RESET TOTALE PER ELIMINARE OGNI MARGINE NASCOSTO */
*, *::before, *::after {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html, body {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    background-color: #152000;
}

/* 2. STRUTTURA DESKTOP */
.container {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    /* Ricordati di cambiare l'URL con l'immagine di sfondo effettiva */
    background-image: url('../images/introbck.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.col-left {
    flex: 1 !important;
    background: transparent !important;
}

.col-right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.row {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    width: 100% !important;
}

/* GESTIONE IMMAGINI RIGIDE */
.responsive-img {
    max-width: 90% !important; /* Impedisce all'immagine di toccare i bordi */
    height: auto !important;
    display: block !important;
}

/* RIGHE E COLONNE INTERNE (LINGUE) */
.row-with-columns {
    display: flex !important;
    flex-direction: row !important;
}

.sub-col {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

/* Allineamenti Desktop richiesti */
.sub-col:nth-child(1) { justify-content: flex-end !important; padding-right: 25px !important; }
.sub-col:nth-child(2) { justify-content: center !important; }
.sub-col:nth-child(3) { justify-content: flex-start !important; padding-left: 25px !important; }


/* --- 3. CORREZIONE STRUTTURALE PER MOBILE (SCHERMI VERTICALI) --- */
@media screen and (max-width: 768px) {
    
    /* Elimina definitivamente lo spazio a sinistra */
    .col-left {
        display: none !important;
    }

    /* Forza la colonna a incollarsi in alto e a occupare lo schermo esatto del telefono */
    .col-right {
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        flex-direction: column !important;
        justify-content: space-around !important; /* Distribuisce lo spazio in modo armonioso */
    }

    /* Le righe non devono avere altezze rigide, si devono adattare alle immagini */
    .row {
        flex: none !important; 
        height: auto !important;
        padding: 10px !important;
    }

    /* Ridimensiona le immagini grandi affinché non forzino spazi extra verticali */
/*    .responsive-img {
        max-width: 80% !important;
        max-height: 25vh !important; /* Limita l'altezza massima basandosi sullo schermo del telefono */
/*        object-fit: contain !important;
    }

    /* Mantiene le bandiere affiancate e centrate su mobile */
    .row-with-columns {
        flex-direction: row !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }

    .sub-col {
        justify-content: center !important;
        padding: 0 5px !important; /* Crea una leggera spaziatura tra le bandierine */
    }
}