/* ==========================================================================
   Agenda Cultural Municipal de Maputo — sistema de design do site público
   --------------------------------------------------------------------------
   1. Tokens          6. Hero            11. Loja                16. Páginas interiores
   2. Base            7. Secções         12. Participar/Newsletter 17. Formulários
   3. Utilitários     8. Agenda          13. Rodapé              18. Autenticação / Legal
   4. Topbar/Header   9. Bento/Destaques 14. Pesquisa            19. Responsivo (interiores)
   5. Mega menu      10. Locais/Notícias 15. Responsivo
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Cores do brasão municipal, afinadas para contraste AA */
  --green: #2e7d18;
  --green-700: #22600f;
  --green-900: #163f0a;
  --green-50: #ebf5e5;
  --red: #bd090c;
  --red-50: #fcebeb;
  --yellow: #f6c90e;
  --yellow-50: #fef7d9;

  --ink: #14221a;
  --ink-2: #3c4842;
  --muted: #66706a;
  --line: #e8e2d6;
  --line-2: #d8d0bf;
  --paper: #fbf8f2;
  --sand: #f3ede1;
  --surface: #ffffff;
  --night: #0f1a13;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(20, 34, 26, .05), 0 4px 14px rgba(20, 34, 26, .05);
  --shadow-2: 0 18px 40px -16px rgba(20, 34, 26, .28);
  --shadow-mega: 0 40px 70px -30px rgba(20, 34, 26, .35);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 20 10 2l10 18L30 2l10 18' fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E");
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.section--ink :focus-visible, .hero :focus-visible, .join :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

/* 3. Utilitários ---------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 46%, var(--yellow) 46% 62%, var(--red) 62% 100%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn i { font-size: .9em; }
.btn--sm { height: 40px; padding: 0 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-700); }
.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--accent:hover { background: #ffd83d; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--yellow-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { font-size: .85em; }
.chip__count { font-size: .75rem; opacity: .6; font-variant-numeric: tabular-nums; }
.chip__count:empty { display: none; }
.chip--static { height: 30px; padding: 0 12px; font-size: .8rem; background: var(--paper); border-color: var(--line); cursor: default; }
.chip--static:hover { border-color: var(--line); color: var(--ink-2); }

.tag {
  display: inline-flex; align-self: flex-start; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--green-50); color: var(--green-700);
}
.tag--dance { background: var(--red-50); color: #9b0709; }
.tag--theatre { background: #efeafb; color: #52389a; }
.tag--art { background: var(--yellow-50); color: #7a5500; }
.tag--festival { background: #fdebdf; color: #a3400a; }
.tag--workshop { background: #e2f0f5; color: #1c6179; }

.datebadge {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 6px 8px 7px; border-radius: 12px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-1);
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; line-height: 1.1;
}
.datebadge b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0; }
.datebadge--lg { min-width: 66px; top: 18px; left: 18px; font-size: .74rem; }
.datebadge--lg b { font-size: 1.9rem; }

/* 4. Topbar + Header ------------------------------------------------------ */
.topbar { background: var(--night); color: rgba(255, 255, 255, .72); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__org { display: flex; align-items: center; gap: 8px; }
.topbar__org i { color: var(--yellow); }
.topbar__org strong { color: #fff; font-weight: 700; }
.topbar__links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.lang__btn { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.lang__btn.is-active { background: #fff; color: var(--ink); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 34, 26, .35); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 54px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.brand__text small { margin-top: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .6); }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; justify-content: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--sand); }
.nav__link[aria-expanded="true"] { background: var(--green-50); color: var(--green-700); }
.nav__caret { font-size: .62rem; opacity: .6; transition: transform .25s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); opacity: 1; }
.nav__drawer-head, .nav__drawer-foot { display: none; }
@media (min-width: 1181px) {
  /* Os itens ocupam toda a altura do cabeçalho: o rato não "cai" entre o botão e o painel */
  .nav { align-self: stretch; }
  .nav__list { height: 100%; }
  .nav__item { display: flex; align-items: center; }
}

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 8px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  font-size: .88rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.search-trigger:hover { border-color: var(--ink); color: var(--ink); }
kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px; border: 1px solid var(--line-2); background: #fff;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700; color: var(--muted);
}
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); font-size: 1.05rem; }
.icon-btn:hover { border-color: var(--ink); }

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 26, 19, .38);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.scrim.is-visible { opacity: 1; pointer-events: auto; }

/* 5. Mega menu ------------------------------------------------------------ */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-mega);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.mega__inner {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 24px 40px; padding-block: 28px;
}
.mega__inner--wide { grid-template-columns: 260px minmax(0, 1fr); }

.mega__intro {
  align-self: start; position: relative; overflow: hidden;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--sand);
}
.mega__intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green) 0 46%, var(--yellow) 46% 62%, var(--red) 62% 100%);
}
.mega__title { margin: 10px 0 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.mega__lead { margin-bottom: 18px; font-size: .9rem; color: var(--ink-2); }
.mega__label { margin-bottom: 12px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Ligações com ícone, título e descrição */
.mlinks--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.mlink { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 12px; transition: background-color .2s; }
.mlink:hover { background: var(--paper); }
.mlink__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--green-50); color: var(--green);
  transition: background-color .2s, color .2s;
}
.mlink:hover .mlink__icon { background: var(--green); color: #fff; }
.mlink__title { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mlink__desc { display: block; margin-top: 2px; font-size: .83rem; line-height: 1.4; color: var(--muted); }

/* Cartões com imagem */
.mcards--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.mcards--5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mcard { display: flex; flex-direction: column; }
.mcard__media {
  display: block; aspect-ratio: 16 / 10; margin-bottom: 12px;
  border-radius: 12px; overflow: hidden; background: var(--sand);
}
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.06); }
.mcard__media--pattern {
  display: grid; place-items: center; color: #fff; font-size: 2rem;
  background: var(--zigzag), linear-gradient(135deg, var(--green) 0%, var(--green-900) 100%);
}
.mcard__kicker { margin-bottom: 4px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.mcard__title { font-weight: 700; font-size: .98rem; line-height: 1.3; transition: color .2s; }
.mcard:hover .mcard__title { color: var(--green); }
.mcard__desc { margin-top: 3px; font-size: .83rem; line-height: 1.4; color: var(--muted); }
.mcard--lg .mcard__media { aspect-ratio: 16 / 9; }
.mcard--lg .mcard__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* Listas com miniatura */
.mlist { display: flex; flex-direction: column; gap: 4px; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; transition: background-color .2s; }
.mrow:hover { background: var(--paper); }
.mrow img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: var(--sand); }
.mrow__kicker { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.mrow__title { display: block; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.mrow__desc { display: block; font-size: .82rem; color: var(--muted); }
.mnews { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }

/* Evento em destaque */
.mfeature { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px 6px; border-radius: 14px; transition: background-color .2s; }
.mfeature:hover { background: var(--paper); }
.mfeature__media { position: relative; flex: none; width: 104px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.mfeature__media img { width: 100%; height: 100%; object-fit: cover; }
.mfeature__media .datebadge { top: 6px; left: 6px; min-width: 40px; padding: 4px 6px; font-size: .56rem; border-radius: 9px; }
.mfeature__media .datebadge b { font-size: 1rem; }
.mfeature__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mfeature__title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mfeature__meta { font-size: .8rem; color: var(--muted); }
.mfeature__meta i { color: var(--green); margin-right: 4px; }

/* Biografia em destaque */
.mspot { display: flex; flex-direction: column; }
.mspot__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--sand); }
.mspot__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.mspot:hover .mspot__media img { transform: scale(1.04); }
.mspot__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.mspot__meta { margin-top: 2px; font-size: .82rem; font-weight: 600; color: var(--red); }
.mspot__desc { margin-top: 8px; font-size: .86rem; color: var(--ink-2); }
.mspot__cta { margin-top: 12px; font-weight: 700; font-size: .88rem; color: var(--green); }

/* Promo de formação */
.mpromo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  height: 100%; padding: 24px; border-radius: var(--radius-lg);
  background: var(--zigzag), linear-gradient(160deg, var(--green) 0%, var(--green-900) 100%);
  color: #fff;
}
.mpromo__badge { padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mpromo__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.mpromo__desc { font-size: .88rem; color: rgba(255, 255, 255, .82); margin-bottom: 6px; }

.mnewsletter { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: var(--radius); background: var(--sand); font-size: .85rem; transition: background-color .2s; }
.mnewsletter:hover { background: var(--yellow-50); }
.mnewsletter i { font-size: 1.3rem; color: var(--green); margin-top: 2px; }
.mnewsletter strong { display: block; font-size: .92rem; }
.mnewsletter span span { color: var(--muted); }

.mcontact { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--sand); }
.mcontact img { width: 96px; }
.mcontact ul { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.mcontact i { width: 18px; color: var(--green); }
.mcontact a:hover { color: var(--green); }

.mega__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .9rem;
}
.mega__foot-label { font-weight: 700; color: var(--muted); }
.mega__foot-label i { color: var(--red); margin-right: 4px; }
.mega__foot-link:hover { color: var(--green); }
.mega__foot-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.mega__foot-cta:hover i { transform: translateX(3px); }
.mega__foot-cta i { transition: transform .2s; }
.chip--link { height: 34px; font-size: .84rem; }

/* 6. Hero ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 10, .9) 0%, rgba(8, 14, 10, .6) 42%, rgba(8, 14, 10, .05) 75%),
    linear-gradient(0deg, rgba(8, 14, 10, .85) 0%, rgba(8, 14, 10, 0) 45%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 32px;
  min-height: min(84vh, 760px); padding-block: clamp(96px, 14vh, 150px) 48px;
}
.hero__copy { max-width: 660px; }
.hero__title {
  margin: 18px 0 18px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: -.025em;
}
.hero__title em { display: block; font-style: italic; font-weight: 400; color: var(--yellow); }
.hero__lead { max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .84); }

.hero__credit {
  grid-column: 2; grid-row: 1; align-self: end;
  display: flex; flex-direction: column; gap: 2px; max-width: 290px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .84rem; transition: background-color .2s;
}
.hero__credit:hover { background: rgba(255, 255, 255, .18); }
.hero__credit-label { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.hero__credit-title { font-weight: 700; }
.hero__credit-date { color: rgba(255, 255, 255, .75); }
.hero__credit-date i { margin-left: 4px; font-size: .8em; }

.finder {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  max-width: 1000px; padding: 8px; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.finder__field { position: relative; padding: 10px 18px; border-radius: 14px; transition: background-color .2s; }
.finder__field + .finder__field::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.finder__field:focus-within { background: var(--paper); }
.finder__field label { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder__control { display: flex; align-items: center; gap: 10px; }
.finder__control i { color: var(--green); font-size: .9rem; }
.finder__control input, .finder__control select {
  width: 100%; min-width: 0; padding: 2px 0; border: 0; outline: 0; background: transparent;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.finder__control input::placeholder { color: #9aa29d; font-weight: 500; }
.finder__control select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2366706a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right center no-repeat;
}
.finder__submit { height: auto; min-height: 56px; border-radius: 14px; padding: 0 26px; }

/* 7. Secções -------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--night); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.section__title {
  margin-top: 10px; max-width: 30ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em;
}
#agenda { scroll-margin-top: calc(var(--header-h) + 8px); }

/* 8. Agenda --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; }
.filters__right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filters__status { margin-bottom: 22px; font-size: .88rem; color: var(--muted); }
.filters__status strong { color: var(--ink); }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand); }
.segmented__btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green); outline-offset: 3px; }

.events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.event--feature { grid-column: span 2; grid-row: span 2; }
.events.is-filtered .event--feature { grid-column: auto; grid-row: auto; }

.event__link {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.event__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.event__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event__link:hover .event__media img { transform: scale(1.05); }
.event__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 16px; }
.event__title { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: 1.22; letter-spacing: -.005em; }
.event__desc { font-size: .93rem; color: var(--ink-2); }
.event__meta { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.event__meta i { width: 16px; color: var(--green); }
.event__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.price { font-weight: 800; font-size: .95rem; }
.price--free { color: var(--green); }
.event__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 999px;
  background: var(--paper); font-size: .85rem; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.event__link:hover .event__cta { background: var(--green); color: #fff; }

.event--feature .event__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
/* A imagem preenche o espaço disponível sem ditar a altura das linhas da grelha */
.event--feature .event__media img { position: absolute; inset: 0; object-position: center 30%; }
.event--feature .event__body { flex: none; padding: 24px; }
.event--feature .event__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.event--feature .event__meta { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.events.is-filtered .event--feature .event__desc { display: none; }
.events.is-filtered .event--feature .event__media { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
.events.is-filtered .event--feature .event__title { font-size: 1.16rem; }
.events.is-filtered .event--feature .event__body { flex: 1; padding: 18px 18px 16px; }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
  text-align: center; color: var(--ink-2);
}
.empty i { font-size: 2rem; color: var(--muted); }

/* 9. Bento + Destaques ---------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 20px; }
.tile { position: relative; isolation: isolate; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--ink); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 10, .85) 0%, rgba(8, 14, 10, .1) 60%); }
.tile:hover img { transform: scale(1.06); }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.tile__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.tile__kicker i { margin-right: 4px; }
.tile__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.tile--xl .tile__body { padding: 32px; }
.tile--xl .tile__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 18ch; }
.tile__desc { max-width: 46ch; font-size: .95rem; color: rgba(255, 255, 255, .82); }

.spotlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.spotlight {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.spotlight__media { min-height: 100%; background: var(--sand); }
.spotlight__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: top; }
.spotlight__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 32px); }
.spotlight__label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spotlight--warm .spotlight__label { background: var(--red-50); color: #9b0709; }
.spotlight__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
.spotlight__meta { margin-top: -6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.spotlight__text { color: var(--ink-2); font-size: .96rem; }
.spotlight .link-arrow { margin-top: auto; padding-top: 4px; }
.spotlight--warm .link-arrow { color: var(--red); }

/* 10. Locais + Notícias --------------------------------------------------- */
.carousel-nav { display: flex; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  transition: background-color .2s, color .2s, opacity .2s;
}
.round-btn:hover:not(:disabled) { background: #fff; color: var(--ink); }
.round-btn:disabled { opacity: .3; cursor: default; }

.places {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 3.4);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.places:focus-visible { outline-offset: 6px; }
.place { position: relative; isolation: isolate; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start; background: #1d2a22; }
.place img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.place::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 10, .9) 0%, rgba(8, 14, 10, 0) 55%); }
.place:hover img { transform: scale(1.06); }
.place__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.place__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.place__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.place__addr { font-size: .84rem; color: rgba(255, 255, 255, .75); }

.news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.news__lead { display: flex; flex-direction: column; gap: 10px; }
.news__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; background: var(--sand); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news__lead:hover .news__media img { transform: scale(1.04); }
.news__kicker { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.news__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; transition: color .2s; }
.news__lead:hover .news__title { color: var(--green); }
.news__excerpt { color: var(--ink-2); }
.news__list { display: flex; flex-direction: column; }
.news__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news__list li:first-child .news__item { padding-top: 0; }
.news__item img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: var(--sand); }
.news__item-title { display: block; margin-top: 4px; font-weight: 700; font-size: 1.02rem; line-height: 1.35; transition: color .2s; }
.news__item:hover .news__item-title { color: var(--green); }

/* 11. Loja ---------------------------------------------------------------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.tabs__btn { height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background-color .2s, color .2s; }
.tabs__btn.is-active { background: var(--ink); color: #fff; }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; gap: 2px; }
.product__media { display: block; aspect-ratio: 1; margin-bottom: 12px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product--book .product__media { position: relative; background: linear-gradient(160deg, #fff 0%, var(--paper) 100%); }
.product--book .product__media img {
  position: absolute; top: 50%; left: 50%;
  width: auto; height: auto; max-width: calc(100% - 48px); max-height: calc(100% - 48px);
  border-radius: 3px; box-shadow: 0 16px 30px -12px rgba(20, 34, 26, .45);
  transform: translate(-50%, -50%);
}
.product--book:hover .product__media img { transform: translate(-50%, -52%); }
.product__title { font-weight: 700; line-height: 1.3; transition: color .2s; }
.product:hover .product__title { color: var(--green); }
.product__by { font-size: .88rem; color: var(--muted); }
.product__price { margin-top: 4px; font-weight: 800; color: var(--green); }

/* 12. Participar + Newsletter --------------------------------------------- */
.join {
  position: relative; color: #fff;
  background: var(--zigzag), radial-gradient(120% 140% at 0% 0%, var(--green) 0%, var(--green-900) 70%);
}
.join__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.join__title { margin: 14px 0 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; }
.join__lead { max-width: 50ch; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.join__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.step__n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.step strong { display: block; font-size: 1.02rem; }
.step span span { display: block; margin-top: 2px; font-size: .92rem; color: rgba(255, 255, 255, .78); }

.newsletter { background: var(--paper); border-bottom: 1px solid var(--line); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding-block: 56px; }
.newsletter__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.newsletter__lead { margin-top: 6px; color: var(--muted); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.newsletter__form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.newsletter__form .btn { height: 52px; }
.newsletter__msg { flex-basis: 100%; min-height: 1.4em; padding-left: 22px; font-size: .88rem; font-weight: 600; }
.newsletter__msg.is-ok { color: var(--green); }
.newsletter__msg.is-error { color: var(--red); }

/* 13. Rodapé -------------------------------------------------------------- */
.footer { background: var(--night); color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 64px 44px; }
.footer__brand p { margin: 18px 0 20px; max-width: 38ch; }
.footer h3 { margin-bottom: 14px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__col a { display: block; padding: 5px 0; transition: color .2s; }
.footer__col p { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; }
.footer__col p a { display: inline; padding: 0; }
.footer__col i { color: var(--yellow); width: 16px; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer__legal { display: flex; gap: 20px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); }

/* 14. Pesquisa ------------------------------------------------------------ */
.search {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 10vh 16px 16px;
  background: rgba(15, 26, 19, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.search.is-open { opacity: 1; }
.search__panel {
  display: flex; flex-direction: column; width: min(720px, 100%); max-height: 76vh;
  border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
  transform: translateY(-10px) scale(.98); transition: transform .25s var(--ease);
}
.search.is-open .search__panel { transform: none; }
.search__form { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--line); }
.search__form > i { color: var(--green); }
.search__form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.12rem; font-weight: 500; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__body { overflow-y: auto; padding: 18px 20px 22px; }
.search__results { display: flex; flex-direction: column; gap: 2px; }
.search__results:not(:empty) { margin-top: 4px; }
.sr { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.sr:hover, .sr:focus-visible { background: var(--paper); outline: none; }
.sr__thumb { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--green-50); color: var(--green); }
.sr__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr__title { display: block; font-weight: 700; line-height: 1.3; }
.sr__title mark { background: var(--yellow-50); color: inherit; border-radius: 3px; }
.sr__type { display: block; font-size: .8rem; color: var(--muted); }
.sr__empty { padding: 20px 10px; color: var(--muted); }

/* Animação de entrada */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* 15. Responsivo ---------------------------------------------------------- */
@media (max-width: 1320px) {
  .mega__inner { grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 24px 28px; }
  .mega__inner--wide { grid-template-columns: 230px minmax(0, 1fr); }
  .nav__link { padding: 0 11px; }
  .search-trigger__text, .search-trigger kbd { display: none; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
}

/* Menu em gaveta (tablet e móvel) */
@media (max-width: 1180px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; flex-direction: column;
    width: min(420px, 100%); background: var(--surface);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .35);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav__drawer-head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 14px 24px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav__drawer-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
  .nav__drawer-foot { display: grid; gap: 10px; margin-top: auto; padding: 20px 24px 28px; border-top: 1px solid var(--line); }

  .nav__list { flex-direction: column; gap: 0; padding: 8px 12px; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link { width: 100%; height: 58px; justify-content: space-between; padding: 0 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav__link[aria-expanded="true"] { background: transparent; color: var(--green); }

  .mega {
    position: static; display: none; max-height: none; overflow: visible;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__item.is-open .mega { display: block; }
  .mega .container { padding: 0; }
  .mega__inner, .mega__inner--wide { display: flex; flex-direction: column; gap: 4px; padding: 0 0 14px; }
  .mega__aside, .mega__label, .mega__foot-label, .mega__foot-link { display: none; }
  .mega__intro { order: 2; padding: 8px 12px 0; background: none; border-radius: 0; }
  .mega__intro::after, .mega__intro > :not(.btn) { display: none; }

  .mlinks--2, .mcards--3, .mcards--5, .mnews { display: flex; flex-direction: column; gap: 2px; }
  .mlink { padding: 10px 12px; }
  .mlink__icon { width: 36px; height: 36px; }
  .mcard {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px;
    padding: 8px 12px; border-radius: 12px;
  }
  .mcard:hover { background: var(--paper); }
  .mcard__media { grid-row: span 2; width: 56px; height: 56px; aspect-ratio: 1; margin: 0; border-radius: 10px; font-size: 1.2rem; }
  .mcard--lg .mcard__media { aspect-ratio: 1; }
  .mcard--lg .mcard__title { font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
  .mcard__title { align-self: end; font-size: .95rem; }
  .mcard__desc, .mcard__kicker { align-self: start; margin: 0; }
  .mcard__kicker { align-self: end; }
  .mlist .mrow { padding: 8px 12px; }
  .mrow img { width: 56px; height: 56px; }
  .mega__foot { padding: 10px 12px 0; border-top: 0; }
  .mega__foot-cta { margin-left: 0; }
}

@media (max-width: 1024px) {
  .events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .tile--xl { grid-column: 1 / -1; }
  .spotlights { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .places { grid-auto-columns: calc((100% - 40px) / 2.4); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar__links a:not(:last-of-type) { display: none; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 88px; }
  .hero__credit { display: none; }
  .finder { grid-template-columns: 1fr 1fr; padding: 10px; gap: 4px; }
  .finder__field--grow { grid-column: 1 / -1; }
  .finder__field + .finder__field::before { display: none; }
  .finder__field { background: var(--paper); }
  .finder__submit { grid-column: 1 / -1; min-height: 52px; }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .event--feature { grid-column: 1 / -1; grid-row: auto; }
  .event--feature .event__media { aspect-ratio: 1; min-height: 0; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .join__inner, .newsletter__inner { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .filters__right { justify-content: space-between; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .topbar__org span { display: none; }
  .brand__logo { width: 44px; height: 38px; }
  .brand__text strong { font-size: 1.05rem; }
  .header__cta { display: none; }
  .header__inner { gap: 12px; }
  .header__actions { margin-left: auto; }
  .finder { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media img { min-height: 0; aspect-ratio: 16 / 11; }
  .places { grid-auto-columns: 78%; }
  .carousel-nav { display: none; }
  .news__item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .section__head { margin-bottom: 24px; }
}

/* 16. Páginas interiores -------------------------------------------------- */

/* Item de menu da secção actual */
.nav__link { position: relative; }
.nav__link.is-current { color: var(--green-700); }
@media (min-width: 1181px) {
  .nav__link.is-current::after {
    content: ""; position: absolute; left: 50%; bottom: 3px;
    width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red);
  }
}
a.lang__btn { display: inline-block; }

/* Cabeçalho de página */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--zigzag), radial-gradient(130% 160% at 100% 0%, #21402a 0%, var(--night) 62%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--green) 0 46%, var(--yellow) 46% 62%, var(--red) 62% 100%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 10, .88) 0%, rgba(8, 14, 10, .55) 55%, rgba(8, 14, 10, .25) 100%),
    linear-gradient(0deg, rgba(8, 14, 10, .8) 0%, rgba(8, 14, 10, 0) 55%);
}
.page-hero__inner { display: grid; gap: 14px; max-width: 880px; padding-block: clamp(40px, 6vw, 76px) clamp(40px, 5vw, 60px); }
.page-hero--image .page-hero__inner { padding-top: clamp(80px, 12vw, 160px); }
.page-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -.022em; }
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--yellow); }
.page-hero__lead { max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, .84); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; font-size: .94rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.page-hero__meta i { margin-right: 6px; color: var(--yellow); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-hero .tag { background: rgba(255, 255, 255, .14); color: #fff; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .84rem; color: rgba(255, 255, 255, .68); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }

.section--tight { padding-block: clamp(36px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.section--flush-top { padding-top: 0; }
.block-title { margin-bottom: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.block-head .block-title { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink); }

/* Barra de filtros */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-bottom: 18px; padding: 12px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.toolbar .input, .toolbar .select { height: 44px; }
.toolbar .input-icon { flex: 1 1 240px; }
.toolbar .select { flex: 0 1 220px; }
.result-count { margin-bottom: 22px; font-size: .9rem; color: var(--muted); }
.result-count strong { color: var(--ink); }

/* Grelhas de cartões */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cartão genérico (livros, locais, restaurantes, módulos…) */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__media img, .card--hover:hover .card__media img { transform: scale(1.05); }
.card__media--wide { aspect-ratio: 16 / 10; }
.card__media--square { aspect-ratio: 1; }
.card__media--portrait { aspect-ratio: 4 / 5; }
.card__media--portrait img { object-position: top; }
.card__media--book { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #fff 0%, var(--paper) 100%); }
.card__media--book img {
  position: absolute; top: 50%; left: 50%;
  width: auto; height: auto; max-width: calc(100% - 56px); max-height: calc(100% - 48px);
  border-radius: 3px; box-shadow: 0 16px 30px -12px rgba(20, 34, 26, .45);
  transform: translate(-50%, -50%);
}
a.card:hover .card__media--book img { transform: translate(-50%, -52%); }
.card__badge {
  position: absolute; top: 12px; right: 12px;
  padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
.card__badge--free { background: var(--green); }
.card__badge--accent { background: var(--yellow); color: var(--ink); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 16px; }
.card__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.card__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.22; letter-spacing: -.005em; }
.card__sub { margin-top: -4px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; color: var(--ink-2); }
.card__meta { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.card__meta i { width: 16px; color: var(--green); }
.card__meta--row { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.card__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 999px;
  background: var(--paper); font-size: .85rem; font-weight: 700; transition: background-color .2s, color .2s;
}
a.card:hover .card__cta { background: var(--green); color: #fff; }

/* Cartão horizontal (listas de notícias, resultados de pesquisa) */
.row-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
a.row-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.row-card__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sand); }
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__body { display: flex; flex-direction: column; gap: 6px; padding-right: 8px; }
.row-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
a.row-card:hover .row-card__title { color: var(--green); }
.stack-list { display: flex; flex-direction: column; gap: 16px; }

/* Paginação */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: .92rem; font-weight: 700;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }
.pagination .pagination__gap { border: 0; background: none; min-width: 24px; padding: 0; }

/* Layout de detalhe */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail__main { min-width: 0; }
.detail__main > * + * { margin-top: 40px; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.detail__figure { position: relative; border-radius: 22px; overflow: hidden; background: var(--sand); }
.detail__figure img { width: 100%; max-height: 580px; object-fit: cover; }
.detail__figure .datebadge { top: 18px; left: 18px; }
.detail__figure--natural { background: var(--night); }
.detail__figure--natural img { width: 100%; height: auto; max-height: 760px; object-fit: contain; }
.detail__figure figcaption { padding: 10px 4px 0; font-size: .85rem; color: var(--muted); background: var(--paper); }
.detail__figure--contain { background: linear-gradient(160deg, #fff 0%, var(--sand) 100%); padding: clamp(24px, 4vw, 48px); }
.detail__figure--contain img { width: auto; max-width: 100%; max-height: 520px; margin-inline: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 40px -18px rgba(20, 34, 26, .5); }

.info-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.info-card__title { margin-bottom: 18px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.info-card > .btn + .btn, .info-card__actions .btn + .btn { margin-top: 10px; }
.info-card__actions { display: flex; flex-direction: column; margin-top: 20px; }
.info-card--accent { position: relative; overflow: hidden; border: 0; color: #fff; background: var(--zigzag), linear-gradient(160deg, var(--green) 0%, var(--green-900) 100%); }
.info-card--accent .info-list__label { color: rgba(255, 255, 255, .7); }
.info-card--accent p { color: rgba(255, 255, 255, .85); }
.info-card--sand { background: var(--sand); border-color: transparent; }

.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.info-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--green-50); color: var(--green); }
.info-list__label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-list__value { display: block; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.info-list__value a { color: var(--green); }
.price-tag { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.price-tag small { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fact i { color: var(--green); }
.fact__label { display: block; margin-top: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact__value { display: block; font-weight: 700; }

.amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .86rem; font-weight: 700; }
.amenity--off { background: var(--paper); color: var(--muted); text-decoration: line-through; }

/* Conteúdo rico (texto vindo do editor) */
.prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.2; margin-top: 1.6em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.prose h4 { font-size: 1.08rem; font-weight: 800; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green); }
.prose img { height: auto; border-radius: 14px; margin-block: 1.4em; }
.prose blockquote { padding: 6px 0 6px 20px; border-left: 4px solid var(--yellow); font-family: var(--font-display); font-style: italic; font-size: 1.22rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--sand); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* Listas de ícones, estatísticas, destaques */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--green-50); color: var(--green); font-size: 1.3rem; }
.feature:nth-child(3n+2) .feature__icon { background: var(--yellow-50); color: #8a6200; }
.feature:nth-child(3n) .feature__icon { background: var(--red-50); color: var(--red); }
.feature__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.feature__text { color: var(--ink-2); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.stat__n { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1; color: var(--green); }
.stat__l { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.section--ink .stat, .join .stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.section--ink .stat__n, .join .stat__n { color: var(--yellow); }
.section--ink .stat__l, .join .stat__l { color: rgba(255, 255, 255, .75); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media { border-radius: 24px; overflow: hidden; background: var(--sand); }
.split__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
.timeline__time { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.timeline__title { font-weight: 700; }

.profile { display: flex; align-items: center; gap: 16px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sand); }
.avatar--lg { width: 96px; height: 96px; }
.profile__name { font-weight: 800; line-height: 1.3; }
.profile__role { font-size: .88rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery a, .gallery figure { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }

.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--placeholder { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface);
  transition: background-color .2s, color .2s, border-color .2s;
}
.share a:hover, .share button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 26px; color: #fff;
  background: var(--zigzag), radial-gradient(120% 140% at 0% 0%, var(--green) 0%, var(--green-900) 70%);
}
.cta-band__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; }
.cta-band__text { margin-top: 10px; max-width: 58ch; color: rgba(255, 255, 255, .85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); border: 1px solid; font-size: .95rem; }
.notice i { margin-top: 3px; }
.notice--info { background: var(--yellow-50); border-color: #eedc8f; color: #5c4700; }
.notice--success { background: var(--green-50); border-color: #bfdcb0; color: var(--green-900); }
.notice--error { background: var(--red-50); border-color: #f0bcbd; color: #7a0507; }

/* 17. Formulários --------------------------------------------------------- */
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink);
  font-size: .95rem; font-weight: 500; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9aa29d; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.input[aria-invalid="true"], .is-invalid { border-color: var(--red) !important; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2366706a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.input-icon { position: relative; display: block; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: .9rem; pointer-events: none; }
.input-icon > .input { padding-left: 42px; }
input[type="file"].input { height: auto; padding: 10px 12px; }

.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field__label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field__hint { font-size: .8rem; color: var(--muted); }
.field__error { font-size: .8rem; font-weight: 600; color: var(--red); }
.required { color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.check a { color: var(--green); text-decoration: underline; }
.form-card { padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.form-card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.15; }
.form-card__lead { margin-top: 6px; color: var(--muted); }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; font-size: 1.02rem; }
.form-section__title i { color: var(--green); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__box { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.choice__box i { font-size: 1.25rem; color: var(--green); }
.choice__title { font-weight: 800; }
.choice__desc { font-size: .82rem; color: var(--muted); }
.choice input:checked + .choice__box { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 3px var(--green-50); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--green); outline-offset: 2px; }
.password-field { position: relative; }
.password-field .input { padding-right: 48px; }
.password-field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; color: var(--muted); }
.password-field__toggle:hover { color: var(--ink); background: var(--paper); }
.divider { display: flex; align-items: center; gap: 12px; margin-block: 8px; font-size: .82rem; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 18. Autenticação + páginas legais --------------------------------------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: calc(100vh - var(--header-h) - 45px); background: var(--paper); }
.auth__visual { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; padding: clamp(28px, 5vw, 56px); color: #fff; background: var(--night); }
.auth__visual > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 10, .92) 0%, rgba(8, 14, 10, .35) 60%, rgba(8, 14, 10, .15) 100%); }
.auth__quote { max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.12; }
.auth__quote em { font-style: italic; font-weight: 400; color: var(--yellow); }
.auth__caption { margin-top: 14px; color: rgba(255, 255, 255, .8); max-width: 44ch; }
.auth__panel { display: flex; justify-content: center; align-items: flex-start; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.auth__box { width: min(560px, 100%); }
.auth__box--narrow { width: min(440px, 100%); }
.auth__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.auth__lead { margin: 8px 0 26px; color: var(--muted); }
.auth__switch { margin-top: 22px; text-align: center; font-size: .92rem; color: var(--muted); }
.auth__switch a { font-weight: 700; color: var(--green); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.toc__title { margin-bottom: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 7px 14px; border-left: 2px solid var(--line); font-size: .9rem; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--green); border-left-color: var(--green); }
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.updated { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 600; }

/* 19. Responsivo (interiores) -------------------------------------------- */
@media (max-width: 1100px) {
  .detail { grid-template-columns: minmax(0, 1fr) 320px; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .detail, .legal, .split, .auth { grid-template-columns: 1fr; }
  .detail__aside, .toc { position: static; }
  .toc { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth__visual { min-height: 240px; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .toolbar .select, .toolbar .input-icon { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .grid, .grid--2, .grid--4, .features, .form-grid { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 1fr; padding: 0 0 16px; overflow: hidden; }
  .row-card__media { border-radius: 0; }
  .row-card__body { padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .breadcrumb [aria-current] { max-width: 24ch; }
  .auth__visual { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 20. Afinações por página ---------------------------------------------- */

/* Grupo A — Livros e Artesanato (livros.php, livro-detalhes.php, artesanato.php, artesanato-detalhes.php) */

/* Espaçamentos pontuais */
.grpA-chips { margin-bottom: 18px; }
.grpA-gap { margin-top: 14px; }

/* Preço na caixa lateral (.info-card) */
.grpA-price { margin-bottom: 18px; }
.grpA-price s { font-weight: 600; }
.grpA-off { margin-left: 4px; vertical-align: middle; font-family: var(--font-body); }

/* Preço original riscado no rodapé dos cartões */
.grpA-was { margin-left: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* Grelha de capas: no telemóvel mantém duas colunas (as capas inteiras cabem bem) */
@media (max-width: 640px) {
  .grpA-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grpA-books .card__media--book img { max-width: calc(100% - 28px); max-height: calc(100% - 28px); }
  .grpA-books .card__body { gap: 6px; padding: 12px; }
  .grpA-books .card__kicker { font-size: .62rem; }
  .grpA-books .card__title { font-size: 1rem; }
  .grpA-books .card__sub { font-size: .8rem; }
  .grpA-books .card__text { display: none; }
  .grpA-books .card__foot { padding-top: 10px; }
  .grpA-books .price { font-size: .86rem; }
  .grpA-books .card__cta { min-width: 30px; height: 30px; padding: 0 8px; }
}

/* Grupo B — biografias e notícias (complementos ao main.css) */

/* Imagem principal do detalhe: anula as margens por omissão do <figure> */
.grpb-figure { margin: 0; }

/* Fotografia da personalidade: enquadra pela parte de cima (rostos) quando a imagem é cortada */
.grpb-portrait img { object-position: center 25%; }

/* Chips de categoria por cima da barra de filtros */
.grpb-chips { margin-bottom: 18px; }

/* Bloco "Mais notícias" a seguir ao destaque da listagem */
.grpb-more { margin-top: clamp(40px, 6vw, 64px); }

/* Autor da notícia dentro da caixa lateral */
.grpb-author { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Grupo C — locais culturais e turísticos */
.grpc-chips { margin-bottom: 18px; }
.grpc-bio { margin-top: 14px; }
.grpc-address { margin-bottom: 14px; }
.grpc-address i { margin-right: 4px; color: var(--green); }
.grpc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* O <figure> mantém a margem por omissão do navegador — o main.css não a anula */
.grpc-figure { margin: 0; }

/* Grupo D — Restauração e Gastronomia (restauracao, restaurante-detalhes, gastronomia, prato-detalhes) */

/* O <figure> mantém a margem por omissão do navegador (40px) — o main.css não a anula */
.grpd-figure { margin: 0; }

/* Impressão da receita (botão "Imprimir receita"): esconde botões, partilha e relacionados */
@media print {
  .grpd-no-print { display: none !important; }
}

/* Grupo E — páginas de módulos geradas por generate_pages.php (arte digital, escolas, formações, palestras,
   praias, visitas guiadas, património, tradições) */

/* Imagem principal do detalhe: anula as margens por omissão do <figure> (o main.css não as anula) */
.grpE-figure { margin: 0; }

/* Grupo F — Páginas institucionais (sobre, municipio-maputo, como-participar, contactos).
   Apenas afinações de espaçamento/colunas dos componentes das secções 12, 16 e 17. */

/* Espaçamento vertical entre blocos de texto dentro de uma coluna .split */
.grpF-gap { margin-top: 16px; }
.grpF-gap-lg { margin-top: 28px; }

/* Estatísticas em 2 colunas (dentro de uma coluna de .split) */
.grpF-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Grelha de 4 cartões que passa a 2×2 (em vez de 3+1) em ecrãs médios */
@media (max-width: 1100px) {
  .grpF-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grpF-quad { grid-template-columns: 1fr; }
}

/* Coluna de ligações/passos ao lado do texto da faixa .join */
.grpF-join-links { display: flex; flex-direction: column; gap: 12px; }
.grpF-join-links .step { align-items: center; transition: background-color .2s, border-color .2s; }
.grpF-join-links .step:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.grpF-join-links .step__n i { font-size: .95rem; }

/* Lista de pontos (texto com ícone) dentro de uma coluna .split */
.grpF-points { display: grid; gap: 14px; margin-top: 20px; }
.grpF-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.grpF-points i { margin-top: 5px; color: var(--green); }
.grpF-points strong { color: var(--ink); }

/* Formulário de contacto */
.grpF-form { margin-top: 24px; }
.grpF-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.grpF-card > .notice { margin-top: 20px; }
.grpF-check { display: flex; flex-direction: column; gap: 6px; }
.grpF-check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.grpF-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Âncora que não fica escondida por baixo do cabeçalho fixo */
.grpF-anchor { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Mapa em largura total por baixo do formulário de contactos */
.grpF-map { aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .grpF-map { aspect-ratio: 4 / 3; } }

/* Grupo G — Autenticação (login.php, cadastro.php). Apenas afinações dos componentes das secções 17–18. */

/* Espaço entre o aviso (erro/sucesso) e o conteúdo que se lhe segue */
.grpG-notice { margin-bottom: 22px; }

/* Ligação em linha dentro de textos de ajuda */
.grpG-link { font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Estado inválido nos cartões de escolha e na caixa de aceitação (o main.css só cobre .input) */
.choice input[aria-invalid="true"] + .choice__box { border-color: var(--red); }
.check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }

/* Formulário longo (cadastro): a fotografia acompanha o scroll em vez de esticar até ao fim do formulário */
@media (min-width: 961px) {
  .grpG-auth--long .auth__visual {
    position: sticky; top: var(--header-h); align-self: start;
    height: calc(100vh - var(--header-h)); min-height: 520px;
  }
}

/* Botões depois do registo concluído */
.grpG-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Botão de envio e legenda dos campos obrigatórios no fim do cadastro */
.grpG-submit { margin-top: 22px; }
.grpG-legend { margin-top: 10px; text-align: center; }

/* Grupo H — páginas legais (termos.php, privacidade.php) */

/* Caixa de contactos dentro de .prose: anula o recuo/marcadores das listas do texto corrido */
.grpH-contactos { margin-top: 1.2em; }
.grpH-contactos .info-list { padding-left: 0; list-style: none; }
.grpH-contactos .info-list li + li { margin-top: 0; }
