/* Aggiungi questo all'inizio del file CSS per importare il font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: white;
    background: linear-gradient(135deg, #000000, #6b6b6b);
    background-attachment: fixed;
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.vertical-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px; /* Regola la larghezza della navbar */
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Sfondo trasparente */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centra verticalmente */
}

.nav-item {
    margin: 10px 0;
}

.burger-menu {
    font-size: 2em;
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
}

nav ul {
    display: none;
    flex-direction: column;
    list-style: none;
    position: absolute;
    left: 70px; /* Spostato a destra della navbar verticale */
    background: #333;
    border-radius: 5px;
}

nav ul.show {
    display: flex;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    display: block;
    padding: 10px 20px;
}

nav ul li a:hover {
    font-weight: bold;
}

.icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fixed-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: fixed;
    height: calc(100vh - 50px); /* Adjust for fixed nav */
    top: 50px; /* Space for the fixed nav */
    overflow: hidden; /* Ensure no overflow */
}

.image-container {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img.profile-pic {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 50%;
    filter: grayscale(100%); /* Immagine in bianco e nero di default */
    transition: filter 0.5s ease; /* Transizione del filtro */
}

.info-container {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.divider {
    width: 1px;
    background: white;
    height: 75vh;
    align-self: center;
    position: sticky;
    left: 50%;
    top: 65px; /* Adjust for fixed nav */
    transform: translateX(-50%);
}

.scrollable-content {
    width: 50%;
    margin-left: 50%; /* Align next to the fixed content */
    overflow-y: auto;
    padding: 20px;
    padding-top: 5%; /* Increase extra space at the top */
    padding-bottom: 5%; /* Increase extra space at the bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    text-align: center;
	mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.section {
    width: 90%; /* Set the width to 90% of the container */
    margin: 20px auto; /* Center the section */
    padding-top: 20px; /* Extra space to ensure content is visible */
    margin-top: -20px; /* Compensate for padding */
}

.section-divider {
    height: 1px;
    background: white;
    width: 80%; /* Ensure the divider spans the width of the section */
    margin: 20px auto; /* Center the divider */
    align-self: center;
}

.collapsible {
    background-color: #4CAF50; /* Verde */
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 30px;
    height: 30px;
    border: none;
    text-align: center;
    outline: none;
    font-size: 18px;
    line-height: 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.collapsible::after {
    content: '+';
}

.collapsible.active::after {
    content: '-';
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: rgba(47, 47, 47, 0.4); /* Colore #2f2f2f con trasparenza al 40% */
    margin-top: 10px;
    border-radius: 10px; /* Angoli arrotondati */
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    margin-bottom: 10px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 2em;
    margin-bottom: 20px; /* Add more space below h2 */
}

h3 {
    margin-top: 20px; /* Add space above h3 */
}

ul {
    list-style: none;
    margin: 10px 0;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

a {
    color: #4CAF50; /* Verde */
}

a:hover {
    color: #388E3C; /* Verde scuro */
}

.last {
    position: fixed; /* Rende il div fisso rispetto alla finestra del browser */
    bottom: 0; /* Posiziona il div in fondo alla pagina */
    left: 50%; /* Posiziona il div orizzontalmente al centro */
    transform: translateX(-50%); /* Centra il div orizzontalmente */
	color: black;
    font-weight: bold;
    font-size: 1.25em; /* Adjust font size for mobile */

}

.nav-item-cookie {
    margin: 10px 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Nascondi di default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    text-align: left;
}

.close-modal {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .vertical-nav {
        flex-direction: row;
        bottom: 0;
        width: 100%;
        height: 60px;
        justify-content: space-around;
        top: auto;
    }

    .container {
        flex-direction: column;
        margin-left: 0;
    }

    .fixed-content, .scrollable-content {
        width: 100%;
        padding: 10px;
    }

    .fixed-content {
        position: relative;
        height: 45vh; /* Set to 30% of the viewport height */
        display: flex;
        flex-direction: row; /* Layout content in a row */
        justify-content: space-between; /* Space out the content */
		top: 10px;
    }

    .info-container {
        width: 50%; /* Each takes up half the width */
        height: auto;
        margin-top: auto;
    }
	.image-container {
        width: 50%; /* Each takes up half the width */
        height: 100%;
    } 

    .info-container p {
        font-size: 0.8em; /* Adjust font size for mobile */
    }

    .divider {
        display: none;
    }

    .scrollable-content {
        width: 100%;
        height: 80%; /* Set to 80% of the viewport height */
        margin-left: 0;
        margin-top: 20%;
        margin-bottom: 120px;
    }


    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: auto;
        bottom: 60px; /* Posiziona il menu sopra la navbar in basso */
        left: 0;
        width: 100%;
        background: #333;
        border-radius: 5px;
    }

    nav ul.show {
        display: flex;
    }
	
	
    h1 {
        font-family: 'Montserrat', sans-serif;
        font-weight: normal;
        margin-bottom: 10px;
        font-size: 1em;

    }
	
    .last {
	    padding-bottom: 60px; /* Increase extra space at the bottom */
		width: 100%;
		text-align: center;
	}

}