.courier-prime-regular {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;
}

.courier-prime-bold {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-style: normal;
}

.courier-prime-regular-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: italic;
}

.courier-prime-bold-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-style: italic;
}

body {
    font-family: 'Barlow', sans-serif;
    color: #000000;
    font-size: 13px;
}
/* Courier Prime reservado para menus e navegação */
.mano-index,
.mano-index-open,
.sidenav .closebtn,
a.topnav-link,
.navigation-links {
    font-family: "Courier Prime", monospace;
}
html {
    background-color: #FFFFFF;
  }
a {
    color: #000000;
    cursor: pointer;
    text-decoration: none;
  }
  
  a strong {
    color: #000000;
  }
  
  a:hover {
    color: #999999;
    text-decoration: none;
  }
  
.center, .center-column, .top, .right, .bottom, .left {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .center-column {
    flex-direction: column;
  }
  
  .top { align-items: flex-start;}
  .right {justify-content: flex-end;}
  .bottom { align-items: flex-end;}
  .left {justify-content: flex-start;}
  
  .single-spaced, .single-spaced * {
    line-height: 1;
}
.outer {
    width: 100%;
    max-width: 1024px;
    margin: 2rem auto;
  }
.video-wrapper {
    height: 0;
    margin: auto;
    z-index: 1;
    position: relative;
    padding-top: 25px;
    padding-bottom: 56.25%;
    display: block;
    overflow: hidden;
}
  
.video-wrapper iframe {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    position: absolute;
}
.video-cover-image {
	position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-cover-image img {
	vertical-align: top;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	/* background-color: #151515; */ /* for dark overlay on top of the image */
	background: transparent;
	opacity: 1;
	transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

.video-cover-image:hover .overlay {
  opacity: 0.8;
  background: rgba(0,0,0,0.5);
}

.play-icon {
	color: #fff;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 50%;
}
.audio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.image {
    display: flex;
    justify-content: start;
}
.image img {
    height: 100%;
    width: 100%;
}
.sidenav-wrapper {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: #FFFFFFFF;
    overflow-x: hidden;
    transition: 0.5s;
    padding: 0rem;
  }
.sidenav {
    height: 0px;
    width: 100%;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    background-color:#FFFFFF;
    overflow-x: hidden;
    transition: 0.5s;
    padding: 0rem 0rem 0rem 0rem;
}
.sidenav .closebtn {
    color: #000000 !important;
    position: absolute;
    top: 26rem;
    right: 1rem;
    font-size: 2rem;
    font-style: italic;
}
.sidecontent {
    width: 100%;
    z-index: 11;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 52rem;
    padding: 1.5rem 0rem;
    color: #000000;
}
a.topnav-link {
    color: #000000 !important;
}
a.topnav-link.selected-nav {
    font-weight: 700;
    text-decoration: none;
}
.header-wrapper {
    margin: 0 auto;
     display: flex;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.sticky {
    position: static;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
  }
.mano-index {
    color: #FF0202!important;
    font-size: 2rem;
    line-height: 1;
    font-weight: normal;
    font-style: italic;
}
.mano-index-open {
    color: #000000!important;
    font-size: 2rem;
    font-weight: 700;
}
.mano-index-open svg path{
    fill:#000000;
  }
.top-left {
    display: flex;
    justify-content: center;
    align-items: center;
  }
.top-left svg,
.manobrito svg {
    display: block;
  }
.top-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.7rem;
}
.top-navigation {
    display: flex;
    width: 100%;
    align-items: flex-end;
    padding-right: 12rem;
    padding-top: 1rem;
    padding-left: 1rem;
}
.topnav-work {
    padding-right: 2rem;
}
.topnav-work,
.topnav-contacts {
    font-weight: normal;
    font-size: 1.4rem;
    line-height: 1;
    padding-bottom: 1.5rem;
}
.manobrito {
    display: flex;
    align-items: center;
}
.grow {
    display: flex;
    flex-grow: 1;
    padding-left: 3rem;
}
.topnav-text {
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 20px;
    line-height: 1.5;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.topnav-text a {
    color: #000000 !important;
    text-decoration: underline;
}
.topnav-text p {
    padding-bottom: 1rem;
}
.hero.frontpage {
    background: url(/static/images/manobrito_frontpage.jpg) top center / cover;
}
/* Em desktop largo o bloco começa à esquerda no início do "b" do
   logo (recuo do header 2rem + 8rem + 132px dentro do SVG), com recuo
   simétrico à direita. Nunca fica mais estreito que 768px.
   O .project-description partilha o mesmo alinhamento. */
.site-desc,
.project-description {
    --site-desc-inset: max(1rem, min(10rem + 132px, (100% - 768px) / 2));
    text-align: center;
}
.site-desc {
    padding: 3rem var(--site-desc-inset) 0rem var(--site-desc-inset);
    font-size: 20px;
    margin: 0 auto;
    max-width: 1600px;
}
/* Rich text (campos RichTextField) — o build do Bulma não inclui .content */
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    font-weight: 700;
    line-height: 1.25;
    margin: 1.5em 0 0.6em;
}
.rich-text h2 { font-size: 1.6em; }
.rich-text h3 { font-size: 1.3em; }
.rich-text h4 { font-size: 1.1em; }
.rich-text > :first-child { margin-top: 0; }
.rich-text p,
.rich-text ul,
.rich-text ol {
    line-height: 1.6;
    margin-bottom: 1em;
}
.rich-text > :last-child { margin-bottom: 0; }
.rich-text ul { list-style: disc; padding-left: 1.5em; }
.rich-text ol { list-style: decimal; padding-left: 1.5em; }
.rich-text a { text-decoration: underline; }
.rich-text b,
.rich-text strong { font-weight: 700; }
.rich-text i,
.rich-text em { font-style: italic; }
#project-section {
    padding-top:2rem;
}
.project-title-concept {
    padding-top: 1rem;
    padding-left: 1rem;;
}
.project-title {
    padding-right: 0.1rem;
    font-family: "Courier Prime", monospace;
    font-style: italic;
    font-weight: 700;
    font-size: 17px;
}
.project-cover {
    margin-top: 3rem;;
}
#concepts-nav{
    display: inline;
    font-size: 15px;;
}
#concepts-nav li{
    display: inline;
    white-space: nowrap;
}
.project-description {
    padding: 1rem var(--site-desc-inset) 3rem var(--site-desc-inset);
    font-size: 15px;
}
ul#concepts-nav li {
    display:inline;
  }
li.project-media-element {
    padding-bottom: 0.8rem;
}
.navigation-links {
    display: flex;
    justify-content: center;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 300;
    padding: 2rem 0 3rem 0;
}
.project-related ul {
    display: flex;
    justify-content: center;
}
.project-related ul .project-listing-block { 
    margin: 0 0.5rem 0 0;
}
.project-related ul li:last-child .project-listing-block { 
    margin:0;
}
.project-listing-block-metadata {
    display: flex;
}
.linkto-project {
    padding-left:1rem;
    display: flex;
}
.list-project-lenght {
    padding-left: 0.5rem;
    display: flex;
}

.project-related ul .project-listing-block img { 
    height: 170px;
}
.list-project-title {
    font-weight: 700;
}
.list-project-lenght {
    padding-left: 0.5rem;
}
#start-projects {
    width: 100%;
}

/* wrapper — ocupa toda a largura disponível */
.project-listing{
  width:100%;
  margin-top:4rem;
  padding:24px;
}

/* grelha: preenche da esquerda para a direita; em desktop cada
   coluna tem no mínimo 420px e o número de colunas cresce com o ecrã */
.project-listing > ul{
  list-style:none;
  margin:0;
  padding:0;

  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap:24px;
}

.project-listing > ul > li{
  margin:0;
}

/* the card */
.project-listing-block{
  overflow:hidden;
}

/* make the image behave */
.project-listing-block > a{
  display:block;
}

.project-listing-block img{
  border-radius:8px;
  display:block;
  width:100%;
  height:auto;
}

/* capas sempre na proporção das thumbnails (868x600) na listagem de projetos */
.project-listing .project-listing-block img{
  aspect-ratio:868 / 600;
  object-fit:cover;
}

/* metadata bar */
.project-listing-block-metadata{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;

  padding:12px 14px;
}

/* typical link/text styling (tweak as needed) */
.project-listing-block-metadata a{
  text-decoration:none;
  color:inherit;
}

.list-project-title{
  font-weight:600;
}

.list-project-lenght{
  opacity:.7;
  white-space:nowrap;
}
.project {
  max-width: 1600px;
  margin: 0 auto;
}

#footer {
    display: flex;
    padding: 8rem 8rem 5rem 8rem;
}
#footer .left {
    flex-grow: 1;
}
#footer img.seta {
    max-width: 32px;
    padding-top: 0rem;
    width: 48rem;
}
@media screen and (max-width: 1023px) {
    .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .container.site-desc {
        padding: 2rem 1rem 2rem 2rem;
    }
    .sidecontent {
        max-width: 52rem;
        padding-right: 2rem;
        margin: 0rem 2rem 0 1rem;
    }
    .top-navigation {
        padding-right: 8rem;
    }
    .mano-index {
        margin-right: 2rem;
    }
}
@media screen and (min-width: 1024px) {
    .container {
        max-width: 100%;
    }
    .project {
    }
    .sticky {
        position: static;
        width: 100%;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        padding: 3rem 1rem;
        margin: 0 auto;
        max-width: 1600px;
      }
    .header-home .sticky {
        padding: 3rem 2rem;
        align-items: flex-end;
      }
    .top-left {
        margin-left: 8rem;
    }
    .top-right {
        margin-right: 7rem;
    }
    .sidecontent {
        max-width: 100%;
        padding: 2rem 4rem 0 2rem;
    }
    .sidecontent .manobrito {
        margin-left: 7rem;
    }
    .sidenav .closebtn {
        right: 146px;
    }
    .topnav-text {
        font-size: 20px;
    }
    #project-section {
        padding-top: 4.25rem;
    }
}
@media screen and (min-width: 1216px) {
  .container {
        max-width: 100%;
  }
  .sticky {
  }
  .header-home .sticky {
    padding: 3rem 2rem;
  }
  .sidecontent {
    max-width: 100%;
    margin: 0 auto;
  }
  .project {
    }

.project-listing {
    padding: 0 1rem;
    }
}
@media screen and (min-width: 1408px) {
    .container {
        max-width: 100%;
    }
    .sticky {
    }
    .header-home .sticky {
        padding: 3rem 2rem;
    }
    .sidecontent {
        max-width: 1600px;
        margin: 0 auto;
    }
    .project {
    }
    .project-listing {
        padding: 0 8rem;
    }
}
@media screen and (min-width: 1888px) {
    .container {
        max-width: 100%;
    }
    .sticky {
    }
    .header-home .sticky {
        padding: 3rem 2rem;
    }
    .sidecontent {
        max-width: 1600px;
        margin: 0 auto;
    }
    .project {
    }
    .project-listing {
        padding: 0 8rem;
    }
}
@media screen and (max-width: 1024px) {
    .project-related ul .project-listing-block img {
        height: 138px;
    }
    .sidenav .closebtn {
        right: 2rem;
    }
    .topnav-text {
        padding-top: 6rem;
        font-size: 20px;
        line-height: 1.7;
        max-width: 57rem;
    }
}
@media screen and (max-width: 768px) {
    .project-related ul .project-listing-block img {
        height: 145px;
    }
}
@media screen and (max-width: 414px) {
    .project-related ul .project-listing-block img {
        height: 73px;
    }
    .project-related ul .project-listing-block {
        font-size: 0.7rem;
    }
    .grow {
        min-width: 100px;
    }
    .top-navigation {
        flex-wrap: wrap;
    }
    .topnav-work, .topnav-contacts {
        width: 100%;
    }
    .mano-index-open.topnav-contacts {
        padding-top: 0;
        margin-top: 0;
    }
    .topnav-text {
        padding-top: 2rem;
        font-size: 15px;
        line-height: 1.6;
        max-width: 20rem;
    }
    .topnav-work, .topnav-contacts {
        padding-top: 0;
    }
    .sidenav .closebtn {
        top: 26rem;
    }
}
@media screen and (max-width: 375px) {
    .project-related ul .project-listing-block img {
        height: 65px;
    }
    .project-related ul .project-listing-block {
        font-size: 0.7rem;
    }
    .topnav-text {
        padding-top: 2rem;
        font-size: 0.9rem;
        line-height: 1.8;
        max-width: 19rem;
    }
}
@media screen and (max-width: 320px) {
    .project-related ul .project-listing-block img {
        height: 54px;
    }
    .project-related ul .project-listing-block {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 475px) {
    .mano-is-hidden-mobile {
        display: none !important;
    }
}
@media screen and (min-width: 476px) {
    .mano-is-hidden-desktop {
        display: none !important;
    }
}

/* ============================================================
   SITE HEADER — barra única e permanente (um só logo).
   O logo é SEMPRE o mesmo elemento no mesmo contentor, quer o
   menu esteja aberto ou fechado; por isso a sua posição não pode
   oscilar entre estados, browsers ou larguras de janela.
   Abrir/fechar = classe .is-open (ver nbec.js).
   ============================================================ */
.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #FFFFFF;
}
.site-header__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
.site-header__logo {
    display: flex;
    align-items: center;
}
.site-header__logo svg {
    display: block;
}
.site-header__spacer {
    flex: 1 1 auto;
}

/* Burger — só existe em mobile. As tres barras convertem-se num X
   no mesmo sitio quando o menu abre (classe .is-open). */
.site-header__burger {
    position: relative;
    display: block;
    width: 2.5rem;
    height: 1.75rem;
    cursor: pointer;
}
.site-header__burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000000;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.site-header__burger span:nth-child(1) {
    top: 0;
}
.site-header__burger span:nth-child(2) {
    top: 50%;
    margin-top: -1.5px;
}
.site-header__burger span:nth-child(3) {
    top: 100%;
    margin-top: -3px;
}
.site-header.is-open .site-header__burger span:nth-child(1) {
    top: 50%;
    margin-top: -1.5px;
    transform: rotate(45deg);
}
.site-header.is-open .site-header__burger span:nth-child(2) {
    opacity: 0;
}
.site-header.is-open .site-header__burger span:nth-child(3) {
    top: 50%;
    margin-top: -1.5px;
    transform: rotate(-45deg);
}

.site-header__nav {
    display: none;
    align-items: flex-end;
    flex-wrap: wrap;
}
.site-header__nav .topnav-link {
    font-family: "Courier Prime", monospace;
    font-weight: normal;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1;
    padding-right: 2rem;
}
.site-header__nav .topnav-link:last-child {
    padding-right: 0;
}
.site-header__nav .topnav-link.selected-nav {
    font-weight: 700;
    text-decoration: none;
    font-style: italic;
}

/* Mobile: o burger revela os 4 folders em coluna, centrados,
   espaçados e maiores. Ocupam a largura toda, por baixo da barra. */
@media screen and (max-width: 1023px) {
    .site-header.is-open .site-header__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 3rem 0 1rem;
    }
    .site-header.is-open .site-header__nav .topnav-link {
        font-size: 2.2rem;
        padding: 0 0 2.5rem;
    }
}

/* Desktop: reproduz exatamente o posicionamento de referência do
   logo (centrado a 1600px + recuos). A navegação dos folders está
   sempre presente — não há burger nem cortina. */
@media screen and (min-width: 1024px) {
    .site-header__bar {
        padding: 3rem 2rem;
    }
    .site-header__logo {
        margin-left: 8rem;
    }
    .site-header__burger,
    .site-header__nav {
        margin-right: 7rem;
    }
    .site-header__burger {
        display: none;
    }
    .site-header__nav {
        display: flex;
    }
}

