/* =========================================================
   BASE
   ========================================================= */

body {
  font-family: Helvetica;
  font-size: 19px;
  line-height: 1.7;
  color: #000;
}

ol,
ul {
  padding-left: 1rem;
}

.grid-child {
  max-width: 1200px;
}


/* =========================================================
   LINKS
   ========================================================= */

a,
a:visited,
a:active {
  color: #936432;
  text-decoration: none !important;
}

a:hover,
a:focus {
  color: #000;
  text-decoration: underline !important;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
.h1 {
  margin-bottom: 40px;
  font-size: 34px !important;
  line-height: 1.2 !important;
}

h2,
.h2,
h3,
.h3 {
  font-size: 30px !important;
  line-height: 1.2 !important;
}

@media (width >= 1200px) {

  h4,
  .h4 {
    font-size: 1rem;
  }
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  width: 100%;
  background-color: #333;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: -16px;
}

.header-image {
  display: flex;
  justify-content: flex-end;
}

.header-wrapper {
  position: relative;
  width: 600px;
  height: 180px;
  margin-left: 260px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.header-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.header-bg img,
.header-mask img {
  display: block;
  width: 600px;
  height: 180px;
}

@media (max-width: 1199px) {

  .header-image {
    display: none;
  }

}


/* =========================================================
   CONTENT LAYOUT
   ========================================================= */



@media (min-width: 993px) and (max-width: 1519px) {

  .site-grid {
    display: block !important;
  }

  .container-component {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: 7px !important;
    margin-right: auto !important;
    float: none !important;
  }

}


@media (min-width: 1520px) {

  .site-grid .container-component {
    max-width: 1200px !important;
    width: 100% !important;

    margin-left: 7px !important;
    margin-right: auto !important;

    box-sizing: border-box !important;
  }

}


@supports (display:grid) {

  .site-grid {
    grid-gap: 0 1em;

    grid-template-columns:
      [full-start] minmax(0,1fr)
      [main-start] repeat(4,minmax(0,18.75rem))
      [main-end] minmax(0,1fr)
      [full-end];
  }

}

/* =========================================================
   ARTICLE INFO
   ========================================================= */

/* Nasconde "Dettagli" */
.article-info .article-info-term {
  display: none;
}

/* Nasconde le icone */
.article-info [class^="icon-"]::before,
.article-info .fas::before,
.article-info .fa::before {
  display: none !important;
}

/* Tutto sulla stessa riga */
.article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;

  margin: 0;
  padding: 0;
}

/* Elimina ritorni a capo e rientri */
.article-info dd,
.article-info dl,
.article-info dt {
  margin: 0;
  padding: 0;
}


/* =========================================================
   MASONRY
   ========================================================= */

.mfp_newsy_skin_default .mfp_newsy_item .mfp_newsy_title a,
.mfp_default_skin_default .mfp_default_item .mfp_default_title a {
  font-size: 20px !important;
  font-weight: 700 !important;
}

.mfp_default_skin_default .mfp_default_item .mfp_default_title a {
  position: relative;
}

.mfp_masonryxt_skin_default .mfp_masonryxt_item .mfp_masonryxt_title a,
.mfp_masonryxt_skin_default.mfp_mid_379 .mfp_masonryxt_item .mfp_masonryxt_hero_item .mfp_masonryxt_title a {
  font-size: 20px !important;
}


/* =========================================================
   MAXIMENU
   ========================================================= */

div#maximenuck211 li.maximenuck > a img {
  padding: 0;
  margin: 0 4px 0 0;
}

div#maximenuck211 ul.maximenuck li.maximenuck.level1:hover > a span.titreck,
div#maximenuck211 ul.maximenuck li.maximenuck.level1.active > a span.titreck,
div#maximenuck211 ul.maximenuck li.maximenuck.level1:hover > span.separator,
div#maximenuck211 ul.maximenuck li.maximenuck.level1.active > span.separator {
  color: #eeeeee;
}


/* =========================================================
   FOOTER
   ========================================================= */

.container-footer.full-width {
  width: 100% !important;
  background: #ffffff !important;
  border-top: 1px solid #adb5bd;
}

/* desktop + tablet */
.container-footer {
  display: flex !important;
  align-items: flex-start !important;

  max-width: 1200px !important;
  margin: 0 auto !important;
}

.container-footer .footer {
  flex: 0 0 80% !important;
  max-width: 75% !important;
  margin-left: 10px;

  color: #808080 !important;
  background-image: none !important;
}

.container-footer .footer-r {
  flex: 0 0 20% !important;
  max-width: 25% !important;

  color: #808080 !important;
  background-image: none !important;
}

/* sicurezza extra contro Cassiopeia/Bootstrap */
.footer,
.footer-r {
  background-color: transparent !important;
}

/* link footer */
.container-footer a,
.container-footer a:visited,
.container-footer a:active {
  color: #000 !important;
  text-decoration: none !important;
}

.container-footer a:hover {
  color: #808080 !important;
  text-decoration: underline !important;
}

/* mobile */
@media (max-width: 768px) {

  .container-footer {
    display: block !important;
    padding: 0 15px;
  }

  .container-footer .footer,
  .container-footer .footer-r {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .container-footer .footer-r {
    margin-top: 20px;
  }

}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagenavigation .pagination .next:only-child,
.pager .pagination .next:only-child {
  margin-left: auto;
  font-size: 1.1rem;

  background: #eeeeee;
  border-color: #adb5bd;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-secondary {
  --btn-color: #936432;
  --btn-bg: #eee;
  --btn-border-color: #adb5bd;
  --btn-hover-bg: #eee;

  font-size: 1.1rem;
}


/* =========================================================
   RESPONSIVE MASONRY
   ========================================================= */

/* Tablet portrait + landscape:
   le colonne desktop da 6 diventano 4 */

@media only screen and (min-width: 48em) and (max-width: 64em) {

  .mfp-grid > .mfp-col-md-2,
  .mfp-grid > .mfp-col-lg-2,
  .masonryxt .mfp-col-sm-6:not(.hero),
  .masonryxt .mfp-col-md-6:not(.hero) {
    flex: 0 0 25%;
    max-width: 25%;

    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    -ms-flex-preferred-size: 25%;
    flex-basis: 25%;
  }

}


