/**
 * @file
 * Basic Page styles
 * Use in templates\node\node--page.html.twig
 *
 *
 *
 * Header
 */


.page {

}
.page__header {
  padding-top: 2rem;
  background-color: var(--color-brand--light-orange-2);
  border-radius: 0px 40px 40px 40px;
  overflow: hidden;
}
.user-logged-in .page__header{
  border-radius: 0px 0px 40px 40px;
}
.page__header-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}
.page__header-content h1 {
  color: var(--color-neutral--dark-grey);
  font-weight: 800;
  line-height: 130%;
  margin: 1rem 0;
}
.page__header-content h1 span{
  position: relative;
  z-index: 1;
}
.page__header-content h1 strong {
  color: var(--color-brand--dark-orange-2);
}
.page__header-content h1 strong::after {
  background-color: var(--color-neutral--white);
}
.page__header-content p {
  color: var(--color-neutral--dark-grey);
}
.page__header-image {
  position: relative;
  z-index: 1;
  margin: 0 -1rem;
}
.page__header-image img {
  position: relative;
  z-index: 2;
}
.page__header-background {
  position: absolute;
  bottom: -180px;
  right: -245px;
  width: 648px;
  height: 574px;
  display: block;
  z-index: 1;
  background-image: url("../../images/hero/background.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-animation: rotating 30s linear infinite;
  -moz-animation: rotating 30s linear infinite;
  -ms-animation: rotating 30s linear infinite;
  -o-animation: rotating 30s linear infinite;
  animation: rotating 30s linear infinite;
}
@media all and (min-width: 450px) {
  .page__header-background {
    bottom: -230px;
    right: -280px;
  }
}
@media all and (min-width: 500px) {
  .page__header {
    padding-top: 4rem;
  }
  .page__header-background {
    bottom: -55%;
    right: -45%;
    width: 810px;
    height: 717.5px;
  }
}
@media all and (min-width: 600px) {
  .page__header-background {
    bottom: -70%;
    right: -35%;
  }
}
@media all and (min-width: 650px) {
  .page__header-background {
    bottom: -60%;
  }
}
@media all and (min-width: 750px) {
  .page__header-background {
    bottom: -50%;
    right: -30%;
  }
  .page__header-content {
    max-width: 600px;
  }
}
@media all and (min-width: 850px) {
  .page__header {
    padding-top: 0;
  }
  .page__header-content {
    margin-top: 2rem;
    padding-bottom: 5rem;
  }
  .page__header-wrapper {
    display: grid;
    grid-template-columns: calc(55% - 1rem) calc(55% - 1rem);
    gap: 2rem;
  }
  .page__header-background {
    width: 850px;
    height: 950px;
    bottom: -100%;
    right: -40%;
  }
  .page__header-image {
    align-self: end;
  }
  .page__header-image {
    height: 100%;
  }
  .page__header-image picture {
    height: 100%;
    display: block;
  }
  .page__header-image img {
    height: 100%;
    object-fit: cover;
  }
  .page__header-image--object-position-left img {
    object-position: left;
  }
  .page__header-image--object-position-right img {
    object-position: right;
  }

}
@media all and (min-width: 900px) {
  .page__header-wrapper {
    grid-template-columns: calc(50% - 1rem) calc(60% - 1rem);
  }
}
@media all and (min-width: 1000px) {
  .page__header-wrapper {
    grid-template-columns: calc(55% - 1rem) 55%;
  }
  .page__header-image {
    margin: 0;
  }
  .page__header-content h1 {
    font-size: 2.813rem;
  }
  .page__header-content h1 strong::after {
    top: 50%;
  }
}
@media all and (min-width: 1100px) {
  .page__header-wrapper {
    grid-template-columns: calc(50% - 1rem) 60%;
  }
}
@media all and (min-width: 1200px) {
  .page__header-background {
    width: 976.194px;
    height: 1098.218px;
  }
}
@media all and (min-width: 1500px){
  .page__header {
    position: relative;
    min-height: 420px;
  }
  .page__header-image {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .page__header-background {
    right: -25%;
  }
  .page__header-image {
    height: auto;
  }
  .page__header-image picture {
    height: auto;
  }
  .page__header-image img {
    height: auto;
    object-fit: unset;
  }
}

/**
 * Background animation
 */

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/**
 * Shape
 */


@media all and (min-width: 850px) {
  .page-with-shape {
    position: relative;
    z-index: 1;
  }
  .page-with-shape::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    right: 0;
    top: 50%;
    width: 276px;
    height: 701px;
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../../images/decoration/shape.svg");
  }
  .page-with-shape--legs::after {
    top: 64%;
  }
  .page-with-shape--advices::after {
    top: 65%;
    width: 338px;
    height: 849px;
  }
}
