/*
Theme Name: Memorial do PNLD
Theme URI: https://cchla.ufrn.br/pnld/
Author: Dias
Description: A WordPress theme for <a href="https://cchla.ufrn.br/pnld/" target="_blank"> Memorial do PNLD</a>
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

*,
* :before,
* :after {
  all: unset;
  display: revert;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}

a,
b,
body,
div,
form,
h1,
h2,
h3,
h4,
h5,
h6,
html,
i,
iframe,
img,
label,
li,
p,
section,
span,
strong,
table,
tbody,
td,
tfoot,
th,
thead,
tr,
ul {
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  width: 100%;
  height: 100dvh;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  color: rgb(40, 40, 40);
  font-size: 15px;
  line-height: 1.6;
}

body {
  background-color: rgb(244, 244, 245);
  height: 100%;
}

a {
  color: rgb(11, 57, 84);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 10%;
}

img {
  max-width: 100%;
}
input,
select,
textarea {
  width: 100%;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 10px 14px 9px;
}
input:focus,
input:focus-within,
select:focus,
select:focus-within,
textarea:focus,
textarea:focus-within {
  border: 1px solid rgba(0, 0, 0, 0.15);
}
label {
  width: 100%;
  cursor: pointer;
}
input[type='checkbox'],
input[type='radio'] {
  display: none;
}
label:before {
  content: '';
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  margin-right: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
}
label:has(input:checked):before {
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.7);
  color: rgb(255, 255, 255);
}
select {
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNDU0NTQ1O30KPC9zdHlsZT4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTAuMiwzLjRsNC4zLDQuM2MwLjMsMC4zLDAuNywwLjMsMSwwbDQuMy00LjNjMC4zLTAuMywwLjMtMC43LDAtMXMtMC43LTAuMy0xLDBMNSw2LjFMMS4yLDIuMwoJYy0wLjItMC4yLTAuNy0wLjItMSwwUy0wLjEsMy4xLDAuMiwzLjR6Ii8+Cjwvc3ZnPgo=');
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 10px;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-class='wpcf7cf_group'] {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}
ol {
  list-style-position: inside;
}

ul.list-style li {
  margin-bottom: 4px;
}

ul.list-style li:last-child {
  margin-bottom: 0;
}

ul.list-style li:before {
  content: 'â€¢';
  margin-right: 4px;
}

table,
thead,
tbody,
tfoot,
tr,
td,
th {
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
}

table td {
  vertical-align: middle;
}

p {
  margin-bottom: 1rem;
}
p:last-of-type {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.4;
}

h1 {
  font-size: 3.815rem;
  margin-bottom: 1.815rem;
}

h2 {
  font-size: 3.052rem;
  margin-bottom: 1.052rem;
}

h3 {
  font-size: 2.441rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.953rem;
  margin-bottom: 1rem;
}

h5 {
  font-size: 1.563rem;
  margin-bottom: 1rem;
}

h6 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

small {
  font-size: 0.8rem;
}
.blue,
.button,
a.article-box:after {
  background-color: rgb(11, 57, 84);
}
.w-max {
  width: 100%;
}
.txt-center {
  text-align: center;
}
a,
.animate,
.button,
label:before {
  transition: all 150ms ease-in-out;
}
.shadow,
.article-box {
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
}
.button {
  text-decoration: none;
  text-align: center;
  color: rgb(255, 255, 255);
  padding: 16px 28px;
  font-weight: 600;
  border-radius: 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.button.border {
  border: 1px solid rgb(11, 57, 84);
  color: rgb(11, 57, 84);
  background-color: rgb(255, 255, 255);
}
.button.blank {
  border: 1px solid transparent;
  color: rgb(11, 57, 84);
  background-color: rgb(255, 255, 255);
}

.page-overflow {
  width: 100%;
  min-width: 375px;
  min-height: 100%;
}

.page-wrap {
  width: 100%;
  padding-bottom: 82px;
  align-content: flex-start;
  position: relative;
}
.page-wrap-inner {
  padding-top: 32px;
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.flex,
.wrap,
.row,
.column,
.justify-start,
.justify-center,
.justify-end,
.justify-between,
.align-start,
.align-center,
.align-end,
.align-stretch,
.self-end,
.grow,
.page-overflow,
.page-wrap,
.wp-block-columns,
label {
  display: flex;
}
.wrap,
.page-wrap {
  flex-wrap: wrap;
}
.row {
  flex-direction: row;
}
.column,
.page-overflow {
  flex-direction: column;
}
.justify-start {
  justify-content: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.align-start {
  align-items: flex-start;
}
.align-center,
label {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.align-stretch {
  align-items: stretch;
}
.grow,
.page-wrap {
  flex-grow: 1;
}
.m-top-05 {
  margin-top: 0.5rem;
}
.m-top-1 {
  margin-top: 1rem;
}
.m-top-15 {
  margin-top: 1.5rem;
}
.m-top-2 {
  margin-top: 2rem;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/wp-content/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/wp-content/fonts/inter-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'icons';
  src: url('/wp-content/fonts/icons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^='icon-'],
[class*=' icon-'],
label:before,
a.article-box:after {
  font-family: 'icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}
.icon-check:before,
label:has(input:checked):before {
  content: '\e909';
}
.icon-chevron-right:before {
  content: '\e907';
}
.icon-facebook:before {
  content: '\e900';
}
.icon-instagram:before {
  content: '\e901';
}
.icon-link:before,
a.article-box:after {
  content: '\e90a';
}
.icon-mail:before {
  content: '\e902';
}
.icon-menu:before,
.menu-toggle .icon-toggle:before {
  content: '\e903';
}
.icon-phone:before {
  content: '\e904';
}
.icon-search:before {
  content: '\e90b';
}
.icon-twitter:before {
  content: '\e905';
}
.icon-x:before,
body.menu-open .menu-toggle .icon-toggle:before {
  content: '\e908';
}
.icon-youtube:before {
  content: '\e906';
}

.page-mrg {
  width: 100%;
  max-width: 1680px;
  padding-left: 42px;
  padding-right: 42px;
}

header {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 1) 100%),
    url('/wp-content/uploads/header-bg.jpg');
  background-color: #eee;
  background-size: cover;
  background-position: center;
  text-align: right;
}
header img {
  max-height: 142px;
}
.header-inner {
  padding-top: 52px;
  padding-bottom: 52px;
}
.header-bar {
  top: 0;
  position: sticky;
  z-index: 999;
}
.header-menu {
  margin-left: -22px;
}
.header-menu a,
.menu-toggle {
  display: flex;
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 600;
  padding-left: 22px;
  padding-right: 22px;
  line-height: 52px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.header-menu .sub-menu {
  display: none;
  position: absolute;
  background-color: rgb(11, 57, 84);
}
.header-menu li:hover > .sub-menu {
  display: block;
}
.sub-menu li {
  border-top: 1px solid rgb(58, 106, 134);
  display: flex;
  align-items: center;
}
.header-menu .sub-menu:not(.header-menu > ul > li > .sub-menu) {
  border-left: 1px solid rgb(58, 106, 134);
  left: 100%;
  top: 0;
}
.header-menu li:has(.sub-menu):not(.header-menu > ul > li) {
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI5LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDIuMS4wIEJ1aWxkIDEwOCkgIC0tPgogIDxkZWZzPgogICAgPHN0eWxlPgogICAgICAuc3QwIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjEuNjYsMTMuNjdMMi4zNCwyM3YtNC40OWwxNC4wOC02LjM2di0uMjZMMi4zNCw1LjUzVjFsMTkuMzMsOS4zNXYzLjMxWiIvPgo8L3N2Zz4=');
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 10px;
}
.header-menu li:has(.sub-menu):not(.header-menu > ul > li) a {
  padding-right: 38px;
}
.menu-toggle:after {
  content: 'Menu';
}
body.menu-open .menu-toggle:after {
  content: 'Fechar Menu';
}
.menu-toggle i {
  margin-right: 6px;
}

footer {
  color: rgb(255, 255, 255);
  padding-top: 42px;
  padding-bottom: 42px;
}
footer a {
  color: rgb(255, 255, 255);
}
footer h5:not(:first-of-type) {
  margin-top: 32px;
}
.footer-menu a {
  font-weight: 500;
  padding: 0 16px;
  line-height: 3rem;
}
.footer-contact i {
  margin-right: 6px;
  text-decoration: none;
}
.footer-contact {
  line-height: 3rem;
}
.footer-contact span {
  margin: 0 8px 0 12px;
}
.footer-contact i.icon-mail {
  margin-left: 32px;
}
.footer-social a {
  background: #fff;
  text-decoration: none;
  margin: 10px;
  font-size: 20px;
  padding: 12px;
  border-radius: 10px;
}
.footer-social a.icon-instagram {
  color: rgb(193, 53, 132);
}
.footer-social a.icon-twitter {
  color: rgb(29, 161, 242);
}
.footer-social a.icon-facebook {
  color: rgb(66, 103, 178);
}
.footer-social a.icon-youtube {
  color: rgb(255, 0, 0);
}
footer img {
  margin-top: 32px;
}

.wp-block-columns,
.home-latest-posts {
  gap: 22px;
}
.home-latest-posts li {
  flex-basis: 22%;
  flex-grow: 1;
}
.home-latest-posts li a {
  overflow: hidden;
  border-radius: 1rem;
  background-color: rgb(255, 255, 255);
  text-decoration: none;
}
.home-latest-posts h6 {
  margin: 0.9rem 1.2rem 0.5rem;
}
.home-latest-posts small {
  text-align: right;
  padding: 0 1rem 0.8rem;
  opacity: 0.6;
}
.home-latest-posts .post-img {
  background-color: rgb(238, 238, 238);
  background-size: cover;
  background-position: center;
  aspect-ratio: 1/1.2;
}
.wp-block-columns > div {
  flex-grow: 1;
}
.post-page {
  gap: 22px;
}
.post-page .content {
  width: calc(66.66% - 11px);
}
.post-page .thumb {
  width: calc(33.33% - 11px);
}
.post-page .share {
  gap: 22px;
  margin-top: 32px;
}
.single-post-share {
  margin-top: 52px;
  gap: 22px;
}
.single-post-share .button {
  flex-basis: 50%;
}
.single-post-share .button.done,
.form-sent {
  background-color: rgb(204, 222, 213);
  border: 1px solid rgb(0, 91, 48);
}
.article-box {
  margin: 1rem 0;
  text-decoration: none;
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  background: rgb(255, 255, 255);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem 0.7rem;
}
a.article-box {
  padding-right: 4rem;
}
.article-box:after {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: rgb(255, 255, 255);
  font-size: 1.3rem;
  padding: 0.5rem;
  transform: translate(0, -50%);
  border-radius: 0.5rem;
}
.article-box .title {
  font-weight: 600;
}
.article-box .author {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.25rem;
}

.article-box.summ {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.article-box.summ img {
  max-width: 80px;
  height: auto;
}
.article-box.summ a {
  display: flex;
}

.article-box.summ .disciplina:before {
  content: 'Disciplina: ';
  font-weight: bold;
}

.article-box.summ .editora:before {
  content: 'Editora: ';
  font-weight: bold;
}

.article-box.summ .colecao:before {
  content: 'Coleção: ';
  font-weight: bold;
}

#search-bar {
  margin-bottom: 22px;
}

@media (hover: hover) {
  a:hover,
  .button:hover {
    opacity: 0.8;
    text-underline-offset: 20%;
  }
  .shadow.hover:hover,
  a.article-box:hover {
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16);
  }
}

@media screen and (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}
@media screen and (max-width: 1023px) {
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .header-bar {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100dvh;
    top: 0;
    left: 0;
  }
  body.menu-open .header-bar-inner {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 62px;
  }
  body.menu-open .header-bar-inner {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    z-index: 1000;
  }
  .header-menu {
    display: none;
  }
  body.menu-open .header-menu {
    display: flex;
    margin-left: 0;
    padding-top: 22px;
  }
  body.menu-open .header-menu ul {
    flex-direction: column;
    width: 100%;
  }
  body.menu-open .header-menu li {
    padding: 0 22px;
  }
  body.menu-open .header-menu a {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    line-height: 1.4;
    font-size: 1.6rem;
    border-bottom: 1px solid rgb(58, 106, 134);
    white-space: wrap;
    text-overflow: clip;
  }
  body.menu-open .header-menu .sub-menu {
    width: calc(100% - 18px);
    display: flex;
    position: relative;
    margin-left: 18px;
  }
  body.menu-open .header-menu .sub-menu li {
    padding: 0;
  }
  body.menu-open .header-menu .sub-menu a {
    font-size: 1.25rem;
  }
  body.menu-open .header-menu .sub-menu li {
    display: block;
    width: 100%;
  }
  body.menu-open .header-menu .sub-menu:not(.header-menu > ul > li > .sub-menu) {
    left: 0;
    top: 0;
  }
  .header-menu .sub-menu:not(.header-menu > ul > li > .sub-menu),
  .sub-menu li {
    border: 0;
  }
  .header-menu li:has(.sub-menu):not(.header-menu > ul > li):after {
    display: none;
  }
  body.menu-open .menu-toggle {
    background: rgb(58, 106, 134);
    top: 0;
    position: sticky;
    z-index: 1001;
  }
  .home-latest-posts li {
    flex-basis: 40% !important;
  }
  .post-page .content {
    width: 100%;
    order: 2;
  }
  .post-page .thumb {
    text-align: center;
    width: 100%;
    order: 1;
  }
}

@media screen and (max-width: 768px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }
  .home-latest-posts li,
  .wp-block-column {
    flex-basis: 100% !important;
  }
  header {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.9) 100%
      ),
      url('/wp-content/uploads/header-bg.jpg');
  }
  .header-inner {
    justify-content: center;
  }
  .single-post-share {
    flex-direction: column;
  }
  .single .wp-block-columns > div {
    order: 2;
  }
  .single .wp-block-columns > div:last-of-type {
    order: 1;
  }
  .footer-menu {
    width: 100%;
  }
  .footer-menu ul {
    flex-direction: column;
  }
  .footer-menu ul li {
    border-bottom: 1px solid rgb(58, 106, 134);
  }
  .footer-menu li a {
    text-decoration: none;
  }
  .footer-break-line {
    width: 100%;
  }
}

@media screen and (max-width: 560px) {
  .post-page .share {
    flex-wrap: wrap;
  }
  .post-page .share .button {
    width: 100%;
  }
}
