{% extends "_layouts/main.html" %} {% import 'macros.twig' as macros %} {% block main %} {# ========================= SEC 1 — INTRO about_us_section_1: - section_title (RTE) ========================= #} {% set sec1 = entry.about_us_section_1.one() ?? null %} {% if sec1 %}

{{ sec1.section_title ? macros.limpar_paragrafos(sec1.section_title) : macros.limpar_paragrafos(entry.title) }}

{% endif %} {# ========================= SEC 2 — SOBRE A GAMMA about_us_section_2: - section_title (RTE) - image (asset) - text (RTE) - text_2 (RTE) - text_3 (RTE) ========================= #} {% set sec2 = entry.about_us_section_2.one() ?? null %} {% if sec2 %} {% set sec2_img = sec2.image.one() ?? null %}
{% if sec2.section_title %}

{{ macros.limpar_paragrafos(sec2.section_title) }}

{% endif %}
{% if sec2_img %} {{ sec2_img.title }} {% endif %}
{% if sec2.text %}

{{ macros.limpar_paragrafos(sec2.text) }}

{% endif %} {% if sec2.text_2 %}

{{ macros.limpar_paragrafos(sec2.text_2) }}

{% endif %} {% if sec2.text_3 %}

{{ macros.limpar_paragrafos(sec2.text_3) }}

{% endif %}
{% endif %} {# ========================= SEC 3 — EXPERIÊNCIA / HISTÓRIA about_us_section_3: - section_title (RTE) - text (RTE) - image (asset) - image_2 (asset) - text_2 (RTE) - btn_text (plain text) - btn_link (entry link) ========================= #} {% set sec3 = entry.about_us_section_3.one() ?? null %} {% if sec3 %} {% set sec3_img = sec3.image.one() ?? null %} {% set sec3_img_2 = sec3.image_2.one() ?? null %} {% set sec3_btn_href = sec3.btn_link.url ?? (sec3.btn_link ?? '#') %}
{% if sec3.section_title %}

{{ macros.limpar_paragrafos(sec3.section_title) }}

{% endif %}
{% if sec3.text %}

{{ macros.limpar_paragrafos(sec3.text) }}

{% endif %}
{% if sec3_img %} {{ sec3_img.title }} {% endif %} {% if sec3_img_2 %} {{ sec3_img_2.title }} {% endif %}
{% if sec3.text_2 %}

{{ macros.limpar_paragrafos(sec3.text_2) }}

{% endif %} {% if sec3.btn_text %} {{ macros.limpar_paragrafos(sec3.btn_text) }} {% endif %}
{% endif %} {# ========================= SEC 4 — FOUNDING PARTNERS about_us_section_4: - section_title (RTE) - btn_text (plain text) - btn_link (entry link) - team (matriz de entries: title, text, image) ========================= #} {% set sec4 = entry.about_us_section_4.one() ?? null %} {% if sec4 %} {% set sec4_btn_href = sec4.btn_link.url ?? (sec4.btn_link ?? '#') %}
{% if sec4.section_title %}

{{ macros.limpar_paragrafos(sec4.section_title) }}

{% endif %} {% if sec4.btn_text %} {{ macros.limpar_paragrafos(sec4.btn_text) }} {% endif %}
{% if sec4.team|length %}
{% for member in sec4.team.all() %} {% set member_img = member.image.one() ?? null %} {% set member_img_wid = loop.index == 1 ? 'ed443a15-e2b8-6173-293d-754c927d271e' : 'fcf12b30-17af-6337-40e4-331f46200afc' %} {% set member_text_wid = loop.index == 1 ? '664eb84e-5309-5446-f93f-1471f430e0bd' : 'fcf12b30-17af-6337-40e4-331f46200afd' %} {# Nome: 1º nome -> sob-4-h2, apelido(s) -> sob-4-h3 #} {% set name_parts = member.title|trim|split(' ', 2) %} {% set name_first = name_parts[0] ?? member.title %} {% set name_rest = name_parts[1] ?? '' %} {# Bio: extrair parágrafos e dividir em 2 colunas (metade em cada) #} {% set member_paras = (member.text ?? '')|split('

')|map(c => c|replace('/]*>/', '')|trim)|filter(c => c) %} {% set half = max(1, ((member_paras|length) // 2)) %} {% set col1 = member_paras|slice(0, half) %} {% set col2 = member_paras|slice(half) %}
{% if member_img %} {{ member_img.title ?: member.title }} {% endif %}

{{ name_first }}

{% if name_rest %}

{{ name_rest }}

{% endif %}
{% for p in col1 %}

{{ p|raw }}

{% endfor %}
{% if col2|length %}
{% for p in col2 %}

{{ p|raw }}

{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %} {# ========================= SEC 5 — CTA DE CONTACTO about_us_section_5 (image, section_title, btn_text, btn_link) Markup renderizado no footer (_layouts/footer.html); o conteúdo é passado em _layouts/main.html via { cta_section: ... }. Nada a renderizar aqui. ========================= #} {% endblock %}