/* ===========================
   TOKENS
=========================== */
:root {
  --coral: #f06f5c;
  --blue: #179566;
  --blue-dark: #2C5560;
  --mustard: #e5aa52;
  --mustard-dark: #B8823C;
  --cream: #F5EFE0;
  --text-body: #3D2B1A;
  --text-muted: #7A6050;
  --bg-light: #FAF5EC;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-serif: 'Lora', serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.7;
}

strong {
  color: var(--mustard);
  font-weight: 600;
}

/* ===========================
   NAV
=========================== */
.nav {
  background: var(--coral);
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav nav a:hover {
  opacity: 1;
}

.nav nav > a.active {
  opacity: 1;
}

.nav nav > a.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  margin: 3px auto 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;   /* overlays the page under the nav, wherever the user has scrolled to */
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--coral);
  padding: 1.5rem 2rem;
  gap: 1.2rem;
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.mobile-menu.open {
  display: flex;
}

/* ===========================
   HERO (home)
=========================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 40vh;
}

.hero-left {
  background: #EADFC4;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.hero-left h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.slogan-line {
  display: block;
}

.slogan-line:nth-child(1) { padding-left: 0; }
.slogan-line:nth-child(2) { padding-left: 1.4rem; }
.slogan-line:nth-child(3) { padding-left: 2.8rem; }

.title-line { display: block; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  background: var(--coral) url('images/hero-banner.jpg') center/cover no-repeat;
  min-height: 320px;
}

/* ===========================
   INTRO (home, below hero)
=========================== */
.intro {
  background: var(--cream);
  padding: 4rem 2rem;
}

.intro-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.intro-inner p {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 40vh;
}

.page-hero-left {
  background: #EADFC4;
  padding: 4rem;
  display: flex;
  align-items: center;
}

.page-hero-left h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.05;
}

.page-hero-right {
  background: var(--blue) url('images/hero-pattern.jpg') center/cover no-repeat;
  padding: 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

.page-hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 149, 102, 0.4);
}

.page-hero-right p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--mustard);
  color: var(--cream);
  border: 2px solid var(--mustard);
}

.btn-primary:hover {
  background: var(--mustard-dark);
  border-color: var(--mustard-dark);
}

.btn-outline {
  background: transparent;
  color: var(--mustard);
  border: 2px solid var(--mustard);
}

.btn-outline:hover {
  background: var(--mustard);
  color: var(--bg-light);
  border-color: var(--mustard);
}

.btn-dark {
  background: var(--mustard-dark);
  color: var(--cream);
  border: 2px solid var(--mustard-dark);
  border-radius: 2rem;
}

.btn-dark:hover {
  background: #45151e;
  border-color: #45151e;
}

.btn-submit {
  background: var(--mustard);
  color: var(--cream);
  border: 2px solid var(--mustard);
  border-radius: 2rem;
  padding: 0.85rem 1.5rem;
  width: 100%;
  width: 100%;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--mustard-dark);
  border-color: var(--mustard-dark);
}

/* ===========================
   SECTION TITLE
=========================== */
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--mustard);
  line-height: 1.05;
  flex-shrink: 0;
}

/* ===========================
   PROJETO SECTION
=========================== */
.projeto {
  background: var(--cream);
  padding: 6rem 0;
}

.projeto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.projeto-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.projeto-col {
  text-align: justify;
}

.projeto-col p {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.projeto-col strong {
  font-family: var(--font-mono);
  font-size: 1.1em;
}

.projeto-col p:last-child { margin-bottom: 0; }

.projeto-col h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mustard-dark);
  letter-spacing: 0.04em;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.projeto-col ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 1.2rem;
}

.projeto-col li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.projeto-col a {
  color: var(--mustard-dark);
}

.projeto-image {
  position: sticky;
  top: 100px;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projeto-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.projeto-inner--no-title {
  grid-template-columns: 1fr;
}

.projeto-inner--no-title .projeto-cols {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ===========================
   KEYWORDS BANNER
=========================== */
.keywords {
  background: var(--blue);
  padding: 1.2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.keywords-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.keywords-track span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.06em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   CURSOS PREVIEW (home)
=========================== */
.cursos-preview {
  background: var(--blue);
  padding: 6rem 0;
}

.cursos-preview-inner .section-title {
  color: var(--mustard);
}

/* ===========================
   EVENTOS (home)
=========================== */
.eventos {
  background: var(--bg-light);
  padding: 6rem 0;
}

.eventos-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}

.eventos-list {
}

.evento-row:first-child {
  padding-top: 0;
}

.evento-row:last-child {
  border-bottom: none;
}

.evento-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(61,31,13,0.15);
  align-items: start;
}

.evento-date {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  padding-top: 0.15rem;
}

.evento-date span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mustard);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.evento-info h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mustard);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.evento-info p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.evento-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mustard-dark);
  letter-spacing: 0.03em;
}

.cursos-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.cursos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.curso-card {
  background: var(--bg-light);
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.curso-tipo {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.curso-card h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--mustard);
  font-weight: 500;
}

.curso-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  flex: 1;
}

.curso-card .btn {
  align-self: stretch;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===========================
   NEWSLETTER SECTION
=========================== */
.newsletter {
  background: var(--cream);
  padding: 3rem 0;
}

.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  gap: 4rem;
}

.newsletter-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newsletter-inner .section-title {
  color: var(--mustard);
  display: flex;
  flex-direction: column;
}

.newsletter-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mustard);
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.newsletter-contact:hover {
  opacity: 1;
}

.newsletter-contact .ti {
  font-size: 1rem;
}

.newsletter-form-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.newsletter-form label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mustard);
  letter-spacing: 0.04em;
}

.newsletter-form input[type="email"] {
  border: 1px solid var(--mustard);
  background: var(--bg-light);
  padding: 0.7rem 1rem;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-body);
  outline: none;
  border-radius: 2px;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--mustard-dark);
  background: var(--bg-light);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--mustard);
}

.checkbox-label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mustard);
  line-height: 1.5;
}

.checkbox-label a {
  color: inherit;
  text-decoration: underline;
}

.form-success {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mustard);
  margin-top: 1rem;
}

/* ===========================
   CURSOS DETAIL PAGE
=========================== */
.cursos-detail {
  padding: 5rem 0;
  background: var(--mustard);
}

.cursos-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.curso-row {
  background: var(--cream);
  border-radius: 12px;
  padding: 2.5rem;
}

.curso-row-body {
  display: grid;
  grid-template-columns: 2fr auto 1fr;
  grid-template-areas:
    "tag    divider  side"
    "title  divider  side"
    "text   divider  side"
    "credit divider  side";
  column-gap: 2.25rem;
  row-gap: 0.75rem;
}

.curso-row-body::before {
  content: "";
  grid-area: divider;
  justify-self: center;
  margin-top: -2.5rem;
  margin-bottom: -2.5rem;
  width: 6px;
  background-image: repeating-linear-gradient(to bottom, var(--blue) 0, var(--blue) 16px, transparent 16px, transparent 40px);
}

.curso-row-body > .curso-tipo {
  grid-area: tag;
}

.curso-row-body > h2 {
  grid-area: title;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.2;
}

.curso-row-text {
  grid-area: text;
}

.curso-row-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.curso-row-body > .curso-credit {
  grid-area: credit;
}

.curso-credit {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--blue);
  opacity: 0.8;
  margin-top: 1.5rem;
}

.curso-row-text p {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.curso-row-text h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mustard-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}

.curso-row-text ul {
  padding-left: 1.2rem;
}

.curso-row-text ul li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--text-body);
}

.curso-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.curso-meta-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}

/* ===========================
   CURSOS INFO (para quem / processo criativo)
=========================== */
.cursos-info {
  background: var(--cream);
  padding: 5rem 0;
}

.cursos-info-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.cursos-info-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.cursos-info-inner > .cursos-info-col + .cursos-info-col {
  margin-top: 2rem;
}

.cursos-info-col p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.cursos-info-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.cursos-info-col ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.cursos-info-col ul li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: var(--text-body);
}

.cursos-info-col p:last-child,
.cursos-info-col ul:last-child {
  margin-bottom: 0;
}

.cursos-info--accent {
  background: var(--blue);
}

.cursos-info--accent .section-title {
  color: var(--mustard);
}

.cursos-info-col .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.cursos-info-col .chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--mustard);
  color: var(--mustard);
  background: rgba(245, 239, 224, 0.55);
  white-space: nowrap;
  margin: 0;
}

.cursos-info-col .chip::before {
  content: '✓';
  font-weight: 600;
  font-size: 0.7rem;
}

/* clean variant: green title tag, plain list items with a green check */
.cursos-info-col h4 {
  display: inline-block;
  background: var(--blue);
  color: var(--cream);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.cursos-info-col .chips--fill {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
}

.cursos-info-col .chips--fill .chip {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.5;
  align-items: flex-start;
  white-space: normal;
}

.cursos-info-col .chips--fill .chip::before {
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 0.05rem;
}

/* ===========================
   EQUIPA PAGE
=========================== */
.equipa {
  padding: 5rem 0;
}

.equipa-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.membro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
  padding-bottom: 4rem;
  border-bottom: 1px solid #d8cfc3;
}

.membro:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.membro-reverse {
  direction: rtl;
}

.membro-reverse > * {
  direction: ltr;
}

.membro-foto-wrap {
  position: sticky;
  top: 80px;
}

.placeholder-foto {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.placeholder-foto span {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--mustard);
  opacity: 0.4;
}

.membro-info {
  padding-top: 0.5rem;
}

.membro-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mustard);
  display: block;
  margin-bottom: 0.5rem;
}

.membro-info h2 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--mustard);
  margin-bottom: 1.2rem;
}

.membro-info p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ===========================
   GALERIA
=========================== */
.galeria {
  background: var(--cream);
  padding: 6rem 0;
}

.galeria-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 0.9rem;
}

/* mosaic: every 8 photos = 1 large, 1 wide, 6 regular */
.galeria-item:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
.galeria-item:nth-child(8n+6) { grid-column: span 2; }
/* last two photos fill the right-hand side next to the large one */
.galeria-item:nth-child(18),
.galeria-item:nth-child(19) { grid-column: span 2; }

.galeria-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream);
}

.galeria-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* thumbnails are cropped to the mosaic; the lightbox shows the full photo */
  display: block;
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 4, 0.93);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: 70vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 70vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(245,239,224,0.4);
  color: var(--cream);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--cream);
}

.lightbox-arrow {
  background: none;
  border: 1px solid rgba(245,239,224,0.4);
  color: var(--cream);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin: 0 1.5rem;
  transition: border-color 0.2s;
}

.lightbox-arrow:hover {
  border-color: var(--cream);
}

@media (max-width: 900px) {
  .galeria-inner { padding: 0 2rem; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .lightbox-content { max-width: 100vw; }
  .lightbox-img { max-width: 100vw; max-height: 72vh; }
  /* arrows sit below the photo so they never get pushed off a narrow screen */
  .lightbox-arrow { position: absolute; bottom: 2rem; margin: 0; width: 2.75rem; height: 2.75rem; }
  .lightbox-prev { left: calc(50% - 3.75rem); }
  .lightbox-next { right: calc(50% - 3.75rem); }
}

@media (max-width: 400px) {
  .galeria-inner { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .galeria-item { grid-column: auto !important; grid-row: auto !important; }
}

/* ===========================
   TESTEMUNHOS (carrossel)
=========================== */
.testemunhos {
  background: var(--cream);
  padding: 6rem 0;
}

.testemunhos-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4rem;
  text-align: center;
}

.testemunho-card {
  position: relative;
  padding: 2.5rem 1rem 1rem;
  transition: opacity 0.25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testemunho-card.is-fading {
  opacity: 0;
}

.testemunho-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}

.testemunho-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 auto 1.75rem;
  max-width: 68ch;
}

.testemunho-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testemunho-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mustard);
  letter-spacing: 0.02em;
}

.testemunho-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testemunhos-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.testemunho-arrow {
  background: none;
  border: 1px solid var(--mustard);
  color: var(--mustard);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.testemunho-arrow:hover {
  background: var(--mustard);
  color: var(--cream);
}

.testemunho-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.testemunho-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--blue);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testemunho-dot:hover {
  background: var(--mustard);
}

.testemunho-dot.is-active {
  background: var(--blue-dark);
  transform: scale(1.35);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--coral);
  padding: 0.3rem 4rem;
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--cream);
  opacity: 0.85;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }
  .nav nav { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3.5rem 2rem; }
  .hero-right { padding: 3rem 2rem; }

  .page-hero { grid-template-columns: 1fr; }
  .page-hero-left, .page-hero-right { padding: 2.5rem 2rem; }

  .projeto-inner,
  .cursos-preview-inner,
  .eventos-inner,
  .newsletter-inner,
  .cursos-info-inner {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    gap: 2rem;
  }

  .projeto-cols,
  .projeto-inner--no-title .projeto-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .projeto-image { position: static; }
  .cursos-grid { grid-template-columns: 1fr; }
  .evento-row { grid-template-columns: 60px 1fr; gap: 1rem; }
  .newsletter-contacts { padding-top: 1.5rem; }

  .testemunhos-inner { padding: 0 1.5rem; }
  .testemunhos-row { gap: 0.75rem; }
  .testemunho-arrow { width: 2.25rem; height: 2.25rem; font-size: 1rem; }

  .cursos-detail-inner { padding: 0 2rem; gap: 1.5rem; }
  .curso-row { padding: 2rem; }
  .curso-row-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "text"
      "side"
      "credit";
    gap: 1.25rem;
  }

  .curso-row-body::before {
    display: none;
  }

  .membro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .membro-reverse { direction: ltr; }

  .placeholder-foto {
    aspect-ratio: 1/1;
    max-width: 200px;
  }

  .equipa-inner { padding: 0 1.5rem; gap: 3rem; }

  .footer { padding: 0.5rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-left h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .newsletter-inner { gap: 1.5rem; }
}
