:root {
  --primary: #1f3a2e;
  --accent: #986f14;
  --light: #f8f6f2;
  --dark: #111;
}

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

html{
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: white;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  padding-bottom: 10px;
}

.section {
  padding: 100px 10%;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.light {
  background-color: var(--light);
}

/* HERO */
.hero {
  height: 100vh;
  background-image: url('../img/background.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  opacity: 0.95;
}


.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  animation: fadeIn 1.5s ease forwards;
  padding: 0 20px;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.hero h2{
  font-size: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  transition: 0.3s;
  font-weight: 700;
}

.btn:hover {
  background: white;
  color: #986f14;
  border-color: #986f14;
}

/* ABOUT MODERNA */
.about {
  background: white;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 240px;
}

.about-image img {
  width: 87%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text .highlight {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ORARI (nuovi) */
.hours{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hours-card{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.hours-card i{
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  color: var(--primary);
}

.hours-card h3{
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--primary);
}

.hours-card p{
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* GALLERY TOGGLE MOBILE */
.gallery-mobile-box{
  max-width: 1100px;
  margin: 0 auto;
}

.mobile-only{
  display: none;
}

.gallery-toggle{
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font: inherit;
  color: #111;
  transition: background 0.2s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.gallery-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.gallery-toggle-text{
  font-weight: 700;
  font-size: 1rem;
}

.gallery-toggle-icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.05);
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-mobile-box.open .gallery-toggle-icon{
  transform: rotate(45deg);
  background: rgba(0,0,0,0.08);
}

/* MOBILE: mostra solo 3 immagini all'inizio */
@media (max-width: 768px){
  .mobile-only{
    display: block;
  }

  .gallery{
    gap: 16px;
  }

  .gallery img{
    height: 350px;
  }

  .gallery:not(.gallery-expanded) img:nth-child(n+4){
    display: none;
  }
}

/* MENU */
.menu-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.menu-tabs{
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-tab{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.menu-tab:hover{
  transform: translateY(-1px);
}

.menu-tab.active{
  background: #111;
  color: #fff;
  border-color: #111;
}

.menu-panel{
  display: none;
}

.menu-panel.active{
  display: block;
}

.menu-scroll{
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  text-align: left;
}

/* ACCORDION */
.menu-accordion{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD SEZIONE */
.menu-section{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  overflow: visible; /* 🔥 FIX TAGLI */
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.menu-section:hover{
  transform: translateY(-2px);
}

.menu-section.open{
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}

/* HEADER SEZIONE */
.menu-section-toggle{
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: #111;
  transition: background 0.2s ease;
}

.menu-section-toggle:hover{
  background: rgba(0,0,0,0.02);
}

.menu-section-title{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-section-title strong{
  font-size: 1.05rem;
  font-weight: 800;
}

.menu-section-title span{
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}

/* ICONA + */
.menu-section-icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.05);
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.menu-section.open .menu-section-icon{
  transform: rotate(45deg);
  background: rgba(0,0,0,0.08);
}

/* APERTURA */
.menu-section-content{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.menu-section.open .menu-section-content{
  grid-template-rows: 1fr;
}

/* 🔥 CONTENUTO COMPLETO (NO TAGLI) */
.menu-section-inner{
  min-height: 0;
  overflow: hidden;
}

.menu-section.open .menu-section-inner{
  max-height: none;
  overflow: visible;
  padding-bottom: 10px;
}

/* LISTA PIATTI */
.menu-items{
  padding: 8px 24px 22px;
}

/* PIATTO */
.menu-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.menu-item:first-child{
  border-top: none;
}

.menu-item-info{
  min-width: 0;
}

.menu-item h4{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
  color: #111;
  font-weight: 700;
}

.menu-item p{
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,0.62);
}

.menu-item p:empty{
  display: none;
}

/* PREZZO */
.price{
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  align-self: start;
}

/* NOTE */
.menu-note{
  margin: 14px 24px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(0,0,0,0.58);
}

/* GRID (desktop) */
@media (min-width: 900px){
  .menu-items.menu-items-grid{
    column-count: 2;
    column-gap: 30px;
  }

  .menu-items.menu-items-grid .menu-item{
    break-inside: avoid;
  }
}

/* MOBILE */
@media (max-width: 768px){
  .menu-scroll{
    padding: 8px;
    border-radius: 18px;
  }

  .menu-section-toggle{
    padding: 18px;
  }

  .menu-items{
    padding: 6px 18px 16px;
  }

  .menu-item{
    gap: 12px;
    padding: 14px 0;
  }

  .menu-item h4{
    font-size: 14px;
  }

  .menu-item p{
    font-size: 12.5px;
  }

  .price{
    font-size: 14px;
  }

  .menu-note{
    margin: 14px 18px 10px;
  }
}

/* REVIEWS widget */
.reviews-widget {
  max-width: 1100px;
  margin: 30px auto;
  padding: 5px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* MAP */
.map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 15px;
}

/* FOOTER */
footer {
  padding: 30px;
  text-align: center;
  background: var(--primary);
  color: white;
}

/* ANIMAZIONI */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .about-container {
    flex-direction: column;
  }

  .about-text {
    text-align: center;
  }

  .hours{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}


.dev-banner{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 9999;
  font-weight: 500;
}


/* QUICK LINKS */
.quick-links-section{
  background:
    linear-gradient(180deg, rgba(248,246,242,1) 0%, rgba(255,255,255,1) 100%);
}

.quick-links-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.quick-links-heading{
  max-width: 720px;
  margin: 0 auto 34px;
}

.quick-links-heading h2{
  margin-bottom: 12px;
}

.quick-links-heading p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.68);
}

.quick-links-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quick-link-card{
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.quick-link-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.1);
  border-color: rgba(152,111,20,0.22);
}

.quick-link-icon{
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(152,111,20,0.1);
  color: var(--accent);
  font-size: 24px;
}

.quick-link-card h3{
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.quick-link-card p{
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(0,0,0,0.68);
  margin-bottom: 18px;
}

.quick-link-cta{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
}

.quick-link-cta::after{
  content: "→";
  transition: transform 0.2s ease;
}

.quick-link-card:hover .quick-link-cta::after{
  transform: translateX(4px);
}

@media (max-width: 900px){
  .quick-links-grid{
    grid-template-columns: 1fr;
  }

  .quick-link-card{
    padding: 24px 20px;
  }
}
