@import url('https://fonts.googleapis.com/css2?family=Orelega+One&family=Playfair+Display:wght@756&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
  --background-dark: #ffffff;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --text-light: rgba(255,255,255,0.75);
  --text-lighter: rgba(255,255,255,0.9);
  --width-container: 1200px;
}

:root {
  --canvas: 220;
  --bg: hsl(var(--canvas), 15%, 22%);
  --fg: hsl(var(--canvas), 39%, 95%);
  --link: hsl(var(--canvas), 90%, 80%);
  --wgt: 200;
  --height: calc(80vh - 50px);
  --width: 450px;
}

*{
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  height: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

body{
  min-height: 100vh;
  overflow-y: auto;
  margin: 0;
}

.hamburger {
  display: none;
  font-size: 35px;
  color: #023A86;
  cursor: pointer;
  z-index: 1001;
}

.header {
  background: rgb(243, 242, 242);
  width: 100%;
  padding: 4px 30px;
  display: flex;
  align-items: center;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
}

.container-xl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

/* LOGO */

.logo img {
  max-height: 70px;
  margin-left: 90px;
  margin-top: 10px;
}

.navmenu {
  flex-grow: 1;
  margin-left: 450px;
}

.navmenu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 25px;
}

.navmenu ul li {
  position: relative;
  overflow: visible;
}

.navmenu a,
.dropdown-btn {
  text-decoration: none;
  color: #023A86;
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  padding: 8px 0;
}

.navmenu a:hover,
.navmenu a.active,
.dropdown-btn:hover,
.dropdown-btn.active {
  color: #0959ba;
}



.seta {
  font-size: 10px;
  transition: 0.3s;
  transition-delay: 0.4s; /* Atraso ao fechar */
  margin-left: 2px;
}

.dropdown.mobile-active .seta,
.dropdown:hover .seta {
  transform: rotate(180deg);
  transition-delay: 0s; /* Abre instantaneamente */
}

.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  width: 230px;
  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  transition-delay: 0.4s; /* Atraso ao fechar */
  list-style: none;
}

.dropdown.mobile-active .dropdown-menu,
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* Abre instantaneamente */
}

.dropdown-menu li {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  transition-delay: 0.4s; /* Acompanha o atraso de fechamento do menu */
}

.dropdown.mobile-active .dropdown-menu li,
.dropdown:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

/* Efeito cascata: cada item surge com um pequeno atraso em relação ao anterior */
.dropdown.mobile-active .dropdown-menu li:nth-child(1), .dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(2), .dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.15s; }
.dropdown.mobile-active .dropdown-menu li:nth-child(3), .dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.25s; }

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
}

/*VIDEO*/

.video-container{
    position: relative;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    margin: 0;
    max-width: 100%;

    overflow: hidden;
    z-index: -1;
    margin-top: 30px;
}

.video-container video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.texto-intro{
    position: absolute;
    top: 50%;
    right: 8%;

    transform: translateY(-50%) rotateY(90deg);
    transform-origin: right;

    max-width: 600px;

    color: #023A86;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;

    opacity: 0;
    transition: 1 ease;

    transition: transform 1s ease, opacity 1s ease;
    backface-visibility: hidden;
}

.texto-intro.show{
    opacity: 1;
    transform: translateY(-50%) rotateY(0deg);
}

.destaque-apcdef {
    font-size: 3rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 5px;
}

.cidade-apcdef {
    font-size: 1.2rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

/*cards*/

.titulo1{
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: -30px;
}

.titulo1 h1{
  color: #023A86;
  font-size: 2.5rem;
  text-align: center;
}

.hero-section{
  align-items: center;
  background: transparent;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-l);
  position:relative;
  z-index: 1;
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-l);
  grid-row-gap: var(--spacing-l);
  max-width: var(--width-container);
  width: 100%;
  
}

@media(min-width: 540px){
  .card-grid{
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .card-grid{
    grid-template-columns: repeat(4, 1fr); 
  }
}

.card{
  list-style: none;
  position: relative;
}

.card:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
}

.card__background{
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-l);
  bottom: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  transform: scale(1) translateZ(0);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.511);

  transition: 
  filter 200ms linear,
  transform 200ms linear,
  box-shadow 200ms linear;
}

.card:hover .card__background{
  transform: scale(1.05) translateZ(0);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.card-grid:hover > .card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0.5) contrast(1.2) blur(20px);
}

.card__content{
  position: absolute;
  inset: 0;
  padding: var(--spacing-l);

  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.card__category{
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-m);
  text-transform: uppercase;
}

.card__heading{
  color: var(--text-lighter);
  font-size: 20px;
  line-height: 1.2;
  text-align: left;
  margin: 0;
}

/* missao, visao e valores*/
 
.circulo {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 50px auto 0;
  flex-wrap: wrap;

  opacity: 0;             /* invisível inicialmente */
  transform: translateY(50px); /* opcional: leve movimento de subida */
  transition: opacity 1s ease, transform 1s ease;
}

.circulo.show {
  opacity: 1;             /* aparece */
  transform: translateY(0); /* volta para posição normal */
}


.circulo div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #023A86;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.427);
  border: 3px solid #ffffff;
  padding: 32px 24px 24px 24px;
  max-width: 340px;
  min-width: 260px;
  margin-bottom: 24px;

  transition: transform 0.3s ease;
}

.circulo div:hover {
  transform: scale(1.05); /* aumenta 5% */
}

.circulo img {
  width: 350px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: none; /* sombra só no bloco */
  border: none;
  color: #f5f5f5;
}

.circulo h5 {
  color: #ffffff;
  font-size: 1.05rem;
  text-align: center;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  line-height: 1.4;
  word-break: break-word;
}

/*doação*/

.institucional-section {
    background-color: #fff;
    width: 80%;
    padding: 30px;
    display: flex;
    justify-content: center;
    font-family: "Poppins";
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1400px;
    box-shadow: 0 4px 32px 0 rgba(4, 12, 220, 0.826);
    margin-top: 50px;
    transition: 0.5s;
}

.institucional-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.institucional-container {
    max-width: 900px; 
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.institucional-texto {
    flex: 1;
    color: #023A86;
}

.descricao-fina {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 25px;
}

.descricao-negrito {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 35px;
}

/* Estilo do Botão Branco */
.btn-doar {
    display: inline-block;
    background-color: #023A86;
    color: #fff; /* Tom dourado para o texto do botão */
    text-decoration: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-doar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.institucional-imagem {
    flex: 0 0 400px; /* Largura fixa para a logo da rosa */
    display: flex;
    justify-content: center;
}

.institucional-imagem img {
    max-width: 100%;
    height: auto;
    /* Adicione um filtro se precisar que a rosa fique bem nítida */
}

a {
  color: var(--link);
  text-decoration: none;
  font-weight: 450;
  transition: all 0.3s ease;
}
a:hover,
a:focus,
a:active {
  color: #e8eff4;
}
button {
  background: hsl(var(--canvas), 10%, 10%);
  color: inherit;
  border: none;
  border-radius: 0.5em;
  padding: 0.25em 0.5em;
  font-family: inherit;
  font-size: inherit;
}

@keyframes iconsLoad {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}


.carousel {
  display: grid;
  transform: translate3d(0, 0, 0.1px);
  margin-top: 90px;
}

.carousel__list {
  display: flex;
  justify-content: center;
  overflow: hidden;
  list-style: none;
  padding: 2em 0 1em;
  margin: 0;
  contain: layout;
  isolation: isolate;
}

.carousel__item {
  display: grid;
  position: relative;
  align-content: start;
  margin: 0 10px;
  padding: 0;
  flex: 1 1 10%;
  height: var(--height);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transform: translate3d(0, 0, 0.1px);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 15px 2px,
    rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
    rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
  contain: layout;
  isolation: isolate;
}

.carousel__item,
.carousel__item * {
  transition: all 0.6s cubic-bezier(0.55, 0.24, 0.18, 1);
  user-select: none;
}

.carousel__image,
.carousel__contents {
  width: var(--width);
  height: auto;
}

.carousel__item:hover {
  flex-basis: calc(var(--width) / 2);
  transition: all 0.3s ease;
}

.carousel__item[data-active] {
  flex-basis: var(--width);
  flex-grow: 0;
}

@media screen and (max-width: 800px) {
  .carousel__item {
    flex-basis: 12%;
    margin: 0 5px;
    border-radius: 8px;
  }

  .carousel__item[data-active] {
    flex-basis: 60%;
    flex-grow: 0;
  }
}

  .carousel__item {
    flex: 1;
    min-width: 60px;
  }

  .carousel__item[data-active] {
    flex: 0 0 var(--width);
  }

.carousel__item img {
  display: block;
  position: absolute;
  width: var(--width);
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: saturate(0.2) contrast(0.75) brightness(1.1);
}

.carousel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(50, 50, 50, 0.7) 70%,
    rgba(30, 30, 30, 0.9) 100%
  );

  transition: all 0.66s cubic-bezier(0.55, 0.24, 0.18, 1);
}

.carousel__item[data-active]::after {
  transform: translateY(100%);
}

.carousel__item[data-active],
.carousel__item[data-active] * {
  opacity: 1;
  filter: none;
}

.carousel__contents {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  min-height: 200px;
  padding: 1em;
  z-index: 2;
  background-image: radial-gradient(
    ellipse at 0px 0px,
    rgba(0, 0, 0, 0.4) 20%,
    transparent 50%
  );
  background-size: 170% 200px;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel__contents .user__name {
  color: #e8eff4;
  font-size: 1.75em;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.carousel__contents .user__title {
  font-family: lexend;
  font-size: 0.875em;
  letter-spacing: 1.25px;
  font-weight: 500;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(270deg, rgb(255, 251, 0), rgb(255, 187, 0));
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0.85;
  text-wrap: balance;
  margin-bottom: 0.5em;
}

.carousel__contents .user__title,
.carousel__contents .user__name {
  margin: 0;
  line-height: 1.1;
  opacity: 0;
  transform: translateX(-200px);
  transition-duration: 1s;
  max-width: 18em;
}

@media screen and (max-width: 800px) {
  .carousel__item img {
    width: calc(var(--width) * 0.5);
  }
  .carousel__contents {
    transform: translateX(-100%) rotate(90deg);
    transform-origin: bottom right;
    align-items: end;
    justify-content: end;
    background-image: radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 0, 0, 0.4) 0%,
      transparent 50%
    );
    background-position: -100% 100%;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: right;
  }
  [data-active] .carousel__contents {
    background-position: 100% 100%;
  }
  .carousel__contents .user__title,
  .carousel__contents .user__name {
    max-width: 70vh;
    transform: translateX(200px);
  }
}

[data-active] .carousel__contents * {
  transform: translateX(0px);
  transition-duration: 0.66s;
  opacity: 1;
}
[data-active] .carousel__contents .user__name {
  transition-delay: 0.1s;
}
[data-active] .carousel__contents .user__title {
  opacity: 0.85;
  transition-delay: 0.05s;
}

.carousel__nav {
  padding: 1em;
  justify-self: end;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

button {
  display: flex;
  gap: 0.5em;
  padding: 0.5em 1.5em;
}


.footer {
  position: relative;
  width: 100%;
  padding: 10px 0;
  color: #023A86;
  text-align: center;
  box-sizing: border-box;
  margin-top: 10px;
}

.footer p {
  margin: 0;
}

/*Respansivo*/

@media (max-width: 994px){

  .header{
    padding: 15px 20px;
  }

  .container-xl{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo img{
    margin-left: 0;
    max-height: 60px;
    margin-top: 0;
  }

  /* MOSTRA HAMBURGER */
  .hamburger{
    display: block;
  }

  /* MENU MOBILE */
 .navmenu{
    position: fixed;
    top: 0;
    right: -100%;

    width: 280px;
    height: auto;

    background: white;
    padding: 60px 20px;

    transition: 0.4s ease;

    display: flex;
    flex-direction: column;

    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

  .navmenu.active {
    display: flex;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    flex-direction: column;
    width: 250px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
}

  .navmenu > ul{
    flex-direction: column;
    gap: 20px;
  }

  .navmenu a,
  .dropdown-btn{
    font-size: 18px;
  }




  /* DROPDOWN MOBILE */
  .dropdown-menu{
    position: static;

    width: 100%;

    background: #f5f5f5;

    box-shadow: none;

    border-radius: 10px;

    max-height: 0;
    overflow: hidden;

    opacity: 1;
    visibility: visible;

    transform: none;

    padding: 0;

    transition: max-height 0.3s ease;
  }

  .dropdown.mobile-active .dropdown-menu {
    max-height: 300px;
    margin-top: 10px;
  }

  .dropdown-menu li a{
    padding: 12px 15px;
  }

  .institucional-container {
        flex-direction: column;
        text-align: center;
    }
    .institucional-imagem {
        order: -1; /* Imagem vai para cima no celular */
        flex: 0 0 auto;
        width: 250px;
    }

    .video-container {
        height: 100vh; /* TELA CHEIA */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    
    .video-container.show-texto video {
        transform: translateY(-40%) scale(1.1); /* ← VIDEO SOBE + ZOOM */
        height: 80vh; /* ← Video menor */
        top: 0;
    }
    
    .video-container.show-texto video {
        transform: translateY(-100%); /* Video sobe mais */
    }
    
    .texto-intro {
        position: absolute !important;
        top: 25% !important;
        right: auto !important;
        margin: 0 auto;
        max-width: 90%;
        text-align: center;
        font-size: 1.4rem;
        transform: translateY(20px) scale(0.9);
        opacity: 0;
        z-index: 2;
        padding: 50px;
        margin-left: 50px;
    }
    
    .texto-intro.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}