/* ===== 404 - HERO (zdjęcie + "404 / Nie znaleziono strony") ===== */

.topPage404 {
  height: 70vh !important;
  min-height: 500px !important;
  max-height: 700px !important;
  margin-bottom: 0 !important; /* usuwamy 81px z .topSingleBkg, sekcję niżej stylujemy własnym paddingiem */
}

/* Mocniejszy, kierunkowy overlay zamiast płaskiego rgba(0,0,0,0.3) -
   ciemniej na środku (gdzie jest tekst), jaśniej na krawędziach */
.topPage404 .item-img:before {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.35) 100%
  ) !important;
}

.topPage404 .single-post-title {
  font-size: 96px !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.topPage404 .post-subtitle {
  letter-spacing: 0.08em !important;
  font-size: 15px !important;
}

/* ===== 404 - SEKCJA Z KOMUNIKATEM I PRZYCISKIEM (pod zdjęciem, nie na nim) ===== */

#wrap-content.blog-1col {
  background: #ffffff !important;
  padding: 80px 0 !important;
}

.error-404 {
  max-width: 560px !important;
  margin: 0 auto !important;
}

.error-404 p:first-of-type {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: #555555 !important;
  margin-bottom: 32px !important;
}

.error-404 .view-more {
  display: inline-block !important;
}

/* ===== Responsywność - mniejsze ekrany ===== */

@media (max-width: 767px) {
  .topPage404 {
    height: 60vh !important;
    min-height: 400px !important;
  }

  .topPage404 .single-post-title {
    font-size: 56px !important;
  }

  #wrap-content.blog-1col {
    padding: 56px 0 !important;
  }
}
/* HERO strona głowna */
.slider-caption {
  position: relative;
}

.slider-caption::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at center,
    rgba(57, 86, 74, 0.45) 0%,
    rgba(57, 86, 74, 0.22) 50%,
    rgba(57, 86, 74, 0) 80%
  );
  z-index: 1;
  pointer-events: none;
}

.slider-caption > * {
  position: relative;
  z-index: 2;
}

.slider-caption h1,
.slider-caption h2,
.slider-caption p,
.slider-caption span,
.slider-caption a {
  color: #fff;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.home-hero-michelin {
  width: 144px;
  margin: 18px auto 0;
  line-height: 0;
}

.home-hero-michelin__logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 767px) {
  .home-hero-michelin {
    width: 112px;
    margin-top: 14px;
  }
}

.page-id-5031 .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Homepage: archival photographs in the "Poznaj naszą historię" section. */
.history-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  grid-template-rows: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(8px, 1.2vw, 15px);
  width: min(100%, 660px);
  aspect-ratio: 1 / 1.03;
  margin: 0 auto;
  padding: clamp(8px, 1vw, 12px);
  background: #f5f2eb;
  box-shadow: 0 24px 55px rgba(28, 35, 30, 0.14);
}

.history-collage__photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d8d5cd;
}

.history-collage__photo > .elementor-widget-container {
  height: 100%;
}

.history-collage__photo--main {
  grid-row: 1 / 3;
}

.history-collage__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
}

.history-collage__photo--main img {
  object-position: 50% 50%;
}

.history-collage__photo--wide img {
  object-position: 50% 48%;
}

.history-collage__photo--detail img {
  object-position: 50% 42%;
}

@media (max-width: 767px) {
  .history-collage {
    width: calc(100% - 24px);
    max-width: 560px;
    aspect-ratio: 1 / 1.08;
    margin-top: 8px;
    margin-bottom: 32px;
  }
}
