:root{
  --navy-deep:#081527;
  --navy-mid:#0d1f3a;
  --navy-glow:#13315e;
  --black:#050505;
  --gold-bright:#fdd16c;
  --gold-mid:#e7bf62;
  --gold-deep:#b98f3e;
  --red-emblem:#ac0f17;
  --red-deep:#6e0a0f;
  --orange-cta:#ff7e00;
  --orange-cta-hover:#ffb347;
  --white:#f7f3ea;
  --muted:rgba(247,243,234,0.62);
  --muted-2:rgba(247,243,234,0.4);
  --hairline:rgba(253,209,108,0.18);
}

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

/* Garante que o atributo hidden vença qualquer display:flex/grid definido
   por classe com a mesma especificidade (ex: modais, lightbox) */
[hidden]{ display:none !important; }

html{scroll-behavior:smooth;}

body{
  background:var(--navy-deep);
  color:var(--white);
  font-family:'Google Sans Flex', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none;}

::selection{background:var(--gold-bright); color:var(--navy-deep);}

/* ---------- CONTAINER ---------- */
.container{
  width:100%;
  max-width:1190px;
  margin-inline:auto;
}

/* ---------- TOP BAR ---------- */
header.topbar{
  position:sticky; top:0; z-index:100;
  padding-block:22px;
  background:linear-gradient(to bottom, rgba(8,21,39,0.96), rgba(8,21,39,0.75) 70%, transparent);
  backdrop-filter:blur(6px);
}
header.topbar .container{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding-inline:clamp(20px,5vw,64px);
}

.brand-mark{
  display:flex; align-items:center; flex-shrink:0;
}
.brand-mark img{
  display:block;
  height:40px; width:auto;
}
header.topbar .brand-mark{ grid-column:2; justify-self:center; }
header.topbar .brand-mark img{ height:50px; }

.menu-toggle{
  grid-column:3;
  justify-self:end;
  display:flex;
  align-items:center; justify-content:center;
  width:38px; height:38px;
  flex-shrink:0;
  background:none; border:none;
  color:var(--gold-bright);
  cursor:pointer;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  padding:4px clamp(20px,5vw,64px) 18px;
  background:var(--navy-deep);
  border-top:1px solid var(--hairline);
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:13px 2px;
  font-family:'Roboto Condensed', sans-serif;
  font-size:14px; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted);
  border-bottom:1px solid rgba(253,209,108,0.1);
}
.mobile-menu a:last-child{ border-bottom:none; }
.mobile-menu a:hover{ color:var(--gold-bright); }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding:40px clamp(20px,5vw,64px) 44px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(19,49,94,0.9), transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 110%, rgba(172,15,23,0.28), transparent 65%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 65%, var(--navy-deep) 100%);
  border-bottom:1px solid var(--hairline);
}

/* droplet + starburst texture referencing product photography */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 22% 30%, rgba(253,209,108,0.16) 0 1.5px, transparent 1.6px),
    radial-gradient(circle at 68% 18%, rgba(253,209,108,0.12) 0 1px, transparent 1.1px),
    radial-gradient(circle at 88% 62%, rgba(253,209,108,0.14) 0 2px, transparent 2.1px),
    radial-gradient(circle at 12% 78%, rgba(253,209,108,0.1) 0 1px, transparent 1.1px),
    radial-gradient(circle at 45% 85%, rgba(253,209,108,0.1) 0 1.4px, transparent 1.5px),
    radial-gradient(circle at 76% 40%, rgba(253,209,108,0.12) 0 1px, transparent 1.1px),
    radial-gradient(circle at 34% 55%, rgba(253,209,108,0.08) 0 1px, transparent 1.1px);
  background-size:100% 100%;
  opacity:.9;
  pointer-events:none;
}

.hero::after{
  content:"";
  position:absolute; top:-40%; right:-8%;
  width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(253,209,108,0.16), transparent 68%);
  pointer-events:none;
}

.hero-inner{
  position:relative; z-index:2;
  max-width:760px;
  margin:0 auto;
  text-align:center;
}

h1.hero-title{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(24px, 4.6vw, 52px);
  line-height:1.05;
  letter-spacing:-.01em;
  color:var(--white);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
h1.hero-title em{
  font-style:italic;
  font-weight:500;
  background:linear-gradient(100deg, var(--gold-bright), var(--gold-deep) 80%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

p.hero-sub{
  font-size:15.5px;
  line-height:1.5;
  color:var(--muted);
  max-width:460px;
  margin:14px auto 26px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* search */
.search-wrap{
  display:flex; align-items:center; gap:10px;
  background:#ffffff;
  border:1px solid rgba(253,209,108,0.28);
  border-radius:999px;
  padding:8px 8px 8px 22px;
  max-width:560px;
  margin:0 auto;
  transition:border-color .25s ease;
}
.search-wrap:focus-within{
  border-color:var(--gold-bright);
}
.search-wrap svg{ flex-shrink:0; opacity:.7; }
.search-wrap input{
  flex:1; background:#ffffff; border:none; outline:none;
  color:var(--navy-deep); font-family:'Google Sans Flex',sans-serif;
  font-size:15px; padding:10px 16px;
  border-radius:999px;
}
.search-wrap input::placeholder{ color:rgba(13,31,58,0.45); }
.search-wrap button{
  background:var(--orange-cta);
  color:#1a0d00;
  border:none; border-radius:999px;
  font-family:'Roboto Condensed',sans-serif;
  font-weight:700; font-size:13px; letter-spacing:.04em;
  text-transform:uppercase;
  padding:12px 22px;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
  white-space:nowrap;
}
.search-wrap button:hover{ background:var(--orange-cta-hover); transform:translateY(-1px); }

.search-box{
  position:relative;
  max-width:560px;
  margin:0 auto;
}
.search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0; right:0;
  background:var(--navy-mid);
  border:1px solid rgba(253,209,108,0.25);
  border-radius:16px;
  padding:6px;
  max-height:320px;
  overflow-y:auto;
  box-shadow:0 20px 40px -12px rgba(0,0,0,0.5);
  z-index:50;
}
.search-result{
  display:block;
  padding:10px 14px;
  border-radius:10px;
  text-align:left;
  transition:background .15s ease;
}
.search-result:hover,
.search-result:focus{
  background:rgba(253,209,108,0.12);
}
.search-result-title{
  display:block;
  font-family:'Google Sans Flex',sans-serif;
  font-size:14px; font-weight:600;
  color:var(--white);
}
.search-result-date{
  display:block;
  font-family:'Roboto Condensed',sans-serif;
  font-size:11.5px;
  color:var(--muted);
  margin-top:2px;
}
.search-empty{
  padding:14px;
  text-align:center;
  font-family:'Google Sans Flex',sans-serif;
  font-size:13px;
  color:var(--muted);
}

/* rail nested inside the dark hero needs light-friendly colors */
.hero-rail{
  position:relative; z-index:2;
  margin-top:34px;
}
.hero-rail .rail-head h2{ color:var(--gold-bright); }
.hero-rail .rail-nav button{
  border-color:rgba(253,209,108,0.3);
  background:rgba(255,255,255,0.04);
  color:var(--gold-mid);
}
.hero-rail .rail-nav button:hover{
  background:rgba(253,209,108,0.14);
  border-color:var(--gold-bright);
}

/* ---------- SECTIONS / CAROUSELS ---------- */
main{
  padding:48px clamp(20px,5vw,64px) 56px;
  background:#ffffff;
}

.rail{ margin-top:56px; }
.rail:first-child{ margin-top:0; }

.rail-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:22px;
}

.rail-head h2{
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  font-size:clamp(19px,2.4vw,24px);
  letter-spacing:.01em;
  color:var(--navy-mid);
  display:flex; align-items:center; gap:12px;
}
.rail-head h2 .tag-live{
  font-family:'Roboto Condensed',sans-serif;
  font-size:10.5px; font-weight:700; letter-spacing:.1em;
  background:var(--red-emblem); color:var(--white);
  padding:4px 9px; border-radius:5px;
  text-transform:uppercase;
}

.rail-nav{ display:flex; gap:8px; }
.rail-nav button{
  width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(13,31,58,0.18);
  background:rgba(13,31,58,0.03);
  color:var(--navy-mid);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease;
}
.rail-nav button:hover{ background:rgba(13,31,58,0.08); border-color:var(--gold-deep); }

.rail-track{
  display:flex; gap:18px;
  overflow-x:auto;
  padding-bottom:14px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.rail-track::-webkit-scrollbar{ display:none; }

/* ---------- EVENT CARD ---------- */
.card{
  scroll-snap-align:start;
  flex:0 0 250px;
  display:flex;
  flex-direction:column;
  border-radius:16px;
  overflow:hidden;
  background:#f1e6d0;
  transition:box-shadow .3s ease;
  cursor:pointer;
}
.card:hover{
  box-shadow:0 10px 22px -12px rgba(0,0,0,0.4);
}

.card-cover{
  position:relative;
  flex-shrink:0;
  aspect-ratio:960/1000;
  overflow:hidden;
  border-radius:16px 16px 0 0;
  display:flex; align-items:flex-end; justify-content:flex-end;
}

.card-cover-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .5s ease;
  transform-origin:center;
}
.card:hover .card-cover-media{
  transform:scale(1.07);
}

.card-cover::after{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:linear-gradient(to top, rgba(5,10,20,0.75), transparent 55%);
}

.card-badge{
  position:relative; z-index:3;
  margin:12px;
  font-family:'Roboto Condensed',sans-serif;
  font-size:10.5px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase;
  background:rgba(5,10,20,0.55);
  border:1px solid rgba(253,209,108,0.4);
  color:var(--gold-bright);
  padding:5px 12px; border-radius:999px;
  backdrop-filter:blur(4px);
}

.card-view-overlay{
  position:absolute; inset:0;
  z-index:2;
  display:flex; align-items:center; justify-content:center;
  background:rgba(5,10,20,0.45);
  opacity:0;
  transition:opacity .3s ease;
}
.card:hover .card-view-overlay{
  opacity:1;
}
.card-view-btn{
  background:var(--orange-cta);
  color:#1a0d00;
  font-family:'Roboto Condensed',sans-serif;
  font-weight:700; font-size:12.5px; letter-spacing:.06em;
  text-transform:uppercase;
  padding:10px 20px;
  border-radius:999px;
  transform:translateY(6px);
  transition:transform .3s ease;
}
.card:hover .card-view-btn{
  transform:translateY(0);
}

.card-cover-media.placeholder{
  background:
    repeating-linear-gradient(135deg, rgba(253,209,108,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg,#0e2140,#081527 75%);
  display:flex; align-items:center; justify-content:center;
}
.card-cover-media.placeholder .crest-ph{
  width:44px; height:48px; opacity:.35;
}

.card-body{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  padding:16px 16px 18px;
  background:#f1e6d0;
  border-radius:0 0 16px 16px;
  transition:background-color .3s ease;
}
.card:hover .card-body{
  background:var(--red-emblem);
}
.card-body h3{
  font-family:'Google Sans Flex', sans-serif;
  font-weight:700; font-size:15px; line-height:1.32;
  color:var(--navy-deep);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  transition:color .3s ease;
}
.card:hover .card-body h3{
  color:var(--white);
}
.card-meta-group{ display:flex; flex-direction:column; gap:5px; }
.card-meta{
  display:flex; align-items:center; gap:6px;
  font-family:'Roboto Condensed',sans-serif;
  font-size:12px; color:rgba(13,31,58,0.62);
  letter-spacing:.01em;
  transition:color .3s ease;
}
.card:hover .card-meta{
  color:rgba(247,243,234,0.78);
}
.card-meta svg{ width:12px; height:12px; opacity:.6; flex-shrink:0; }

/* ---------- FOOTER ---------- */
footer{
  margin-top:70px;
  padding:50px clamp(20px,5vw,64px) 36px;
  background:var(--black);
  border-top:1px solid var(--hairline);
  text-align:center;
}
footer .brand-mark{ justify-content:center; margin:0 auto 20px; }
.social-links{
  display:flex; justify-content:center; gap:14px;
}
.social-links a{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  border-radius:10px;
  border:1px solid rgba(253,209,108,0.3);
  color:var(--gold-mid);
  transition:border-color .2s ease, color .2s ease, background .2s ease;
}
.social-links a:hover{
  color:var(--gold-bright);
  border-color:var(--gold-bright);
  background:rgba(253,209,108,0.08);
}
.social-links svg{ width:18px; height:18px; }

@media(max-width:560px){
  .topbar{ padding-block:14px; }
  .topbar .container{ padding-inline:18px; }
  .mobile-menu{ padding-inline:18px; }
  .brand-mark img{ height:22px; }
  header.topbar .brand-mark img{ height:26px; }

  .hero{ padding:18px 18px 24px; }
  .hero-title{ font-size:6.6vw; line-height:1.08; }
  .hero-sub{ font-size:3.4vw; margin:8px 0 16px; }

  .search-wrap{ flex-wrap:wrap; padding:12px; border-radius:28px; }
  .search-wrap input{ width:100%; order:1; font-size:14px; padding:6px 0; }
  .search-wrap svg{ order:0; }
  .search-wrap button{ order:2; width:100%; padding:10px 16px; }

  .hero-rail{ margin-top:20px; }
  .hero-rail .rail-head{ margin-bottom:10px; }
  .hero-rail .rail-head h2{ font-size:14px; gap:8px; }
  .hero-rail .rail-nav button{ width:26px; height:26px; font-size:13px; }

  .hero-rail .card{ flex-basis:132px; }
  .hero-rail .card-badge{ margin:8px; font-size:9px; padding:3px 7px; }
  .hero-rail .card-body{ padding:8px 10px 10px; }
  .hero-rail .card-body h3{ font-size:11.5px; -webkit-line-clamp:2; }
  .hero-rail .card-body{ gap:6px; }
  .hero-rail .card-meta{ font-size:9.5px; }
  .hero-rail .card-meta svg{ width:9px; height:9px; }
  .hero-rail .card-meta-group{ gap:3px; }

  main .card{ flex-basis:210px; }
}
