/* Piadineria Artigianale - Colleferro (RM)
   Palette read off the one photograph of the room: bare wine-crate pine, the warm string
   lights around it, candle flame on the tables, and the dark behind them. Ember is the accent
   and it stays a rule, a number or a button - never a wash behind running text, because the
   whole page is warm already and a second warm field would flatten it. */

:root {
  --ink: #221A14;
  --ember: #B4531F;
  --flame: #D9782F;
  --paper: #FAF4EA;
  --crust: #F1E6D5;
  --pine: #C9A574;
  --muted: #6B5A4B;
  --line: #E4D6C1;
  --max: 1064px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.012em;
}

p { margin: 0 0 1.15em; }

a { color: var(--ember); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .8rem 1.2rem;
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1rem;
}

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band { background: var(--crust); }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.6rem 0 1.4rem;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}
.wordmark span { color: var(--ember); font-style: italic; }
.wordmark small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .55rem;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .88rem;
}
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--ember); }

/* --- hero ---------------------------------------------------------------- */

.hero { padding-top: .5rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.5vw, 4rem);
  max-width: 16ch;
  margin-bottom: .35em;
}
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--muted);
  max-width: 48ch;
}

.rule {
  width: 58px;
  height: 3px;
  background: var(--ember);
  border: 0;
  margin: 0 0 1.6rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.actions-stack { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 3px;
  font-size: .96rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ember);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ember); color: #FFF8EF; }
.btn-primary:hover { background: #9A4419; border-color: #9A4419; }
.btn-ghost { background: transparent; color: var(--ember); }
.btn-ghost:hover { background: var(--crust); }

.hero-figure { margin: clamp(2.2rem, 5vw, 3.2rem) 0 0; }
.hero-figure img { width: 100%; border: 1px solid var(--line); }
.hero-figure figcaption {
  font-size: .84rem;
  color: var(--muted);
  margin-top: .7rem;
}

/* --- numbers ------------------------------------------------------------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.numbers div { background: var(--paper); padding: 1.8rem 1.5rem; }
.numbers b {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ember);
  margin-bottom: .4rem;
}
.numbers span { display: block; font-size: .92rem; color: var(--muted); }

/* --- two column ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr .95fr; }
}
.split h2 { font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.6rem); }

.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.facts li {
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  font-size: .95rem;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span:first-child { color: var(--muted); flex: 0 0 auto; }
.facts span:last-child { text-align: right; font-weight: 500; }

.side-figure { margin: 0; }
.side-figure img { width: 100%; border: 1px solid var(--line); }
.side-figure figcaption {
  font-size: .84rem;
  color: var(--muted);
  margin-top: .7rem;
}

/* --- the Google card ----------------------------------------------------- */

.card {
  background: var(--crust);
  border: 1px solid var(--line);
  padding: 1.8rem 1.7rem 1.6rem;
}
.card-k {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.card-score { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.4rem; }
.card-score b {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ember);
}
.card-score span { font-size: .92rem; color: var(--muted); }

.card-list { margin: 0 0 1.6rem; padding: 0; font-size: .95rem; }
.card-list dt {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.card-list dd { margin: .15rem 0 .7rem; font-weight: 500; }

/* --- in tavola ----------------------------------------------------------- */

#tavola h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 0; padding: 0; }
.chips li {
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}

.note { font-size: .88rem; color: var(--muted); margin-top: 1.4rem; }

/* --- hours --------------------------------------------------------------- */

.hours { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  font-size: .96rem;
}
.hours li:last-child { border-bottom: 1px solid var(--line); }
.hours .day { color: var(--muted); }

.callout {
  background: var(--crust);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  padding: 1.8rem 1.6rem 1.6rem;
}
.callout-k {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.callout p:last-of-type { margin-bottom: 1.4rem; }

/* --- contact ------------------------------------------------------------- */

.contact { background: var(--ink); color: #EDE1D2; }
.contact h2 { color: #FBF5EC; }
.contact .eyebrow { color: var(--pine); }
.contact a { color: var(--pine); }
.contact .note { color: #9C8974; }

.contact .btn-primary { background: var(--flame); border-color: var(--flame); color: #241A12; }
.contact .btn-primary:hover { background: #E58B44; border-color: #E58B44; }
.contact .btn-ghost { color: #EDE1D2; border-color: rgba(237, 225, 210, .45); }
.contact .btn-ghost:hover { background: rgba(237, 225, 210, .1); }
.contact a:focus-visible { outline-color: var(--flame); }

address { font-style: normal; font-size: 1.02rem; line-height: 1.75; }

/* --- footer -------------------------------------------------------------- */

footer {
  background: var(--ink);
  color: #9C8974;
  font-size: .84rem;
  padding: 0 0 3rem;
}
footer .wrap { border-top: 1px solid rgba(237, 225, 210, .18); padding-top: 2rem; }
footer p { margin: 0 0 .35em; }
footer a { color: #9C8974; }
footer a:focus-visible { outline-color: var(--flame); }
