:root {
  color-scheme: light;
  --paper:#f9f8f4; --white:#fff; --ink:#201938; --muted:#635d70;
  --violet:#5937db; --violet-dark:#4726bf; --line:#e4e0e8; --lime:#e8fd83;
  --radius:20px; --max:1200px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height:1.5;
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); }
a { color:inherit; text-decoration:none; }
button, input, select { font:inherit; color:inherit; }
button { cursor:pointer; }
img { display:block; max-width:100%; }
h1, h2, h3, p, dl, dd { margin:0; }
h1, h2, h3 { line-height:1.11; letter-spacing:-.035em; }
:focus-visible { outline:3px solid var(--violet); outline-offset:4px; }
.sr-only, .skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; z-index:10; left:14px; top:12px; padding:10px 16px; background:var(--white); border-radius:8px; }
.wrap { width:min(var(--max), calc(100% - 80px)); margin-inline:auto; }
.site-header { background:var(--white); border-bottom:1px solid #ebe8ee; }
.header-inner { min-height:64px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:22px; }
.brand { display:inline-flex; align-items:center; gap:8px; width:max-content; font-size:26px; font-weight:850; letter-spacing:-.085em; white-space:nowrap; }
.brand-gap { display:inline-block; width:.20em; }
.brand-dot { color:var(--violet); }
.nav { display:flex; gap:30px; align-items:stretch; height:100%; }
.nav a { position:relative; display:flex; align-items:center; padding:0 3px; color:#5e576b; font-size:14px; font-weight:700; }
.nav a:hover, .nav a[aria-current] { color:var(--violet-dark); }
.nav a[aria-current]::after { content:""; position:absolute; bottom:-1px; height:3px; inset-inline:0; background:var(--violet); border-radius:4px 4px 0 0; }
.header-actions { justify-self:end; display:flex; align-items:center; gap:12px; }
.city-button, .saved-link { display:inline-flex; gap:7px; align-items:center; justify-content:center; min-height:44px; white-space:nowrap; font-size:14px; font-weight:730; }
.city-button { padding:0 11px; background:#f6f3ff; border:1px solid #e8e0fb; border-radius:10px; color:#4529a0; }
.saved-link { padding:0 8px; border-radius:10px; }
.city-button:hover, .saved-link:hover { background:#eee8ff; }
.saved-number, .filter-count { display:inline-grid; place-items:center; padding:0 5px; min-width:20px; height:20px; background:#ede7ff; border-radius:100px; font-size:11px; color:#4529a0; }
.demo-top { min-height:36px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:600; }
.demo-top > span { font-size:9px; letter-spacing:.10em; background:#eeeaf4; border-radius:4px; padding:3px 6px; color:#51475e; font-weight:800; }
.hero { display:grid; grid-template-columns:.91fr 1.09fr; min-height:278px; overflow:hidden; background:#ebe4ff; border-radius:24px; }
.hero-content { padding:20px 32px 20px 38px; align-self:center; z-index:1; }
.hero-kicker, .section-kicker { display:flex; align-items:center; gap:8px; color:#5036aa; font-size:11px; font-weight:850; letter-spacing:.13em; }
.hero-kicker > span, .section-kicker > span { width:8px; height:8px; border-radius:50%; background:var(--violet); flex:none; }
.hero h1 { font-size:clamp(49px, 5.5vw, 72px); font-weight:880; line-height:.97; letter-spacing:-.078em; margin:9px 0 8px; }
.hero h1 span { color:#5c38dc; }
.hero p { max-width:350px; color:#4a3f63; font-size:16px; font-weight:550; line-height:1.45; margin-bottom:14px; }
.search-form { display:flex; align-items:center; gap:9px; max-width:450px; padding:5px 5px 5px 14px; background:var(--white); color:#655885; border:1px solid #e1d5fd; border-radius:12px; box-shadow:0 5px 12px #3d197b14; }
.search-form > svg { flex:none; }
.search-form:focus-within { border-color:var(--violet); box-shadow:0 0 0 2px #5937db40; }
.search-form input { width:100%; min-width:0; min-height:43px; border:0; background:transparent; outline:none; }
.search-form input::placeholder { color:#6d637c; opacity:1; }
.search-form button { width:44px; height:44px; flex:none; display:grid; place-items:center; border:0; border-radius:8px; background:var(--violet); color:white; }
.search-form button:hover { background:var(--violet-dark); }
.hero-visual { position:relative; min-width:0; min-height:100%; background:#30204d; }
.hero-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:53% center; }
.hero-location { position:absolute; right:16px; bottom:15px; display:flex; align-items:center; gap:5px; padding:7px 10px; background:#211638; border:1px solid #f4ecff54; color:#fff; border-radius:100px; font-size:9px; font-weight:820; letter-spacing:.13em; }
.themes-section { margin-top:22px; }
.themes-section h2 { font-size:23px; margin-bottom:10px; }
.themes { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:11px; }
.theme { min-height:58px; display:flex; gap:8px; align-items:center; padding:9px; border:1px solid #20193814; border-radius:13px; background:var(--tile); font-weight:750; font-size:13px; text-align:left; line-height:1.2; transition:border-color 160ms, box-shadow 160ms; }
.theme:hover, .theme[aria-pressed="true"] { border-color:var(--theme-ink); box-shadow:0 0 0 1px var(--theme-ink); }
.theme-icon { width:35px; height:35px; display:grid; place-items:center; flex:none; border-radius:9px; color:var(--theme-ink); background:var(--theme-icon); }
.lilac { --tile:#eee9fd; --theme-icon:#e1d8ff; --theme-ink:#512dab; }
.peach { --tile:#ffede3; --theme-icon:#ffdeca; --theme-ink:#963a22; }
.mint { --tile:#e9f4df; --theme-icon:#d6ecc6; --theme-ink:#325b2e; }
.rose { --tile:#fce9ef; --theme-icon:#f8d7e4; --theme-ink:#922c58; }
.yellow { --tile:#faf2d7; --theme-icon:#f8e8af; --theme-ink:#775617; }
.sky { --tile:#e8effe; --theme-icon:#d8e5ff; --theme-ink:#3a5095; }
.agenda { margin:27px 0 70px; scroll-margin-top:20px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:4px 0 12px; }
.section-heading h2 { font-size:clamp(32px, 3.7vw, 46px); font-weight:850; letter-spacing:-.066em; }
.sort { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; white-space:nowrap; }
.sort select { min-height:44px; border:0; background:transparent; font-weight:750; color:var(--ink); cursor:pointer; }
.filters { display:flex; justify-content:space-between; gap:12px; padding:10px; background:var(--white); border:1px solid var(--line); border-radius:15px; }
.filter-group { display:flex; flex-wrap:wrap; gap:5px; align-items:center; }
.chip { display:inline-flex; min-height:44px; justify-content:center; align-items:center; gap:6px; padding:0 12px; background:var(--white); border:1px solid transparent; border-radius:8px; font-weight:680; font-size:13px; white-space:nowrap; transition:background 150ms, border-color 150ms; }
.chip:hover { background:#f0ebff; color:#4829a9; }
.chip.selected { background:var(--violet); color:var(--white); }
.refine .chip { border-color:var(--line); }
.refine [data-dialog="all"] { color:var(--violet-dark); background:#f4efff; border-color:#e8ddff; }
.active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; }
.active-filters button { display:inline-flex; align-items:center; gap:6px; min-height:44px; max-width:100%; overflow-wrap:anywhere; padding:0 10px; background:#eee9ff; border:1px solid #e4dafc; color:#482ba0; border-radius:8px; font-weight:700; font-size:13px; text-align:left; }
.active-filters .text-button { background:transparent; border:0; text-decoration:underline; }
.result-count { margin:13px 0 12px; color:var(--muted); font-size:14px; font-weight:580; }
.grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.event-card { position:relative; min-width:0; background:var(--white); border:1px solid var(--line); border-radius:16px; transition:box-shadow 160ms, border-color 160ms; }
.event-card:hover { box-shadow:0 7px 19px #29175615; border-color:#c8b5ee; }
.event-link { display:block; height:100%; border-radius:16px; }
.card-image { position:relative; aspect-ratio:2 / 1; background:#ede4fc; border-radius:15px 15px 0 0; overflow:hidden; }
.card-image img, .detail-image img { width:100%; height:100%; object-fit:cover; }
.art-musica { background:#f8a572; }
.art-familia { background:#dff280; }
.art-esporte { background:#444bd8; }
.art-cultura { background:#f1b4cd; }
.art-feiras { background:#2b7063; }
.art-a-dois { background:#6939ac; }
.price-badge { position:absolute; z-index:1; top:12px; left:12px; padding:5px 9px; background:var(--white); color:var(--ink); border-radius:7px; font-size:12px; line-height:1.3; font-weight:810; }
.price-badge.free { background:var(--lime); }
.card-save { position:absolute; z-index:2; top:9px; right:9px; display:grid; place-items:center; width:44px; height:44px; border:1px solid #20193819; border-radius:50%; background:#fff; color:var(--ink); }
.card-save:hover { background:#f0ebff; }
[data-save][aria-pressed="true"] { color:var(--violet-dark); }
[data-save][aria-pressed="true"] svg { fill:#d2c1ff; }
.card-body { padding:14px 14px 15px; }
.card-date { display:flex; gap:6px; align-items:center; color:#5231b6; font-size:13px; font-weight:800; }
.card-date svg, .card-place svg { flex:none; }
.card-body h3 { margin:6px 0; font-size:clamp(19px, 2vw, 24px); font-weight:810; }
.card-place { display:flex; gap:5px; align-items:flex-start; color:var(--muted); font-size:13px; line-height:1.4; }
.card-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:11px; }
.card-tags span { padding:3px 7px; background:#f3f0f8; color:#554b67; border-radius:6px; font-size:11px; line-height:1.4; font-weight:700; }
.button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 15px; border-radius:10px; border:1px solid transparent; font-size:14px; line-height:1.3; font-weight:770; text-align:center; transition:background 150ms; }
.primary { background:var(--violet); color:#fff; }
.primary:hover { background:var(--violet-dark); }
.secondary { background:#fff; color:#493398; border-color:#e4daf7; }
.secondary:hover { background:#f5f0ff; }
.more { display:flex; justify-content:center; margin-top:24px; }
.empty { display:flex; flex-direction:column; align-items:center; gap:12px; padding:43px 20px; text-align:center; border:1px solid var(--line); border-radius:16px; background:#fff; }
.empty > svg { color:var(--violet); }
.empty h2, .empty h3 { font-size:25px; }
.empty p { color:var(--muted); max-width:44ch; }
.empty .button { margin-top:5px; }
.subpage { min-height:62vh; padding-bottom:60px; }
.subpage h1 { font-size:clamp(38px, 5.5vw, 66px); line-height:1.02; font-weight:860; margin:8px 0 13px; letter-spacing:-.065em; }
.coming { margin-top:35px; padding:58px 20px; }
.back-link { display:inline-flex; align-items:center; min-height:44px; gap:8px; color:var(--violet-dark); font-size:14px; font-weight:730; margin:12px 0 14px; }
.back-link:hover { text-decoration:underline; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr); grid-template-areas:"image panel" "summary panel" "about panel"; align-items:start; gap:18px 28px; }
.detail-image { grid-area:image; aspect-ratio:2 / 1; border-radius:19px; overflow:hidden; }
.editorial-photo { max-width:760px; margin:16px 0; }
.editorial-photo img { width:100%; height:auto; border-radius:15px; }
.editorial-photo figcaption { color:var(--muted); font-size:.875rem; }
.detail-summary { grid-area:summary; }
.detail-body { grid-area:about; }
.detail-body h2 { font-size:24px; margin:5px 0 8px; }
.detail-body p { color:var(--muted); max-width:63ch; }
.guide { max-width:760px; }
.guide h2 { margin-top:24px; }
.guide p, .detail-body p + p { margin-top:10px; }
.demo-note { margin-top:22px; border:1px solid #e5d6fd; border-radius:10px; padding:12px 14px; background:#f2ebff; color:#4c3779; font-size:14px; }
.detail-panel { grid-area:panel; background:var(--white); border:1px solid var(--line); border-radius:17px; padding:20px; }
.detail-panel h2 { font-size:25px; margin-bottom:11px; }
.info-row { display:flex; gap:10px; padding:11px 0; border-bottom:1px solid #f0ecf3; }
.info-row svg { flex:none; color:var(--violet); margin-top:2px; }
.info-row dt { font-size:12px; font-weight:780; color:var(--muted); }
.info-row dd { font-size:15px; white-space:pre-line; margin-top:1px; }
.detail-panel .wide { width:100%; margin-top:10px; }
.entry-note { display:flex; align-items:center; gap:6px; margin-top:13px; color:#356125; font-size:14px; font-weight:750; }
.detail-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:10px; }
.detail-action { padding-inline:6px; }
footer { background:#fff; border-top:1px solid var(--line); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:85px; }
.footer-inner > span { color:var(--muted); font-size:13px; }
.footer-inner .brand { font-size:23px; }
.collection-links { display:flex; flex-wrap:wrap; gap:8px 16px; margin:0 0 28px; }
.collection-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--violet-dark); text-decoration:underline; font-size:14px; }
.plan-links { margin:8px 0 0; }
.plan-links a[aria-current="page"] { font-weight:750; }
.source-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-weight:750; color:var(--violet-dark); text-decoration:underline; }
dialog { width:min(490px, calc(100% - 24px)); max-height:calc(100% - 24px); color:var(--ink); background:white; border:1px solid var(--line); border-radius:18px; padding:0; box-shadow:0 16px 64px #20193845; }
dialog::backdrop { background:#25193e8a; }
.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:19px 19px 13px; }
.dialog-head h2 { font-size:26px; }
.dialog-head p { font-size:14px; color:var(--muted); margin-top:4px; }
.icon-button { width:44px; height:44px; display:grid; place-items:center; flex:none; border:1px solid var(--line); border-radius:10px; background:#fff; }
.icon-button:hover { background:#f4efff; }
.form-fields { display:grid; gap:13px; padding:7px 19px 20px; }
.form-fields.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.field { display:flex; flex-direction:column; gap:4px; min-width:0; font-size:14px; font-weight:750; }
.field select, .field input { width:100%; min-width:0; min-height:45px; background:#fff; border:1px solid #c9c2d2; border-radius:8px; padding:5px 7px; font-size:16px; font-weight:520; }
.dialog-footer { display:flex; justify-content:space-between; padding:12px 19px 18px; border-top:1px solid var(--line); }
.city-list { display:grid; gap:6px; padding:0 19px 20px; }
.city-list a { display:grid; grid-template-columns:22px 1fr auto 22px; align-items:center; gap:7px; padding:10px 11px; border:1px solid var(--line); border-radius:9px; min-height:47px; }
.city-list a:hover, .city-list a[aria-current] { background:#f3edff; color:var(--violet-dark); }
.city-list a span { color:var(--muted); font-size:12px; }
.ticket-text { padding:0 19px 23px; color:var(--muted); }
.toast { position:fixed; z-index:5; bottom:18px; right:18px; max-width:calc(100% - 36px); pointer-events:none; opacity:0; padding:10px 14px; color:#fff; background:var(--ink); border-radius:10px; font-size:14px; transition:opacity 150ms; }
.toast.visible { opacity:1; }
@media (max-width:1020px) {
  .wrap { width:calc(100% - 48px); }
  .theme { padding:8px; }
  .theme-icon { width:30px; height:30px; }
  .theme-icon svg { width:21px; height:21px; }
  .filters { flex-wrap:wrap; gap:5px; }
}
@media (max-width:760px) {
  .wrap { width:calc(100% - 32px); }
  .header-inner { grid-template-columns:1fr auto; min-height:64px; gap:6px; }
  .nav { display:none; }
  .header-actions { gap:4px; }
  .hero { grid-template-columns:1fr; min-height:0; border-radius:18px; }
  .hero-content { padding:22px 18px; }
  .hero h1 { font-size:clamp(47px, 11vw, 63px); margin:9px 0 10px; }
  .hero h1 br { display:none; }
  .hero h1 br::after { content:" "; }
  .hero p { margin-bottom:14px; }
  .hero-visual { min-height:145px; }
  .hero-visual img { object-position:50% 43%; }
  .hero-location { bottom:7px; right:8px; font-size:8px; padding:5px 8px; }
  .themes-section { margin-top:23px; }
  .themes { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .theme { min-height:60px; gap:5px; }
  .agenda { margin:28px 0 44px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .detail-grid { grid-template-columns:1fr; grid-template-areas:"image" "summary" "panel" "about"; gap:14px; }
  .detail-body { padding-top:7px; }
}
@media (max-width:480px) {
  .wrap { width:calc(100% - 24px); }
  .brand { font-size:22px; gap:5px; }
  .brand img { width:29px; height:29px; }
  .city-button { padding:0 7px; gap:3px; font-size:13px; }
  .city-button svg:first-child { width:15px; }
  .saved-link { width:44px; position:relative; padding:0; }
  .saved-label { display:none; }
  .saved-number { position:absolute; top:0; right:0; min-width:15px; height:15px; padding:0 3px; font-size:9px; }
  .demo-top { min-height:37px; font-size:11px; }
  .hero h1 { letter-spacing:-.07em; font-size:clamp(40px, 12.3vw, 54px); }
  .hero p { font-size:15px; }
  .hero-visual { min-height:115px; }
  .themes-section h2 { font-size:22px; margin-bottom:9px; }
  .theme { padding:6px; font-size:12px; }
  .theme-icon { width:24px; height:27px; }
  .theme-icon svg { width:18px; height:18px; }
  .section-heading { align-items:center; margin-bottom:11px; }
  .sort span { display:none; }
  .sort select { max-width:121px; font-size:12px; }
  .filters { padding:5px; }
  .filter-group { gap:3px; }
  .chip { padding-inline:8px; font-size:12px; }
  .grid { grid-template-columns:1fr; }
  .card-image { aspect-ratio:2.16 / 1; }
  .footer-inner { flex-wrap:wrap; justify-content:flex-start; padding:12px 0; gap:6px 14px; }
  .footer-inner > span { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition-duration:0s !important; }
}
