/* Navbar Styles for Duomo Pizza & Cucina - Single Row Layout */

.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.navbar-logo {
  margin-right: 0;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 65px;
  width: auto;
  display: block;
}

/* Menu Items - centrato verticalmente con il logo */
.navbar-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0 auto 0 2rem;
  padding: 0;
  position: relative;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-item a {
  font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #041A26;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  display: block;
  position: relative;
  transform: translateY(2px); /* Abbassa leggermente le voci di menu */
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-highlight);
}

/* Underline decorativo sotto i menu items - creato con CSS puro */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-highlight);
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* CTA Button */
.cta-button {
  background-image: url('../images/elementisito/ctarossa.png');
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  width: auto;
  height: auto;
  cursor: pointer;
  font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px); /* Abbassa leggermente il CTA */
}

.cta-button:hover {
  transform: translateY(2px) scale(1.05); /* Mantiene l'abbassamento */
  box-shadow: 0 3px 10px rgba(234, 165, 44, 0.3);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 0.8rem;
  transform: translateY(2px); /* Abbassa leggermente le icone */
}

.social-icons a {
  display: block;
}

.social-icons img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.social-icons img:hover {
  opacity: 0.8;
  transform: translateY(2px) scale(1.05); /* Mantiene l'abbassamento */
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transform: translateY(2px); /* Abbassa leggermente l'hamburger */
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin-bottom: 1.5rem;
}

.mobile-nav-item a {
  font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #041A26;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid rgba(4, 26, 38, 0.1);
}

.mobile-nav-item a:hover,
.mobile-nav-item.active a {
  color: var(--color-highlight);
}

.mobile-cta {
  background-image: url('../images/elementisito/ctarossa.png');
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 4px;
  padding: 12px 25px;
  width: 100%;
  cursor: pointer;
  font-family: 'Oswald', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  text-align: center;
  margin: 2rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(234, 165, 44, 0.3);
}

.mobile-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mobile-social-icons img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-social-icons img:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Mobile styles (< 768px) */
@media (max-width: 767px) {
  .navbar-sticky {
    height: 60px;
    padding: 0 1rem;
  }
  
  .navbar-logo img {
    height: 45px;
  }
  
  .navbar-menu,
  .cta-button,
  .social-icons {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  /* Mobile menu adjustments */
  .mobile-menu {
    max-width: 280px;
  }
  
  .mobile-nav-item a {
    font-size: 1.2rem;
  }
  
  .mobile-cta {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .mobile-social-icons img {
    width: 26px;
    height: 26px;
  }
}

/* Small mobile styles (< 480px) */
@media (max-width: 479px) {
  .navbar-sticky {
    padding: 0 0.75rem;
  }
  
  .navbar-logo img {
    height: 40px;
  }
  
  .hamburger-menu {
    width: 25px;
    height: 25px;
  }
  
  .mobile-menu {
    width: 90%;
    max-width: none;
  }
  
  .mobile-nav-item a {
    font-size: 1.1rem;
  }
  
  .mobile-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .mobile-social-icons {
    gap: 1rem;
  }
  
  .mobile-social-icons img {
    width: 24px;
    height: 24px;
  }
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-sticky {
    height: 70px;
    padding: 0 1.5rem;
  }
  
  .navbar-logo img {
    height: 55px;
  }
  
  .navbar-menu {
    gap: 2rem;
    margin: 0 auto 0 1.5rem;
  }
  
  .nav-item a {
    font-size: 1rem;
    transform: translateY(2px); /* Abbassa leggermente su tablet */
  }
  
  .cta-button {
    padding: 8px 20px;
    font-size: 0.8rem;
    transform: translateY(2px); /* Abbassa leggermente su tablet */
  }
  
  .social-icons {
    gap: 0.3rem;
    margin-left: 0.6rem;
    transform: translateY(2px); /* Abbassa leggermente su tablet */
  }
  
  .social-icons img {
    width: 24px;
    height: 24px;
  }
  
  .hamburger-menu {
    transform: translateY(2px); /* Abbassa leggermente su tablet */
  }
}

/* Desktop styles (1024px+) */
@media (min-width: 1024px) {
  .navbar-sticky {
    height: 80px;
    padding: 0 2rem;
  }
  
  .navbar-logo img {
    height: 65px;
  }
  
  .navbar-menu {
    gap: 2.5rem;
    margin: 0 auto 0 2rem;
  }
  
  .nav-item a {
    font-size: 1.1rem;
    transform: translateY(2px); /* Abbassa leggermente su desktop */
  }
  
  .cta-button {
    padding: 10px 22px;
    font-size: 0.9rem;
    transform: translateY(2px); /* Abbassa leggermente su desktop */
  }
  
  .social-icons {
    gap: 0.4rem;
    margin-left: 0.8rem;
    transform: translateY(2px); /* Abbassa leggermente su desktop */
  }
  
  .social-icons img {
    width: 26px;
    height: 26px;
  }
  
  .hamburger-menu {
    transform: translateY(2px); /* Abbassa leggermente su desktop */
  }
}

/* Large desktop styles (1200px+) */
@media (min-width: 1200px) {
  .navbar-sticky {
    height: 85px;
  }
  
  .navbar-logo img {
    height: 70px;
  }
  
  .navbar-menu {
    gap: 3rem;
  }
  
  .nav-item a {
    font-size: 1.2rem;
    transform: translateY(2px); /* Abbassa leggermente su large desktop */
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    transform: translateY(2px); /* Abbassa leggermente su large desktop */
  }
  
  .hamburger-menu {
    transform: translateY(2px); /* Abbassa leggermente su large desktop */
  }
}