body {
    margin: 0;
    width: 100%;
    height: 100vh;
    background-color: #F5F5D2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
}
/*
    altro colore bello #774b17 marrone castagna
*/
.container {
    display: flex;
    justify-content: space-between;
    flex: 1 1 100%;
    flex-direction: column;
    margin: 20px 0;
    flex-grow: 0;
    padding-bottom: 60px;
    width: 50%;
}

.project {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 100%;
    width: 100%;
    padding-top: 2vh;
}

.project-text{
    display: flex;
    flex-direction: column;
    color: #2a2261;
    font-family: Humane-Thin;
    font-size: 50px;
    padding: 0 10px 0 10px;
}

.project-text-title{
    font-family: "Inter";
    font-size: 4vh;
    font-weight: 600;
}

.project-text-content{
    font-family: "Inter";
    font-optical-sizing: auto;
    font-size: 3vh;
}

.project-img{
    display: flex;
}

.project-img img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* o 'cover' se vuoi che riempia */
  transition: 1s;
}

.project-img img:hover {
  transform: scale(1.02);
}

.title {
    padding: 1.5vh 2vw;
    background-color: #F5F5D2;
    color: #2a2261;
    display: flex; /* Usa Flexbox */
    justify-content: space-between; /* Spinge gli elementi ai lati opposti */
    align-items: center; /* Allinea verticalmente */
    flex: 0 0 100%;
    margin: 0;
    font-family: Humane-Thin;
    font-size: 10vh;
    user-select: none;
    pointer-events: none;
    border-bottom: 1px solid rgb(187, 187, 187);
}

h1{
    margin: 0;
}

footer {
    text-align: center;
    font-size: 200px;
    font-family: Humane-Medium;
    padding: 10px;
    width: 100%;
    background-color: #2a2261;
    color: #F5F5D2;
    position: relative;
    bottom: 0;
    user-select: none;
    pointer-events: none;
}

html, body {
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(200, 200, 200, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(32, 32, 32, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(32, 32, 32, 1);
}

@media (max-width: 768px) {
    .main {
        width: 80%;
    }

    .side-left, .side-right {
        display: none;
    }

    .title {
        font-size: 90%;
    }
}

a {
    text-decoration: none;
    color: #2a2261;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #2a2291;
}

a:active {
    color: #2a2231;
}

.side-left a, .side-right a, .main a {
    font-size: 16px;
}

@font-face {
    font-family: 'Humane-Thin';
    src: url('../font/Humane/Humane-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Humane-Medium';
    src: url('../font/Humane/Humane-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    z-index: 1000;
}

.cookie-banner a {
    color: #ffeb3b;
    text-decoration: none;
}

.cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 20px;
}

.cookie-banner button:hover {
    background-color: #45a049;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
