body {
  margin: 0px;
  font-family: "Helvetica", Arial, sans-serif;
}

a {
  color: black;
}

h1, .rel h3 {
  font-family: "Times new roman", Times, serif;
}

ul {
  padding-left: 10px;
}

#tornatop {
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
  margin-top: 10px;
  padding: 0px;
  margin-bottom: 20px;
  opacity: 0;
}

.menu {
  padding: 20px !important;
  padding-right: 0px !important;
  width: 200px;
  float: left;
  overflow: hidden;
  position: fixed;
  top: 0px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: content-box;
}

body .menu .cats {
  padding-top: 0px;
  margin-top: 0px;
  padding-left: 0px
}

body.itemopened .menu {
  margin-left: -260px;
  height: 100vh;
}

body.itemopened #main {
  width: 100% !important;
  float: none;
  position: relative;
  display: block;
  left: 0px;
  overflow: hidden;
  height: auto !important;
  min-height: 100vh;
}

#main.itemfull {
  padding-top: 0px;
}

#main.itemfull .item.itemlist {
  display: none;
}

body.itemopened .item {
  position: relative !important;
}

.menu, .item {
  /*
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  */
}

.menu, .menu ul>ul {
  padding-left: 0px;
}

.menu>ul {
  margin-top: 5px;
}

.menu>ul>ul>li {
  margin-bottom: 20px;
}

.menu li {
  list-style: none;
  margin-bottom: 5px;
  line-height: 10px;
}

.menu a, .cat, .fakelink, .top .back, .cpager a, .top .languages a, #agenda, .piedefoto, .FormBuilder.InputfieldForm .Inputfield .InputfieldHeader, #tornatop, #plega, .btn {
  font-family: "Courier New";
  font-size: 12px;
  line-height: 10px;
}

.piedefoto {
  margin-top: 5px;
  margin-bottom: 0px;
}

.menu ul ul ul ul {
  max-height: 0px;
  overflow: hidden;
}

.menu ul ul ul li.current ul {
  max-height: 10000px;
}

.menu a {
  color: black;
  text-decoration: none;
  padding-bottom: 9px;
  display: block;
}

.menu ul {
  padding-top: 3px;
}

.fakelink {
  border-bottom: solid 1px;
}

.menu .count {
  font-size: 7px;
  margin-top: -6px;
  line-height: 0px;
  display: inline-block;
  vertical-align: middle;
  margin-left: -6px;
}

.item, .#main .top {
  -webkit-transition: opacity 200ms ease;
  -moz-transition: opacity 200ms ease;
  -ms-transition: opacity 200ms ease;
  -o-transition: opacity 200ms ease;
  transition: opacity 200ms ease;
}

.menu {
  -webkit-transition: opacity 200ms ease;
  -moz-transition: opacity 200ms ease;
  -ms-transition: opacity 200ms ease;
  -o-transition: opacity 200ms ease;
  transition: opacity 200ms ease;
}

.item {
  background-color: grey;
  display: inline-block;
  text-decoration: none;
  color: black;
  padding: 10px;
  opacity: 0;
}

.menu {
  opacity: 0;
}

#main.list.ready .item, #main .item.full.ready, .menu.ready {
  opacity: 1;
}

.item h5 {
  margin: 0px;
  margin-bottom: 10px;
  font-weight: normal;
}

.item h1 {
  margin-top: 0px;
  margin-bottom: 10px;
}

.item * {
  text-decoration: none;
}

.item.full {
  padding: 20px;
  width: calc(100% - 20px);
  min-height: calc(100vh - 70px);
}

.related {
  padding: 0px 20px;
  padding-bottom: 15px;
}

.related .rel {
  text-decoration: none;
  -webkit-transition: color 200ms ease;
  -moz-transition: color 200ms ease;
  -ms-transition: color 200ms ease;
  -o-transition: color 200ms ease;
  transition: color 200ms ease;
}

.related .rel h3 {
  font-size: 120px;
  line-height: 120px;
  margin: 0px;
  margin-bottom: 5px;
  letter-spacing: -1px;
  font-weight: bold;
}

.related .cat {
  margin-bottom: 10px;
  font-weight: normal;
}

#main {
  width: calc(100% - 240px) !important;
  /*grid-auto-flow: row dense;*/
  /*display: grid;*/
  padding-top: 20px;
  /*grid-template-columns: calc(20% - 20px) calc(20% - 20px) calc(20% - 20px) calc(20% - 20px) calc(20% - 20px);*/
  /*column-gap: 20px;*/
  float: right;
  position: relative;
  padding-top: 20px;
}

.video {}

.block {
  max-width: 800px;
}

.block .imatge img {
  max-width: 100%;
  height: 100%;
  width: 100%;
}

.imgg {
  min-height: 500px;
}

.item.full h1 {
  font-size: 220px;
  line-height: 196px;
  letter-spacing: -11px;
  margin-bottom: 40px;
  max-width: 100%;
  word-break: break-all;
  padding-right: 20px;
}

.intro {
  font-size: 16px;
  line-height: 20px;
}

.item.full .intro {
  font-size: 30px;
  line-height: 35px;
}

.item .title, .item .intro, .item .imgitemlist {
  margin-bottom: 10px;
  margin-top: 0px;
}

.item .title {
  font-size: 30px;
  line-height: 30px;
  word-wrap: break-word;
}

.bottomitem {
  margin-top: 20px;
}

.imgitemlist {
  mix-blend-mode: multiply;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

#main .top {
  opacity: 0;
  height: 30px;
}

#main .top.ready {
  opacity: 1;
}

.top .back {
  text-decoration: none;
  color: black;
  padding-left: 20px;
  padding-top: 9px;
  padding-bottom: 5px;
  display: block;
}

.item.full .cat, .item.full .block {
  margin-bottom: 20px;
}

.item.full .block.text p, .item.full .block.text li {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0px;
}

.cycle-slideshow {
  background-color: black;
}

.cycle-slide {
  margin-left: 0px !important;
}

.cpager a {
  font-weight: normal;
  width: auto;
  text-align: center;
  display: inline-block;
  margin-right: 7px;
}

.cpager .cycle-pager-active a {
  text-decoration: underline;
}

.menu #cat_1 .count {
  display: none;
}

.gutter-sizer {
  width: 20px;
}

.item.itemlist {
  margin-bottom: 20px;
  display: inline-block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.item.itemlist * {
  box-sizing: border-box;
}

.item.itemlist.mag_1, .grid-sizer {
  width: calc(20% - 20px);
}

.item.itemlist.mag_2 {
  width: calc(40% - 20px);
}

.item.itemlist.mag_3 {
  width: calc(60% - 20px);
}

.item.itemlist.mag_4 {
  width: calc(80% - 20px);
}

.item.itemlist.mag_5 {
  width: calc(100% - 20px);
}

.item.itemlist.mag_5 h1 {
  font-size: 137px;
  line-height: 121px;
  margin-bottom: 33px;
}

.item.itemlist.mag_4 h1 {
  font-size: 100px;
  line-height: 100px;
}

.item.itemlist.mag_3 h1 {
  font-size: 80px;
  line-height: 80px;
}

.item.itemlist.mag_2 h1 {
  font-size: 40px;
  line-height: 40px;
}

body.p_1298 .item.cat_1298 {
  width: calc(100% - 20px);
}

.Inputfield {
  margin-bottom: 20px !important;
}

.Inputfields .InputfieldContent {
  padding-right: 20px !important;
}

.Inputfields {
  padding-left: 0px;
}

.FormBuilder.InputfieldForm .Inputfield .InputfieldHeader {
  margin-bottom: 5px;
  display: block;
  font-weight: normal;
  font-size: 18px;
}

.Inputfields li p {
  margin: 0;
}

.Inputfields li p.description {
  font-style: italic;
}

.Inputfields textarea,
.Inputfields input,
.Inputfields select,
.Inputfields .InputfieldMaxWidth,
.Inputfields .FieldtypeEmail {
  width: calc(100% - 24px);
  border: none;
  font-size: 18px;
  padding: 12px;
  font-family: arial;
}

.Inputfields select {
  appearance: none;
  width: 100%;
}

.Inputfields .InputfieldColumnWidth {}

.Inputfields {}

.Inputfields .InputfieldSubmit label {
  display: none;
}

.ui-state-error-text {
  color: red;
}

.Inputfields .ui-button {
  border: none;
  font-size: 18px;
  padding: 12px 20px;
  background-color: black;
  color: white;
  font-weight: 100;
}

html, html *, html *:hover, body, body input, body input:hover, body a:hover {
  cursor: url(../img/cursor.png) 10 3, auto !important;
}

.mobile {
  display: none;
}

#cursor {
  display: none;
  position: fixed;
  text-align: center;
  pointer-events: none;
  left: 0;
  top: 0;
  z-index: 9999999999;
}

#cursor img {
  position: absolute;
  top: 24px;
  left: 18px;
}

.menu a.active .namecat {
  border-bottom: solid 1px;
}

.menu .languages {
  margin-top: 34px;
  padding-left: 0px;
}

.languages li {
  display: inline-block;
}

.languages li:after {
  content: "/";
  font-size: 12px;

}
.languages li a{
    margin: 0px 2px;
}

.languages li:last-of-type:after {
  content: "";
}

.languages li a {
  text-transform: uppercase;
  display: inline-block;
}

.item.langready_ {
  background-color: #373737 !important;
}

.top .languages {
  margin: 0px;
  position: absolute;
  right: 20px;
  top: 5px;
  z-index: 999999;
}

.top .languages a {
  text-decoration: none;
}

.top .languages a.active {
  text-decoration: underline;
}

.itemslazy {
  display: none;
}

/*
#agenda {
  display: block;
  background-color: #D7D7D7;
  text-align: center;
  transform: rotate(45deg);
  position: fixed;
  bottom: -35px;
  left: -90px;
  height: 80px;
  width: 200px;
  padding-top: 8px;
  text-decoration: none;
}
*/
.cat_agenda {
  background-color: #D7D7D7;
}

/*
.p_1255 .item.itemlist {
  width: calc(100% - 20px) !important;
}

body.p_1255 {
  background-color: #D7D7D7;
}

.p_1255 #main {
  width: calc(100% - 20px) !important;
  padding-left: 20px;
}

.p_1255 #main .item {
  background-color: white;
}
*/
#main.list.ready .item.pastevent {
  opacity: 0.2 !important;
}

.itemopened .item.full h1 {
  word-break: normal;
}

body.t_home #main, body.t_node #main {}

body::-webkit-scrollbar, .menu::-webkit-scrollbar {
  width: 6px;
  /* width of the entire scrollbar */
  position: absolute;
}

body::-webkit-scrollbar-track, .menu::-webkit-scrollbar-track {
  background: #F0F0F0;
  /* color of the tracking area */
}

body::-webkit-scrollbar-thumb, .menu::-webkit-scrollbar-thumb {
  background-color: #C1C1C1;
  /* color of the scroll thumb */
  border-radius: 20px;
  /* roundness of the scroll thumb */
  /* creates padding around scroll thumb */
}

body.macintosh .menu::-webkit-scrollbar-track, body.macintosh .menu::-webkit-scrollbar,
body.ios .menu::-webkit-scrollbar-track, body.ios .menu::-webkit-scrollbar {
  display: none;
}

.btn {
  background-color: white;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 20px;
  padding-top: 7px;
}

.block.imatge img{
  max-width: 100%;
}
