/* ===========================================================
   Osteria Lo Spietato — Fano
   =========================================================== */

:root{
  --cream: #f4ede1;
  --cream-2: #ece1cd;
  --ink: #221810;
  --ink-2: #150f0a;
  --terracotta: #a9713c;
  --terracotta-deep: #7c5326;
  --wine: #6f2c2c;
  --line: rgba(34,24,16,0.14);
  --line-on-dark: rgba(244,237,225,0.18);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--serif); font-weight: 500; margin: 0; }
p{ margin: 0; }

.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 600;
  margin: 0 0 14px;
}
.eyebrow--center{ text-align: center; }

.lede{
  font-size: 17px;
  line-height: 1.65;
  color: rgba(34,24,16,0.72);
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.22,.9,.3,1), background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn--solid{ background: var(--terracotta); color: var(--cream); }
.btn--solid:hover{ background: var(--terracotta-deep); transform: translateY(-2px); }
.btn--ghost{ background: transparent; color: var(--cream); border-color: var(--line-on-dark); }
.btn--ghost:hover{ border-color: var(--cream); transform: translateY(-2px); }
.btn--outline{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn--lg{ padding: 17px 30px; font-size: 15px; }

.link-arrow{
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--terracotta-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .3s ease;
}
.link-arrow:hover{ opacity: .65; }

/* ---------- topbar ---------- */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.topbar.is-scrolled{
  background: rgba(244,237,225,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 20px;
}
.topbar__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--cream);
  opacity: 0;
  transform: translateY(-6px);
  transition: color .4s ease, opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.topbar.is-scrolled .topbar__brand{ color: var(--ink); opacity: 1; transform: none; pointer-events: auto; }
.topbar__brand img{
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.topbar__nav{ display: flex; align-items: center; gap: 18px; }
.topbar__link{
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--cream);
  opacity: .85;
  transition: opacity .3s ease, color .3s ease;
}
.topbar__link:hover{ opacity: 1; }
.topbar.is-scrolled .topbar__link{ color: var(--ink); }

.topbar--page{
  background: rgba(244,237,225,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar--page .topbar__brand{ color: var(--ink); opacity: 1; transform: none; pointer-events: auto; }
.topbar--page .topbar__link{ color: var(--ink); }
.topbar__cta{
  background: var(--terracotta);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 2px;
  transition: background .3s ease, transform .3s ease;
}
.topbar__cta:hover{ background: var(--terracotta-deep); transform: translateY(-1px); }

/* ---------- menu page ---------- */
.menu-page-header{
  max-width: var(--container);
  margin: 0 auto;
  padding: 150px 22px 40px;
}
.menu-page-header h1{
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.menu-page-note{
  margin-top: 14px;
  font-size: 14px;
  color: rgba(34,24,16,0.6);
  max-width: 56ch;
}
.menu-categories{
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px 40px;
}
.menu-category{ margin-bottom: 54px; }
.menu-category__head{
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 6px;
}
.menu-category__head h2{ font-size: 24px; white-space: nowrap; }
.menu-category__line{ flex: 1; height: 1px; background: var(--line); }
.menu-category__note{
  font-size: 14px;
  color: rgba(34,24,16,0.55);
  margin-bottom: 18px;
  font-style: italic;
}
.menu-dish-list{ display: flex; flex-direction: column; }
.menu-dish{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.menu-dish__info h4{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--ink);
}
.menu-dish__info p{
  font-size: 13.5px;
  color: rgba(34,24,16,0.6);
  max-width: 44ch;
  line-height: 1.5;
}
.menu-dish__allergens{ font-style: italic; opacity: .8; }
.menu-dish__price{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--terracotta-deep);
  white-space: nowrap;
}
.menu-review-links{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px 70px;
  font-size: 13.5px;
  color: rgba(34,24,16,0.6);
  text-align: center;
}
.menu-review-links a{ color: var(--terracotta-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink-2);
}
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  will-change: transform;
}
.hero__scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,10,7,0.92) 0%, rgba(14,10,7,0.55) 42%, rgba(14,10,7,0.28) 65%, rgba(14,10,7,0.35) 100%);
  z-index: 1;
}
.hero__content{
  position: relative;
  z-index: 2;
  padding: 0 22px 64px;
  color: var(--cream);
}
.hero__logo{
  width: 78px; height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px var(--line-on-dark);
  opacity: 0;
  animation: fadeUp .9s ease .1s forwards;
}
.hero__eyebrow{
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(244,237,225,0.7);
  margin: 0 0 16px;
  opacity: 0;
  animation: fadeUp .9s ease .25s forwards;
}
.hero__title{
  font-size: clamp(38px, 9.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  max-width: 12ch;
  opacity: 0;
  animation: fadeUp .9s ease .4s forwards;
}
.hero__lede{
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(244,237,225,0.82);
  max-width: 40ch;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeUp .9s ease .55s forwards;
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp .9s ease .7s forwards;
}
.hero__scroll{
  position: absolute;
  bottom: 22px; right: 22px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244,237,225,0.55);
  writing-mode: vertical-rl;
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- bands (text + media) ---------- */
.band{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 22px;
  gap: 30px;
}
.band__text{ order: 1; }
.band__media{ order: 2; overflow: hidden; border-radius: 2px; }
.band__media img{
  width: 100%; height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.band__media:hover img{ transform: scale(1.045); }
.band h2{
  font-size: clamp(28px, 5.5vw, 40px);
  line-height: 1.12;
  margin-bottom: 18px;
}

/* ---------- photo strips ---------- */
.strip{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px 10px;
}
.strip--three{ grid-template-columns: repeat(3, 1fr); }
.strip__item{ position: relative; margin: 0; overflow: hidden; border-radius: 2px; }
.strip__item img{
  width: 100%; height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.strip--three .strip__item img{ aspect-ratio: 3/4; }
.strip__item:hover img{ transform: scale(1.06); }
.strip__item figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(14,10,7,0.75), transparent);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ---------- menu section ---------- */
.menu-section{
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 22px 70px;
  text-align: center;
}
.menu-section__title{
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 44px;
}
.menu-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  text-align: left;
}
.menu-card{ margin: 0; }
.menu-card__img{ overflow: hidden; border-radius: 2px; margin-bottom: 14px; }
.menu-card__img img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.menu-card:hover .menu-card__img img{ transform: scale(1.06); }
.menu-card figcaption{
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.menu-section__note{
  margin-top: 48px;
  font-size: 14.5px;
  color: rgba(34,24,16,0.6);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- reviews ---------- */
.reviews{
  background: var(--ink-2);
  color: var(--cream);
  padding: 88px 22px;
}
.reviews .eyebrow{ color: rgba(244,237,225,0.55); }
.reviews__score{
  text-align: center;
  margin-bottom: 52px;
}
.reviews__number{
  font-family: var(--serif);
  font-size: 56px;
  display: block;
  line-height: 1;
}
.reviews__stars{
  color: var(--terracotta);
  font-size: 18px;
  letter-spacing: 3px;
  margin: 10px 0 8px;
}
.reviews__count{
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(244,237,225,0.6);
  text-transform: uppercase;
}
.reviews__grid{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.review-card{
  margin: 0;
  padding: 28px 24px;
  border: 1px solid var(--line-on-dark);
  border-radius: 2px;
}
.review-card p{
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.review-card cite{
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: rgba(244,237,225,0.55);
}

/* ---------- find / map ---------- */
.find{
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.find h2{ font-size: clamp(28px, 5.5vw, 38px); margin-bottom: 18px; line-height: 1.12; }
.find__address{ font-size: 16px; line-height: 1.6; color: rgba(34,24,16,0.75); }
.find__map{ overflow: hidden; border-radius: 2px; }
.find__map iframe{ width: 100%; height: 320px; border: 0; filter: grayscale(0.25) contrast(1.05); }

/* ---------- booking cta ---------- */
.booking{
  text-align: center;
  padding: 90px 22px 100px;
  background: var(--cream-2);
}
.booking__title{
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.1;
  margin-bottom: 34px;
}
.booking__actions{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink-2);
  color: rgba(244,237,225,0.75);
  padding: 40px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.site-footer__brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.site-footer__brand img{
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.site-footer__brand p{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244,237,225,0.55);
}
.site-footer__universe{
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(244,237,225,0.45);
  border-top: 1px solid rgba(244,237,225,0.12);
  padding-top: 18px;
  width: 100%;
  transition: color .3s ease;
}
.site-footer__universe:hover{ color: rgba(244,237,225,0.85); }

/* ===========================================================
   Tablet / desktop
   =========================================================== */
@media (min-width: 720px){
  .band{
    grid-template-columns: 1fr 1fr;
    padding: 110px 32px;
    gap: 60px;
  }
  .band--ambiente .band__text{ order: 2; }
  .band--ambiente .band__media{ order: 1; }
  .band__media--right{ order: 2; }
  .band--ambiente .band__text{ padding-left: 20px; }

  .strip{ grid-template-columns: 2fr 1fr; padding: 0 32px 16px; }
  .strip__item--wide{ grid-column: span 1; }

  .menu-grid{ grid-template-columns: repeat(3, 1fr); }

  .reviews__grid{ grid-template-columns: repeat(3, 1fr); }

  .find{ grid-template-columns: 1fr 1.2fr; align-items: center; }
  .find__map iframe{ height: 380px; }

  .booking__actions{ flex-direction: row; }

  .site-footer{ flex-direction: row; justify-content: space-between; text-align: left; padding: 46px 48px 28px; }
  .site-footer__brand{ flex-direction: row; align-items: center; text-align: left; }
  .site-footer__universe{ width: auto; border-top: 0; padding-top: 0; }
}

@media (min-width: 1040px){
  .hero__content{ padding: 0 64px 90px; }
  .menu-section, .reviews, .find, .booking, .band, .strip{ padding-left: 64px; padding-right: 64px; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; opacity: 1; transform: none; }
  .hero__logo,.hero__eyebrow,.hero__title,.hero__lede,.hero__actions{ animation: none; opacity: 1; }
  html{ scroll-behavior: auto; }
}
