h4 {
  font-size: 100%;
  font-weight: 400;
  line-height: 136%;
}
.posts {
  .list {
    a {
      position: relative;
      &::after {
        content: " ";
        display: block;
        position: absolute;
        width: 50px;
        height: 50px;
        background-color: var(--red_torch);
        border-radius: 25px;
        background-image: url('../img/arrow_right_black.svg');
        background-repeat:no-repeat;
        background-position:center center;
        background-size: 60%;
        transform: rotate(-45deg);
        top: 60%;
        right: 10px;
        z-index: 5;
        transition: transform .5s, background .5s;
      }
      &:hover::after {
        transform: rotate(0deg);
        background-color: var(--black_charcoal);
      }
      img {
        object-fit: cover;
        width: 100%;
        aspect-ratio: 1;
        border-radius: 28px;
        position:relative;
      }
    }
    &.carrossel {
      display: flex;
      position: relative;
      right: 0;
      transition: right .5s;
      @media screen and (max-width: 1024px) {
        overflow: auto;
        scroll-snap-type: x mandatory;
        margin-left: -24px;
        margin-right: -24px;
        a {
          scroll-snap-align: center;
          min-width: min(296px, 80%);
          &:first-child { margin-left: 24px; }
          &:last-child { margin-right: 24px; }
        }
      }
      &.grab, &.grab a {
        cursor: grabbing;
      }
    }
    &.fullwidth {
      &.list {
        a {
          min-width: 85vw;
          @media screen and (min-width: 1024px) {
            min-width: 100%;
          }
          img {
            aspect-ratio: 16/9;
          }
          &::after {
            display: none;
          }
        }
      }
    }
  }
  .pager {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    @media screen and (max-width: 1024px) {
      display: none;
    }
    a {
      width: 20px;
      height: 10px;
      border: 1px solid;
      border-radius: 5px;
      overflow: hidden;
      line-height: 40px;
      background-color: white;
      transition: width .5s, background-color .5s;
      &.active {
        background-color: var(--black_charcoal);
        width: 40px;
      }
    }
  }
}
section.dark {
  background-color: var(--black_woodsmoke);
  color:white;
  a:not(.button) {
    color: white;
  }
  .pager a {
    border-color: var(--red_torch);
    &.active {
      background-color: var(--red_torch);
    }
  }
  h2 {
    color: var(--red_torch_light);
  }
}
.button {
  transition: background-color .5s, color .5s;
  &:hover, &:focus, &.black:hover {
    color: white;
    border-color: var(--red_torch);
    background-color: var(--red_torch);
    background-image: url('../img/arrow_right_black.svg');
    text-decoration: none;
  }
  &.leftarrow:hover {
    background-image: url('../img/arrow_left_black.svg');
  }
  &.close {
    background-image: url('../img/fechar.svg');
    background-position: right 8px center;
  }
  &.black.close {
    background-image: url('../img/fechar_black.svg');
  }
  &[disabled] {
    opacity: .4;
  }
}
.button.right {
  position: relative;
  top: 20px;
  @media (min-width: 1024px) {
    float: right;
    top: -48px;
  }
}
.posts.videos .carrossel a {
  position: relative;
  img, iframe {
    aspect-ratio: 405/720;
    transition: filter 0.5s;
    width: 100%;
    border-radius: 28px;
    border: none;
  }
  &::after {
    content: " ";
    display: block;
    position: absolute;
    background-image: url('../img/play.svg');
    background-color: #0003;
    background-size: 80px;
    background-position: center;
    transform: rotate(0deg);
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 405/720;
    opacity: 0;
    transition: opacity 0.5s;
    backdrop-filter: blur(10px);
  }
  &:hover {
    &::after { opacity: 1; }
  }
  &.playing {
    &::after { display: none; }
  }
}
footer {
  display: flex;
  justify-content: center;
  padding: 40px 24px 32px;
  background: white;
  > div {
    max-width: 1240px;
    width: 100%;
    @media (min-width: 1024px) {
      padding: 90px 24px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-areas: "a a b"
      "c c ."
      "d d e";
    }
  }
  h1 {
    color: var(--black_baltic);
    margin-bottom: 30px;
  }
  address {
    margin: 64px 0;
    font-style: normal;
    font-size: 88%;
    @media (min-width: 1024px) {
      grid-area: b;
      margin: 0;
    }
  }
  h2 {
    color: var(--black_baltic);
    text-transform: none;
    font-size: 125%;
    &::before {
      content: "";
    }
  }
  div.contatos {
    grid-area: c;
    margin: 120px 0;
    a {
      display: block;
      line-height: 2.5;
    }
  }
  nav.social {
    grid-area: d;
    a span {
      position: absolute;
      left: -3000px;
    }
  }
  div.contatos svg {
    margin-right: 16px;
    position: relative;
    top:5px;
  }
  nav {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    grid-area: e;
    max-width: 400px;
    flex-wrap: wrap;
    @media (max-width: 1023px) {
      &:not(.social) {
        flex-direction: column;
        margin: 64px 0;
      }
      &.social {
        justify-content: center;
      }
    }
  }
}
div.copyright {
  background: var(--black_woodsmoke);
  color: white;
  font-size: 78%;
  text-align: center;
  display: flex;
  justify-content: center;
  > div {
    padding: 8px 24px;
    max-width: 1240px;
    width: 100%;
    p {
      line-height: 1;
      margin: 8px 0;
    }
    @media (min-width: 1024px) {
      display: flex;
      justify-content: space-between;
      flex-direction: row-reverse;
    }
  }
}
.menu li:has(ul) > ul {
  top: 100%;
  left:0;
  padding: 31px 66px 31px 35px;
  border-radius: 0px 20px 20px 20px;
  background: var(--black_woodsmoke);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: opacity .2s;
  pointer-events: none;
  a {
    background: none;
    white-space: nowrap;
  }
}
.menu {
  li:hover, li:has(:focus) {
    a {
      background-color: var(--black_woodsmoke);
      color: white;
    }
  }
  li:has(ul):hover, li:has(ul):has(:focus) {
    @media screen and (min-width: 1024px) {
      > a {
        background-image: url('../img/arrow_up.svg');
      }
    }
    ul {
      opacity: 1;
      pointer-events: auto;
    }
  }
}
body {
  section, footer {
    transition: filter .5s, opacity .5s;
    > img {
      width: 100%;
      max-width: 1240px;
      border-radius:18px;
      height: 560px;
      object-fit: cover;
    }
  }
}
body:has(.menu li:hover), body:has(.menu li a:focus), body.menuon {
  section, footer {
    filter: blur(8px);
    opacity: 0.9;
  }
}
a:hover, a:focus {
  text-decoration: underline;
}
@media screen and (max-width: 1023px) {
  body header div.menu {
    display: block;
    position: absolute;
    flex-direction: column;
    background: black;
    position: absolute;
    left: 8px;
    top: 4px;
    padding: 80px 0;
    width: calc(100% - 16px);
    border-radius: 28px;
    text-align: center;
    nav ul {
      display: inline;
      li {
        overflow: hidden;
        max-height: 56px;
        padding: 0;
        margin: 0;
        border-radius: 0;
        transition: max-height 0.4s;
        a {
          display: block;
          width: 100%;
          color: white;
          text-align: left;
          border-bottom: 1px solid #222429;
          border-radius: 0;
          padding: 0 26px;
          line-height: 54px;
        }
        ul { display: block; }
      }
      li:has(ul) {
        > a {
          background-image: url('../img/arrow_right_black.svg');
          transition: none;
        }
        ul {
          padding: 0;
        }
      }
    }
    &.open > nav > ul {
      > li {
        max-height: 0;
      }
      > li.open {
        max-height: 1000px;
        > a {
          font-size: 110%;
          padding-left: 48px;
          background-position: left 24px center;
          background-image: url('../img/arrow_left_black.svg');
        }
      }
    }
    > .button {
      position: absolute;
      bottom: 20px;
      width: 200px;
      left: calc(50% - 100px);
    }
    > a svg {
      display: none;
    }
    form.busca {
      padding: 42px 27px 62px;
      width: auto;
      input[name=s] {
        background-color: transparent;
      }
    }
  }
  body.menuon {
    header {
      a.logo {
        position: relative;
        z-index:10;
        svg path {
          fill: white;
        }
      }
      .menuhandler {
        > .button {display: none;}
        > .button.close {display: inline-block;}
      }
    }
    .menu {
      opacity: 1;
      pointer-events: auto;
    }
  }
}
section.content {
  flex-direction: column;
  align-items: center;
  line-height:1.4;
  > * {
    max-width: 920px;
    width: 100%;
  }
  > p:first-child, > h1:first-child, > h2:first-child, > h3:first-child {
    margin-top: 0;
  }
  iframe, .youtube img {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 48px auto 0;
    object-fit: cover;
    border-radius: 18px;
    display: block;
  }
  .youtube {
    position: relative;
    &::after {
      content: " ";
      display: block;
      position: absolute;
      width: 80px;
      height: 80px;
      background-size: 80px;
      border-radius: 40px;
      background-color: var(--red_torch);
      background-image: url('../img/play.svg');
      background-position: center center;
      top: calc(50% + 16px);
      left: calc(50%);
      transform: translate(-50%, -50%);
      @media screen and (max-width:800px) {
        width: 64px;
        height: 64px;
        background-size: 64px;
        border-radius: 32px;
      }
    }
  }
  h1 {
    font-size: 40px;
    margin-top: 64px;
  }
  h2 {
    font-size: 32px;
    color: var(--black_woodsmoke);
    margin-top: 64px;
    text-transform: none;
    line-height:1.4;
    &::before {
      content: "";
    }
  }
  h3 {
    font-size: 24px;
    margin-top: 32px;
  }
  &.dark {
    h2 {
      color: white;
    }
  }
  ul li {
    list-style-type: disc;
    margin: 16px 0 16px 24px;
  }
  ol li {
    list-style-type: number;
    margin: 16px 0 16px 24px;
    &::before {
      display: none;
    }
  }
}
.receber {
  padding: 16px 0 128px;
}
section.narrow {
  text-align: center;
  padding: 90px 40px 80px;
  gap:40px;
  > * {
    max-width: 540px;
  }
  > a {
    display: inline-block;
    width: auto;
  }
  @media screen and (max-width: 800px) {
    padding: 50px 25px;
  }
}
div.vline {
  width: 1px;
  max-width: 1px;
  height: 170px;
  margin: 64px auto;
  background: #393D44;
}
ol {
  list-style-type: none;
  counter-reset: item;
  li {
    counter-increment: item;
    &::before {
      content: counter(item) ".";
      display: inline-block;
    }
  }
  &[reversed] {
    counter-reset: ritem;
    li {
      counter-increment: ritem -1;
      &::before {
        content: counter(ritem) ".";
      }
    }
  }
}
ol.bigol, section.content ol.bigol {
  li {
    margin-top: 64px;
    list-style: none;
    &::before {
      font-size: 64px;
      font-weight: bold;
      display: block;
      text-align: center;
    }
    h2 {
      margin-top: 32px;
    }
  }
  @media screen and (min-width: 1024px) {
    li {
      padding-left: 114px;
      position:relative;
      &::before {
        position: absolute;
        left: 0;
        top: 0;
        font-size: 96px;
      }
    }
  }
}
.filtro {
  margin: 36px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;

  a.button, a.button.black {
    padding: 5px 15px;
    background-image: none;
    font-size: 80%;
  }
}
.posts.list a.newsletter, a.newsletter {
  margin: 64px 0;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1240px;
  border-radius: 28px;
  border: 1px solid var(--black_charcoal);
  background: #F2F2F2;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--black_woodsmoke);
  transition: background .2s, color .2s;
  svg {
    width: 80%;
    max-width: 342px;
    aspect-ratio: 136/39;
  }
  &::after {
    visibility: hidden;
  }
  p {
    font-size: 20px;
    color: inherit;
    margin: 0 0 30px;
  }
  h3 {
    font-size: 24px;
    color: inherit;
    margin-top: 30px;
  }
  &.dark {
    text-decoration: none;
    background: var(--black_woodsmoke);
    color: white;
    .button { background-color: var(--red_torch); }
    svg * { fill: #FFFFFF; }
  }
  @media screen and (min-width: 1024px) {
    padding-right: 400px;
    svg {
      position: absolute;
      right: 50px;
    }
  }
  &:hover {
    text-decoration: none;
  }  
}
div.listalogos {
  margin: 64px 0;
  @media screen and (min-width: 800px) {
    margin: 32px 0;
    display: flex;
    max-width: 920px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    > div {
      width: 65%;
      padding-right: 40px;
    }
    > figure {
      width: 35%;
      border-left:1px solid;
      padding: 80px;
      img, svg {
        max-width: 100%;
      }
    }
  }
  @media screen and (max-width: 799px) {
    h3 {
      display: none;
    }
    img {
      margin-top: 20px;
    }
  }
}
.colunas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  > div {
    min-width: 260px;
    flex: 1;
  }
}
details {
  padding:32px 0 16px;
  border-bottom: 1px solid #DADADA;
  summary {
    font-size: 24px;
    background-image: url(../img/arrow_down.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 24px;
    cursor: pointer;
    padding-right: 30px;
  }
  &[open] {
    summary {
      color: var(--red_torch);
      background-image: url(../img/arrow_up_red.svg);
    }
  }
}
@media screen and (min-width: 1024px) {
  body header {
    .menu form.busca {
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
      display: flex;
      align-items: center;
      justify-content: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      padding: 0 max(24px, calc(50vw - 620px));
      background: white;
      input[name=s] {
        width: 100%;
        padding: 20px;
        border: none;
        border-bottom: 1px solid #0C0C0C;
        border-radius: 0;
        background: transparent;
        font-size: 64px;
        outline: none;
        color: var(--black_woodsmoke);
        background-image: url('../img/arrow_right.svg');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: 80px;
      }
      button {
        top: calc(50% - 40px);
        right: max(24px, calc(50vw - 620px));
        width: 80px;
        height: 80px;
        cursor: pointer;
      }
    }
    .menuhandler {
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s;
      display: block;
      position: absolute;
      z-index:2;
      right: max(24px, calc(50vw - 620px));
      a.button { display: none; }
      a.button.close { 
        display: inline-block;
      }
    }
  }
  body.searchon header {
    .menu form.busca, .menuhandler {
      opacity: 1;
      pointer-events: auto;
    }
  }
}
.modal {
  background-color: white;
  background-image: url('../img/visie.svg');
  background-repeat: no-repeat;
  background-position: 45px 40px;
  border-radius: 28px;
  max-width: 1240px;
  width: calc(100% - 60px);
  padding: 120px 100px 60px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 4px 18.1px 0px rgba(0, 0, 0, 0.66);
  z-index:12;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  max-height: 95vh;
  overflow:auto;
  h3 {
    padding: 0 0 30px;
    text-align: center;
  }
  input[type=text], input[type=tel], input[type=email], select, textarea {
    padding: 10px 20px;
    border-radius: 28px;
    border: 1px solid;
    color: inherit;
    min-width: 100%;
    max-width: 100%;
    background-color: transparent;
  }
  textarea {
    min-height: 60px;
  }
  .button.close {
    position: absolute;
    top: 40px;
    right: 45px;
  }
  div.mauticform_wrapper {
    max-width: 100%;
    overflow: auto;
  }
  div.mauticform-page-wrapper {
    display: flex !important; /*Mautic script set it to block on validation*/
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 20px;
    div.mauticform-row {
      text-align: center;
      flex: 1;
      min-width: min(240px, 100%);
      position: relative;
      .mauticform-label {
        font-weight: normal;
      }
      &.mauticform-button-wrapper {
        min-width: 100%;
        button.mauticform-button {
          border:none;
          background: var(--black_woodsmoke);
          color:white;
          padding:10px 40px 10px 20px;
          border-radius:28px;
          font-weight: 100;
          background-image: url(../img/arrow_right_black.svg);
          background-repeat: no-repeat;
          background-position: right 12px center;
        }
      }
      .mauticform-errormsg {
        position: absolute;
        font-size: 80%;
        width:100%;
      }
    }
  }
  @media screen and (max-width: 800px) {
    padding: 60px 20px 40px;
    background-position: 20px 20px;
    font-size: 80%;
    div.mauticform_wrapper {
      max-width: 100%;
      max-height: calc(100vh - 300px);
    }
    .button.close {
      top: 20px;
      right: 20px;
    }
    div.mauticform-page-wrapper {
      gap: 0;
      div.mauticform-row {
        text-align: left;
        &.mauticform-button-wrapper {
          button.mauticform-button {
            width: 100%;
          }
        }
      }
    }
  }
  &.dark {
    background-color: var(--black_woodsmoke);
    background-image: url('../img/visie_dark.svg');
    color: white;
    div.mauticform-page-wrapper div.mauticform-row.mauticform-button-wrapper button.mauticform-button {
      background-color: var(--red_torch);
    }
  }
}
body.contatoon, body.newsletteron {
  header, section, footer {
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
  }
}
body.contatoon #contato.modal,
body.newsletteron #newsletter.modal {
    opacity: 1;
    pointer-events: auto;
}
div#newsletter {
  h4 { font-size: 24px; }
  form > label {
    font-size: 16px;
    font-weight: normal;
    padding: 10px;
    @media screen and (max-width:800px) {
      font-size: 14px;
      display: block;
    }
  }
  .newsform {
    display: flex;
    gap: 0 20px;
    justify-content: center;
    flex-wrap: wrap;
    label {
      flex: 1;
      max-width: 300px;
    }
    margin-bottom: 20px;
  }
  text-align:center;
}
.blocado {
  border-left: 1px solid black;
  padding-left: 36px;
  margin-left: 35%;
  padding-right: 20%;
  :first-child {
    margin-top: 0;
  }
  @media screen and (max-width: 800px) {
    margin-left: 0;
    padding-left: 20px;
    padding-right: 0;
  }
}
section:last-child {
  padding-bottom: 64px;
}
