/* header.css */

/* ---------- STILI GLOBALI E PER IL BODY ---------- */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Georgia, serif;
  overflow: auto;
  box-sizing: border-box;
}

/* ---------- HEADER ---------- */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 120px;
  background-color: #f7f7f7;
  z-index: 1000;
  display: flex; align-items: center;
  padding: 30px 0 30px 27px;
  box-sizing: border-box;
}
.header-left {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ---------- LOGO ---------- */
.logo {
  display: flex; align-items: center;
  margin-right: 240px;
}
.logo-text {
  font-size: 48px;
  font-weight: bold;
  color: black;
  line-height: 1;
}
.logo-img {
  width: 90px;
  margin: 0 8px;
}

/* ---------- NAV E MENU ---------- */
nav {
  flex-grow: 1;
}
nav ul {
  display: flex; align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}
/* schermi medi */
@media (max-width: 1024px) and (min-width: 601px) {
  nav ul { gap: 20px; }
}

/* link principali */
nav ul li a {
  position: relative;
  text-decoration: none;
  font-size: 20px; font-weight: bold;
  color: black;
  transition: color 0.3s ease;
  white-space: nowrap; line-height: 1;
}
nav ul li a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background-color: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
nav ul li a:hover::after {
  transform: scaleX(1);
}

/* pulsante prenota */
.booking-btn {
  background-color: #E08200; color: black;
  border: none; padding: 12px 24px;
  font-size: 22px; font-weight: bold;
  cursor: pointer; border-radius: 8px;
  line-height: 1; font-family: Georgia, serif;
  transition: background-color 0.3s ease;
}
.booking-btn:hover {
  background-color: #ffba59;
}
.booking-btn::after { content: none; }


/* ----- HAMBURGER E MOBILE MENU OVERLAY ----- */
.menu-toggle {
  display: none; background: none;
  border: none; cursor: pointer;
}
.menu-toggle .bar {
  display: block; width: 25px; height: 3px;
  margin: 4px 0; background-color: black;
}
.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: 100%; height: 100vh;
  background-color: #f7f7f7; z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu ul {
  list-style: none; margin: 0; padding: 40px 20px;
  display: flex; flex-direction: column; gap: 20px;
}
.mobile-menu ul li a {
  font-size: 20px; font-weight: bold;
  color: black; text-decoration: none;
}
/* dropdown mobile */
.mobile-menu .has-dropdown .dropdown {
  position: static; gap: 4px; padding: 12px 0;
}
.mobile-menu .has-dropdown.open .dropdown {
  display: flex;
}

/* media queries */
@media (max-width: 1024px) and (min-width: 601px) {
  nav ul li a { font-size: 18px; }
  .booking-btn { font-size: 20px; padding: 10px 20px; }
}
@media (max-width: 600px) {
  .desktop-menu { display: none !important; }
  .menu-toggle {
    display: block;
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%);
  }
  .logo { margin-right: 10px; }
  .logo-text { font-size: 36px; }
  .logo-img { width: 67.5px; margin: 0 8px; }
  .booking-btn { font-size: 20px; padding: 10px 20px; }
}
header.mobile-mode .desktop-menu {
  display: none !important;
}
header.mobile-mode .menu-toggle {
  display: block;
}