header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  background-color: #527ade;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box; /* Include il padding nella larghezza */
  border-bottom: 2px solid #f2db2d;
}

.logo-title {
  display: flex;
  align-items: center;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

header img {
  width: 100px;
  height: 100px;
}

header h1 {
  font-size: 40px;
  padding: 0;
  margin: 0;
  padding-left: 8px;
  display: inline-block;
}

nav {
  display: flex;
  gap: 15px;
  font-size: 20px;
  font-weight: bold;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  color: #f2db2d;
}

.menu-button button {
  background-color: #527ade;
  color: #fff;
  padding: 8px 15px;
  border: 3px solid #fff;
  font-weight: bold;
  font-size: medium;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.menu-button button:hover {
  background-color: #fff;
  color: #527ade;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: 10px;
}

.menu-toggle div {
  width: 20px;
  height: 3px;
  background-color: white;
  margin: 2px 0;
}

@media (max-width: 1149px) {
  header {
    flex-wrap: wrap;
    padding: 10px 5px;
  }

  header img {
    width: 50px;
    height: 50px;
  }

  header h1 {
    font-size: large;
  }

  .menu-button {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: #527ade;
    border: 1px solid #fff;
    position: absolute;
    top: 60px;
    right: 0px;
    width: 200px;
    gap: 5px;
  }

  nav a {
    padding: 10px;
    border-bottom: 1px solid #fff;
  }

  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .menu-button button {
    display: block;
    width: 100%; /* Solo la larghezza del contenitore padre */
    padding: 10px 0;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 0; /* Rimuove margini negativi */
    margin-right: 0; /* Rimuove margini negativi */
    box-sizing: border-box; /* Include padding nella larghezza */
    text-decoration: none;
  }

  .mobile-break {
    display: inline;
  }
}
