/* ================================
   HERO TRILOGIA SECTION
================================ */
.hero-trilogia {
  position: relative;
  height: 100vh; /* full screen hero */
  background: url("/assets/images/webp/triologio-hero.webp") no-repeat top center/cover,
  url("/assets/images/png/triology-bg.png") no-repeat top center/cover;
  display: flex;
  align-items: flex-end; /* content at bottom */
  justify-content: center;
  padding: 50px 20px;
  overflow: hidden;
  max-height: 620px;
}


.hero-foreground {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 70%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  z-index: 0; /* sits above background, below text */
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 1; /* text above everything */
  text-align: center;
  margin-bottom: 30px;
}

.hero-content .subtext {
  font-size: clamp(1.5rem, 3vw, 4rem);
  margin-top: 20px;
  color: #bababa;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}



/* Responsive adjustments */


@media (max-width: 991px) {
  .hero-trilogia {
    height: 60vh;
    max-height: 500px;
  }
}
@media (max-width: 768px) {
  .hero-trilogia {
    height: 80vh;
    padding: 20px 10px;
    
  }

  .hero-content {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-trilogia {
    height: 40vh;
    padding-bottom: 0;
    max-height: 400px;
  }

  .hero-content h1 {
    flex-direction: column;
    line-height: 1.1;
  }

  .hero-content .el {
    margin-right: 0;
  }
}


/* ================================
   HISTORIA / HISTORY SECTION
================================ */
.history-section {
  max-height: 550px;
  height: 550px;
}

.historia-container {
  padding: 20px 110px;
  background-color: white;
}

.historia-container h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-family: "condense-light", sans-serif;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #33322e;
}

.historia-container p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 2rem 0 1rem 0;
  font-family: "condense-light";
  color: #33322e;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .historia-container {
    padding: 20px 60px;
  }

  .historia-container h2 {
    font-size: 1.8rem;
  }

  .historia-container p {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .historia-container {
    padding: 20px 20px;
  }

  .historia-container h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .historia-container p {
    font-size: 1.1rem;
    text-align: justify;
    margin: 1rem 0 1rem 0;
  }
}

@media (max-width: 416px) {
  .history-section {
    margin-bottom: 70px;
  }
}


/* ================================
   AMO BOOKS SECTION
================================ */
.amo-books {
  min-height: 550px;
}

.amo-books-containers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 85%;
  background-color: white;
  padding: 0 50px;
}

.amo-books-img {
  flex: 0 0 45%; /* image takes max 45% */
}

.amo-books-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.amo-books-text {
  flex: 0 0 55%; /* text takes the rest */
  text-align: center;
  padding-top: 20px;

}

.amo-books-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 20px;
  font-family: "adelle-thin", sans-serif;
}

.amo-books-text p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-family: "wide-light", sans-serif;
  letter-spacing: -1px;
}

.amo-books-cta {
  width: 100%;
  display: flex;
  justify-content: end;
  padding: 0 15rem;
}

.amo-books-btn {
  filter: drop-shadow(0px 4px 0px rgba(6, 7, 10, 0.16));
  padding: 0.8rem 2rem;
  background-color: #6a6458;
  color: #fff;
  font-size: clamp(1.35rem, 2.25vw, 1.875rem);
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -1px;
  font-family: "adelle-thin", sans-serif;
  text-decoration: none;
}

.amo-books-line {
  border: none;
  height: 10px;
  background-color: white;
  margin-top: -20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .amo-books-containers {
    flex-direction: column;
    text-align: center;
    padding: 20px 40px;
  }

  .amo-books-img,
  .amo-books-text {
    flex: 0 0 100%;
  }

  .amo-books-text h2 {
    font-size: 1.8rem;
  }

  .amo-books-text p {
    font-size: 1.2rem;
  }

  .amo-books-cta {
    justify-content: center;
    padding: 2rem 0;
  }

  .amo-books-btn {
    font-size: 2rem;
  }

  .amo-books-line {
    margin-top: -50px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .amo-books-containers {
    padding: 15px 20px;
  }

  .amo-books-text h2 {
    font-size: 1.5rem;
  }

  .amo-books-text p {
    font-size: 1rem;
    text-align: justify;
  }

  .amo-books-btn {
    font-size: 1.6rem;
    padding: 0.6rem 1.5rem;
  }
}


/* ================================
   UPCOMING BOOKS SECTION
================================ */
.upcoming {
  max-height: 340px;
  height: 230px;
}

.upcoming-container {
  padding: 40px 120px;
  background-color: white;
  filter: drop-shadow(0px 40px 41.5px rgba(76, 76, 77, 0.32));
}

.upcoming-container ul {
  list-style: square;
  padding-left: 20px;
}

.upcoming-container li {
  font-size: clamp(1.5rem, 2.8vw, 3.2rem);
  letter-spacing: -1px;
  line-height: 1.2;
  color: #010101;
  font-family: "adelle-thin", sans-serif;
}

.upcoming-container span {
  font-size: clamp(1.2rem, 2vw, 2.5rem);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .upcoming-container {
    padding: 30px 60px;
  }
}

@media (max-width: 600px) {
  .upcoming {
    height: 240px;
  }

  .upcoming-container {
    padding: 20px;
  }

  .upcoming-container ul {
    padding-left: 15px;
  }
}


/* ================================
   FAQ SECTION (ACCORDION)
================================ */
.faq {
  min-height: 400px;
}

.faq-container {
  padding: 25px 120px;
  background-color: white;
  width: 100%;
  box-sizing: border-box;
}

.faq-container h2 {
  font-size: clamp(1.5rem, 3.75vw, 2.7rem);
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #010101;
  font-family: "adelle-thin", sans-serif;
  margin-bottom: 2.5rem;
}

.faq-container ul {
  padding-left: 20px;
  list-style: none;
}

.faq-container li {
  margin-bottom: 1.5rem;
}

.faq-question {
  width: 50%;
  background: none;
  border: none;
  padding: 0;
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  color: #010101;
  text-align: left;
  cursor: pointer;
  font-family: "adelle-condense-light",serif;
  font-weight: bold;
}

.faq-question::after {
  content: "+";
  float: right;
}

.faq-question.active::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-top: 0.5rem;
  color: #555;
  font-family: "adelle-condense-light",serif;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .faq-question {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .faq {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .faq-container {
    padding: 20px;
  }

  .faq-container h2 {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1.3rem;
  }

  .faq-answer {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 1.5rem 0;
  }

  .faq-container {
    padding: 10px 5px;
  }

  .faq-container h2 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 1.2rem;
    width: 100%;
  }

  .faq-answer {
    font-size: 1rem;
  }
}
