/*
  STYLE v 1.1;
  05/2023;
  João Diogo Pereira;
*/

:root {
  --headerSize: 98px;
  --black: #000000;
  --white: #FFFFFF;
  --yellow: #C2B06E;
  --blue: #163046;
  --darkblue: #182E43;
  --red: #8F292D;
  --brown: #763626;
}

/*FONTS*/
@font-face {
  font-family: 'MontserratAlternatesRegular';
  src: url(../fonts/MontserratAlternatesRegular.ttf);
}

@font-face {
  font-family: 'MontserratAlternatesLight';
  src: url(../fonts/MontserratAlternatesLight.ttf);
}

@font-face {
  font-family: 'Belacu';
  src: url(../fonts/Belacu.ttf);
}

@font-face {
  font-family: 'Biysk';
  src: url(./../fonts/Biysk.ttf);
}

/*GERAL*/

html {
  overflow-x: hidden; 
}

.main-container {
  margin: 0 auto;
  width: 90%; 
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0; 
}

a {
  text-decoration: none; 
}

.row {
  margin: 0;
  padding: 0; 
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh; 
}

main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1; 
  margin-top: var(--headerSize);
}

.preloader{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--darkblue) 75%, transparent);
}

.preloader svg{
  width: 15vw;
  height: auto;
  animation: rotate 2s ease-in-out infinite;
}

.preloader svg path{
  fill: var(--white)
}

@keyframes rotate {
  0%, 25%{
    transform: rotate(0deg);
  }
  75%, 100%{
    transform: rotate(360deg);
  }
}

img{
  max-width: 100%;
  display: inline-block;
}

.bg-blue{
  background-image: linear-gradient(to bottom, 
                                    color-mix(in srgb, var(--darkblue) 0%, transparent) 20%, 
                                    color-mix(in srgb, var(--darkblue) 75%, transparent) 25%, 
                                    color-mix(in srgb, var(--darkblue) 75%, transparent) 75%, 
                                    color-mix(in srgb, var(--darkblue) 0%, transparent) 100%), 
                    url(../images/ementa.svg), 
                    linear-gradient(to bottom, transparent 9rem, var(--darkblue) 9rem);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top center;
  position: relative;
  transform: translateY(-3rem);
  z-index: 2;
  background-blend-mode: luminosity;
}

.bg-blue.no-img{
  background-image: none;
  background-color: var(--darkblue);
  transform: translateY(0);
}

.subtitle{
  font-family: 'Biysk';
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 5px;
  text-align: center;
  text-transform: uppercase;
  color: var(--red);
}

.title{
  font-family: 'Belacu';
  font-weight: 400;
  font-size: 60px;
  line-height: 100%;
  letter-spacing: 8px;
  text-align: center;
  color: var(--blue);
  text-transform: uppercase;
}

.title--small{
  font-size: 24px;
  text-align: left;
}

.color-white{
  color: var(--white);
}

.bb-yellow{
  border-bottom: 2px solid var(--yellow);
}

.btns{
  border-radius: 91.18px;
  border: 1px solid var(--yellow);
  background-image: linear-gradient(to right, var(--yellow) 50%, var(--white) 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  font-family: 'Biysk';
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  color: var(--white);
  transition: all .3s ease-in-out;
  text-decoration: none!important;
  padding: .5rem 1rem;
}

.btns--contactos{
  width: fit-content;
}

.btns:hover{
  background-position: right bottom;
  color: var(--yellow);
}

.btns.selected{
  background: var(--white);
  color: var(--yellow);
  pointer-events: none;
}

.ementa-content__text{
  font-family: 'MontserratAlternatesLight';
  font-weight: 300;
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--white);
}

.ementa-content__text ul{
  padding: 0;
  margin: 0;
}

.ementa-content__text *:last-child{
  margin-bottom: 0;
}

.ementa-content__gallery__item{
  width: 100%;
  aspect-ratio: 3/4;
}

.especialidades__popup .ementa-content__gallery__item{
  border-radius: 12px;
  overflow: hidden;
}

.ementa-content__gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page__content{
  font-family: 'MontserratAlternatesLight';
  font-weight: 300;
  font-size: 14px;
  line-height: 138%;
  letter-spacing: 0;
  text-align: center;
  color: var(--black);
}

.page__content--small{
  text-align: left;
  line-height: 150%;
}

.page__content ul{
  list-style-type: disc;
}

.page__content ol{
  list-style-type: decimal;
}

.page__content a{
  text-decoration: underline;
  text-decoration-color: transparent;
}

.page__content a:hover{
  text-decoration-color: var(--black);
}

.page__content *:last-child{
  margin-bottom: 0;
}

.page__content__morada{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--yellow);
}

.page__content__morada a{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all .3s ease-in-out;
}

.page__content__morada a:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow)!important;
}

.page__content__morada strong{
  font-weight: 600;
}

.page__content__tel{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all .3s ease-in-out;
}

.page__content__tel:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow)!important;
}

.page__content__custo{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--yellow);
}

.page__content__email{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 600;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0px;
  text-align: center;
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all .3s ease-in-out;
}

.page__content__email:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow)!important;
}

.about__gallery__item{
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.color-yellow{
  color: var(--yellow);
}

.especialidades__img{
  width: 100%;
}

.especialidades__img img{
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.especialidades__next{
  font-family: 'MontserratAlternatesLight';
  font-size: 16px;
}

.especialidades__next__arrow{
  background-color: var(--white);
  padding: .5rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.especialidades__popup{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  background-color: color-mix(in srgb, var(--black) 25%, transparent);
  transition: all .3s ease-in-out;
}

.especialidades__popup.open{
  opacity: 1;
  transform: scale(1);
}

.especialidades__popup__inner{
  border-radius: 12px;
  max-height: 90vh;
  height: 90vh;
}

.ementa-content__text{
  max-height: 100%;
  overflow-y: auto;
}

.especialidades__popup__close{
  font-family: 'Biysk';
  background-color: transparent;
  text-transform: uppercase;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  position: absolute;
  top: 1.5rem;
  right: 3rem;
  transform: translateY(-50%);
  border: unset;
  width: fit-content !important;
  padding: 0 !important;
  transition: all .3s ease-in-out;
}

.especialidades__popup__close:hover{
  color: var(--yellow);
}

.especialidades__popup__inner .ementa-content__text{
  overflow-y: auto;
}

.ementa-content__gallery--especialidades, .ementa-content__text-container, .ementa-content__gallery-container, .ementa-content__gallery--especialidades .owl-stage-outer, .ementa-content__gallery--especialidades .owl-stage{
  height: 100%;
}

.ementa-content__gallery--especialidades .owl-item{
  height: 100%;
  display: flex;
  align-items: center;
}

.contactos-img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16/7;
}

.contactos{
  background-image: url(../images/contactos.png);
  background-position: top center;
  background-size: 100%;
}

.contactos .socials{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  border-radius: 50%;
  width: 30px;
  aspect-ratio: 1;
  padding: .25rem;
  transition: all .3s ease-in-out;
}

.contactos .socials:hover{
  background-color: var(--blue);
}

.contactos .socials svg{
  width: auto;
  height: 14px;
}

.bt-yellow{
  border-top: 2px solid color-mix(in srgb, var(--brown) 25%, transparent);
}

.menu-footer-item{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--darkblue);
  display: block;
  padding: .25rem 0;
  margin-bottom: .25rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all .3s ease-in-out;
}

.menu-footer-item:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}

.menu-footer-item:last-child{
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer__socials svg{
  width: auto;
  height: 20px;
}

.footer__socials svg path{
  fill: var(--blue);
  transition: all .3s ease-in-out;
}

.footer__socials a:hover svg path{
  fill: var(--yellow);
}

.footer__contactos__morada, .footer__contactos__morada a, 
.footer__contactos__tel,
.footer__contactos__email,
.copyright-area a, .copyright-area p{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0;
  color: var(--darkblue);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all .3s ease-in-out;
}

.footer__contactos__morada a:hover, 
.footer__contactos__tel:hover,
.footer__contactos__email:hover, 
.copyright-area a:hover{
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}

.footer__contactos__morada *:last-child{
  margin-bottom: 0;
}

.footer__contactos__custo{
  font-family: 'MontserratAlternatesRegular';
  font-weight: 400;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--darkblue);
}

footer .custom-logo{
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: auto;
}

.fadeIn{
  animation: fadeInAnimation 0.5s ease-in-out forwards 1;
}

@keyframes fadeInAnimation {
  from{
    opacity: 0;
  }
  top 100%{
    opacity: 1;
  }
}

@media only screen and (max-height: 700px){
  .ementa-content__text {
    font-size: 16px;
  }
}

@media only screen and (max-width: 1200px){
  .btns, .ementa-content__text {
    font-size: 18px;
  }
}

@media only screen and (max-width: 1200px) and (max-height: 700px) and (min-width: 768px){
  .ementa-content__gallery__item{
    height: 100%;
    width: auto;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 767px){
  .especialidades__popup__inner{
    max-width: 90vw;
    overflow-y: auto;
  }

  .especialidades__popup__close{
    top: 1rem;
    right: 1.5rem;
  }

  .ementa-content__gallery--especialidades, .ementa-content__gallery-container, .ementa-content__text-container, .ementa-content__gallery--especialidades .owl-stage-outer, .ementa-content__gallery--especialidades .owl-stage, .ementa-content__gallery--especialidades .owl-item{
    height: auto;
  }
}

@media only screen and (max-width: 576px){
  :root {
    --headerSize: 90px;
  }

  .title{
    font-size: 40px;
  }

  .title--small{
    font-size: 24px;
  }

  .ementa-content__text {
    font-size: 14px;
  }

  .ementa-content__gallery__item {
    aspect-ratio: 4 / 3;
  }

  .bg-blue{
    background-image: linear-gradient(to bottom, 
                                      color-mix(in srgb, var(--darkblue) 0%, transparent) 20%, 
                                      color-mix(in srgb, var(--darkblue) 75%, transparent) 25%, 
                                      color-mix(in srgb, var(--darkblue) 75%, transparent) 75%, 
                                      color-mix(in srgb, var(--darkblue) 0%, transparent) 100%), 
                      url(../images/ementa.svg), 
                      linear-gradient(to bottom, transparent 3rem, var(--darkblue) 3rem);
    background-size: cover;
  }

  .page__content__morada{
    font-size: 16px;
  }

  .page__content__morada a{
    font-size: 16px;
  }

  .page__content__tel{
    font-size: 16px;
  }

  .page__content__custo{
    font-size: 10px;
  }

  .page__content__email{
    font-size: 16px;
  }
}