@import url('variables.css');

/* Importa il font Whyte-Medium */
@font-face {
    font-family: 'Whyte-Medium';
    src: url('../font/Whyte-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.custom-link {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 14px;
    top: 10px;
    left: 10px;
    line-height: 1.5;
    text-align: left;
    color: var(--color);
}

.header-francesco {
    font-family: 'Whyte-Medium', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--color);
}

.menu-top {
    font-family: 'Whyte-Medium', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--color);
    z-index: 10;
    cursor: pointer;
}

.menu-top:hover {
    opacity: 0.5;
}

.menu-bottom {
    position: fixed;
    bottom: -100px; /* Hide off-screen */
    width: 100%;
    transition: bottom 0.5s ease; /* Add transition */
    font-family: 'Whyte-Medium', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--color);
    z-index: 10;
}

.menu-bottom .col:hover {
    opacity: 0.5;
}

header a {
    margin-left: 15px;
    text-decoration: none;
    font-size: 16px;
    color: black;
    z-index: 10;
}

/* Home Page Styles */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#image-sequence {
    display: flex;
    width: 100%;
    height: 100%;
    animation: scrollImages 2s linear infinite;
}

#image-sequence img {
    height: 100%;
    margin-right: 10px;
}

@keyframes scrollImages {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Contact Page */
.contact {
    position: absolute;
    text-align: center;
    padding: 20px;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.home-button {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 14px;
    top: 10px;
    line-height: 1.5;
    color: var(--color);
}

.container-brand { 
    position: absolute;
    display: flex;
    width: 100%;
    left: 0;
    visibility: hidden;
    transition: visibility 2s, opacity 2s linear;
}

.project-phone {
    display: none;
    text-align: center;
    width: auto;
    position: static;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 180px); /* Altezza totale meno l'altezza del menu-bottom */
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .home-button {
        position: absolute;
        bottom: 10px;
        right: 10px;
    }
    .fotoProfilo-sm {
        width: auto;
        height: 100%;
        display: block;
        margin: 0 auto;
    }
    .flash-text {
        font-size: 16px;
    }
    .container-photo-profilo {
        height: 30px;
    }
}

.fotoProfilo-lg {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.overlay-container .row {
    pointer-events: auto;
}

.icon-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.francesco-datos-sm {
    line-height: 1;
    flex-direction: column;
    align-items: right;
    text-align: left;
    color: var(--color);
    font-size: 12px;
    font-family: 'Whyte-Medium', sans-serif;
}

.graphic-designer-sm {
    line-height: 1.2;
    height: 100%;
    text-align: right;
    color: var(--color);
    font-family: 'Whyte-Medium', sans-serif;
    font-size: 9px;
}

html, body {
    overflow: hidden;
}

#container {
    width: 100%;
    font-size: 12px;
    font-family: 'Whyte-Medium', sans-serif;
    position: absolute;
    overflow: hidden;
    white-space: nowrap;
    color: var(--color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    bottom: 0;
}

#container .scroll {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: fit-content;
    white-space: nowrap;
    animation: loop 30s linear infinite;
}

@keyframes loop {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* New background color overlay */
#filtro-progetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #DFDFDF;
    z-index: 0.5;
    opacity: 0.9;
    transition: opacity 1s ease-in-out; /* Aggiungi questa linea per l'animazione */
    pointer-events: none; /* Impedisce l'interazione */
}

/* New header-cecco styles */
.header-cecco {
    position: fixed;
    top: -100px; /* Nascondi fuori dallo schermo */
    left: 0;
    width: 100%;
    transition: top 0.5s ease; /* Aggiungi transizione */
    z-index: 10;
}

.header-cecco-sm {
    position: fixed;
    top: -100px;
    width: 100%;
    justify-content: center; 
    align-items: center;
}

.projects-phone {
    align-items: center;
    justify-content: center;
    margin-top: 120px !important;
}