:root {
    /* Colors */
    --dark-background: #1F2023;
    --light-background: #FFFFFF;
    /* --light-background: #F5EDE0; */

    --yellow-primary: #F2BE58;
    --yellow-secondary: #FFFAEA;
    --yellow-tertiary: #fffaea8b;

    --green-primary: #72C0A2;
    --green-secondary: #F6FFFC;

    --red-primary: #ED6D44;
    --red-secondary: #FDF4EF;

    --pink-primary: #F3A0B9;
    --pink-secondary: #FFF3F8;

    --blue-primary: #4E7BBE;
    --blue-secondary: #F3F7FF;

    --black-primary: #1F2023;
    --black-secondary: #FFFFFF;

    /* Shadows */
    --shadow-1: 0px 4px 5px rgba(0, 0, 0, 0.25);

    margin: 0;
    padding: 0;

    /* Card variables */
    --card-border-radius-mobile: 24px;
    --card-border-radius-medium: 30px;
    --card-border-radius: 40px;
}

@font-face {
    font-family: 'PP Fragment Variable';
    src: url(../font/PPFragment-Variable.ttf);
    font-weight: 100 900;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: none; /* Disable pull-to-refresh */
}

body > * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* Hide scroll bar in IE and Edge */
    scrollbar-width: none;  /* Hide scroll bar in Firefox */
    background-color: var(--dark-background);
}

body.black-deck, .black-deck .barra-in-alto {
    background-color: var(--black-secondary);
    animation: blackDeckBackgroundAnimation 3s forwards;

}

@keyframes blackDeckBackgroundAnimation {
    60% {
        background-color: var(--black-secondary);
    }
    100% {
        background-color: var(--black-primary);
    }
}

body.black-deck #animatedLogoContainer {
    filter: invert(1);
    animation: invertLogoAnimation 3s forwards;
}

@keyframes invertLogoAnimation {
    60% {
        filter: invert(1);
    }
    100% {
        filter: invert(0);
    }
}

a {
    cursor: none;
}

body::-webkit-scrollbar { /* Hide scroll bar in Safari, Chrome, Opera */
    display: none;
}

.barra-in-alto {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    margin: 0 8px;
    width: 100vw;
    height: 85px;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-sizing: border-box;
    margin: 0;
    padding: 0 5vw;

    background-color: var(--secondary-color);

    transition: background-color 0.3s ease-in-out;
}

.transparent-background {
    background-color: transparent;
}

.logo-container, .animatedLogoContainer {
    position: relative;
    height: 18px;
    width: 154px;
}

.motto-container {
    display: none;
}

.menu-text {
    display: none;
}

.menu-hamburger {
    display: flex;
    height: 18px;
    width: 18px;
    color: white;
    filter: invert(0);
    transition: filter 0.3s ease-in-out;
}

.inverted {
    filter: invert(1);
}

.menu-button-in-home {
    position: absolute;
    right: 5vw;
}


/* Fullpage Menu */

.fullpage-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: -150vh;
    left: 0;
    z-index: 10;
    background-color: #1F2023;
    width: 100vw;
    height: 100dvh;
    transition: top .5s ease-in-out;
}

.showmenu {
    top: 0;
}

.fullpage-menu ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fullpage-menu a {
    text-decoration: none;
    font-family: 'PP Fragment Variable';
    font-size: 24px;
    font-variation-settings: "wght" 650, "ital" 0, "SRFF" 0;
    transition: all .2s ease-in-out;
    padding: 10px;
    position: relative;
    z-index: 3;
    text-transform: uppercase;
}

.fullpage-menu a:hover {
    text-decoration: none;
    font-family: 'PP Fragment Variable';
    font-variation-settings: "wght" 650, "ital" 100, "SRFF" 100;
}

.green-link {
    color: var(--green-primary);
}

.pink-link {
    color: var(--pink-primary);
}

.blue-link {
    color: var(--blue-primary);
}

.yellow-link {
    color: var(--yellow-primary);
}

.red-link {
    color: var(--red-primary);
}

.black-link {
    color: var(--black-secondary);
}

a.instagram-link {
    color: white;
    font-size: 16px;
    position: absolute;
    bottom: 30px;
    font-variation-settings: "wght" 350, "ital" 0, "SRFF" 0;
}

.about-us-link {
    color: white;
}

.yellow-link::after, .red-link::after, .blue-link::after, .pink-link::after, .green-link::after, .black-link::after, .instagram-link::after, .about-us-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px; /* Adjust this value as needed */
    width: calc(100% - 20px); /* Adjust this value as needed */
    margin-left: 10px;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
    z-index: 10;

}
  
.yellow-link:hover::after, .red-link:hover::after, .blue-link:hover::after, .pink-link:hover::after, .green-link:hover::after, .black-link:hover::after, .instagram-link:hover::after, .about-us-link:hover::after {
    transform: scaleX(1);
}

.yellow-link::after {
    background-color: var(--yellow-primary); /* Set the desired line color */
}

.green-link::after {
    background-color: var(--green-primary); /* Set the desired line color */
}

.pink-link::after {
    background-color: var(--pink-primary); /* Set the desired line color */
}

.blue-link::after {
    background-color: var(--blue-primary); /* Set the desired line color */
}

.red-link::after {
    background-color: var(--red-primary); /* Set the desired line color */
}

.black-link::after {
    background-color: var(--black-secondary); /* Set the desired line color */
}

.instagram-link::after, .about-us-link::after {
    background-color: white; /* Set the desired line color */
}

.wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding-top: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.black-deck .wrapper {
    position: relative;
    height: 85dvh;
}

.single-card-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 200px; /* former 250px */
    height: 300px; /* former 375px */
    border-radius: var(--card-border-radius-mobile);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    position: relative;
    margin: 24px;
    z-index: 2;
    transition: scale 0.3s cubic-bezier(.3, 1.77, .68, .93);
}

.green-card {
    background-color: var(--green-primary);
}

.red-card {
    background-color: var(--red-primary);
}

.yellow-card {
    background-color: var(--yellow-primary);
}

.pink-card {
    background-color: var(--pink-primary);
}

.blue-card {
    background-color: var(--blue-primary);
}

.black-card {
    background-color: var(--black-primary);
}

.cat-title-wrapper {
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
}

.cat-title {
    position: relative;
    bottom: 220px;
    margin: 0;
    padding: 0;
    
    font-family: 'PP Fragment Variable';
    font-size: 24px;
    font-weight: 100;
    color: var(--light-background);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;

    transition: opacity 0.5s ease-in-out;
}

.current .cat-title {
    opacity: 1;
}

.current .card {
    scale: 1.15;
}

.current {
    z-index: 10;
}

.face-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex; /* will become flex */
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    padding: 16px;
    box-sizing: border-box;
    z-index: 10;
    background-color: white;
}

.face-wrapper h1 {
    font-family: 'PP Fragment Variable';
    font-variation-settings: 'wght' 550, 'SRFF' 80, 'slnt' 0;
    font-size: 24px;
    line-height: 28px;
    color: black;
    margin: 0;
    padding: 0;
    text-align: left;
}

.face-wrapper h2 {
    font-family: 'PP Fragment Variable';
    font-variation-settings: 'wght' 350, 'SRFF' 0, 'slnt' 0;
    font-size: 15px;
    color: black;
    margin: 0;
    padding: 0;
    text-align: left;
}

.title-icon-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.small-icon {
    width: 25px;
    height: 25px;
}

.cat-title-wrapper-in-deck {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.black-deck .cat-title-wrapper-in-deck {
    height: 85dvh;
}

.cat-title-in-deck {
    position: relative;
    bottom: 220px;
    margin: 0;
    z-index: 10;
    display: block;

    color: white;
    
    font-family: 'PP Fragment Variable';
    font-size: 24px;
    font-weight: 100;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.custom-cursors {
    display: none;
}

.window-size-alert {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: black;
    opacity: 0;
    transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.window-size-alert h1 {
    opacity: 1;
    color: white;
    font-family: 'PP Fragment Variable';
    font-size: 24px;
}

.wrapper-testi-about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    left: 5vw;
    width: 90vw;
    color: white;
    font-family: 'PP Fragment Variable';
}

.wrapper-testi-about-us > * {
    margin: 0;
    padding: 0;
}

.crediti-corso {
    opacity: .6;
    margin-bottom: 10vh;
}

@media screen and (min-width: 700px) and (max-width: 1200px) {
    .window-size-alert {
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0vh;
        opacity: 0.8;
    }
}

@media (min-width: 768px) {

    .barra-in-alto {
        justify-content: space-between;
        padding-left: 5vw;
        padding-right: 5vw;
        z-index: 100;
    }

    .barra-in-alto-espansa {
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: unset;
        padding-left: 5vw;
        padding-right: 5vw;
        width: 100vw;
        height: 100dvh;
        box-sizing: border-box;
    }

    .barra-in-alto .motto-container {
        position: absolute;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 140px;
        margin-left: -5vw;
        justify-content: center;
        align-items: center;
    }

    .barra-in-alto .motto-container p {
        font-family: 'PP Fragment Variable';
        color: white;
        font-size: 20px;
        text-align: center;
    }

    .barra-in-alto .motto-container img {
        width: 24px;
        animation: bounce 2s ease-in-out infinite;

    }

    @keyframes bounce {
        0%, 100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

    .animatedLogoContainer {
        margin: 0 auto;
    }

    .logo-container, .animatedLogoContainer {
        width: 214px;
        height: 25px;
    }

    .menu-button {
        display: flex;
    }

    .menu-text {
        display: flex;
    }

    .menu-hamburger-icon, .menu-hamburger {
        display: none;
    }

    .menu-link {
        position: relative;
        font-family: 'PP Fragment Variable';
        font-size: 16px;
        color: white;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.1rem;
        padding: 4px;
        opacity: 0.7;
        transition: all 0.2s ease-in-out;
        font-variation-settings: "wght" 550, "ital" 0, "SRFF" 0;
    }

    .menu-link:hover {
        opacity: 1;
        font-variation-settings: "wght" 750, "ital" 100, "SRFF" 100;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px; /* Adjust this value as needed */
        width: calc(100% - 8px); /* Adjust this value as needed */
        margin-left: 4px;
        height: 2px;
        background-color: white; /* Set the desired line color */
        transform: scaleX(0);
        transition: transform 0.2s ease-in-out;
    }

    .blue-deck .menu-link::after {
        background-color: var(--blue-primary);
    }

    .pink-deck .menu-link::after {
        background-color: var(--pink-primary);
    }

    .red-deck .menu-link::after {
        background-color: var(--red-primary);
    }

    .yellow-deck .menu-link::after {
        background-color: var(--yellow-primary);
    }

    .green-deck .menu-link::after {
        background-color: var(--green-primary);
    }

    .black-deck .menu-link::after, .home-body .menu-link::after {
        background-color: var(--black-secondary);
    }
      
    .menu-link:hover::after {
        transform: scaleX(1);
    }

    .fullpage-menu {
        flex-direction: column;
        z-index: 49;
        width: 100vw;
        height: 100vh;
    }

    .fullpage-menu a {
        font-size: 45px;
    }

    a.instagram-link {
        font-size: 30px;
    }

    .deck-page, .home-body {
        cursor: none;
        background-color: var(--dark-background);
    }

    .deck-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding-top: 100px;
        overflow: hidden;
        z-index: 3;
    }

    .pink-single-card-wrapper {
        z-index: 5;
    }

    .red-single-card-wrapper {
        z-index: 6;
    }

    .blue-single-card-wrapper {
        z-index: 7;
    }

    .yellow-single-card-wrapper {
        z-index: 8;
    }

    .green-single-card-wrapper {
        z-index: 9;
    }

    .card {
        position: absolute;
        width: 250px;
        height: 375px;
        max-height: 375px;
        margin: 0;
        z-index: 10;
        border-radius: var(--card-border-radius-medium);
    }

    .starter {
        z-index: 11;
        scale: 1.25;
    }

    .pink-card .vector-wrapper {
        background-color: var(--pink-primary);
    }

    .blue-card .vector-wrapper {
        background-color: var(--blue-primary);
    }

    .yellow-card .vector-wrapper {
        background-color: var(--yellow-primary);
    }

    .green-card .vector-wrapper {
        background-color: var(--green-primary);
    }

    .red-card .vector-wrapper {
        background-color: var(--red-primary);
    }

    .black-card .vector-wrapper {
        background-color: var(--black-primary);
    }

    .vector-wrapper {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        z-index: 12;
    }

    .vector-wrapper h1 {
        font-family: 'PP Fragment Variable';
        font-variation-settings: 'wght' 550, 'SRFF' 80, 'slnt' 0;
        font-size: 24px;
        color: white;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .vector {
        width: 105;
        height: 105px;
        object-fit: contain;
    }

    .face-wrapper {
        padding: 24px;
    }

    .face-wrapper h1 {
        font-size: 26px;
        line-height: 30px;
        user-select: none;
    }
    
    .face-wrapper h2 {
        font-size: 16px;
        line-height: 21px;
        user-select: none;
    }

    .small-icon {
        width: 30px;
        height: 30px;
        user-select: none;
    }

    .current .card {
        scale: 1.25;
    }

    .cat-title-wrapper {
        width: 300px;
        display: flex;
        justify-content: center;
    }

    .cat-title {
        opacity: 1;
        bottom: 166px;
        pointer-events: none;
    }

    .cat-title-in-deck {
        bottom: 252px;
        font-family: 'PP Fragment Variable';
        font-size: 130px;
        font-variation-settings: "wght" 550, "ital" 0, "SRFF" 0;
        opacity: .2;
        z-index: 2;
    }

    .custom-cursors {
        display: block;
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 200;
        pointer-events: none;
    }

    .cat-cursor {
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px 8px;
        font-family: 'PP Fragment Variable';
        font-size: 18px;
        font-variation-settings: "wght" 550, "ital" 0, "SRFF" 0;
        color: white;
        border-radius: 16px;
        gap: 4px;
        min-height: 35px;
        min-width: 35px;
        transition: all 0.2s ease-in-out;
    }

    .black-deck .custom-cursors .cat-cursor, .home-body .custom-cursors .cat-cursor {
        color: var(--black-primary);
    }

    .cat-cursor-invisible {
        width: 0 !important;
        min-height: 0 !important;
        min-width: 20px !important;
        height: 20px;
        gap: 0;
        padding: 0;
    }

    .cat-cursor-on-button {
        width: 0 !important;
        min-height: 0 !important;
        min-width: 10px !important;
        height: 10px;
        gap: 0;
        padding: 0;
        opacity: 0.5;
    }

    .blue-deck .cat-cursor {
        background-color: var(--blue-primary);
    }

    .pink-deck .cat-cursor {
        background-color: var(--pink-primary);
    }

    .yellow-deck .cat-cursor {
        background-color: var(--yellow-primary);
    }

    .green-deck .cat-cursor {
        background-color: var(--green-primary);
    }

    .red-deck .cat-cursor {
        background-color: var(--red-primary);
    }

    .black-deck .cat-cursor, .home-body .cat-cursor {
        background-color: var(--black-secondary);
    }

    .cat-up-right-arrow {
        width: 16px;
        height: 16px;
        opacity: 1;
        transition: all 0.2s ease-in-out;
    }

    .cat-cursor img {
        transition: all 0.2s ease-in-out;
    }

    .open-cursor {
        width: 70px; /* Double the border-radius value */
        height: 70px; /* Double the border-radius value */
        padding: 0;
        border-radius: 50%;
    }

    .next-cursor {
        width: 70px; /* Double the border-radius value */
        height: 70px; /* Double the border-radius value */
        padding: 0;
        border-radius: 50%;
    }

    .cat-cursor-text {
        transition: opacity 0.1s ease-in-out, width 0.2s ease-in-out;
        width: 100%;
        overflow: hidden;
    }

    .prev-cursor {
        width: 70px; /* Double the border-radius value */
        height: 70px; /* Double the border-radius value */
        padding: 0;
        border-radius: 50%;
    }

    .next-cursor .cat-cursor-text, .prev-cursor .cat-cursor-text, .cat-cursor-invisible .cat-cursor-text, .open-cursor .cat-cursor-text {
        opacity: 0;
        width: 0%;
    }

    .open-cursor img {
        rotate: 0deg;
    }

    .next-cursor img {
        rotate: 45deg;
    }

    .prev-cursor img {
        rotate: -135deg;
    }

    .hide-arrow {
        opacity: 0;
        width: 0;
    }

    .wrapper-testi-about-us {
        position: fixed;
        display: flex;
        flex-direction: row;
        flex-flow: row-reverse;
        justify-content: center;
        align-items: flex-end;
        gap: 16px;
        bottom: 2vh;
        left: 5vw;
        width: 90vw;
        color: white;
        font-family: 'PP Fragment Variable';
        font-size: 14px;
        line-height: 17px;
    }

    .wrapper-testi-about-us > *{
        width: 50%;
    }

    .crediti-corso {
        /* flex-shrink: 0; */
        opacity: .6;
        margin: 0;
    }
    

}

@media (min-width: 1450px) {

    .logo-container, .animatedLogoContainer {
        width: 275px;
        height: 32px;
    }

    .fullpage-menu ul {
        gap: 16px;
    }

    .card {
        position: absolute;
        width: 300px;
        height: 450px;
        max-height: 450px;
        margin: 0;
        z-index: 10;
    }

    .cat-title {
        opacity: 1;
        bottom: 200px;
        pointer-events: none;
    }

    .cat-title-in-deck {
        bottom: 300px;
    }

    .vector {
        width: 126px;
        height: 126px;
        object-fit: contain;
    }

    .face-wrapper {
        padding: 24px;
    }

    .face-wrapper h1 {
        font-size: 38px;
        line-height: 42px;
        user-select: none;
    }
    
    .face-wrapper h2 {
        font-size: 18px;
        line-height: 23px;
        user-select: none;
    }
}

@media (min-width: 1950px) {
    .fullpage-menu a {
        font-size: 60px;
    }

    a.instagram-link {
        font-size: 30px;
    }
}