/*  
Theme Name: JFFVF
Description: Tema da Junta de Freguesia de Foros de Vale Figueira
Version: 1.0
Author: José Soeiro
*/


@import url("https://fonts.googleapis.com/css?family=Open+Sans");

:root {
    --brown: #6b2000;
    --orange: #ff9900;
    --lightGrey: #eeeeee;
    --darkGrey: #676767;
    --brownOverlay: rgba(107, 32, 0, 0.3);
    --brownHover: rgba(107, 32, 0, 0.9);
    --orangeHover: rgba(255, 153, 0, 0.8);
    --sideMargin: 7%;
}

html {
  height: 100%;
}

body {
  /* font-family: "Open Sans", sans-serif; */
  font-size: 14px;
  color: var(--darkGrey);
  position: relative;
  min-height: 100%;
  padding-bottom: 120px;
}

h1 {
  font-size: 24px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0;
  line-height: 27.2px;
}

h2 {
  font-size: 24px;
  color: var(--brown);
  text-transform: uppercase;
  margin-bottom: 20px;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  color: var(--brown);
  text-transform: uppercase;
}

.h3-big {
  font-size: 22px;
}

h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--brown);
}

h5 {
  font-size: 16px;
  margin-bottom: 16px;
}

p {
  font-size: 14px;
}

a {
  color: inherit;
}

a:hover {
  color: var(--orange);
  text-decoration: none;
}

a:hover .card-txt {
  background-color: var(--darkGrey);
}

a:hover .card-txt * {
  color: white !important;
}

.txt-white {
  color: #FFFFFF;
}

.txt-brown {
  color: var(--brown) !important;
}

.bg-black {
  background-color: black;
  color: white;
}

.bg-white {
  background-color: #FFFFFF;
}

.titleHeader {
  background-color: var(--brown);
  padding: 20px var(--sideMargin);
  text-align: right;
}

.icon-plus {
  height: 25px;
  position: absolute;
}

.icon-plus-container {
  position: relative;
  height: 25px;
}

.icon-hover {
  position: absolute;
  top: 0;
  opacity: 0;
  transition: .1s ease;
}

.icon-plus-container:hover .icon-hover,
a:hover .icon-hover {
  opacity: 1;
}

/**********************************************************************
Sections, containers, rows and columns
**********************************************************************/

section {
  padding: 30px var(--sideMargin);
}

.container, .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.row {
  margin-bottom: 15px;
}

.col-12 p {
  margin-bottom: 14px;
}

/**********************************************************************
Navigation on the header
**********************************************************************/

.navbar {
  padding: 0 var(--sideMargin);
}

.custom-logo-link {
  position: absolute;
  top: 0;
  background-color: white;
  z-index: 1;
  padding: 14px 0;
}

.custom-logo-link img {
  height: 72px;
  width: auto;
}

.navbar-toggler {
  margin: 30px 0 30px auto;
}

.navbar-nav {
  margin-bottom: 20px;
}

.nav-item {
  position: relative;
  font-size: 16px;
}

.nav-link {
  padding: 10px 0;
  color: var(--brown) !important;
  font-family: inherit;
  font-weight: 600;
  margin: 0;
}

.nav-item:hover .nav-link {
  color: var(--orange) !important;
}

.dropdown-content {
  position: relative;
}

.dropdown-content a {
  padding: .5rem 1.5rem;
  display: block;
  white-space: nowrap;
  background-color: var(--lightGrey);
  color: var(--brown);
  
}

.dropdown-content a:hover {
  color: white;
  background-color: var(--darkGrey);
  text-decoration: none;
}

@media screen and (min-width: 992px) {
  .custom-logo-link {
    padding: 14px;
  }
  
  .custom-logo-link img {
    height: 100px;
  }
  
  .navbar-nav {
    margin: 0;
  }
  
  .nav-link {
    padding: 18.4px 0;
    cursor: default;
  }
  
  .dropdown-content {
    display: none !important;
    position: absolute;
    min-width: 130px;
    z-index: 2;
  }
  
  .dropdown-content a {
    padding: .5rem 1rem;
  }

  .nav-item:hover .dropdown-content {
    display: block !important;
  }
}

/**********************************************************************
Pagination and navigation between articles
**********************************************************************/

.pagination {
  margin: auto;
}

.navigation {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.navigation .page-numbers {
  width: 150px;
}

.page-numbers {
  padding: 10px;
  margin: 5px;
  color: var(--brown);
  background-color: var(--lightGrey);
  font-weight: 600;
}

a.page-numbers:hover,
div.page-numbers:hover,
div.page-numbers:hover a,
.page-numbers.current {
  color: white !important;
  background-color: var(--darkGrey);
}

div.page-numbers {
  padding: 0;
}

.page-numbers a {
  display: block;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-numbers:empty {
  visibility: hidden;
}

.page-numbers.left {
  margin-left: 0;
}

.page-numbers.right {
  margin-right: 0;
  text-align: right;
}

@media screen and (max-width: 630px) {
  .navigation .page-numbers {
      width: 100%;
      margin: 5px 0;
      text-align: center;
    }
}

/**********************************************************************
Shortcut ribbons
**********************************************************************/

#faixaAtalhos1,
#faixaHorarios {
  margin: 0px;
}

#faixaAtalhos2 {
  margin: 0 0 30px;
}

#faixaAtalhos1 a,
#faixaAtalhos2 a,
#faixaHorarios a {
  display: block;
}

#faixaAtalhos1 button,
#faixaHorarios button {
  width: 100%;
  height: 100px;
  cursor: pointer;
  background-color: var(--orange);
  border: 0;
}

#faixaAtalhos1 button:hover,
#faixaHorarios button:hover {
  background-color: var(--orangeHover);
}

#firstButton {
  background-color: var(--brown) !important;
}

#firstButton:hover {
  background-color: var(--brownHover) !important;
}

#faixaAtalhos2 button {
  width: 100%;
  height: 200px;
  cursor: pointer;
  background-color: var(--brownOverlay);
  border: 0;
}

#faixaAtalhos2 .button-background {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: absolute;
  z-index: -1;
}

.wrapper-shortcut {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-shortcut {
  height: 50px;
}

.text-shortcut {
  text-align: left;
  margin: 0 15px;
  width: 120px;
}

@media screen and (min-width: 992px) {
  .text-shortcut {
    width: auto;
  }
}

/**********************************************************************
Footer
**********************************************************************/

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

#redesSociais {
  padding: 30px;
  text-align: center;
}

.social-button {
  display: inline-block;
  margin: 0 10px;
  position: relative;
}

.icon-social {
  height: 30px;
}

.icon-social-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.social-button:hover .icon-social {
  opacity: 0;
}

.social-button:hover .icon-social-hover {
  opacity: 1;
}

#rodape {
  padding: 10px;
  text-align: center;
  font-size: 12px;
}

/**********************************************************************
Slider Home and Galleries
**********************************************************************/

.carousel-indicators li {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: 6px;
  margin-left: 6px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, .7);
}

.carousel-indicators li:hover {
  background-color: var(--orange);
}

.carousel-item {
  height: 70vh;
}

.carousel-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.keep-aspect-ratio {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

.keep-aspect-ratio > .carousel-item {
  width: 100%;
  height: 100%;
  position: absolute;
}

.keep-aspect-ratio .carousel-img {
  height: 100%;
}

#gallery-full .carousel-img {
  object-fit: contain;
}

.carousel-control {
  position: absolute;
  top: 70%;
  z-index: 1;
}

.carousel-control.left {
  left: 5px;
}

#gallery-full .carousel-control.left {
  left: 10px;
}

.carousel-control.right {
  right: 5px;
}

#gallery-full .carousel-control.right {
  right: 10px;
}

.gallery-expand {
  position: absolute;
  right: 5px;
  bottom: 30px;
  z-index: 1;
  cursor: pointer;
}

.gallery-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  cursor: pointer;
}

.icon-carousel {
  width: 25px;
  height: 25px;
}

#gallery-full .icon-carousel {
  width: 35px;
  height: 35px;
}

.icon-carousel-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.gallery-expand:hover .icon-carousel,
.gallery-close:hover .icon-carousel,
.carousel-control:hover .icon-carousel {
  opacity: 0;
}

.gallery-expand:hover .icon-carousel-hover,
.gallery-close:hover .icon-carousel-hover,
.carousel-control:hover .icon-carousel-hover {
  opacity: 1;
}

.image-caption {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 100%;
  padding: 0.2em;
  color: white;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 12px;
  text-align: center;
}

#gallery-full .image-caption {
  font-size: 14px;
}

.gallery-item {
    float:none;
    overflow: hidden;    
    display: inline-table;
    justify-content: center;
    border: 2px solid #cfcfcf;  
    
}

.gallery-item img {
    height: 15em;  
}

.modal-dialog {
  max-width: 900px;
  margin: .5rem;
}

.modal-dialog-centered {
  min-height: calc(100% - (.5rem * 2));
}

@media screen and (min-width: 932px) {
  .modal-dialog {
    margin: .5rem auto;
  }
}

.modal-backdrop.show {
  opacity: .8;
}

/**********************************************************************
Cards on a grid
**********************************************************************/

.card-img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
}

.card-img.const,
.card-img.assoc {
  height: 20em;
}

.card-img.assoc {
  object-fit: contain;
}

.card-txt {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background-color: var(--lightGrey);
}

.card-txt h4 {
  margin-bottom: 4px;
}

#noticias .card-txt h4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-txt p {
  margin-bottom: 2px;
}
.card-txt p a {
  word-break: break-all;
}

/***********************************************************************
Documents
***********************************************************************/

.document {
  background-color: var(--lightGrey);
  height: 40px;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
}

.document h4 {
  font-size: 14px;
}

.document .title-container {
  flex-grow: 1;
  overflow: hidden;
  height: 40px;
  padding: 0px 15px;
  display: flex;
  align-items: center;
}

.document .title {
  display: inline-block;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.document .download-container {
  display: flex;
  align-items: center;
}

.document .download {
  color: var(--darkGrey);
  text-transform: uppercase;
  margin: 0 10px;
}

.document .icon-container {
  background-color: var(--darkGrey);
  width: 50px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.document .icon-download {
  height: 25px;
}

.document .download-container:hover .download {
  color: var(--orange);
}

.document .download-container:hover .icon-container {
  background-color: var(--orange);
}

/***********************************************************************
Forms
***********************************************************************/

.wpcf7 div {
  margin-bottom: 8px;
}

.wpcf7 label {
  width: 100%;
  margin-bottom: 0px;
}

.field-50-left {
  width: 49% !important;
  float: left;
  clear: left !important;
}

.field-50-right{
  width: 49% !important;
  float: right;
  clear: right !important;
}

.field,
.input-file-wrapper,
.fallback-placeholder {
  width: 100%;
  color: var(--brown);
  background-color: var(--lightGrey);
  border: none;
  padding: 8px;
  font-size: 11px;
  text-transform: uppercase;
}

.field-date {
  position: relative;
}

.fallback-placeholder {
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  cursor: text;
}

/* Hide placeholder for Date Inputs when input is focused or value is set */
.fallback-placeholder.show-value {
  display: none;
}

.wpcf7-date {
  height: 32px;
}

.wpcf7-select {
  color: #FFF;
  background-color: var(--darkGrey);
  padding-left: 3px;
}

.wpcf7-select option {
  padding: 0;
}

/* Hide spinner arrows on Number Inputs on Webkit browsers that render them */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide spinner arrows on Number Inputs on Mozzilla browsers that render them */
input[type="number"] {
  -moz-appearance: textfield;
}

.input-file-wrapper {
  color: #FFF;
  background-color: var(--darkGrey);
  cursor: pointer;
}

.wpcf7-file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.wpcf7-not-valid-tip {
  font-size: 11px !important;
}

.wpcf7-response-output {
  border: 2px solid var(--brown) !important;
  margin: 0 !important;
}

.submit input {
  width: 100% !important;
  height: 100%;
  padding: 8px;
  color: #FFF;
  background-color: var(--brown);
  border: none;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background-color 0.1s ease;
}

.submit input:hover {
  background-color: var(--orange);
}

.ajax-loader {
  position: absolute;
}

/* newer firefox versions */
::-moz-placeholder {
  color:inherit !important;
  opacity:1 !important;
}
/* older firefox versions */
:-moz-placeholder {
  color:inherit !important;
  opacity:1 !important;
}
/* webkit browsers */
::-webkit-input-placeholder {
  color:inherit !important;
  opacity:1 !important;
}
/* new IE  (10 and above) */
:-ms-input-placeholder {
  color:inherit !important;
  opacity:1 !important;
}

/* COOKIES */

.cookies {
  position: fixed;
  bottom: 0;
  height: 110px;
  z-index: 222222;
  background: #6b2100;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  flex-direction: column;
}
.cookies p {
  padding: 0;
  margin: 0;
}
.cookies a {
  color: white;
  font-weight: bold;
}
.cookies a:hover {
  text-decoration: underline;
}
.cookies a.btn {
  margin-top: 5px;
  background-color: white;
  color: black;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookies a.btn:hover {
  background-color: white;
}

.google-map iframe {
    height: 90vh !important;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}



@media only screen and (max-width: 320px) {

    .gallery-item img {
        height: 15em;  
        width: 85vw;
    }    
    
}

@media only screen and (min-width: 600px) {
    .gallery-item {
        display:flex;
        float:inherit;
    }
}




@media screen and (max-width: 600px) {

.google-map iframe {
    height: 70vh !important;
}

.embed-responsive-16by9::before {
    padding-top: 128%;
}


}

@media screen and (max-width: 768px) {

.google-map iframe {
    height: 70vh !important;
}

.embed-responsive-16by9::before {
    padding-top: 95%;
}


}

@media screen and (max-width: 1024px) {

.google-map iframe {
    height: 100% !important;
}

.embed-responsive-16by9::before {
    padding-top: 41.25%;
}

}

@media screen and (min-width: 1600px) {

.google-map iframe {
    height: 100% !important;
}

.embed-responsive-16by9::before {
    padding-top: 41.25%;
}

}

