/* FIRST LEVEL */

#news_highlight {
  min-height: 472px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.news-photo {
  width: 50%;
  float: right;
  height: 480px;
  position: absolute;
  right: 0;
}

.news-photo img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.news-text {
  padding: 48px 0 0 0;
}

.news-text h2 {
  font-size: 2.222em;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-right: 24px;
  letter-spacing: 0;
}

.news-text h2 a {
  color: #003882;
}

.news-text p {
  font-family: 'Lora', serif;
  color: #555;
  margin: 20px 0;
  margin-right: 24px;
}

.news-text .themes {
  margin-right: 24px;
}

.all {
  color: #4e7e5b;
  font-size: 0.778em;
  text-transform: none;
  vertical-align: middle;
  display: inline-block;
  font-weight: bold;
  letter-spacing: 1px;
}

.all:hover {
  color: #003882;
  text-decoration: underline;
}

.all svg.icon {
  vertical-align: bottom;
  width: 18px;
  height: 20px;
  fill: #4e7e5b;
}

.all:hover svg.icon {
  fill: #003882;
}

/* NEWS */

#home-news {
  background-color: #eceff1;
  padding: 56px 0;
  clear: both;
}

#home-news .container {
  clear: both;
}

#home-news h3 {
  display: none;
}

.panel {
  background: #fff;
  -webkit-box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #eceff1;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mt-88n {
  margin-top: -88px;
}

.panel-round {
  border-radius: 4px;
}

.panel .panel-icon-small {
  color: #003882;
  letter-spacing: 1px;
  font-size: 0.778em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 24px 0 24px;
}

.panel .panel-icon-small a {
  color: #003882;
}

.panel .panel-icon-small svg.icon {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  fill: #003882;
}

.panel .panel-text-small h4 a {
  color: #003882;
}

.panel .panel-icon-small a:focus {
  outline: 2px solid #ff8c00 !important;
}

.panel .panel-text,
.panel .panel-text-small,
.panel .panel-footer {
  padding: 10px 24px 16px 24px;
}

.panel .panel-text-small {
  flex: 1 0 auto;
}

.panel .panel-text-small h4 {
  font-size: 1.111em;
  font-weight: bold;
  margin-bottom: 8px;
}

.panel .panel-text-small p {
  font-size: 0.889em;
}

.panel .panel-footer {
  border-top: 0 solid #d8d8d8;
  flex: 0 0 auto;
}

/* ARGOMENTI EVIDENZA */

#highlight_themes {
}

#highlight_themes .themes-photo {
  background: url(../img/foto/woodstock.jpg) no-repeat center;
  height: 260px;
  background-size: cover;
  display: block;
  position: relative;
  padding-top: 52px;
}

#highlight_themes .themes-photo h3 {
  color: #fff;
  font-size: 1.778em;
  margin: 0;
}

.row.mt-128n {
  margin-top: -128px;
}

.panel .panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf2ec;
  margin: 16px 24px 8px 24px;
  text-align: center;
  vertical-align: middle;
  line-height: 43px;
}

.panel .panel-icon svg.icon {
  width: 24px;
  height: 24px;
  fill: #003882;
}

.panel .panel-text {
  padding-top: 8px;
  flex: 1 0 auto;
}

.panel .panel-text h4 {
  font-size: 1.75em;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.panel .panel-text p {
  font-size: 0.889em;
  line-height: 24px;
}

.panel .panel-text h4 a {
  color: #003882;
}

.panel h5 {
  font-size: 0.778em;
  font-weight: 600;
}

.site-panel {
  border-radius: 4px;
  background-color: #51825f;
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.1);
  color: #fff;
  padding: 16px;
  margin-bottom: 8px;
  display: table;
  width: 100%;
}

.site-panel .site-icon {
  display: table-cell;
  vertical-align: middle;
  width: 64px;
  text-align: center;
  vertical-align: top;
  padding-top: 10px;
}

.site-panel .site-icon svg.icon {
  fill: #fff;
  width: 40px;
  height: 40px;
}

.site-panel .site-icon svg.icon.ca-portaporta {
  width: 65px;
}
.site-panel .site-icon svg.icon.ca-ponmetro {
  width: 63px;
}
.site-panel .site-icon svg.icon.ca-iti {
  width: 52px;
}

.site-panel p {
  display: table-cell;
  vertical-align: middle;
  font-size: 0.889em;
  padding-left: 8px;
}

.site-panel a {
  color: #fff;
}

.site-panel a strong {
  font-size: 1.125em;
  font-weight: bold;
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.panel-list li {
  vertical-align: middle;
  padding: 4px 0;
}

.panel-list li a {
  color: #003882;
  font-size: 0.889em;
  vertical-align: middle;
}

.panel-list li a svg.icon {
  vertical-align: middle;
  margin-right: 4px;
  width: 22px;
  height: 22px;
  fill: #003882;
}

/* SITI TEMATICI */
#thematic_sites {
  margin: 32px 0 64px 0;
}

#thematic_sites h3 {
  color: #796c31;
  font-size: 1.778em;
  margin: 0 0 32px 0;
}

#thematic_sites .site-panel {
  margin-bottom: 24px;
}

#thematic_sites .row-eq-height,
#thematic_sites .mb16 {
  margin-bottom: 0 !important;
}

/* SERVICES */

@media (min-width: 767px) and (max-width: 991px) {
  #news_highlight,
  .news-photo {
    min-height: 600px;
  }
}

@media (max-width: 767px) {
  #news_highlight {
    min-height: 0;
    margin-bottom: 88px;
    min-height: 0;
  }

  .news-photo {
    width: 100% !important;
    float: none;
    min-height: 0;
    height: auto;
    position: relative;
  }

  .news-photo img {
    width: 100%;
    object-fit: cover;
    max-height: 360px;
  }

  .news-text h2 {
    font-size: 1.556em;
    margin-right: 0;
  }

  .news-text p,
  .news-text .themes {
    margin-right: 0;
  }

  .panel {
    margin-bottom: 16px;
    height: auto;
  }

  #home-news div[class^='col']:first-of-type .mt-88n {
    margin-top: -88px;
  }

  .all {
    font-size: 0.875em;
  }

  .all svg.icon {
    vertical-align: middle;
  }

  #highlight_themes .themes-photo {
    padding-top: 40px;
  }

  #highlight_themes.row.mt-128n {
    margin-top: -64px;
    margin-bottom: 16px;
  }

  .panel .panel-icon-small {
    font-size: 0.875em;
  }

  .panel .panel-text-small h4 {
    font-size: 1em;
  }

  .panel .panel-text h4 {
    font-size: 1.5em;
  }

  .panel .panel-text p,
  .panel .panel-text-small p {
    font-size: 1em;
  }

  .panel-list li a {
    font-size: 1em;
  }

  .panel .panel-footer {
    padding: 16px 24px 13px 24px;
  }

  #thematic_sites {
    margin: 32px 0 32px 0;
  }

  
  .btn-green {
    font-size: 0.875em;
    padding: 8px 16px;
    margin: 0 8px 8px 0;
  }
}

@media (max-width: 576px) {
  .news-photo img {
    max-height: 240px;
  }

  #highlight_themes .themes-photo {
    height: 170px;
  }
}
