/* ==========================================================================
   Moema Gramacho 1513 - Deputada Federal
   Paleta extraida da nova identidade visual (marca oficial da campanha)
   ========================================================================== */
:root {
  /* Cores da marca */
  --green: #97c130;
  --green-dark: #6f9422;
  --green-soft: #eef4dc;
  --red: #9f0e01;
  --red-deep: #790900;
  --yellow: #ffdb29;
  --graphite: #232323;

  /* Neutros derivados */
  --ink: #232323;
  --muted: #5b5b5b;
  --paper: #f7f6f2;
  --paper-2: #eceae2;
  --white: #ffffff;
  --line: rgba(35, 35, 35, 0.12);
  --shadow: 0 24px 70px -45px rgba(35, 35, 35, 0.75);

  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.02;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.eyebrow,
.kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker {
  color: var(--green);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.eyebrow.light {
  color: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.8);
}

.btn-light {
  background: var(--yellow);
  color: var(--ink);
}

.btn-green {
  background: var(--green);
  color: var(--ink);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand img {
  width: 196px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 24px 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 14px 0;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 46px 0 0;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(121, 9, 0, 0.98) 0%, rgba(159, 14, 1, 0.9) 48%, rgba(111, 148, 34, 0.9) 100%),
    url("../assets/img/comunidade-rua.jpg") center/cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% 40%;
  height: 44%;
  background: var(--yellow);
  transform: rotate(-4deg);
  opacity: 0.92;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  gap: 40px;
  align-items: end;
}

.hero-copy {
  padding: 34px 0 54px;
}

.hero h1 {
  max-width: 610px;
  font-size: clamp(2.25rem, 4.35vw, 4.05rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 600px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.62;
}

.hero-actions,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  max-height: 520px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 26px 42px rgba(35, 35, 35, 0.45));
}

.hero-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 34px;
  width: min(260px, 68%);
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 12px 12px 0 rgba(35, 35, 35, 0.28);
}

.hero-card span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.hero-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.22;
}

.proof-band {
  background: var(--ink);
  color: var(--white);
}

.proof-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 170px;
  overflow: hidden;
}

.proof-card {
  flex: 0 0 24%;
  min-height: 112px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  text-align: left;
  opacity: 0.48;
  filter: blur(1.6px);
  transform: scale(0.92);
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease, background 0.28s ease;
  cursor: pointer;
}

.proof-card.is-active {
  flex-basis: 34%;
  background: var(--green);
  color: var(--ink);
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.proof-card strong {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.proof-card span {
  display: block;
  max-width: 210px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.35;
}

.proof-card.is-active strong {
  color: var(--red);
}

.proof-card.is-active span {
  color: rgba(35, 35, 35, 0.76);
}

.intro-grid,
.mapa-grid,
.pmp-grid,
.redes-grid,
.participe-grid,
.apoiador-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
}

.intro h2,
.section-head h2,
.mapa h2,
.pmp h2,
.redes h2,
.participe h2,
.apoiador h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.story-carousel {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.story-carousel::-webkit-scrollbar {
  display: none;
}

.story-carousel figure {
  flex: 0 0 min(74vw, 520px);
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  scroll-snap-align: center;
  opacity: 0.58;
  filter: blur(1px);
  transform: scale(0.96);
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.story-carousel figure.is-active {
  flex-basis: min(82vw, 620px);
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.story-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-carousel figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.raio {
  background: var(--paper-2);
}

.section-head {
  max-width: 850px;
}

.section-head.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.raio-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.raio-panel {
  position: sticky;
  top: 96px;
  min-height: 390px;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: var(--ink);
  box-shadow: var(--shadow);
}

.raio-panel .panel-label {
  color: var(--ink);
}

.raio-panel h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.raio-panel p {
  color: rgba(35, 35, 35, 0.76);
  line-height: 1.62;
}

.raio-panel .btn {
  margin-top: 24px;
  background: var(--ink);
  color: var(--white);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline-item span {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.timeline-item p,
.mapa p,
.pmp-copy > p,
.redes-copy > p,
.participe-grid > div > p,
.apoiador-grid > div > p,
.news-card p,
.issue-card p {
  color: var(--muted);
  line-height: 1.62;
}

.mapa {
  background: var(--yellow);
}

.territory-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.territory {
  min-height: 74px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.territory.is-active,
.territory:hover {
  background: var(--green-dark);
  color: var(--white);
}

.territory-detail {
  grid-column: 1 / -1;
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
}

.territory-detail span {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.territory-detail strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.05;
}

.territory-detail p {
  color: rgba(255, 255, 255, 0.78);
}

.bandeiras,
.apoiador {
  color: var(--white);
  background: var(--ink);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.issue-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
  border-radius: 8px;
}

.issue-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.13);
  color: currentColor;
  font-size: 1.25rem;
  font-weight: 900;
}

.issue-card span {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  opacity: 0.52;
}

.issue-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.issue-card.red {
  background: var(--red);
  color: var(--white);
}

.issue-card.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.issue-card.green {
  background: var(--green);
  color: var(--ink);
}

.issue-card.paper {
  background: var(--paper);
  color: var(--ink);
}

.issue-card.red p {
  color: rgba(255, 255, 255, 0.76);
}

.pmp {
  background: var(--green-soft);
}

.pmp-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
}

.pmp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.steps div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 16px;
  padding: 18px;
  border: 1px solid rgba(35, 35, 35, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.steps p {
  color: var(--muted);
  line-height: 1.45;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-top: 42px;
}

.news-card {
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.news-card.featured {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 20px;
  padding: 14px;
}

.news-card img {
  width: 100%;
  height: 210px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--paper-2);
}

.news-card.featured img {
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
}

.news-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.news-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.news-card:not(.featured) span,
.news-card:not(.featured) h3,
.news-card:not(.featured) p {
  padding-inline: 10px;
}

.apoiador-grid {
  align-items: center;
}

.apoiador p {
  color: rgba(255, 255, 255, 0.74);
}

.material-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.material-list div {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.material-list strong,
.material-list span {
  display: block;
}

.material-list strong {
  margin-bottom: 10px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.material-list span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  text-transform: uppercase;
}

.redes {
  background: var(--paper);
}

.redes-grid {
  align-items: center;
}

.channel-note,
.instagram-panel > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.instagram-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.insta-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}

.insta-head img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
}

.insta-head strong,
.insta-head span {
  display: block;
}

.insta-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.insta-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.insta-grid a {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}

.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.insta-grid a:hover img {
  transform: scale(1.06);
}

.insta-grid span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.final-cta {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-deep), var(--red));
}

/* Filete verde/amarelo separando o CTA do rodape, tambem vermelho */
.final-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 100%);
}

.final-cta-inner {
  max-width: 860px;
}

.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 900;
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 12px 12px 0 rgba(35, 35, 35, 0.16);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(35, 35, 35, 0.22);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(151, 193, 48, 0.5);
  border-color: var(--green-dark);
}

.form-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer {
  padding: 64px 0 26px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--red-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-grid img {
  width: 210px;
  margin-bottom: 16px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
}

.footer-grid p,
.footer-bottom p {
  line-height: 1.6;
}

/* "1513" inline dentro do paragrafo, sem herdar o estilo de titulo da coluna */
.footer-grid p strong {
  display: inline;
  margin: 0;
  color: var(--yellow);
  text-transform: none;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 0.84rem;
}

.footer-legal {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro-grid,
  .mapa-grid,
  .pmp-grid,
  .redes-grid,
  .participe-grid,
  .apoiador-grid,
  .raio-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    justify-content: center;
    min-height: 360px;
  }

  /* Sem a faixa escura logo abaixo, o recorte precisa desvanecer no rodape da foto */
  .hero-media img {
    max-height: 380px;
    filter: none;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }

  .hero-copy {
    padding-top: 18px;
  }

  .raio-panel {
    position: static;
    min-height: auto;
  }

  .cards-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 66px 0;
  }

  .brand img {
    width: 164px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero::after {
    inset: auto -18% -10% 20%;
    height: 28%;
  }

  .hero-copy {
    padding-bottom: 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9.6vw, 2.5rem);
    line-height: 1.04;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-card {
    right: 8px;
    bottom: 24px;
    width: min(250px, 78%);
  }

  .cards-grid,
  .news-grid,
  .material-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-carousel {
    min-height: 210px;
    overflow: hidden;
  }

  .proof-card {
    flex: 0 0 58%;
    padding: 18px;
  }

  .proof-card.is-active {
    flex-basis: 68%;
  }

  .story-carousel figure {
    flex-basis: 76%;
    min-height: 320px;
  }

  .story-carousel figure.is-active {
    flex-basis: 84%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .territory-board {
    grid-template-columns: 1fr;
  }

  .section-head.row {
    display: grid;
  }

  .news-card.featured {
    grid-template-columns: 1fr;
  }

  .news-card img {
    min-height: 220px;
  }

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insta-grid a {
    min-height: 150px;
  }
}
