<?php
$section1 = get_field('section_1');
$section2 = get_field('section_2');
?>

<?php /* Template Name: O inwestycji */ ?>

<?php get_header() ?>

<section class="page about about1">
    <div class="page__row">
        <div class="page__left">
            <video width="320" height="240" autoplay muted>
                <source src="<?php echo $section1['movie'] ?>" type="video/mp4">
            </video>
        </div>
        <div class="page__right">
            <div class="page__titles">
                <h1><?php the_title() ?></h1>
                <div class="page__title"><?php echo $section1['title'] ?></div>
            </div>

            <div class="page__desc description">
                <?php echo $section1['description'] ?>
            </div>
        </div>
    </div>
</section>

<section class="page about about2">
    <div class="page__row">
        <div class="page__left">
            <img src="<?php echo $section2['image'] ?>" />
            <img src="<?php echo $section2['image_2'] ?>" />
        </div>
        <div class="page__right">
            <div class="page__titles">
                <div class="page__title"><?php echo $section2['title'] ?></div>
            </div>

            <div class="page__desc description">
                <?php echo $section2['description'] ?>
            </div>
        </div>
    </div>
</section>

<?php get_template_part('parts/most_important_features'); ?>

<?php get_template_part('parts/investment_advantages'); ?>

<?php get_footer() ?>