header {
  padding: 37px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform .3s ease, opacity .3s ease;
}

.arrow-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrow-hover::after{
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 8px;
  background-image: url("../icons/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.arrow-hover.arrow-hover-submit::after {
  right: calc(50% - 42px);
}

.arrow-hover:hover::after {
  opacity: 1;
}

body.footer-at-half header {
  transform: translateY(-100%);
  opacity: 0;
}

nav menu {
  display: flex;
  justify-content: space-between;
}

.language-selector ul {
  display: flex;
  flex-direction: row-reverse;
}

.lang-item:not(.lang-item-first)::after {
  content: '/';
  margin: 0 2px;
}

footer {
  /*padding: 27px 16px 16px;*/
  padding: var(--padding-bottom-sticky-bar) 16px 16px;
}

footer nav {
  border-top: 1px solid #000;
  /*padding: 24px 0 128px;*/
  padding: var(--padding-bottom-sticky-bar) 0 128px;
}

.newsletter-container {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.mc-embedded-subscribe-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mc-embedded-subscribe-form > div {
  padding: 24px 16px;
  height: 100%;
}

.mc-embedded-subscribe-form > div.mc-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.mc-field-group {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}

.mc-field-group,
.mc-submit-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.mce-responses {
  display: contents;
}

.artsy-socials-container {
  margin-top: 64px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  display: grid;
  grid-template-columns: max-content max-content 1fr;
}

.artsy-link {
  padding: 40px 40px 40px 24px;
}

.artsy-link-text {
  padding: 24px 32px;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.artsy-link a {
  display: flex;
  width: 95px;
}

.artsy-link a img {
  width: 100%;
  height: auto;
}

.mention-socials-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px 24px 32px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: end;
}

.spaces-container {
  margin-top: 64px;
}

.spaces-swiper {
  width: 100%;
  overflow: hidden;
}

.space-image {
  line-height: 0;
  margin-bottom: 26px;
}

.space-image img {
  width: 100%;
  height: calc( ((100vw - (16px * 4)) / 3) * .5);
  object-fit: cover;
}

.space-address,
.space-text {
  margin-top: 20px;
}

.space-contact {
  margin-top: 14px;
}

.artsy-link .artsy-link-text-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.space-contact,
.socials,
.mc-field-group .email,
#mc-embedded-subscribe  {
  font-size: 12px!important;
}

@media (max-width: 1200px) {
  .mention-socials-container {
    padding-left: 20px;
    padding-right: 0;
  }

  .mention-socials-container .socials {
    row-gap: 5px;
    column-gap: 20px;
  }

  .artsy-link,
  .artsy-link-text {
    padding-left: 20px;
    padding-right: 20px;
  }
}


@media (max-width: 1200px) and (min-width: 821px) {
  .artsy-link a {
    width: 70px;
  }
}

/* ------ MOBILE ------ */

@media (max-width: 820px) {

  /*
  * Footer
  */

  .mc-submit-container {
    margin: 0!important;
  }

  .artsy-link .artsy-link-text-mobile {
    display: flex;
  }

  .spaces-swiper .space-title,
  .spaces-swiper .space-address,
  .spaces-swiper .space-contact,
  .spaces-swiper .space-text {
   width: 60%;
  }

  footer {
    padding: 35px 0px 10px 0px;
  }

  footer nav {
    padding: 32px 0px 87px;
    margin: 0 8px;
  }

  footer .newsletter-container,
  footer .mc-submit-container,
  footer .artsy-socials-container {
    margin-left: 8px;
    margin-right: 8px;
  }

  .mc-embedded-subscribe-form {
    display: flex;
    flex-direction: column;
  }

  .mc-embedded-subscribe-form > div.mc-title {
    padding-right: 0px;
  }

  #mc-embedded-subscribe {
    align-self: end;
  }

  .artsy-link-text-mobile {
    display: block;
    text-transform: uppercase;
    width: auto!important;
    font-size: 11px!important;
    font-family: 'NeueHaasGroteskText Pro', sans-serif;
    font-weight: 500!important;
    justify-content: end;
  }

  .mc-embedded-subscribe-form > div {
    padding: 32px 0px;
  }

  .mc-field-group {
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
  }

  .space-image img {
    height: 40vw;
  }

  .artsy-socials-container {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
  }

  .artsy-link-text {
    display: none;
  }

  .artsy-link {
    border-bottom: 1px solid #000;
    padding: 32px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    align-items: center;
  }

  .mention-socials-container {
    display: flex;
    flex-direction: column;
  }

  .mention-socials-container {
    padding: 0px;
  }

  .mention-socials-container .mention {
    /* font-size: 12px; */
    border-bottom: 1px solid #000;
    padding: 48px 0px;
    width: 100%;
  }

  .mention-socials-container .socials {
    padding: 48px 0px;
    width: 100%;
    justify-content: end;
    flex-wrap: wrap;
  }

  .spaces-swiper {
    padding: 0 8px;
  }

  .spaces-container {
    margin-top: 55px;
  }




  /* solo logo + botón visibles */
  .nav-item,
  .language-selector {
    display: none;
  }

  footer .language-selector .lang-item:not(:first-child) a{
    padding: 0px 33px;
  }

  footer .language-selector .lang-item:first-child a{
    padding-left: 33px;
  }

  footer .language-selector {
    display: block;
    padding: 0px;
    border-top: none;
    width: fit-content;
    margin: 0px;
  }

  .menu-toggle {
    display: inline-block;
  }

  header {
    z-index: 500;
  }

  /* OVERLAY */
  .nav.is-open {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 500;
  }

  .logo-toggle {
    width: 100vw;
    padding: 37px 8px;
    position: fixed;
    top: 0px;
    left: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-item,
  .language-selector {
    padding: 46px 0px;
    border-top: 1px solid #000;
    width: calc(100% - 16px);
    margin: 0px 8px
  }


  .language-selector ul {
    justify-content: start;
  }

  .nav.is-open menu {
    height: 100svh;
    flex-direction: column;
    justify-content: start;
    margin-top: 88px;
    align-items: center;
    overflow: scroll;
  }

  .nav.is-open .nav-item,
  .nav.is-open .language-selector {
    display: block;
  }

  #homepage-page {
    padding-top: 0px;
  }

}