* { box-sizing: border-box; }
:root { color-scheme: light; --plum:#49283b; --cream:#f4eee5; --gold:#c8a66a; --sage:#788272; --ink:#33222e; }
html,body { min-width:320px; margin:0; background:var(--cream); color:var(--ink); }
html { scroll-behavior:smooth; }
body { overflow-x:hidden; }
button,a { font:inherit; }
.page-section { display:grid; width:100%; height:100vh; height:100svh; place-items:center; background:var(--cream); }
.page-canvas { position:relative; width:min(100vw,177.7778vh,1920px); width:min(100vw,177.7778svh,1920px); aspect-ratio:16/9; margin:0; overflow:hidden; background:var(--cream); }
.page-art { display:block; width:100%; height:100%; object-fit:contain; }
.zoom-trigger { position:absolute; z-index:1; inset:0; display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:transparent; cursor:zoom-in; -webkit-tap-highlight-color:transparent; }
.zoom-trigger:focus-visible { outline:3px solid var(--gold); outline-offset:-5px; box-shadow:inset 0 0 0 8px rgba(73,40,59,.38); }
.contact-hotspot { position:absolute; z-index:2; display:block; margin:0; padding:0; border:2px solid transparent; border-radius:50%; background:transparent; transition:background .16s ease,border-color .16s ease,box-shadow .16s ease; -webkit-tap-highlight-color:transparent; }
.contact-hotspot:hover { border-color:rgba(200,166,106,.98); background:rgba(255,250,239,.2); box-shadow:0 0 0 5px rgba(73,40,59,.3),0 0 18px rgba(200,166,106,.74); }
.contact-hotspot:focus-visible { z-index:3; outline:3px solid var(--plum); outline-offset:2px; border-color:var(--gold); background:rgba(255,250,239,.24); box-shadow:0 0 0 7px rgba(244,238,229,.85); }
/* Links sobre os ícones, medidos sobre a arte pagina-09.webp (2880 × 1620). */
.contact-hotspot.whatsapp { left:6.52%; top:37.11%; width:5.2%; height:9.24%; }
.contact-hotspot.email { left:6.52%; top:48.31%; width:5.2%; height:9.24%; }
.contact-hotspot.instagram { left:6.52%; top:60.16%; width:5.2%; height:9.24%; }
.contact-hotspot.linkedin { left:6.52%; top:72.26%; width:5.2%; height:9.24%; }
/* Link telefônico independente, sobre o número impresso na mesma linha do ícone de telefone. */
.contact-hotspot.phone { left:13.6%; top:38.6%; width:19.8%; height:6.4%; border-radius:9px; }
.download-footer { display:flex; min-height:116px; align-items:center; justify-content:center; padding:22px 16px calc(22px + env(safe-area-inset-bottom)); background:var(--plum); }
.download-button { display:inline-flex; min-height:50px; align-items:center; justify-content:center; gap:11px; padding:0 23px; border:1px solid rgba(255,255,255,.18); border-radius:3px; background:var(--gold); color:#392331; font:700 14px/1.3 Arial,Helvetica,sans-serif; text-decoration:none; transition:transform .16s ease,background .16s ease,box-shadow .16s ease; }
.download-button:hover { transform:translateY(-2px); background:#ddc28d; box-shadow:0 6px 18px rgba(22,12,20,.28); }
.download-button:focus-visible { outline:3px solid var(--cream); outline-offset:4px; }
.download-button svg { width:19px; height:19px; flex:0 0 auto; }
.skip-link { position:fixed; z-index:10; top:12px; left:12px; transform:translateY(-150%); padding:10px 14px; background:var(--gold); color:var(--plum); font:700 14px/1.4 Arial,sans-serif; }
.skip-link:focus { transform:translateY(0); }
.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; }
.art-viewer { position:fixed; inset:0; width:100vw; max-width:none; height:100vh; height:100dvh; max-height:none; margin:0; padding:0; overflow:hidden; border:0; background:#241921; color:#f8f4ed; }
.art-viewer[open] { display:flex; flex-direction:column; }
/* No visualizador, os links de contato só existem na página 9. */
.viewer-hotspot { display:none; }
.viewer-canvas.show-contacts .viewer-hotspot { display:block; }
.art-viewer::backdrop { background:#211921; }
.viewer-toolbar { display:flex; min-height:56px; flex:0 0 auto; align-items:center; justify-content:space-between; gap:12px; padding:8px max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left)); border-bottom:1px solid rgba(248,244,237,.18); background:#382532; font:12px Arial,Helvetica,sans-serif; }
.viewer-page { font-weight:600; white-space:nowrap; }
.viewer-controls { display:flex; align-items:center; gap:8px; }
.viewer-control { display:grid; width:36px; height:36px; place-items:center; padding:0; border:1px solid rgba(248,244,237,.35); border-radius:3px; background:#4a3342; color:#f8f4ed; font:400 23px/1 Arial,sans-serif; cursor:pointer; }
.viewer-control:hover { border-color:var(--gold); color:var(--gold); }
.viewer-control:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.viewer-close { margin-left:5px; font-size:28px; }
.viewer-scale { min-width:48px; color:#eadfce; font:11px Arial,sans-serif; text-align:center; }
.viewer-stage { width:100%; min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; padding:14px; background:#241921; touch-action:auto; }
.viewer-canvas { position:relative; width:100%; aspect-ratio:16/9; margin:0 auto; overflow:visible; }
.viewer-art { display:block; width:100%; height:100%; object-fit:contain; }
.viewer-hint { display:flex; min-height:33px; flex:0 0 auto; align-items:center; justify-content:center; margin:0; padding:4px 12px max(6px,env(safe-area-inset-bottom)); background:#382532; color:#e4dcd1; font:11px/1.4 Arial,sans-serif; text-align:center; }
@media (max-aspect-ratio:1/1) {
 .page-section { height:auto; min-height:0; }
 .page-canvas { width:100vw; max-width:none; }
}
@media (max-width:520px) {
 .download-footer { min-height:84px; }
 .download-button { min-height:46px; gap:9px; padding:0 17px; font-size:13px; }
 .viewer-toolbar { min-height:52px; }
 .viewer-controls { gap:5px; }
 .viewer-control { width:34px; height:34px; }
 .viewer-scale { min-width:41px; font-size:10px; }
 .viewer-stage { padding:12px; }
 /* Aumenta a área de toque mantendo os pontos centrais das quatro anotações do PDF. */
 .contact-hotspot.whatsapp,.contact-hotspot.email,.contact-hotspot.instagram,.contact-hotspot.linkedin { left:5.62%; width:7%; height:12.44%; }
 .contact-hotspot.whatsapp { top:35.51%; }
 .contact-hotspot.email { top:46.71%; }
 .contact-hotspot.instagram { top:58.56%; }
 .contact-hotspot.linkedin { top:70.66%; }
 .contact-hotspot.phone { left:13%; top:37.6%; width:21%; height:8.4%; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 *,*::before,*::after { transition-duration:.01ms !important; }
}
@media print {
 .skip-link,.art-viewer,.download-footer { display:none !important; }
 .page-section { height:auto; min-height:0; break-after:page; page-break-after:always; }
 .page-canvas { width:100%; }
}
