/* Agenda Ilhabela experience layer. The Nano data model and rendered facts are untouched. */
:root {
  --duration-instant: 90ms;
  --duration-fast: 140ms;
  --duration-normal: 240ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(.2,.7,.2,1);
  --ease-enter: cubic-bezier(.16,1,.3,1);
  --ease-exit: cubic-bezier(.4,0,1,1);
  --surface-page: #fffefd;
  --surface-card: #fff;
  --surface-overlay: rgba(24,28,38,.23);
  --surface-drawer: #fffefd;
  --surface-glass: rgba(255,255,255,.84);
  --blur-sm: 2px;
  --blur-md: 14px;
  --overlay-light: rgba(255,255,255,.6);
  --overlay-dark: rgba(24,28,38,.36);
  --z-base: 0;
  --z-sticky: 20;
  --z-header: 40;
  --z-dropdown: 60;
  --z-overlay: 1000010;
  --z-drawer: 1000020;
  --z-modal: 1000030;
  --z-toast: 1000040;
  --experience-ink: #222229;
  --experience-muted: #666974;
  --experience-border: #e7e5ea;
  --experience-shadow: 0 8px 26px rgba(32,28,40,.06);
  --experience-shadow-hover: 0 20px 44px rgba(32,28,40,.12);
}
html { scroll-behavior: smooth; }
body { background: var(--surface-page); }
.page-shell--elementor { width: 100%; max-width: none; padding-inline: 0; }
.page-shell--elementor .entry-content { width: 100%; }
body:not(.home) .site-header { position: sticky; top: 0; z-index: var(--z-header); border-bottom: 1px solid rgba(231,229,234,.76); background: var(--surface-glass); backdrop-filter: blur(var(--blur-md)); }
body.admin-bar:not(.home) .site-header { top: 32px; }
.home .site-header { position: sticky; top: 0; z-index: var(--z-header); border-bottom: 1px solid rgba(231,229,234,.65); background: var(--surface-glass); backdrop-filter: blur(var(--blur-md)); }
.home.admin-bar .site-header { top: 32px; }
.site-nav a, .header-action, .text-link, .button, .event-shortcuts a { transition: color var(--duration-normal) var(--ease-standard), background-color var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard); }
.site-nav a:focus-visible, .header-action:focus-visible, .text-link:focus-visible, .button:focus-visible, .event-shortcuts a:focus-visible { outline: 3px solid #8655bf; outline-offset: 3px; }
.button:active, .header-action:active, .event-shortcuts a:active { transform: scale(.97); }
.site-header__inner { min-height: 68px; }
.header-action { background: #28262d; color: #fff; padding-inline: 18px; }
.header-action:hover { background: #4b3a5c; color: #fff; }
.home .hero { min-height: min(680px, 82svh); padding-bottom: 76px; background: radial-gradient(ellipse 50% 36% at 50% 35%, rgba(250,237,249,.68), transparent 100%), #fffefd; }
.home .hero__content { margin-top: 4px; }
.home .hero h1 { font-size: clamp(3.4rem, 6vw, 5.4rem); }
.hero__photo { transition: transform var(--duration-slow) var(--ease-enter), box-shadow var(--duration-slow) var(--ease-standard); }
@media (hover:hover) { .hero:hover .hero__photo { transform: translateY(-3px) rotate(var(--rotate,0deg)); } }
.discover-section { width: min(100% - 40px, 980px); padding-block: 76px 92px; }
.discover-section .section-heading { margin-bottom: 24px; }
.discover-section .section-heading h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -.045em; }
.event-shortcuts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.event-shortcuts a { display: inline-flex; min-height: 40px; align-items: center; border: 1px solid var(--experience-border); border-radius: 100px; background: #fff; padding: 8px 15px; color: var(--experience-ink); font-size: .86rem; font-weight: 600; }
.event-shortcuts a:hover { border-color: #b7a3cc; background: #faf6fd; box-shadow: var(--experience-shadow); }
.nmla-events-unavailable { border: 1px solid var(--experience-border); border-radius: 20px; padding: 24px; }

/* Nano list: a calm product surface with full event data and genuine links. */
.nmla-events-page { width: min(100% - 40px, 980px); padding-block: 48px 96px; }
.nmla-events-page:not(.nmla-events-remote-single) { position: relative; isolation: isolate; }
.nmla-events-page:not(.nmla-events-remote-single)::before { content: ''; position: absolute; z-index: -1; inset: -70px calc((980px - 100vw)/2) auto; height: 590px; pointer-events: none; background: radial-gradient(ellipse at 48% 0%, rgba(223,233,253,.62), rgba(244,239,255,.25) 48%, transparent 78%); }
.nmla-events-page-head { margin-bottom: 29px; }
.nmla-events-page-head h1 { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.055em; font-weight: 650; }
.nmla-events-page-head p { color: #765b9b; }
.nmla-events-page-head span { color: var(--experience-muted); }
.nmla-home-events .nmla-events, .nmla-events-page > .nmla-events { --nmla-events-accent: #675480; --nmla-events-accent-dark: #55436f; --nmla-events-text: #282631; --nmla-events-muted: #696875; --nmla-events-border: #e7e4ea; --nmla-events-card: #fff; --nmla-events-page: transparent; --nmla-events-gradient: linear-gradient(120deg,#36313e,#51455d); --nmla-events-shadow: var(--experience-shadow); padding: 0; border-radius: 0; background: transparent; font-family: var(--font-family); }
.nmla-events-page .nmla-events-controls { gap: 13px; margin-bottom: 26px; }
.nmla-events-page .nmla-events-search, .nmla-events-page .nmla-events-filter-trigger { border-radius: 16px; box-shadow: var(--experience-shadow); }
.nmla-events-page .nmla-events-quick-modes button { min-height: 38px; border-color: var(--experience-border); font-size: .75rem; font-weight: 650; }
.nmla-events-page .nmla-events-quick-modes button.is-active { box-shadow: 0 5px 16px rgba(74,56,88,.14); }
.nmla-home-events .nmla-events-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.nmla-events-page .nmla-events-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.nmla-events-page .nmla-events-parent-grid { grid-template-columns: none; grid-auto-columns: minmax(290px,38%); grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; scrollbar-width: thin; }
.nmla-events-page .nmla-events-parent-grid > * { scroll-snap-align: start; }
.nmla-events-page .nmla-events-parent-highlights { margin-bottom: 38px; }
.nmla-events-page .nmla-events-section-header { margin-bottom: 16px; }
.nmla-events-page .nmla-events-section-header h2 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.03em; }
.nmla-home-events .nmla-event-card, .nmla-events-page .nmla-event-card { display: grid; grid-template-columns: minmax(0,1fr) 148px; grid-template-areas: 'body media'; min-height: 176px; height: auto; border: 1px solid var(--experience-border); border-radius: 22px; box-shadow: var(--experience-shadow); background: #fff; transition: transform var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard); }
.nmla-home-events .nmla-event-card-media, .nmla-events-page .nmla-event-card-media { grid-area: media; width: 100%; height: auto; align-self: start; aspect-ratio: 1; padding: 10px; border-radius: 20px; background: transparent; }
.nmla-home-events .nmla-event-card-image, .nmla-events-page .nmla-event-card-image { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform var(--duration-slow) var(--ease-standard); }
.nmla-home-events .nmla-event-card-body, .nmla-events-page .nmla-event-card-body { grid-area: body; min-width: 0; padding: 18px 15px 17px 20px; gap: 7px; }
.nmla-home-events .nmla-event-title, .nmla-events-page .nmla-event-title { font-size: clamp(1.05rem,1.6vw,1.25rem); font-weight: 680; line-height: 1.22; letter-spacing: -.025em; }
.nmla-home-events .nmla-event-info-list, .nmla-events-page .nmla-event-card .nmla-event-info-list { gap: 3px; }
.nmla-home-events .nmla-event-info-icon, .nmla-events-page .nmla-event-card .nmla-event-info-icon { background: #f3f0f7; color: #6d5b84; }
.nmla-home-events .nmla-event-when, .nmla-events-page .nmla-event-card .nmla-event-when { font-size: .76rem; }
.nmla-home-events .nmla-event-price-footer, .nmla-events-page .nmla-event-card .nmla-event-price-footer { border: 0; margin: 0; padding-top: 2px; }
.nmla-home-events .nmla-event-excerpt, .nmla-events-page .nmla-event-card .nmla-event-excerpt { display: none; }
.nmla-home-events .nmla-event-card.has-media .nmla-event-main-tab, .nmla-events-page .nmla-event-card.has-media .nmla-event-main-tab, .nmla-events-page .nmla-event-card.has-media .nmla-event-parent-tab { margin: 0; box-shadow: none; }
.nmla-home-events .nmla-event-main-tab, .nmla-events-page .nmla-event-main-tab { border-color: #ded3e8; background: #f3eef7; color: #49345e; }
.nmla-home-events .nmla-event-card:active, .nmla-events-page .nmla-event-card:active { transform: scale(.985); }
@media (hover:hover) { .nmla-home-events .nmla-event-card:hover, .nmla-events-page .nmla-event-card:hover { transform: translateY(-3px); border-color: #cbbbd9; box-shadow: var(--experience-shadow-hover); } .nmla-home-events .nmla-event-card:hover .nmla-event-card-image, .nmla-events-page .nmla-event-card:hover .nmla-event-card-image { transform: scale(1.035); } }
.nmla-home-events .nmla-event-card:focus-within, .nmla-events-page .nmla-event-card:focus-within { border-color: #8a5fb2; box-shadow: 0 0 0 3px rgba(138,95,178,.18); }
.nmla-home-events .nmla-event-card a:focus-visible, .nmla-events-page .nmla-event-card a:focus-visible { outline: 3px solid #8655bf; outline-offset: 3px; }
.nmla-events-page .nmla-events-empty { background: #fff; border-color: var(--experience-border); color: var(--experience-muted); }

/* Direct event uses the same card language, with a warmer atmospheric surface. */
.nmla-events-remote-single { position: relative; isolation: isolate; width: min(100% - 40px, 1030px); }
.nmla-events-remote-single::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 650px; pointer-events: none; background: radial-gradient(ellipse 66% 58% at 50% 2%, rgba(250,231,218,.76), transparent 100%); }
.nmla-events-remote-single .nmla-event-single { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(28px,4vw,64px); overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--font-family); }
.nmla-events-remote-single .nmla-event-hero { width: 100%; max-height: none; aspect-ratio: 1/1; border-radius: 26px; object-fit: cover; box-shadow: var(--experience-shadow-hover); }
.nmla-events-remote-single .nmla-event-single-inner { width: 100%; padding: 0; }
.nmla-events-remote-single .nmla-event-single h1 { font-family: Georgia,serif; font-weight: 500; font-size: clamp(2.6rem,4.5vw,4.15rem); line-height: 1.04; letter-spacing: -.045em; }
.nmla-events-remote-single .nmla-event-lead { color: var(--experience-muted); }
.nmla-events-remote-single .nmla-event-facts { grid-template-columns: 1fr; }
.nmla-events-remote-single .nmla-event-facts > .nmla-event-info, .nmla-events-remote-single .nmla-event-links > .nmla-event-info { border-color: var(--experience-border); border-radius: 17px; box-shadow: var(--experience-shadow); }
.nmla-events-remote-single .nmla-event-info-icon { background: #f7f0ea; color: #805c4a; }
.nmla-events-remote-single .nmla-event-content { line-height: 1.7; }
.nmla-events-remote-single .nmla-event-share button, .nmla-events-remote-single .nmla-event-share a { border-radius: 100px; }

/* Progressive event dialog. The fetched article is the existing server-rendered one. */
.nmla-detail-layer[hidden] { display: none; }
.nmla-detail-layer { position: fixed; z-index: var(--z-overlay); inset: 0; }
.nmla-detail-backdrop { position: absolute; inset: 0; background: var(--surface-overlay); opacity: 0; transition: opacity var(--duration-slow) var(--ease-standard); }
.nmla-detail-dialog { display: flex; position: absolute; z-index: var(--z-drawer); top: 0; right: 0; bottom: 0; width: min(560px, 100vw); flex-direction: column; background: var(--surface-drawer); box-shadow: -20px 0 52px rgba(21,20,30,.13); transform: translateX(102%); transition: transform var(--duration-slow) var(--ease-enter); outline: none; }
.nmla-detail-layer.is-visible .nmla-detail-backdrop { opacity: 1; }
.nmla-detail-layer.is-visible .nmla-detail-dialog { transform: translateX(0); }
.nmla-detail-bar { display: flex; min-height: 60px; align-items: center; gap: 13px; padding: 8px 18px; border-bottom: 1px solid var(--experience-border); background: rgba(255,255,255,.92); }
.nmla-detail-bar h2 { flex: 1; overflow: hidden; margin: 0; color: var(--experience-ink); font-size: .86rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.nmla-detail-bar button, .nmla-detail-bar a { min-height: 42px; border: 1px solid var(--experience-border); border-radius: 100px; background: #fff; color: var(--experience-ink); transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.nmla-detail-bar button:hover, .nmla-detail-bar a:hover { background: #f5f1f8; }
.nmla-detail-bar button:active, .nmla-detail-bar a:active { transform: scale(.95); }
.nmla-detail-bar button:focus-visible, .nmla-detail-bar a:focus-visible, .nmla-detail-error button:focus-visible, .nmla-detail-error a:focus-visible { outline: 3px solid #8655bf; outline-offset: 2px; }
.nmla-detail-close { display: grid; width: 42px; place-items: center; cursor: pointer; font-size: 1.65rem; line-height: 1; }
.nmla-detail-direct { display: inline-flex; align-items: center; padding: 8px 15px; font-size: .77rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nmla-detail-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(20px,5vw,36px) 48px; }
.nmla-detail-dialog .nmla-event-single { overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-family: var(--font-family); }
.nmla-detail-dialog .nmla-event-hero { display: block; width: min(100%,360px); max-height: none; aspect-ratio: 4/3; margin-inline: auto; border-radius: 19px; object-fit: cover; }
.nmla-detail-dialog .nmla-event-single-inner { width: 100%; padding: 23px 0 0; }
.nmla-detail-dialog .nmla-event-single h1 { font-family: var(--font-family); font-size: clamp(1.7rem,3vw,2rem); font-weight: 650; line-height: 1.13; letter-spacing: -.035em; }
.nmla-detail-dialog .nmla-event-facts { grid-template-columns: 1fr; }
.nmla-detail-dialog .nmla-event-facts > .nmla-event-info { border: 0; border-bottom: 1px solid var(--experience-border); border-radius: 0; box-shadow: none; padding: 12px 0; }
.nmla-detail-dialog .nmla-event-links > .nmla-event-info { border-color: var(--experience-border); }
.nmla-detail-loading { display: grid; gap: 18px; padding-top: 16px; }
.nmla-detail-skeleton { display: block; height: 42px; border-radius: 14px; background: linear-gradient(90deg,#f3f0f4,#eae7ed,#f3f0f4); background-size: 200% 100%; animation: nmla-skeleton 1.5s ease-in-out infinite; }
.nmla-detail-skeleton:first-child { width: min(100%,360px); height: 270px; margin-inline: auto; border-radius: 19px; }
.nmla-detail-skeleton:nth-child(2) { width: 82%; height: 58px; }
@keyframes nmla-skeleton { to { background-position: -200% 0; } }
.nmla-detail-error { display: grid; justify-items: start; gap: 13px; padding: 36px 0; }
.nmla-detail-error button, .nmla-detail-error a { min-height: 42px; border: 1px solid var(--experience-border); border-radius: 100px; padding: 10px 17px; background: #fff; color: var(--experience-ink); font: inherit; cursor: pointer; }
.nmla-detail-error p { margin: 0; }

@media (max-width: 850px) {
  .nmla-events-page .nmla-events-grid, .nmla-home-events .nmla-events-grid { grid-template-columns: 1fr; }
  .nmla-events-page .nmla-events-parent-grid { grid-auto-columns: minmax(280px,70%); }
  .nmla-events-remote-single .nmla-event-single { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 25px; }
}
@media (max-width: 600px) {
  body.admin-bar:not(.home) .site-header { top: 46px; }
  .home.admin-bar .site-header { top: 46px; }
  .home .hero { min-height: 790px; padding: 76px 20px 55px; }
  .home .hero__photos { display: block; }
  .home .hero h1 { font-size: clamp(2.7rem,10.8vw,3.3rem); }
  .discover-section, .nmla-events-page { width: min(100% - 32px, 980px); }
  .discover-section { padding-block: 48px 70px; }
  .nmla-events-page { padding-block: 36px 70px; }
  .nmla-events-page-head h1 { font-size: 2.7rem; }
  .nmla-events-page .nmla-event-card, .nmla-home-events .nmla-event-card { grid-template-columns: minmax(0,1fr) 106px; min-height: 150px; border-radius: 20px; }
  .nmla-events-page .nmla-event-card-media, .nmla-home-events .nmla-event-card-media { padding: 8px; }
  .nmla-events-page .nmla-event-card-image, .nmla-home-events .nmla-event-card-image { min-height: 0; border-radius: 13px; }
  .nmla-events-page .nmla-event-card-body, .nmla-home-events .nmla-event-card-body { padding: 15px 4px 15px 15px; gap: 5px; }
  .nmla-events-page .nmla-event-title, .nmla-home-events .nmla-event-title { font-size: 1rem; }
  .nmla-events-page .nmla-event-card .nmla-event-info-organizer, .nmla-home-events .nmla-event-info-organizer { display: none; }
  .nmla-events-page .nmla-event-card .nmla-event-info-place, .nmla-home-events .nmla-event-info-place { font-size: .72rem; }
  .nmla-events-page .nmla-event-card .nmla-event-area, .nmla-home-events .nmla-event-area, .nmla-events-page .nmla-event-card .nmla-event-actions, .nmla-home-events .nmla-event-actions { display: none; }
  .nmla-events-page .nmla-event-card .nmla-event-price, .nmla-home-events .nmla-event-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nmla-events-page .nmla-events-parent-highlights { margin-bottom: 28px; }
  .nmla-events-page .nmla-events-parent-grid { grid-auto-columns: minmax(270px,88%); }
  .nmla-events-remote-single .nmla-event-single { display: block; }
  .nmla-events-remote-single .nmla-event-hero { aspect-ratio: 4/3; border-radius: 22px; }
  .nmla-events-remote-single .nmla-event-single-inner { padding-top: 22px; }
  .nmla-events-remote-single .nmla-event-single h1 { font-size: 2.65rem; }
  .nmla-detail-dialog { top: 24px; bottom: 0; width: 100%; border-radius: 26px 26px 0 0; transform: translateY(102%); }
  .nmla-detail-layer.is-visible .nmla-detail-dialog { transform: translateY(0); }
  .nmla-detail-bar { border-radius: 26px 26px 0 0; padding: 12px 15px; }
  .nmla-detail-bar h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .nmla-detail-bar .nmla-detail-direct { margin-left: auto; }
  .nmla-detail-direct { font-size: 0; width: 42px; justify-content: center; padding: 0; }
  .nmla-detail-direct span { font-size: 1.1rem; }
  .nmla-detail-scroll { padding: 18px 20px calc(42px + env(safe-area-inset-bottom)); }
  .nmla-detail-dialog .nmla-event-hero { width: min(100%,304px); aspect-ratio: 4/3; }
  .nmla-detail-skeleton:first-child { width: min(100%,304px); height: 228px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nmla-detail-backdrop, .nmla-detail-dialog, .nmla-detail-skeleton, .nmla-event-card, .nmla-event-card-image, .hero__photo { animation: none; transition-duration: .01ms; }
}
