@font-face { font-family: 'Open Sauce One'; src: url('open-sauce.one-regular.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }


:root {
    --vh: 1vh;

    --panel:         #ebebeb;
    --text:          #252422; 
    --amber:         #5271ff;
    --aww-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    margin: 0px;
    line-height: 1.4;
    font-family: 'Open Sauce One', sans-serif;
    background-color: var(--panel);
}

.container {
    width: 100%;
    height: 100%;
}



#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(82, 113, 255, 0.55) 0%,
        rgba(82, 113, 255, 0.28) 45%,
        rgba(82, 113, 255, 0) 78%
    );
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}



.section {
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
}


.nav {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    padding: 1.6rem 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.navtitolo {
    font-family: 'Open Sauce One', sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: clamp(1rem, 0.85rem + 0.5vw, 2rem);
    color: #111111;
    text-transform: uppercase;
}

.colleg {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 1rem + 2vw, 3rem);
    flex-wrap: wrap;
}

.colleg a {
    font-family: 'Open Sauce One', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.1rem);
    letter-spacing: 0.01em;
    color: #111111;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0.1rem;
    transition: color 0.3s ease;
}

.colleg a:hover,
.colleg a.active {
    color: var(--amber);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111111;
    border-radius: 2px;
    transition: transform 0.3s var(--aww-ease, ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 760px) {
    .nav {
        padding: 0.9rem 5vw;
        justify-content: space-between;
    }
    .nav-toggle {
        display: flex;
    }
    .colleg {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
        padding: 1.4rem 0 1.8rem;
        background-color: var(--panel);
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        z-index: 15;
    }
    .colleg.open {
        display: flex;
    }
}


.section-hero2 {
    display: flex;
    flex-direction: column;
    background-color: var(--panel);
}

.sez1 {
    width: 100%;
    flex-shrink: 0;
    height: 34%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4vw;
    padding: 0 4vw;
}

.logo {
    margin: 0;
    flex-shrink: 0;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-top: 17vh;
    font-size: clamp(2.75rem, 1rem + 9vw, 12rem);
    line-height: 1;
    color: #111111;
}

.p1 {
    margin: 0;
    margin-top: 18vh;
    text-align: right;
    font-weight: 400;
    color: #111111;
    font-size: clamp(0.9rem, 0.55rem + 1vw, 2rem);
    max-width: 45ch;
    line-height: 1.3;
}

.linea {
    width: 100%;
    flex-shrink: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: 0vh;
    margin-bottom: 4vh;
}


.linea-interna {
    display: none;
}

.img {
    width: 100%;
    flex: 1;
    min-height: 0;
    background-image: url(1.jpg);
    background-size: cover;
    background-position: center 60%;
}

@media (max-width: 760px) {
    .sez1 {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 3.5vh 6vw;
    }
    .logo {
        margin-top: 0;
        font-size: clamp(2.25rem, 1.5rem + 10vw, 4rem);
    }
    .p1 {
        margin-top: 0;
        max-width: 100%;
        text-align: left;
        font-size: clamp(0.85rem, 0.6rem + 1.4vw, 1rem);
    }
    .linea-interna {
        display: block;
        width: 100%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0);
        margin: 1.2rem 0;
    }
}


.logo,
.p1 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--aww-ease, ease), transform 1s var(--aww-ease, ease);
}

.linea {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--aww-ease, ease);
}

.img {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.2s var(--aww-ease, ease);
}

.section.in-view .logo,
.section.in-view .p1 {
    opacity: 1;
    transform: translateY(0);
}

.section.in-view .linea {
    transform: scaleX(1);
}

.section.in-view .img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.section-hero2.in-view .logo { transition-delay: 0.1s; }
.section-hero2.in-view .p1 { transition-delay: 0.3s; }
.section-hero2.in-view .linea { transition-delay: 0.5s; }
.section-hero2.in-view .img { transition-delay: 0.6s; }




.sez2 {
    --stack-h: clamp(300px, 42vh, 480px);
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}

.elenco {
    width: 100%;
    height: var(--stack-h);
}

.sez1elenco {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4vw;
    padding: 0 4vw;
    background-color: var(--panel);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}


.elenco:nth-child(even) .sez1elenco {
    background-color: #e2e2e2;
}

.headelenco {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 1.6vw;
    width: 42%;
    min-width: 0;
}

.numero {
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--amber);
    font-size: clamp(1.8rem, 0.8rem + 3.4vw, 4rem);
}

.titoloelenco {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
    font-size: clamp(1.8rem, 0.8rem + 3.4vw, 4rem);
}

.sez2elenco {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.data {
    font-size: clamp(0.8rem, 0.7rem + 0.25vw, 1rem);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.p2 {
    margin: 0;
    max-width: 56ch;
    font-weight: 400;
    color: var(--text);
    font-size: clamp(0.95rem, 0.75rem + 0.5vw, 1.25rem);
    line-height: 1.5;
}




@media (max-width: 900px) {
    .elenco {
        height: auto;
    }

    .sez1elenco {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1.4rem;
        padding: 5vh 6vw;
    }
    .headelenco,
    .sez2elenco {
        width: 100%;
    }
}
