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

.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: 7.5rem 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;
  width: 30%;
  -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-aboutTextColor);
}

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

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

.footer__snippet img{
  max-width: none;    
}

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


.footer__email a,
.footer__snippet a{
  color: var(--footer-aboutLinkColor);
  font-weight: 400;
  text-decoration: none;
  line-height: 1.44;
  letter-spacing: 0.18px;
}

.footer__email a:hover,
.footer__snippet a:hover{
  color: var(--footer-aboutLinkColorHover);
}

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

.footer__social {
    margin: 0 0 2.5rem;
}

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

.footer__social__icons a {
  margin-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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


.footer__social .fm_button--custom:hover {
  fill: var(--footer-socialIconColorHover);
}

.footer__social svg:hover {
  fill: var(--footer-socialIconColorHover);
}

.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: 2.4rem;
  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-linkFont: var(--font-kallisto);
  font-size: var(--footer-navigationSize);   
  font-weight: 500;
  color: var(--footer-navigationLinkColor);
  letter-spacing: 0.18px;
}

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

.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-navigationSubLinkColor);
}

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

.footer__nav__submenu li{

}

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

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

.footer__copy p{
  margin: 0;
}

.footer__ribbon{
  font-size: 1.4rem;
  padding: 2rem 0;
  background-color: var(--footer-ribbonMenuBackgroundColor);
}

.footer__ribbon__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  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-ribbonMenuTextColor); !important;
}
.footer__ribbon a{
  --font-linkFont: var(--font-kallisto);
  font-weight: 500;
  text-decoration: none;
  color: var(--footer-ribbonMenuLinkColor) !important;
}
.footer__ribbon > *{
  font-weight: 400;
  color: var(--footer-ribbonMenuTextColor) !important;
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal ul{
  display: flex;
  background-color: var(--footer-ribbonMenuBackgroundColor);
  padding: 0;
  margin: 0;  
  gap: 3rem;
}

.footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li:first-of-type{
  margin-left: 0;
}

.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;
  text-align: center;
  list-style-type: none;
}


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

.footer__ribbon__text{
  display: flex;
  align-items: center;
}

.footer__ribbon__text p{
  letter-spacing: 0.18px;
  opacity: 0.4;
  font-style: italic;
}

.footer__ribbon__text__image{
  width: 100%;
  max-width: 110px !important;
  margin-left: 25px;
}

@media only screen and (min-width: 961px) and (max-width: 1440px) {    
	.footer__nav .footer__nav__li--depth-1, .footer__nav .footer__nav__li--depth-1 > a {
		--footer-navigationSize: 1.4rem;
	}  
}

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

  .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 {
    width: 70%;
    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-navigationLinkAlignment);
  }

  .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 2rem 0;
  }

  .footer__menu--right .footer__nav__menu .footer__nav__li--depth-1 {
    display: inline-block;
    vertical-align: top;
    float: none !important;
    margin: 0 0 2rem 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 {
    margin-top: 3rem;
  }

  .footer__about-contact{
    flex-direction: column;
  }

  .footer__email {
    margin-bottom: 1rem;
  }
  
  .footer__ribbon {
    padding: 2.5rem 0;
  }

  .footer__ribbon__container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__ribbon__menu{
    margin-left: 0;
  }

  .footer__ribbon__text{
    margin: 2rem 0 0;
  }

  .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: 20rem;
    margin: 0 auto 2.5rem;
  }

  .footer__about {
    float: none;
    padding: 0;
    margin: 0 0 3rem;
    width: auto;
    text-align: center;
  }
  .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;
    text-align: center;
  }
  .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__about img {
    width: 100%;
    max-width: 15rem;
    margin: auto;
  }
  
  .footer ul{
    padding-left: 0;
    margin: 0;
  }

  .footer__social__icons{
    justify-content: center;
  }
  .footer__social__icons a{
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .footer__copy{
    text-align: center;
    width: 100%;
    margin: 40px auto;
  }
  .footer__copy table,
  .footer__copy table td{
    text-align: center !important;
  }
  
  .footer__nav .footer__nav__li--depth-1, .footer__nav .footer__nav__li--depth-1 > a{
    --footer-navigationSize: 1.6rem;
  }
}

@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;
    gap: 0.5rem;
  }

  .footer__ribbon .hs-menu-wrapper.hs-menu-flow-horizontal li{
    position: relative;
    margin: 0.5rem 1rem;
    text-align: center;
  }

}