/*

Plugin Name: SE Raccolta
General Stylesheet

*/

body .row {
  margin-left: -20px;
  margin-right: -20px;
  width: auto;
  min-width: 100%;
}

body .col {
  padding-left: 20px;
  padding-right: 20px;
}

/* black ribbon row */

body .black-ribbon {
  background: #000;
  color: #FFF;
  margin-top: 60px;
  margin-bottom: 60px;
}

body .black-ribbon a.button {
  color: #FFF;
  margin-top: 10px;
  font-size: 0.8em;
  border: 1px solid #FFF;
  line-height: 1;
  text-transform: lowercase;
}

.black-ribbon > .row {
  max-width: 1470px;
  margin: 0 auto;
  padding: 30px 40px;
  width: 100%;
  align-items: center;
}

.black-ribbon .fa {
  font-size: 1.5em;
}

.black-ribbon h2,
.black-ribbon h3,
.black-ribbon p {
  margin: 0;
  line-height: 1.2;
}

.black-ribbon h2 {
  font-weight: 700;
}

.black-ribbon h3 {
  font-weight: 400;
}

.black-ribbon .location p {
  font-size: 1.2em;
}

.black-ribbon .location p:first-child {
  font-size: 1.7em;
  text-transform: uppercase;
  font-weight: bold;
}

p.short-description {
  margin-bottom: 0;
}

h1.campaign-title {
  text-transform: uppercase;
  font-size: 1.35em;
  font-weight: bold;
}

/* Archive Campaign */

.archive-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.archive-content article {
  padding: 15px;
  width: 50%;
}

.list .archive-content article {
  width: 100%;
}

.archive-content article a,
.archive-content article img {
  display: block;
  width: 100%;
}

.archive-content article a.button {
  display: inline-block;
  width: auto;
}

article .inside-campaign {
  position: relative;
}

article .entry-data {
  position: absolute;
  width: 100%;
  min-height: 40%;
  padding: 30px;
  background: rgba(0,0,0,0.7);
  color: #FFF;
  bottom: 0;
}

article.open .entry-data {
  background: rgba(255,255,255,0.9);
  color: #000;
}

article .entry-data p,
article .entry-data h2,
article .entry-data h3 {
  margin: 0;
  font-size: 1em;
}

.location-container p:first-child {
  text-transform: uppercase;
}

.entry-data {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: space-between;
}

.entry-data .location-container,
.entry-data .collected-container {
  width: 50%;
}

.entry-data .location-container {
  font-weight: bold;
}

.entry-data .collected-container {
  text-align: right;
}

.entry-data .goal-container {
  width: 100%;
}

.entry-data .goal-container h2,
.entry-data .collected-container h2 {
  font-weight: bold;
}

.entry-data .collected-container h3 {
  font-weight: 300 !important;
  color: #c8ae48;
}

article.open .entry-data .collected-container h3 {
  color: #7eb22e;
}

.inside-campaign + .campaign-title {
  font-size:1.05em;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 5px;
  display: inline-block;
  position: relative;
}

.inside-campaign + .campaign-title a {
  position: relative;
  display:inline-block;
  vertical-align: middle;
}

.inside-campaign + .campaign-title a::before {
  content: "";
  width: 60px;
  height: 2px;
  background: #000;
  margin: auto 15px auto auto;
  display: inline-block;
  vertical-align: middle;
}

@media screen and (min-width: 1180px) {
  .archive-content article {
    width: 25%;
  }
  .inside-campaign + .campaign-title {
    font-size: 1em;
  }
  .inside-campaign + .campaign-title a::before {
    display: none;
  }
  .archive-content article .entry-data {
    padding: 15px;
    min-height: 0;
    font-size: 0.9em;
  }
  .entry-data .location-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .entry-data .collected-container {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 0;
  }
  .entry-data .goal-container {
    display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .archive-content article {
    font-size: 0.9em;
  }
  .inside-campaign + .campaign-title a::before {
    width: 30px;
  }
}

@media screen and (max-width: 1180px) {
  .black-ribbon {
    font-size: 0.85em;
  }
  .black-ribbon > .row {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .archive-content article {
   width: 100%;
  }
  .black-ribbon {
    font-size: 0.75em;
  }
  .black-ribbon > .row > .col + .col {
    margin-top: 20px;
  }
}

@media screen and (max-width: 470px) {
  article .entry-data {
    padding: 20px;
  }
  article .entry-data p,
  article .entry-data h2,
  article .entry-data h3,
  .inside-campaign + .campaign-title {
    font-size: 0.85em;
  }
  .inside-campaign + .campaign-title a::before {
    width: 30px;
  }
}

/* Single */

.raccolta-terms {
  margin-bottom: 10px;
}

.term-a {
  position: relative;
  padding-right: 100px;
  color: #000;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  font-size: 1em;
  text-transform: lowercase;
}

.term-a::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  height: 2px;
  background: #000;
  width: 85px;
  margin: auto;
  right: 0;
}

.term-a:hover,
.term-a:focus,
.term-a:active {
  color: #000;
}

.term-a + .term-a {
  margin-left: 5px;
}

.raccolta-back {
  position: absolute;
  right: 0;
  top: 2em;
}

.back-a::after {
  font-family: 'GeneratePress';
  content: '\f105';
  margin-left: 10px;
}

@media screen and (max-width: 768px) {
  .raccolta-back {
    position: static;
    text-align: right;
    font-size: 0.9em;
  }
  .raccolta-terms {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 768px) {
  .raccolta-back {
    margin-top: 1em;
  }
}

/* Archive Project */

.archive-content article.type-project {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 30px;
}

.archive-content article.type-project .inside-project {
  width: calc(67% - 120px);
  min-height: 400px;
  max-height: 500px;
}

.archive-content article.type-project .entry-data {
  position: static;
  width: 33%;
  background: transparent;
  color: #000;
  text-align: right;
  padding: 15px;
}

.archive-content article.type-project .entry-summary {
  margin: 0;
}

article.type-project .entry-data p,
article.type-project .entry-data h2,
article.type-project .entry-data h3,
article.type-project .entry-meta {
  width: 100%;
}

article.type-project .entry-data h2 {
  margin-bottom: 1em;
  font-weight: bold;
}

article.type-project .entry-data h3 {
  text-transform: lowercase;
}

article.type-project .entry-meta {
  position: relative;
}

article.type-project .entry-meta::before {
  content: "";
  height: 2px;
  background: #000;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  text-align: right;
  z-index: 0;
}

article.type-project .entry-meta h3 {
  background: #FFF;
  padding-left: 20px;
  display: inline-block;
  position: relative;
  width: auto;
}

.archive-content article.type-project .read-more {
  display: none;
}

/* Single Project custom */

.project-thumbnail {
  margin-top: 30px;
  position: relative;
  background: #000;
  z-index: 1;
  overflow: hidden;
  height: 400px;
}

.project-thumbnail img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.project-thumbnail > img {
  object-fit: contain;
}

.project-thumbnail-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(5px);
  opacity: 0.7;
  z-index: -1;
}

.project-thumbnail-blur img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Rewards */

#rewards {
  padding-top: 30px;
  width: 100%;
}

#rewards h4 {
  text-transform: uppercase;
}

#rewards .slider {
  padding-top: 60px;
  padding-left: 20px;
  padding-right: 20px;
}

body #rewards .slick-arrow {
  top: 0;
  padding: 0;
}

body #rewards .slick-next {
  margin-right: 60px;
}

body #rewards .slick-prev {
  margin-left: 60px;
}

#rewards .single-item {
  padding: 10px;
}

#rewards .single-item-inner {
  border: 2px solid #000;
  padding: 20px;
}

#rewards img {
  width: 100%;
}

#rewards .info .button {
  width: 100%;
}

.reward-content {
  margin-top: 10px;
}

.reward-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.5s ease-in-out;
}

.closed .reward-actions {
  justify-content: center;
}

.reward-button.info {
  width: calc(50% - 5px);
}

.reward-button.donate {
  width: calc(50% - 5px);
  position: relative;
}

.reward-button.info:first-child:last-child,
.reward-button.donate:first-child:last-child {
  width: 100%;
}

.popup .reward-button.donate {
  width: 50%;
  margin: 0 auto;
}

.reward-button.donate .button {
  width: 100%;
}

.reward-button.donate .button.added {
  position: relative;
  z-index: -1;
}

.reward-button.donate .added_to_cart {
  position: relative;
  height: 100%;
  z-index: 1;
  position: absolute;
  height: 100%;
  z-index: 1;
  display: inline-block;
  width: 100%;
  top: 0;
  left: 0;
  background: #FFF;
  border: 1px solid #000;
  font-weight: bold;
}

/* Rewards info popup */

.reward-info.popup {
  text-align: center;
}

.reward-info.popup img {
  width: 200px;
  margin-bottom: 20px;
}

/* Related Posts / Projects? */

.related-wrapper {
  margin-top: 60px;
}

.inside-related > h4 {
  text-transform: uppercase;
}

.related_posts .archive-content article {
  width: 25%;
}

.related_projects .archive-content article {
  width: 100%;
}

.related_posts .archive-content article .entry-data {
  width: calc(100% - 30px);
  bottom: 15px;
  background: rgba(0,0,0,0.7);
}

.related_posts .archive-content article a,
.related_posts .archive-content article a:hover,
.related_posts .archive-content article a:visited,
.related_posts .archive-content article a:active,
.open .related_posts .archive-content article a,
.open .related_posts .archive-content article a:hover,
.open .related_posts .archive-content article a:visited,
.open .related_posts .archive-content article a:active {
    color: #FFF;
}

.inside-related {
  position: relative;
  height: 100%;
}

.related-title {
  font-weight: bold;
}

@media screen and (max-width: 1470px) {
  .stretched .inside-related {
    padding-left: 40px;
    padding-right: 40px;
  }
  .entry-title-summary + .button {
    margin-top: 30px;
  }
}

@media screen and (max-width: 1180px) {
  .related_posts .archive-content article {
    width: 50%;
  }
  .related-wrapper {
    margin-top: 45px;
  }
  .archive-content article.type-project .entry-data {
    width: 41%;
  }
}

@media screen and (max-width: 960px) {
  .archive-content article.type-project {
    flex-wrap: wrap;
  }
  .archive-content article.type-project:last-child {
    margin-bottom: 0;
  }
  .archive-content article.type-project .entry-data {
    order: -1;
    margin-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    text-align: left;
  }
  .page .archive-content article.type-project .entry-data,
  .archive .archive-content article.type-project .entry-data {
    order: 0;
    margin-top: 30px;;
  }
  .archive-content article.type-project + article.type-project::before {
    content: '';
    top: -40px;
    left: 15px;
    width: 60%;
    background: #000;
    height: 2px;
    position: absolute;
  }
  .archive-content article.type-project .inside-project,
  .archive-content article.type-project .entry-data {
    width: 100%;
    min-height: 0;
    max-height: auto;
  }
  article.type-project .entry-data h2 {
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .archive-content article.type-project .entry-summary {
    text-align: left;
  }
  article.type-project .entry-meta h3 {
    padding-left: 0;
    padding-right: 20px;
  }
}

@media screen and (max-width: 768px) {
  .stretched .inside-related {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 560px) {
  .related_posts .archive-content article {
    width: 100%;
  }
}

/* Donors */

.level-title {
  text-transform: uppercase;
  font-size: 1.2rem;
}

.popup .level-title {
  font-size: 2rem;
}

.angel-names .name {
  display: block;
  line-height: 1.4;
  font-size: 0.95em;
}

.donors-all .row {
  margin-bottom: 30px;
}

/* Afli Redirect Popup */

.afli-overlay-trigger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.afli-yes,
.afli-no {
  cursor: pointer;
}

.buy-button-wrapper {
  transition: 0.5s ease-in-out;
}

.afli-redirect-container ~ .buy-button-wrapper,
.afli-redirect-container + .single-item-inner .reward-actions {
  opacity: 0.3;
}

.redirecting span {
  animation: fadeIn 1s infinite alternate;
}

.redirecting span:nth-child(2) {
  animation-delay: 0.36s;
}

.redirecting span:nth-child(3) {
  animation-delay: 0.72s;
}

body .choice-button.active .so-widget-sow-button .ow-button-base .ow-button-hover {
  background-color: var(--wc-green) !important;
}

body .choice-button.active .so-widget-sow-button .ow-button-base .ow-button-hover span {
  color: #FFF !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

/* Slick Slider */

.slider.multiple-items {
  margin-bottom: 75px;
  position: relative;
}

.slider.multiple-items .single-item {
  opacity: 0.3;
  transition: opacity 0.5s ease-in-out;
}

.slider.multiple-items[data-centermode="false"] .single-item,
.slider.multiple-items .single-item.slick-current {
  opacity: 1;
}

body .slick-arrow {
  position: absolute;
  background: transparent;
  color: #000;
  font-size: 0;
  top: 100%;
  padding: 20px 0 0 0;
}

body .slick-arrow:hover,
body .slick-arrow:active,
body .slick-arrow:visited {
  background: transparent;
  color: #000;
}

.slick-arrow::before,
.slick-arrow::after {
  font-size: 1.5rem;
  font-family: 'GeneratePress';
  font-size: bold;
}

.slick-prev::before {
  content: "\f104";
}

.slick-next {
  right: 0;
  margin-right: 100px;
}
.slick-prev {
  left: 0;
  margin-left: 100px;
}

@media screen and (min-width: 1471px) {
  .slick-next {
    right: calc((100vw - 1470px)/2);
  }
  .slick-prev {
    left: calc((100vw - 1470px)/2);
  }
}

@media screen and (max-width: 768px) {
  .slick-next {
    margin-right: 20px;
  }
  .slick-prev {
    margin-left: 20px;
  }
}

.slick-next::after {
  content: "\f105";
}
