* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 112.5%;
  overflow-x: hidden;
}

body{
    color:#f7f7f7;
    font-family: "Open Sans", sans-serif;
    position: relative;
    background-image: url("img/Pyrus_background.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
}

h1,h2, h3{
    font-weight: 500;
}

h4{
    font-weight: 400;
}

p{
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}

a:link{
    color: #f7f7f7;
    text-decoration: none;
}

a:visited{
    color: #f7f7f7;
}

a:hover{
    color: #f7f7f7;
    text-decoration: underline;
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #154157;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* always on top */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}


.preloader.fade-out{
    opacity: 0;
    visibility: hidden;
}

.preloader-logo{
    width: 15rem;
    /* height: 12rem; */
    z-index: 99;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.secção{
    width: 100vw;  /* 100% of the viewport width */
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: center;
    justify-content: space-between ;
}

.sectionFrame{
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}

/* -------------- */
/* PÁGINA INICIAL */
/* -------------- */

.main{
    width: 100vw;  /* 100% of the viewport width */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around ;
    align-items: center;
}

.menu-linguas{
    display: flex;
    align-items: center;
    justify-content:center;
    font-size: 1rem;
    margin-top: 2.5rem;
    line-height: 1.2;
}


.main-nav{
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.logotipo{
    text-align: center;
    display: flex;
    align-items: center ;
    justify-items: center;
    flex-direction: column;
}

.logotipo h2{
    font-size: 2.3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.logotipo h3{
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.8rem;
}

.logotipo-img{
    width: 25rem;
    margin-top: -1rem;
    margin-bottom: -3.8rem;
}

.main-menu{
    display: flex;
    padding: 2rem 7rem;
    padding-bottom: 0;
}

.main-nav{
    display: flex;
    justify-content:center;
    align-items: center;
    font-size: 1.4rem;
    gap: 4rem;
    line-height: 1.2;
}

.main-scroll-down-button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.main-scroll-down-button-darkMode{
    display: none;
}

.dark-mode .main-scroll-down-button-whiteMode{
    display: none;
}
.dark-mode .main-scroll-down-button-darkMode{
    display: block;
}


.main-scroll-down-button img{
    width: 3.7rem;
    text-align: center;
    z-index: 1;
}

/* CUSTOM DROPDOWN LINGUAS */

.linguas-dropdown{
    cursor: pointer;
    position: absolute;
    right: 5rem;
    width: 4rem;
    height: 2rem;
    border: none;
    background-color: transparent;
    color: inherit;
    font-size: 1.4rem;
    
}

.linguas-dropdown select{
    display: none;
}

.linguas-dropdown-custom{
    background-color:transparent;
}

.linguas-dropdown-custom:after{
    position: absolute;
    content: "";
    top: 0.7rem;
    right: 0.5rem;
    width: 0;
    height: 0;
    border: 0.33rem solid transparent;
    border-color: #f7f7f7 transparent transparent transparent;
}


.linguas-dropdown-custom.select-arrow-active:after{
    border-color: transparent transparent #f7f7f7 transparent;
    top: 7px;
}

.select-items div,.select-selected {
  color: inherit;
  padding: 0.2rem 0.8rem;
  border: 0.05rem solid transparent;
  border-color: transparent transparent #15488b28 transparent;
  cursor: pointer;
  z-index: 99 ;
  
}

.select-items {
  position: absolute;
  background-color: rgba(8, 37, 73, 0.90);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  transition: all 0.5s ;
}

.select-hide {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.5s;
}

.select-items div:hover, .same-as-selected {
  background-color: #f2d4b26e;
}

.select-items:last-child{
    border: none;
}

.main-container-menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    gap: 2rem;
}

/* MOBILE MENU */

.btn-mobile-nav{
    border: none;
    background: none;
    cursor: pointer;
    display: none;
}

.icon-mobile-nav{
    height: 3rem;
    width: 3rem;
}

.icon-mobile-nav[name="close-outline"]{
    display: none;
}

.dark-mode .icon-mobile-nav[name="menu-outline"]{
    content: url(img/menu-outline_white.svg);
}

.dark-mode .icon-mobile-nav[name="close-outline"]{
    content: url(img/close-outline_white.svg);
}

/* ---------------- */
/* CUSTOM BUTTON */

/* From Uiverse.io by cssbuttons-io */ 
.main-button {
  --color: #f7f7f7;
  text-align: center;
  font-family: inherit;
  display: inline-block;
  width: 80%;
  line-height: 3em;
  margin: 20px;
  margin-top: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-color: transparent;
  border: 2px solid var(--color);
  transition: color 0.5s;
  z-index: 1;
  font-size: 28px;
  border-radius: 2px;
  font-weight: inherit;
  color: var(--color);
}

.main-button:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: #123241ce;
  height: 350px;
  width: 600px;
  border-radius: 70%;
}

.main-button:hover {
  color: #f7f7f7;
}

.main-button:before {
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.main-button:hover:before {
  top: -70px;
  left: -70px;
}

.main-button:active:before {
  background: #123241ce;
  transition: background 0s;
}

/* ---------------- */
/* SECÇÃO 2: MISSÃO */
/* ---------------- */

.missao{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto ;
    align-items:center;
    justify-items: space-between;
}


.missão-texto{
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
    background-color: hsla(199, 57%, 16%, 0.95);
}

.missão-texto h2{
    font-size: 2rem ;
    margin: 0px;
}

.missão-texto h3{
    font-size: 1.6rem ;
    margin-bottom: 18px;
}

.missão-texto p{
    margin-bottom: 1rem;
}

hr{
    margin-top: 0;
    margin-bottom: 2.2rem;
    color: #f7f7f7;
}

#MissãoFrase{
    grid-column: 1/-1;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    font-size: 2rem;
    margin-top: 1.5rem;
}

/* SLIDER */

.missao-slider{
    display: flex;
    align-items: center;
}

.missao-slider-content{
    width: 16.7rem;
    height: 30.6rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
}

.missao-slider-content-inner{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: translateX(000rem); 
    transition: transform 0.5s ease;
}


.missao-slider-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
}


.missão-slider-img-grid{
    align-self: center;
    justify-self: center;

}

.missão-slider-img{
    text-align: center;
    margin-bottom: 4rem;    
}

.missão-slider-img img{
    margin-bottom: -3.8rem;
    width: 16.7rem ;
}

.missão-slider-img h2{
    font-size: 1rem;
    text-transform: uppercase;
}

.missão-info{
    display: flex;
    align-self: center;
    justify-self: center;
    gap: 2.2rem;
}

.missão-info-extra{
    text-align: center;
    display: inline-block;
}

.missão-info-extra h3{
    font-size: 3.3rem ;
    margin-bottom: 0;
}

.missão-info p {
    margin-top: 0px;
    text-align: center;
}

.slider-pais{
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
}

.slider-pais h2{
    margin-bottom: 1rem;
}

.slider-pais img{
    width: 16.7rem;
    height: 6.7rem;
    object-fit: cover;
    margin-bottom: 1rem;
}

.slider-pais p{
    text-align: center;
}


.slider-left-arrow, .slider-right-arrow{
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.slider-left-arrow{
    transform: rotate(90deg);
}

.slider-right-arrow{
    transform: rotate(270deg);
}


/* SECÇÃO 3 - O NOSSO FOCO */


.container-foco{
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
    text-align: center;
    background-color: #123241ce;
}

.container-foco h2{
    font-size: 2rem;
    margin-bottom: 1.2rem;
}


.foco-main{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.foco-main-img{
    width: 9rem;
}

.foco-main-block-text{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.foco-main-block-text img{
    width: 3.3rem;
    height: 3.3rem;
}

.foco-main-block h3{
    font-size: 1.6rem;
}
.foco-descr{
    background-color: #d9d9d9;
    color: black;
}

.foco-descr ul{
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 2.2rem;
}

.foco-descr{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.foco-descr.active {
  max-height: 55rem; /* valor grande suficiente para conter o conteúdo */
  opacity: 1;
}

.list-style{
    list-style: none;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.list-style img{
    width: 5rem;
}

.list-style h4{
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 0;
}

.container-foco hr{
    display: none;
}

/* FORMULÁRIO */



.form-titulo{
    text-align: center;
    align-self: center;
    background-color: #123241ce;
}

.form-titulo h2{
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0;
    padding: 2rem 3.5rem ;
    
}

.form-input{
    margin-bottom: 1.4rem;
}

.formulário form{
    color: black;
    background-color: #d9d9d9 ;
    align-self: flex-start;
    padding-top: 3.3rem ;
    padding-bottom: 3.3rem ;
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
}

label{
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.form_esquerdo{
    flex: 0 1 100%;
}

.form_direito{
    flex: 0 1 100%;
}

.box{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start ;
    gap: 0.3rem;
}


.box p{
    margin: 0;
}

.box-title{
    margin-bottom: 0.67rem;
}
.form-solicit{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem 0.8rem;
    margin: 0 0.6rem;
    margin-bottom: 1.4rem;
}

#outro{
    display: inline;
    padding: 0.3rem 0.3rem;
    height: 1.7rem ;
}

.input-texto{
    width: 100%;
    height: 2.2rem;
}


.reuniao{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    display: flex;
    justify-content: flex-start; 
    gap: 0.8rem;
}

.reuniao.visible {
    max-height: 27rem; /*Adjust based on your content*/
    opacity: 1;
}


select, textarea{
    padding:0.3rem 0.8rem; 
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    color: black;
    border: 1px solid #082549;
    cursor:pointer;
    -webkit-border-radius: 0;
    border-radius: 2px; 
    width: 100%;
    
}

textarea{
    overflow: auto;
    font-family: inherit;
    width: 100%;
    height: 12rem;
    resize: none;

}

.form-contacto-check{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
}

.RGPD{
    display: flex;
    gap: 1.2rem;
}

input::placeholder{
    font-size: inherit;
}

.form-submit{
    font-size: inherit;
    background:#154157; 
    
    border:0 none;
    cursor:pointer;
    -webkit-border-radius: 5px;
    border-radius: 2px; 
    width: 100%;
    height: 2.6rem;
}

.form-submit p{
    text-align: center;
    color: #f7f7f7;
}

input[type=text], input[type=email], input[type=number], input[type=tel], select{
    height: 2.4rem;
    padding:0.3rem 0.8rem;
}

input[type=text], input[type=email], input[type=number], input[type=tel] { 
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    color: black;
    border: 1px solid #082549;
    cursor:pointer;
    -webkit-border-radius: 0;
    border-radius: 2px; 
    width: 100%;
    /* height: 2.2rem; */
}


/* CUSTOM CHECKBOX */

/* From Uiverse.io by KhaledMatalkah */ 
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox .checkmark {
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid #333;
  border-radius: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.3rem;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
  transform-style: preserve-3d;
}

.custom-checkbox .checkmark::before {
  content: "\2713";
  font-size: 1rem;
  color: transparent;
  transition: color 0.3s, transform 0.3s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #333;
  border-color: #333;
  transform: scale(1.1) rotateZ(360deg) rotateY(360deg);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::before {
  color: #fff;
}

.custom-checkbox:hover {
  color: #666;
}

.custom-checkbox:hover .checkmark {
  border-color: #666;
  background-color: rgb(240, 240, 240);
  transform: scale(1.05);
}

.custom-checkbox input[type="checkbox"]:focus + .checkmark {
  box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.2);
  outline: none;
}

.custom-checkbox .checkmark,
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  transition: background-color 1.3s, border-color 1.3s, color 1.3s, transform 0.3s;
}


/* CUSTOM SWITCH */

/* From Uiverse.io by gharsh11032000 */ 
/* The switch - the box around the slider */
.switch {
  font-size: 0.875rem;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border: 0.125rem solid #154157;
  border-radius: 3.125rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  left: 0.2em;
  bottom: 0.2em;
  background-color: #154157;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.switch input:checked + .slider {
  box-shadow: 0 0 10px #154157;
  border: 2px solid #154157;
}

.switch input:checked + .slider:before {
  transform: translateX(1.5em);
}

/* RODAPÉ */

.rodapé{
    background-color: hsla(199, 57%, 16%, 0.95);
    padding-top: 2.3rem ;
    padding-bottom: 2.3rem ;
    display: flex;
    justify-content:space-between;
    align-content: center;
}

.rodapé a{
    align-self: center;
}

.rodapé-contactos{
    align-self: center;
}

.rodapé-contactos h4{
    font-size: 1.3rem ;
    margin-bottom: 18px;
}

.rodapé-contactos h5{
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.rodapé-contactos-todos{
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0;
}

.rodapé-contactos-todos p{
    line-height: 1.4;
}

.rodapé-disclaimer{
    grid-column: 1/2;
    grid-row: 2/3;
}

.rodapé-disclaimer p{
    font-size: 0.6rem;
}

.rodapé-info{
    grid-row: 1/3;
    grid-column: 2/3;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rodapé-info a{
    font-size: 1rem;
}

.rodapé-logo img{
    width: 8.4rem;
    margin-bottom: -1rem;
}

.rodapé-logo{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.labelADVIR{
    margin-bottom: 0;
}

.privacidade{
    background-color: rgba(8, 37, 73, 0.95);
    padding: 5rem 5rem;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;   
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.5s;
}

.privacidade ul{
    color: #f7f7f7;
    margin-left: 1rem;
}


.privacidade h3, h4, h5{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.privacidade h3{
    font-size: 2rem;
}

.privacidade h4{
    font-size: 1.5rem;
}

.privacidade h5{
    font-size: 1rem;
}

.privacidade-titulo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1rem;
}

.open-privacidade .privacidade{
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        z-index: 99;
        height: 100%;
    }

body.open-privacidade {
    overflow: hidden;
    height: 100vh;
}

.icon-mobile-nav[name="priv-close-outline"]{
    z-index: 999;
}
