/* =========================================================
   Trattoria da Gianni · Gorizia
   New website concept #25 — Aces Ads Agency
   ========================================================= */

:root {
  --brown: #25170e;
  --brown-800: #1c110a;
  --red: #9b1a1e;
  --red-600: #861418;
  --red-ticker: #a9221c;
  --red-soft: #f6e7e2;
  --gold: #caa360;
  --gold-badge: #e5a14c;
  --cream: #faf6ed;
  --cream-2: #f1e8d9;
  --card: #fff9f1;
  --sage: #eef3dc;
  --sage-ink: #3f5a2a;
  --ink: #20170e;
  --text: #5a5047;
  --muted: #8b8176;
  --line: #e8dfd0;
  --line-dark: rgba(255, 255, 255, 0.12);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --shadow: 0 16px 44px rgba(37, 23, 14, 0.12);
  --shadow-sm: 0 4px 14px rgba(37, 23, 14, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); line-height: 1.1; font-weight: 600; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow-red { color: var(--red); }
h2 { font-size: clamp(2rem, 3.7vw, 3.3rem); letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
h2 em, h3 em { color: var(--red); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-intro { max-width: 340px; font-size: 14.5px; color: var(--text); padding-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn .ico { font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); box-shadow: 0 8px 20px rgba(155, 26, 30, .32); }
.btn-outline-light { background: rgba(255, 255, 255, .05); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brown); color: rgba(255, 255, 255, .8); font-size: 12px; position: relative; z-index: 60; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ico { font-size: 13px; color: var(--gold); }
.topbar a:hover { color: #fff; }
.lang { display: inline-flex; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.lang a { color: rgba(255, 255, 255, .55); }
.lang a.active, .lang a:hover { color: #fff; }
.lang span { color: rgba(255, 255, 255, .4); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); background: rgba(37, 23, 14, .35); display: inline-grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.brand-sub { font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 4px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 34px; left: 0; right: 0; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.scrolled { position: fixed; top: 0; background: rgba(37, 23, 14, .94); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); animation: slideDown .3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); position: relative; padding: 4px 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s; }
.main-nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: 10px; padding: 13px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; padding: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 92vh; display: flex; align-items: center; padding: 170px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat; background-color: var(--brown); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 23, 14, .65) 0%, rgba(37, 23, 14, .15) 35%, rgba(37, 23, 14, .55) 100%), linear-gradient(90deg, rgba(37, 23, 14, .85) 0%, rgba(37, 23, 14, .5) 50%, rgba(37, 23, 14, .25) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 360px); gap: 60px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 6.3vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; max-width: 620px; }
.hero h1 em { color: var(--gold); }
.hero-quote { font-family: var(--hand); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.3; color: rgba(255, 255, 255, .9); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hours-card { background: var(--card); color: var(--ink); border-radius: 18px; padding: 24px 24px 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); width: 100%; justify-self: end; }
.card-eyebrow { margin-bottom: 8px; gap: 8px; }
.card-eyebrow .ico { font-size: 15px; }
.hours-list > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hours-list dt { color: var(--text); }
.hours-list dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hours-list dd.closed { color: var(--red); }
.open-now { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--text); }
.open-now .dot { width: 8px; height: 8px; border-radius: 50%; background: #3cab5a; box-shadow: 0 0 0 3px rgba(60, 171, 90, .18); }

/* ---------- Ticker ---------- */
.ticker { background: var(--red-ticker); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--serif); font-weight: 600; font-size: 21px; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--gold-badge); font-size: 16px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Challenge ---------- */
.challenge { background: var(--cream); padding: 110px 0 100px; }
.challenge-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.challenge-media { position: relative; }
.challenge-media img { width: 100%; aspect-ratio: 475 / 395; object-fit: cover; border-radius: var(--radius); }
.challenge-badge { position: absolute; top: -32px; right: -32px; width: 140px; height: 140px; border-radius: 50%; background: var(--gold-badge); color: var(--brown); display: grid; place-items: center; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1.1; transform: rotate(8deg); box-shadow: 0 14px 30px rgba(229, 161, 76, .35); }
.challenge-float { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 18px 12px 14px; box-shadow: var(--shadow); }
.float-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 17px; }
.challenge-float strong { display: block; font-size: 13.5px; color: var(--ink); }
.challenge-float small { display: block; font-size: 11.5px; color: var(--muted); }
.challenge-copy h2 { margin-bottom: 20px; }
.challenge-copy .lead { font-size: 15.5px; line-height: 1.7; margin-bottom: 28px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.feat-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 18px; }
.feature-list strong { display: block; font-size: 14px; color: var(--ink); }
.feature-list small { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Dishes ---------- */
.dishes { background: var(--cream-2); padding: 100px 0 90px; }
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dish-card { background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish-card img { width: 100%; aspect-ratio: 310 / 250; object-fit: cover; }
.dish-body { padding: 22px 22px 26px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.dish-body h3 { font-size: 22px; margin-bottom: 8px; }
.dish-body p { font-size: 13.5px; color: var(--text); }
.menu-note { margin-top: 44px; text-align: center; font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--red); }
.menu-note i { font-style: normal; margin-left: 6px; }

/* ---------- Services ---------- */
.services { background: var(--cream); padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 24px; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-size: 17px; margin-bottom: 18px; }
.service-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--text); }

/* ---------- Venue band ---------- */
.venue-wrap { background: var(--cream); padding: 10px 0 90px; }
.venue-band { position: relative; overflow: hidden; border-radius: 20px; padding: 70px 60px; min-height: 420px; display: flex; align-items: center; color: #fff; background: url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat; background-color: var(--brown); box-shadow: var(--shadow); }
.venue-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37, 23, 14, .88) 0%, rgba(37, 23, 14, .55) 50%, rgba(37, 23, 14, .25) 100%); }
.venue-copy { position: relative; max-width: 480px; }
.venue-copy h2 { color: #fff; font-size: clamp(2rem, 3.3vw, 2.9rem); margin-bottom: 16px; }
.venue-copy p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .88); margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); padding: 0 0 100px; }
.contact-inner { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 44px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; }
.contact-card h2 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.hours-list-lg > div { font-size: 14px; padding: 12px 0; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a:hover { color: var(--red); }
.c-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 15px; }
.contact-map-wrap { position: relative; min-height: 480px; }
.contact-map { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #e8e4dd; box-shadow: var(--shadow-sm); }
.contact-map .leaflet-tile-pane { filter: saturate(.8) contrast(.96); }
.map-pin { background: transparent; border: 0; }
.map-pin svg { width: 36px; height: 44px; filter: drop-shadow(0 6px 10px rgba(37, 23, 14, .35)); }
.map-card { position: absolute; left: 20px; bottom: 20px; z-index: 500; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow); }
.map-card-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--red); color: #fff; font-size: 16px; }
.map-card strong { display: block; font-size: 13.5px; color: var(--ink); }
.map-card small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin: 18px 0 22px; max-width: 320px; }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 14px; color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(37, 23, 14, .72); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; z-index: 1; width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; margin: 20px auto; padding: 36px; background: var(--card); border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); top: 50%; transform: translateY(-50%); animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-50%) scale(.97); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--red-soft); }
.reserve-form h3 { font-size: 30px; margin-bottom: 8px; }
.form-intro { font-size: 14px; color: var(--text); margin-bottom: 22px; }
.form-intro a { color: var(--red); font-weight: 600; }
.reserve-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.reserve-form input, .reserve-form select, .reserve-form textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.reserve-form input:focus, .reserve-form select:focus, .reserve-form textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.reserve-form .invalid { border-color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.reserve-success { text-align: center; padding: 16px 0 6px; }
.reserve-success h3 { font-size: 28px; margin-bottom: 8px; }
.reserve-success p { font-size: 14.5px; color: var(--text); margin-bottom: 22px; }
.check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; }
.check.big { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-right > span { display: none; }
}
@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 0 0 auto 0; padding: 96px 24px 28px; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--brown); transform: translateY(-110%); transition: transform .3s ease; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); z-index: -1; }
  .main-nav.open { transform: none; }
  .main-nav > a:not(.btn) { font-size: 18px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: var(--brown); position: fixed; top: 0; }
  .hero { padding: 140px 0 70px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hours-card { justify-self: stretch; max-width: 420px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .challenge-inner { grid-template-columns: 1fr; gap: 56px; }
  .challenge-badge { right: 12px; top: -24px; }
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .venue-band { padding: 50px 36px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map-wrap { min-height: 420px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .topbar-left span:first-child { display: none; }
  .topbar-right > span { display: none; }
  .brand-name { font-size: 18px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-actions .btn { width: 100%; }
  .challenge, .dishes, .services { padding: 72px 0; }
  .challenge-badge { width: 110px; height: 110px; font-size: 18px; }
  .dish-grid, .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .venue-band { padding: 40px 24px; min-height: 0; }
  .contact-card { padding: 28px 22px; }
  .hours-list-lg > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; }
  .map-card { left: 12px; right: 12px; bottom: 12px; }
}
