/* =========================================================
   SITE DE CASAMENTO - STYLE.CSS
   ---------------------------------------------------------
   Arquivo organizado para facilitar edição.

   SUMÁRIO:
   1. Paleta, fontes e base
   2. Cabeçalho e menu
   3. Botões, cards, formulários e tabelas
   4. Página inicial
   5. Lista de presentes
   6. Página O Casal
   7. Página Padrinhos
   8. Página Cerimônia
   9. Confirmação de presença no painel
   10. Painel administrativo
   11. Responsivo / celular
   ========================================================= */

/* =========================================================
   1. PALETA, FONTES E BASE
   Para trocar as cores do site, edite apenas estas variáveis.
   ========================================================= */
:root {
    --branco: #ffffff;
    --fundo: #fff8ff;
    --fundo-lilas: #f3e8ff;
    --lilas-claro: #ead7ff;
    --lilas: #c69bea;
    --roxo: #4b1d66;
    --roxo-escuro: #25113b;
    --rosa: #c91b84;
    --rosa-claro: #f4acd7;
    --texto: #39224f;
    --texto-suave: #765d84;
    --borda: #eadcf0;
    --erro: #b42318;
    --sucesso: #0f7b4b;

    --sombra: 0 24px 70px rgba(75, 29, 102, .14);
    --sombra-card: 0 10px 32px rgba(75, 29, 102, .10);
    --raio: 20px;
    --fonte-titulo: Georgia, "Times New Roman", serif;
    --fonte-texto: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--texto);
    font-family: var(--fonte-texto);
    background:
        radial-gradient(circle at 12% 8%, rgba(222, 190, 255, .40), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(246, 184, 221, .28), transparent 30%),
        linear-gradient(180deg, #fffaff 0%, #f6edff 52%, #fffaff 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    background: url('../img/flor-decorativa.png') no-repeat center / contain;
    opacity: .24;
}

body::before {
    width: 320px;
    height: 570px;
    left: -78px;
    top: 120px;
}

body::after {
    width: 270px;
    height: 480px;
    right: -78px;
    bottom: -95px;
    transform: scaleX(-1) rotate(-8deg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.7;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.pagina {
    padding: 58px 0 80px;
}

.estreita {
    max-width: 820px;
    width: min(820px, calc(100% - 36px));
    margin: 0 auto;
}

.subtitulo {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
    color: var(--texto-suave);
    font-size: 18px;
}

.pagina h1,
.titulo-centro h2,
.presente-chamada h2 {
    margin: 0 0 12px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.pagina h1 {
    text-align: center;
    font-size: clamp(30px, 4vw, 46px);
}

.titulo-centro {
    margin: 16px 0 30px;
    text-align: center;
}

.titulo-centro p,
.heart,
.ornamento {
    color: var(--rosa);
}

.mini-tag,
.tag-linha {
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

/* =========================================================
   2. CABEÇALHO E MENU
   ========================================================= */
.topo {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 255, .92);
    border-bottom: 1px solid rgba(234, 220, 240, .85);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--roxo);
}

.logo-icone {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--rosa);
    font-size: 34px;
    border: 1px solid var(--rosa-claro);
    border-radius: 50%;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--fonte-titulo);
    font-size: 28px;
    font-style: italic;
    line-height: 1;
}

.logo-texto small {
    display: block;
    margin-top: 6px;
    color: var(--rosa);
    font-family: var(--fonte-texto);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    text-align: center;
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu a {
    position: relative;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: 15px;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--rosa);
    transform: scaleX(0);
    transform-origin: center;
    transition: .2s;
}

.menu a:hover::after {
    transform: scaleX(1);
}

.nav-admin {
    padding: 10px 16px;
    border: 1px solid var(--borda);
    border-radius: 999px;
    background: #fff;
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--rosa);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 22px;
    cursor: pointer;
}

/* =========================================================
   3. BOTÕES, CARDS, FORMULÁRIOS E TABELAS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rosa), #d9309a);
    color: #fff;
    font-weight: 800;
    font-family: var(--fonte-titulo);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(201, 27, 132, .20);
}

.btn:hover {
    filter: brightness(.98);
}

.btn-contorno {
    background: #fff;
    color: var(--rosa);
    border: 1px solid var(--rosa-claro);
    box-shadow: none;
}

.btn.mini {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
}

.btn.perigo,
.btn.mini.perigo {
    background: #b42318;
}

.btn.indisponivel {
    background: #aaa;
    cursor: not-allowed;
}

.card,
.form-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    box-shadow: var(--sombra-card);
}

.card {
    padding: 28px;
}

.card.grande,
.form-card {
    padding: 34px;
}

.form-card {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.span-2 {
    grid-column: span 2;
}

label {
    display: grid;
    gap: 8px;
    color: var(--roxo);
    font-weight: 800;
}

.rsvp-card {
    text-align: center;
    margin: 0 auto;
    max-width: 680px;
}

.rsvp-card h2 {
    margin: 10px 0 14px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
}

.rsvp-card p {
    margin: 0 0 14px;
    color: var(--texto-suave);
    font-size: 18px;
}

.rsvp-card .btn {
    margin-top: 8px;
}

.rsvp-mensagem-especial {
    margin: 18px auto 0;
    text-align: center;
    padding: 22px 28px;
    background: rgba(255, 255, 255, .88);
    max-width: 680px;
}

.rsvp-mensagem-especial p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 17px;
    line-height: 1.8;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: #fff;
    color: var(--texto);
    font: inherit;
}

textarea {
    resize: vertical;
}

.alerta {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.alerta.erro {
    background: #fee4e2;
    color: var(--erro);
}

.alerta.sucesso {
    background: #dcfae6;
    color: var(--sucesso);
}

.tabela-wrap {
    margin-top: 22px;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--sombra-card);
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tabela th,
.tabela td {
    padding: 13px;
    border-bottom: 1px solid var(--borda);
    text-align: left;
    vertical-align: middle;
}

.tabela th {
    background: #faf1ff;
    color: var(--roxo);
}

.thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   4. PÁGINA INICIAL
   ========================================================= */
.hero {
    position: relative;
    min-height: 650px;
    padding: 56px 0 90px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background: url('../img/flor-decorativa.png') no-repeat center / contain;
}

.hero::before {
    left: -34px;
    top: 8px;
    width: 300px;
    height: 535px;
    opacity: .88;
}

.hero::after {
    right: -52px;
    top: 88px;
    width: 190px;
    height: 360px;
    opacity: .30;
    transform: scaleX(-1) rotate(-10deg);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.hero-texto {
    text-align: center;
    padding: 30px 0;
}

.tag-linha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 15px;
}

.tag-linha span {
    width: 72px;
    height: 1px;
    background: var(--lilas);
}

.hero h1 {
    margin: 22px 0 10px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: clamp(54px, 7vw, 86px);
    font-weight: 500;
    line-height: 1;
}

.hero h1 em {
    color: var(--rosa);
    font-style: normal;
}

.ornamento {
    font-size: 30px;
}

.hero-subtitulo {
    max-width: 520px;
    margin: 18px auto 0;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-foto-wrap {
    position: relative;
    padding: 18px 26px 34px;
}

.hero-foto-wrap::before,
.hero-foto-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #d36ab5;
    border-radius: 49% 51% 50% 50% / 44% 47% 53% 56%;
    opacity: .55;
}

.hero-foto-wrap::before {
    transform: rotate(-7deg);
}

.hero-foto-wrap::after {
    inset: 12px;
    transform: rotate(5deg);
    opacity: .28;
}

.hero-foto {
    position: relative;
    z-index: 2;
    min-height: 450px;
    overflow: hidden;
    border-radius: 48% 52% 48% 52% / 45% 48% 52% 55%;
    background: #fff;
    box-shadow: var(--sombra);
}

.hero-foto img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

.save-date {
    position: absolute;
    right: 22px;
    bottom: 24px;
    z-index: 5;
    width: 122px;
    height: 122px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--borda);
    border-radius: 50%;
    background: rgba(255, 252, 255, .96);
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    text-align: center;
    box-shadow: 0 14px 40px rgba(76, 27, 97, .18);
}

.save-date strong {
    font-size: 14px;
    letter-spacing: 1.4px;
}

.save-date span {
    margin: 4px 0;
    color: var(--rosa);
    font-size: 17px;
}

.save-date small {
    color: var(--texto-suave);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wave-top {
    position: relative;
    z-index: 4;
    height: 80px;
    margin-top: -58px;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    background: linear-gradient(180deg, rgba(246, 235, 255, 0), #f5ecff);
}

.detalhes {
    padding: 18px 0 34px;
    background: linear-gradient(180deg, #f5ecff, #fff8ff);
}

.cards-detalhes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.detalhe-card {
    position: relative;
    min-height: 200px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 22px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--borda);
    border-radius: 18px;
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--sombra-card);
}

.detalhe-card::before {
    content: "";
    position: absolute;
    left: -22px;
    bottom: -32px;
    width: 130px;
    height: 230px;
    background: url('../img/flor-decorativa.png') no-repeat center / contain;
    opacity: .62;
}

.detalhe-card .icone {
    position: relative;
    z-index: 2;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9a8ef, #b88be3);
    color: #fff;
    font-size: 34px;
}

.detalhe-conteudo {
    position: relative;
    z-index: 2;
}

.detalhe-card h3 {
    margin: 0 0 8px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    text-transform: uppercase;
}

.detalhe-card a {
    color: var(--rosa);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}

.bloco-presentes-home {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 30px;
    padding: 44px 0 72px;
}

.presente-chamada p {
    color: var(--texto-suave);
}

.presentes-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* =========================================================
   5. LISTA DE PRESENTES
   ========================================================= */
.lista-lojas {
    margin: 24px auto 36px;
    padding: 24px;
    border: 1px solid var(--borda);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--sombra-card);
    max-width: 760px;
    text-align: center;
}

.lista-lojas h2 {
    margin: 0 0 14px;
    font-family: var(--fonte-titulo);
    color: var(--roxo);
    font-size: 24px;
}

.lista-lojas-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lista-lojas-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #e7bedf;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #fdf4fb);
    color: var(--roxo);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(140, 84, 172, 0.10);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lista-lojas-links a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fdf4fb, #f7e6f7);
    box-shadow: 0 10px 22px rgba(140, 84, 172, 0.16);
}

.presentes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.presente-card {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 18px;
    border: 1px solid #eadff0;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: var(--sombra-card);
}

.presente-card::after {
    content: "♡";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #ead9ef;
    border-radius: 10px;
    color: var(--rosa);
    background: #fff;
}

.presente-img {
    width: 100%;
    height: 190px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #fbf1ff);
}

.presente-img img {
    max-width: 100%;
    max-height: 185px;
    object-fit: contain;
}

.sem-img {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #fde9f6, #f0e2ff);
    font-size: 58px;
}

.presente-card h3 {
    min-height: 44px;
    margin: 8px 0;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: 16px;
}

.valor {
    margin: 6px 0 14px;
    color: #251957;
    font-size: 20px;
    font-weight: 900;
}

.grande-valor {
    font-size: 34px;
}

.estoque {
    margin-top: 0;
    color: var(--texto-suave);
    font-size: 13px;
}

.presente-horizontal {
    min-height: 165px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
    text-align: left;
}

.presente-horizontal .presente-img {
    height: 132px;
    margin: 0;
}

.presente-horizontal .presente-img img {
    max-height: 128px;
}

.presente-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vazio {
    grid-column: 1 / -1;
    min-height: 160px;
}

/* =========================================================
   6. PÁGINA O CASAL
   ========================================================= */
.casal-historia {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
}

.foto-casal-destaque,
.foto-slot,
.avatar-foto {
    display: grid;
    place-items: center;
    border: 1px dashed #d9b5e7;
    background: linear-gradient(135deg, #fff, #f4e5ff);
    color: var(--roxo);
    text-align: center;
}

.foto-casal-destaque {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    border-radius: 48% 52% 45% 55% / 48% 43% 57% 52%;
    box-shadow: var(--sombra);
    overflow: hidden;
    background: #fff;
}

.foto-casal-destaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.foto-casal-destaque::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 2px solid #d36ab5;
    border-radius: inherit;
    opacity: .55;
    transform: rotate(-5deg);
}

.foto-placeholder {
    position: relative;
    z-index: 2;
    font-family: var(--fonte-titulo);
    font-size: 28px;
}

.galeria-casal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.foto-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 18px;
    font-family: var(--fonte-titulo);
    font-size: 22px;
    border: 1px solid #e9d6ee;
    background: linear-gradient(135deg, #fff, #f8ecfb);
    color: var(--roxo);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    padding: 0;
    text-align: center;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.foto-slot span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    font-size: 14px;
}

.foto-slot small {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--fonte-principal);
    font-size: 12px;
    color: var(--texto-suave);
    background: rgba(255,255,255,.9);
    padding: 4px 10px;
    border-radius: 999px;
}

.foto-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
}

.foto-slot.alto,
.foto-slot.largo {
    grid-row: span 1;
    grid-column: span 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.foto-slot, .foto-slot.alto, .foto-slot.largo {
    background: #f8ecfb;
}

.texto-galeria {
    margin-top: 14px;
    text-align: center;
    color: var(--texto-suave);
    font-size: 14px;
}

/* =========================================================
   7. PÁGINA PADRINHOS
   ========================================================= */
.padrinhos-page {
    overflow: hidden;
}

.grid-padrinhos {
    /* Flex layout to center rows and handle incomplete last rows */
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 930px; /* constrain width so the cards align with other sections */
    margin: 0 auto;
}

/* Default card sizing inside the grid-padrinhos flex container */
.grid-padrinhos .pessoa-card {
    flex: 0 0 285px;
    max-width: 285px;
}

.grid-padrinhos.grid-6 {
    /* Use flexbox to center incomplete last rows responsively */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 930px;
}

.grid-padrinhos.grid-6 .pessoa-card {
    flex: 0 0 285px;
    max-width: 285px;
}

.grid-padrinhos.grid-7 {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 285px));
    justify-content: center;
    align-items: start;
    gap: 24px;
    margin: 0 auto;
}

.grid-padrinhos.grid-7 .padrinhos-linha {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 285px));
    justify-content: center;
    gap: 24px;
}

.grid-padrinhos.grid-7 .padrinhos-item-central {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.grid-padrinhos.grid-7 .pessoa-card {
    width: 100%;
    max-width: 285px;
}

.grid-padrinhos.grid-3,
.grid-padrinhos.grid-2,
.grid-padrinhos.grid-1 {
    display: grid !important;
    justify-content: center;
    gap: 24px;
    margin: 0 auto !important;
    width: 100%;
}

.grid-padrinhos.grid-3 {
    grid-template-columns: repeat(3, minmax(220px, 285px));
    max-width: 930px;
}

.grid-padrinhos.grid-2 {
    grid-template-columns: repeat(2, minmax(220px, 285px));
    max-width: 610px;
}

.grid-padrinhos.grid-1 {
    grid-template-columns: minmax(220px, 285px);
    max-width: 320px;
}

.especial-unico {
    max-width: 320px;
    margin: 0 auto;
}

.pessoa-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 24px 20px;
    border: 1px solid var(--borda);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    text-align: center;
    box-shadow: var(--sombra-card);
}

.pessoa-card::before {
    content: "";
    position: absolute;
    right: -46px;
    top: -60px;
    width: 120px;
    height: 214px;
    background: url('../img/flor-decorativa.png') no-repeat center / contain;
    opacity: .28;
    transform: rotate(-16deg);
}

.avatar-foto {
    position: relative;
    z-index: 2;
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    box-shadow: 0 8px 20px rgba(140, 84, 172, 0.16);
    font-family: var(--fonte-titulo);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.pessoa-card h3,
.pessoa-card p {
    position: relative;
    z-index: 2;
}

.pessoa-card h3 {
    margin: 0 0 8px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
}

.pessoa-card p {
    margin: 0;
    color: var(--texto-suave);
}

.bloco-titulo {
    margin-top: 54px;
}

.pessoa-card.destaque {
    border-color: #e7b1d5;
    background: linear-gradient(180deg, #fff, #fff5fb);
}

.pessoa-card.destaque-suave {
    background: linear-gradient(180deg, #fff, #f8efff);
}

/* =========================================================
   8. PÁGINA CERIMÔNIA
   ========================================================= */
.cerimonia-card {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cerimonia-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -100px;
    width: 220px;
    height: 390px;
    background: url('../img/flor-decorativa.png') no-repeat center / contain;
    opacity: .32;
    transform: scaleX(-1) rotate(-8deg);
}

.cerimonia-card > * {
    position: relative;
    z-index: 2;
}

.cerimonia-card h2 {
    margin: 8px 0 22px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: clamp(36px, 6vw, 56px);
}

.info-cerimonia {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-cerimonia div {
    padding: 20px;
    border: 1px solid var(--borda);
    border-radius: 16px;
    background: #fff;
}

.info-cerimonia span {
    display: block;
    color: var(--rosa);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.info-cerimonia strong {
    display: block;
    margin-top: 8px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
    font-size: 28px;
}

.recado-convidados {
    margin-top: 18px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff6fb, #f4eaff);
    text-align: left;
}

.recado-convidados h3 {
    margin: 0 0 8px;
    color: var(--roxo);
    font-family: var(--fonte-titulo);
}

/* =========================================================
   9. CONFIRMAÇÃO DE PRESENÇA NO PAINEL
   ========================================================= */
.codigo-card {
    padding: 34px;
}

.convite-encontrado {
    margin-bottom: 22px;
    text-align: center;
}

.lista-confirmacao {
    gap: 14px;
}

.linha-convidado {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: #fff;
}

.linha-convidado small {
    display: block;
    margin-top: 4px;
    color: var(--texto-suave);
}

.opcoes-presenca {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.opcoes-presenca label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.opcoes-presenca input {
    width: auto;
}

.aviso-publico {
    text-align: center;
}

/* =========================================================
   10. PAINEL ADMINISTRATIVO
   ========================================================= */
.rodape {
    padding: 32px 0;
    border-top: 1px solid #f0e5f5;
    background: linear-gradient(180deg, transparent, #f7edff);
    color: var(--texto-suave);
    text-align: center;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff5fb, #f2eaff);
}

.login-box {
    width: min(430px, 92%);
}

.dica {
    color: #80628e;
    font-size: 13px;
}

.linha-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-topo {
    position: static;
}

.admin-topo .logo-icone {
    display: none;
}

.resumo-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resumo-cards .card {
    text-align: center;
}

.resumo-cards strong {
    color: var(--rosa);
    font-size: 38px;
}

.admin-bloco {
    margin-bottom: 28px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    width: auto;
}

/* =========================================================
   11. RESPONSIVO / CELULAR
   ========================================================= */
@media (max-width: 1100px) {
    .menu {
        gap: 14px;
    }

    .menu a {
        font-size: 13px;
    }

    .hero-grid,
    .bloco-presentes-home,
    .casal-historia {
        grid-template-columns: 1fr;
    }

    .hero-foto-wrap {
        max-width: 640px;
        margin: auto;
    }

    .cards-detalhes,
    .presentes-grid,
    .presentes-preview,
    .grid-padrinhos.grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resumo-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .galeria-casal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body::before,
    body::after {
        opacity: .13;
    }

    .nav {
        flex-wrap: wrap;
        min-height: 76px;
    }

    .menu-btn {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
        padding: 8px 0 12px;
    }

    .menu.ativo {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .menu.ativo a {
        padding: 12px 8px;
    }

    .logo-texto {
        font-size: 23px;
    }

    .hero {
        min-height: auto;
        padding: 34px 0 48px;
    }

    .hero::before {
        width: 180px;
        height: 320px;
        opacity: .40;
    }

    .hero::after {
        display: none;
    }

    .hero-grid {
        gap: 8px;
    }

    .tag-linha {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .tag-linha span {
        width: 32px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .hero-subtitulo {
        font-size: 17px;
    }

    .hero-actions .btn-contorno {
        display: none;
    }

    .hero-foto-wrap {
        padding: 14px;
    }

    .hero-foto,
    .hero-foto img {
        min-height: 335px;
    }

    .save-date {
        right: 6px;
        bottom: 6px;
        width: 98px;
        height: 98px;
    }

    .save-date strong {
        font-size: 11px;
    }

    .save-date small {
        font-size: 7px;
    }

    .wave-top {
        height: 50px;
        margin-top: -30px;
    }

    .cards-detalhes,
    .presentes-grid,
    .presentes-preview,
    .grid-padrinhos.grid-6,
    .grid-padrinhos.grid-3,
    .grid-padrinhos.grid-2,
    .grid-padrinhos.grid-1,
    .resumo-cards,
    .info-cerimonia {
        grid-template-columns: 1fr;
    }

    .detalhe-card {
        grid-template-columns: 74px 1fr;
        padding: 22px;
    }

    .detalhe-card .icone {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .titulo-centro h2,
    .pagina h1,
    .presente-chamada h2 {
        font-size: 21px;
        letter-spacing: 2px;
    }

    .presente-horizontal {
        grid-template-columns: 118px 1fr;
        min-height: 145px;
    }

    .presente-horizontal .presente-img {
        height: 112px;
    }

    .linha-titulo {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagina {
        padding-top: 38px;
    }

    .form-grid,
    .linha-convidado {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .opcoes-presenca {
        display: grid;
        grid-template-columns: 1fr;
    }

    .foto-casal-destaque {
        height: 330px;
    }

    .galeria-casal {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .foto-slot.alto,
    .foto-slot.largo {
        grid-row: auto;
        grid-column: auto;
    }
}

/* Complementos usados em páginas internas */
.grid {
    display: grid;
    gap: 22px;
}

.grid.simples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 42px;
}

.grid.simples .card {
    text-align: center;
}

.pequeno {
    font-size: 14px;
}

.btn-rosa {
    background: linear-gradient(135deg, var(--rosa), #d9309a);
}

@media (max-width: 900px) {
    .grid.simples {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AJUSTES FINAIS - PADRINHOS E ADMIN
   =========================================================
   Esta parte corrige o alinhamento da página de padrinhos e
   deixa o botão de login menor e mais proporcional.
*/

.padrinhos-page {
    overflow: visible;
    max-width: 1120px;
}

.padrinhos-secao {
    width: 100%;
    margin: 0 auto 54px;
    clear: both;
}

.padrinhos-secao .bloco-titulo {
    margin: 0 0 22px;
}

.grid-padrinhos {
    width: 100%;
    display: grid;
    gap: 24px;
    align-items: stretch;
    justify-items: stretch;
}

.grid-padrinhos.grid-6 {
    grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.grid-padrinhos.grid-2 {
    max-width: 760px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(230px, 1fr));
}

.grid-padrinhos.grid-3 {
    max-width: 980px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.grid-padrinhos.grid-1 {
    max-width: 360px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.pessoa-card {
    width: 100%;
    min-width: 0;
    min-height: 285px;
    box-sizing: border-box;
}

.pessoa-card h3 {
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.25;
}

.pessoa-card p {
    line-height: 1.55;
}

.login-box .btn {
    width: auto;
    min-width: 150px;
    padding: 11px 34px;
    margin: 10px auto 0;
    display: block;
}

@media (max-width: 900px) {
    .grid-padrinhos.grid-6,
    .grid-padrinhos.grid-3 {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 620px) {
    .grid-padrinhos.grid-6,
    .grid-padrinhos.grid-3,
    .grid-padrinhos.grid-2,
    .grid-padrinhos.grid-1 {
        max-width: 360px;
        grid-template-columns: 1fr;
    }
}
