@font-face {
    font-family: 'RadioGrotesk';
    src: url('./font/RadioGrotesk-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RadioGrotesk';
    src: url('./font/RadioGrotesk-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'RadioGrotesk', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #002f23;
}

h1 {
    letter-spacing: 2px;
    font-weight: lighter;
}


.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    border-radius: 0 0 0 150px;
}

.hero a {
    text-decoration: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) url('./images/header_overlay.png') no-repeat;
    background-size: contain;
    background-position: center right;
    z-index: -1;
}

.hero-content {
    position: relative;
    padding: 100px;
    margin-top: -10%;
    z-index: 1;
}

section {
    padding: 40px 20px;
    text-align: center;
}

.cluster .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.events ul {
    list-style-type: none;
    padding: 0;
}

.events li {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

footer {
    display: flex;
    background-color: #f3f4ef;
    color: #707070;
    text-align: center;
    padding: 20px;
    border-radius: 150px 150px 0 0;
    align-content: center;
    align-items: center;
    padding: 100px;
}

.hero-button {
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 40px 60px 30px 80px;
    background-color: #002f23;
    color: #9ef01a;
    border: none;
    border-radius: 80px 0 0 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.intro {
    display: flex;
    padding: 50px 100px 0 100px;
    color: #888888;
    justify-content: center;
}

.intro h2 {
    color: #9ef01a;
    font-size: 35px;
    font-weight: lighter;
}

.intro p {
    text-align: left;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 35px;
}

.mission {
    background-color: #f3f4ef;
    display: flex;
    padding: 50px 0px 0px 0px;
    color: #888888;
    justify-content: center;
}

.mission h2 {
    color: #002f23;
    font-size: 35px;
    text-align: left;
    font-weight: lighter;
}

.mission p {
    text-align: left;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 35px;
}

.divider-image {
    position: absolute;
    left: 0px;
    margin-top: -400px;
    margin-bottom: 400px;
}

.animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cluster {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.cluster h2 {
    color: #002f23;
    font-size: 35px;
    text-align: left;
    font-weight: lighter;
}

.cluster p {
    text-align: left;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 35px;
}

.logos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    justify-items: center;
    /* Centra i contenuti all'interno di ciascuna cella */
    align-items: center;
    /* Centra verticalmente i contenuti all'interno di ciascuna cella */
    padding: 20px;
}

.logo-azienda {
    max-width: 20%;
}

.logo-divider {
    max-width: 2%;
}

.events {
    display: flex;
    padding: 0px 0px 50px 0px;
    color: #888888;
    justify-content: center;
    margin-top: -60px;
}

.cluster .boxed {
    width: 1100px;
}


.events .boxed {
    width: 1100px;
}

.events h2 {
    color: #9ef01a;
    font-size: 35px;
    text-align: left;
    font-weight: lighter;
}

.events p {
    text-align: left;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 35px;
}

.events .event-list {
    display: flex;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    justify-items: center;
    /* Centra i contenuti all'interno di ciascuna cella */
    align-items: center;
}

.events .event-content {
    text-align: left;
    color: #ffffff;
}

.event-content {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}

.event-list hr {
    display: none;
}

.event-list .event-content hr {
    border: 1px solid #9ef01a;
    width: 120%;
    margin-left: -10px;
    margin-right: 10px;
    display: block;
}

.events .event-number {
    display: flex;
    color: #888888;
    background-color: #9ef01a;
    border-radius: 50px;
    width: 60px;
    height: 50px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.events .event-element {
    display: flex;
    /* justify-content: center; */
    width: 33%;
}


.border-curve-upper-right {
    position: relative;
    width: 110px;
    /* Regola la dimensione */
    height: 110px;
    /* Deve essere uguale alla width per ottenere un cerchio */
}

.border-curve-upper-right::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-top-right-radius: 100%;
    border: 2px solid #A1FF00;
    /* Colore simile a quello dell'immagine */
    top: 39.4px;
    left: -8px;
    border-bottom: none;
    border-left: none;
}

.border-curve-bottom-right {
    position: relative;
    width: 110px;
    /* Regola la dimensione */
    height: 110px;
    /* Deve essere uguale alla width per ottenere un cerchio */
}

.border-curve-bottom-right::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-bottom-right-radius: 100%;
    border: 2px solid #A1FF00;
    /* Colore simile a quello dell'immagine */
    top: -71px;
    left: -8px;
    border-top: none;
    border-left: none;
}

.event-content.last hr {
    margin-right: 0px;
    width: 100%;
}

.date {
    height: 2em;
}

.event-content span:first-of-type {
    height: 2em;
}

@media screen and (max-width: 1190px) {
    .divider-image {
        max-width: 420px;
        margin-top: -270px;
    }

    .events .boxed {
        width: 90%;
    }

    .cluster .boxed {
        width: 90%;
    }
}

@media screen and (max-width: 920px) {
    .divider-image {
        max-width: 360px;
        margin-top: -270px;
    }

}



@media screen and (max-width: 900px) {

    .intro {
        flex-direction: column;
    }

    .intro h2,
    .intro p {
        width: 100% !important;
    }

    .divider-image {
        max-width: 230px;
        margin-top: -150px;
    }

    .mission h2 {
        text-align: center;
    }

    .spacer-50 {
        display: none;
    }

    .events .boxed {
        width: 90%;
    }

    .cluster .boxed {
        width: 90%;
    }

    .events h2,
    .events p {
        text-align: center;
    }

    .events .event-list {
        flex-direction: column;
    }

    .events .second-event-list {
        flex-direction: column-reverse;
    }

    .events .border-curve-upper-right,
    .events .border-curve-bottom-right {
        display: none;
    }

    .events .second-event-list {
        margin-top: 0 !important;
    }

    .events .event-list .event-element hr {
        display: none;
    }

    .events .event-list .date {
        margin-bottom: 0 !important;
    }

    .events .event-number {
        width: 70px;
        margin-top: 0;
    }

    .events .event-element {

        align-items: center;
    }

    .event-list hr {
        display: block;
        width: 250px;
    }

    .logo-azienda {
        max-width: 30%;
    }

    .logo-divider {
        display: none;
    }
}


@media screen and (max-width: 665px) {
    .divider-image {
        max-width: 130px;
        margin-top: -150px;
    }

    .mission {
        padding-top: 20px;
    }

    .mission p {
        width: 90% !important;
    }

    .intro {
        padding: 40px 20px;
    }

    .overlay {
        display: none;
    }

    .hero-button {
        display: none;
    }

    .hero {
        border-radius: 0 0 50px 50px;
        height: 80vh;
    }

}



@media screen and (max-width: 550px) {
    .logo-azienda {
        max-width: 46%;
    }

    .events .event-element {
        width: 100%;
    }

    .events .event-number {
        width: 60px;
    }

    .event-list hr {
        width: 100%;
    }

    .divider-image {
        display: none;
    }

    .inner-div {
        display: flex;

        flex-direction: column;
        align-items: center;
    }


}


@media screen and (max-width: 429px) {
    h1 {
        font-size: 30px;
    }

    footer {

        flex-direction: column;
        padding: 60px 50px 20px 50px;
        gap: 10px;
    }

    footer div {
        width: 100% !important;
    }

    .hero-content {
        padding: 10%;
    }

    .hero-content img {
        width: 90% !important;
    }

    .hero {
        border-radius: 0 0 50px 50px;
        height: 70vh;
    }

    .intro {
        padding: 20px 20px;
    }

    section {
        text-align: left;
    }

    .intro h2 {
        margin: 10px 0;
    }

    .divider-1 div {
        border-radius: 0 0 50px 50px !important;
    }

    .divider-1 {
        margin-top: -90px;
    }

    .mission {
        padding: 20px 20px;
    }

    .mission h2 {
        margin: 10px 0;
    }

    .divider-2 div {
        border-radius: 0 0 50px 50px !important;
    }

    .divider-2 {
        margin-top: -90px;
    }

    .inner-div {
        align-items: flex-start;
        padding: 0 10px;
    }

    .cluster {
        padding: 20px 25px;
        justify-content: left;
    }

    .cluster h2 {
        margin: 10px 0;
    }

    .divider-3 div {
        border-radius: 50px 50px 0 0 !important;
    }

    .events {
        padding: 20px 25px;
        margin-top: -90px;
    }

    .events h2 {
        margin: 10px 0;
    }

    .events p {
        margin-top: 10px;
    }

    footer {
        border-radius: 50px 50px 0 0;
        padding-top: 40px;
    }

    .logo-mini-50 {
        max-width: 46% !important;
    }

    .logo-mini-100 {
        max-width: 50% !important;
    }

    span.date {
        margin-top: 10px !important;
    }

    .events .event-list .date {
        margin-bottom: -11px !important;
    }
}

#downloadBtn {
    background-color: #9df01a;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 17px;
    color: #012f23;
}

.align-left {
    text-align: left;
}