@import url('https://fonts.googleapis.com/css2?family=Story+Script&display=swap');

.mgv-inner-page{
  min-height: 40vh;
}

.mgv-inner-hero{
  margin: 0 0 10px;
}

.mgv-inner-content-wrap{
  padding: 0 0 40px;
}

.mgv-inner-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 24px;
}

.mgv-inner-copy,
.mgv-inner-copy p,
.mgv-inner-copy li,
.mgv-inner-copy blockquote,
.mgv-inner-copy figcaption{
  font-family: "Roboto", sans-serif;
  color: #111;
  line-height: 1.65;
  font-size: 1rem;
}

.mgv-inner-copy h1,
.mgv-inner-copy h2,
.mgv-inner-copy h3,
.mgv-inner-copy h4,
.mgv-inner-copy h5,
.mgv-inner-copy h6{
  font-family: "Oswald", sans-serif;
  line-height: 1.12;
  color: #111;
}

.mgv-inner-title{
  font-size: clamp(3rem, 5vw, 5.6rem);
}

.mgv-inner-subtitle,
.mgv-inner-copy .mgv-inner-subtitle,
.mgv-inner-copy .mgv-cat-desc{
  font-family: "Roboto", sans-serif !important;
  font-size: 1.05rem;
  color: rgba(0,0,0,.78);
  margin: 0 0 18px;
}

.mgv-inner-copy a{
  color: inherit;
}

.mgv-inner-copy img{
  max-width: 100%;
  height: auto;
}

.mgv-inner-copy > *:first-child{
  margin-top: 0;
}

.mgv-inner-copy > *:last-child{
  margin-bottom: 0;
}

.mgv-empty-state{
  padding: 8px 0 24px;
}

.mgv-action-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.mgv-action-links .button,
.mgv-inner-copy .wp-block-button__link,
.mgv-empty-state .button,
.mgv-search-item .button,
.mgv-archive-item .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  text-decoration: none !important;
  background: linear-gradient(180deg, #23c870 0%, #0d7371 100%);
  color: #fff !important;
  font-family: "Oswald", sans-serif;
  font-size: .98rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mgv-action-links .button:hover,
.mgv-inner-copy .wp-block-button__link:hover,
.mgv-empty-state .button:hover,
.mgv-search-item .button:hover,
.mgv-archive-item .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.mgv-search-grid,
.mgv-archive-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 16px;
  padding: 10px 0 30px;
}

.mgv-search-item,
.mgv-archive-item{
  background: rgba(255,255,255,.74);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 3px 14px rgba(0,0,0,.10);
  backdrop-filter: blur(2px);
}

.mgv-search-item h2,
.mgv-archive-item h2{
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 0 0 12px;
}

.mgv-search-item h2 a,
.mgv-archive-item h2 a{
  text-decoration: none;
}

.mgv-search-meta{
  margin: 0 0 12px;
}

.mgv-pagination{
  margin-top: 8px;
}

.mgv-pagination .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mgv-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  text-decoration: none;
  color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.mgv-pagination .page-numbers.current{
  background: linear-gradient(180deg, #23c870 0%, #0d7371 100%);
  color: #fff;
}

.mgv-single-thumb{
  margin: 0 0 22px;
}

.mgv-single-thumb img{
  display: block;
  width: 100%;
  max-width: 920px;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(0,0,0,.14);
}

body.mgv-page-institucional .mgv-inner-page,
body.mgv-page-search .mgv-inner-page,
body.mgv-page-404 .mgv-inner-page,
body.mgv-page-archive .mgv-inner-page,
body.mgv-page-single .mgv-inner-page{
  background: transparent;
}

@media (max-width: 767px){
  .mgv-inner-content{
    padding: 22px 16px 24px;
  }

  .mgv-inner-title{
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .mgv-action-links{
    flex-direction: column;
    align-items: stretch;
  }

  .mgv-action-links .button,
  .mgv-inner-copy .wp-block-button__link,
  .mgv-empty-state .button{
    width: 100%;
  }
}
