@font-face {
    font-family: 'Helvetica Black';
    src: url(Helvetica/helveticaltstd-blkcond.otf);
}

@font-face {
    font-family: 'CoFo sans Regular';
    src: url(CoFoSans/CoFoSans-Regular-Trial.otf);
}

@font-face {
    font-family: 'CoFo sans Bold';
    src: url(CoFoSans/CoFoSans-Bold-Trial.otf);
}

@font-face {
    font-family: 'Helvetica Light';
    src: url(Helvetica/helveticaltstd-light.otf);
}

@font-face {
    font-family: 'Helvetica Bold';
    src: url(Helvetica/helveticaltstd-bold.otf);
}

@font-face {
    font-family: 'HelveticaBlack';
    src: url(Helvetica\ LT\ Std/Helvetica\ LT\ Std\ Black/Helvetica\ LT\ Std\ Black.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: black;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'HelveticaBlack';
}

p {
    text-transform: uppercase;
    font-size: 20px;
}

strong {
    font-family: 'Helvetica Bold';
}

.menu button p {
    font-size: 30px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* header - logo */
.spyral {
    width: 100%;
    padding: 1rem;
}

.logocontainer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logomobile {
    width: 150px;
    max-width: 60%;
    height: auto;
}

.logocontainer2 {
    display: none;
}

/* video */
.videosection {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.videocontainer {
    width: 100%;
    height: 100%;
    position: relative;
}

.video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* menu */

.menu {
    width: 100%;
    height: auto;
    margin: 0;
    background-color: black;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 100%;
    position: relative;
    z-index: 10;
    transition: transform 0.6s ease;
    flex-grow: 1;
}

.menu-item:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
}

.menu-item:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
}

.menu-item:nth-child(3) {
    grid-row: 3;
    grid-column: 1;
}

.menu.move-up {
    transform: translateY(-60vh);
}

.location-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-img {
    width: 100%;
    height: auto;
    margin-top: 40px;
}

.location-video {
    width: calc(100% + 20px);
    margin-left: -10px;
    height: auto;
    margin-top: 30px;
    object-fit: cover;
}

@media (min-width: 768px) {

    p {
        text-transform: uppercase;
        font-size: 32px;
    }

    .menu button p {
        font-size: 35px;
    }

    .menu {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 100%;
    }

    .menu-item:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }

    .menu-item:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }

    .menu-item:nth-child(3) {
        grid-row: 1;
        grid-column: 3;
    }

    .menu-item {
        position: relative;
    }

    .menu-item.active {
        position: absolute;
        bottom: auto;
        /* Reset del fix mobile */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        grid-column: 1 / -1;
        /* Forza l'occupazione di tutte le 3 colonne su desktop */
        transform: translateY(-75vh) !important;

        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    }

    .menu-item.closing {
        position: absolute;
        bottom: auto;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        grid-column: 1 / -1;
        /* Forza l'occupazione di tutte le 3 colonne su desktop */
        transform: translateY(0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    }

    .menu-item.active .content {
        height: 68.5vh !important;
        overflow-y: auto;
    }

    .videosection {
        height: 75vh;
    }

    .logocontainer {
        display: none;
    }

    .logocontainer2 {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .logoweb {
        width: 170px;
        max-width: 60%;
        height: auto;
    }

    .location-row {
        flex-direction: row;
        gap: 30px;
        align-items: stretch;
    }
}

@media (min-width: 2000px) {
    .menu-item.active .content {
        height: 70vh !important;
        overflow-y: auto;
    }
}

.menu button {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(72, 40, 40);
    color: white;
    font-family: 'Helvetica Bold';
    font-size: 33px;
    border: none;
    border-bottom: 0.5px solid white;
    padding: 4px 6px;
    cursor: pointer;
    width: 100%;
    transition: color 0s,
        background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu button p {
    margin: 3px;
    transform: translateY(18px);
}

@media (hover: hover) {
    .menu button:hover {
        color: rgb(232, 49, 134);
        transition: color 0.2s ease-out;
    }
}

.menu-btn .menu-arrow {
    display: inline-block;
    height: 22px;
    width: 22px;
    background-color: currentColor;
    -webkit-mask-image: url('Frecce-01.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('Frecce-01.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    flex-shrink: 0;
    margin-top: 22px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0s;
    will-change: transform;
    backface-visibility: hidden;
}

@media (min-width: 768px) {
    .menu-btn .menu-arrow {
        height: 26px;
        width: 26px;
        margin-top: 26px;
    }
}

.menu-btn.active .menu-arrow {
    transform: rotate(90deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .menu-btn:hover .menu-arrow {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.is-touch .menu button.tap-open .overlay {
    color: rgb(232, 49, 134);
}

.menu button:first-child {
    border-top: none;
}

.menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 10;
    min-width: 0;
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item.active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateY(-60vh);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item.closing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transform: translateY(0);
    /* Fly back to home base! */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content {
    background-color: white;
    font-family: 'Helvetica Light';
    color: black;
    box-sizing: border-box;
    line-height: 1.5;
    font-size: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    will-change: height, opacity;
    backface-visibility: hidden;

    /* Stato chiuso */
    height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 10px;

    /* Animazioni chiusura */
    transition:
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.4s;
}

.menu-item.active .content {
    height: 55vh;
    opacity: 1;
    visibility: visible;
    padding: 20px 10px;

    /* Animazioni apertura */
    transition:
        height 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0s,
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s,
        visibility 0s linear 0s;
}

.content-section {
    color: white;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-btn.active {
    outline: none;
    color: rgb(232, 49, 134);
    background-color: white;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:not(.active) {
    color: white;
    background-color: black;
    transition: color 0s, background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 40px;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: 1px solid black;
    padding: 10px;
    font-family: 'Helvetica Light';
    font-size: 16px;
    text-transform: uppercase;
}

.contact-form textarea {
    min-height: 100px;
    resize: none;
}

.contact-form button {
    background: black;
    color: white;
    border: none;
    padding: 12px;
    font-family: 'Helvetica Bold';
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: rgb(232, 49, 134);
}

.form-message {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    color: rgb(232, 49, 134);
    display: block;
}

.form-message.error {
    color: red;
    display: block;
}

footer {
    font-family: 'Helvetica Light';
    color: white;
    font-size: 10px;
    margin-top: 12px;
    text-align: center;
    padding-bottom: 20px;
}

.menu-btn {
    position: relative;
}

/* shadow agganciata al bottone */
.menu-shadow {
    position: absolute;
    top: 100%;
    /* fondo del bottone */
    left: 0;

    width: 100%;
    height: 70px;

    pointer-events: none;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0));

    opacity: 0;
    transition: opacity 0.25s ease;
}

.menu-item.active.scrolled .menu-shadow {
    opacity: 1;
}

/* Force white on desktop closing clicks to prevent Chrome hover stickiness */
.menu button.disable-hover,
.menu button.disable-hover:hover {
    color: white !important;
    transition: color 0s, background-color 0s !important;
}

.menu-btn.disable-hover .menu-arrow,
.menu-btn.disable-hover:hover .menu-arrow {
    background-color: white !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0s !important;
}