@charset "utf-8";

@import "error.css";

/**
 *------------------------------------------------------------------------------
 * MAAE J5-01
 *------------------------------------------------------------------------------
 * @website		  maae.pt
 * @authors     SKYTRAILS
 *------------------------------------------------------------------------------
 */
#stage {
  background-color: var(--stage-bg);
}
 /* body{
  padding: 5px;
 }
.position, #component-area{
  border: 1px dashed magenta;
}
#main-area {
  border: 1px dashed blue;
}
main {
  border: 3px dashed green;
}
.pag-modules .position{
  background-color: aqua;
}
.pag-modules .position > div {
  background-color: beige;
}
.pag-modules .position .module {
  background-color: chartreuse;
} */
/*
ALTERAR O LOGOTIPO PARA POSIÇÃO CENTRAL EM SCREEN E À ESQUERDA EM MOBILE
*/
/* .logotipo-sm{
  display: block;
}
.logotipo-md{
  display: none;
}
@media (min-width: 768px) {
  .logotipo-sm{
    display: none;
  }
  .logotipo-md{
    display: block;
  }
  .container-nav-left {
    justify-content: center !important;
  }
} */

/*////////////////////////////////////////////////
_ TPL SKY - Layout improvements and tests
/////////////////////////////////////////////////*/
/*CORREÇÕES AO MODULO SEARCH - Dar uma largura defenida ao campo*/
/*Form onde o campo está*/
.center-anything{
  display: grid;
  place-items: center;
}
form.mod-finder.js-finder-searchform.form-search {
  width: 250px;
}
/*Div onde se encontra o input*/
form.mod-finder.js-finder-searchform.form-search div.awesomplete{
  width: 100%;
}

/*////////////////////////////////////////////////
_ Old Layout tests
/////////////////////////////////////////////////*/

/*CENAS PARA SEGURAR O LAYOUT DOS BLOCOS HERO*/
.relative {
  position: relative;
}
.flex-vertical-center {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}
.flex-vertical-end {
  display: flex;
  align-items: end;
  height: 100%;
  width: 100%;
}

/*=================================================/
   Tool tips e Joomedit
*/
/*Frontoffice edit articles*/
.icons a {
  color: var(--link-color);
}
.float-end {
  float: right !important;
}
/*Front-office edit modules*/
.btn.jmodedit {
  background-color: hsla(51.4, 5.2%, 73.5%, 0.16);
  border: 0px solid #234fa836;
  border-radius: .25rem;
  color: #234fa8;
  left: auto;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 900;
  padding: .4rem .5rem .4rem .7rem;
}
[role="tooltip"]:not(.show) {
  background: #fff;
  border: 1px solid #6d757e3d;
  border-radius: .25rem;
  box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.44);
  color: #828282;
  display: none;
  margin: .5em;
  max-width: 100%;
  padding: .5em;
  right: 5em;
  text-align: start;
  z-index: 1070;
  font-size: .85rem;
}
.sr-only, .visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important; 
  white-space: nowrap !important;
  width: 1px !important;
}

/*////////////////////////////////////////////////////////////////////////

/ PEDRO'S CRAZY RULES (Verificar)
////////////////////////////////////////////////////////////////////////*/
.view-categories main > div,
.view-featured main > div,
.view-category main > div,
.view-article main > div {
  width: 100%;
  /* max-width: 1140px; */ /*Isto tem que ficar definido numa classe partir do texto do artigo ou modulo*/
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}
/*Regra para estreitar a largura dos textos de blog deve ser aplicada no menu, ou no proprio artigo
e não na classe do template comentada na linha abaixo*/
/* .com-content-article,  */
.content{
  max-width: 1300px;
  padding-left: 5%;
  padding-right: 5%;
  margin: 0 auto;
}
#main-content-area main {
  /* padding-top: clamp(2.5rem, 2vw + 1.5rem, 3.5rem); */
  padding-bottom: clamp(3.5rem, 2vw + 3rem, 4rem);
}
.wrapper-fluid .container {
  max-width: 100% !important;
}
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 8px;
  padding-right: 8px;
}
.center-text,
.text-center {
  text-align: center;
}
.no-gutters {
  margin-right: 0;
  margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}
div[class*="txt-col"] {
  column-count: 1;
  column-gap: 2.5em;
}
.img-cover{
  object-fit: cover;
}
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}
.modal iframe {
width:100%;
}
.visible {
  visibility: visible !important;
}
.visually-hidden {
  visibility: hidden;
  position: absolute;
}

:target{
  outline: 0px solid rgb(212, 53, 53);
  outline-offset: 5px;
}

@media (min-width: 768px) {
  .txt-col-1 {
    column-count: 1 !important;
  }
  .txt-col-2 {
    column-count: 2 !important;
  }
  .txt-col-3 {
    column-count: 3 !important;
  }
}

/*RETIRADO DO ANTERIOR FICHEIRO JOOMLA.CSS*/
/*parecem ser regras criadas por mim*/

.form-group {
  margin-bottom: 1rem !important;
}


.mod-menu {
  flex-direction:column
}
.hidden {
  visibility:hidden;
  display:none
}
.table-row {
  display:table-row
}
.element-invisible {
  clip:rect(0,0,0,0);
  white-space:nowrap;
  clip-path:inset(50%);
  border:0;
  width:1px;
  height:1px;
  padding:0;
  position:absolute;
  overflow:hidden
}


/*REGRAS TABLE CRIADAS PELO CHAT-GPT*/
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 1rem;
  font-family: sans-serif;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border: solid .1rem var(--gray-400);
}
caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  font-size: 1.1em;
  padding-bottom: 0.5em;
  color: #333;
}
thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}
thead th {
  text-align: left;
  padding: 0.75em;
  font-weight: 600;
  color: #222;
}
tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
tbody td {
  padding: 0.75em;
  border-bottom: 1px solid #eee;
  color: #444;
}
tbody tr:hover {
  background-color: #f0f0f0;
}
td, th {
  vertical-align: top;
}
/*parecem ser regras criadas por mim estavam no joomla.css*/
.table th {
  font-weight:500
}
.table thead th {
  white-space:nowrap;
  border-bottom-width:1px
}
.table th,
.table td {
  vertical-align:middle
}
.table th label,
.table td label {
  margin-bottom:0
}


table#rally  {
    margin: 0 !important;
}
table#rally thead   {
    position: sticky;
    top: 178px; /* distance from top of page */
    background: #f4f4f4; /* keep background visible over rows */
    z-index: 3; /* ensure header is above body rows */
    border: solid .1rem var(--gray-400);
}
@media (max-width: 992px) {
  table#rally thead   {
      top: 116px;
    }
    table#rally  {
    font-size: .85rem;
}
}
@media (max-width: 576px) {
    .rally-container {
      width: 100%;
      background-color: gray;
      height: 600px;
      overflow-x: auto;
      overflow-y: auto;
      scroll-snap-type: y mandatory;
  }
  table#rally thead   {
      position:sticky;
      top: 0px;
      background: #f4f4f4; 
      z-index: 3; 
      border: solid .1rem var(--gray-400);
  }
  #rally tr th:nth-child(3), #rally tr td:nth-child(3) {
  display: none;
}
}
#rally tr th:first-child, #rally tr td:first-child {
  background: #e0e0f2;
  width: 40px;
  text-align: center;
  padding-left: .4rem;
  padding-right: .4rem;
}
#rally tr th:nth-child(4), #rally tr td:nth-child(4) {
  background: #e0e0f2;
  width: 40px;
  text-align: center;
  padding-left: .4rem;
  padding-right: .4rem;
}
#rally tr th:nth-child(6), #rally tr td:nth-child(6) {
  /* background: #e0e0f2; */
  width: 40px;
  text-align: center;
  padding-left: .4rem;
  padding-right: .4rem;
}
#rally tr th:nth-child(7), #rally tr td:nth-child(7) {
  width: 100px;
  text-align: center;
  padding-left: .4rem;
  padding-right: .4rem;
}





