
/* ===== Instagram Feed Section ===== */
.instagram-feed2 {
    background: var(--white);
}

.feed-container2 {
    width: 100%;
    padding: 0;
}

.feed-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 1px 1px 0 1px;
    margin-bottom: 40px;
}

.feed-item {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    cursor: pointer;
    /* background: #000; */
}

.feed-thumbnail,
.feed-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}



.feed-thumbnail {
    z-index: 2;
    opacity: 1;
}

.feed-video {
    z-index: 1;
    opacity: 0;
}

.feed-item:hover .feed-thumbnail {
    opacity: 0;
}

.feed-item:hover .feed-video {
    opacity: 1;
}

/* Borda azul no hover */
.feed-item:hover {
    outline: 3px solid #00A8E8;
    outline-offset: -3px;
}

/* Botões de ação */
.feed-actions2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.btn-feed {
    font-family: "optima-nova-lt-pro", sans-serif;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0;
    background: linear-gradient(180deg, #b71c1c 0%, #4a0d25 100%);
    color: #fff;
    letter-spacing: 1px;
    padding: 12px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-feed:hover {
    background: #8B1F1F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 46, 46, 0.3);
}

.btn-feed:active {
    transform: translateY(0);
}

.feed-intro{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    width: 100%;
}

.feed-intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.feed-intro-title {
  font-family: "ivypresto-display", serif;
  font-weight: 100;
  font-style: normal;
  font-size: 145.6px;
  line-height: 100%;
  letter-spacing: 3rem;
  margin-right: -3rem;
  text-transform: uppercase;
  background: linear-gradient(180deg, #C80815, #66023C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.feed-intro-text {
  font-family: "optima-nova-lt-pro", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 160%;
  max-width: 1400px;
  margin-top: 20px;
  background: linear-gradient(180deg, #C80815, #66023C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feed-controls {
    display: flex;
    justify-content: flex-end;
    gap: 7.5px;
    margin: 40px 180px;
}

.grid-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.grid-icon {
  width: 40px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.grid-icon2 {
  width: 50px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.grid-icon3 {
  width: 60px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
}


.grid-icon div {
    width: 8px;
    height: 7px;
    background: #D6D6D6; /* cinzinha */
}
.grid-icon2 div {
    width: 8px;
    height: 7px;
    background: #D6D6D6; /* cinzinha */
}
.grid-icon3 div {
    width: 8px;
    height: 7px;
    background: #D6D6D6; /* cinzinha */
}

/* Hover com gradiente */
.grid-icon-btn:hover .grid-icon div {
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn:hover .grid-icon2 div {
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn:hover .grid-icon3 div {
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn:hover .grid-icon4 div {
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn:hover .grid-icon5 div {
  background: linear-gradient(180deg, #C80815, #66023C);
}

.grid-icon-btn.active .grid-icon div{
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn.active .grid-icon2 div{
  background: linear-gradient(180deg, #C80815, #66023C);
}
.grid-icon-btn.active .grid-icon3 div{
  background: linear-gradient(180deg, #C80815, #66023C);
}

@media (max-width: 768px) {
  .grid-icon{
    display: none;
  }
  .grid-icon2{
    display: none;
  }
  .grid-icon3{
    display: none;
  }
  .grid-icon4 {
    width: 30px;
    height: 27px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .grid-icon5 {
    width: 20px;
    height: 27px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

    
  .grid-icon4 div {
      width: 8px;
      height: 7px;
      background: #D6D6D6; /* cinzinha */
  }
  .grid-icon5 div {
      width: 8px;
      height: 7px;
      background: #D6D6D6; /* cinzinha */
  }

  .grid-icon-btn.active .grid-icon4 div{
    background: linear-gradient(180deg, #C80815, #66023C);
  }
  .grid-icon-btn.active .grid-icon5 div{
    background: linear-gradient(180deg, #C80815, #66023C);
  }
}


.footer {
    background: var(--white);
    padding: 20px 0 0;
    border-top: 1px solid #E0E0E0;
}

.feed-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.4s ease;
}

.feed-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
  .feed-intro-title {
    font-size: 120px;
  }

}

@media (max-width: 900px) {
  .feed-intro-title {
    font-size: 110px;
  }

  .feed-intro-text {
    font-size: 18px;
    padding: 0 20px;
  }

  .feed-controls {
    margin: 30px 80px;
  }
}

/* =============================
   Telas até 600px (mobile)
============================= */
@media (max-width: 600px) {

  .feed-intro-title {
    font-size: 80px;
    line-height: 100%;
  }

  .feed-intro-text {
    font-size: 16px;
    padding: 0 15px;
  }

  .feed-controls {
    justify-content: center;
    margin: 25px 0;
  }

  .grid-icon,
  .grid-icon2,
  .grid-icon3 {
    transform: scale(0.8);
  }
}

@media (max-width: 375px) {

  .feed-intro-title {
    font-size: 60px;
    line-height: 100%;
  }
}

@media (min-width: 770px){
  .feed-item--especial img {
    height: 570px;
  }

  .feed-item--especial2 img {
      height: 580px;
  }
}

@media (max-width: 450px){
  .footer-content{
    gap: 0;
  }
}

/* Responsividade Feed */
@media (max-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feed-item {
        height: 0;
        padding-top: 100%; /* Aspect ratio 1:1 (quadrado) */
    }

    .btn-feed {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {

    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        padding: 2px 2px 0 2px;
        margin-bottom: 30px;
    }

    .feed-item {
        height: 0;
        padding-top: 150%; /* Aspect ratio 1:1 (quadrado) estilo Instagram */
    }

    .btn-feed {
        padding: 12px 30px;
        font-size: 14px;
    }
}