@font-face {
  font-family: "Tablericons";
  src: url("../css/tabler/fonts/tabler-icons-300.ttf") format("truetype-variations");
  font-weight: 100 1000;
}
@font-face {
  font-family: "TablericonsFill";
  src: url("../css/tabler/fonts/tabler-icons-filled.ttf") format("truetype-variations");
  font-weight: 100 1000;
} 



.in_header {width: 100%; background: var(--white); border-bottom: 0px solid var(--white); height: 80px;

	.top-nav {
		height: 70px;
		display: flex;
		flex-direction: row;
		align-items: left;
		justify-content: space-between;
		background-color: none;
		padding: 0px;
		border: 0px solid #f90;
		font-family: var(--menufont); position: relative; width: calc(100vw - 160px); margin: 0px 80px;
  }

  .top-nav .logo {position: absolute; left: 0px; top: 35px;}

  .top-nav .logo img {height: 34px;}

  .menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 46px 0px 0px 180px;
    padding: 0;
  }

  .menu > li {
    overflow: hidden; margin-right: 20px
  }

  .menu > li a {
    color: var(--lghtmain);
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 0.5px
  }

  .menu > li a:hover {
    color: var(--main)
  }
	
	.menu > li.active {pointer-events: none}
	.menu > li.active a {pointer-events: none; color: var(--secondary)}

  .menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu > li .active {
    color: var(--main60) !important;
    pointer-events: none !important
  }

  #menu-toggle {
    display: none;
  }


  /*************************************************************
     SECOND LEVEL
  *************************************************************/

  .has-submenu {
    position: relative;
    overflow: visible !important;
  }

  .has-submenu > input[type="checkbox"] {
    display: none;
  }

  .menu-item {
    display: flex;
    align-items: center; margin-right: 0px;
  }

  .menu-item > a {
    margin-right: 0px;
  }


  /*************************************************************
     DESKTOP DROPDOWN
  *************************************************************/

  .has-submenu > .menu-item::after {
    content: "\ea5f";
	  font-family:Tablericons;
    color: var(--secondary);
    font-size: 1em;
    margin-left: 2px;
    margin-top: 4px;
    transition: transform 400ms ease; opacity: 0.6;
  }
	
	.menu-item .subactive {color: var(--secondary)!important}
	
	.has-submenu > .menu-item:has(> a.subactive)::after  {color: var(--main)!important}

  .has-submenu:hover > .menu-item::after,
  .has-submenu:focus-within > .menu-item::after {
    transform: rotate(180deg);
  }

  .submenu {
    position: absolute;
    top: 19px;
    left: 0;

    min-width: 180px;

    margin: 0;
    padding: 0px;

    list-style-type: none;

    

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);

    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;

    z-index: 500;
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
	
	.submenu > li:first-child {background: none; height: 15px;;box-shadow: 1px 1px 1px rgba(0,0,0,0.0)}
	.submenu > li:last-child {border-bottom: none; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; box-shadow: 1px 1px 1px rgba(0,0,0,0.1);}

  .submenu > li {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%; height: 38px; border-bottom: 1px solid var(--white); background-color: var(--bg_menu_lg);box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  }

  .submenu > li > a {
    display: block;
    margin: 0;
    padding: 0px 20px 0px 5px; line-height: 38px; 

    color: var(--main80); font-size: 1.1em; font-weight: 300; font-family: var(--menufont);

    white-space: nowrap; text-shadow: 1px 1px 1px rgba(0,0,0,0.0)
  }

  .submenu > li:hover > a::before {
    color: var(--secondary);
  }
	
	.submenu > li > a::before {
    content: "\f698";
	  font-family:TablericonsFill;
		font-size: 0.7em; color: var(--main20)
	}
	
}


  /*************************************************************
     MOBILE
  *************************************************************/
/******************************************************************************************************/
@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {

  .in_header {
    width: 100%;
    background: var(--white);
    border-bottom: 0px solid var(--green);
    height: 50px;

    .top-nav {
      height: 50px;
      background: none;
      width: calc(100% - 40px);
      margin: 0px 20px;
    }

    .top-nav .logo {
      position: absolute;
      left: 38px;
      top: 15px;
    }

    .top-nav .logo img {
      height: 26px;
    }

    .menu-button-container {
      display: flex;
      background: var(--main20);
      height: 28px;
      width: 28px;
      border-radius: 28px;
      margin-top: 12px;
    }


    /***********************************************************
       MAIN MOBILE MENU
    ***********************************************************/

    .menu {
      position: absolute;
      top: 50px;
      margin-top: 0px;
      left: -20px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 500;
      width: 100vw;
      margin: 0px;
    }


    /***********************************************************
       MENU BUTTON — THREE DOTS
    ***********************************************************/

    .menu-button,
    .menu-button::before,
    .menu-button::after {
      display: block;
      background-color: var(--white);
      position: absolute;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu-button {
      margin-top: 0;
    }

    .menu-button::before {
      content: '';
      margin-top: -6px;
    }

    .menu-button::after {
      content: '';
      margin-top: 6px;
    }


    /***********************************************************
       MENU BUTTON — OPEN CROSS
    ***********************************************************/

    #menu-toggle:checked + .menu-button-container .menu-button {
      width: 18px;
      height: 2px;
      border-radius: 2px;
      background: var(--white);
      transform: rotate(45deg);
    }

    #menu-toggle:checked + .menu-button-container .menu-button::before {
      width: 18px;
      height: 2px;
      margin-top: 0;
      border-radius: 2px;
      transform: rotate(90deg);
    }

    #menu-toggle:checked + .menu-button-container .menu-button::after {
      display: none;
    }


    /***********************************************************
       MAIN MENU OPEN / CLOSED
    ***********************************************************/

    #menu-toggle ~ .menu > li {
      opacity: 0;
      height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked ~ .menu > li {
      opacity: 1;
      height: auto;
      min-height: 36px;
      padding: 0;
      transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }


    /***********************************************************
       MAIN MENU ITEMS
    ***********************************************************/

    .menu > li {
      display: block;
      margin: 0;
      padding: 0;
      width: 100%;
      background-color: var(--bg_dk);
      overflow: visible;
    }


    /***********************************************************
       FIRST LEVEL ITEM
    ***********************************************************/

    .menu > li > a,
    .menu-item > a {
      margin-left: 10px;
      color: var(--main);
      line-height: 36px;
    }


    /***********************************************************
       MOBILE SUBMENU
    ***********************************************************/

    .has-submenu {
      position: relative;
      overflow: visible !important;
    }


    .has-submenu > input[type="checkbox"] {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 36px;
      margin: 0;
      padding: 0;
      opacity: 0;
      cursor: pointer;
      z-index: 10;
    }


    .has-submenu > .menu-item {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      height: 36px;
      z-index: 1;
    }


    /*
       The real link must not receive the click,
       otherwise the parent link would navigate.
    */

    .has-submenu > .menu-item > a {
      pointer-events: none;
    }


    /***********************************************************
       MOBILE SUBMENU ARROW
    ***********************************************************/

    .has-submenu > .menu-item::after {
      display: block;
      content: "\ea5f";
      font-family: "Tablericons";
      color: var(--secondary);
      font-size: 1em;
      margin-left: 2px;
      margin-top: 4px;
      opacity: 0.6;
      transition: transform 400ms ease;
    }


    .has-submenu > input[type="checkbox"]:checked + .menu-item::after {
      transform: rotate(180deg);
    }


    /***********************************************************
       MOBILE SUBMENU CLOSED
    ***********************************************************/

    .submenu {
      position: static;
      display: block;
      width: 100%;
      min-width: 0;
      max-height: 0;
      margin: 0;
      padding: 0;
      overflow: hidden;
      list-style-type: none;
      background-color: var(--main60);
      opacity: 0;
      visibility: visible;
      transform: none;

      transition:
        max-height 300ms ease,
        opacity 200ms ease;
    }


    /***********************************************************
       MOBILE SUBMENU OPEN
    ***********************************************************/

    .has-submenu > input[type="checkbox"]:checked ~ .submenu {
      max-height: 500px;
      opacity: 1;
    }


    /***********************************************************
       MOBILE SUBMENU ITEMS
    ***********************************************************/

    .submenu > li {
      display: block;
      width: 100%;
      min-height: 34px;
      height: 34px;
      margin: 0;
      padding: 0;
      border: 0;
      background-color: var(--main60);
      opacity: 1;
    }


    .submenu > li:first-child {
      display: none;
    }


    .submenu > li > a {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin: 0;
      padding: 0px 0px 0px 10px;
      color: var(--main);
      font-size: 1.1emem;
      font-weight: 300;
      line-height: 34px;
      pointer-events: auto;
    }


    /***********************************************************
       MOBILE MENU
    ***********************************************************/

    .menu > li:not(:last-child) {
      border-bottom: none;
    }

  }
}