/* settaggio intero pagina */
body,html{
    background-color:#FFFFFF;
    padding:0;
    margin: 0;
    width: 100%;
}
.login {
    overflow: hidden;
}
* {
  box-sizing: border-box;
}
/*-----------------------------------SFONDO----------------------------------------------------*/
/* settaggio immagine dello sfondo */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.home img {
    width: 25%;
    height: auto;
    object-fit: contain;
}

/*-----------------------------------BARRA DI NAVIGAZIONE----------------------------------------------------*/
.navbar {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #222;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-left {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.3s;
}

.nav-link:hover {
    background-color: #444;
    border-radius: 4px;
}

.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.profile-link:hover {
    background-color: #444;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}
/*-----------------------------------Pagina del Login----------------------------------------------------*/
/* Sfondo decorativo */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pannello login */
.loginpanel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* Stile per input */
.loginpanel input[type="text"],
.loginpanel input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Stile per checkbox */
.loginpanel input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Stile per pulsanti */
.loginpanel input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.loginpanel input[type="submit"]:hover {
    background-color: #45a049;
}

/* Stile per messaggi di errore */
.loginpanel .error {
    color: red;
    margin-top: 1rem;
    display: block;
}

/* Stile per il corpo della pagina */
body.login {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*-----------------------------------Pagina del Profilo----------------------------------------------------*/
.item1 {    
            grid-area: Profilo;
            text-align:center;
            font-size:20px;
        }
.item2 {    
            grid-area: Info;
            text-align:center;
            background-color:#ddd;
        }

/* definisco l'area della griglia */
.grid-container{
    display: grid;
    grid-template-areas:
        'Profilo'
        'Info';
        padding: 10px;
}