/* Guia de fontes: Sugo Display nos títulos, Open Sauce na interface,
   Public Sans no texto corrido, Biro Script Plus num destaque. */
@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

@font-face {
  font-family: "Sugo Display";
  src: url("../fonts/Sugo.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce";
  src: url("../fonts/OpenSauce.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Biro Script Plus";
  src: url("../fonts/BiroScript.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta oficial IX ENEEA — verificada 12.10.2026. */
  --teal: #12635a;
  --gold: #74b679;
  --sage: #c8daa8;
  --plum: #562e50;
  --indigo: #545895;
  --lilac: #c3a7cf;
  --ink: #232522;
  --stone: #cfc8c2;
  --paper: #fefadf;

  /* Derivados da paleta: sem hex inventados. */
  --muted: color-mix(in srgb, var(--ink) 58%, var(--stone));
  --plum-soft: color-mix(in srgb, var(--plum) 38%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --card: color-mix(in srgb, var(--sage) 55%, var(--paper));
  --font-display: "Sugo Display", "Public Sans", sans-serif;
  --font-ui: "Open Sauce", "Public Sans", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-script: "Biro Script Plus", cursive;
  --header: 76px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --poster-left: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(720px, calc(100% - 48px)); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}
.skip:focus { top: 12px; }

/* Cabeçalho sobre o fundo claro */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  overflow: visible;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Logo alinhado com «O encontro» (mesmo padding esquerdo do cartaz). */
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-inline: 0;
  padding-left: var(--poster-left);
  padding-right: max(20px, 4vw);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 56px; font-family: var(--font-ui); }

.nav a {
  position: relative;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

/* Sublinhado suave no hover */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] { color: var(--gold); }

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  animation: ticketShine 0.85s var(--ease) forwards;
}
.btn--navy { background: var(--ink); color: var(--paper); }
.btn--clay { background: var(--gold); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h3, .footer__heading, .price__tag, .ticket__label {
  font-family: var(--font-ui);
}

.lede { color: var(--ink); max-width: 42ch; }

/* Cartaz: ENEEA + texto à esquerda, calendário/bilhete à direita */
.poster {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 28px max(24px, 4vw) 40px var(--poster-left);
  overflow: hidden;
  text-align: left;
}

.poster__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  padding-right: min(320px, 28vw);
  max-width: 46rem;
}

.poster__lead h1 {
  margin: 0 0 16px;
  max-width: none;
  font-size: clamp(2.45rem, 4.5vw, 4.3rem);
  white-space: nowrap;
}

.poster__lead h1 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.15em;
}

.poster__lead p {
  margin: 0 0 0 3px;
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  white-space: nowrap;
}

/* ENEEA: hover abre o nome completo numa linha (fonte menor para caber) */
.poster__word {
  position: relative;
  margin: 0 0 0 -4px;
  padding: 0;
  max-width: calc(100vw - min(300px, 28vw) - var(--poster-left) - 48px);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  cursor: default;
  outline: none;
}

.poster__short,
.poster__long {
  display: block;
  white-space: nowrap;
  color: var(--plum);
  background-image: linear-gradient(180deg, var(--lilac) 0%, var(--plum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition:
    opacity 0.4s var(--ease),
    transform 0.45s var(--ease),
    font-size 0.45s var(--ease);
}

.poster__short {
  font-size: clamp(5.4rem, 18vw, 14rem);
  line-height: 0.82;
}

.poster__long {
  position: absolute;
  left: 0;
  top: 50%;
  /* Tamanho ajustado em JS para igualar a largura de «O encontro…» */
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(-50%) translateX(-12px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.poster__long-line {
  display: block;
  white-space: nowrap;
}

.poster__word:hover .poster__short,
.poster__word:focus .poster__short {
  opacity: 0;
  transform: translateX(8px) scale(0.92);
}

.poster__word:hover .poster__long,
.poster__word:focus .poster__long {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.ticket {
  position: absolute;
  top: 50%;
  right: max(20px, 4vw);
  transform: translateY(-50%);
  width: min(280px, calc(100% - 40px));
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 28px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.ticket__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket__when {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ticket__year {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.4rem;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.ticket__place {
  margin: 4px 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Botão do cartaz: degradê verde + brilho suave no hover */
.ticket__go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--gold) 0%, var(--sage) 100%);
  color: var(--ink);
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 600;
  isolation: isolate;
}

.ticket__go > * {
  position: relative;
  z-index: 1;
}

.ticket__go::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ticket:hover .ticket__go::after,
.ticket:focus-visible .ticket__go::after {
  opacity: 1;
  animation: ticketShine 0.85s var(--ease) forwards;
}

@keyframes ticketShine {
  from { transform: translateX(0); }
  to { transform: translateX(320%); }
}

/* Foto à esquerda do texto «Sobre o ENEEA» */
.sobre {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.sobre img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
}

.section { padding: 72px 0; }

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 16ch;
}

.prose p { margin: 0 0 16px; color: var(--ink); max-width: 62ch; }

/* Títulos de secção: verde sólido como o «17», sem degradê. */
.title-day17 {
  color: var(--gold);
  background-image: none;
  -webkit-text-fill-color: unset;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: end;
}

/* Oradores em fila, com cantos redondos */
.speakers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.speaker__placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--stone) 55%, var(--sage));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
}

.speaker__media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 1;
}

.speaker img,
.speaker__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.speaker__media img {
  height: 100%;
  border-radius: 0;
}

/* Enquadramento: descer o crop para o rostos não ficarem cortados */
.speaker__photo--down {
  object-position: center 18%;
}

/* Rodrigo: deslocar o enquadramento para a direita */
.speaker__photo--right {
  object-position: 32% center;
}

.speaker h3 {
  margin: 12px 0 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.speaker > p { margin: 2px 0 0; color: var(--teal); font-size: 0.82rem; line-height: 1.35; }

.speaker__bio {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}

.speaker--bio:hover .speaker__bio,
.speaker--bio:focus-within .speaker__bio {
  max-height: 12rem;
  margin-top: 10px;
  opacity: 1;
}

.speaker__bio p {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}

.speaker__bio p:last-child { margin-bottom: 0; }

.speaker__link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  line-height: 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 25%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.2s var(--ease);
}

.speaker--bio:hover .speaker__link,
.speaker--bio:focus-within .speaker__link {
  opacity: 1;
  pointer-events: auto;
}

.speaker__link:hover,
.speaker__link:focus-visible {
  transform: scale(1.08);
}

.speaker__link svg { display: block; }

/* Actividades como temas do encontro */
.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.theme {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  min-height: 180px;
}

.theme h3 { margin: 0 0 8px; font-size: 1.35rem; }
.theme p { margin: 0; color: var(--ink); }

a.theme--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

a.theme--link:hover,
a.theme--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 10%, transparent);
  outline: none;
}

.theme__cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Formulário trabalhos / upload */
.upload-form {
  display: grid;
  gap: 18px;
  max-width: 36rem;
  padding: 8px 0 64px;
}

.upload-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.upload-form input[type="text"],
.upload-form input[type="email"],
.upload-form textarea,
.upload-form input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.upload-form textarea {
  min-height: 120px;
  resize: vertical;
}

.upload-form input[type="file"] {
  padding: 10px;
}

.upload-form .hint {
  margin: 0;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}

.upload-form .hint--file {
  margin-top: -2px;
  font-size: 0.8rem;
  line-height: 1.3;
}

.upload-form label:has(textarea) {
  gap: 6px;
}

.upload-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.upload-form .file-field {
  display: grid;
  gap: 6px;
}

.upload-form .file-field__label {
  font-weight: 600;
  color: var(--ink);
}

.upload-form .file-field__box {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.upload-form .file-field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.upload-form .file-field__pick {
  flex-shrink: 0;
}

.upload-form .field-title,
.upload-form .file-field__label {
  display: inline;
}

.upload-form .req {
  color: var(--plum);
  font-weight: 700;
  margin-left: 0.15em;
  white-space: nowrap;
}

.upload-form .file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(100%, 22rem);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.upload-form .file-chip[hidden],
.upload-form .file-chip[aria-hidden="true"] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.upload-form .file-chip__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-form .file-chip__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--plum) 14%, var(--paper));
  color: var(--plum);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.upload-form .file-chip__remove:hover {
  background: color-mix(in srgb, var(--plum) 28%, var(--paper));
}

/* Honeypot anti-bot: invisível para humanos */
.upload-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0 0 20px;
  max-width: 36rem;
}

.form-alert--ok {
  background: color-mix(in srgb, var(--gold) 28%, var(--paper));
  border: 1px solid var(--gold);
}

.form-alert--err {
  background: color-mix(in srgb, var(--plum) 12%, var(--paper));
  border: 1px solid var(--plum);
}

/* Comissão de Honra: grelha com retratos */
.honor {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.honor__item {
  text-align: left;
}

.honor__media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 1;
}

.honor__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Casimiro Pio: enquadramento do ficheiro enviado */
.honor__photo--down {
  object-position: center center;
}

/* Fátima Alves: zoom suave (antes 1.22 era demais) */
.honor__photo--zoom {
  transform: scale(1.1);
  transform-origin: center center;
}

/* Mini-CV sob a foto (aparece no hover do item) */
.honor__bio {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}

.honor__item--bio:hover .honor__bio,
.honor__item--bio:focus-within .honor__bio {
  max-height: 12rem;
  margin-top: 10px;
  opacity: 1;
}

.honor__bio p {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
}

.honor__bio p:last-child { margin-bottom: 0; }

.honor__item h3 {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.honor__item p {
  margin: 2px 0 0;
  color: var(--teal);
  font-size: 0.92rem;
}

/* Link no canto inferior direito da foto, só no hover do item */
.honor__link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  line-height: 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 25%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.2s var(--ease);
}

.honor__item--bio:hover .honor__link,
.honor__item--bio:focus-within .honor__link {
  opacity: 1;
  pointer-events: auto;
}

.honor__link:hover,
.honor__link:focus-visible {
  transform: scale(1.08);
}

.honor__link svg,
.honor__link img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.center-link { margin-top: 28px; }

.sponsor {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.sponsor__title {
  max-width: none;
  white-space: nowrap;
  margin-bottom: 8px;
}

.tier {
  margin: 0 0 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--teal);
}

/* Logos: rechts → links; eine Gruppe ≥ Viewport → kein Doppel sichtbar; mehr Logos → enger */
.sponsor-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sponsor-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sponsor-marquee 36s linear infinite;
}

.sponsor-marquee:hover .sponsor-marquee__track {
  animation-play-state: paused;
}

.sponsor-marquee__group {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-shrink: 0;
  box-sizing: border-box;
  /* Wenige Logos: mind. volle Leisten-Breite → kein Doppel im sichtbaren Bereich */
  min-width: max(100%, max-content);
  padding-inline: clamp(48px, 8vw, 120px);
  gap: clamp(80px, 16vw, 220px);
}

@keyframes sponsor-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sponsor-logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--paper);
  border-radius: 18px;
  padding: 18px 28px;
}

.sponsor-logo--plain {
  background: transparent;
  padding: 8px 12px;
}

.sponsor-logo img {
  width: auto;
  height: 72px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.sponsor-logo--plain img {
  height: 64px;
  max-width: 200px;
}

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 28px;
}
.footer__grid a { display: block; padding: 5px 0; color: var(--muted); }
.footer__grid a:hover { color: var(--ink); }
.footer__heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__tagline { max-width: 28ch; margin: 14px 0 0; color: var(--muted); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 16px; }
.footer__legal a { color: var(--muted); }

/* Páginas interiores */
.page-hero { padding: 48px 0 12px; }
.page-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.8rem); }

.page-hero__lead {
  margin: 14px 0 0;
  max-width: 40rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
}

.legal-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-doc {
  padding: 12px 0 64px;
  max-width: 68ch;
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  max-width: none;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--ink);
}

.legal-doc li { margin: 0 0 8px; }

.legal-doc a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--sage) 35%, var(--paper));
  border-radius: 0 12px 12px 0;
}

.days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0 72px;
}

.day {
  background: var(--card);
  border-radius: 24px;
  padding: 20px 16px 10px;
}

.day header span {
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.day h2 { margin: 6px 0 14px; font-size: 1.7rem; max-width: none; }

.event {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  color: inherit;
}
.event:hover { border-color: var(--gold); }
.event time { display: block; color: var(--teal); font-weight: 600; font-size: 0.86rem; }
.event h3 { margin: 4px 0 0; font-size: 1.05rem; font-family: var(--font-body); letter-spacing: 0; }
.event p { margin: 2px 0 0; color: var(--ink); font-size: 0.9rem; }
.event.is-live { border-color: var(--gold); }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  z-index: 70;
}
.modal.is-open { display: flex; }
.modal__card {
  width: min(520px, 100%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 28px;
  position: relative;
}
.modal__card h3 {
  margin: 6px 0 10px;
  font-size: 2rem;
}
.modal__card .lede { color: var(--ink); max-width: none; font-size: 1rem; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--sage);
  color: var(--ink);
  cursor: pointer;
}
.speaker-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.speaker-link img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.speaker-link h4 { margin: 0; }
.speaker-link p { margin: 0; color: var(--indigo); font-size: 0.9rem; }

/* Bilhetes */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px 0 20px;
}
.price {
  background: var(--card);
  border-radius: 24px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
}
.price--feature { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); position: relative; }
.price__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--gold);
  border-radius: 8px;
}
.price__badge[hidden],
.price__was[hidden],
.price__until[hidden] { display: none !important; }
.price__until {
  margin: -8px 0 14px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
}
.price__tag {
  margin: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price--feature .price__tag { color: var(--teal); }
.price__value {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  letter-spacing: -0.05em;
  line-height: 0.9;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.price__was {
  position: relative;
  display: inline-block;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}
.price__was::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 3px;
  background: var(--ink);
  transform: translateY(-50%) rotate(-22deg);
  transform-origin: center;
  pointer-events: none;
}
.price__was span { font-size: 1.25rem; }
.price__now { display: inline-flex; align-items: baseline; gap: 2px; }
.price__value > span:not(.price__was):not(.price__now),
.price__now > span:first-child { font-size: 1.4rem; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.price li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.price--feature li { border-color: var(--line); color: var(--ink); }

/* Nota sob os pacotes (ex.: alojamento) */
.price-note {
  margin: -4px auto 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.daily {
  margin: 8px 0 72px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}
.daily h2 { margin: 0 0 6px; font-size: 1.8rem; max-width: none; }
.daily p { margin: 0; color: var(--ink); }

.error-page {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 48px 0 80px;
}
.error-page h1 {
  margin: 0;
  font-size: clamp(5rem, 14vw, 8rem);
  color: var(--plum-soft);
  line-height: 0.85;
}
.error-page h2 { margin: 8px 0 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 16ch; }
.error-page p { margin: 0 0 22px; color: var(--ink); max-width: 46ch; }

/* Ecrã estreito: o cartão desce para debaixo do texto */
@media (max-width: 900px) {
  .header__row { padding-left: 24px; padding-right: 24px; }
  .sobre, .split, .themes, .speakers, .honor, .days, .pricing, .footer__grid { grid-template-columns: 1fr 1fr; }
  .pricing, .themes, .days { grid-template-columns: 1fr; }
  .poster {
    min-height: calc(100svh - var(--header));
    padding-left: 24px;
    padding-right: 24px;
  }
  .poster__lead { padding-right: 0; max-width: none; }
  .poster__lead h1,
  .poster__lead p { white-space: normal; }
  .ticket {
    position: static;
    transform: none;
    width: min(420px, 100%);
    margin: 12px 0 0;
  }
  .sobre img { height: 320px; }
}

/* Telemóvel: menu, cartaz empilhado e uma coluna (desktop inalterado) */
@media (max-width: 720px) {
  :root {
    --header: 64px;
    --poster-left: 20px;
  }

  body { overflow-x: hidden; }

  .wrap,
  .wrap--narrow { width: min(1120px, calc(100% - 28px)); }

  .header__row {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 12px;
  }

  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 0.98rem; }
  .brand small { font-size: 0.62rem; }

  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px calc(16px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 40;
    max-height: calc(100svh - var(--header));
    overflow-y: auto;
  }
  .nav a {
    font-size: 1.12rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav.is-open { display: flex; }
  .header__actions .btn { display: none; }

  .poster {
    min-height: auto;
    padding: 20px max(16px, env(safe-area-inset-right)) 36px max(16px, env(safe-area-inset-left));
    gap: 18px;
  }
  .poster__word {
    max-width: 100%;
    margin-left: 0;
    /* Kein Absolute-Expand über Headline/Ticket */
    min-height: 0;
  }
  .poster__short {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
    line-height: 0.88;
  }
  .poster__long {
    position: static;
    transform: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    font-size: clamp(0.78rem, 3.4vw, 0.95rem) !important; /* JS-Größe deckeln */
    letter-spacing: 0.01em;
    line-height: 1.2;
    pointer-events: none;
  }
  .poster__long-line {
    white-space: normal;
    max-width: 100%;
  }
  /* Expand nur kompakt im Fluss — kein Überlagern */
  .poster__word:hover .poster__short,
  .poster__word:focus .poster__short,
  .poster__word.is-expanded .poster__short {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    transform: none;
  }
  .poster__word:hover .poster__long,
  .poster__word:focus .poster__long,
  .poster__word.is-expanded .poster__long {
    opacity: 1;
    max-height: 4.5rem;
    margin: 4px 0 2px;
    transform: none !important;
  }
  .poster__lead { padding-right: 0; max-width: none; }
  .poster__lead h1 {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    margin-bottom: 12px;
    white-space: normal;
    line-height: 1.08;
  }
  .poster__lead p {
    white-space: normal;
    font-size: 1.02rem;
    max-width: 36ch;
  }
  .ticket {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    border-radius: 22px;
    padding: 22px 20px 18px;
  }
  .ticket__year { font-size: 3.2rem; }
  .ticket__go { min-height: 52px; }

  .sobre,
  .split,
  .speakers,
  .honor,
  .days,
  .footer__grid,
  .daily,
  .themes,
  .pricing {
    grid-template-columns: 1fr;
  }
  .speakers,
  .honor {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .speaker h3 { font-size: 0.95rem; }
  .speaker > p { font-size: 0.75rem; }
  .honor__item h3 { font-size: 0.95rem; }

  /* Bios: sem hover no telemóvel — toque abre (.is-open via JS) */
  .speaker__bio,
  .honor__bio {
    max-height: 0;
  }
  .speaker--bio.is-open .speaker__bio,
  .honor__item--bio.is-open .honor__bio {
    max-height: 16rem;
    margin-top: 10px;
    opacity: 1;
  }
  .speaker__link,
  .honor__link {
    opacity: 1;
    pointer-events: auto;
  }

  .sobre { gap: 22px; }
  .sobre img { height: 200px; width: 100%; object-fit: cover; }
  .section { padding: 40px 0; }
  .section h2 { font-size: clamp(1.9rem, 7vw, 2.35rem); max-width: 14ch; }

  .themes { gap: 14px; }
  .theme { padding: 18px 16px; }

  .daily {
    display: grid;
    gap: 14px;
    padding: 18px 16px;
    text-align: left;
  }
  .daily h2 { font-size: 1.45rem; }
  .pricing { gap: 16px; }
  .price { padding: 22px 18px; }
  .price__value { font-size: 2.7rem; }
  .price__was { font-size: 1.7rem; }

  .sponsor__title {
    white-space: normal;
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }
  .sponsor-marquee__track { animation-duration: 32s; }
  .sponsor-marquee__group {
    gap: clamp(48px, 12vw, 120px);
    padding-inline: clamp(24px, 6vw, 64px);
  }
  .sponsor-logo img { height: 56px; }
  .sponsor-logo--plain img { height: 48px; }

  .footer__grid {
    gap: 22px;
    padding: 36px 0 24px;
  }
  .footer__grid a { padding: 8px 0; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .event { padding: 14px 14px; }
  .modal__card { width: min(920px, calc(100% - 24px)); padding: 22px 18px; max-height: 85svh; overflow: auto; }

  .btn,
  .ticket__go { -webkit-tap-highlight-color: transparent; }
}

/* Ecrãs muito estreitos */
@media (max-width: 420px) {
  .speakers,
  .honor { grid-template-columns: 1fr; }
  .poster__short { font-size: 15vw; }
  .ticket__year { font-size: 2.8rem; }
}

/* Dispositivos sem hover: bios por toque, não por hover */
@media (hover: none) {
  .speaker--bio:hover .speaker__bio,
  .honor__item--bio:hover .honor__bio {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
  }
  .speaker--bio.is-open .speaker__bio,
  .honor__item--bio.is-open .honor__bio {
    max-height: 16rem;
    margin-top: 10px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .poster__short,
  .poster__long { transition: none; }
  .ticket:hover .ticket__go::after,
  .ticket:focus-visible .ticket__go::after,
  .btn:hover::after,
  .btn:focus-visible::after { animation: none; opacity: 0; }
  .nav a::after { transition: none; }
  .sponsor-marquee__track { animation: none; }
}
