/* Theme Name: Popup Ecosystem on homepage
* Author: Brianna Ciasnog // brianna@quattrolinee.it
* Version: 10/2025
*/
/* ============================================
    ECOSYSTEM POPUP ON HOME - MOBILE FIRST
  ============================================ */
.ecosistema-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ecosistema-popup.active {
  opacity: 1;
  visibility: visible;
}

.ecosistema-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.ecosistema-popup-content {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 85vh; 
  max-height: none;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  overflow-x: hidden;
}

.ecosistema-popup.active .ecosistema-popup-content {
  transform: translateY(0);
}

.ecosistema-popup-inner {
  min-height: 100%;
  padding: 30px 24px 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.ecosistema-popup-close {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  font-size: 20px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.ecosistema-popup-close:hover {
  transform: translateX(-50%) rotate(90deg);
}

.ecosistema-popup-close svg {
  width: 24px;
  height: 24px;
}

.ecosistema-header {
  margin: 0;
}

.ecosistema-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0;
  text-align: left;
}

.ecosistema-description {
  margin: 0;
}

.ecosistema-description p {
  color: #fff;
  font-size: 14px;
  margin: 0;
  text-align: left;
}

.ecosistema-cta {
  margin: 0;
  color: #fff;
}

.ecosistema-btn {
      color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  border-bottom: 2px solid transparent;
}

.ecosistema-btn:hover {

  text-decoration: underline;
  transform: translateX(5px);
}

.ecosistema-brands {
    
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  margin: 0;
  padding: 0;
}

.brand-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-logo img {
  max-height: 65px;
  max-width: 100px;

  object-fit: contain;
  display: block !important;
}


/* ============================================
  DESKTOP - 1024px
  ============================================ */
@media (min-width: 1024px) {

  .ecosistema-popup-content {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 70vw;
    height: 100vh;
    max-height: none;
    transform: translateX(100%);
    overflow: hidden;
  }
  
  .ecosistema-popup.active .ecosistema-popup-content {
    transform: translateX(0);
  }
  
  .ecosistema-popup-inner {
    height: 100%;
    min-height: auto;
    padding: 60px 80px;
    justify-content: space-between;
    gap: 0;
  }
  
  .ecosistema-popup-close {
    position: absolute;
    top: 50%;
    left: calc(30vw - 90px);
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  
  .ecosistema-popup-close:hover {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  .ecosistema-header {
    margin-bottom: 60px;
  }
  
  .ecosistema-title {
    font-size: 130px !important;
  }
  
  .ecosistema-description {
    max-width: 540px;
    margin-top: 21px;
    margin-left: 33vw;
    margin-right:auto;
    margin-bottom: 44px;
  }
  
  .ecosistema-description p {
    text-align: left;
    font-size:20px;
  }
  
  .ecosistema-cta {
    max-width: 211px;
    margin-left: 50vw;
    margin-right: auto;
    margin-bottom: 80px;
  }
  
  .ecosistema-brands {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    margin-top: auto;
  }
  
  .brand-item {
    flex: 1;
    padding-left: 30px;
    display: flex;
    justify-content: center;
  }
  
  .brand-logo img {
    max-height: 5vw;
    max-width: 14vw;
  }
}

/* DESKTOP LARGE - 1400px+ */
@media (min-width: 1400px) {
  .ecosistema-popup-inner {
    padding: 40px ;
  }
  
  .ecosistema-title {
    font-size: clamp(80px, 7vw, 96px);
  }
}