:root {
  --bg: #f3efe3;
  --bg-2: #e9e3d2;
  --panel: #ffffff;
  --ink: #1a1814;
  --ink-soft: rgba(26, 24, 20, .68);
  --ink-faint: rgba(26, 24, 20, .44);
  --accent: #7a2331;
  --ink-deep: #141210;
  --accent-soft: rgba(122, 35, 49, .08);
  --line: rgba(26, 24, 20, .12);
  --display: 'Instrument Serif', serif;
  --body: 'Inter', sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body);
  font-weight: 400; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  animation: page-fade-in 420ms ease both;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
body.page-leaving { opacity: 0; transition: opacity 200ms ease; }

.eyebrow {
  display: inline-block; margin: 0 0 1.1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}

.section { position: relative; padding: 6rem var(--pad); }
.section--ink { background: var(--ink-deep); color: #fdfbf6; }
.section--ink .eyebrow { color: #d9a5ac; }
.section--ink .ink-soft, .section--ink p { color: rgba(253, 251, 246, .72); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 3rem; max-width: 38rem; margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sec-head p { margin-top: 1rem; font-size: .96rem; color: var(--ink-soft); }
.section--ink .sec-head p { color: rgba(253, 251, 246, .72); }

@media (max-width: 560px) { .section { padding: 3.4rem var(--pad); } }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad); background: rgba(247, 243, 234, .88);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(10px); }
.site-header__brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.site-header__brand img { height: 2.2rem; width: 2.2rem; border-radius: 50%; object-fit: cover; }
.site-header__nav { display: flex; align-items: center; gap: 2rem; font-size: .86rem; }
.site-header__nav a:not(.btn) { color: var(--ink-soft); transition: color 160ms ease; position: relative; }
.site-header__nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right 220ms ease; }
.site-header__nav a:not(.btn):hover { color: var(--ink); }
.site-header__nav a:not(.btn):hover::after { right: 0; }
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .site-header__nav { position: fixed; inset: 4.2rem 0 0; flex-direction: column; justify-content: center; gap: 2.2rem; background: var(--bg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
  body.nav-open .site-header__nav { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-header__nav a:not(.btn) { font-size: 1.1rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
  .menu-toggle__icon { position: relative; width: 22px; height: 14px; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform 200ms ease; }
  .menu-toggle__icon::before { top: 0; } .menu-toggle__icon::after { bottom: 0; }
  body.nav-open .menu-toggle__icon::before { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .menu-toggle__icon::after { transform: translateY(-6.5px) rotate(-45deg); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.7rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; border-radius: 99px; border: 1px solid transparent; position: relative; overflow: hidden; transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 550ms ease; }
.btn:hover::before { transform: translateX(120%); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(122, 35, 49, .28); }
.btn-accent:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(122, 35, 49, .4); }
.btn-outline { border-color: rgba(22, 41, 43, .25); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-outline-light { border: 1px solid rgba(253,251,246,.3); color: #fdfbf6; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-3px); }
.btn-sm { padding: .65rem 1.3rem; font-size: .76rem; }
.btn:active { transform: translateY(0) scale(.97); }

/* hero */
.hero { position: relative; padding: 5.5rem var(--pad) 6rem; text-align: center; overflow: hidden; background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%); }
.hero-inner { max-width: 42rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.hero-lead { margin-top: 1.2rem; font-size: 1rem; color: var(--ink-soft); }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.hero-rating { margin-top: 1.6rem; font-size: .84rem; color: var(--ink-faint); }
.hero-rating i { color: #c99a3f; }
.hero-entrance { opacity: 0; animation: hero-fade-in 800ms cubic-bezier(.16,1,.3,1) both; }

/* hero fotografico */
.hero--photo { padding: 0; min-height: 88vh; display: flex; align-items: flex-end; background: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,18,16,.85) 8%, rgba(20,18,16,.3) 55%, rgba(20,18,16,.15) 100%); z-index: 1; }
.hero--photo .hero-inner { position: relative; z-index: 2; padding: 3rem var(--pad) 3.5rem; max-width: 50rem; }
.hero--photo .eyebrow { color: #d9a5ac; }
.hero--photo h1 { color: #fff; }
.hero--photo .hero-btns { justify-content: flex-start; }
.hero--photo .hero-rating { color: rgba(255,255,255,.78); }
@media (max-width: 720px) { .hero--photo { min-height: 92vh; } .hero--photo .hero-btns { justify-content: center; } .hero--photo .hero-inner { text-align: center; } }
@keyframes hero-fade-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* split (Il locale) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split-photo { border-radius: 16px; overflow: hidden; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.15); }
.split-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 600ms ease; }
.split-photo:hover img { transform: scale(1.06); }
.split-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 1rem; }
.split-copy p { color: var(--ink-soft); font-size: .96rem; }
.tick-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.3rem; }
.tick-list li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--ink-soft); }
.tick-list li::before { content: '\2713'; color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* dish grid */
.dish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.dish-photo { margin: 0; border-radius: 14px; overflow: hidden; position: relative; transition: transform 280ms ease; }
.dish-photo:hover { transform: translateY(-6px); }
.dish-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform 600ms ease; }
.dish-photo:hover img { transform: scale(1.08); }
.dish-photo figcaption { position: absolute; left: .9rem; right: .9rem; bottom: .8rem; font-size: .78rem; color: #fff; line-height: 1.35; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
@media (max-width: 860px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }

.lunch-deal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 2rem 2.2rem; }
.lunch-deal h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: .4rem 0 .6rem; color: #fdfbf6; }
.lunch-deal p { color: rgba(253,251,246,.7); font-size: .92rem; max-width: 32rem; }
.cucina-note { text-align: center; margin: 1.6rem 0 0; font-size: .82rem; color: rgba(253,251,246,.55); }

/* wide photo */
.wide-photo { border-radius: 18px; overflow: hidden; position: relative; }
.wide-photo img { width: 100%; max-height: 30rem; object-fit: cover; display: block; transition: transform 600ms ease; }
.wide-photo:hover img { transform: scale(1.05); }
.wide-photo figcaption { position: absolute; left: 1.6rem; bottom: 1.3rem; font-family: var(--display); font-style: italic; color: #fff; font-size: 1.05rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 1.8rem 1.6rem; margin: 0; transition: transform 280ms ease, border-color 280ms ease; }
.review-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.review-card__stars { color: #c99a3f; font-size: .8rem; margin-bottom: .9rem; letter-spacing: .15em; }
.review-card p { font-size: .88rem; color: rgba(253,251,246,.82); font-style: italic; margin: 0 0 1rem; }
.review-card cite { font-size: .78rem; color: #d9a5ac; font-style: normal; font-weight: 600; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* dove */
.dove-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.dove-addr { margin: .8rem 0 1.6rem; font-size: .96rem; color: var(--ink-soft); display: flex; align-items: center; gap: .6rem; }
.dove-addr i { color: var(--accent); }
.hours { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); }
.hours span:first-child { font-weight: 600; }
.hours span:last-child { color: var(--ink-soft); }
.map-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; filter: sepia(.15) saturate(.9); }
@media (max-width: 860px) { .dove-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding: 3.5rem var(--pad) 2rem; text-align: center; border-top: 1px solid var(--line); }
.site-footer .footer-logo { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; }
.site-footer__social { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1.2rem; font-size: .84rem; }
.site-footer__social a { color: var(--ink-soft); }
.site-footer__social a:hover { color: var(--accent); }
.site-footer .addr { font-size: .82rem; color: var(--ink-faint); }
.site-footer .credit { margin-top: 1.6rem; font-size: .72rem; color: var(--ink-faint); }
.site-footer .credit a { color: var(--accent); }

/* mobile book bar */
.mobile-book { display: none; }
@media (max-width: 780px) {
  .mobile-book { position: fixed; z-index: 190; right: .8rem; left: .8rem; bottom: max(.8rem, env(safe-area-inset-bottom)); display: flex; justify-content: center; padding: .95rem 1rem; color: #fff; background: var(--accent); font-size: .82rem; font-weight: 800; border-radius: 99px; box-shadow: 0 .5rem 2rem rgba(0,0,0,.25); animation: book-pulse 2.6s ease-in-out infinite; }
  .site-footer { padding-bottom: 6.5rem; }
  .hero-btns .btn { flex: 1 1 auto; justify-content: center; }
}
@keyframes book-pulse { 0%, 100% { box-shadow: 0 .5rem 2rem rgba(0,0,0,.25), 0 0 0 0 rgba(122,35,49,.45); } 50% { box-shadow: 0 .5rem 2rem rgba(0,0,0,.25), 0 0 0 8px rgba(122,35,49,0); } }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity 750ms cubic-bezier(.16,1,.3,1), transform 750ms cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-entrance { animation: none !important; opacity: 1 !important; transform: none !important; }
  body { animation: none !important; opacity: 1 !important; }
}
