/* ==========================================================================
   La Tana dell'Orso — piadineria artigianale, Bologna
   Direction: warm paper canvas + burgundy accent + sun-gold brand touches,
   lifted from the bear/sun/city signage. Display: Bricolage Grotesque.
   Radius system: pill buttons, 14px cards/images. Mobile-first (390px).
   ========================================================================== */

:root {
  --bg: #f4ecda;            /* warm paper-cream canvas (their menu board) */
  --surface: #efe3c9;       /* deeper paper for alternating sections */
  --text: #33231c;          /* warm brown-ink */
  --muted: #6b5647;         /* secondary warm taupe (AA on cream) */
  --line: #d9c9a6;          /* hairlines on paper */
  --accent: #9a2b23;        /* THE accent: sign burgundy/brick-red */
  --accent-deep: #7f2019;   /* pressed / hover */
  --accent-ink: #f7efdd;    /* text on accent */
  --gold: #e0a41f;          /* brand-only sun-gold (decorative, never interactive) */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 64ch;
  --page: 1120px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  /* faint warm paper tint, painted once, no repaint cost */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(224,164,31,0.05), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(154,43,35,0.045), transparent 46%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 800;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; letter-spacing: 0.01em; margin-bottom: 0.4rem; }

/* thin gold-to-burgundy brand bar at the very top of the page */
body::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--accent) 65%, var(--accent-deep));
}

/* -- top bar --------------------------------------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(1.1rem, 4vw, 2.2rem);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--accent);
  flex: none;
}
.nav { margin-left: auto; display: none; gap: 1.4rem; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.topbar-cta {
  color: var(--accent-ink); background: var(--accent);
  padding: 0.44rem 1.05rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.12s ease;
}
.topbar-cta:hover { background: var(--accent-deep); text-decoration: none; }
.topbar-cta:active { transform: scale(0.97); }
@media (min-width: 620px) {
  .nav { display: flex; }
  .brand { font-size: 1.22rem; }
}

/* -- buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; text-align: center;
  color: var(--accent); background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0.72rem 1.5rem; font-weight: 700; font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.btn:hover { background: rgba(154,43,35,0.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); }

/* -- hero (asymmetric split) ----------------------------------------------- */
.hero {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.1rem, 4vw, 2.2rem) clamp(2.4rem, 6vw, 3.6rem);
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.hero-kicker {
  color: var(--accent); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.7rem, 11vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.hero-sub {
  color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 34ch; margin-bottom: 1.9rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-media img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: 0 18px 40px -22px rgba(51,35,28,0.55);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 0.92fr 1.08fr; padding-top: clamp(3rem, 6vw, 4.5rem); }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* -- generic sections ------------------------------------------------------ */
.section {
  padding: clamp(2.8rem, 7vw, 4.6rem) clamp(1.1rem, 4vw, 2.2rem);
  max-width: var(--page); margin: 0 auto;
}
.section--alt {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--page); margin-left: auto; margin-right: auto; }

/* gold tick under section headings */
h2::after {
  content: ""; display: block;
  width: 46px; height: 3px; margin-top: 0.7rem;
  background: var(--gold); border-radius: 2px;
}

/* -- intro ----------------------------------------------------------------- */
.intro p { max-width: var(--measure); color: var(--text); }
.chips {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.chips li {
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  padding: 0.4rem 0.85rem; border-radius: 999px;
}

/* -- feature (image-led) --------------------------------------------------- */
.feature {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.1rem, 4vw, 2.2rem) clamp(2rem, 5vw, 3rem);
  display: grid; gap: clamp(1.3rem, 4vw, 2.6rem); align-items: center;
}
.feature-media img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(51,35,28,0.5);
}
.feature-copy p { color: var(--muted); max-width: 46ch; margin-top: 0.4rem; }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1.1fr 0.9fr; }
}

/* -- menu ------------------------------------------------------------------ */
.menu-head { margin-bottom: 1.8rem; }
.menu-lead { color: var(--muted); margin-top: 0.3rem; }
.menu-grid { display: grid; gap: clamp(1.8rem, 4vw, 2.8rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 720px) { .menu-grid { grid-template-columns: 1fr 1fr; } }

.menu-cat h3 {
  font-size: 1.35rem; color: var(--accent);
  padding-bottom: 0.5rem; margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--line);
}
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: 0.5rem 0; }
.menu-list li + li { border-top: 1px dotted var(--line); }
.item-head { display: flex; align-items: baseline; gap: 0.5rem; }
.dish { font-weight: 600; }
.dots { flex: 1 1 auto; min-width: 12px; border-bottom: 1px dotted var(--muted); opacity: 0.45; transform: translateY(-3px); }
.price { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin-top: 0.15rem; }
.cat-note { color: var(--muted); font-size: 0.88rem; font-style: italic; margin-top: 0.9rem; }
.menu-note {
  margin-top: 2rem; color: var(--muted); font-size: 0.92rem;
  border-top: 1px solid var(--line); padding-top: 1.1rem;
}

/* -- gallery (asymmetric 2-up) --------------------------------------------- */
.gallery2 { display: grid; gap: 0.8rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
.gallery2 figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery2 img { width: 100%; display: block; object-fit: cover; transition: transform 0.5s ease; }
.gallery2 figure:hover img { transform: scale(1.04); }
.g-wide img { aspect-ratio: 4 / 3; }        /* interno.jpg is landscape */
.g-tall img { aspect-ratio: 4 / 3; }        /* birra.jpg is portrait; landscape crop on mobile (desktop resets to auto below) */
@media (min-width: 720px) {
  .gallery2 { grid-template-columns: 1.55fr 1fr; align-items: stretch; }
  .gallery2 figure { height: 520px; }
  .gallery2 img { height: 100%; aspect-ratio: auto; }  /* parent has definite height */
}

/* -- quotes ---------------------------------------------------------------- */
.quotes { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
blockquote {
  margin: 0; padding: 1.5rem 1.6rem;
  background: var(--bg); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { font-size: 1.12rem; line-height: 1.5; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
blockquote cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* -- hours & contact ------------------------------------------------------- */
.info-grid { display: grid; gap: 2rem; margin-top: 1.4rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours td { padding: 0.5rem 0; border-bottom: 1px dotted var(--line); color: var(--muted); vertical-align: top; }
.hours td:first-child { color: var(--text); font-weight: 700; padding-right: 1.5rem; white-space: nowrap; }
.contact-lines { margin-bottom: 1.4rem; line-height: 1.9; }
.info-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* -- footer ---------------------------------------------------------------- */
.footer {
  padding: 2.6rem 1.25rem 3rem; text-align: center;
  color: var(--muted); font-size: 0.9rem;
  background: var(--surface); border-top: 1px solid var(--line);
}
.demo-note { margin-top: 0.5rem; opacity: 0.75; font-size: 0.82rem; }

/* -- subtle one-time entrance (respects reduced motion) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.09s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.23s; }
  .hero-media { animation: fade 0.8s ease 0.15s backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
