:root {
  --ink: #26272b;
  --muted: #646872;
  --line: #ded6c7;
  --paper: #f8f5ef;
  --white: #ffffff;
  --gold: #d6ad61;
  --gold-dark: #a98233;
  --teal: #0f7c86;
  --blue: #125f9d;
  --green: #2d7b57;
  --purple: #5d2b7c;
  --shadow: 0 18px 60px rgba(38, 39, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(38, 39, 43, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  overflow: hidden;
}

.brand img {
  width: 200px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a,
.nav-contact,
.footer a {
  text-decoration: none;
}

.main-nav a:hover,
.nav-contact:hover,
.footer a:hover {
  color: var(--gold-dark);
}

.nav-contact {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-toggle,
.button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(38, 39, 43, 0.12);
}

.lang-current {
  color: var(--gold-dark);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 34px);
  min-height: calc(100svh - 78px);
  padding: clamp(34px, 5vw, 72px) clamp(18px, 6vw, 92px) clamp(34px, 5vw, 64px);
  overflow: hidden;
  background: var(--white);
}

.hero::after {
  display: none;
}

.hero-footer {
  position: relative;
  z-index: 1;
}

.hero-composite {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(0, 1fr);
  gap: clamp(22px, 3.8vw, 58px);
  align-items: center;
  width: min(1420px, 100%);
  margin: 0 auto;
}

.hero-symbol {
  width: 100%;
  max-height: min(72svh, 820px);
  object-fit: contain;
}

.hero-type h1 {
  max-width: 820px;
  margin: 0 0 24px;
  color: #392660;
  font-size: clamp(4rem, 7vw, 6.55rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-type h1 span,
.hero-type h1 strong {
  display: block;
}

.hero-type h1 strong {
  width: max-content;
  max-width: 100%;
  font-size: 1.34em;
  line-height: 0.9;
  background: linear-gradient(90deg, #392660 0%, #8f3a99 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-type p {
  max-width: 640px;
  margin: 0;
  color: #392660;
  font-size: clamp(1.7rem, 2.45vw, 2.32rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(38, 39, 43, 0.12);
}

.button:hover {
  transform: translateY(-1px);
}

.event-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(248, 245, 239, 0.72);
  border: 1px solid rgba(38, 39, 43, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-card div {
  min-width: min(220px, 100%);
}

.event-card span,
.goal-panel span,
.news-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1.2;
}

.section {
  scroll-margin-top: 96px;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 92px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 900px;
}

.about {
  background: var(--white);
}

.about .section-heading {
  grid-template-columns: minmax(0, 860px);
  gap: 0;
  width: min(1128px, 100%);
  margin: 0 auto 36px;
}

.about .section-heading h2 {
  max-width: 860px;
  font-size: clamp(2.35rem, 4.5vw, 4.15rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: start;
  width: min(1128px, 100%);
  margin: 0 auto;
}

.about-text {
  max-width: 720px;
  color: #3c3f45;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.goal-panel {
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, #392660 0%, #5d2b7c 46%, #9a3b96 100%);
  border-radius: 8px;
}

.goal-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.goal-panel strong {
  font-size: clamp(1.3rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1128px, 100%);
  margin: 34px auto 0;
}

.pillars article,
.objectives article,
.news-grid article {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(38, 39, 43, 0.1);
  border-radius: 8px;
}

.pillars article {
  min-height: 208px;
}

.pillar-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: var(--purple);
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.academia-icon {
  --icon: url("assets/ppt-media/image4.png");
}

.industry-icon {
  --icon: url("assets/ppt-media/image5.png");
}

.ecosystem-icon {
  --icon: url("assets/ppt-media/image6.png");
}

.pillars p,
.objectives p,
.news-grid p,
.registration p,
.footer p {
  color: var(--muted);
}

.impact {
  color: var(--white);
  background: var(--ink);
}

.impact .eyebrow {
  color: var(--gold);
}

.impact-lead {
  max-width: 980px;
  margin-bottom: 42px;
}

.objectives {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.objectives article {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.objectives p {
  color: rgba(255, 255, 255, 0.68);
}

.program {
  background: #f1ece3;
}

.program-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.day-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(38, 39, 43, 0.1);
  border-radius: 8px;
}

.day-header {
  min-height: 158px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, #392660 0%, #5d2b7c 46%, #9a3b96 100%);
}

.day-header span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid rgba(38, 39, 43, 0.08);
}

.timeline time {
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline strong,
.timeline span {
  grid-column: 2;
}

.timeline strong {
  line-height: 1.2;
}

.timeline span {
  color: var(--muted);
  font-size: 0.94rem;
}

.visit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--white);
}

.visit-gallery img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 92px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(38, 39, 43, 0.9), rgba(38, 39, 43, 0.66)),
    url("assets/site/tecnopuc-registration.webp") center / cover no-repeat;
}

.registration h2 {
  max-width: 780px;
}

.registration p {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
}

.registration .button.primary {
  min-width: 270px;
  background: var(--gold);
  color: var(--ink);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.is-open {
  display: flex;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 32, 36, 0.68);
  backdrop-filter: blur(8px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(26px, 4vw, 38px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.contact-dialog h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(38, 39, 43, 0.12);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-link-panel {
  display: grid;
  gap: 18px;
}

.contact-link-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-email-link {
  width: max-content;
  max-width: 100%;
  word-break: break-word;
}

.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-dark);
  font-weight: 900;
  text-decoration: none;
}

.news-grid a:hover {
  color: var(--teal);
}

.footer {
  scroll-margin-top: 150px;
  display: grid;
  gap: 18px;
  padding: 34px clamp(18px, 6vw, 92px) 28px;
  color: var(--white);
  background: #1f2024;
}

.footer-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-row-duo {
  grid-template-columns: auto auto;
  gap: 28px;
  justify-content: start;
}

.footer-partner-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.footer strong {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}

.footer-logos img {
  width: auto;
  max-width: 142px;
  max-height: 38px;
  object-fit: contain;
}

.footer-row:nth-child(1) .footer-logos img {
  max-width: 170px;
  max-height: 44px;
}

.footer-row:nth-child(1) .footer-logos img.coorganization-logo {
  max-width: 220px;
  max-height: 56px;
}

.footer-row:nth-child(2) .footer-logos img {
  max-width: 150px;
  max-height: 40px;
}

.footer-row:nth-child(2) .footer-logos .sponsor-logo-combo {
  max-width: 330px;
  max-height: 48px;
}

.footer-row:nth-child(3) .footer-logos img:nth-child(-n + 3) {
  max-width: 190px;
  max-height: 52px;
}

.footer-row:nth-child(3) .footer-logos img.support-logo-invest {
  width: min(387px, 100%);
  max-width: 387px;
  max-height: 68px;
}

.footer-row:nth-child(3) .footer-logos img.support-logo-brde {
  max-width: 230px;
  max-height: 62px;
}

.footer-row:nth-child(3) .footer-logos img.support-logo-fapergs {
  width: 145px;
  max-width: 145px;
  max-height: 54px;
}

.footer-row:nth-child(3) .footer-logos img.support-logo-fiergs {
  max-width: 168px;
  max-height: 46px;
}

.footer-row:nth-child(4) .footer-logos img {
  max-width: 132px;
  max-height: 36px;
}

@media (max-width: 1040px) {
  .hero-composite,
  .hero-footer,
  .about-grid,
  .registration,
  .footer-row,
  .footer-row-duo,
  .footer-partner-group {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .footer {
    scroll-margin-top: 172px;
  }

  .program-days,
  .objectives,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .brand img {
    width: 164px;
    height: 44px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    font-size: 0.82rem;
    scrollbar-width: thin;
  }

  .nav-contact {
    flex: 0 0 auto;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
    background: var(--white);
  }

  .hero-composite {
    gap: 12px;
  }

  .hero-symbol {
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .hero-type h1 {
    font-size: clamp(2.9rem, 12.2vw, 3.9rem);
  }

  .hero-type h1 span {
    white-space: normal;
  }

  .hero-type p {
    font-size: clamp(1.25rem, 5.8vw, 1.8rem);
  }

  .hero::after {
    display: none;
  }

  .section-heading,
  .pillars,
  .program-days,
  .objectives,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 54px 1fr;
    padding: 16px 18px;
  }

  .registration .button.primary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
