@import url('https://fonts.googleapis.com/css2?family=Parisienne&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body, html { font-family: 'Montserrat', sans-serif; color: #FAF9F6; overflow-x: hidden; }

/* Vídeo rolando no fundo */
.background-video { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
    filter: blur(4px); 
    transform: scale(1.05); 
    z-index: -2; 
    opacity: 0.9;
}

/* Fundo mais transparente */
.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(36, 19, 10, 0.10); 
    z-index: -1; 
}

.nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(36, 19, 10, 0.65); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    padding: 15px 0; 
    text-align: center; 
    z-index: 100; 
    border-bottom: 2px solid rgba(138, 90, 68, 0.5); 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 10px 25px; 
}

.nav a { color: #FAF9F6; text-decoration: none; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s ease; }
.nav a:hover, .nav a.active { color: #d4a373; }

.main-wrapper { padding-top: 130px; padding-bottom: 50px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.container {
    position: relative;
    width: 100%;
    margin: 0 auto 70px auto;
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; letter-spacing: 2px; margin-bottom: 25px; color: #Fdfbf7; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #e6ccb2;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
h2::after { 
    content: '〰 ♡ 〰';
    display: block;
    color: rgba(212, 163, 115, 0.8);
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 300; 
    text-shadow: none; 
}

.nav-logo {
    max-height: 40px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)) invert(1) sepia(1) saturate(3) hue-rotate(-15deg) brightness(0.85); 
    mix-blend-mode: screen; /* Remove fundo branco, mantém a logo brilhante */
    opacity: 1;
    transition: transform 0.3s ease;
}
.nav-logo:hover {
    transform: scale(1.05);
}

h3 { font-size: 1.8rem; font-style: italic; margin-bottom: 15px; color: #e6ccb2; }

p { font-size: 1.1rem; line-height: 1.8; font-weight: 300; margin-bottom: 30px; color: rgba(250, 249, 246, 0.95); text-shadow: 0 1px 5px rgba(0,0,0,0.6); }

/* ========================================= */
/* IDENTIDADE ÚNICA E BORDAS MARRONS        */
/* PADRONIZADO PARA 60px 15px 60px 15px     */
/* ========================================= */

#home {
    max-width: 1000px;
    padding: 100px 40px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5); 
}

#historia {
    max-width: 750px;
    padding: 70px 60px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

#detalhes {
    max-width: 950px;
    padding: 60px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

#padrinhos {
    max-width: 1100px;
    padding: 50px 40px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

#galeria {
    max-width: 1200px;
    padding: 60px 40px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

#playlist {
    max-width: 650px;
    padding: 70px 50px 50px 50px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

#rsvp {
    max-width: 600px;
    padding: 60px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#presentes {
    max-width: 1000px;
    padding: 60px;
    background: rgba(36, 19, 10, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 60px 15px 60px 15px;
    border: 2px solid rgba(138, 90, 68, 0.5);
}

/* ========================================= */
/* ELEMENTOS INTERNOS                       */
/* ========================================= */

.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; text-align: left; }
.detail-item { background: rgba(0, 0, 0, 0.2); padding: 30px; border-radius: 20px; border: 1px solid rgba(138, 90, 68, 0.3); text-align: center; transition: transform 0.3s ease; }
.detail-item:hover { transform: translateY(-5px); border-color: rgba(138, 90, 68, 0.8); }
.detail-item p { margin-bottom: 10px; text-shadow: none; }

.btn-outline { display: inline-block; padding: 10px 20px; margin: 10px 5px 0 5px; border: 1px solid rgba(138, 90, 68, 0.6); background: transparent; color: #e6ccb2; border-radius: 30px; text-decoration: none; font-size: 0.85rem; transition: all 0.3s ease; }
.btn-outline:hover { background: rgba(138, 90, 68, 0.2); color: #fff; }

.btn-streaming:hover { transform: scale(1.05); filter: brightness(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Galeria com layout CSS Grid (Resolve o bug do Safari de fotos sumindo) */
/* Formatos intercalados garantidos com grid-auto-flow */
.gallery { 
    column-count: 3;
    column-gap: 15px;
    margin-top: 40px; 
}
.gallery img { 
    width: 100%; 
    height: auto; /* Mantém a proporção original da foto! Zero cortes! */
    margin-bottom: 15px; 
    border-radius: 15px; 
    border: 2px solid rgba(138, 90, 68, 0.3); 
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* NOVO DESIGN: PADRINHOS COM FOTO DE FUNDO */
.padrinhos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-top: 30px; }

.padrinho-card { 
    position: relative;
    background-size: cover;
    background-position: center; /* Enquadramento natural centralizado */
    border-radius: 30px; /* Borda arredondada padrão e fixa para todos */
    border: 4px solid rgba(138, 90, 68, 0.8); /* Borda grossa destacada */
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}
.padrinho-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(212, 163, 115, 0.8); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.padrinho-card-overlay {
    width: 100%;
    padding: 40px 20px 25px 20px;
    background: linear-gradient(to top, rgba(36, 19, 10, 1) 0%, rgba(36, 19, 10, 0.6) 60%, transparent 100%);
    text-align: center;
    transition: background 0.3s ease;
}
.padrinho-card:hover .padrinho-card-overlay {
    background: linear-gradient(to top, rgba(36, 19, 10, 1) 0%, rgba(36, 19, 10, 0.8) 70%, rgba(36,19,10, 0.2) 100%);
}

.padrinho-card-overlay h4 { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    color: #e6ccb2; 
}
.padrinho-card-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(250, 249, 246, 0.9);
}

/* Presentes - Cotas */
.presentes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 30px; }
.presente-card { background: rgba(36, 19, 10, 0.4); border-radius: 20px; border: 1px solid rgba(138, 90, 68, 0.3); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.presente-card:hover { transform: translateY(-5px); border-color: rgba(212, 163, 115, 0.7); }
.presente-img-placeholder { height: 140px; background: rgba(138, 90, 68, 0.1); display: flex; align-items: center; justify-content: center; font-size: 3rem; border-bottom: 1px solid rgba(138, 90, 68, 0.2); }
.presente-info { padding: 25px 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.btn-cotas { display: inline-block; margin-top: 20px; padding: 12px 20px; background: rgba(138, 90, 68, 0.8); color: #fff; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: background 0.3s; }
.btn-cotas:hover { background: #a67c52; }

.playlist-wrapper { margin-top: 30px; border-radius: 20px; overflow: hidden; background: rgba(0, 0, 0, 0.3); padding: 15px; border: 1px solid rgba(138, 90, 68, 0.4); }

/* RSVP Novo Formato */
.rsvp-clean { max-width: 500px; margin: 0 auto; text-align: left; }
.rsvp-clean input[type="text"], .rsvp-clean input[type="tel"] { width: 100%; padding: 15px 5px; background: transparent; border: none; border-bottom: 1px solid rgba(138, 90, 68, 0.5); border-radius: 0; color: #FAF9F6; font-family: 'Montserrat', sans-serif; font-size: 1rem; margin-bottom: 25px; outline: none; transition: border-color 0.3s ease; }
.rsvp-clean input:focus { border-bottom-color: #d4a373; }
.rsvp-clean input::placeholder { color: rgba(250, 249, 246, 0.5); }
.rsvp-clean .radio-group { margin-bottom: 30px; }
.rsvp-clean label { display: inline-block; margin-right: 20px; margin-bottom: 12px; font-weight: 300; cursor: pointer; text-shadow: none; }
.btn-submit { width: 100%; padding: 18px; background: rgba(138, 90, 68, 0.8); color: #fff; border: none; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: background 0.3s ease; }
.btn-submit:hover { background: #a67c52; }

@media (max-width: 768px) {
    .nav { gap: 10px; }
    .nav a { margin: 0; font-size: 0.75rem; }
    
    .container, #home, #historia, #detalhes, #padrinhos, #galeria, #playlist, #rsvp, #presentes {
        margin: 0 15px 40px 15px !important;
        padding: 40px 20px !important;
        border-radius: 60px 15px 60px 15px !important; 
        max-width: 100% !important;
        border: 1px solid rgba(138, 90, 68, 0.4) !important;
    }
    
    #playlist { border-radius: 60px 15px 60px 15px !important; }
    
    h1 { font-size: 2.5rem; letter-spacing: 1px; }
    
    .gallery { 
        column-count: 2;
        column-gap: 10px;
    }
    .gallery img {
        margin-bottom: 10px;
    }
}

.title-image {
    max-width: 80%;
    max-height: 120px;
    height: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    mix-blend-mode: multiply; /* Testando multiply para fundos claros */
}
