/*
Theme Name: SBMV Institucional
Template: generatepress
Version: 1.0.0
Description: Identidade institucional da Câmara de Santa Bárbara do Monte Verde.
*/

:root {
  --sb-blue:#123957;
  --sb-dark:#09253a;
  --sb-gold:#b99656;
  --sb-bg:#f5f7fa;
}

body {background:var(--sb-bg);color:#263748}
.sb-wrap {max-width:1200px;margin:auto;padding:0 24px}
.sb-top {background:var(--sb-dark);color:#fff;padding:9px 0;font-size:13px}
.sb-hero {background:linear-gradient(120deg,#09253a,#20577b);color:#fff;padding:65px 0}
.sb-hero h1 {color:white;font-size:clamp(30px,4vw,48px);line-height:1.15}
.sb-hero p {color:#dce8ef;font-size:17px}
.sb-tag {color:#e5c78e;text-transform:uppercase;letter-spacing:2px;font-size:12px}
.sb-actions {display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.sb-btn {background:#fff;color:#123957;padding:13px 20px;border-radius:7px;font-weight:700;text-decoration:none}
.sb-btn:hover {background:#e5c78e;color:#09253a}
.sb-section {padding:45px 0}
.sb-section h2 {font-size:29px;margin-bottom:20px;color:var(--sb-dark)}
.sb-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.sb-card {background:#fff;padding:25px;border:1px solid #e2e7ed;border-radius:11px;text-decoration:none;color:#173b57;box-shadow:0 5px 18px #0b27440a}
.sb-card:hover {border-color:var(--sb-gold);transform:translateY(-2px)}
.sb-card strong {display:block;font-size:17px}
.sb-card small {color:#6c7883}
.sb-news {background:#fff;padding:23px;border-radius:10px;border:1px solid #e2e7ed}
.sb-news h3 {font-size:18px;margin:10px 0}
.sb-footer {background:var(--sb-dark);color:#dce6ed;padding:36px 0}
.sb-footer a {color:#fff}
@media(max-width:800px) {
  .sb-grid {grid-template-columns:repeat(2,1fr)}
  .sb-hero {padding:40px 0}
}
@media(max-width:520px) {
  .sb-grid {grid-template-columns:1fr}
  .sb-wrap {padding:0 16px}
}

/* CABEÇALHO INSTITUCIONAL V2 */
.sbmv-header {
    background:#fff;
    position:relative;
    z-index:100;
}

.sbmv-utility {
    background:#09263d;
    color:#e3edf4;
    font-size:12px;
    padding:9px 0;
}

.sbmv-utility .sb-wrap {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.sbmv-utility a {
    color:#e3edf4;
    text-decoration:none;
}

.sbmv-brand {
    display:flex;
    align-items:center;
    gap:20px;
    padding-top:23px;
    padding-bottom:23px;
}

.sbmv-brand-symbol {
    display:flex;
    justify-content:center;
    align-items:center;
    width:64px;
    height:64px;
    border:1px solid #bd9a62;
    border-radius:50%;
    color:#bd9a62;
    font-size:35px;
}

.sbmv-brand-kicker {
    color:#b58d51;
    font-weight:700;
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.sbmv-brand-name {
    font-size:26px;
    color:#102f47;
    font-weight:800;
    line-height:1.25;
}

.sbmv-brand-city {
    font-size:13px;
    color:#667583;
}

.sbmv-navigation {
    background:#143f5d;
}

.sbmv-nav-list {
    display:flex;
    align-items:center;
    list-style:none;
    padding:0;
    margin:0;
    gap:0;
    flex-wrap:wrap;
}

.sbmv-nav-list li {
    position:relative;
    margin:0;
    list-style:none;
}

.sbmv-nav-list a {
    display:block;
    padding:15px 13px;
    color:white;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.sbmv-nav-list a:hover,
.sbmv-nav-list a:focus {
    background:#245a7e;
    color:#fff;
}

.sbmv-nav-list .sub-menu {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:white;
    box-shadow:0 8px 28px #0002;
    margin:0;
    padding:7px;
    list-style:none;
    z-index:300;
}

.sbmv-nav-list .sub-menu a {
    color:#183a51;
    padding:11px 13px;
}

.sbmv-nav-list .sub-menu .sub-menu {
    left:100%;
    top:0;
}

.sbmv-nav-list li:hover > .sub-menu,
.sbmv-nav-list li:focus-within > .sub-menu {
    display:block;
}

@media(max-width:900px) {
    .sbmv-brand-name {font-size:21px}
    .sbmv-navigation .sbmv-nav-list {
        display:block;
        max-height:350px;
        overflow-y:auto;
    }
    .sbmv-nav-list .sub-menu {
        display:block;
        position:static;
        box-shadow:none;
        margin-left:16px;
        background:#eaf1f6;
    }
    .sbmv-nav-list a {padding:11px 15px}
}

/* Identidade visual oficial */
.sbmv-brand-symbol {
    width:auto;
    height:auto;
    min-width:72px;
    max-width:180px;
    border:none;
    border-radius:0;
    background:transparent;
    flex-shrink:0;
}

.sbmv-logo-oficial {
    display:block;
    width:auto;
    max-width:180px;
    height:auto;
    max-height:90px;
    object-fit:contain;
}

@media(max-width:600px) {
    .sbmv-logo-oficial {
        max-width:95px;
        max-height:70px;
    }

    .sbmv-brand {
        gap:12px;
    }
}

/* CABEÇALHO V3 */
.sbmv-brand {
    min-height:115px;
    justify-content:flex-start;
    padding-top:18px;
    padding-bottom:18px;
}

.sbmv-logo-link {
    display:inline-flex;
    align-items:center;
    text-decoration:none;
}

.sbmv-logo-oficial {
    width:auto;
    height:auto;
    max-width:420px;
    max-height:100px;
    object-fit:contain;
}

@media(max-width:600px) {
    .sbmv-brand {min-height:90px}
    .sbmv-logo-oficial {
        max-width:290px;
        max-height:75px;
    }
}

/* SBMV V3 — Portal institucional */
body.home {background:#f2f3f5}

.sbmv-v3 {
  max-width:1550px;
  margin:0 auto;
  padding:12px 25px 55px;
  color:#163450;
}

.sbmv-breadcrumb {
  font-size:12px;
  margin-bottom:15px;
  color:#52677b;
}

.sbmv-columns {
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 255px;
  gap:28px;
  align-items:start;
}

.sbmv-side-group {margin-bottom:17px}

.sbmv-side-group h2,
.sbmv-right-card h2 {
  background:#173f70;
  color:#fff;
  font-size:13px;
  font-weight:700;
  padding:10px 12px;
  margin:0;
  line-height:1.35;
}

.sbmv-side-group ul {
  margin:0;
  padding:0;
  list-style:none;
}

.sbmv-side-group li {
  margin:0;
  border-bottom:1px solid #dfe4e8;
}

.sbmv-side-group li a {
  display:block;
  padding:9px 10px;
  font-size:12px;
  font-weight:500;
  color:#24405b;
  text-decoration:none;
}

.sbmv-side-group li a:hover {
  background:#e5edf5;
  color:#0e3764;
}

.sbmv-main-banner {
  position:relative;
  background:linear-gradient(115deg,#062348 0%,#135187 72%,#3174a2 100%);
  min-height:335px;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.sbmv-main-banner:after {
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  border:55px solid #ffffff0c;
  border-radius:50%;
  right:-110px;
  top:-90px;
}

.sbmv-banner-content {
  position:relative;
  z-index:1;
  padding:35px 43px;
  max-width:720px;
}

.sbmv-banner-content > span {
  color:#f0cf83;
  font-size:12px;
  letter-spacing:2px;
  font-weight:700;
}

.sbmv-banner-content h1 {
  font-size:clamp(25px,2.4vw,41px);
  line-height:1.2;
  margin:15px 0;
  color:#fff;
  font-weight:800;
}

.sbmv-banner-content p {
  color:#e0edf8;
  font-size:15px;
  line-height:1.6;
}

.sbmv-banner-button {
  display:inline-block;
  margin-top:20px;
  padding:12px 20px;
  background:#f2cb76;
  color:#092c50;
  font-weight:700;
  text-decoration:none;
  border-radius:4px;
}

.sbmv-news {margin-top:40px}

.sbmv-section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-bottom:2px solid #1b4a79;
  margin-bottom:15px;
  padding-bottom:8px;
}

.sbmv-section-heading h2 {
  font-size:20px;
  margin:0;
  color:#153c65;
}

.sbmv-section-heading a {
  font-size:12px;
  text-decoration:none;
}

.sbmv-news-item {
  display:grid;
  grid-template-columns:130px minmax(0,1fr);
  gap:15px;
  padding:17px 0;
  border-bottom:1px solid #dce2e8;
}

.sbmv-news-image {
  display:flex;
  background:#e4ebf3;
  height:100px;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#204975;
  font-weight:700;
}

.sbmv-news-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.sbmv-news-info time {font-size:11px;color:#63778b}

.sbmv-news-info h3 {
  font-size:15px;
  line-height:1.4;
  margin:7px 0;
}

.sbmv-news-info h3 a {color:#113a65;text-decoration:none}
.sbmv-news-info p {font-size:12px;color:#6b7783;margin:0}

.sbmv-right-card {margin-bottom:24px}

.sbmv-feature-link {
  display:flex;
  min-height:210px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:13px;
  background:linear-gradient(145deg,#086244,#023e34);
  color:white;
  text-align:center;
  padding:22px 15px;
  text-decoration:none;
}

.sbmv-feature-link strong {font-size:19px;color:white}
.sbmv-feature-link small {color:#d6f0e7}
.sbmv-feature-link > span:last-child {
  background:#f2cf63;
  padding:9px 25px;
  color:#173c31;
  font-size:12px;
  font-weight:800;
  border-radius:5px;
}

.sbmv-feature-icon {
  font-size:35px;
  color:#f2cf63;
}

.sbmv-service-link {
  display:block;
  padding:13px 10px;
  border-bottom:1px solid #dce3e9;
  color:#173f70;
  background:#fff;
  font-size:13px;
  text-decoration:none;
  font-weight:600;
}

.sbmv-right-card form {padding:13px 5px}

@media(max-width:1100px) {
  .sbmv-columns {grid-template-columns:210px minmax(0,1fr)}
  .sbmv-right {grid-column:2}
}

@media(max-width:700px) {
  .sbmv-v3 {padding:12px 15px}
  .sbmv-columns {grid-template-columns:1fr}
  .sbmv-left,.sbmv-right {grid-column:1}
  .sbmv-center {grid-row:1}
  .sbmv-banner-content {padding:28px}
  .sbmv-main-banner {min-height:270px}
  .sbmv-news-item {grid-template-columns:100px 1fr}
}

/* SBMV V4 */

.sbmv-utility-inner,
.sbmv-utility-links {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.sbmv-brand {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:125px;
}

.sbmv-logo-oficial {
  max-width:420px;
  max-height:105px;
  width:auto;
  height:auto;
}

.sbmv-header-tools form {
  display:flex;
  align-items:stretch;
  margin:0;
}

.sbmv-header-tools input[type=search] {
  width:240px;
  max-width:100%;
  border:1px solid #d3dce5;
  border-radius:5px 0 0 5px;
  padding:10px 13px;
  background:#f8fafc;
}

.sbmv-header-tools button {
  border:0;
  background:#173f70;
  color:white;
  padding:10px 18px;
  border-radius:0 5px 5px 0;
  cursor:pointer;
}

.sbmv-navigation {
  box-shadow:0 3px 8px #071e351a;
}

.sbmv-nav-list a {
  font-size:13px;
  padding:16px;
}

.sbmv-menu-toggle {
  display:none;
  background:transparent;
  color:white;
  padding:13px 5px;
  border:0;
  font-weight:700;
}

.sbmv-footer {
  background:#244e81;
  color:#e7eef7;
  padding-top:55px;
}

.sbmv-footer-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:35px;
  padding-bottom:50px;
}

.sbmv-footer h2 {
  color:white;
  font-size:16px;
  border-bottom:1px solid #ffffff35;
  padding-bottom:12px;
  margin-bottom:15px;
}

.sbmv-footer a {
  display:block;
  color:#e7eef7;
  font-size:13px;
  padding:7px 0;
  text-decoration:none;
}

.sbmv-footer a:hover {
  text-decoration:underline;
  color:white;
}

.sbmv-footer p {
  color:#e7eef7;
  font-size:13px;
  line-height:1.8;
}

.sbmv-footer-bottom {
  background:#193b65;
  padding:18px 0;
  font-size:12px;
  color:#e7eef7;
}

@media(max-width:900px) {
  .sbmv-brand {
    flex-wrap:wrap;
    gap:12px;
  }

  .sbmv-footer-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px) {
  .sbmv-utility-links {
    display:none;
  }

  .sbmv-brand {
    padding:18px 0;
  }

  .sbmv-logo-oficial {
    max-width:280px;
    max-height:75px;
  }

  .sbmv-header-tools,
  .sbmv-header-tools form {
    width:100%;
  }

  .sbmv-header-tools input[type=search] {
    width:100%;
  }

  .sbmv-menu-toggle {
    display:block;
    width:100%;
    text-align:left;
  }

  .sbmv-menu-container {
    display:none;
  }

  .sbmv-menu-container.is-open {
    display:block;
  }

  .sbmv-nav-list {
    display:block;
    max-height:65vh;
    overflow:auto;
  }

  .sbmv-nav-list .sub-menu {
    position:static;
    display:block;
    background:#e9f0f7;
    box-shadow:none;
  }

  .sbmv-footer-grid {
    grid-template-columns:1fr;
    gap:20px;
  }
}

/* ===================================================
   SBMV — V5 ACABAMENTO INSTITUCIONAL
   =================================================== */

:root {
  --sbmv-primary: #173f70;
  --sbmv-secondary: #28558a;
  --sbmv-accent: #d9b46f;
  --sbmv-border: #e1e7ef;
}

/* Cabeçalho */
.sbmv-header {
  box-shadow: 0 2px 12px rgba(12,40,70,.08);
}

.sbmv-brand {
  min-height: 125px;
}

.sbmv-logo-oficial {
  max-width: 440px;
  max-height: 110px;
}

/* Menu */
.sbmv-navigation {
  background: #183f70;
}

.sbmv-nav-list > li > a {
  transition: background .2s;
}

.sbmv-nav-list > li > a:hover,
.sbmv-nav-list > .current-menu-item > a {
  background: #28558a;
  color: white;
}

/* Estrutura principal */
.sbmv-v3 {
  max-width: 1550px;
  margin: 0 auto;
  padding-top: 20px;
}

.sbmv-columns {
  gap: 30px;
}

/* Menus laterais */
.sbmv-side-group h2,
.sbmv-right-card h2 {
  background: var(--sbmv-primary);
  border-left: 3px solid var(--sbmv-accent);
}

.sbmv-side-group li a,
.sbmv-service-link {
  transition: background .2s, color .2s;
}

.sbmv-side-group li a:hover,
.sbmv-service-link:hover {
  background: #eaf0f7;
  color: #092e57;
}

/* Banner */
.sbmv-main-banner {
  border-bottom: 5px solid var(--sbmv-accent);
  background: linear-gradient(115deg,#08284d,#1e5c92);
}

.sbmv-banner-button {
  background: #e9c477;
  color: #102b46;
  transition: transform .2s, background .2s;
}

.sbmv-banner-button:hover {
  background: #f4d799;
  transform: translateY(-2px);
}

/* Notícias */
.sbmv-news-item {
  transition: background .2s;
}

.sbmv-news-item:hover {
  background: #f6f9fc;
}

.sbmv-news-image img {
  border-radius: 3px;
}

.sbmv-news-info h3 a:hover {
  color: #27649a;
  text-decoration: underline;
}

/* Rodapé */
.sbmv-footer {
  border-top: 4px solid var(--sbmv-accent);
}

.sbmv-footer a:hover {
  color: #ffe2a9;
}

/* Teclado e acessibilidade */
.sbmv-header a:focus-visible,
.sbmv-v3 a:focus-visible,
.sbmv-footer a:focus-visible,
.sbmv-header button:focus-visible {
  outline: 3px solid #e9b94d;
  outline-offset: 3px;
}

/* Responsividade */
@media(max-width:1100px) {
  .sbmv-columns {
    gap: 20px;
  }
}

@media(max-width:700px) {
  .sbmv-v3 {
    padding: 14px;
  }

  .sbmv-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .sbmv-main-banner {
    min-height: 260px;
  }

  .sbmv-banner-content h1 {
    font-size: 27px;
  }

  .sbmv-news-info h3 {
    font-size: 14px;
  }

  .sbmv-footer-grid {
    gap: 20px;
  }
}

/* V5 — eliminar pesquisas extras do Ivory Search na home */
body.home .is-search-form.is-form-id-462 {
    display: none !important;
}

