/* Família Zanatta · noite (eventos) */
body.noite { background: #0b1813; color: #efe4cf; --vinho: #6e1f24; --vinho-2: #9a2f33; --creme: #f3e8d2; --creme-suave: rgba(243, 232, 210, .7); }
body.noite .titulo-secao { color: var(--creme); }
body.noite .cap-num { color: var(--ouro-2); }

/* topo escuro */
body.noite .topo { background: linear-gradient(180deg, rgba(20, 38, 30, .62), rgba(8, 20, 15, .5)); box-shadow: inset 0 1px 0 rgba(255,235,200,.18), 0 10px 40px -18px rgba(0,0,0,.7); }
body.noite .topo::before { background: conic-gradient(from 210deg, rgba(255,230,180,.55), rgba(120,100,70,.2), rgba(255,230,180,.4), rgba(90,80,60,.2), rgba(255,230,180,.55)); }
body.noite .marca-nome, body.noite .menu a { color: var(--creme); }
body.noite .marca-estrelas { color: var(--ouro-2); }
body.noite .menu-bolha { background: linear-gradient(180deg, rgba(255,235,200,.22), rgba(255,235,200,.08)); box-shadow: inset 0 1px 0 rgba(255,240,210,.35); }
body.noite .menu-mobile { background: linear-gradient(180deg, rgba(255,235,200,.2), rgba(255,235,200,.06)); }
body.noite .menu-mobile i { background: var(--creme); }
.vidro-vinho { --tom-a: rgba(160, 52, 56, .62); --tom-b: rgba(92, 22, 27, .55); --txt: #fbeee0; }
body.noite .vidro-champanhe { --tom-a: rgba(255, 238, 205, .82); --tom-b: rgba(214, 176, 106, .62); }
body.noite .rodape { background: linear-gradient(180deg, rgba(8,20,15,0), #06100c 26%); }

/* ---------- velas ---------- */
#velas { height: 230vh; }
.velas-palco { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 5vw; padding: var(--topo-h) max(6vw, 32px) 0; }
.velas-texto { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 660px; }
.velas-pre { font-family: var(--serif); font-style: italic; color: var(--ouro-2); font-size: 20px; margin: 0 0 18px; }
.velas-titulo { font-family: var(--serif); font-weight: 420; font-size: clamp(48px, 5.4vw, 92px); line-height: .98; letter-spacing: -.02em; margin: 0; color: var(--creme);
  text-shadow: 0 0 calc(var(--luz, 0) * 40px) rgba(255, 190, 110, calc(var(--luz, 0) * .35)); }
.velas-titulo .linha { display: block; overflow: hidden; padding-bottom: .08em; }
.velas-titulo .linha > span { display: inline-block; transform: translateY(105%); transition: transform 1.5s cubic-bezier(.16,1,.3,1); }
.velas-titulo.on .linha > span { transform: none; }
.velas-titulo.on .linha:nth-child(2) > span { transition-delay: .14s; }
.velas-lead { font-size: 18px; line-height: 1.65; color: var(--creme-suave); margin: 28px 0 34px; max-width: 520px; }
.velas-texto > :not(h1) { transition: opacity 1s var(--ease), transform 1s var(--ease); }
body:not(.pronto) .velas-texto > :not(h1) { opacity: 0; transform: translateY(18px); }
.velas-arco { grid-column: 2; grid-row: 1; justify-self: center; position: relative; margin: 0; width: min(32vw, 470px); aspect-ratio: .64; overflow: hidden;
  border-radius: 999px 999px 14px 14px; view-transition-name: porta-noite;
  box-shadow: 0 0 0 1px rgba(255,220,170,.25), 0 60px 120px -40px rgba(0,0,0,.8), 0 0 140px -30px rgba(255, 170, 80, .35); }
.velas-arco img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.08)); filter: brightness(.92) saturate(1.08); }
.velas-arco::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 85%, rgba(255, 170, 80, .28), transparent 60%); mix-blend-mode: screen; }
.candelabro { position: absolute; z-index: 3; left: 41vw; bottom: -2vh; display: flex; align-items: flex-end; gap: clamp(22px, 3vw, 46px); pointer-events: none;
  transform: translateY(calc(var(--desce, 0) * 40vh)); filter: blur(calc(var(--desce, 0) * 6px)); }
.vela { position: relative; width: 18px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #cdbb9a 0%, #f6ecd9 35%, #fffaf0 50%, #e9dcc2 70%, #b9a582 100%);
  box-shadow: inset 0 6px 6px -4px rgba(255, 200, 120, .7); }
.vela:nth-child(1) { height: 120px; } .vela:nth-child(2) { height: 170px; } .vela:nth-child(3) { height: 210px; } .vela:nth-child(4) { height: 160px; } .vela:nth-child(5) { height: 110px; }
.vela::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1.5px; height: 10px; margin-left: -.75px; background: #2a1e14; border-radius: 1px; }
.chama { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 36px; margin: 0 0 6px -7px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff 0 18%, #ffe6a8 34%, #ffb24f 58%, rgba(255, 120, 30, .0) 76%);
  transform-origin: 50% 90%; opacity: 0; transform: scale(.2); transition: opacity .5s, transform .7s cubic-bezier(.3,1.7,.5,1); filter: blur(.4px); }
.chama::after { content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 100, .35), rgba(255, 150, 60, .1) 35%, transparent 65%); }
.chama.acesa { opacity: 1; transform: scale(1); animation: tremula 2.6s ease-in-out infinite; }
.vela:nth-child(2) .chama.acesa { animation-duration: 3.1s; animation-delay: -.7s; } .vela:nth-child(3) .chama.acesa { animation-duration: 2.2s; animation-delay: -1.3s; }
.vela:nth-child(4) .chama.acesa { animation-duration: 2.9s; animation-delay: -.4s; } .vela:nth-child(5) .chama.acesa { animation-duration: 3.4s; animation-delay: -1.8s; }
@keyframes tremula { 0%, 100% { transform: scale(1) skewX(0) translateX(0); } 20% { transform: scale(1.04, .96) skewX(2deg) translateX(.5px); } 45% { transform: scale(.97, 1.05) skewX(-3deg); } 70% { transform: scale(1.02, .98) skewX(1.5deg) translateX(-.5px); } }
.rolar { position: absolute; right: max(6vw, 32px); bottom: 5vh; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--creme-suave); }
.rolar span { width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--ouro-2)); position: relative; overflow: hidden; }
.rolar span::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: #fff3d6; animation: pinga 2s ease-in infinite; }
@keyframes pinga { from { top: -14px; } to { top: 46px; } }

/* ---------- convites ---------- */
.sec-cabeca { text-align: center; max-width: 760px; margin: 0 auto 90px; padding: 0 24px; }
.convites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2vw; width: min(1340px, calc(100% - 64px)); margin: 0 auto; }
.convite { position: relative; height: clamp(520px, 44vw, 640px); perspective: 1200px; }
.envelope { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; }
.envelope::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 6px; background: linear-gradient(180deg, #16301f, #0f241a); box-shadow: 0 30px 50px -24px rgba(0,0,0,.8); }
.envelope::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 0 0 6px 6px;
  background: linear-gradient(170deg, #1d3d2b, #12291d 70%); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(214,176,106,.35); }
.aba { position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 4; transform-origin: 50% 0; transform: rotateX(0deg); transition: transform 1s cubic-bezier(.6,0,.3,1), z-index 0s .5s;
  background: linear-gradient(180deg, #23442f, #183424); clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: visible; }
.selo { position: absolute; left: 50%; top: 38%; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: #f3d9b0; background: radial-gradient(circle at 35% 30%, #c2474b, #7c1d22 60%, #5a1217);
  box-shadow: 0 0 0 4px rgba(124, 29, 34, .5), 0 6px 12px rgba(0,0,0,.5); transition: opacity .4s, transform .5s var(--ease); }
.env-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 14px 18px; text-align: center; pointer-events: none; }
.env-txt h3 { font-family: var(--serif); font-weight: 470; font-size: clamp(20px, 1.8vw, 28px); margin: 0 0 6px; line-height: 1.05;
  background: linear-gradient(170deg, #fff1cf, #e2c07c 45%, #b88a42 70%, #f0d9a2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.env-txt p { margin: 0 auto; font-size: 13px; line-height: 1.45; color: rgba(243, 232, 210, .7); max-width: 250px; }
.cartao { position: absolute; left: 7%; right: 7%; bottom: 10%; height: 80%; z-index: 2; border-radius: 4px; overflow: hidden; background: #f6efe2; padding: 8px; color: var(--tinta);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); opacity: 0; transform: translateY(18%) scale(.94); transition: transform 1.3s cubic-bezier(.2,.8,.2,1) .55s, opacity .6s .55s; }
.cartao img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.cartao-txt { padding: 18px 20px; }
.cartao h3 { font-family: var(--serif); font-weight: 470; font-size: clamp(22px, 1.9vw, 30px); margin: 0 0 6px; color: var(--verde); }
.cartao p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--tinta-suave); }
.convite.aberto .aba { transform: rotateX(178deg); z-index: 0; }
.convite.aberto .selo { opacity: 0; transform: scale(.6); }
.convite.aberto .cartao { opacity: 1; transform: translateY(-24%); }
.convite.aberto:hover .cartao { transform: translateY(-28%) rotate(-1deg); }
.convite:nth-child(2) .aba, .convite:nth-child(2) .cartao { transition-delay: .18s, .73s; }
.convite:nth-child(3) .aba, .convite:nth-child(3) .cartao { transition-delay: .36s, .91s; }
.convite:nth-child(4) .aba, .convite:nth-child(4) .cartao { transition-delay: .54s, 1.09s; }

/* ---------- planejador ---------- */
.mesa-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.planejador .titulo-secao { margin-bottom: 36px; }
.campo { border: 0; margin: 0 0 24px; padding: 0; }
.campo legend, .campo label { display: block; font-family: var(--serif); font-style: italic; color: var(--ouro-2); font-size: 17px; margin-bottom: 10px; padding: 0; }
.campo label output { font-style: normal; font-family: var(--serif); font-size: 26px; color: var(--creme); margin-left: 10px; }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.fichas button { padding: 10px 18px; border-radius: 30px; font-size: 14.5px; font-weight: 600; color: var(--creme-suave);
  background: rgba(255, 240, 210, .06); box-shadow: inset 0 0 0 1px rgba(255, 230, 190, .2); transition: background .3s, color .3s, box-shadow .3s; }
.fichas button:hover { color: var(--creme); }
.fichas button.ativa { color: #3a2a12; background: linear-gradient(180deg, #fff2d6, #dcb874); box-shadow: inset 0 1px 0 #fff, 0 8px 18px -10px rgba(220, 170, 90, .8); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ouro-2) var(--v, 20%), rgba(255,230,190,.2) var(--v, 20%)); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 15%, #f0d59a 45%, #a87b37); box-shadow: 0 0 18px rgba(240, 190, 110, .8); cursor: pointer; }
input[type=range]::-moz-range-track { height: 2px; background: rgba(255,230,190,.2); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--ouro-2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #f0d59a 45%, #a87b37); }
.campo.duplo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.campo input[type=date], .campo input[type=text] { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 0; font: inherit; font-size: 15px; color: var(--creme);
  background: rgba(255, 240, 210, .06); box-shadow: inset 0 0 0 1px rgba(255, 230, 190, .2); color-scheme: dark; outline: none; transition: box-shadow .3s; }
.campo input:focus { box-shadow: inset 0 0 0 1px var(--ouro-2), 0 0 0 4px rgba(214, 176, 106, .15); }
.campo input::placeholder { color: rgba(243, 232, 210, .35); }
.enviar { margin-top: 10px; }
.nota { font-size: 13px; color: rgba(243, 232, 210, .5); margin: 18px 0 0; max-width: 460px; }
.planta { position: relative; }
.planta-moldura { position: relative; aspect-ratio: 1; border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 190, 110, .14), transparent 60%), linear-gradient(180deg, #13281e, #0c1c15);
  box-shadow: inset 0 0 0 1px rgba(214,176,106,.35), 0 50px 100px -40px rgba(0,0,0,.8); }
.planta-svg { position: absolute; inset: 8% 8% 10%; width: 84%; height: 82%; overflow: visible; }
.planta-svg .mesa rect.tampo { fill: rgba(214, 176, 106, .1); stroke: var(--ouro-2); stroke-width: 1.4; }
.planta-svg .mesa rect.cad { fill: none; stroke: rgba(243, 232, 210, .55); stroke-width: 1.1; }
.planta-svg .mesa { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .6s, transform .7s cubic-bezier(.3,1.5,.5,1); }
.planta-svg .mesa.on { opacity: 1; transform: none; }
.planta-svg .vela-mesa { fill: #ffd38a; filter: drop-shadow(0 0 4px #ffb24f); }
.planta-svg .parede-planta { fill: none; stroke: rgba(214,176,106,.3); stroke-width: 1; stroke-dasharray: 3 6; }
.planta-legenda { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); font-size: 14px; color: var(--creme-suave); white-space: nowrap; }
.planta-legenda b { font-family: var(--serif); font-size: 22px; color: var(--creme); font-weight: 500; }
.planta-nota { text-align: center; font-size: 12.5px; color: rgba(243, 232, 210, .45); margin: 14px 0 0; }

/* ---------- passos ---------- */
.passos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 0; position: relative; z-index: 1; }
.passos li { opacity: .28; transition: opacity .8s var(--ease); }
.passos li.aceso { opacity: 1; }
.p-num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--serif); font-size: 24px; color: var(--ouro-1);
  box-shadow: inset 0 0 0 1px rgba(214,176,106,.5); margin-bottom: 26px; background: #0e1f17; transition: box-shadow .8s; }
.passos li.aceso .p-num { box-shadow: inset 0 0 0 1px var(--ouro-2), 0 0 40px rgba(255, 180, 90, .45); }
.passos h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(26px, 2.2vw, 34px); margin: 0 0 12px; color: var(--creme); line-height: 1.1; }
.passos p { margin: 0; font-size: 16px; color: var(--creme-suave); }
.passos-area { position: relative; width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.passos-area .passos { width: 100%; }
.pavio { position: absolute; left: 32px; right: 0; top: 32px; height: 1px; z-index: 0; background: rgba(214,176,106,.2); pointer-events: none; }
.pavio i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, rgba(255,180,90,.1), #ffcf86); box-shadow: 0 0 12px #ffb24f; }
.pavio i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 16px 4px #ffb24f; }
#como { padding-bottom: 180px; }

/* ---------- fala ---------- */
#fala { text-align: center; padding: 160px 24px; }
.fala { margin: 0 auto; max-width: 1080px; }
.fala p { font-family: var(--serif); font-weight: 420; font-size: clamp(36px, 4.6vw, 74px); line-height: 1.1; color: var(--creme); margin: 0; }
.fala p .w { color: rgba(243, 232, 210, .14); transition: color .4s, text-shadow .4s; }
.fala p .w.on { color: var(--creme); text-shadow: 0 0 30px rgba(255, 190, 110, .25); }
.fala cite { display: block; margin-top: 34px; font-style: normal; font-family: var(--script); font-size: 46px; color: var(--ouro-2); }

/* ---------- volta ---------- */
.volta-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 6vw; align-items: center; width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.volta-grade p { font-size: 18px; color: var(--creme-suave); max-width: 460px; margin: 24px 0 0; }
.portal-dia { position: relative; display: block; justify-self: center; width: min(28vw, 380px); aspect-ratio: .66; }
.pd-vao { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 12px 12px; box-shadow: 0 0 0 10px #6b4022, 0 0 0 11px rgba(255,220,170,.25), 0 0 120px -10px rgba(255, 236, 190, .45); }
.pd-vao img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.portal-dia:hover .pd-vao img { transform: scale(1.0); }
.pd-txt { position: absolute; left: 50%; bottom: -70px; transform: translateX(-50%); white-space: nowrap; font-weight: 650; font-size: 15px; color: var(--ouro-1); padding: 13px 26px; border-radius: 40px;
  background: rgba(255, 240, 210, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255, 220, 160, .3); }
.portal-dia.abrindo .pd-vao img { transform: scale(1.4); transition-duration: 1.2s; }

/* ---------- celular ---------- */
@media (max-width: 980px) {
  #velas { height: 200vh; }
  .velas-palco { display: flex; flex-direction: column; justify-content: flex-start; gap: 96px; padding: calc(var(--topo-h) + 28px) 24px 0; }
  .velas-arco { width: min(54vw, 34vh); flex: none; }
  .velas-titulo { font-size: clamp(42px, 11vw, 58px); }
  .velas-pre { font-size: 17px; margin-bottom: 10px; }
  .velas-lead { display: none; }
  .velas-texto .inicio-acoes { margin-top: 24px; }
  .velas-texto .vidro-vinho { display: none; }
  .candelabro { left: 50%; bottom: auto; top: calc(var(--topo-h) + 28px + min(54vw, 34vh) / .64 - 140px); gap: 16px;
    transform: translateX(-50%) translateY(calc(var(--desce, 0) * 40vh)) scale(.62); transform-origin: 50% 100%; }
  .rolar { display: none; }
  .convites { grid-template-columns: 1fr 1fr; gap: 16px; width: calc(100% - 32px); }
  .convite { height: 400px; }
  .env-txt h3 { font-size: 17px; } .env-txt p { display: none; } .env-txt { padding: 0 6px 16px; }
  .mesa-grade { grid-template-columns: 1fr; width: calc(100% - 48px); }
  .campo.duplo { grid-template-columns: 1fr; }
  .passos { grid-template-columns: 1fr; gap: 40px; }
  .pavio { display: none; }
  .passos li { opacity: 1; }
  .volta-grade { grid-template-columns: 1fr; gap: 50px; }
  .portal-dia { width: min(64vw, 280px); margin-bottom: 70px; }
}
