/* Letras hospedadas junto com o site (licença OFL em fontes/) */
@font-face { font-family: 'Montserrat'; src: url('fontes/montserrat-variavel.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fontes/lora-variavel.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --noite: #05080A;
  --painel: #10171A;
  --vidro: rgba(18, 26, 30, .6);
  --creme: #F3F0E7;
  --nevoa: #AEB8B2;
  --ouro: #E8C35C;
  --t: 243, 240, 231;
  --esmeralda: #2FD6A3;
  --azul: #4FA8F5;
  --neon-ouro: #E8C35C;
  --neon-repouso: .62;
  --brilho: 14%;
  --brilho-forte: 34%;
  --sombra: rgba(0, 0, 0, .45);
  --topo-fundo: rgba(10, 15, 18, .72);
  --foto-fundo: .36;
  --parede: #182125;
  --piso: #0E1417;
  --sofa: #55656B;
  --sofa-claro: #71838A;
  --foco: rgba(255, 233, 190, .36);
  --botao: #E8C35C;
  --botao-t: #0A0C08;
  --luz: #4FB8F0;
  --raio: 22px;
  --curva: cubic-bezier(.22, 1, .36, 1);
  --titulo: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --ui: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --texto: 'Lora', Georgia, 'Times New Roman', serif;
}
/* Tema claro: mesmo desenho, com neon mais forte, porque em fundo claro o brilho quase some */
html[data-tema="claro"] {
  --noite: #F4F1EA;
  --painel: #FFFFFF;
  --vidro: rgba(255, 255, 255, .62);
  --creme: #14201C;
  --nevoa: #46524D;
  --ouro: #7C5A0C;
  --t: 20, 32, 28;
  --esmeralda: #0B9A70;
  --azul: #1F74C6;
  --neon-ouro: #C48F14;
  --neon-repouso: 1;
  --brilho: 30%;
  --brilho-forte: 55%;
  --sombra: rgba(20, 32, 28, .14);
  --topo-fundo: rgba(248, 245, 238, .82);
  --foto-fundo: .2;
  --parede: #E4DDCF;
  --piso: #BDB3A0;
  --sofa: #4F5E58;
  --sofa-claro: #6C7C75;
  --foco: rgba(255, 250, 232, .95);
}
/* Ilhas escuras: abertura, faixa, carrossel e rodapé ficam escuros nos dois temas */
.ilha, html[data-tema="claro"] .ilha {
  --noite: #05080A; --painel: #10171A; --vidro: rgba(18, 26, 30, .6); --creme: #F3F0E7; --nevoa: #AEB8B2; --ouro: #E8C35C;
  --t: 243, 240, 231; --esmeralda: #2FD6A3; --azul: #4FA8F5; --neon-ouro: #E8C35C; --neon-repouso: .62;
  --brilho: 14%; --brilho-forte: 34%; --sombra: rgba(0, 0, 0, .45);
  background-color: var(--noite); color: var(--creme);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--noite); color: var(--creme);
  font: 400 18px/1.65 var(--texto); font-variant-numeric: lining-nums; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.1; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.dentro { width: min(1240px, 100% - 40px); margin-inline: auto; }
section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.apoio { color: var(--nevoa); max-width: 56ch; margin-top: 18px; }

/* Aviso do esboço */
.aviso-esboco {
  background: var(--ouro); color: #0A0C08; font-weight: 600; font-size: 15px;
  text-align: center; padding: 8px 16px; position: relative; z-index: 60;
}

/* Luzes de fundo: sem elas, o vidro não aparece */
.luzes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--noite); }
.luzes i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .17; }
.luzes i:nth-child(1) { width: 60vmax; height: 60vmax; left: -22vmax; top: 18vh; background: var(--esmeralda); }
.luzes i:nth-child(2) { width: 52vmax; height: 52vmax; right: -20vmax; top: 44vh; background: var(--azul); }
.luzes i:nth-child(3) { width: 34vmax; height: 34vmax; left: 34vw; bottom: -18vmax; background: var(--ouro); opacity: .1; }

/* Vidro, neon de penas, zoom e luz que segue o mouse */
.vidro {
  position: relative; border-radius: var(--raio); background: var(--vidro);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 50px var(--sombra), 0 0 26px color-mix(in srgb, var(--esmeralda) var(--brilho), transparent);
  transition: transform .45s var(--curva), box-shadow .45s var(--curva);
  --mx: 50%; --my: 0%;
}
.vidro::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--giro), var(--esmeralda), var(--azul), var(--neon-ouro), var(--esmeralda));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--neon-repouso); transition: opacity .35s;
}
.vidro::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(232, 195, 92, .17), transparent 70%);
  transition: opacity .3s;
}
.vidro > * { position: relative; z-index: 1; }
@keyframes girar { to { --giro: 360deg; } }
@media (hover: hover) {
  .vidro.zoom:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 26px 70px var(--sombra), 0 0 46px color-mix(in srgb, var(--esmeralda) var(--brilho-forte), transparent);
  }
  .vidro:hover::before { opacity: 1; animation: girar 5s linear infinite; }
  .vidro:hover::after { opacity: 1; }
}
/* Celular: o card do meio da tela ganha o brilho forte */
.vidro.em-foco { transform: scale(1.015); box-shadow: 0 22px 60px var(--sombra), 0 0 40px color-mix(in srgb, var(--esmeralda) var(--brilho-forte), transparent); }
.vidro.em-foco::before { opacity: 1; animation: girar 5s linear infinite; }

/* Entradas ao rolar */
.js .revela { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--curva), transform .7s var(--curva); transition-delay: var(--atraso, 0ms); }
.js .revela.visto { opacity: 1; transform: none; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 0; cursor: pointer; font: 600 17px/1.2 var(--ui); text-decoration: none;
  transition: transform .3s var(--curva), box-shadow .3s var(--curva), background .3s;
}
.botao-ouro { background: var(--botao); color: var(--botao-t); box-shadow: 0 0 0 0 rgba(232, 195, 92, 0); }
.botao-ouro:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(232, 195, 92, .42); }
.botao-linha { background: rgba(var(--t),.05); color: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(var(--t),.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.botao-linha:hover { background: rgba(var(--t),.12); transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }

/* Cabeçalho fixo de vidro: sempre visível durante a rolagem */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  background: var(--topo-fundo); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(var(--t), .14), 0 10px 30px var(--sombra);
}
.topo-dentro { height: 100%; display: flex; align-items: center; gap: 22px; }
.topo-marca { flex: none; margin-right: auto; display: block; }
.topo-logo { height: 50px; width: auto; }
.logo-claro { display: none; }
html[data-tema="claro"] .logo-claro { display: block; }
html[data-tema="claro"] .logo-escuro { display: none; }
.menu { display: flex; gap: 26px; }
.menu a { position: relative; padding: 12px 0; text-decoration: none; font-weight: 500; font-size: 17px; transition: color .25s; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--ouro); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--curva); }
.menu a:hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu a[aria-current="true"] { color: var(--ouro); }
.tema-botao, .menu-botao {
  flex: none; height: 44px; border: 0; cursor: pointer; color: var(--creme); display: grid; place-items: center;
  background: rgba(var(--t), .06); box-shadow: inset 0 0 0 1.5px var(--ouro); transition: background .25s, transform .3s var(--curva);
}
.tema-botao { width: 44px; border-radius: 50%; }
.tema-botao:hover { background: rgba(var(--t), .16); transform: rotate(14deg); }
.tema-botao svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-sol { display: none; }
html[data-tema="claro"] .icone-sol { display: block; }
html[data-tema="claro"] .icone-lua { display: none; }
.menu-botao { display: none; padding: 0 16px; border-radius: 12px; font: 600 16px var(--ui); }
.topo .botao { min-height: 46px; padding: 10px 20px; font-size: 16px; flex: none; }
.topo-barra { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.topo-barra i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--esmeralda), var(--azul), var(--neon-ouro)); box-shadow: 0 0 10px color-mix(in srgb, var(--esmeralda) 60%, transparent); }

/* Botão flutuante do WhatsApp: entra depois da primeira tela */
.wa-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vidro); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1.5px var(--esmeralda), 0 0 24px color-mix(in srgb, var(--esmeralda) 40%, transparent), 0 10px 26px var(--sombra);
  opacity: 0; pointer-events: none; transform: scale(.85); transition: opacity .35s, transform .35s var(--curva);
}
.wa-flutuante.ver { opacity: 1; pointer-events: auto; transform: none; }
.wa-flutuante img { width: 30px; height: 30px; }

/* Abertura (13/11/2026, pedido do Fernando): o beija-flor do Miguel ocupa a tela inteira de fundo;
   no centro, a logo dele, o título, a frase e os botões. Igual no celular e no computador. */
.abertura { padding: 0; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.abertura picture { position: absolute; inset: 0; width: 100%; z-index: -2; }
.abertura picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(calc(1.08 - var(--entrada, 0) * .08)) translate(var(--px, 0), var(--py, 0)); transition: transform 2.4s var(--curva); }
/* sombra no meio, atrás da logo e do texto, para a leitura; a foto continua aparecendo em volta */
.abertura::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 62% 58% at 50% 52%, rgba(5, 8, 10, .72), rgba(5, 8, 10, .38) 62%, rgba(5, 8, 10, .12)), linear-gradient(0deg, var(--noite), transparent 24%); }
.abertura-texto { padding-block: 92px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.abertura-logo { display: block; height: clamp(118px, 25svh, 250px); width: auto; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .65)); }
.abertura h1 { font-size: clamp(38px, min(4.9vw, 9svh), 76px); line-height: 1.06; max-width: 12em; margin-top: clamp(14px, 2.4svh, 26px); text-shadow: 0 2px 22px rgba(0, 0, 0, .55); text-wrap: balance; }
.abertura .apoio { font-size: clamp(18px, 1.5vw, 21px); color: var(--creme); max-width: 40ch; margin: clamp(12px, 2svh, 20px) auto 0; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.abertura .acoes { justify-content: center; margin-top: clamp(18px, 3svh, 32px); }
.credito { position: absolute; right: 22px; bottom: 18px; font-size: 14px; color: var(--nevoa); }

/* Faixa em movimento */
.faixa { padding-block: 26px; overflow: hidden; border-block: 1px solid rgba(var(--t),.12); }
.faixa-trilho { display: flex; width: max-content; animation: correr 46s linear infinite; }
.faixa:hover .faixa-trilho { animation-play-state: paused; }
.faixa span { font: 600 clamp(22px, 2.5vw, 34px)/1.2 var(--titulo); padding-inline: 34px; white-space: nowrap; color: var(--creme); }
.faixa span:nth-child(even) { color: var(--ouro); }
@keyframes correr { to { transform: translateX(-50%); } }

/* Carrossel */
.palco-secao { overflow: hidden; isolation: isolate; padding-block: 104px clamp(56px, 7vw, 90px); }
.palco-secao h2 { font-size: clamp(32px, 3.8vw, 52px); }
.palco-cabeca, .palco-secao .ficha, .miniaturas { position: relative; z-index: 2; }
.ambiente { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ambiente i { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(70px) saturate(160%); opacity: 0; transition: opacity 1s; }
.ambiente i.acesa { opacity: .46; }
.ambiente::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--noite), transparent 26%, transparent 76%, var(--noite)); }
.palco-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 22px; }
.abas { display: flex; flex-wrap: wrap; gap: 8px; }
.aba {
  min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 0; cursor: pointer; color: var(--creme); font: 500 17px/1 var(--ui);
  background: rgba(var(--t),.06); box-shadow: inset 0 0 0 1px rgba(var(--t),.22); transition: background .3s, color .3s, box-shadow .3s;
}
.aba small { color: var(--nevoa); font-size: 14px; margin-left: 4px; }
.aba:hover { background: rgba(var(--t),.13); }
.aba[aria-pressed="true"] { background: var(--botao); color: var(--botao-t); box-shadow: 0 0 26px rgba(232, 195, 92, .45); }
.aba[aria-pressed="true"] small { color: #2B2A16; }

.trilho {
  --h: clamp(300px, 50svh, 560px);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  margin-block: -94px -110px; padding: 130px 50vw; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; list-style: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho.arrastando { cursor: grabbing; scroll-snap-type: none; }
.trilho.arrastando img { pointer-events: none; }
.slide { flex: none; height: var(--h); aspect-ratio: var(--r); scroll-snap-align: center; perspective: 1100px; }
.slide[hidden] { display: none; }
.slide-foto {
  height: 100%; width: 100%; border-radius: 14px; position: relative; overflow: hidden; padding: 0; border: 0; background: var(--painel); cursor: pointer; display: block;
  opacity: .42; transform: scale(.84); filter: saturate(.55); transition: transform .6s var(--curva), opacity .6s, filter .6s, box-shadow .6s;
}
.slide-foto img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.slide.ativo .slide-foto {
  opacity: 1; filter: none;
  transform: scale(1) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  box-shadow: 0 0 0 1.5px var(--luz), 0 0 34px color-mix(in srgb, var(--luz) 62%, transparent), 0 0 110px color-mix(in srgb, var(--luz) 34%, transparent), 0 34px 70px rgba(0, 0, 0, .6);
}
.slide-foto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--bx, 50%) var(--by, 0%), rgba(var(--t),.13), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.slide.ativo .slide-foto:hover::after { opacity: 1; }

.ficha {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 22px; padding: 16px 16px 16px 26px; margin-top: 4px;
}
.ficha .botao { justify-self: end; }
.ficha-seta { display: flex; gap: 8px; }
.seta {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; color: var(--creme); display: grid; place-items: center;
  background: rgba(var(--t),.07); box-shadow: inset 0 0 0 1px rgba(var(--t),.24); transition: background .3s, transform .3s var(--curva);
}
.seta:hover { background: rgba(var(--t),.16); transform: scale(1.07); }
.seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficha-nome { font: 600 clamp(21px, 2vw, 26px)/1.15 var(--titulo); }
.ficha-info { color: var(--nevoa); font-size: 16px; margin-top: 3px; }
.ficha-num { color: var(--luz); font-weight: 600; font-variant-numeric: tabular-nums; transition: color .6s; }

.miniaturas { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding: 6px 4px; scrollbar-width: none; justify-content: safe center; }
.miniaturas::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .5; background: var(--painel); transition: opacity .3s, transform .3s var(--curva), box-shadow .3s; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini:hover { opacity: .9; transform: translateY(-2px); }
.mini.ativa { opacity: 1; box-shadow: 0 0 0 2px var(--luz), 0 0 16px var(--luz); }
.mini[hidden] { display: none; }

/* Frase que acende */
.autor { padding-block: clamp(90px, 12vw, 170px); }
.autor-grade { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.link-forte { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; color: var(--ouro); font-weight: 600; text-underline-offset: 4px; }
.link-forte img { width: 24px; height: 24px; }
.miguel { margin: 0; padding: 12px; }
.miguel img { width: 100%; height: auto; border-radius: 14px; }
.miguel figcaption { padding: 14px 10px 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.miguel b { font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--titulo); }
.miguel span { color: var(--nevoa); }
.acende { font: 600 clamp(28px, 3.3vw, 46px)/1.2 var(--titulo); }
.js .acende span { opacity: .2; transition: opacity .4s; }
.js .acende span.lida { opacity: 1; }
.autor p.apoio { font-size: 19px; }
/* A fala do Miguel, com as palavras dele (briefing de 13/11/2026) */
.fala { margin: 22px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ouro); }
.fala p { font-size: 19px; font-style: italic; }
.fala cite { display: block; margin-top: 8px; font-style: normal; color: var(--nevoa); }
/* Celular e tablet: título, depois a foto do Miguel, depois a história (pedido do Fernando, 13/11/2026).
   No computador a foto continua ao lado do texto. */
@media (max-width: 900px) {
  .autor-grade { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .autor-grade > div { display: contents; }
  .autor-grade .acende { order: 1; }
  .autor-grade .miguel { order: 2; margin-top: 28px; }
  .autor-grade > div > :not(.acende) { order: 3; }
  .autor-grade .link-forte { align-self: flex-start; }
}

/* Grade de cartões sobre a foto: é aqui que o vidro aparece */
.bento-secao { isolation: isolate; overflow: hidden; }
.bento-fundo { position: absolute; inset: 0; z-index: -1; background: center / cover; opacity: var(--foto-fundo); }
.bento-fundo.carregada { background-image: url('assets/fotos/coruja-2.webp'); } /* a foto só entra perto da tela (noite.js): são 400 KB */
.bento-fundo { -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.bento > li { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; list-style: none; }
.bento { padding: 0; }
.bento p { color: var(--creme); margin-top: 8px; font-size: 17px; }
.bento .grande { grid-column: span 2; grid-row: span 2; justify-content: flex-end; overflow: hidden; }
.bento .largo { grid-column: span 2; }
/* O quadro em 3D: mostra a foto até a beirada e a grossura do painel */
.q3d-area { flex: 1; min-height: 300px; display: grid; place-items: center; perspective: 1000px; margin-bottom: 22px; }
.q3d { position: relative; width: min(58%, 250px); aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(var(--qy, -26deg)) rotateX(var(--qx, 6deg)); transition: transform .5s var(--curva); }
.q3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(9px); box-shadow: 0 0 44px rgba(79, 184, 240, .3); }
.q3d i { position: absolute; top: 0; bottom: 0; right: 0; width: 18px; background: linear-gradient(90deg, #A97F55, #C49A6C); transform-origin: right; transform: translateZ(9px) rotateY(90deg); }
.q3d b { position: absolute; inset: 0; background: #7A5A3B; transform: translateZ(-9px); box-shadow: 22px 26px 40px var(--sombra); }
.bento .nota-ilustra { color: var(--nevoa); font-size: 15px; }
.bento .com-foto { flex-direction: row; align-items: center; gap: 20px; }
.bento .com-foto img { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; flex: none; }
/* Painel de MDF: as três fotos (frente, lado e costas) dentro do mesmo cartão */
.bento .mdf-card { justify-content: space-between; gap: 22px; }
.mdf-fotos { flex: 1; min-height: 280px; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.mdf-fotos figure { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: 12px; background: #fff; }
.mdf-fotos figure:nth-child(1) { grid-column: 2; grid-row: 1; }
.mdf-fotos figure:nth-child(2) { grid-column: 2; grid-row: 2; }
.mdf-fotos figure:nth-child(3) { grid-column: 1; grid-row: 1 / span 2; }
.mdf-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mdf-fotos figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 11px; border-radius: 999px; background: rgba(11, 13, 16, .78); color: #EDF1F7; font-size: 14px; line-height: 1.4; }
@media (max-width: 900px) {
  .mdf-fotos { min-height: 0; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .mdf-fotos figure { aspect-ratio: 4 / 3; grid-column: auto !important; grid-row: auto !important; }
  .mdf-fotos figcaption { left: 5px; bottom: 5px; padding: 2px 8px; font-size: 13px; }
}

/* A parede com foco de luz */
/* --ecm: quanto 1 cm ocupa da largura da cena, em %. O sofá de 2 m e o quadro usam a mesma medida. */
#tamanhos { padding-top: 88px; }
#tamanhos .apoio { max-width: none; }
.parede-grade { --ecm: .28; --cx: 33.5%; display: grid; margin-top: 30px; }
.parede-grade > * { grid-area: 1 / 1; }
.cena { position: relative; aspect-ratio: 2.05 / 1; align-self: start; border-radius: var(--raio); overflow: hidden; background: var(--parede); box-shadow: inset 0 0 0 1px rgba(var(--t), .12); }
.cena-luz { position: absolute; inset: 0; background: radial-gradient(38% 78% at var(--cx) 28%, var(--foco), transparent 74%); }
.cena-piso { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: var(--piso); box-shadow: 0 -2px 0 rgba(var(--t), .16); }
.cena-sofa { position: absolute; left: var(--cx); bottom: 5.5%; transform: translateX(-50%); width: calc(200 * var(--ecm) * 1%); height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.cena-sofa .s1 { fill: var(--sofa); }
.cena-sofa .s2 { fill: var(--sofa-claro); }
.cena-planta { position: absolute; left: 1%; bottom: 5.5%; height: 40%; width: auto; }
.cena-planta path { fill: color-mix(in srgb, var(--esmeralda) 45%, var(--sofa)); }
.cena-planta path:first-child { fill: var(--sofa); }
.cena-quadro {
  /* Centro fixo na parede, no meio da luz: todo tamanho cresce a partir do mesmo ponto */
  position: absolute; left: var(--cx); top: 28%; transform: translate(-50%, -50%); overflow: hidden; border-radius: 2px;
  width: calc(var(--cm) * var(--ecm) * 1%); aspect-ratio: var(--qr); transition: width .5s var(--curva);
  box-shadow: 0 0 34px color-mix(in srgb, var(--luz) 45%, transparent), 0 14px 26px rgba(0, 0, 0, .5);
}
.cena-quadro img { width: 100%; height: 100%; object-fit: cover; }
.controle { justify-self: end; align-self: center; width: min(400px, 32.5%); margin: 18px; padding: 24px; display: flex; flex-direction: column; gap: 13px; z-index: 2; }
.controle output { font: 600 clamp(30px, 2.9vw, 40px)/1.1 var(--titulo); }
.controle .nota { color: var(--nevoa); font-size: 16px; }
.regua { width: 100%; height: 44px; accent-color: var(--ouro); cursor: pointer; }
.regua-marcas { display: flex; justify-content: space-between; color: var(--nevoa); font-size: 14px; margin-top: -10px; }

/* Encomenda */
.encomenda-grade { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: 44px; align-items: start; }
.passos { list-style: none; margin: 0; padding: 0 0 0 66px; position: relative; }
.passos::before { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: rgba(var(--t),.16); }
.passos-fio { background: linear-gradient(var(--esmeralda), var(--ouro)); transform-origin: top; transform: scaleY(var(--fio, 0)); box-shadow: 0 0 14px var(--esmeralda); }
.passos li { position: relative; padding-block: 8px 62px; opacity: .45; transition: opacity .5s; }
.passos li:last-child { padding-bottom: 8px; }
.passos li.aceso { opacity: 1; }
.passos li > b { position: absolute; left: -66px; top: 6px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 19px var(--ui); background: var(--painel); box-shadow: inset 0 0 0 1.5px rgba(var(--t),.24); transition: background .4s, color .4s, box-shadow .4s; }
.passos li.aceso > b { background: var(--botao); color: var(--botao-t); box-shadow: 0 0 24px rgba(232, 195, 92, .55); }
.passos p { color: var(--nevoa); margin-top: 6px; }
.pedido { padding: 30px; position: sticky; top: 100px; display: grid; gap: 18px; }
.pedido legend, .pedido .rot { font-weight: 600; padding: 0; margin-bottom: 8px; }
.pedido fieldset { border: 0; padding: 0; margin: 0; }
.escolhida { display: flex; align-items: center; gap: 14px; }
.escolhida img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--luz); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 15px; border-radius: 12px; border: 0; cursor: pointer; color: var(--creme); font: 500 16px var(--ui); background: rgba(var(--t),.06); box-shadow: inset 0 0 0 1px rgba(var(--t),.22); transition: background .25s, box-shadow .25s; }
.chip:hover { background: rgba(var(--t),.13); }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ouro), 0 0 16px rgba(232, 195, 92, .35); }
.pedido .botao { width: 100%; }
.pedido .aviso { font-size: 15px; color: var(--nevoa); }
.pedido .status { font-size: 15px; color: var(--ouro); min-height: 1.4em; }

/* Perguntas em lista */
.lista-duvidas { margin-top: 36px; border-top: 1px solid rgba(var(--t),.18); }
.lista-duvidas details { border-bottom: 1px solid rgba(var(--t),.18); transition: background .3s; }
.lista-duvidas details:hover { background: rgba(var(--t),.03); }
.lista-duvidas summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 6px; cursor: pointer; list-style: none; font: 600 clamp(19px, 1.7vw, 24px)/1.25 var(--titulo); }
.lista-duvidas summary::-webkit-details-marker { display: none; }
.lista-duvidas summary i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 400 24px var(--ui); box-shadow: inset 0 0 0 1px rgba(var(--t),.3); transition: transform .4s var(--curva), background .3s, color .3s; }
.lista-duvidas details[open] summary i { transform: rotate(45deg); background: var(--botao); color: var(--botao-t); }
.lista-duvidas details p { padding: 0 6px 26px; color: var(--nevoa); max-width: 62ch; }

/* Fim */
.feiras-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.feiras-grade > div:first-child { grid-column: 1 / -1; }
.placa { padding: 30px; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; }
.placa p { color: var(--nevoa); margin-top: 6px; }
.chamada { text-align: center; padding: clamp(48px, 7vw, 88px) 24px; margin-top: 70px; }
.chamada p { color: var(--nevoa); margin: 14px auto 26px; max-width: 44ch; }

/* Rodapé: escuro nos dois temas, com todas as informações */
.rodape { padding: 60px 0 22px; font-size: 17px; box-shadow: 0 -1px 0 rgba(var(--t), .14); }
.rodape-grade { display: grid; grid-template-columns: 1.5fr 1.1fr 1.1fr .9fr; gap: 34px; align-items: start; }
.rodape-logo { height: 76px; width: auto; margin-bottom: 14px; }
.rodape-grade p { color: var(--creme); max-width: 32ch; }
.rodape-titulo { font: 600 17px/1.3 var(--ui); color: var(--ouro); margin: 0 0 12px; letter-spacing: 0; }
.rodape a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--creme); text-underline-offset: 3px; }
.rodape a:hover { color: var(--ouro); }
.rodape-contato img { width: 26px; height: 26px; flex: none; }
.rodape-nav a { text-decoration: none; }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 16px; border-top: 1px solid rgba(var(--t), .16); }
.site-by { text-decoration: none; }
.site-by img { width: 120px; height: auto; }

/* Números retos: na letra de título, o "1" antigo parece um "I" e o "30" parece "3o" */
h1, h2, h3, .controle output, .faixa span, .ficha-nome { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

@media (max-width: 1180px) {
  .topo-dentro { gap: 14px; }
  .menu { gap: 16px; }
  .topo .botao { display: none; }
  .parede-grade { --ecm: .42; --cx: 50%; gap: 16px; }
  .parede-grade > * { grid-area: auto; }
  .cena { aspect-ratio: 1.37 / 1; }
  .cena-planta { display: none; }
  .controle { width: auto; margin: 0; justify-self: stretch; }
}
@media (max-width: 900px) {
  body { font-size: 18px; }
  .topo { height: 66px; }
  .topo-logo { height: 42px; }
  .menu-botao { display: grid; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: var(--topo-fundo); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 30px var(--sombra);
  }
  .menu.aberto { display: flex; }
  .menu a { padding: 13px 0; font-size: 19px; }
  .menu a::after { display: none; }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
  .abertura picture img { object-position: 50% 40%; }
  .abertura::after { background: radial-gradient(ellipse 90% 52% at 50% 50%, rgba(5, 8, 10, .74), rgba(5, 8, 10, .4) 66%, rgba(5, 8, 10, .14)), linear-gradient(0deg, var(--noite), transparent 20%); }
  .abertura-texto { padding-block: 84px 56px; }
  .abertura h1 { font-size: clamp(30px, 9.6vw, 58px); }
  .credito { right: auto; left: 50%; transform: translateX(-50%); bottom: 14px; white-space: nowrap; }
  .trilho { --h: min(56svh, 112vw); }
  .ficha { grid-template-columns: 1fr auto; padding: 18px; }
  .ficha .ficha-texto { grid-column: 1 / -1; }
  .ficha .botao { grid-column: 1; justify-self: stretch; }
  .ficha-seta { grid-column: 2; grid-row: 2; }
  .autor-grade, .encomenda-grade, .feiras-grade { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento > li { padding: 20px; min-height: 0; }
  .bento .grande, .bento .largo { grid-column: span 2; grid-row: auto; }
  .pedido { position: static; }
}
@media (max-width: 520px) {
  .rodape-grade { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bento { grid-template-columns: 1fr; }
  .bento .grande, .bento .largo { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .revela { opacity: 1; transform: none; }
  .js .acende span { opacity: 1; }
  .faixa-trilho { flex-wrap: wrap; width: auto; }
}

/* ============================================================
   Peças do site completo (além do que veio do esboço aprovado)
   ============================================================ */
[hidden] { display: none !important; }
:root { --erro: #FFA08E; }
html[data-tema="claro"] { --erro: #A32A16; }
.pular { position: fixed; left: 12px; top: -80px; z-index: 90; padding: 12px 18px; border-radius: 10px; background: var(--botao); color: var(--botao-t); font: 600 16px var(--ui); }
.pular:focus { top: 12px; }

/* O zoom e o foco valem também nos cartões que entram com animação */
@media (hover: hover) {
  .js .vidro.zoom.revela.visto:hover { transform: translateY(-6px) scale(1.025); transition: transform .45s var(--curva), box-shadow .45s var(--curva); transition-delay: 0s; }
}
.js .vidro.em-foco.revela.visto { transform: scale(1.015); }

/* Linha neon no cabeçalho ao rolar */
.topo.rolou { box-shadow: 0 1px 0 color-mix(in srgb, var(--esmeralda) 55%, transparent), 0 0 18px color-mix(in srgb, var(--esmeralda) 22%, transparent), 0 10px 30px var(--sombra); }

/* A luz da foto fica atrás das fotos, nunca embaixo do texto: vale também para as fotos claras */
.ambiente i.acesa { opacity: .34; }
.ambiente::after { background: linear-gradient(var(--noite) 0, rgba(5, 8, 10, .86) 34%, rgba(5, 8, 10, .08) 54%, rgba(5, 8, 10, .08) 72%, var(--noite) 94%); }
.palco-secao .apoio { color: var(--creme); }

/* Sem JavaScript: as fotos numa fileira simples */
html:not(.js) .trilho, html:not(.js) .ficha, html:not(.js) .miniaturas, html:not(.js) .abas { display: none; }
.fileira-simples { display: flex; gap: 14px; overflow-x: auto; margin: 28px 0 0; padding: 0 20px 16px; list-style: none; }
.fileira-simples img { height: 320px; width: auto; max-width: none; border-radius: 12px; }

/* Ficha do carrossel com os dois botões */
.ficha { grid-template-columns: 1fr auto auto auto; }
.ficha .botao { justify-self: stretch; }
.ficha-texto { min-width: 0; }
.slide-foto { -webkit-tap-highlight-color: transparent; }
.controle-rot { display: block; font: 600 16px/1.3 var(--ui); }
.controle .botao { margin-top: 2px; }
.controle .chips { gap: 6px; }
.controle .chip { padding: 8px 11px; font-size: 13.5px; }
.controle .nota { font-size: 15px; line-height: 1.45; }
.controle output { font-size: clamp(26px, 2.5vw, 34px); }
@media (min-width: 1181px) { .controle { padding: 20px 22px; gap: 10px; } }

/* Encomenda completa */
.encomenda-grade { grid-template-columns: .9fr 1.1fr; }
.encomenda-lado { position: sticky; top: 100px; }
.passos { list-style: none; }
.passos::after { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--esmeralda), var(--neon-ouro)); transform-origin: top; transform: scaleY(var(--fio, 0)); box-shadow: 0 0 14px var(--esmeralda); }
.passos li { padding-bottom: 44px; z-index: 1; opacity: .68; }
.passos li.aceso { opacity: 1; }
.menu a, .site-by, .rodape-nav a { font-family: var(--ui); }
.menu a { font-size: 16px; font-weight: 600; }
.rodape a { font-size: 16px; }
.condicoes { margin: 30px 0 0; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(var(--t), .16); }
.condicoes dt { font: 600 15px/1.3 var(--ui); }
.condicoes dd { margin: 3px 0 0; color: var(--nevoa); }
.pedido { position: relative; top: auto; gap: 24px; padding: clamp(20px, 2.4vw, 32px); }
.campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.pedido .campo legend, .pedido .campo > label, .pedido .extra label { display: block; padding: 0; margin-bottom: 10px; font: 600 16px/1.3 var(--ui); }
.opcional { font-weight: 500; color: var(--nevoa); }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; cursor: pointer; }
.opcao input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcao span { display: flex; align-items: center; min-height: 46px; padding: 8px 15px; border-radius: 12px; font: 500 15px/1.25 var(--ui); background: rgba(var(--t), .06); box-shadow: inset 0 0 0 1px rgba(var(--t), .24); transition: background .25s, box-shadow .25s; }
.opcao:hover span { background: rgba(var(--t), .13); }
.opcao .preco { margin-left: auto; padding-left: 12px; font: 600 15px/1.25 var(--ui); color: var(--ouro); white-space: nowrap; }
.opcao input:checked + span { font-weight: 600; box-shadow: inset 0 0 0 2px var(--ouro), 0 0 16px rgba(232, 195, 92, .35); }
.opcao input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.extra { margin-top: 14px; }
.pedido input[type="text"], .pedido input[type="number"], .pedido select, .pedido textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; color: var(--creme); font: 400 17px/1.4 var(--texto);
  background: rgba(var(--t), .06); border: 1px solid rgba(var(--t), .32);
}
.pedido select option { background: var(--painel); color: var(--creme); }
.pedido textarea { resize: vertical; }
.pedido ::placeholder { color: var(--nevoa); opacity: 1; }
[aria-invalid="true"] { border-color: var(--erro) !important; }
.erro { margin-top: 8px; color: var(--erro); font: 600 15px/1.35 var(--ui); }
.quantidade { display: flex; align-items: center; gap: 8px; }
.pedido .quantidade input { width: 86px; text-align: center; }
.qtd-botao { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; color: var(--creme); display: grid; place-items: center; background: rgba(var(--t), .07); box-shadow: inset 0 0 0 1px rgba(var(--t), .28); }
.qtd-botao:hover { background: rgba(var(--t), .16); }
.qtd-botao svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.foto-escolhida { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(var(--t), .05); }
.foto-escolhida img { width: 62px; height: 62px; flex: none; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--luz); }
.foto-escolhida-texto { flex: 1; min-width: 130px; }
.foto-escolhida strong { font: 600 16px/1.3 var(--ui); }
.foto-escolhida-dica { color: var(--nevoa); font-size: 15px; }
.foto-escolhida-acoes { display: flex; gap: 14px; }
.foto-escolhida-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ouro); font: 600 15px var(--ui); text-decoration: underline; text-underline-offset: 3px; }
.pedido .aviso { font-size: 15px; color: var(--nevoa); }
.pedido .status { font: 600 15px/1.4 var(--ui); color: var(--ouro); min-height: 0; }
.pedido .status:empty { display: none; }

/* Agenda */
.agenda-bloco { margin-top: 26px; }
.agenda-bloco .link-forte { display: inline-flex; margin: 0 0 0 8px; }
.agenda { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }

/* Foto ampliada */
.ampliada { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; }
.ampliada[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.ampliada::backdrop { background: #05080A; }
.ampliada-foto { position: relative; min-height: 0; display: grid; place-items: center; }
.ampliada-foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; border-radius: 8px; object-fit: contain; box-shadow: 0 0 60px color-mix(in srgb, var(--luz) 40%, transparent); }
.ampliada .seta { position: absolute; top: 50%; margin-top: -26px; background: rgba(10, 15, 18, .72); }
.seta-esq { left: 8px; }
.seta-dir { right: 8px; }
.ampliada-rodape { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; width: min(1240px, 100%); margin-inline: auto; }
#ampliada-legenda { font: 600 18px/1.3 var(--ui); }
.ampliada-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

/* Página 404 */
.nao-achada { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.nao-achada img { width: 220px; height: auto; }
.nao-achada p { color: var(--nevoa); max-width: 46ch; }

@media (max-width: 900px) {
  .encomenda-grade { grid-template-columns: 1fr; }
  .encomenda-lado { position: static; }
  .ficha { grid-template-columns: 1fr 1fr; }
  .ficha .ficha-texto { grid-column: 1 / -1; }
  .ficha .botao { grid-column: auto; padding-inline: 14px; }
  .ficha-seta { grid-column: 1 / -1; grid-row: auto; justify-content: center; }
}
@media (max-width: 420px) {
  .ficha { grid-template-columns: 1fr; }
  .bento .com-foto { flex-direction: column; align-items: flex-start; }
  .controle { padding: 18px; }
  .regua-marcas { font-size: 12px; }
}
