/* Header Premium 2.0 — Dr. Sérgio | 13.5.2
 * Substitui apenas a versão renderizada da prévia e da exportação pública.
 * Mantém cores institucionais, logomarca e links originais.
 */
.sergio-header-premium,
.sergio-header-premium *{
  box-sizing:border-box;
}
.sergio-header-premium{
  --sgp-blue:#102d55;
  --sgp-ink:#173e64;
  --sgp-teal:#148d9c;
  --sgp-line:#dbeaf0;
  position:sticky;
  top:0;
  z-index:1100;
  width:100%;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--sgp-line);
  box-shadow:0 6px 25px rgba(11,46,83,.065);
  -webkit-backdrop-filter:saturate(1.2) blur(12px);
  backdrop-filter:saturate(1.2) blur(12px);
  font-family:inherit;
  isolation:isolate;
}
.sergio-header-premium .sgp-shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(12px,1.65vw,23px);
  max-width:1220px;
  min-height:86px;
  margin:0 auto;
  padding:7px clamp(16px,2.3vw,28px);
  transition:min-height .22s ease,padding .22s ease;
}
.sergio-header-premium.sgp-scrolled{
  box-shadow:0 9px 27px rgba(8,39,74,.11);
}
.sergio-header-premium.sgp-scrolled .sgp-shell{
  min-height:69px;
  padding-top:3px;
  padding-bottom:3px;
}
.sergio-header-premium .sgp-brand{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-start;
  width:clamp(117px,11.4vw,152px);
  min-width:0;
  text-decoration:none!important;
  background:transparent!important;
}
.sergio-header-premium .sgp-brand img{
  width:100%;
  height:auto;
  max-height:68px;
  object-fit:contain;
  object-position:left center;
  display:block;
  transition:max-height .22s ease;
}
.sergio-header-premium.sgp-scrolled .sgp-brand img{max-height:56px}
.sergio-header-premium .sgp-nav{
  flex:1 1 auto;
  min-width:0;
}
.sergio-header-premium .sgp-links,
.sergio-header-premium .sgp-dropdown-menu{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
.sergio-header-premium .sgp-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(1px,.35vw,7px);
}
.sergio-header-premium .sgp-links>li{
  position:relative;
  margin:0!important;
  padding:0!important;
  flex:none;
}
.sergio-header-premium .sgp-link{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:5px;
  position:relative;
  min-height:44px;
  padding:10px clamp(8px,.8vw,12px)!important;
  color:#35526b!important;
  background:transparent!important;
  border:0!important;
  border-radius:10px;
  font-family:inherit!important;
  font-weight:700!important;
  font-size:clamp(11px,.91vw,13px)!important;
  line-height:1.35!important;
  text-decoration:none!important;
  text-align:center;
  white-space:nowrap;
  cursor:pointer;
  transition:color .17s ease,background-color .17s ease;
}
.sergio-header-premium .sgp-link:hover,
.sergio-header-premium .sgp-link:focus-visible,
.sergio-header-premium .sgp-link-active,
.sergio-header-premium .sgp-dropdown[open]>.sgp-dropdown-summary{
  color:#0d7483!important;
  background:#e9f7f8!important;
}
.sergio-header-premium .sgp-link-active::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:3px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,#35b6ba,#1880a9);
}
.sergio-header-premium .sgp-dropdown{
  position:relative;
}
.sergio-header-premium .sgp-dropdown-summary{
  list-style:none;
  user-select:none;
}
.sergio-header-premium .sgp-dropdown-summary::-webkit-details-marker{display:none}
.sergio-header-premium .sgp-dropdown-summary svg{
  display:block;
  flex:none;
  transition:transform .2s ease;
}
.sergio-header-premium .sgp-dropdown[open]>.sgp-dropdown-summary svg{
  transform:rotate(180deg);
}
.sergio-header-premium .sgp-dropdown-menu{
  position:absolute;
  top:calc(100% + 9px);
  left:0;
  min-width:178px;
  padding:8px!important;
  border:1px solid #e1edf2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 36px rgba(12,46,83,.17);
}
.sergio-header-premium .sgp-dropdown-menu .sgp-link{
  justify-content:flex-start;
  width:100%;
}
.sergio-header-premium .sgp-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:0 0 auto;
}
.sergio-header-premium .sgp-book{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:45px;
  padding:11px 17px!important;
  border:1px solid #0e7391!important;
  border-radius:999px!important;
  background:linear-gradient(110deg,#123c70 0%,#166888 66%,#168b93 100%)!important;
  color:#fff!important;
  box-shadow:0 7px 19px rgba(14,69,107,.16);
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap;
  transition:transform .17s ease,box-shadow .17s ease;
}
.sergio-header-premium .sgp-book svg{flex:none}
.sergio-header-premium .sgp-book:hover{
  transform:translateY(-2px);
  box-shadow:0 11px 23px rgba(14,69,107,.25);
}
.sergio-header-premium .sgp-book-mobile{display:none}
.sergio-header-premium .sgp-menu-toggle{display:none}
.sergio-header-premium a:focus-visible,
.sergio-header-premium button:focus-visible,
.sergio-header-premium summary:focus-visible{
  outline:3px solid #36aabd!important;
  outline-offset:3px!important;
}
@media(max-width:1120px){
  .sergio-header-premium .sgp-shell{
    min-height:75px;
    gap:12px;
  }
  .sergio-header-premium .sgp-brand{width:clamp(118px,24vw,154px)}
  .sergio-header-premium .sgp-nav{
    flex:none;
    position:absolute;
    top:calc(100% + 2px);
    left:max(12px,env(safe-area-inset-left, 0px));
    right:max(12px,env(safe-area-inset-right, 0px));
    padding:12px;
    background:#fff;
    border:1px solid #e0edf2;
    border-radius:0 0 20px 20px;
    box-shadow:0 19px 35px rgba(11,43,79,.19);
    max-height:calc(100dvh - 96px);
    overflow-y:auto;
  }
  .sergio-header-premium.sgp-ready .sgp-nav{display:none}
  .sergio-header-premium.sgp-ready.sgp-menu-open .sgp-nav{display:block}
  .sergio-header-premium .sgp-links{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:3px;
  }
  .sergio-header-premium .sgp-links>li{width:100%}
  .sergio-header-premium .sgp-link{
    width:100%;
    justify-content:flex-start;
    text-align:left;
    padding:12px 16px!important;
    min-height:48px;
    font-size:14px!important;
  }
  .sergio-header-premium .sgp-link-active::after{left:0;right:auto;top:11px;bottom:11px;width:3px;height:auto}
  .sergio-header-premium .sgp-dropdown-menu{
    position:static;
    min-width:0;
    width:100%;
    box-shadow:none;
    background:#f3f9fb;
    border:0;
    border-radius:11px;
    padding:5px!important;
    margin:3px 0 6px!important;
  }
  .sergio-header-premium .sgp-dropdown-summary{justify-content:space-between}
  .sergio-header-premium .sgp-menu-toggle{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:47px;
    height:47px;
    padding:0!important;
    border:1px solid #d7eaf0!important;
    border-radius:13px!important;
    background:#f2fafb!important;
    color:#165b7a!important;
    cursor:pointer;
  }
  .sergio-header-premium.sgp-menu-open .sgp-menu-toggle{
    background:#e4f6f7!important;
    border-color:#8bd6db!important;
  }
  .sergio-header-premium.sgp-scrolled .sgp-shell{min-height:66px}
}
@media(max-width:600px){
  .sergio-header-premium .sgp-shell{
    min-height:68px;
    padding:5px 12px;
    gap:8px;
  }
  .sergio-header-premium .sgp-brand{width:clamp(105px,31vw,137px)}
  .sergio-header-premium .sgp-brand img{max-height:60px}
  .sergio-header-premium .sgp-book{
    min-height:43px;
    gap:5px;
    padding:10px 11px!important;
    font-size:11px!important;
  }
  .sergio-header-premium .sgp-book-label{display:none}
  .sergio-header-premium .sgp-book-mobile{display:inline}
  .sergio-header-premium .sgp-menu-toggle{width:44px;height:44px}
  .sergio-header-premium .sgp-actions{gap:7px}
  .sergio-header-premium .sgp-nav{max-height:calc(100dvh - 82px)}
}
@media(max-width:359px){
  .sergio-header-premium .sgp-brand{width:100px}
  .sergio-header-premium .sgp-book svg{display:none}
  .sergio-header-premium .sgp-book{padding:10px!important}
}
@media(prefers-reduced-motion:reduce){
  .sergio-header-premium .sgp-shell,
  .sergio-header-premium .sgp-brand img,
  .sergio-header-premium .sgp-link,
  .sergio-header-premium .sgp-book,
  .sergio-header-premium .sgp-dropdown-summary svg{
    transition:none!important;
  }
  .sergio-header-premium .sgp-book:hover{transform:none!important}
}
