*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #efe9dd;
  --sage: #b5bfae;
  --sage-dk: #859186;
  --dark: #2b2b2b;
  --dark2: #1a1a1a;
  --white: #f0eadf;
  --text: #535f54;
  --text-lt: #586152;
  --font-d: "Cormorant Infant", Georgia, serif;
  --font-b: "Gill Sans", "Trebuchet MS", Calibri, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
textarea,
select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

section,
footer,
.menu-highlights-section {
  position: relative;
  overflow: hidden;
}

.container,
.footer-logo,
.footer-cols,
.footer-bottom,
#menu-layout,
#hero-header,
#legenda-bar,
#mob-cat-select-bar {
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-decoration {
  position: absolute;
  width: 100%;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  left: 0;
  bottom: -80%;
}

#ingredients .bg-decoration--hero {
  left: initial;
  top: -65%;
  right: -30%;
  transform: scaleY(-1);
  filter: invert();
}
.menu-highlights-section .bg-decoration--hero {
  left: -50%;
  bottom: -75%;
  top: initial;
  right: initial;
  filter: invert();
}

#footer .bg-decoration {
  bottom: -50%;
}
.bg-decoration--highlights {
  left: -50%;
  bottom: -80%;
}

.bg-decoration--footer {
  left: 0;
  bottom: -140%;
}

  h2 {
    line-height: 1.2;
  }

@media screen and (max-width: 768px) {

  .bg-decoration {
    opacity: 0.04;
  }

  .bg-decoration--hero {
    bottom: -20%;
  }

  .bg-decoration--ingredients {
    top: -20%;
    right: -40%;
  }

  .bg-decoration--highlights {
    left: -35%;
    bottom: -30%;
  }

  .bg-decoration--footer {
    bottom: -40%;
  }
}

/* UTILITY */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 50px;
  font-family: var(--font-b);
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.2s;
  width: fit-content;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

}
.btn:hover {
  opacity: 0.92;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--cream {
  background: var(--cream);
  color: var(--dark2);
}
.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--sage {
  background: var(--sage);
  color: var(--dark2);
}
.btn--white {
  background: var(--white);
  color: var(--dark2);
}

/* HEADER */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 70px;
  z-index: 1000;
  transition: background 0.3s;
}
#header.sticky {
  position: fixed;
  background: rgba(181, 191, 174, 0.95);
  backdrop-filter: blur(8px);
}


#header.sticky .header-logo, .menu #header .header-logo { 
  height: 40px;
  width: auto;
} 
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.menu #header:not(.stikcy) .nav-links a {
  color: var(--dark);
}

#header:not(.stikcy) .nav-links a {
  transition: all 0.2s;
  color: var(--cream);
}

#header.sticky .nav-links a {

  color: var(--dark);
}

#header .header-logo .dark { display: none; }
#header .header-logo .light { display: block; }

#header.menu-open .header-logo .dark { display: block; }
#header.menu-open .header-logo .light { display: none; }


.nav-links a:hover {
  opacity: 0.6;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 48px;
  width: 21px;
}
.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-logo .dark {
  display: none;
}

#header.sticky .header-logo .dark {
  display: block;
}

#header.sticky .header-logo .light {
  display: none;
}

.menu #header:not(.stikcy) .header-logo .light {
  display: none;
}
.menu #header .header-logo .dark {
  display: block;
}

.nav-links a,
.mobile-nav a {
  position: relative;
}
.nav-links a::after,
.mobile-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.mobile-nav a:hover::after {
  width: 100%;
}

/* Rimuovi l'opacity hover precedente */
.nav-links a:hover,
.mobile-nav a:hover {
  opacity: 0.6;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 200;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

#header.sticky .hamburger span,.menu #header .hamburger span {
  background: var(--dark);
}


.hamburger.open span {
  background-color: var(--dark2);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* MOBILE MENU OVERLAY */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--sage);
  flex-direction: column;
  padding: 100px 40px 50px;
  clip-path: circle(0% at calc(100% - 58px) 40px);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
#mobile-menu.open {
  clip-path: circle(150% at calc(100% - 58px) 40px);
}
#mobile-menu.visible {
  display: flex;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto;
}
.mobile-nav li {
  border-bottom: 1px solid rgba(43, 43, 43, 0.15);
  overflow: hidden;
  text-align: center;
}
.mobile-nav a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  color: var(--dark2);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s;
}
.mobile-nav a:hover {
  color: var(--sage-dk);
}
#mobile-menu.open .mobile-nav a {
  transform: translateY(0);
  opacity: 1;
}
#mobile-menu.open .mobile-nav li:nth-child(1) a {
  transition-delay: 0.15s;
}
#mobile-menu.open .mobile-nav li:nth-child(2) a {
  transition-delay: 0.2s;
}
#mobile-menu.open .mobile-nav li:nth-child(3) a {
  transition-delay: 0.25s;
}
#mobile-menu.open .mobile-nav li:nth-child(4) a {
  transition-delay: 0.3s;
}
#mobile-menu.open .mobile-nav li:nth-child(5) a {
  transition-delay: 0.35s;
}

.mobile-cta {
  margin-bottom: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease 0.4s, opacity 0.4s ease 0.4s;
}
#mobile-menu.open .mobile-cta {
  transform: translateY(0);
  opacity: 1;
}
.mobile-cta .btn {
  width: 100%;
  padding: 14px 30px;
  font-size: 16px;
}

.mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 30px;
  border-top: 1px solid rgba(43, 43, 43, 0.15);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease 0.45s, opacity 0.4s ease 0.45s;
}
#mobile-menu.open .mobile-contacts {
  transform: translateY(0);
  opacity: 1;
}
.mobile-contacts p {
  font-size: 15px;
  font-weight: 300;
  color: var(--dark2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
}
.mobile-contacts strong {
  font-weight: 600;
}
.mobile-contacts .social-row {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  justify-content: center;
}
.mobile-contacts .social-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* FOOTER */
#footer {
  background: var(--sage);
  padding: 100px 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
  position: relative;
  overflow: hidden;
}
.footer-logo img {
  height: 43px;
}
.footer-cols {
  display: flex;
  gap: 426px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.footer-col {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-col h4 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}
.footer-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.footer-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.footer-item span {
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  line-height: 1.5;
}
.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.footer-socials img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: opacity 0.2s;
}
.footer-socials img:hover {
  opacity: 0.7;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

footer span strong {
  font-weight: bold;
}


/* Footer links */
.footer-item a,
.footer-bottom a {
  position: relative;
  transition: opacity 0.2s;
}
.footer-item a::after,
.footer-bottom a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.footer-item a:hover,
.footer-bottom a:hover {
  opacity: 0.65;
}
.footer-item a:hover::after,
.footer-bottom a:hover::after {
  width: 100%;
}

/* Footer socials hover */
.footer-socials a {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-socials a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE COMMON */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  .btn {
    width: 100%;
  }
  #header {
    padding: 20px 40px;
  }
  #footer {
    padding: 60px 40px 20px;
  }

  header .hero-ctas {
    display: none;
  }
  .footer-cols {
    gap: 60px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  #header {
    padding: 18px 20px;
  }
  .nav-links,
  #header > a.btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-logo, #header.sticky .header-logo, .menu #header .header-logo { 
    height: 30px;
    width: auto;
  }
  #footer {
    padding: 50px 20px 20px;
    gap: 30px;
  }
  .footer-cols {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .footer-col {
    width: 100%;
  }
}
