/* =========================================================
   Ristorante 101 – Locanda · Gorizia
   New website concept #23 — Aces Ads Agency
   ========================================================= */

:root {
  --navy: #0f283c;
  --navy-900: #0b1e2e;
  --coral: #d86047;
  --coral-600: #c4503a;
  --coral-soft: #fbe9e4;
  --gold: #e7c27b;
  --cream: #f5f1e6;
  --cream-2: #ebe2d1;
  --white: #ffffff;
  --ink: #1d212a;
  --text: #4b5063;
  --muted: #7a8094;
  --line: #e8e2d6;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(15, 40, 60, 0.10);
  --shadow-sm: 0 4px 14px rgba(15, 40, 60, 0.06);
}

/* ---------- Reset ---------- */
*, *::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(--white);
  -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.08; font-weight: 600; }
p { margin: 0; }
ul, ol { 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 helpers ---------- */
.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::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow-gold { color: var(--gold); }
.eyebrow-coral { color: var(--coral); }

h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
.hero h1 em { color: var(--gold); }
.menu h2 em, .cucina h2 em, .rooms h2 em, .reserve-form h3 em { color: var(--coral); }

.section-head { margin-bottom: 44px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-intro { max-width: 380px; font-size: 15px; color: var(--text); padding-bottom: 10px; }

/* ---------- 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; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn .ico { font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-600); box-shadow: 0 8px 20px rgba(216, 96, 71, .35); }
.btn-outline-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--coral); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: #fff;
  display: inline-grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.brand-sub { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-top: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(15, 40, 60, 0.94); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.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%; }
.lang { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, .7); }
.lang a { color: rgba(255, 255, 255, .7); }
.lang a.active, .lang a:hover { color: #fff; }
.lang i { font-style: normal; opacity: .6; }
.nav-cta { margin-left: 6px; }

.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: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("https://images.unsplash.com/photo-1563379926898-05f4575a45d8?auto=format&fit=crop&w=2000&q=80") center 45% / cover no-repeat;
  background-color: var(--navy);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 34, .6) 0%, rgba(10, 22, 34, 0) 32%),
    linear-gradient(90deg, rgba(10, 22, 34, .9) 0%, rgba(10, 22, 34, .66) 45%, rgba(10, 22, 34, .28) 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 440px); gap: 60px; align-items: end; }
.hero-copy { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1.02; margin-bottom: 26px; }
.hero-lead { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .95);
}
.hero-chips .ico { font-size: 13px; opacity: .85; }

.book-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); justify-self: end; width: 100%; }
.book-card h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 4px; }
.book-card h3 .ico { font-size: 18px; color: var(--coral); }
.book-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.book-list { margin: 0; }
.book-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.book-list > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.book-list dt { color: var(--text); }
.book-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.book-list dd .coral { color: var(--coral); }

/* ---------- Menu ---------- */
.menu { background: #fff; padding: 110px 0; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.menu-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.menu-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.menu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.menu-card:hover .menu-media img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.menu-body { padding: 24px 22px 26px; }
.menu-body h3 { font-size: 24px; margin-bottom: 8px; }
.menu-body p { font-size: 14px; color: var(--text); }

/* ---------- La cucina ---------- */
.cucina { background: var(--cream); padding: 110px 0; }
.cucina-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.cucina-media { position: relative; }
.cucina-media img { width: 100%; aspect-ratio: 455 / 420; object-fit: cover; border-radius: var(--radius); }
.cucina-badge { position: absolute; right: -22px; bottom: 28px; background: var(--coral); color: #fff; padding: 16px 22px 14px; border-radius: 10px; box-shadow: 0 16px 36px rgba(216, 96, 71, .35); display: flex; flex-direction: column; }
.cucina-badge strong { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.cucina-badge span { font-size: 12px; color: rgba(255, 255, 255, .85); margin-top: 4px; }
.cucina-copy { max-width: 520px; }
.cucina-copy > p { font-size: 15.5px; color: var(--text); margin: 18px 0 26px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.check { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 13px; }
.check.big { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 18px; }

/* ---------- Rooms ---------- */
.rooms { background: var(--cream-2); padding: 100px 0; }
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.room-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-media { aspect-ratio: 16 / 9; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .room-media img { transform: scale(1.04); }
.room-body { padding: 24px 22px 26px; }
.room-body h3 { font-size: 24px; margin-bottom: 8px; }
.room-body p { font-size: 14px; color: var(--text); margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-wrap { background: var(--cream); padding: 90px 0 0; }
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 64px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff;
  background: url("https://images.unsplash.com/photo-1563379926898-05f4575a45d8?auto=format&fit=crop&w=1800&q=80") center 70% / cover no-repeat;
  background-color: var(--navy); box-shadow: var(--shadow);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 36, .9) 0%, rgba(10, 24, 36, .7) 55%, rgba(10, 24, 36, .55) 100%); }
.cta-copy, .cta-actions { position: relative; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 10px; }
.cta-copy p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); padding: 90px 0 100px; }
.contact-inner { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 26px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-ico { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--coral); color: #fff; font-size: 17px; }
.contact-text { display: flex; flex-direction: column; }
.contact-text small { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-text strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.contact-map { width: 100%; min-height: 520px; height: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e8e4dd; box-shadow: var(--shadow-sm); }
.contact-map .leaflet-tile-pane { filter: saturate(.82) contrast(.97); }
.map-pin { background: transparent; border: 0; }
.map-pin svg { width: 36px; height: 44px; filter: drop-shadow(0 6px 10px rgba(15, 40, 60, .35)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); 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(--coral); border-color: var(--coral); }
.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: 0.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(15, 40, 60, .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: #fff; border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .4);
  animation: pop .25s ease-out; top: 50%; transform: translateY(-50%);
}
@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); color: var(--ink); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--coral-soft); }
.reserve-form h3 { font-size: 34px; margin-bottom: 8px; }
.form-intro { font-size: 14px; color: var(--text); margin-bottom: 22px; }
.form-intro a { color: var(--coral); 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(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.reserve-form input.invalid, .reserve-form select.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: 32px; margin-bottom: 8px; }
.reserve-success p { font-size: 14.5px; color: var(--text); margin-bottom: 22px; }

/* ---------- 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; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@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(--navy); 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; }
  .lang { margin: 4px 0 0; font-size: 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .site-header.menu-open { background: var(--navy); }
  .hero { padding: 130px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-card { justify-self: stretch; max-width: 460px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .cucina-inner { grid-template-columns: 1fr; gap: 56px; }
  .cucina-badge { right: 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { min-height: 400px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 21px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-lead { font-size: 15.5px; }
  .menu, .cucina, .rooms { padding: 80px 0; }
  .menu-grid, .rooms-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .cta-actions .btn { width: 100%; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; }
}
