﻿:root {
    --header-height: 1.2rem;
    --nav-width: 68px;
    --first-color-light: #AFA5D9;
    --body-font: 'Nunito', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
}

*,
::before,
::after {
    box-sizing: border-box
}

body {
    position: relative;
    /*margin: var(--header-height) 0 0 0;*/ /* risulta nascosta la topbar, non calcolare margini*/
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    /*display: flex;*/ /* disattivato per avere gli elementi col-6 disposti su tutta la navbar top */
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: white;
    z-index: var(--z-fixed);
    transition: .5s
}

.header_toggle {
    color: black;
    font-size: 1.5rem;
    cursor: pointer
}

.l-navbar {
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: #274861;
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}

.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	overflow-x: hidden;
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem;
	cursor: pointer;
}

.nav_logo {
    margin-bottom: 2rem;
}

.nav_logo:hover{
	background: rgb(255,160,0);
	background: radial-gradient(circle, rgba(255,160,0,0.5564600840336135) 0%, rgba(0,0,0,0) 100%);
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: white
}

.nav_logo-name {
    color: white;
    font-weight: 700
}

.nav_link {
    position: relative;
    color: white;
    /*margin-bottom: 1.5rem;*/ /* margine tra gli elementi della sidbar */
    transition: .3s
}

.nav_link:hover {
    color: white
}

.nav_icon {
    font-size: 1.25rem
}

.showNav {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}


.nav_mainElement{
	color: white!important;
	font-family: system-ui!important;
}

li.fontSize-subElem:hover, a.fontSize-mainElem:hover, a.fontSize-subElem:hover{
	background: rgb(95,255,222);
	background: radial-gradient(circle, rgba(95,255,222,0.5564600840336135) 0%, rgba(0,0,0,0) 100%);
	cursor: pointer;
	text-decoration: underline;
}

.fontSize-mainElem{
	font-size: 16px;
}
 
.fontSize-subElem{
	font-size: 14px;
}



.activeNavElem {
    color: #80BDFF!important
}


.activeNavElem::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: white;
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 768px) {
    body {
        /*margin: calc(var(--header-height) + 1rem) 0 0 0;*/ /* risulta nascosta, non calcolare margini */
        padding-left: calc(var(--nav-width) + 1rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_img {
        width: 40px;
        height: 40px
    }

    .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .showNav {
        width: calc(var(--nav-width) + px) /* considera il width pari al massimo raggiungibile dalle voci nel menù */
    }

    .body-pd {
        /*padding-left: calc(var(--nav-width) + 188px)*/
    }
}