
:root{
  --green:#006b3f;
  --green-dark:#003b26;
  --red:#c8102e;
  --white:#ffffff;
  --cream:#f7f5ef;
  --text:#173128;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--cream);color:var(--text)}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.nav{
  position:fixed;top:0;left:0;width:100%;height:76px;z-index:1000;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 6%;background:transparent;color:#fff;
  transition:background .3s ease,box-shadow .3s ease;
}
.nav.scrolled{background:var(--green-dark);box-shadow:0 5px 20px rgba(0,0,0,.2)}
.brand-wrap{display:flex;align-items:center;gap:10px}
.nav-logo-img{width:52px;height:52px;object-fit:contain;border-radius:50%;background:#fff}
.logo{font-family:Georgia,'Times New Roman',serif;font-size:22px;letter-spacing:2px;color:#fff}
.logo small{display:block;font:700 8px Arial,sans-serif;letter-spacing:2.4px;margin-top:3px;color:#fff}
.navlinks{display:flex;align-items:center;gap:22px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.navlinks a{color:#fff}
.navlinks a:hover{color:#ffd9df}
.navbtn{background:var(--red);padding:11px 15px}

.hero{
  min-height:100vh;position:relative;display:flex;align-items:flex-end;
  padding:145px 7% 80px;color:#fff;overflow:hidden;
  background:
    linear-gradient(90deg,rgba(0,34,21,.88) 0%,rgba(0,55,34,.48) 55%,rgba(0,0,0,.12) 100%),
    url('assets/hero-desfile.jpg') center/cover no-repeat;
}
.hero-content{max-width:720px}
.eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--red)}
.hero .eyebrow{color:#fff}
.hero h1,.heading,.page-title{font-family:Georgia,'Times New Roman',serif;font-weight:400}
.hero h1{font-size:clamp(48px,7vw,82px);line-height:.96;margin:14px 0 18px}
.hero h1 span,.heading span{color:var(--red)}
.hero p{max-width:560px;margin:0;color:#f0f4f2;font-size:15px;line-height:1.7}
.btn{
  display:inline-block;margin-top:20px;padding:14px 20px;background:var(--red);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;
}
.btn:hover{background:#a90c25}
.btn.outline{background:transparent;color:var(--green-dark);border:1px solid var(--green-dark)}
.btn.outline:hover{background:var(--green-dark);color:#fff}

section{padding:78px 7%}
.heading{font-size:clamp(36px,5vw,62px);line-height:1.02;margin:12px 0 20px}
.copy{max-width:650px;color:#58675f;font-size:15px;line-height:1.8}

.enredo{
  background:linear-gradient(135deg,var(--green-dark),var(--green));
  color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;
}
.enredo .eyebrow{color:#fff}
.enredo .heading span{color:#fff}
.enredo .copy{color:#edf4f0}
.enredo-logo{width:100%;max-width:470px;margin:auto;border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.35)}

.history-preview{
  background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;
}
.history-image{
  min-height:430px;background:url('assets/hero-desfile.jpg') center/cover no-repeat;
  position:relative;
}
.history-image:after{
  content:'75 ANOS';position:absolute;left:18px;bottom:18px;
  background:var(--white);color:var(--green-dark);padding:10px 13px;
  font-size:10px;font-weight:800;letter-spacing:2px;
}

.shop-preview{background:var(--cream)}
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.shop-card{background:#fff;padding:12px;border:1px solid #ece8df}
.shop-card img{width:100%;height:260px;object-fit:cover;background:#eee}
.shop-card h3{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:14px 0 5px}
.shop-card p{margin:0;color:#69756f;font-size:14px}

.cta-strip{
  background:var(--red);color:#fff;padding:42px 7%;
  display:flex;align-items:center;justify-content:space-between;gap:25px;
}
.cta-strip h2{margin:0;font:400 clamp(27px,4vw,48px) Georgia,serif}
.cta-strip .btn{background:#fff;color:var(--red);margin:0}

.footer{background:var(--green-dark);color:#dce8e1;padding:40px 7%;font-size:12px}

.page-hero{
  min-height:390px;position:relative;display:flex;align-items:flex-end;padding:120px 7% 65px;
  color:#fff;background:
  linear-gradient(rgba(0,45,28,.72),rgba(0,45,28,.9)),
  url('assets/hero-desfile.jpg') center/cover no-repeat;
}
.page-title{font-size:clamp(46px,7vw,76px);line-height:.96;margin:12px 0 0}
.content-wrap{max-width:1000px;margin:auto}
.text-content{font-size:16px;line-height:1.85;color:#536159}

.product-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product{background:#fff;padding:12px;border:1px solid #e8e5de}
.product img{width:100%;height:280px;object-fit:cover}
.product h3{font:400 24px Georgia,serif;margin:15px 0 7px}
.price{color:var(--red);font-weight:800}
.empty{grid-column:1/-1;padding:45px;text-align:center;background:#fff;border:1px dashed #b9c6be;color:#66756d}

@media(max-width:850px){
  .nav{height:68px;padding:0 5%}
  .nav-logo-img{width:46px;height:46px}
  .navlinks{gap:12px;font-size:9px}
  .hero{padding:125px 6% 60px}
  section{padding:62px 6%}
  .enredo,.history-preview{grid-template-columns:1fr;gap:35px}
  .shop-grid,.product-list{grid-template-columns:repeat(2,1fr)}
  .cta-strip{display:block}
  .cta-strip .btn{margin-top:18px}
}
@media(max-width:600px){
  .navlinks a:not(.navbtn){display:none}
  .navlinks{gap:0}
  .logo{font-size:18px}
  .hero h1{font-size:48px}
  .heading{font-size:39px}
  .shop-grid,.product-list{grid-template-columns:1fr}
  .shop-card img,.product img{height:300px}
}


/* CORREÇÃO FINAL DO CABEÇALHO */
header.nav{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:76px !important;
  min-height:76px !important;
  padding:0 6% !important;
  margin:0 !important;
  background:transparent !important;
  color:#fff !important;
  z-index:9999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
header.nav.scrolled{
  background:#003b26 !important;
}
header.nav .brand-wrap{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  height:76px !important;
  overflow:hidden !important;
}
header.nav .nav-logo-img{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  object-fit:contain !important;
  flex:0 0 52px !important;
  overflow:hidden !important;
  border-radius:50% !important;
}
header.nav .logo,
header.nav .logo small,
header.nav .navlinks a{
  color:#fff !important;
}
header.nav .navlinks{
  display:flex !important;
  align-items:center !important;
}
header.nav .navbtn{
  background:#c8102e !important;
}

/* HOME COM CABEÇALHO SOBRE A FOTO */
#homeHero{
  margin-top:0 !important;
  padding-top:145px !important;
}
#homeHero h1{
  font-size:clamp(42px,6vw,70px) !important;
  line-height:.96 !important;
}


/* =========================
   LEGADO AFRICANO — 2027
   PÁGINA TEMÁTICA
========================= */
.legado-page{
  --afro-black:#080604;
  --afro-brown:#2a1608;
  --afro-gold:#d79b22;
  --afro-orange:#d85b12;
  --afro-red:#b71920;
  --afro-green:#075a38;
  background:
    radial-gradient(circle at 50% 10%, rgba(215,155,34,.12), transparent 28%),
    #080604;
  color:#fff;
}
.legado-page .nav{
  background:rgba(8,6,4,.38);
}
.legado-page .nav.scrolled{
  background:#003b26 !important;
}
.legado-hero{
  min-height:100vh;
  padding:120px 7% 70px;
  display:grid;
  grid-template-columns:1fr .85fr;
  gap:6%;
  align-items:center;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(8,6,4,.96) 0%, rgba(8,6,4,.76) 48%, rgba(8,6,4,.3) 100%),
    url('assets/legado-africano.png') right center/contain no-repeat,
    #080604;
}
.legado-hero:before,
.legado-section:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.22;
  pointer-events:none;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(215,155,34,.32) 47%, rgba(215,155,34,.32) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(215,155,34,.18) 47%, rgba(215,155,34,.18) 53%, transparent 54%);
  background-size:54px 54px;
}
.legado-hero-content{position:relative;z-index:1;max-width:680px}
.legado-kicker{
  color:#e5ae3a;font-size:11px;font-weight:800;letter-spacing:3px;text-transform:uppercase;
}
.legado-hero h1{
  margin:16px 0 20px;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(48px,7vw,84px);
  line-height:.9;font-weight:400;
}
.legado-hero h1 span{color:#e5ae3a}
.legado-hero p{max-width:560px;color:#ddd0bc;font-size:16px;line-height:1.8}
.legado-hero-logo{
  display:none;
}
.legado-section{
  position:relative;
  padding:90px 7%;
  border-top:1px solid rgba(215,155,34,.18);
  background:linear-gradient(180deg,#100a05,#1b0f06);
}
.legado-section.alt{background:linear-gradient(180deg,#071d13,#0a2d1d)}
.legado-inner{position:relative;z-index:1;max-width:1120px;margin:auto}
.legado-title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(34px,5vw,60px);
  font-weight:400;line-height:1;margin:12px 0 20px;
}
.legado-title span{color:#e5ae3a}
.legado-text{max-width:760px;color:#d9cfbf;font-size:16px;line-height:1.85}
.legado-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:35px;
}
.legado-card{
  padding:28px 24px;
  background:rgba(0,0,0,.32);
  border:1px solid rgba(215,155,34,.35);
  min-height:190px;
}
.legado-card .number{color:#e5ae3a;font:400 34px Georgia,serif}
.legado-card h3{font:400 25px Georgia,serif;margin:14px 0 10px;color:#fff}
.legado-card p{margin:0;color:#d4c8b6;font-size:14px;line-height:1.7}
.festival-box{
  margin-top:35px;padding:34px;
  border:1px solid rgba(215,155,34,.45);
  background:linear-gradient(135deg,rgba(183,25,32,.22),rgba(7,90,56,.18),rgba(0,0,0,.45));
  display:flex;justify-content:space-between;align-items:center;gap:30px;
}
.festival-box h3{font:400 clamp(28px,4vw,46px) Georgia,serif;margin:0}
.festival-box p{margin:10px 0 0;color:#e0d5c4}
.legado-page .btn{background:#b71920}
.legado-page .btn:hover{background:#d85b12}
@media(max-width:850px){
  .legado-hero{grid-template-columns:1fr;min-height:auto;padding-top:140px;padding-bottom:65px;background-position:center bottom;background-size:cover}
  .legado-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,6,4,.86),rgba(8,6,4,.55))}
  .legado-hero-content{z-index:2}
  .legado-grid{grid-template-columns:1fr}
  .festival-box{display:block}
  .festival-box .btn{margin-top:20px}
}


/* =====================================================
   LEGADO AFRICANO — COMPOSIÇÃO CONTÍNUA / EXTENSÃO DO BANNER
===================================================== */
.legado-page{
  background:#100903;
  color:#fff;
}
.legado-page .legado-nav{
  background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,0)) !important;
}
.legado-page .legado-nav.scrolled{
  background:#003b26 !important;
}
.legado-experience{overflow:hidden}

.legado-universe{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(7,5,2,.05) 0%,rgba(9,5,2,.22) 35%,#160b04 57%,#080604 100%),
    url("assets/legado-africano.png") center top/100% auto no-repeat,
    #130a04;
  padding-top:100px;
}

/* a continuação do fundo usa os mesmos tons do banner */
.legado-universe:before{
  content:"";
  position:absolute;
  top:42%;
  left:-8%;
  width:116%;
  height:58%;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(209,130,16,.34),transparent 34%),
    repeating-radial-gradient(circle at 30% 30%,rgba(177,87,15,.16) 0 1px,transparent 2px 9px),
    linear-gradient(180deg,rgba(51,25,8,.28),#0a0603 80%);
  opacity:.92;
  pointer-events:none;
}

.legado-overlay{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(4,2,1,.38),transparent 25%,transparent 75%,rgba(4,2,1,.42)),
    linear-gradient(180deg,rgba(0,0,0,.08),transparent 30%,rgba(0,0,0,.35));
}

.legado-hero-copy{
  position:relative;z-index:3;
  width:min(760px,90%);
  margin:clamp(390px,47vw,760px) auto 0;
  text-align:center;
  padding:0 20px;
}
.legado-kicker,.mini-label{
  color:#e5ad43;
  font-size:10px;
  font-weight:800;
  letter-spacing:3px;
  text-transform:uppercase;
}
.legado-hero-copy h1,
.legado-block h2,
.festival-copy h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
}
.legado-hero-copy h1{
  margin:14px 0;
  font-size:clamp(38px,5.2vw,66px);
  line-height:.96;
}
.legado-hero-copy h1 span,
.legado-block h2 span,
.festival-copy h2 span{color:#e0a53b}
.legado-hero-copy p{
  max-width:590px;margin:0 auto;
  color:#e2d3bd;font-size:15px;line-height:1.8;
}

.legado-flow{
  position:relative;z-index:3;
  max-width:1180px;
  margin:110px auto 0;
  padding:0 7% 110px;
}

.legado-block{
  max-width:720px;
  padding:50px 0;
  border-top:1px solid rgba(224,165,59,.28);
}
.legado-block h2{
  font-size:clamp(34px,4.8vw,58px);
  line-height:1;
  margin:13px 0 18px;
}
.legado-block p{
  color:#d8c8b2;font-size:15px;line-height:1.9;margin:0;
}
.legado-block.manifesto{
  margin-left:auto;
  text-align:right;
}

.symbol-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin:30px 0 55px;
  background:rgba(224,165,59,.25);
  border:1px solid rgba(224,165,59,.24);
}
.symbol-item{
  position:relative;
  min-height:230px;
  padding:32px 25px;
  background:linear-gradient(145deg,rgba(43,22,7,.93),rgba(13,7,3,.96));
}
.symbol-icon{
  width:58px;height:58px;
  display:grid;place-items:center;
  border:1px solid rgba(224,165,59,.58);
  color:#e6b04b;
  font-family:Georgia,serif;
  font-size:32px;
  margin-bottom:25px;
  transform:rotate(-7deg);
}
.shell-icon{border-radius:50%;transform:rotate(-25deg)}
.mask-icon{font-size:24px}
.wood-icon{font-size:35px}
.symbol-item h3{
  margin:0 0 9px;
  font:400 25px Georgia,serif;
  color:#fff;
}
.symbol-item p{margin:0;color:#cdbda8;font-size:14px;line-height:1.65}

/* elementos decorativos que atravessam a composição */
.shell{
  position:absolute;z-index:2;
  width:55px;height:74px;
  border-radius:48% 52% 46% 54%;
  background:
    linear-gradient(135deg,transparent 44%,rgba(36,20,8,.92) 45% 54%,transparent 55%),
    radial-gradient(circle at 35% 30%,#f2d6a2,#a96f31 68%,#55300f);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
  opacity:.92;
}
.shell-1{top:13%;left:8%;transform:rotate(-28deg)}
.shell-2{top:24%;right:7%;transform:rotate(31deg) scale(.8)}
.shell-3{top:49%;left:4%;transform:rotate(25deg) scale(.72)}
.shell-4{top:69%;right:5%;transform:rotate(-20deg) scale(.9)}

.wood-totem{
  position:absolute;z-index:2;
  width:70px;height:230px;
  opacity:.55;
  display:flex;flex-direction:column;justify-content:center;gap:7px;
  filter:drop-shadow(0 10px 15px rgba(0,0,0,.5));
}
.wood-totem span{
  display:block;height:55px;
  background:linear-gradient(90deg,#321705,#8b4c18,#2b1305);
  border-radius:48% 48% 40% 40%;
  clip-path:polygon(50% 0,88% 22%,76% 100%,24% 100%,12% 22%);
}
.totem-left{left:4%;top:56%;transform:rotate(-8deg)}
.totem-right{right:4%;top:63%;transform:rotate(10deg)}

.festival-area{
  margin-top:65px;
  padding:50px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:50px;
  align-items:center;
  border:1px solid rgba(224,165,59,.42);
  background:
    linear-gradient(135deg,rgba(132,18,25,.33),rgba(9,83,49,.23)),
    rgba(8,5,2,.86);
  box-shadow:0 25px 60px rgba(0,0,0,.35);
}
.festival-copy h2{
  font-size:clamp(34px,4.5vw,58px);
  line-height:.98;margin:13px 0 18px;
}
.festival-copy p{
  margin:0;color:#d9c9b5;line-height:1.8;font-size:15px;
}
.festival-action{
  border-left:1px solid rgba(224,165,59,.38);
  padding-left:40px;
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
}
.festival-action strong{color:#e8b24b;font-size:12px;letter-spacing:1.5px}
.festival-action span{color:#dacbb7;font-size:14px}
.legado-page .btn{
  background:#b71920;
  color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.legado-page .btn:hover{background:#d05a13}

/* RODAPÉ RESTAURADO E COMPLETO */
.site-footer.legado-footer{
  position:relative;
  padding:48px 7% 22px;
  background:#003b26;
  color:#fff;
  border-top:3px solid #c79a37;
}
.footer-brand{
  display:flex;align-items:center;gap:14px;
}
.footer-brand img{
  width:64px;height:64px;object-fit:contain;
  background:#fff;border-radius:50%;
}
.footer-brand strong{
  display:block;font:400 22px Georgia,serif;letter-spacing:1px;
}
.footer-brand span{
  display:block;margin-top:5px;color:#c9d9cf;font-size:11px;letter-spacing:1px;
}
.footer-links{
  display:flex;gap:20px;flex-wrap:wrap;
  margin:28px 0 35px;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;
}
.footer-links a:hover{color:#e5ad43}
.footer-bottom{
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.18);
  color:#b9c9bf;font-size:11px;
}

@media(max-width:850px){
  .legado-universe{
    background-size:auto 720px;
    background-position:center top;
  }
  .legado-hero-copy{margin-top:510px}
  .legado-flow{margin-top:75px}
  .symbol-row{grid-template-columns:1fr}
  .festival-area{grid-template-columns:1fr;padding:35px 25px}
  .festival-action{border-left:0;border-top:1px solid rgba(224,165,59,.38);padding-left:0;padding-top:28px}
  .legado-block.manifesto{text-align:left;margin-left:0}
  .shell-1{left:-10px}.shell-2{right:-15px}
  .totem-left{left:-20px}.totem-right{right:-20px}
}
@media(max-width:600px){
  .legado-hero-copy h1{font-size:39px}
  .legado-hero-copy{margin-top:440px}
  .legado-flow{padding-left:6%;padding-right:6%}
  .festival-area{margin-top:45px}
}


/* =====================================================
   LEGADO AFRICANO — CORREÇÃO DE LEITURA E DOCUMENTOS
===================================================== */

/* Gradiente forte para as letras ficarem legíveis sobre a imagem */
.legado-universe{
  background:
    linear-gradient(180deg,
      rgba(4,3,1,.05) 0%,
      rgba(7,4,2,.16) 25%,
      rgba(12,7,3,.56) 46%,
      rgba(17,9,4,.92) 62%,
      #100703 76%,
      #080604 100%),
    url("assets/legado-africano.png") center top/100% auto no-repeat,
    #100703 !important;
}

.legado-universe:before{
  top:40% !important;
  height:60% !important;
  background:
    linear-gradient(180deg,transparent 0%,rgba(20,10,4,.78) 18%,#120803 72%,#080604 100%) !important;
  opacity:1 !important;
}

.legado-overlay{
  background:
    linear-gradient(90deg,rgba(0,0,0,.32),transparent 25%,transparent 75%,rgba(0,0,0,.32)),
    linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.38) 48%,rgba(0,0,0,.15)) !important;
}

.legado-hero-copy{
  background:linear-gradient(180deg,rgba(7,4,2,.05),rgba(7,4,2,.62));
  padding:32px 28px 26px !important;
  border-radius:4px;
  text-shadow:0 3px 14px rgba(0,0,0,.9);
}

.legado-hero-copy p,
.legado-block p,
.festival-copy p{
  color:#f0e4d2 !important;
  text-shadow:0 2px 10px rgba(0,0,0,.8);
}

/* substitui as informações decorativas por Sinopse, Regulamento e Termo */
.document-row{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:28px 0 70px;
}

.document-card{
  display:block;
  min-height:245px;
  padding:30px 26px;
  color:#fff;
  text-decoration:none;
  background:
    linear-gradient(145deg,rgba(44,23,7,.94),rgba(11,6,3,.97));
  border:1px solid rgba(224,165,59,.34);
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  transition:transform .25s ease,border-color .25s ease,background .25s ease;
}

.document-card:hover{
  transform:translateY(-5px);
  border-color:#e2ad49;
  background:linear-gradient(145deg,rgba(83,40,9,.95),rgba(16,8,3,.98));
}

.document-number{
  display:block;
  color:#e2ad49;
  font:400 32px Georgia,serif;
  margin-bottom:28px;
}

.document-card h3{
  margin:0 0 12px;
  color:#fff;
  font:400 28px Georgia,serif;
}

.document-card p{
  margin:0;
  color:#e3d4bf;
  font-size:14px;
  line-height:1.7;
}

.document-link{
  display:block;
  margin-top:25px;
  color:#e2ad49;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* Mantém os elementos decorativos, mas discretos e sem texto */
.shell{opacity:.5 !important}

.festival-area{
  position:relative;
  overflow:hidden;
}

.festival-area:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.15),transparent 45%,rgba(0,0,0,.2));
}

.festival-area > *{position:relative;z-index:1}

@media(max-width:850px){
  .document-row{grid-template-columns:1fr}
  .document-card{min-height:auto}
  .legado-hero-copy{
    padding:24px 18px !important;
    background:linear-gradient(180deg,rgba(7,4,2,.1),rgba(7,4,2,.78));
  }
}


/* =====================================================
   RODAPÉ FIDALGOS — MODELO DA REFERÊNCIA
===================================================== */
.fidalgos-footer{
  background:#001c12;
  color:#c5c9c5;
  border-top:1px solid rgba(255,255,255,.06);
  margin:0;
  padding:48px 0 0;
  font-family:inherit;
}
.fidalgos-footer-grid{
  max-width:1260px;
  margin:0 auto;
  padding:0 48px 52px;
  display:grid;
  grid-template-columns:1.45fr .75fr 1fr;
  gap:90px;
}
.footer-school h3{
  margin:0 0 18px;
  color:#f3eee4;
  font-size:24px;
  line-height:1;
  font-family:"Arial Narrow",Arial,sans-serif;
  font-stretch:condensed;
  font-weight:800;
  letter-spacing:-.5px;
}
.footer-school p{
  max-width:450px;
  margin:0;
  color:#adb7b1;
  font-size:13px;
  line-height:1.7;
}
.footer-social{
  display:flex;
  gap:12px;
  margin-top:20px;
}
.footer-social a{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#aeb8b2;
  text-decoration:none;
  font-size:18px;
  transition:.2s ease;
}
.footer-social a:hover{
  color:#fff;
  border-color:#c9a04b;
  transform:translateY(-2px);
}
.footer-label{
  display:block;
  margin:4px 0 20px;
  color:#d5a64c;
  font-size:10px;
  font-weight:800;
  letter-spacing:4px;
}
.footer-nav{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.footer-nav a{
  color:#b5bdb8;
  font-size:13px;
  text-decoration:none;
  transition:color .2s ease;
}
.footer-nav a:hover{color:#fff}
.footer-contact p{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 14px;
  color:#aeb8b2;
  font-size:13px;
  line-height:1.4;
}
.footer-contact b{
  width:15px;
  color:#0b9d67;
  font-size:16px;
  font-weight:400;
  line-height:1;
}
.fidalgos-footer-bottom{
  min-height:40px;
  border-top:1px solid rgba(255,255,255,.11);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  color:#8d9892;
  text-align:center;
  font-size:10px;
  letter-spacing:.4px;
}

@media(max-width:850px){
  .fidalgos-footer-grid{
    grid-template-columns:1fr 1fr;
    gap:45px;
    padding:0 30px 40px;
  }
  .footer-school{grid-column:1/-1}
}
@media(max-width:560px){
  .fidalgos-footer{padding-top:38px}
  .fidalgos-footer-grid{
    grid-template-columns:1fr;
    gap:35px;
    padding:0 24px 35px;
  }
  .footer-school{grid-column:auto}
  .footer-school h3{font-size:21px}
}


/* =====================================================
   VÍDEO DO ENREDO 2027
===================================================== */
.enredo-video-wrap{
  width:min(820px, 100%);
  margin:22px auto 20px;
  padding:9px;
  background:linear-gradient(135deg,rgba(229,173,67,.78),rgba(120,18,20,.45),rgba(0,63,39,.75));
  box-shadow:0 18px 45px rgba(0,0,0,.42);
}
.enredo-video-label{
  padding:10px 12px 12px;
  color:#f0c56b;
  font-size:9px;
  font-weight:800;
  letter-spacing:3px;
  text-align:left;
}
.enredo-video{
  display:block;
  width:100%;
  max-height:520px;
  background:#000;
  object-fit:contain;
}
@media(max-width:600px){
  .enredo-video-wrap{padding:6px;margin:18px auto}
  .enredo-video-label{font-size:8px;letter-spacing:2px}
}


/* =====================================================
   HOME — LEGADO AFRICANO / TEMA VERDE + MARROM
   Extensão visual do enredo sem competir com a imagem
===================================================== */
.carnaval-enredo-theme{
  position:relative !important;
  overflow:hidden !important;
  isolation:isolate;
  background:
    radial-gradient(circle at 72% 46%, rgba(189,123,27,.20), transparent 18%),
    radial-gradient(circle at 15% 88%, rgba(90,47,16,.34), transparent 28%),
    linear-gradient(125deg,#063b28 0%,#0b4b31 44%,#18331f 100%) !important;
}

/* textura sutil inspirada nos padrões do Legado Africano */
.carnaval-enredo-theme::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.22;
  pointer-events:none;
  background:
    repeating-linear-gradient(45deg, rgba(218,153,61,.16) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(66,33,12,.15) 0 1px, transparent 1px 16px);
  mix-blend-mode:soft-light;
}

.carnaval-enredo-theme::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:38%;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(49,24,8,.30));
}

/* moldura/ambiente para a arte principal */
.carnaval-enredo-theme img{
  position:relative;
  z-index:2;
  border:1px solid rgba(210,154,56,.38) !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,.38),
    0 0 0 10px rgba(52,28,10,.18),
    0 0 55px rgba(190,122,28,.16) !important;
}

/* garante que textos e botão continuem em primeiro plano */
.carnaval-enredo-theme .container,
.carnaval-enredo-theme .content,
.carnaval-enredo-theme .inner,
.carnaval-enredo-theme .section-content{
  position:relative;
  z-index:3;
}

.carnaval-enredo-theme h1,
.carnaval-enredo-theme h2,
.carnaval-enredo-theme h3{
  text-shadow:0 3px 16px rgba(0,0,0,.24);
}

.carnaval-enredo-theme .btn{
  background:#b51c2b !important;
  border-color:#b51c2b !important;
  box-shadow:0 10px 24px rgba(48,10,8,.24);
}
.carnaval-enredo-theme .btn:hover{
  background:#d23845 !important;
}

/* detalhes decorativos: búzios e madeira apenas como atmosfera */
.enredo-decor{
  position:absolute;
  pointer-events:none;
  z-index:1;
}
.enredo-pattern{
  width:410px;
  height:410px;
  right:-180px;
  top:-120px;
  opacity:.16;
  border:2px solid #c99035;
  transform:rotate(45deg);
  background:
    repeating-radial-gradient(circle at center, transparent 0 14px, rgba(201,144,53,.65) 15px 16px, transparent 17px 29px);
}
.enredo-shell{
  width:38px;
  height:58px;
  border-radius:52% 48% 48% 52%;
  background:
    linear-gradient(135deg,transparent 42%,rgba(55,31,11,.82) 44% 55%,transparent 57%),
    radial-gradient(circle at 32% 28%,#f0d9ad,#bc8741 63%,#6b3a13);
  filter:blur(.1px) drop-shadow(0 8px 10px rgba(0,0,0,.28));
  opacity:.78;
}
.shell-a{left:4%;bottom:13%;transform:rotate(-28deg)}
.shell-b{right:9%;top:14%;transform:rotate(28deg) scale(.82)}
.shell-c{right:2%;bottom:9%;transform:rotate(-18deg) scale(.65)}

.enredo-wood{
  width:56px;
  height:165px;
  opacity:.22;
  background:
    linear-gradient(90deg,#3b1d08,#8b531c 42%,#321706 100%);
  clip-path:polygon(50% 0,82% 13%,70% 31%,86% 49%,68% 100%,32% 100%,14% 49%,30% 31%,18% 13%);
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.35));
}
.wood-a{left:1.5%;top:19%;transform:rotate(-8deg)}
.wood-b{right:3%;bottom:16%;transform:rotate(9deg) scale(.75)}

@media(max-width:850px){
  .enredo-pattern{right:-260px;opacity:.10}
  .wood-a{left:-20px}.wood-b{right:-20px}
}


/* =====================================================
   PÁGINA HISTÓRIA DA ESCOLA
===================================================== */
.history-page{background:#f5f1e8;color:#17352a}
.history-hero{
  position:relative;min-height:520px;display:flex;align-items:flex-end;
  padding:150px 7% 70px;overflow:hidden;
  background:
    linear-gradient(90deg,rgba(0,38,24,.94),rgba(0,38,24,.62),rgba(54,28,8,.28)),
    linear-gradient(180deg,#0a4a31,#1b3b27);
}
.history-hero:before{
  content:"";position:absolute;inset:0;opacity:.22;
  background:repeating-linear-gradient(45deg,rgba(212,164,70,.35) 0 1px,transparent 1px 15px);
}
.history-hero-content{position:relative;max-width:760px;color:#fff}
.history-kicker{display:block;color:#d6aa4f;font-size:10px;font-weight:800;letter-spacing:4px;text-transform:uppercase;margin-bottom:16px}
.history-hero h1,.history-intro h2,.history-colors h2,.timeline-heading h2,.history-people h2,.history-titles h2{
  margin:0;font:400 clamp(42px,6vw,76px)/.95 Georgia,serif;
}
.history-hero h1 span,.history-intro h2 span,.history-colors h2 span,.timeline-heading h2 span,.history-people h2 span,.history-titles h2 span{color:#c4933d}
.history-hero p{max-width:580px;margin:20px 0 0;color:#e1e8e3;line-height:1.8}

.history-intro,.history-colors,.history-timeline,.history-people,.history-titles{padding:90px 7%;max-width:1380px;margin:auto}
.history-intro{display:grid;grid-template-columns:280px 1fr;gap:80px;align-items:start}
.history-year{font:400 clamp(70px,10vw,150px)/.8 Georgia,serif;color:#0b4d33;opacity:.9}
.history-intro h2,.history-colors h2,.timeline-heading h2,.history-people h2,.history-titles h2{font-size:clamp(34px,4.5vw,58px)}
.history-intro p,.history-colors p,.history-people p{max-width:750px;line-height:1.9;color:#536258;font-size:15px}

.history-colors{
  max-width:none;background:#0b3e2a;color:#fff;
  display:grid;grid-template-columns:1.1fr .9fr;gap:80px;align-items:center;
}
.history-colors-copy{max-width:700px}
.history-colors p{color:#d6e0d9}
.history-color-bands{height:260px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:stretch}
.history-color-bands span{border-radius:3px;box-shadow:0 15px 35px rgba(0,0,0,.25)}
.history-color-bands span:nth-child(1){background:#0a6843}
.history-color-bands span:nth-child(2){background:#efe9dc}
.history-color-bands span:nth-child(3){background:#bd1826}

.history-timeline{background:#f5f1e8}
.timeline-heading{max-width:760px;margin-bottom:50px}
.timeline-list{border-top:1px solid rgba(11,77,51,.18)}
.timeline-item{display:grid;grid-template-columns:180px 1fr;gap:50px;padding:28px 0;border-bottom:1px solid rgba(11,77,51,.18)}
.timeline-date{color:#b81728;font:400 30px Georgia,serif}
.timeline-item h3{margin:0 0 8px;font:400 27px Georgia,serif;color:#143c2b}
.timeline-item p{margin:0;color:#5b675f;line-height:1.7}

.history-people{max-width:none;background:#2a180b;color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:80px}
.history-people p{color:#e2d6c5}
.history-presidents{padding-top:8px}
.president-row{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid rgba(255,255,255,.15)}
.president-row strong{font-family:Georgia,serif;font-size:18px}
.president-row span{color:#d4b06a;font-size:13px}

.history-titles{text-align:center}
.history-titles .mini-label{display:block;margin-bottom:14px}
.title-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:45px;text-align:left}
.title-grid div{padding:25px;background:#fff;border:1px solid rgba(11,77,51,.14)}
.title-grid strong{display:block;color:#b81728;font:400 27px Georgia,serif;margin-bottom:12px}
.title-grid span{display:block;color:#536258;font-size:13px;line-height:1.6}

@media(max-width:850px){
  .history-intro,.history-colors,.history-people{grid-template-columns:1fr;gap:40px}
  .history-intro,.history-colors,.history-timeline,.history-people,.history-titles{padding:65px 7%}
  .history-year{font-size:90px}
  .title-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .history-hero{min-height:440px;padding:130px 7% 50px}
  .timeline-item{grid-template-columns:1fr;gap:10px}
  .history-color-bands{height:150px}
  .title-grid{grid-template-columns:1fr}
  .president-row{flex-direction:column;gap:5px}
}


/* =====================================================
   LINHA DO TEMPO — CONQUISTAS COM MOVIMENTO
===================================================== */
.history-timeline{
  position:relative;
  overflow:hidden;
}
.history-timeline::before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border:1px solid rgba(184,23,40,.12);
  border-radius:50%;
  right:-260px;
  top:80px;
  pointer-events:none;
}
.timeline-list{
  position:relative;
  border-top:none !important;
  margin-top:20px;
}
.timeline-list::before{
  content:"";
  position:absolute;
  left:88px;
  top:18px;
  bottom:18px;
  width:2px;
  background:linear-gradient(
    to bottom,
    rgba(184,23,40,.25),
    #b81728 18%,
    #0b4d33 85%,
    rgba(11,77,51,.18)
  );
  transform-origin:top;
  animation:timelineGrow 1.4s ease-out both;
}
@keyframes timelineGrow{
  from{transform:scaleY(0)}
  to{transform:scaleY(1)}
}

.timeline-item{
  position:relative;
  grid-template-columns:180px 1fr !important;
  gap:50px !important;
  padding:34px 0 34px !important;
  border-bottom:none !important;
  opacity:0;
  transform:translateY(45px);
  transition:
    opacity .75s ease var(--delay,0ms),
    transform .75s cubic-bezier(.2,.8,.2,1) var(--delay,0ms);
}
.timeline-item.is-visible{
  opacity:1;
  transform:translateY(0);
}
.timeline-item::before{
  content:"";
  position:absolute;
  left:80px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  border-radius:50%;
  background:#b81728;
  border:4px solid #f5f1e8;
  box-shadow:
    0 0 0 2px rgba(184,23,40,.35),
    0 0 0 0 rgba(184,23,40,.45);
  transition:box-shadow .35s ease, transform .35s ease, background .35s ease;
}
.timeline-item:hover::before{
  background:#0b4d33;
  transform:translateY(-50%) scale(1.18);
  box-shadow:
    0 0 0 2px rgba(11,77,51,.35),
    0 0 0 10px rgba(184,23,40,0);
}
.timeline-date{
  position:relative;
  z-index:2;
  color:#b81728 !important;
  font:400 30px Georgia,serif !important;
  letter-spacing:1px;
}
.timeline-date span{
  display:inline-block;
  min-width:72px;
  padding:8px 10px;
  background:#f5f1e8;
  transition:transform .35s ease,color .35s ease;
}
.timeline-item:hover .timeline-date span{
  transform:translateX(-6px);
  color:#0b4d33;
}
.timeline-item > div:last-child{
  padding:24px 28px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(11,77,51,.11);
  box-shadow:0 14px 35px rgba(20,60,43,.05);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.timeline-item:hover > div:last-child{
  transform:translateX(10px);
  border-color:rgba(184,23,40,.28);
  box-shadow:0 20px 42px rgba(20,60,43,.11);
}
.timeline-item h3{
  transition:color .3s ease, transform .3s ease;
}
.timeline-item:hover h3{
  color:#b81728;
  transform:translateX(3px);
}

@media(max-width:560px){
  .timeline-list::before{left:10px}
  .timeline-item{
    grid-template-columns:1fr !important;
    gap:12px !important;
    padding-left:36px !important;
  }
  .timeline-item::before{left:1px;top:48px}
  .timeline-date span{padding-left:0}
  .timeline-item > div:last-child{padding:20px}
  .timeline-item:hover > div:last-child{transform:translateY(-3px)}
}


/* =====================================================
   QUADROS HISTÓRICOS — TÍTULOS E MESTRES DE BATERIA
===================================================== */
.history-records{
  background:linear-gradient(180deg,#efece4 0%,#f7f4ed 100%);
  padding:90px 7%;
}
.records-inner{max-width:1180px;margin:0 auto}
.records-heading{max-width:720px;margin-bottom:40px}
.records-heading h2{margin:0 0 18px;font:400 clamp(34px,4.5vw,58px)/.95 Georgia,serif;color:#153d2c}
.records-heading h2 span{color:#b81728}
.records-heading p{color:#5d665f;line-height:1.8}
.records-stack{display:grid;gap:28px}

.history-table-card{
  background:#f8f6f0;
  border:1px solid rgba(16,59,40,.18);
  box-shadow:0 18px 42px rgba(26,46,35,.08);
  overflow:hidden;
  transform:translateY(30px);
  opacity:0;
  animation:tableReveal .8s ease forwards;
}
.history-table-card:nth-child(2){animation-delay:.18s}
@keyframes tableReveal{
  to{transform:translateY(0);opacity:1}
}
.history-table-title{
  background:#075427;
  color:#fff;
  padding:16px 22px;
  text-align:center;
  font-size:14px;
  font-weight:800;
  letter-spacing:.7px;
}
.history-table-wrap{overflow-x:auto}
.history-table{
  width:100%;
  border-collapse:collapse;
  min-width:650px;
  color:#2d3b35;
}
.history-table th{
  background:#cf1521;
  color:#fff;
  padding:13px 14px;
  text-align:center;
  font-size:13px;
  letter-spacing:.5px;
}
.battery-table th{background:#0a4f2d}
.history-table td{
  padding:13px 16px;
  text-align:center;
  border:1px solid #c7cec8;
  background:rgba(235,237,234,.72);
  font-size:15px;
}
.history-table tbody tr{
  transition:transform .25s ease,filter .25s ease,background .25s ease;
}
.history-table tbody tr:hover{
  transform:scale(1.008);
  filter:brightness(1.02);
}
.history-table tbody tr:hover td{background:#f4efe5}
.history-table td strong{font-size:17px}
.history-table td small{
  display:block;
  margin-top:5px;
  color:#355365;
  font-size:13px;
  font-weight:600;
}
.history-table .trophy{
  width:58px;
  font-size:29px;
  filter:drop-shadow(0 3px 2px rgba(0,0,0,.18));
}
.history-table .silver{filter:grayscale(1) brightness(1.35)}
.history-table .bronze{filter:sepia(.7) saturate(1.4)}
.history-table .access{filter:grayscale(1) brightness(.82)}
.battery-table td:first-child{
  width:150px;
  font-weight:800;
  color:#b81728;
}
.battery-table td:nth-child(2){text-align:left;font-size:16px}

@media(max-width:700px){
  .history-records{padding:65px 5%}
  .history-table-title{font-size:11px;padding:14px}
  .history-table{min-width:580px}
}

/* CTA — TODOS OS MATERIAIS */
.all-materials-cta{
  display:flex;
  justify-content:center;
  padding:34px 7% 54px;
  background:#120804;
}
.all-materials-link{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:16px 24px;
  border:1px solid rgba(215,154,68,.75);
  color:#f3d29b;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  letter-spacing:1.3px;
  transition:transform .25s ease, background .25s ease, color .25s ease;
}
.all-materials-link:hover{
  transform:translateY(-3px);
  background:rgba(215,154,68,.12);
  color:#fff;
}
.all-materials-link span{
  font-size:20px;
  line-height:1;
}
@media(max-width:600px){
  .all-materials-cta{padding:26px 5% 42px}
  .all-materials-link{
    width:100%;
    justify-content:space-between;
    text-align:left;
    line-height:1.5;
  }
}


/* RODAPÉ SIMPLIFICADO — LANDING PAGE */
.fidalgos-footer{
  background:#021d12;
  color:#fff;
}
.footer-simple{
  max-width:1180px;
  margin:0 auto;
  padding:48px 7%;
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-start;
}
.footer-brand h3{
  margin:0 0 10px;
  color:#fff;
  font-size:20px;
  letter-spacing:.5px;
}
.footer-brand p{
  margin:0;
  color:rgba(255,255,255,.68);
  font-size:14px;
}
.footer-contact{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-contact span{
  color:#d9ad62;
  font-size:11px;
  font-weight:800;
  letter-spacing:2px;
}
.footer-contact a{
  color:rgba(255,255,255,.82);
  text-decoration:none;
  font-size:14px;
  transition:color .2s ease;
}
.footer-contact a:hover{color:#d9ad62}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:18px 7%;
  text-align:center;
  color:rgba(255,255,255,.55);
  font-size:12px;
}
@media(max-width:700px){
  .footer-simple{
    flex-direction:column;
    padding:38px 7%;
    gap:28px;
  }
}


/* VÍDEO MAIOR NO MOBILE */
@media (max-width: 700px){
  .enredo-video,
  .video-enredo,
  .video-wrapper,
  .festival-video,
  .hero-video{
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .enredo-video video,
  .video-enredo video,
  .video-wrapper video,
  .festival-video video,
  .hero-video video,
  video{
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    border-radius: 14px !important;
  }
}


/* =====================================================
   ANIMAÇÃO DE ENTRADA / PRELOADER — FIDALGOS 2027
===================================================== */
body:not(.page-ready){
  overflow:hidden;
}
#page-preloader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#061c12;
  color:#f4efe5;
  transition:opacity .8s ease, visibility .8s ease;
}
.preloader-bg{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 50% 42%,rgba(183,23,40,.24),transparent 22%),
    radial-gradient(circle at 68% 60%,rgba(151,96,36,.22),transparent 30%),
    linear-gradient(135deg,#062f20 0%,#0a4a31 42%,#1f160d 100%);
  animation:preloaderBg 4s ease-in-out infinite alternate;
}
.preloader-bg::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.14;
  background:
    repeating-linear-gradient(45deg,rgba(224,176,83,.45) 0 1px,transparent 1px 18px),
    repeating-linear-gradient(-45deg,rgba(0,0,0,.3) 0 1px,transparent 1px 22px);
}
.preloader-content{
  position:relative;
  z-index:2;
  width:min(420px,86vw);
  text-align:center;
  animation:preloaderContent .9s cubic-bezier(.2,.8,.2,1) both;
}
.preloader-mark{
  position:relative;
  width:92px;
  height:92px;
  margin:0 auto 24px;
  display:grid;
  place-items:center;
}
.preloader-ring{
  position:absolute;
  inset:0;
  border:1px solid rgba(223,172,76,.75);
  border-radius:50%;
  animation:preloaderSpin 2.4s linear infinite;
}
.preloader-ring::before,
.preloader-ring::after{
  content:"";
  position:absolute;
  width:8px;height:8px;
  border-radius:50%;
  background:#d8a84d;
  box-shadow:0 0 18px rgba(216,168,77,.7);
}
.preloader-ring::before{top:-4px;left:50%;transform:translateX(-50%)}
.preloader-ring::after{bottom:-4px;left:50%;transform:translateX(-50%)}
.preloader-line{
  position:absolute;
  width:52px;
  height:2px;
  background:linear-gradient(90deg,transparent,#d9a84b,transparent);
  animation:linePulse 1.7s ease-in-out infinite;
}
.line-a{transform:rotate(0deg)}
.line-b{transform:rotate(60deg);animation-delay:.2s}
.line-c{transform:rotate(-60deg);animation-delay:.4s}
.preloader-name{
  font-family:Georgia,serif;
  font-size:clamp(24px,7vw,38px);
  letter-spacing:1px;
  animation:nameReveal 1.1s .15s both;
}
.preloader-sub{
  margin-top:9px;
  color:#d8a84d;
  font-size:10px;
  font-weight:800;
  letter-spacing:5px;
  animation:nameReveal 1.1s .35s both;
}
.preloader-loading{
  width:180px;
  height:2px;
  margin:30px auto 0;
  background:rgba(255,255,255,.14);
  overflow:hidden;
}
.preloader-loading span{
  display:block;
  width:42%;
  height:100%;
  background:linear-gradient(90deg,#b81728,#d8a84d,#0e7049);
  animation:loaderSweep 1.35s ease-in-out infinite;
}
.preloader-hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
@keyframes preloaderBg{
  from{transform:scale(1) rotate(0deg)}
  to{transform:scale(1.08) rotate(2deg)}
}
@keyframes preloaderContent{
  from{opacity:0;transform:translateY(22px) scale(.97)}
  to{opacity:1;transform:none}
}
@keyframes preloaderSpin{to{transform:rotate(360deg)}}
@keyframes linePulse{
  0%,100%{opacity:.35;transform:rotate(var(--r,0deg)) scaleX(.8)}
  50%{opacity:1;transform:rotate(var(--r,0deg)) scaleX(1.18)}
}
@keyframes nameReveal{
  from{opacity:0;letter-spacing:8px;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@keyframes loaderSweep{
  0%{transform:translateX(-110%)}
  100%{transform:translateX(360%)}
}
@media(max-width:600px){
  .preloader-mark{width:76px;height:76px}
  .preloader-name{font-size:28px}
  .preloader-loading{width:150px}
}


/* ABERTURA COM O LOGO OFICIAL DO ENREDO */
#page-preloader{
  background:#080603;
}
.preloader-bg{
  background:
    radial-gradient(circle at 50% 45%,rgba(225,126,12,.22),transparent 28%),
    radial-gradient(circle at 50% 55%,rgba(94,44,13,.35),transparent 52%),
    linear-gradient(135deg,#070503 0%,#1b1007 48%,#07180f 100%);
}
.preloader-glow{
  position:absolute;
  width:min(72vw,760px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(237,146,29,.20),rgba(237,146,29,.05) 35%,transparent 70%);
  filter:blur(10px);
  animation:logoGlow 2.6s ease-in-out infinite alternate;
}
.preloader-content{
  width:min(620px,88vw);
  padding:10px;
}
.preloader-logo{
  display:block;
  width:min(430px,78vw);
  max-height:58vh;
  object-fit:contain;
  margin:0 auto;
  filter:drop-shadow(0 20px 32px rgba(0,0,0,.62));
  animation:logoEntrance 1.1s cubic-bezier(.18,.8,.2,1) both, logoFloat 3.2s 1.1s ease-in-out infinite;
}
.preloader-loading{
  width:min(230px,58vw);
  margin:22px auto 0;
}
.preloader-enter{
  margin-top:16px;
  color:#d9a84b;
  font-size:9px;
  font-weight:800;
  letter-spacing:3px;
  text-align:center;
  opacity:0;
  animation:enterReveal .8s .7s forwards;
}
@keyframes logoEntrance{
  from{opacity:0;transform:scale(.72) translateY(24px);filter:blur(5px) drop-shadow(0 20px 32px rgba(0,0,0,.62))}
  to{opacity:1;transform:scale(1) translateY(0);filter:blur(0) drop-shadow(0 20px 32px rgba(0,0,0,.62))}
}
@keyframes logoFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-8px) scale(1.015)}
}
@keyframes logoGlow{
  from{transform:scale(.92);opacity:.55}
  to{transform:scale(1.12);opacity:1}
}
@keyframes enterReveal{to{opacity:.9}}
@media(max-width:600px){
  .preloader-logo{
    width:86vw;
    max-height:55vh;
  }
  .preloader-enter{
    font-size:8px;
    letter-spacing:2px;
  }
}
