@green: #4d8c57;
@green-transparent: #4d8c57aa;

header {
    background-color: @green-transparent;
    z-index: 1030 !important;
    .navbar-brand {
        width: 280px;
        .logo {
            padding-top: 10px;
            padding-bottom: 10px;
        }
    }
}
#home_page header {
    .navbar-brand {
        width: 30%;
        transition: 0.4s width ease-in;
    }
    &.scrolled {
        /* background-color: @green; */
        .navbar-brand {
            width: 270px;
        }
    }
}
@media (min-width: 992px) {
    .navbar-expand-lg {
        justify-content: space-between;       
    }
}
.navbar-collapse {
    max-width: 800px;
    flex-direction: column;
    .socials {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        color: white;
        span {
            margin-right: 0.5rem;
            font-size: 1.12em;
        }
        a {
            margin-left: 1rem;
            img {
                height: 40px;
            }
        }
    }
}
.logo {
    margin-bottom: 0;
}
.navbar-nav {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
}
.navbar-toggler {
    border-color: white;
    &-icon {
        padding: 5px;
        .fa-bars {
            color: white;
        }
    }
}
.nav-item {
    /* &.active {
        background-color: white;
        border-radius: 15px;
        a.nav-link {
            color: @green;
            font-weight: bold;
        }
    } */
    &:not(.social-nav-item) {
        flex: 1;
        text-align: center;
    }
}
.social-nav-item {
    margin-left: 3%;
}
a.nav-link {
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1.12em;
    padding: 0.5rem 1rem;
}
.fixed-top .nav-item img {
    width: 1.9em;
    height: 1.9em;
    margin-left: 9px;
}
footer{
    padding-top: 2rem;
    ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }
    a.nav-link {
        color: black;
        padding: 0.5rem 0.4rem;
        line-height: 1;
        font-family: 'Cabin', sans-serif;
    }
    .nav-item {
        text-align: left !important;
        &.active .nav-link {
            background-color: @green;
            color: white;
        }
    }
    .column-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        .columns {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            line-height: 1;
        }
    }
    .column- {
        &first {
            width: 30%;
        }
        &third {
            .gap {
                height: 3rem;
            }
        }
    }
    .f-first {
        padding-right: 4rem;
    }
    .socials-title {
        text-align: center;
        font-size: 1.1em;
        font-family: 'Cabin', sans-serif;
        font-weight: 700;
    }
    .socials {
        display: flex;
        justify-content: center;
        gap: 3rem;
    }
    .title {
        font-weight: 700;
        font-size: 1.3em;
        margin-bottom: 0;
    }
    p {
        margin-bottom:0;
        font-size: 1.1em;
        font-family: 'Lato', sans-serif;
        line-height: 1.4;
    }
}
.copyright {
    font-family: 'Lato', sans-serif;
    background-color:@green;
    color: white;
    margin-top: 2rem;
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
    a {
      color: white;
    }
}
@media only screen and (max-width:575px) {
    .copyright {
      margin-top: 16px;
      padding-top: 16px;
    }
}
@media only screen and (max-width: 991px) {
    header {
        background-color: @green;
    }
    #home_page header .navbar-brand {
        width: 280px;
    }
    .navbar-nav {
        margin-bottom: 1rem;
    }
    .nav-item {
        &.active {
            a.nav-link {
                background-color: white;
                color: @green;
            }
        }
    }
    .social-nav-item {
        margin: 0 auto;
    }
}
@media only screen and (min-width: 576px) and (max-width: 991px) {   
    footer {
        .column-wrapper {
            .columns {
                width: 50%;
            }
            .column- {
                &first, &second {
                    margin-bottom: 2rem;
                }
                &second, &fourth {
                    align-items: flex-end;
                }
                &third .gap {
                    height: 2rem;
                }
            }
        }
        .nav-item {
            text-align: right !important;
        }
    }
}
@media only screen and (max-width: 575px) {
    #home_page header .navbar-brand,
    #home_page header .navbar-brand.scrolled,
    header .navbar-brand {
        width: 200px;
    }
    .navbar-brand {
        margin-right: 0;
    }
    .social-nav-item {
        margin-top: 0.5rem;
    }
    footer {
        .title {
            font-size: 1.2em;
        }
        p {
            font-size: 1em;
        }
        .footer-logo {
            width: 230px;
            margin: 0 auto;
        }
        .socials-title {
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .socials {
/*            justify-content: space-around;*/
            gap: 1rem;
            a {
                width: 2.5rem;
            }
        }
        .nav-item.active .nav-link {
            width: fit-content;
        }
        a.nav-link {
            padding-top: 0.3rem;
            padding-bottom: 0.3rem;
        }
        .column-wrapper .columns {
            width: 100%;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        } 
        .column {
            &-third, &-fourth {
                padding-left: 0.4rem;
            }
        }
        .column-third {
            .gap, .wide-gap {
                height: 0;
            }
        }
    }
}
