.events-page { background: #fffaf2; color: var(--text); }
.events-page main { overflow: hidden; }
.events-topbar { justify-content: center; gap: 48px; }
.events-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 250, 242, .96); border-bottom: 1px solid rgba(60,36,21,.14); backdrop-filter: blur(14px); }
.events-header__inner { width: min(var(--container), calc(100% - 32px)); min-height: 82px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.events-header .brand { justify-self: start; }
.events-nav { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.events-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; color: var(--brown-600); font-weight: 800; }
.events-nav a.is-active { background: var(--green-900); color: #fff; }
.events-nav svg, .events-header__cta svg { width: 17px; }
.events-header__cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 7px; background: var(--red-800); color: #fff; font-weight: 900; box-shadow: 0 8px 20px rgba(138,31,23,.18); }

.events-hero { position: relative; width: min(1360px, calc(100% - 32px)); min-height: 490px; margin: 22px auto 0; padding: 64px clamp(28px, 7vw, 98px); display: flex; align-items: center; overflow: hidden; border-radius: 18px; background: linear-gradient(100deg, rgba(6,49,27,.98) 0%, rgba(7,63,35,.93) 48%, rgba(7,63,35,.54) 100%), url("assets/hero-esse.jpg") center/cover; color: #fffaf2; box-shadow: 0 28px 54px rgba(29,16,9,.2); }
.events-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 77% 35%, rgba(226,180,73,.25), transparent 24%); pointer-events: none; }
.events-hero__content { position: relative; z-index: 1; max-width: 720px; }
.events-kicker, .events-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #f6cf73; font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.events-kicker svg { width: 18px; }
.events-hero h1 { max-width: 720px; margin: 15px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.045em; }
.events-hero p { max-width: 650px; margin: 0; color: rgba(255,250,242,.86); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.events-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.events-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 19px; border: 0; border-radius: 7px; font-weight: 950; }
.events-button svg { width: 19px; }
.events-button--primary { background: var(--yellow-500); color: var(--brown-950); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.events-button--light { border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); }
.events-hero__seal { position: absolute; z-index: 1; right: clamp(28px, 6vw, 85px); bottom: 42px; width: 210px; padding: 18px; display: grid; gap: 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(29,16,9,.54); backdrop-filter: blur(10px); }
.events-hero__seal svg { width: 25px; color: #f6cf73; }
.events-hero__seal strong { font-family: Georgia, serif; font-size: 1.1rem; }
.events-hero__seal span { color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.4; }

.events-section { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; padding: 86px 0; }
.events-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.events-section__heading h2, .event-submit-intro h2 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.035em; }
.events-section__heading > a { display: inline-flex; align-items: center; gap: 8px; color: var(--green-800); font-weight: 900; }
.events-section__heading > a svg { width: 18px; }
.events-eyebrow { color: var(--red-800); }
.events-filters { margin-top: 28px; padding: 18px; display: grid; grid-template-columns: 1.5fr .85fr .85fr auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(33,19,11,.07); }
.events-filters label { display: grid; gap: 7px; color: var(--brown-800); font-size: .78rem; font-weight: 900; }
.events-filters input, .events-filters select, .event-form input, .event-form select, .event-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #cfbeaa; border-radius: 7px; outline: none; color: var(--text); background: #fffdf9; }
.events-filters input:focus, .events-filters select:focus, .event-form input:focus, .event-form select:focus, .event-form textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(18,101,60,.12); }
.events-input-icon { position: relative; }
.events-input-icon svg { position: absolute; left: 13px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--muted); }
.events-input-icon input { padding-left: 40px; }
.events-filters button { min-height: 46px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--brown-800); font-weight: 850; }
.events-filters button svg { width: 17px; }
.events-results-status { margin: 22px 0 14px; color: var(--muted); font-weight: 750; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(33,19,11,.08); transition: transform .2s ease, box-shadow .2s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(33,19,11,.13); }
.event-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--green-900), var(--brown-800)); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__media--empty { display: grid; place-items: center; color: rgba(255,255,255,.68); }
.event-card__media--empty svg { width: 62px; height: 62px; }
.event-card__type { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(255,250,242,.94); color: var(--green-900); font-size: .72rem; font-weight: 950; text-transform: uppercase; box-shadow: 0 5px 14px rgba(0,0,0,.15); }
.event-card__date { position: absolute; right: 14px; bottom: 0; min-width: 64px; padding: 9px; display: grid; text-align: center; border-radius: 9px 9px 0 0; background: var(--red-800); color: #fff; }
.event-card__date strong { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1; }
.event-card__date span { font-size: .7rem; font-weight: 950; text-transform: uppercase; }
.event-card__body { padding: 20px; }
.event-card__organizer { color: var(--red-800); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.event-card h3 { margin: 7px 0 12px; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.18; }
.event-card__meta { display: grid; gap: 8px; color: var(--muted); font-size: .88rem; }
.event-card__meta span { display: flex; align-items: flex-start; gap: 8px; }
.event-card__meta svg { width: 17px; flex: 0 0 auto; color: var(--green-700); }
.event-card__description { margin: 15px 0 0; color: #59483b; font-size: .9rem; line-height: 1.55; }
.event-card__actions { display: flex; gap: 10px; margin-top: 17px; }
.event-card__actions a, .event-card__actions button { flex: 1; min-height: 42px; padding: 10px 12px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--green-800); font-size: .82rem; font-weight: 900; }
.event-card__actions button:first-child { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.events-empty { grid-column: 1/-1; padding: 60px 24px; display: grid; place-items: center; gap: 9px; text-align: center; border: 1px dashed #cdb99f; border-radius: 12px; background: var(--paper); }
.events-empty svg { width: 42px; height: 42px; color: var(--green-700); }
.events-empty p { margin: 0; color: var(--muted); }

.event-submit-section { width: min(1360px, calc(100% - 32px)); margin: 0 auto 80px; padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(36px, 7vw, 90px); border-radius: 18px; background: linear-gradient(145deg, #f2e2cc, #fffaf2 56%); box-shadow: inset 0 0 0 1px var(--line); }
.event-submit-intro { align-self: start; position: sticky; top: 120px; }
.event-submit-intro .events-kicker { color: var(--red-800); }
.event-submit-intro > p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.event-submit-intro ol { margin: 30px 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.event-submit-intro li { display: flex; gap: 13px; align-items: flex-start; }
.event-submit-intro li > span, .event-form__section-title > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green-900); color: #fff; font-weight: 950; }
.event-submit-intro li strong, .event-submit-intro li small { display: block; }
.event-submit-intro li small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.event-submit-note { padding: 14px; display: flex; gap: 10px; border-left: 4px solid var(--yellow-500); border-radius: 5px; background: rgba(255,255,255,.65); color: var(--brown-600); font-size: .86rem; line-height: 1.5; }
.event-submit-note svg { width: 19px; flex: 0 0 auto; }
.event-form { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgba(33,19,11,.09); }
.event-form__section + .event-form__section { margin-top: 30px; padding-top: 30px; border-top: 1px solid #eadfce; }
.event-form__section-title { margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.event-form__section-title strong, .event-form__section-title small { display: block; }
.event-form__section-title small { margin-top: 2px; color: var(--muted); }
.event-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.event-form label { display: grid; gap: 7px; color: var(--brown-800); font-size: .83rem; font-weight: 850; }
.event-form textarea { resize: vertical; min-height: 120px; }
.event-form__wide { grid-column: 1/-1; }
.event-form__hint { color: var(--muted); font-weight: 500; }
.event-image-upload { position: relative; min-height: 220px; margin-bottom: 18px; display: grid !important; place-items: center; overflow: hidden; border: 2px dashed #c9b497; border-radius: 10px; background: #fffaf2; cursor: pointer; }
.event-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.event-image-upload__placeholder { padding: 28px; display: grid; place-items: center; gap: 7px; text-align: center; color: var(--muted); }
.event-image-upload__placeholder svg { width: 38px; height: 38px; color: var(--green-700); }
.event-image-upload__placeholder strong { color: var(--brown-800); font-size: 1rem; }
.event-image-upload img { width: 100%; max-height: 390px; object-fit: contain; }
.event-form__honeypot { position: absolute !important; left: -9999px; }
.event-form__consent { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px !important; padding: 13px; border-radius: 7px; background: var(--paper); font-weight: 650 !important; line-height: 1.45; }
.event-form__consent input { width: 18px; min-height: 18px; margin-top: 2px; flex: 0 0 auto; }
.event-form__consent a { color: var(--green-800); text-decoration: underline; }
.event-form__footer { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.event-form__footer [role="status"] { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.event-form__footer [role="status"].is-success { color: var(--green-800); font-weight: 850; }
.event-form__footer [role="status"].is-error { color: var(--danger); font-weight: 850; }
.event-form.is-submitting { opacity: .72; pointer-events: none; }
.events-footer .footer__inner { grid-template-columns: 1.4fr .7fr .9fr; }
.event-details-dialog { width: min(720px, calc(100% - 28px)); max-height: min(820px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 0; border-radius: 14px; background: #fffaf2; color: var(--text); box-shadow: 0 30px 90px rgba(18,9,5,.35); }
.event-details-dialog::backdrop { background: rgba(18,9,5,.65); backdrop-filter: blur(4px); }
.event-details-dialog__close { position: sticky; z-index: 2; top: 14px; float: right; width: 42px; height: 42px; margin: 14px 14px -56px 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,250,242,.95); color: var(--brown-950); box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.event-details-dialog__close svg { width: 20px; }
.event-details__image { width: 100%; max-height: 380px; object-fit: cover; background: var(--green-900); }
.event-details__body { padding: clamp(22px, 5vw, 42px); }
.event-details__body .events-eyebrow { margin-bottom: 8px; }
.event-details__body h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.event-details__lead { color: var(--red-800); font-weight: 900; }
.event-details__description { white-space: pre-line; color: #514237; line-height: 1.7; }
.event-details__facts { margin: 24px 0; display: grid; gap: 12px; }
.event-details__facts div { display: grid; grid-template-columns: 22px 105px 1fr; gap: 9px; align-items: start; }
.event-details__facts svg { width: 20px; color: var(--green-700); }
.event-details__facts strong { color: var(--brown-800); }
.event-details__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.event-details__actions a { flex: 1; }

@media (max-width: 980px) {
  .events-header__inner { grid-template-columns: 1fr auto; }
  .events-nav { display: none; }
  .events-hero__seal { display: none; }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-filters { grid-template-columns: 1fr 1fr; }
  .event-submit-section { grid-template-columns: 1fr; }
  .event-submit-intro { position: static; }
}
@media (max-width: 680px) {
  .events-topbar span:nth-child(2) { display: none; }
  .events-header__inner { min-height: 70px; }
  .events-header__cta { padding: 10px; font-size: .8rem; }
  .events-header__cta svg { display: none; }
  .events-hero { width: 100%; min-height: 440px; margin-top: 0; padding: 48px 20px; border-radius: 0; }
  .events-hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .events-hero__actions, .events-hero__actions a { width: 100%; }
  .events-section { padding: 60px 0; }
  .events-section__heading { align-items: start; flex-direction: column; }
  .events-section__heading > a { font-size: .86rem; }
  .events-filters, .events-grid, .event-form__grid { grid-template-columns: 1fr; }
  .event-form__wide { grid-column: auto; }
  .event-submit-section { width: 100%; margin-bottom: 0; padding: 55px 16px; border-radius: 0; }
  .event-form { padding: 20px 16px; }
  .event-form__footer { align-items: stretch; flex-direction: column; }
  .event-form__footer button { width: 100%; }
  .events-footer .footer__inner { grid-template-columns: 1fr; }
}
