/* Header */

header {
  width: 100%;
  position: absolute;
  z-index: 10;
  top: 0;
  background-color: white;
  padding: 1rem;
  transition: position 0.3s ease, transform 0.3s ease;
  animation: adjust-header linear both;
  animation-timeline: scroll();
  animation-range: 0 1px;
}

@keyframes adjust-header {
  from {
    position: absolute;
    transform: translateY(0);
  }

  to {
    position: fixed;
    transform: translateY(0);
  }
}

.hamburger {
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
  left: 1rem;
  background-image: url("/content/images/header-footer/Hamburger-Black.svg");
  cursor: pointer;
}

.logoNobili {
  width: 4rem;
  height: 1.438rem;
  background-image: url("/content/images/header-footer/logo-nobili-negro.svg");
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #FFFFFF;
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.125rem;
  padding: 0 1rem;
}

.nav.open {
  height: 100%;
  overflow: hidden;
  padding: 3.125rem 1rem;
}

.closeNav {
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("/content/images/header-footer/Close-Icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 2;
}

body.nav-open {
  overflow: hidden;
}

.navMenu {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.navMenu li {
  list-style: none;
}

.navMenu li a {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.navMenu .faded:not(:hover){
  opacity: 0.3;
}

/* Footer */

footer {
  position: relative;
  background-color: #1A1A1A;
}

footer .footerTop {
  gap: 2.5rem;
  padding: 3.75rem 1rem;
}

.logosFooter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

footer .footerTop img:first-of-type {
  width: 6rem;
}

footer .footerTop img {
  width: 5rem;
}

.footerMenu {
  gap: 0.625rem;
}

.logosFooter p,
.footerMenu li a,
.footerContacto a {
  text-decoration: none;
  color: #b3b3b3;
  font-weight: 700;
  font-size: 0.625rem;
  transition: all 0.3s ease;
}

.footerMenu li a:hover, .footerContacto a:hover {
  color: white;
  text-decoration: underline;
}

.footerRedesContainer {
  padding: 1.5rem 1rem 3.75rem 1rem;
}

.redesFooter {
  gap: 0.625rem;
}

.iconRed {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.facebookIcon {
  background-image: url("/content/images/header-footer/Facebook-Icon.svg");
}

.instagramIcon {
  background-image: url("/content/images/header-footer/Instagram-Icon.svg");
}

.pinterestIcon {
  background-image: url("/content/images/header-footer/Pinterest-Icon.svg");
}

.youtubeIcon {
  background-image: url("/content/images/header-footer/Youtube-Icon.svg");
}

.footerContacto{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.derechos {
  background-color: #757070;
  text-align: center;
  font-size: 0.625rem;
  line-height: 1.4;
  padding: 1rem;
}

.derechos a {
  text-decoration: none;
}

/* Tablet */
@media only screen and (min-width: 660px) {

  /* Header */
  .header {
    padding: 0.75rem 3.75rem;
  }

  .logoNobili {
    width: 7rem;
    height: 2.625rem;
  }

  .hamburger {
    width: 1.875rem;
    left: 3.75rem;
  }

  .nav.open {
    padding: 3.125rem 3.75rem;
  }

  /* Footer */

  footer .footerTop {
    padding: 3.75rem;
  }

  .logosFooter {
    gap: 1rem;
  }

  .footerRedesContainer {
    padding: 1.5rem 3.75rem 3.75rem 3.75rem;
  }
}

@media only screen and (min-width: 770px) {
  .navMenu li a {
    font-size: 1.85rem;
  }

  .logosFooter p, .footerMenu li a, .footerContacto a{
    font-size: 0.75rem;
  }
}

@media only screen and (min-width: 900px) {
  .navMenu li a {
    font-size: 2rem;
  }
}

/* Desktop */
@media only screen and (min-width: 1080px) {
  /* Header */

  .header {
    padding: 1rem 5.625rem;
  }

  .hamburger {
    left: 5.625rem;
  }

  .navMenu li a {
    font-size: 2.25rem;
  }

  /* Footer */

  footer .footerTop {
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 0;
  }

  .logosFooter {
    align-items: center;
  }

  .footerMenu {
    flex-direction: row;
    gap: 3.75rem;
  }

  .logosFooter p, .footerMenu li a, .footerContacto a {
    font-size: 0.75rem;
  }

  .footerContacto{
    flex-direction: row;
    gap: 2rem;
  }

  .redesFooter {
    justify-content: center;
  }

  .derechos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }

  .derechos a, .derechos p {
    font-size: 0.8rem;
  }
}

@media only screen and (min-width: 1280px) {
  .navMenu li a {
    font-size: 2.5rem;
  }
}

@media only screen and (min-width: 1440px) {
  .navMenu li a {
    font-size: 2.675rem;
  }

  .derechos a, .derechos p {
    font-size: 1rem;
  }
}

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

  .logosFooter p, .footerMenu li a, .footerContacto a{
    font-size: 0.875rem;
  }
}