/* Bottoni stile register_user.php */
.btn-avanti {
    display: inline-block;
    background: linear-gradient(90deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 1.1em;
    margin: 10px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60,60,60,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-avanti:hover, .btn-avanti:focus {
    background: linear-gradient(90deg, #388e3c 0%, #4caf50 100%);
    box-shadow: 0 4px 16px rgba(60,60,60,0.16);
}

.btn-avanti-desideri {
    display: inline-block;
    background: linear-gradient(90deg, #bdbdbd 0%, #757575 100%);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 1.1em;
    margin: 10px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60,60,60,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-avanti-desideri:hover, .btn-avanti-desideri:focus {
    background: linear-gradient(90deg, #757575 0%, #bdbdbd 100%);
    box-shadow: 0 4px 16px rgba(60,60,60,0.16);
}
body, html {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #333;
    text-align: center;
}

/* Sfondo globale per tutte le pagine */
html {
    background: url('/images/sfondo_green_pianeta.jpeg'), #032F14 !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
}

/* Media query per mobile - sfondo responsive */
@media screen and (max-width: 768px) {
    html {
        background-size: cover !important;
        background-repeat: repeat !important;
        background-attachment: fixed !important;
    }
}

/* Disabilita sfondo su body per evitare conflitti */
body {
    background: none !important;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
a {
    color: #fff; /* Colore bianco per i link */
}

/* Rimuove effetto focus/selezione da tutti i link e bottoni */
a, button {
    outline: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/*.container {
    background: rgba(0, 0, 0, 0.4); 
    padding: 20px;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 76%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}*/
.container {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 800px;
    min-width: 280px;
    width: 90%;
    box-sizing: border-box;
}
/* Container in basso  */
.container-bottom {
    margin-top: auto !important;
    margin-bottom: 40px !important;
}
/* Container in alto  */
.container-top {
    margin-top: 30px !important;
    margin-bottom: auto !important;
}


.container-form {
    background: rgba(0, 0, 0, 0.8); /* più opaco per migliorare la leggibilità campi form */
    padding: 10px;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 76%;
    position: absolute;
    bottom: 20px; /* Margine di 20px dal fondo */
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    body, html {
        height: 100%; /* Altezza 100% per schermi piccoli */
    }
    .container, .container-form {
        top: 20px; /* Margine di 20px dall'alto per schermi piccoli */
        bottom: 20px; /* Margine di 20px dal fondo */
        display: flex;
        flex-direction: column;
        justify-content: top; /* Allinea il testo in basso */
    }
    .message-pc {
        display: block; /* Mostra il testo anche su mobile */
        font-size: 1em; /* Dimensione del testo per schermi piccoli */
        color: #fff; /* Colore del testo per schermi piccoli */
    }
    .message-mobile-bottom {
        display: block; /* Mostra il testo per dispositivi mobili */
        font-size: 1.11em; /* Dimensione del testo per schermi piccoli */
        color: #fff; /* Colore del testo per schermi piccoli */
        margin-top: auto; /* Allinea il testo in basso */
    }
}
@media (min-width: 769px) {
    .message-pc {
        display: block; /* Mostra il testo per PC */
        font-size: 1.2em; /* Dimensione del testo per schermi grandi */
        color: #fff /* Colore del testo per schermi grandi */
    }
    .message-mobile-bottom {
        display: none; /* Nasconde i bottoni mobile su desktop */
    }
}
.logo {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 160px;
}
.message {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: white; 
}
.progress-bar {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.footer {
    width: 100%;
    background: rgba(10, 10, 10, 0.5);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1em;
    margin-top: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    position: static;
}
@media (max-width: 767px) {
    .footer {
        font-size: 0.85em;
    }
}

.main {
  flex: 1;
}

.full-screen-div {
    background: rgba(0, 128, 0,0.1);
    height: 100vh;
}

/* Stili hamburger_menu.php */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.hamburger-menu {
    position: fixed;
    top: 27px;
    left: 29px;
    z-index: 1000;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    animation: rotate 1s ease-in-out 0.5s;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

.hamburger-menu div {
    width: 100%;
    height: 4px;
    background: white;
    transition: all 0.3s;
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -7px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(23, 82, 6, 0.24);
    z-index: -1;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background: rgba(52, 97, 35, 0.95);
    display: flex;
    align-items: left;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 1.0s ease;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    opacity: 0;
    transform: translateX(-100%);
    box-sizing: border-box;
}

.menu-overlay.active {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 768px) {
    .menu-overlay {
        width: 30%;
    }
}
@media (max-width: 768px) {
    .menu-overlay {
        width: 80%;
        font-size: 0.8em;
    }
    .menu-link {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    }
}

.menu-link {
    color: #fff;
    font-size: 1.5em;
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 10px 8px;
    padding: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: left;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.menu-link:hover {
    /*color: #333;
    background: rgba(255, 255, 255, 0.9);*/
    background: #032F14;
    color: #fff;
}

.menu-link img {
    margin-right: 10px;
    width: 35px !important;
    height: auto;
}
