html, body {
    margin: 0 !important; 
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', serif;
    background-image: url("/static/image/logo.png");
    background-repeat: no-repeat;  
    background-size: contain;  
    background-position: center center;  
    background-attachment: fixed;  
    background-color: rgba(255, 255, 255, 0.8);  
}

@media (min-width: 769px) {
    body.home-page {
        background-size: 25%;
    }
}
@media (max-width: 768px) {
  body {
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: -1;
}

body.home-page header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-custom {
    background-color: rgb(161, 95, 111, 0.55);
}

body.home-page .navbar-custom {
    background: rgba(45, 45, 45, 0.55) !important;
    backdrop-filter: blur(8px);
}

.info {
  font-family: 'Montserrat', serif;
  font-size: 1.3rem;
}

.couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    letter-spacing: 2px;
    color: rgba(2, 119, 128, 0.459);
}

.couple-names-info{
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 3rem;
    letter-spacing: 2px;
    color: rgba(140, 42, 58, 350);
}

.couple-names2 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 2px;
    color: rgb(255, 255, 255);
}

header a:hover {
    text-decoration: underline !important;
    opacity: 0.85;
}

.btn-primary mt-2{
    background-color: #ffffff !important; 
}

.titulo-crianca {
    display: flex;
    align-items: flex-start !important;
    margin-bottom: 1rem; 
}

@media (max-width: 768px) {
  .couple-names {
        font-size: 2.2rem;
        line-height: 1.3;
    }

  .couple-names2 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: rgb(255, 255, 255);
    }

  h3 {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  h1 {
    font-size: 1.4;
    padding: 0 10px;
  }
}

.container-galeria {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.lado {
  width: 300x;
  height: 450px;
}

.lado img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4; 
  border-radius: 20px;
}

.lado img:hover {
  transform: scale(1.20);
}

/* CARROSSEL */
.meuSwiper {
  width: 500px;
  height: 600px;
  border-radius: 20px;
  aspect-ratio: 4 / 3; 
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .lado {
    display: none;
  }

  .meuSwiper {
    width: 100%;
    height: 400px; /* ajuste se quiser */
  }

  .container-galeria {
    justify-content: center;
  }
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .grid-galeria {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-galeria {
    overflow: hidden;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-galeria {
    overflow: hidden;
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-galeria img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
  border-radius: 10px;
}

.grid-galeria img:hover{
    transform: scale(1.25);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.grid-galeria a {
  display: block;
  break-inside: avoid;
}

.grid-galeria img {
  display: block;
}

.custom-file-upload {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #0d6efd;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.custom-file-upload:hover {
    background: #0b5ed7;
    transform: scale(1.02);
}



.countdown-section {
    text-align: center;
    padding: 60px 20px;
    background: #fdf8f6;
}

.countdown-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #7a5c58;
    font-family: 'Playfair Display', serif;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: white;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: transform 0.3s;
}

.time-box:hover {
    transform: translateY(-5px);
}

.time-box span {
    font-size: 3rem;
    font-weight: bold;
    color: #b76e79;
}

.time-box p {
    margin-top: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}


/* HERO */

.hero-banner {
    width: 100%;
    height: 100vh;

    background-image: url('/static/image/banner2.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;

    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
  .hero-banner {
        height: 20vh; /* menor no celular */
        min-height: 250px;
        background-position: center;
    }
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    padding: 20px;
}

.couple-names {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-date {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* INFORMAÇÕES */

.info-section {
    padding: 100px 20px;
    text-align: center;
    background: white;
}

.info-section h3 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.event-info {
    font-family: 'Cormorant Garamond', sans-serif;
    font-style: italic;
    margin-top: 40px;
    line-height: 2;
    font-size: 1.6rem;
}

/* RESPONSIVO */

@media (max-width: 768px) {

    .couple-names {
        font-size: 2.5rem;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .time-box {
        min-width: 100px;
        padding: 20px;
    }

    .time-box span {
        font-size: 2rem;
    }

}

.pagina-galeria {
    padding: 10px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    margin: 40px 0;
    font-family: 'Cormorant Garamond', serif;
}

.page-btn {
    padding: 10px 18px;
    border-radius: 30px;

    background: #fff;
    border: 1px solid #ddd;

    text-decoration: none;
    color: #333;

    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 16px;
    color: #555;
}


.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 280px;
    max-width: 500px;

    padding: 30px;

    background: rgba(255,255,255,0.9);

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);

    text-align: center;
}

.info-card h3 {
    margin-bottom: 20px;
    color: rgb(122, 92, 88);
}

.info-card p {
    margin: 10px 0;
}