@font-face {
    font-family: "MinionPro";
    src: url('/01_font/MinionPro-Regular.woff') format('woff');
}


html,
body {
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-color: white;
    z-index: -1;
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    /* Set blend mode to multiply */
    z-index: 1;
    /* Place background behind the content */
}

* {
    box-sizing: border-box;
    font-family: 'MinionPro', serif;
}

::-webkit-scrollbar {
    display: none;
    /* for Chrome, Safari, and Opera */
}

/*BODY*/
p {
    font-family: 'MinionPro', serif;
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
    color: #000000;
    -webkit-text-stroke-width: .6px;
}

a {
    font-family: 'MinionPro', serif;
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
    text-decoration: none;
    color: #000000;
    -webkit-text-stroke-width: .6px;
}

a:hover {
    color: transparent;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

span {
    /*text-transform: uppercase;*/
    font-size: 1.2rem;
}

header>a:hover {
    color: transparent;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

header>p:hover {
    color: transparent;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.container a:first-of-type::after {
    content: "";

}

/*header e footer*/

#difference {
    z-index: 20;
    mix-blend-mode: difference;
    will-change: mix-blend-mode;
    background: rgba(0, 0, 0, 0);
}

#myBtn {
    position: absolute;
    z-index: 1;
    right: 8px;
    top: 8px;
}

.footer {
    position: fixed;
    bottom: 8px;
    z-index: 35;
}

/*image hover*/


.container {
    display: flex;
    flex-direction: column;
    align-items: center;     /* centro orizzontale */
    justify-content: center; /* centro verticale */
    max-width: calc(100vw - 16px);
    height: calc(100vh - 39px);
    text-align: center;
}

/* Ogni item ha larghezza pari al suo contenuto */
.container a.item {
    display: inline-block;    /* adatta alla lunghezza del testo */
    width: auto;
    max-width: 90vw;          /* evita che vada oltre lo schermo */
    text-align: center;
    white-space: nowrap;      /* evita che il testo vada a capo */
}

/* opzionale: se vuoi che i <span> mantengano il loro aspetto */
.container a.item span {
    display: inline;
}


.item:hover {
    z-index: 1;
}

.container>a {
    z-index: 10;
}

.item>img {
    position: fixed;
    z-index: -1;
    /* Posiziona l'immagine sotto tutto */
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 70%;
    visibility: hidden;
    transform: translate(-50%, -50%);
    pointer-events: none;
    top: 50%;
    left: 50%;
    object-fit: contain;
}

.item:hover>img.visible {
    visibility: visible;
    z-index: -1;
    /* L'immagine rimane sotto anche quando visibile */
    transition: transform 0.2s ease-in-out;
}

img {
    width: 100%;
    height: auto;
}

video {
    z-index: 1;
    width: 100%;
    height: auto;
}

/*MODAL WINDOW*/
.modal {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-color: white;
}

/* Modal Content */
.modal-content {
    z-index: 20;
    margin: auto;
    padding: 8px;
    width: 100%;
    height: auto;
    overflow: auto;
}

.modal-content>a:hover {
    color: transparent;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* The Close Button */
.close {
    width: fit-content;
    color: #000000;
}

.close:hover,
.close:focus {
    color: transparent;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Medium (tablet, 768px and down) */
@media only screen and (max-width: 900px) {
    .item>img {
        max-width: 70%;
        max-height: 70%;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .item>img {
        max-width: 90%;
        max-height: 70%;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 20;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        background-color: white;
    }
    
      .container {
    height: calc(100svh - 39px);
  }

}

/* Effetto hover per i dispositivi che supportano hover 
@media (hover: hover) and (pointer: fine) {
}*/