/*
 * StarbeneNatura - compact article masthead (Blogus).
 * Scoped to single posts; archives and homepage retain their existing layout.
 */
body.single-post header.bs-default {
  background: #fff;
  border-bottom: 1px solid #e4ebe6;
  box-shadow: 0 3px 14px rgba(28, 56, 43, .045);
}

body.single-post header.bs-default .site-title a {
  color: #253f35;
  text-decoration: none;
}

body.single-post header.bs-default .site-title a:focus-visible,
body.single-post header.bs-default .nav-link:focus-visible,
body.single-post header.bs-default .navbar-toggler:focus-visible {
  outline: 2px solid #47785a;
  outline-offset: 3px;
}

body.single-post .mainfeatured.mb-4 {
  margin-bottom: 0 !important;
}

body.single-post .bs-breadcrumb-section {
  margin-bottom: 12px;
}

body.single-post .bs-breadcrumb-section .breadcrumb {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  body.single-post header.bs-default {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(12px, 2vw, 32px);
    min-height: 88px;
    padding: 10px max(24px, calc((100% - 1240px) / 2));
  }

  body.single-post header.bs-default > .clearfix,
  body.single-post header.bs-default .bs-header-main .left-nav {
    display: none;
  }

  body.single-post header.bs-default .bs-header-main .inner {
    height: auto;
    padding: 0;
  }

  body.single-post header.bs-default .bs-header-main .container,
  body.single-post header.bs-default .bs-menu-full .navbar > .container {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  body.single-post header.bs-default .bs-header-main .row {
    margin: 0;
    flex-wrap: nowrap;
    gap: 12px;
  }

  body.single-post header.bs-default .bs-header-main .navbar-header {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 13px;
  }

  body.single-post header.bs-default .bs-header-main .site-logo {
    flex: 0 0 114px;
    max-width: 114px;
  }

  body.single-post header.bs-default .bs-header-main .site-logo .navbar-brand {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.single-post header.bs-default .bs-header-main .site-logo .custom-logo {
    display: block;
    width: 100%;
    height: auto;
  }

  body.single-post header.bs-default .bs-header-main .site-branding-text .site-title {
    font-size: 25px !important;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.single-post header.bs-default .bs-header-main .site-branding-text .site-title a {
    font-size: 25px !important;
    line-height: 1.2;
  }

  body.single-post header.bs-default .bs-header-main .row > .col-md-3:last-child {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    padding: 0;
  }

  body.single-post header.bs-default .bs-menu-full,
  body.single-post header.bs-default .navbar-wp {
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  body.single-post header.bs-default #menu-principale {
    display: flex;
    flex-wrap: nowrap;
    box-shadow: none;
    background: transparent;
    gap: 3px;
  }

  body.single-post header.bs-default #menu-principale > li > a.nav-link {
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #36584d;
    background: transparent;
    white-space: nowrap;
    border-radius: 7px;
  }

  body.single-post header.bs-default #menu-principale > li > a.nav-link:hover,
  body.single-post header.bs-default #menu-principale > li > a.nav-link:focus {
    color: #234635;
    background: #edf4ef;
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  body.single-post header.bs-default .navbar-wp {
    margin: 0;
  }

  body.single-post header.bs-default .navbar-wp > .container {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  body.single-post header.bs-default .m-header {
    min-height: 70px;
    padding: 8px 0;
    gap: 10px;
    align-items: center;
  }

  body.single-post header.bs-default .m-header .navbar-header {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
  }

  body.single-post header.bs-default .m-header .site-logo {
    flex: 0 0 78px;
    width: 78px;
  }

  body.single-post header.bs-default .m-header .site-logo .navbar-brand,
  body.single-post header.bs-default .m-header .site-logo .custom-logo {
    display: block;
    width: 78px !important;
    max-width: 78px !important;
    height: auto !important;
    margin: 0;
  }

  body.single-post header.bs-default .m-header .site-branding-text .site-title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 750;
    white-space: nowrap;
  }

  body.single-post header.bs-default .m-header .navbar-toggler {
    order: 2;
    flex: 0 0 auto;
    margin: 0;
  }

  body.single-post header.bs-default .m-header .right-nav {
    order: 3;
    flex: 0 0 auto;
    gap: 0;
  }

  body.single-post header.bs-default #menu-principale {
    border-radius: 8px;
    box-shadow: none;
  }

  body.single-post .bs-breadcrumb-section .trail-end {
    display: none;
  }

  body.single-post .bs-breadcrumb-section .breadcrumb {
    flex-wrap: nowrap;
  }
}

@media (max-width: 420px) {
  body.single-post header.bs-default .m-header .site-logo {
    display: none;
  }

  body.single-post header.bs-default .m-header .site-branding-text .site-title {
    font-size: 22px;
  }
}

body.dark.single-post header.bs-default {
  background: #17201d;
  border-color: #374a41;
}

body.dark.single-post header.bs-default .site-title a,
body.dark.single-post header.bs-default #menu-principale > li > a.nav-link {
  color: #f0f5f1;
}

/* Editorial hierarchy: keep the story ahead of decorative chrome. */
body.single-post .bs-blog-post.single .bs-header h1.title {
  font-size: clamp(29px, 2.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -.018em;
  margin-bottom: 14px;
}

body.single-post .bs-blog-post.single .bs-header .bs-blog-category a.blogus-categories {
  background: #eaf3ec !important;
  color: #315d43 !important;
  border-radius: 999px;
  font-size: 12px;
  padding: 5px 11px;
}

body.single-post header.bs-default .switch .slider {
  background-color: #426c56;
}

@media (max-width: 767.98px) {
  body.single-post .bs-blog-post.single .bs-header h1.title {
    font-size: clamp(27px, 6vw, 30px);
    line-height: 1.2;
  }
}
