/*
Theme Name: Enfermagem Piauí
Theme URI: https://www.enfermagempiaui.com.br/
Author: Raitônio Cortez
Author URI: https://www.enfermagempiaui.com.br/
Description: Tema próprio, leve, responsivo e modular para o portal Enfermagem Piauí.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: enfermagem-piaui
*/

:root{
  --ep-primary:#006587;
  --ep-primary-dark:#004b64;
  --ep-primary-light:#eaf6fa;
  --ep-accent:#0298ea;
  --ep-cyan:#02fdfd;
  --ep-text:#17313b;
  --ep-muted:#637780;
  --ep-bg:#f5f8fa;
  --ep-white:#fff;
  --ep-border:#dbe7eb;
  --ep-shadow:0 12px 35px rgba(20,63,76,.10);
  --ep-radius:18px;
  --ep-container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ep-text);
  background:var(--ep-bg);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
}
a{color:var(--ep-primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 32px),var(--ep-container));margin-inline:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;top:12px;left:12px;width:auto;height:auto;margin:0;padding:10px 14px;clip:auto;background:#fff;z-index:9999}

/* =========================================================
   HEADER — ENFERMAGEM PIAUÍ
   Estrutura definitiva
   ========================================================= */

.site-header{
  position:relative;
  z-index:100;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid rgba(219,231,235,.85);
}

/* Aumenta somente a área horizontal do Header.
   Não altera a largura do restante do site. */
.site-header .container{
  width:min(calc(100% - 40px),1440px);
  margin-inline:auto;
}

.header-main{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

/* =========================================================
   LOGO
   ========================================================= */

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ep-primary);
  font-weight:800;
  min-width:0;
  flex:0 1 auto;
  flex-shrink:1;
}

.brand:hover{
  text-decoration:none;
}

.brand .custom-logo-link{
  display:flex;
  align-items:center;
  flex-shrink:1;
}

.brand .custom-logo{
  display:block;
  width:auto;
  height:auto;
  max-height:72px;
  max-width:410px;
}

/* Fallback caso não exista logo personalizada */
.brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--ep-primary);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  letter-spacing:-1px;
  box-shadow:0 8px 20px rgba(0,101,135,.20);
}

.brand-name{
  font-size:1.1rem;
  line-height:1.05;
}

.brand-sub{
  display:block;
  color:var(--ep-muted);
  font-size:.72rem;
  font-weight:600;
  margin-top:3px;
}


/* =========================================================
   NAVEGAÇÃO PRINCIPAL
   ========================================================= */

.primary-nav{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

/* SOMENTE o primeiro nível é horizontal */
.primary-nav > ul{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}

/* Itens principais */
.primary-nav > ul > li{
  position:relative;
  margin:0;
  padding:0;
  list-style:none;
}

/* Links principais */
.primary-nav > ul > li > a{
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ep-text);
  font-weight:700;
  font-size:.91rem;
  line-height:1.2;
  white-space:nowrap;
  padding:30px 0;
  text-decoration:none;
  transition:color .2s ease;
}

.primary-nav > ul > li > a:hover{
  color:var(--ep-primary);
  text-decoration:none;
}

/* Item ativo */
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-menu-ancestor > a,
.primary-nav > ul > li.current-menu-parent > a{
  color:var(--ep-primary);
}

/* Linha do item ativo */
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-menu-ancestor > a::after,
.primary-nav > ul > li.current-menu-parent > a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:20px;
  height:3px;
  border-radius:3px;
  background:var(--ep-primary);
}


/* =========================================================
   SETA DOS ITENS COM SUBMENU
   ========================================================= */

.primary-nav > ul > li.menu-item-has-children > a::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  margin-top:-3px;
  order:2;
  opacity:.7;
  transition:transform .2s ease;
}

.primary-nav > ul > li.menu-item-has-children:hover > a::before,
.primary-nav > ul > li.menu-item-has-children:focus-within > a::before{
  transform:rotate(225deg);
  margin-top:3px;
}


/* =========================================================
   SUBMENU DROPDOWN
   ========================================================= */

.primary-nav ul.sub-menu{
  position:absolute;
  top:calc(100% - 8px);
  left:50%;
  transform:translate(-50%,8px);
  z-index:200;

  display:block;
  width:max-content;
  min-width:190px;
  max-width:260px;

  margin:0;
  padding:8px;

  list-style:none;
  background:#fff;
  border:1px solid var(--ep-border);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(20,63,76,.14);

  opacity:0;
  visibility:hidden;
  pointer-events:none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.primary-nav li.menu-item-has-children:hover > ul.sub-menu,
.primary-nav li.menu-item-has-children:focus-within > ul.sub-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(-50%,0);
}

/* Itens do submenu */
.primary-nav ul.sub-menu li{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  list-style:none;
}

/* Links do submenu */
.primary-nav ul.sub-menu li a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:42px;
  padding:10px 13px;
  border-radius:9px;

  color:var(--ep-text);
  font-size:.87rem;
  font-weight:650;
  line-height:1.25;
  white-space:nowrap;

  text-decoration:none;

  transition:
    background .18s ease,
    color .18s ease;
}

.primary-nav ul.sub-menu li a:hover{
  background:var(--ep-primary-light);
  color:var(--ep-primary);
  text-decoration:none;
}


/* =========================================================
   BOTÃO FALE CONOSCO
   ========================================================= */

.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}

.header-actions .btn{
  min-height:48px;
  padding-inline:20px;
  white-space:nowrap;
}


/* =========================================================
   MENU MOBILE
   ========================================================= */

.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;

  border:1px solid var(--ep-border);
  background:#fff;
  color:var(--ep-primary);
  border-radius:12px;

  padding:0;
  font-size:1.15rem;
  cursor:pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.menu-toggle:hover{
  background:var(--ep-primary-light);
  border-color:rgba(0,101,135,.25);
}


/* =========================================================
   BOTÕES
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  min-height:46px;
  padding:0 18px;

  border-radius:12px;
  border:1px solid transparent;

  font-weight:750;
  cursor:pointer;
  text-decoration:none;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.btn:hover{
  text-decoration:none;
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--ep-primary);
  color:#fff;
}

.btn-primary:hover{
  background:var(--ep-primary-dark);
  color:#fff;
}

.btn-secondary{
  background:#fff;
  border-color:var(--ep-border);
  color:var(--ep-primary);
}

.btn-secondary:hover{
  background:var(--ep-primary-light);
  border-color:rgba(0,101,135,.22);
}

.btn-light{
  background:var(--ep-primary-light);
  color:var(--ep-primary);
}


/* =========================================================
   RESPONSIVIDADE DO HEADER
   ========================================================= */

@media (max-width:1200px){

  .site-header .container{
    width:min(calc(100% - 32px),1180px);
  }

  .header-main{
    gap:20px;
  }

  .brand .custom-logo{
    max-width:300px;
    max-height:66px;
  }

  .primary-nav > ul{
    gap:17px;
  }

  .primary-nav > ul > li > a{
    font-size:.87rem;
  }

  .header-actions .btn{
    padding-inline:16px;
  }
}


/* =========================================================
   TABLET / MENU MOBILE
   ========================================================= */

@media (max-width:900px){

  .site-header .container{
    width:min(calc(100% - 32px),var(--ep-container));
  }

  .header-main{
    min-height:76px;
    display:flex;
    gap:14px;
  }

  .brand{
    flex:1 1 auto;
  }

  .brand .custom-logo{
    max-height:58px;
    max-width:260px;
  }

  .primary-nav{
    display:none;
  }

  .menu-toggle{
    display:flex;
    flex:0 0 auto;
  }

  .header-actions .btn{
    display:none;
  }

  .primary-nav.is-open{
    display:block;
    position:absolute;
    left:16px;
    right:16px;
    top:76px;

    background:#fff;
    border:1px solid var(--ep-border);
    border-radius:16px;
    padding:18px;

    box-shadow:var(--ep-shadow);
  }

  .primary-nav.is-open > ul{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }

  .primary-nav.is-open > ul > li{
    width:100%;
  }

  .primary-nav.is-open > ul > li > a{
    width:100%;
    padding:13px 4px;
  }

  .primary-nav.is-open > ul > li.current-menu-item > a::after,
  .primary-nav.is-open > ul > li.current-menu-ancestor > a::after,
  .primary-nav.is-open > ul > li.current-menu-parent > a::after{
    display:none;
  }

  /* Submenu no mobile */
  .primary-nav.is-open ul.sub-menu{
    position:static;
    transform:none;
    width:100%;
    max-width:none;
    min-width:0;

    display:block;
    padding:0 0 8px 14px;

    border:0;
    border-radius:0;
    box-shadow:none;

    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .primary-nav.is-open ul.sub-menu li a{
    min-height:38px;
    padding:8px 10px;
  }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width:620px){

  .site-header .container{
    width:min(calc(100% - 24px),var(--ep-container));
  }

  .header-main{
    min-height:68px;
  }

  .brand .custom-logo{
    max-height:52px;
    max-width:230px;
  }

  .primary-nav.is-open{
    top:68px;
    left:12px;
    right:12px;
  }
}
/* =====================================================
   HERO - ENFERMAGEM PIAUÍ
   ===================================================== */

.hero{
  position:relative;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(2,152,234,.17),
      transparent 28%
    ),
    radial-gradient(
      circle at 5% 92%,
      rgba(2,253,253,.10),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #f8fcfd 0%,
      #edf8fa 52%,
      #e5f5f9 100%
    );

  padding:32px 0 28px;

  overflow:hidden;
}


/* =====================================================
   ELEMENTO DECORATIVO
   ===================================================== */

.hero::before{
  content:"";

  position:absolute;

  width:360px;
  height:360px;

  border:55px solid rgba(0,101,135,.045);

  border-radius:50%;

  right:-130px;
  top:-170px;

  pointer-events:none;
}


/* =====================================================
   GRID PRINCIPAL
   ===================================================== */

.hero-grid{
  display:grid;

  grid-template-columns:
    minmax(0,1.05fr)
    minmax(420px,.95fr);

  gap:48px;

  align-items:center;

  position:relative;

  z-index:1;
}


/* =====================================================
   CONTEÚDO
   ===================================================== */

.hero-content{
  position:relative;

  z-index:2;
}


/* =====================================================
   EYEBROW
   ===================================================== */

.eyebrow{
  display:inline-flex;

  align-items:center;

  gap:12px;

  color:var(--ep-primary);

  font-size:.76rem;

  font-weight:850;

  text-transform:uppercase;

  letter-spacing:.14em;
}


.eyebrow::before{
  content:"";

  width:42px;

  height:3px;

  background:var(--ep-accent);

  border-radius:3px;
}


/* =====================================================
   TÍTULO PRINCIPAL
   ===================================================== */

.hero h1{
  font-size:clamp(2.8rem,5vw,4.8rem);

  line-height:.98;

  letter-spacing:-.055em;

  margin:16px 0 18px;

  max-width:720px;

  color:#17313b;
}


.hero h1 span{
  color:var(--ep-primary);
}


/* =====================================================
   SUBTÍTULO
   ===================================================== */

.hero-subtitle{
  font-size:1.05rem;

  line-height:1.55;

  color:#3d5059;

  margin:0 0 8px;

  font-weight:500;
}


.hero-subtitle strong{
  color:#17313b;

  font-weight:800;
}


/* =====================================================
   TEXTO DESCRITIVO
   ===================================================== */

.hero p{
  font-size:1rem;

  line-height:1.65;

  color:#5f7580;

  max-width:680px;

  margin:0 0 20px;
}


/* =====================================================
   BOTÕES
   ===================================================== */

.hero-actions{
  display:flex;

  gap:14px;

  flex-wrap:wrap;

  margin-top:6px;
}


/* =====================================================
   ÁREA VISUAL
   ===================================================== */

.hero-visual{
  position:relative;

  width:100%;

  min-height:455px;

  display:flex;

  align-items:flex-start;

  justify-content:center;

  padding-bottom:72px;
}


/* =====================================================
   PAINEL EXTERNO
   ===================================================== */

.hero-panel{
  width:min(100%,620px);

  min-height:390px;

  border-radius:30px;

  background:#ffffff;

  border:
    1px solid
    rgba(0,101,135,.10);

  box-shadow:
    0 22px 55px
    rgba(22,77,93,.14);

  padding:14px;

  position:relative;

  z-index:1;

  overflow:hidden;
}


/* =====================================================
   PAINEL INTERNO
   ===================================================== */

.hero-panel-inner{
  position:relative;

  min-height:362px;

  border-radius:24px;

  background:
    linear-gradient(
      155deg,
      #006f90 0%,
      #004d66 100%
    );

  color:#ffffff;

  padding:34px 42px;

  display:flex;

  flex-direction:column;

  justify-content:center;

  overflow:hidden;
}


/* =====================================================
   ELEMENTOS DECORATIVOS DO CARD
   ===================================================== */

.hero-panel-inner::before,
.hero-panel-inner::after{
  content:"";

  position:absolute;

  border:
    1px solid
    rgba(255,255,255,.13);

  border-radius:50%;
}


.hero-panel-inner::before{
  width:240px;

  height:240px;

  right:-80px;

  top:-55px;
}


.hero-panel-inner::after{
  width:170px;

  height:170px;

  right:-35px;

  top:-10px;
}


/* =====================================================
   KICKER DO PAINEL
   ===================================================== */

.hero-panel-kicker{
  position:relative;

  z-index:2;

  font-size:.72rem;

  letter-spacing:.16em;

  text-transform:uppercase;

  font-weight:850;

  opacity:.78;

  margin-bottom:12px;
}


/* =====================================================
   TÍTULO DO PAINEL
   ===================================================== */

.hero-panel-title{
  position:relative;

  z-index:2;

  font-size:
    clamp(
      1.7rem,
      2.8vw,
      2.6rem
    );

  line-height:1.08;

  font-weight:850;

  letter-spacing:-.035em;

  margin:0 0 20px;

  max-width:430px;
}


/* =====================================================
   TEXTO DO PAINEL
   ===================================================== */

.hero-panel-text{
  position:relative;

  z-index:2;

  opacity:.85;

  max-width:430px;

  margin:0 0 22px;

  line-height:1.55;

  color:#ffffff !important;
}


/* =====================================================
   LISTA DE BENEFÍCIOS
   ===================================================== */

.hero-benefits{
  position:relative;

  z-index:2;

  display:flex;

  flex-direction:column;

  gap:12px;

  margin-top:4px;
}


.hero-benefit{
  display:flex;

  align-items:center;

  gap:12px;

  font-weight:700;

  font-size:.95rem;
}


.hero-benefit-icon{
  width:34px;

  height:34px;

  border-radius:50%;

  display:flex;

  align-items:center;

  justify-content:center;

  flex-shrink:0;

  background:
    rgba(255,255,255,.08);

  color:#4ee0b3;
}


/* =====================================================
   ÚNICO CARD FLUTUANTE
   ===================================================== */

.hero-floating-bottom{
  position:absolute;

  z-index:3;

  right:-50px;

  bottom:50px;

  width:min(78%,360px);

  background:#ffffff;

  color:#17313b;

  border:
    1px solid
    rgba(0,101,135,.10);

  border-radius:20px;

  box-shadow:
    0 18px 40px
    rgba(22,77,93,.14);

  padding:16px 24px;
}


.hero-floating-bottom small{
  display:block;

  color:var(--ep-primary);

  font-weight:850;

  letter-spacing:.14em;

  text-transform:uppercase;

  font-size:.68rem;

  margin-bottom:8px;
}


.hero-floating-bottom strong{
  display:block;

  font-size:.88rem;

  line-height:1.45;

  letter-spacing:.04em;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width:1100px){

  .hero{
    padding:36px 0 30px;
  }


  .hero-grid{
    grid-template-columns:1fr;

    gap:32px;
  }


  .hero h1{
    max-width:850px;
  }


  .hero-visual{
    min-height:455px;

    max-width:700px;

    margin:auto;
  }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width:768px){

  .hero{
    padding:32px 0 28px;
  }


  .hero-grid{
    gap:28px;
  }


  .hero h1{
    font-size:
      clamp(
        2.7rem,
        12vw,
        4.2rem
      );

    line-height:1;
  }


  .hero p{
    font-size:1rem;
  }


  .hero-actions{
    flex-direction:column;

    align-items:stretch;
  }


  .hero-actions .btn{
    width:100%;

    justify-content:center;
  }


  .hero-visual{
    min-height:auto;

    display:flex;

    flex-direction:column;

    gap:16px;

    padding-bottom:0;
  }


  .hero-panel{
    width:100%;

    min-height:auto;

    padding:12px;
  }


  .hero-panel-inner{
    min-height:340px;

    padding:28px 24px;
  }


  .hero-floating-bottom{
    position:relative;

    right:auto;

    bottom:auto;

    width:100%;

    margin:0;

    order:2;
  }

}


/* =====================================================
   MOBILE PEQUENO
   ===================================================== */

@media (max-width:480px){

  .hero{
    padding:28px 0 24px;
  }


  .eyebrow{
    font-size:.68rem;
  }


  .eyebrow::before{
    width:30px;
  }


  .hero h1{
    font-size:2.75rem;

    letter-spacing:-.045em;
  }


  .hero-panel-inner{
    min-height:320px;

    padding:24px;
  }


  .hero-panel-title{
    font-size:1.85rem;
  }


  .hero-floating-bottom{
    padding:16px 18px;
  }

}
.section{padding:76px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}
.section-kicker{font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--ep-primary);font-weight:850}
.section h2{font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.1;letter-spacing:-.03em;margin:8px 0}
.section-intro{max-width:680px;color:var(--ep-muted);margin:0}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  background:#fff;border:1px solid var(--ep-border);border-radius:var(--ep-radius);
  padding:26px;box-shadow:0 6px 24px rgba(20,63,76,.05)
}
.card-icon{width:48px;height:48px;border-radius:14px;background:var(--ep-primary-light);color:var(--ep-primary);display:grid;place-items:center;font-weight:900;margin-bottom:18px}
.card h3{margin:0 0 8px;font-size:1.15rem}
.card p{margin:0;color:var(--ep-muted)}
.card-link{display:inline-block;margin-top:16px;font-weight:750}


.cta{background:var(--ep-primary);color:#fff;border-radius:28px;padding:42px}
.cta-grid{display:flex;align-items:center;justify-content:space-between;gap:30px}
.cta h2{margin:0 0 8px;color:#fff}
.cta p{margin:0;color:rgba(255,255,255,.78);max-width:650px}
.cta .btn{background:#fff;color:var(--ep-primary)}

.content-area{padding:56px 0}
.content-wrap{background:#fff;border:1px solid var(--ep-border);border-radius:var(--ep-radius);padding:clamp(24px,4vw,52px)}
.entry-title{font-size:clamp(2rem,4vw,3.2rem);line-height:1.08;letter-spacing:-.04em;margin:0 0 18px}
.entry-meta{color:var(--ep-muted);font-size:.9rem;margin-bottom:28px}
.entry-content{max-width:850px}
.entry-content h2,.entry-content h3{line-height:1.2;margin-top:2em}
.entry-content img{border-radius:14px}
.entry-content blockquote{border-left:4px solid var(--ep-primary);margin:24px 0;padding:8px 20px;background:var(--ep-primary-light);border-radius:0 12px 12px 0}

.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{background:#fff;border:1px solid var(--ep-border);border-radius:var(--ep-radius);overflow:hidden}
.post-card-body{padding:22px}
.post-card h2{font-size:1.25rem;line-height:1.2;margin:0 0 10px}
.post-card p{color:var(--ep-muted);margin:0}
.post-thumb{aspect-ratio:16/9;background:var(--ep-primary-light);overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.pagination{margin-top:32px}

.site-footer{margin-top:60px;background:#092f3d;color:#d7e7eb;padding:54px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:40px}
.site-footer h3{color:#fff;margin-top:0}
.site-footer a{color:#d7e7eb}
.footer-bottom{margin-top:40px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);font-size:.85rem;color:#a9c0c7}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .cards,.archive-grid{grid-template-columns:1fr 1fr}
  .primary-nav{display:none}
  .menu-toggle{display:block}
  .header-actions .btn{display:none}
  .primary-nav.is-open{display:block;position:absolute;left:16px;right:16px;top:70px;background:#fff;border:1px solid var(--ep-border);border-radius:16px;padding:18px;box-shadow:var(--ep-shadow)}
  .primary-nav.is-open ul{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
  .cta-grid{flex-direction:column;align-items:flex-start}
}
@media (max-width:620px){
  .container{width:min(calc(100% - 24px),var(--ep-container))}
  .hero{padding:54px 0}
  .section{padding:56px 0}
  .cards,.archive-grid,.footer-grid{grid-template-columns:1fr}
  .section-head{display:block}
  .header-main{min-height:68px}
  .brand-sub{display:none}
}


@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:38px}
  .hero{padding:64px 0}
  .hero-visual{min-height:390px}
  .hero-panel{width:min(100%,560px)}
  .primary-nav{display:none}
  .menu-toggle{display:block}
  .header-actions .btn{display:none}
  .primary-nav.is-open{
    display:block;
    position:absolute;
    left:16px;right:16px;top:70px;
    background:#fff;border:1px solid var(--ep-border);
    border-radius:16px;padding:18px;box-shadow:var(--ep-shadow)
  }
  .primary-nav.is-open ul{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
}
@media (max-width:620px){
  .brand{min-width:0}
  .brand .custom-logo{max-height:52px;max-width:230px}
  .hero{padding:52px 0}
  .hero h1{font-size:clamp(2.5rem,13vw,4rem)}
  .hero-visual{min-height:330px}
  .hero-panel{padding:12px;border-radius:24px}
  .hero-panel-inner{min-height:300px;padding:24px;border-radius:19px}
  .hero-floating{left:6px;top:16px;min-width:170px;padding:11px 12px}
}


/* =========================================================
   HOMEPAGE — CSS AUTORITATIVO v1.5.0
   Mantido no style.css principal para eliminar dependência
   condicional de carregamento e reduzir conflitos/cache.
   ========================================================= */
/* Enfermagem Piauí — Homepage 1.4.0
   CSS autoritativo dos componentes da homepage.
   Escopo .ep-home evita conflitos com plugins/estilos legados. */
.ep-home .trust-section{padding:22px 0;background:#f7fafb;border-top:1px solid #e1ecef;border-bottom:1px solid #e1ecef}
.ep-home .trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.ep-home .trust-item{display:flex;align-items:center;gap:17px;min-height:104px;padding:18px 20px;background:#fff;border:1px solid #d7e5e9;border-radius:20px;box-shadow:0 10px 26px rgba(20,63,76,.045);box-sizing:border-box;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ep-home .trust-item:hover{transform:translateY(-2px);border-color:#c7dce2;box-shadow:0 14px 30px rgba(20,63,76,.075)}
.ep-home .trust-icon{flex:0 0 50px;width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#eef8fa;border:1px solid #d2e9ee;color:#006587;font-size:.78rem;line-height:1;font-weight:900}
.ep-home .trust-item>div:last-child{min-width:0}
.ep-home .trust-item strong{display:block;margin:0 0 5px;color:#17313b;font-size:1rem;line-height:1.2;font-weight:800}
.ep-home .trust-item span{display:block;margin:0;color:#607783;font-size:.82rem;line-height:1.45}

.ep-home .services-section{background:#fff}
.ep-home .services-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.ep-home .service-card{position:relative;min-width:0;min-height:255px;padding:26px;background:#fff;border:1px solid #dbe7eb;border-radius:20px;box-shadow:0 7px 24px rgba(20,63,76,.045);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ep-home .service-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(20,63,76,.10);border-color:rgba(0,101,135,.22)}
.ep-home .service-number{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 0 30px;border-radius:13px;background:#eaf6fa;color:#006587;font-size:.78rem;font-weight:900}
.ep-home .service-card h3{margin:0 0 9px;font-size:1.13rem;line-height:1.18;color:#17313b}
.ep-home .service-card p{margin:0;color:#637780;font-size:.92rem;line-height:1.55}
.ep-home .service-arrow{position:absolute;right:24px;bottom:23px;color:#006587;font-weight:900;font-size:1.05rem}

/* Espaços dedicados à monetização: não são anúncios por si só. */
.ep-home .ep-ad-slot{width:min(calc(100% - 32px),1180px);margin:0 auto;padding:18px 0 24px;min-height:122px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}
.ep-home .ep-ad-label{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.12em;color:#8799a0;margin-bottom:10px}
.ep-home .ep-ad-code{width:100%;min-height:76px;display:flex;align-items:center;justify-content:center;border:1px solid #edf1f3;background:#fbfcfd;color:#a1afb4;font-size:11px;line-height:1.3}
.ep-home .ep-ad-code span{display:block}

/* Bloco editorial: regras críticas ficam neste arquivo para evitar regressões por CSS legado/cache. */
.ep-home .editorial-section{background:#f7fafb}
.ep-home .editorial-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:32px}
.ep-home .editorial-head>div:first-child{min-width:0}
.ep-home .editorial-all{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;color:#006587!important;font-weight:800;font-size:.9rem;text-decoration:none!important;padding-bottom:5px;border-bottom:1px solid rgba(0,101,135,.25)}
.ep-home .editorial-all span,.ep-home .editorial-read span{display:inline-block;margin-left:5px;transition:transform .18s ease}
.ep-home .editorial-all:hover span,.ep-home .editorial-read:hover span{transform:translate(2px,-2px)}
.ep-home .editorial-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.9fr);gap:22px;align-items:stretch}
.ep-home .editorial-featured,.ep-home .editorial-mini{background:#fff;border:1px solid #dbe7eb;border-radius:24px;overflow:hidden;box-shadow:0 8px 28px rgba(20,63,76,.045)}
.ep-home .editorial-featured{display:grid;grid-template-columns:1.04fr .96fr;min-height:390px}
.ep-home .editorial-featured-media,.ep-home .editorial-mini-media{display:block;overflow:hidden;background:#e9f6fa;text-decoration:none!important}
.ep-home .editorial-featured-media{min-height:100%}
.ep-home .editorial-featured-media img,.ep-home .editorial-mini-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.ep-home .editorial-featured:hover .editorial-featured-media img,.ep-home .editorial-mini:hover .editorial-mini-media img{transform:scale(1.025)}
.ep-home .editorial-featured-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:34px;min-width:0}
.ep-home .editorial-meta{display:flex!important;flex-wrap:wrap;align-items:center;gap:9px;margin:0 0 13px;color:#6a7f88!important;font-size:.75rem;line-height:1.3}
.ep-home .editorial-meta span{display:inline-block!important;color:#006587!important;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.ep-home .editorial-meta time{display:inline-block!important;color:#6a7f88!important;padding-left:9px;border-left:1px solid #d5e2e6}
.ep-home .editorial-featured h3,.ep-home .editorial-mini h3{display:block!important;color:#17313b!important;visibility:visible!important;opacity:1!important}
.ep-home .editorial-featured h3{margin:0 0 13px;font-size:clamp(1.55rem,2.4vw,2.25rem);line-height:1.1;letter-spacing:-.035em}
.ep-home .editorial-featured h3 a,.ep-home .editorial-mini h3 a{display:inline!important;color:#17313b!important;visibility:visible!important;opacity:1!important;text-decoration:none!important}
.ep-home .editorial-featured p,.ep-home .editorial-mini p{display:block!important;margin:0;color:#637780!important;visibility:visible!important;opacity:1!important}
.ep-home .editorial-read{display:inline-flex!important;align-items:center;color:#006587!important;margin-top:22px;font-size:.86rem;font-weight:850;text-decoration:none!important;visibility:visible!important;opacity:1!important}
.ep-home .editorial-side{display:grid;grid-template-rows:1fr 1fr;gap:22px;min-width:0}
.ep-home .editorial-mini{display:grid;grid-template-columns:150px 1fr;min-height:0}
.ep-home .editorial-mini-media{min-height:100%}
.ep-home .editorial-mini-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:24px;min-width:0}
.ep-home .editorial-mini h3{margin:0 0 8px;font-size:1.18rem;line-height:1.18}
.ep-home .editorial-mini p{font-size:.88rem;line-height:1.45}
.ep-home .editorial-mini .editorial-read{margin-top:13px;font-size:.8rem}
.ep-home .editorial-placeholder{width:100%;height:100%;min-height:220px;display:grid;place-items:center;text-align:center;background:linear-gradient(145deg,#e9f6fa,#d7edf2);color:#006587;font-weight:900;font-size:1.1rem;line-height:1.05}
.ep-home .editorial-placeholder-small{min-height:130px;font-size:.9rem}
.ep-home .editorial-empty{display:flex;flex-direction:column;gap:6px;padding:34px;background:#fff;border:1px dashed #c8dce2;border-radius:20px;color:#637780}
.ep-home .editorial-empty strong{color:#17313b}

@media (max-width:1050px){
  .ep-home .services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ep-home .editorial-grid{grid-template-columns:1fr}
  .ep-home .editorial-featured{min-height:340px}
  .ep-home .editorial-side{grid-template-columns:1fr 1fr;grid-template-rows:none}
}
@media (max-width:900px){
  .ep-home .trust-grid{grid-template-columns:1fr}
  .ep-home .trust-item{min-height:88px}
}
@media (max-width:700px){
  .ep-home .editorial-head{display:block}
  .ep-home .editorial-all{margin-top:14px}
  .ep-home .editorial-featured{display:block}
  .ep-home .editorial-featured-media{height:250px}
  .ep-home .editorial-featured-body{padding:25px}
  .ep-home .editorial-side{grid-template-columns:1fr}
  .ep-home .editorial-mini{grid-template-columns:120px 1fr}
}
@media (max-width:620px){
  .ep-home .services-grid{grid-template-columns:1fr}
  .ep-home .service-card{min-height:220px}
  .ep-home .trust-section{padding:16px 0}
  .ep-home .trust-item{min-height:0;padding:14px 16px;border-radius:16px}
  .ep-home .trust-icon{flex-basis:46px;width:46px;height:46px;border-radius:13px}
  .ep-home .ep-ad-slot{width:min(calc(100% - 24px),1180px);min-height:104px;padding:14px 0 20px}
  .ep-home .ep-ad-code{min-height:64px}
}
@media (max-width:520px){
  .ep-home .editorial-mini{display:block}
  .ep-home .editorial-mini-media{height:190px}
  .ep-home .editorial-mini-body{padding:22px}
}



/* =========================================================
   HOMEPAGE COMPONENT GUARDS
   Neutraliza interferências comuns de plugins/legado.
   ========================================================= */
.ep-home .trust-grid,
.ep-home .services-grid,
.ep-home .editorial-grid,
.ep-home .editorial-side{
  list-style:none;
  margin:0;
  padding:0;
}
.ep-home .trust-grid > *,
.ep-home .services-grid > *,
.ep-home .editorial-grid > *,
.ep-home .editorial-side > *{
  margin-block-start:0;
}
.ep-home .service-card,
.ep-home .trust-item,
.ep-home .editorial-featured,
.ep-home .editorial-mini{
  box-sizing:border-box;
}
.ep-home .editorial-featured h3,
.ep-home .editorial-mini h3{
  visibility:visible;
  opacity:1;
}
.ep-home .editorial-featured h3 a,
.ep-home .editorial-mini h3 a{
  visibility:visible;
  opacity:1;
}
.ep-home .editorial-featured-body > *,
.ep-home .editorial-mini-body > *{
  max-width:100%;
}
.ep-home .ep-ad-slot{
  clear:both;
  position:relative;
  z-index:1;
}


/* Stable ad geometry: prevents content jumping when AdSense loads. */
.ep-home .ep-ad-slot{
  min-height:140px;
  padding:20px 0 26px;
}
.ep-home .ep-ad-code{
  min-height:90px;
  max-width:970px;
}

/* ==========================================================
   ENFERMAGEM PIAUÍ — BLOCO PUBLICITÁRIO
   ========================================================== */

.ep-ad-slot {
    width: min(100% - 40px, 1440px);
    min-height: 96px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dce7eb;
    border-radius: 20px;
    background: #f9fbfc;
    box-sizing: border-box;
}

.ep-ad-label {
    color: #6b8791;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ep-ad-code {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aadb4;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.ep-ad-code span {
    display: block;
}

@media (max-width: 680px) {
    .ep-ad-slot {
        width: min(100% - 32px, 1440px);
        min-height: 86px;
        padding: 16px 20px;
        border-radius: 16px;
    }

    .ep-ad-code {
        min-height: 28px;
    }
}
/* Aproxima conteúdos da área publicitária */
.editorial-section {
    padding-top: 52px;
}