/* Hero Section */
.hero {
    position: relative;
    display: flex;
    padding: 50px;
    color: white;
    height: auto;
    width: auto;
    height: 75vh;
    justify-content: space-around;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.3);
    overflow: hidden; /* Ensure the zoom effect remains within bounds */
}

.hero-background img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    animation: kenburns 10s ease-in-out infinite alternate;
}

/* Ken Burns Animation */
@keyframes kenburns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 8vh;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
    gap: 1rem;
}

.hero-right img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        width: fit-content;
        height: inherit;
    }

    .hero-left,
    .hero-right {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
    .hero-background {
        filter: brightness(0.5);
    }
}

/* Animazioni */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
/* Services Section */

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: -40vh;
    z-index: 1;
    margin-bottom: 45px;
    height: 200px;
}

.service {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    padding: 1rem;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    margin: auto;
    box-shadow: 0 10px 20px #0003;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100px;
    flex: 1;
}
.service a{
    color: #ffffff;
}

.service .service-header i {
    font-size: 2rem;
}

.service::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        20deg,
        var(--aynix-primary-color),
        var(--aynix-secondary-color),
        var(--aynix-ternary-color)
    );
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service:hover {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(
        20deg,
        var(--aynix-primary-color),
        var(--aynix-secondary-color),
        var(--aynix-ternary-color)
    );
}

.service .service-header {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}
.service p {
    display: none;
}
.service .service-href {
    display: none;
}
@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
        margin-top: inherit;
        height: inherit;
    }

    .service {
        justify-content: center;
        max-width: 350px;
        height: 150px;
        width: 90%;
    }
}

.container-presentation {
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 20px #0003;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.container-partners {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
}
.container-partners .partner {
    width: 50px;
    height: 50px;
    padding: 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px #0003;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.container-partners .partner img {
    width: 100%;
    filter: grayscale(100%); /* Trasforma l'immagine in scala di grigi */
    transition: filter 0.3s ease-in-out;
}
.container-partners .partner img:hover {
    filter: grayscale(0%); /* Ritorna ai colori originali al passaggio del mouse */
}
