/* Atenas Brasileira — execução "maison": sistema fechado.
   BelArosa Chalet: cor da marca como texto e como painel escuro; ouro só destaque; serifa 600/700 +
   sans com tracking; pílulas vazadas; alternância painel imersivo / tela clara.
   Ashton Bespoke: fotografia como obra com filete de 1px. Essie Wine: respiro de 136px, ouro velho. */

:root {
  --azul: #0e2a5c;            /* texto e painéis — papel do "Chalet Teal" */
  --azul-fundo: #0b2250;
  --azul-2: #08193b;
  --branco: #ffffff;
  --linho: #f1ede4;           /* superfície secundária */
  --linho-2: #e6e0d3;
  --pedra: #8a94a3;           /* texto secundário, bordas quietas */
  --ouro: #d3b46f;            /* destaque — nunca fundo */
  --ouro-escuro: #a88a3f;
  --ouro-grad: linear-gradient(135deg, #a88a3f, #e6cc8a 45%, #c6a55a 70%, #f0dc9f);
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, sans-serif;
  --miolo: 1200px;
  --lateral: clamp(20px, 5vw, 72px);
  --secao: clamp(96px, 13vh, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--branco); color: var(--azul); font-family: var(--ui); font-size: 16px; line-height: 1.6; letter-spacing: .01em; overflow-x: hidden; }
body.menu-aberto { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; }
.miolo { width: min(var(--miolo), 100% - 2 * var(--lateral)); margin-inline: auto; }
.centro { text-align: center; margin-top: 56px; }

.orn { display: inline-block; background: var(--ouro-grad); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.orn.lira-louros { --m: url(img/orn/lira-louros.svg); }
.orn.lira { --m: url(img/orn/lira.svg); }
.orn.instrumentos { --m: url(img/orn/instrumentos.svg); }
.orn.coroa-fitas { --m: url(img/orn/coroa-fitas.svg); }
.orn.cariatide { --m: url(img/orn/cariatide.svg); }

/* tipografia de sistema */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .167em; text-transform: uppercase; color: var(--ouro-escuro); margin-bottom: 20px; }
.eyebrow-ouro { color: var(--ouro); }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; }
.dek { font-size: 17px; line-height: 1.65; color: var(--pedra); max-width: 50ch; text-wrap: pretty; }
.escuro .dek { color: rgba(255,255,255,.66); }
.link { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .125em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--ouro); transition: color .2s, border-color .2s; }
.link:hover { color: var(--ouro-escuro); }
.pilula { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .167em; text-transform: uppercase; padding: 18px 32px; border: 1px solid var(--azul); border-radius: 80px; color: var(--azul); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s; }
.pilula:hover { background: var(--azul); color: var(--branco); }
.pilula-clara { border-color: rgba(255,255,255,.7); color: var(--branco); }
.pilula-clara:hover { background: var(--branco); color: var(--azul); border-color: var(--branco); }
.pilula-cheia { background: var(--azul); color: var(--branco); }
.pilula-cheia:hover { background: var(--azul-2); }
.acoes { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.rev { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rev.visto { opacity: 1; transform: none; }
.medalhoes .rev:nth-child(4n+2), .parede .rev:nth-child(3n+2), .colunas .rev:nth-child(2) { transition-delay: .08s; }
.medalhoes .rev:nth-child(4n+3), .parede .rev:nth-child(3n), .colunas .rev:nth-child(3) { transition-delay: .16s; }
.medalhoes .rev:nth-child(4n), .colunas .rev:nth-child(4) { transition-delay: .24s; }

/* quadro: filete 1px (Ashton) + espaço de passe-partout */
.quadro { display: block; position: relative; border: 1px solid var(--azul); padding: 10px; background: var(--branco); }
.escuro .quadro { border-color: rgba(255,255,255,.35); background: transparent; }
.quadro img { width: 100%; }

/* ---------- topo ---------- */
.topo { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--lateral); color: var(--branco); transition: background .35s, color .35s, padding .35s, box-shadow .35s; }
.topo.solido { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); color: var(--azul); padding-block: 14px; box-shadow: 0 1px 0 var(--linho-2); }
.marca { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.marca img { height: 36px; width: auto; transition: filter .35s; }
.topo.solido .marca img { filter: brightness(0) saturate(100%) invert(13%) sepia(60%) saturate(2400%) hue-rotate(210deg) brightness(90%); }
.nav { display: flex; gap: 32px; font-size: 12px; font-weight: 500; letter-spacing: .167em; text-transform: uppercase; }
.nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: currentColor; }
.topo .pilula { padding: 12px 22px; border-color: rgba(255,255,255,.7); color: var(--branco); }
.topo .pilula:hover { background: var(--branco); color: var(--azul); }
.topo.solido .pilula { border-color: var(--azul); color: var(--azul); }
.topo.solido .pilula:hover { background: var(--azul); color: var(--branco); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid currentColor; border-radius: 50%; cursor: pointer; padding: 11px; color: inherit; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--azul-fundo); color: var(--branco); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--lateral); }
.menu[hidden] { display: none; }
.menu a { font-family: var(--display); font-size: clamp(34px, 8vw, 64px); font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(211,180,111,.3); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--branco); isolation: isolate; }
.hero-foto, .hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8,25,59,.55) 0%, rgba(8,25,59,.25) 40%, rgba(8,25,59,.6) 100%); }
.hero-miolo { padding: 140px var(--lateral) 120px; max-width: 880px; }
.crista { width: 64px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: 1; font-weight: 600; margin-bottom: 24px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-dek { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 50ch; margin: 0 auto 36px; color: rgba(255,255,255,.88); text-wrap: pretty; }
.hero .acoes { justify-content: center; }
.hero-legenda { position: absolute; left: var(--lateral); right: var(--lateral); bottom: 20px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .167em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---------- seções ---------- */
.secao { padding-block: var(--secao); }
.linho { background: var(--linho); }
.escuro { background: var(--azul-fundo); color: var(--branco); }
.cabeca { margin-bottom: 64px; }
.cabeca-lado { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.cabeca:not(.cabeca-lado) { text-align: center; max-width: 720px; margin-inline: auto; }
.cabeca:not(.cabeca-lado) .dek { margin: 20px auto 0; }

/* intro */
.intro-grade { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.intro h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 500; line-height: 1.15; }
.intro-texto { padding-top: 10px; }
.intro-texto p { margin-bottom: 22px; color: var(--azul); font-size: 17px; line-height: 1.7; text-wrap: pretty; }

/* entrada: mapa */
.mapa { margin: 0; }
.mapa .quadro { padding: 12px; }
.mapa img { aspect-ratio: 16 / 10; object-fit: cover; }
.mapa figcaption { margin-top: 16px; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--pedra); }
.ponto { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 12px; }
.ponto b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: var(--ouro); font-size: 11px; font-weight: 600; letter-spacing: .1em; border: 1px solid var(--ouro); box-shadow: 0 0 0 10px rgba(14,42,92,.14); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.ponto span { background: var(--branco); color: var(--azul); font-size: 11px; font-weight: 500; letter-spacing: .167em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--azul); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); }
.ponto:hover b, .ponto:focus b { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(14,42,92,.14); }
.ponto:hover span, .ponto:focus span { opacity: 1; transform: none; }

/* painel imersivo */
.painel { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: var(--branco); overflow: hidden; }
.painel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.painel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,25,59,.9) 0%, rgba(8,25,59,.35) 50%, rgba(8,25,59,.15) 100%); }
.painel-texto { position: relative; z-index: 1; width: min(var(--miolo), 100% - 2 * var(--lateral)); margin: 0 auto; padding-bottom: clamp(56px, 9vh, 110px); max-width: 680px; margin-left: max(var(--lateral), calc((100% - var(--miolo)) / 2)); }
.painel h2 { font-size: clamp(32px, 3.8vw, 56px); margin-bottom: 18px; }
.painel p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 52ch; }
.fonte { margin-top: 20px; font-size: 11px; letter-spacing: .167em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* escritores */
.medalhoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; }
.medalhao { position: relative; text-align: center; padding-top: 24px; }
.medalhao .coroa { position: absolute; left: 50%; top: 0; width: 216px; height: 216px; transform: translateX(-50%) scale(.92); background: var(--ouro-grad); -webkit-mask: url(img/orn/coroa-carvalho.svg) center / contain no-repeat; mask: url(img/orn/coroa-carvalho.svg) center / contain no-repeat; opacity: 0; transition: opacity .5s, transform .7s var(--ease); }
.medalhao:hover .coroa { opacity: 1; transform: translateX(-50%) scale(1); }
.medalhao .oval { position: relative; display: block; width: 148px; height: 148px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--branco), 0 0 0 5px var(--azul); }
.medalhao .oval img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.medalhao:hover .oval img { transform: scale(1.06); }
.medalhao b { display: block; margin-top: 24px; font-family: var(--display); font-weight: 600; font-size: 19px; }
.medalhao i { display: block; font-style: normal; font-size: 11px; letter-spacing: .167em; color: var(--ouro-escuro); margin-top: 6px; }
.medalhao small { display: block; font-size: 13px; color: var(--pedra); margin-top: 4px; }

/* azulejo */
.azulejo { height: clamp(48px, 6vw, 84px); overflow: hidden; }
.azulejo img { width: 100%; height: 100%; object-fit: cover; }

/* acervo */
.parede { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, 20vw); grid-auto-flow: dense; gap: 24px; }
.tela { position: relative; display: block; }
.tela.g { grid-column: span 2; }
.tela .quadro { height: 100%; padding: 8px; }
.tela .quadro img { height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.tela:hover .quadro img { transform: scale(1.025); }
.placa { position: absolute; left: 22px; bottom: 22px; background: var(--branco); color: var(--azul); padding: 10px 14px; font-size: 12px; line-height: 1.4; max-width: calc(100% - 44px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.placa b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.tela:hover .placa, .tela:focus .placa { opacity: 1; transform: none; }

/* programa */
.colunas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-top: 1px solid var(--linho-2); padding-top: 48px; }
.coluna { display: flex; flex-direction: column; gap: 14px; }
.coluna .orn { width: 40px; height: 52px; margin-bottom: 12px; }
.coluna b { font-family: var(--display); font-weight: 600; font-size: 26px; }
.coluna p { font-size: 15px; line-height: 1.6; color: var(--pedra); }
.coluna .link { align-self: flex-start; margin-top: 8px; }

/* tempo */
.tempo .miolo { margin-bottom: 8px; }
.fita { list-style: none; margin: 0; padding: 40px 0 0 max(var(--lateral), calc((100% - var(--miolo)) / 2)); scroll-padding-inline-start: max(var(--lateral), calc((100% - var(--miolo)) / 2)); display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; border-top: 1px solid rgba(211,180,111,.35); }
.fita::-webkit-scrollbar { display: none; }
.fita.arrastando { cursor: grabbing; scroll-snap-type: none; }
.fita li { flex: 0 0 clamp(240px, 22vw, 320px); scroll-snap-align: start; margin-right: 40px; position: relative; padding-top: 8px; }
.fita li::before { content: ""; position: absolute; top: -45px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 0 4px var(--azul-fundo), 0 0 0 5px rgba(211,180,111,.5); }
.fita b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; color: var(--ouro); margin-bottom: 14px; }
.fita span { display: block; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 30ch; }

/* patronos */
.patronos { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.selo { width: 300px; height: 300px; border-radius: 50%; background: var(--azul); color: var(--ouro); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--linho), 0 0 0 7px var(--ouro); }
.selo svg { width: 262px; height: 262px; }
.patronos h2 { margin-bottom: 18px; }
.patronos .dek { margin-bottom: 30px; max-width: 56ch; }

/* rodapé (painel escuro, como BelArosa) */
.rodape { background: var(--azul-2); color: rgba(255,255,255,.72); padding: 80px 0 36px; font-size: 14px; }
.rodape-grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; gap: 40px; }
.rodape img { height: 92px; width: auto; margin-bottom: 16px; }
.rodape a { display: block; padding: 3px 0; color: var(--branco); }
.rodape p a { display: inline; border-bottom: 1px solid var(--ouro); }
.rodape .eyebrow { margin-bottom: 10px; }
.creditos { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.5); }
.rodape-fim { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.4); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .medalhoes, .parede { grid-template-columns: repeat(3, 1fr); }
  .colunas { grid-template-columns: repeat(2, 1fr); }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .topo .pilula { display: none; }
  .menu-btn { display: block; }
  .intro-grade, .cabeca-lado, .patronos { grid-template-columns: 1fr; gap: 24px; }
  .patronos { justify-items: center; text-align: center; }
  .patronos .acoes { justify-content: center; }
  .patronos .dek { margin-inline: auto; }
  .painel { min-height: 76svh; }
}
@media (max-width: 640px) {
  .hero-miolo { padding: 120px 8px 96px; }
  .hero-legenda { display: none; }
  .medalhoes { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .medalhao .oval { width: 118px; height: 118px; }
  .medalhao .coroa { width: 172px; height: 172px; }
  .medalhao b { font-size: 16px; }
  .parede { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 12px; }
  .tela.g { grid-column: span 2; }
  .placa { opacity: 1; transform: none; left: 12px; bottom: 12px; font-size: 11px; padding: 6px 10px; }
  .placa b { font-size: 13px; }
  .colunas { grid-template-columns: 1fr; }
  .ponto span { display: none; }
  .rodape-grade { grid-template-columns: 1fr; }
  .selo { width: 240px; height: 240px; } .selo svg { width: 212px; height: 212px; }
}
@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; transition: none; } }
