{% include setlang.html %}

{% include head.html %}


{% include cookiebar.html %}

<div class="u-background-95">
  <div id="main" class="u-layout-wide u-layoutCenter">
    {% include header.html hasSearch=true %}
    {% include offcanvas.html menu_items=site.data.menu_items %}
    {% comment %}
    <!-- NOT FOR NOW-->
    {% include network.html network_items=site.data.network_links %}
    {% endcomment %}
  </div>

  <div class="container">
    <div class="row">
      <div class="Header-logo col-1 col-md-1 m-auto" aria-hidden="true">
        {% if page.website %}
        <a href="{{ page.website }}" target="_blank" rel="noopener noreferrer" tabindex="-1">
        {% endif %}
          {% if page.emblem %}
          <img src="{{ page.emblem }}" alt="">
          {% endif %}
        {% if page.website %}
        </a>
        {% endif %}
      </div>

      <div class="Header-title col-md-7 col-9 mr-auto">
        <h1 class="Header-titleLink Header-titleLink--pa">
          {% if page.website %}
          <a class="text-900" href="{{ page.website }}" target="_blank" rel="noopener noreferrer">
          {% endif %}
            <!-- Nobody is ever going to provide a styledName...
            We could make this in the Jekyll template with a few heuristics,
            like stripping "Comune di", "Regione di", "Ministero del " etc. -->
            {% if page.styledName %}
            {{ page.styledName }}
            {% else %}
            {{ page.entityName }}
            {% endif %}
          {% if page.website %}
          </a>
          <a class="text-primary" href="{{ page.website }}" target="_blank" rel="noopener noreferrer">
          {% endif %}
            <span class="d-none d-lg-block Header-subtitle">
              {{ page.websiteText }}
            </span>
          {% if page.website %}
          </a>
          {% endif %}
        </h1>
      </div>
      <div class="Header-title col-12 col-md-3">
        <p>
          {{ t.pa.top_right_text }}
        </p>
      </div>
    </div>
    <!-- Header-navbar -->

  </div>
  {{ content }}
</div>

{% include scrolltop.html %}

<div id="root"></div> <!-- React mount point -->

<div class="u-background-95">
  <div class="u-layout-wide u-layoutCenter u-layout-r-withGutter u-hiddenPrint">
    {% include footer--simple.html %}
  </div>
</div>

</body>
</html>
