/*
Theme Name: Pizza Revilo Modern
Description: Mobile-first child theme for Lieferdienste Marchfeld. Preserves the Workality Lite Works content model while modernising navigation and restaurant cards.
Author: Revilo / OpenClaw
Template: workality-lite-master
Version: 1.1.54
Text Domain: pizza-revilo-modern
*/

:root {
  --pizza-red: #008fd5;
  --pizza-red-dark: #0066b3;
  --pizza-cream: #f7f3ed;
  --pizza-paper: #ffffff;
  --pizza-ink: #231f20;
  --pizza-muted: #6f6864;
  --pizza-line: #e7ded5;
  --pizza-green: #287a4b;
  --pizza-shadow: 0 12px 34px rgba(57, 42, 31, 0.11);
  --pizza-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--pizza-cream);
  color: var(--pizza-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.header-right > .nav-div {
  display: none !important;
}

.pizza-subtle {
  color: var(--pizza-muted);
  font-weight: 600;
}

a {
  color: var(--pizza-red-dark);
}

a:hover,
a:focus-visible {
  color: var(--pizza-red);
}

.single-works .pizza-external-note {
  max-width: 760px;
  margin: 14px 0 0;
  border-left: 3px solid #9fd5ef;
  border-radius: 8px;
  background: #eef8fd;
  color: #526773;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}

.pizza-report-issue {
  margin: 30px 0 6px;
  padding: 20px 22px;
  border: 1px dashed #78bfe4;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff9fe, #fffaf2);
}

.pizza-report-issue h3 {
  margin: 0 0 6px;
  color: var(--pizza-ink);
  font-size: 19px;
  line-height: 1.3;
}

.pizza-report-issue p {
  margin: 0 0 14px !important;
  color: var(--pizza-muted);
  font-size: 14px !important;
}

.pizza-report-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #b7dfc9;
  border-radius: 12px;
  background: #eef9f2;
  color: var(--pizza-green) !important;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none !important;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pizza-report-button:hover,
.pizza-report-button:focus-visible {
  transform: translateY(-1px);
  background: #e1f5e8;
  box-shadow: 0 6px 16px rgba(40, 122, 75, 0.13);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 143, 213, 0.32);
  outline-offset: 3px;
}

.container {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
}

.container .sixteen.columns {
  box-sizing: border-box;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.topmargin {
  margin-top: 20px;
  padding: 18px 22px 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--pizza-line);
  border-radius: var(--pizza-radius);
  box-shadow: 0 8px 26px rgba(57, 42, 31, 0.07);
}

.topmargin img {
  max-width: 230px;
  height: auto;
}

.main-nav a {
  border-radius: 999px;
  color: var(--pizza-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 12px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: #e7f5fc;
  color: var(--pizza-red-dark);
}

.nav-div input[type="text"] {
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--pizza-line);
  border-radius: 999px 0 0 999px;
  background: #fff;
  font-size: 15px;
  padding: 10px 15px;
}

.nav-div button {
  min-width: 46px;
  min-height: 44px;
  border-radius: 0 999px 999px 0;
  background: var(--pizza-red);
}

.headerbottom {
  border-color: transparent;
  margin-bottom: 0;
}

.pizza-intro {
  margin: 30px 0 18px;
  padding: 30px clamp(20px, 4vw, 48px);
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--pizza-red-dark), var(--pizza-red));
  border-radius: 24px;
  box-shadow: var(--pizza-shadow);
}

.pizza-intro h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  text-shadow: none;
}

.pizza-intro p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 19px);
}

.pizza-search {
  display: flex;
  max-width: 640px;
  margin-top: 22px;
}

.pizza-search input {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: var(--pizza-ink);
  font-size: 16px;
  padding: 12px 16px;
}

.pizza-search button {
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #231f20;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 0 20px;
  text-shadow: none;
}

.navibg.withall {
  box-sizing: border-box;
  display: none;
  align-items: center;
  width: 100%;
  margin: 0 0 24px;
  padding: 15px 18px;
  border: 1px solid var(--pizza-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(57, 42, 31, 0.06);
}

.navibg.withall .four.columns {
  width: auto;
  min-width: 190px;
  margin: 0 20px 0 0;
}

.navibg.withall .twelve.columns {
  width: auto;
  flex: 1;
  margin: 0;
}

.navibg.withall h3 {
  margin: 0;
  color: var(--pizza-ink);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.2;
  text-shadow: none;
}

.navibg.withall div.navigate,
.navibg.withall div.navigate .fullnav {
  margin: 0;
}

.navibg.withall div.navigate .fullnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.navibg.withall div.navigate a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid var(--pizza-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pizza-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 13px;
}

.navibg.withall div.navigate a:hover,
.navibg.withall div.navigate a.selected {
  border-color: var(--pizza-red);
  background: var(--pizza-red);
  color: #fff;
}

.pizza-cuisine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 24px;
  padding: 0 2px;
}

.pizza-cuisine-filters button {
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--pizza-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pizza-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  padding: 8px 13px;
}

.pizza-cuisine-filters button:hover,
.pizza-cuisine-filters button:focus-visible,
.pizza-cuisine-filters button.is-active {
  border-color: var(--pizza-red-dark);
  background: var(--pizza-red-dark);
  color: #fff;
}

.pizza-filter-empty {
  margin: -16px 0 34px;
  border: 1px solid #f0d49b;
  border-radius: 12px;
  background: #fff8e9;
  color: #74480f;
  font-size: 15px;
  font-weight: 750;
  padding: 13px 15px;
}

#post-list.row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0 0 40px;
}

#post-list.row::before,
#post-list.row::after {
  display: none;
  content: none;
}

#post-list .project-item {
  box-sizing: border-box;
  display: flex;
  float: none;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pizza-line);
  border-radius: var(--pizza-radius);
  background: var(--pizza-paper);
  box-shadow: 0 7px 22px rgba(57, 42, 31, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#post-list .project-item:hover {
  transform: translateY(-4px);
  border-color: #d8c9bb;
  box-shadow: var(--pizza-shadow);
}

#post-list .project-item .imgdiv {
  display: flex;
  min-height: 184px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--pizza-line);
  background: linear-gradient(150deg, #fff, #faf6f1);
}

#post-list .project-item .imgdiv a {
  display: flex;
  width: 100%;
  min-height: 184px;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

#post-list .project-item .imgdiv span {
  display: none;
}

/* The parent theme uses an empty span as its hover overlay. Do not let that
   legacy rule hide our accessible restaurant placeholder as well. */
#post-list .project-item .imgdiv span.pizza-generic-restaurant {
  display: grid;
  opacity: 1;
}

#post-list .project-item .imgdiv span.pizza-generic-restaurant > span {
  display: block;
  opacity: 1;
}

#post-list .project-item .imgdiv img {
  width: 100%;
  max-width: 340px;
  height: 150px;
  object-fit: contain;
  transition: transform 180ms ease;
}

#post-list .project-item .imgdiv img.pizza-card-logo {
  width: min(82%, 300px);
  max-height: 150px;
  object-fit: contain;
}

#post-list .project-item .imgdiv img.pizza-card-logo-full {
  width: min(90%, 340px);
  height: 150px;
  object-fit: contain;
}

/* Parent/theme responsive image rules can reset height to auto. Keep explicit
   logo-card images in a stable frame so tall logos do not stretch cards. */
#post-list .project-item .imgdiv img.pizza-card-logo-full,
#post-list .project-item .imgdiv img.pizza-card-logo {
  height: 150px !important;
  object-fit: contain !important;
}

.pizza-directory-section {
  grid-column: 1 / -1;
  margin: 18px 0 -4px;
  padding: 22px 24px;
  border: 1px solid #c9e6f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff9fe, #fff);
}

.pizza-directory-section h2 {
  margin: 0 0 4px;
  color: var(--pizza-red-dark);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

.pizza-directory-section p {
  margin: 0;
  color: var(--pizza-muted);
  font-size: 15px;
}

#post-list .project-item:hover .imgdiv img {
  transform: scale(1.025);
}

#post-list .project-item .thumb_large,
#post-list .project-item .thumb_large.thumbwithbg {
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 20px;
  background: #fff;
}

#post-list .project-item .thumb_large h5 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--pizza-ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

#post-list .project-item .thumb_large h5 a {
  color: inherit;
  text-decoration: none;
}

#post-list .project-item .thumb_large p {
  margin: 0 0 18px;
  color: var(--pizza-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pizza-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.pizza-card-actions a {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.pizza-menu {
  border: 1px solid var(--pizza-red);
  background: var(--pizza-red);
  color: #fff;
}

.pizza-menu:hover,
.pizza-menu:focus-visible {
  background: var(--pizza-red-dark);
  color: #fff;
}

.pizza-call {
  border: 1px solid #cfe2d7;
  background: #edf8f1;
  color: var(--pizza-green);
}

.pizza-call:hover,
.pizza-call:focus-visible {
  border-color: var(--pizza-green);
  background: var(--pizza-green);
  color: #fff;
}

.pizza-no-delivery {
  align-self: flex-start;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #fff0d8;
  color: #8a4d00;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  text-transform: uppercase;
}

#post-list .rowseperator {
  display: none;
}

select.responsiveselect {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid var(--pizza-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--pizza-ink);
  font-size: 16px;
  padding: 10px 42px 10px 14px;
}

hr.footer {
  border-color: var(--pizza-line);
}

/* Editorial pages: about, legal notes and curated regional recommendations. */
.page .defaultpage {
  box-sizing: border-box;
  margin: 24px auto 38px;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--pizza-line);
  border-radius: 22px;
  background: var(--pizza-paper);
  box-shadow: var(--pizza-shadow);
}

.page .defaultpage .row.fitvids {
  font-size: 17px;
  line-height: 1.7;
}

.page .defaultpage h2 {
  margin: 34px 0 10px;
  color: var(--pizza-ink);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
}

.page .defaultpage .pizza-about-hero {
  margin: calc(clamp(22px, 4vw, 48px) * -1) calc(clamp(22px, 4vw, 48px) * -1) 30px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, var(--pizza-red-dark), var(--pizza-red));
  color: #fff;
}

.page .defaultpage .pizza-about-hero h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.035em;
}

.page .defaultpage .pizza-about-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.page .defaultpage .pizza-about-hero .pizza-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pizza-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.pizza-place {
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--pizza-line);
  border-radius: 16px;
  background: #f8fbfd;
}

.pizza-place h2 {
  margin-top: 0 !important;
  font-size: 22px !important;
}

.pizza-primary-link {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  border-radius: 10px;
  background: var(--pizza-red);
  color: #fff !important;
  font-weight: 800;
  padding: 10px 15px;
  text-decoration: none;
}

.pizza-primary-link:hover,
.pizza-primary-link:focus-visible {
  background: var(--pizza-red-dark);
}

.pizza-updated {
  margin-top: 28px;
  color: var(--pizza-muted);
  font-size: 13px;
}

/* Restaurant detail pages: keep the existing indexed URLs and content, but
   turn the old portfolio presentation into a useful local landing page. */
.single-works #singlecontent > .navibg {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 20px 0 18px;
  padding: 13px 18px;
  border: 1px solid var(--pizza-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.single-works #singlecontent > .navibg h3,
.single-works #singlecontent > .navibg h3 a {
  margin: 0;
  color: var(--pizza-red-dark);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
}

.single-works .postwraps {
  box-sizing: border-box;
  margin: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--pizza-line);
  border-radius: 22px;
  background: var(--pizza-paper);
  box-shadow: var(--pizza-shadow);
}

.single-works .postwraps .titles {
  margin: 0;
  padding: 26px 8px 4px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.single-works .postwraps .titles a {
  color: var(--pizza-ink);
  text-decoration: none;
}

.single-works .postwraps hr {
  border-color: var(--pizza-line);
}

.single-works .pinfo {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 8px 18px;
  color: var(--pizza-muted);
}

.single-works .pinfo > .columns {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #faf7f3;
}

.single-works .pinfo strong {
  color: var(--pizza-ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-works .pinfo > .columns:nth-child(4) {
  align-self: start;
  background: #f5f9fc;
  color: #687985;
  font-size: 13px;
}

.single-works .pinfo > .columns:nth-child(4) strong {
  color: #60727e;
  font-size: 10px;
}

.single-works .pizza-single-actions {
  box-sizing: border-box;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: calc(100% - 16px);
  margin-right: 8px;
  margin-left: 8px;
  padding: 0 8px 22px;
}

.single-works .pizza-single-actions a,
.single-works a.pizza-pdf-link {
  display: inline-flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.single-works .pizza-single-actions .pizza-menu,
.single-works a.pizza-pdf-link {
  border: 1px solid var(--pizza-red);
  background: var(--pizza-red);
  color: #fff;
}

.single-works .pizza-single-actions .pizza-menu {
  min-height: 52px;
  padding: 13px 21px;
  box-shadow: 0 8px 22px rgba(0, 102, 179, 0.22);
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.single-works .pizza-single-actions .pizza-menu::before {
  content: "🍕";
  margin-right: 8px;
  font-size: 18px;
}

.single-works .pizza-single-actions .pizza-menu:hover,
.single-works .pizza-single-actions .pizza-menu:focus-visible {
  transform: translateY(-2px);
  background: var(--pizza-red-dark);
  box-shadow: 0 11px 26px rgba(0, 102, 179, 0.3);
}

.single-works .pizza-single-actions .pizza-call {
  border: 1px solid #cfe2d7;
  background: #edf8f1;
  color: var(--pizza-green);
}

.single-works .pizza-single-actions .pizza-route {
  border: 1px solid #c9deed;
  background: #eef7fc;
  color: var(--pizza-red-dark);
}

.pizza-hours-summary,
.pizza-hours-list {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pizza-hours-summary li,
.pizza-hours-list li {
  margin: 0;
  line-height: 1.4;
}

.single-works .pinfo .pizza-hours-summary {
  color: #4f5e68;
  font-size: 13px;
}

.single-works .pinfo .pizza-hours-summary strong {
  display: inline;
  color: var(--pizza-ink);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

#post-list .project-item .imgdiv a:has(.pizza-generic-restaurant) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef8fd 0%, #d9effa 100%);
}

.pizza-generic-restaurant {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  color: var(--pizza-red-dark);
  text-align: center;
}

.pizza-generic-restaurant svg {
  width: 62px;
  height: 62px;
  margin-bottom: 7px;
}

.pizza-generic-restaurant b {
  display: block;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pizza-service-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  box-sizing: border-box;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(20, 45, 58, .15);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
}

.pizza-service-badge--delivery {
  background: #eaf7ef;
  color: #16663a;
}

.pizza-service-badge--restaurant {
  background: #eef7fc;
  color: var(--pizza-red-dark);
}

.pizza-service-badge--catering {
  background: #fff4da;
  color: #74480f;
}

#post-list .project-item .imgdiv {
  position: relative;
}

#restaurants-gasthaeuser {
  scroll-margin-top: 16px;
}

.single-works .pizza-menu-freshness {
  box-sizing: border-box;
  clear: both;
  width: calc(100% - 16px);
  margin: 0 8px 18px;
  border-left: 4px solid #d89724;
  border-radius: 8px;
  background: #fff7e8;
  color: #6f4a0c;
  font-size: 14px;
  line-height: 1.45;
  padding: 11px 13px;
}

.single-works .fitvids,
.single-works .postcontent {
  box-sizing: border-box;
  font-size: 17px;
  line-height: 1.65;
}

/* The parent portfolio theme renders two obsolete empty share blocks. Hide
   them as a no-JS fallback; modern.js also removes them from the DOM. */
.single-works .sharing,
.single-works .sharingbottom,
.single-works .shr {
  display: none !important;
}

/* Give the useful editorial copy its own calm reading surface instead of the
   old 12/3 portfolio + share grid. */
.single-works .postwraps > .fifteensp.fitvids {
  box-sizing: border-box;
  float: none;
  width: 100%;
  margin: 0;
  padding: 2px 32px 26px;
}

.single-works .pizza-detail-content,
.single-works .postwraps > .fifteensp.fitvids > .twelve.columns.alpha {
  box-sizing: border-box;
  display: block;
  float: none;
  width: min(100%, 850px);
  min-height: 0;
  margin: 0;
  border: 1px solid #dcecf4;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f7fbfd 100%);
  box-shadow: 0 8px 24px rgba(27, 92, 126, 0.06);
  color: #31383d;
  padding: 22px 24px;
}

.single-works .pizza-detail-content > :first-child,
.single-works .postwraps > .fifteensp.fitvids > .twelve.columns.alpha > :first-child {
  margin-top: 0;
}

.single-works .pizza-detail-content > :last-child,
.single-works .postwraps > .fifteensp.fitvids > .twelve.columns.alpha > :last-child {
  margin-bottom: 0;
}

.single-works .pizza-detail-content p {
  max-width: 760px;
  margin: 0 0 16px;
}

.single-works .pizza-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0 !important;
}

.single-works .pizza-detail-content .pizza-primary-link {
  max-width: 100%;
  min-height: 48px;
  justify-content: center;
  line-height: 1.35;
  text-align: center;
}

.single-works .pizza-social-panel {
  box-sizing: border-box;
  width: min(100%, 850px);
  margin: 18px 32px 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 143, 213, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f6fbff 100%);
  box-shadow: 0 8px 22px rgba(27, 92, 126, 0.06);
}

.single-works .pizza-social-panel h3 {
  margin: 0 0 6px;
  color: var(--pizza-ink);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.single-works .pizza-social-panel p {
  margin: 0 0 13px;
  color: var(--pizza-muted);
  font-size: 14px;
  line-height: 1.55;
}

.single-works .pizza-social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-works .pizza-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #24313a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(27, 92, 126, 0.07);
}

.single-works .pizza-social-link:hover,
.single-works .pizza-social-link:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.single-works .pizza-social-link span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.single-works .pizza-social-link--facebook {
  border-color: rgba(24, 119, 242, 0.22);
  background: #eef5ff;
  color: #125fbb;
}

.single-works .pizza-social-link--facebook span {
  background: #1877f2;
  font-size: 18px;
}

.single-works .pizza-social-link--instagram {
  border-color: rgba(221, 42, 123, 0.22);
  background: #fff2f8;
  color: #9d1760;
}

.single-works .pizza-social-link--instagram span {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}

/* Keep the previous/next navigation, but remove the large empty footer area
   left behind by the retired share widget. */
.single-works .postwraps > .fifteensp:not(.pinfo):last-of-type {
  box-sizing: border-box;
  min-height: 38px;
  margin: 0;
  padding: 0 24px 18px;
}

.single-works .contentimages {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--pizza-line);
  border-radius: 14px;
  background: #fff;
}

.single-works .contentimages img {
  display: block;
  width: 100%;
  height: auto;
}

.footertext,
.bottom-sidebar {
  color: var(--pizza-muted);
}

footer > .sixteen.columns > .footertext,
footer > .sixteen.columns > .social,
footer > .sixteen.columns > hr.resshow {
  display: none;
}

.page-id-665 .defaultpage .one-third.column,
.page-id-668 .defaultpage .one-third.column {
  display: none;
}

.page-id-665 .defaultpage .two-thirds.column,
.page-id-668 .defaultpage .two-thirds.column {
  box-sizing: border-box;
  float: none;
  width: 100%;
  margin: 0;
}

.bottom-sidebar.widget_text {
  box-sizing: border-box;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(0, 143, 213, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
  box-shadow: 0 10px 26px rgba(0, 102, 179, 0.08);
}

.bottom-sidebar.widget_text h4 {
  margin: 0 0 10px;
  color: var(--pizza-red-dark);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.pizza-site-footer {
  display: grid;
  gap: 14px;
  color: var(--pizza-muted);
  font-size: 14px;
  line-height: 1.65;
}

.pizza-site-footer p {
  margin: 0;
}

.pizza-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pizza-site-footer__links a {
  color: var(--pizza-red-dark);
  font-weight: 700;
  text-decoration: none;
}

.pizza-site-footer__links a:hover,
.pizza-site-footer__links a:focus {
  color: var(--pizza-red);
  text-decoration: underline;
}

.pizza-site-footer__note {
  padding-top: 10px;
  border-top: 1px solid var(--pizza-line);
  color: var(--pizza-muted);
  font-size: 13px;
}

.pizza-site-footer__social {
  margin-top: 2px;
}

.pizza-site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(24, 119, 242, 0.22);
  border-radius: 999px;
  background: #eef5ff;
  color: #125fbb;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.pizza-site-footer__social a:hover,
.pizza-site-footer__social a:focus {
  background: #dcecff;
  color: #0d4f9d;
  text-decoration: none;
}

.pizza-site-footer__social span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

@media only screen and (max-width: 959px) {
  #post-list.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navibg.withall {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .navibg.withall .four.columns,
  .navibg.withall .twelve.columns {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .navibg.withall div.navigate .fullnav {
    justify-content: flex-start;
  }

  .single-works .pinfo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-works .pizza-social-panel {
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media only screen and (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .bottom-sidebar.widget_text {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
  }

  .pizza-site-footer__links {
    display: grid;
    gap: 8px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .page .defaultpage {
    margin-top: 14px;
    padding: 20px;
    border-radius: 16px;
  }

  .page .defaultpage .pizza-about-hero {
    margin: -20px -20px 24px;
    padding: 28px 20px;
    border-radius: 16px 16px 0 0;
  }

  .pizza-place-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .container .columns,
  .container .column,
  .container .sixteen.columns,
  .container .one-third.column {
    box-sizing: border-box;
    width: 100%;
  }

  .topmargin {
    margin-top: 12px;
    padding: 12px 14px 6px;
    border-radius: 14px;
  }

  .topmargin img {
    max-width: min(210px, 68vw);
  }

  a.navbarbutton {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pizza-red);
    color: #fff;
  }

  .pizza-intro {
    margin: 18px 0 14px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .pizza-intro h1 {
    font-size: 34px;
  }

  .pizza-search {
    margin-top: 18px;
  }

  .pizza-search button {
    padding: 0 14px;
  }

  .navibg.withall {
    position: sticky;
    z-index: 40;
    top: 8px;
    margin-bottom: 18px;
    padding: 13px;
    border-radius: 14px;
  }

  body.admin-bar .navibg.withall {
    top: 54px;
  }

  .navibg.withall .four.columns h3 {
    font-size: 17px;
  }

  .navibg.withall .fullnav {
    display: none !important;
  }

  .pizza-cuisine-filters {
    margin: -6px 0 16px;
    gap: 7px;
  }

  .pizza-cuisine-filters button {
    min-height: 36px;
    font-size: 12px;
    padding: 8px 11px;
  }

  #post-list.row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #post-list .project-item {
    border-radius: 16px;
  }

  #post-list .project-item:hover {
    transform: none;
  }

  #post-list .project-item .imgdiv,
  #post-list .project-item .imgdiv a {
    min-height: 154px;
  }

  #post-list .project-item .imgdiv img {
    height: 124px;
  }

  .pizza-directory-section {
    margin-top: 8px;
    padding: 18px;
  }

  #post-list .project-item .thumb_large,
  #post-list .project-item .thumb_large.thumbwithbg {
    padding: 18px;
  }

  #post-list .project-item .thumb_large h5 {
    font-size: 19px;
  }

  .pizza-card-actions {
    grid-template-columns: 1fr;
  }

  .pizza-card-actions a {
    min-height: 48px;
    font-size: 15px;
  }

  .single-works #singlecontent > .navibg {
    margin: 14px 0;
    padding: 12px 14px;
  }

  .single-works .postwraps {
    border-radius: 16px;
  }

  .single-works .postwraps .titles {
    padding: 22px 2px 2px;
    font-size: 29px;
  }

  .single-works .pinfo {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 2px 14px;
  }

  .single-works .pizza-single-actions {
    position: sticky;
    z-index: 35;
    bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 4px);
    margin: 0 2px 16px;
    padding: 9px;
    border: 1px solid var(--pizza-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(57, 42, 31, 0.16);
    backdrop-filter: blur(10px);
  }

  .single-works .pizza-single-actions a {
    min-width: 0;
    padding: 10px 8px;
  }

  .single-works .pizza-single-actions .pizza-menu {
    grid-column: 1 / -1;
    min-height: 54px;
    padding: 13px 12px;
  }

  .single-works .pizza-menu-freshness {
    width: calc(100% - 4px);
    margin-right: 2px;
    margin-left: 2px;
  }

  .single-works .pizza-social-panel {
    width: calc(100% - 4px);
    margin: 16px 2px 0;
    padding: 16px;
  }

  .single-works .pizza-social-actions,
  .single-works .pizza-social-link {
    width: 100%;
  }

  .single-works .fitvids,
  .single-works .postcontent {
    font-size: 16px;
  }

  .single-works .postwraps > .fifteensp.fitvids {
    padding: 2px 14px 18px;
  }

  .single-works .pizza-detail-content,
  .single-works .postwraps > .fifteensp.fitvids > .twelve.columns.alpha {
    width: 100%;
    border-radius: 13px;
    padding: 18px;
  }

  .single-works .pizza-detail-content .pizza-primary-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
