@font-face {
    font-family: 'Attendant';
    src: url('../sources/Attendant0.3-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Field Grot';
    src: url('../sources/Field_Grot_Wide_0624_Trial-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: rgb(0,0,0);
    color: rgb(220, 220, 220);
    font-family: 'Field Grot', sans-serif;
    font-size: 1.1vw;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* Blocca lo scroll della pagina intera, scorrono solo le colonne */
}

::-webkit-scrollbar {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #fff;
    text-decoration: underline;
}

.orientation {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.verso, .recto {
    padding: 2em 1.2em 4em 2em;
    border-right: 1px solid rgb(50,50,50);
    overflow-y: scroll;
    overflow-x: hidden;
}

.verso {
    flex: 1;
    padding-bottom: 10em;
}

.recto {
    flex: 2;
    border-right: 0;
    padding: 0;
    background: linear-gradient(to bottom, rgba(100,100,100,0.1), rgba(200,200,200,0.6), rgba(100,100,100,0.1)) no-repeat center / 1px 100%;
    padding-bottom: 10em;
}

/* Navigazione Verso */
nav {
    margin-bottom: 2.5em;
    font-size: 1.2rem;
}
nav .home {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5em;
    letter-spacing: -0.03em;
}
nav .nav-links a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Testo Verso */
.verso-index {
    font-size: 0.95rem;
}
.verso-index p {
    margin-bottom: 1.5em;
    text-indent: 3em;
}
.verso-index p.no-indent {
    text-indent: 0;
}
.verso-index p.contact {
    position: fixed;
    bottom: 2em;
    right: 2.5em;
    z-index: 100;
    text-indent: 0;
    margin: 0;
    color: rgb(150, 150, 150);
    font-size: 0.9rem;
    background: transparent;
    padding: 0;
    display: flex;
    gap: 0.8em;
}
.verso-index p.contact a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.verso-index p.contact a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Elenco Progetti Verso */
.section-header {
    margin-top: 4em;
    margin-bottom: 1em;
}
.section-header h1 {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.item {
    border-top: 1px solid rgb(50,50,50);
    padding: 0.8rem 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.item:hover {
    color: #fff;
    cursor: pointer;
    padding-left: 0.5rem;
}
.item-details {
    display: flex;
    justify-content: space-between;
    margin: 0;
    font-size: 0.95rem;
}
.collaborator {
    color: rgb(120,120,120);
}

/* Recto (Right side) styles */
.synopsis {
    padding: 4em 4em;
    min-height: 50vh;
}

/* Giant Index Style at the top of Recto */
.giant-index-block {
    margin-bottom: 0.2rem;
}
.giant-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.9rem;
    color: rgb(80, 80, 80);
    margin-bottom: 0.2rem;
    padding: 0 4em; /* Match synopsis padding */
}
.gl-left {
    /* far left */
}
.gl-right {
    /* starts at central line */
    padding-left: 1em; 
}
.giant-word-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.giant-word {
    font-family: 'Field Grot', sans-serif;
    font-size: 3.5vw;
    line-height: 0.95;
    font-weight: 400;
    color: rgb(220, 220, 220);
    display: inline-block;
    letter-spacing: -0.02em;
    padding: 0 0.5em; /* Optical alignment */
    text-transform: uppercase;
}
.giant-word:hover {
    color: rgb(150, 150, 150);
    text-decoration: none;
}

.recto h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.2em;
    margin-left: 0;
    letter-spacing: -0.03em;
}
.description {
    font-size: 1.05rem;
    width: 48%; /* Keep strictly left of center */
    margin-left: 0;
    line-height: 1.5;
}
.description a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    color: rgb(150,150,150);
    font-size: 1rem;
    display: inline-block;
    margin-top: 1em;
}
.description a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        font-size: 16px;
        overflow: auto; /* Riabilita lo scroll nativo su mobile */
    }
    .orientation {
        flex-direction: column;
        height: auto;
    }
    .verso {
        border-right: none;
        border-bottom: 1px solid rgb(50,50,50);
        overflow-y: visible;
        padding-bottom: 2em;
    }
    .recto {
        overflow-y: visible;
        background: none; /* Rimuoviamo la linea divisoria centrale su mobile */
    }
    .recto h1, .description {
        margin-left: 0;
    }
    .description {
        width: 100%; /* Fix width on mobile */
    }
    .synopsis {
        min-height: auto;
        padding: 2em 1em;
    }
    .verso-index p.contact {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 3em;
        padding: 0;
    }
}
