/*
Theme Name: XCN
Theme URI: http://www.xcn.cat
Author: Pimpampum.net
Author URI: http://www.pimpampum.net
Description: Tema a mida per a la XCN
Version: 1.0.0
License: GNU General Public L1icense v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.video-wrapper{position:relative;padding-bottom:56.25%;height:0}.videowrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}img,canvas{max-width:100%;height:auto}*{box-sizing:border-box}

/*********************************
GRID
xs >> 600px
s >> 768px
m >> 1020px
d >> 1200px
xl>> 1400px
*********************************/

:root {
--bgpage: #fff; /*#FDFCF7;*/
--bodytext: #4F4A40;
--textmarro: #a07e45;
--textblau: #4A78B5;
--textverd: #6A7C22;
--textrosa: #D4744E;
--bgbeige: #F7F3DE;
--bgbeige2: #EFE7BD;
--bgblau: #DBE4F0;
--bgverd: #EDEFDC;
--bgrosa: #F7E7DE;
--bgmarro: #70572F;
--grisfons: #f9f9f9;
--border: 1px solid #E9DCC9;
--bordermarro: #E9DCC9;
--gap: 30px;
--dosgap: 60px;
--miggap: 15px;
}

/* -------------------------------------------
XCN - Estuctura
-------------------------------------------  */

body,
button,
input,
select,
textarea {
font-family: Hind, Calibri, Tahoma, helvetica, arial, sans-serif;
font-weight: 400;
font-size: 1.0625rem;
line-height: 1.4;
color: var(--bodytext);
background-color: var(--bgpage);
}

.wrap, .wrap100 {
width: 100%;
margin: 0 auto;
position: relative;
max-width: 1500px;
}

.wrap {
padding-left: 8%;
padding-right: 8%;
}

.header_container.wrap {
padding: 0;
}

#main {
padding-bottom: 60px;
}

/* XCN - header */

#masthead {
position: relative;
background-color: var(--bgpage);
}

.logo {
margin-left: 8%;
margin-top: 20px;
}

.logo img {
width: 120px;
}

.menu-header-container {
display: none;
}

#site-navigation button.menu-toggle {
position: static;
}

.header_options .superior {
display: flex;
align-items: center;
}

.header_options .wpml-ls-legacy-dropdown,
.header_options .search-form {
margin-left: 20px;
padding-left: 20px;
}

.header_options .wpml-ls-sub-menu {
padding-bottom: 5px;
box-shadow:0 5px 6px rgba(0,0,0,0.2);
}

.header_options .wpml-ls-legacy-dropdown .wpml-ls-item {
padding: 2px 10px;
}

.header_options .wpml-ls-sub-menu a:hover {
color: var(--textmarro);
}

/* XCN - footer */

.site-footer {
padding: 40px 0;
line-height: 1.66666;
font-size: 0.875rem;
color: #fff;
background-color: #000;
}

.site-footer h2 {
margin: 0;
font-size: 1rem;
}

.site-footer p {
margin: 0.5em 0;
}

.site-footer a,
.site-footer a:visited {
color: #fff;
text-decoration: none;
}

.site-footer .widget {
margin-bottom: 40px;
}

#text-8 .textwidget {
display: flex;
}

#text-8 .textwidget img {
width: 110px;
margin-right: 20px;
display: inline-block;
}

#text-8 .textwidget p:first-of-type img {
width: 150px;
}

.compartir {
background: url(/img/bg_graella_beige.svg) var(--bgbeige) right top no-repeat;
padding: var(--gap) 0;
text-align: center;
}

.compartir h2 {
font-size: 1.125rem;
font-weight: 400;
}

.addthis_toolbox {
display: flex;
justify-content: center;
}

/* XCN - Links XXSS */

.social {
list-style-type: none;
margin: 0;
padding: 0;
}

header .social {
display: flex;
position: absolute;
top: 0;
right: 20px;
}

header .social li {
margin: 0 6px;
}

header .social li a {
display: block;
background-position: center center;
background-repeat: no-repeat;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
width: 16px;
height: 16px;
background-size: contain;
}

header .social .twitter a {
background-image: url(/img/ico_twitter.svg);
}

header .social .instagram a {
background-image: url(/img/ico_instagram.svg);
}

header .social .youtube a {
background-image: url(/img/ico_youtube.svg);
}

footer .social li {
margin: 0.5em 0;
}

footer .social li a {
background-repeat: no-repeat;
background-position: left 2px;
padding-left: 30px;
}

footer .social .twitter a {
background-image: url(/img/ico_twitter_white.svg);
}

footer .social .instagram a {
background-image: url(/img/ico_instagram_white.svg);
}

footer .social .youtube a {
background-image: url(/img/ico_youtube_white.svg);
}

/********************************************
XCN - Generals
********************************************/

a, a:visited {
color: var(--bodytext);
text-underline-offset: 4px;
text-decoration-color: var(--textmarro);
}

a:hover,
a:focus,
a:active {
text-decoration: underline;
text-underline-offset: 4px;
color: var(--textmarro);
text-decoration-color: var(--bodytext);
}

a:hover,
a:active {
outline: 0;
text-decoration-color: var(--textverd);
transition: all 0.3s;
}

a:focus {
outline: thin dotted;
}

p, ul, ol {
margin-top: 0;
margin-bottom: 1em;
}

ul, ol {
margin: 0 0 1.5em 1em;
padding-left: 0;
}

strong, b {
font-weight: 700;
}

figure {
margin: 0;
}

figcaption {
font-size: 0.8125rem;
text-align: center;
}

.wp-block-image .aligncenter > figcaption,
.wp-block-image .alignleft > figcaption,
.wp-block-image .alignright > figcaption,
.wp-block-image.is-resized > figcaption {
width: 100%;
}

.clear {
clear: both;
}

.screen-reader-text {
display: none;
}

h1, h2, h3, h4, h5, h6 {
font-weight: 700;
}

h1 {
line-height: 1.111;
}

h1.section_title,
#project_info .content h2 {
color: var(--textmarro);
font-size: 2rem;
line-height: 1.111;
margin: 0.5em 0;
}

#single_noticia_preheader h1.section_title,
#preheader_projectes h1.section_title {
margin-top: 0;
}

.wp-block-quote {
font-family: georgia, serif;
font-style: italic;
font-size: 1.125rem;
margin-top: 1.5em;
}

.wp-block-quote cite {
font-style: normal;
font-size: 1rem;
font-family: Hind, Calibri, Tahoma, helvetica, arial, sans-serif;
}

/* XCN - teaser titles */

h1.teaser_title,
h1.recurs-title,
h2.related-title {
font-size: 1.125rem;
line-height: 1.125;
margin-top: 0;
font-weight: 600;
}

h1.teaser_title a,
h2.related-title a {
text-decoration: none;
color: var(--textmarro);
}

h1.recurs-title a {
text-decoration: none;
}

h2.related-title a:hover {
text-decoration: underline;
color: var(--textmarro);
}

/********************************************
XCN - HOME
********************************************/

/* XCN - Slideshow */

#slideshow {
background: var(--bodytext);
position: relative;
}

.slideshow_item {
position: relative;
}

.slideshow_content {
padding: 15px 8%;
}

#slideshow h2,
.slideshow_txt {
color: #fff;
font-weight: 700;
line-height: 1.2;
padding: 5px 0;
font-size: 1rem;
margin: 0;
max-width: 700px;
}

.slideshow_txt {
font-weight: 400;
}

#slideshow .owl-dots {
position: absolute;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
}

.owl-theme .owl-dots .owl-dot span {
background-color: var(--bgbeige);
}

.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background-color: var(--textmarro);
}

/* XCN - Home destacat botons */

#home_destacat {
background: url(/img/bg_graella_beige.svg) var(--bgbeige) right top no-repeat;
padding: var(--gap) 0;
}

#home_destacat_content {
max-width: 620px;
font-size: 1.5rem;
font-weight: 700;
line-height: 1.25;
margin-bottom: 40px;
}

#home_destacat_botons {
display: grid;
grid-template-columns: 1fr;
grid-gap: 20px;
list-style-type: none;
margin: 0;
}

#home_destacat_botons li {
background-color: var(--bgmarro);
transition: background-color 0.2s;
border-radius: 3px;
}

#home_destacat_botons li:hover {
background-color: var(--bodytext);
transition: background-color 0.2s;
}

#home_destacat_botons a {
padding: 10px 20px;
display: block;
font-weight: 700;
line-height: 1;
color: #fff;
font-size: 1.125rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
text-decoration: none;
}

.boto_butlleti::before,
.boto_soci::before {
padding-right: 20px;
height: 37px;
display: flex;
flex-direction: column;
justify-content: center;
}

.boto_butlleti::before {
content: url(/img/ico_butlleti.svg);
}

.boto_soci::before {
content: url(/img/ico_soci.svg);
}


/* XCN - home actualitat: notícies, twitter i destaquem */

#home_actualitat {
padding-top: 40px;
padding-bottom: 30px;
}

#title_home_noticies,
#title_home_destaquem {
font-size: 1.5rem;
margin: 0 0 20px 0;
line-height: 1;
}

#title_home_destaquem {
color: var(--bodytext);
}

#title_home_noticies::before {
content: url(/img/ico_noticies.svg);
padding-right: 20px;
}

#title_home_destaquem::before {
content: url(/img/ico_destaquem.svg);
padding-right: 20px;
position: relative;
top: 9px;
}

#home_destaquem {
padding-top: 40px;
padding-bottom: 40px;
}

/* XCN - Home xifres */

#home_dades_bg {
background: url(/img/bg_ondulat.png) repeat-x center top;
height: 74px;
}

#home_dades {
background-color: #dfe1c7;
}

#home_dades .wrap {
padding-top: 40px;
padding-bottom: 20px;
}

#home_dades .widget {
text-align: center;
margin: 0 10px;
color: var(--textverd);
font-size: 1.125rem;
line-height: 1.2;
flex: 1;
}

#home_dades .widget-content {
font-size: 2.5rem;
margin: 0;
font-weight: 700;
line-height: 1;
}

#home_dades img {
display: inline;
max-width: 60px;
}

#home_dades .owl-carousel .owl-stage {
display: flex;
align-items: center;
}

#home_dades .owl-item {
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: 15px;
}

#home_dades .owl-nav {
display: none;
}

#home_dades .owl-theme .owl-dots .owl-dot.active span, 
#home_dades .owl-theme .owl-dots .owl-dot:hover span {
background-color: var(--textverd);
}

/********************************************
XCN - Bloc destacats grid banners + landings
********************************************/

.bloc_destacats  {
display: grid;
grid-template-columns: 1fr;
grid-auto-rows: minmax(220px, 1fr);
grid-gap: 24px;
grid-auto-flow: dense;
}

.destacat {
display: flex;
flex-direction: column;
position: relative;
font-size: 1rem;
line-height: 1.25rem;
margin-bottom: 0;
background-image: url(/img/bg_destacat.svg);
background-repeat: no-repeat;
background-position: right top;
background-size: auto 100%;
border-radius: 3px;
overflow: hidden;
}

.destacat .destacat_info {
position: absolute;
bottom: 0;
right: 0;
left: 0;
background-color: transparent;
z-index: 99;
color: #fff;
padding: 25px 30px 15px 30px;
}

.destacat h2 {
font-size: 1.5rem;
line-height: 1;
margin-top: 0;
margin-bottom: 0.5em;
hyphens: none;
}

.destacat h2 a,
.destacat h2 a:hover {
color: #fff;
text-decoration: none;
}

.destacat h2,
.destacat p {
text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.destacat_ambfoto {
width: 100%;
}

.destacat_ambfoto h2,
.destacat_ambfoto p {
text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.destacat_foto {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 1;
}

.destacat_foto img {
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}

.destacat_ambfoto .destacat_info {
background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.84) 100%);
}

/********************************************
XCN - Landings blocs
********************************************/

.page_landing h1.section_title {
text-transform: uppercase;
}

.landing_content {
padding-top: 20px;
font-size: 1.5rem;
line-height: 1.4;
}

.landing_content h1.section_title {
margin-bottom: 1em;
}

/********************************************
XCN - MEMBRES
********************************************/

#llistat_membres {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
grid-gap: 20px;
margin-bottom: 60px;
}

#llistat_membres .teaser {
border: 1px solid var(--bgbeige);
border-radius: 4px;
display: flex;
flex-direction: column;
background-color: #fff;
}

#llistat_membres .teaser_thumbnail {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0;
padding: 20px;
}

#llistat_membres .teaser_thumbnail img {
max-height: 100px;
width: auto;
}

#llistat_membres h2.teaser_title {
min-height: 80px;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 0.9375rem;
text-align: center;
line-height: 1.2;
margin: auto 0 0 0;
padding: 15px 10px;
height: auto;
background-color: var(--bgbeige);
}

.tipus_entitat {
margin: 0 0 2em 0;
list-style-type: none;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
grid-auto-rows: 1fr;
grid-gap: 4px;
}

.tipus_entitat li a {
text-align: center;
padding: 10px 10px 8px 10px;
text-decoration: none;
color: #999;
font-size: 0.875rem;
font-weight: bold;
border: 1px solid #ccc;
background-color: var(--grisfons);
border-radius: 3px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
line-height: 1.1;
}

.tipus_entitat li a:hover {
border: 1px solid var(--bgbeige);
background-color: var(--bgbeige);
color: var(--textmarro);
}

.tipus_entitat li a.selected {
background-color: var(--textmarro);
border-color: var(--textmarro);
color: #fff;
}

/********************************************
XCN - PERSONES ORGANITZACIÓ
********************************************/

.graella-persones {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-column-gap: 20px;
grid-row-gap: 40px;
margin-bottom: 60px;
}

.persona-organitzacio {
text-align: center;
font-size: 0.9375rem;
line-height: 1.3;
border: 1px solid var(--bordermarro);
padding-bottom: 1.5em;
}

.entry-content .persona-organitzacio p {
margin-bottom: 0;
}

.persona_foto {
padding-bottom: 1em;
}

.page-id-623 .persona_foto {
padding: 30px;
min-height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.page-id-623 .persona_foto img {
max-width: 150px;
}

.persona_entitat {
color: var(--textmarro);
font-size: 1rem;
font-weight: 600;
padding: 0 0.5em 0.25em 0.5em;
}

.entry-content .persona_nom h2 {
font-size: 1.0625rem;
font-weight: 700;
padding: 0 0.5em 0.25em 0.5em;
margin: 0;
}

.persona_carrec,
.persona_presentacio,
.persona_mail {
font-size: 1rem;
padding: 0 0.5em 0.25em 0.5em;
}

.linkedin p {
margin: 0 auto 5px auto;
display: block;
width: 19px;
height: 19px;
background: url(/img/ico_linkedin.svg) no-repeat center center;
background-size: contain;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

.linkedin a {
display: block;
}

.linkedin p:hover {
opacity: 0.7;
}

.veure-mes a,
.mes-info a {
width: 32px;
height: 32px;
background: url(/img/ico_mes.svg) no-repeat center center;
background-size: contain;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
text-align: center;
display: block;
margin: 0  auto;
}

.recurs-teaser .mes-info a {
background-image: url(/img/ico_mes_neg.svg);
}


/********************************************
XCN - LLISTAT PROJECTES
********************************************/

#main.llistat_projectes {
padding-top: 0;
}

h1.project-title {
font-size: 2.25rem;
line-height: 1.2;
margin-bottom: 20px;
margin-top: 10px;
}

h1.project-title a {
color: var(--textmarro);
text-decoration: none;
}

.project-teaser {
display: grid;
grid-template-areas: "info logo";
grid-template-columns: 1fr 340px;
grid-gap: 24px;
justify-content: space-between;
align-items: center;
padding-top: 30px;
padding-bottom: 30px;
border-radius: 3px;
}

.project-teaser:nth-of-type(2n) {
background-color: var(--bgbeige);
}

.project-teaser .project-info {
grid-area: info;
}

.project-teaser .project-info .excerpt {
max-width: 700px;
}

.project-teaser .imatge-destacada {
grid-area: logo;
text-align: center;
}

.project-teaser .imatge-destacada img {
max-height: 180px;
width: auto;
display: inline;
}

#projecte_aside {
margin-top: 40px;
}

#projecte_aside #page_submenu_nav {
position: static;
border-bottom: solid 2px var(--textmarro);
margin-bottom: 80px;
}

.project-meta {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-gap: 24px;
font-size: 0.8125rem;
padding-top: 20px;
border-top: 1px solid var(--bordermarro);
}

.content-meta {
font-size: 0.8125rem;
}

.content-meta h2 {
margin-top: 0;
}

.content-meta h3 {
font-size: 0.9375rem;
color: var(--textmarro);
font-weight: 700;
margin: 0;
}

.content-meta .financador h3,
.content-meta .organitzador h3 {
margin-bottom: 1em;
}

.content-meta ul,
#preheader .content-meta p {
margin: 0 0 15px 0;
}

.content-meta li {
display: inline;
list-style-type: none;
}

.content-meta li::after {
content: ", ";
}

.content-meta li:last-of-type::after,
.content-meta .organitzador li::after,
.content-meta .financador li::after {
content: none;
}

.content-meta a {
text-decoration-color:var(--bordermarro);
}

.content-meta a:hover {
text-decoration-color:var(--textmarro);
}

/********************************************
XCN - SINGLE PROJECTE
********************************************/

#preheader_projectes {
margin-bottom: 60px;
background-color: var(--bgbeige);
color: var(--bgbody);
font-weight: 400;
padding-top: var(--gap);
padding-bottom: var(--gap);
}

.project-subtitle {
font-weight: 700;
}

#header_thumbnail img {
width: auto;
max-height: 200px;
}

#project_info .content h2 {
margin-top: 2em;
}

#project_info .content h2:first-of-type {
margin-top: 0;
}

.web, .persona, .email, .pressupost, .financador, .organitzador, .project_twitter {
grid-column: 1 / -1;
}

.web, .pressupost, .persona, .email, .financador, .organitzador {
padding-bottom: 20px;
border-bottom: 1px solid var(--bordermarro);
}

.pressupost {
padding-top: 20px;
border-top: 1px solid var(--bordermarro);
}

.financador ul,
.organitzador ul {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
grid-gap: var(--miggap);
align-items: center;
}

.financador img,
.organitzador img {
max-width: 120px;
}

#projecte_aside p,
#projecte_aside ul {
margin: 0;
}

/********************************************
XCN - Relacionats titol lateral
********************************************/

.relacionats {
padding: 60px 0;
}

.relacionats .wrap {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
grid-gap: var(--gap);
}

.relacionats .wrap > h2 {
grid-column: 1 / 2;
font-size: 2.25rem;
line-height: 1.11;
margin: 0;
}

.relacionats_items {
grid-column: 2 / -1;
}

.projecte_recursos {
background-color: var(--bgbeige2);
}

.projecte_recursos h2,
.projecte_recursos a {
color: var(--textmarro);
}

.projecte_noticies {
background-color: var(--bgbeige);
}

.projecte_noticies h2,
.projecte_noticies a {
color: var(--textmarro);
}

.projecte_documents {
background-color: var(--bgblau);
}

.projecte_documents h2,
.projecte_documents a {
color: var(--textblau);
}

.projecte_activitats {
background-color: var(--bgverd);
}

.projecte_activitats h2,
.projecte_activitats a {
color: var(--textverd);
}

.projecte_galeries {
background-color: var(--bgrosa);
}

.projecte_galeries h2,
.projecte_galeries a {
color: var(--textrosa);
}

.projecte_galeries .relacionats_items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
grid-gap: var(--gap);
list-style-type: none;
margin: 0;
}

.projecte_galeries li {
position: relative;
}

.projecte_galeries p {
margin: 0;
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 60px 30px 20px 30px;
color: #fff;
background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.84) 100%);
text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.projecte_galeries p a {
color: #fff;
font-weight: 600;
text-decoration: none;
}

#single_galeria {
margin-bottom: 40px;
}

#single_galeria #js-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: var(--miggap);
}

#single_galeria #js-gallery img {
display: block;
}

/* XCN - Relacionats només text - teaser mini */

.teaser_mini {
padding: 5px 0;
border-top: var(--border);
}

.teaser_mini:last-of-type {
border-bottom: var(--border);
}

.teaser_mini .data {
float: left;
padding-right: 10px;
line-height: 20px;
margin: 0;
font-size: 0.875rem;
}

.teaser_mini h2 {
font-size: 1.125rem;
line-height: 1.2;
vertical-align: middle;
margin: 0.7em 0 0.5em 0;
}

.teaser_mini a {
text-decoration: none;}

/* XCN - Projectes relacionats graella */

.relacionats_projectes {
padding: var(--dosgap) 0;
background-color: var(--bgbeige2);
}

.relacionats_projectes .wrap > h2 {
font-size: 2.25rem;
line-height: 1.11;
color: var(--textmarro);
margin-top: 0;
}

.relacionats_projectes_graella {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
grid-gap: 24px;
}

.project-teaser-related figure.imatge-destacada {
margin-bottom: 0.5em;
}

.project-teaser-related h2.related-title a {
color: var(--bodytext);
}

/********************************************
XCN - ARCHIVE RECURSOS
********************************************/

#archive_graella article.recurs-teaser {
background-color: var(--bgbeige);
border-radius: 3px;
border: 1px solid var(--bgbeige);
}

#archive_graella article.recurs-teaser img {
border-radius: 3px 3px 0 0;
}

.recurs-info {
padding: var(--miggap);
}

.recurs-info p {
line-height: 1.2;
font-size: 0.9375rem;
}

.recurs-info a {
word-wrap: break-word;
}

.recurs-info ul {
margin-left: 0;
list-style-type: none;
}

.recurs-info .tipus-recurs {
font-size: 0.75rem;
}

.popup-video {
position: fixed;
left:0;
top:0;
margin: 0 auto;
width:100%;
height: 100%;
background-color: rgba(0,0,0,0.8);
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
}

.popup-video .content {
position: relative;
width: 80%;
max-width: 900px;
}

.popup-video .close {
background: url(/img/ico_close.svg) no-repeat center center;
background-size: contain;
display: block;
width: 44px;
height: 44px;
text-indent: -999em;
position: absolute;
top: 30px;
right: 30px;
z-index: 9999;
}

.popup-video .close:hover {
cursor: pointer;
}

.recurs-teaser .video {
position: relative;
}

#archive_graella img#video_play {
width: auto;
max-width: 100%;
height: auto;
border-radius: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

/********************************************
XCN - ARCHIVE NOTÍCIES
********************************************/

.post-type-archive-new #main {
position: relative;
}

.post-type-archive-new #archive_news_header {
border-top: 2px solid var(--bordermarro);
margin-top: 0;
}

.post-type-archive-new h1.section_title {
margin-top: 20px;
}

/* graella teasers degradat negre */

#archive_graella {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
grid-gap: 24px;
grid-auto-flow: dense;
}

#archive_graella article {
position: relative;
background-color: #000;
border-radius: 3px;
}

.post-type-archive-recurs #archive_graella article  {
background-color: var(--bgbeige);
}

#archive_graella h1.teaser_title a {
color: #fff;
}

#archive_graella article.category-destacat-llistat {
grid-column: auto / span 2;
grid-row: auto / span 2;
}

#archive_graella figure.archive_thumbnail {
margin-bottom: 0;
height: 100%;
}

#archive_graella img {
display: block;
width: 100%;
height: 100%;
max-width: none;
object-fit: cover;
border-radius: 3px;
}

#archive_graella .teaser_archive_info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 60px 30px 20px 30px;
color: #fff;
background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.84) 100%);
text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
border-radius: 0 0 3px 3px;
}

#archive_graella .teaser_archive_info a {
color: #fff;
}

#archive_graella .tipus-new {
position: absolute;
top: 10px;
right: 20px;
color: #fff;
padding: 6px 8px 4px 8px;
font-size: 0.75rem;
font-weight: 600;
border-radius: 3px;
line-height: 1;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

#archive_graella .tipus-new a {
color: #fff;
text-decoration: none;
}

#archive_graella .category-xcn .tipus-new {
background-color: var(--textverd);
}

#archive_graella .category-membres .tipus-new {
background-color: var(--textblau);
}

#archive_graella .data_ppp {
color: #eee;
margin: 3px 0;
}

#archive_graella h1 a.extern:after {
content: url(/img/ico_extern_blanc.svg);
margin-left: 5px;
}

.news #archive_graella .category-destacat-llistat h1.teaser_title {
font-size: 1.5rem;
}

/* XCN - Filtre notícies per temes */

.archive_news_filtres {
padding-top: 10px;
}

.filtres {
margin-bottom: var(--gap);
}

.filtres .desplegable {
padding: 10px 20px 8px 20px;
border: var(--border);
border-radius: 3px;
}

.filtres .desplegable h3 {
font-size: 0.875rem;
margin: 0;
font-weight: 700;
background: url(/img/arrow_down_marro.svg) no-repeat right 5px;
text-align: right;
padding-right: 30px;
}

.filtres .desplegable h3:hover {
color: var(--textmarro);
cursor: pointer;
}

.filtres .desplegable.desplegat h3 {
background-image:  url(/img/arrow_up_marro.svg);
}

.filtres ul {
display: flex;
flex-wrap: wrap;
margin: 0;
padding-top: 8px;
}

.filtres li {
font-size: 0.8125rem;
list-style-type: none;
margin: 0 5px 5px 0;
text-align: center;
padding: 8px 10px 6px 10px;
display: block;
text-decoration: none;
color: #999;
font-weight: bold;
border: 1px solid #ccc;
background-color: var(--grisfons);
border-radius: 3px;
}

.filtres li:hover {
border: 1px solid var(--bgbeige);
background-color: var(--bgbeige);
color: var(--textmarro);
cursor: pointer;
}

.filtres li.selected {
background-color: var(--textmarro) !important;
border-color: var(--textmarro);
color: #fff;
}

/* XCN - Actualitat single */

.single-new #main {
padding-bottom: 0;
}

.single_noticia {
margin-bottom: 80px;
}

#single_noticia_preheader {
background-color: var(--bgbeige);
margin-bottom: 60px;
padding-top: var(--gap);
padding-bottom: var(--gap);
color: var(--bodytext);
font-weight: 400;
border-radius: 3px;
}

.single_noticia .excerpt {
font-weight: 700;
}

.noticia_header_meta {
font-size: 0.8125rem;
}

.single_noticia .wp-block-image.destacada {
margin-top: -140px;
margin-bottom: 60px;
}

.single-new .compartir {
background-color: var(--bgbeige2);
}

/* XCN - Què fan els membres, graella */

.page-template-page-que-fan-entitats-membre .page_submenu #page_container article {
grid-area: unset;
}

/********************************************
XCN - AGENDA
********************************************/

.page-template-page-agenda h1.section_title {
padding-top: 20px;
}

#caleandar {
margin-top: 60px;
display: flex;
flex-direction: row;
justify-content: center;
}

.activitat_teaser {
padding: var(--gap) 0;
border-bottom: var(--border);
}

.cld-main {
width: 270px;
}

.cld-day.today .cld-number {
width: 30px;
height: 30px;
line-height: 24px;
font-weight: 700;
color: #fff;
border-color: var(--textmarro);
}

.cld-number.eventday {
width: 30px;
height: 30px;
line-height: 24px;
background-color: #fff;
border-color: var(--textmarro);
border-radius: 30px;
}

.cld-number.eventday:hover {
background-color: var(--bgbeige2);
border-color: var(--textmarro);
}

.cld-label {
font-size: 0.8125rem;
}

.cld-day {
font-size: 1rem;
}

ul.cld-labels, ul.cld-days {
padding: 0;
margin: 0;
}

.cld-datetime, ul.cld-labels {
padding: 5px 0;
}

.cld-number {
margin: 1px;
padding: 3px;
}

.single-event .project-meta h3 {
margin-top: var(--gap);
}

.cld-title {
font-size: 0.875rem;
white-space: normal;
width: 200px;
text-align: left;
line-height: 1.1;
padding: 12px;
box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.cld-title a {
text-decoration: none;
}

.cld-title::before {
top: -10px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #fff;
}

h1 a.extern:after {
content: url(/img/ico_extern.svg);
margin-left: 5px;
padding-top: 2px;
}

/********************************************
XCN - SINGLE GENÈRICA INTERIORS
********************************************/

#contingut_pagina {
padding-bottom: 60px;
}

/* XCN pàgines SENSE submenú */

.page_no_submenu #page_container {
width: 85%;
margin: 0 auto;
position: relative;
max-width: 800px;
}

/* XCN pàgines AMB submenú */

.page_submenu #page_container {
width: 100%;
max-width: 1500px;
margin: 0 auto;
padding-left: 8%;
padding-right: 8%;
display: grid;
grid-template-columns: 1fr;
grid-template-areas:
"contingut"
"submenu";
grid-gap: 60px;
}

#page_submenu_nav {
grid-area: submenu;
position: sticky;
top: 50px;
}

.page_submenu #page_container article {
grid-area: contingut;
}

#page_submenu_nav ul {
margin: 0;
}

#page_submenu_nav ul li a {
padding-left: 5px;
}

#page_submenu_nav ul.children li a {
padding-left: 20px;
}

#page_submenu_nav > ul > li a:hover {
color: var(--bodytext);
}

#page_submenu_nav li {
border-top: 1px solid #E9DCC9;
list-style-type: none;
font-size: 1rem;
line-height: 1.2;
}

#page_submenu_nav a {
color: var(--textmarro);
padding: 14px 0 12px 0;
display: block;
text-decoration: none;
}

#page_submenu_nav > ul > li:first-of-type {
text-transform: uppercase;
border-top: none;
border-bottom: solid 2px var(--textmarro);
font-weight: 700;
}

#page_submenu_nav > ul > li:nth-of-type(2) {
border-top: none;
}

#page_submenu_nav > ul > li:first-of-type > a {
font-size: 1.125rem;
padding-left: 4px;
padding-bottom: 4px;
}

#page_submenu_nav ul > li.current_page_ancestor > a {
font-weight: 700;
}

#page_submenu_nav ul > li.current_page_item > a,
#page_submenu_nav li.selected a  {
font-weight: 700;
background-color: var(--bgbeige);
padding-left: 20px;
background: url(/img/bullet.svg) no-repeat left 17px;
}

#page_submenu_nav > ul > li .children {
display: none;
}

#page_submenu_nav > ul > li.current_page_item .children,
#page_submenu_nav > ul > li.current_page_ancestor .children {
display: block;
}

/* XCN pàgina genèrica continguts */

#page_container + .bloc_destacats {
margin-top: 60px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
color: var(--textmarro);
color: var(--textmarro);
font-weight: 700;
margin: 1.5em 0 0.75em 0;
}

.entry-content h2 {
font-size: 2rem;
line-height: 1.1em;
letter-spacing: -0.3px;
}

.entry-content h2:first-of-type {
margin-top: 0.25em;
}

.entry-content h3 {
font-size: 1.75rem;
}

.entry-content h4 {
font-size: 1.5rem;
}

.entry-content h5 {
font-size: 1.25rem;
}

.page .excerpt {
font-size: 1.125rem;
color: #000;
}

.excerpt p {
margin-top: 0;
line-height: 1.38;
}

.page article img {
margin-bottom: 0;
}

.entry-content li,
.content li {
margin-bottom: 0.5em;
list-style-image: url(/img/bullet.svg);
}

.entry-content p,
.content p {
margin-bottom: 1.5em;
}

.entry-content .wp-block-image,
.entry-content .wp-block-embed {
margin: 1em 0;
}

/********************************************
XCN - PREHEADER
********************************************/

#preheader.wrap {
padding-left: 8%;
padding-right: 0;
margin-bottom: 30px;
/*overflow: hidden;*/
}

#preheader_info {
font-weight: 700;
line-height: 1.3;
padding: 30px 40px 30px 0;
}

#preheader_bg {
background-size: cover;
background-position: center center;
}

#preheader p {
margin: 0;
}

#preheader .excerpt {
font-weight: 600;
}

#preheader_pretitol,
h1#preheader_titol .label {
font-weight: 400;
text-transform: uppercase;
display: block;
font-size: 1rem;
color: #fff;
margin-bottom: 0.5em;
}

#preheader_pretitol a {
text-decoration: none;
}

#preheader p#preheader_titol,
h1#preheader_titol {
font-size: 2rem;
line-height: 1;
color: #fff;
text-transform: uppercase;
margin: 0.125em 0;
}

/* XCN - PREHEADER AMB FILTRES */

.preheader_filtres {
display: flex;
justify-content: space-between;
}

.preheader_filtres #preheader_bg {
padding: 30px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.preheader_filtres_container {
position: relative;
z-index: 2;
width: 450px;
}

.preheader_filtres_container h3 {
text-shadow: 0 0 20px #000;
margin-top: 0;
margin-bottom: 0.5em;
color: #fff;
}

.preheader_filtres_form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}

.preheader_filtres_container input,
.preheader_filtres_container select {
font-size: 0.9375rem;
border-radius: 3px;
border: none;
padding: 9px 12px 7px 12px;
font-weight: 700;
width: calc(50% - 3px);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
font-family: Hind, Calibri, Tahoma, helvetica, arial, sans-serif;
font-size: 0.9375rem;
padding: 9px 12px 7px 12px;
font-weight: 700;
height: auto;
}

.chosen-container-multi .chosen-choices {
margin-bottom: 6px;
border-radius: 3px;
border: none;
background-image: none;
overflow-x: hidden;
overflow-y: auto;
max-height: 120px;
}

.chosen-container-multi .chosen-choices li.search-choice {
color: var(--textverd);
background-color: ;
border-color:var(--textverd);
background-image: none;
font-size: 0.8125rem;
list-style-type: none;
margin: 3px;
text-align: center;
padding: 8px 25px 6px 10px;
display: block;
font-weight: 700;
box-shadow: none;
background: url(/img/ico_close_verd.svg) no-repeat calc(100% - 6px) 8px var(--bgverd);
}

.chosen-container .chosen-results li.highlighted {
background-image: none;
background-color: var(--textverd);
color: #fff;
}

.recursos_filtres .chosen-container-multi .chosen-choices li.search-choice {
background-image: url(/img/ico_close_blau.svg);
}

.recursos_filtres .chosen-container .chosen-results li.highlighted {
background-color: var(--textblau);
}

.recursos_filtres .chosen-container-multi .chosen-choices li.search-choice {
color: var(--textblau);
background-color: var(--bgblau);
border-color:var(--textblau);
}

.preheader_filtres_container input.paraula {
width: calc(100% - 110px);
border-radius: 3px 0 0 3px;
}

.preheader_filtres button {
background-color: var(--bgmarro);
transition: 0.2s background-color;
border-radius: 0 3px 3px 0;
padding: 9px 12px 7px 12px;
font-weight: 600;
}

.preheader_filtres button:hover {
background-color: var(--textmarro);
cursor: pointer;
transition: 0.2s background-color;
}

.preheader_filtres button#cerca-filtres {
width: 100%;
margin-bottom: 12px;
border-radius: 3px;
}

.preheader_filtres button#cerca-text {
width: 110px;
}

/* tipus d'arxiu i generals */

.files a {
background: url(/img/ico_generic.svg) no-repeat left top;
background-size: 22px auto;
padding-left: 30px;
}

.files a[href$='.pdf'] {
background-image: url(/img/ico_pdf.svg);
}

.files a[href$='.doc'],
.files a[href$='.docx'] {
background-image:url(/img/ico_doc.svg);
}

.files a[href$='.xls'] {
background-image:url(/img/ico_xls.svg);
}

.files a[href$='.ppt'] {
background-image:url(/img/ico_ppt.svg);
}

.files a[href$='.zip'] {
background-image:url(/img/ico_zip.svg);
}

/* paginacio */

#paginacio {
width: 100%;
text-align: center;
margin-top: 40px;
}

#paginacio .page-numbers {
text-align: center;
text-decoration: none;
padding: 12px 14px 8px 14px;
border: 1px solid #dedcd3;
line-height: 1;
display: inline-block;
border-radius: 3px;
}

#paginacio .page-numbers.current {
font-weight: 700;
color: var(--beigetext);
border: none;
}

#paginacio .page-numbers:hover {
border-color: var(--bodytext);
color: var(--bodytext);
}


/********************************************
Aliniaments
********************************************/


.wp-block-image .alignleft,
.wp-block-image .alignright {
margin: 0 0 0.5em 0;
float: none;
}

.wp-block-image .aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.5em;
text-align: center;
}


/*--------------------------------------------------------------
XCN - Captions
--------------------------------------------------------------*/

.wp-caption {
margin-bottom: 1.5em;
max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
display: block;
margin-left: auto;
margin-right: auto;
}

.wp-caption-text {
font-size: 0.875rem;
color: #666;
text-align: left;
padding: 8px 0 5px 0;
}

/* Formularis */

.bt a, 
.bt a:visited,
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
background-color: var(--bodytext);
text-transform: uppercase;
font-size: 0.875rem;
padding: 10px 20px;
text-decoration: none;
color: #fff;
border-radius: 0;
border: none;
}


.superior .search-form {
display: flex;
position: absolute;
top: 30px;
right: 20px;
}

.superior .search-field {
border: var(--border);
border-radius: 3px 0 0 3px;
border-right: none;
width: 100px;
height: 30px;
line-height: 30px;
transition: width 0.3s;
padding: 0 10px;
vertical-align: middle;
margin-top: 0;
margin-right: 0;
font-size: 0.8125rem;
}

.superior .search-field:focus {
width: 180px;
transition: width 0.3s;
}

.superior .search-submit {
text-indent: -999em;
width: 40px;
height: 30px;
border-radius: 0 3px 3px 0;
background: url(/img/ico_lupa.svg) no-repeat center;
padding: 0 4px;
border: var(--border);
}

.wpcf7 button,
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
width: 100%;
}

.wpcf7-form input,
.wpcf7-form textarea {
border: 1px solid var(--textmarro);
border-radius: 3px;
padding: 6px 10px;
font-size: 1rem;
margin-top: 5px;
}

.wpcf7-form  input[type="checkbox"] {
border: var(--border);
width: 13px;
-webkit-appearance: checkbox;
margin-right: 6px;
border: var(--border);
}

.wpcf7-form  input[type="submit"] {
background-color: var(--textmarro);
}

.wpcf7-form  input[type="submit"]:disabled {
padding: 8px 10px 6px 10px;
border: 1px solid #ccc;
background-color: #ccc;
border-radius: 3px;
}

.wpcf7-response-output {
padding: 20px;
margin-top: 1em;
text-align: center;
background-color: var(bodytext);
color: #fff;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
max-width: 600px;
background-color: #fff;
border-radius: 6px;
border: none;
padding: 20px;
margin: 0px auto;
text-align: center;
}

div.wpcf7-response-output.wpcf7-mail-sent-ok {
background-color: var(--textverd);
}

div.wpml-ls-legacy-dropdown {
width: auto;
text-align: left;
font-family: Hind, Calibri, Tahoma, helvetica, arial, sans-serif;
font-weight: 700;
font-size: .8125rem;
text-transform: uppercase;
}

div.wpml-ls-legacy-dropdown a,
div.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
border: none;
background: var(--bgpage);
}

div.wpml-ls-legacy-dropdown a:hover,
div.wpml-ls-legacy-dropdown a:focus,
div.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover>a {
background: var(--bgpage);
}


/********************************************
RESPONSIVE
********************************************/

/* ANCHOR 600px */
@media screen and (min-width: 600px) {

.logo {
width: 250px;
}

#cercador {
top: 60px;
}

#cercador input.search-field {
width: 110px;
}

#cercador input.search-field:focus {
width: 200px;
}

header .social {
right: 8%;
top: 0;
}

.superior .search-form {
right: 8%;
top: 40px;
}

/* XCN - GENERALS */

ul, ol {
margin: 0 0 1.5em 2.5em;
}

/* Home */

.actualitat_home {
padding: 60px 0;
}

/* XCN - Bloc destacats banners + landings */

.bloc_destacats  {
grid-template-columns: repeat(2, 1fr);
}

.destacat h2 {
font-size: 1.875rem;
margin-bottom: 0;
}

.destacat_XL,
.destacat_L {
grid-column: 1 / -1;
grid-row: span 2;
order: 1;
}

.destacat_M {
grid-column: 1 / 2;
grid-row: span 2;
order: 2;
}

.destacat_S {
grid-column: auto / span 1;
grid-row: span 1;
order: 3;
}

.destacat .destacat_info {
padding: 60px 40px 40px 40px;
}

.destacat.destacat_S .destacat_info {
padding-bottom: 15px;
}

/* XCN - Agenda */

.activitat_teaser {
display: flex;
padding: var(--gap) 0;
}

.activitat_thumbnail {
max-width: 200px;
margin-right: 20px;
}

.activitat_info {
flex: 1;
}

#caleandar {
margin-top: 0px;
display:block;
background-color: var(--bgbeige);
padding: 15px;
border-radius: 10px;
}

/* XCN - Membres */

#llistat_membres {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

#llistat_membres .teaser_thumbnail {
padding: 30px;
}

/* XCN - blocs a mida */

.wp-block-group.is-style-destacat_caixa_esq {
float: left;
margin: 0 30px 20px 0;
max-width: 340px;
}

.wp-block-group.is-style-destacat_caixa_dre {
float: right;
margin: 0 0 20px 30px;
max-width: 340px;
}
}

/* ANCHOR 768px */

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

.search-menu {
padding: 10px 5px 30px 30px;
}

li.search_hamb {
order: 20;
padding: 10px 20px;
}

.search_hamb input#searchsubmit {
font-size: 1.125rem;
}
  
#main {
padding-bottom: 80px;
}

.logo img {
width: 150px;
transition: all 0.5s;
}

/* XCN - Stycky header */

#masthead.sticky {
position: fixed;
width: 100%;
left: 0;
top: 0;
z-index: 100;
border-top: 0;
padding-bottom: 0;
transition: all 0.5s;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#masthead.sticky .logo {
margin-top: 5px;
margin-bottom: 5px;}

#masthead.sticky .logo img {
width: 90px;
padding-top: 0;
transition: all 0.5s;
}

#masthead.sticky .header_container {
padding-top: 5px;
padding-bottom: 0;
transition: all 0.5s;
align-items: center;
}

#masthead.sticky .header_options .superior {
height: 0;
opacity: 0;
transition: all 0.5s;
}

#masthead .superior {
height: auto;
opacity: 1;
transition: all 0.5s;
}

#masthead.sticky #menu-principal {
margin-top: 5px;
transition: all 0.5s;
}


/* XCN - HOME */

#title_home_noticies,
#title_home_agenda,
#title_home_destaquem {
font-size: 2.25rem;
margin: 0 0 40px 0;
}


/* Home destacats botons */

#home_destacat_botons {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-gap: var(--gap);
}

/* destacats home */

.destacats {
padding: 60px 50px 0 50px;
position: relative;
margin: 0 -50px;
}

.destacats .owl-prev {
left: -50px;
}

.destacats .owl-next {
right: -50px;
}


/* logos */

.home_logos img {
width: 200px;
transition: filter 0.3s;
filter: grayscale(1);
}

/* preheader colors */

#preheader {
min-height: 340px;
margin-bottom: 50px;
display: grid;
grid-template-columns: 1fr 2fr;
}

#preheader p#preheader_titol,
h1#preheader_titol {
font-size: 2.625rem;
}

#preheader_info {
padding: 60px 40px 60px 0;
}


/* footer */

.site-footer {
padding: 80px 0;
}

.site-footer .wrap {
display: flex;
flex-direction: row;
justify-content: space-between;
}

.site-footer .widget {
flex: 1;
}

/* generals */

.wp-block-image .alignleft {
float: left;
margin: 0 1em 0.5em 0;

}
.wp-block-image .alignright {
float: right;
margin: 0 0 0.5em 1em;
}

}


/* ANCHOR 1020px */

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

.header_container.wrap {
padding: 15px 8%;
padding-right: 8%;
}

.logo {
margin: 0;
float: left;}

.header_options {
text-align: right;
}

.header_options .superior {
justify-content: flex-end;
}

header .social {
position: static;
}

.superior .search-form {
position: static;
}

#site-navigation {
clear: both;
padding-top: 20px;
}

#masthead.sticky .header_container {
padding-bottom: 5px;
}


/* menu */

.main-navigation li.mobil,
.main-navigation li.search-menu {
display: none;
}

#menu-principal {
display: flex;
position: relative;
margin: 0;
padding: 0;
}

.main-navigation li {
margin: 0 0 0 30px;
padding-top: 0;
list-style-type: none;
line-height: 1;
text-transform: uppercase;
font-weight: 700;
font-size: .9375rem;
white-space: nowrap;
}

.main-navigation li:first-of-type {
margin-left: 0;
}

.main-navigation ul ul li {
text-transform: none;
}

.main-navigation a {
padding-bottom: 4px;
display: block;
text-decoration: none;
color: var(--bodytext);
}

.main-navigation a:hover {
color: var(--beigetext);
}

#menu-principal > .current_page_item,
#menu-principal > .current-menu-item,
#menu-principal > .current-page-ancestor,
#menu-principal > .current-menu-ancestor,
#menu-principal > .current-menu-parent {
border-bottom: 1px solid var(--bodytext);
}


/* home */

#home_quefem .wrap {
width: 85%;
}

#home_quefem,
#home_nosaltres,
#home_about .home_about_content  {
padding: 60px 0;
}

#home_blog .blog_teaser {
padding: 20px 0 40px 0;
}

/* XCN - Home destacats botons */

#home_destacat {
padding: 60px 0;
}

#home_destacat_botons a {
padding: 14px 30px;
font-size: 1.375rem;
}

/* XCN home actualitat: notícies i twitter */

#home_actualitat {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 60px;
padding-top: 60px;
padding-bottom: 60px;
}

#home_noticies_agenda {
grid-column: 1 / 3;
}

/* home intro */

#home_intro {
display: grid;
grid-template-columns: 1fr 1fr;
}

/* home dades */

#home_dades .widget-content {
font-size: 3.75rem;
}

#home_dades .wrap {
padding-bottom: 40px;
display: flex;
justify-content: space-around;
align-items: baseline;
}

#home_dades img {
max-width: 90px;
margin-bottom: 20px;
}

/* XCN Home destaquem */

#home_destaquem {
padding-top: 60px;
padding-bottom: 60px;
}

/* page serveis */

.container_serveis {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: baseline;
}

.container_serveis #nav_menu-2 {
margin-top: 0;
flex: 2;
order: 1;
}

.container_serveis #main {
padding-left: 80px;
flex: 5;
order: 2;
}

/* genèriques interiors */

.page_submenu #page_container {
display: grid;
grid-template-columns: minmax(200px, 300px) minmax(500px, 900px);
grid-template-areas: "submenu contingut";
grid-gap: 60px;
justify-content: center;
}

/* XCN - Actualitat archive */

.page_sidebar {
display: grid;
grid-template-columns: 1fr minmax(200px, 250px) ;
grid-template-areas: "contingut aside";
grid-gap: 60px;
justify-content: space-between;
}

#archive_llistat {
grid-area: contingut;
}

#archive_news_header {
display: flex;
justify-content: space-between;
}

.archive_news_filtres {
margin-left: 40px;
}

/* XCN - Actualitat single */

#single_noticia_preheader {
display: grid;
grid-template-columns: minmax(400px, 700px) 200px ;
grid-template-areas: "titol meta";
grid-gap: 24px;
justify-content: space-between;
align-items: center;
}

.noticia_header_content {
grid-area: titol;
}

.noticia_header_meta {
grid-area: meta;
}

/* XCN - Agenda */

.activitat_teaser {
border-top: var(--border);
border-bottom: none;
}

.page-template-page-agenda .page_sidebar {
grid-template-columns: 1fr 300px;
}

.page-template-page-agenda h1.section_title {
border-top: 2px solid var(--bordermarro);
margin-top: 0;
}

/* XCN - SINGLE PROJECTE */

#header_info {
display: grid;
grid-template-columns: minmax(500px, 700px) minmax(300px, 400px);
grid-gap: 60px;
justify-content: space-between;
align-items: center;
}

#project_info {
display: grid;
grid-template-columns: minmax(500px, 700px) minmax(300px, 400px);
grid-template-areas: "contingut aside";
grid-gap: 60px;
justify-content: space-between;
align-items: start;
margin-bottom: 80px;
}

#project_info .entry-content {
grid-area: contingut;
}

#project_info #projecte_aside {
grid-area: aside;
margin-top: 0;
}

}

/* ANCHOR 1200px */

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


/* header */

.header_container {
display: flex;
flex-direction: row;
justify-content: space-between;
}

.logo {
width: 300px;
}

#menu-header {
position: static;
}

#site-navigation {
padding-top: 0;
}

#header_nav {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end;
}

#idiomes {
position: static;
padding-bottom: 20px;
}

#menu-principal {
display: flex;
position: relative;
margin: 30px 0 0 0;
padding: 0;
}

/* XCN - HOME */

#slideshow {
}

.slideshow_content {
padding: 130px 8% 60px 8%;
background-image: linear-gradient(-180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.84) 100%);
position: absolute;
bottom: 0;
right: 0;
left: 0;
z-index: 99;
color: #fff;
}

#slideshow h2,
.slideshow_txt {
font-size: 1.5rem;
line-height: 1.2;
margin: 0;
}

#slideshow h2 {
font-size: 2.25rem;
margin-bottom: 7px;
display: inline-block;
line-height: 1;
}

.slideshow_txt p {
margin: 0;
}


/* XCN - destacats */

.bloc_destacats {
grid-template-columns: repeat(3, 1fr);
}

.destacat_L {
grid-column: auto / span 2;
grid-row: span 2;
}

.destacat_M {
grid-column: auto / span 1;
grid-row: span 2;
}

.destacat_S {
grid-column: auto / span 1;
grid-row: span 1;
}

/* blog teasers */

.blog-teaser {
display: grid;
grid-template-columns: auto minmax(300px, 600px) minmax(300px, 600px) auto;
grid-template-areas: ". blog-thumbnail blog-info .";
grid-gap: 40px;
padding: 40px 0;
}

.blog-info {
grid-area: blog-info;
}

.blog-thumbnail {
grid-area: blog-thumbnail;
}

/* XCN - Agenda */

.activitat_thumbnail {
max-width: 260px;
}

}

/* ANCHOR 1400px */

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

.page-actualitat article {
width: calc(25% - 20px);
margin: 10px;
}

#preheader.wrap {
border-radius: 3px;
}
}


/* ESBORRABLE??? 

a.read_more {
color: var(--textmarro);
font-size: 0.9375rem;
text-decoration: none;
}

a.read_more:hover {
text-decoration: underline;
}

a.read_more::before {
content: url(/img/bullet.svg);
margin: 0 4px;
}

*/
/* home projectes */
/*
.section_header {
padding: 0 40px;
display: flex;
flex-direction: row;
justify-content: space-between;
border-top: var(--border);
background-color: #000;
}

.section_header h1.section_title,
.section_header h1.section_title a {
color: #fff;
text-decoration: none;
}

.section_header_nav {
display: flex;
flex-direction: row;
justify-content: flex-end;
}

.section_header_nav p {
border-left: var(--border);
margin: 0;
}

.section_header_nav p:last-of-type {
border-right: var(--border);
margin: 0;
}

.section_header_nav a {
display: block;
text-decoration: none;
padding: 0 20px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
color: #fff;
}*/
/* Teasr notícies*/
/*
#archive_sidebar .widget {
display: flex;
align-items: baseline;
padding-bottom: var(--gap);
}

#archive_sidebar h2.widgettitle {
font-size: 1rem;
color: var(--textmarro);
margin-right: var(--miggap);
}

#archive_sidebar select#cat {
font-size: 1rem;
line-height: 1;
-moz-appearance: none;
-webkit-appearance: none;
border: none;
border-bottom: var(--border);
padding-bottom: 5px;
background: url(/img/arrow_down_marro.svg) no-repeat right 2px;
}

.page-template-page-actualitat h1.section_title {
margin-bottom: 0.5em;
padding-top: 30px;
border-top: 2px solid var(--bgbeige);
}
#archive_actualitat a {
text-decoration: none;
}


/* teaser noticies 

.data_ppp {

}

.teaser_archive_info .resum p {
margin-bottom: 0;
}

.news_teaser {
background-color: var(--bgbeige);
border-radius: 3px;
overflow: hidden;
}

.news_teaser a {
text-decoration: none;
}

.news_teaser a:hover {
text-decoration: underline;
}

.teaser_archive_info {
font-size: 1rem;
line-height: 1.2;
padding: var(--miggap);
}

.teaser_noticia_thumbnail {
margin-bottom: 0;
}

.teaser_noticia_thumbnail img {
display: block;
}

.data_ppp, .data {
font-size: 0.8125rem;
color: #777;
margin-bottom: 10px;
}

.single-event .data_ppp {
font-size: 1.125rem;
font-weight: 700;
color: var(--bodytext);
}

*/


*/

*/
