@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* public/css/style.css */

body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    margin: 0;
    line-height: 1.5;
    background-color: #131313;
    color: #adadad;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	font-size: 1rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit; 
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
} 

h1 { font-size: 2.5rem; 	color: #FFFFFF}
h2 { font-size: 2rem;  		color: #CCD0D1}
h3 { font-size: 1.75rem;  	color: #CCD0D1}
h4 { font-size: 1.5rem;  	color: #CCD0D1}
h5 { font-size: 1.2rem;  	color: #CCD0D1}
h6 { font-size: 1rem;  		color: #CCD0D1}

.page-content p, .page-content span, .page-content li {
    font-size: 1.1rem;
}

.text-container {
    max-width: min(100%, 1140px);
    margin: 2rem auto; /* Centra il blocco */
    text-align: left; /* Allinea a sinistra il testo al suo interno */
}

strong {
    color: #e6e6e6;
}

a {
    color: #7dbc47;
    text-decoration: none;
}

a:hover {
    color: #e7e03c;
}

.main-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    max-width: 1140px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
    margin-bottom: 0;
    display: block; /* Fix potential alignment issues */
}

.site-subtitle {
    margin: 0;
    color: #adadad;
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 400;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
    /*text-transform: uppercase;*/
    font-size: 0.9rem;
}

.main-nav a:hover {
    color: #e7e03c;
    /*border-bottom-color: #e7e03c;*/
}

.hamburger-icon {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.content-area {
    padding: 2rem;
    max-width: 1140px;
    margin: 0 auto;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 1rem;
}

.image-gallery {
    display: block;
    margin: 2rem 0;
}

.image-gallery img {
    margin-bottom: 2rem;
}

.button {
    display: inline-block;
    background-color: #7dbc47;
    color: #131313;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #e7e03c;
    color: #131313;
}

.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: #1f1f1f;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        padding: 1rem;
    }

    .site-subtitle {
        margin: 1rem 0;
    }

    .header-right {
        display: none; /* Hide by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(31, 31, 31, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        gap: 3rem; /* Add some space between elements */
    }

    .header-right.is-active {
        display: flex; /* Show the overlay when active */
    }

    .main-nav {
        display: block; /* Ensure the nav inside is visible */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .hamburger-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
    }
}

/* Layout for side-by-side images */
.image-row {
    display: flex;
    justify-content: center; /* Center the columns */
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-column img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-button {
    background-color: #131313; /* Darker background */
    color: #e6e6e6;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 0px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-button:hover {
    background-color: #333;
}

.language-button img {
    width: 20px;
    height: auto;
    display: block;
    border-radius: 2px;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #444;
    border-radius: 4px;
    margin-top: 4px;
}

.language-dropdown a {
    color: #e6e6e6;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-dropdown a:hover {
    background-color: #7dbc47;
    color: #131313;
}

.language-dropdown a img {
    width: 20px;
    height: auto;
    display: block;
    border-radius: 2px;
}

.language-switcher:hover .language-dropdown {
    display: block;
}

.admin-link a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #4a4a4a;
    color: #e6e6e6;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.admin-link a:hover {
    background-color: #7dbc47;
    color: #131313;
}

.language-dropdown .active {
    background-color: #1f1f1f;
    font-weight: bold;
}

/* About Me Page Layout */
.about-me-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.about-me-sidebar {
    flex: 0 0 250px; /* Do not grow, do not shrink, base width 250px */
    text-align: center;
}

.about-me-sidebar .profile-picture {
    width: 80%;
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #444;
}

.contact-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-list img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0;
}

.contact-list span,
.contact-list a {
    line-height: 1.5;
}

.about-me-content {
    flex: 1; /* Take up remaining space */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-me-container {
        flex-direction: column;
        align-items: center;
    }
    .about-me-sidebar {
        flex-basis: auto; /* Reset basis */
        width: 100%;
    }

    /* Mobile submenu overrides */
    .main-nav .sub-menu {
        position: static;
        display: none; /* Hidden by default */
        width: 100%;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        padding-left: 1rem;
        border-radius: 0;
    }
    .main-nav li.submenu-open > .sub-menu {
        display: block; /* Show on click */
    }
}

/* Stile per i sottomenu a discesa */
.main-nav ul li {
    position: relative; /* Necessario per posizionare correttamente il sottomenu */
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%; /* Appare subito sotto l'elemento genitore */
    left: 0;
    background-color: #2a2a2a; /* Sfondo scuro per il dropdown */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombra per darti profondità */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px; /* Larghezza minima del dropdown */
    z-index: 1000;
    border-radius: 4px;
    /*border: 1px solid #444;*/
}

@media (min-width: 901px) {
    .main-nav ul li:hover > .sub-menu {
        display: block; /* Mostra il sottomenu al passaggio del mouse */
    }
}

.sub-menu li {
    padding: 0;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #7dbc47; /* Colore come link principali */
    text-decoration: none;
    white-space: nowrap; /* Evita che il testo vada a capo */
    transition: color 0.3s;
}

.sub-menu li a:hover {
    color: #e7e03c; /* Colore hover come link principali */
    background-color: transparent; /* Nessun cambio di sfondo su hover */
}