@import url('https://fonts.googleapis.com/css2?family=Gantari:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Nasconde la barra di scorrimento per Chrome, Safari e Opera */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Per Firefox */
html, body {
    scrollbar-width: none !important; /* Nasconde la barra */
    -ms-overflow-style: none !important; /* Nasconde la barra per Internet Explorer e Edge vecchio */
    
    /* Assicurati che il contenuto sia comunque scorrevole */
    overflow-y: scroll; 
    overflow-x: hidden; /* Evita scorrimenti laterali fastidiosi */
}
/* --- Per Firefox (Supporto limitato ma pulito) --- */
* {
    scrollbar-width: thin;
    scrollbar-color: #27ae60 #f1f1f1;
}
/* Nasconde la barra di scorrimento per IE, Edge e Firefox */
body {
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;  /* Firefox */
    
    /* Opzionale: assicura che il contenuto possa comunque scorrere */
    overflow-y: scroll; 
}


body {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
}


.cont-gen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;

}

.nav-su {
    display: flex;
    width: 100%;
    height: 12vh;
    background-color: rgb(1, 182, 1);
    box-shadow: inset 5px 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.sin {
    width: 33%;
    height: 10vh;
    display: flex;
    align-items: center;
    padding: 0 40px 0;
}

.sin .ecomind {
    text-decoration: none;
    font-size: 50px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    cursor: default;
}

.des {
    width: 33%;
    height: 10vh;
    display: flex;
    align-items: end;
    flex-direction: column;
    justify-content: space-around;
}

.cen {
    width: 33%;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}




.nav-giu {
    width: 18%;
    height: 88vh;
    background-color: rgb(224, 224, 224);
    box-shadow: inset 05px 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    /* border-radius: 0px 0px 10px 0px; */

}

.home {
    display: flex;
    width: 82%;
    height: 88vh;
    background-color: rgb(249, 249, 249);
    box-shadow: inset 05px 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

.center {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.classe {
    width: 85%;
    height: 70px;
    background-color: rgb(1, 182, 1);
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);

}

.classi-div {
    width: 100%;
    height: 67%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    padding: 10px 0 0 0;
}

.classi {
    width: 100%;
    height: 97%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 0 0 10px;

}

.heather-1 {
    height: 41.5vh;
    width: 97.5%;
    background-color: rgb(224, 224, 224);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.sin-head-1 {
    width: 30%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.des-head-1 {
    width: 30%;
    height: 80%;
    display: flex;
    align-items: start;
    justify-content: space-around;
    flex-direction: column;
    padding: 0 50px 0;
}

.heather-2 {
    height: 41.5vh;
    width: 97.5%;
    background-color: rgb(224, 224, 224);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cont-card {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
}

.card {
    background-color: rgb(198, 198, 198);
    width: 15%;
    height: 80%;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;

}

.classe a {
    text-decoration: none;
    font-size: large;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    width: 150PX;
}

.home-button {
    width: 85%;
    height: 50px;
    background-color: rgb(150, 150, 150);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);

}

.home-button a {
    text-decoration: none;
    font-size: large;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.image {
    background-image: url("../immagini/Logo-EcoMind.png");
    background-size: cover;
    /* riempie tutto */
    background-position: center;
    /* centra l'immagine */
    background-repeat: no-repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.364);
    width: 300px;
    height: 300px;
    border-radius: 100%;
    filter: brightness(83%);
}

.image:hover {
    background-image: url("../immagini/Logo-EcoMind.png");
    background-size: cover;
    /* riempie tutto */
    background-position: center;
    /* centra l'immagine */
    background-repeat: no-repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.364);
    width: 310px;
    height: 310px;
    border-radius: 100%;
    filter: brightness(80%);
    transition: all 0.5s;

}

.spazio {
    height: 300px;
    width: 2px;
    background-color: rgba(0, 0, 0, 0.187);
    border-radius: 2px;
}

#orologio {
    font-size: 28px;
    font-family: "Gantari", sans-serif;
    text-align: center;
    color: white;
    padding: 0 35px 0;
}

#data {
    font-size: 35px;
    font-family: "Gantari", sans-serif;
    text-align: center;
    color: white;
    padding: 0 35px 0;
}

.linea {
    width: 80%;
    background-color: rgb(163, 163, 163);
    height: 1.5px;
}

.immagine-profilo {
    background-color: rgb(171, 171, 171);
    width: 100px;
    height: 100px;
    border-radius: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.368);
}

.sopra {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sotto {
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.sotto .title {
    text-decoration: none;
    font-size: 30px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.sotto .classe-card {
    text-decoration: none;
    font-size: large;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.title {
    text-decoration: none;
    font-size: 40px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.social {
    background-color: rgb(1, 182, 1);
    width: 200px;
    height: 65px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 108, 18, 0.587);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 35px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.social-cont img {
    width: 50px;
}

.social-cont {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 250px;
    background-color: rgb(1, 182, 1);
    width: 300px;
    padding-bottom: 15%;
    padding-top: 15%;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.259);

}
.social-cont a{
    text-decoration: none;
    font-size: large;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
}

.insta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 190px;
    background-color: rgba(191, 191, 191, 0.57);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.259);
    cursor: pointer;
}

.facebook {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 190px;
    background-color: rgba(191, 191, 191, 0.57);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.259);
    cursor: pointer;
}
.facebook img{
    background-color: white;
    border-radius: 12px;
}
.insta img{
    border-radius: 12px;
}
.tik-tok{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 190px;
    background-color: rgba(191, 191, 191, 0.57);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.259);
    cursor: pointer;
}
.tik-tok img{
    background-color: white;
    border-radius: 11px;
}

.sondaggi {
    text-decoration: none;
    font-size: 30px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    padding: 35px;
    cursor: pointer;
}

.sondaggi:hover {
    transition: all 0.5s;
    text-decoration: none;
    font-size: 30px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    padding: 25px;
    padding-right: 30px;
    padding-left: 30px;
    cursor: pointer;
    background-color: rgba(1, 187, 1, 0.741);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 85, 7, 0.167);
}

/* =========================================
   LOADER ECO-MIND (EXTRA THICK & BOLTED)
   ========================================= */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1); /* Uscita ancora più decisa */
}

/* Container grande e bilanciato */
.loader-container {
    position: relative;
    width: 160px;
    height: 160px;
}

/* L'anello di base (Ora molto più spesso: 20px) */
.loader-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 20px solid #f2f2f2; 
    position: absolute;
    box-sizing: border-box; /* Fondamentale per non sballare le misure */
}

/* Lo spinner verde (Extra spesso: 20px) */
.loader-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 20px solid transparent;
    /* Colore principale EcoMind */
    border-top: 20px solid #2ecc71; 
    border-right: 20px solid #27ae60; 
    
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    
    /* Animazione fluida ma potente */
    animation: spinEco 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    
    /* Ombra più marcata per il bordo spesso */
    filter: drop-shadow(0 0 10px rgba(39, 174, 96, 0.4));
}

#loader-wrapper p {
    margin-top: 50px;
    font-family: 'Arial Black', sans-serif; /* Font più pesante per abbinarsi al loader */
    font-size: 24px;
    font-weight: 900;
    color: #27ae60;
    letter-spacing: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    animation: pulseText 1.5s ease-in-out infinite;
}

/* --- ANIMAZIONI --- */

@keyframes spinEco {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* --- REVEAL DEL SITO --- */

#main-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#main-content.reveal {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

#loader-wrapper.slide-up {
    transform: translateY(-100%);
}
.testo{
    text-decoration: none;
    font-size: 22px;
    color: white;
    font-family: "Gantari", sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    text-align: start;

}

.spazio-2{
    width: 400px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.187);

}