{% extends 'frontend/base.html.twig' %}
{% block body %}
{% include 'frontend/partials/_breadcrumb.html.twig' %}
<section class="space-1">
<div class="container">
<div class="position-relative mb-4">
<div class="d-lg-none">
<figure class="media equal-1-1">
<span style="background-image: url('{{ componentConfiguration.cover.publicUrl }}')"></span>
</figure>
</div>
<div class="d-none d-lg-block">
<figure class="media equal-2-1">
<span style="background-image: url('{{ componentConfiguration.cover.publicUrl }}')"></span>
</figure>
</div>
</div>
</div>
</section>
<section class="space-1">
<div class="container">
<h4>Componenti piscine</h4>
<p>
{{ componentConfiguration.introduction|block_editor_render }}
</p>
</div>
</section>
<section class="space-2">
<div class="container">
{% for section in componentConfiguration.sections %}
<div class="row align-items-center justify-content-center space-top-1 space-top-lg-2 space-bottom-lg-1">
<div class="col-lg-5 ps-lg-5 {{ loop.index % 2 == 0 ? 'order-lg-1' }}">
<h3 class="text-uppercase text-primary display-5 fw-bold mb-2 mb-lg-4" style="line-height: 1">
{{ section.custom ? section.title : section.component.name }}
</h3>
<p class="fs-lg">
{{ section.custom ? section.description : section.component.introduction }}
</p>
<a href="{{ section.custom ? section.link : path('frontend_component_index', {component: section.component.slug}) }}"
class="btn btn-primary text-uppercase fw-bold mb-4 mb-lg-0"
aria-label="{{ section.custom ? section.title : section.component.name }}"
>Scopri di più</a>
</div>
<div class="col-lg-5 {{ loop.index % 2 == 0 ? 'order-lg-0' }}">
<img src="{{ section.custom ? section.cover.publicUrl : section.component.cover.publicUrl }}" alt="{{ section.custom ? section.title : section.component.name }}"
class="img-fluid">
</div>
</div>
{% endfor %}
</div>
</section>
<section class="space-bottom-2">
<div class="container">
<div class="row justify-content-center">
{% for componentConfigurationCallToAction in componentConfiguration.componentConfigurationCallToActions %}
{% include 'frontend/partials/_call_to_action_card.html.twig' with {callToAction: componentConfigurationCallToAction.callToAction, size: componentConfigurationCallToAction.size} %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}