/* css by publiSITIO 23.03.26 */
/*@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@100;900&display=swap');*/

/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on May 19, 2023 */
@font-face {
    font-family: 'adellesansbold'; /* bold */
    src: url('adellesans-bold-webfont.woff2') format('woff2'),
         url('adellesans-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: bold;
    font-display: fallback; /* Define how the browser behaves during download */
}
@font-face {
    font-family: 'adellesanshv'; /* heavy */
    src: url('adellesanshv-webfont.woff2') format('woff2'),
         url('adellesanshv-webfont.woff') format('woff');
    font-weight: bolder;
    font-style: bolder;
    font-display: fallback; /* Define how the browser behaves during download */
}
@font-face {
    font-family: 'adellesanslt';
    src: url('adellesanslt-webfont.woff2') format('woff2'),
         url('adellesanslt-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: fallback; /* Define how the browser behaves during download */
}
@font-face {
    font-family: 'adellesansth';
    src: url('adellesansth-webfont.woff2') format('woff2'),
         url('adellesansth-webfont.woff') format('woff');
    font-weight: lighter;
    font-style: lighter;
    font-display: fallback; /* Define how the browser behaves during download */
}
@font-face {
    font-family: 'adellesansut';
    src: url('adellesansut-webfont.woff2') format('woff2'),
         url('adellesansut-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: fallback; /* Define how the browser behaves during download */
}

:root{
    --main-color: #000;
    --main-font: adellesansth /*Urbanist*/;
	}

	/* custom scrollbar */
* {
  scrollbar-color: var(--main-color) transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent; 
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--main-color); 
  border-radius: 2px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color); 
}
/* custom scrollbar end */
body{
  font: 20px var(--main-font), sans-serif;
  letter-spacing: 0px;
  font-weight: lighter bolder;
  /*text-transform: uppercase;*/
}

ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
a:hover{
  text-decoration: none;
}

.black-bkgrd{
  background: black;
  color: white;
  
  & a.portfolio{
    color: white;
  }

  &  a[href="index.php"]{
      filter: invert(1);
    }

  .drawing-gallery a {
    color: #09c;

    &:hover {
      opacity: .5;
    }
  }
  .drawing-gallery img{
    filter: invert(1);
  }
  .accordion-button{
    font-size: 2rem;
    padding: 1rem 0;
    color: #fff;
  }
  .accordion-button::after {
    filter: invert(1);
  }
  .accordion-button:focus {
    color: #fff;
  }
}
.portfolio{
  position: relative;
  flex: 0 0 33.33%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 50px;
}
a.portfolio {
  text-decoration: none;
  color: black;
  transition: all 1s ease-in-out;

  .portfolio-project-code{
    width: fit-content;
    padding: 0 0 5px 0;
    border-bottom: 2px solid #000;
    font-size: 1rem;
  }
  .portfolio-project{
    font: 2rem 'adellesansbold', sans-serif;
  }
  .portfolio-project-location{
    font-size: 1rem;
  }
}
.portfolio img{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  object-fit: cover;
  object-position: bottom;
  z-index: -1;
  transition: all 1s ease-in-out;
}
a.portfolio:hover {
  color: white;
  transition: all 1s ease-in-out;

   img{
    opacity: 1;
    visibility: visible;
  }
}

  @media screen and (max-width: 768px){
    .portfolio{
      flex: 0 0 100%;
    }
    a.portfolio {
      color: white;
    }
    .portfolio img{
      opacity: 1;
      visibility: visible;
      z-index: -1;
    }
  }
/* nota biogrfica */
.nota-bio{
  position: relative;
}
.nota-bio h1{
  font: 2rem 'adellesansbold', sans-serif;
  line-height: 1;
}


/* project pages */
.eng{
  /*font-size: smaller;*/
  color: #8c8b8b;
}
.project-wrap{
  margin-top: calc(100% / 6);
}

  /* css galerias projectos photos - versão final  */
  .gallery-project-photos{
    width: 75%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    animation: main 2s ease-in;

    & img{
        width: calc(100% / 2 - 8px);
        object-fit: cover;

        &:last-child{
          margin-right: auto;
        }
      }
  }
    @keyframes main{
      0%{
        opacity: 0;
        transform: translateY(150px);
      }
      100%{
        opacity: 1;
        transform: translateY(0px);
      }
    }
  
  @media screen and (max-width: 768px){
    .gallery-project-photos{
      width: 100%;
      
      & img{
        width: 100%;
      }
    }
  }
  /* css galerias projectos photos - versão final  end */

/* project drawings */
.accordion .desenhos a h1:after {
  position: absolute;
  right: 0;
  transform: rotate(45deg);
  content: '\002B'; /* plus sign */
  transition: transform .1s ease-in-out;
}
.accordion .desenhos a.collapsed h1:after  {
  transform: rotate(0deg);
  content: '\002B'; /* plus sign */
}
.drawing-gallery a{
  display: block;
  transition: all .5s ease-in-out;
  color: #000;

  &:hover{
      opacity: .5;
    }
}
.drawing-gallery h1{
  font: 2.5rem 'adellesansth', sans-serif;
}
.drawing-gallery img{
  max-width: 100%;
  /*filter: invert(1);*/
}
.project-title{
  font: 3.5rem 'adellesansth', sans-serif;
  line-height: 1;
}
.project-location{
  font: 1.5rem 'adellesansth', sans-serif;
  line-height: 1;
  margin-bottom: 10vh;
}
.mem-descritiva{
  margin-top: 5rem;
}
.f-tecnica {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.f-tecnica li{
  margin-bottom: 1.5rem;
  flex: 0 0 auto;
  font-size: .9rem;
}
.f-tecnica div{
  margin-bottom: .25rem;
  font-weight: bolder;
}

.footer{
  padding: 50px 0;
  width: 100%;
}
.contacts{
  list-style: none;
  font-size: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  /*border-top: 1px solid #000;*/
}
  .contacts li{
    padding-top: 5px;
    padding-left: 15px;
  }
  .contacts small{
    font-family: var(--main-font), sans-serif;
    font-size: 50%;
    vertical-align: super;
  }
  .contacts li:nth-last-child(-n+3) {
    font-family: 'adellesansbold', sans-serif;
}
.copyright{
  flex-direction: row;
  justify-content: space-between;
  padding: 15px 0;
}
.copyright p{
  font-size: .7rem;
  margin: 0;
  width: fit-content;
}
a[href="https://www.publisitio.eu"]{
  font-family: 'adellesansbold', sans-serif;
  text-decoration: none;
  color: inherit;
  transition: all .5s ease-in-out;

  &:hover{
    opacity: .5;
  }
}
	@media screen and (max-width: 768px){
    .contacts{
      justify-content: start;
      margin-top: 10px;
    }
    .contacts li{
      padding-left: 0px;
    }
    .copyright{
      flex-direction: column;
    }
	}

  /* bootstrap override */
  .accordion {
    --bs-accordion-color: var(--bs-body-color);
    --bs-accordion-bg: var(--bs-body-bg);
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-border-width: 0;
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
  }
  .accordion-button,
  .accordion-item{
    background: transparent;
    border: 0;
  }
  .accordion-button:not(.collapsed){
    background: transparent;
  }
  .accordion-button{
    font-size: 2rem;
    padding: 1rem 0;
    color: var(--bs-body-color);
  }
  .accordion-button:focus {
    box-shadow: none;
    color: initial;
  }