
/* ################################################## */
/* header-top contiene il logo e la la navigation bar */
/* ################################################## */

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f3f5;    /*#fdf2e9;*/

  /* Because we want header to be sticky later */
  height: 8rem;
  padding: 0 4.8rem;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.header-logo {
  height: 5rem;
}

/* ################################################## */
/* Navigation bar on top of the page                  */
/* ################################################## */

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #1864ab;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;

  padding: 1.2rem 2.4rem;
  border-radius: 9px;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #ff922b;
  background-color: #1864ab;
}

.main-nav-link.main-nav-selected:link,
.main-nav-link.main-nav-selected:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #1864ab;
  background-color: #ffa94d;
  font-weight: 700;
}

.nav-button {
  border: none;
  background: none;
  cursor: pointer;
  color: #495057;
  display: none;
}

.nav-button-icon {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.nav-button-icon[name="close-outline"] {
  display: none;
}

/* @@@@@@@@@@@ */
/* 1296 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 81em) {
  .main-nav-list {
    gap: 1.2rem;
  }
}

/* @@@@@@@@@@@ */
/* 1104 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 69em) {
   .main-nav-list {
    gap: 0.5rem;
  }
}

/* @@@@@@@@@@@ */
/* 912 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 57em) {
  .nav-button {
    display: block;
  }

  .main-nav-top {
    background-color: #f1f3f5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in;
	transform: translateY(-100%);

    /* Hide navigation */
    /* Allows NO transitions at all */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav-top {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
  
  .nav-open .nav-button-icon[name="close-outline"] {
	display: block;
  }
  
  .nav-open .nav-button-icon[name="menu-outline"] {
    display: none;
  }

  
}

/* @@@@@@@@@@@ */
/* 480 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 30em) {
	

	.header-nav {
		padding-left: 2.4rem;
		padding-right: 2.4rem;
	}
	
	
}

@media (max-width: 22em) {
	

	.header-nav {
		padding-left: 1.2rem;
		padding-right: 1.2rem;
	}
	
	
}