/*HEADER*/

.header {
    display: flex;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.header img {
    width: 100px;
}

.header ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-direction: initial;
    align-items: center;
}

.header ul li a {
    color: #fff;
    text-decoration: none;
    padding: none;
    border: none;
}

.header ul li a svg{
    padding: 5px;
    border: 2px solid #fff;
    border-radius: 8px;
}

.header ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #00f0ff;
    box-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.header ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header ul li a:hover {
    text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.7);
}

.menu-voice {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.menu-voice:hover {
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/*HEADER MOBILE*/

.mobile-menu {
    display: none;
    position: relative;
    z-index: 9999;
}

.hamburger {
    right: 40px;
    width: 40px;
    height: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    display: none;
}

.hamburger div {
    width: 100%;
    height: 4px;
    background-color: #fff;
    transition: none;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    transition: transform 0.2s ease;
}

/* Fullscreen menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000f0;
    color: white;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.menu.open {
    transform: translateX(0);
}


.mobile-links {
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
}

.mobile-links img{
    width: 100px;
    margin-bottom: 30px;
}

.menu a {
    color: white;
    font-size: 1.7rem;
    text-decoration: none;
    margin: 20px 0;
    transition: color 0.2s;
}

.social-icon-mobile{
    display: flex;
    gap: 20px;
}

.social-icon-mobile a svg{
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 5px;
}

/*HERO*/

.hero {
    position: relative;
    height: 750px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

/* CERCHIO LUMINOSO */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at -100% -100%, rgba(34, 0, 255, 0.148) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.1s ease-out;
}

/* PARTICELLE */
/* .hero canvas.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
} */

.hero .header,
.hero .titles {
    position: relative;
    z-index: 4;
}

.titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
    text-align: center;
}

.hero .titles h1,
.hero .titles h2,
.hero .titles a {
    color: #fff;
}

.hero .titles h1 {
    font-size: 6em;
    margin: 0;
}

.hero .titles h2 {
    text-transform: uppercase;
}

.hero .titles a {
    text-transform: uppercase;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    margin: 0 auto;
    width: fit-content;
    transition: transform 0.25s ease, text-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hero .titles a:hover {
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    background-color: #fff;
    color: #000;
}

@media only screen and (max-width: 993px) {

    .hero .titles h1{
        font-size: 4em;
    }

        .menu-desk {
        display: none !important;
    }

    .mobile-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }
}

@media only screen and (max-width: 600px) {

    .menu-desk {
        display: none !important;
    }

    .mobile-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .titles {
        padding: 1em;
    }

    .hero h2 {
        font-size: 1.5em !important;
    }

    .wrap-mobile {
        display: block;
    }
}