.footer {
    background-color: var(--footer-background-color);
}

.footer .hs-menu-children-wrapper:first-of-type() ul:first-of-type(){
    margin: 0 auto;
}

.footer__about-contact {
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    padding: 9rem 0;
}

.footer--simple .footer__about-contact {
    overflow: hidden;
    margin: 0 auto;
    padding: 2rem 0;
}

.footer--simple .footer__about > p{
    margin: 0 !important;
    font-size: 1.2rem;
}

.footer--simple .footer__about > a{
    margin: 0 0 0 1.6rem !important;
}

.footer__about {
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.footer--simple .footer__about{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: var(--footer-about-text-color);
}

.footer--simple .footer__about a img{
    max-width: 8rem !important;
    width: 8rem !important; 
}

.footer img {
    width: 100%;
    max-width: 16rem;
}

.footer__snippet img{
    max-width: none;    
}

.footer__email {
    width: 100%;
    font-size: 1.6rem;
    line-height: 1.8rem;
    margin-bottom: 2.5rem;
}

	
.footer__email a,
.footer__snippet a{
    color: var(--footer-about-link-color);
    font-weight: 400;
}
.footer__email a:hover,
.footer__snippet a:hover{
    color: var(--footer-about-link-color-hover);
}

.footer__snippet {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.6rem;
    color: var(--footer-about-text-color);
}
.footer__about > a {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 2rem;
}

.footer__social {
    margin: 2.5rem 0 0;
}

.footer__social__icons{
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
}



.footer__social__icons a{
    margin-right: 2rem;
}



.footer__social svg {
    width: 2.2rem;
    fill: var(--footer-social-icon-color);
    transition: fill 0.3s ease;
}


.footer__social .fm_button--custom:hover {
    fill: var(--footer-social-icon-color-hover);
}

.footer__social svg:hover {
    fill: var(--footer-social-icon-color-hover);
}

.footer__nav{
    width: 100%;
}

.footer__nav__menu{
    margin-top: 0;
    padding: 0;
}

.footer__nav__menu--simple{
    gap: 1rem;
}

.footer__nav__menu.grid-row--auto{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(calc(700px * 999 - 100% * 999), calc(50% - 1rem)), auto));
}

.footer__nav__menu.grid-row--even{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(calc(700px * 999 - 100% * 999), calc(50% - 1rem)), 1fr));
}

.footer__menu__column,
.footer__menu__column .footer__nav__submenu{
    display: grid;
    gap: 1rem;
    grid-template-columns: 100fr;
}

.footer__menu .footer__nav__menu--simple .footer__nav__li--depth-1:first-child{
    margin-top: 0 !important;
}

.footer__menu__column .footer__nav__li,
.footer__menu .footer__nav__menu--simple .footer__nav__li--depth-1{
    max-width: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}


.footer__nav__menu{
    align-items: flex-start;
}
    
.footer__nav a{
    text-decoration: none;
}

.footer__nav .footer__nav__li--depth-2>a:hover{
    text-decoration: underline;
}

.footer__nav .hs-menu-wrapper ul:first-child{
    margin: 0 auto;
}


.footer__nav .footer__nav__li--depth-1,
.footer__nav .footer__nav__li--depth-1 > a{
    font-size: var(--footer-navigation-size);   
    color: var(--footer-navigation-link-color);
}

.footer__nav .footer__nav__li--depth-1 > a:hover { 
    color: var(--footer-navigation-link-color-hover);
}

.footer__nav ul.hs-menu-children-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    margin-top: 1.6rem;
}
.footer__nav .footer__nav__li--depth-2 {
    margin: 1rem 0 0;
    line-height: 1.25;
}
.footer__nav .footer__nav__li--depth-2 > a {
    display: inline !important;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--footer-navigation-sub-link-color);
}

.footer__nav__submenu{
    padding: 0;
    list-style-type: none;
}

.footer__nav__submenu li {
    color: var(--footer-navigation-sub-link-color);
}

.footer__nav__submenu li:hover {
    color: var(--footer-navigation-sub-link-color-hover);
}

.footer__nav .footer__nav__li--depth-2 > a:hover {
    color: var(--footer-navigation-sub-link-color-hover);
}

.footer__copy{
    max-width: 37.7rem;
    width: 100%;
    margin-left: auto;
    color: var(--footer-about-text-color);
    font-size: 1.2rem;
    text-align: right;
}

.footer__copy p{
    margin: 0;
}

.footer__ribbon{
    font-size: 1.4rem;
    padding: 4rem 0;
    background-color: var(--footer-ribbon-menu-background-color);
}

.footer__ribbon__container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.footer__ribbon__menu{
    margin-left: 0;
}

.footer__ribbon__menu--m{
    margin-left: 0; 
}

.footer__ribbon p{
    margin: 0;
    text-align: center;
    color: var(--footer-ribbon-menu-text-color); !important;
}
.footer__ribbon a{
    color: var(--footer-ribbon-menu-link-color); !important;
}
.footer__ribbon > *{
    font-weight: 400;
    color: var(--footer-ribbon-menu-text-color) !important;
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal ul{
    display: flex;
    background-color: var(--footer-ribbon-menu-background-color);
}

.footer__ribbon__menu--m .hs-menu-wrapper.hs-menu-flow-horizontal li:first-of-type:before{
    display: none;
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li{
    position: relative;
    margin: 0 2rem;
    text-align: center;
    list-style-type: none;
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li:before{
    content: '';
    height: 10px;
    width: 1px;
    background-color: var(--footer-ribbon-menu-link-color);
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li > a:hover {
    color: var(--footer-ribbon-menu-link-color-hover);
}



@media only screen and (min-width: 1025px) {

    .footer__about > a{
        width: 100%;
    }

    .footer__about-contact{
        display: grid;
        grid-template-columns: 160px auto;
        align-items: center;
    }
    
    .footer__nav__menu {
        align-items: flex-start;
        gap: 4rem;
        display: flex;
        justify-content: flex-end;
    }

    .footer--left{
        flex-direction: row-reverse;
    }
    .footer--left .footer__about{
        text-align: right;
    }
    .footer--left .footer__social__icons{
        justify-content: flex-start;
        direction: rtl;
    }
    .footer--left .footer__social__icons a{
        margin-left: 2rem;
        margin-right: 0;
    }
    .footer__menu--right {
        float: right;
        padding: 0 0 0 3rem;
        text-align: right;
    }

    .footer__menu--left {
        width: 70%;
        float: right;
        padding: 0 3rem 0 0;
        text-align: left;
    }
    
    .footer__nav__li--alignement{
        text-align: var(--footer-navigation-link-alignment);
    }
    
    .footer__nav__li--auto{
        max-width: none;
        width: auto;
    }
    
    /* .footer__nav__li--1{
        width: 100%;
        max-width: calc(100% - 2rem);
    }
    
    .footer__nav__li--2{
        width: 100%;
        max-width: calc(45% - 2rem);
    }
    
    .footer__nav__li--3{
        width: 100%;
        max-width: calc(30% - 2rem);
    } 
    
    .footer__nav__li--4{
        width: 100%;
        max-width: calc(20% - 2rem);
    } */
    
    .footer__menu--left .footer__nav__menu .footer__nav__li--depth-1 {
        display: inline-block;
        vertical-align: top;
        float: none !important;
        margin: 0 4rem 1.5rem 0;
    }

    .footer__menu--right .footer__nav__menu .footer__nav__li--depth-1 {
        display: inline-block;
        vertical-align: top;
        float: none !important;
        /* margin: 0 0 1.5rem 4rem;
        max-width: calc(20% - 2rem); */
    }
   

    .footer__menu--right .footer__nav .footer__nav__li--depth-1:first-child {
        margin: 0;
    }
    
}

@media only screen and (max-width: 1024px) {
    
    .footer__menu{
        width: 100%;
    }

    
    .footer__about-contact{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer__ribbon__container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer__ribbon__menu{
        margin-left: 0;
    }
    
    .footer__ribbon__text{
        margin-bottom: 1rem;
    }
    
    .footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li:first-of-type:before{
        display: none;
    }
    
    .footer--simple .footer__about{
        margin: 0 !important;
    }
    .footer__about > a {
        display: block;
        width: 16rem;
        margin: 0 auto 2.5rem;
    }
    
    .footer__about {
        float: none;
        margin: 0 0 3rem;
        width: auto;
        display: flex;
        flex-direction: column;
    }
    .footer--simple .footer__about > a {
        width: auto;
    }
    .footer__snippet {
        display: inline-block;
        width: auto;
        display: block;
        max-width: none;
        padding: 0 7rem;
		padding: 1rem 2rem;
    }
    .footer__nav {
        width: auto;
        float: none;
        padding: 0;
    }
    .footer__nav .footer__nav__li--depth-1 {
        display: block;
        margin: 0;
    }
    .hs-menu-children-wrapper{
        padding-left: 0;
    }
    /* .footer__nav .footer__nav__li--depth-1:nth-child(n+2) {
        margin: 1.5rem 0 0;
    } */
    .footer__nav .footer__nav__li--depth-2 {
        margin: .5rem 1rem;
        vertical-align: top;
    }
    
    .footer img {
        max-width: none;
        width: 100%;
    }
    .footer ul{
        padding-left: 0;
    }

    .footer .footer__nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer__social__icons{
        justify-content: center;
    }
    .footer__social__icons a{
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .footer__copy{
        text-align: left;
        width: 100%;
        margin: 40px 0px;
    }
    
    .footer__copy table,
    .footer__copy table td{
        text-align: center !important;
    }
}

@media only screen and (max-width: 699px) {

    .footer__nav__menu.grid-row--even,
    .footer__nav__menu.grid-row--auto{
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 640px) {

    .hs-menu-children-wrapper{
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li:before{
        display: none;
    }
    
    .footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal ul{
        flex-direction: column;
        padding: 0;
        gap: 0.5rem;
    }
    
    .footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li{
        position: relative;
        margin: 0.5rem 1rem;
        text-align: center;
    }

}