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

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

{% endif %} {# ========================= SEC 2 — INTRO TEXTO processes_section_2: - section_subtitle - section_title - text ========================= #} {% set sec2 = entry.processes_section_2.one() ?? null %} {% if sec2 %}
{% if sec2.section_subtitle %}

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

{% endif %} {% if sec2.section_title %}

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

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

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

{% endif %}
{% endif %} {# ========================= SEC 3 — PROCESSO processes_section_3: - section_subtitle - section_title - cards_images - btn_text - btn_link ========================= #} {% set sec3 = entry.processes_section_3.one() ?? null %} {% if sec3 %} {% set sec3_btn_href = sec3.btn_link.url ?? (sec3.btn_link ?? '#') %}
{% if sec3.section_subtitle %}

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

{% endif %} {% if sec3.section_title %}

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

{% endif %}
{% endif %} {# ========================= SEC 4 — CTA processes_section_4: - section_title - text - btn_text - btn_link - btn_text_2 - btn_link_2 - image ========================= #} {% set sec4 = entry.processes_section_4.one() ?? null %} {% if sec4 %} {% set sec4_img = sec4.image.one() ?? null %} {% set sec4_btn_href = sec4.btn_link.url ?? (sec4.btn_link ?? '#') %} {% set sec4_btn_2_href = sec4.btn_link2.url ?? (sec4.btn_link2 ?? '#') %}
{% if sec4.section_title %}

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

{% endif %} {% if sec4.text %}

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

{% endif %}
{% if sec4.btn_text %} {{ macros.limpar_paragrafos(sec4.btn_text) }} {% endif %} {% if sec4.btn_text_2 %} {{ macros.limpar_paragrafos(sec4.btn_text_2) }} {% endif %}
{% endif %} {% endblock %}