/* =====================================================
   VAI SER LINDO — Modelo 06 | Monograma Luxo Floral
   style.css v1.0 — Monograma luxo floral geométrico
   ===================================================== */

/* ---------- Variáveis CSS padrão (fallback) ---------- */
/* Fase 22B.1: estes valores servem apenas de fallback.            */
/* O <style> inline em index.php sempre redefine :root             */
/* com os valores da Aparência (aparencia_evento) + derivadas.     */
:root {
    --cor-fundo:      #1C1018;
    --cor-primaria:   #C4A882;
    --cor-secundaria: #6A3A4A;
    --cor-texto:      #F0E8DC;
    --fonte-titulo:   'Cormorant Garamond', Georgia, serif;
    --fonte-texto:    'Lato', sans-serif;

    /* Derivadas — fallback, sobrescritas dinamicamente */
    --cor-escura:     #2C2218;
    --cor-clara:      #F0EBE3;
    --cor-hero-ini:   #2C2218;
    --cor-hero-fim:   #5C4030;
    --cor-primaria-rgb:   196, 168, 130;
    --cor-secundaria-rgb: 106, 58, 74;
    --cor-texto-rgb:      240, 232, 220;
    --cor-fundo-rgb:      28, 16, 24;
    --sombra-leve:    0 2px 16px rgba(var(--cor-texto-rgb), 0.08);
    --sombra-media:   0 4px 28px rgba(var(--cor-texto-rgb), 0.12);
    --raio:           10px;
    --raio-grande:    16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--fonte-texto);
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cor-primaria); text-decoration: none; }
a:hover { opacity: .8; }

/* ---------- Layout base ---------- */
.tpl-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.tpl-center { text-align: center; }
.tpl-section { padding: 88px 0; }
.tpl-section-alt { background: var(--cor-clara); }

/* ---------- Tipografia ---------- */
.tpl-section-titulo {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--cor-primaria);
    letter-spacing: .02em;
    line-height: 1.2;
}
.tpl-section-sub {
    color: rgba(var(--cor-texto-rgb), .55);
    font-size: .9rem;
    letter-spacing: .04em;
    margin-top: 6px;
    font-style: italic;
}
.tpl-section-head {
    text-align: center;
    margin-bottom: 52px;
}
/* Linha decorativa fina */
.tpl-divisor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--cor-secundaria);
    margin-bottom: 14px;
    font-size: .85rem;
    letter-spacing: .3em;
}
.tpl-divisor::before, .tpl-divisor::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--cor-secundaria);
}
.tpl-divisor-linha {
    width: 48px;
    height: 1px;
    background: var(--cor-secundaria);
    margin: 14px auto 0;
}

/* ---------- Navbar ---------- */
.tpl-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 16px 0;
    transition: background .35s, box-shadow .35s, padding .35s;
}
.tpl-nav.scrolled {
    background: rgba(var(--cor-fundo-rgb), 0.97);
    box-shadow: 0 1px 20px rgba(var(--cor-texto-rgb), .08);
    backdrop-filter: blur(12px);
    padding: 10px 0;
}
.tpl-nav .tpl-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.tpl-nav-nome {
    display: none;
    font-family: var(--fonte-titulo);
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    transition: color .35s;
    letter-spacing: .04em;
}
.tpl-nav.scrolled .tpl-nav-nome { color: var(--cor-primaria); }
.tpl-nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.tpl-nav-links li a {
    font-size: .78rem;
    font-family: var(--fonte-texto);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all .25s;
    white-space: nowrap;
}
.tpl-nav.scrolled .tpl-nav-links li a { color: var(--cor-texto); }
.tpl-nav-links li a:hover { background: rgba(var(--cor-primaria-rgb), .12); color: var(--cor-primaria); }


/* ---------- Hero ---------- */
.tpl-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, var(--cor-hero-ini) 0%, var(--cor-hero-fim) 100%);
}
/* Textura sutil no hero */
.tpl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.tpl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Foto circular elegante */
.tpl-hero-foto-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 0 auto 20px;
}
.tpl-hero-foto-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
}
.tpl-hero-foto-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
}
.tpl-hero-foto {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.35);
    box-shadow: 0 12px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.1);
    display: block;
}

/* Nome do casal — destaque */
.tpl-hero-nome {
    font-family: var(--fonte-titulo);
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: .02em;
}

/* Linha decorativa do hero removida */
.tpl-hero-linha { display:none; }

/* Data em destaque */
.tpl-hero-data {
    color: rgba(255,255,255,.86);
    font-size: clamp(1.15rem, 2.8vw, 1.55rem);
    letter-spacing: .04em;
    text-transform: none;
    margin-top: 8px;
    font-family: var(--fonte-texto);
    font-weight: 400;
}

/* Chegou o grande dia */
.tpl-hero-chegou {
    color: var(--cor-secundaria);
    font-family: var(--fonte-titulo);
    font-size: 1.4rem;
    font-style: italic;
    margin: 12px 0;
}

/* Countdown clean */
.tpl-countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 20px 0 16px;
}
.tpl-cnt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
}
.tpl-cnt-num {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.9rem, 5.4vw, 2.75rem);
    font-weight: 400;
    color: #fff;
    line-height: 1;
}
.tpl-cnt-label {
    font-size: .65rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 4px;
}
.tpl-cnt-sep {
    font-size: 1.45rem;
    color: rgba(255,255,255,.2);
    padding: 0 4px;
    padding-top: 6px;
    align-self: flex-start;
}

/* Frase do casal */
.tpl-hero-frase {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.65;
    margin-top: 6px;
    font-family: var(--fonte-titulo);
    letter-spacing: .02em;
}
.tpl-hero-msg {
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    margin-top: 8px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Nossa História ---------- */
.tpl-historia-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    text-align: left;
}
.tpl-historia-foto {
    width: 100%;
    border-radius: var(--raio-grande);
    box-shadow: var(--sombra-media);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.tpl-historia-texto {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--cor-texto);
}
.tpl-historia-texto p { margin-bottom: 1rem; }

/* Só texto / só foto: centralizado */
.tpl-historia-so-texto { max-width: 680px; margin: 0 auto; text-align: center; font-size: 1.05rem; line-height: 1.9; }
.tpl-historia-so-foto { max-width: 520px; margin: 0 auto; }
.tpl-historia-so-foto img { border-radius: var(--raio-grande); box-shadow: var(--sombra-media); }

/* ---------- Galeria em carrossel ---------- */
.tpl-galeria-carousel {
    max-width: 760px;
    margin: 0 auto;
}
.tpl-galeria-principal {
    width: 100%;
    min-height: clamp(320px, 54vw, 500px);
    border-radius: var(--raio-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
    background: linear-gradient(180deg, var(--cor-clara) 0%, rgba(var(--cor-secundaria-rgb), .4) 100%);
    border: 1px solid rgba(var(--cor-secundaria-rgb), .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    cursor: pointer;
}
.tpl-galeria-principal img {
    width: auto;
    max-width: 100%;
    height: clamp(320px, 54vw, 500px);
    max-height: clamp(320px, 54vw, 500px);
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(var(--cor-texto-rgb), 0.10);
    background: transparent;
}
.tpl-galeria-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 2px 8px;
    scrollbar-color: var(--cor-primaria) transparent;
}
.tpl-galeria-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    flex: 0 0 auto;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, border-color .2s, transform .2s;
}
.tpl-galeria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tpl-galeria-thumb:hover,
.tpl-galeria-thumb.ativa {
    opacity: 1;
    border-color: var(--cor-primaria);
    transform: translateY(-2px);
}
/* Lightbox elegante */
.tpl-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(28, 20, 16, .94);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.tpl-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: var(--raio);
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.tpl-lb-fechar {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem;
    transition: background .2s;
}
.tpl-lb-ant, .tpl-lb-prox {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.6rem;
    transition: background .2s;
}
.tpl-lb-ant { left: 20px; }
.tpl-lb-prox { right: 20px; }
.tpl-lb-fechar:hover, .tpl-lb-ant:hover, .tpl-lb-prox:hover { background: rgba(255,255,255,.18); }

/* ---------- Vídeo ---------- */
.tpl-video-wrap { max-width: 680px; margin: 0 auto; }
.tpl-video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--raio-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
}
.tpl-video-ratio iframe {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
}

/* ---------- Padrinhos ---------- */
.tpl-padrinhos-msg {
    text-align: center;
    font-style: italic;
    color: rgba(var(--cor-texto-rgb), .55);
    max-width: 580px;
    margin: 0 auto 40px;
    font-size: .98rem;
    line-height: 1.75;
    font-family: var(--fonte-titulo);
}
.tpl-padrinhos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 28px 20px;
}
.tpl-padrinho-card { text-align: center; }
.tpl-padrinho-foto {
    width: 96px; height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 2px solid var(--cor-secundaria);
    background: var(--cor-clara);
    box-shadow: var(--sombra-leve);
}
.tpl-padrinho-foto img { width: 100%; height: 100%; object-fit: cover; }
.tpl-padrinho-avatar {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--cor-secundaria);
}
.tpl-padrinho-card h5 {
    font-family: var(--fonte-titulo);
    font-weight: 400;
    font-size: .98rem;
    color: var(--cor-primaria);
    margin-bottom: 3px;
}
.tpl-padrinho-card p {
    font-size: .75rem;
    color: rgba(var(--cor-texto-rgb), .45);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Local ---------- */
.tpl-locais-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.tpl-local-card {
    background: #fff;
    border-radius: var(--raio-grande);
    overflow: hidden;
    box-shadow: var(--sombra-leve);
    border: 1px solid rgba(var(--cor-secundaria-rgb), .4);
    transition: box-shadow .3s;
}
.tpl-local-card:hover { box-shadow: var(--sombra-media); }
.tpl-local-foto { overflow: hidden; background: #fff; display:block; }
.tpl-local-foto img { width: 100%; height: auto; object-fit: contain; transition: transform .5s; }
.tpl-local-card:hover .tpl-local-foto img { transform: none; }
.tpl-local-info { padding: 24px 28px; }
.tpl-local-tipo {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cor-secundaria);
    margin-bottom: 8px;
}
.tpl-local-info h4 {
    font-family: var(--fonte-titulo);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--cor-primaria);
    margin-bottom: 10px;
    line-height: 1.3;
}
.tpl-local-end, .tpl-local-data {
    color: rgba(var(--cor-texto-rgb), .55);
    font-size: .88rem;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.tpl-btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    background: transparent;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: .82rem;
    letter-spacing: .04em;
    transition: all .25s;
}
.tpl-btn-mapa:hover { background: var(--cor-primaria); color: #fff; }

/* ---------- Presentes / Pix ---------- */
.tpl-pix-box {
    max-width: 460px;
    margin: 0 auto 40px;
    text-align: center;
    background: #fff;
    border-radius: var(--raio-grande);
    padding: 36px 32px;
    box-shadow: var(--sombra-leve);
    border: 1px solid rgba(var(--cor-secundaria-rgb), .5);
}
.tpl-pix-icon { font-size: 2rem; margin-bottom: 12px; opacity: .7; }
.tpl-pix-box h4 {
    font-family: var(--fonte-titulo);
    font-size: 1.4rem;
    color: var(--cor-primaria);
    font-weight: 400;
    margin-bottom: 8px;
}
.tpl-pix-box p { color: rgba(var(--cor-texto-rgb), .55); font-size: .9rem; margin-bottom: 6px; }
.tpl-pix-tipo { color: rgba(var(--cor-texto-rgb), .45); font-size: .8rem; }
.tpl-pix-chave {
    background: var(--cor-fundo);
    border: 1px dashed var(--cor-secundaria);
    border-radius: var(--raio);
    padding: 12px 16px;
    font-family: monospace;
    font-size: .9rem;
    color: var(--cor-primaria);
    word-break: break-all;
    margin: 14px 0;
    letter-spacing: .05em;
}
.tpl-pix-nome { color: var(--cor-texto); font-size: .88rem; font-weight: 500; }
.tpl-pix-qr { width: 130px; margin: 14px auto; border-radius: var(--raio); }
.tpl-btn-pix {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    letter-spacing: .04em;
    margin-top: 12px;
    transition: opacity .2s;
    font-family: var(--fonte-texto);
}
.tpl-btn-pix:hover { opacity: .85; }
.tpl-btn-lista {
    display: inline-block;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 11px 28px;
    border-radius: 50px;
    font-size: .9rem;
    letter-spacing: .04em;
    margin-bottom: 36px;
    transition: all .25s;
}
.tpl-btn-lista:hover { background: var(--cor-primaria); color: #fff; }
.tpl-presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.tpl-presente-card {
    background: #fff;
    border-radius: var(--raio);
    padding: 20px;
    text-align: center;
    box-shadow: var(--sombra-leve);
    border: 1px solid rgba(var(--cor-secundaria-rgb), .3);
    transition: box-shadow .3s;
}
.tpl-presente-card:hover { box-shadow: var(--sombra-media); }
.tpl-presente-img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--raio); margin-bottom: 12px; }
.tpl-presente-icon { font-size: 2rem; margin-bottom: 10px; opacity: .5; }
.tpl-presente-card h5 {
    font-family: var(--fonte-texto);
    font-weight: 600;
    color: var(--cor-texto);
    font-size: .95rem;
    margin-bottom: 4px;
    line-height: 1.35;
}
.tpl-presente-desc { font-size: .8rem; color: rgba(var(--cor-texto-rgb), .45); margin-bottom: 6px; }
.tpl-presente-valor { font-size: .88rem; color: var(--cor-texto); font-weight: 600; margin-bottom: 12px; }
.tpl-btn-comprar {
    display: inline-block;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .78rem;
    letter-spacing: .04em;
    transition: all .2s;
}
.tpl-btn-comprar:hover { background: var(--cor-primaria); color: #fff; }

/* ---------- RSVP — fundo claro premium ---------- */
.tpl-rsvp { background: var(--cor-clara) !important; }
.tpl-rsvp .tpl-section-titulo { color: var(--cor-primaria); }
.tpl-rsvp .tpl-section-sub { color: rgba(var(--cor-texto-rgb), .55); }
.tpl-form {
    max-width: 560px;
    margin: 0 auto;
}
.tpl-form-group { margin-bottom: 18px; }
.tpl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.tpl-form label {
    display: block;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(var(--cor-texto-rgb), .55);
    margin-bottom: 7px;
}
.tpl-form input, .tpl-form select, .tpl-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(var(--cor-secundaria-rgb), .7);
    border-radius: var(--raio);
    background: #fff;
    color: var(--cor-texto);
    font-family: var(--fonte-texto);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.tpl-form input:focus, .tpl-form select:focus, .tpl-form textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(var(--cor-primaria-rgb), .1);
}
.tpl-form small { color: rgba(var(--cor-texto-rgb), .45); font-size: .78rem; display: block; margin-top: 4px; }
.tpl-btn-confirmar {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: .9rem;
    letter-spacing: .08em;
    cursor: pointer;
    font-family: var(--fonte-texto);
    transition: background .25s, transform .2s;
    text-transform: uppercase;
}
.tpl-btn-confirmar:hover { background: var(--cor-escura); transform: translateY(-1px); }
.tpl-rsvp-ok {
    text-align: center;
    color: #047857;
    font-size: 1rem;
    padding: 28px;
    background: #ecfdf5;
    border-radius: var(--raio-grande);
    border: 1px solid #86efac;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Mensagens — fundo seguindo a paleta ---------- */
.tpl-mensagens { background: var(--cor-fundo) !important; }
.tpl-form-msg .tpl-form-row { grid-template-columns: 1fr 2fr; }
.tpl-btn-msg {
    background: transparent;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-size: .85rem;
    letter-spacing: .06em;
    font-family: var(--fonte-texto);
    transition: all .25s;
    text-transform: uppercase;
}
.tpl-btn-msg:hover { background: var(--cor-primaria); color: #fff; }
.tpl-msg-ok {
    text-align: center;
    color: #047857;
    padding: 20px;
    background: #ecfdf5;
    border-radius: var(--raio);
    margin-bottom: 24px;
    font-style: italic;
    border: 1px solid #86efac;
}
.tpl-msgs-lista {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}
.tpl-msg-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--cor-fundo);
    border-radius: var(--raio);
    padding: 20px 22px;
    border: 1px solid rgba(var(--cor-secundaria-rgb), .35);
}
.tpl-msg-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cor-primaria);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fonte-titulo);
    font-size: 1rem;
    flex-shrink: 0;
    opacity: .85;
}
.tpl-msg-body strong {
    font-family: var(--fonte-titulo);
    font-weight: 400;
    color: var(--cor-primaria);
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}
.tpl-msg-body p { color: var(--cor-texto); font-size: .9rem; line-height: 1.65; }

/* ---------- Rodapé ---------- */
.tpl-footer {
    background: var(--cor-escura);
    color: rgba(255,255,255,.5);
    padding: 54px 20px;
    text-align: center;
}
.tpl-footer-marca {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}
.tpl-footer-marca p { margin-bottom: 8px; }
.tpl-footer-marca a { color: rgba(255,255,255,.72); text-decoration: underline; }
.tpl-footer-redes {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.tpl-footer-redes a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color .25s, border-color .25s, transform .25s, background .25s;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
}
.tpl-footer-redes a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
}
.tpl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ---------- Botão topo ---------- */
.tpl-topo {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity .35s, transform .2s;
    box-shadow: 0 4px 20px rgba(var(--cor-primaria-rgb), .35);
    z-index: 99;
}
.tpl-topo:hover { transform: translateY(-2px); }

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
    .tpl-section { padding: 60px 0; }
    .tpl-nav-links { display: none; }
    .tpl-historia-layout { grid-template-columns: 1fr; gap: 28px; }
    .tpl-historia-layout .tpl-historia-foto { max-height: 300px; }
    .tpl-form-row { grid-template-columns: 1fr; gap: 18px; }
    .tpl-form-msg .tpl-form-row { grid-template-columns: 1fr; }
    .tpl-galeria-principal img { height: 360px; }
    .tpl-galeria-thumb { width: 68px; height: 68px; }
    .tpl-padrinhos-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
    .tpl-hero-foto-wrap { width: 136px; height: 136px; }
    .tpl-hero-foto { width: 136px; height: 136px; }
    .tpl-locais-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tpl-padrinhos-grid { grid-template-columns: repeat(2, 1fr); }
    .tpl-galeria-principal img { height: 300px; }
    .tpl-hero-content { padding-top: 90px; }
}

/* =====================================================
   AJUSTES V5 — refinamento solicitado pelo Cícero
   - data mais perto do nome
   - carrossel sem cortar fotos
   - mensagem dos padrinhos maior
   - foto do local menor e centralizada
   ===================================================== */

/* Data mais próxima do nome dos noivos */
.tpl-hero-nome {
    margin-bottom: 4px !important;
}
.tpl-hero-data {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
}

/* Countdown um pouco mais compacto, mantendo elegância */
.tpl-countdown {
    margin-top: 12px !important;
    margin-bottom: 14px !important;
}
.tpl-cnt-num {
    font-size: clamp(1.55rem, 4.2vw, 2.25rem) !important;
}
.tpl-cnt-item {
    min-width: 46px !important;
}
.tpl-cnt-sep {
    font-size: 1.15rem !important;
    padding-top: 4px !important;
}

/* Galeria/carrossel: exibir a foto inteira, sem cortar cabeça/corpo */
.tpl-galeria-principal {
    background: rgba(255,255,255,.58) !important;
}
.tpl-galeria-principal img {
    width: 100% !important;
    height: clamp(340px, 54vw, 500px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: rgba(255,255,255,.55) !important;
}

/* Mantém as miniaturas bonitas, mas sem distorcer */
.tpl-galeria-thumb img {
    object-fit: cover !important;
    object-position: center center !important;
}

/* Texto opcional dos padrinhos mais legível */
.tpl-padrinhos-msg {
    font-size: clamp(1.08rem, 2vw, 1.28rem) !important;
    line-height: 1.85 !important;
    max-width: 760px !important;
    color: var(--cor-primaria) !important;
    opacity: .9 !important;
}

/* Local do casamento: foto pequena, centralizada e inteira */
.tpl-locais-wrap {
    justify-items: center !important;
}
.tpl-local-card {
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tpl-local-foto {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 24px 0 !important;
    background: rgba(var(--cor-fundo-rgb), .92) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}
.tpl-local-foto img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 260px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 26px rgba(var(--cor-texto-rgb),.08) !important;
}
.tpl-local-info {
    text-align: center !important;
    padding-top: 20px !important;
}
.tpl-local-end,
.tpl-local-data {
    justify-content: center !important;
}

@media (max-width: 768px) {
    .tpl-galeria-principal img {
        height: 360px !important;
    }
    .tpl-local-foto img {
        max-height: 220px !important;
    }
}

@media (max-width: 480px) {
    .tpl-galeria-principal img {
        height: 300px !important;
    }
    .tpl-local-foto {
        padding: 18px 18px 0 !important;
    }
    .tpl-local-foto img {
        max-height: 190px !important;
    }
}


@media (max-width: 768px) {
    .tpl-galeria-principal {
        padding: 12px;
        min-height: 300px;
    }
    .tpl-galeria-principal img {
        height: 300px;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .tpl-galeria-principal {
        padding: 10px;
        min-height: 260px;
        border-radius: 14px;
    }
    .tpl-galeria-principal img {
        height: 260px;
        max-height: 260px;
        border-radius: 10px;
    }
}


/* =====================================================
   AJUSTES V7 — Padrinhos + Local refinado
   ===================================================== */

/* Mensagem dos padrinhos mais perto do título */
.tpl-padrinhos .tpl-section-head {
    margin-bottom: 18px;
}
.tpl-padrinhos .tpl-divisor-linha {
    margin-top: 10px;
}
.tpl-padrinhos-msg {
    margin: 0 auto 38px;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.7;
    color: var(--cor-primaria);
    opacity: .82;
}

/* Local do casamento mais limpo e adulto, sem emojis nos detalhes */
.tpl-local .tpl-section-head {
    margin-bottom: 36px;
}
.tpl-locais-wrap {
    max-width: 720px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    align-items: start;
}
.tpl-local-card {
    text-align: center;
    padding: 30px 28px;
    background: rgba(255,255,255,.82);
}
.tpl-local-foto {
    width: 100%;
    max-width: 230px;
    margin: 0 auto 22px;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 26px rgba(var(--cor-texto-rgb), 0.10);
}
.tpl-local-foto img {
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    border-radius: 14px;
}
.tpl-local-info {
    padding: 0;
}
.tpl-local-tipo {
    font-family: var(--fonte-texto);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--cor-secundaria);
    margin-bottom: 10px;
}
.tpl-local-info h4 {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--cor-primaria);
    margin-bottom: 10px;
}
.tpl-local-end,
.tpl-local-data {
    justify-content: center;
    display: block;
    font-size: .95rem;
    color: rgba(var(--cor-texto-rgb), .58);
    margin-bottom: 6px;
    line-height: 1.6;
}
.tpl-btn-mapa {
    margin-top: 18px;
    font-size: .82rem;
    padding: 8px 20px;
}

@media (max-width: 768px) {
    .tpl-padrinhos .tpl-section-head { margin-bottom: 14px; }
    .tpl-padrinhos-msg { margin-bottom: 30px; }
    .tpl-local-card { padding: 26px 22px; }
    .tpl-local-foto { max-width: 210px; }
    .tpl-local-foto img { max-height: 210px; }
}

/* =====================================================
   AJUSTES V8 — Hero mais light / bege elegante
   Fase 22B.1: :root fixo removido — agora 100% dinâmico
   via variáveis derivadas no <style> inline
   ===================================================== */

/* Navbar clara desde o topo */
.tpl-nav {
    background: rgba(var(--cor-fundo-rgb), 0.72);
    backdrop-filter: blur(10px);
}
.tpl-nav .tpl-nav-links li a {
    color: rgba(var(--cor-texto-rgb), 0.84) !important;
}
.tpl-nav .tpl-nav-links li a:hover {
    color: var(--cor-primaria) !important;
    background: rgba(var(--cor-primaria-rgb), 0.10) !important;
}
.tpl-nav.scrolled {
    background: rgba(var(--cor-fundo-rgb), 0.95);
}

/* Hero com visual leve em bege */
.tpl-hero {
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 34%),
        linear-gradient(180deg, var(--cor-hero-ini) 0%, var(--cor-hero-fim) 100%) !important;
}
.tpl-hero::before {
    opacity: .45;
}

.tpl-hero-foto-wrap::before {
    border: 1px solid rgba(var(--cor-primaria-rgb), .20);
}
.tpl-hero-foto-wrap::after {
    border: 1px solid rgba(var(--cor-primaria-rgb), .13);
}
.tpl-hero-foto {
    border: 4px solid rgba(255,255,255,.72);
    box-shadow: 0 12px 40px rgba(var(--cor-texto-rgb), .12), 0 0 0 1px rgba(var(--cor-primaria-rgb), .10);
}

.tpl-hero-nome {
    color: var(--cor-primaria) !important;
    text-shadow: none;
}
.tpl-hero-data {
    color: var(--cor-texto) !important;
    font-weight: 500;
}
.tpl-hero-chegou {
    color: var(--cor-primaria) !important;
}
.tpl-cnt-num {
    color: var(--cor-primaria) !important;
}
.tpl-cnt-label {
    color: rgba(var(--cor-texto-rgb), .72) !important;
}
.tpl-cnt-sep {
    color: rgba(var(--cor-primaria-rgb), .28) !important;
}
.tpl-hero-frase {
    color: rgba(var(--cor-texto-rgb), .85) !important;
}
.tpl-hero-msg {
    color: rgba(var(--cor-texto-rgb), .65) !important;
}

/* Rodapé harmonizado com a paleta */
.tpl-footer {
    background: var(--cor-clara);
}

@media (max-width: 768px) {
    .tpl-nav {
        background: rgba(var(--cor-fundo-rgb), 0.88);
    }
}


/* =====================================================
   AJUSTES V9 — Paleta light também no rodapé e painel
   Fase 22B.1: agora 100% dinâmico via variáveis derivadas
   ===================================================== */

.tpl-hero {
    background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.18) 34%, rgba(255,255,255,0) 62%),
        linear-gradient(180deg, var(--cor-clara) 0%, var(--cor-secundaria) 100%) !important;
}

.tpl-footer {
    background: var(--cor-clara) !important;
    color: rgba(var(--cor-texto-rgb), .66) !important;
    border-top: 1px solid rgba(var(--cor-secundaria-rgb), .20);
}
.tpl-footer-marca {
    color: rgba(var(--cor-texto-rgb), .66) !important;
}
.tpl-footer-marca a {
    color: var(--cor-primaria) !important;
}
.tpl-footer-redes a {
    color: var(--cor-primaria) !important;
}

.tpl-topo {
    background: var(--cor-primaria) !important;
    box-shadow: 0 4px 20px rgba(var(--cor-secundaria-rgb), .28) !important;
}

/* =====================================================
   AJUSTES V10 — Hero + countdown + galeria + local + rodapé
   ===================================================== */

/* Menos vácuo acima da foto e foto circular maior */
.tpl-hero {
    align-items: flex-start !important;
    min-height: 100vh !important;
}
.tpl-hero-content {
    padding-top: 86px !important;
    padding-bottom: 72px !important;
    max-width: 720px !important;
}
.tpl-hero-foto-wrap {
    width: 310px !important;
    height: 310px !important;
    margin-bottom: 22px !important;
}
.tpl-hero-foto {
    width: 310px !important;
    height: 310px !important;
}
.tpl-hero-nome {
    margin-bottom: 0 !important;
}
.tpl-hero-data {
    margin-top: -2px !important;
    margin-bottom: 18px !important;
    font-size: clamp(1.35rem, 3vw, 1.8rem) !important;
}

/* Contagem regressiva com título e números dentro de caixas */
.tpl-count-title {
    font-family: var(--fonte-texto);
    color: rgba(var(--cor-texto-rgb),.72);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.tpl-countdown {
    gap: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}
.tpl-cnt-item {
    min-width: 72px !important;
    padding: 10px 8px 8px !important;
    border: 1px solid rgba(var(--cor-secundaria-rgb),.22) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.46) !important;
    box-shadow: 0 8px 24px rgba(var(--cor-texto-rgb),.06) !important;
}
.tpl-cnt-num {
    font-size: clamp(1.45rem, 3.7vw, 2.2rem) !important;
}
.tpl-cnt-label {
    margin-top: 2px !important;
    font-size: .58rem !important;
}
.tpl-cnt-sep {
    display: none !important;
}
.tpl-hero-frase {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
}

/* Vídeo: texto de apoio maior */
.tpl-video .tpl-section-sub {
    font-size: clamp(1.05rem, 2vw, 1.22rem) !important;
    line-height: 1.6 !important;
    color: var(--cor-primaria) !important;
    opacity: .82 !important;
}

/* Galeria: sem quadro/fundo atrás da foto principal */
.tpl-galeria-carousel {
    max-width: 780px !important;
}
.tpl-galeria-principal {
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.tpl-galeria-principal img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 540px !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}
.tpl-galeria-thumbs {
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Padrinhos: mensagem mais próxima e mais legível */
.tpl-padrinhos .tpl-section-head {
    margin-bottom: 12px !important;
}
.tpl-padrinhos-msg {
    margin-top: 0 !important;
    margin-bottom: 34px !important;
    font-size: clamp(1.16rem, 2.2vw, 1.4rem) !important;
    line-height: 1.65 !important;
}

/* Local: cerimônia sem emojis, escura e mais elegante; sem data/horário */
.tpl-local-tipo {
    font-family: var(--fonte-titulo) !important;
    text-transform: none !important;
    letter-spacing: .02em !important;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
    font-weight: 400 !important;
    color: var(--cor-texto) !important;
    margin-bottom: 6px !important;
}
.tpl-local-info h4 {
    margin-bottom: 8px !important;
}
.tpl-local-data {
    display: none !important;
}
.tpl-local-foto {
    max-width: 230px !important;
    margin-bottom: 18px !important;
    box-shadow: none !important;
}
.tpl-local-foto img {
    max-height: 230px !important;
    box-shadow: 0 8px 26px rgba(var(--cor-texto-rgb),.08) !important;
}

/* Rodapé: ícones SVG no lugar de emoji e link da marca */


@media (max-width: 768px) {
    .tpl-hero-content { padding-top: 78px !important; }
    .tpl-hero-foto-wrap, .tpl-hero-foto {
        width: 230px !important;
        height: 230px !important;
    }
    .tpl-cnt-item {
        min-width: 58px !important;
        padding: 8px 6px 7px !important;
    }
    .tpl-galeria-principal img {
        max-height: 430px !important;
    }
}
@media (max-width: 480px) {
    .tpl-hero-foto-wrap, .tpl-hero-foto {
        width: 190px !important;
        height: 190px !important;
    }
    .tpl-countdown {
        gap: 5px !important;
    }
    .tpl-cnt-item {
        min-width: 50px !important;
    }
    .tpl-galeria-principal img {
        max-height: 360px !important;
    }
}


/* =====================================================
   PACOTE 1 — Correções de tipografia e fontes
   ===================================================== */

/* Local — tipo, endereço e dados usam fonte de texto */
.tpl-local-tipo,
.tpl-local-end,
.tpl-local-data { font-family: var(--fonte-texto); }

/* Padrinhos — função usa fonte de texto */
.tpl-padrinho-card p { font-family: var(--fonte-texto); }

/* Presentes — nome e valor usam fonte de texto */
.tpl-presente-card h5,
.tpl-presente-desc,
.tpl-presente-valor { font-family: var(--fonte-texto); font-style: normal; }

/* Pix — chave e nome usam fonte de texto */
.tpl-pix-chave,
.tpl-pix-nome,
.tpl-pix-tipo { font-family: var(--fonte-texto); }

/* Mensagens — texto usa fonte de texto */
.tpl-msg-body p,
.tpl-form label,
.tpl-form input,
.tpl-form select,
.tpl-form textarea { font-family: var(--fonte-texto); }

/* Countdown — sem herança acidental de fonte-titulo em label */
.tpl-cnt-label { font-family: var(--fonte-texto); }

/* Frase do casal e mensagem inicial — fonte-titulo (itálico elegante) */
.tpl-hero-frase { font-family: var(--fonte-titulo); }
.tpl-hero-msg { font-family: var(--fonte-texto); }

/* Botão mapa — sem emoji, alinhamento */
.tpl-btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
    background: transparent;
    border: 1px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 7px 20px;
    border-radius: 50px;
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .25s;
    font-family: var(--fonte-texto);
}
.tpl-btn-mapa:hover { background: var(--cor-primaria); color: #fff; }

/* Menu — todos os links iguais, sem destaque especial no confirmar */
.tpl-nav-links li a {
    font-size: .78rem;
    font-family: var(--fonte-texto);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    padding: 6px 14px;
    border-radius: 50px;
    transition: all .25s;
    white-space: nowrap;
}
.tpl-nav.scrolled .tpl-nav-links li a { color: var(--cor-texto); }
.tpl-nav-links li a:hover,
.tpl-nav-links li a.ativa { background: rgba(var(--cor-primaria-rgb),.12); color: var(--cor-primaria); }

/* Pix box — sem ícone emoji no topo */
.tpl-pix-box > h4 { margin-top: 4px; }


/* =====================================================
   PACOTE 1 REVISADO — correções finais de segurança
   ===================================================== */

/* Countdown: números também usam fonte de texto, não fonte de título */
.tpl-cnt-num {
    font-family: var(--fonte-texto) !important;
    font-weight: 600 !important;
}

/* Mensagem dos padrinhos usa fonte de texto em itálico */
.tpl-padrinhos-msg {
    font-family: var(--fonte-texto) !important;
    font-style: italic !important;
}

/* Nome do local/igreja usa fonte de texto para não ficar manuscrito/ilegível */
.tpl-local-info h4 {
    font-family: var(--fonte-texto) !important;
    font-weight: 600 !important;
}


/* =====================================================
   MODELO 06 — Monograma Luxo Floral
   Hero: iniciais + hexágono + ramos florais line art
   Fase 22F — estilos próprios (m06-*)
   ===================================================== */

/* ---------- Hero ---------- */
.m06-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--cor-fundo);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background floral line art */
.m06-bg {
    position: absolute;
    inset: 0;
    color: var(--cor-texto);
    pointer-events: none;
    z-index: 1;
}
.m06-bg svg { width: 100%; height: 100%; display: block; }

/* Iniciais no canto superior esquerdo */
.m06-corner {
    position: absolute;
    top: 28px;
    left: 36px;
    font-family: var(--fonte-titulo);
    font-size: .82rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: .22em;
    color: var(--cor-primaria);
    opacity: .75;
    z-index: 4;
    pointer-events: none;
}

/* Conteúdo central */
.m06-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 32px;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Frame geométrico: hexágono + retângulo */
.m06-geo-wrap {
    position: relative;
    width: clamp(240px, 38vw, 320px);
    height: clamp(240px, 38vw, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.m06-hex-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--cor-primaria);
    display: block;
}

/* Monograma central */
.m06-mono {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m06-mono-ini {
    font-family: var(--fonte-titulo);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3.0rem, 8vw, 5.2rem);
    color: var(--cor-texto);
    letter-spacing: .06em;
    line-height: 1;
    white-space: nowrap;
}

/* Nome do casal */
.m06-nome {
    font-family: var(--fonte-texto);
    font-size: clamp(.7rem, 1.4vw, .85rem);
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--cor-primaria);
    opacity: .8;
    margin-bottom: 12px;
}

/* Data */
.m06-data {
    font-family: var(--fonte-titulo);
    font-style: italic;
    font-size: clamp(.95rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: .05em;
    color: rgba(var(--cor-texto-rgb), .7);
    margin-bottom: 24px;
}

/* Chegou o dia */
.m06-chegou {
    font-family: var(--fonte-titulo);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--cor-primaria);
    margin-bottom: 12px;
}

/* Countdown */
.m06-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.m06-cnt-item {
    text-align: center;
    min-width: 60px;
}
.m06-cnt-num {
    display: block;
    font-family: var(--fonte-titulo);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--cor-texto);
    line-height: 1;
}
.m06-cnt-label {
    display: block;
    margin-top: 4px;
    font-family: var(--fonte-texto);
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(var(--cor-texto-rgb), .5);
}
.m06-cnt-sep {
    width: 1px;
    height: 28px;
    background: rgba(var(--cor-primaria-rgb), .35);
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 18px;
}

/* Frase */
.m06-frase {
    font-family: var(--fonte-titulo);
    font-style: italic;
    font-size: clamp(.9rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    color: rgba(var(--cor-texto-rgb), .6);
    max-width: 420px;
    margin-top: 4px;
}
.m06-msg {
    font-family: var(--fonte-texto);
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(var(--cor-texto-rgb), .5);
    max-width: 400px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .m06-corner { top: 20px; left: 22px; font-size: .74rem; }
    .m06-hero-content { padding: 72px 24px 60px; }
    .m06-geo-wrap { width: clamp(200px, 70vw, 260px); height: clamp(200px, 70vw, 260px); }
    .m06-cnt-sep { height: 22px; margin-bottom: 14px; }
}

/* =====================================================
   HOTFIX 22F.1 — Ajustes Modelo 06
   1. Nome do casal maior e mais presente
   2. Contraste para paletas claras
   As regras m06 e tpl já usam var(--cor-texto/primaria),
   então elas adaptam bem. Os problemas eram em:
   a) .m06-nome (pequeno demais)
   b) nav/hero original que usava branco fixo
   c) seções herdadas do modelo01 com rgba(255,255,255)
   ===================================================== */

/* ── 1. NOME DO CASAL: maior e mais presente ───────── */
.m06-nome {
    font-size: clamp(1.0rem, 2.2vw, 1.6rem) !important;
    letter-spacing: .26em !important;
    opacity: 1 !important;
}

/* ── 2. NAV: trocar branco fixo por variáveis dinâmicas */
.tpl-nav-nome {
    color: rgba(var(--cor-texto-rgb), .90) !important;
}
.tpl-nav-links li a {
    color: rgba(var(--cor-texto-rgb), .75) !important;
}

/* ── 3. HERO ORIGINAL (tpl-hero): só afeta se modelo06
        usar .tpl-hero — mas nosso hero é .m06-hero,
        então essa regra garante segurança caso carregue */
.tpl-hero-nome    { color: var(--cor-texto) !important; }
.tpl-hero-data    { color: var(--cor-primaria) !important; opacity: .9; }
.tpl-hero-frase   { color: rgba(var(--cor-texto-rgb), .82) !important; }
.tpl-hero-msg     { color: rgba(var(--cor-texto-rgb), .65) !important; }
.tpl-cnt-num      { color: var(--cor-primaria) !important; }
.tpl-cnt-label    { color: rgba(var(--cor-texto-rgb), .65) !important; }

/* ── 4. SEÇÕES HERDADAS: títulos e textos ───────────── */
/* Subtítulos das seções */
.tpl-section-sub {
    color: rgba(var(--cor-texto-rgb), .72) !important;
}

/* Cards de padrinhos e local */
.tpl-padrinho-cargo,
.tpl-padrinho-grupo {
    color: rgba(var(--cor-texto-rgb), .68) !important;
}

/* ── 5. RSVP: labels e textos ───────────────────────── */
.tpl-rsvp-label,
.tpl-rsvp-sub {
    color: rgba(var(--cor-texto-rgb), .82) !important;
}

/* ── 6. MENSAGENS: textos ───────────────────────────── */
.tpl-msg-texto,
.tpl-msg-autor,
.tpl-msg-data {
    color: rgba(var(--cor-texto-rgb), .82) !important;
}

/* ── 7. PRESENTES: textos ───────────────────────────── */
.tpl-presente-nome,
.tpl-presente-desc,
.tpl-presente-status {
    color: rgba(var(--cor-texto-rgb), .82) !important;
}

/* ── 8. RODAPÉ: adaptar para paleta dinâmica ────────── */
.tpl-footer {
    background: var(--cor-clara) !important;
    color: rgba(var(--cor-texto-rgb), .66) !important;
}
.tpl-footer-marca {
    color: rgba(var(--cor-texto-rgb), .66) !important;
}
.tpl-footer-marca a {
    color: var(--cor-primaria) !important;
}
.tpl-footer-redes a {
    color: var(--cor-primaria) !important;
}
.tpl-topo {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}

/* =====================================================
   HOTFIX 22F.2 — Modelo 06: contraste cards claros + fonte do nome
   ===================================================== */

/* ── 1. NOME DO CASAL: usar fonte_titulo (corrigir font-family) ─ */
.m06-nome {
    font-family: var(--fonte-titulo) !important;
    font-style: italic !important;
    font-size: clamp(1.1rem, 2.4vw, 1.8rem) !important;
    font-weight: 400 !important;
    letter-spacing: .18em !important;
    color: var(--cor-texto) !important;
    opacity: 1 !important;
}

/* ── 2. TÍTULOS DE SEÇÃO: usar cor-texto em vez de cor-primaria ─ */
/* (cor-primaria pode ser clara em paletas escuras como bordô)      */
.tpl-section-titulo {
    color: var(--cor-texto) !important;
}
/* RSVP: dentro de .tpl-rsvp, cor-primaria ainda faz sentido se
   o fundo claro e a primária for escura o suficiente. Manter por paleta */
.tpl-rsvp .tpl-section-titulo {
    color: var(--cor-texto) !important;
}
.tpl-section-sub {
    color: rgba(var(--cor-texto-rgb), .68) !important;
}

/* ── 3. GALERIA: título, thumbs e barra ───────────────────────── */
/* Barra de thumbnails recebe um fundo sutil para não desaparecer */
.tpl-galeria-thumbs {
    background: rgba(var(--cor-fundo-rgb), .7) !important;
    padding: 6px !important;
    border-radius: var(--raio) !important;
}
.tpl-galeria-thumb {
    opacity: .75 !important;
    border-color: rgba(var(--cor-texto-rgb), .15) !important;
}
.tpl-galeria-thumb:hover,
.tpl-galeria-thumb.ativa {
    opacity: 1 !important;
    border-color: var(--cor-primaria) !important;
}

/* ── 4. CARDS DO LOCAL: textos dentro de fundo branco ─────────── */
.tpl-local-tipo {
    color: var(--cor-primaria) !important;
    opacity: .9 !important;
}
.tpl-local-info h4 {
    color: var(--cor-escura, #2A2020) !important;
}
.tpl-local-end,
.tpl-local-data {
    color: rgba(var(--cor-texto-rgb), .82) !important;
}
.tpl-btn-mapa {
    color: var(--cor-escura, var(--cor-primaria)) !important;
    border-color: var(--cor-primaria) !important;
}
.tpl-btn-mapa:hover {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}

/* ── 5. CARDS DE PRESENTES: texto dentro de fundo branco ──────── */
.tpl-presente-card h5 {
    color: var(--cor-escura, #2A2020) !important;
}
.tpl-presente-desc {
    color: rgba(var(--cor-texto-rgb), .75) !important;
}
.tpl-presente-valor {
    color: var(--cor-escura, var(--cor-texto)) !important;
}
.tpl-presente-icon {
    opacity: .65 !important;
    color: var(--cor-primaria) !important;
}
.tpl-btn-comprar {
    color: var(--cor-escura, var(--cor-primaria)) !important;
    border-color: var(--cor-primaria) !important;
}
.tpl-btn-comprar:hover {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}
/* Status "Presente já escolhido" */
.tpl-presente-escolhido,
.tpl-presente-status {
    color: rgba(var(--cor-texto-rgb), .72) !important;
    background: rgba(var(--cor-secundaria-rgb), .25) !important;
}

/* ── 6. RSVP: label, campos e botão ───────────────────────────── */
.tpl-form label {
    color: rgba(var(--cor-texto-rgb), .72) !important;
}
.tpl-form input,
.tpl-form select,
.tpl-form textarea {
    color: var(--cor-escura, #1A1A1A) !important;
    border-color: rgba(var(--cor-texto-rgb), .25) !important;
}
.tpl-form input::placeholder,
.tpl-form textarea::placeholder {
    color: rgba(var(--cor-texto-rgb), .42) !important;
}
.tpl-form small {
    color: rgba(var(--cor-texto-rgb), .52) !important;
}
/* Botão confirmar: usar cor escura da paleta para ter contraste */
.tpl-btn-confirmar {
    background: var(--cor-escura, var(--cor-primaria)) !important;
    color: #fff !important;
}
.tpl-btn-confirmar:hover {
    background: var(--cor-primaria) !important;
    color: #fff !important;
    opacity: .9;
}

/* ── 7. Botão Comprar (presentes por link) ─────────────────────── */
.tpl-btn-lista {
    color: var(--cor-escura, var(--cor-primaria)) !important;
    border-color: var(--cor-primaria) !important;
}
.tpl-btn-lista:hover {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}

/* =====================================================
   HOTFIX 22F.2B — Correção final: texto escuro dentro de cards claros
   e contraste específico em Galeria / RSVP / Local / Presentes.
   Mantém o layout do Modelo 06 e só ajusta leitura.
   ===================================================== */

/* Nome do casal no hero deve obedecer a fonte de títulos escolhida no painel */
.m06-nome {
    font-family: var(--fonte-titulo) !important;
    font-style: italic !important;
}

/* Seções com fundo claro precisam de título em tom escuro da paleta */
.tpl-galeria .tpl-section-titulo,
.tpl-rsvp .tpl-section-titulo {
    color: var(--cor-escura, var(--cor-texto)) !important;
}
.tpl-galeria .tpl-section-sub,
.tpl-rsvp .tpl-section-sub {
    color: var(--cor-escura, var(--cor-texto)) !important;
    opacity: .74 !important;
}
.tpl-galeria .tpl-divisor,
.tpl-rsvp .tpl-divisor {
    color: var(--cor-escura, var(--cor-texto)) !important;
    opacity: .72 !important;
}
.tpl-galeria .tpl-divisor::before,
.tpl-galeria .tpl-divisor::after,
.tpl-rsvp .tpl-divisor::before,
.tpl-rsvp .tpl-divisor::after,
.tpl-galeria .tpl-divisor-linha,
.tpl-rsvp .tpl-divisor-linha {
    background: var(--cor-escura, var(--cor-texto)) !important;
    opacity: .58 !important;
}

/* Galeria: barra de miniaturas visível em paletas claras e escuras */
.tpl-galeria-thumbs {
    background: rgba(var(--cor-fundo-rgb), .68) !important;
    border: 1px solid rgba(var(--cor-primaria-rgb), .22) !important;
    scrollbar-color: var(--cor-escura, var(--cor-primaria)) rgba(var(--cor-fundo-rgb), .32) !important;
}
.tpl-galeria-thumbs::-webkit-scrollbar { height: 8px; }
.tpl-galeria-thumbs::-webkit-scrollbar-track {
    background: rgba(var(--cor-fundo-rgb), .32) !important;
    border-radius: 999px;
}
.tpl-galeria-thumbs::-webkit-scrollbar-thumb {
    background: var(--cor-escura, var(--cor-primaria)) !important;
    border-radius: 999px;
}
.tpl-galeria-thumb:hover,
.tpl-galeria-thumb.ativa {
    border-color: var(--cor-escura, var(--cor-primaria)) !important;
}

/* Cards claros: texto sempre escuro dentro do card */
.tpl-local-card,
.tpl-presente-card {
    color: var(--cor-escura, #201817) !important;
}
.tpl-local-tipo,
.tpl-local-info h4,
.tpl-local-end,
.tpl-local-data,
.tpl-presente-card h5,
.tpl-presente-card p,
.tpl-presente-desc,
.tpl-presente-valor,
.tpl-badge-pix {
    color: var(--cor-escura, #201817) !important;
}
.tpl-local-end,
.tpl-local-data,
.tpl-presente-desc,
.tpl-badge-pix {
    opacity: .78 !important;
}
.tpl-presente-icon,
.tpl-presente-icon svg {
    color: var(--cor-escura, var(--cor-primaria)) !important;
    stroke: var(--cor-escura, var(--cor-primaria)) !important;
    opacity: .52 !important;
}
.tpl-btn-mapa,
.tpl-btn-comprar,
.tpl-btn-lista {
    color: var(--cor-escura, var(--cor-primaria)) !important;
    border-color: var(--cor-escura, var(--cor-primaria)) !important;
}
.tpl-btn-mapa:hover,
.tpl-btn-comprar:hover,
.tpl-btn-lista:hover {
    background: var(--cor-escura, var(--cor-primaria)) !important;
    color: #fff !important;
}

/* RSVP: leitura dos campos e botão em cor escura quando a seção é clara */
.tpl-rsvp .tpl-form label,
.tpl-rsvp .tpl-form small {
    color: var(--cor-escura, #201817) !important;
    opacity: .72 !important;
}
.tpl-rsvp .tpl-form input,
.tpl-rsvp .tpl-form select,
.tpl-rsvp .tpl-form textarea {
    color: var(--cor-escura, #201817) !important;
    background: #fff !important;
    border-color: rgba(var(--cor-primaria-rgb), .35) !important;
}
.tpl-rsvp .tpl-form input::placeholder,
.tpl-rsvp .tpl-form textarea::placeholder {
    color: var(--cor-escura, #201817) !important;
    opacity: .48 !important;
}
.tpl-rsvp .tpl-btn-confirmar {
    background: var(--cor-escura, var(--cor-primaria)) !important;
    color: #fff !important;
}
.tpl-rsvp .tpl-btn-confirmar:hover {
    background: var(--cor-primaria) !important;
    color: #fff !important;
}

/* =====================================================
   HOTFIX 22F.3 — Modelo 06: nome do casal legível em fonte cursiva
   Remove a caixa alta forçada do nome do casal no hero.
   Mantém as iniciais do monograma intactas.
   ===================================================== */
.m06-nome {
    text-transform: none !important;
    letter-spacing: .04em !important;
    font-family: var(--fonte-titulo) !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

/* =====================================================
   HOTFIX 22F.4 — Modelo 06: nome do casal maior no hero
   Mantém texto sem caixa alta para fontes cursivas.
   ===================================================== */
.m06-nome {
    font-size: clamp(1.55rem, 4.2vw, 3.2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    font-family: var(--fonte-titulo) !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

@media (max-width: 640px) {
    .m06-nome {
        font-size: clamp(1.35rem, 8vw, 2.25rem) !important;
        line-height: 1.15 !important;
    }
}
/* === Menu mobile === */
.tpl-burger { display: none; }

@media (max-width: 768px) {
    .tpl-nav-links { display: none !important; }
    .tpl-nav .tpl-container {
        display: flex !important; align-items: center !important;
        justify-content: space-between !important;
        padding: 0 18px !important; gap: 0 !important;
    }
    .tpl-nav-iniciais {
        display: block !important;
        font-family: var(--fonte-titulo, Georgia, serif);
        font-size: .92rem; letter-spacing: .12em;
        color: var(--cor-primaria, #a78b73);
        opacity: .85; white-space: nowrap; flex-shrink: 0; order: 1;
    }
    .tpl-burger {
        display: flex !important; flex-direction: column;
        justify-content: center; align-items: center;
        gap: 5px; width: 36px; height: 36px;
        background: none; border: none; cursor: pointer; padding: 4px;
        color: var(--cor-primaria, #a78b73); flex-shrink: 0; order: 3;
    }
    .tpl-burger span {
        display: block; width: 22px; height: 2px;
        background: currentColor; border-radius: 2px; pointer-events: none;
    }
    .tpl-nav-links.open {
        display: flex !important; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(var(--cor-fundo-rgb, 250,247,242), .97);
        z-index: 9990; padding: 6px 0 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,.10);
        list-style: none; margin: 0;
    }
    .tpl-nav-links.open li { list-style: none; }
    .tpl-nav-links.open li a {
        display: block; padding: 11px 22px;
        font-size: .82rem; text-align: left; border-radius: 0;
        background: none; white-space: nowrap; opacity: .85;
    }
    .tpl-nav-links.open li a:hover { background: rgba(0,0,0,.04); opacity: 1; }
}
