/* Header styles extracted from styles_base.css
   Shared by all pages that include Casa-Iveta-header.php */

header {
    background-color: #4682b4; /* azzurro tendente al blu */
    color: white;
    text-align: center;
    /* padding: 0.8em 1em .1em 1em; */ /*Questo funziona anche senza misura dinamica del header*/
    padding: 0.6em 1em .1em 1em;
    font-size: 2em;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-divider-row {
  position: relative;
  width: 100%;
  margin: 3px auto 0;
  padding: 0.2em 0 0.1em;
  display: flex;
  justify-content: center;
}

.header-divider-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background-color: #ffffff;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6em;
  row-gap: 0.35em;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: 0.55em;
  font-variant: small-caps;
}

.header-menu__link {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15em;
  transition: opacity 0.2s ease, font-weight 0.2s ease;
  /* font-weight: 400; */
}

.header-menu__link--active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  /* font-weight: 700; */
}

.header-menu__link:hover,
.header-menu__link:focus-visible {
  opacity: 0.8;
}

.header-menu__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.brand-title {
  margin: 0;
  font-family: Didot, serif;
  font-size: 2em;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: white;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 700px) {
  header {
    font-size: 1.1em;
    padding:  0.6em 1em 0.1em 1em;
  }
  .header-divider-row {
    padding: 0.4em 0 0.3em;
  }
  .header-divider-row::before {
    width: 62%;
  }
  .header-menu {
    font-size: .9em;
  }
  /* .brand-title {
    line-height: 1;
  } */
}
