<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">

  <head>
    {{ partial "headers.html" . }}
    {{ partial "custom_headers.html" . }}
  </head>

  <body>

    <div id="all">
        {{ partial "top.html" . }}

        {{ partial "nav.html" . }}

        {{ partial "breadcrumbs.html" . }}


        <div id="content">
            {{ if isset .Params "id" }}

              {{ partial .Params.id . }}

            {{ else }}

            <div class="container">

                <div class="row">

                    <div class="col-md-12">
						
<div class="page-content">

  <!-- BLOCCO 1: immagine a DESTRA -->
  {{ if .Params.image1 }}
  <div class="row page-section">

      <div class="col-md-7">
          {{ .Content }}
      </div>

      <div class="col-md-5 page-image">
          <img src="{{ .Params.image1 }}"
               alt="{{ .Params.image1_alt }}"
               class="img-responsive img-rounded">
      </div>

  </div>
  {{ else }}
      {{ .Content }}
  {{ end }}


  <!-- BLOCCO 2: immagine a SINISTRA -->
  {{ if .Params.image2 }}
  <div class="row page-section" style="margin-top:50px;">

      <div class="col-md-5 page-image">
          <img src="{{ .Params.image2 }}"
               alt="{{ .Params.image2_alt }}"
               class="img-responsive img-rounded">
      </div>

      <div class="col-md-7">
          <!-- eventuale testo aggiuntivo -->
      </div>

  </div>
  {{ end }}

</div>
<br>
                    </div>

                </div>
                <!-- /.row -->

            </div>
            <!-- /.container -->

            {{ end }}
        </div>
        <!-- /#content -->

        {{ partial "footer.html" . }}

    </div>
    <!-- /#all -->

    {{ partial "scripts.html" . }}

  </body>
</html>
