/************* HERO  *************/
.hero {
  position: relative;
  min-height: 750px;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 100;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(102, 137, 61, 0.8) 100%);
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 750px;
  min-width: 1333.275px;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 0, 0, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
    linear-gradient(223deg, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
  backdrop-filter: blur(3px);
}

.hero-circuit {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0.12;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: 900px;
  padding: 40vh 3rem 5rem;
  width: 100%;
  left: 10%;
}

.hero h1,
.hero h1 span {
  color: #dfdcff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.2;
  box-sizing: border-box;
  width: 100%;
  perspective: 500px;
}

.hero-sub {
  font-size: clamp(16px, 3vw, 20px);
  font-family: "trebuchet-ms", sans-serif;
  color: #dfdcff;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0rem;
  perspective: 500px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-ctas a {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #ffffff72;
  border-radius: 0px;
}

.hero-programa-educativo {
  display: none;
}

.hero-ctas a:hover {
  background: #63c10075;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid var(--destaque_color);
  border-radius: 0px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 14px;
  position: relative;
  display: block;
}

.hero-scroll-mouse span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #80d12a;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
}

.hero-scroll small {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-stats {
  position: absolute;
  bottom: 40px;
  right: 5%;
  z-index: 5;
  display: flex;
  gap: clamp(24px, 4vw, 56px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-stat__number {
  font-family: "trebuchet-ms", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--destaque_color, #63C100);
  text-shadow: -2px 1px 6px #030303ab;
}

.hero-stat__label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfdcff;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero-stats {
    position: relative;
    bottom: auto;
    right: auto;
    left: 10%;
    width: 80%;
    margin-top: 2.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-stat {
    align-items: flex-start;
    text-align: left;
  }
}


/************* INTRO  *************/
.dots-bg.n1 {
  aspect-ratio: 30/50;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  max-height: 90%;
}

.dots-bg.n2 {
  aspect-ratio: 50/20;
  max-height: 120px;
  left: 40%;
  transform: translateX(-50%);
  top: -10%;
}

.dots-bg.n3 {
  aspect-ratio: 50/20;
  left: 50%;
  top: 85%;
  max-height: 120px;
}

.dots-bg.n4 {
  width: 100vw;
  left: -50vw;
  top: 50%;
  transform: translateY(-50%);
  max-height: 50%;
  border-radius: 65% 35% 22% 78% / 55% 58% 42% 45%;
}

.dots-bg.n5 {
  max-width: 700px;
  width: 100%;
  left: -100px;
  top: 0;
  max-height: 400px;
}

/************* DESTAQUE BANNER  *************/
.banner-events {
  padding-bottom: 50px;
}

.event-details {
  position: absolute;
  bottom: 10px;
  backdrop-filter: blur(10px);
  z-index: 2;
  max-width: 900px;
  width: calc(100% - 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.9fr);
  align-items: stretch;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  right: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(25, 38, 19, 0.14);
}


.carousel-wrapper {
  z-index: 3;
}

.carousel-wrapper [hidden] {
  display: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
}

.carousel-slide .img_16-6-wraper {
  overflow: hidden;
  background-color: #aaaaaa;
}

.banner-events .card-tag {
  z-index: 1;
  max-width: calc(100% - 40px);
  overflow-wrap: anywhere;
  color: var(--destaque_color);
  right: auto;
  top: 0;
  background: transparent;
  padding: 0;
  border-left: 2px solid var(--destaque_color);
  padding-left: 4px;
  border-radius: 0;
  line-height: 10px;
}

.event-copy {
  min-width: 0;
  padding-top: 25px;
  position: relative;
}

.event-copy h3 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
  text-wrap: balance;
}

.event-copy p {
  margin: 0;
  line-height: 1.65;
}

.event-copy:only-child {
  grid-column: 1 / -1;
}

.event-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0.75rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid rgba(41, 51, 29, 0.18);
}

.event-meta .event-date,
.event-meta .event-time,
.event-meta .event-location {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-meta .btn-academia {
  margin: 0.25rem 0 0 !important;
}

.carousel-slide .img_16-6 {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 0.7s ease;
}


.carousel-slide .event-details {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.is-active .event-details {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.carousel-slide:not(.is-active) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: -30px;
}

.carousel-btn.next {
  right: -30px;
}


.carousel-dots {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--destaque_color);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.5;
}

.carousel-dot.is-active {
  transform: scale(1.3);
  opacity: 1;
}

/************* DESTAQUE CARDS - RESTO DO CSS ESTÁ NUM FICHEIRO PROPRIO DESSE CAROUSEL  *************/

.cards-carousel-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  color: #4F4F4F;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cards-carousel-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 32px);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--title_color, #4a4a4a) 0%, transparent 100%);
}

/************* EIXOS *************/

.sticky-box-parent {
  min-height: 50vh;
}

.topic-card {
  margin-bottom: max(2rem, 15vh);
  transition: transform 0.3s ease-in-out;
}

.topic-card .img-box {
  max-width: 500px;
  min-width: 300px;
}


.topic-card__content {
  margin-left: 30%;
  z-index: 2;
  max-width: 400px;
  margin-top: -20%;
}

.topic-card__content p {
  font-size: 14px;
}

.topic-card__content h3 {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.topic-card__content h3.eixo-title {
  font-size: 14px;
}

.topic-card__logo svg,
.topic-card__logo img,
.topic-card__arrow svg {
  width: 30px;
  height: 30px;
  margin-right: 8px;

}

.topic-card__arrow {
  transform: translateX(-6px);
  transition: transform 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-10px);
}

.topic-card:hover .topic-card__arrow {
  transform: translateX(6px);
}

/************* CLUBES CIÊNCIA VIVA *************/

.clubes-desc {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: -10px 15px 30px 0px rgba(39, 92, 141, 0.145);
  z-index: 3;
  height: fit-content;
}

.clubes-section {
  /*background-color: #f3f6f1;*/
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/************* RECURSOS *************/

.recursos-section .topic-card:hover h4 {
  color: var(--destaque_color);
}


.recursos-section .topic-card__content {
  max-width: 450px;
  margin-left: 10%;
  margin-top: -25%;
}

/************* RESPONSIVE *************/
@media (max-width: 1199px) {
  .clubes-img {
    max-width: 500px;
    margin-bottom: -120px;
  }
}

@media (max-width: 991px) {

  .clubes-img {
    max-width: 500px;
    margin-bottom: -120px;
  }
}

@media (max-width: 768px) {
  .hero-stat__number {
    text-shadow: none;
  }

  .event-details {
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    margin: -1.5rem auto 0;
    padding: 1.25rem;
    gap: 1rem;
    text-align: left;
  }

  .event-meta {
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(41, 51, 29, 0.18);
    border-left: 0;
    text-align: left;
  }

  .event-meta .event-date,
  .event-meta .event-time,
  .event-meta .event-location {
    max-width: none;
  }

  .event-meta .btn-academia {
    align-self: flex-start;
  }

  .carousel-dots {
    bottom: 16px;
  }

  .banner-events {
    padding-bottom: 0px;
  }

  .topic-card__content {
    margin-left: 0;
    margin-top: -10.5rem;
  }

  .clubes-img {
    max-width: 500px;
    margin-bottom: 0px;
    justify-self: center;
  }

  .cards-carousel-section h2 {
    margin-bottom: 0px;
  }
}

@media (max-width:460px) {
  .topic-card__content {
    margin-top: -3.5rem;
  }
}