﻿/*
Theme Name:     O Municipio
Theme URI:      http://www.adsi.pt
Description:    Child theme for the Enfold theme 
Author:         Jose Daniel
Author URI:     https://www.linkedin.com/in/jose-daniel-50228384
Template:       enfold
Version:        1.0
*/
/*SKIP TO MAIN CONTENT*/
.skip-to-main-content-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: black;
  color: white;
  opacity: 0;
}


.skip-to-main-content-link:focus {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

/*HOMEPAGE*/
#destaques .avia-button-wrap {
    margin: 0 0 9px;    
}
#destaques .avia-button-fullwidth {
    border-radius: 0;
}
#destaques .avia_button_icon.avia_button_icon_left {
    float: left;
    margin: 0 0 0 20px;
    padding-right: 25px;
    border-right: 1px #fff solid
}
/*HOMEPAGE*/

/*FOOTER*/


.callout-doc-recentes a {
    display: block;
    padding: 7px 22px;
    background: #fff;
    margin-bottom: 3px;
}

#quick-links .av-flex-placeholder {
    width: 3%
}


/*EVENT CALENDAR*/
.av-upcoming-event-schedule {
    display: inline-block !important;
    margin-right: 10px;
    font-weight: bold;
    color: #CC6832
}
.tribe-events-event-image img {
    width: 100%;
}
.home .avia-button {
    width: 100%;
}
#desktop-buttons  .template-page {
    padding-top: 0
}
#events-and-docs {
    box-shadow: none !important
}

/*EVENT CALENDAR - FIM*/

.adsi_freguesias-template-default #main, .post-type-archive-adsi_freguesias #main {
    background: #fff
}
#o-municipio a {
    background: none !important
}


#agenda-de-eventos .av-upcoming-event-venue {
    display: none !important
}
#agenda-de-eventos .av-upcoming-event-entry {
    padding-bottom: 15px !important
}
#agenda-de-eventos .av-upcoming-event-meta {
    line-height: 110% !important
}
#agenda-de-eventos .av-upcoming-event-data {
    margin-top: 10px
}

#documentos-online .borec-item-doc p {
    display: none !important
}
#documentos-online .borec-item-doc a {
    margin-bottom: 7px !important;
    color: #333 !important;
}
#documentos-online .borec-item-doc a:hover {
    background-color: #333 !important;
    color: #fff !important
}
#documentos-online .borec-item-doc a:after {
    color: #333 !important;
}
.awesome-weather-current-temp strong {
    color: #fff !important
}

.av-main-nav > li > a {
    padding: 0 10px !important
}

/*Shortcode Ticker de Notícias*/
#ticker-news {
    min-height: 0 !important
}
#ticker-news .content {
    padding: 0 !important
}
#ticker-news .bn-label {
    background-color: #459cc7 !important;
}
.bn-news li {
    padding: 0 !important;
}
.bn-breaking-news {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important
}
/*Shortcode Ticker de Notícias - Fim*/

.flipbook-container {
    background: #ffffff !important
}
.template-event-page.content {
    padding-top: 13px !important;
}

.single-tribe_events .tribe-events-back {
    display: block !important;
}

#custom-te-row {
    padding: 15px;
    background: #fff;
    display: flex;
    align-items: center;
}
#custom-te-row .tribe-events-event-meta {
    width: 100%
}
#custom-te-row-right {
    width: 100%;
}
#custom-te-row-right .av-tribe-events-inner-content-wrap {
    float: left;
    width: 100%;
    clear: both;
}
#custom-te-row-left {
    width: 160px;
    margin-right: 15px;
}
#custom-te-row-left img {
    width: 150px;
    max-width: 150px;
    height: auto
}

.av-tribe-events-content-wrap {
    margin-bottom: 20px
}
a.eventos-do-municipio {
  position: relative  
}
a.eventos-do-municipio span#em {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: red;
    border-radius: 50px;
    margin: 5px 1px auto 1px
}
a.eventos-do-concelho span#ec {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin: 5px 1px auto 1px;
    background: green;
    border-radius: 50px
}

.event-red-ball {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: red;
    border-radius: 50px;
    margin: 5px 1px auto 1px
}
.event-green-ball {
     width: 8px;
    height: 8px;
    display: inline-block;
    margin: 5px 1px auto 1px;
    background: green;
    border-radius: 50px
}

.tribe-mini-calendar-list-wrapper {
    display: none
}

.tribe-events-day .tribe-events-day-time-slot .type-tribe_events {
    margin-left: 0 !important
}

.tribe-events-nav-previous a, .tribe-events-nav-next a {
    padding: 10px;
    background: #fff;
}

.tribe-events-related-events-title {
    margin-top: 25px
}

/*QUICK ICONS*/
#quick-links .avia-icon-list {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr; 
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}
#quick-links .entry-content-wrapper div li {
    text-indent: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: flex-start; 
    text-align: center;
    border: 1px #f1f1f1 solid;
    padding: 20px;
    color: #cc6832 !important;
    border-radius: 10px;
    font-weight: normal !important
}
#quick-links .entry-content-wrapper div li .iconlist-timeline {
    display: none
}
#quick-links .avia-icon-list .iconlist_icon {
    margin: auto !important
}

#quick-links .entry-content-wrapper div li:last-child .iconlist_icon {
    font-size: 34px !important;
}


/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {
  #quick-links .avia-icon-list {
    grid-template-columns: 1fr 1fr 1fr; 
  }
}

/* On screens that are 600px or less, set the background color to olive */
@media screen and (max-width: 600px) {
  #quick-links .avia-icon-list {
    grid-template-columns: 1fr 1fr; 
  }
}

.home .ect-event-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}
.home .ect-list-post-right {
   background: #f1f1f1 !important
}
.home .ect-list-post-left {
    width: 15% !important
}
.home .modern-list-right-side {
   background: #CC6832 !important;
   color: #fff !important;
   display: none !important  
}
.home .ect-list-title {
    margin-bottom: 3px !important 
}
.home #ect-events-list-content, .home #list-wrp {
    margin: 0 !important
}
.home #list-wrp {
    max-height: 430px;
    overflow: auto
}

.home #list-wrp div:first-child {
    margin-top: 0 !important
}
.home #list-wrp div:last-child {
    margin-bottom: 0 !important
}
.home .ect-events-read-more {
    margin-top: 3px !important
}
.home .ect-list-post-right .ect-list-description {
    border-right: none !important 
}