/* Pianíssimo — Header mobile off-canvas premium. Desktop intocado. */
.pm-topbar,.pm-panel,.pm-shield,.pm-placeholder{display:none}
@media(max-width:767px){
  body.pm-mobile-enabled .pm-header-source{display:none!important}
  body.pm-mobile-enabled .pianissimo-sticky-spacer{display:none!important}
  body.pm-mobile-enabled .pm-placeholder{display:block!important;height:76px;min-height:76px;width:100%;background:#fbf7f1}
  body.pm-mobile-enabled .pm-topbar{display:flex!important;position:fixed;top:var(--pm-admin-top,0px);left:0;right:0;z-index:999950;width:100%;height:76px;min-height:76px;padding:0 17px 0 17px;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;background:#fbf7f1!important;border-bottom:1px solid rgba(160,126,80,.24);box-shadow:0 5px 16px rgba(42,28,18,.06)}
  .pm-topbar *,.pm-panel *{box-sizing:border-box}
  .pm-topbar .pm-brand{display:inline-flex;align-items:center;gap:9px;max-width:min(var(--pm-logo-width,225px),calc(100vw - 90px));width:auto;min-width:0;flex:1 1 auto;margin:0!important;text-decoration:none!important;transform:none!important;transition:none!important;line-height:1.1}
  .pm-topbar .pm-brand .pianissimo-logo-image-wrap{width:53px!important;max-width:53px!important;min-width:53px;flex:0 0 53px!important;position:relative;display:inline-flex;align-items:center;justify-content:center}
  .pm-topbar .pm-brand .pianissimo-logo-image{width:100%!important;height:auto!important;max-width:53px!important;max-height:58px!important;display:block;object-fit:contain}
  .pm-topbar .pm-brand .pianissimo-logo-image-scrolled{display:none!important}
  .pm-topbar .pm-brand .pianissimo-logo-copy{display:flex!important;flex-direction:column;align-items:flex-start;min-width:0;margin:0!important;gap:2px;transform:none!important;text-align:left}
  .pm-topbar .pm-brand .pianissimo-logo-title{color:#34251b!important;font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(20px,6vw,27px)!important;font-weight:500!important;letter-spacing:.075em!important;line-height:1!important;margin:0!important;max-width:100%;white-space:nowrap}
  .pm-topbar .pm-brand .pianissimo-logo-subtitle{color:#655044!important;font-family:Montserrat,Arial,sans-serif;font-size:clamp(7px,2vw,9px)!important;font-weight:500!important;letter-spacing:.19em!important;line-height:1.5!important;white-space:nowrap;margin:0!important}
  .pm-topbar .pm-brand-fallback{display:flex;align-items:center;gap:10px}
  .pm-topbar .pm-brand-fallback>img{display:block;width:53px;height:53px;object-fit:contain;flex:none}
  .pm-topbar .pm-brand-words{display:flex;flex-direction:column;gap:4px;color:#34251b}
  .pm-topbar .pm-brand-name{font:500 24px/1 'Cormorant Garamond',Georgia,serif;letter-spacing:.07em}
  .pm-topbar .pm-brand-words small{font:500 8px/1.3 Montserrat,Arial,sans-serif;letter-spacing:.14em}
  body.pm-mobile-enabled .pm-trigger{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;margin:0;padding:0;border:1px solid #d7bf9e;border-radius:9px;background:#fffaf4;color:#5a4331;cursor:pointer;box-shadow:none}
  .pm-trigger svg,.pm-close svg{display:block;stroke:currentColor}
  .pm-trigger:focus-visible,.pm-close:focus-visible,.pm-menu-expander:focus-visible,.pm-menu-link:focus-visible{outline:2px solid #b18a59;outline-offset:3px}
  body.pm-mobile-enabled .pm-shield{display:block;position:fixed;inset:0;z-index:999960;background:rgba(24,18,13,.55);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility .28s ease}
  body.pm-mobile-enabled .pm-panel{display:flex;flex-direction:column;position:fixed;z-index:999970;top:0;right:0;bottom:0;width:min(88vw,370px);max-width:100%;height:100dvh;background:#fcf8f2;color:#34271f;box-shadow:-14px 0 38px rgba(20,13,8,.16);transform:translateX(105%);visibility:hidden;pointer-events:none;transition:transform .32s cubic-bezier(.22,.61,.36,1),visibility .32s ease;overflow-y:auto;overscroll-behavior:contain;padding:0 24px max(22px,env(safe-area-inset-bottom,0px))}
  body.pm-menu-open{overflow:hidden!important}
  body.pm-menu-open .pm-shield{opacity:1;visibility:visible;pointer-events:auto}
  body.pm-menu-open .pm-panel{transform:translateX(0);visibility:visible;pointer-events:auto}
  .pm-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:24px 0 21px;border-bottom:1px solid #e5d9ca}
  .pm-panel-label{font:400 34px/1.1 'Cormorant Garamond',Georgia,serif;letter-spacing:-.015em}
  .pm-close{display:grid;place-items:center;width:42px;height:42px;min-width:42px;min-height:42px;padding:0;border:1px solid #dccab4;border-radius:50%;background:#fffdf9;color:#4a3728;cursor:pointer}
  .pm-menu,.pm-submenu{list-style:none;margin:0;padding:0}
  .pm-menu-item{border-bottom:1px solid #ece2d6}
  .pm-menu-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:57px}
  .pm-menu-link{display:flex;align-items:center;flex:1;min-height:55px;padding:10px 3px;text-decoration:none!important;color:#33271f!important;font:500 14px/1.45 Montserrat,Arial,sans-serif;letter-spacing:.02em}
  .pm-menu-link:hover,.pm-menu-link[aria-current="page"]{color:#aa7d47!important}
  .pm-menu-expander{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;min-height:39px;border:1px solid #e5d7c7;border-radius:50%;background:#fff;color:#8f6f4c;padding:0;cursor:pointer}
  .pm-menu-expander svg{display:block;transition:transform .2s ease}
  .pm-menu-item.is-expanded>.pm-menu-row .pm-menu-expander svg{transform:rotate(180deg)}
  .pm-submenu{padding:0 0 12px 16px;border-left:1px solid #c7a579;margin:0 0 13px 4px}
  .pm-submenu[hidden]{display:none!important}
  .pm-submenu .pm-menu-item{border-bottom:0}
  .pm-submenu .pm-menu-row{min-height:41px}
  .pm-submenu .pm-menu-link{min-height:40px;padding:8px 12px;font-size:12px;font-weight:500;letter-spacing:.025em;color:#6b5542!important}
  .pm-submenu .pm-menu-link:hover,.pm-submenu .pm-menu-link[aria-current="page"]{color:#a77b48!important}
  .pm-submenu .pm-menu-expander{width:32px;height:32px;min-height:32px;flex-basis:32px}
}
@media(max-width:359px){
  body.pm-mobile-enabled .pm-topbar{padding-left:11px;padding-right:11px}
  .pm-topbar .pm-brand .pianissimo-logo-image-wrap{width:46px!important;min-width:46px;flex-basis:46px!important}
  .pm-topbar .pm-brand .pianissimo-logo-image{max-width:46px!important}
  .pm-topbar .pm-brand .pianissimo-logo-title{font-size:19px!important;letter-spacing:.045em!important}
  .pm-topbar .pm-brand .pianissimo-logo-subtitle{font-size:7px!important;letter-spacing:.1em!important}
  body.pm-mobile-enabled .pm-panel{width:min(90vw,345px)}
}
@media(prefers-reduced-motion:reduce){.pm-panel,.pm-shield,.pm-menu-expander svg{transition:none!important}}

/* v1.5.7 — navegação em níveis reais com voltar, sem acordeões longos */
@media(max-width:767px){
  body.pm-mobile-enabled .pm-panel{overflow:hidden!important;min-height:0!important;padding-bottom:0!important}
  body.pm-mobile-enabled .pm-panel-head{flex:0 0 auto}
  body.pm-mobile-enabled .pm-view-stack{position:relative;display:block;flex:1 1 auto;min-height:0;overflow:hidden;margin:0 -24px}
  body.pm-mobile-enabled .pm-view{
    position:absolute;inset:0;z-index:1;overflow-y:auto;overflow-x:hidden;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    padding:17px 24px max(30px,env(safe-area-inset-bottom));
    background:#fcf8f2;transform:translateX(100%);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .32s cubic-bezier(.22,.61,.36,1),opacity .25s ease,visibility .32s ease;
  }
  body.pm-mobile-enabled .pm-view.is-current{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;z-index:3}
  body.pm-mobile-enabled .pm-view.is-previous{transform:translateX(-25%);opacity:.3;visibility:hidden;pointer-events:none;z-index:2}
  body.pm-mobile-enabled .pm-drill-menu{list-style:none!important;padding:0!important;margin:0!important;display:block}
  body.pm-mobile-enabled .pm-drill-item{list-style:none!important;margin:0!important;padding:0!important;border-bottom:1px solid #e7ddd0}
  body.pm-mobile-enabled .pm-panel :is(.pm-drill-next,.pm-back){
    border:0!important;border-radius:0!important;background:transparent!important;
    color:#382a22!important;box-shadow:none!important;text-shadow:none!important;text-transform:none!important;
    font-family:Montserrat,Arial,sans-serif!important;font-weight:500!important;outline-offset:-2px;
  }
  body.pm-mobile-enabled .pm-drill-next,
  body.pm-mobile-enabled .pm-drill-link{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px;
    width:100%!important;min-height:61px!important;margin:0!important;padding:10px 3px!important;
    text-align:left!important;font:500 14px/1.45 Montserrat,Arial,sans-serif!important;
    letter-spacing:.01em!important;text-decoration:none!important;color:#382a22!important;
  }
  body.pm-mobile-enabled .pm-drill-next svg{flex:0 0 auto;color:#ae8451!important;fill:none!important;stroke:currentColor!important}
  body.pm-mobile-enabled .pm-drill-next:hover,
  body.pm-mobile-enabled .pm-drill-next:focus-visible,
  body.pm-mobile-enabled .pm-drill-link:hover,
  body.pm-mobile-enabled .pm-drill-link:focus-visible,
  body.pm-mobile-enabled .pm-drill-link[aria-current="page"]{
    color:#a97845!important;background:transparent!important;
  }
  body.pm-mobile-enabled .pm-panel :is(.pm-close,.pm-back,.pm-drill-next):hover,
  body.pm-mobile-enabled .pm-panel :is(.pm-close,.pm-back,.pm-drill-next):active{
    border-color:#d3b489!important;background:#f7eee3!important;color:#8d663a!important;
  }
  body.pm-mobile-enabled .pm-panel .pm-back{
    display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px;
    min-height:44px!important;margin:0 0 10px!important;padding:7px 9px 7px 0!important;
    font-size:12px!important;letter-spacing:.06em!important;
  }
  body.pm-mobile-enabled .pm-panel .pm-back svg{color:#a47c4b!important;stroke:currentColor!important;fill:none!important}
  body.pm-mobile-enabled .pm-view-title{font:500 clamp(28px,8vw,36px)/1.13 'Cormorant Garamond',Georgia,serif!important;color:#3b2b20!important;margin:0 0 11px!important;letter-spacing:-.015em!important}
  body.pm-mobile-enabled .pm-view-all{display:block;margin:0 0 10px;padding:8px 0 14px;border-bottom:1px solid #e4d5c2;font:600 11px/1.3 Montserrat,Arial,sans-serif!important;letter-spacing:.09em;text-transform:uppercase;color:#a47d4e!important;text-decoration:none!important}
  body.pm-mobile-enabled .pm-view-all:hover{color:#6e4b25!important}
  /* evita herança do rosa global do Elementor e mantém a paleta do site */
  body.pm-mobile-enabled .pm-panel .pm-close{border-color:#dccab4!important;background:#fffdf9!important;color:#57402d!important;box-shadow:none!important}
  body.pm-mobile-enabled .pm-panel .pm-close:hover{border-color:#be9868!important;background:#f7eee3!important;color:#8d663a!important}
  body.pm-mobile-enabled .pm-trigger:hover,
  body.pm-mobile-enabled .pm-trigger:active{background:#f7eee3!important;border-color:#c39a69!important;color:#715338!important}
}
@media(max-width:359px){body.pm-mobile-enabled .pm-view-stack{margin:0 -18px}body.pm-mobile-enabled .pm-view{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){body.pm-mobile-enabled .pm-view{transition:none!important}}
/* A largura inclui padding: painel ocupa 88% da viewport, deixando fundo visível. */
@media(max-width:767px){body.pm-mobile-enabled .pm-panel{box-sizing:border-box!important}}


/* v1.5.9: o header correto já existe no HTML antes do JavaScript. Sem flash mobile. */
@media(max-width:767px){
  body.pm-mobile-ssr-active .elementor-location-header,
  body.pm-mobile-ssr-active .pianissimo-header-desktop,
  body.pm-mobile-ssr-active .pianissimo-header-mobile,
  body.pm-mobile-ssr-active .pianissimo-sticky-spacer{display:none!important}
  body.pm-mobile-ssr-active .pm-placeholder{display:block!important;height:76px!important;min-height:76px!important;width:100%;background:#fbf7f1}
  body.pm-mobile-ssr-active .pm-topbar{
    display:flex!important;position:fixed!important;top:var(--pm-admin-top,0px);left:0;right:0;z-index:999950;
    width:100%;height:76px;min-height:76px;padding:0 17px;
    align-items:center;justify-content:space-between;gap:10px;
    box-sizing:border-box;background:#fbf7f1!important;
    border-bottom:1px solid rgba(160,126,80,.24);box-shadow:0 5px 16px rgba(42,28,18,.06)
  }
  body.pm-mobile-ssr-active .pm-trigger{
    display:grid!important;place-items:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;
    margin:0;padding:0;border:1px solid #d7bf9e!important;border-radius:9px;
    background:#fffaf4!important;color:#5a4331!important;cursor:pointer;box-shadow:none!important
  }
  body.admin-bar.pm-mobile-ssr-active .pm-topbar{top:var(--pm-admin-top,46px)}
  body.pm-mobile-ssr-active .pm-brand-fallback{max-width:min(var(--pm-logo-width,225px),calc(100vw - 90px))}
}


/* v1.5.10 — render inicial sem flash: ativo desde o HTML SSR, antes dos scripts no rodapé. */
@media (max-width:767px){
  body.pm-mobile-ssr-active .pm-topbar{
    display:flex!important;position:fixed!important;top:var(--pm-admin-top,0px);
    left:0;right:0;z-index:999950;width:100%;height:76px;min-height:76px;
    padding:0 17px;align-items:center;justify-content:space-between;gap:10px;
    background:#fbf7f1!important;border-bottom:1px solid rgba(160,126,80,.24);
    box-shadow:0 5px 16px rgba(42,28,18,.06);box-sizing:border-box;
  }
  body.pm-mobile-ssr-active .pm-placeholder{
    display:block!important;height:76px!important;min-height:76px!important;width:100%;
    background:#fbf7f1;
  }
  body.pm-mobile-ssr-active :is(.pianissimo-header-mobile,.pianissimo-header-desktop,.pm-header-source){display:none!important}
  body.pm-mobile-ssr-active .elementor-location-header:has(.pianissimo-header-mobile,.pianissimo-header-desktop){display:none!important}
  body.pm-mobile-ssr-active .pianissimo-sticky-spacer{display:none!important}
  body.pm-mobile-ssr-active .pm-trigger{
    display:grid!important;place-items:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;
    padding:0;margin:0;border:1px solid #d7bf9e;border-radius:9px;
    color:#5a4331;background:#fffaf4;cursor:pointer;box-shadow:none;
  }
  body.admin-bar.pm-mobile-ssr-active{--pm-admin-top:46px}
}
/* No editor, manter a prévia do cabeçalho e a barra sem duplicação. */
@media (min-width:768px){body.pm-mobile-ssr-active .pm-topbar,body.pm-mobile-ssr-active .pm-placeholder{display:none!important}}


/* v1.5.11 — mantém a barra montada no PHP estável desde o primeiro frame. */
@media(max-width:767px){
  body.pm-mobile-ssr-active #pianissimo-mobile-premium-header,
  body.pm-mobile-enabled #pianissimo-mobile-premium-header{opacity:1!important;visibility:visible!important;transform:none!important;transition:none!important;animation:none!important}
  body.pm-mobile-ssr-active .elementor-location-header{display:none!important;visibility:hidden!important;max-height:0!important;min-height:0!important;overflow:hidden!important}
  body.pm-mobile-ssr-active #pianissimo-mobile-premium-header .pm-brand-name{font-family:Georgia,serif!important;font-size:24px!important;line-height:1!important}
  body.pm-mobile-ssr-active #pianissimo-mobile-premium-header .pm-brand-words{width:160px;min-width:0;flex:1 1 auto;gap:3px}
  body.pm-mobile-ssr-active #pianissimo-mobile-premium-header .pm-brand-fallback>img{width:53px!important;height:53px!important;flex:0 0 53px!important}
}
