@font-face {
    font-family: neue-haas-grotesk-display, sans-serif;
    src: url('https://use.typekit.net/twk0trl.css');
}

@font-face {
    font-family: 'Open Sans', sans-serif;
    src: url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
}

@font-face {
    font-family: freight-big-pro, serif;
    font-weight: 700;
    font-style: normal;
    src: url('https://use.typekit.net/twk0trl.css');
}

@font-face {
    font-family: Messapia-Bold;
    src: url('/assets/fonts/Messapia-Bold.otf');
}

@font-face {
    font-family: Veru-Serif;
    src: url('/assets/fonts/VeruSerif.ttf');
}

:root {
    --color-background: rgb(17, 17, 17);
    --color-text: rgb(255, 255, 255);
    --color-turquoise: rgb(5, 166, 174);
    --color-purple: rgb(82, 46, 128);
    --font-grotesque: neue-haas-grotesk-display;
    --font-freight: freight-big-pro;
    --font-messapia: Messapia-Bold;
    --font-veru: Veru-Serif;
    --font-openSans: 'Open Sans';
    --font-xxx-large: 55px;
    --font-xx-large: 40px;
    --font-x-large: 32px;
    --font-large: 25px;
    --font-medium: 20px;
}

@media only screen and (max-width: 768px) {
    :root {
        --font-xxx-large: 45px;
        --font-xx-large: 30px;
        --font-x-large: 25px;
        --font-large: 15px;
        --font-medium: 12px;
    }
    .roman-graphic {
        margin-top: 5rem;
        margin-right: 3.3rem !important;
    }
    .roman-head {
        height: 15rem !important;
        margin-top: -23rem !important;
    }
    .custom-pad {
        padding: 5% 5% !important;
    }
    .cta-button {
        margin-top: 4rem;
        width: 50%;
    }
    .footer {
        padding: 2rem !important;
    }
}

@media only screen and (max-width: 991px) {
    #contact-heading {
        transform: none !important;
        font-size: var(--font-xx-large) !important;
    }
    .menuD {
        display: none;
    }
    .menuM-icon {
        display: block;
        font-size: 2.2rem;
    }
}

@media only screen and (min-width: 992px) {
    .menuD {
        display: flex;
    }
    .menuM-icon, #menu, #logo3, #logo4 {
        display: none;
    }
}

@media only screen and (max-width: 375px) {
    #contact-heading {
        transform: none !important;
        font-size: var(--font-x-large) !important;
    }
    #logo, #logo2 {
        font-size: var(--font-xx-large) !important;
    }
}

@media only screen and (max-width: 1400px) and (min-width: 1000px) {
    #clients {
        margin-bottom: 10rem !important;
    }
    #about {
        margin-bottom: 10rem !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--color-turquoise) lightgray;
    position: relative;
}

body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--color-turquoise);
    outline: 1px solid slategrey;
}

.site {
    position: relative;
    overflow: hidden;
}

a, a:hover {
    text-decoration: none;
    color: inherit;
}

button {
    border: none
}

button:hover, button:active {
    background: var(--color-turquoise);
    color: var(--color-text);
}

.custom-pad {
    padding: 13% 5%;
}

.pointer {
    cursor: pointer;
}

.custom-gray {
    background: -webkit-radial-gradient(center, ellipse cover, rgba(227, 227, 227, 1) 0%, rgba(158, 156, 158, 1) 0%, rgba(173, 173, 173, 1) 0%, rgba(166, 166, 166, 1) 52%, rgba(135, 135, 135, 1) 100%);
    background: -o-radial-gradient(center, ellipse cover, rgba(227, 227, 227, 1) 0%, rgba(158, 156, 158, 1) 0%, rgba(173, 173, 173, 1) 0%, rgba(166, 166, 166, 1) 52%, rgba(135, 135, 135, 1) 100%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(227, 227, 227, 1) 0%, rgba(158, 156, 158, 1) 0%, rgba(173, 173, 173, 1) 0%, rgba(166, 166, 166, 1) 52%, rgba(135, 135, 135, 1) 100%);
    background: radial-gradient(ellipse at center, rgba(227, 227, 227, 1) 0%, rgba(158, 156, 158, 1) 0%, rgba(173, 173, 173, 1) 0%, rgba(166, 166, 166, 1) 52%, rgba(135, 135, 135, 1) 100%);
}

.custom-gray:hover, .custom-gray:active {
    background: rgb(118, 248, 255);
    background: radial-gradient(circle, rgba(118, 248, 255, 1) 46%, rgba(5, 166, 175, 1) 100%);
}

/* HEADER */

#menu {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 5rem 0;
    display: none;
}

.animate-menu {
    animation: resize 1s;
}

.navbar {
    position: fixed;
    width: 100vw;
    transition: top 0.35s;
}

#logo {
    font-family: var(--font-veru);
    font-size: var(--font-xxx-large);
    pointer-events: none;
    z-index: 3;
    position: relative;
}

#logo2 {
    font-family: var(--font-veru);
    font-size: var(--font-xxx-large);
}

#logo3 {
    position: absolute;
    margin-left: 3rem;
    font-family: var(--font-freight);
    font-size: var(--font-large);
    z-index: 5;
    padding: 3px;
    border-radius: 3px;
}

#logo4 {
    position: absolute;
    font-family: var(--font-freight);
    margin-left: 3rem;
    margin-top: 3rem;
    z-index: 5;
    padding: 3px;
    border-radius: 3px;
}

.logo-hidden {
    display: none;
}

.underline {
    display: inline;
    position: relative;
    overflow: hidden;
    font-size: medium;
    color: var(--color-white);
    font-family: var(--font-messapia);
}

.underline:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    width: 0;
    bottom: -5px;
    background: var(--color-turquoise);
    height: 4px;
    transition-property: width;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    top: 9px;
    z-index: 5;
}

.underline:hover:after, .underline:focus:after, .underline:active:after {
    left: -5px;
    right: auto;
    width: 110%;
}

.intro-video {
    width: 100%;
    min-width: 100%;
    height: 100vh !important;
    max-height: 100vh !important;
    object-fit: cover;
    overflow: hidden;
}

#video {
    width: 100vw;
    height: 100vh;
    vertical-align: middle;
    object-fit: cover;
    background-color: #f0f0f0;
}

.description {
    padding-top: 0;
}

.description-text {
    font-size: var(--font-x-large);
    font-family: var(--font-grotesque);
    font-weight: bold;
}

.cta-button {
    font-family: var(--font-messapia);
    padding: 5px 10px;
    min-width: 15rem;
    font-size: var(--font-large);
    border-radius: 5px;
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-turquoise);
}

.heading {
    transform: rotate(-90deg);
    font-size: var(--font-xxx-large) !important;
    font-family: var(--font-messapia);
    letter-spacing: 5px;
    white-space: nowrap;
    z-index: 3 !important;
    pointer-events: none;
}

.client-box {
    width: 100%;
    height: 12rem;
    margin: 0 5px;
}

.client-content {
    width: 100%;
    height: 100%;
    background: url(/assets/images/team.jpg);
    background-size: contain;
    opacity: 0.2;
}

.client-content:hover {
    opacity: 1;
}

.client-box-cta {
    background: rgb(42, 13, 56);
    background: radial-gradient(circle, rgba(42, 13, 56, 1) 47%, rgba(35, 5, 64, 1) 100%);
}

.client-box-text {
    padding: 1rem 2rem;
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    text-align: right;
}

.team-img {
    width: 100%;
}

.about-text {
    font-size: var(--font-large);
    font-family: var(--font-messapia);
}

#contact {
    height: 50rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.map-container {
    width: max-content;
}

.social-button {
    background: var(--color-turquoise);
    font-size: var(--font-x-large);
    border-radius: 4px;
    margin: 0 3px;
    height: 4rem;
    width: 4rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.email-button {
    font-family: var(--font-messapia);
    padding: 5px 10px;
    min-width: 15rem;
    font-size: var(--font-large);
    border-radius: 5px;
    background-color: transparent;
    border: 2px solid var(--color-turquoise);
    color: var(--color-text);
}

.roman-graphic {
    font-family: var(--font-veru);
    color: var(--color-turquoise);
    font-size: var(--font-xx-large);
    margin-right: 5rem;
}

.roman-head-menu {
    height: 20rem;
    position: relative;
    left: -8rem;
    bottom: -2rem
}

.roman-head {
    height: 20rem;
    margin-top: -30rem;
}

#rotating-background {
    font-family: var(--font-veru);
    color: var(--color-purple);
    font-size: var(--font-xxx-large);
    position: fixed;
    top: 40%;
    left: 0;
    z-index: 1;
}

.z-2 {
    z-index: 2 !important;
    position: relative;
}

.z-3 {
    z-index: 3;
}

#glitchY {
    position: absolute;
    writing-mode: vertical-rl;
    white-space: nowrap;
    top: 5vh;
    left: 10vh;
    letter-spacing: 2px;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-text);
    animation: 0.4s shake infinite alternate;
    font-family: var(--font-messapia);
}

#glitchX {
    position: absolute;
    top: 90vh;
    right: 5vh;
    letter-spacing: 2px;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-text);
    animation: 0.8s shake infinite alternate;
    font-family: var(--font-messapia);
}

@keyframes shake {
    0% {
        transform: translateY(-4rem);
        transform: translateX(-10rem);
    }
    5% {
        transform: translateY(5rem);
        transform: translateX(10rem);
    }
    10% {
        transform: translateY(-10rem);
        transform: translateX(-4rem);
    }
    15% {
        transform: translateY(5rem);
    }
    20% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.visible {
    visibility: visible !important;
}

.google-wrapper {
    position: relative;
    width: 100%;
    z-index: 3;
}

#google-map {
    width: 100%;
    height: 250px;
    z-index: 3;
}

#google-map-overlay {
    width: 100%;
    height: 250px;
    background: var(--color-turquoise);
    position: absolute;
    opacity: 0.5;
    top: 0px;
    left: 0px;
    z-index: 99 !important;
    pointer-events: none;
}

.map-text {
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    color: var(--color-text);
}

.map-container {
    width: 100%;
}

.show-animation {
    animation: show-text 1s forwards ease-in-out;
}

@keyframes show-text {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    20% {
        opacity: 0.2;
    }
    30% {
        opacity: 0.3;
    }
    40% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.5;
    }
    60% {
        opacity: 0.6;
    }
    70% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

@keyframes resize {
    from {
        width: 0;
        height: 0;
    }
    to {
        width: 100%;
        height: 100%;
    }
}

.default-user {
    position: relative;
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    background: rgba(227, 227, 227, 0.5);
    width: 100%;
    z-index: 1;
    height: 100%;
}

#overlay:hover {
    background: transparent;
}

.image {
    position: relative;
}

.image a {
    display: block;
    position: absolute;
    z-index: 5;
    cursor: pointer;
}

[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    color: var(--color-text);
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    position: relative;
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
    top: 75%;
}

[data-title] {
    position: relative;
}

/* MODAL */

.modal-content {
    background-color: var(--color-background);
}

.modal-fullscreen {
    width: 95vw;
    max-width: none;
    height: 95%;
    margin: 1rem auto;
}

.modal-header {
    border: none;
}

.modal-title {
    font-family: var(--font-messapia);
    font-size: var(--font-medium);
}

.footer {
    position: fixed;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem 4rem;
    font-family: var(--font-openSans);
}

#graphic-video {
    width: 45rem;
    position: absolute;
    bottom: -5rem;
    right: 18rem;
}

.header {
    padding-bottom: 10rem;
}

/* FONDOVI FOOTER */

.flex{
    display: flex;
    padding: 40px 20px 0 20px;
    gap: 20px;
    align-items: center;
    z-index: 2;
}

.flex > img{
    object-fit: contain;
    width: calc(100% / 3);
    max-height: 100px;
}

@media only screen and (max-width: 1550px) {
    #graphic-video {
        right: 5rem;
    }
}

@media only screen and (max-width: 1315px) {
    #graphic-video {
        width: 35rem;
        bottom: 0;
    }
}

@media only screen and (max-width: 1200px) {
    #graphic-video {
        width: 35rem;
        right: 0;
    }
    .description-text {
        font-size: 28px;
    }
}

@media only screen and (max-width: 1000px) {
    #graphic-video {
        width: 30rem;
        right: 0;
    }
    .description-text {
        font-size: 25px;
    }
}

@media only screen and (max-width: 767px) {
    .description {
        padding-bottom: 15rem !important;
    }
    
    .flex{
        flex-direction: column;
        padding: 20px 20px 0 20px;
    }
    
    .flex > img{
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .description {
        padding-bottom: 15rem !important;
    }
}

@media only screen and (max-width: 470px) {
    #graphic-video {
        width: 25rem;
        right: 0;
    }
}

@media only screen and (max-width: 375px) {
    #graphic-video {
        width: 22rem;
        right: 0;
    }
}