/* Palermo Mare Holidays – editorial system for single blog posts only. */
body.pmh-blog-layout-enabled {
  --pmh-sea: #087e93;
  --pmh-deep: #123e57;
  --pmh-pale: #eaf6f7;
  --pmh-sand: #e7af58;
  --pmh-orange: #e87827;
  --pmh-cream: #fffaf1;
  --pmh-ink: #23465d;
  background: var(--pmh-cream);
}

/* On articles only, replace inherited legacy chrome. Theme hooks still load. */
body.pmh-blog-layout-enabled .header-wrapper-4,
body.pmh-blog-layout-enabled .footer-wrapper,
body.pmh-blog-layout-enabled #footer,
body.pmh-blog-layout-enabled footer:not(.pmh-article-site-footer),
body.pmh-blog-layout-enabled #mobile-navigation-btn,
body.pmh-blog-layout-enabled .mobile-navigation-wrapper {
  display: none !important;
}

.pmh-article-site-header {
  position: relative;
  z-index: 2;
  border-top: 6px solid var(--pmh-sea);
  border-bottom: 1px solid rgba(18, 62, 87, .14);
  background: #fff;
  box-shadow: 0 4px 18px rgba(18, 62, 87, .06);
}
.pmh-article-site-header__inner,
.pmh-article-site-footer__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.pmh-article-site-header__topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 0 17px; }
.pmh-article-site-header__brand { color: var(--pmh-deep); text-decoration: none; }
.pmh-article-site-header__brand-name,
.pmh-article-site-footer__brand > a { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 2.1vw, 2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1; }
.pmh-article-site-header__brand-place { display: block; margin-top: 7px; color: var(--pmh-sea); font-size: .66rem; font-weight: 800; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.pmh-article-site-header__languages { display: flex; align-items: center; gap: 10px; }
.pmh-article-site-header__languages a { min-width: 34px; padding: 7px 8px; border: 1px solid rgba(8, 126, 147, .2); border-radius: 999px; color: var(--pmh-deep); font-size: .7rem; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; }
.pmh-article-site-header__languages a[aria-current="page"] { border-color: var(--pmh-sea); background: var(--pmh-sea); color: #fff; }
.pmh-article-site-header__navigation { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(18, 62, 87, .1); }
.pmh-article-site-header__navigation ul { display: flex; flex: 1 1 auto; align-items: center; gap: clamp(12px, 2vw, 28px); margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.pmh-article-site-header__navigation li { flex: 0 0 auto; }
.pmh-article-site-header__navigation ul a { display: inline-flex; min-height: 35px; align-items: center; color: var(--pmh-deep); font-size: .82rem; font-weight: 800; letter-spacing: .015em; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.pmh-article-site-header__navigation ul a:hover,
.pmh-article-site-header__navigation ul a:focus-visible,
.pmh-article-site-header__navigation ul a[aria-current="page"] { color: var(--pmh-sea); }
.pmh-article-site-header__menu-toggle { display: none; border: 0; background: transparent; color: var(--pmh-deep); font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .025em; line-height: 1; }
.pmh-article-site-header__menu-icon { display: inline-flex; width: 20px; height: 15px; flex-direction: column; justify-content: space-between; }
.pmh-article-site-header__menu-icon i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.pmh-article-site-header__booking { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border-radius: 7px; background: var(--pmh-sea); color: #fff; font-size: .82rem; font-weight: 800; text-decoration: none; }
.pmh-article-site-header__booking:hover,
.pmh-article-site-header__booking:focus-visible { background: var(--pmh-deep); color: #fff; }

/*
 * Article 7686 only: this is the approved PMH homepage strip, kept outside
 * the reusable article header so no other post inherits it accidentally.
 */
.pmh-single-home-masthead {
  position: relative;
  width: 100%;
  aspect-ratio: 1312 / 102;
  overflow: hidden;
  background: #fff url('https://palermomare.it/wp-content/uploads/2026/10/pmh-testata-riferimento-2026.webp') left top / 100% auto no-repeat;
}
.pmh-single-home-masthead__brand {
  position: absolute;
  top: 6%;
  left: 11%;
  display: block;
  width: 32%;
  height: 86%;
}
.pmh-single-home-masthead__languages {
  position: absolute;
  top: 24%;
  left: 78.2%;
  display: flex;
  width: 14%;
  height: 55%;
  align-items: stretch;
}
.pmh-single-home-masthead__languages a {
  display: flex;
  width: 33.333%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pmh-single-home-masthead__languages span { opacity: 0; }
.pmh-single-home-header {
  position: relative !important;
  z-index: 100;
  display: flex !important;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 5%;
  background: #fff !important;
  box-shadow: 0 2px 15px rgba(18,62,87,.06);
  color: var(--pmh-deep);
  font-family: Arial, sans-serif;
}
.pmh-single-home-header * { box-sizing: border-box; }
.pmh-single-home-header a,
.pmh-single-home-header summary { color: var(--pmh-deep); text-decoration: none; }
.pmh-single-home-header > nav { display: flex; align-items: center; gap: 16px; margin: auto; }
.pmh-single-home-header > nav > a,
.pmh-single-home-header summary { min-height: 44px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pmh-single-home-header > nav > a { display: flex; align-items: center; }
.pmh-single-home-header details { position: relative; }
.pmh-single-home-header summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.pmh-single-home-header summary::-webkit-details-marker { display: none; }
.pmh-single-home-header summary::after { margin-left: 5px; content: '⌄'; }
.pmh-single-home-header details > div {
  position: absolute;
  top: 100%;
  left: -15px;
  z-index: 130;
  display: none;
  min-width: 230px;
  max-width: 300px;
  padding: 12px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(18,62,87,.15);
}
.pmh-single-home-header details[open] > div { display: block; }
.pmh-single-home-header details > div a { display: block; min-height: 38px; padding: 7px 12px; font-size: 13px; }
.pmh-single-home-header details > div a:hover,
.pmh-single-home-header details > div a:focus-visible { background: var(--pmh-pale); }
.pmh-single-home-header__hamburger { display: none; border: 0; background: transparent; color: var(--pmh-deep); cursor: pointer; }
.pmh-single-home-header__hamburger span { display: inline-flex; width: 24px; height: 18px; flex-direction: column; justify-content: space-between; }
.pmh-single-home-header__hamburger i { display: block; width: 24px; height: 2px; background: currentColor; }
.pmh-single-home-header__book { display: inline-flex; min-width: 75px; min-height: 44px; align-items: center; justify-content: center; padding: 11px 15px; border-radius: 3px; background: var(--pmh-sea); color: #fff !important; font-size: 12px; font-weight: 700; }
.pmh-single-home-header__book:hover,
.pmh-single-home-header__book:focus-visible { background: var(--pmh-deep); color: #fff !important; }

.pmh-blog-layout { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 24px clamp(56px, 8vw, 112px); }
.pmh-blog-post { position: relative; overflow: hidden; background: var(--pmh-cream); }
.pmh-blog-post::before { display: block; height: 12px; background: linear-gradient(90deg, transparent 0 5%, rgba(255,255,255,.95) 5% 13%, transparent 13% 18%, rgba(231,175,88,.92) 18% 26%, transparent 26% 31%, rgba(8,126,147,.9) 31% 39%, transparent 39% 44%, rgba(255,255,255,.95) 44% 52%, transparent 52% 57%, rgba(231,120,39,.88) 57% 65%, transparent 65% 70%, rgba(8,126,147,.9) 70% 78%, transparent 78% 83%, rgba(255,255,255,.95) 83% 91%, transparent 91% 100%), var(--pmh-deep); content: ''; }
.pmh-blog-post__utility { display: flex; max-width: 1060px; margin: 0 auto 36px; padding: 28px clamp(14px, 3vw, 38px) 0; }
.pmh-blog-post__utility--bottom { margin: 0 auto; padding-top: 0; padding-bottom: clamp(44px, 7vw, 76px); }
.pmh-blog-post__back-link { display: inline-flex; align-items: center; gap: .48rem; min-height: 44px; padding: 10px 15px; border: 1px solid rgba(8, 126, 147, .28); border-radius: 7px; background: #fff; color: var(--pmh-deep); font-size: .88rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.pmh-blog-post__back-link span { color: var(--pmh-orange); font-size: 1.1rem; line-height: 1; }
.pmh-blog-post__back-link:hover,
.pmh-blog-post__back-link:focus-visible { border-color: var(--pmh-sea); background: var(--pmh-pale); color: var(--pmh-deep); }
.pmh-blog-post__header { position: relative !important; z-index: 1; max-width: 900px; margin: 0 auto; padding: clamp(12px, 2vw, 24px) clamp(24px, 7vw, 92px) clamp(54px, 7vw, 88px); text-align: center; }
.pmh-blog-post__identity { margin: 0 0 30px; color: var(--pmh-ink); }
.pmh-blog-post__journal-title { display: block; color: var(--pmh-deep); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.25rem, 5.1vw, 4.35rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.pmh-blog-post__journal-place,
.pmh-blog-post__date { display: block; margin-top: 15px; color: var(--pmh-sea); font-size: .72rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.pmh-blog-post__category { display: inline-block; margin: 0 0 16px; padding: 7px 13px; border-radius: 999px; background: var(--pmh-pale); color: var(--pmh-sea); font-size: .75rem; font-weight: 800; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
.pmh-blog-post__title { max-width: 820px; margin: 0 auto 18px; color: var(--pmh-deep); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.15rem, 5vw, 4.45rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.pmh-blog-post__date { margin-top: 0; color: var(--pmh-ink); }
.pmh-blog-post__date time { color: var(--pmh-sea); }
.pmh-blog-post__featured-media { position: relative; max-width: 1060px; margin: 0 auto 4px; padding: 0 clamp(14px, 3vw, 38px); }
.pmh-blog-post__featured-media::after { position: absolute; right: clamp(18px, 5vw, 56px); bottom: -8px; left: clamp(18px, 5vw, 56px); height: 6px; background: linear-gradient(90deg, var(--pmh-sea), var(--pmh-orange), var(--pmh-sand)); content: ''; }
.pmh-blog-post__featured-image { display: block; width: 100%; max-height: 600px; border: 5px solid #fff; border-radius: 4px; box-shadow: 0 12px 34px rgba(18, 62, 87, .13); object-fit: cover; }
.pmh-blog-post__content { max-width: 800px; margin: 0 auto; padding: clamp(44px, 7vw, 76px) clamp(24px, 7vw, 92px) clamp(54px, 7vw, 92px); color: var(--pmh-ink); font-size: 1.08rem; line-height: 1.78; }
.pmh-blog-post__content > :first-child { margin-top: 0; }
.pmh-blog-post__content > :last-child { margin-bottom: 0; }
.pmh-blog-post__content p,
.pmh-blog-post__content li { color: var(--pmh-ink); }
.pmh-blog-post__content p { margin: 0 0 1.35em; }
.pmh-blog-post__content h2,
.pmh-blog-post__content h3,
.pmh-blog-post__content h4 { color: var(--pmh-deep); font-family: Georgia, 'Times New Roman', serif; line-height: 1.16; }
.pmh-blog-post__content h2 { margin: 2.25em 0 .6em; font-size: clamp(1.72rem, 3.4vw, 2.45rem); }
.pmh-blog-post__content h3 { margin: 1.9em 0 .55em; font-size: clamp(1.28rem, 2.5vw, 1.65rem); }
.pmh-blog-post__content a { color: var(--pmh-sea); font-weight: 700; text-decoration-color: var(--pmh-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pmh-blog-post__content a:hover,
.pmh-blog-post__content a:focus { color: var(--pmh-deep); }
.pmh-blog-post__content ul,
.pmh-blog-post__content ol { margin: 0 0 1.6em; padding-left: 1.25em; }
.pmh-blog-post__content li + li { margin-top: .48em; }
.pmh-blog-post__content blockquote { margin: 2em 0; padding: 1.2em 1.35em; border-left: 4px solid var(--pmh-orange); border-radius: 0 12px 12px 0; background: var(--pmh-pale); color: var(--pmh-deep); }
.pmh-blog-post__content img { height: auto; max-width: 100%; border-radius: 12px; }
.pmh-blog-post__content .pmh-stay-card { margin: 3em 0 0; overflow: hidden; border: 1px solid rgba(8, 126, 147, .22); border-top: 5px solid var(--pmh-sea); border-radius: 16px; background: var(--pmh-pale); }
.pmh-blog-post__content .pmh-stay-card__body { padding: 24px; }
.pmh-blog-post__content .pmh-stay-card__cta { display: flex; gap: 12px; flex-wrap: wrap; padding: 18px 24px; background: var(--pmh-deep); }
.pmh-blog-post__content .pmh-stay-card__cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--pmh-deep); text-decoration: none; }
.pmh-blog-post__content .pmh-stay-card__cta a:last-child { background: var(--pmh-sea); color: #fff; }

.pmh-article-site-footer { border-top: 6px solid var(--pmh-sand); background: var(--pmh-deep); color: #fff; }
.pmh-article-site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(150px, .75fr)); gap: clamp(28px, 6vw, 80px); padding: clamp(44px, 7vw, 76px) 0 38px; }
.pmh-article-site-footer__brand > a { color: #fff; text-decoration: none; }
.pmh-article-site-footer__brand p { max-width: 410px; margin: 14px 0 0; color: rgba(255,255,255,.82); line-height: 1.65; }
.pmh-article-site-footer h2 { margin: 0 0 15px; color: var(--pmh-sand); font-family: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pmh-article-site-footer ul { margin: 0; padding: 0; list-style: none; }
.pmh-article-site-footer li + li { margin-top: 10px; }
.pmh-article-site-footer li a { color: #fff; font-size: .95rem; text-decoration: none; }
.pmh-article-site-footer li a:hover,
.pmh-article-site-footer li a:focus { color: var(--pmh-sand); }
.pmh-article-site-footer__legal { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); font-size: .78rem; }

@media (max-width: 760px) {
  .pmh-article-site-header__inner,
  .pmh-article-site-footer__inner { width: min(100% - 28px, 1180px); }
  .pmh-article-site-header__topline { align-items: flex-start; gap: 14px; padding: 17px 0 14px; }
  .pmh-article-site-header__brand-name { font-size: 1.5rem; }
  .pmh-article-site-header__brand-place { font-size: .57rem; letter-spacing: .11em; }
  .pmh-article-site-header__languages { gap: 6px; }
  .pmh-article-site-header__languages a { min-width: 29px; padding: 7px 5px; font-size: .63rem; }
  .pmh-article-site-header__navigation { position: relative; justify-content: space-between; gap: 12px; padding: 11px 0; }
  .pmh-article-site-header__menu-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 8px 0; cursor: pointer; }
  .pmh-article-site-header__menu-toggle:focus-visible { outline: 3px solid rgba(232,120,39,.5); outline-offset: 4px; }
  .pmh-article-site-header__navigation ul { position: absolute; top: calc(100% - 1px); right: 0; left: 0; z-index: 20; display: none; gap: 0; max-height: none; padding: 8px 14px 14px; overflow: visible; border: 1px solid rgba(18,62,87,.14); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 14px 26px rgba(18,62,87,.16); }
  .pmh-article-site-header__navigation.is-open ul { display: flex; flex-direction: column; align-items: stretch; }
  .pmh-article-site-header__navigation ul li { width: 100%; }
  .pmh-article-site-header__navigation ul a { width: 100%; min-height: 44px; padding: 0 4px; font-size: .84rem; }
  .pmh-article-site-header__booking { min-height: 38px; padding: 8px 12px; font-size: .75rem; }
  .pmh-blog-layout { padding: 24px 12px 54px; }
  .pmh-blog-post__utility { margin-bottom: 30px; padding: 20px 12px 0; }
  .pmh-blog-post__utility--bottom { margin-bottom: 0; padding-top: 0; padding-bottom: 52px; }
  .pmh-blog-post__header { padding: 6px 24px 56px; }
  .pmh-blog-post__identity { margin-bottom: 26px; }
  .pmh-blog-post__journal-title { font-size: clamp(2.05rem, 11vw, 3rem); }
  .pmh-blog-post__journal-place { margin-top: 12px; font-size: .62rem; letter-spacing: .1em; }
  .pmh-blog-post__featured-media { padding: 0 12px; }
  .pmh-blog-post__featured-image { border-width: 3px; border-radius: 2px; }
  .pmh-blog-post__content { padding: 42px 24px 52px; font-size: 1rem; line-height: 1.72; }
  .pmh-blog-post__content .pmh-stay-card__body,
  .pmh-blog-post__content .pmh-stay-card__cta { padding: 20px; }
  .pmh-blog-post__content .pmh-stay-card__cta a { width: 100%; }
  .pmh-article-site-footer__inner { grid-template-columns: 1fr; gap: 31px; padding: 45px 0 32px; }
  .pmh-article-site-footer__legal { width: min(100% - 28px, 1180px); }
}

/* Mobile reproduces the approved clean PMH banner used on the homepage. */
@media (max-width: 600px) {
  .pmh-single-home-masthead {
    height: 115px;
    aspect-ratio: auto;
    background-image: url('https://palermomare.it/wp-content/uploads/2026/11/pmh-mobile-header-clean.webp');
    background-position: center top;
    background-size: 100% auto;
  }
  .pmh-single-home-masthead__brand { visibility: hidden; }
  .pmh-single-home-masthead__languages {
    top: auto;
    right: 12px;
    bottom: 3px;
    left: auto;
    width: auto;
    height: 36px;
    gap: 5px;
    padding: 0 5px;
    background: #fff;
  }
  .pmh-single-home-masthead__languages a {
    width: auto;
    min-width: 54px;
    min-height: 36px;
    color: var(--pmh-deep);
    font: 13px/1 Arial, sans-serif;
  }
  .pmh-single-home-masthead__languages span { opacity: 1; }
}

@media (max-width: 930px) {
  .pmh-single-home-header { justify-content: space-between; padding: 8px 18px; }
  .pmh-single-home-header__hamburger { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .pmh-single-home-header > nav { order: 5; display: none; width: 100%; max-height: 70vh; align-items: stretch; gap: 0; overflow: auto; padding: 15px 0; }
  .pmh-single-home-header > nav.open { display: flex; flex-direction: column; }
  .pmh-single-home-header > nav > a,
  .pmh-single-home-header summary { width: 100%; min-height: 44px; padding: 10px 0; font-size: 15px; }
  .pmh-single-home-header details { width: 100%; }
  .pmh-single-home-header details > div { position: static; min-width: 0; max-width: none; padding: 0 10px; box-shadow: none; }
  .pmh-single-home-header details > div a { min-height: 44px; padding: 10px 12px; }
  .pmh-single-home-header__book { order: 3; }
}

@media (max-width: 600px) {
  .pmh-single-home-header { gap: 10px; padding: 6px 18px; }
  .pmh-single-home-header__book { min-height: 40px; padding: 9px 12px; font-size: 12px; }
}
