/*::gradiente::/*
/*RESET*/
body,
html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 1;
}
a {
  text-decoration: none;
}

/*UTILITY*/
.spacer-h-1 {
  margin-left: 1em;
  margin-right: 1em;
}
.spacer-h-2 {
  margin-left: 2em;
  margin-right: 2em;
}
.spacer-v-1 {
  margin-top: 1em;
  margin-bottom: 1em;
}
.spacer-v-2 {
  margin-top: 2em;
  margin-bottom: 2em;
}
.spacer-bottom-3 {
  margin-bottom: 3em;
}

/*HEADER*/
.main-header,
#fixed-header {
  padding: 2em 2em 3em;
  margin: 0;
}
#fixed-header {
  position: fixed;
  top: 0;
  z-index: 5;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #fff,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0)
  );
  padding: 2em 2em 3em;
  margin: 0;
}
/*placeholder logo*/
svg {
  max-width: 100%;
}
.logo {
  height: 1em;
}
.logo a {
  display: block;
  width: 45%;
  max-height: 70px;
  position: relative;
}
.logo a:hover #mono-logo {
  display: none;
}
.logo a:hover #color-logo {
  display: block !important;
}

/*Navbar*/
.header-menu {
  display: flex;
  width: 100%;
  justify-content: space-between;
  background: #111;
  margin: 0;
  padding: 0.15em 2em 0;
  list-style: none;
}
.header-menu a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
}
.header-menu a:hover {
  color: #ccc;
}
.nav-toggle,
#close-nav {
  display: none;
}
.sub-menu {
  display: none;
  position: absolute;
  margin-left: -2em;
  padding: 0.15em 2em 0;
  background: #111;
}
.menu-item:hover .sub-menu {
  display: block;
}

@media screen and (max-width: 64em) {
  .logo a {
    width: 85%;
    z-index: 9;
  }

  .header-nav {
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 2;
    background: #111;
  }
  .header-menu {
    flex-direction: column;
    margin: 6em auto;
    padding: 1em 0 0;
    border-top: 2px solid #fff;
    width: calc(100% - 3em);
    border-bottom: 2px solid #fff;
  }
  .menu-item {
    margin: 0 0 1.5em;
  }
  .sub-menu {
    display: block;
    position: initial;
    margin-left: 1em;
    margin-bottom: 0;
    padding: 0.15em 1em 0;
    background: #111;
  }
  .sub-menu .menu-item {
    margin-bottom: 0;
  }
  .nav-toggle {
    display: block;
    position: relative;
    margin-left: auto;
    max-width: 3em;
    z-index: 2;
  }
  #close-nav {
    width: 2.4em;
    margin-left: auto;
  }
  #close-nav rect {
    fill: #fff;
  }
}
/*GRID*/
@supports (grid-area: auto) {
  .the-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr [col]);
    grid-template-rows: repeat(5, 1fr [row]);
    grid-gap: 1em;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
    grid-auto-columns: min-content;
    margin-top: 7em;
  }
  .the-grid .block {
    position: relative;
    overflow: hidden;
    min-width: 0;
    float: none;
    width: 100%;
    background: #fafafa;
  }
  .block--large {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }
  .block:hover img {
    opacity: 0;
  }
  .block:hover a::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-image: radial-gradient(
        circle at top left,
        rgba(133, 229, 213, 1),
        rgba(133, 229, 213, 0.1),
        transparent
      ),
      radial-gradient(
        farthest-side at bottom,
        rgba(255, 147, 133, 1),
        rgba(255, 147, 133, 0.6),
        transparent
      ),
      radial-gradient(
        circle at top right,
        rgba(255, 240, 105, 1),
        rgba(255, 240, 105, 0.5),
        transparent
      );
  }

  .block h2,
  .slide-block h2 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
    padding: 0 0.5em;
    background: #fff;
    color: #111;
    z-index: 3;
    line-height: 1.4;
    font-stretch: expanded;
  }
  .large {
    min-width: calc(100% + 1rem);
  }
  .large h2 {
    font-size: 2.5em;
    max-width: calc(100% - 1.8em);
  }
}
@media screen and (max-width: 40em) {
  .spacer-h-2 {
    margin-left: 1em;
    margin-right: 1em;
  }
  .main-header,
  #fixed-header {
    padding: 2em 1em 3em;
    margin-left: 0;
    margin-right: 0;
  }
  .the-grid {
    grid-template-columns: repeat(1, 1fr [col]);
    grid-template-rows: repeat(9, 1fr [row]);
  }
  .the-grid .block {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .block h2,
  .large h2 {
    font-size: 1.15em;
  }
}
/*SLIDER*/
.slide-block {
  position: relative;
  display: block;
}
.section-title,
.tag-container {
  padding: 0 2em;
  text-transform: uppercase;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}
.section-title h3 {
  margin: 0;
}

/*UPDATE FORM*/
.edit-form-container {
  width: 60vw;
  margin: auto;
  display: none;
  padding: 1em;
  border: 1px solid steelblue;
  border-radius: 4px;
}
.acf-button {
  padding: 6px 20px;
  border-radius: 2px;
  border: 1px solid steelblue;
}
.edit-btn {
  position: fixed;
  bottom: 2%;
  right: 2em;
  z-index: 9;
}
#edit-feed,
#save-feed,
#edit-posts {
  border: 1px solid steelblue;
  color: steelblue;
  padding: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
}
.block:hover .feedform {
  opacity: 1;
}
.feedform {
  position: absolute;
  z-index: 99;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  bottom: 2%;
  left: 2%;
  opacity: 0;
  width: 200px;
}
.feedform div {
  width: 44%;
}
.feedform span {
  display: block;
}
.feedform input {
  width: 100%;
  border: 0;
  padding: 10px;
}

/*SLICK*/
.slider {
  margin-left: 1.1em;
  margin-right: 2em;
  position: relative;
}
.slider .slick-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  width: 5em;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}
.slick-arrow.prev {
  left: 1em;
  background: linear-gradiente(
    90deg,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}
.slick-arrow.next {
  right: 0;
  background: linear-gradiente(
    -90deg,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}
.slick-slide div {
  margin: 0 0.5em;
  /*border-left: .25em solid #fff;
    border-right: .25em solid #fff;*/
}
.prev::after,
.next::after {
  content: "<";
  font-weight: bold;
  font-size: 1.5em;
  position: absolute;
  top: 45%;
  bottom: 55%;
  margin: auto;
  height: 1em;
  width: 1em;
  left: 1em;
}
.next::after {
  content: ">";
  right: 0.4em;
}

/*PAGE*/
.page h1 {
  font-size: 3em;
  margin: 0;
  line-height: 1.4;
  width: 80%;
  font-stretch: expanded;
}
.tag-container {
  display: block;
  margin: 2em 0;
  width: 100%;
}
.tag-container ul {
  padding-left: 0;
  margin: 0;
}
.tag-container span {
  margin-right: 1em;
}
.hero img {
  width: 100%; /* FOR DEMO */
}
.text-block p {
  width: 90%;
}
@media screen and (max-width: 40em) {
  .page h1 {
    font-size: 1.7em;
    width: 100%;
  }
  .text-block p {
    width: 100%;
  }
}
/*MAP*/
.map-container {
  border-right: 2px solid #000;
  padding: 3em;
}
.map-container .map-svg {
  overflow: visible;
}
.map-text {
  padding: 3em;
}
.click-icon {
  width: 5em;
  height: 2em;
  margin: 9em auto;
}
.grupo-sint {
  display: none;
}
.grupo-sint figure {
  margin: 0;
}
.group-logo {
  width: 50%;
}
.group-logo .assinatura {
  margin-bottom: 8px;
}
.group-logo .at {
  width: 1.8em;
  display: inline-block;
}
span.city-name {
  display: inline-block;
  font-size: 2.3em;
  line-height: 0;
  font-stretch: expanded;
}
.grupo-sint a {
  display: block;
}
.grupo-sint h4 {
  margin: 0;
}
.grupo-sint div {
  margin: 1.5em 0;
}
.grupo-local-content {
  margin: 2em 0;
}
.grupo-ext h4 {
  font-size: 1.8em;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0.5em 0;
  font-stretch: expanded;
  font-weight: bold;
  color: #ff9485;
}
#braga h4,
#porto h4,
#coimbra h4,
#lisboa h4 {
  color: #3066de;
}
.grupo-ext {
  border-top: 2px solid #000;
}
.grupo-ext td:first-of-type {
  width: 70%;
}
.grupo-ext a {
  display: block;
}
.grupo-ext div {
  margin: 1.4em 0;
}
.grupo-ext span {
  font-size: 1em;
  display: block;
}
.grupo-ext table.wp-block-table {
  width: 80%;
}
.city-nav ul {
  padding: 0;
  list-style: none;
}
.city-nav {
  position: sticky;
  right: 2em;
  top: 6em;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  width: 80%;
  margin-left: auto;
}
.map-btn {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  cursor: pointer;
}
.map-btn:hover, .map-btn:focus {
  background: #FF9485;
  opacity: 0.2;
  outline: none;
}

@media screen and (max-width: 40em) {
  .map-container {
    padding: 0;
    border-right: 0;
  }
  .map-svg {
    max-height: 70vh;
  }
  .legenda section span {
    font-size: 0.8em;
    line-height: 1.2;
    margin-top: 7px;
  }
  .map-text {
    padding: 0.3em 0 0 0.5em;
    font-size: 90%;
  }
  .map-text h3 {
    font-size: 1em;
    line-height: 1;
  }
  .click-icon {
    margin: 1em auto;    
    height: 1em;
  }
  section.grupo-sint {
    font-size: 90%;
  }
  .grupo-sint div {
    margin: 1em 0;
  }
  .group-logo {
    width: 90%;
  }
  .group-logo .at {
    width: 1em;
  }
  .group-logo .assinatura {
    margin: 0;
  }
  .group-logo .city-name {
    font-size: 1.3em;
  }
  .city-nav {
    display: none;
  }
  .grupo-ext td {
    border-bottom: 1px solid #eee;
  }
}
/*SCROLLTOP*/
.scrolltop {
  position: sticky;
  bottom: 1em;
  text-align: right;
  margin-right: 1.5em;
}
.scrolltop button {
  width: 1.8em;
  height: 2em;
  cursor: pointer;
  z-index: 2;
}
/*FOOTER*/
/*SUBSCRIBE*/
.subscribe-btn {
  position: fixed;
  width: 100px;
  border-radius: 40% 52% 39% 47%;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8em;
  height: 70px;
  line-height: 1.3;
  z-index: 3;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 0.5em;
  box-shadow: 0px 4px 12px -4px rgba(0, 0, 0, 0.54);
  transition: all 0.5s ease;
}
.subscribe-btn:hover {
  transform: scale(1.1);
}
.subscribe-btn.newsletter {
  background: #83e5d5;
  top: 35%;
}
.subscribe-btn.newsletter.jump {
  top: 10%;
}
.subscribe-btn.funding {
  background: #fff069;
  top: 50%;
}
.subscribe-btn.funding.jump {
  top: 25%;
}
.subscribe-btn.follow {
  background: #ff9385;
  top: 65%;
}
.subscribe-btn.follow.jump {
  top: 40%;
}
.subscribe-btn a {
  color: #222;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info {
  background: #111;
  color: #fff;
  padding: 2em 4em 2em;
  margin-top: 3em;
}
.footer h5 {
  margin: 0;
  font-size: 1em;
}
.footer p {
  margin: 0;
}
footer p a {
  color: #fff;
  text-decoration: underline;
}
footer a:hover {
  color: #ccc;
}
footer .gradiente {
  height: 2em;
  width: 100%;
  background: linear-gradient(90deg, #ff9385, #83e5d5, #fff069);
}
@media screen and (max-width: 40em) {
  .scrolltop button {
    right: 0;
    width: 2em;
    background: #000;
    border-radius: 0;
    height: 3em;
    padding: 7px;
    bottom: 2em;
  }
  .scrolltop {
    margin-right: 0;
  }
  .scrolltop button polygon {
    fill: #fff;
  }
  .subscribe-btn.funding {
    top: 1.5%;
    right: 25%;
    position: absolute;
  }
  .subscribe-btn.newsletter,
  .subscribe-btn.follow {
    position: static;
    float: left;
  }
  .subscribe-btn.newsletter {
    margin-left: 2em;
    margin: 0 2em 0 4em;
  }
}

/* Recursos */
.resource-block {
  margin-bottom: 2.5em;
  text-decoration: none;
  color: #000;
  border-top: 4px solid #83e5d5;
  cursor: pointer;
}
.resource-block__img {
  position: relative;
  margin: 0;
}
.resource-block__img div {
  padding-bottom: 140%;
}
.resource-block__img img {
  position: absolute;
  object-fit: cover;
  top: 0;
  width: 100%;
  height: 100%;
}
.resource-block__name {
  margin: 16px 0 0;
  font-weight: normal;
}
.resource-block__subtitle {
  margin: 0;
  color: #777;
}
.resource-block__img {
  transition: all 0.3s ease;
}
.resource-block:hover .resource-block__img {
  transform: translateY(-8px);
}
.resource-desc__title {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: bold;
}
.resource-desc__subtitle {
  margin: 0;
  font-size: 14px;
  color: #777;
}
@media screen and (max-width: 40em) {
  .resource-block {
    margin-bottom: 2em;
  }
  .resource-block__name {
    line-height: 1.1;
  }
  .resource-block__img {
    height: 200px;
  }
}
/* MODAL */
.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #00000088;
  z-index: 10;
}
.modal {
  position: relative;
  margin: 7% auto;
  padding: 36px 48px;
  width: 600px;
  max-width: 95%;
  max-height: 80vh;
  overflow: scroll;
  background: #fff;
}
.modal__close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}
