/* =========================
   San Siro – Premium Italian Restaurant
   ========================= */

/* Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f6f4f1;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Theme colors */
:root{
  --brand: #7b1d1d;
  --dark: #111;
  --paper: #fff;
  --line: #e7e3dd;
  --muted: rgba(17,17,17,.7);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  transition:.15s;
}
.btn:hover{ opacity:.9; }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-outline{ background:#fff; color:var(--brand); border-color:var(--brand); }
.btn-dark{ background:#111; color:#fff; }

/* Header */
.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:10;
}
.topbar .container{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 16px;
}
.logo{ height:42px; }
.nav{ display:flex; gap:14px; flex:1; }
.nav a{
  font-weight:600;
  opacity:.85;
  padding:8px 6px;
  border-radius:10px;
}
.nav a:hover{ background:#f3f1ed; opacity:1; }

.actions{ display:flex; gap:10px; align-items:center; }
.langs a{ font-weight:700; opacity:.6; margin:0 4px; }
.langs a.active{ opacity:1; }

.mobile-toggle{
  display:none;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
}

/* Mobile Nav */
.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  background:#fff;
}
.mobile-nav .container{
  display:grid;
  gap:8px;
  padding:12px 16px 16px;
}
.mobile-nav a{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#faf9f7;
  font-weight:700;
}

/* Hero */
.hero{
  background:
    linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.25)),
    url('../img/hero.jpg') center/cover no-repeat;
  color:#fff;
  padding:92px 0;
}
.hero h1{
  max-width:760px;
  font-size:44px;
  line-height:1.08;
  margin:0 0 16px;
}
.hero-buttons{ display:flex; gap:10px; flex-wrap:wrap; }

/* Sections */
.section{ padding:28px 0; }
.pagehead{ padding:24px 0 6px; }
.pagehead h1{ margin:0 0 6px; font-size:32px; }
.pagehead p{ margin:0; color:var(--muted); font-weight:600; }

/* Cards */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.04);
}
.hr{ height:1px; background:var(--line); margin:14px 0; }

/* Layout helpers */
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.muted{ color:var(--muted); }

/* Quick grid */
.quick-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

/* Menu */
.menu-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.menu-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px dashed #e9e4de;
  padding:10px 0;
}
.menu-item:last-child{ border-bottom:none; }
.menu-item .name{ font-weight:800; }
.menu-item .desc{ font-size:13px; color:var(--muted); }
.menu-item .price{ font-weight:900; }

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
label{ font-weight:800; margin-bottom:6px; display:block; }
input, textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:12px;
}
textarea{ resize:vertical; min-height:110px; }

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.gallery-grid a{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
}
.gallery-grid img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition:.3s;
}
.gallery-grid img:hover{ transform:scale(1.05); }

/* Lightbox */
.lightbox{ position:fixed; inset:0; z-index:9999; }
.lb-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.75); }
.lb-panel{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lb-img{
  max-width:92vw;
  max-height:80vh;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lb-close, .lb-nav{
  position:absolute;
  background:rgba(17,17,17,.6);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:14px;
  cursor:pointer;
}
.lb-close{
  top:20px; right:20px;
  width:44px; height:44px;
}
.lb-prev, .lb-next{
  top:50%;
  transform:translateY(-50%);
  width:54px; height:54px;
  font-size:32px;
}
.lb-prev{ left:20px; }
.lb-next{ right:20px; }
.lb-counter{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(17,17,17,.6);
  color:#fff;
  padding:8px 12px;
  border-radius:14px;
  font-weight:800;
}

/* Footer */
.footer{
  background:#111;
  color:#ddd;
  padding:26px 0;
  margin-top:40px;
}
.footer a{ color:#ddd; }
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:16px;
}
.copy{ margin-top:14px; opacity:.7; font-size:13px; }

/* Responsive */
@media(max-width:980px){
  .nav{ display:none; }
  .mobile-toggle{ display:inline-flex; }
  .quick-grid,
  .menu-grid,
  .gallery-grid,
  .form-grid{
    grid-template-columns:1fr;
  }
  .hero{ padding:70px 0; }
  .hero h1{ font-size:34px; }
}


