/* Bella Ciao — demo by Kernglut. Warm Italian luxury. */
:root {
  --bg: #120d09;
  --bg-2: #1a130d;
  --bg-3: #221911;
  --cream: #f4ead8;
  --cream-2: #e3d5bd;
  --muted: #b3a48c;
  --dim: #7d6f5c;
  --gold: #c9a45c;
  --gold-light: #e6cd93;
  --rosso: #b23a2c;
  --line: rgba(201, 164, 92, .18);
  --line-strong: rgba(201, 164, 92, .42);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
em { font-style: italic; color: var(--gold-light); }
p { margin: 0 0 1em; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.kicker::before, .kicker.both::after { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a120a; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -12px rgba(201,164,92,.7); }
.btn-line { background: transparent; color: var(--cream); border-color: rgba(244,234,216,.4); }
.btn-line:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--gutter); transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(18,13,9,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 11px; padding-bottom: 11px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mono { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-light); }
.brand b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; color: var(--cream-2); letter-spacing: .04em; transition: color .3s; }
.nav ul a:hover { color: var(--gold-light); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--gold-light); }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 60%, rgba(18,13,9,.2), rgba(18,13,9,.75) 70%), linear-gradient(180deg, rgba(18,13,9,.55) 0%, rgba(18,13,9,.15) 35%, rgba(18,13,9,.95) 100%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(60px, 11vh, 130px); }
.hero h1 { font-size: clamp(4.4rem, 15vw, 12rem); line-height: .86; letter-spacing: -.02em; }
.hero h1 em { display: inline-block; }
.hero .lead { color: var(--cream-2); margin-top: 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.w { display: inline-block; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.6rem; white-space: nowrap; color: var(--cream-2); }
.marquee i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: clamp(90px, 15vh, 170px) 0; }
.section-head { margin-bottom: clamp(44px, 7vh, 80px); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.photo { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about .photo { aspect-ratio: 4/5; }
.about .photo img { height: 118%; }
.facts { display: flex; gap: 40px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold-light); line-height: 1; }
.facts span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tag-symbol { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,234,216,.8); background: rgba(18,13,9,.6); padding: 3px 8px; border-radius: 999px; }

/* Highlights (dish cards with photos) */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.dish { position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: none; padding: 0; text-align: left; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.dish:hover img, .dish:focus-visible img { transform: scale(1.08); }
.dish::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18,13,9,.92)); }
.dish span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.dish small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }

/* Menu */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.tabs button { background: none; border: 1px solid var(--line-strong); color: var(--cream-2); border-radius: 999px; padding: 10px 18px; font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #1a120a; border-color: var(--gold); font-weight: 700; }
.panel[hidden] { display: none; }
.panel-note { text-align: center; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 30px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(201,164,92,.1); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005)); transition: border-color .35s, transform .45s var(--ease), background .35s; }
.item:hover { border-color: var(--line-strong); transform: translateY(-2px); background: linear-gradient(180deg, rgba(201,164,92,.07), rgba(255,255,255,.01)); }
.item h3 { font-size: 1.45rem; line-height: 1.15; }
.item .price { font-family: var(--serif); font-size: 1.45rem; color: var(--gold-light); white-space: nowrap; }
.item p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14.5px; }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--gold-light); }
.badge.scharf { border-color: rgba(178,58,44,.7); color: #f0a296; }
.badge.vegetarisch { border-color: rgba(140,170,100,.6); color: #c6dba6; }
.menu-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; }
.menu-foot a { color: var(--gold-light); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 125%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,13,9,.8)); pointer-events: none; }
.g1 { grid-column: span 7; aspect-ratio: 16/11; }
.g2 { grid-column: span 5; aspect-ratio: 4/5; }
.g3 { grid-column: span 4; aspect-ratio: 4/5; }
.g4 { grid-column: span 4; aspect-ratio: 4/5; }
.g5 { grid-column: span 4; aspect-ratio: 4/5; }
.g6 { grid-column: span 12; aspect-ratio: 21/8; }
.symbol-note { margin-top: 18px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: right; }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); }
.card + .card { margin-top: 20px; }
.card h3 { font-size: 1.9rem; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 11px 0; border-bottom: 1px solid rgba(201,164,92,.1); }
.hours td:last-child { text-align: right; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); }
.hours tr.today td { color: var(--cream); font-weight: 700; }
.hours tr.today td:first-child::after { content: " · heute"; color: var(--gold); font-weight: 500; font-size: 13px; }
.addr { font-style: normal; color: var(--cream-2); }
.addr a { color: var(--gold-light); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
form.res { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid rgba(244,234,216,.12); background: rgba(0,0,0,.3); color: var(--cream); font: inherit; font-size: 16px; color-scheme: dark; }
.field select option { background: #1a130d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.15); }
.field textarea { min-height: 90px; resize: vertical; }
.res-ok { border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; background: rgba(201,164,92,.08); }
.res-ok[hidden] { display: none; }
.res-ok small { display: block; color: var(--muted); margin-top: 4px; }
.form-note { font-size: 13px; color: var(--dim); margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: radial-gradient(ellipse 70% 90% at 50% 130%, rgba(178,58,44,.18), transparent 70%), var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 12px; color: var(--gold-light); }
.footer p, .footer li { color: var(--muted); font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--cream-2); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(244,234,216,.07); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: var(--dim); }
.footer-bottom a { color: var(--muted); }
.kg { color: var(--gold-light) !important; }

/* Chat — Chiedi a Bella */
.chat-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 14px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(26,19,13,.92); backdrop-filter: blur(10px); color: var(--gold-light); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 12px 40px -12px rgba(0,0,0,.8); }
.chat-btn .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--rosso)); display: grid; place-items: center; color: #1a120a; font-family: var(--serif); font-style: italic; font-size: 17px; }
.chat { position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: #150f0a; box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.chat-head .demo { margin-left: 8px; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #1a120a; background: var(--gold); padding: 3px 8px; border-radius: 999px; }
.chat-head small { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.4; margin-top: 3px; }
.chat-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #211810; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a120a; border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chips button { background: none; border: 1px solid var(--line-strong); color: var(--gold-light); padding: 6px 11px; border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(244,234,216,.12); background: #0c0806; color: var(--cream); font: inherit; font-size: 16px; }
.chat-form button { border: 0; border-radius: 999px; padding: 0 16px; background: var(--gold); color: #1a120a; font-weight: 700; cursor: pointer; }

/* Initial states (only with JS animations) */
.js-anim .slide { opacity: 0; transform: translateY(50px); }
.js-anim .fade { opacity: 0; transform: translateY(24px); }

@media (max-width: 1000px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 34px; background: rgba(18,13,9,.97); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .nav ul a { font-family: var(--serif); font-size: 2rem; color: var(--cream); }
  .about, .visit, .footer-grid { grid-template-columns: 1fr; }
  .g1, .g2, .g3, .g4, .g5, .g6 { grid-column: span 12; aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .facts { gap: 26px; }
  .brand small { display: none; }
  .chat-btn { right: 14px; bottom: 14px; }
  .chat { right: 16px; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .gallery img, .about .photo img { height: 100%; }
}
