/* ===== Variáveis e tema ===== */
:root {
  --btn:#C8231A;
  --accent:#C8231A;
  --bg:#fff;
  --fg:#111;
  --mut:#555;
  --line:#bbb;
  --card:#f3f3f3;
  --rb:rgba(0,0,0,.4);
  --rad:12px;
  --hh:72px;
}

[data-theme=dark] {
  --bg:#4b4642;
  --fg:#fff;
  --mut:#e8e2db;
  --line:#7b746c;
  --card:#58524c;
  --accent:#FFB3AA;
  --rb:rgba(255,255,255,.55);
}

/* ===== Base ===== */
html {
  font-size:112.5%;
  background:var(--bg);
}

html.fb {
  display:none;
}

html[data-fs="1"] {
  font-size:131%;
}

html[data-fs="2"] {
  font-size:150%;
}

* {
  box-sizing:border-box;
  margin:0;
}

body {
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.6;
  padding-bottom:72px;
}

button, input, textarea, select {
  font-family:Arial,Helvetica,sans-serif;
}

a {
  color:inherit;
}

img {
  max-width:100%;
  display:block;
}

:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px;
}

.skip {
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--btn);
  color:#fff;
  padding:12px 18px;
  z-index:200;
  border-radius:var(--rad);
}

.skip:focus {
  left:8px;
  top:8px;
}

/* ===== Cabeçalho e menu ===== */
.hdr {
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  background:var(--bg);
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 16px;
  min-height:var(--hh);
  flex-wrap:wrap;
}

.hdr .logo {
  display:block;
  flex:none;
  margin-left:2cm;
}

.hdr .logo img {
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:0;
}

.hdr nav {
  display:flex;
  flex:1;
  justify-content:center;
  gap:clamp(4px,2vw,28px);
  align-items:center;
  align-self:stretch;
}

.ni {
  display:flex;
  align-items:center;
  align-self:stretch;
}

.hdr nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 12px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.07em;
  transform-origin:center;
  transition:transform .2s,color .2s;
  white-space:nowrap;
}

.hdr nav a:hover, .hdr nav a:focus-visible, .hdr nav a:active {
  transform:scale(1.3);
  color:var(--accent);
}

.hdr nav a.on {
  color:var(--accent);
}

.mega {
  position:absolute;
  left:0;
  right:0;
  top:100%;
  background:var(--bg);
  color:var(--fg);
  text-shadow:none;
  padding:28px 38px 36px;
  display:grid;
  visibility:hidden;
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
  transition:opacity .3s ease,transform .3s ease,visibility .3s;
  grid-auto-flow:column;
  grid-auto-columns:minmax(150px,1fr);
  gap:32px;
  box-shadow:0 20px 40px rgba(0,0,0,.3);
  max-height:70vh;
  overflow:auto;
  text-align:left;
  border-radius:0;
}

.ni.hm:hover .mega, .ni.hm:focus-within .mega {
  visibility:visible;
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.hdr.nomega .mega {
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

body[data-page] .hdr nav .mega a {
  display:block;
  min-height:36px;
  padding:3px 0;
  font-weight:400;
  font-size:.95rem;
  text-transform:none;
  letter-spacing:0;
  white-space:normal;
  color:var(--mut);
  text-align:left;
}

body[data-page] .hdr nav .mega h3 a {
  font-weight:700;
  color:var(--fg);
  font-size:1rem;
  letter-spacing:.03em;
  margin-bottom:4px;
}

body[data-page] .hdr nav .mega a:hover, body[data-page] .hdr nav .mega a:focus-visible {
  transform:none;
  color:var(--accent);
  text-decoration:underline;
}

.tools {
  display:flex;
  gap:8px;
  align-items:center;
}

.tools button {
  min-height:48px;
  min-width:48px;
  padding:0 12px;
  background:none;
  color:inherit;
  border:0;
  border-radius:0;
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:color .2s;
}

.tools button:hover {
  color:var(--accent);
}

.caret {
  width:10px;
  height:6px;
  flex:none;
}

.lang {
  position:relative;
}

.lang #lbtn:focus-visible, .langmenu button:focus-visible {
  outline:none;
}

.lang #lbtn:focus-visible span, .langmenu button:focus-visible span {
  text-decoration:underline;
}

.langmenu {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  background:var(--bg);
  color:var(--fg);
  text-shadow:none;
  border-radius:0;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:170px;
  box-shadow:0 10px 28px rgba(0,0,0,.4);
  visibility:hidden;
  opacity:0;
  transform:translateY(-8px);
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
}

.langmenu.open {
  visibility:visible;
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.tools .langmenu button {
  justify-content:flex-start;
  gap:12px;
  color:var(--fg);
  width:100%;
  font-weight:400;
}

.tools .langmenu button .code {
  font-weight:700;
  width:26px;
}

.tools .langmenu button:hover, .tools .langmenu button[aria-current=true] {
  color:var(--accent);
}

/* Cabeçalho transparente sobre o banner da home */
body[data-page=home] .hdr {
  background:linear-gradient(to bottom,rgba(0,0,0,.65),rgba(0,0,0,0));
  color:#fff;
  text-shadow:0 1px 6px rgba(0,0,0,.7);
  transition:background .25s,color .25s;
}

body[data-page=home] .hdr nav {
  gap:clamp(16px,5vw,72px);
}

body[data-page=home] .hdr nav a:hover, body[data-page=home] .hdr nav a:focus-visible, body[data-page=home] .hdr nav a:active, body[data-page=home] .hdr nav a.on, body[data-page=home] .tools>button:hover, body[data-page=home] .lang>button:hover {
  color:#FF8A7F;
}

body[data-page=home] .hdr:hover, body[data-page=home] .hdr:has(:focus-visible) {
  background:var(--bg);
  color:var(--fg);
  text-shadow:none;
}

body[data-page=home] .hdr:hover nav a:hover, body[data-page=home] .hdr:hover nav a:focus-visible, body[data-page=home] .hdr:hover nav a.on, body[data-page=home] .hdr:has(:focus-visible) nav a:focus-visible, body[data-page=home] .hdr:has(:focus-visible) nav a.on, body[data-page=home] .hdr:hover .tools>button:hover, body[data-page=home] .hdr:hover .lang>button:hover {
  color:var(--accent);
}

@media(max-width:820px) {
  .hdr {
    padding:6px 10px;
    gap:4px;
  }
  .hdr .logo {
    margin-left:.5cm;
  }
  .hdr nav {
    order:3;
    flex-basis:100%;
    justify-content:space-between;
    gap:0;
    align-self:auto;
  }
  body[data-page=home] .hdr nav {
    gap:0;
  }
  .hdr nav a {
    padding:0 6px;
    font-size:.72rem;
    letter-spacing:.04em;
  }
  .tools {
    margin-left:auto;
  }
  .mega {
    display:none!important;
  }
  :root {
    --hh:112px;
  }
}

/* ===== Layout geral ===== */
main {
  min-height:60vh;
}

.pad {
  padding:calc(var(--hh) + 36px) 20px 60px;
  max-width:1200px;
  margin:auto;
}

.pad.narrow {
  max-width:940px;
}

h1 {
  font-weight:400;
  font-size:clamp(2rem,5vw,3rem);
  margin-bottom:8px;
}

h1::after {
  content:"";
  display:block;
  width:var(--lw,100%);
  max-width:100%;
  height:1px;
  background:var(--btn);
  margin:14px 0 28px;
}

.search {
  margin:-8px auto 24px;
  max-width:520px;
}

.search input {
  padding-left:48px;
  border-radius:999px;
  background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 18px center;
}

.chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 28px;
}

a.pill, .pill {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border:1.5px solid transparent;
  border-radius:999px;
  background:var(--card);
  color:var(--fg);
  cursor:pointer;
  font-size:.95rem;
  text-decoration:none;
}

a.pill:hover, .pill:hover, .pill:focus-visible {
  border-color:var(--rb);
}

a.pill[aria-current=true], .pill[aria-pressed=true] {
  background:var(--btn);
  border-color:var(--btn);
  color:#fff;
}

/* ===== Home: banner ===== */
.hero {
  position:relative;
  height:95vh;
  height:95svh;
  overflow:hidden;
  background:#000;
  touch-action:pan-y;
}

.hero .pad {
  color: #fff;
}

.slide {
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity 1.2s,visibility 1.2s;
  overflow:hidden;
  display:block;
  text-decoration:none;
}

.slide.on {
  opacity:1;
  visibility:visible;
}

.slide img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
}

.slide.on img {
  animation:kb 16s ease-in-out infinite alternate;
}

.slide:nth-child(even).on img {
  animation-name:kb2;
}

@keyframes kb {
  from {
    transform:scale(1.02) translate(0,0);
  }
  to {
    transform:scale(1.18) translate(-2.5%,-2%);
  }
}

@keyframes kb2 {
  from {
    transform:scale(1.18) translate(2.5%,1.5%);
  }
  to {
    transform:scale(1.02) translate(0,0);
  }
}

.slide::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:50%;
  background:linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,0));
}

.cap {
  position:absolute;
  left:20px;
  right:20px;
  bottom:84px;
  z-index:2;
  color:#fff;
}

.cap small {
  display:block;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-size:.95rem;
}

.cap h2 {
  font-weight:400;
  font-size:clamp(1.6rem,4vw,2.8rem);
}

.ctl {
  position:absolute;
  left:12px;
  bottom:14px;
  z-index:3;
  display:flex;
  gap:4px;
  align-items:center;
}

.ctl button {
  width:44px;
  height:48px;
  border:0;
  border-radius:0;
  background:none;
  color:rgba(255,255,255,.35);
  text-shadow:0 1px 6px rgba(0,0,0,.9);
  font-size:1rem;
  cursor:pointer;
  transition:color .3s;
}

.ctl button:hover, .ctl button:focus-visible {
  color:#fff;
}

.ctl button.on {
  color:rgba(255,255,255,.6);
  text-decoration:underline;
  text-underline-offset:6px;
  text-decoration-thickness:1px;
}

.ctl button.on:hover, .ctl button.on:focus-visible {
  color:#fff;
}

/* ===== Home: seções ===== */
.sec {
  max-width:1200px;
  margin:auto;
  padding:72px 20px 8px;
  content-visibility:auto;
  contain-intrinsic-size:auto 640px;
}

.sec h2 {
  font-weight:400;
  font-size:clamp(1.6rem,3.5vw,2.4rem);
  margin-bottom:24px;
}

.sec .more {
  display:inline-block;
  margin-top:20px;
  font-weight:700;
  color:var(--accent);
}

.quote {
  font-size:clamp(1.2rem,2.6vw,1.8rem);
  max-width:760px;
  line-height:1.5;
}

.news {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(40px,9vw,140px);
  margin-top:8px;
}

.news a {
  display:block;
  text-decoration:none;
  text-align:center;
}

.im {
  aspect-ratio:1/1;
  background:var(--card);
  border-radius:0;
  overflow:hidden;
  display:block;
  transition:transform .3s ease,box-shadow .3s ease;
}

.im img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.news a:hover, .news a:focus-visible, a.card:hover, a.card:focus-visible {
  position:relative;
  z-index:3;
}

.news a:hover .im, .news a:focus-visible .im, a.card:hover .im, a.card:focus-visible .im {
  transform:scale(1.05);
  box-shadow:0 16px 30px rgba(0,0,0,.4);
}

.news span.n {
  display:block;
  margin-top:14px;
  font-size:.9rem;
  color:var(--mut);
}

.news a:hover span.n {
  color:var(--accent);
}

@media(max-width:700px) {
  .news {
    grid-template-columns:1fr;
    gap:40px;
  }
}

/* ===== Listagens ===== */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:36px 28px;
}

a.card {
  display:block;
  text-decoration:none;
  color:inherit;
}

.card.cv .im {
  aspect-ratio:4/3;
}

.card .tx {
  padding:14px 4px;
  display:flex;
  flex-direction:column;
}

.card h3 {
  font-weight:700;
  font-size:1.15rem;
}

.card:hover h3 {
  color:var(--accent);
}

.card small {
  color:var(--mut);
  font-size:.9rem;
}

.loadmore {
  display:flex;
  justify-content:center;
  margin:40px 0 0;
}

/* ===== Botões ===== */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  background:var(--btn);
  color:#fff;
  border:1.5px solid var(--btn);
  border-radius:var(--rad);
  padding:10px 22px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  gap:8px;
}

.btn:hover {
  filter:brightness(1.15);
}

.btn.alt {
  background:none;
  color:var(--fg);
  border-color:transparent;
  border-radius:0;
}

.btn.alt:hover, .btn.alt:focus-visible {
  color:var(--accent);
  filter:none;
}

.btn.out {
  background:none;
  color:var(--fg);
  border-color:var(--rb);
}

.btn.sm {
  padding:6px 14px;
  min-height:44px;
  font-size:.9rem;
}

.btn[disabled] {
  opacity:.5;
  cursor:not-allowed;
}

.mt {
  margin-top:8px;
}

.actions {
  display:flex;
  gap:8px;
  margin-top:16px;
}

/* ===== Página de item ===== */
.back {
  display:inline-block;
  margin-bottom:16px;
  text-decoration:none;
  font-weight:700;
  color:var(--accent);
}

.ip {
  display:grid;
  grid-template-columns:84px minmax(0,1fr) 360px;
  gap:24px;
}

.thumbcol {
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:78vh;
  overflow:auto;
}

.th {
  position:relative;
  padding:0;
  border:2px solid transparent;
  border-radius:0;
  overflow:hidden;
  background:var(--bg);
  cursor:pointer;
  flex:none;
  width:76px;
  height:76px;
}

.th.on, .th:hover, .th:focus-visible {
  border-color:var(--accent);
}

.th img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.th .more {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.15rem;
}

.stage {
  position:relative;
  aspect-ratio:var(--ar,1/1);
  width:min(100%,calc(78vh*var(--arn,1)));
  background:var(--card);
  border-radius:0;
  overflow:hidden;
}

.big {
  position:absolute;
  inset:0;
  overflow:hidden;
  cursor:zoom-in;
}

.big img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .15s ease-out;
}

.big:hover img {
  transform:scale(2.3);
}

.ar {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:72px;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.8;
  transition:opacity .2s,transform .2s;
  filter:drop-shadow(0 0 3px rgba(0,0,0,.8));
}

.ar svg {
  width:22px;
  height:38px;
}

.ar:hover, .ar:focus-visible {
  opacity:1;
  transform:translateY(-50%) scale(1.15);
}

.ar.l {
  left:4px;
}

.ar.r {
  right:4px;
}

.info {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.info h1 {
  font-size:clamp(1.8rem,3vw,2.4rem);
}

.info h1::after {
  margin:10px 0 0;
}

.info .sub {
  color:var(--accent);
  font-weight:700;
}

.opt h3 {
  font-size:1rem;
  margin-bottom:8px;
}

.opt h3 span {
  font-weight:400;
  color:var(--mut);
}

.pills {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.sw {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  align-self: center;
  box-shadow: inset 0 0 0 1px rgba(128,128,128,.35);
}

.sw:hover, .sw:focus-visible {
  border-color: var(--rb);
}

.sw[aria-pressed=true] {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media(max-width:900px) {
  .ip {
    grid-template-columns:1fr;
  }
  .stage {
    order:1;
    width:100%;
  }
  .thumbcol {
    order:2;
    flex-direction:row;
    max-height:none;
  }
  .info {
    order:3;
  }
  .big:hover img {
    transform:none;
  }
  .big {
    cursor:default;
  }
}

/* ===== Sobre ===== */
.atext::after {
  content:"";
  display:block;
  clear:both;
}

.atext p {
  margin:0 0 1.1em;
  max-width:72ch;
}

.af {
  margin:0;
}

.af img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.af-top {
  aspect-ratio:21/9;
  margin:0 0 32px;
}

.af-left, .af-right {
  width:min(44%,380px);
  aspect-ratio:4/5;
  margin-bottom:18px;
}

.af-left {
  float:left;
  clear:left;
  margin-right:32px;
}

.af-right {
  float:right;
  clear:right;
  margin-left:32px;
}

.af-bottom {
  aspect-ratio:21/9;
  margin:32px 0 0;
}

.gallery {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
  margin-top:36px;
}

.gallery .af {
  aspect-ratio:1/1;
}

@media(max-width:700px) {
  .af-left, .af-right {
    float:none;
    width:100%;
    margin:0 0 18px;
  }
}

/* ===== Barra de contato (rodapé) ===== */
.bar {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  background:var(--bg);
  color:var(--fg);
  transform:translateY(105%);
  transition:transform .35s;
  padding:8px 20px;
  display:flex;
  gap:8px 24px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 -8px 24px rgba(0,0,0,.3);
  min-height:60px;
  font-size:.9rem;
}

.bar.show, .bar:focus-within {
  transform:none;
}

.bar .info2 {
  display:flex;
  gap:4px 20px;
  flex-wrap:wrap;
  color:var(--mut);
}

.bar .info2 a {
  text-decoration:none;
}

.bar .info2 a:hover {
  color:var(--accent);
}

.bar .socs {
  display:flex;
  gap:6px;
  align-items:center;
}

.bar .socs a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  text-decoration:none;
}

.bar .socs a:hover, .bar .socs a:focus-visible {
  color:var(--accent);
}

.bar .socs a.dim {
  opacity:.55;
}

.bar .socs svg {
  width:24px;
  height:24px;
}

/* ===== Modal e formulários ===== */
.modal {
  position:fixed;
  inset:0;
  background:#000c;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.modal.open {
  display:flex;
}

.box {
  background:var(--bg);
  border-radius:20px;
  padding:24px;
  width:100%;
  max-width:520px;
  max-height:92vh;
  overflow:auto;
}

.box h2 {
  font-weight:400;
}

.privacy {
  font-size:.85rem;
  color:var(--mut);
  margin-top:12px;
  line-height:1.4;
}

label {
  display:block;
  font-size:1rem;
  font-weight:700;
  margin:14px 0 4px;
}

input, textarea, select.f {
  width:100%;
  min-height:48px;
  padding:10px;
  background:var(--card);
  color:var(--fg);
  border:1.5px solid var(--rb);
  border-radius:10px;
  font:inherit;
}

textarea {
  min-height:120px;
}

.hp {
  position:absolute;
  left:-9999px;
}

.msg {
  margin-top:12px;
  color:var(--accent);
  font-weight:700;
}

.msg.tight {
  margin-top:4px;
}

/* ===== Admin ===== */
.cols {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:12px;
}

.tabs {
  display:flex;
  gap:8px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.row {
  display:flex;
  gap:12px;
  align-items:center;
  background:var(--card);
  border-radius:var(--rad);
  padding:10px;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.row img {
  width:64px;
  height:48px;
  object-fit:cover;
  background:var(--bg);
  border-radius:0;
}

.row .g {
  flex:1;
  min-width:160px;
}

.row .b {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.row select.f {
  width:auto;
  min-width:230px;
}

.thumbs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}

.thumbs div {
  position:relative;
}

.thumbs img {
  width:80px;
  height:60px;
  object-fit:cover;
  border-radius:0;
}

.thumbs button {
  position:absolute;
  top:0;
  right:0;
  width:32px;
  height:32px;
  background:var(--btn);
  color:#fff;
  border:0;
  border-radius:0;
  cursor:pointer;
}

.note {
  background:var(--card);
  border-left:6px solid var(--btn);
  border-radius:8px;
  padding:10px 14px;
  margin-bottom:20px;
  color:var(--mut);
}

small.h {
  display:block;
  color:var(--mut);
  font-weight:400;
}

.partbox {
  background:var(--card);
  padding:12px 14px;
  margin:12px 0;
}

.optrow {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:8px;
  margin:6px 0;
  align-items:center;
}

.combo {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  background:var(--card);
  padding:8px 12px;
  margin-bottom:6px;
}

.combo .lbl {
  flex:1;
  min-width:160px;
  font-weight:700;
}

.combo img {
  width:64px;
  height:48px;
  object-fit:cover;
}

.combo input[type=file] {
  width:auto;
  min-height:0;
  border:0;
  background:none;
  padding:0;
}

.crow {
  display:grid;
  grid-template-columns:200px 1fr 2fr auto;
  gap:8px;
  align-items:center;
  background:var(--card);
  padding:8px 12px;
  margin-bottom:6px;
}

.crow .b {
  display:flex;
  gap:2px;
}

@media(max-width:800px) {
  .crow {
    grid-template-columns:1fr;
  }
}

/* ===== Introdução (escolha de idioma) ===== */
html[data-intro] {
  overflow:hidden;
}

html[data-intro] #hdr, html[data-intro] #main {
  transition:opacity .9s ease;
}

html[data-intro="1"] #hdr, html[data-intro="1"] #main {
  opacity:0;
}

html[data-intro] .hdr .logo img {
  visibility:hidden;
}

#intro {
  position:fixed;
  inset:0;
  z-index:1000;
  background-color:#0b0b0b;
  transition:background-color .9s ease;
}

#intro.go {
  background-color:rgba(11,11,11,0);
  pointer-events:none;
}

#intro .il {
  position:fixed;
  opacity:0;
  object-fit:contain;
  border-radius:0;
  transition:opacity .9s ease,left .9s cubic-bezier(.65,0,.25,1),top .9s cubic-bezier(.65,0,.25,1),width .9s cubic-bezier(.65,0,.25,1),height .9s cubic-bezier(.65,0,.25,1);
}

#intro .il.show {
  opacity:1;
}

#intro .lo {
  position:fixed;
  display:flex;
  flex-direction:column;
}

#intro .lo button {
  background:#0b0b0b;
  color:rgba(255,255,255,.85);
  border:0;
  border-radius:0;
  font-size:1.05rem;
  font-weight:400;
  letter-spacing:.05em;
  text-align:left;
  padding:0 6px;
  cursor:pointer;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .35s ease,transform .35s ease,color .25s;
}

#intro .lo button.show {
  opacity:1;
  transform:none;
}

#intro .lo button:hover {
  color:#fff;
  text-decoration:underline;
  text-underline-offset:6px;
  text-decoration-thickness:1px;
}

#intro .lo button:focus-visible {
  outline:none;
  color:#fff;
  text-decoration:underline;
  text-underline-offset:6px;
}

#intro .lo.out button {
  opacity:0;
  transform:none;
  transition:opacity .4s ease;
}

/* ===== Movimento reduzido ===== */
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important;
  }
  .hdr nav a:hover {
    transform:none;
    text-decoration:underline;
  }
}

body.admin {
  padding-bottom: 0;
}
.ar[hidden] {
  display: none !important;
}