/* PRIMO PIANO 1 - NAZIONALE*/

/*to do*/

/* Variabili */
:root {
  /* aspect ratio */
  --ratio-1x1: 100%;
  --ratio-2x1: 50%;
  --ratio-4x3: calc(3 / 4 * 100%);
  --ratio-16x9: calc(9 / 16 * 100%);
  --ratio-21x9: calc(9 / 21 * 100%);

  /* BS overrides */
  --primary: #3bade0;
  --secondary: #00559f;

  /* colori */
  --white: #ffffff;
  --light-grey: #e5e5e5;
  --dark-grey: #959595;
  --dark: #262626;

  /* box-shadow */
  --default-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.16);

  /* fonts */
  --main-font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

/* PRIMO PIANO 2 - UNIONI*/

/* BS OVERRIDE */
@media (min-width: 768px) {
  .ratio-4x3.ratio-override {
    --bs-aspect-ratio: var(--ratio-21x9); /* BS OVERRIDE */
  }
}

.CCInewsCarousel .img-articolo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.CCInewsCarousel .articleTitle {
  position: absolute;
  display: block;
  bottom: 0;
  top: 30%;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 50px;
  padding-right: 50px;
  background: rgba(0, 0, 0, 0.5);
  background: -moz-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background: -webkit-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

/* Pulsante primo piano e titolo articolo */
.CCInewsCarousel .articleTitle .articleCategory,
.CCInewsCarousel .articleTitle .h1 {
  padding-left: 15px;
}

.CCInewsCarousel .carousel-indicators {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 15;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
  margin-bottom: 0; /* BS OVERRIDE */
  padding-left: 15px;
  cursor: pointer;
}

/* BS OVERRIDE - indicators */
.CCInewsCarousel .articleIndicator {
  margin: 5px 0;
  background: rgba(0, 85, 159, 0.6);
  transition: all 0.3s ease-in;
  box-sizing: border-box !important;
  flex: 0 1 auto;
  width: auto !important;
  height: auto !important;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: 0% !important;
  cursor: pointer;
  background-color: none !important;
  background-clip: border-box !important;
  border: 0;
  border-top: none !important;
  border-bottom: none !important;
  opacity: 1 !important;
}

.CCInewsCarousel .articleIndicator.active {
  background: var(--secondary);
}

/* immagine indicatori */
.CCInewsCarousel .articleIndicator .img-articolo {
  width: 70px;
  height: 70px;
}

/* titoli indicatori */
.CCInewsCarousel .articleIndicator .small {
  font-size: 80%; /* BS OVERRIDE */
}

@media (max-width: 992px) {
  .CCInewsCarousel .ratio {
    min-height: 360px;
  }

  .CCInewsCarousel .articleTitle .h1 {
    font-size: 1.25rem;
  }

  .CCInewsCarousel .articleIndicator .img-articolo {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 993px) {
  .CCInewsCarousel .carousel-indicators {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* fix IE 10-11 */
@media (min-width: 993px) {
  .CCInewsCarousel .carousel-indicators {
    width: 33.333333%;
  }
}
@media (max-width: 992px) {
  .CCInewsCarousel .carousel-indicators {
    width: 70px;
  }
}
/* fine fix IE 10-11 */

/* ACCORDION LISTING */

.accordion-listing .singolo-articolo {
  border-top: solid 1px var(--light-grey);
}

.accordion-listing .singolo-articolo .content-articolo {
  padding: 1.5rem;
  padding-left: 2.5rem;
}

/* immagine articolo */
.accordion-listing
  .singolo-articolo
  .content-articolo
  .accordion-articolo-immagine {
  display: block;
  margin: auto;
}

.accordion-listing .singolo-articolo .titolo-articolo > .btn-accordion {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 24px;
  height: 26px;
  min-width: 24px;
  max-width: 24px;
  /* padding: .25rem; */
  padding: 0;
  border: none;
}

.accordion-listing .singolo-articolo .titolo-articolo > .btn-accordion > i {
  color: var(--white);
  font-size: 12px;
}

.accordion-listing .singolo-articolo .titolo-articolo > .btn-accordion,
.accordion-listing .singolo-articolo .titolo-articolo > .btn-accordion > i,
.accordion-listing .singolo-articolo .titolo-articolo > p {
  transition: 0.3s;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="false"]:focus {
  background-color: var(--primary) !important;
  box-shadow: 0 0 0 0.1rem rgb(49 132 253 / 40%);
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"]:focus,
.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"] {
  background-color: var(--light-grey) !important;
  box-shadow: 0 0 0 0 transparent;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"]:focus,
.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"],
.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > p[aria-expanded="true"] {
  background-color: var(--light-grey) !important;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > p[aria-expanded="true"] {
  font-weight: 700;
  padding: 1px;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="false"]
  > i.fa-plus {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"]
  > i.fa-plus {
  opacity: 0;
  display: none;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion
  > i.fa-minus {
  opacity: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
}

.accordion-listing
  .singolo-articolo
  .titolo-articolo
  > .btn-accordion[aria-expanded="true"]
  > i.fa-minus {
  opacity: 1;
  display: flex;
}
.rassegna-stampa {
  border-top: solid 2px var(--secondary);
}
.rss {
  float: right;
  margin-top: 10px;
  width: 13px;
  height: 14px;
  text-indent: -9999px;
  background-image: url("rss2.png") 0 0 no-repeat;
}

/* team */
.listing-team .EDN_featured .wrapper-articolo {
  background: #efefef;
}

@media (min-width: 768px) {
  .listing-team .EDN_featured {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .listing-team .EDN_featured .wrapper-articolo {
    height: auto !important;
  }
  .listing-team .EDN_featured .wrapper-contenuto-articolo,
  .listing-team .EDN_featured .immagine-articolo {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .listing-team .EDN_featured .wrapper-articolo {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }
}

/* LE NOSTRE COOPERATIVE (Archivio - Listing) */
.listing-card-category a {
  font-size: 13px !important;
}

.card-articolo .immagine-cooperative {
  height: 6.25em;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.singolo-articolo div.edn_cardArticleCustomField {
  font-size: 1rem;
  color: var(--dark-grey);
}

/* LE NOSTRE COOPERATIVE (Dettaglio) */
.detail-card-article div:nth-child(2) h1 {
  margin-bottom: 3rem;
}

.detail-card-article div:nth-child(2) div {
  margin-bottom: 1rem;
}

.detail-card-article div:nth-child(2) div:last-child {
  margin-bottom: 0rem;
}

.detail-card-article div:nth-child(2) div strong {
  font-weight: 700;
}

.detail-card-article div:nth-child(2) div:last-child ul {
  /* display: inline-flex; */ /* commentato da A.Gonnella */
  list-style: none;
  margin-left: 0px;
  padding-left: 0; /* BS reset */
}

.detail-card-article div:nth-child(2) div:last-child ul li {
  margin-right: 0.5rem;
}

.detail-card-article div:nth-child(2) div:last-child ul li::after {
  content: ", ";
}
.detail-card-article div:nth-child(2) div:last-child ul li:last-child:after {
  content: "";
}

.edMaps_map .edMaps_newsContent > .edMaps_title > a {
  font-size: 15px !important;
}

.edMaps_map .edMaps_newsContent {
  width: auto !important;
}

.dettaglio-articolo .dettaglio-articolo-card {
  min-height: inherit !important;
  background-color: var(--white);
}

.dettaglio-articolo .dettaglio-articolo-immagine-card {
  height: 150px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; /* inserito da A.Gonnella */
}

.edMaps_moduleWrapper
  > .edMaps_mapWrapper.edMaps_hasLocationSearch
  .edMaps_slmWrapper {
  padding: 1rem !important;
}

.edMaps_moduleWrapper
  > .edMaps_mapWrapper
  .edMaps_slmWrapper
  > .edMaps_locationSearchWrapper {
  width: 100% !important;
  margin: 0 !important;
  transition: ease-in-out 0.2s;
}

.edMaps_moduleWrapper
  > .edMaps_mapWrapper
  .edMaps_slmWrapper
  > .edMaps_locationSearchWrapper
  > label {
  font-size: 1rem;
  text-transform: uppercase;
}

.edMaps_moduleWrapper
  > .edMaps_mapWrapper
  .edMaps_slmWrapper
  > .edMaps_locationSearchWrapper
  > input[type="text"] {
  width: 100%;
  border: solid 1px #d4d4d4;
  padding: 0 10px;
  height: 30px;
  color: #848484;
  font-size: 1rem;
  border-radius: none;
  margin-top: 1rem;
}

.edMaps_moduleWrapper
  > .edMaps_mapWrapper
  .edMaps_textBox
  > input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: none !important;
}

.edMaps_slmWrapper input::-webkit-input-placeholder,
.edMaps_slmWrapper input:-ms-input-placeholder,
.edMaps_slmWrapper input:-moz-placeholder,
.edMaps_slmWrapper input::-moz-placeholder {
  font-family: var(--main-font-family);
}

/* EDN SEARCH */
.edncf_DropDownList {
  position: relative;
}

.edncf_AdvancedSearch span {
  margin-bottom: 1rem !important;
}

.search select,
.search .input input {
  width: 100%;
  border: solid 1px #d4d4d4;
  padding: 0 10px;
  height: 30px;
  color: #848484;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 0;
  margin-bottom: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 10;
  cursor: pointer;
  transition: ease-in-out 0.2s;
}

.search select:focus,
.search select:focus-visible,
.search .input input:focus {
  border: solid 1px #189fd3;
}

.search select:focus-visible {
  outline: none;
}

.search .edncf_DropDownList::after {
  content: "\25BC";
  position: absolute;
  right: 0.625em;
  color: #d4d4d4;
}

.search .edncf_Multiselect {
  position: relative;
  background-color: rgba(255, 255, 255, 0);
  transition: ease-in-out 0.2s;
}

.search .edncf_Multiselect::after {
  content: "\25BC";
  position: absolute;
  top: 43px;
  right: 0.625em;
  color: #d4d4d4;
  cursor: pointer;
}

.search .ms-parent {
  margin-bottom: 1rem;
}

.search .ms-choice {
  height: auto;
  width: 100%;
  border: solid 1px #d4d4d4;
  padding: 0 10px;
  min-height: 30px;
  color: #848484;
  background-color: var(--white);
  text-align: left;
  transition: ease-in-out 0.2s;
}

.search .ms-choice:focus {
  border: solid 1px #189fd3;
}

.search .ms-drop {
  display: none;
  border: solid 1px #d4d4d4;
  max-height: 250px;
  overflow: auto;
  padding: 1rem;
  margin: 0px;
  transition: ease-in-out 0.2s;
}

.search .ms-drop ul {
  list-style: none;
  margin: 0;
  padding-left: 0; /* BS reset */
}

.search .ms-drop ul li label input {
  margin-right: 0.5rem;
}

.edncf_submitContainer {
  text-align: right;
}

.edncf_submitContainer a {
  margin-left: 1rem;
  background-color: var(--primary);
  color: var(--white);
  min-width: 220px;
  height: 40px;
  padding: 5px 15px;
}

.edncf_submitContainer a:hover {
  background-color: var(--secondary);
}

.edncf_submitContainer span {
  font-size: 18px;
}

.edncf_Multiselect .ms-parent {
  width: inherit !important;
}

/* Articoli (dettaglio) - default image gallery resets */

.smbLightOverlayWrapper.modern.smbPlus > .close {
  right: 20px !important;
  bottom: auto !important;
  left: auto !important;
  top: 8% !important;
  font-size: 2rem;
}

.smbLightOverlayWrapper.modern.smbPlus > .close > span::after {
  font-size: 2rem !important;
}

#EDG_0_Shadow .EDGmain .EDGimage a img {
  max-width: 100% !important;
}

/* Articoli (paginazione) */

.article_pager {
  margin-top: 1.5rem;
  display: flex;
}
.article_pager a.page {
  box-shadow: 0 0 0 1px var(--light-grey);
  height: 32px;
  padding: 0px 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
.article_pager a.next,
.article_pager a.last,
.article_pager a.prev,
.article_pager a.first {
  box-shadow: 0 0 0 1px var(--light-grey);
  height: 32px;
  padding: 0px 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* LE NOSTRE COOPERATIVE (Legenda - EDN category menu) */
.DnnModule-EasyDNNnewsCategoriesMenu
  .eds_template_TemplatedMenu_CategoriesMenu_Legenda
  ul.edn_category_menu_wrapper {
  margin-left: 0;
  padding-left: 0; /* BS reset */
  list-style: none;
}

.DnnModule-EasyDNNnewsCategoriesMenu
  .eds_template_TemplatedMenu_CategoriesMenu_Legenda
  ul.edn_category_menu_wrapper
  .edn_image
  img {
  width: 2rem;
  position: relative;
  top: -0.2rem;
}

/* LE NOSTRE COOPERATIVE - ALPE ADRIA - Sidebar Menu principale scompare su dispositivi mobile (c'è un secondo Sidebar Menu che compare su mobile a fine pagina */
@media (max-width: 991px) {
  #dnn_S3_col_4 > .DnnModule.DnnModule-DDRMenu {
    display: none;
  }
}
