/*
Theme Name:     Consumago
Theme URI:      
Description:    Generatepress child theme.
Author:         Keyformat
Author URI:     
Template:       generatepress
Version:        0.1.0
*/

/* ------------------------------------------------------------------------ */

/* Consumago Styles - [Table of Contents]

* 1. Components
* 2. Header
* 3. Menu
* 4. Hero
* 5. Partners
* 6. Services
* 7. Activities
* 8. Contacts
* 9. Footer

* ------------------------------------------------------------------------ */

/* ------------------------------------------------------------------------ */
/* 1. Components */
/* ------------------------------------------------------------------------ */

/* Swiper Slider */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activities__row.desktop .swiper-slide .activity__content {
  display: none;
}

.activities__row--mobile.mobile .swiper-slide .activity__content {
  display: block;
}

.swiper-pagination .swiper-pagination-bullet {
  opacity: 1 !important;
  width: 35px;
  background-color: var(--white);
  margin: 0 6px !important;
  border-radius: 999px;
  height: 2px;
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  height: 5px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--text-primary) !important;
}

.swiper-button-next {
  right: 0 !important;
}

.swiper-button-prev {
  left: 0 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px !important;
}

/* Triangle Shape*/
.triangle-shape {
  position: absolute;
}

.triangle-shape--left {
  left: 0;
  bottom: -179.27px;
}

.triangle-shape--right {
  right: 0;
  top: -97px;
}

.activities__loader,
.activities__loader--mobile {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.activities__loader--mobile {
  bottom: -32px;
}

/* Loader */
.wpcf7-spinner {
  background-color: unset;
  opacity: 1;
  width: unset;
  height: unset;
  border-radius: unset;
}

.loader,
.wpcf7-spinner::before {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(farthest-side, #382F63 94%, #0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%, #382F63);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #382F63 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #382F63 0);
  animation: l13 1s infinite linear;
}

.wpcf7-spinner::before {
  display: block;
  position: static;
  top: unset;
  left: unset;
  height: unset;
  transform-origin: unset;
}

.loader--yellow {
  width: 32px;
  background:
    radial-gradient(farthest-side, #D0EF79 94%, #0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%, #D0EF79);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #D0EF79 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #D0EF79 0);
}

@keyframes l13 {
  100% {
    transform: rotate(1turn)
  }
}

.page:not(.home) .site.grid-container,
.error404 .site.grid-container {
  max-width: 100%;
  margin: unset;
  padding-top: 4rem;
  padding-inline: 4rem;
}

@media screen and (min-width: 1025px) {

  .page:not(.home) .site.grid-container,
  .error404 .site.grid-container {
    padding-top: 18rem;
  }
}

.page:not(.home) .site .site-content,
.error404 .site .site-content {
  max-width: 1120px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------------ */
/* 2. Header */
/* ------------------------------------------------------------------------ */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  padding-inline: 4rem;
  background-color: transparent;
  background-color: var(--white);
  transition: all 0.5s ease;
  box-shadow: var(--box-shadow);
  z-index: 999;
}

.nav-open header.site-header {
  box-shadow: unset;
}

.site-header .inside-header {
  width: 100%;
}

.site-header .inside-header .site-logo {
  display: none;
}

.site-header .inside-header .site-branding-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
}

.site-header .inside-header .kf-toggle {
  flex-grow: unset;
  display: block !important;
}

.site-header .inside-header .main-title {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
  width: 8.8rem;
  height: 7.2rem;
  margin: auto;
}

.site-header .inside-header .main-title a {
  padding-top: 80%;
  max-width: 88px;
  width: 100%;
  background-image: url("/wp-content/uploads/2024/04/Consumago_logo.svg");
  position: absolute;
  height: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-indent: -999px;
}

@media screen and (min-width: 1025px) {
  .admin-bar header.site-header {
    top: 3.2rem;
  }

  header.site-header svg line {
    transition: 0.5s ease;
    stroke: var(--text-primary);
  }

  .admin-bar.nav-open .main-navigation.sub-menu-right {
    transform: translateY(32px);
  }

  .main-navigation .inside-navigation::before {
    content: '';
    display: block;
    position: absolute;
    top: -1px;
    left: 4rem;
    width: 96px;
    height: 85px;
    background-image: url("data:image/svg+xml,%3Csvg width='76' height='93' viewBox='0 0 76 93' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L75.91 92.81V0H0Z' fill='white'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 2;
  }
}

.nav-open main,
.nav-open .site-footer {
  opacity: 0.5;
  transform: translateY(144px);
  transition: all 0.5s linear;
}

.nav-close main,
.nav-close .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s linear;
}

header.site-header .inside-header {
  padding: 0;
  max-width: var(--global-max-width);
}

/* ------------------------------------------------------------------------ */
/* 3. Menu */
/* ------------------------------------------------------------------------ */

.kf-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation {
  margin-top: 0 !important;
  z-index: 10;
}

.main-navigation .menu-toggle {
  display: none;
}

.main-navigation .inside-navigation {
  position: relative;
  display: block;
  padding-inline: 4rem;
  max-width: calc(var(--global-max-width) + 80px);
  margin: auto;
}

.main-navigation.sub-menu-right {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  height: calc(100vh - 100px);
  transform: translateY(calc(-100% - 100px));
  background-color: var(--text-primary) !important;
  pointer-events: none;
  overflow-y: auto;
  z-index: 10;
}

.nav-open .main-navigation.sub-menu-right {
  transform: translateY(0);
  transition: all 0.5s ease-in-out;
  pointer-events: all;
}

.nav-close .main-navigation.sub-menu-right {
  transform: translateY(calc(-100% - 100px));
  transition: all 0.5s ease-in-out;
}

.nav-open #close-nav-icon,
.nav-close #open-nav-icon {
  display: inline-block;
}

.nav-open #open-nav-icon,
#close-nav-icon {
  display: none;
}

.main-navigation.sub-menu-right ul {
  display: block !important;
  padding-top: 6rem;
  padding-left: 15%;
}

.main-navigation.sub-menu-right ul li {
  padding: 0;
  margin-bottom: 4.4rem;
}

.main-navigation.sub-menu-right ul li::before {
  display: none;
}

.main-navigation.sub-menu-right ul li a {
  padding: 0;
  font-family: var(--font-heading);
  font-size: 6.4rem;
  font-weight: 700;
  color: var(--bg-primary) !important;
}

.main-navigation.sub-menu-right ul li a:hover {
  color: var(--white) !important;
}

/* ------------------------------------------------------------------------ */
/* 4. Hero */
/* ------------------------------------------------------------------------ */

.hero__slider {
  height: 100vh !important;
}

.hero__wrapper {
  width: 100%;
  height: 100%;
}

.hero__slider .swiper-slide::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.hero__slider .swiper-pagination {
  bottom: 5rem !important;
}

.hero__text {
  position: absolute;
  bottom: 9.6rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 50%;
  color: var(--white);
  text-align: center;
  z-index: 2;
}

.hero__text p {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------ */
/* 5. Partners */
/* ------------------------------------------------------------------------ */

.partners__swiper {
  padding-bottom: 3.2rem !important;
}

.partners__swiper .swiper-pagination {
  bottom: 0 !important;
}

.partners__swiper .azienda img {
  border-radius: 16px;
}

/* ------------------------------------------------------------------------ */
/* 6. Services */
/* ------------------------------------------------------------------------ */

.service {
  position: relative;
  max-width: 33.3% !important;
}

@media screen and (min-width: 1025px) {
  .service {
    min-height: 250px;
  }
}

.service.negative {
  margin-top: -5rem;
}

.service:nth-child(odd) {
  margin-right: unset !important;
  margin-left: auto !important;
}

.service:nth-child(even) {
  max-width: calc(33.3% + 80px) !important;
  padding-left: 80px;
  margin: unset !important;
}

@media screen and (min-width: 1025px) {
  .service::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 0;
    display: block;
    width: 340px;
    height: 363px;
    background-image: url("/wp-content/uploads/2024/04/Balloon_over.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    /* transform: scale(0); */
    transform-origin: center;
    transition: transform 0.4s ease;
  }

  .service:nth-child(odd)::before {
    left: -8rem;
  }

  /* .service:hover::before {
    transform: scale(1);
  } */
}

/* ------------------------------------------------------------------------ */
/* 7. Activities */
/* ------------------------------------------------------------------------ */

.activities__row {
  display: flex !important;
  align-items: center;
}

.activities__row>div:first-child {
  width: 45%;
}

.activities__row>div:last-child {
  width: 55%;
}

.activities__tax .tax {
  cursor: pointer;
}

.activities__tax .tax.active {
  color: var(--bg-primary);
}

.activities__posts {
  background-color: var(--bg-primary);
  padding: 6rem 4rem 2rem 4rem;
  border-radius: 7.6rem;
  min-height: 550px;
}

.activity__slider {
  padding-bottom: 6rem !important;
}

.activity__slider img {
  margin: auto;
  max-width: 430px;
  border-radius: 31px;
}

.activity__slider .swiper-pagination {
  bottom: 0;
}

/* .activity__slider .swiper-pagination .swiper-pagination-bullet,
.partners__swiper .swiper-pagination .swiper-pagination-bullet {
  width: 35px;
  margin: 0 6px !important;
} */

/* Lightbox */
.lightbox__content .image::after,
.lightbox__close {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.lightbox__close {
  cursor: pointer;
  position: absolute;
  top: -1.2rem;
  right: -0.8rem;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg id='icon_close' transform='translate(-1195 -211)'%3E%3Ccircle id='Ellisse' cx='24' cy='24' r='24' transform='translate(1195 211)' fill='%23d1ed7e'/%3E%3Cg id='icon_balloon_close' transform='translate(20.75 -15.188)'%3E%3Cg id='Raggruppa_116' data-name='Raggruppa 116' transform='translate(1190.25 243.341)'%3E%3Cline id='Linea_5' data-name='Linea 5' x2='16' y2='15.693' transform='translate(0 0)' fill='none' stroke='%23382e62' stroke-linecap='round' stroke-width='2'/%3E%3Cline id='Linea_6' data-name='Linea 6' x1='16' y2='15.693' transform='translate(0 0)' fill='none' stroke='%23382e62' stroke-linecap='round' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
  transition: all 0.4s ease;
}

@media screen and (min-width: 1025px) {
  .lightbox__close:hover {
    transform: scale(1.05);
  }
}

.lightbox {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #D1EF79F2;
  overflow-y: auto;
  z-index: 999999;
  transition: all 0.4s ease;
}

.lightbox-open .lightbox {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.lightbox__content .image {
  position: relative;
  height: calc(100% - 3rem);
  border-radius: 31px;
}

.lightbox__content .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31px;
}

.lightbox .gallery__wrapper::before,
.lightbox .gallery__wrapper::after,
.lightbox__content .content::before {
  content: '';
  display: block;
  position: absolute;
}

.lightbox .gallery__wrapper::before,
.lightbox__content .content::before {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  border-radius: 31px;
  z-index: -1;
}

.lightbox .gallery__wrapper::before {
  height: calc(100% - 3rem);
  bottom: 0;
  left: -3rem;
}

.lightbox .gallery__wrapper::after {
  left: 3rem;
  bottom: -56.5px;
  width: 65.5px;
  height: 57.5px;
  background-image: url("data:image/svg+xml,%3Csvg width='66' height='58' viewBox='0 0 66 58' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L65.4949 57.5V0H0Z' fill='white'/%3E%3C/svg%3E%0A");
}

.lightbox__content .content {
  position: relative;
  padding-right: 3rem;
  color: var(--white);
  padding: 5rem 3.2rem 3.2rem 3.2rem;
  border-radius: 31px;
  background: var(--text-primary);
  min-height: 410px;
}

.lightbox__content .content::before {
  top: -3rem;
  right: -3rem;
}

.lightbox__content .periodo {
  width: fit-content;
  border-bottom: 1px solid var(--bg-primary)
}

.lightbox__content p {
  margin-bottom: 0;
}

.lightbox .mw {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 8%;
  padding: 3rem 3rem 0 3rem;
}

.lightbox .gallery__slider {
  max-width: 470px;
}

.lightbox .gallery__wrapper {
  position: relative;
}

.lightbox .content .title {
  position: relative;
  padding-bottom: 2rem;
}

.lightbox .content .title::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33.3%;
  height: 1px;
  background-color: var(--bg-primary);
}

.gallery__slider .swiper-button-next,
.gallery__slider .swiper-button-prev {
  background: unset !important;
}

.gallery__slider .swiper-button-next::after,
.gallery__slider .swiper-button-prev::after {
  color: var(--white);
}

/* Mobile */
.activities__tax--mobile {
  cursor: pointer;
}

.activities__content--mobile {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.7s ease;
}

.activities__tax--mobile.open .activities__content--mobile {
  opacity: 1;
  max-height: 1000px;
  padding: 3rem 4rem;
}

.activities__tax--mobile.open .tax--mobile {
  color: var(--bg-primary);
}

.activities__tax--mobile .activity__slider {
  width: calc(100% + 8rem);
  margin-left: -4rem;
  padding-inline: 4rem;
  padding-bottom: 3.2rem !important;
}

.activities__tax--mobile .activity__slider .swiper-pagination {
  bottom: -0.8rem !important;
}

.activity__slider .swiper-pagination .swiper-pagination-bullet {
  background-color: #9DAB7B;
}

.activity__slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--text-primary);
}

.activities__row--mobile .activities__content--mobile {
  color: var(--text-primary);
  width: calc(100% + 8rem);
  padding: 0 4rem;
  margin-left: -4rem;
  background-color: var(--bg-primary);
}

.activities__row--mobile .activities__content--mobile .activity__content {
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 2.4rem;
}

.activities__row--mobile .activities__content--mobile .activity__content p {
  margin-bottom: 0;
}

/* .activities__row--mobile .activities__content--mobile #open-popup,
.activities__row--mobile .activities__content--mobile .swiper-button-next,
.activities__row--mobile .activities__content--mobile .swiper-button-prev {
  display: none;
} */

.tax--mobile__trigger {
  font-size: 2rem;
}

.tax--mobile__trigger .trigger__icon {
  width: 12px;
  height: 12px;
  background-image: url("/wp-content/uploads/2024/04/icon_.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.4s ease;
}

.activities__tax--mobile.open .trigger__icon {
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------------ */
/* 8. Contacts */
/* ------------------------------------------------------------------------ */

.wpcf7 .input-row>p {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  margin-bottom: 5rem;
}

.wpcf7 .input-row span {
  font-family: var(--font-heading);
  width: 100%;
}

.wpcf7 .input-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 5rem;
}

.wpcf7 .input-bottom-row>* {
  width: 50%;
}

.wpcf7 .input-bottom-row>p {
  width: fit-content;
  margin-left: auto;
}

/* ------------------------------------------------------------------------ */
/* 9. Footer */
/* ------------------------------------------------------------------------ */

.site-footer .pre-footer .mw {
  margin-top: 10rem;
  margin-bottom: 6rem;
  padding-top: 6rem;
  border-top: 1px solid var(--color-primary);
}

.site-footer .pre-footer a {
  color: var(--text-primary);
}

.site-footer .pre-footer a:hover {
  color: var(--color-success);
}

.site-footer .bg-text a {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .bg-text a:hover {
  color: var(--bg-primary);
}