

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.hero-instagram {
  position: relative;
  width: 100%;

  background-image: url("../img/fundo-nosso-trabalho.png");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: cover;
}


.hero-instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
}



.instagram-container {
  position: relative;
  z-index: 2;

  max-width: 1280px;
  margin: auto;
  padding: 160px 32px 120px;
}



.instagram-title {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  margin-bottom: 14px;
  color: #1f2f44;

  opacity: 0;
  transform: translateY(40px);
}

.instagram-subtitle {
  max-width: 760px;
  font-size: 1.05rem;
  margin-bottom: 80px;
  color: #1f2f44;

  opacity: 0;
  transform: translateY(40px);
}

body.loaded .instagram-title {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.15s;
}

body.loaded .instagram-subtitle {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.35s;
}



.instagram-feed {
  display: flex;
  flex-direction: column;
  gap: 100px;
}



.instagram-item {
  display: grid;
  grid-template-columns: 0.9fr 520px;
  gap: 56px;
  align-items: stretch;

  opacity: 0;
  transform: translateY(40px);
}


.instagram-item.reverse {
  grid-template-columns: 520px 1fr;
}

.instagram-item.reverse .instagram-text {
  order: 2;
}


body.loaded .instagram-item {
  animation: fadeUp 0.9s ease forwards;
}

body.loaded .instagram-item:nth-child(1) { animation-delay: 0.3s; }
body.loaded .instagram-item:nth-child(2) { animation-delay: 0.5s; }
body.loaded .instagram-item:nth-child(3) { animation-delay: 0.7s; }
body.loaded .instagram-item:nth-child(4) { animation-delay: 0.9s; }
body.loaded .instagram-item:nth-child(5) { animation-delay: 1.1s; }



.instagram-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 36px;

  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}


.instagram-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #4fa3c7;

  white-space: pre-line; 
}


.instagram-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1f2f44;

  white-space: pre-line;   
  word-break: break-word;
}


.instagram-text p + p {
  margin-top: 16px;
}



.instagram-media {
  width: 100% !important;
  min-height: 520px;

  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;

  box-shadow: 0 24px 50px rgba(0,0,0,0.14);
}



.instagram-cta {
  margin-top: 120px;
  text-align: center;

  opacity: 0;
  transform: translateY(40px);
}

body.loaded .instagram-cta {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 1.3s;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 18px 40px;
  border-radius: 40px;

  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );

  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;

  box-shadow: 0 16px 36px rgba(220,39,67,0.35);
  transition: all 0.35s ease;
}

.btn-instagram:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 22px 48px rgba(220,39,67,0.45);
}



@media (max-width: 900px) {

  .instagram-container {
    padding: 140px 20px 100px;
  }

  .instagram-item,
  .instagram-item.reverse {
    grid-template-columns: 1fr;
  }

  .instagram-feed {
    gap: 70px;
  }

  .instagram-title {
    font-size: 2rem;
    text-align: center;
  }

  .instagram-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 60px;
  }

  .instagram-text {
    padding: 28px;
    text-align: left;
  }

  .instagram-media {
    min-height: auto;
  }
}



.instagram-loading {
  opacity: 0;
  pointer-events: none;
}

.instagram-loaded {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s ease;
}



.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;

  z-index: 10000; 
  pointer-events: auto;
}


.whatsapp-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform 0.3s ease;
}

.whatsapp-main:hover {
  transform: scale(1.08);
}


.whatsapp-icon {
  width: 28px;
  height: 28px;
  background-image: url("https://cdn-icons-png.flaticon.com/512/733/733585.png");
  background-size: cover;
  background-repeat: no-repeat;
}


.whatsapp-options {
  position: absolute;
  bottom: 72px;
  right: 0;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);

  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.whatsapp-options a {
  text-decoration: none;
  color: #1f2f44;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.25s ease;
}

.whatsapp-options a:hover {
  background: #f4f8fc;
}


.whatsapp-float.active .whatsapp-options {
  display: flex;
}


@media (max-width: 768px) {
  .whatsapp-main {
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 900px) {

  
  .instagram-item {
    display: flex;
    flex-direction: column;
  }

  .instagram-item .instagram-media {
    order: 1;
  }

  
  .instagram-item .instagram-text {
    order: 2;
  }

}
