html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Garantisce che l'altezza del body sia 100% */
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: url('../images/sfondo.jpg') no-repeat center center fixed;
    background-size: cover;
    /* font-family: Arial, sans-serif; */
    display: flex;
    flex-direction: column; /* Cambiato per disporre header e contenitore verticalmente */
    align-items: center;
    overflow: hidden;
    font: normal normal 400 14px / 18px "Tenor Sans", Helvetica, Arial, Verdana, sans-serif;
}

.topbar {
    width: 100%;
    background-color: #28616a;
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    box-sizing: border-box;
    font-size: 14px;
}

.topbar-left {
    display: flex;
    gap: 20px; /* Spazio tra i blocchi */
}

.topbar-right {
    display: flex;
    gap: 20px; /* Spazio tra i blocchi */
}

.topbar-left span, .topbar-right span {
    display: flow;
    align-items: center;
    font-size: 14px;
}

.topbar-left i, .topbar-right i {
    margin-right: 5px;
}

.topbar-right i {
    margin-right: 10px;
}

.header {
    position: absolute;
    top: 50px; /* Distanza dal bordo superiore, dopo la topbar */
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 20; /* Per assicurarsi che il logo sia sopra gli altri elementi */
}

.logo {
    width: 310px; /* Dimensione massima del logo */
    height: auto;
}

.container {
    position: relative;
    width: 100%;
    height: calc(150vh - 130px); /* Altezza totale della viewport meno altezza della topbar e header */
    background-color: rgba(0, 0, 0, 0.2); /* Sfondo semi-trasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.button-wrapper {
    position: relative;
}

.material-button {
    position: absolute;
    width: 180px;  /* Dimensione aumentata */
    height: 180px; /* Dimensione aumentata */
    border-radius: 50%;
    border: none;
    /* background-color: #1e464d; */
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-origin: center;
    overflow: hidden;
    animation-name: ripple;
    animation-duration: 1.5s;
    animation-iteration-count: 10;
}


@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 #fff4, 0 0 0 0 #fff4;
    }

    80% {
        box-shadow: 0 0 0 20px #fff0, 0 0 0 40px #fff0;
    }

    100% {
        box-shadow: 0 0 0 0 #fff0, 0 0 0 0 #fff0;
    }
}

.material-button img {
    width: 110%;
    height: 100%;
   
    border-radius: 50%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.material-button:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}


.material-button:hover {
    background-color: rgb(132, 101, 92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.material-button-toggle {
    position: relative;
    width: 120px;  /* Dimensione aumentata */
    height: 120px; /* Dimensione aumentata */
    background-color: #1e464d;
    font-size: 36px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150%;
}

.material-button-toggle span {
    transition: transform 0.3s ease;
    color: #fff;
    font-size: 33px;
}

.button-wrapper.active .material-button-toggle span {
    transform: rotate(45deg);
}

.options {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-wrapper.active .options {
    opacity: 1;
    pointer-events: auto;
}

/* Posizionamento cartesiano attorno al pulsante centrale */
.option1 { top: -330px; left: 50%; transform: translateX(-50%); }   /* Sopra */
.option2 { top: 50%; left: 140px; transform: translateY(-113%); }    /* Destra */
.option3 { bottom: -180px; left: 50%; transform: translateX(-106%); }/* Sotto */
.option4 { top: 50%; left: -200px; transform: translateY(-113%); }   /* Sinistra */
.option5 { top: 50%; left: 82px; transform: translateY(0%); }   /* Sinistra */

/* Media Query per smartphone */
@media (max-width: 767px) {

    
.logo {
    width: 210px; /* Dimensione massima del logo */
    height: auto;
}

    /* .material-button {
        width: 120px;  
        height: 120px; 
        font-size: 18px;
    }

    .material-button-toggle {
        width: 80px;  
        height: 80px; 
        font-size: 24px;
    }

    .material-button-toggle span {
        font-size: 20px;
    } */

  
}


/* Media Queries per Tablet (768px a 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .topbar {
        padding: 10px 15px;
        font-size: 14px;
    }

    .topbar-left, .topbar-right {
        gap: 15px;
    }

    .topbar-right span {
        font-size: 14px;
    }

    .topbar-left i, .topbar-right i {
        margin-right: 5px;
    }
}

/* Media Queries per la versione mobile TOPBAR */
@media (max-width: 879px) {
    .topbar-left {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .topbar-right {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .topbar-left span {
        display: none; /* Nasconde i dettagli non necessari in versione mobile */
    }

    .topbar-right span {
        display: flex;
        align-items: center;
    }
    
    .topbar-right span:first-child {
        display: none;
    }

    .topbar-right span:nth-child(2) {
        display: flex;
        font-size: 12px;
    }

    .topbar-right span:last-child {
        display: flex;
        gap: 10px;
        font-size: 12px;
    }
    
    .topbar-left span:nth-child(2) {
        display: none;
    }

    .topbar{

        justify-content: center;

    }
}


/* Riduce la dimensione dei pulsanti su schermi con altezza <= 768px */
@media (max-height: 664px) {
    /* .material-button, .material-button-toggle {
        width: 100px;
        height: 100px;
        font-size: 18px;
    }

    .material-button-toggle {
        font-size: 28px;
    } */

    .logo {
        max-width: 200px;
    }



}

/* Riduce ulteriormente la dimensione su schermi con altezza <= 480px */
@media (max-height: 480px) {
    /* .material-button, .material-button-toggle {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    .material-button-toggle {
        font-size: 24px;
    } */

    .logo {
        max-width: 150px;
    }

    .topbar {
        font-size: 12px;
    }


   
}

/* Adattamenti ancora più estremi per schermi con altezza <= 320px */
@media (max-height: 379px) {
    /* .material-button, .material-button-toggle {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .material-button-toggle {
        font-size: 20px;
    } */

    .logo {
        max-width: 100px;
    }

    .topbar {
        font-size: 10px;
    }


 
 }


 /* Riduce la dimensione del font quando l'altezza è inferiore a 480px */
 @media (max-height: 480px) {
    .material-button-toggle span {
        font-size: 20px; /* Cambia il font-size a 26px */
    }
}




 @media (max-height: 768px) {

    .material-button-toggle {
        width: 100px; /* Modifica la dimensione del pulsante a piacere */
        height: 100px;
        background-color: #1e464d;
        border-radius: 50%;
        font-size: 15px;
        z-index: 10;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative; /* Necessario per il posizionamento dello span */
    }

    
    .material-button-toggle span {
        position: absolute; /* Si posiziona senza essere influenzato dalla grandezza del pulsante */
        font-size: 2em; /* Mantiene una dimensione proporzionata senza eccessi */
        line-height: normal;
        color: #fff;
        transition: transform 0.3s ease;
    }
    
    .button-wrapper.active .material-button-toggle span {
        transform: rotate(45deg);
    }
    
   

    /* Posizionamento adattato per smartphone */
 .option1 { top: -242px; left: 50%; width: 130px; height: 130px; transform: translateX(-50%); }   /* Sopra */
 .option2 { top: 50%; left: 108px; width: 130px; height: 130px; transform: translateY(-115%); }    /* Destra */
 .option3 { bottom: -119px; left: -8%; width: 130px; height: 130px; transform: translateX(-68%); }/* Sotto */
 .option4 { top: 50%; left: -137px; width: 130px; height: 130px; transform: translateY(-116%); }   /* Sinistra */
 .option5 { top: 50%; left: 56px; width: 130px; height: 130px; transform: translateY(-5%); }   /* Sinistra */
}


@media (max-width: 1024px) and (orientation: landscape) {

    #bottom-bar {
        background-color: #28616a;
        width: 100%;
        padding: 0px 0;
        text-align: center;
        position: relative;
        left: 0;
        right: 0;
    }

    .logo {
        max-width: 100px !important;
    }

    .wf-container-bottom {
        flex-direction: column;
        text-align: center;
        margin-bottom: -7px !important;
        margin-top: 10px;
    }
   
    .material-button-toggle {
        width: 40px; 
        height:40px;
        background-color: #1e464d;
        border-radius: 50%;
        font-size: 6px;
        z-index: 10;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative; /* Necessario per il posizionamento dello span */
    }

    
    .material-button-toggle span {
        position: absolute; /* Si posiziona senza essere influenzato dalla grandezza del pulsante */
        font-size: 2em; /* Mantiene una dimensione proporzionata senza eccessi */
        line-height: normal;
        color: #fff;
        transition: transform 0.3s ease;
    }
    
    .button-wrapper.active .material-button-toggle span {
        transform: rotate(45deg);
    }
    
   

    /* Posizionamento adattato per smartphone */
 .option1 { top: -110px; left: 50%; width: 65px; height: 65px; transform: translateX(-50%); }   /* Sopra */
 .option2 { top: 50%; left: 48px; width: 65px; height: 65px; transform: translateY(-106%); }    /* Destra */
 .option3 { bottom: -66px; left: 19%; width: 65px; height: 65px; transform: translateX(-87%); }/* Sotto */
 .option4 { top: 50%; left: -71px; width: 65px; height: 65px; transform: translateY(-102%); }   /* Sinistra */
 .option5 { top: 50%; left: 23px; width: 65px; height: 65px; transform: translateY(-1%); }   /* Sinistra */

}






