/* ===============================
    TEMPLATE 1
=============================== */


/* ===============================
    GENERAL STYLES */
#page input, #page textarea { border-width: 1px; }


/* ===============================
    LAYOUT PAGE */
#page {
    padding-top: 20px;
}


/* ===============================
    HOME PAGE */
/*Título Sección Noticias*/
.home .entry-content > h1,
.home .entry-content > h2,
.home .entry-content > h3,
.home .entry-content > h4,
.home .entry-content > h5,
.home .entry-content > h6 {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 40px;
    line-height: 1em;
}

/*Separación entre artículos*/
.home #main > article {
    margin-bottom: 40px;
}

/*
 los siguientes estilos aplican cuando está activado el plugin wp show posts y meta datos están debajo del título
 */

/*cajetín del artículo - aplicamos sombra*/
.home article > .wp-show-posts-inner {
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.15);
}
.home article > .wp-show-posts-inner:hover {
    /*box-shadow: 0px 0px 2px 1px rgba(98, 149, 160, 0.5);*/
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.25);
}

/*imagen del cajetín - aplicamos sombra*/
.home .wp-show-posts-inner .wp-show-posts-image {
    box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.15);
}

/*título del post dentro del cajetín*/
.home .wp-show-posts-image {
    margin-bottom: 0;
}
.home .wp-show-posts-inner .wp-show-posts-entry-header {
    padding: 30px 40px;
}
.home .wp-show-posts-inner .wp-show-posts-entry-header .wp-show-posts-entry-title {
    font-size: 30px;
}

/*doble loop*/
@media (min-width: 768px) {
	.home article.wpsp-col-4 .wp-show-posts-inner .wp-show-posts-entry-header {
    	padding: 20px 30px;
	}
	.home article.wpsp-col-4 .wp-show-posts-inner .wp-show-posts-entry-header .wp-show-posts-entry-title {
    	font-size: 20px;
	}
}


/*texto meta (date & category)*/
.home .wp-show-posts-entry-meta-below-title {
    margin-bottom: 10px;
    padding-top: 30px;
}

/*Paginació*/
/*plugin wp show posts*/
.nav-links,
.wpsp-load-more {
    font-size: 19px;
}
.nav-links .page-numbers,
.wpsp-load-more .page-numbers {
    padding-right: 10px;
}
.nav-links .page-numbers.current,
.wpsp-load-more .page-numbers.current {
    color: #333!important;
}
.nav-links {
    margin-bottom: 60px;
}


/* ===============================
    PAGE WIDGETS */
/*SIDEBAR*/
/*margenes*/
#page #right-sidebar .inside-right-sidebar aside,
#page #left-sidebar .inside-right-sidebar aside {
    margin-bottom: 35px;
}

#page #right-sidebar .inside-right-sidebar aside.widget_media_image,
#page #left-sidebar .inside-right-sidebar aside.widget_media_image {
    margin-bottom: 2px;
}

/*Título de los widgets (mismos estilos que título Sección Notícies)*/
#page aside .widget-title,
.site-footer .widget-title {
    display: block;
    margin-bottom: 15px;
    padding: 5px 10px;
    line-height: 1em;
}


/* ===============================
    FOOTER */
#footer-widgets .inside-footer-widgets aside {
    margin-bottom: 35px;
}
#footer-widgets .inside-footer-widgets aside:last-child {
    margin-bottom: 0;
}



/* ===============================
    STICKY NAVIGATION */
#sticky-navigation {
    max-width: 100%;
}
#sticky-navigation > div.inside-navigation {
    max-width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#sticky-navigation .inside-navigation .site-logo.sticky-logo a {
    line-height: 1em;
}
#sticky-navigation .sticky-navigation-logo img {
    padding: 0;
    margin-right: 0;
}
/*menu sticky*/
.site-logo {
    max-width: 290px;
}
#site-navigation .site-logo.sticky-logo {
    display: none;
}
#sticky-navigation .site-logo.sticky-logo {
    float: left;
}
/*flexbox*/
#masthead .inside-header {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
}
#site-navigation {
    width: 100%;
}
#site-navigation #menu-menu-principal{
    float: right;
}



/* ===============================
    NOTÍCIES (BLOG) */
.blog article,
.archive article {
    margin-bottom: 30px;
    padding-left: 20px;
    padding-right: 10px;
}
/*.blog .generate-columns-container {
    padding-left: 20px;
}*//*in masonry style not need*/
.blog article > .inside-article,
.archive article > .inside-article {
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.15);
    padding-bottom: 10px;
}
.blog article > .inside-article:hover,
.archive article > .inside-article:hover {
    /*box-shadow: 0px 0px 2px 1px rgba(98, 149, 160, 0.5);*/
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.25);
}
.blog article .inside-article .entry-header,
.archive article .inside-article .entry-header {
    padding: 20px 20px;
}
.blog article .inside-article .entry-header .entry-title,
.archive article .inside-article .entry-header .entry-title {
    font-size: 30px;
}
.blog article .inside-article .post-image img,
.archive article .inside-article .post-image img {
    box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.15);
}
.blog article .inside-article .post-image,
.archive article .inside-article .post-image {
    margin-bottom: 5px;
}
.blog article .entry-summary,
.archive article .entry-summary {
    margin-top: 0;
    margin-bottom: 0;
}
.blog article footer.entry-meta,
.archive article footer.entry-meta {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 20px 30px;
}
.blog article .inside-article header .entry-meta,
.archive article .inside-article header .entry-meta {
    display: flex;
    flex-direction: column;
}
.blog article .inside-article header .entry-meta .posted-on,
.archive article .inside-article header .entry-meta .posted-on {
    order: 1;
}
.blog article .inside-article header .entry-meta .byline,
.archive article .inside-article header .entry-meta .byline {
    /*color: transparent;*/
    position: relative;
}
.blog article .inside-article header .entry-meta .byline .author.vcard,
.archive article .inside-article header .entry-meta .byline .author.vcard {
    text-transform: uppercase;
    /*position: absolute;*/
    left: 0;
}
.blog article .inside-article header .entry-meta .byline .author.vcard a,
.archive article .inside-article header .entry-meta .byline .author.vcard a {
    text-decoration: underline;
    color: #222!important;
}


/*fix addthis in loop*/
.blog article .entry-summary .addthis_tool,
.archive article .entry-summary .addthis_tool {
    margin: 0;
}


/* ===============================
    NOTÍCIES (POST) */
.single-post article .inside-article .featured-image {
    margin-bottom: 45px;
}
.single-post article .inside-article .entry-header {
    text-align: center;
}
.single-post article .inside-article .entry-header .entry-title {
    font-size: 36px;
}
.single-post article .inside-article .entry-header .entry-meta {
    font-size: 18px;
}
.single-post article .inside-article .entry-content {
    padding-bottom: 40px;
}
.single-post article .inside-article footer.entry-meta {
    margin-top: 50px;
}
.single-post article .inside-article footer.entry-meta .post-navigation {
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid rgba(0,0,0,0.2);
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}
.single-post article footer.entry-meta .post-navigation .nav-previous {
    float: left;
}
.single-post article footer.entry-meta .post-navigation .nav-next {
    float: right;
}
.single-post article footer.entry-meta .post-navigation .nav-next .next:before {
    content: none;
}
.single-post article footer.entry-meta .post-navigation .nav-next .next:after {
    content: "\f105";
    font-family: GeneratePress;
    text-decoration: inherit;
    position: relative;
    margin-left: .6em;
    width: 13px;
    text-align: center;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    speak: none;
    opacity: .7;
}


/* ===============================
    COMENTARIOS SINGLE-POST */
.single-post .comments-area {
    margin-top: 40px;
}
.single-post .comments-area .comment-reply-title {
    font-size: 26px;
}
.single-post #comments input[type="text"],
.single-post #comments input[type="email"],
.single-post #comments textarea {
    border-width: 1px;
}
.single-post #comments input[type="email"],
.single-post #comments input[type="text"] {
    width: 50%;
    display: inline-block;
}


/* ===============================
    IMÁGENES SINGLE-POST */
.single-post img.aligncenter,
.single-post img.alignleft,
.single-post img.alignright,
.single-post img.alignone {
    margin-top: 20px;
    margin-bottom: 20px;
}
.single-post img.alignleft {
    margin-right: 2em;
}
.single-post img.alignright {
    margin-left: 2em;
}


/* ===============================
    FORMULARIOS */
textarea {
    min-height: 120px;
    min-width: 100%;
}


/* ===============================
    CABECERA 1
=============================== */
.ata-page-header-1 h1,
.ata-page-header-1 h2,
.ata-page-header-1 h3,
.ata-page-header-1 h4,
.ata-page-header-1 h5,
.ata-page-header-1 h6 {
    font-size: 40px;
    line-height: 1.3em;
    text-shadow: 1px 1px 2px rgba(20, 20, 20, 0.4);
}
.ata-page-header-1 p {
    font-size: 22px;
    line-height: 1.5em;
}
.ata-page-header-1 p,
.ata-page-header-1 h1,
.ata-page-header-1 h2,
.ata-page-header-1 h3,
.ata-page-header-1 h4,
.ata-page-header-1 h5,
.ata-page-header-1 h6 {
    padding-left: 20px;
    padding-right: 20px;
}


/* ===============================
    SIDEBAR BANNER 1
=============================== */
.inside-right-sidebar aside.widget_media_image,
.inside-left-sidebar aside.widget_media_image {
    padding: 0 20px;
    text-align: center;
}


/* ===============================
    EVENTOS 1
=============================== */
/*badget de activitat en thumbnail*/
.home article.type-tribe_events .wp-show-posts-inner {
    position: relative;
}
.home article.type-tribe_events .wp-show-posts-inner:before {
    content: 'ACTIVITAT';
    position: absolute;
    right: 0;
    padding: 5px 10px;
    font-size: 12px;
}


/* ===============================
    EVENTS CALENDAR
=============================== */
body.post-type-archive-tribe_events #page {
    margin-top: 30px;
}
body.post-type-archive-tribe_events #tribe-events-pg-template .tribe-bar-disabled {
    float: none;
}
body.post-type-archive-tribe_events #tribe-events-pg-template .tribe-bar-disabled #tribe-events-bar {
    margin: 30px auto;
    float: none;
}
body.post-type-archive-tribe_events #tribe-events-pg-template .tribe-events-tooltip .tribe-events-event-thumb {
    float: none;
    text-align: center;
}


/* ==================================
    GALERIA DE IMAGENES SINGLE POST
================================== */
.galeria-blog {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}
.galeria-blog > div {
    flex-basis: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .galeria-blog > div {
        flex-basis: 33%;
    }
}
@media (max-width: 575px) {
    .galeria-blog > div {
        flex-basis: 50%;
    }
}
@media (max-width: 375px) {
    .galeria-blog > div {
        flex-basis: 100%;
    }
}

#ata-galeria-post {
    overflow: hidden;
}

#ata-galeria-post .gallery-item {
    width: 22%;
    display: inline-block;
    margin: 0 1%;
    vertical-align: middle;
}

/* ====================
    COOKIES MESSAGE
==================== */
#cookie-notice #cn-notice-text {
    font-size: 18px;
    letter-spacing: 0.5px;
}


/* ===========================
    SEPARATOR WP SHOW POST
=========================== */
.wp-show-posts-separator:not(.ata) {
    display: none;
}

/* ===========================
    META DATOS WP SHOW POST
=========================== */
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title {
    display: flex;
    flex-wrap: wrap;
}
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title .wp-show-posts-posted-on {
    order: 1;
}
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title .wp-show-posts-byline {
    order: 0;
    width: 100%;
    flex-shrink: 0;
    text-decoration: underline;
    text-transform: uppercase;
}
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title .wp-show-posts-byline a {
    color: #333!important;
}
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title .wp-show-posts-separator.ata {
    order: 2;
    padding-left: 3px;
}
.wp-show-posts-entry-meta.wp-show-posts-entry-meta-below-title .wp-show-posts-terms {
    order: 3;
    padding-left: 3px;
}


/* ===========================
    ENTRY META NOM ENTITAT
=========================== */
.entry-meta-nom-entitat span {
    font-size: 16px;
    font-style: italic;
}


/* ====================================
    FILTRO DE CATEGORIAS EN LA HOME
==================================== */
.ata-widget-category {
    float: right;
    margin-top: 5px;
}
.ata-widget-category h2 {
    display: none;
}



/* =================
    ADDTHIS TOOL
================= */
.addthis_tool {
    margin-top: 40px;
}








