/* ============================================================
   Casa Cultural · Estilos de páginas públicas
   Hero, agenda, catálogo, atração, contato e componentes de página.
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(30px, 6vh, 70px));
  padding-bottom: clamp(48px, 8vh, 90px);
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: contrast(1.1) saturate(1.2);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 13, 11, 0.45) 0%, rgba(14, 13, 11, 0.85) 75%, rgba(14, 13, 11, 0.98) 100%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/uploads/casa-festival.jpg') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; }
.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}
.hero-light-a {
  width: 46vw; height: 46vw;
  min-width: 380px; min-height: 380px;
  top: -18%; right: -10%;
  background: radial-gradient(circle, rgba(245, 240, 160, 0.17), transparent 65%);
}
.hero-light-b {
  width: 34vw; height: 34vw;
  min-width: 300px; min-height: 300px;
  bottom: -22%; left: -8%;
  background: radial-gradient(circle, rgba(216, 208, 120, 0.1), transparent 65%);
}
.hero-kicker { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 6px; }
.hero-side {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  text-align: right;
  z-index: 1;
}
.hero-side span {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--ink-faint);
  opacity: 0.5;
  line-height: 1.25;
}
.hero-side span:nth-child(even) { color: var(--accent-deep); opacity: 0.75; }
@media (max-width: 1320px) { .hero-side { display: none; } }
.hero-sub {
  margin-top: clamp(14px, 2.5vw, 22px);
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(22px, 3.5vw, 34px); }
.hero-stats {
  display: flex;
  gap: clamp(18px, 3.5vw, 40px);
  flex-wrap: wrap;
  margin-top: clamp(30px, 5vw, 52px);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
}
.hero-stats span { position: relative; }
.hero-stats span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(-1 * clamp(9px, 1.75vw, 20px));
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}

/* ---------- Faixa marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.marquee-item:nth-child(odd) { color: var(--accent-deep); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards de atração ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.artist-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #18191e 0%, #121316 100%);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.artist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 223, 142, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(230, 223, 142, 0.08);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.artist-card:hover .card-media img {
  transform: scale(1.06);
}
.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 19, 22, 0.85) 100%);
  pointer-events: none;
}
.card-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 223, 142, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.card-media-empty {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 240, 160, 0.14), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
}
.card-glyph {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.card-glow {
  position: absolute;
  inset: auto 12% 8% auto;
  width: 34%;
  height: 26%;
  background: radial-gradient(ellipse, rgba(245, 240, 160, 0.2), transparent 70%);
  filter: blur(6px);
}
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 20px 20px;
  gap: 10px;
}
.card-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: -2px;
}
.card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: var(--accent);
}
.card-resumo {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.card-action-btn:hover {
  color: var(--accent);
  gap: 12px;
}
.card-action-btn svg {
  transition: transform 0.2s ease;
}
.card-action-btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Áreas ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}
.area-media {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.area-card:hover .area-media img {
  transform: scale(1.05);
}
.area-body { display: grid; gap: 3px; }
.area-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface), rgba(25, 26, 30, 0.35));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.area-card:hover { transform: translateY(-4px); border-color: rgba(232, 223, 142, 0.45); }
.area-num {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--accent-deep);
}
.area-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.area-desc { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- Citações e CTA ---------- */
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 80% 15%, rgba(245, 240, 160, 0.1), transparent 55%),
    var(--surface);
}
.quote-script { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.quote-note { margin-top: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.cta-final {
  position: relative;
  padding-block: clamp(72px, 12vw, 130px);
  background:
    linear-gradient(180deg, rgba(14, 13, 11, 0.88) 0%, rgba(14, 13, 11, 0.74) 50%, rgba(14, 13, 11, 0.94) 100%),
    url('/uploads/casa-festival.jpg') center center / cover no-repeat fixed;
  border-block: 1px solid var(--line-soft);
  text-align: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  .cta-final {
    background-attachment: scroll;
  }
}
.cta-inner { max-width: 760px; }
.cta-inner .hero-actions { justify-content: center; }
.cta-script { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  margin: 6px 0 12px;
  text-wrap: balance;
}
.cta-sub { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.cta-inline { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 10px; }

/* ---------- Página interna (hero + breadcrumbs) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(38px, 7vw, 72px));
  padding-bottom: clamp(28px, 5vw, 52px);
  background: radial-gradient(ellipse at 85% 0%, rgba(245, 240, 160, 0.07), transparent 55%);
}
.breadcrumbs {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 14px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 10, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.breadcrumbs + main .page-hero,
.breadcrumbs ~ main .page-hero {
  padding-top: clamp(24px, 4vw, 44px);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb-list li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.breadcrumb-list a:hover { color: var(--accent-2); }
.breadcrumb-list [aria-current] { color: var(--ink-soft); }
.result-count { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }
.page-404 { text-align: center; }
.script-404 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-404 .lead { margin-inline: auto; }
.page-404 .search-inline { margin-top: 22px; }

/* ---------- Eventos ---------- */
.event-list { display: grid; gap: 12px; }
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.event-card:hover { border-color: rgba(232, 223, 142, 0.45); transform: translateY(-3px); }
.event-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}
.event-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.event-card:hover .event-thumb img {
  transform: scale(1.06);
}
.event-info {
  flex-grow: 1;
  min-width: 0;
}
.event-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.event-date {
  display: grid;
  place-items: center;
  gap: 0;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: var(--accent-ink);
}
.event-day { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.event-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.event-info { min-width: 0; }
.event-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 3px; }
.event-meta, .event-acts { font-size: 0.84rem; color: var(--ink-soft); }
.event-acts { color: var(--accent-2); margin-top: 2px; }
.event-badge {
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 201, 138, 0.5);
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.event-list-past { opacity: 0.75; }
.past-events { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.past-events summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary::after { content: '∨'; color: var(--accent); }
.past-events[open] summary::after { content: '∧'; }
.event-facts { display: grid; gap: 12px; margin: 18px 0 22px; }
.event-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.event-facts dd { font-size: 1rem; color: var(--ink); }
.event-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.event-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.event-figure img { width: 100%; aspect-ratio: 3 / 2; }

/* ---------- Filtros e busca ---------- */
.filter-bar {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: clamp(22px, 4vw, 36px);
}
.filter-field { display: grid; gap: 6px; flex: 1 1 150px; max-width: 260px; }
.filter-field label { font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); }
.filter-clear { font-size: 0.82rem; color: var(--ink-faint); text-decoration: underline; align-self: center; padding-bottom: 12px; }
.filter-clear:hover { color: var(--accent-2); }
.search-inline { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.search-inline input { flex: 1; }
.genre-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.genre-nav { margin-top: 34px; }
.group-block { margin-top: clamp(34px, 6vw, 54px); }

/* ---------- Página de atração ---------- */
.atracao-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.atracao-figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.atracao-figure img { width: 100%; aspect-ratio: 4 / 3; }
.atracao-figure-video .video-frame { border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.atracao-figure-video video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #000; }

/* Materiais para download (press kit) */
.section-intro { color: var(--ink-soft); max-width: 64ch; margin: -4px 0 26px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.download-btn:hover { transform: translateY(-3px); border-color: var(--accent-deep); background: var(--surface-2); }
.download-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 240, 160, 0.16), rgba(216, 208, 120, 0.06));
  border: 1px solid rgba(245, 240, 160, 0.28);
  color: var(--accent);
}
.download-text { display: grid; gap: 2px; min-width: 0; }
.download-label { font-weight: 600; font-size: 0.95rem; }
.download-meta { font-size: 0.74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.download-arrow { margin-inline-start: auto; flex: none; color: var(--ink-faint); transition: color 0.2s, transform 0.25s var(--ease); }
.download-btn:hover .download-arrow { color: var(--accent); transform: translateY(2px); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fact-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: var(--surface);
}
.fact-item dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 4px; }
.fact-item dd { font-size: 0.94rem; }
.list-dots { display: grid; gap: 9px; color: var(--ink-soft); }
.list-dots li { padding-left: 18px; position: relative; }
.list-dots li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.testimonials-grid .gallery-item img { aspect-ratio: auto; height: auto; object-fit: contain; }
.testimonials-grid .gallery-item:hover img { transform: none; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-list { display: grid; gap: 12px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 32px);
  background: var(--surface);
  display: grid;
  gap: 16px;
}
.contact-form .form-row .form-field { flex: 1 1 220px; }
.btn-form { justify-self: start; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.contact-list a { color: var(--accent-2); }
.contact-list a:hover { color: var(--accent); }
.note-side { margin-top: 26px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .atracao-hero, .event-hero, .contact-grid { grid-template-columns: 1fr; }
  .contact-side { order: -1; }
}
@media (max-width: 560px) {
  .event-link { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px; }
  .event-date { width: 48px; height: 48px; }
  .event-day { font-size: 1.15rem; }
  .event-badge { display: none; }
  .hero { min-height: auto; }
  .filter-field { max-width: none; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Botões de canais na página de contato ---------- */
.contact-channels { display: grid; gap: 12px; margin-bottom: 22px; }
.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.2s, background 0.2s;
}
.channel-btn:hover { transform: translateY(-2px); background: var(--surface-2); }
.channel-btn span { display: grid; gap: 2px; }
.channel-btn strong { font-size: 0.98rem; color: var(--ink); }
.channel-btn em { font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }
.channel-whatsapp { border-color: rgba(37, 211, 102, 0.45); }
.channel-whatsapp svg { color: #25d366; flex: none; }
.channel-whatsapp:hover { border-color: #25d366; }
.channel-instagram:hover { border-color: rgba(221, 42, 123, 0.6); }
