body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    font-family: Helvetica, sans-serif;
    transition: background-color 0.9s, color 0.9s;
    cursor: none;
}

h1 {
    font-family: Helvetica, sans-serif;
    font-weight: 900;
    font-size: 4em;
    margin-bottom: 0.3em;
    color: #000;
    -webkit-text-stroke: 2px #000; /* Bordo visibile */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.6s, -webkit-text-stroke-color 0.6s;
}

.container {
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.description {
    font-size: 0.7em;
    margin-bottom: 10px;
    font-family: Helvetica, sans-serif;
    font-weight: 100;
    line-height: 140%;
}

.local-time {
    font-size: 0.7em;
    margin-bottom: 30px;
    position: absolute;
    top: 20px; /* Posiziona sotto l'h1 */
    right: 20px;
    text-align: right;
    line-height: 1.5;
    font-family: Helvetica, sans-serif;
    font-weight: 100;
}

.local-time p {
    margin: 0;
    color: #000;
}

.links {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.7em;
    font-weight: 100;
    display: flex;
    flex-wrap: wrap;
}

.links a {
    color: #000;
    text-decoration: none;
    margin-right: 30px;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    cursor: none;
}

.links a:hover {
    color: #fff;
}

body:hover {
    background-color: #000;
    color: #fff;
}

body:hover .links a {
    color: #fff;
}

.hover-text {
    display: none;
    font-size: 0.7em;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    white-space: nowrap;
}

.links a:hover .hover-text {
    display: block;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s, transform 0.3s;
}

.cursor-coordinates {
    position: absolute;
    color: #fff;
    font-size: 0.6em;
    transform: translate(-50%, 10px);
    text-align: center;
    text-wrap: nowrap;
    pointer-events: none;
    font-family: Helvetica, sans-serif;
    font-weight: 100;
}

body:hover .custom-cursor {
    border-color: #fff;
    background-color: #fff;
}

.custom-cursor.transparent {
    opacity: 0.5;
}

.custom-cursor.enlarged {
    transform: scale(1.5);
}

.marquee-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding-bottom: 5px;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 80s linear infinite;
    font-family: Helvetica, sans-serif;
    font-weight: 100;
    color: rgb(255, 255, 255);
    font-size: 0.85em;
}

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

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .local-time {
        position: relative; /* Cambia il position da absolute a relative */
        display: block; /* Forza il local time a andare a capo */
        margin-bottom: 10px; /* Aggiungi uno spazio sopra, se necessario */
        font-size: 0.7em; /* Puoi regolare la dimensione del font per dispositivi mobili */
        text-align: center; /* Allinea il testo al centro */
        right: 0px;
        font-weight: 100;
    }
}

body:hover .local-time p {
    color: #fff; /* Cambia colore al passaggio del mouse */
}
body:hover h1 {
    color: #fff;
    -webkit-text-stroke: 2px #fff;
}

.open-to-work {
    margin-top: 15px;
    font-size: 0.75em;
    font-weight: 700;
    color: #8DB600;         /* verde pisello */
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transform-origin: center;
    animation: smooth-breath 6s ease-in-out infinite;
}

@keyframes smooth-breath {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}


/* Nascondi orario e meteo su dispositivi piccoli */
@media (max-width: 768px) {
    .local-time {
        display: none;
    }
}

html, body {
    overflow: hidden;  /* blocca scroll verticale e orizzontale */
    height: 100%;      /* occupa tutta l’altezza dello schermo */
    width: 100%;       /* occupa tutta la larghezza */
    touch-action: none; /* blocca lo swipe e il pinch-to-zoom su mobile */
}

