:root {
  color-scheme: light;
  --cream: #fdfbf7;
  --paper: #fffefa;
  --gold: #d4af37;
  --bronze: #92722c;
  --ink: #2b2b2b;
  --burgundy: #762f3b;
  --terracotta: #bd684e;
  --muted: #716c63;
  --line: #e9e3d8;
  --shadow: 0 14px 40px rgba(43, 43, 43, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.65;
}

button, input, select, textarea { font: inherit; }

.site-navbar {
  min-height: 76px;
  background: rgba(253, 251, 247, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(14px);
}

.navbar-brand {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-logo { display: block; width: clamp(205px, 26vw, 270px); height: auto; }
.navbar-brand:hover, .footer-brand:hover { color: var(--bronze); }

.navbar-brand small, .footer-brand span {
  display: block;
  margin-top: 5px;
  color: var(--bronze);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-mark {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--bronze);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25); }

.hamburger-lines { display: grid; gap: 5px; width: 25px; }
.hamburger-lines span { height: 2px; background: var(--ink); border-radius: 2px; }
.hamburger-lines span:nth-child(2) { width: 18px; }

.btn-music {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  font-size: 0.82rem;
}

.btn-music > span:first-child { color: var(--bronze); font-size: 1.15rem; }
.btn-music:hover, .btn-music[aria-pressed="true"] { border-color: var(--gold); color: var(--bronze); }

.offcanvas { background: var(--cream); }
.offcanvas-title { font-family: "Playfair Display", Georgia, serif; }
.side-nav .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; }
.side-nav .nav-link:hover { color: var(--bronze); }
.side-note { color: var(--muted); font-size: 0.9rem; }

.hero-section {
  position: relative;
  display: flex;
  min-height: min(690px, calc(100vh - 76px));
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 77% 48%, rgba(212, 175, 55, 0.18), transparent 37%),
    linear-gradient(115deg, #282720 0%, #363228 54%, #574b34 100%);
  color: #fffdf8;
}

.hero-section::before, .hero-section::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(230, 204, 124, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-section::before { width: min(62vw, 700px); aspect-ratio: 1; right: 4%; top: 6%; }
.hero-section::after { width: min(47vw, 530px); aspect-ratio: 1; right: 10%; top: 17%; border-color: rgba(230, 204, 124, 0.17); }
.hero-content { position: relative; padding-top: 70px; padding-bottom: 80px; }
.eyebrow { margin-bottom: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; }
.hero-section .eyebrow { color: #e8ce83; }
.hero-section h1 { margin: 0; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.3rem); font-weight: 400; letter-spacing: -0.055em; line-height: 0.99; }
.hero-section h1 span { color: #e4c66e; font-style: italic; }
.hero-copy { margin: 26px 0 28px; color: rgba(255, 253, 248, 0.78); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.btn-gold { padding: 12px 24px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #211f18; font-weight: 700; transition: background 0.2s ease, transform 0.2s ease; }
.btn-gold:hover, .btn-gold:focus { border-color: #e3c557; background: #e3c557; color: #211f18; transform: translateY(-1px); }
.btn-gold span { margin-left: 12px; }
.hero-caption { display: flex; align-items: center; gap: 10px; margin-top: 70px; color: rgba(255, 253, 248, 0.63); font-size: 0.64rem; letter-spacing: 0.2em; }
.hero-caption span { width: 32px; height: 1px; background: var(--gold); }
.hero-decoration { position: absolute; right: 13%; top: 50%; display: flex; flex-direction: column; color: rgba(255, 255, 255, 0.12); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); line-height: 0.98; transform: translateY(-50%); }

.section-space { padding: 104px 0; }
.section-title { margin: 0 0 20px; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4.2vw, 3.75rem); font-weight: 400; letter-spacing: -0.045em; line-height: 1.08; }
.text-bronze { color: var(--bronze); }
.story-section { background: var(--paper); }
.story-section .section-title { margin-bottom: 0; }
.story-copy { max-width: 680px; color: #57534c; font-family: "Playfair Display", Georgia, serif; font-size: 1.12rem; }
.story-copy p { margin-bottom: 18px; }
.text-link { display: inline-block; margin-top: 6px; color: var(--bronze); font-family: "Avenir Next", Avenir, sans-serif; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--ink); }
.story-stamp { display: grid; width: 94px; height: 94px; margin-top: 30px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--bronze); text-align: center; transform: rotate(-10deg); }
.story-stamp span { font-family: "Playfair Display", Georgia, serif; font-size: 0.9rem; line-height: 1.1; }

.menu-section { background: var(--cream); }
.section-heading { max-width: 650px; margin: 0 auto 34px; }
.section-heading > p:last-child { color: var(--muted); }
.category-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filter-btn { padding: 8px 19px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink); font-size: 0.9rem; transition: all 0.2s ease; }
.filter-btn:hover, .filter-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.piatto-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 27px 24px 22px; border: 1px solid rgba(212, 175, 55, 0.18); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.piatto-card[hidden] { display: none; }
.piatto-card:hover { box-shadow: 0 18px 45px rgba(43, 43, 43, 0.12); transform: translateY(-4px); }
.dish-number { position: absolute; top: 17px; right: 20px; color: #d8d1c3; font-family: Georgia, serif; font-size: 1.3rem; }
.dish-tag { margin-bottom: 11px; color: var(--bronze); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; }
.piatto-card h3 { max-width: 88%; margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.38rem; font-weight: 400; line-height: 1.25; }
.piatto-card > p { min-height: 52px; margin-bottom: 14px; color: var(--muted); font-size: 0.91rem; }
.allergen-details { margin: 0 0 17px; color: var(--muted); font-size: 0.78rem; }
.allergen-details summary { width: fit-content; color: var(--bronze); cursor: pointer; font-weight: 600; }
.allergen-details p { margin: 7px 0 0; }
.piatto-card .form-label { margin: 2px 0 5px; color: var(--muted); font-size: 0.8rem; }
.piatto-card .form-select { margin-bottom: 10px; border-color: var(--line); border-radius: 6px; font-size: 0.88rem; }
.dish-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.prezzo { color: var(--ink); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.btn-add { padding: 7px 11px; border: 1px solid var(--gold); border-radius: 30px; color: var(--bronze); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.btn-add:hover { background: var(--gold); color: var(--ink); }
.btn-add span { margin-left: 5px; font-size: 1rem; }
.dish-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: -3px 0 10px; }
.food-badge { padding: 3px 9px; border-radius: 20px; font-size: 0.65rem; font-weight: 600; }
.badge-gluten-free { background: #e8f0e4; color: #43633a; }
.badge-vegan { background: #edf1df; color: #4d642f; }

.cart-section { background: #f1ede4; }
.cart-list { margin: 25px 0 0; border-top: 1px solid #ddd5c7; }
.cart-empty { padding: 22px 0; color: var(--muted); }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid #ddd5c7; }
.cart-item-name { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1rem; }
.cart-item-sub { color: var(--muted); font-size: 0.82rem; }
.cart-item-actions { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.cart-remove { width: 30px; height: 30px; border: 1px solid #d6cfc1; border-radius: 50%; background: transparent; color: var(--ink); line-height: 1; }
.cart-remove:hover { border-color: #a34535; color: #a34535; }
.order-card, .form-panel { padding: 28px; border: 1px solid rgba(212, 175, 55, 0.22); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.form-label { color: #49453e; font-size: 0.84rem; font-weight: 600; }
.form-control, .form-select { border-color: #ded8cc; border-radius: 6px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.18); }
#order-notes { resize: vertical; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); }
.total-row strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; }
.demo-note { color: #827b70; font-size: 0.76rem; line-height: 1.5; }
.form-feedback { min-height: 0; margin-top: 10px; color: #48683a; font-size: 0.87rem; }
.form-feedback:not(:empty) { padding: 9px 12px; border-radius: 6px; background: #eef3e8; }
.form-feedback.feedback-error:not(:empty) { background: #f8e9e6; color: #8a332d; }

.reservation-section { background: var(--paper); }
.reservation-section p:not(.eyebrow):not(.demo-note) { max-width: 390px; color: var(--muted); }
.support-section { background: var(--cream); }
.faq-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq-accordion .accordion-button { padding: 18px 4px; background: transparent; color: var(--ink); font-family: Georgia, serif; font-size: 1.12rem; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--bronze); }
.faq-accordion .accordion-button::after { background-size: 0.9rem; }
.faq-accordion .accordion-body { padding: 0 4px 18px; color: var(--muted); font-size: 0.9rem; }
.form-panel h3 { margin-bottom: 18px; font-family: "Playfair Display", Georgia, serif; font-weight: 400; }
.assistance-page .form-panel h2, .privacy-block h2 { margin-bottom: 16px; font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.assistance-page .assistance-contact p { overflow-wrap: anywhere; }
.assistance-page .section-title { margin-bottom: 16px; }
.btn-outline-gold { border-color: var(--gold); color: var(--bronze); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.invoice-section { background: #f1ede4; }
.invoice-section .section-title { max-width: 390px; }
.invoice-section p:not(.eyebrow):not(.demo-note) { max-width: 390px; color: var(--muted); }

.reviews-section { background: #f1ede4; }
.review-intro { max-width: 640px; color: var(--muted); font-size: 0.9rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.review-card { padding: 24px; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.review-card blockquote { margin: 14px 0; color: #57534c; font-family: "Playfair Display", Georgia, serif; font-size: 1.03rem; }
.review-name { font-weight: 600; }
.review-date { display: block; margin-top: 4px; color: var(--muted); font-size: 0.72rem; }
.review-stars { color: var(--gold); letter-spacing: 0.1em; }
.review-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 30px; font-size: 0.68rem; font-weight: 600; }
.review-badge img { width: 15px; height: 15px; }
.review-badge.purchase { background: #e5f2e8; color: #287341; }
.review-badge.verified { background: #e9f0fa; color: #315d91; }
.review-badge.unverified { background: #f0efec; color: #68645e; }
.review-loading { grid-column: 1 / -1; color: var(--muted); }
.review-modal { border: 0; border-radius: var(--radius); background: var(--paper); }
.review-modal .modal-title { font-family: "Playfair Display", Georgia, serif; }
.invoice-modal { border: 0; border-radius: var(--radius); background: var(--paper); }
.invoice-modal .modal-title { font-family: "Playfair Display", Georgia, serif; }
.invoice-paper { position: relative; overflow: hidden; padding: 30px; border: 1px solid #d8dce1; background: #fff; color: #171b20; font-family: Arial, sans-serif; line-height: 1.45; }
.invoice-paper-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #168dc8; font-size: 0.82rem; }
.invoice-paper-head img { width: min(52%, 280px); height: auto; }
.invoice-paper h3 { margin: 24px 0 18px; font-size: 1.25rem; font-weight: 700; }
.invoice-paper h4 { margin: 20px 0 8px; font-size: 1rem; font-weight: 700; }
.invoice-paper small, .invoice-disclaimer { color: #59616b; font-size: 0.75rem; }
.invoice-watermark { margin: 16px 0; padding: 7px; border: 2px solid #b42318; color: #b42318; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-align: center; transform: rotate(-1deg); }
.invoice-table { margin-top: 20px; font-size: 0.82rem; }
.invoice-table th { background: #edf7fc; }
.invoice-table th, .invoice-table td { border-color: #d8dce1; }
.invoice-disclaimer { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid #d8dce1; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-rating label { color: #c9c1b1; cursor: pointer; font-size: 2rem; line-height: 1; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: var(--gold); }
.star-rating input:focus-visible + label { outline: 2px solid var(--bronze); outline-offset: 3px; }

.site-footer { padding: 48px 0 26px; background: #292720; color: rgba(255, 253, 248, 0.72); font-size: 0.82rem; }
.site-footer a { color: #e6c85f; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { color: #fffdf8 !important; font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; line-height: 1.1; }
.footer-brand span { color: #e6c85f; font-family: "Poppins", sans-serif; font-size: 0.56rem; }
.footer-heading { margin-bottom: 12px; color: #e6c85f; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.site-footer address { margin-bottom: 6px; font-style: normal; }
.footer-project { max-width: 280px; }
.footer-map { overflow: hidden; border: 1px solid rgba(230, 200, 95, 0.3); border-radius: var(--radius); }
.footer-map iframe { display: block; width: 100%; height: 230px; border: 0; }
.map-brand-preview { display: flex; align-items: center; gap: 22px; padding: 18px 22px; border: 1px solid rgba(230, 200, 95, 0.3); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: #f8f9fb; color: var(--ink); }
.map-brand-preview > img { width: min(48%, 250px); height: auto; }
.map-brand-preview .footer-heading { display: block; margin-bottom: 5px; color: #153b58; }
.site-footer .btn-outline-gold { border-color: #e6c85f; color: #ffe99c; }
.site-footer .btn-outline-gold:hover { background: #e6c85f; color: var(--ink); }
.footer-copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 17px; font-size: 0.72rem; }

.call-floating { position: fixed; z-index: 1050; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 19px; border: 1px solid #9c4c43; border-radius: 40px; background: var(--burgundy); color: white; box-shadow: 0 8px 28px rgba(65, 31, 33, 0.27); font-size: 0.84rem; font-weight: 600; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.call-floating:hover { background: var(--terracotta); color: white; transform: translateY(-2px); }
.call-floating > span:first-child { font-size: 1.1rem; }

.cookie-banner { position: fixed; z-index: 1080; right: 0; bottom: 0; left: 0; padding: 18px 0; border: 0; border-top: 1px solid rgba(212, 175, 55, 0.45); border-radius: 0; background: #292720; color: #fffdf8; box-shadow: 0 -10px 30px rgba(43, 43, 43, 0.16); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-inner p { color: rgba(255, 253, 248, 0.72); font-size: 0.8rem; }
.cookie-banner[hidden] { display: none !important; }
.btn-cookie-accept, .btn-cookie-reject { padding: 8px 13px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; }
.btn-cookie-accept { background: var(--gold); color: var(--ink); }
.btn-cookie-accept:hover { background: #e3c557; }
.btn-cookie-reject { border: 1px solid rgba(255, 255, 255, 0.45); color: white; }
.btn-cookie-reject:hover { border-color: white; background: rgba(255, 255, 255, 0.1); color: white; }
.cookie-open .call-floating { bottom: 112px; }
.site-toast { border: 1px solid var(--gold); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

@media (max-width: 991.98px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-decoration { right: 7%; opacity: 0.7; }
}

@media (max-width: 575.98px) {
  .site-navbar { min-height: 68px; }
  .navbar-brand { font-size: 0.97rem; }
  .brand-logo { width: clamp(175px, 62vw, 230px); }
  .brand-mark { width: 36px; height: 36px; }
  .music-label { display: none; }
  .btn-music { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .hero-section { min-height: 590px; }
  .hero-content { padding-top: 65px; padding-bottom: 65px; }
  .hero-decoration { right: 7%; top: 76%; font-size: 2rem; opacity: 0.48; }
  .hero-caption { margin-top: 54px; }
  .section-space { padding: 72px 0; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .piatto-card { padding: 23px 20px 19px; }
  .piatto-card > p { min-height: 0; }
  .order-card, .form-panel { padding: 22px; }
  .cookie-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .call-floating { right: 12px; bottom: 12px; padding: 12px 15px; font-size: 0.76rem; }
  .cookie-open .call-floating { bottom: 145px; }
  .footer-map iframe { height: 190px; }
  .map-brand-preview { align-items: flex-start; flex-direction: column; gap: 10px; }
  .map-brand-preview > img { width: min(100%, 250px); }
  .invoice-paper { padding: 18px 12px; }
  .invoice-paper-head { align-items: flex-start; flex-direction: column; }
  .invoice-paper-head img { width: min(100%, 260px); }
  .invoice-table { font-size: 0.68rem; }
  .invoice-table th, .invoice-table td { padding: 5px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
