/**
 * Rede IF Robótica — Estilos do plugin
 * Cores extraídas do design Figma
 */

:root {
  --rir-green: #2d6a2e;
  --rir-green-light: #4caf50;
  --rir-green-bg: #e8f5e9;
  --rir-red: #c62828;
  --rir-red-light: #ef5350;
  --rir-dark: #1a1a1a;
  --rir-gray: #666;
  --rir-gray-light: #f5f5f5;
  --rir-border: #e0e0e0;
  --rir-white: #fff;
  --rir-radius: 12px;
  --rir-radius-sm: 8px;
  --rir-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================
 * GRID DE PROJETOS
 * ========================================== */

.rir-projetos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.rir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .rir-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .rir-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.rir-card {
  background: var(--rir-white);
  border-radius: var(--rir-radius);
  overflow: hidden;
  box-shadow: var(--rir-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.rir-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.rir-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rir-gray-light);
}

.rir-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rir-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
}

.rir-card__content {
  padding: 16px;
}

.rir-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--rir-dark);
  line-height: 1.3;
}

.rir-card__campus {
  font-size: 0.85rem;
  color: var(--rir-gray);
  margin: 0 0 8px;
}

.rir-pin {
  font-size: 0.8rem;
}

.rir-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--rir-green);
  border-radius: 20px;
  color: var(--rir-green);
  font-weight: 600;
}

.rir-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--rir-gray);
  font-size: 1rem;
}

/* ==========================================
 * BARRA DE BUSCA
 * ========================================== */

.rir-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.rir-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--rir-border);
  border-radius: 40px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.rir-search-input:focus {
  border-color: var(--rir-green);
}

.rir-btn-filtro {
  padding: 12px 20px;
  border: 2px solid var(--rir-border);
  border-radius: 40px;
  background: var(--rir-white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.rir-btn-filtro:hover {
  background: var(--rir-gray-light);
}

/* ==========================================
 * PAINEL DE FILTROS
 * ========================================== */

.rir-filtros {
    background: #f0f0ee;
    border: none;
    border-radius: 26px;
    padding: 34px 40px 34px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.rir-filtros__titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #cfcfcb;
    color: #333;
}

.rir-filtros__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.rir-filtros__subtitulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: #333;
}

.rir-destaque-btn { cursor: pointer; }
.rir-destaque-btn input { display: none; }
.rir-destaque-btn span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #fff;
    border: 1px solid #d5d5d0;
    border-radius: 30px;
    font-size: 0.88rem;
    color: #333;
    transition: all 0.2s;
}
.rir-destaque-btn input:checked + span {
    background: #fff8e1;
    border-color: #e6b800;
    font-weight: 600;
}

.rir-filtro-grupo { margin-bottom: 26px; }
.rir-filtro-grupo strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0;
}

.rir-tags-filter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rir-tag-btn { cursor: pointer; }
.rir-tag-btn input { display: none; }
.rir-tag-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid #b8b8b3;
    border-radius: 30px;
    font-size: 0.86rem;
    color: #333;
    transition: all 0.2s;
    min-height: 46px;
    line-height: 1.2;
}
.rir-tag-btn input:checked + span {
    background: var(--rir-green);
    color: #fff;
    border-color: var(--rir-green);
    font-weight: 600;
}
.rir-tag-btn:hover span { border-color: var(--rir-green); }

.rir-filtros__bottom {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
    align-items: start;
}

.rir-select-campus {
    width: 100%;
    max-width: 340px;
    padding: 12px 18px;
    border: 1px solid #b8b8b3;
    border-radius: 30px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.rir-order-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.rir-order-btn {
    padding: 12px 26px;
    border: 1px solid #b8b8b3;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 0.86rem;
    color: #333;
    transition: all 0.2s;
}
.rir-order-btn.active {
    background: var(--rir-green);
    color: #fff;
    border-color: var(--rir-green);
    font-weight: 600;
}
.rir-order-btn:hover { border-color: var(--rir-green); }

#rir-aplicar-filtros { margin-top: 20px; }

.rir-card__star { font-size: 0.9rem; }

@media (max-width: 900px) {
    .rir-filtros { padding: 26px 22px; border-radius: 20px; }
    .rir-tags-filter { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rir-filtros__bottom { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
    .rir-tags-filter { grid-template-columns: 1fr; }
}

/* ==========================================
 * FORMULÁRIOS
 * ========================================== */

.rir-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
  background: var(--rir-white);
  border-radius: var(--rir-radius);
  box-shadow: var(--rir-shadow);
}

.rir-form h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--rir-dark);
}

.rir-form__desc {
  color: var(--rir-gray);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.rir-form__step {
  display: none;
}

.rir-form__step.active {
  display: block;
}

.rir-field {
  margin-bottom: 20px;
}

.rir-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--rir-dark);
}

.rir-field input[type="text"],
.rir-field input[type="email"],
.rir-field input[type="tel"],
.rir-field input[type="url"],
.rir-field input[type="number"],
.rir-field input[type="date"],
.rir-field textarea,
.rir-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rir-border);
  border-radius: var(--rir-radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.rir-field input:focus,
.rir-field textarea:focus,
.rir-field select:focus {
  border-color: var(--rir-green);
  outline: none;
}

.rir-field small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--rir-gray);
}

.rir-radio-group,
.rir-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rir-radio-group label,
.rir-checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rir-form__buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

/* Botões */
.rir-btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.rir-btn--next,
.rir-btn--submit {
  background: var(--rir-red);
  color: var(--rir-white);
}

.rir-btn--next:hover,
.rir-btn--submit:hover {
  background: var(--rir-red-light);
}

.rir-btn--back {
  background: var(--rir-gray-light);
  color: var(--rir-dark);
}

.rir-btn--back:hover {
  background: var(--rir-border);
}

/* Progress bar */
.rir-progress {
  margin-top: 24px;
  height: 4px;
  background: var(--rir-gray-light);
  border-radius: 2px;
  overflow: hidden;
}

.rir-progress__bar {
  height: 100%;
  background: var(--rir-green);
  transition: width 0.3s;
}

/* Mensagem de sucesso */
.rir-success {
  padding: 20px;
  background: var(--rir-green-bg);
  border: 1px solid var(--rir-green-light);
  border-radius: var(--rir-radius-sm);
  color: var(--rir-green);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* Load more */
.rir-load-more {
  text-align: center;
  margin-top: 32px;
}

.rir-load-more .rir-btn {
  background: var(--rir-green);
  color: var(--rir-white);
}

.rir-load-more .rir-btn:hover {
  background: var(--rir-green-light);
}

/* ==========================================
 * LAYOUT BASE
 * ========================================== */

.rir-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--rir-dark); }
.rir-page h1, .rir-page h2, .rir-page h3, .rir-page h4,
.rir-section__title, .rir-hero__text h1, .rir-cta-final h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* Títulos em faixa preta usam a condensada (Anton) — precisam vencer a regra acima */
.rir-page .rir-sobre-hero__title,
.rir-page .rir-projetos-hero__title,
.rir-page .rir-todos-bar__text,
.rir-page .rir-cadastre-bar__text,
.rir-page .rir-banner__title {
    font-family: 'Anton', 'Archivo Black', 'Poppins', sans-serif;
    font-weight: 400;
}
.rir-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rir-center { text-align: center; }
.rir-muted { color: var(--rir-gray); }

/* Corrige sobreposição com a barra de admin do WordPress */
body.admin-bar .rir-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .rir-header { top: 46px; }
}

.rir-section { padding: 60px 0; }
.rir-section--gray { background: var(--rir-gray-light); }
.rir-section--white { background: var(--rir-white); }
.rir-section__title { font-size: 1.8rem; font-weight: 800; margin: 0 0 8px; color: var(--rir-dark); }
.rir-section__subtitle { font-size: 1rem; color: var(--rir-gray); margin: 0 0 32px; max-width: 700px; }
.rir-section__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }

.rir-eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--rir-red); font-weight: 700; display: block; margin-bottom: 8px; }

/* ==========================================
 * HEADER
 * ========================================== */

.rir-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--rir-green);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rir-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.rir-header__logo { display: flex; align-items: center; text-decoration: none; height: 100%; }
.rir-header__logo img { height: 90%; max-height: 92px; width: auto; object-fit: contain; }
.rir-logo-text { color: #FAF8F9; font-size: 1.1rem; letter-spacing: 1px; }
.rir-logo-text strong { font-weight: 800; }

.rir-header__nav { display: flex; align-items: center; gap: 8px; }
.rir-header__nav a {
    display: inline-flex; align-items: center;
    padding: 12px 22px;
    color: #FAF8F9;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.rir-header__nav a:hover { background: rgba(255,255,255,0.12); }
.rir-header__nav a.is-active { background: #FAFAF8; color: #1A1A1A; }
.rir-header__btn-entrar.is-active { background: #FAFAF8; color: #1A1A1A; }

.rir-header__mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
    .rir-header__nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--rir-green);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 20px 20px;
        gap: 4px;
    }
    .rir-header__nav.rir-nav--open { display: flex; }
    .rir-header__nav a { justify-content: center; }
    .rir-header__mobile-toggle { display: block; }
    .rir-header__inner { height: 72px; }
    .rir-header__logo img { max-height: 56px; }
}

/* ==========================================
 * HERO — HOME
 * ========================================== */

.rir-hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.rir-hero__bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #e8f5e9 0%, #fff 60%); z-index: 0; }
.rir-hero__bg::after { content: ''; position: absolute; top: -50px; right: -100px; width: 500px; height: 500px; background: var(--rir-green); border-radius: 50%; opacity: 0.08; }
.rir-hero__content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rir-hero__text h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.15; margin: 0 0 16px; color: var(--rir-dark); }
.rir-hero__text p { font-size: 1rem; color: var(--rir-gray); margin: 0 0 24px; max-width: 500px; }
.rir-hero__image img { width: 100%; border-radius: 16px; }

.rir-hero__search {
    display: flex; align-items: center;
    background: #f2f2f0;
    border-radius: 40px;
    padding: 6px 20px 6px 6px;
    max-width: 460px;
    margin-bottom: 22px;
    gap: 12px;
}
.rir-hero__search-btn {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--rir-red);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.rir-hero__search input { border: none; outline: none; flex: 1; font-size: 0.95rem; padding: 10px 0; background: transparent; color: var(--rir-dark); }
.rir-hero__search input::placeholder { color: #999; }
.rir-hero__search-filter {
    color: var(--rir-gray);
    font-size: 1.15rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.rir-hero__search-filter:hover { background: rgba(0,0,0,0.06); color: var(--rir-green); }

.rir-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.rir-hero__tags-label { font-size: 0.85rem; color: var(--rir-dark); margin-right: 2px; }
.rir-tag-pill {
    display: inline-flex; align-items: center;
    padding: 7px 20px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.rir-tag-pill--green { border: 2px solid #269D35; color: #269D35; }
.rir-tag-pill--red { border: 2px solid #B31217; color: #B31217; }
.rir-tag-pill--green:hover { background: #269D35; color: #fff; }
.rir-tag-pill--red:hover { background: #B31217; color: #fff; }

@media (max-width: 768px) {
    .rir-hero__content { grid-template-columns: 1fr; }
    .rir-hero__image { display: none; }
    .rir-hero__text h1 { font-size: 1.6rem; }
    .rir-hero__search { max-width: 100%; }
    .rir-hero__tags { gap: 10px 14px; }
    .rir-hero__tags-label { width: 100%; margin-bottom: 4px; }
}

/* ==========================================
 * CARDS ROW
 * ========================================== */

.rir-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rir-cards-row--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .rir-cards-row { grid-template-columns: 1fr; }
    .rir-cards-row--2col { grid-template-columns: 1fr; }
}

/* ==========================================
 * BANNERS
 * ========================================== */

.rir-banner { padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.rir-banner--green { background: var(--rir-green); color: #fff; }
.rir-banner--dark { background: var(--rir-dark); color: #fff; }
.rir-banner--photo { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), var(--rir-gray-light); background-size: cover; background-position: center; color: #fff; }
.rir-banner__eyebrow { display: inline-block; font-size: 0.8rem; padding: 4px 16px; background: var(--rir-red); color: #fff; border-radius: 20px; margin-bottom: 12px; font-weight: 600; }
.rir-banner__title { font-size: 3rem; font-weight: 900; margin: 0 0 16px; letter-spacing: 2px; }
@media (max-width: 768px) { .rir-banner__title { font-size: 2rem; } }

/* ==========================================
 * COMPETITION CARDS
 * ========================================== */

.rir-comp-card { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 20px; align-items: center; padding: 24px; background: var(--rir-white); border-radius: var(--rir-radius); margin-bottom: 16px; box-shadow: var(--rir-shadow); }
.rir-comp-card__logo-placeholder { width: 100px; height: 60px; background: var(--rir-gray-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--rir-green); }
.rir-comp-card__body h3 { margin: 0 0 6px; font-size: 1rem; }
.rir-comp-card__body p { margin: 0; font-size: 0.85rem; color: var(--rir-gray); }
.rir-comp-card__stats { text-align: center; }
.rir-comp-card__stats div { margin-bottom: 4px; font-size: 0.85rem; }
.rir-comp-card__stats strong { font-size: 1.3rem; color: var(--rir-green); display: block; }
.rir-comp-card__actions { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 768px) {
    .rir-comp-card { grid-template-columns: 1fr; text-align: center; }
    .rir-comp-card__actions { flex-direction: row; justify-content: center; }
}

/* ==========================================
 * EVENT CARDS
 * ========================================== */

.rir-event-card { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: var(--rir-white); border-radius: var(--rir-radius); overflow: hidden; box-shadow: var(--rir-shadow); }
.rir-event-card__img { overflow: hidden; }
.rir-event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.rir-event-card__body { padding: 16px 16px 16px 0; }
.rir-event-card__date { font-size: 0.8rem; color: var(--rir-gray); font-weight: 600; }
.rir-event-card__body h3 { font-size: 1rem; margin: 6px 0; }
.rir-event-card__body h3 a { color: var(--rir-dark); text-decoration: none; }
.rir-event-card__body h3 a:hover { color: var(--rir-green); }

/* ==========================================
 * BUTTONS
 * ========================================== */

.rir-btn--red { background: var(--rir-red); color: #fff; }
.rir-btn--red:hover { background: var(--rir-red-light); }
.rir-btn--green { background: var(--rir-green); color: #fff; }
.rir-btn--green:hover { background: var(--rir-green-light); }
.rir-btn--white { background: #fff; color: var(--rir-green); }
.rir-btn--white:hover { background: rgba(255,255,255,0.9); }
.rir-btn--outline { background: transparent; border: 2px solid var(--rir-green); color: var(--rir-green); }
.rir-btn--outline:hover { background: var(--rir-green); color: #fff; }
.rir-btn--outline-dark { background: transparent; border: 2px solid var(--rir-dark); color: var(--rir-dark); }
.rir-btn--sm { padding: 8px 16px; font-size: 0.8rem; }

/* ==========================================
 * SOBRE — Hero com título cartaz e foto
 * ========================================== */

.rir-sobre-hero { background: #fff; padding: 0 0 0; position: relative; }

.rir-sobre-hero__titlebar { padding: 40px 24px 20px; position: relative; z-index: 4; display: flex; justify-content: flex-start; }

.rir-sobre-hero__titlegroup {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-top: 26px;
    margin-left: 4%;
}

.rir-sobre-hero__eyebrow {
    position: absolute;
    top: 0;
    left: 28px;
    font-size: clamp(0.75rem, 1.5vw, 1.05rem);
    padding: 10px 26px;
    background: #5cb85c;
    color: #fff;
    border-radius: 40px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.rir-sobre-hero__title {
    position: relative;
    z-index: 2;
    display: block;
    background: #111;
    color: #fff;
    font-family: 'Anton', 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.9rem);
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.3em 0.55em;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    white-space: nowrap;
}

.rir-sobre-hero__star {
    position: absolute;
    top: -0.15em;
    right: -0.35em;
    color: #5cb85c;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 2.1rem);
    line-height: 1;
    font-weight: 800;
    z-index: 4;
    pointer-events: none;
}

@media (max-width: 600px) {
    .rir-sobre-hero__titlegroup { margin-left: 0; padding-top: 20px; }
    .rir-sobre-hero__eyebrow { left: 16px; padding: 8px 18px; }
    .rir-projetos-hero__eyebrow { padding: 8px 18px; }
    .rir-sobre-hero__title,
    .rir-projetos-hero__title { white-space: normal; }
}

.rir-sobre-hero__photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--rir-gray-light);
    margin-top: -60px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 180px 6% 60px;
    min-height: 520px;
}

.rir-sobre-hero__card-wrap {
    position: relative;
    max-width: 460px;
    width: 100%;
    z-index: 4;
    flex-shrink: 0;
}
.rir-sobre-hero__card {
    background: #2d6a2e;
    color: #fff;
    padding: 26px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.rir-sobre-hero__card p { margin: 0; font-size: 1rem; line-height: 1.55; }
.rir-sobre-hero__card strong { font-weight: 700; }
.rir-sobre-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: -18px;
    margin-left: 24px;
    position: relative;
    z-index: 5;
    border: 3px solid #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.rir-sobre-hero__cta:hover { background: #f5f5f5; }

.rir-sobre-hero__mascote {
    position: absolute;
    right: 1%;
    bottom: 10px;
    max-width: 170px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .rir-sobre-hero__mascote { display: none; }
    .rir-sobre-hero__photo { padding: 160px 5% 50px; }
}

@media (max-width: 900px) {
    .rir-sobre-hero__title { font-size: 2rem; padding: 12px 28px 12px 22px; }
    .rir-sobre-hero__star { font-size: 2rem; top: -14px; }
    .rir-sobre-hero__photo { min-height: 0; padding: 140px 24px 40px; justify-content: center; }
    .rir-sobre-hero__card-wrap { max-width: 100%; }
}

@media (max-width: 600px) {
    .rir-sobre-hero__titlebar { padding: 30px 20px 16px; }
    .rir-sobre-hero__title { font-size: 1.5rem; }
    .rir-sobre-hero__eyebrow { font-size: 0.8rem; padding: 6px 16px; margin-left: 12px; }
    .rir-sobre-hero__photo { padding: 110px 18px 32px; }
    .rir-sobre-hero__card { padding: 20px 22px; }
    .rir-sobre-hero__card p { font-size: 0.9rem; }
    .rir-sobre-hero__cta { font-size: 0.85rem; padding: 10px 20px; margin-left: 12px; }
}

/* ==========================================
 * SOBRE — Missão com divisor vertical
 * ========================================== */

.rir-missao { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.rir-missao__label {
    display: block;
    color: #269D35;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.rir-missao__left h2 { font-size: 1.6rem; font-weight: 700; margin: 0; line-height: 1.25; }
.rir-missao__divider { width: 1px; background: var(--rir-border); align-self: stretch; }
.rir-missao__right p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--rir-dark); }

@media (max-width: 768px) {
    .rir-missao { grid-template-columns: 1fr; }
    .rir-missao__divider { display: none; }
}

/* ==========================================
 * SOBRE — Título com palavra destacada
 * ========================================== */

.rir-titulo-destaque { font-size: 1.9rem; font-weight: 800; }
.rir-titulo-destaque span { color: #269D35; }

/* ==========================================
 * SOBRE — Cards "O que você encontra"
 * ========================================== */

.rir-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.rir-feature-card {
    background: #f0f0ee;
    padding: 28px 24px;
    border-radius: 18px;
    text-align: left;
}
.rir-feature-card__icon {
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 0 20px;
    color: #fff;
}
.rir-feature-card--verde .rir-feature-card__icon { background: #4caf50; }
.rir-feature-card--vermelho .rir-feature-card__icon { background: #B31217; }
.rir-feature-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.rir-feature-card--verde h3 { color: #4caf50; }
.rir-feature-card--vermelho h3 { color: #B31217; }
.rir-feature-card p { font-size: 0.85rem; color: var(--rir-dark); margin: 0 0 14px; line-height: 1.5; }
.rir-feature-card a { font-size: 0.85rem; text-decoration: underline; font-style: italic; }
.rir-feature-card--verde a { color: #4caf50; }
.rir-feature-card--vermelho a { color: #B31217; }

@media (max-width: 900px) { .rir-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rir-features-grid { grid-template-columns: 1fr; } }

/* ==========================================
 * SOBRE — "Como funciona" com moldura verde
 * ========================================== */

.rir-como-funciona {
    position: relative;
    border: 2px solid #269D35;
    border-radius: 24px;
    padding: 0 30px 40px;
    margin-top: 40px;
}
.rir-como-funciona .rir-section__title {
    position: relative;
    top: -20px;
    background: #fff;
    display: inline-block;
    padding: 0 20px;
    margin: 0 auto 20px;
    left: 50%;
    transform: translateX(-50%);
}

.rir-steps-row { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rir-step { text-align: center; flex: 0 0 130px; }
.rir-step__icon {
    width: 78px; height: 78px;
    background: #fff;
    border: 2px solid #d5d5d0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    margin: 0 auto 14px;
    color: #269D35;
}
.rir-step p { font-family: 'Poppins', sans-serif; font-size: 0.92rem; font-weight: 700; margin: 0; line-height: 1.3; }
.rir-step__arrow { color: #b0b0b0; font-size: 1.3rem; margin-top: 32px; }

@media (max-width: 900px) {
    .rir-como-funciona { padding: 0 16px 30px; }
    .rir-step { flex: 0 0 110px; }
    .rir-step__icon { width: 62px; height: 62px; font-size: 1.5rem; }
    .rir-step p { font-size: 0.8rem; }
    .rir-step__arrow { display: none; }
}

/* ==========================================
 * SOBRE — "Por que criamos a Rede"
 * ========================================== */

.rir-porque {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: #2d6a2e;
    border-radius: 24px;
    overflow: hidden;
    margin-top: 20px;
    align-items: end;
}
.rir-porque__text { padding: 44px 40px; color: #fff; }
.rir-porque__eyebrow { display: block; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.rir-porque__text h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; margin: 0 0 20px; line-height: 1.15; }
.rir-porque__text p { font-size: 0.92rem; line-height: 1.6; margin: 0; opacity: 0.95; }
.rir-porque__img { align-self: end; }
.rir-porque__img img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
    .rir-porque { grid-template-columns: 1fr; }
    .rir-porque__text { padding: 32px 26px; }
    .rir-porque__text h2 { font-size: 1.5rem; }
}

/* ==========================================
 * COMP FEATURE CARDS (competições da pág Sobre)
 * ========================================== */

.rir-comp-feature { background: var(--rir-white); padding: 24px; border-radius: var(--rir-radius); box-shadow: var(--rir-shadow); text-align: center; }
.rir-comp-feature__age { display: inline-block; font-size: 0.75rem; padding: 3px 12px; background: var(--rir-green-bg); color: var(--rir-green); border-radius: 12px; margin: 12px 0 8px; font-weight: 600; }
.rir-comp-feature h3 { font-size: 1rem; margin: 0 0 8px; }
.rir-comp-feature p { font-size: 0.85rem; color: var(--rir-gray); margin: 0 0 16px; line-height: 1.5; }
.rir-comp-feature__btns { display: flex; gap: 8px; justify-content: center; }

/* ==========================================
 * SOBRE — Nossos Números (contadores automáticos)
 * ========================================== */

.rir-numeros-section { position: relative; }
.rir-numeros-section::before,
.rir-numeros-section::after {
    content: '';
    position: absolute;
    bottom: 24px;
    width: 2px;
    height: 60px;
    background: #269D35;
}
.rir-numeros-section::before { left: 3%; }
.rir-numeros-section::after { right: 3%; }

.rir-numeros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
}
.rir-numero { display: flex; align-items: center; gap: 14px; justify-content: center; }
.rir-numero__icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.rir-numero__info { display: flex; flex-direction: column; }
.rir-numero__valor {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.rir-numero__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rir-dark);
    line-height: 1.25;
}
.rir-numero--verde .rir-numero__valor { color: #1e5b2a; }
.rir-numero--vermelho .rir-numero__valor { color: #B31217; }

@media (max-width: 900px) {
    .rir-numeros { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .rir-numeros-section::before, .rir-numeros-section::after { display: none; }
}
@media (max-width: 480px) {
    .rir-numeros { grid-template-columns: 1fr; }
    .rir-numero { justify-content: flex-start; padding-left: 12%; }
}

/* ==========================================
 * VALUES ROW
 * ========================================== */

.rir-values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.rir-value-card { text-align: center; padding: 24px; }
.rir-value-card__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.rir-value-card h4 { font-size: 1rem; margin: 0 0 8px; color: var(--rir-green); }
.rir-value-card p { font-size: 0.85rem; color: var(--rir-gray); margin: 0; }
@media (max-width: 768px) { .rir-values-row { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================
 * CTA FINAL
 * ========================================== */

.rir-cta-final { background: var(--rir-red); color: #fff; padding: 60px 0; }
.rir-cta-final__pre { font-size: 1rem; margin: 0 0 4px; opacity: 0.9; }
.rir-cta-final h2 { font-size: 2.5rem; font-weight: 900; margin: 0 0 12px; letter-spacing: 2px; }
.rir-cta-final p { margin: 0 0 20px; opacity: 0.9; }

/* ==========================================
 * FOOTER
 * ========================================== */

.rir-footer { background: var(--rir-dark); color: #fff; padding: 44px 0; }
.rir-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.rir-footer__col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin: 0 0 14px;
    font-weight: 700;
    color: #fff;
}
.rir-footer__col p { margin: 0 0 8px; font-size: 0.85rem; opacity: 0.85; line-height: 1.5; }
.rir-footer__col a { color: rgba(255,255,255,0.85); text-decoration: none; transition: opacity 0.2s; }
.rir-footer__col a:hover { color: #fff; opacity: 1; text-decoration: underline; }

@media (max-width: 768px) { .rir-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .rir-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================
 * PROJETOS — Hero estilo cartaz
 * ========================================== */

.rir-projetos-hero { background: #fff; padding: 50px 0 30px; overflow: hidden; }
.rir-projetos-hero__content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.rir-projetos-hero__text { position: relative; padding-top: 20px; }
.rir-projetos-hero__eyebrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(0.75rem, 1.5vw, 1.05rem);
    padding: 10px 26px;
    background: #5cb85c;
    color: #fff;
    border-radius: 40px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.rir-projetos-hero__title {
    position: relative;
    display: inline-block;
    background: #111;
    color: #fff;
    font-family: 'Anton', 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    letter-spacing: 2px;
    padding: 0.3em 0.5em;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}
.rir-projetos-hero__star {
    position: absolute;
    top: -0.15em;
    right: -0.35em;
    color: #4caf50;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 2.1rem);
    line-height: 1;
    font-weight: 800;
    z-index: 4;
    pointer-events: none;
}

.rir-projetos-hero__img { display: flex; align-items: center; justify-content: center; }
.rir-projetos-hero__img img { max-width: 100%; height: auto; max-height: 280px; object-fit: contain; }

/* Barra de busca com botão VERDE (variante da home) */
.rir-hero__search-btn--green { background: var(--rir-green) !important; }

@media (max-width: 768px) {
    .rir-projetos-hero__content { grid-template-columns: 1fr; }
    .rir-projetos-hero__title { font-size: 2.4rem; padding: 12px 28px 12px 22px; }
    .rir-projetos-hero__star { font-size: 1.8rem; top: -12px; }
    .rir-projetos-hero__img img { max-height: 200px; }
}

/* Placeholder de imagem ausente (aponta pra Config. do Site) */
.rir-img-placeholder {
    width: 100%;
    min-height: 240px;
    background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e8e8e8 10px, #e8e8e8 20px);
    border: 2px dashed var(--rir-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.rir-img-placeholder span {
    font-size: 0.85rem;
    color: var(--rir-gray);
    line-height: 1.5;
}
.rir-img-placeholder strong { color: var(--rir-green); }

/* ==========================================
 * TODOS OS PROJETOS — banner com foto e ondas
 * ========================================== */

.rir-todos-wrap { padding: 0; }
.rir-todos-photo {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--rir-gray-light);
    overflow: hidden;
}
.rir-wave { position: absolute; left: 0; width: 100%; height: 60px; z-index: 2; }
.rir-wave--top { top: -1px; }
.rir-wave--bottom { bottom: -1px; }

.rir-todos-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    background: #111;
    padding: 18px 40px 18px 32px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    white-space: nowrap;
}
.rir-todos-bar__badge {
    position: absolute;
    top: -34px;
    left: 24px;
    background: var(--rir-green-light);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 30px;
    transform: rotate(3deg);
}
.rir-todos-bar__text {
    font-family: 'Anton', 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}
.rir-todos-bar__star { color: var(--rir-green-light); margin-left: 6px; }

@media (max-width: 768px) {
    .rir-todos-photo { height: 280px; }
    .rir-todos-bar { padding: 12px 20px; transform: translate(-50%, -50%) rotate(-2deg); max-width: 88%; }
    .rir-todos-bar__text { font-size: 1.5rem; letter-spacing: 0.5px; white-space: normal; text-align: center; }
    .rir-todos-bar__badge { font-size: 0.65rem; padding: 5px 12px; top: -26px; left: 12px; }
}
@media (max-width: 480px) {
    .rir-todos-bar__text { font-size: 1.1rem; }
}

/* Busca full-width abaixo do título (variante da página Projetos) */
.rir-hero__search--wide {
    max-width: 720px;
    margin-top: 24px !important;
    margin-bottom: 0;
    background: #f2f2f0;
    padding: 8px 20px 8px 8px;
}

/* ==========================================
 * CADASTRE SEU PROJETO — banner (Projetos)
 * ========================================== */

.rir-cadastre-wrap { padding: 0; }
.rir-cadastre-photo {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--rir-gray-light);
    overflow: hidden;
}
.rir-cadastre-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    background: #111;
    padding: 18px 44px 18px 32px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    white-space: nowrap;
    border-radius: 14px;
}
.rir-cadastre-bar__badge {
    position: absolute;
    top: -30px;
    left: 50%;
    background: var(--rir-red);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 30px;
    transform: translateX(-50%) rotate(3deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.rir-cadastre-bar__text {
    font-family: 'Anton', 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}
.rir-cadastre-bar__star { color: var(--rir-red); margin-left: 6px; font-family: 'Poppins', sans-serif; }

@media (max-width: 768px) {
    .rir-cadastre-photo { height: 300px; }
    .rir-cadastre-bar { padding: 14px 24px; max-width: 88%; }
    .rir-cadastre-bar__text { font-size: 1.4rem; white-space: normal; text-align: center; }
    .rir-cadastre-bar__badge { font-size: 0.7rem; padding: 6px 14px; top: -26px; }
}
@media (max-width: 480px) {
    .rir-cadastre-bar__text { font-size: 1rem; }
}

/* Ondas maiores no hero da página Sobre */
.rir-sobre-hero__photo .rir-wave { height: 90px; }

/* ==========================================
 * MAPA INTERATIVO DO BRASIL (SVG)
 * ========================================== */

.rir-section__subtitulo-mapa {
    text-align: center;
    color: var(--rir-gray);
    margin: 0 auto 24px;
    max-width: 620px;
    font-size: 0.95rem;
}

.rir-mapa-wrapper { max-width: 900px; margin: 0 auto; }

.rir-mapa-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.rir-mapa-filtro {
    padding: 9px 20px;
    border: 2px solid #d5d5d0;
    border-radius: 30px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}
.rir-mapa-filtro:hover { border-color: #999; }
.rir-mapa-filtro.active { background: #111; color: #fff; border-color: #111; }
.rir-mapa-filtro--ensino.active { background: #269D35; border-color: #269D35; }
.rir-mapa-filtro--pesquisa.active { background: #B31217; border-color: #B31217; }
.rir-mapa-filtro--extensao.active { background: #1565c0; border-color: #1565c0; }
.rir-mapa-filtro--competicao.active { background: #e65100; border-color: #e65100; }

.rir-mapa-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
#rir-svg-mapa { width: 100%; height: auto; display: block; max-height: 620px; }

.rir-mapa-estados .uf {
    fill: #e8eae6;
    stroke: #fff;
    stroke-width: 1;
    transition: fill 0.2s;
}
.rir-mapa-estados .uf:hover { fill: #d5ded4; }

.rir-mapa-pin { cursor: pointer; transition: r 0.15s; outline: none; }
.rir-mapa-pin:hover, .rir-mapa-pin:focus { r: 9.5; }

.rir-mapa-tooltip {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 12px 14px;
    min-width: 190px;
    max-width: 240px;
    font-size: 0.82rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}
.rir-mapa-tooltip.on { opacity: 1; }
.rir-mapa-tooltip h4 { font-family: 'Poppins', sans-serif; margin: 0 0 5px; font-size: 0.9rem; line-height: 1.25; }
.rir-mapa-tooltip p { margin: 0 0 3px; color: var(--rir-gray); font-size: 0.78rem; }
.rir-mapa-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #269D35;
    color: #269D35;
    font-weight: 600;
}

.rir-mapa-legenda {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--rir-gray);
}
.rir-mapa-cores {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--rir-gray);
}
.rir-mapa-cores i {
    display: inline-block;
    width: 11px; height: 11px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .rir-mapa-filtro { font-size: 0.78rem; padding: 8px 14px; }
    .rir-mapa-box { padding: 10px; border-radius: 14px; }
    .rir-mapa-cores { gap: 12px; font-size: 0.72rem; }
}

/* Campos lado a lado no formulário */
.rir-field--row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.rir-field--row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.rir-field__hint { display: block; font-size: 0.8rem; color: var(--rir-gray); margin: -10px 0 20px; }

@media (max-width: 768px) {
    .rir-mapa { height: 400px; border-radius: 14px; }
    .rir-mapa-filtro { font-size: 0.78rem; padding: 8px 14px; }
    .rir-field--row { grid-template-columns: 1fr; }
}

/* ==========================================
 * PÁGINA DE EVENTOS
 * ========================================== */

.rir-eventos-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.rir-eventos-toolbar .rir-hero__search { margin: 0; flex: 1; min-width: 260px; }

.rir-eventos-filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rir-evento-filtro {
    padding: 10px 22px;
    border: 2px solid #d5d5d0;
    border-radius: 30px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}
.rir-evento-filtro:hover { border-color: var(--rir-green); }
.rir-evento-filtro.active {
    background: var(--rir-green);
    color: #fff;
    border-color: var(--rir-green);
}

@media (max-width: 768px) {
    .rir-eventos-toolbar { flex-direction: column; align-items: stretch; }
    .rir-evento-filtro { font-size: 0.78rem; padding: 8px 16px; }
}


/* ==========================================
 * PÁGINA INDIVIDUAL DO PROJETO
 * ========================================== */

.rir-single { max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }
.rir-single__hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 32px; min-height: 300px; background: var(--rir-green); }
.rir-single__hero-img { width: 100%; height: 350px; object-fit: cover; display: block; }
.rir-single__hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.rir-single__badge { display: inline-block; padding: 4px 16px; border-radius: 20px; background: var(--rir-green); font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.rir-single__title { font-size: 2rem; margin: 0 0 8px; line-height: 1.2; }
.rir-single__campus { font-size: 1rem; margin: 0; opacity: 0.9; }

.rir-single__body { display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
@media (max-width: 768px) { .rir-single__body { grid-template-columns: 1fr; } }

.rir-single__sidebar { display: flex; flex-direction: column; gap: 16px; }
.rir-single__info-card { background: var(--rir-gray-light); padding: 20px; border-radius: var(--rir-radius-sm); }
.rir-single__info-card h4 { margin: 0 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rir-gray); }
.rir-single__info-card p { margin: 0 0 8px; font-size: 0.9rem; }
.rir-single__info-card a { color: var(--rir-green); text-decoration: none; }
.rir-single__info-card a:hover { text-decoration: underline; }

.rir-single__main {}
.rir-single__section { margin-bottom: 32px; }
.rir-single__section h2 { font-size: 1.2rem; margin: 0 0 12px; color: var(--rir-green); border-bottom: 2px solid var(--rir-green-bg); padding-bottom: 8px; }
.rir-single__section p { font-size: 0.95rem; line-height: 1.6; color: var(--rir-dark); }

.rir-single__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.rir-single__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rir-single__gallery img { width: 100%; border-radius: var(--rir-radius-sm); aspect-ratio: 4/3; object-fit: cover; transition: transform 0.2s; }
.rir-single__gallery img:hover { transform: scale(1.03); }

.rir-single__back { text-align: center; margin-top: 40px; }
.rir-single__back .rir-btn { background: var(--rir-gray-light); color: var(--rir-dark); text-decoration: none; }
.rir-single__back .rir-btn:hover { background: var(--rir-border); }

/* Campo com prefixo (@ do Instagram) */
.rir-input-prefixo {
    display: flex;
    align-items: center;
    border: 1px solid var(--rir-border);
    border-radius: var(--rir-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}
.rir-input-prefixo:focus-within { border-color: var(--rir-green); }
.rir-input-prefixo span {
    padding: 10px 4px 10px 14px;
    color: var(--rir-gray);
    font-weight: 600;
    background: transparent;
}
.rir-input-prefixo input {
    border: none !important;
    outline: none;
    flex: 1;
    padding: 10px 14px 10px 2px !important;
    border-radius: 0 !important;
}

/* Nome da competição no card */
.rir-card__comp {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 11px;
    border-radius: 20px;
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
    margin-left: 6px;
}

/* Link do Instagram na página do projeto */
.rir-insta-link {
    display: inline-block;
    font-weight: 600;
}

/* ==========================================
 * VÍNCULO COM EQUIPE DE COMPETIÇÃO
 * ========================================== */

.rir-equipe-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 12px;
    text-decoration: none;
    color: var(--rir-dark);
    transition: background 0.2s, transform 0.2s;
}
.rir-equipe-link:hover { background: #ffe8cc; transform: translateX(3px); }
.rir-equipe-link img {
    width: 52px; height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.rir-equipe-link__icone { font-size: 2rem; flex-shrink: 0; }
.rir-equipe-link__info { display: flex; flex-direction: column; flex: 1; }
.rir-equipe-link__info strong { font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.rir-equipe-link__info em { font-style: normal; font-size: 0.8rem; color: #e65100; margin-top: 3px; }
.rir-equipe-link__seta { color: #e65100; font-size: 1.2rem; font-weight: 700; }

.rir-vinculados { display: flex; flex-direction: column; gap: 10px; }
.rir-vinculado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--rir-gray-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--rir-dark);
    transition: background 0.2s;
}
.rir-vinculado:hover { background: #e8e8e6; }
.rir-vinculado strong { font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 600; }
