@import url(../templates/banner_home.css);
@import url(../templates/services.css);
@import url(../templates/how_it_works.css);
@import url(../templates/testimonials.css);
@import url(../templates/banner_investiment.css);
@import url(../templates/inovations.css);
@import url(../templates/instagram.css);

/* WHO IS FOR - HOME */
.who_is_for {
  padding: 6.875rem 15.62rem 6rem;
	position: relative;
	
	&:before {
		content: "";
		
		position: absolute;
		top: -100px;
		right: 0;
		
		background: url(/wp-content/uploads/2026/01/top_risomed.svg) no-repeat;
		
		width: 1200px;
		height: 400px;
	}

  & > div {
    gap: 6.875rem;
  }

  & .content_left {
    max-width: 26.87rem;

    & h1 {
      color: var(--gray-500);
      margin-bottom: 4.687rem;
    }

    & .boxes {
      margin-left: 3.625rem;

      display: flex;
      flex-direction: column;
      gap: 1.375rem;

      & > div {
        position: relative;
        padding-left: 1.5rem;

        cursor: pointer;

        & h3 {
          & i {
            display: none;
          }
        }

        & .description {
          display: none;
        }

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;

          background: transparent;

          width: 3px;
          height: 110px;
        }

        &.active {
          & h3 {
            display: flex;
            align-items: center;
            justify-content: space-between;

            margin-bottom: 1.25rem;

            /* opacity: 1;
            transform: scale(1); */

            & i {
              display: block;
            }
          }

          & .description {
            display: flex;
            flex-direction: column;
            gap: 1rem;

            & p {
              font-size: 1rem;
              color: var(--gray-500);
            }
          }
        }
      }
    }

    #for_companies {
      &.active {
        & h3 {
          background-image: var(--orange);
          background-clip: text;
          -webkit-background-clip: text;
          color: transparent;
        }

        &::before {
          background: var(--orange);
        }
      }
    }

    #for_collaborators {
      &.active {
        & h3 {
          background-image: var(--pink);
          background-clip: text;
          -webkit-background-clip: text;
          color: transparent;
        }

        &::before {
          background: var(--pink);
        }
      }
    }
  }

  & .content_right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;

    position: relative;
    min-height: 400px;

    & > div {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.5s ease-in-out;
      pointer-events: none; /* Importante para não interceptar cliques */

      & img {
        margin-bottom: 2.5rem;
      }
    }

    & > div.active {
      position: relative; /* Volta ao fluxo normal quando ativo */
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    & > div.orange {
      --color-title: var(--orange);
    }

    & > div.pink {
      --color-title: var(--pink);
    }

    & .box_content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2.75rem;

      & h3 {
        font-weight: 500;
        color: var(--gray-500);

        max-width: 36rem;

        & span {
          background-image: var(--color-title);
          background-clip: text;
          -webkit-background-clip: text;
          color: transparent;
        }
      }

      & .button {
        flex: 1;
        min-width: 14.75rem;
      }
    }
  }
}

.who_is_for_content {
  padding-bottom: 5.625rem;

  & > div {
    position: relative;
  }

  & > div > div {
    /* display: none; */

    & > .row > div:nth-child(1) {
      border-right: 1px solid #0000001a;

      & img {
        padding: 2.5rem 3.25rem 2.125rem;
      }

      & > div {
        padding-left: calc(3.375rem + 3.375rem);
        padding-right: calc(3.375rem + 3.375rem);

        display: flex;
        flex-direction: column;
        gap: 3.875rem;

        & div {
          & h3 {
            background-image: var(--color-select);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
          }
        }
      }
    }

    & h3 {
      color: var(--gray-500);

      & span {
        font-weight: 700;
        font-size: 6.25rem;

        display: block;

        background-image: var(--orange);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;

        margin-left: -1.25rem;
      }
    }

    & h2 {
      & span {
        background-image: var(--pink);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
      }
    }

    & .box_content:nth-child(1) {
      border-bottom: 1px solid #0000001a;
    }

    & .box_content {
      padding: 2.5rem 0 4.75rem 4rem;

      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }

    & .buttons {
      padding-top: 5rem;

      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.25rem;
    }
  }

  & > div > div.active {
    /* display: block; */
  }

  & .for_companies {
    --color-select: var(--orange);
  }

  & .for_collaborators {
    & > .row > div:nth-child(1) {
      & > div {
        gap: 4.5rem;
        & div {
          & h3 {
            background-image: none;
            background-clip: initial;
            -webkit-background-clip: initial;
            color: var(--gray-500);

            & span {
              font-size: 2rem;

              background-image: var(--pink);
              background-clip: text;
              -webkit-background-clip: text;
              color: transparent;

              margin-left: initial;
            }
          }
        }
      }
    }
  }

  .for_companies,
  .for_collaborators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
  }

  .for_companies.active,
  .for_collaborators.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}


@media (max-width: 1400px) {
  .who_is_for {
    padding-inline: 4.375rem;

    & .content_right {
      & .box_content {
        & h3 {
          font-size: 1.25rem;
        }
      }
    }
  }

  .who_is_for_content {
    & > div > div {
      & h3 {
        font-size: 1.5rem;

        & span {
          font-size: 5rem;
        }
      }

      & h2 {
        font-size: 2.35rem;
      }
    }
  }
}

@media (max-width: 768px) {
  .who_is_for {
    padding: 3.125rem 1.25rem;
    text-align: center;
	  
	&:before {
		content: none;
	
	}

    & > div {
      gap: 2.5rem;
    }

    & .content_left {
      & h1 {
        margin-bottom: 0;
      }

      & .boxes {
        display: none;
      }
    }

    & .content_right {
      max-width: 100%;

      & .box_content {
        flex-direction: column;
      }
    }
  }

  .who_is_for_content {
    & .for_companies {
      padding: 0 1.25rem;
      text-align: center;

      & > .row > div:nth-child(1) {
        border-right: none;
        margin-bottom: 5.25rem;

        & > div {
          padding: 0;
          display: flex;
          flex-direction: column;
          gap: 3.875rem;
        }

        & img {
          padding: 0;
          padding-bottom: 1.5rem;
        }
      }

      & h3 {
        & span {
          font-size: 3.375rem;
        }
      }

      & .box_content:nth-child(1) {
        border-bottom: none;
        margin-bottom: 5.875rem;
      }

      & .box_content {
        padding: 0;

        & img {
          order: 1;
        }

        & h3 {
          order: 2;
        }
      }

      & .buttons {
        flex-direction: column;
        gap: 0.875rem;
      }
    }
  }

  .custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 280px;
  }

  .custom-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    outline: none;
  }

  .custom-select:hover {
    border-color: #4a90e2;
  }

  .custom-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  }

  .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    transition: transform 0.3s ease;
  }

  .custom-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Estilo das opções (Firefox) */
  .custom-select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
  }

  .custom-select option:hover {
    background-color: #f5f5f5;
  }
}
