/* EMVIAGEM — páginas de campanha com desenho editorial (carnaval.html e
   pascoa.html). Carrega por último, depois de styles.css, consent.css e
   redesign-apple.css; tudo o que é próprio está preso a body.ed.
   Pensado primeiro para o telemóvel. */

body.ed {
  --ed-paper: #f7f4ee;
  --ed-surface: #fffdf9;
  --ed-ink: #16181d;
  --ed-text: #3f3d39;
  --ed-muted: #6c675f;
  --ed-line: rgba(22, 24, 29, .16);
  --ed-gold: #b4955f;
  --ed-gold-text: #7d6334;
  --ed-accent: #b43c00;
  --ed-accent-press: #9a3300;
  --ed-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --ap-glass: rgba(247, 244, 238, .86);
  background: var(--ed-paper);
  color: var(--ed-text);
  padding-bottom: 0;
}

/* :where(main) deixa o cabeçalho e o rodapé do site como estão. */
.ed :where(main) h1, .ed :where(main) h2, .ed :where(main) h3, .ed :where(main) p, .ed :where(main) dd { overflow-wrap: break-word; }
.ed :where(main) h1, .ed :where(main) h2, .ed :where(main) h3 {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.ed :where(main) h2 { color: var(--ed-ink); font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.08; }
.ed :where(main) h3 { color: var(--ed-ink); font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.12; }
.ed :where(main) p { margin: 0; }

.ed-eyebrow {
  margin: 0;
  color: var(--ed-gold-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---- Botões ----------------------------------------------------------- */
.ed-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ed-btn-solid { background: var(--ed-accent); color: #fff; }
.ed-btn-solid:hover { background: var(--ed-accent-press); color: #fff; }
.ed-btn-line { border-color: var(--ed-ink); color: var(--ed-ink); }
.ed-btn-line:hover { background: var(--ed-ink); color: #fff; }
.ed-on-dark .ed-btn-line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.ed-on-dark .ed-btn-line:hover { background: #fff; border-color: #fff; color: var(--ed-ink); }
.ed-link {
  color: var(--ed-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ed-gold);
  text-underline-offset: .28em;
}
.ed .ed-btn:focus-visible { border-radius: 2px; }

/* ---- Capa ------------------------------------------------------------- */
.ed-cover { display: flex; flex-direction: column; background: var(--ed-ink); color: #fff; }
.ed-cover-media { position: relative; order: -1; height: clamp(260px, 82vw, 460px); margin: 0; overflow: hidden; }
.ed-cover-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.ed-cover-copy { padding: 2.6rem 18px 3rem; }
.ed .ed-cover h1 { margin: .9rem 0 1.1rem; color: #fff; font-size: clamp(2.7rem, 12vw, 5rem); line-height: 1; letter-spacing: -.022em; }
.ed .ed-cover .ed-eyebrow { color: #dcc08c; }
.ed-standfirst { max-width: 34rem; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.ed .ed-cover-date {
  margin: 1.5rem 0 1.8rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(220, 192, 140, .5);
  border-bottom: 1px solid rgba(220, 192, 140, .5);
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  font-style: italic;
}
.ed-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  padding: .35rem .75rem;
  background: rgba(15, 16, 20, .66);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .04em;
}

/* Capa com fotografia a toda a largura */
.ed-cover-full { position: relative; justify-content: flex-end; min-height: 560px; isolation: isolate; }
.ed-cover-full .ed-cover-media { position: absolute; inset: 0; z-index: -2; height: auto; }
.ed-cover-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 22, 28, .12) 0%, rgba(13, 22, 28, .64) 32%, rgba(13, 22, 28, .9) 100%);
}
.ed-cover-full .ed-cover-media img { object-position: 30% 50%; }
.ed-cover-full .ed-cover-copy { width: 100%; padding-top: 7rem; }
.ed-cover-full .ed-credit { position: absolute; top: 0; bottom: auto; }

@media (min-width: 920px) {
  .ed-cover-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: 660px; }
  .ed-cover-split .ed-cover-media { order: 0; grid-column: 2; grid-row: 1; height: auto; }
  .ed-cover-split .ed-cover-media img { position: absolute; inset: 0; }
  .ed-cover-split .ed-cover-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: 5rem 4rem 5rem max(24px, calc((100vw - 1180px) / 2));
  }
  .ed-cover-full { min-height: 640px; }
  .ed-cover-full::after { background: linear-gradient(90deg, rgba(13, 22, 28, .88) 0%, rgba(13, 22, 28, .68) 36%, rgba(13, 22, 28, .12) 66%, rgba(13, 22, 28, 0) 100%); }
  .ed-cover-full .ed-cover-media img { object-position: 50% 55%; }
  .ed-cover-full .ed-cover-copy { width: min(1180px, calc(100% - 48px)); margin-inline: auto; padding: 9rem 0 4.5rem; }
}

/* ---- Estrutura -------------------------------------------------------- */
.ed-crumb { padding-top: 1rem; color: var(--ed-muted); font-size: .82rem; }
.ed-crumb a { color: var(--ed-muted); }
.ed-section { padding: 3.8rem 0; }
.ed-section-line { border-top: 1px solid var(--ed-line); }
.ed-head { max-width: 40rem; margin-bottom: 2.4rem; }
.ed-head h2 { margin: .7rem 0 .9rem; }
.ed-head p:last-child { color: var(--ed-text); font-size: 1.03rem; }

/* ---- Calendário ------------------------------------------------------- */
.ed-dates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-dates li { padding: 1rem .2rem 1.1rem; text-align: center; }
.ed-dates li + li { border-left: 1px solid var(--ed-line); }
.ed-dates span { display: block; color: var(--ed-muted); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ed-dates strong { display: block; margin: .15rem 0; color: var(--ed-ink); font-family: var(--ed-serif); font-size: clamp(1.9rem, 8vw, 3.2rem); font-weight: 400; line-height: 1.05; }
.ed-dates em { display: block; color: var(--ed-text); font-size: .72rem; font-style: normal; line-height: 1.3; }
.ed-dates .is-key { background: var(--ed-ink); }
.ed-dates .is-key span { color: #dcc08c; }
.ed-dates .is-key strong, .ed-dates .is-key em { color: #fff; }
.ed .ed-dates-note { margin-top: .9rem; color: var(--ed-muted); font-size: .86rem; }
@media (max-width: 559px) {
  .ed-dates em { display: none; }
}

/* ---- Programas -------------------------------------------------------- */
.ed-entry { display: grid; gap: 1.6rem; padding: 3rem 0; border-top: 1px solid var(--ed-line); scroll-margin-top: 130px; }
.ed-entry:first-of-type { border-top: 0; padding-top: 0; }
.ed-media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #d8d1c4; }
.ed-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Placa tipográfica: usada onde ainda não há fotografia do próprio destino. */
.ed-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 2.2rem 1.4rem;
  background: var(--ed-tone, #1d3038);
  color: #fff;
  text-align: center;
  position: relative;
}
.ed-plate::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(220, 192, 140, .55); pointer-events: none; }
.ed-plate span { font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #e3cb9c; }
.ed-plate strong { font-family: var(--ed-serif); font-size: clamp(2.5rem, 11vw, 4.4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.ed-plate i { width: 44px; height: 1px; background: rgba(220, 192, 140, .8); }
.ed-plate em { font-family: var(--ed-serif); font-size: 1.05rem; color: rgba(255, 255, 255, .88); }
.ed-tone-wine { --ed-tone: linear-gradient(160deg, #4c1b2b 0%, #2a0f19 100%); }
.ed-tone-sea { --ed-tone: linear-gradient(160deg, #164550 0%, #0b252c 100%); }
.ed-tone-night { --ed-tone: linear-gradient(160deg, #232c4b 0%, #11162a 100%); }
.ed-tone-forest { --ed-tone: linear-gradient(160deg, #1f4435 0%, #0f251d 100%); }

.ed-entry-body .ed-eyebrow { margin-bottom: .65rem; }
.ed .ed-entry-body > p.ed-text { margin-top: .9rem; max-width: 36rem; font-size: 1.02rem; }

.ed-facts { margin: 1.5rem 0 0; border-top: 1px solid var(--ed-line); }
.ed-facts div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .75rem 0; border-bottom: 1px solid var(--ed-line); }
.ed-facts dt { color: var(--ed-muted); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.8; }
.ed-facts dd { margin: 0; color: var(--ed-ink); font-size: .95rem; }

.ed .ed-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin: 1.35rem 0 1.15rem; color: var(--ed-muted); font-size: .9rem; }
.ed-price strong { color: var(--ed-ink); font-family: var(--ed-serif); font-size: 2.4rem; font-weight: 400; line-height: 1; white-space: nowrap; }
.ed-price b { color: var(--ed-ink); font-family: var(--ed-serif); font-size: 1.45rem; font-weight: 400; font-style: italic; }

@media (min-width: 560px) {
  .ed-facts div { grid-template-columns: 11rem 1fr; gap: 1rem; }
}
@media (min-width: 900px) {
  .ed-entry { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; align-items: center; padding: 4.5rem 0; }
  .ed-entry > .ed-media, .ed-entry > .ed-plate { aspect-ratio: 4 / 5; }
  .ed-entry-flip > .ed-media, .ed-entry-flip > .ed-plate { order: 2; }
}

/* ---- Faixa fotográfica escura ----------------------------------------- */
.ed-band { display: grid; background: var(--ed-ink); color: #fff; }
.ed-band .ed-media { aspect-ratio: 3 / 2; background: #0f1116; }
.ed-band-copy { padding: 2.8rem 18px 3.2rem; }
.ed .ed-band h2 { margin: .8rem 0 1rem; color: #fff; }
.ed .ed-band .ed-eyebrow { color: #dcc08c; }
.ed .ed-band-copy > p:not(.ed-eyebrow) { max-width: 33rem; margin-bottom: 1.6rem; color: rgba(255, 255, 255, .88); }
@media (min-width: 900px) {
  .ed-band { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: stretch; }
  .ed-band .ed-media { aspect-ratio: auto; min-height: 480px; }
  .ed-band-copy { align-self: center; padding: 4rem max(24px, calc((100vw - 1180px) / 2)) 4rem 4rem; }
}

/* ---- Passos / razões -------------------------------------------------- */
.ed-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: ed-step; }
.ed-steps li { padding: 1.5rem 0; border-top: 1px solid var(--ed-line); counter-increment: ed-step; }
.ed-steps li::before { content: counter(ed-step, upper-roman); display: block; margin-bottom: .5rem; color: var(--ed-gold-text); font-family: var(--ed-serif); font-size: 1.1rem; }
.ed .ed-steps h3 { margin-bottom: .45rem; font-size: 1.35rem; }
.ed-steps p { font-size: .97rem; }
@media (min-width: 820px) {
  .ed-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
  .ed-steps li { border-top-color: var(--ed-ink); }
}

/* ---- Perguntas frequentes --------------------------------------------- */
.ed-faq-grid { display: grid; gap: 1rem; }
.ed-faq-grid .ed-head { margin-bottom: .6rem; }
.ed-faq details { border-bottom: 1px solid var(--ed-line); }
.ed-faq details:first-child { border-top: 1px solid var(--ed-line); }
.ed-faq summary { position: relative; display: block; padding: 1.1rem 2.4rem 1.1rem 0; color: var(--ed-ink); font-family: var(--ed-serif); font-size: 1.18rem; line-height: 1.35; cursor: pointer; list-style: none; }
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: "+"; position: absolute; top: 50%; right: .3rem; transform: translateY(-50%); color: var(--ed-gold-text); font-size: 1.5rem; }
.ed-faq details[open] summary::after { content: "–"; }
.ed .ed-faq details p { padding: 0 2rem 1.2rem 0; font-size: .98rem; }
@media (min-width: 900px) {
  .ed-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; }
}

/* ---- Fecho ------------------------------------------------------------ */
.ed-close { padding: 4.2rem 0; background: var(--ed-ink); color: #fff; text-align: center; }
.ed .ed-close h2 { margin: .8rem auto 1rem; max-width: 20ch; color: #fff; }
.ed .ed-close .ed-eyebrow { color: #dcc08c; }
.ed .ed-close p:not(.ed-eyebrow) { max-width: 34rem; margin: 0 auto 1.7rem; color: rgba(255, 255, 255, .86); }
.ed-close .ed-actions { justify-content: center; }

.ed-next { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .8rem 2rem; padding: 2.4rem 0; }
.ed-next p { color: var(--ed-ink); font-family: var(--ed-serif); font-size: 1.3rem; }

.ed .ed-fine { max-width: 60rem; margin-top: 1.8rem; color: var(--ed-muted); font-size: .84rem; }
.ed-fine a { color: var(--ed-muted); }

.ed .site-footer { background: var(--ed-ink); }
/* Folga para o botão de WhatsApp não tapar o rodapé legal no telemóvel. */
@media (max-width: 780px) {
  .ed .site-footer { padding-bottom: 96px; }
  .ed .whatsapp-float { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .ed-btn { transition: none; }
}
