/* =========================================================
   OSTERIA OGGI
   Pasta atelier / convivial table editorial identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --olive: #24372f;
  --olive-deep: #18271f;
  --limestone: #f4efe4;
  --charcoal: #1b1d1a;
  --tomato: #a84d39;
  --tomato-dark: #8d3e2d;
  --brass: #c8a66a;
  --sage: #cbd4c8;
  --warm-white: #fffdf8;
  --wine: #643831;
  --muted: #726d64;
  --line: rgba(27,29,26,0.14);
  --light-line: rgba(255,255,255,0.18);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --shell: min(1220px, calc(100% - 64px));
  --section-space: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--limestone);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--tomato);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,239,228,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.92;
  text-decoration: none;
}

.brand-main {
  color: var(--olive);
  font: 700 1.2rem/1 var(--serif);
  letter-spacing: -0.025em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--tomato);
  font-size: 0.51rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.desktop-nav a {
  position: relative;
  color: #5e615b;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--tomato);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.mobile-nav {
  display: none;
}

/* Typography + controls */

.eyebrow {
  margin: 0 0 16px;
  color: var(--tomato);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #edb29d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  font-size: clamp(4rem, 7vw, 7.1rem);
}

h1 span {
  color: var(--tomato);
  font-style: italic;
}

h2 {
  font-size: clamp(2.45rem, 4.5vw, 4.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--tomato);
  color: white;
}

.button-primary:hover {
  background: var(--tomato-dark);
}

.button-secondary {
  background: var(--olive);
  color: white;
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: white;
}

/* Hero */

.hero {
  padding: 54px 0 72px;
  background:
    linear-gradient(rgba(36,55,47,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,55,47,0.035) 1px, transparent 1px),
    var(--limestone);
  background-size: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(54px, 7vw, 94px);
  align-items: center;
}

.hero-copy {
  padding: 42px 0;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.hero-notes span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-atelier {
  position: relative;
  min-height: 625px;
  padding-left: 88px;
}

.hero-pasta {
  position: absolute;
  inset: 0 0 80px 88px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 94% 93%, 8% 100%);
}

.hero-table {
  position: absolute;
  left: 0;
  top: 86px;
  width: 248px;
  height: 296px;
  margin: 0;
  border: 10px solid var(--limestone);
}

.oggi-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, 72%);
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--olive);
  color: white;
}

.oggi-note > span {
  color: #ebb099;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.oggi-note small {
  color: rgba(255,255,255,0.64);
  line-height: 1.45;
}

/* Story */

.story {
  background: var(--warm-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: 58px;
}

.section-marker span {
  display: block;
  color: var(--tomato);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-marker small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h2 {
  max-width: 920px;
}

.story-columns {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 52px;
  margin-left: auto;
}

.story-columns p {
  color: var(--muted);
}

.story-columns .lead {
  color: var(--charcoal);
  font: 400 1.18rem/1.6 var(--serif);
}

/* Menu */

.menu {
  background: var(--limestone);
}

.menu-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: start;
}

.menu-intro {
  position: sticky;
  top: 116px;
}

.menu-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.menu-map {
  border-top: 1px solid var(--line);
}

.menu-map article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.menu-map article > span {
  color: var(--tomato);
  font-size: 0.64rem;
  font-weight: 900;
}

.menu-label {
  margin-bottom: 5px;
  color: var(--olive);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.menu-map h3 {
  margin-bottom: 8px;
  font: 700 clamp(1.8rem, 3vw, 2.7rem)/1.03 var(--serif);
}

.menu-map p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Pasta atelier */

.pasta {
  background: white;
}

.pasta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.pasta-visual {
  position: relative;
  min-height: 610px;
}

.pasta-main {
  position: absolute;
  inset: 0 70px 70px 0;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 8%, 91% 100%, 0 92%);
}

.pasta-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 240px;
  height: 230px;
  margin: 0;
  border: 8px solid white;
}

.pasta-copy > p:not(.eyebrow) {
  color: var(--muted);
}

/* Dining / bar */

.dining-bar {
  background: var(--sage);
}

.dining-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 40px;
}

.dining-heading > p {
  color: #5e675f;
}

.seat-ribbons {
  display: grid;
  gap: 12px;
}

.seat-item {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  background: var(--warm-white);
  overflow: hidden;
}

.seat-item figure {
  min-height: 0;
  margin: 0;
}

.seat-item > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.seat-item > div > span {
  margin-bottom: auto;
  color: var(--tomato);
  font-size: 0.64rem;
  font-weight: 900;
}

.seat-item h3 {
  margin-top: 28px;
  font: 700 2rem/1.05 var(--serif);
}

.seat-item p {
  margin: 0;
  color: var(--muted);
}

.seat-reverse {
  grid-template-columns: 0.86fr 1.14fr;
}

.seat-reverse figure {
  order: 2;
}

.bar-note {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr auto;
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: var(--olive);
  color: white;
}

.bar-note .eyebrow {
  color: #ebb099;
}

.bar-note h3 {
  margin: 0;
  font: 700 1.6rem/1.05 var(--serif);
}

.drink-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--light-line);
  border-left: 1px solid var(--light-line);
}

.drink-grid span {
  padding: 12px;
  border-right: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
  color: rgba(255,255,255,0.78);
  font-size: 0.71rem;
  font-weight: 800;
}

.responsible-note {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.69rem;
}

/* Philosophy */

.philosophy {
  background: var(--warm-white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.philosophy-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principles article {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--tomato);
  font-size: 0.64rem;
  font-weight: 900;
}

.principles h3 {
  margin: 42px 0 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Private dining + gift */

.private-events {
  background: var(--limestone);
}

.private-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.events-copy {
  padding: 34px;
  border: 1px solid var(--line);
  background: white;
}

.events-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.event-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.event-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.event-list article > span {
  color: var(--tomato);
  font-size: 0.64rem;
  font-weight: 900;
}

.event-list h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
}

.event-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.gift-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(100,56,49,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,56,49,0.05) 1px, transparent 1px),
    var(--brass);
  background-size: 42px 42px;
}

.gift-mark {
  margin-bottom: auto;
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gift-panel h3 {
  font: 700 2.2rem/1.05 var(--serif);
}

.gift-panel p:not(.eyebrow) {
  color: #594a32;
}

/* Reservation */

.reservation {
  padding: 70px 0;
  background: var(--wine);
  color: white;
}

.reservation-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.reservation .eyebrow {
  color: #edb29d;
}

.reservation h2 {
  color: white;
}

.reservation p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.68);
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Visit + contact */

.visit-contact {
  background: var(--warm-white);
}

.visit-contact-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 18px;
  align-items: stretch;
}

.visit-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(36,55,47,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,55,47,0.05) 1px, transparent 1px),
    var(--sage);
  background-size: 40px 40px;
}

.visit-panel address {
  display: grid;
  gap: 5px;
  margin: 26px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--tomato);
  font-style: normal;
}

.visit-panel address span {
  color: #586159;
}

.visit-panel > p:not(.eyebrow) {
  color: #586159;
}

.contact-card {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(27,29,26,0.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(27,29,26,0.22);
  border-radius: 0;
  background: white;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 126px;
  padding: 10px 11px;
  resize: vertical;
}

/* Final CTA */

.final-cta {
  padding: 64px 0;
  background: var(--charcoal);
  color: white;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.final-cta h2 {
  color: white;
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.64);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  background: #111512;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-main {
  color: white;
}

.footer-brand .brand-sub {
  color: #edb29d;
}

.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a,
.footer-bottom a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong {
  margin-bottom: 7px;
}

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hidden-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 42px, 1020px);
  }

  .hero-grid {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .bar-note {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .responsible-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-grid,
  .story-grid,
  .menu-grid,
  .pasta-grid,
  .philosophy-grid,
  .private-grid,
  .visit-contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-atelier {
    min-height: 560px;
  }

  .menu-intro {
    position: static;
  }

  .pasta-visual {
    min-height: 520px;
  }

  .dining-heading {
    grid-template-columns: 1fr;
  }

  .seat-item,
  .seat-reverse {
    grid-template-columns: 1fr 1fr;
  }

  .seat-reverse figure {
    order: 0;
  }

  .principles {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .reservation-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 58px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 72px;
  }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-atelier {
    min-height: 485px;
    padding-left: 0;
  }

  .hero-pasta {
    inset: 0 0 96px 0;
    clip-path: none;
  }

  .hero-table {
    left: auto;
    right: 10px;
    top: 20px;
    width: 165px;
    height: 205px;
  }

  .oggi-note {
    left: 0;
    right: auto;
    width: min(330px, 88%);
  }

  .story-grid {
    gap: 20px;
  }

  .story-columns {
    grid-template-columns: 1fr;
  }

  .pasta-visual {
    min-height: 460px;
  }

  .pasta-main {
    inset: 0 0 100px 0;
    clip-path: none;
  }

  .pasta-detail {
    width: 180px;
    height: 170px;
  }

  .seat-item,
  .seat-reverse {
    grid-template-columns: 1fr;
  }

  .seat-item figure {
    height: 300px;
  }

  .seat-item > div {
    min-height: 250px;
  }

  .bar-note {
    grid-template-columns: 1fr;
  }

  .drink-grid,
  .principles,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .reservation-actions,
  .final-actions {
    align-items: stretch;
  }

  .reservation-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-address {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand-main {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.46rem;
  }

  .hero-atelier {
    min-height: 445px;
  }

  .hero-table {
    width: 138px;
    height: 172px;
  }

  .oggi-note {
    width: 92%;
    padding: 16px;
  }

  .events-copy,
  .gift-panel,
  .visit-panel,
  .contact-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
