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

html {
  scroll-behavior: smooth;
  /* 16px -- default font size of the browser */
  /* 20px -- desired default font size (20/16*100=125%) */
  font-size: 125%;
}

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

.dark-mode .preloader{
    background-color: #082549;
}

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

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

.dark-mode .preloader-logo{
    content: url(img/rivda_logo_white.png);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


body{
    color:#15498B;
    background-color: #FFF3E5;
    background-size: cover;
    font-family: "EB Garamond", serif;
    height: 100%;
    transition: all 0.5s;
}

.dark-mode{
    color: rgb(255, 243, 229);
    background-color: rgb(8, 37, 73);
    transition: all 0.5s;
}

h1,h2,h3,h4,h5{
    font-weight: normal;
}

button{
    color:inherit;
    font-family: inherit;
    text-align: left;
}

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

.dark-mode p{
    color: white;
}

li,label,input{
    font-size: 1rem;
    font-family: inherit;
}

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

a:visited{
    color: #15498B;
}

a:hover{
    color: #15498B;
    text-decoration: underline;
    transition-property: width;
    transition-duration: 2s;
}

.dark-mode a{
    color: #FFF3E5;
}


.secção{
    padding: 4rem 7rem;
    padding-bottom: 0;
}

/* MAIN MENU */

.main{
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around ;
    align-items: center;
}

hr{
    border: none;
    height: 0.05rem;
    background-color: #15498B;
}

.dark-mode hr{
    background-color:#FFF3E5;
}

.horizontal-line{
    height: 0;
    border-top: 0.05rem solid #15498B;
}

.dark-mode .horizontal-line{
    border-top: 0.05rem solid #FFF3E5;
}

.vertical-line{
    height: 90vh;
    border-left: 0.05rem solid #15498B;
}

.dark-mode .vertical-line{
    border-left: 0.05rem solid #FFF3E5;
}

.dark-mode form .vertical-line{
    border-top: 0.05rem solid #FFF3E5;
}

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

/* CUSTOM DROPDOWN LINGUAS */

.linguas-dropdown{
    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;
    cursor: pointer;
}

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

.linguas-dropdown-optn{
    background-color: rgba(255, 243, 229, 0.95);
    cursor: pointer;
}

.dark-mode .linguas-dropdown-optn{
    background-color: hsla(213, 80%, 16%, 0.95);
}

.dark-mode .linguas-dropdown-custom:after{
    border-color: #FFF3E5 transparent transparent transparent;
}


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

.dark-mode .linguas-dropdown-custom.select-arrow-active:after{
    border-color: transparent transparent #FFF3E5 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(255, 243, 229, 0.90);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  transition: all 0.5s ;
}

.dark-mode .select-items{
    background-color: rgba(8, 37, 73, 0.90);
}

.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;
}

.main-img{
    overflow: hidden;
}

.main-img img{
    width: 30rem;
    margin-top: -8.5rem;
}

.main-img hr{
    margin-left: 1.25rem;
    margin-right: 1rem;
    margin-top: -10rem;
}

.logotipo-img-white{
    display: none;
}

.dark-mode .logotipo-img-white{
    display: block;
}

.dark-mode .logotipo-img{
    display: none;
}

.main-texto{
    text-align: center;
    align-self: center;
    justify-self: center;
}

.main-texto h2{
    font-size: 3rem;
    margin: 0rem 0rem;
}

.main-texto a{
    font-size: 1.4rem;
    border: 0.05rem solid rgb(21, 73, 139);
    padding: 1rem 3.5rem;
}

.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;
}

.main-foto-predios img{
    width: 30rem;
    position: absolute;
    overflow: hidden;
    bottom: 0;
    left: 0;
    z-index: -2;
}

.main-foto-predios-darkMode{
    display: none;
}

.dark-mode .main-foto-predios-darkMode{
    display: block;
}

.dark-mode .main-foto-predios-whiteMode{
    display: none;
}

.main-foto-ponte img{
    width: 30rem;
    position: absolute;
    overflow: hidden;
    bottom: 0;
    right: 0;
    z-index: -2;
}

.main-foto-ponte-darkMode{
    display: none;
}

.dark-mode .main-foto-ponte-darkMode{
    display: block;
}

.dark-mode .main-foto-ponte-whiteMode{
    display: none;
}


/* 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);
}

.main-menu{
    display: flex;
}



/* MISSÃO */

.missão{
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 0.5fr 0.5fr;
    align-items: start;
    justify-content:space-around;
    gap: 2rem;
}



.missão-texto h4{
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.missao-lema{
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: rem;
    text-align: center;
    font-style: italic;
}

.missão img{
    grid-column: 2/3;
    grid-row: 1/-1 ;
    width: 23rem;
    justify-self: end;
    margin-top: 1.5rem;
}

.titulo{
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.titulo h3{
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.missão-linha{
    width: 80%;
}

/* ÁREAS DE ATIVIDADE */

.atividade{
    height: auto;
    display: flex;
    align-items: start;
    justify-content:space-around;
    gap: 2rem;
    overflow-y:scroll;
}

.atividade-foto{
    width: 15rem ;
    height: 25rem;
    object-fit: cover;
    margin-top: 1.5rem;
}

.atividade-texto{
    width: auto;
}
.atividade-texto ul{
    list-style: none;
    padding: 0;
}

.atividade-texto-detalhe{
    overflow: hidden; /* Keep it hidden until fully expanded */
    max-height: 0; /* Start with max-height of 0 */
    transition: max-height 0.5s ease-in-out; /* Animation for height change */
}

.arrow-darkMode{
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.dark-mode .arrow-darkMode{
    display: block;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.dark-mode .arrow-whiteMode{
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;

}

.atividade-título{
    font-size: 2rem;
    font-style: inherit;
    background-color: inherit;
    border: none;
    display: grid;
    grid-template-columns: 10fr 1fr;
    grid-template-rows: 0.5fr 0.2fr;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    cursor: pointer;
    /* margin-bottom: 0; */
}

.atividade-título h4{
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.atividade-título-linha hr{
    margin-top: -0.75rem;
    margin-bottom: 0;
}

.atividade-linha-detalhe{
    grid-column: 1/3;
    grid-row: 2/3;
}

.atividade-linha{
    width: 100%;
}

.atividade-texto-detalhe-lista{
    list-style: none;
    color: black;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.dark-mode .atividade-texto-detalhe-lista{
    color: #FFF3E5;
}

.atividade-texto-detalhe-lista li::before{
    content: "→  ";
}


/* FORMULÁRIO */

.formulário h3{
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

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

.formulário form{
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
}

label{
    display: block;
}

.form_esquerdo{
    flex: 0 1 100%;
    margin-left: 0.5rem;
}

.form_direito{
    flex: 0 1 100%;
}


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

.box p{
    margin: 0;
}

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

#outro{
    display: inline;
    padding: 0.25rem 0.25rem;
    height: 1.5rem ;
}

.input-texto{
    width: 100%;
    height: 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.75rem;
}

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


select, textarea{
    padding:0.25rem 0.75rem; 
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    color: black;
    border: 0.05rem solid #082549;
    cursor:pointer;
    -webkit-border-radius: 0;
    border-radius: 0.1rem; 
    width: 100%;
}


select{
    height: 2.5rem;
}

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

}

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

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

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

.form-submit {
    padding:0.25rem 0.75rem; 
    background:#082549; 
    color: white;
    border:0 none;
    cursor:pointer;
    -webkit-border-radius: 0;
    border-radius: 0.1rem; 
    width: 100%;
    height: 2.5rem;
}

.dark-mode .form-submit{
    background: #FFF3E5;
}

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

.dark-mode .form-submit p{
    color: #082549 ;   
}

input[type=text]{
    padding:0.25rem 0.75rem; 
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    color: black;
    border: 1px solid #082549;
    cursor:pointer;
    -webkit-border-radius: 0;
    border-radius: 0.1rem; 
    width: 100%;
    height: 2.5rem;
}

/* RODAPÉ */

.rodapé{
    border-top: 0.05rem solid #15498B;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 0.5fr 0.5fr;
    padding: 1rem 5rem;
}

.dark-mode .rodapé{
    border-top: 0.05rem solid #FFF3E5;
}

.rodapé h4{
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.rodapé h5{
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
}

.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é-logo img{
    width: 7.5rem;
    margin-bottom: -2rem;
}

.dark-mode .rodapé-logo img{
    content: url(img/rivda_logo_white.svg);
}

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

.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;
}

.privacidade{
    background-color: rgba(255, 243, 229, 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;
}

.dark-mode .privacidade{
    background-color: oklab(26.604% -0.01834 -0.073 / 0.95);
}

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

.dark-mode .privacidade ul{
    color: #FFF3E5;
}

.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;
        /* overflow: hidden; */
        height: 100%;
    }

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

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

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