:root {
  --bg: #fbf8ef;
  --surface: #ffffff;
  --ink: #262a1f;
  --muted: #6c6f60;
  --accent: #505c3f;
  --accent-dark: #3c4530;
  --cream: #fffce8;
  --gold: #c9a36a;
  --line: #e7e1cd;
  --deep: #2b3123;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
  --radius: 10px;
  --nav-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h2 { font: 700 clamp(30px, 4vw, 44px)/1.15 var(--serif); }
.eyebrow {
  display: block; color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer; font-size: 15px; font-family: var(--sans);
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; border: 1.5px solid #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn.outline:hover { background: var(--accent); color: #fff; }
.btn.gold { background: var(--gold); color: var(--deep); }
.btn.gold:hover { background: #d8b67f; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(251,248,239,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: block; position: relative; height: 54px; width: 101px; flex: none; }
.brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .3s; }
.brand .logo-dark { opacity: 0; }
.nav.scrolled .brand .logo-light, .nav.menu-open .brand .logo-light { opacity: 0; }
.nav.scrolled .brand .logo-dark, .nav.menu-open .brand .logo-dark { opacity: 1; }
.nav.scrolled .links a:not(.btn) { color: var(--ink); }
.links { display: flex; gap: 30px; align-items: center; list-style: none; }
.links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; position: relative; }
.links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.links a:not(.btn):hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.links a:not(.btn):hover { color: var(--gold) !important; }
.links .btn { padding: 10px 22px; color: #fff !important; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav.scrolled .burger span { background: var(--ink); }
.nav.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(28,32,22,.55), rgba(28,32,22,.7)),
    var(--hero-img, none) var(--hero-pos, center)/cover var(--deep);
  padding: 120px 24px 80px;
}
.hero .eyebrow { color: var(--gold); }
.hero-logo { width: min(400px, 78vw); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 4px 24px rgba(0,0,0,.25)); }
.hero h1 { font: italic 500 clamp(26px, 3.6vw, 40px)/1.25 var(--serif); margin: 0 auto 8px; max-width: 760px; }
.hero p { max-width: 560px; margin: 0 auto; font-size: 18px; opacity: .9; }
.hero .actions { justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero { min-height: 62vh; padding: 140px 24px 72px; }
.page-hero h1 { font: 700 clamp(40px, 6vw, 68px)/1.08 var(--serif); margin: 6px 0 18px; }
.page-hero p.sub { font: italic 500 clamp(19px, 2.2vw, 24px)/1.4 var(--serif); opacity: .95; max-width: 640px; }

section { padding: 100px 0; }

.split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img { position: relative; }
.split-img.landscape img { aspect-ratio: 4/3; }
.split-img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; background: #e8e2cc; }
.badge {
  position: absolute; right: -20px; bottom: 32px; background: var(--accent); color: var(--cream);
  padding: 18px 22px; border-radius: var(--radius); text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.badge img { width: 56px; height: 56px; margin: 0 auto 6px; }
.badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.split p { color: var(--muted); margin-top: 18px; }
.split p.quote { font: italic 500 22px/1.4 var(--serif); color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { border-top: 2px solid var(--gold); padding-top: 12px; }
.feature strong { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.feature span { font-size: 14px; color: var(--muted); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.alt { background: var(--surface); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: 0 14px 40px rgba(50,55,35,.08); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(50,55,35,.14); }
.card figure { overflow: hidden; aspect-ratio: 4/3; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover figure img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font: 700 23px/1.25 var(--serif); }
.card-body p { color: var(--muted); font-size: 15px; margin-top: 10px; flex: 1; }
.card-link { margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.card-link::after { content: " →"; }

.proposal { text-align: center; padding: 40px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.proposal .icon { width: 48px; height: 48px; margin: 0 auto 18px; color: var(--accent); }
.proposal h3 { font: 700 14px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.proposal p { color: var(--muted); margin: 14px 0 22px; flex: 1; }
.proposal .price-box { min-height: 54px; }
.proposal .price { font: 700 32px/1 var(--serif); color: var(--ink); }
.proposal small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

.menu-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.menu-intro .quote { font: italic 500 clamp(22px, 2.6vw, 28px)/1.4 var(--serif); }
.menu-intro p { color: var(--muted); margin-top: 18px; font-size: 17px; }
.menu-intro .actions { justify-content: center; }
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: none;
  font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: .2s;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.panel { display: none; }
.panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel-title { text-align: center; font: italic 500 26px/1.3 var(--serif); color: var(--accent); margin-bottom: 8px; }
.panel-title::after { content: "— ✦ —"; display: block; font: 400 13px var(--sans); color: var(--gold); letter-spacing: .3em; margin-top: 8px; }
.panel > .panel-note { text-align: center; }
.panel-note { color: var(--muted); font-size: 14px; font-style: italic; margin-top: 12px; grid-column: 1 / -1; }
.menu-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 36px; }
.group-title {
  grid-column: 1 / -1; font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 16px; margin-bottom: 4px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.item-top { display: flex; align-items: baseline; gap: 12px; }
.item-top h4 { font: 700 19px/1.3 var(--serif); }
.item-top .dots { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.item-top .price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.item-top .price-glass { font-size: 13px; color: var(--muted); white-space: nowrap; }
.item p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.download-box {
  margin-top: 56px; padding: 36px; border-radius: var(--radius); background: var(--accent); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.download-box h3 { font: 700 24px/1.3 var(--serif); }
.download-box p { opacity: .85; font-size: 15px; margin-top: 4px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; background: #e8e2cc; transition: transform .4s; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

.band { background: var(--deep); color: #fff; }
.band .eyebrow { color: var(--gold); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.band-item { background: rgba(255,255,255,.06); padding: 32px; border-radius: var(--radius); }
.band-item .icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 14px; }
.band-item h3 { font: 700 21px/1.3 var(--serif); }
.band-item p { opacity: .75; margin-top: 8px; font-size: 15px; }
.band-item a { text-decoration: none; }
.band-item a:hover { color: var(--gold); }

.cta {
  text-align: center; color: #fff;
  background: linear-gradient(rgba(28,32,22,.72), rgba(28,32,22,.78)), var(--cta-img, none) center/cover var(--deep);
}
.cta h2 { max-width: 720px; margin: 0 auto; }
.cta p { max-width: 560px; margin: 16px auto 0; opacity: .9; }
.cta .eyebrow { color: var(--gold); }
.cta .actions { justify-content: center; }

.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact .split-img img { aspect-ratio: 4/3; height: auto; }
.info-list { margin-top: 28px; list-style: none; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list .icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.info-list strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-list a { text-decoration: none; font-weight: 700; }
.info-list a:hover { color: var(--accent); }
.company { margin-top: 24px; font-size: 14px; color: var(--muted); }
.map { padding: 0; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) sepia(.1); }

footer { background: #1f241a; color: #c9c7b5; padding: 64px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-logo { width: 150px; height: auto; margin-bottom: 18px; }
footer h4 { color: #fff; font-family: var(--serif); font-size: 18px; margin-bottom: 14px; }
footer a { text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--gold); }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; text-align: center; opacity: .6; }
.copy a { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after, .panel.active { animation: none; }
}

@media (max-width: 960px) {
  .links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); padding: 12px 24px 24px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .links.open { transform: none; }
  .links li { width: 100%; }
  .links a { color: var(--ink) !important; display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links a:not(.btn)::after { display: none; }
  .links a[aria-current="page"] { color: var(--accent) !important; }
  .links .btn { margin-top: 12px; border: 0; display: flex; }
  .burger { display: block; }
  .nav.menu-open { background: var(--bg); }
  .nav.menu-open .burger span { background: var(--ink); }
  .split .container, .contact .container { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-img { order: 0; }
  .badge { right: 12px; }
  .cards, .band-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .menu-group { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .item-top { flex-wrap: wrap; }
  .item-top .dots { display: none; }
  .item-top h4 { flex: 1 1 100%; }
  .download-box { padding: 28px 24px; }
  .page-hero { min-height: 52vh; }
}

.bg-home       { --hero-img: url("../assets/img/home-hero.jpg"); }
.bg-carta      { --hero-img: url("../assets/img/foto-0650.jpg"); }
.bg-aperitivi  { --hero-img: url("../assets/img/aperitivo.jpg"); --hero-pos: center 72%; }
.bg-feste      { --hero-img: url("../assets/img/feste-private.jpg"); }
.bg-contatti   { --hero-img: url("../assets/img/foto-0590.jpg"); }
.cta-carta     { --cta-img: url("../assets/img/foto-0629.jpg"); }
.cta-aperitivi { --cta-img: url("../assets/img/foto-0643.jpg"); }
.cta-feste     { --cta-img: url("../assets/img/foto-0671.jpg"); }
