:root {
  --black: #020000;
  --charcoal: #151515;
  --graphite: #404040;
  --paper: #f1fbff;
  --soft-gray: #d8d8d8;
  --accent: #ffb347;
  --gold-text: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728);
  --gold-rich: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--paper);
  background: var(--black);
  line-height: 1.8;
}

main > section {
  scroll-margin-top: 72px;
}

a {
  color: inherit;
}

.site-nav {
  min-height: 68px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  letter-spacing: 0;
}

.navbar-brand img {
  width: 190px;
  max-width: 46vw;
}

.nav-link {
  min-width: 88px;
  padding: 1rem 1.2rem !important;
  border-radius: 6px;
  color: #f5f5f5;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #111;
  background: linear-gradient(180deg, #f4df91 0%, #dfbd63 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 0 rgba(0, 0, 0, 0.35);
}

.split-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-section > * {
  position: relative;
  z-index: 2;
}

.split-copy,
.split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem);
}

.split-copy {
  flex-direction: column;
}

.split-copy p {
  max-width: 660px;
  font-size: 0.93rem;
}

/* V2: fotos inteiras, sem máscara de dissolução — cantos arredondados */
.split-media img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hero {
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  background: var(--black);
  border-bottom: 1px solid rgba(252, 246, 186, 0.32);
}

.logo-panel {
  background: transparent;
}

.hero-logo {
  width: min(640px, 100%);
}

.bio-section,
.lesson-section,
.contact-section {
  background: linear-gradient(102deg, var(--charcoal) 0%, var(--black) 100%);
}

.script-title {
  position: relative;
  display: inline-block;
  max-width: 820px;
  margin: 0 0 2.4rem;
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.55rem, 4.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fcf6ba;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: clamp(2.7rem, 6.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.18;
  color: #fcf6ba;
}

.script-title[data-text]::after,
.section-title[data-text]:not(.dark-title)::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: var(--gold-rich);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-title {
  color: #000;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.text-link,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.3rem 0.1rem;
  border: 0;
  border-bottom: 1px solid #fff;
  color: #fff;
  background: transparent;
  text-decoration: none;
  font: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.outline-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.news-section {
  background: var(--black);
}

.light-panel {
  color: #000;
  background: var(--soft-gray);
}

.agenda {
  width: min(260px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #e5e5e5;
}

.agenda-date {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.agenda-date.active {
  background: #222;
  color: #fff;
}

.agenda-details {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
}

.agenda-details strong {
  color: var(--accent);
}

/* Projekte: calçada da fama — fundo dourado igual ao "Sehen & Hören" */
.projects-section {
  min-height: 100vh;
  padding: clamp(5rem, 9vw, 8rem) 0;
  color: #220000;
  background: url("../assets/Slide-11.png") center / cover no-repeat;
}

.fame-walk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
  justify-items: center;
}

.fame-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  max-width: 340px;
  color: #220000;
  text-align: center;
  text-decoration: none;
}

.fame-plaque {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: radial-gradient(circle at 32% 24%, #3a3a3a 0%, #151515 58%, #050505 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(252, 246, 186, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fame-item:hover .fame-plaque,
.fame-item:focus-visible .fame-plaque {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(252, 246, 186, 0.8);
}

.fame-star {
  position: relative;
  display: grid;
  place-items: center;
  width: 86%;
  aspect-ratio: 1;
}

/* estrela de 5 pontas igual à do logo, em degradê dourado */
.fame-star::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-rich);
  clip-path: polygon(
    50% 0%,
    61.2% 34.6%,
    97.6% 34.6%,
    68.2% 55.9%,
    79.4% 90.5%,
    50% 69.1%,
    20.6% 90.5%,
    31.8% 55.9%,
    2.4% 34.6%,
    38.8% 34.6%
  );
}

.fame-star-name {
  position: relative;
  z-index: 1;
  max-width: 48%;
  transform: translateY(5%);
  font-size: clamp(0.72rem, 1.3vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2a1a00;
}

.fame-desc {
  flex: 1 1 auto;
  margin-top: 1.6rem;
  font-size: 0.95rem;
}

.fame-link {
  margin-top: 1rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
}

.fame-item:hover .fame-link,
.fame-item:focus-visible .fame-link {
  color: #6b4a00;
}

.gallery-section {
  min-height: 100vh;
  padding: clamp(5rem, 9vw, 8rem) 0;
  color: #220000;
  background: url("../assets/Slide-11.png") center / cover no-repeat;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.gallery-item--hidden {
  display: none;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1.4rem;
  border: 1px solid #220000;
  border-radius: 999px;
  color: #220000;
  background: rgba(255, 255, 255, 0.65);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.gallery-toggle:hover,
.gallery-toggle:focus-visible {
  color: #fff;
  background: #220000;
}

.gallery-toggle-arrow {
  flex: none;
  transition: transform 0.3s ease;
}

.gallery-toggle.is-expanded .gallery-toggle-arrow {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-toggle-arrow {
    transition: none;
  }
}

.email-box {
  display: inline-flex;
  justify-content: center;
  min-width: 228px;
  margin-top: 1.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.email-box:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #000;
  background: url("../assets/Slide-11.png") center / cover no-repeat;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.bio-modal {
  color: #fff;
  background: linear-gradient(102deg, var(--graphite) 0%, #0d0000 100%);
}

.bio-modal .script-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4rem);
}

.gallery-modal {
  position: relative;
  border: 0;
  background: transparent;
}

.gallery-modal img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.gallery-modal-credit {
  width: fit-content;
  max-width: 100%;
  margin: 0.6rem auto 0;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 991px) {
  .site-nav {
    background: rgba(0, 0, 0, 0.94);
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .split-media {
    min-height: 50vh;
    padding: 4rem 2rem;
  }

  .logo-panel {
    min-height: 42vh;
    border-radius: 0;
  }

  .split-media img {
    max-height: 60vh;
  }

  .fame-walk {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .fame-item {
    max-width: 300px;
  }

  .fame-star-name {
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .navbar-brand img {
    width: 150px;
  }

  .split-copy,
  .split-media {
    padding: 3rem 1.25rem;
  }


  .section-title {
    font-size: 2.6rem;
  }

  .script-title {
    font-size: 2.85rem;
  }

  .fame-item {
    max-width: 260px;
  }

  .fame-star-name {
    font-size: 0.82rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Páginas internas: Impressum/Datenschutz e erro 404 */
.legal-section,
.error-section {
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, var(--black) 0%, var(--charcoal) 100%);
}

.legal-section .section-title,
.error-section .section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 2.5rem;
}

.legal-content {
  max-width: 900px;
  font-size: 0.92rem;
  color: var(--soft-gray);
}

.legal-content h2 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400;
  color: #fcf6ba;
}

.legal-content h3 {
  margin: 1.9rem 0 0.7rem;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--paper);
}

.legal-content h4 {
  margin: 1.3rem 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--paper);
}

.legal-content p,
.legal-content li {
  line-height: 1.85;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  color: #dfbd63;
  overflow-wrap: anywhere;
}

.legal-content a:hover,
.legal-content a:focus {
  color: #fcf6ba;
}

.legal-back {
  margin-top: 3rem;
}

.error-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.error-code {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background: var(--gold-rich);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-text {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--soft-gray);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.error-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft-gray);
  border-bottom: 1px solid rgba(223, 189, 99, 0.5);
}

.error-links a:hover,
.error-links a:focus {
  color: #fcf6ba;
  border-bottom-color: #fcf6ba;
}

@media (max-width: 767.98px) {
  .legal-section,
  .error-section {
    padding: 6rem 0 3rem;
  }

  .legal-content {
    font-size: 0.88rem;
  }
}

/* Descrição do evento vinda do editor do painel */
.agenda-details .event-description {
  margin: 4px 0;
}

.agenda-details .event-description p,
.agenda-details .event-description div {
  margin: 0 0 4px;
}

.agenda-details .event-description ul,
.agenda-details .event-description ol {
  margin: 4px 0;
  padding-left: 18px;
  text-align: left;
}

.agenda-details .event-description a {
  color: var(--accent);
  text-decoration: underline;
}
