/* Redesign 2026: organização por evento, topbar única e responsividade limpa */
:root{
  --if-blue:#0057d9;
  --if-blue-dark:#001f5b;
  --if-cyan:#00a8ff;
  --if-bg:#f4f7fb;
  --if-card:#ffffff;
  --if-text:#10233f;
  --if-muted:#5f718c;
  --if-line:#d8e2f0;
  --if-shadow:0 18px 50px rgba(0,31,91,.12);
  --if-radius:22px;
}
html,body{max-width:100%;overflow-x:hidden!important;}
body{background:linear-gradient(180deg,#f7faff 0%,#eef4fb 48%,#f7faff 100%)!important;color:var(--if-text)!important;}
a{text-decoration:none;}
.header,.event-header{
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid var(--if-line)!important;
  box-shadow:0 8px 28px rgba(0,31,91,.08)!important;
  backdrop-filter:saturate(160%) blur(16px)!important;
}
.if-topbar{
  width:100%;
  min-height:78px;
  display:grid!important;
  grid-template-columns:minmax(160px,240px) minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:10px 0!important;
}
.if-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--if-blue-dark)!important;
  font-weight:950;
  letter-spacing:-.03em;
}
.if-brand-logo{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:14px;
  background:linear-gradient(135deg,var(--if-blue),var(--if-blue-dark));
  color:#fff;
  box-shadow:0 12px 26px rgba(0,87,217,.22);
}
.if-brand-logo img{width:100%;height:100%;object-fit:contain;padding:6px;}
.if-brand-text{min-width:0;display:grid;line-height:1.02;}
.if-brand-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.02rem;}
.if-brand-text small{font-size:.72rem;color:var(--if-muted);font-weight:850;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;}
.if-search{min-width:0;display:flex;align-items:center;gap:8px;padding:5px;border:1px solid var(--if-line);background:#f7faff;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.85);}
.if-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--if-text);font-weight:750;font-size:.95rem;padding:0 8px;}
.if-search input::placeholder{color:#7890ad;}
.if-search button{border:0;min-width:42px;min-height:42px;border-radius:999px;color:#fff;background:linear-gradient(135deg,var(--if-blue),var(--if-blue-dark));font-weight:950;cursor:pointer;}
.if-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;}
.if-nav a,.if-nav button,.if-action{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--if-line);
  background:#fff;
  color:var(--if-blue-dark)!important;
  font-weight:900;
  padding:10px 15px;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(0,31,91,.06);
}
.if-nav a.primary,.if-action.primary{background:linear-gradient(135deg,var(--if-blue),var(--if-blue-dark));border-color:transparent;color:#fff!important;box-shadow:0 12px 28px rgba(0,87,217,.22);}
.event-topline,.navlinks{display:none!important;}
main{min-width:0;}
.container{width:min(1180px,calc(100% - 32px))!important;margin-inline:auto!important;}
.section{padding-block:clamp(34px,6vw,72px)!important;}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px;}
.section-head h2{font-size:clamp(1.8rem,3.8vw,3.2rem)!important;letter-spacing:-.06em!important;line-height:1!important;}
.lead{max-width:760px;line-height:1.55!important;}
.hero,.corporate-hero{padding:clamp(36px,6vw,70px) 0!important;background:linear-gradient(135deg,#002b7a 0%,#004bbf 56%,#00a8ff 100%)!important;}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);gap:clamp(22px,5vw,56px);align-items:center;}
.brand-hero-logo{max-width:min(300px,75vw)!important;height:auto;}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.btn{min-height:44px;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;text-align:center!important;line-height:1.1!important;padding:11px 16px!important;border-radius:999px!important;}
.btn-primary,.btn-success{background:linear-gradient(135deg,var(--if-blue),var(--if-blue-dark))!important;color:#fff!important;border-color:transparent!important;}
.event-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:22px;}
.search-box{width:100%;min-width:0;}
.search-box input{width:100%;min-height:48px;border-radius:999px;}
.filter-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.chip{min-height:42px;white-space:nowrap;}
.events-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;}
.event-card,.rodeo-event-card,.city-card,.city-event-card,.ticket-card,.mini-card,.panel,.detail,.event-section-card,.reward-wheel-card,.reward-history-card{
  border:1px solid var(--if-line)!important;
  background:#fff!important;
  color:var(--if-text)!important;
  box-shadow:var(--if-shadow)!important;
  border-radius:var(--if-radius)!important;
}
.rodeo-event-card,.event-card{overflow:hidden!important;display:flex!important;flex-direction:column!important;min-width:0!important;}
.rodeo-thumb,.event-cover,.city-event-cover{position:relative;background:#eef4ff!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.rodeo-thumb{aspect-ratio:4/5!important;min-height:auto!important;padding:0!important;}
.event-cover{aspect-ratio:4/5!important;}
.rodeo-thumb img,.event-cover img,.event-carousel-figure img,.city-event-cover img,.event-banner-display img,.ticket-card img,.gallery img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center!important;background:#eef4ff!important;}
.rodeo-card-body,.event-body{padding:18px!important;display:flex!important;flex:1!important;flex-direction:column!important;gap:10px!important;}
.rodeo-card-body h3,.event-body h3{font-size:clamp(1.15rem,1.8vw,1.42rem)!important;line-height:1.12!important;letter-spacing:-.04em!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.meta-line,.city-meta,.event-single-meta{display:flex;flex-wrap:wrap;gap:7px;min-width:0;}
.meta-line span,.date-pill,.info-pill,.pill{max-width:100%;overflow-wrap:anywhere;}
.event-date-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px;}
.event-date-list .date-pill{display:inline-flex;align-items:center;min-height:32px;padding:7px 10px;border-radius:999px;background:#eef4ff;color:var(--if-blue-dark);border:1px solid #d8e2f0;font-weight:900;font-size:.84rem;}
.event-card .actions,.rodeo-card-body .actions,.city-event-body .actions,.event-single-actions{margin-top:auto!important;display:flex;flex-wrap:wrap;gap:8px;}
.event-card .btn,.rodeo-card-body .btn,.city-event-body .btn{flex:1 1 auto;min-width:130px;}
.city-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
.city-card{min-height:128px!important;padding:20px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:10px!important;}
.city-card strong{font-size:clamp(1.15rem,2vw,1.65rem)!important;line-height:1.05!important;text-transform:none!important;}
.city-event-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;max-width:1180px!important;}
.city-event-card{grid-template-columns:1fr!important;overflow:hidden!important;}
.city-event-cover{aspect-ratio:4/5!important;min-height:auto!important;padding:0!important;}
.city-event-body{padding:18px!important;align-content:start!important;}
.event-single-hero{padding:clamp(28px,5vw,58px) 0!important;background:linear-gradient(135deg,#eef6ff,#ffffff)!important;}
.event-single-shell{display:grid!important;grid-template-columns:minmax(300px,480px) minmax(0,1fr)!important;gap:clamp(20px,4vw,44px)!important;align-items:center!important;}
.event-single-media,.event-single-copy{min-width:0!important;}
.event-single-banner,.event-banner-display{aspect-ratio:8/3!important;min-height:auto!important;border-radius:28px!important;background:#eef4ff!important;overflow:hidden!important;border:1px solid var(--if-line)!important;}
.event-single-copy h1{font-size:clamp(2rem,5vw,4.4rem)!important;line-height:.98!important;letter-spacing:-.07em!important;margin:.5rem 0 .75rem!important;color:var(--if-text)!important;}
.event-single-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:18px 0!important;}
.mini-card{padding:14px!important;min-width:0!important;}
.mini-card b{display:block;color:var(--if-text)!important;margin-bottom:4px;}
.mini-card p{margin:0!important;font-size:.92rem!important;color:var(--if-muted)!important;overflow-wrap:anywhere;}
.event-single-grid{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr)!important;gap:18px!important;align-items:start!important;}
.event-section-card{padding:clamp(18px,3vw,26px)!important;min-width:0!important;}
.event-section-card h3{margin:0 0 10px!important;font-size:clamp(1.25rem,2.2vw,1.7rem)!important;color:var(--if-text)!important;}
.event-date-selector{display:grid;gap:10px;margin-top:14px;}
.event-date-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;border-radius:16px;border:1px solid var(--if-line);background:#f7faff;padding:12px 14px;color:var(--if-text);font-weight:900;}
.event-date-option small{font-size:.8rem;color:var(--if-muted);font-weight:800;}
.event-image-fallback{width:100%;height:100%;display:grid;place-items:center;text-align:center;color:var(--if-muted);font-weight:900;background:linear-gradient(135deg,#eef4ff,#f8fbff);}
.wallet-title,.page-title{padding:clamp(26px,5vw,52px) 0 20px!important;background:linear-gradient(135deg,#eef6ff,#fff)!important;}
.wallet-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:16px!important;}
.wallet-head h1{font-size:clamp(1.9rem,4vw,3.4rem)!important;line-height:1!important;letter-spacing:-.06em!important;color:var(--if-text)!important;}
.wallet-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
.ticket-card{padding:18px!important;min-width:0!important;}
.footer{background:#fff!important;color:var(--if-muted)!important;border-top:1px solid var(--if-line)!important;}
.footer .container{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.empty{border:1px dashed var(--if-line)!important;background:#fff!important;color:var(--if-muted)!important;border-radius:18px!important;}
@media(max-width:980px){
  .if-topbar{grid-template-columns:1fr!important;align-items:stretch!important;gap:10px!important;padding:10px 0 12px!important;}
  .if-brand{justify-content:flex-start;}
  .if-nav{justify-content:flex-start;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;}
  .if-nav::-webkit-scrollbar{display:none;}
  .if-nav a{flex:0 0 auto;}
  .hero-grid,.event-single-shell,.event-single-grid{grid-template-columns:1fr!important;}
  .events-grid,.city-grid,.city-event-list,.wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .event-tools{grid-template-columns:1fr!important;}
  .filter-chips{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
}
@media(max-width:640px){
  .container{width:min(100% - 24px,1180px)!important;}
  .header,.event-header{position:sticky!important;}
  .if-brand-logo{width:42px;height:42px;flex-basis:42px;border-radius:12px;}
  .if-brand-text strong{font-size:.96rem;}
  .if-brand-text small{font-size:.66rem;}
  .if-search{border-radius:18px;padding:6px;}
  .if-search input{font-size:.92rem;padding:0 6px;}
  .if-search button{min-width:44px;min-height:44px;}
  .if-nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;overflow:visible!important;}
  .if-nav a,.if-nav button{width:100%;min-height:44px;padding:9px 10px;font-size:.9rem;}
  .hero,.corporate-hero{padding:30px 0!important;}
  .section{padding-block:34px!important;}
  .section-head{flex-direction:column;align-items:flex-start!important;gap:8px;}
  .events-grid,.city-grid,.city-event-list,.wallet-grid,.event-single-kpis{grid-template-columns:1fr!important;}
  .rodeo-thumb,.event-cover,.city-event-cover{aspect-ratio:4/5!important;}
  .event-single-banner,.event-banner-display{aspect-ratio:4/5!important;border-radius:22px!important;}
  .event-single-copy{text-align:left!important;}
  .event-single-actions .btn,.event-card .btn,.rodeo-card-body .btn,.city-event-body .btn,.actions .btn{width:100%;min-width:0!important;}
  .event-date-option{align-items:flex-start;flex-direction:column;}
  .wallet-head{align-items:flex-start!important;flex-direction:column!important;}
  .reward-wheel-card{grid-template-columns:1fr!important;}
}
