/* --- RESET INIZIALE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    width: 100%;
    min-height: 100%;
    background-color: #f5f5f5;
}

body {
    padding-top: 72px; /* Spazio per l'header fisso */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER (identico a index.css) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: #0d3b66;
    margin-bottom: 0 !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO (identico a index.css) --- */
.logo {
    position: absolute;
    left: 25px;
    top: 18px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    background-color: transparent;
    text-shadow: none;
    z-index: 10000;
}

/* --- NAVBAR (identica a index.css) --- */
nav {
    position: absolute;
    right: 35px;
    top: 22px;
    z-index: 10000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a, nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: .25s;
    background-color: transparent;
    text-shadow: none;
}

nav a:hover, nav ul li a:hover {
    color: #8fd3ff;
}

/* --- LAYOUT GENERALE: DUE COLONNE --- */
.layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-left: 46px;
    margin-top: 20px;
    flex: 1;
}

/* Colonna sinistra */
.col-sx {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TextBox */
#richTextBox1, #richTextBox2 {
    width: 300px;
    height: 150px;
    font-size: 18px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Colonna destra */
.col-dx {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Radiobutton + traduci affiancati */
.radio-and-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* Radiobutton in colonna */
.radio-group-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 18px;
}

/* Bottone traduci */
#button1 {
    height: 50px;
    width: 120px;
    font-size: 18px;
    cursor: pointer;
}

/* pictureBox1 */
#pictureBox1 {
    width: 330px;
    height: 330px;
    background-color: silver;
    border: 1px solid #999;
}

/* label2 */
#label2 {
    display: inline-block;
    background-color: rgb(255,192,192);
    border: 3px inset #000;
    font-size: 24px;
    font-weight: bold;
    color: rgb(0,0,192);
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
}

/* --- TOP RIGHT LINKS (Opzionali) --- */
.top-links {
    position: absolute;
    top: 20px;
    right: 20px;
}

.top-links a {
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.top-links a:first-child {
    color: #0077cc; 
}

.top-links a:last-child {
    color: #d00; 
}

/* --- FOOTER / CONTATTI (identico a index.css) --- */
#contatti, footer {
    margin-top: 40px;
    background: #0d3b66;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 1rem;
    line-height: normal;
    width: 100%;
    position: relative;
    z-index: 10;
}

#contatti a, footer a {
    color: #8fd3ff;
    text-decoration: none;
}

#contatti a:hover, footer a:hover {
    text-decoration: underline;
}

/* --- MEDIA QUERY DISPOSITIVI MOBILI --- */
@media(max-width:900px){
    .logo {
        position: static;
        text-align: center;
        margin-top: 5px;
    }
    nav {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .header {
        height: auto;
        padding-bottom: 20px;
    }
    .layout {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
    }
}
