@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');
@import url("https://fonts.googleapis.com/css?family=Herr+Von+Muellerhoff&display=swap");

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, a, span, input, button, select, textarea, li, address {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}

:root {
  --main-font: "Montserrat", sans-serif;
  --secondary-font: "Montserrat", sans-serif;
  --body-font: "Montserrat", sans-serif;
  --main-font-color-dark: #051a4a;
  --secondary-font-color: #ffd529;
  --body-font-color: #969cb2;
  --dark-blue: #051a4a;
}

html {
  font-family: var(--body-font);
  font-size: 10px;
  color: var(--body-font-color);
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  width: 100%;
}

section {
  padding: 3.9rem 0;
  overflow: hidden;
}

img {
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  color: var(--main-font-color-dark);
  font-size: 1.8rem;
}

.container {
  width: 100%;
  max-width: 122.5rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

/*header*/
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #051a4a !important; /* Azul escuro sólido idêntico ao footer e menu mobile */
}

.nav {
  height: 7.2rem;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  background-color: transparent !important;
}

.menu-toggle {
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2500 !important; /* Acima do nav-list para ser sempre visível */
  width: auto;
  text-align: right;
  padding: 1rem;
}

.logo-mobile {
  display: none;
}
.nav-logo{
  width: 60%; 
  max-width: 190px; 
  margin: 0 auto;
  z-index: 10;
}



.fa-times {
  display: none;
}

.nav-list {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* Aumentado para 100% para cobrir todo o ecrã */
  height: 100vh;
  background-color: #051a4a !important; /* Azul escuro sólido com 100% opacidade */
  padding: 8rem 2rem; /* Mais espaço no topo para o botão de fechar */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrar verticalmente */
  align-items: center; /* Centrar horizontalmente */
  z-index: 2000 !important; /* Acima de tudo */
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #051a4a; /* Azul escuro sólido */
  z-index: 1000;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s;
}

.open .fa-times {
  display: block;
}

.open .fa-bars {
  display: none;
}

.open .nav-list {
  transform: translateX(0);
}

.open .nav::before {
  opacity: 1;
  transform: scale(1);
}

.nav-item {
  width: 90%;
  margin: 1rem 0 !important; /* Margem vertical entre botões */
  overflow: hidden;
  border-radius: 10px; /* Arredondamento mais moderno */
  padding: 1.5rem;
  border: 1px solid #fff;
  text-align: center;
}

.nav-link {
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-right: -2px;
  transition: color.5s;
}

.nav-link:hover {
  color: var(--secondary-font-color);
}

/*Hero*/
.hero {
  width: 100%;
  height: 100vh;
  background: url("images/background.jpg") center no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  background-attachment: scroll !important;
}





.hero .curtain-gold {
  display: none;
}

.logo-cf {
  width: 100%;
  margin-top: -20rem; /* Sobe o logótipo para compensar a altura do header e ficar centrado visualmente */
  animation: scale 1s forwards;
}

.sub-headline {
  font-size: 6rem;
  font-family: var(--secondary-font);
  color: var(--secondary-font-color);
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
  animation-delay: 0.5s;
  margin-bottom: 1rem;
}

.first-letter {
  text-transform: uppercase;
  font-size: 7rem;
}

.headline {
  color: #fff;
  font-size: 2.8rem;
  font-family: var(--main-font);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.3rem;
  margin-right: -0.3rem;
  animation: scale 0.5s forwards;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.line {
  width: 100%;
  max-width: 17rem;
  height: 0.25rem;
  background-color: #fff;
  position: relative;
  opacity: 0;
  animation: grow 2s forwards;
  animation-delay: 0.9s;
}

#edicoes-anteriores{
  .container{
    .global-headline{
      .animate-bottom{
        .headline{
          color: var(--main-font-color-dark);
        }
      }
    }
  }
}

.line-right::before,
.line-left::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0.6rem solid transparent;
  opacity: 0;
  animation: grow 0.5s forwards;
  animation-delay: 1.2s;
}

.line-right::before {
  border-right-color: #fff;
  right: 0;
}

.line-left::before {
  border-left-color: #fff;
  left: 0;
}

.asterisk {
  font-size: 1.2rem;
  color: var(--secondary-font-color);
  margin: 0 1.6rem;
  opacity: 0;
  animation: spin 0.5s forwards;
  animation-delay: 0.7s;
}

.asterisk-forms{
  font-size: 1.2rem;
  color: white;
  margin: 0 1.6rem;
  opacity: 0;
  animation: spin 0.5s forwards;
  animation-delay: 0.7s;
}

.single-animation {
  margin-top: 20px;
  opacity: 0;
  animation: fadeDown 0.5s forwards;
  animation-delay: 1.5s;
}

.headline-description h5 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
  margin-right: -3px;
}

.btn {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: -2px;
}

.cta-btn {
  font-size: 1.1rem;
  background-color: #fff;
  padding: 0.9rem 1.8rem;
  color: var(--body-font-color);
  border-radius: 0.4rem;
  transition: background-color 0.5s;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #fff;
  background-color: var(--secondary-font-color);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-container {
  margin-top: -30rem; /* Puxa o botão para cima para ficar igual ao mobile */
  position: relative;
  z-index: 99; /* Garante que fica por cima de tudo */
  opacity: 1 !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.btn-cta {
  background-color: #fff;
  color: #001f3e;
  padding: 1.2rem 2.4rem; /* Formato igual ao do mobile */
  border-radius: 5rem;
  font-size: 1.2rem; /* Formato igual ao do mobile */
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  text-decoration: none;
}

.btn-cta:hover {
  background-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 899px) {
  .btn-cta {
    padding: 1.2rem 2.4rem;
    font-size: 1.2rem;
  }
  
  .cta-container {
    margin-top: -15rem; /* Move o botão para cima no mobile também */
  }
}

.form button:hover {
  background-color: var(--secondary-font-color);
  color: #fff;
}



.custom-file-upload:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary-font-color);
  color: var(--secondary-font-color);
}

.custom-file-upload i {
  font-size: 1.6rem;
}

/* Discover our story */
.global-headline {
  text-align: center;
  margin-top: 3.9rem;
}

#edicoes-anteriores{
  .container{

    .global-headline{
      .animate-bottom{
        .headline{
          color: var(--main-font-color-dark);
        }
      }
    }
  }
}

.global-headline .asterisk {
  color: var(--main-font-color-dark);
  margin: 2.4rem 0;
}

.global-headline .asterisk-forms {
  margin: 2.4rem 0;
}

.headline-dark {
  color: var(--main-font-color-dark);
  letter-spacing: 0.7rem;
  margin-right: -0.7rem;
}

.global-headline .sub-headline {
  letter-spacing: -1px;
  line-height: 0.42;
}

.carpenter-info {
  text-align: center;
}

.carpenter-description {
  margin-bottom: 3rem;
}

.carpenter-description p {
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.body-btn {
  font-size: 1.5rem;
  color: var(--secondary-font-color);
  position: relative;
  transition: color 0.5s;
}

.body-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-font-color);
  transition: background-color 0.5s;
}

.body-btn:hover,
.body-btn:focus {
  color: var(--main-font-color-dark);
}

.body-btn:hover::before,
.body-btn:focus::before {
  background-color: var(--main-font-color-dark);
}

/*confidence*/
.background1 {
  background: url(images/Cerimonia_Finalistas_ISCTE/background.jpg) center
    no-repeat;
  background-size: cover;
  background-attachment: fixed;
}


.background1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(
    0,
    0,
    0
  ); /* Ajuste o valor alpha para controlar a opacidade da cor escura */
  z-index: -1;
}

.background1 .container {
  position: relative; /* Certifique-se de que .container tenha uma posição relativa para que .confidence::before seja posicionado corretamente */
}

.background2 {
  background: url(images/Cerimonia_Finalistas_ISCTE/background2.jpg) center
    no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.background2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(
    0,
    0,
    0
  ); /* Ajuste o valor alpha para controlar a opacidade da cor escura */
  z-index: -1;
}


.background2 .container {
  position: relative; /* Certifique-se de que .container tenha uma posição relativa para que .confidence::before seja posicionado corretamente */
}

.between {
  min-height: 45vh;
  display: flex;
  align-items: center;
}

/* Galeria de imagens*/
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-width: 125rem;
  margin: 0 auto;
}
.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
}
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.modal-image {
  max-width: 80%;
  max-height: 80%;
}

/* Formulário de Inscrição */
#dataForm {
  display: grid;
  grid-template-columns: 1fr; /* 1 coluna por padrão (para dispositivos móveis) */
  grid-template-rows: repeat(4, auto) 1fr; /* 4 linhas para os inputs e uma linha para o botão */
  gap: 15px; /* Espaçamento entre os elementos */
  max-width: 600px; /* Ajusta a largura máxima do formulário */
  margin: 0 auto; /* Centraliza o formulário */
}

#dataForm input,
#dataForm select {
  width: 100%; /* Garante que os inputs ocupem a largura da célula */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  height: 42px; /* Altura fixa para todos os campos */
}

/* Faz com que os inputs fiquem lado a lado nas 2 primeiras colunas */
#name, #email, #curso, #socio, #telemovel, #numeroaluno, #acompanhantes {
  grid-column: span 1; /* Cada input ocupa uma célula */
}

/* Faz com que o wrapper de upload ocupe toda a largura */
.file-upload-wrapper {
  grid-column: span 1;
  width: 100%;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 42px; /* Mesma altura que os outros campos */
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  box-sizing: border-box;
}

/* Faz com que o botão ocupe toda a largura e fique centralizado */
#dataForm button {
  grid-column: span 1; /* O botão ocupa uma coluna */
  justify-self: center;
  padding: 10px 20px;
  height: 42px; /* Altura unificada */
  background-color: var(--main-font-color-dark);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}

#dataForm button:hover {
  background-color: #004080;
  transition: background-color 0.3s ease;
  color: var(--secondary-font-color);
}

.subtitle {
  font-size: 2.4rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.sub-subtitle {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

/* .video_text_link {
  text-align: center;
  margin: 0 auto;
  padding-top: 3em;
  padding-bottom: 3em;
  font-size: large;

  a:visited {
    text-decoration: none;
    color: black;
  }
} */

.video-container {
  position: relative;
  width: 85%;
  max-width: 85rem;
  margin: 0 auto;
}

.video-container::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*Discover our portfolio*/
.image-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
}

.discover-our-portfolio .carpenter-description {
  padding-top: 3rem;
  margin-bottom: 0;
}

/*Quality*/
.Quality {
  background: url("images/quality.jpg") center no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/*Footer*/
footer {
  padding: 7.9rem 0 0;
  background-color: var(--dark-blue);
  color: #fff;
  text-align: center;
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.copyright {
  padding-bottom: 20px !important;
  color: white !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  letter-spacing: normal !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: block !important;
}

.back-to-top {
  width: 7rem;
  height: 7rem;
  background-color: #fff;
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999 !important;
}

.back-to-top i {
  display: block;
  color: #051a4a;
  font-size: 2rem;
  padding: 2rem;
  animation: up 2s infinite;
}

.footer-content {
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important;
    text-align: center !important;
    flex-direction: column !important;
    font-size: 1.2rem !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

.footer_contacs, .social-media {
    width: 100% !important;
    margin-bottom: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

.footer_contacs .contacts {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.contacts {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

.morada {
    margin-bottom: 4rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    float: none !important;
}

.mail {
    margin-bottom: 2rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    float: none !important;
}

.morada h3, .mail h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.footer_contacs .contacts .mail a {
    text-decoration: underline !important;
    color: white !important;
    word-break: break-all !important;
    display: block !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.footer_contacs .contacts .mail a:hover {
    color: var(--secondary-font-color) !important;
}

.social-media {
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-content h4 {
  font-size: 2.8rem !important;
  text-transform: uppercase !important;
  font-weight: 100 !important;
  letter-spacing: 3px !important;
  padding-left: 3px !important;
  margin-bottom: 3rem !important;
  margin-top: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

.footer-content address {
    font-style: normal !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    word-break: break-word !important;
    white-space: normal !important;
    float: none !important;
}

.footer-content .asterisk {
  margin: 2.4rem 0;
}

.footer-content .asterisk-forms {
  margin: 2.4rem 0;
}

.footer-content-about {
  margin-bottom: 5.4rem;
}

.footer-content-about p {
  line-height: 2;
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.social-icons {
  list-style: none !important;
  margin-bottom: 2rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  text-indent: 0 !important;
}

.social-icons li {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
}

.social-icons a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-content address, 
.footer-content a,
.footer-content p,
.footer-content h3,
.footer-content h4,
.footer_contacs *,
.contacts * {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    width: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
}

.morada {
    margin-bottom: 1rem !important;
}

.mail {
    margin-top: 1rem !important;
}

.footer-content h4 {
    padding-left: 3px !important;
    margin-right: -3px !important;
}

.social-icons i {
  font-size: 2.5rem !important;
  color: #fff !important;
  padding: 0 1.5rem !important;
  opacity: 1 !important;
  transition: color 0.5s !important;
}

.social-icons i:hover,
.social-icons i:focus {
  color: var(--secondary-font-color);
}

/* FAQ area */

.faq-container {
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 0.5em;
  font-family: var(--main-font);
}
  .faq {
    width: 100%;
    margin: auto;
    margin-bottom: 7em;
    padding-top: 2em;
    padding-bottom: 5em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
.faq-accordian-container {
  width: 100%;
  box-sizing: border-box;
  margin-left: 25%;
}
  .faq-accordion {
    width: 75%;
    margin: 0;
  }
.accordion-dropbtn {
  background-color: #28a745;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
  width: 100%;
  padding: 2rem 2.5rem;
  border: none;
  outline: none;
  transition: 0.4s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  text-align: left;

  & i {
    font-size: 1.6rem;
  }
}
.accordion-dropbtn:hover {
  background-color: #218838;
  color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0);
  border-left: 1px solid rgba(0, 0, 0);
  border-right: 1px solid rgba(0, 0, 0);
  border-bottom: 1px solid var(--body-font-color);
}
.active {
  background-color: #28a745;
  color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0);
  border-left: 1px solid rgba(0, 0, 0);
  border-right: 1px solid rgba(0, 0, 0);
  border-bottom: 1px solid var(--body-font-color);
}
.active:hover {
  background-color: #218838;
  color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0);
  border-left: 1px solid rgba(0, 0, 0);
  border-right: 1px solid rgba(0, 0, 0);
  border-bottom: 1px solid var(--body-font-color);
}
.accordion-text {
  padding: 1rem 2rem 2rem 2rem;
  overflow: hidden;
  display: none;
  margin-bottom: 0.5em;
  border-bottom: 1px solid rgba(0, 0, 0);
  border-left: 1px solid rgba(0, 0, 0);
  border-right: 1px solid rgba(0, 0, 0);
  background-color: white;
  p {
    color: var(--main-font-color-dark);
    font-size: 1.4rem;
    line-height: 1.4;
  }
}
.active.faq-accordion {
  border: none;
}

.faq-text {
  font-size: 3.7rem;
  font-family: var(--main-font);
  text-transform: uppercase;
  color: var(--main-font-color-dark);
  align-items: center;
  text-align: center;
  font-weight: 900;
}

/*Sub-site*/
sub-site {
  background: url("images/hero.jpg") center no-repeat;
  background-size: cover;
}

/*Media Queries*/

@media screen and (max-width: 899px) {
  .logo-desktop {
    display: none !important;
  }
  .logo-mobile {
    display: block !important;
  }
  .nav-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto !important;
    max-width: 150px;
  }
  
  footer .container, 
  footer .footer-content, 
  footer .footer_contacs, 
  footer .contacts, 
  footer .morada, 
  footer .mail, 
  footer .social-media {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
  }

  footer .container {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }

  footer h4 {
      padding-left: 3px !important;
    }

    footer h3, 
    footer h4, 
    footer address, 
    footer p, 
    footer .footer-content a {
     text-align: center !important;
     width: 100% !important;
     margin: 0 auto 1.5rem auto !important;
     padding: 0 !important;
     display: block !important;
   }

   footer .mail {
     margin-bottom: 3.5rem !important;
   }

   footer .social-icons {
     display: flex !important;
     flex-direction: row !important;
     justify-content: center !important;
     align-items: center !important;
     width: 100% !important;
     margin: 0 auto !important;
     padding: 0 !important;
     list-style: none !important;
   }

   footer .social-icons li {
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     width: auto !important;
     margin: 0 0.5rem !important;
     padding: 0 !important;
   }

   footer .social-icons a {
     display: flex !important;
     width: auto !important;
     margin: 0 !important;
     padding: 1rem !important;
   }

   footer .back-to-top {
     display: flex !important;
     justify-content: center !important;
     align-items: center !important;
     width: 7rem !important;
     height: 7rem !important;
     left: 50% !important;
     transform: translateX(-50%) !important;
     position: absolute !important;
     top: -3rem !important;
     margin: 0 !important;
     padding: 0 !important;
   }

   footer .back-to-top a {
     display: flex !important;
     width: auto !important;
     height: auto !important;
     margin: 0 !important;
     padding: 0 !important;
   }
}

@media screen and (max-width: 1299px) {
  .hero .curtain-gold {
    display: none !important;
  }
}

@media screen and (min-width: 900px) {
  section {
    padding: 7.9rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-logo {
    margin: 0;
  }

  .nav-list {
    position: initial;
    width: initial;
    height: initial;
    background-color: transparent;
    padding: 0;
    justify-content: initial;
    flex-direction: row;
    transform: initial;
    transition: initial;
  }

  .nav-item {
    width: auto;
    margin: 0 2rem;
    border: none;
  }

  .nav-item:last-child {
    margin-right: 0;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .hero .curtain-gold {
    display: flex;
    position: absolute;
    height: 90vh;
    width: auto;
    top: 0;
  }
  
  .curtain {
    left: 4%;
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    animation: fadeDown 2.5s forwards;
  }
  
  .logo-cf {
    width: 100%;
    max-width: 60rem;
  }

  #dataForm {
    grid-template-columns: 1fr 1fr; /* 2 colunas */
    max-width: 800px; /* Largura máxima para telas maiores */
  }

  #name, #email, #curso, #socio, #telemovel, #numeroaluno, #acompanhantes {
    grid-column: span 1; /* Cada input ocupa uma célula */
  }

  .file-upload-wrapper {
    grid-column: span 2; /* A imagem ocupa as 2 colunas */
  }

  #dataForm button {
    grid-column: span 2; /* O botão ocupa as 2 colunas */
  }

  .active {
    position: relative;
  }

  .active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    bottom: -3px;
  }

  .sub-headline {
    font-size: 10rem;
    line-height: 0.4;
  }

  .first-letter {
    font-size: 12.2rem;
  }

  .headline {
    font-size: 4.7rem;
    letter-spacing: 0.8rem;
  }

  .faq-text {
    font-size: 4.7rem;
    letter-spacing: 0.8rem;
  }

  line {
    max-width: 15rem;
  }

  .carpenter-info {
    display: flex;
    align-items: center;
  }

  .carpenter-info > div {
    flex: 1;
  }

  .padding-right {
    padding-right: 7rem;
  }

  .footer-content {
    max-width: 125rem;
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    width: 100% !important;
}

.footer-content-divider {
    display: flex;
    justify-content: space-between;
}

.footer_contacs,
.social-media {
    width: 50%;
    margin-top: 0;
    padding-top: 0;
}

.contacts{
  display: flex !important;
  width: 100%;
}

.morada, .mail{
  width: 50%;
}

.newsletter-btn {
    margin-left: 12rem;
  }
}

/* Animations*/
@keyframes fadeUp {
  0% {
    transform: translateY(4rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale {
  0% {
    transform: scale(2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes grow {
  0% {
    width: 0;
  }
  100% {
    opacity: 1;
    width: 100%;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    opacity: 1;
    transform: rotate(-360deg);
  }
}

@keyframes fadeDown {
  0% {
    transform: translateY(-100vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  0% {
    transform: translateX(20rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeLeft {
  0% {
    transform: translateX(-20rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes up {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-1rem);
  }
}
