/* ==========================================================================
   IDF6 — Instituto Desportivo Fernandinho
   Recriação estática (HTML/CSS/JS) do site idf6.org.br
   ========================================================================== */

:root {
  --red: #e71d13;
  --wine: #942323;
  --wine-band: #9f2929;
  --wine-soft: #973131;
  --wine-border: #cdaaaa;
  --ink: #000000;
  --ink-soft: #1e1e1e;
  --grey: #656565;
  --grey-line: #4f4f4f;
  --field: #f9f9f9;
  --white: #ffffff;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Inter", var(--font);
  --font-post: "Lora", Georgia, serif;
  --font-excerpt: "Raleway", var(--font);

  --wrap: 1280px;
  --radius: 10px;
  --radius-lg: 24px;
}

/* -------------------------------------------------------------- base ----- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; }
a { color: inherit; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--wine); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ botões ----- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 5px;
  padding: 23px 27px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn--solid { background: var(--red); color: var(--white); }
.btn--solid:hover { background: #c8180f; }
.btn--outline {
  background: transparent; color: #030202;
  border-color: var(--red); padding: 23px 52px;
}
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--sm { font-size: 15px; padding: 14px 22px; }
.btn:active { transform: translateY(1px); }

.section-cta { text-align: center; margin: 48px 0 0; }

/* ------------------------------------------------------------ header ----- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}
.brand { flex: 0 0 auto; }
.brand img { width: 68px; height: auto; }

.main-nav { margin-inline: auto; }
.main-nav ul {
  display: flex; flex-wrap: wrap; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  position: relative;
  font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--ink-soft);
  padding: 6px 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 .2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--wine); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 42px;
  background: none; border: 1px solid #ddd; border-radius: 8px;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block; width: 22px; height: 2px;
  background: var(--ink-soft); margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- hero ----- */

.hero {
  --hero-art: url("../img/hero.webp");
  background-image: var(--hero-art);
  background-position: top center;
  background-repeat: no-repeat;
  /* a arte é 1920x781 (ratio 2.458): a altura acompanha a largura para que a
     diagonal caia sempre na mesma posição relativa e o texto não a invada. */
  background-size: cover;
  min-height: max(520px, 40.68vw);
  padding-block: clamp(24px, 2.5vw, 48px);
  display: flex;
  align-items: center;
}
.hero__inner {
  /* recuo esquerdo idêntico ao do .wrap, alinhando o texto ao logo do header;
     a borda direita para antes da diagonal da arte (que começa em ~45% da largura). */
  --hero-gutter: max(20px, calc((100vw - var(--wrap)) / 2));
  max-width: min(700px, calc(48vw - var(--hero-gutter)));
  margin-inline: var(--hero-gutter) auto;
}
.hero__eyebrow {
  font-size: clamp(16px, 1.3vw, 20px); font-weight: 700; line-height: 2.55;
  color: var(--red); margin: 0;
}
.hero__title {
  font-size: clamp(32px, 3.4vw, 50px); font-weight: 600; line-height: 1.28;
  margin: 0 0 16px;
}
.hero__lead {
  font-size: clamp(14px, 1.15vw, 16px); line-height: 2;
  /* mais estreito que o título: fica na parte baixa da hero, onde a diagonal aperta. */
  max-width: min(516px, calc(42vw - var(--hero-gutter)));
  margin: 0;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(24px, 2.6vw, 40px);
}

/* ----------------------------------------------------------- seções ------ */

.section { padding: 80px 0; }

.section-title {
  font-size: 50px; font-weight: 600; line-height: 1.28;
  color: var(--wine);
  text-align: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 47px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wine);
}
.section-title--plain { border-bottom: 0; margin-bottom: 24px; }
.section-title--sub {
  font-size: 32px; line-height: 1.3;
  max-width: 1055px; margin: 70px auto 42px;
}

.page-head {
  padding: 64px 0 0;
  text-align: center;
}
.page-head h1 {
  font-size: 50px; color: var(--wine);
  border-bottom: 2px solid var(--wine);
  display: inline-block;
  max-width: 100%;
  padding-bottom: 8px;
}
.page-head__lead {
  font-size: 20px; color: var(--ink-soft);
  max-width: 640px;
  margin-inline: auto;
}

.page-head:has(.page-head__stripe) h1 { margin-bottom: 0; }
.page-head:has(.page-head__stripe) .wrap { padding-bottom: 10px; }
.page-head__stripe + .page-head__lead {
  margin-top: 28px;
  padding-bottom: 8px;
}
.page-head__stripe {
  height: 24px;
  background: linear-gradient(
    to bottom,
    var(--red) 0 33.333%,
    #8a8a8a 33.333% 66.666%,
    #e6e6e6 66.666% 100%
  );
}
.page-head__banner {
  min-height: clamp(380px, 52vw, 640px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
}
.page-head--donate .page-head__banner {
  background: url("../img/seja-um-doador-banner.png") center 42% / cover no-repeat;
}
.page-head--donate .page-head__lead {
  color: var(--white);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 600;
  max-width: 18ch;
  margin: 0;
  line-height: 1.2;
}

.page-head--news {
  padding-top: 20px;
}
.page-head--news .page-head__banner {
  width: calc(100% - 24px);
  margin: 0 auto 20px;
  min-height: clamp(220px, 28vw, 340px);
  padding: 48px 24px;
  border-radius: 28px;
  overflow: hidden;
  background: url("../img/noticias-idf6-banner.png?v=2") center 42% / cover no-repeat;
}
.page-head--news h1 {
  color: var(--white);
  border-bottom: 0;
  display: block;
  margin: 0;
  padding: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 600;
}

/* -------------------------------------------------------- ideologias ----- */

.ideology-band { background: var(--wine-band); padding: 86px 0; }
.ideology-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 56px;
  max-width: 900px;
  width: 100%;
}
.ideology {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
}
.ideology__icon {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.ideology__icon svg {
  width: 140px;
  height: 140px;
  display: block;
  fill: none;
  stroke: var(--white);
  stroke-width: 3.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.ideology h3 {
  font-size: 32px; font-weight: 600; color: var(--white);
  margin: 0 0 10px;
}
.ideology p { color: var(--white); font-size: 16px; line-height: 1.5; margin: 0; }

/* ------------------------------------------------------------ números ---- */

.stats {
  background-image: url("../img/stats-bg.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 49px 0 90px;
}
.stat-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stat__icon svg {
  width: 108px; height: 108px;
  fill: none; stroke: var(--white); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  margin-inline: auto;
}
.stat__value {
  font-family: var(--font-num);
  font-size: clamp(48px, 6vw, 85px);
  font-weight: 700; line-height: 1;
  color: var(--white); margin: 0;
}
.stat__label {
  font-family: var(--font-num);
  font-size: 18px; color: var(--white);
  margin: 8px 0 0; order: 2;
}
.stat { display: flex; flex-direction: column; }
.stat__value { order: 3; }

/* ------------------------------------------------------ áreas/projetos --- */

.areas { display: grid; gap: 20px; }
.area {
  display: grid;
  grid-template-columns: minmax(0, 550px) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  padding: 20px 0 70px;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
}
.stripe-a { background-image: url("../img/stripe-a.svg"); }
.stripe-b { background-image: url("../img/stripe-b.svg"); }
.area.image-first .area__text { order: 2; }
.area.image-first .area__media { order: 1; }
.area__text h2,
.area__text h3 { font-size: 32px; font-weight: 600; }
.area__text p { font-size: 16px; line-height: 32px; }
.area__media img {
  max-width: 477px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
}

.project-band {
  background: var(--wine-band);
  color: var(--white);
  text-align: center;
  padding: 26px 16px;
}
.project-band h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-row--alt { background: #f4f4f4; }
.project {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: center;
  padding: 48px 0;
}
.project--flip {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}
.project--flip .project__media { order: 2; }
.project__text h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 14px;
}
.project__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.project__tagline {
  font-weight: 700;
  margin-bottom: 0;
}
.project__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.project__media--pending {
  min-height: 240px;
  aspect-ratio: 4 / 3;
  background: #e8e8e8;
  border-radius: var(--radius);
}
.projects-block .section-cta { padding-bottom: 24px; }

/* ------------------------------------------------------------- notícias -- */

.page-head--news + .news { padding-top: 56px; }

.post-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post-card {
  border-radius: 25px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.post-card__link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: var(--ink-soft);
}
.post-card__thumb {
  display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #eee;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: block; padding: 20px 22px 26px; }
.post-card__date {
  display: block; font-size: 12px; color: var(--grey); margin-bottom: 8px;
}
.post-card__title {
  display: block;
  font-family: var(--font-post);
  font-size: 20px; font-weight: 500; line-height: 1.2;
  margin: 0 0 10px;
}
.post-card__excerpt {
  display: block;
  font-family: var(--font-excerpt);
  font-size: 12px; line-height: 1.6; margin-bottom: 15px;
}
.post-card__more {
  display: inline-block;
  background: var(--wine); color: var(--white);
  font-size: 13px; font-weight: 500;
  border-radius: 84px; padding: 6px 16px;
}
.post-card__link:hover .post-card__more { background: var(--red); }
.news-status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--grey);
}

/* ------------------------------------------------------------ parceiros -- */

.benefits {
  background: var(--wine-band);
  color: var(--white);
  text-align: center;
  padding: 72px 0 80px;
}
.benefits__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 18px;
}
.benefits__lead {
  max-width: 820px;
  margin: 0 auto 42px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
}
.benefits__grid {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
}
.benefit-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 36px 28px 32px;
}
.benefit-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--wine);
  border-radius: 12px;
}
.benefit-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 12px;
}
.benefit-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey);
}
.benefits__foot {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 18em;
  margin: 0 auto;
  color: var(--white);
}

.logo-grid {
  list-style: none;
  margin: 0 auto 56px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.logo-grid li {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 10, 10, .08);
  padding: 28px 24px;
  min-height: 118px;
  min-width: min(210px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}
.logo-grid--3,
.logo-grid--4,
.logo-grid--wide {
  display: grid;
  width: 100%;
}
.logo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin-bottom: 20px;
}
.logo-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
}
.logo-grid--wide {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  margin-bottom: 20px;
}
.logo-grid--wide li {
  min-width: 0;
  width: 100%;
  height: 156px;
  min-height: 156px;
  padding: 12px 28px;
}
.logo-grid img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo-grid--wide img { height: 124px; max-width: 100%; }
.logo-grid .logo-grow img {
  height: auto;
  max-height: 76px;
  max-width: 100%;
}
.logo-grid .logo-cooper {
  padding: 22px 16px;
}
.logo-grid .logo-cooper img {
  width: 100%;
  height: auto;
  max-height: none;
}
.logo-grid .logo-icrh {
  padding: 20px 12px;
}
.logo-grid .logo-icrh img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}
.logo-grid .logo-cristal img {
  height: 72px;
  max-height: none;
}
.logo-grid .logo-arcelor img,
.logo-grid .logo-solo img {
  width: 215px;
  height: auto;
  max-height: none;
}
.logo-grid .logo-lg img {
  height: 80px;
  max-height: none;
}
.partners .section-title--sub {
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 0;
  margin: 56px auto 28px;
  padding-bottom: 0;
}
.partners .section-title--sub::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  background: var(--wine);
  margin: 10px auto 0;
}
.partners .section-title--plain + .section-title--sub { margin-top: 36px; }

/* ------------------------------------------------------------- contato -- */

.contact { padding-top: 40px; }
.contact-panel {
  background-image: url("../img/contact-bg.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
  padding: 68px 38px 78px;
}
.contact-title {
  font-size: 50px; font-weight: 600; line-height: 1.28;
  color: var(--white); text-align: center;
  max-width: 740px; margin: 0 auto 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 40px;
  align-items: start;
}
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.contact-card {
  display: flex; align-items: center; gap: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(101, 32, 32, .4);
  padding: 20px 24px;
  color: var(--white);
  min-height: 120px;
}
.contact-card h3 { font-size: 20px; margin: 0 0 3px; }
.contact-card h3 a { text-decoration: none; }
.contact-card h3 a:hover { text-decoration: underline; }
.contact-card p { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0; }
.contact-card__icon { flex: 0 0 auto; }
.contact-card__icon svg {
  width: 34px; height: 34px;
  fill: none; stroke: var(--white); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact-form-card {
  border-radius: 20px;
  border: 1px solid var(--wine-border);
  background: rgba(133, 54, 54, .6);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  padding: 31px 38px 40px;
}
.contact-form-card__title {
  font-size: 20px; font-weight: 600; line-height: 1.6;
  color: var(--white); text-align: center;
  max-width: 340px; margin: 0 auto 28px;
}
.contact-form-card__foot {
  font-size: 18px; font-weight: 600; color: var(--white);
  text-align: center; margin: 20px 0 0;
}
.field { margin-bottom: 20px; }
.field label { display: block; color: var(--white); font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%;
  font-family: var(--font); font-size: 16px;
  color: var(--grey);
  background: var(--field);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.field input::placeholder { color: #9a9a9a; }
.field input[aria-invalid="true"] { border-color: #ffd2d2; box-shadow: 0 0 0 2px rgba(255, 90, 90, .5); }
.field__error {
  min-height: 0; margin: 6px 0 0;
  font-size: 13px; color: #ffdada;
}
.btn--form {
  display: block; width: 100%;
  background: var(--wine-soft); color: var(--white);
  border: 1px solid var(--wine-border); border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  padding: 22px 30px;
}
.btn--form:hover { background: #7f2727; }
.form-status { color: var(--white); font-size: 14px; margin: 14px 0 0; text-align: center; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------- quem somos --- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 60px; align-items: center;
  margin-bottom: 70px;
}
.story--reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.story__text h2 { font-size: 32px; color: var(--wine); }
.story__text p { font-size: 16px; line-height: 1.9; }
.story__media img { border-radius: var(--radius); margin-inline: auto; }

/* ------------------------------------------------------------- doador ---- */

.donate {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.donate__pix {
  background: var(--wine-band); color: var(--white);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.donate__pix h3 { font-size: 24px; margin-bottom: 20px; }
.donate__pix img { border-radius: var(--radius); margin-inline: auto; background: #fff; }
.donate__pixkey { margin: 20px 0 0; font-weight: 600; }
.donate__data { display: grid; gap: 32px; }
.donate__block h3 { font-size: 20px; color: var(--wine); }
.donate__block p { line-height: 1.8; }

.seal {
  background: var(--wine-band);
  color: var(--white);
  padding-bottom: 0;
}
.seal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 56px;
  align-items: end;
}
.seal__text h2 { font-size: 40px; color: var(--white); }
.seal__text > :last-child { margin-bottom: 0; }
.seal__list { margin: 0 0 1em; padding-left: 20px; }
.seal__list li { margin-bottom: 6px; }
.seal__highlight { font-size: 20px; font-weight: 600; color: var(--white); }
.seal__media img {
  display: block;
  margin-inline: auto;
  max-height: 520px;
  width: auto;
}

/* -------------------------------------------------------- privacidade --- */

.policy { padding-top: 48px; }
.policy .wrap { max-width: 800px; }
.policy__updated {
  text-align: center;
  color: var(--grey);
  font-size: 14px;
  margin: 0 0 28px;
}
.policy__lead { font-size: 16px; line-height: 1.8; }
.policy article + article { margin-top: 40px; }
.policy h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--wine);
  margin: 0 0 14px;
}
.policy p,
.policy li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.policy ul { margin: 0 0 1em; padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy address {
  font-style: normal;
  margin: 0 0 1em;
  line-height: 1.8;
  color: var(--ink-soft);
}
.policy a { color: var(--wine); }
.policy__cta-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--wine);
  text-align: center;
  margin: 8px 0 16px;
}

/* ------------------------------------------------------ certificações --- */

.certs-home__lead {
  max-width: 680px;
  margin: -12px auto 0;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.7;
}
.certs-home .section-cta { margin-top: 32px; }
.certs { padding-top: 48px; padding-bottom: 40px; }
.certs__intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.certs__intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.cert {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 32px 36px;
  background: #faf6f6;
  border-radius: var(--radius-lg);
}
.cert h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--wine);
  margin: 0 0 14px;
}
.cert p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.cert p:last-child { margin-bottom: 0; }
.certs-close {
  background: var(--wine-band);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.certs-close h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--white);
  margin: 0 0 18px;
}
.certs-close p {
  max-width: 800px;
  margin: 0 auto 1em;
  line-height: 1.8;
}
.certs-close p:last-child { margin-bottom: 0; }
.certs-gallery {
  padding: 48px 0 8px;
}
.certs-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .08);
}

/* ------------------------------------------------------------- footer ---- */

.site-footer { margin-top: 40px; }
.footer-social { background: var(--wine-band); padding: 40px 0; text-align: center; }
.social {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; justify-content: center; gap: 24px;
}
.social a {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background-color .2s ease;
}
.social a:hover { background: rgba(255, 255, 255, .28); }
.social svg { width: 32px; height: 32px; fill: var(--white); }
.footer-social__title { color: var(--white); font-size: 20px; font-weight: 600; margin: 0; }

.footer-legal { background: var(--ink-soft); color: var(--white); padding: 28px 0; }
.footer-legal .wrap {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 14px; margin: 0; }
.footer-copy a { color: inherit; text-underline-offset: 2px; }
.footer-copy a:hover { text-decoration: underline; }
.footer-contacts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 28px;
}
.footer-contacts li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-contacts a { text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.ficon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.ficon svg { width: 17px; height: 17px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------- responsividade -- */

@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .brand { order: 1; }
  .header-cta {
    order: 2;
    margin-left: auto;
    font-size: 14px;
    padding: 12px 16px;
  }
  .menu-toggle {
    order: 3;
    display: block;
    margin-left: 0;
  }
  .main-nav {
    order: 4;
    flex: 1 0 100%;
    display: none;
    margin: 4px 0 6px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid #eee; }
  .main-nav a { display: block; padding: 14px 4px; }
  .main-nav a::after { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .donate, .seal__grid { grid-template-columns: 1fr; }
  .seal { padding-bottom: 48px; }
  .seal__media { order: -1; }
  .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}

@media (max-width: 900px) {
  .area, .story, .story--reverse,
  .project, .project--flip {
    grid-template-columns: 1fr; gap: 28px;
  }
  .area__text { order: 2; }
  .area__media { order: 1; }
  .story__media { order: -1; }
  .project--flip .project__media { order: -1; }
  .project__media { order: -1; }
  .project { padding: 36px 0; }
}

/* abaixo de 1280px a arte precisaria ser cortada nas laterais para preencher a
   altura mínima, o que empurra a diagonal para cima do texto: aqui ela vai para
   o topo, em largura cheia, e o texto passa a ficar abaixo dela. */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero {
    min-height: 0;
    padding: calc(40.68vw + 32px) 0 48px;
    background-size: 100% auto;
    text-align: center;
  }
  .hero__inner {
    max-width: 620px;
    margin-inline: auto;
  }
  .hero__lead { max-width: 516px; margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 767px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 40px 0; }
  .section-cta { margin-top: 32px; }
  .section-cta .btn { width: 100%; max-width: 320px; }

  .brand img { width: 56px; }
  .header-inner { gap: 8px; padding: 8px 0; }
  .header-cta { font-size: 13px; padding: 10px 12px; }
  .menu-toggle { width: 42px; height: 40px; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 32px;
    background-image: none;
    text-align: center;
  }
  .hero::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    background-image: var(--hero-art);
    background-position: 80% 18%;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 24px;
  }
  .hero__inner {
    max-width: none;
    margin-inline: auto;
  }
  .hero__eyebrow { font-size: 15px; line-height: 1.5; }
  .hero__title { font-size: clamp(26px, 8vw, 32px); line-height: 1.2; }
  .hero__lead {
    max-width: none;
    font-size: 14px;
    line-height: 1.6;
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
    gap: 10px;
  }
  .hero__actions .btn {
    flex: 1 1 148px;
    text-align: center;
  }
  .btn { font-size: 14px; padding: 16px 18px; }
  .btn--outline { padding: 14px 18px; }
  .btn--sm { padding: 10px 12px; font-size: 13px; }

  .section-title { font-size: clamp(24px, 7.5vw, 30px); margin-bottom: 24px; }
  .section-title--sub { font-size: 20px; margin: 32px auto 20px; }
  .page-head { padding-top: 32px; }
  .page-head h1 { font-size: clamp(26px, 8vw, 32px); }
  .page-head__lead { font-size: 16px; padding-inline: 4px; }
  .page-head__banner { min-height: 240px; padding: 40px 16px; }
  .page-head--donate .page-head__lead { font-size: clamp(22px, 7vw, 32px); }
  .page-head--news .page-head__banner {
    min-height: 170px;
    padding: 32px 16px;
    border-radius: 20px;
  }
  .page-head--news h1 { font-size: clamp(24px, 7vw, 32px); }

  .ideology-band { padding: 48px 0; }
  .ideology-list { gap: 28px; }
  .ideology {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 12px;
  }
  .ideology__icon { width: 88px; height: 88px; }
  .ideology__icon svg { width: 88px; height: 88px; }
  .ideology h3 { font-size: 20px; margin: 0; }
  .ideology p { font-size: 14px; padding-inline: 8px; }

  .stats { padding: 28px 0 40px; }
  .stat-list { gap: 28px 16px; }
  .stat__icon svg { width: 64px; height: 64px; }
  .stat__value { font-size: 40px; }
  .stat__label { font-size: 12px; }

  .area {
    gap: 20px;
    padding: 12px 0 36px;
    background-image: none;
  }
  .area__text h2,
  .area__text h3 { font-size: 24px; }
  .area__text p { font-size: 15px; line-height: 1.65; }
  .area__media img {
    width: 100%;
    max-width: 100%;
  }
  .certs-home__lead {
    font-size: 15px;
    padding-inline: 4px;
  }
  .home .section:has(.ideology-band) { padding-bottom: 0; }

  .project { gap: 20px; padding: 28px 0; }
  .project__text h3 { font-size: 22px; }
  .project__text p { font-size: 15px; }
  .project-band { padding: 20px 12px; }
  .project-band h2 { font-size: 18px; letter-spacing: .04em; }

  .story { gap: 22px; margin-bottom: 40px; }
  .story__text h2 { font-size: 24px; }
  .story__text p { font-size: 15px; line-height: 1.7; }

  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card__title { font-size: 18px; }
  .post-card__body { padding: 16px 18px 20px; }
  .page-head--news + .news { padding-top: 32px; }

  .contact { padding-top: 24px; }
  .contact-panel { padding: 28px 14px 36px; border-radius: 20px; }
  .contact-title { font-size: clamp(22px, 7vw, 28px); margin-bottom: 28px; }
  .contact-card { min-height: 0; padding: 16px 14px; gap: 14px; }
  .contact-card h3 { font-size: 17px; }
  .contact-form-card { padding: 22px 16px 28px; }
  .contact-form-card__title { font-size: 17px; }
  .contact-form-card__foot { font-size: 15px; }
  .map-embed { aspect-ratio: 4 / 3; border-radius: 16px; }

  .donate { gap: 28px; }
  .donate__pix { padding: 24px 18px; }
  .donate__pix h3 { font-size: 20px; }

  .seal__text h2 { font-size: 26px; }
  .seal__highlight { font-size: 17px; }
  .seal__media img { max-height: 280px; }

  .benefits { padding: 36px 0 44px; }
  .benefits__title {
    font-size: clamp(22px, 6.2vw, 26px);
    line-height: 1.25;
    padding-inline: 4px;
  }
  .benefits__lead { font-size: 14px; margin-bottom: 24px; line-height: 1.65; }
  .benefits__grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { padding: 22px 16px 20px; }
  .benefits__foot { font-size: 17px; padding-inline: 8px; }

  .partners .section-title--plain {
    width: 100%;
    text-wrap: balance;
  }
  .partners .section-title--sub {
    width: 100%;
    margin: 32px auto 14px;
    font-size: 13px;
    letter-spacing: .05em;
    line-height: 1.45;
    text-wrap: balance;
    padding-inline: 8px;
  }

  .partners .logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }
  .partners .logo-grid--wide,
  .partners .logo-grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }
  .partners .logo-grid li {
    width: 100%;
    min-width: 0;
    min-height: 96px;
    height: auto;
    padding: 16px 12px;
  }
  .partners .logo-grid--wide li {
    height: auto;
    min-height: 108px;
    padding: 16px 14px;
  }
  .partners .logo-grid img {
    height: 44px;
    width: auto;
    max-width: 100%;
  }
  .partners .logo-grid--wide img {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: 100%;
  }
  .partners .logo-grow img { max-height: 56px; height: auto; }
  .partners .logo-icrh { grid-column: 1 / -1; }
  .partners .logo-cooper img,
  .partners .logo-icrh img,
  .partners .logo-cristal img,
  .partners .logo-arcelor img,
  .partners .logo-solo img,
  .partners .logo-lg img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
  }
  .partners .logo-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 12px) / 2);
    justify-self: center;
    width: 100%;
  }
  .partners .logo-grid:has(> :only-child) > :last-child,
  .partners .logo-icrh {
    max-width: none;
    justify-self: stretch;
  }
  .partners .logo-grid--4 > :nth-child(4) {
    grid-column: 1 / -1;
    max-width: calc((100% - 12px) / 2);
    justify-self: center;
    width: 100%;
  }

  .cert { padding: 20px 16px; }
  .certs-close { padding: 40px 0; }
  .certs-gallery { padding: 32px 0 8px; }

  .policy { padding-top: 28px; }
  .policy p,
  .policy li { font-size: 15px; }

  .social a { width: 52px; height: 52px; }
  .social svg { width: 26px; height: 26px; }
  .footer-social { padding: 32px 0; }
  .footer-social__title { font-size: 17px; }
  .footer-legal { padding: 22px 0; }
  .footer-legal .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-contacts { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
