:root {
    --palette_green: #338379;
}

* {
    padding: 0;
    margin: 0;
}

html,
body {
    overflow: hidden;
    overscroll-behavior-y: contain;
}

body {
    font-family: 'Mulish', sans-serif;
    color: white;
    font-size: 14pt;
    background-color: var(--palette_green);
}


/* --- GENERAL LINKS --- */
sup, sub {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
  }
  sub { 
    top: 0.4em; 
  }

a {
    color: white;
    text-decoration: none;
}

.underlined_link {
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}
.underlined_link:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    -webkit-tap-highlight-color: transparent;
    transform-origin: bottom right;
    transition: transform .2s ease-out;
}
.underlined_link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* --- / GENERAL LINKS --- */


/* --- FADE OUT OVERLAY --- */
#white_overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 999;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    will-change: opacity;
}
/* --- / FADE OUT OVERLAY --- */


/* --- MENU --- */
#homepage_menu {
    position: absolute;
    background: var(--palette_green);
    width: 100vw;
    height: 100vh;
    z-index: 999;
    
    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0;
    will-change: transform, opacity;
}

#homepage_menu_close {
    position: absolute;
    left: 8vw;
    cursor: pointer;
}
.homepage_menu_voice {
    position: relative;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    height: 13vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.homepage_menu_voice a {
    will-change: transform;
    text-transform: uppercase;
}
.menu_voice_title {
    display: block;
    font-size: 6vh;
    padding-left: 8vw;
}
.homepage_menu_voice a:hover {
    font-style: italic;
}

.menu_horizontal_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu_child_container_desktop {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 40px;
    margin-left: 8vw;
}

.menu_child_element {
    font-size: 3vh;
}

.menu_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%)!important;
    right: 10vw;
    width: 6vh;
    height: 6vh;
    
    stroke: white;
    stroke-width: 2;
}
/* --- / MENU --- */


#mothership {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--palette_green);

    margin: 20px 8vw 40px 8vw;
}

/* --- HEADER --- */
#home_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#header_logo img {
    height: 10vh;
}

#prenota_btn {
    display: flex;
    border: 1px solid white;
    border-radius: 30px;
    padding: 2px 20px;
    transition: background .2s;
}
#prenota_btn:hover {
    background: #fff5;
}

/* --- / HEADER --- */

/* --- BRAIN PATH --- */
#brain_mask_path path {
    transform: scale(.0034, .00265);
    transition: 2.5s;
}
/* --- / BRAIN PATH --- */


/* --- CARDS --- */
#cards_container {
    width: 70vw;
    height: 80vw;

    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.card_outline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    will-change: opacity, transform;
}
.card_outline svg {
    fill: transparent;
    stroke: white;
    stroke-width: .5px;    
    transform: scaleY(0.87) scaleX(.97) translate(-1%, -7%);
}

.card_container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    background-color: var(--palette_green);
    clip-path: url(#brain_mask_path);
    -webkit-clip-path: url(#brain_mask_path);
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    will-change: z-index, transform, opacity;
}

/* --- CARDS CONTENT --- */

.card_fake_background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--palette_green);
    will-change: opacity;
}

.card_video {
    position: absolute;
    width: 100%;
    height: 60%;
    z-index: -1;
    object-fit: cover;
}

.card_title {
    padding-top: 25%;
    font-size: 5vw;
    font-family: "ratiomodern", serif;
}

.card_subtitle {
    padding-top: 10px;
    font-size: 2vw;
    text-transform: uppercase;
    font-style: italic;
}

.card_btn {
    padding-top: 20px;
    font-size: 1.3vw;
    text-transform: uppercase;
}
/* --- / CARDS CONTENT --- */



/* --- FOOTER --- */ 
#home_footer {
    position: absolute;
    bottom: 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#home_footer_lang_container {
    display: flex;
    gap: 20px;
}
/* --- / FOOTER --- */


@media only screen and (max-width: 960px) {
    body {
        font-size: 10pt;
    }
    .underlined_link:hover:after {
        transform: scaleX(0);
        transform-origin: bottom left;
    }




    .homepage_menu_voice {
        height: 12vh;
    }
    .menu_voice_title {
        font-size: 2.5vh;
        padding-left: 5vw;
    }
    .menu_arrow {
        right: 10vw;
        width: 4vh;
        height: 4vh;
    }

    .menu_child_container_mobile {
        padding-left: 5vw;
        display: flex;
        gap: 20px;
        padding-top: 10;
    } 
    .menu_child_element {
        font-size: 1.2vh;
    }






    #mothership {    
        margin: 20px 6vw 40px 6vw;
    }


    
    #home_header {
        align-items: start;
    }
    #header_logo img {
        height: 80px;
    }
    #home_header_lang_container {
        display: flex;
        gap: 20px;
    }



    #cards_container {
        width: 140vw;
        height: 160vw;
        top: 50px;
    }
    .card_title {
        padding-top: 30%;
        font-size: 10vw;
    }
    
    .card_subtitle {
        font-size: 4vw;
    }
    
    .card_btn {
        padding-top: 10px;
        font-size: 3vw;
    }
}

/* --- VISIBILITY --- */
 @media only screen and (min-width: 960px)
 {
	 .only_mobile
	 {
		 display: none!important;
		 visibility: hidden!important;
	 }
 }
 @media only screen and (max-width: 960px)
 {
	 .only_desktop
	 {
		 display: none!important;
		 visibility: hidden!important;
	 }
 }
 /* --- / VISIBILITY --- */