*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}
html{
  scroll-behavior: smooth;
}
.header{
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/kapittal2026.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
nav{
  display: flex;
  padding: 2% 6%;
  justify-content: space-between;
  align-items: center;
}
nav img{
  width: 200px;
}
.nav-links{
  flex: 1;
  text-align: right;
}
.nav-links ul li{
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}
.nav-links ul li a{
  color: white;
  text-decoration: none;
  font-size: 13px;
}
.nav-links ul li::after{
  content: '';
  width: 0%;
  height: 2px;
  background: #f44336;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li:hover::after{
  width: 100%;
}
.text-box{
  width: 90%;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
.text-box h1{
  font-size: 46px;
}
.text-box p{
  margin: 10px 0 40px;
  font-size: 14px;
  color: white;
}
.hero-btn{
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
  border-radius: 25px;
}
.hero-btn:hover{
  border: 1px solid #f44336;
  background: #f44336;
  transition: 1s;
}
nav .fa{
  display: none;
}
@media(max-width: 850px){
  .text-box h1{
    font-size: 20px;
  }
  .nav-links ul li{
    display: block;
  }
  .nav-links{
    position: fixed;
    background: #f44336;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 1s;
  }
  nav .fa{
    display: block;
    color: white;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }
  .nav-links ul{
    padding: 30px;
  }
}
.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}
h1{
  font-size: 36px;
  font-weight: 600;
}
p{
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}
.row{
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}
.course-col{
  flex-basis: 31%;
  background: #fff3f3;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
}
h3{
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}
.course-col:hover{
  box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 850px){
  .row{
    flex-direction: column;
  }
}
.video h1{
  text-align: center;
  margin: auto;
  padding-top: 50px;
}
.video video{
  max-width: 1000px;
  display: flex;
  margin: 50px auto;
  width: 100%;
  position: relative;
  border-radius: 10px;
}
.month h1{
  text-align: center;
  margin: auto;
  padding-top: 50px;
}
.month {
  margin: 0px 50px;
}
.month img{
  max-width: 900px;
  display: flex;
  margin: 50px auto;
  width: 100%;
  position: relative;
  border-radius: 10px;
}
.month{
  transition: 1s;
}
.month:hover img{
  box-shadow: 0 0 50px 0px rgba(0,0,0,0.2);
}
.month2 h1{
  text-align: center;
  margin: auto;
  padding-top: 50px;
}
.month2 img{
  display: flex;
  margin: 50px auto;
  width: 80%;
  position: relative;
  border-radius: 10px;
}
.month2{
  transition: 1s;
}
.month2:hover img{
  box-shadow: 0 0 50px 0px rgba(0,0,0,0.2);
}
.campus{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}
/* Faixa da HISTORIA. Uma linha so, altura fixa e largura livre: os cartazes
   verticais e horizontais convivem sem nenhum ser cortado. Nao usa .row de
   proposito -- .row e partilhado com testimonials, about-us e originals. */
.timeline{
  position: relative;
  margin-top: 45px;
}
.tl-faixa{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.tl-item{
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  display: block;
  text-align: center;
}
.tl-item img{
  height: 300px;
  width: auto;
  display: block;
  border-radius: 10px;
  /* so box-shadow. "transition: 0.5s" sozinho vale "all", e uma transicao de
     "all" dentro de um contentor com scroll-snap faz o browser reavaliar o
     encaixe ao passar o rato. */
  transition: box-shadow 0.5s;
}
.tl-item:hover img{
  box-shadow: 0 0 25px 0px rgba(0,0,0,0.2);
}
.tl-item:focus-visible img{
  outline: 3px solid #f44336;
  outline-offset: 3px;
}
/* a regua dos anos. as margens laterais sao metade do gap, para a linha
   passar por cima do intervalo e ficar continua de ponta a ponta. */
.tl-ano{
  display: block;
  margin: 26px -9px 0;
  border-top: 1px solid #ddd;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  position: relative;
}
.tl-ano::before{
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f44336;
}
.tl-nav{
  position: absolute;
  top: 150px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f44336;
  color: white;
  font-size: 22px;
  line-height: 44px;
  cursor: pointer;
  z-index: 2;
  opacity: 0.92;
  transition: 0.3s;
}
.tl-nav:hover{
  opacity: 1;
}
.tl-nav.off{
  opacity: 0;
  pointer-events: none;
}
.tl-prev{
  left: -18px;
}
.tl-next{
  right: -18px;
}
.tl-dica{
  text-align: center;
  font-size: 13px;
  margin-top: 6px;
}
.lightbox{
  border: 0;
  padding: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}
.lightbox::backdrop{
  background: rgba(4,9,30,0.92);
}
.lb-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.lb-conteudo{
  text-align: center;
}
/* so max-*: a imagem encolhe para caber mas nunca e ampliada, por isso
   nunca aparece desfocada. */
.lightbox img{
  max-width: 92vw;
  max-height: 82vh;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
.lb-ano{
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding-top: 14px;
}
.lb-fechar{
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.lb-fechar:hover{
  background: #f44336;
}
@media(max-width: 850px){
  .timeline{
    margin-top: 30px;
  }
  .tl-nav{
    display: none;
  }
  .tl-item img{
    height: 260px;
  }
  .lightbox img{
    max-height: 78vh;
  }
}
@media(prefers-reduced-motion: reduce){
  .tl-faixa{
    scroll-behavior: auto;
  }
}
.campus-col{
  flex-basis: 32%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.campus-col img{
  height: 300px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.campus-col2{
  flex-basis: 80%;
  border-radius: 10px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}
.campus-col2 img{
  height: 650px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.layer{
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
}
.layer:hover{
  background: rgba(226,0,0,0.7);
}
.layer h3{
  width: 100%;
  font-weight: 500;
  color: white;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
  text-align: center;
}
.layer:hover h3{
  bottom: 49%;
  opacity: 1;
  vertical-align: middle;
  text-align: center;
}
.facilities{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 30px;
  justify-content: space-between;
}
.facilities-col{
  flex-basis: 31%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
}
.facilities-col img{
  width: 100%;
  border-radius: 10px;
}
.facilities-col p{
  padding: 0;
}
.facilities-col h3{
  margin-top: 16px;
  margin-bottom: 15px;
}
.facilities-col a{
  text-decoration: none;
  color: black;
}
.facilities-col a:hover{
  color: #f44336;
  transition: 0.5s;
}
.originals{
  width: 85%;
  margin: auto;
  padding-top: 50px;
  text-align: center;
}
.originals-col{
  flex-basis: 44%;
  border-radius: 10px;
  padding: 25px;
  transition: 1s;
}
.originals-col img{
  width: 100%;
  max-height: 300px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 10px;
  position: relative;
}
.originals-col:hover img{
  box-shadow: 0 0 50px 0px rgba(0,0,0,0.2);
}
@media(max-width: 850px){
  .originals{
    width: 100%;
  }
  .originals-col{
    padding: 0;
    padding-top: 20px;
  }
  .originals-col img{
    margin-left: 0px;
    margin-right: 0px;
    width: auto;
    max-height: 200px;
    border-radius: 10px;
    position: relative;
    align-items: center;
  }
}
.testimonials{
  width: 80%;
  margin: auto;
  padding-top: 50px;
  text-align: center;
}
.testimonial-col{
  flex-basis: 44%;
  border-radius: 10px;
  margin-bottom: 5%;
  margin-left: 5px;
  margin-right: 5px;
  text-align: left;
  background: #fff3f3;
  padding: 25px;
  display: flex;
  transition: 0.5s;
}
.testimonial-col img{
  height: 40px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 50%;
}
.testimonial-col:hover {
  box-shadow: 0 0 25px 0px rgba(0,0,0,0.2);
}
.testimonial-col p{
  padding: 0;
}
.testimonial-col h3{
  margin-top: 15px;
  text-align: left;
}
.testimonial-col .fa{
  color: #f44336;
}
@media(max-width: 850px){
  .testimonial-col img{
    margin-left: 0px;
    margin-right: 15px;
  }
}
.cta{
  margin: 30px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/kapittal2023.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
  transition: 0.5s;
}
.cta:hover{
  box-shadow: 0 0 100px 0px rgba(0,0,0,0.2);
}
.cta h1{
  color: white;
  margin-bottom: 40px;
  padding: 0;
}
@media(max-width: 850px){
  .cta h1{
    font-size: 24px;
  }
}
.footer{
  width: 100%;
  text-align: center;
  padding: 30px 0;
}
.footer h4{
  margin-bottom: 10px;
  margin-top: 20px;
  font-weight: 600;
}
.icons .fa{
  color: #f44336;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
}
.footer p{
  margin-top: 15px;
}
.footer p a{
  text-decoration: none;
  color: #777;
}
.footer p a:hover{
  color: #f44336;
  transition: 0.5s;
}

/*----------------------------------------------------*/

.sub-header{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/palco5.jpeg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: white;
}
.sub-header h1{
  margin-top: 30px;
}
/* O limite de largura existe por causa dos ecras largos: a 80% de 1920 a foto
   chegava a 737x510 e sobravam 209px de vazio por baixo do texto, o que fazia
   esta seccao esmagar a faixa da HISTORIA logo a seguir. O align-items so no
   .about-us -- o .row generico e partilhado com testimonials e originals. */
.about-us{
  width: 80%;
  max-width: 1050px;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;
}
.about-us .row{
  align-items: center;
}
.about-col{
  flex-basis: 48%;
  padding: 30px 2px;
}
.about-col img{
  width: 100%;
  border-radius: 10px;
}
.about-col h1{
  padding-top: 0;
}
.about-col p{
  padding: 15px 0 25px;
}
.red-btn{
  border: 1px solid #f44336;
  background: transparent;
  color: #f44336;
}
.red-btn:hover{
  color: white;
}
.remember{
  text-align: center;
  transition: 1s;
}
.remember img{
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 50%;
}
.remember img:hover{
  box-shadow: 0 0 50px 0px rgba(0,0,0,0.2);
}
.remember video{
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 50%;
}
@media(max-width: 1150px){
  .about-col img{
    flex-direction: column;
  }
}
@media(max-width: 850px){
  .remember img{
    width: 85%;
  }
  .remember video{
    width: 85%;
  }
}
.imagetext{
  background-color: #f44336;
  color: white;
  font-size: 28px;
  padding: 2px 16px;
  border-radius: 10px;
}
.middle{
  transition: 1s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
.campus-col:hover .image{
  opacity: 0.5;
}
.campus-col:hover .middle{
  opacity: 1;
}
.campus-col2:hover .image{
  opacity: 0.5;
}
.campus-col2:hover .middle{
  opacity: 1;
}

/*----------------------------------------------------*/

.sub-header2{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/publico1.jpeg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: white;
}
.sub-header2 h1{
  margin-top: 30px;
}
.originals-col iframe{
  width: 100%;
  max-height: 315px;
  margin-left: 0px;
  margin-right: 0px;
  border-radius: 10px;
  position: relative;
}
@media(max-width: 850px){
  .originals-col iframe{
    width: 85%;
  }
}
.convida{
  text-align: center;
  margin-top: 50px;
}
.convida p{
  margin-bottom: 50px;
}
.campus-col iframe{
  border-radius: 10px;
}
@media(max-width: 850px){
  .campus-col iframe{
    max-height: 300px;
    width: 85%;
  }
}

/*----------------------------------------------------*/

.sub-header3{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/artistas1.jpeg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: white;
}
.sub-header3 h1{
  margin-top: 30px;
}

/*----------------------------------------------------*/

.sub-header4{
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/palco2.jpeg);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: white;
}
.sub-header4 h1{
  margin-top: 30px;
}
.location{
  width: 80%;
  margin: auto;
  padding-top: 30px;
}
.location iframe{
  width: 100%;
}
.location h1{
  text-align: center;
  margin: auto;
  padding-bottom: 40px;
}
.contact-us{
  width: 80%; 
  margin: auto;
  margin-top: 50px;
}
.contact-col{
  margin-bottom: 30px;
}
.contact-col div{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}
.contact-col div .fa{
  color: #f44336;
  margin: 10px;
  margin-right: 20px;
  margin-left: 80px;
}
.contact-col div p{
  padding: 0;
}
.contact-col div h5{
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}
.contact-col input, .contact-col textarea{
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
@media only screen and (max-width: 1350px) {
  .contact-col div {
    flex-direction: column;
    text-align: center;
  }
  .contact-col div .fa{
    margin-right: 0;
    margin-left: 0;
  }
}
@media(max-width: 850px){
  .contact-us{
    padding-top: 50px;
  }
  .contact-col span h5, p{
    font-size: medium;
  }
}
.gotopbtn{
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background: #f44336;
  bottom: 60px;
  right: 50px;
  text-decoration: none;
  text-align: center;
  line-height: 50px;
  color: white;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s;
}
.gotopbtn.active{
  pointer-events: auto;
  opacity: 1;
  bottom: 40px;
}
