/* Página Instagram — usa a base de calendario2.css (header, botões, footer) */

.ig-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(2, 18, 38, 0.97) 0%, rgba(5, 24, 48, 0.9) 55%, rgba(9, 32, 61, 0.75) 100%),
    url("nacional_26.JPG");
  background-size: cover;
  background-position: center;
}

.ig-profile {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 0;
}

.ig-avatar {
  flex: 0 0 auto;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
  transition: transform 0.3s ease;
}

.ig-avatar:hover {
  transform: scale(1.04);
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #021226;
  display: block;
}

.ig-info h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.ig-name {
  font-weight: 800;
  color: #d6b46a;
  margin-bottom: 12px;
}

.ig-bio {
  max-width: 620px;
  color: #e5e7eb;
  font-size: 17px;
  margin-bottom: 26px;
}

.ig-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ig-section {
  padding: 80px 0;
}

.ig-section .section-subtitle {
  color: #4b5563;
  margin-top: 12px;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.08);
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ig-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #ffffff;
  font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 18, 38, 0.88));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-overlay p {
  font-size: 14px;
  line-height: 1.4;
}

.ig-overlay small {
  color: #d6b46a;
  font-weight: 700;
}

.ig-post:hover img,
.ig-post:focus-visible img {
  transform: scale(1.05);
}

.ig-post:hover .ig-overlay,
.ig-post:focus-visible .ig-overlay {
  opacity: 1;
}

.ig-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.08);
}

.ig-empty p {
  color: #4b5563;
  margin-bottom: 8px;
}

.ig-empty .btn-primary {
  margin-top: 16px;
}

.ig-more {
  text-align: center;
  margin-top: 36px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  color: #07111f;
  border: 2px solid #07111f;
  transition: 0.3s ease;
}

.btn-outline:hover {
  background: #07111f;
  color: #ffffff;
}

@media (max-width: 800px) {
  .ig-profile {
    flex-direction: column;
    text-align: center;
    gap: 26px;
    padding: 60px 0;
  }

  .ig-actions {
    justify-content: center;
  }

  .ig-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .ig-grid {
    gap: 4px;
  }

  .ig-post {
    border-radius: 4px;
  }

  .ig-overlay {
    display: none;
  }
}
