﻿body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* overflow: hidden; */
    display: block;
    justify-content: center;
    align-items: center;
    color: white;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: "Poppins", "Nunito", sans-serif;
    text-align: center;
    user-select: none;
}

/* STYLE DI DEFAULT DELLE FINESTRE */

    .div-primaria {
   
}

.div-FinestraCentrale {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 0;
    animation: fadeIn 0.4s ease-in-out;
    overflow: hidden;
}

.header-finestra {
    background: linear-gradient(to right, #dee4ea, #f5f7fa);
    padding: 0px 16px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--colore-primario);
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titolo-finestra {
    flex: 1;
    text-align: left;
}

.chiudi-finestra {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--colore-primario);
    cursor: pointer;
    transition: color 0.3s ease;
}.chiudi-finestra:hover {
        color: red;

 }

.contenuto-finestra {
    padding: 20px;
    overflow-y: auto;
}

.div-FinestraCentralePiccola {
    border-radius: 10px 10px 10px 10px;
    background-color: white;
    padding: 5px 5px 5px 5px;
    box-shadow: 30px 30px 60px #ffffffaa, -30px 30px 60px #a6abe1aa;
    background: linear-gradient(to top, #c7c4d5, #adedfb);
}

/* STYLE DI DEFAULT DEGLI OGGETTI */

.img-grafica{

}

/* STYLE DI DEFAULT DEI TESTI */

.testo-normale {
    line-height: 1.6;
    margin-bottom: 8px;
}

.testo-grossetto {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* POSIZIONE DELL DIV */
.Div-Centrata {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-in-out;
    z-index: 9000;
}


.div-centrata-animata {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-in-out;
    z-index: 9000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    opacity: 1;
    animation: dolceApparizione 0.6s ease;
}

@keyframes dolceApparizione {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}



/* SCHERMO DOPPIO PAGINA DIVISA IN DUE */

.contenitore-doppia-finestra {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.finestra-sinistra,
.finestra-destra {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    padding: 10px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Versione mobile */
@media (max-width: 768px) {
    .contenitore-doppia-finestra {
        flex-direction: column;
    }

    .finestra-sinistra,
    .finestra-destra {
        width: 100% !important;
        height: auto !important;
    }
}




/* CREA UN FOCUS QUANDO PASSA IL MOUSE SULL'OGGETTO */

.object-focus {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    .object-focus:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }


/* CREA EFFETTI SULLE IMAGINI */

.immagine-sfumata {
    display: block;
    border-radius: 12px;
    object-fit: cover;
    opacity: 0.0;
    /*
    transform: scale(0.78);
    transition: opacity 1.5s ease, transform 1.5s ease;
    
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 10%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
         
    animation: comparsaDelicata 12.8s ease forwards;
    animation-delay: 0.3s;
        */
    animation: comparsaDelicata 12.8s ease forwards;
}
@keyframes comparsaDelicata {
    0% {
        opacity: 0;
        /*transform: scale(1.90); */
    }

    100% {
        opacity: 1.0;
        /*transform: scale(1); */
    }


}



/* CREA STILE BOTTINI STANDARD */



.bottone-menu {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(180,210,255,0.9));
    color: #3b4d91;
    border: 1px solid rgba(200,220,255,0.8);
    border-radius: 18px;
    padding: 10px 22px;
    font-size: 17px;
    font-weight: 600;
    font-family: "Segoe UI", "Poppins", sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(180, 220, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

    .bottone-angelico:hover {
        background: linear-gradient(135deg, rgba(210,230,255,0.95), rgba(255,255,255,0.95));
        color: #2b3879;
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 0 18px rgba(180, 220, 255, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.7);
    }

    .bottone-angelico:active {
        transform: scale(0.97);
        box-shadow: 0 0 6px rgba(160, 190, 240, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.5);
    }


.bottone-iperlink {
    display: inline-block;
    /* padding: 1px 20px;*/
    /* margin: 10px; */
    padding-left: 5px;
    padding-right: 5px;
    color: var(--colore-pulsante-hover);
    background-color: white;
    /* border: 2px solid var(--colore-pulsante-hover); */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
    .bottone-iperlink:hover {
        background-color: var(--colore-link-hover);
        color: white;
    }