/* ============================================================
   IPCB - Design System
   Instituto de Produção Socioeducativo e Cultural Brasileiro
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --ipcb-red:    #D9232D;
  --ipcb-blue:   #1E5FA8;
  --ipcb-green:  #2E8B3A;
  --ipcb-yellow: #C8A800;

  /* Neutrals */
  --white:       #FFFFFF;
  --off-white:   #F7F7F5;
  --light-gray:  #EFEFEF;
  --mid-gray:    #9A9A9A;
  --dark:        #1A1A1A;
  --text:        #2C2C2C;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Lora', serif;

  /* Spacing */
  --section-pad: 5rem 0;
  --container:   1200px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ipcb-red);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--ipcb-red);
  color: var(--white);
  border-color: var(--ipcb-red);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ipcb-red);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--ipcb-red);
}

.btn-outline {
  background: transparent;
  color: var(--ipcb-red);
  border-color: var(--ipcb-red);
}
.btn-outline:hover {
  background: var(--ipcb-red);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--ipcb-red);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--ipcb-red);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  position: relative;
  transition: color 0.2s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--ipcb-red);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ipcb-red);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  left: 0.9rem;
  right: 0.9rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: 72px;
}

/* Background com padrão de círculos inspirado na marca */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 700px at 80% 50%, rgba(30,95,168,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 20% 80%, rgba(217,35,45,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 20%, rgba(46,139,58,0.1) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Círculos decorativos da marca */
.hero-circles {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-circle:nth-child(1) {
  width: 300px; height: 300px;
  background: var(--ipcb-blue);
  top: 5%; right: 20%;
  animation-delay: 0s;
}
.hero-circle:nth-child(2) {
  width: 220px; height: 220px;
  background: var(--ipcb-red);
  top: 30%; right: 5%;
  animation-delay: -2s;
}
.hero-circle:nth-child(3) {
  width: 180px; height: 180px;
  background: var(--ipcb-green);
  top: 55%; right: 25%;
  animation-delay: -4s;
}
.hero-circle:nth-child(4) {
  width: 140px; height: 140px;
  background: var(--ipcb-yellow);
  top: 70%; right: 8%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  max-width: 720px;
  margin-left: 2rem;
}

@media (min-width: 1200px) {
  .hero-content { margin-left: calc((100vw - var(--container)) / 2 + 2rem); }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--ipcb-red);
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--ipcb-red);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-number::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--ipcb-red);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  background: rgba(217,35,45,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.section-action {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   HIGHLIGHT SECTION (Sobre preview)
   ============================================================ */
.highlight {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Linha decorativa vertical – referência às imagens da marca */
.highlight::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom,
    var(--ipcb-blue) 0%,
    var(--ipcb-red) 25%,
    var(--ipcb-green) 50%,
    var(--ipcb-yellow) 75%,
    var(--ipcb-blue) 100%);
}

.highlight-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.highlight-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  margin-bottom: 1rem;
}

.highlight-text h2 {
  color: var(--dark);
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.highlight-text p {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.0rem;
  line-height: 1.9;
}

.highlight-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-item i {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ipcb-red);
  color: white;
  border-radius: 4px;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Imagem do highlight – círculos coloridos sobrepostos */
.highlight-image {
  position: relative;
  height: 460px;
}

.highlight-circles {
  position: relative;
  width: 100%;
  height: 100%;
}

.hl-circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hl-circle-1 {
  width: 200px; height: 200px;
  background: var(--ipcb-blue);
  top: 0; left: 10%;
  opacity: 0.85;
}
.hl-circle-2 {
  width: 160px; height: 160px;
  background: var(--ipcb-red);
  top: 25%; left: 30%;
  opacity: 0.85;
}
.hl-circle-3 {
  width: 180px; height: 180px;
  background: var(--ipcb-green);
  top: 10%; right: 5%;
  opacity: 0.85;
}
.hl-circle-4 {
  width: 140px; height: 140px;
  background: var(--ipcb-yellow);
  bottom: 15%; left: 20%;
  opacity: 0.85;
}
.hl-circle-5 {
  width: 120px; height: 120px;
  background: var(--ipcb-green);
  bottom: 10%; right: 15%;
  opacity: 0.85;
}

/* Barra vertical decorativa (like brand images) */
.hl-bar {
  position: absolute;
  width: 60px;
  top: 0; bottom: 0;
  left: 5%;
  display: flex;
  flex-direction: column;
}

.hl-bar-segment {
  flex: 1;
}

.hl-bar-segment:nth-child(1) { background: var(--ipcb-blue); opacity: 0.7; }
.hl-bar-segment:nth-child(2) { background: var(--ipcb-red);  opacity: 0.7; }
.hl-bar-segment:nth-child(3) { background: var(--ipcb-green); opacity: 0.7; border-radius: 0 0 30px 30px; }

.hl-bar { border-radius: 30px 30px 0 0; overflow: hidden; }

/* ============================================================
   AREAS PREVIEW
   ============================================================ */
.areas-preview {
  background: var(--white);
}

.areas-preview .section-title,
.areas-preview .section-subtitle {
  text-align: center;
}

.areas-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
}

.area-card-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  text-align: center;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.area-card-mini::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transition: height 0.25s var(--ease);
}

.area-card-mini:nth-child(1)::before { background: var(--ipcb-blue); }
.area-card-mini:nth-child(2)::before { background: var(--ipcb-red); }
.area-card-mini:nth-child(3)::before { background: var(--ipcb-green); }
.area-card-mini:nth-child(4)::before { background: var(--ipcb-red); }
.area-card-mini:nth-child(5)::before { background: var(--ipcb-blue); }
.area-card-mini:nth-child(6)::before { background: var(--ipcb-green); }
.area-card-mini:nth-child(7)::before { background: var(--ipcb-yellow); }

.area-card-mini:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.area-card-mini:hover::before { height: 5px; }

.area-icon-mini {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s var(--ease);
}

.area-card-mini:nth-child(1) .area-icon-mini { background: rgba(30,95,168,0.1);  color: var(--ipcb-blue); }
.area-card-mini:nth-child(2) .area-icon-mini { background: rgba(217,35,45,0.1);  color: var(--ipcb-red); }
.area-card-mini:nth-child(3) .area-icon-mini { background: rgba(46,139,58,0.1);  color: var(--ipcb-green); }
.area-card-mini:nth-child(4) .area-icon-mini { background: rgba(217,35,45,0.1);  color: var(--ipcb-red); }
.area-card-mini:nth-child(5) .area-icon-mini { background: rgba(30,95,168,0.1);  color: var(--ipcb-blue); }
.area-card-mini:nth-child(6) .area-icon-mini { background: rgba(46,139,58,0.1);  color: var(--ipcb-green); }
.area-card-mini:nth-child(7) .area-icon-mini { background: rgba(200,168,0,0.12); color: var(--ipcb-yellow); }

.area-card-mini:hover .area-icon-mini { transform: scale(1.1); }

.area-card-mini h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

/* ============================================================
   PROJECTS PREVIEW
   ============================================================ */
.projects-preview {
  background: var(--off-white);
}

.projects-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.project-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-card:nth-child(1) .project-image { background: linear-gradient(135deg, rgba(30,95,168,0.15), rgba(30,95,168,0.25)); color: var(--ipcb-blue); }
.project-card:nth-child(2) .project-image { background: linear-gradient(135deg, rgba(217,35,45,0.12), rgba(217,35,45,0.22)); color: var(--ipcb-red); }
.project-card:nth-child(3) .project-image { background: linear-gradient(135deg, rgba(46,139,58,0.12), rgba(46,139,58,0.22)); color: var(--ipcb-green); }

/* Linha superior colorida por card */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.project-card { position: relative; }
.project-card:nth-child(1)::before { background: var(--ipcb-blue); }
.project-card:nth-child(2)::before { background: var(--ipcb-red); }
.project-card:nth-child(3)::before { background: var(--ipcb-green); }

.project-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.project-content p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  background: var(--light-gray);
  color: var(--mid-gray);
  transition: all 0.2s;
}

.project-card:nth-child(1):hover .tag { background: rgba(30,95,168,0.1);  color: var(--ipcb-blue); }
.project-card:nth-child(2):hover .tag { background: rgba(217,35,45,0.1);  color: var(--ipcb-red); }
.project-card:nth-child(3):hover .tag { background: rgba(46,139,58,0.1);  color: var(--ipcb-green); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--ipcb-red);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-actions .btn-primary {
  background: var(--white);
  color: var(--ipcb-red);
  border-color: var(--white);
}
.cta-actions .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--ipcb-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.625rem;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--ipcb-red);
  border-color: var(--ipcb-red);
  color: white;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ipcb-red);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a::before {
  content: '→';
  font-size: 0.7rem;
  color: var(--ipcb-red);
  opacity: 0;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::before {
  opacity: 1;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.contact-info i {
  color: var(--ipcb-red);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .highlight-content { grid-template-columns: 1fr; gap: 3rem; }
  .highlight-image { height: 320px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 0; }

  .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--light-gray); padding: 1rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.75rem 2rem; }

  .mobile-menu-toggle { display: block; }

  .hero-content { margin-left: 0; padding: 5rem 1.5rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }

  .areas-grid-preview { grid-template-columns: repeat(4, 1fr); }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-section h3 { display: block; }
}

@media (max-width: 480px) {
  .areas-grid-preview { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { text-align: center; justify-content: center; }
}

/* ============================================================
   PÁGINAS INTERNAS — ESTILOS ADICIONAIS
   ============================================================ */

/* --- Page Header (banner interno) --- */
.page-header {
  background: var(--dark);
  padding: 8rem 0 3.5rem;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(30,95,168,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 80%, rgba(217,35,45,0.1) 0%, transparent 70%);
}

/* Barra multicolorida no topo */
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--ipcb-blue) 0%, var(--ipcb-blue) 25%,
    var(--ipcb-red) 25%, var(--ipcb-red) 50%,
    var(--ipcb-green) 50%, var(--ipcb-green) 75%,
    var(--ipcb-yellow) 75%, var(--ipcb-yellow) 100%);
}

.page-header .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ipcb-red); }
.breadcrumb i { color: rgba(255,255,255,0.25); font-size: 0.6rem; }
.breadcrumb span { color: var(--ipcb-red); }

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   SOBRE — ESPECÍFICOS
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  margin-bottom: 0;
}

.about-text-main h2 {
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.about-text-main .lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--ipcb-red);
  padding-left: 1.25rem;
}

.about-text-main p {
  color: #666;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.highlight-box {
  background: var(--dark);
  color: white;
  padding: 2.5rem;
  border-radius: 6px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.highlight-box i {
  font-size: 2.5rem;
  color: var(--ipcb-red);
  margin-bottom: 1rem;
  display: block;
}

.highlight-box h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.highlight-box p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Timeline */
.timeline-section { background: var(--off-white); position: relative; overflow: hidden; }
.timeline-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--ipcb-blue), var(--ipcb-red), var(--ipcb-green), var(--ipcb-yellow));
}

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ipcb-red);
  line-height: 1;
  padding-top: 0.25rem;
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.timeline-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Missão Visão Valores */
.mvv-section { background: var(--white); }

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mvv-card {
  padding: 2.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  text-align: center;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.mvv-card:nth-child(1)::before { background: var(--ipcb-red); }
.mvv-card:nth-child(2)::before { background: var(--ipcb-blue); }
.mvv-card:nth-child(3)::before { background: var(--ipcb-green); }

.mvv-card:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }

.mvv-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.mvv-card:nth-child(1) .mvv-icon { background: rgba(217,35,45,0.1); color: var(--ipcb-red); }
.mvv-card:nth-child(2) .mvv-icon { background: rgba(30,95,168,0.1); color: var(--ipcb-blue); }
.mvv-card:nth-child(3) .mvv-icon { background: rgba(46,139,58,0.1); color: var(--ipcb-green); }

.mvv-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.mvv-card p { color: #666; font-size: 0.92rem; line-height: 1.85; }

/* Liderança */
.leadership-section { background: var(--off-white); }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leader-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.25s var(--ease);
}

.leader-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.1); transform: translateY(-3px); }

.leader-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--mid-gray);
  flex-shrink: 0;
  border: 3px solid var(--ipcb-red);
}

.leader-info h3 { font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--dark); }
.leader-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  margin-bottom: 0.75rem;
  display: block;
}
.leader-info p { color: #666; font-size: 0.9rem; line-height: 1.75; }

/* Reconhecimento */
.recognition-section { background: var(--white); }

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.recognition-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 6px;
  background: var(--off-white);
  transition: all 0.25s var(--ease);
}

.recognition-item:hover { background: var(--white); box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }

.recognition-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(217,35,45,0.1);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.recognition-item h3 { font-size: 0.95rem; margin-bottom: 0.625rem; }
.recognition-item p { color: #777; font-size: 0.87rem; line-height: 1.75; }

/* ============================================================
   PROJETOS — ESPECÍFICOS
   ============================================================ */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border-radius: 3px;
  border: 2px solid var(--light-gray);
  background: transparent;
  color: var(--mid-gray);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover { border-color: var(--ipcb-red); color: var(--ipcb-red); }
.filter-btn.active { background: var(--ipcb-red); border-color: var(--ipcb-red); color: white; }

.projects-main { background: var(--off-white); }

.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card-full {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card-full:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }

.project-image-full {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
}

[data-category*="cultura"] .project-image-full    { background: linear-gradient(135deg, rgba(217,35,45,0.1), rgba(217,35,45,0.2)); color: var(--ipcb-red); }
[data-category*="educacao"] .project-image-full   { background: linear-gradient(135deg, rgba(30,95,168,0.1), rgba(30,95,168,0.2)); color: var(--ipcb-blue); }
[data-category*="tecnologia"] .project-image-full { background: linear-gradient(135deg, rgba(30,95,168,0.08), rgba(46,139,58,0.15)); color: var(--ipcb-blue); }
[data-category*="saude"] .project-image-full      { background: linear-gradient(135deg, rgba(217,35,45,0.08), rgba(217,35,45,0.18)); color: var(--ipcb-red); }
[data-category*="meio-ambiente"] .project-image-full { background: linear-gradient(135deg, rgba(46,139,58,0.1), rgba(46,139,58,0.2)); color: var(--ipcb-green); }
[data-category*="esporte"] .project-image-full    { background: linear-gradient(135deg, rgba(200,168,0,0.1), rgba(200,168,0,0.2)); color: var(--ipcb-yellow); }
[data-category*="cidadania"] .project-image-full  { background: linear-gradient(135deg, rgba(46,139,58,0.1), rgba(30,95,168,0.15)); color: var(--ipcb-green); }

.project-status {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  background: rgba(46,139,58,0.15);
  color: var(--ipcb-green);
  border: 1px solid rgba(46,139,58,0.3);
}

.project-status.completed {
  background: rgba(154,154,154,0.12);
  color: var(--mid-gray);
  border-color: rgba(154,154,154,0.3);
}

.project-content-full { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.project-header h3 { font-size: 1rem; color: var(--dark); line-height: 1.3; }

.project-date {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mid-gray);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.project-description { color: #666; font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.25rem; }

.project-details { margin-bottom: 1.25rem; }

.project-stats-mini {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.stat-mini { text-align: center; }

.stat-number-mini {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ipcb-red);
  line-height: 1;
}

.stat-label-mini {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}

.project-features h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.project-features ul { padding-left: 0; }

.project-features li {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ipcb-red);
  font-size: 0.75rem;
}

.project-card-full .project-tags { margin-bottom: 1.25rem; }

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-project {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  background: var(--ipcb-red);
  color: white;
  border: 2px solid var(--ipcb-red);
  transition: all 0.2s;
}

.btn-project:hover { background: transparent; color: var(--ipcb-red); }

.btn-project-outline {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--light-gray);
  transition: all 0.2s;
}

.btn-project-outline:hover { border-color: var(--dark); }

/* Project hidden (filter) */
.project-card-full.hidden { display: none; }

/* Stats summary */
.projects-stats { background: var(--dark); }

.projects-stats .section-title { color: white; text-align: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: all 0.25s;
}

.stat-card:hover { border-color: var(--ipcb-red); background: rgba(217,35,45,0.05); }

.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(217,35,45,0.15);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   PARCERIAS — ESPECÍFICOS
   ============================================================ */
.partnerships-intro { max-width: 800px; margin: 0 auto; text-align: center; }
.partnerships-intro h2 { color: var(--dark); margin-bottom: 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.partnerships-intro .lead { font-size: 1.05rem; color: #555; line-height: 1.9; margin-bottom: 2.5rem; }

.partnership-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem;
  background: var(--off-white);
  border-radius: 6px;
}

.partnership-stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ipcb-red);
  display: block;
  line-height: 1;
}

.partnership-stat .stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.4rem;
  display: block;
}

.partners-section { }
.partners-section.alt { background: var(--off-white); }

.partners-section .section-title { text-align: left; }
.partners-section .section-subtitle { text-align: left; margin: 0 0 2.5rem; }

.partners-grid-gov {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.partner-card-major {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  border: 2px solid var(--light-gray);
  transition: all 0.25s var(--ease);
}

.partner-card-major:hover { border-color: var(--ipcb-red); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }

.partner-logo {
  width: 56px; height: 56px;
  border-radius: 4px;
  background: rgba(217,35,45,0.08);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.partner-card-major h3 { font-size: 1rem; margin-bottom: 0.625rem; color: var(--dark); }
.partner-card-major p { font-size: 0.88rem; color: #666; line-height: 1.75; margin-bottom: 1rem; }

.partner-projects { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  background: rgba(217,35,45,0.08);
  color: var(--ipcb-red);
}

/* Internacional */
.international-partners { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }

.partner-card-intl {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem;
  border: 2px solid var(--ipcb-blue);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partner-logo-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(30,95,168,0.1);
  color: var(--ipcb-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.partner-card-intl h3 { font-size: 1.2rem; color: var(--dark); }
.partner-card-intl p { color: #666; font-size: 0.9rem; line-height: 1.75; }

.partnership-details { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.detail-item { display: flex; align-items: center; gap: 0.625rem; font-size: 0.85rem; color: var(--mid-gray); font-family: var(--font-display); font-weight: 600; }
.detail-item i { color: var(--ipcb-blue); }

.embassies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.embassy-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid var(--light-gray);
  transition: all 0.2s;
}

.embassy-card:hover { border-color: var(--ipcb-blue); transform: translateY(-2px); }

.flag-placeholder {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(30,95,168,0.08);
  color: var(--ipcb-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.embassy-card h4 { font-size: 0.88rem; margin-bottom: 0.375rem; color: var(--dark); }
.embassy-card p { font-size: 0.82rem; color: var(--mid-gray); }

/* Corporativos */
.tier-section { margin-bottom: 3rem; }
.tier-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
}

.partners-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.corporate-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.75rem;
  border: 2px solid var(--light-gray);
  text-align: center;
  transition: all 0.25s;
}

.corporate-card:hover { border-color: var(--ipcb-green); transform: translateY(-3px); }

.corporate-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(46,139,58,0.1);
  color: var(--ipcb-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.corporate-card h4 { font-size: 0.95rem; margin-bottom: 0.375rem; color: var(--dark); }
.corporate-card > p { font-size: 0.85rem; color: #666; margin-bottom: 0.75rem; }
.investment-info { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--ipcb-green); }

.partners-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }

.partner-item-simple {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--light-gray);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s;
}

.partner-item-simple:hover { border-color: var(--ipcb-red); color: var(--ipcb-red); }
.partner-item-simple i { color: var(--ipcb-red); font-size: 0.9rem; }

/* Acadêmicos */
.academic-partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.academic-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.25s;
}

.academic-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.1); transform: translateY(-3px); }

.university-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(30,95,168,0.1);
  color: var(--ipcb-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.academic-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--dark); }
.academic-card > p { color: #666; font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.5rem; }

.academic-details { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; }

.academic-projects h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.academic-projects li {
  font-size: 0.85rem;
  color: #666;
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}

.academic-projects li::before { content: '→'; position: absolute; left: 0; color: var(--ipcb-blue); font-size: 0.7rem; }

.academic-stats { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

.academic-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ipcb-blue);
  display: block;
  line-height: 1;
}

.academic-stat .stat-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.2rem;
  display: block;
}

/* Mídia */
.media-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

.media-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 2px solid var(--light-gray);
  transition: all 0.25s;
}

.media-card:hover { border-color: var(--ipcb-yellow); transform: translateY(-3px); }

.media-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(200,168,0,0.1);
  color: var(--ipcb-yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.media-card h4 { font-size: 0.88rem; margin-bottom: 0.375rem; color: var(--dark); }
.media-card p { font-size: 0.78rem; color: var(--mid-gray); }

/* Benefícios */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.benefit-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  transition: all 0.25s;
}

.benefit-card:hover { border-color: var(--ipcb-red); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(217,35,45,0.08);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
  transition: all 0.25s;
}

.benefit-card:hover .benefit-icon { background: var(--ipcb-red); color: white; }
.benefit-card h3 { font-size: 0.95rem; margin-bottom: 0.625rem; }
.benefit-card p { font-size: 0.87rem; color: #666; line-height: 1.75; }

/* Partnership CTA */
.partnership-cta { background: var(--dark); }
.partnership-cta .cta-content { text-align: center; max-width: 900px; margin: 0 auto; }
.partnership-cta h2 { color: white; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.partnership-cta > .cta-content > p { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.8; }

.partnership-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.partnership-type {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1.75rem;
  text-align: left;
  transition: all 0.2s;
}

.partnership-type:hover { border-color: var(--ipcb-red); background: rgba(217,35,45,0.08); }
.partnership-type h3 { color: white; font-size: 0.95rem; margin-bottom: 0.5rem; }
.partnership-type p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.7; }

/* ============================================================
   EVENTOS — ESPECÍFICOS
   ============================================================ */
.events-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card-event {
  text-align: center;
  padding: 2rem;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  transition: all 0.25s;
}

.stat-card-event:hover { border-color: var(--ipcb-red); transform: translateY(-3px); }

.stat-card-event .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ipcb-red);
  display: block;
  margin-bottom: 0.375rem;
}

.stat-card-event .stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.events-category { }
.events-category.alt { background: var(--off-white); }

.category-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-gray);
}

.category-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(217,35,45,0.1);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.category-header h2 { color: var(--dark); font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.category-header p { color: var(--mid-gray); font-size: 0.9rem; margin-top: 0.2rem; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent;
}

.event-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-color: var(--ipcb-red); }

.event-image {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  position: relative;
  background: linear-gradient(135deg, rgba(217,35,45,0.08), rgba(217,35,45,0.16));
  color: var(--ipcb-red);
}

.events-category.alt .event-image { background: linear-gradient(135deg, rgba(30,95,168,0.08), rgba(30,95,168,0.16)); color: var(--ipcb-blue); }

.event-year {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

.event-content { padding: 1.25rem; }
.event-content h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--dark); line-height: 1.3; }
.event-content p { font-size: 0.85rem; color: #666; line-height: 1.7; margin-bottom: 0.875rem; }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-location, .event-audience {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.event-location i, .event-audience i { color: var(--ipcb-red); }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  padding: 2rem;
  overflow-y: auto;
}

.modal-content {
  background: var(--white);
  border-radius: 8px;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.modal-header {
  background: var(--dark);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-top: 4px solid var(--ipcb-red);
}

.modal-header h2 { color: white; font-size: 1.2rem; flex: 1; }

.close {
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.close:hover { color: white; }

.modal-body { padding: 2.5rem; }

.modal-event-year {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  margin-bottom: 1.25rem;
}

.modal-event-description { color: #555; font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }

.modal-event-details { color: #555; font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.modal-event-details h4 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); margin-bottom: 0.5rem; margin-top: 1rem; }

.modal-event-impact {
  background: var(--off-white);
  padding: 1.25rem;
  border-radius: 4px;
  border-left: 3px solid var(--ipcb-red);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

.modal-event-impact h4 { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ipcb-red); margin-bottom: 0.5rem; }

.gallery-placeholder {
  text-align: center;
  padding: 2.5rem;
  background: var(--off-white);
  border-radius: 4px;
  color: var(--mid-gray);
}

.gallery-placeholder i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.gallery-placeholder p { font-size: 0.88rem; }

/* ============================================================
   CONTATO — ESPECÍFICOS
   ============================================================ */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-section h2 { margin-bottom: 1rem; color: var(--dark); }
.contact-intro { color: #666; font-size: 0.95rem; line-height: 1.85; margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }

.contact-item-detailed {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(217,35,45,0.1);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-text h3 { font-size: 0.88rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark); margin-bottom: 0.375rem; }
.contact-text p { font-size: 0.92rem; color: #555; line-height: 1.6; }
.contact-text a { color: var(--ipcb-red); }
.contact-text a:hover { text-decoration: underline; }
.contact-text small { font-size: 0.78rem; color: var(--mid-gray); font-family: var(--font-display); }

.social-section h3 { font-size: 0.88rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark); margin-bottom: 0.375rem; }
.social-section p { font-size: 0.85rem; color: #666; margin-bottom: 1rem; }

.social-links-extended { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  transition: all 0.2s;
}

.social-item:hover { border-color: var(--ipcb-red); color: var(--ipcb-red); }
.social-item i { font-size: 0.9rem; }

/* Form */
.form-container {
  background: var(--white);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-top: 4px solid var(--ipcb-red);
}

.form-container h2 { margin-bottom: 0.375rem; color: var(--dark); font-size: 1.4rem; }
.form-container > p { color: #666; font-size: 0.9rem; margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ipcb-red);
  box-shadow: 0 0 0 3px rgba(217,35,45,0.08);
}

.form-group textarea { resize: vertical; min-height: 140px; }
.form-group small { font-size: 0.75rem; color: var(--mid-gray); font-family: var(--font-display); display: block; margin-top: 0.3rem; }

/* Checkbox */
.checkbox-group { margin-bottom: 0.875rem; }

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #555 !important;
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 2px solid var(--light-gray);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  cursor: pointer;
  accent-color: var(--ipcb-red);
}

.submit-btn-detailed {
  width: 100%;
  padding: 1rem;
  background: var(--ipcb-red);
  color: white;
  border: 2px solid var(--ipcb-red);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1rem;
}

.submit-btn-detailed:hover { background: transparent; color: var(--ipcb-red); }

/* Quick Contact */
.quick-contact { background: var(--off-white); }

.quick-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quick-option {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--light-gray);
  transition: all 0.25s;
}

.quick-option:hover { border-color: var(--ipcb-red); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.option-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(217,35,45,0.08);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
  transition: all 0.25s;
}

.quick-option:hover .option-icon { background: var(--ipcb-red); color: white; }
.quick-option h3 { font-size: 0.95rem; margin-bottom: 0.625rem; }
.quick-option p { font-size: 0.85rem; color: #666; line-height: 1.7; margin-bottom: 1.25rem; }

.option-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ipcb-red);
  border-bottom: 2px solid rgba(217,35,45,0.3);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
}

.option-link:hover { border-color: var(--ipcb-red); }

/* Map */
.map-section { background: var(--white); }

.map-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }

.map-placeholder {
  background: var(--off-white);
  border-radius: 6px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--light-gray);
}

.map-content { text-align: center; padding: 3rem; }
.map-content i { font-size: 3rem; color: var(--ipcb-red); display: block; margin-bottom: 1rem; }
.map-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.map-content p { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }

.map-actions { display: flex; flex-direction: column; gap: 0.625rem; }

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ipcb-red);
  color: var(--ipcb-red);
  transition: all 0.2s;
}

.map-btn:hover { background: var(--ipcb-red); color: white; }

.location-info h3 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--dark); }

.access-info { display: flex; flex-direction: column; gap: 1.25rem; }

.access-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.access-item i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(217,35,45,0.08);
  color: var(--ipcb-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.access-item strong { display: block; font-family: var(--font-display); font-size: 0.82rem; margin-bottom: 0.2rem; color: var(--dark); }
.access-item p { font-size: 0.85rem; color: #666; line-height: 1.65; }

/* FAQ */
.faq-section { background: var(--off-white); }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border-radius: 6px;
  border: 2px solid var(--light-gray);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--ipcb-red); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 { font-size: 0.95rem; color: var(--dark); font-weight: 700; line-height: 1.4; }
.faq-question i { color: var(--mid-gray); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--ipcb-red); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: #666;
  font-size: 0.92rem;
  line-height: 1.8;
}

.faq-answer a { color: var(--ipcb-red); }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   RESPONSIVE ADICIONAL
   ============================================================ */
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; }
  .highlight-box { position: static; }
  .mvv-grid { grid-template-columns: 1fr; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid-gov { grid-template-columns: 1fr; }
  .academic-partners { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .partnership-types { grid-template-columns: 1fr; }
  .partners-tier-grid { grid-template-columns: repeat(2, 1fr); }
  .international-partners { grid-template-columns: 1fr; }
  .embassies-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .quick-options { grid-template-columns: repeat(2, 1fr); }
  .map-container { grid-template-columns: 1fr; }
  .partnership-stat-grid { grid-template-columns: repeat(2,1fr); }
  .academic-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-year { font-size: 1.1rem; }
  .partnership-stats { flex-direction: column; gap: 1.5rem; text-align: center; }
  .events-stats { grid-template-columns: repeat(2, 1fr); }
  .recognition-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-list { grid-template-columns: 1fr; }
  .embassies-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-container { padding: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}


/* ============================================================
   IDENTIDADE VISUAL — MARCA D'ÁGUA & ELEMENTOS DECORATIVOS
   ============================================================ */

/* ── 1. Ondas decorativas no canto esquerdo das seções ─────
   Referência: imagem "A Instituição" — arcos coloridos sutis  */

.highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 220px;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 500'%3E%3Cpath d='M-10 80 Q90 160 -10 240' stroke='%231E5FA8' stroke-width='3' fill='none' opacity='0.12'/%3E%3Cpath d='M-30 80 Q110 160 -30 240' stroke='%231E5FA8' stroke-width='2' fill='none' opacity='0.08'/%3E%3Cpath d='M10 120 Q100 200 10 280' stroke='%23D9232D' stroke-width='2.5' fill='none' opacity='0.1'/%3E%3Cpath d='M-10 160 Q80 240 -10 320' stroke='%232E8B3A' stroke-width='2' fill='none' opacity='0.09'/%3E%3Cpath d='M10 200 Q90 280 10 360' stroke='%23C8A800' stroke-width='2' fill='none' opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 160px;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 600'%3E%3Cpath d='M170 100 Q70 200 170 300' stroke='%231E5FA8' stroke-width='2.5' fill='none' opacity='0.08'/%3E%3Cpath d='M190 80 Q50 200 190 320' stroke='%232E8B3A' stroke-width='2' fill='none' opacity='0.07'/%3E%3Cpath d='M170 200 Q70 300 170 400' stroke='%23C8A800' stroke-width='2' fill='none' opacity='0.07'/%3E%3C/svg%3E");
  background-size: auto 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* ── 2. Barra vertical com bolinha — lateral das páginas ───
   Exatamente como no portfólio IPCB                          */

.page-header {
  position: relative;
}

/* Barra vertical fina azul-claro + bolinha no topo */
.ipcb-side-bar {
  position: absolute;
  right: 3rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(100,160,220,0.6) 0%,
    rgba(100,160,220,0.1) 100%
  );
  pointer-events: none;
  z-index: 2;
  display: none;
}

.ipcb-side-bar::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100,160,220,0.7);
}

@media (min-width: 1200px) {
  .ipcb-side-bar { display: block; }
}

/* ── 3. Círculos coloridos decorativos no page-header ──────
   Inspirados nos círculos das imagens institucionais          */

.page-header::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Ccircle cx='60' cy='50' r='40' fill='%231E5FA8' opacity='0.12'/%3E%3Ccircle cx='160' cy='80' r='32' fill='%23D9232D' opacity='0.1'/%3E%3Ccircle cx='140' cy='170' r='36' fill='%232E8B3A' opacity='0.1'/%3E%3Ccircle cx='50' cy='180' r='28' fill='%23C8A800' opacity='0.1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  display: none;
}

@media (min-width: 1100px) {
  .page-header::after { display: block; }
}

/* ── 4. Ondas no canto esquerdo das seções internas ────────
   Primeira seção após o page-header                          */

.page-header + .section {
  position: relative;
  overflow: hidden;
}

.page-header + .section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 260px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 300'%3E%3Cpath d='M-20 60 Q100 130 -20 200' stroke='%231E5FA8' stroke-width='3' fill='none' opacity='0.1'/%3E%3Cpath d='M-40 60 Q120 130 -40 200' stroke='%231E5FA8' stroke-width='2' fill='none' opacity='0.07'/%3E%3Cpath d='M0 100 Q110 170 0 240' stroke='%23D9232D' stroke-width='2.5' fill='none' opacity='0.08'/%3E%3Cpath d='M-20 130 Q90 200 -20 270' stroke='%232E8B3A' stroke-width='2' fill='none' opacity='0.08'/%3E%3Cpath d='M0 160 Q100 230 0 300' stroke='%23C8A800' stroke-width='2' fill='none' opacity='0.07'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-header + .section .container {
  position: relative;
  z-index: 1;
}

/* ── 5. Garantir z-index em seções com ::before existente ── */
.highlight .container,
.timeline-section .container {
  position: relative;
  z-index: 1;
}

/* ── Mobile: desativa efeitos pesados ──────────────────────── */
@media (max-width: 768px) {
  .page-header::after { display: none !important; }
  .ipcb-side-bar { display: none !important; }
  .highlight::before,
  .timeline-section::before,
  .page-header + .section::before {
    opacity: 0.5;
    width: 140px;
  }
}


/* ============================================================
   CARDS COM FOTO REAL
   ============================================================ */
.project-image-photo {
  height: 200px !important;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}

.project-image-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
  filter: none;
}

.project-card-full:hover .project-image-photo img {
  transform: scale(1.05);
}

.project-image-photo .project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ── Filtro de projetos — correção definitiva ─────────────── */
.project-card-full {
  opacity: 1 !important;
  transform: none !important;
}

.project-card-full.hidden {
  display: none !important;
}

/* Card sem foto — ícone */
.project-image-icon {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1E5FA8 0%, #2E8B3A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-image-icon .project-icon {
  font-size: 5rem;
  color: rgba(255,255,255,0.25);
}
.project-image-icon .project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
}