

/*small attachemnt*/
.main .field--type-link {
  margin: 50px 0px;
  min-height: 74px;
  padding-left: 0;
  justify-content: center;
}

.main .field--type-link::before {
  content: "";
  background: url(../spritesheet.png);
  transform: none;
  background-position: -381px 0;
  width: 73px;
  height: 73px;
  position: absolute;
  top: 0px;
  left: 0px;
}

.main .field--type-link::before {
  background-position: -303px 0;
}

.main .field--type-link a {
  word-break: break-all;
  font-size: var(--medium-font-size);
  color: var(--green);
  font-style: italic;
  margin-top: 14px;
  font-family: "Ubuntu";
  border-bottom: 0;
  margin: 0 0 0 90px;
  padding: 0;
  display: inline-block;
  align-items: center;
}

.main .attachment-template h1 {
  font-size: var(--medium-font-size);
  color: var(--green);
  font-style: italic;
  margin-top: 14px;
  line-height: 1rem;
  font-family: "Ubuntu";
  border-bottom: 0;
  padding: 0;
  display: inline-block;
  align-items: center;
}


.main .field--type-link a:hover,
.main .attachment-template h1:hover {
  text-decoration: underline;
  color: var(--green);
  transition: 0.2s ease;

}






/*ATTACHMENT RESOURCES*/
.node--type-organization div.resource,
.node--type-project #resources .view-content>div.type-,
.field--type-link {
  position: relative;
}

.node--type-organization div.resource .box,
.node--type-project #resources .view-content .box {
  position: relative;
  margin-left: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language:before,
.node--type-person .main .file::before,
.node--type-statement .main .file::before,
.node--type-organization div.resource .box:before,
.node--type-project #resources .view-content .box:before,
.field--type-link::before,
.file::before {
  content: "";
  transform: scale(0.5);
  transform-origin: top left;
  width: 180px;
  height: 180px;
  position: absolute;
  top: -14px;
  left: -111px;
}

.resource.type-link .box::before {
  background: url(../resources-link.png);
}

.node--type-statement .main .file::before,
.resource.type-document .box::before {
  background: url(../resources-pdf.png);
}

.resource.type-video .box::before {
  background: url(../resources-media.png);
}



.text-formatted .file {
  background-image: inherit;
  padding-left: 0;
}


/*STATEMEBT*/
.node--type-statement .field--name-field-ref-file-language >.field__item {
  margin-bottom: 25px;
  position: relative;
}

.node--type-statement .main .file {
  margin: 17px 0px;
  min-height: none;
}

.node--type-statement .field--name-field-copyright-temp .field__label {
  margin-right: 10px;
}

.node--type-statement .field--name-field-copyright-temp .field__label:after {
  content: ":";
}

.node--type-statement .field--name-field-copyright-temp .field__item {
  color: #333333;
}

.node--type-statement .field--name-field-par-roster-title {
  font-size: 26px;
  color: #89AD6A;
}

.node--type-statement .main .file::before {
  left: 0px;
}

.node--type-statement .field--name-field-ref-file-language .file a {
  padding: 48px 0px 0px 107px;
  font-size: 0;
  text-indent: -9999px;
  white-space: nowrap;
}

.node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language {
  left: 108px;
  top: -41px;
  position: relative;
}

.view-display-id-publications_educational_resources .view-header,
.view-display-id-resources_educational_resources .view-header {
  margin: 3rem 0;
}

div.resource > .box,
div.resource .box p,
#page-wrapper div.resource > .box ul li {
  font-size: var(--small-font-size);
  line-height: 1.35rem;
  margin-bottom: 0rem;
}
#page-wrapper div.resource > .box ul  {
  margin-top: 1rem;
}

div.resource .box p a {
  padding: 0;
}

.field--type-link::before {
  background: url(../resources-link.png);
}

.node--type-organization div.resource,
.node--type-project #resources .view-content .resource,
.field--type-link {
  display: flex;
  margin: 60px 0px 60px 0px;
  flex-direction: column;
  min-height: 90px;
  justify-content: center;
}

.node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language,
.node--type-organization div.resource a,
.node--type-project #resources .view-content>.resource a,
.field--type-link a {
  font-size: var(--medium-font-size);
  color: var(--darkGrey);
  margin-top: 3px;
  display: block;
  font-family: "merriweather";
  line-height: 1.4;
  padding-bottom: 10px;
  margin-left: 0;
}

.node--type-project #resources .view-content>.resource a {
  display: inline-block;
}

.node--type-project #resources .view-content>.resource p a,
.node--type-organization div.resource .box .data,
.node--type-project #resources .view-content .box .data {
  font-size: var(--xsmall-font-size);
  color: var(--green);
  font-family: "Ubuntu";
}

.node--type-organization div.resource .box .data,
.node--type-project #resources .view-content .box .data {
  font-size: var(--normal-font-size);

}

.node--type-organization div.resource .box div a,
.node--type-project #resources .view-content .box div a {
  margin: 0;
}

.field--type-link a,
.attachment-template h1 a {
  color: var(--darkGrey);
}

.resource.type-link .file-size {
  display: none !important;
}

.node--type-organization div.resource .box .file-size,
.node--type-project #resources .view-content .box .file-size,
.attachment-template span {
  display: block;
  font-size: var(--small-font-size);
  color: var(--grey);
  font-style: italic;
  font-family: "Ubuntu";
}

.node--type-project #resources .file-size {
  display: block;
  margin-top: 7px;
}

.node--type-project #resources .file-size:before {
  content:"File size:";
}

.view-file-formatter {
  margin: 2rem 0;
}

.attachment-template {
  position: relative;
  display: flex;
}

.node--type-event .attachment-template .image img {
  display: none;
}

.node--type-event .attachment-template .image:before {
  content: "";
  background: url(../spritesheet.png);
  transform: none;
  background-position: -381px 0;
  width: 73px;
  height: 73px;
  position: absolute;
  top: 0px;
  left: 0px;
}

.node--type-event .attachment-template .file-data {
  margin-left: 0px;
}

.node--type-event .view-file-formatter {
  margin: 1rem 0;
}

.attachment-template .image {
  width: 90px;
  height: 90px;
  min-width: 90px;
}

.attachment-template .image img {
  max-width: 100%;
}

.attachment-template .file-data {
  width: 100%;
  margin-left: 33px;
  word-break: break-word;
}


/*ATTACHMENT DARK BG*/
.view-display-id-resources_partner .node--type-organization div.resource {
  margin: 0px 0px 70px 0px;
}
.node--type-organization div.resource a {
  color: #fff;
}
.node--type-organization div .desc p {

  color: #b3b5bf;
}

/*LIGHT ATTACHMENT solo in news e event*/

.node--type-news .field--name-field-common-attachment .view-file-formatter .attachment-template:before,
.node--type-event .field--name-field-common-attachment .view-file-formatter .attachment-template:before{
  content: "";
  background: url(../spritesheet.png);
  transform: none;
  background-position: 0px -359px;
  width: 74px;
  height: 74px;
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
}

.node--type-news .field--name-field-common-attachment .view-file-formatter .attachment-template .file-data,
.node--type-event .field--name-field-common-attachment .view-file-formatter .attachment-template .file-data {
  width: 100%;
  margin-left: 87px;
}


.node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language:before {
  display: none;
}

@media (max-width:992px) {
  .node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language:before {
    background: url(../resources-pdf.png);
  }
  .node--type-statement .field--name-field-ref-file-language >.field__item {
    margin-bottom: 0px;
  }


  /*tolto perchè il titolo non lo spinge giù*/
  /*.node--type-statement .field__item .field--name-field-fl-file,
  .node--type-statement .field--name-field-ref-file-language .file a,*/
  .node--type-statement .main .file::before {
    display: none;
  }

  .node--type-statement .field--name-field-ref-file-language>.field__item {
    min-height: 94px;
    display: flex;
    align-items: center;
    margin: 16px 0px;
  }

  .node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language:before {
    display: block;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    transform-origin: left center;
  }

  .node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language {
    top: 0;
    position: absolute;
    padding-right: 0;
    min-height: unset;
    left: auto;
    padding: 0 0 0 107px;
    margin: 0;
  }
}

@media (max-width:576px) {
  .node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language:before {
    transform: translateY(-50%) scale(0.3);
  }

  .node--type-statement .field--name-field-ref-file-language .field--name-field-fl-language {
    padding: 0 0 0 69px;
    font-size: var(--medium-font-size);
    position: absolute;
    top: 0;
  }

  .node--type-statement .field--name-field-ref-file-language>.field__item {
    min-height: 66px;
  }


  .node--type-organization div.resource a,
  .node--type-project #resources .view-content>.resource a,
  .field--type-link a,
  .file a {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .node--type-organization div.resource .box .data,
  .node--type-project #resources .view-content .box .data {
    font-size: 1.2rem;
  }

  .node--type-organization div.resource .box .file-size,
  .node--type-project #resources .view-content .box .file-size,
  .attachment-template span {
    font-size: 1rem;
    word-break: break-all;
  }

  .node--type-person .main .file::before,
  .node--type-organization div.resource .box:before,
  .node--type-project #resources .view-content .box:before,
  .field--type-link::before,
  .file::before {
    transform: scale(0.35);
    top: 0;
    left: -79px;
  }

  .node--type-organization div.resource .box,
  .node--type-project #resources .view-content .box {
    margin-left: 79px;
  }
}
