﻿@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

:root {
    --black: #1f1f1f;
    --darkgrey: #5b5b5b;
    --grey: #999898;
    --lightgrey: #eeeeee;
    --whitegrey: #f1f1f1;
    --white: #ffffff;
    --primary-black: #080a2d;
    --primary-blue: #3f6593;
    --primary-orange: #e63023;
    --warning: #d8411b;
    --darkblue: #0d728c;
    --blue: #44a3bb;
    --green: #89a437;
    --yellow: #ffc600;
    --mint: #32b198;
    --pink: #d12275;
    --purple: #9b2bcf;
    --deepblue: #3e6dda;
    --salmon: #f66b4a;
    --lilac: #ad54f8;
}

.right{float: right;}
.left{float: left;}
.right0{right: 0px;}

.clear {
    clear: both;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.container{
    max-width: 1380px;
    margin: 0 auto;
    padding: 1rem 1rem 1rem 1rem;
    
}

.container .sub-title{
    /* color: #86b1c3; */
    color: #5e9f83;
    text-transform: uppercase;
    font-size: 17pt;
    margin-top: 40px;
}
.container > h2{
    /* color: #335e92; */
    color: #2e5b38;
    font-weight: normal!important;
    font-size: 35pt;
    margin-top: 0px;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .container h2 {
        font-size: 2em;
    }

    .container .sub-title {
        font-size: 1.2em;
    }
}

@media (max-width: 400px) {
    .container h2 {
        font-size: 1.5em;
    }
}

.mosaic-block .youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 75%;
    background-color: black;
}

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: black;
}

.hide{
    display: none;
}

.portal {
    position: relative;
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
}

.portal h1,
.portal h2,
.portal h3,
.portal h4,
.portal h5,
.portal h6,
.portal p {
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
}

.portal h1,
.portal h2,
.portal h3,
.portal h4,
.portal h5,
.portal h6 {
    font-weight: bold;
}

.portal input,
.portal textarea,
.portal button,
.portal select,
.portal div,
.portal a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.portal p {
    margin: 15px 0px 10px 0px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333333;
    font-weight: 300;
}

.portal .title {
    font-size: 1.7rem;
    margin: 10px 0 20px 0;
    color: #333333;
    text-transform: uppercase;
}

.portal ul li {
    font-weight: 300;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.5;
    font-size: 1.1rem;
}


/* Back to top button - start */

.back-to-top {
    position: fixed;
    display: none;
    background: #535c68;
    color: #fff;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 50%;
    right: 30px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 11;
    border: none;
}
.back-to-top:hover {
    cursor:pointer;
    background: black;;
}

.back-to-top i {
    padding-top: 0px;
    color: #fff;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* Back to top button - end */

body {
    margin: 0;
    padding: 0;
}

.portal a {
    color: #0d4e9b;
    text-decoration: none;
    /* font-size: 1rem; */
}
.portal a:hover{
    text-decoration: underline;
}

.portal .container {
    max-width: 1380px;
    margin: 0 auto;
}
.portal .container-small {
    max-width: 840px;
    margin: 0 auto;
    min-height: 500px;
}

.portal .conteudo{
    padding: 0 1rem 2rem 1rem;
}

.portal .conteudo a{
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.portal .conteudo a:hover{
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.portal .container.header {
    min-width: 100%;
    width: 100%;
    background-color: #535c68;
    display: flex;
    justify-content: flex-start;
    color: white;
}

.portal .header {
    border-bottom: 1px solid #d9dde2;
    height: 120px;
}

.portal .header-top {
    /* background-color: var(--primary-blue); */
    background: url(../img/grid.png)rgba(85, 85, 85, 1);
    width: 100%;
    color: white;
}

.portal .header-top .container {
    /* padding-top: 10px;
    padding-bottom: 10px; */
    padding: 0px;
    display: flex;
    justify-content: space-between;
}
.portal .header-top .language {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-items: center;
    gap: 15px;
    padding: 7px 15px;
    background-color: #454545;
}

.portal .header-top .language a {
    color: #bbb;
    font-size: 0.9em;
}

.portal .header-top a {
    display: inline-block;
    color: white;
    text-transform:uppercase;
    font-size: 0.75em;
}

.portal .header-top a.selected {
    /* border: 1px solid white;
    border-radius: 25px; */
    padding: 4px;
    font-weight: bold;
    color: white;
}

.portal .header-top .social {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 10px;
}

.portal .header-top .social a {
    display: inline-block;
    padding: 4px;
    font-size: 1.2rem;
}

.portal .header-top .social img {
    width: 24px;
    height: 24px;
}

.portal .header-top .social a:hover {
    opacity: 0.7;
}



.portal .header-menu > .container {
    display:flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
}
.portal .header-menu .search-mobile {
    display: none;
}
.portal .header-menu .search-mobile img {
    width: 75%;
}

.portal .header-menu .menu ul li {
    line-height: 1.5;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.portal .header-menu.scrolled .menu ul li {
    line-height: 1;
    font-size: 1rem;
}












/********** HEADER - LOGO - start **********/
/* .header-container > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 400px;
}
.header-container .top {
        display: flex;
    justify-content: space-between;
}
.header-container .bottom {
    text-align: right;
}
.header-container .bottom p{
    color: #213d5e;
    font-size: 3em;
    line-height: 1;
    text-shadow: 1px 1px 2px #ffffff;

} */



.header-container {
  width: 100%;
  aspect-ratio: 1241 / 448; /* mantém proporção original */
  max-height: 448px;
  position: relative;

  background-image: url('../img/Cabecalho_principal.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain; /* ou cover, ou 100% auto */
}

/* Laterais */
.header-container::before,
.header-container::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: repeat-x;
  background-size: auto auto;
}

.header-container::before {
  left: 0;
  width: calc((100% - min(100%, 1240px)) / 2); /* ajusta dinamicamente */
  background-image: url('../img/Cabecalho_principal_left.png');
  background-position: left top;
}

.header-container::after {
  right: 0;
  width: calc((100% - min(100%, 1238px)) / 2);
  background-image: url('../img/Cabecalho_principal_right.png');
  background-position: right top;
}




.header-container-generic {
  width: 100%;
  background: #88d3a1;
}
.header-container-generic.filled {
  background: #2e5b38;
}

.header-container-generic .breadcrumb {
    margin: 20px;
}

.header-container-generic .breadcrumb a {
    font-size: 0.85rem;
    color: #333;
    text-transform: uppercase;
    display: inline-block;
    font-weight: 300;
}

.header-container-generic.filled .breadcrumb a {
    color: white;
}

.header-container-generic .breadcrumb span {
    display: inline-block;
    padding: 0 5px;
    color: #333;
}

.header-container-generic.filled .breadcrumb span {
    color: white;
}

.header-container-generic h1 {
    margin: 0px;
    font-size: 2.2rem;
    text-align: left;
    color: #333;
    padding-left: 1rem;
    padding-right: 1rem;
	font-weight: 400!important;
}

.header-container-generic.filled h1 {
    color: white;
    margin: 20px 0;
}

.header-container-generic p.description {
    width: 80%;
    margin-left: 20px;
    color: #333;
    font-weight: 100;
}

.header-container-generic.filled p.description {
    color: white;
}

.header-container-generic p.modified-date {
    margin: 25px 0 20px 20px; 
    color: #333; 
    font-weight: 100;
}

.header-container-generic.filled p.modified-date {
    color: white;
}





/* .header-container .logo {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.header-container .logo a {
    display: block;
}
.header-container .logo a img {
    width: 330px;
}
@media screen and (max-width: 1440px){
    .header-container .logo {
        padding-left: 80px;
    }
} */

/********** HEADER - LOGO - end **********/

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-item {
    grid-column: span 1;
}
@media (min-width: 720px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1020px) {
    .grid-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ========================================================= FOOTER - START ====================================================== */

/*********** FOOTER-TOP *************/
.footer {
    width: 100%;
    background-color: #4e4e4d;
    /* font-family: "Roboto", Arial, sans-serif; */
}

.footer-top {
    display: flex;
    flex-wrap: wrap; /* permitir quebra nas colunas */
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
}

.footer-top a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.footer-top a:hover {
    text-decoration: underline;
}

.footer-top h2 {
    font-size: 1.2em;
    margin: 15px 0;
    color: white;
    font-weight: 600;
}

.footer-top .logo-gov {
    display: block;
    margin-bottom: 15px;
    max-width: 160px;
    height: auto;
}

.footer-top .logo-sgmai {
    display: block;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
}

.footer-top .contactos p {
    line-height: 1.4;
    margin-bottom: 8px;
    color: white;
}

.footer-top ul {
    padding: 0;
    margin: 0;
}

.footer-top ul li {
    list-style: none;
    /* padding: 5px 0; */
}

/* --- Accordion inicialmente desativado (desktop) --- */
.footer-top h2 {
    font-size: 1.2em;
    margin: 15px 0;
    color: white;
    font-weight: 600;
    cursor: default;
}

.footer-top ul,
.footer-top p {
    display: block;
}

/*********** FOOTER-MIDDLE *************/
.footer-middle-outer{
    background-color: #f7f8f9;
    padding: 20px 0;
}

.footer-middle{
    display: flex; 
    justify-content: space-around;
}

/*********** FOOTER-BOTTOM *************/
.footer-bottom-outer{
    background-color: white;
    
}
.footer-middle img {
    max-height: 50px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-bottom .copyright {
    flex: 1 1 auto;
}

.footer-bottom .social {
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
    gap: 8px;
}

.footer-bottom .social a {
    display: inline-block;
    padding: 4px;
    transition: opacity 0.3s;
}

.footer-bottom .social img {
    width: 24px;
    height: 24px;
}

.footer-bottom .social a:hover {
    opacity: 0.7;
}

/*********** RESPONSIVIDADE *************/
@media (max-width: 992px) {
    .footer-top {
        justify-content: space-around;
    }

    .footer-top > div {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    /* --- reorganiza o footer --- */
    .footer-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* .footer-top .contactos {
        display: flex;
        flex-direction: column;
        align-items: center;
    } */

    /* .footer-top .contactos h2,
    .footer-top .contactos p {
        display: none;
    } */

    .footer-top > div {
        width: 100%;
        padding: 10px 0;
    }

    .footer-top h2 {
        font-size: 1.1em;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .footer-top h2::after {
        content: "▾";
        font-size: 1em;
        transition: transform 0.3s;
    }

    /* conteúdo do accordion fechado por padrão */
    .footer-top ul,
    .footer-top p {
        display: none;
        padding-top: 10px;
    }

    /* quando expandido */
    .footer-top .open ul,
    .footer-top .open p {
        display: block;
    }

    .footer-top .open h2::after {
        transform: rotate(180deg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom .social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-top h2 {
        font-size: 1.1em;
    }

    .footer-top p, .footer-top a, .footer-bottom p {
        font-size: 0.9em;
    }

    .footer-bottom .social img {
        width: 20px;
        height: 20px;
    }
}

/* ========================================================= FOOTER - END ====================================================== */


.container-center {
    min-height: 500px;
    display: flex;
    justify-content: center;
    width: calc(100% - 380px);
}

.content-center {
    background-color: var(--white);
    width: calc(100% - 400px);
    padding: 20px 40px 40px 20px;
}

.content h1,
.content-center h1,
.my-content h1,
.container-small h1 {
    font-weight: 400;
    margin: 25px 0 20px 0;
    font-size: 2rem;
    text-align: left;
    color: #333333;
    padding-left: 1rem;
    padding-right: 1rem;
}

.content-center {
    text-align: justify;
    font-size: 0.9rem;
    line-height: 1.5;
}

/*********** breadcrumb *************/
.breadcrumb {
     margin: 20px;
}
.breadcrumb a {
    font-size: 0.85rem;
    color: var(--darkgrey);
    text-transform: uppercase;
    display: inline-block;
}

    .breadcrumb a:hover {
        text-decoration: underline;
        color: var(--black);
    }

.breadcrumb span {
    display: inline-block;
    padding: 0 5px;
    color: var(--darkgrey);
}



.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 1rem!important;
    line-height: 1.42857143;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    font-size: 0.8rem;
    line-height: 2.29;
    text-align: left;
    color: white!important;
    background-color: #555c67;
    border: solid 1px #555c67;
    padding: 0px 20px;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, transparent 50%, rgb(0, 0, 0) 50%);
    transition: background-position .3s cubic-bezier(0.19, 1, 0.22, 1) .1s, color .5s ease 0s, background-color .5s ease;
}

a.btn:hover{
    text-decoration: none!important;
}

.btn img {
    position: relative;
    top: 3px;
    left: 10px;
    width: 20px;
}

.btn i {
    font-size: 13pt;
    position: relative;
    top: 2px;
    left: 8px;
}

.btn.add i {
    font-size: 13pt;
    position: relative;
    top: 2px;
    left: 1px;
}

.btn.delete i {
    font-size: 10pt;
    position: relative;
    top: 1px;
    left: 1px;
}

.btn.back i {
    font-size: 13pt;
    position: relative;
    top: 1px;
    left: -8px;
}

.btn:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
    background-position: -100% 100%;
}

.btn-text.icon {
    position: relative;
    top: 1px;
}

.btn-green {
    background-color: #009118;
    border: solid 1px #009118;
}
.btn.btn-green:hover {
    color: rgba(255, 255, 255, 1);
    background-color: #008316;
    border-color: #008316;
    background-position: 0%;
}

.btn-red {
    background-color: #e72626;
    border: solid 1px #e72626;
}
.btn.btn-red:hover {
    color: rgba(255, 255, 255, 1);
    background-color: #bb1a1a;
    border-color: #bb1a1a;
    background-position: 0%;
}

.btn.small{
    padding: 0px 15px;
    font-size: 10pt !important;
}

.ms-asset-icon {
    margin: 0px 5px 0 0;
}


/* Alertas Home */
.alert {
    padding: 10px 15px;
    color: #fefefe;
    position: relative;
    margin: 10px 0;
}
.alert .msg {
    padding: 0 20px 0 40px;
}
.alert .msg a {
    text-decoration: underline;
    color: white;
}
.alert p {
    margin: 5px 0;
    color: white;
    font-size: 10pt;
}
.alert .toggle-alert {
    position: absolute;
    top: 7px;
    right: 10px;
    display: block;
    text-indent: -10000px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    -webkit-box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), 1px 1px 1px rgba(255, 255, 255, 0.1);
    -moz-box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), 1px 1px 1px rgba(255, 255, 255, 0.1);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), 1px 1px 1px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.08) url("../img/alert-icons/alert.png") no-repeat 6px 6px;
}
.info-box {
    background: #2fa9f6 url("../img/alert-icons/info.png") no-repeat 14px 10px;
}
.success-box {
    background: #7EB62E url("../img/alert-icons/success.png") no-repeat 14px 10px;
}
.error-box {
    background: #f64b2f url("../img/alert-icons/error.png") no-repeat 14px 10px;
}
.notice-box {
    background: #ff9800 url("../img/alert-icons/notice.png") no-repeat 14px 10px;
}
.download-box {
    background: #a555ca url("../img/alert-icons/download.png") no-repeat 14px 10px;
}


/* switch */
.autorizacao .text{flex:1}
div.switch { margin-bottom:0px!important; width: 41px;}
div.switch {position: relative; display: inline-block !important; width: 40px; height: 23px; margin-right: 5px; }
div.switch input {opacity: 0; width: 0; height: 0; }
.slider {position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; }
.slider:before {position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; }

input:checked + .slider {background-color: #64905d; }
input:focus + .slider {box-shadow: 0 0 1px #2196F3;}
input:checked + .slider:before {-webkit-transform: translateX(16px); -ms-transform: translateX(16px); transform: translateX(16px); }
.slider.round {border-radius: 24px;}
.slider.round:before {border-radius: 50%; }

.slider.disable{background-color:#9fd497;}
.disable:before {-webkit-transform: translateX(16px); -ms-transform: translateX(16px); transform: translateX(16px);}

/* searchArea
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.searchArea {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgb(0,0,0);
    background-color: rgba(0, 0, 0, 0.8);
}
.searchArea-content {
    position: relative;
    top: 20%;
    width: 80%;
    text-align: center;
    margin-top: 30px !important;
    margin: auto;
}
.searchArea .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: white;
}
.searchArea .closebtn:hover {
    color: #ccc;
}
.searchArea input[type=text] {
    padding: 15px 0px 15px 30px;
    font-size: 17px;
    border: none;
    width: calc(100% - 30px);
    background: white;
    position: relative;
    border-radius: 50px;
}
.searchArea input[type=text]:hover {
    background: #f1f1f1;
}
.searchArea .searchSubmit {
    position: absolute;
    right: 5px;
    top: 0px;
    padding: 15px;
    background: transparent;
    font-size: 17px;
    border: none;
    cursor: pointer;
    min-width: 1rem !important;
}
.searchArea .searchSubmit svg {
    width: 24px;
    height: 24px;
}
.searchArea .searchSubmit:hover svg {
    fill: #3e6dda;
}
@media (max-width: 768px) {
    .searchArea input[type=text] {
        padding: 15px 5%;
        width: 90%;
    }
}

/* Start -- Search results */
.search-form {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 10px;
    padding-top: 30px;
}

    .search-form > div {
        position: relative;
        padding-bottom: 5px;
    }

    .search-form input[type=text] {
        padding: 15px 30px 15px 15px;
        font-size: 16px;
        width: calc(100% - 45px);
        border: 1px solid #333;
        border-radius: 4px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    /* Estado de Foco e Hover */
    .search-form input[type=text]:hover {
        border: 1px solid #14774c;
    }

    .search-form input[type=text]:focus {
        border: 1px solid #14774c;
        outline: none;
        box-shadow: 0 0 0 3px rgb(63 116 80 / 20%); 
    }

    .search-form a {
        position: absolute;
        right: 12px;
        top: 12px;
        font-size: 14pt;
        color: #333;
        border-bottom: none!important;
    }
    .search-form a > span{
        font-size: 28px;
    }

.search-result-area {
    width: calc(100% - 300px);
    margin: 0 auto !important;
    padding: 20px 20px 40px 20px
}

.search-results > a {
    border-bottom: 1px solid transparent!important;
}

.search-results > a:hover {
    border-bottom: 1px solid #333!important;
}

.search-results .item {
    padding: 15px 20px;
    border: 1px solid #ffffff;
    background-color: white!important;
    justify-content: flex-start!important;
}

    .search-results .item:hover {
        border-radius: 10px;
        border: 1px solid #f7f7f7;
    }

    .search-results .item h3 {
        color: #3f6593;
        margin: 5px 0 5px;
        font-size: 1.2rem;
        font-weight: 400;
        display: inline-block;
        text-align: left;
    }

        .search-results .item h3:hover {
            text-decoration: underline;
        }

    .search-results .item .summary {
        font-size: 0.9rem;
        margin-bottom: 5px;
        color: #3f5b78;
        line-height: 1.5;
    }

        .search-results .item .summary c0 {
            font-weight: bold;
        }

    .search-results .item .path {
        color: #338200;
        padding: 0 0 5px 0;
        white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
        white-space: -pre-wrap; /* Opera 4-6 */
        white-space: -o-pre-wrap; /* Opera 7 */
        word-wrap: break-word; /* Internet Explorer 5.5+ */
    }

    .search-results .item .date {
        font-size: 0.8rem;
        text-transform: uppercase;
        color: #666;
    }

/* End -- Search results */






/* Progress ---------------------- */
.progress-wrapper {
    position: fixed;
    background-color: #FAFAFA;
    z-index: 2147483647 !important;
    opacity: 0.8;
    overflow: hidden;
    text-align: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding-top: 20%;
}

.progress {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999999;
    background-color: #ffffff;
    opacity: 0.8;
}







.page{
    display: flex;
}
.page-content {
    flex: 1;
}
.page-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
}
.page-image .banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
}

@media (max-width: 768px) {
    .page-image,
    .banner {
        max-height: 150px;
    }
}

/*********** CONTACTOS *************/
.container.contactos{
    min-width: 100%;
    width: 100%;
}
.container.contactos .content{
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}
.container.contactos .content > div{
    flex: 1;
    padding: 1rem 0;
}
.container.contactos i{
    font-size: 80pt;
}
.container.contactos .label{
    font-size: 1.5rem;
    padding: 30px 0;
}
.contactos-areas{
    display: flex; 
    gap: 1rem; 
    margin: 0 0 1rem;
    flex-wrap: wrap;
    flex-direction: row;
}
.contactos-areas h2,
.contactos-igai h2{
    font-size: 15pt;
    margin-top: 10px;
}
.contactos-areas > div{
    flex:1; 
    background-color: #77d7a9; 
    padding: 1.5rem;
    min-width: 200px;
}
.contactos-areas > div:first-of-type{
    background-color: #ff6d6d; 
    color: white; 
}
.contactos-areas > div:last-of-type{
    flex:1; 
    background-color: #535c68; 
    color: white; 
}
.contactos-areas .note{
    color: #555;
}
.contactos-areas .note-text{
    margin-top: 10px;
    color: #555;
    font-size: 10pt;
}
.contactos-igai{
    display: block; 
    background-color: #f4f4f4;
    padding: 1.5rem;
}
.contactos-mapa{
    margin: 0 15px;
}


/* cookieConsent */
.cookieConsentContainer {
    z-index: 999;
    width: 350px;
    min-height: 20px;
    box-sizing: border-box;
    padding: 30px 30px 30px 30px;
    background: #232323;
    overflow: hidden;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none
}

.cookieConsentContainer .cookieTitle div {
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
    color: #fff;
    font-size: 22px;
    line-height: 20px;
    display: block
}

.cookieConsentContainer .cookieDesc p {
    margin: 0;
    padding: 0;
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    display: block;
    margin-top: 10px
}

.cookieConsentContainer .cookieDesc a {
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
    color: #fff;
    text-decoration: underline
}

.cookieConsentContainer .cookieButton a {
    display: inline-block;
    font-family: "Roboto Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-top: 14px;
    background: #000;
    box-sizing: border-box;
    padding: 15px 24px;
    text-align: center;
    transition: background .3s
}

.cookieConsentContainer .cookieButton a:hover {
    cursor: pointer;
    background: #2d71b1;
    text-decoration: none;
}

@media (max-width:980px) {
    .cookieConsentContainer {
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important
    }
}
/* end cookieConsent */



input.ms-long {
    width: calc(100% - 13px);
}

.edit-mode-panel.news {
    display: table;
    border: 1px solid #F2F2F2;
    background-color: white;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}


.read-more{
    display: flex;
    justify-content: center;
}

ul.links .icon a img {
    transform: rotate(270deg);
    MARGIN-LEFT: 10px;
}

#suiteBarDelta{display:none}
#s4-ribbonrow{display:none}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}





/* ========================================================= grid-block - START ====================================================== */

.grid-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    margin-top: 30px;
}

.grid-block .item {
    background: #f7f8f9;
    padding: 20px;
    border-radius: 5px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	border: 1px solid #f7f8f9;
}

.grid-block .item:hover{
	border: 1px solid #333;
    text-decoration: none;
}

.grid-block .link{
  border: none;
  padding: 0px;
  align-items: flex-end;
  gap: 5px;
  font-weight: 300;
  font-size: 1rem;
  display: flex;
  color: #333;
  margin-bottom: 10px;
}
.grid-block .item .link .content{
	border-bottom: 2px solid transparent;
}
.grid-block .item:hover .link .content{
	border-bottom: 2px solid;
}

.item:hover .link > span.icone-outlined,
.item .link > span.icone-filled{
	display: none;
    color: #333;
}
.item:hover .link > span.icone-filled,
.item .link > span.icone-outlined{
	display: block;
    color: #333;
}

.grid-block .item .titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.grid-block .item .descricao {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
	font-weight: 100;
}

.grid-block .item .date {
    display: block;
    font-size: 0.9rem;
    color: #3f7450;
    font-weight: 100;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.grid-block .item c0 {
    font-weight: bold;
}

.grid-block .item .link a {
    text-decoration: none;
    color: #0078d4;
    font-weight: 600;
    transition: 0.2s ease;
}

.grid-block .item .link a:hover {
    color: #005a9e;
}

/* Responsivo: abaixo de 900px → 2 por linha */
@media (max-width: 900px) {
    .grid-block  {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsivo: abaixo de 600px → 1 por linha */
@media (max-width: 600px) {
    .grid-block  {
        grid-template-columns: repeat(1, 1fr);
    }
}

/********** GRID BLOCK DE LINKS COM IMAGENS **********/

.grid-block-link {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px 30px;
  margin: 0 auto;
}

.grid-block-link a {
  background: #f7f8f9;
  padding: 20px 20px;
  color: #222!important;
  font-weight: 500;
  font-size: 1.05rem!important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  border:1px solid white;
  border-radius: 5px;
}

.grid-block-link a .link {
  border-left: 1px solid #ddd;
  padding-left: 18px;
  height: 30px;
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.grid-block-link a:hover {
  text-decoration: none!important;
  border:1px solid #333;
}


.grid-block-link.filled a {
  background: white
}

/* Responsivo: abaixo de 900px → 2 por linha */
@media (max-width: 900px) {
    .grid-block-link  {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsivo: abaixo de 600px → 1 por linha */
@media (max-width: 600px) {
    .grid-block-link  {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid-block-image .item{
        flex-direction: column!important;
    }
}

/********** GRID BLOCK DE LINKS COM IMAGENS **********/

.grid-block-image{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* padding: 20px; */
    margin-top: 10px;
    font-weight: 300;
}
.grid-block-image .item{
    background: #f7f8f9;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    border: 1px solid #f7f8f9;
}
.grid-block-image .item:hover{
	border: 1px solid #333;
    text-decoration: none;
    cursor: pointer;
}
.grid-block-image .item .content .titulo{
    text-transform: none!important;
    font-size: 1.1rem;
    /* font-weight:500; */
    font-weight: bold;
}
.grid-block-image .item .content p{
    text-transform: none!important;
    font-size: 1rem;
    line-height: 1.3;
}
.grid-block-image .item .content > div{
    margin: 10px 0;
}
.grid-block-image .item span{
    font-weight: 600;
    font-size: .9rem;
}
.grid-block-image .item .content{
    flex: 1;
}
.grid-block-image .item .content > div{
    margin-bottom: 15px;
}
.grid-block-image .item img{
    padding: 10px 15px 0 0;
    max-width: 120px;
}
/* Responsivo: abaixo de 800px → 1 por linha */
@media (max-width: 800px) {
    .grid-block-image  {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ========================================================= grid-block - END ====================================================== */


































.menu a{
    color: #335e92!important;
}



/* ========================================================== */
/* ESTILOS BASE (MOBILE FIRST - LAYOUT VERTICAL) */
/* ========================================================== */

/* Container dos Filtros */
.filter-section {
    /* No mobile, os itens empilham-se verticalmente */
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* Alinha tudo à esquerda */
    gap: 10px; /* Espaço entre os elementos empilhados */
    padding: 15px 0;
    margin-bottom: 25px;
}

/* Label "Filtrar por" */
.filter-section label {
    font-size: 1em;
    font-weight: 500;
    color: #333;
    /* Garante que o texto não quebre em várias linhas */
    white-space: nowrap;
}

/* Estilo para os elementos <select> (os filtros) */
.filter-select {
    /* Ocupa toda a largura no mobile para ser fácil de tocar */
    width: 100%; 
    
    /* Aparência base limpa */
    padding: 10px 12px; /* Maior padding para facilitar o toque no mobile */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    font-size: 1em; /* Tamanho de fonte ligeiramente maior para legibilidade */
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;

    /* Remove a aparência nativa do browser e adiciona o ícone customizado */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555%22%20d%3D%22M287%2057.9%20146.2%20198.7%205.4%2057.9z%22%2F%3E%3C%2Fsvg%3E');    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px auto;
    padding-right: 30px; 
}

/* Estado de Foco e Hover */
.filter-select:hover {
    border-color: #14774c;
}

.filter-select:focus {
    border-color: #14774c; 
    outline: none;
    box-shadow: 0 0 0 3px rgb(63 116 80 / 20%); 
}








/* custom-select */
.custom-select {
    display: flex;
    position: relative;
    /* width: 300px;
    font-family: sans-serif; */
}

/* O sumário que funciona como o botão do select */
.custom-select summary {
    display: flex;
    padding: 12px;
    cursor: pointer;
    border: 2px solid #64718b;
    list-style: none; /* Remove a setinha padrão no Chrome/Safari */
    font-size: 1.1rem;
    justify-content: space-between;
    align-items: center;
}

.custom-select summary::-webkit-details-marker {
    display: none; /* Remove a setinha padrão no Safari antigo */
}

/* Estilizando a lista de opções */
.custom-select ul {
    position: absolute;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.custom-select li {
    border-bottom: 1px solid #eee;
    margin: 0px !important;
    line-height: 2 !important;
}

.custom-select li:last-child {
    border-bottom: none;
}

/* Esconde o radio button original e estiliza o label */
.custom-select a {
    display: block;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    font-size: 1.1rem;
    line-height: 1.3;
    padding: 15px;
    border-bottom: 1px solid #ddd!important;
}

.custom-select a:hover {
    color: white!important;
    background-color: #64718b;
    text-decoration: none;
}


/* ========================================================== */
/* MEDIA QUERY (PARA DESKTOP E ECRÃS MAIORES) */
/* ========================================================== */

@media (min-width: 601px) {
    .filter-section {
        /* Reverte para o layout horizontal no desktop */
        flex-direction: row; 
        align-items: center; /* Centraliza verticalmente */
        gap: 15px; /* Espaço ligeiramente maior entre os elementos */
    }
    
    .filter-select {
        /* Permite que os selects tenham a largura necessária */
        width: auto; 
        min-width: 180px; /* Garante uma largura mínima decente */
    }
}


.js-webpart-menuCell a {
    text-decoration: none!important;
}
ul.ms-core-menu-list li a {
    border-bottom: none!important;
}
ul.ms-core-menu-list li {
    font-weight: 300;
    margin-bottom: 0px;
    color: #333;
    line-height: 1;
    font-size: 1rem;
}

/* ========================================================== */
/* ENVIRONMENT RIBBON */
/* ========================================================== */

.env-ribbon-wrap {
	position: absolute;
	top: 0;
	left: 10px;
	z-index: 9999;
	pointer-events: none;
	filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.6));
}

.env-ribbon {
	position: absolute;
	width: 60px;
	padding: 10px 0 22px;
	text-align: center;
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 18px), 0 100%);
	z-index: 99;
	height: 25px;
	left: 84px;
}

.env-ribbon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0px;
	background: rgba(0,0,0,0.18);
}

.env-ribbon::after { content: none; }

.env-ribbon.qa {
	background: linear-gradient(160deg, #c0392b 0%, #8e1a12 100%);
}

.env-ribbon.dev {
	background: linear-gradient(160deg, #1a6fc4 0%, #0f3d6e 100%);
}