/*
Theme Name: ZERAF
Theme URI: 
Author: Eurac Research Renene
Author URI: 
Description: ZERAF custom theme
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeraf
Tags: 
*/



/* home page video animation */

:root {
  --wp--preset--shadow--natural: 0px 24.41px 50.85px 0px #2D36431F;
  -webkit-locale: 'en-US';
}

@media (max-width: 782px) {
  h1 {
    font-size: 42px !important;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h1, h2, h3, h4 {
    max-width: 90vw;
    width: 100%;
    /* background-color: green; */
   
    word-wrap: break-word;
    overflow-wrap: break-word;

    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;

    /* have to add also soft hyphens? */
    /* Demon­stra­tion Oppor­tu­ni­ties */
    /* ­ */
  }
}

.wp-block-navigation-item {
  color: var(--wp--preset--color--blu-100) !important;
}

.wp-block-navigation-submenu .wp-block-navigation-item {
  color: var(--wp--preset--color--blue-gray) !important;
  font-size: 28px !important;
}


.wp-block-breadcrumbs a {
  color: inherit;
}

.scale-scroll {
  height: 300vh;
  position: relative;
  margin-bottom: 10vh; /* 1/2 di extra scale, es height 100vh e scale 1.2 -> aggiungo margine di 10vh */
  overflow-x: clip;
  max-width: 100vw;
}

.loop-sticky {
  transform: scale(0.4);
  animation: scale-on-scroll linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 70%;

  position: sticky;
  top: 0;

  --content-opacity: 0;
  --bg-opacity: 0;
}

.scale-scroll .wp-block-cover__background {
    opacity: var(--bg-opacity);
    transition: opacity 2s ease;
}

.scale-scroll .scale-scroll-content {
    opacity: var(--content-opacity);
    transition: opacity 2s ease;
    transform: scale(0.85);
}


@keyframes scale-on-scroll {
  from {
    transform: scale(0.4);
    --content-opacity: 0;
    --bg-opacity: 0;
  }

  50% {
    transform: scale(1);
  }

  66% {
    transform: scale(1.2);
    --content-opacity: 0;
    --bg-opacity: 0;
  }

  67% {
    --content-opacity: 1;
    --bg-opacity: 0.5;
  }

  to {
    transform: scale(1.2);
    --content-opacity: 1;
    --bg-opacity: 0.5;
  }
}

/* end home page video animation */


/* home 2 col animation */

.w-reveal-animation .wp-block-column:first-child {
  animation: revealTopDow linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

.w-reveal-animation .wp-block-column:last-child {
  animation: revealBottomUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

@keyframes revealTopDow {
  from {
    transform: translateY(-200px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes revealBottomUp {
  from {
    transform: translateY(200px);
  }

  to {
    transform: translateY(0);
  }
}

/* end home 2 col animation */

.btn-w-arrow a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-w-arrow a::after {
  content: "";
  display: flex;
  width: 15px;
  min-width: 15px;
  height: 15px;
  background-image: url(assets/images/link-arrow.svg);
}

.btn-w-arrow:hover a {
  transform: scale(1.02);
}

.btn-w-arrow.blue:hover a {
  background-color: #282A60 !important;
}

.btn-w-arrow.yellow:hover a {
  background-color: #D19109 !important;
}


/* Link bg image card begin */

.img-link-card .wp-block-cover__inner-container {
  position: absolute;
}

.img-link-card .wp-block-cover__inner-container,
.img-link-card .wp-block-cover__inner-container p {
  height: 100%;
}

.img-link-card .wp-block-cover__inner-container a {
  --padding: 2rem;
  height: calc(100% - var(--padding)*2);
  padding: var(--padding);
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;

  text-decoration: none;
  text-shadow: 0px 4px 7px rgba(0, 0, 0, 0.65);
}

.img-link-card .wp-block-cover__inner-container a::after {
  content: "";
  width: 35px;
  height: 35px;
  min-width: 35px;
  background-image: url('assets/images/link-icon-35.svg');
  margin-bottom: 1rem;
}

.img-link-card:hover img {
  transform: scale(1.2);
}

.img-link-card:hover .wp-block-cover__background {
  background-color: #0D183F !important;
  opacity: 0.6 !important;
}

/* Link bg image card end */


/* home page gallery start */

.home-gallery .pgcsimplygalleryblock-grid-content {
  display: grid !important;
  aspect-ratio: 5 / 3;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "a a b c d"
    "a a e f f"
    "g h i f f";
}

.home-gallery .pgcsimplygalleryblock-grid-content > div {
  width: 100% !important;
  height: auto !important;
}

.home-gallery .pgcsimplygalleryblock-grid-content  .pgcsimplygalleryblock-grid-item-wrap img { 
  object-fit: cover;
  object-position: center;
  top: 0px !important; 
  left: 0px !important;
  width: 100% !important;
  height: 100% !important;
}

.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(1) { grid-area: a; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(2) { grid-area: b; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(3) { grid-area: c; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(4) { grid-area: d; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(5) { grid-area: e; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(6) { grid-area: f; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(7) { grid-area: g; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(8) { grid-area: h; }
.home-gallery .pgcsimplygalleryblock-grid-content  > :nth-child(9) { grid-area: i; }


@media (max-width: 640px) {
  .home-gallery .pgcsimplygalleryblock-grid-content {
    aspect-ratio: 3 / 5;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-template-areas:
      "a a b"
      "a a e"
      "g h i"
      "c f f"
      "d f f";
  }
}

/* home page gallery end */



/* Link bg image card 2 begin */

.img-link-card-2 .wp-block-cover__inner-container {
  position: absolute;
  bottom: 0;
}

.img-link-card-2 {
  height: 100%;
  min-height: 560px;
  max-width: 620px;
  margin: 0 auto;
  transition: height 1s ease-in-out;
}

.img-link-card-2:hover {
  height: calc(100% + 6rem);
}

.img-link-card-2:hover .wp-block-cover__inner-container .wp-block-group {
  background-color: #354A97 !important;
}

.img-link-card-2:hover .wp-block-cover__inner-container h5 {
  color: white !important;
}

.img-link-card-2:hover .wp-block-cover__inner-container p {
  color: #B8C0DB !important;
}

.img-link-card-2 .btns-wrap figure:last-child {
  display: none;
  transition: all .5s;
}

.img-link-card-2:hover .btns-wrap figure:last-child {
  display: block;
}

.img-link-card-2:hover .btns-wrap figure:first-child {
  display: none;
}

.img-link-card-2 .btns-wrap figure:last-child:hover {
  transform: scale(1.15);
}

.wp-block-columns:has(.img-link-card-2) {
  margin-bottom: 0;
  transition: margin-bottom 1s ease-in-out;
}

.wp-block-columns:has(.img-link-card-2:hover) {
  margin-bottom: 8rem;
}

@media (max-width: 782px) {
  .img-link-card-2:hover {
    height: auto;
  }

  .wp-block-columns:has(.img-link-card-2:hover) {
    margin-bottom: 0;
  }
}

/* Link bg image card 2 end */



/* Link bg image card 3 begin */

.link-card-3 {
  transition: all .5s ease-in-out;
}

.link-card-3:hover {
  background-color: #354A97 !important;
}

.link-card-3:hover p {
  color: #ffffff !important;
}

.link-card-3 .btns-wrap figure:last-child {
  display: none;
  transition: all .5s;
}

.link-card-3:hover .btns-wrap figure:last-child {
  display: block;
}

.link-card-3:hover .btns-wrap figure:first-child {
  display: none;
}

.link-card-3 .btns-wrap figure:last-child:hover {
  transform: scale(1.15);
}


.link-card-3 .icons-wrap {
  position: relative;
}

.link-card-3 .icons-wrap figure:last-child {
  position: absolute;
  top: 0px;
}

.link-card-3 .icons-wrap figure {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.link-card-3 .icons-wrap figure:first-child,
.link-card-3:hover .icons-wrap figure:last-child {
  opacity: 1;
  transform: none;
}

.link-card-3 .icons-wrap figure:last-child,
.link-card-3:hover .icons-wrap figure:first-child {
  opacity: 0;
  /* transform: translateX(100%); */
}

.link-card-3:hover {
  padding: 2rem !important;
}

/* Link bg image card 3 end */


/* footer */

#start-conversation-card img,
#contact-card img {
  transition: all .4s ease-in-out;
}

#start-conversation-card:hover h2 {
  color: #282A60 !important;
}

/* end footer */


/* card image animation on hover begin */

.img-card-1 {
  height: 100%;
}

.img-card-1 .img-wrap {
  position: relative;
  /* transition: all .5s ease-in-out; */
}

.img-card-1 figure {
  transition: all .5s ease;
  margin: 0;
}

.img-card-1 figure:last-child{
  position: absolute;
  top: 0;
  opacity: 0;
}

.img-card-1:hover figure:last-child ,
.wp-block-create-block-zeraf-carousel-slider:not(:hover) div[aria-current="true"] .img-card-1 figure:last-child,
.wp-block-create-block-carousel-slider:not(:hover) div[aria-current="true"] .img-card-1 figure:last-child {
  opacity: 1;
}

.img-card-1:hover figure:first-child ,
.wp-block-create-block-zeraf-carousel-slider:not(:hover) div[aria-current="true"] .img-card-1 figure:first-child,
.wp-block-create-block-carousel-slider:not(:hover) div[aria-current="true"] .img-card-1 figure:first-child {
  opacity: 0;
}

/* card image animation on hover end */

/* card integrazione con carousel */

/* height grow, used also for other cards  */
@media (min-width: 782px) {
  .hov-h-grow {
    transition: padding .5s ease-in-out;
  }

  .hov-h-grow-rel {
    transition: all .5s ease-in-out;
  }

  .hov-h-grow-rel:hover,
  .wp-block-create-block-zeraf-carousel-slider:not(:hover) div[aria-current="true"] .hov-h-grow-rel,
  .wp-block-create-block-carousel-slider:not(:hover) div[aria-current="true"] .hov-h-grow-rel {
    height: calc(100% + 3rem);
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
  }

  .hov-h-grow:hover {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hov-grow {
    transition: padding .5s ease-in-out;
  }

  .hov-grow:hover {
    padding: 2rem 2.5rem !important;
  }
}

.min-w-600 {
  min-width: min(600px, 90vw) !important;
}

.wp-block-create-block-carousel-slider:not(:hover) div[aria-current="true"] .img-card-1 {
  /* same as .img-card-1 hover */
}


.hov-bg-darkblue:hover {
  background-color: #282A60 !important;
}

.hov-bg-blue:hover {
  background-color: #354A97 !important;
}

.hov-bg-blue:hover p {
  color: #E1E4EF !important;
}

.hov-bold:hover p {
  font-weight: bold;
}

.hov-w-grow:hover {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
  /* olga: in pagina early adopters eliminare questa classse e farne una custom: la griglia con valori iniziali fissi e dopo li modifico con hover in css */
}

@media (max-width: 781px) {
  .mob-col-reverse {
    flex-direction: column-reverse;
  }
}



/* olga: todo: nella carousel card, seconda immagine deve essere della stessa altezza di immagine 1, altrimenti va sopra elementi successivi... */
.min-w-49px {
  min-width: 49px;
}


/* application card  */
.we-are-here {
  outline: 2px solid #354A97;
  outline-offset: 12px;
  margin-top: 100px !important;
}

.we-are-here::before {
  content: "We are here";
  height: 36px;
  width: 156px;
  background-color: #354A97;
  color: white;
  border-radius: 100px;

  font-family: Montserrat;
  font-weight: 600;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -100px;
  left: calc(50% - 156px/2);

  background-image: url(assets/images/here-icon.svg);
  background-repeat: no-repeat;
  background-position: 16px center;
  padding-left: 16px;
}

@media (max-width: 781px) {
  .steps {
    grid-template-columns: 1fr !important;
  }

  .steps {
    margin-top: 3rem;
  }
}



/* widget how-it-works */
/* da spostare nel suo file  */
  .zeraf-img {
    aspect-ratio: 649/701;
    width: min(649px, 90vw, 100%);
    height: auto;
    /* height: 701px; */
  }

  .zeraf-img .wp-block-cover__inner-container {
    height: 100%;
  }

  .text {
      display: inline-block;
      transform: scaleX(0);
      transition: transform 0.5s ease-in-out;
      margin-top: 4px !important;

      width: 0px;
      opacity: 0;
  }

  .badge:has(.circle:hover) .text ,
  .text.show {
      transform: scaleX(1);
      width: 100%;
      opacity: 1;
  }

  .ltr .text {
      transform-origin: left;
  }

  .rtl .text {
      transform-origin: right;
  }

  .badge.ltr:has(.circle:hover) .text {
      padding: 2px 1rem 2px 6px;
  }

  .badge.rtl:has(.circle:hover) .text {
      padding: 2px 6px 2px 1rem;
  }

  .badge.rtl:has(.circle:hover) {
      transform: translate(calc(-100% + 34px));
      /* transform: translateX(calc(-100% + 34px)) translateY(-6px); on mobile? */
  }

  .badge {
    background-color: white;
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    width: fit-content;
    min-height: 34px;
    min-width: 34px;
    border-radius: 12px;
    margin: 0 !important;
  }

  .badge:has(.circle) {
    border-radius: 20px;
  }

  .badge:has(.circle:hover) {
    z-index: 1000;
    box-shadow: 0px 8px 16px 0px #464A4B62;
  }

  .badge-btn:has(.circle:not(:hover)) {
      height: 34px;
  }

  .circle {
    background-color: #354A97;
    color: white;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 20px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 4px solid white;
  }

  .badge {
      position: relative;
      position: absolute
  }

  .badge-1 {
      top: calc(50% - 17px);
      left: calc(20% - 17px);
  }

  .badge-2 {
      top: calc(25% - 17px);
      left: calc(75% - 17px);
  }

  .badge-3 {
      top: calc(41% - 17px);
      left: calc(75% - 17px);
  }

  .badge-4 {
    top: calc(19% - 17px);
    left: calc(67% - 17px);
  }

  .badge-2.badge:has(.circle:hover) {
    min-width: min(calc(75% - 17px + 32px), 336px);
    /* max-width: calc(75% - 17px); */
  }

  .badge-3.badge:has(.circle:hover) {
    min-width: min(calc(75% - 17px + 32px), 400px);
    /* max-width: calc(75% - 17px); */
  }

  .badge-4.badge:has(.circle:hover) {
    min-width: min(calc(67% - 17px + 32px), 360px);
  }

  .pos-0 {
    padding: 10px;
  }

  .hover-here-icon {
    position: absolute;
    top: calc(25% - 17px);
    left: calc(83% - 17px);

    animation: bounce 1s infinite;
    opacity: 1;
    transition: opacity 1s;
  }

  .zeraf-img:hover .hover-here-icon {
    opacity: 0;
  }

  @keyframes bounce {
    0%, 100% {
      transform: rotate(-25deg) translateY(0);
    }
    50% {
      transform: rotate(-25deg) translateY(-5px);
    }
  }

/* filters widget  */
/* da spostare nel suo file */

    .filters {
      display: flex;
      flex-wrap: wrap;
      container-type: inline-size;
      row-gap: 24px;
      column-gap: 32px;
      margin-bottom: 30px;
      
      background-color: white;
      padding: 1rem;
      width: 100%;
      border-radius: 14px;
      max-width: 1200px;
      box-sizing: border-box;
    }

    .filter-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      flex-wrap: wrap;
    }

    .filter-label {
      min-width: 170px;
      font-weight: 600;
      font-size: 18px;
      color: #525252;
    }

    @container (max-width: 700px) {
        .w-50 {
          width: 100%;
        }
    }
    
    .w-100 {
      width: 100%;
    }

    /* TWO-STATE BUTTONS */

    .choice-group {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      width: fit-content;
      background: #F3F4F9;
      padding: 12px;
      border-radius: 10px;
    }

    .choice-button,
    .condition-button {
      border: none;
      background: transparent;
      padding: 10px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.2s;
      color: #6D7994;
      border: 1px solid transparent;

      display: flex;
      align-items: center;
      gap: 12px;
      text-align: left;

      font-family: Montserrat;
      font-weight: 500;
      font-size: 15px;
      letter-spacing: 0%;
      line-height: 24px;
    }

    .choice-button.active,
    .condition-button.active {
      background: white;
      /* color: #525252; */
      box-shadow: 0px 8px 16px 0px #464A4B26;
    }

    .choice-button:not(.active):hover,
    .condition-button:not(.active):hover {
      border: 1px solid #B8C0DB;
    }
    /* RESULTS */

    .results-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .result-column {
      padding: 20px;
      background: #EBEFFF;
      border-radius: 12px;
    }

    .result-column h2 {
      margin-top: 0;
    }

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

    .result-list .result-item {
      display: none;
      padding: 16px;
      border-radius: 8px;
    }

    .result-list .result-item.active {
      display: block;
      /* opacity: 1; */
    }

    .result-item {
      transition: all 1s ease;
    }

    #combination {
      margin-top: 20px;
      font-family: Montserrat;
      color: #666;
    }

    @media (max-width: 700px) {
      .results-grid {
        grid-template-columns: 1fr;
      }

      .filter-label {
        width: 100%;
      }
    }

    .filters .icon {
      display: block;
      width: 22px;
      height: 22px;
      background-repeat: no-repeat;
      background-position: center;
    }

    .new-icon {
      background-image: url(assets/images/new-icon.svg);
    }

    .existing-icon {
      background-image: url(assets/images/existing-icon.svg);
    }

    .increase-icon {
      background-image: url(assets/images/increase-icon.svg);
    }

    .decrease-icon {
      background-image: url(assets/images/decrease-icon.svg);
    }

    .sun-icon {
      background-image: url(assets/images/sun-icon.svg);
    }

    .wind-icon {
      background-image: url(assets/images/wind-icon.svg);
    }

    .temperature-icon {
      background-image: url(assets/images/temperature-icon.svg);
    }





/* contact form 7 */

    .wpcf7 form {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .wpcf7 p {
        width: calc(50% - 0.5rem);
        box-sizing: border-box;
    }

    .wpcf7 p:has(textarea){
        width: 100%;
    }

    .wpcf7 p .wpcf7-form-control-wrap,
    .wpcf7 p input {
      width: 100%;
      box-sizing: border-box;
    }

    .wpcf7 input, 
    .wpcf7 textarea {
        margin-top: 6px;
        min-height: 46px;
        opacity: 1;
        border-radius: 6px;
        border-width: 1px;
        border: 1px solid transparent;
        text-indent: 14px;
        background-color: #7280B666;

        font-weight: 500;
        font-size: 16px;
    }

    .wpcf7 textarea {
        width: 100%;
        font-family: Montserrat;
        padding-top: 8px;
    }

    .wpcf7 label {
      font-family: Montserrat;
      font-weight: 600;
      font-style: SemiBold;
      font-size: 16px;
      line-height: 120%;
      letter-spacing: 0%;
    }

    .dark .wpcf7 {
      color: white;
    }

    .dark .wpcf7 input, 
    .dark .wpcf7 textarea {
        color: white;
        border: none;
        outline: none;
    }

    .dark .wpcf7 input::placeholder, 
    .dark .wpcf7 textarea::placeholder {
        color: #B8C0DB;
    }

    .wpcf7 p input[type="submit"] {
        /* Auto layout */
        color: #fff;
        font-weight: 500;
        font-size: 20px;
        line-height: 24px;
        text-indent: 0;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 16px 20px;
        gap: 10px;

        height: 56px;
        max-width: 244px;

        background: var(--wp--preset--color--yellow);
        border: none;
        border-radius: 66px;

        /* Inside auto layout */
        flex: none;
        order: 1;
        flex-grow: 0;
        cursor: pointer;
    }

    .wpcf7 p input[type="submit"]::after {
      content: "";
      display: flex;
      width: 15px;
      min-width: 15px;
      height: 15px;
      background-image: url(assets/images/link-arrow.svg);
    }

    .wpcf7 p input[type="submit"]:hover {
      background-color: #D19109 !important;
    }

    .wpcf7 input:focus-visible, 
    .wpcf7 textarea:focus-visible {
        outline: 1px solid var(--wp--preset--color--azzurro);
    }

    .contact-form-7-dark input,
    .contact-form-7-dark textarea {
        color: var(--wp--preset--color--white);
        background-color: var(--wp--preset--color--dark-70);
        border-color: var(--wp--preset--color--dark-70);
    }

    @media screen and (width < 781px) {
        .wpcf7 p {
            width: 100%;
        }
    }


/* end contact form 7 */
