:root {
  --main-bg: #f8f5f0;
  --accent: #c7a17a;
  --primary: #2c1810;
  --light: #fff;
  --card: #faf8f3;
  --shadow: rgba(60, 40, 20, 0.05) 0 3px 8px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--primary);
  padding-bottom: 80px;
  max-width: 100%; /* AGGIUNGI questa riga */
  overflow-x: hidden; /* AGGIUNGI questa riga */
}
body { padding-top: 80px; }

/* ========== HEADER & NAVBAR ========== */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999; background: var(--accent);
  box-shadow: 0 3px 14px rgba(60, 40, 20, 0.03);
  height: 80px; display: flex; align-items: center;
}
.navbar {
  width: 100%; 
  max-width: 1100px; 
  margin: 0 auto;
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 38px;
}
.logo-titolo {
  font-family: 'Dancing Script', 'Brush Script MT', cursive, serif;
  font-size: 1.7rem;
  color: #1a1817;
  text-decoration: none;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}
.logo-titolo:hover, .logo-titolo:focus {filter: brightness(0.97);}

.menu-toggle {
  background: none; 
  border: none; 
  cursor: pointer;
  display: none;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  height: 30px; 
  width: 34px;
  margin-left: 18px;
  padding: 0;
}
.hamburger-line {
  display: block; 
  width: 20px; 
  height: 2px;
  background: var(--light);
  border-radius: 0px;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(.63,.02,.13,1.11);
}
.menu-toggle svg { 
  transition: all 0.3s; 
}
.menu-toggle.active .line-top { 
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .line-middle { 
  opacity: 0;
}
.menu-toggle.active .line-bottom {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ----- MENU DESKTOP ----- */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links li a {
  color: var(--light);
  text-decoration: none;
  padding: 9px 12px 9px 4px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.13s;
  font-size: 1em;
}
.nav-links li a:hover {background: var(--primary);}

/* ==== MOBILE NAV ==== */
@media (max-width: 900px) {
  .navbar {padding: 0 10px;}
  .logo-titolo {font-size: 1.22rem;}
}
@media (max-width: 768px) {
  .menu-toggle {display: flex;}
  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    position: absolute; top: 80px; right: 0;
    width: 170px; max-height: 0; overflow: hidden;
    background: var(--accent);
    border-radius: 0 0 0 16px;
    box-shadow: 0 10px 24px -10px #200d0540;
    padding: 0 .6rem;
    z-index: 10;
    transition: max-height 0.3s;
  }
  .nav-links.active {
    max-height: 400px; /* menu aperto */
    padding-top: 7px; padding-bottom: 14px;
    overflow: visible;
  }
  .nav-links li {margin: 11px 0; width: 100%;}
}

/* ========== MENU CARD e ANIMAZIONE ========== */
.menu-card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 13px;
  gap: 13px;
  transition: transform 0.12s, opacity 0.6s;
  opacity: 0; transform: translateY(20px);
  min-width: 0;
}
.menu-card.fade-in {opacity: 1; transform: translateY(0);}
.menu-card img {
  width: 60px; height: 60px; /* più piccolo di prima */
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: #ece7df;
  flex-shrink: 0; min-width: 60px; min-height: 60px;
}
.item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.item-title {
  font-size: 1.02rem;
  font-weight: bold;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-ingredients {
  font-size: 0.92rem;
  color: #825e3a;
  margin: 3px 0 1px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.item-prices {
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
  margin-top: 2px;
  margin-bottom: 1px;
  white-space: nowrap;
}

/* Griglia sempre compatta, anche su mobile */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .menu-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 9px 6px;
    gap: 7px;
    min-width: 0;
  }
  .menu-card img {
    width: 46px; height: 46px;
    min-width: 46px; min-height: 46px;
  }
  .item-title {font-size: 0.99rem;}
  .item-ingredients {font-size: 0.86rem;}
  .item-prices {font-size: 0.97rem;}
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

main {
  padding: 30px 1rem 0 1rem; max-width: 1100px; margin: 0 auto;
}
.menu-section {margin-bottom: 35px;}
.menu-section h2 {
  margin-bottom: 14px;
  font-size: 1.32rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* ========== FOOTER ========== */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--light);
  margin-top: 40px;
  padding: 28px 2vw 18px 2vw;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.footer-content {
  max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: flex-start;
}
.footer-section {
  flex: 1 1 0; min-width: 180px; max-width: 350px; margin-bottom: 10px; padding: 0 10px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.footer-section h3 {
  font-size: 1.03rem;
  margin-bottom: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: bold;
}
.footer-section p,
.footer-section a {
  color: var(--light);
  font-size: 0.94rem;
  margin: 6px 0;
  font-weight: 400;
}
.footer-section em {color: #ffdba7; font-style: normal; font-size: 0.9rem;}
.social-links {display: flex; gap: 11px; justify-content: center; margin-top: 14px;}
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--primary);
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 2px 8px #c7a17a33;
  font-size: 1.08rem;
  transition: background 0.23s, color 0.23s, transform 0.17s, box-shadow 0.16s;
  text-decoration: none; border: none; outline: none; position: relative;
}
.social-links a:hover,
.social-links a:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 0 13px #c7a17a88, 0 2px 12px #2c181055;
  transform: scale(1.12);
}
.social-links i, .social-links svg {font-size: 1.12em; pointer-events: none;}
@media (max-width: 900px) {
  .footer-content {flex-direction: column; align-items: center;}
  .footer-section {max-width: 520px; min-width: 0; width: 100%; margin-bottom: 13px; padding: 0 4vw;}
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--accent); color: var(--light);
  padding: 13px 10px; text-align: center; font-size: 1rem; z-index: 9998;
  box-shadow: 0 -2px 10px rgba(44,24,16,0.07);
  display: flex; align-items: center; justify-content: center; gap: .9rem;
}
.cookie-banner a {color: var(--primary); text-decoration: underline; font-weight: bold;}
.cookie-banner button {
  background: var(--primary); color: var(--light); border: none;
  padding: 6px 16px; border-radius: 7px; margin-left: 10px;
  font-weight: 500; cursor: pointer;transition: background 0.19s;
}
.cookie-banner button:hover {background: #543a27;}

/* ========== SEZIONE CONTATTO ========== */
.contatto-centrale {
  display: flex; justify-content: center; align-items: center;
  padding: 33px 8px;
}
.contatto-box {
  background: #fff; border-radius: 18px; padding: 36px 24px;
  text-align: center; box-shadow: 0 10px 38px rgba(0,0,0,0.07); max-width: 350px;
}
.telefono-icon {font-size: 36px; margin-bottom: 14px; animation: none;}
.contatto-box h3 {color: #333; font-size: 18px; margin-bottom: 8px; font-weight: 600;}
.numero-telefono {
  display: block; color: #667eea; font-size: 22px;
  font-weight: 700; text-decoration: none;
  margin: 13px 0; transition: all 0.3s ease;
}
.numero-telefono:hover {color: #764ba2; transform: scale(1.05);}
.contatto-box p {color: #666; font-size: 15px; margin-top: 10px;}
@media (max-width: 600px) {
  .contatto-box {padding: 16px 4px;}
  .numero-telefono {font-size: 17px;}
  .telefono-icon {font-size: 23px;}
}


/* ================== HERO SEZIONE FOTO + BOTTONI ==================*/
.hero-section {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 20px auto;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px 22px 14px;
  gap: 18px;
}

.hero-img {
  width: 100%;
  max-width: 376px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(60,40,20,0.07);
  object-fit: cover;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  justify-content: center;
  margin-top: 11px;
}

.hero-btn {
  background: var(--accent);
  color: var(--light);
  font-weight: 600;
  font-size: 1.09rem;
  padding: 11px 23px;
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 2px 12px #c7a17a33;
  transition: background 0.21s, color 0.2s, transform 0.17s;
  outline: none;
}

.hero-btn:hover,
.hero-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.07);
}
@media (max-width: 600px) {
  .hero-section {
    padding: 12px 5px 10px 5px;
    gap: 11px;
  }
  .hero-img {max-width: 97vw;}
  .hero-btn {font-size: 1rem; padding: 8px 11px;}
}

.hero-address {
  color: #614a2b;
  font-size: 1.10rem;
  font-weight: 500;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 7px;
}
@media (max-width: 600px) {
  .hero-address {
    font-size: 0.97rem;
    margin-top: 7px;
    margin-bottom: 4px;
  }
} 

