/*===========================================
  VARIABILI CSS
===========================================*/
:root {
  /* Colori */
  --bs-primary: #004f9e !important;
  --bs-primary-rgb: 0, 79, 158;
  --bs-secondary: #023365;
  --bs-secondary-rgb: 2, 51, 101;
  --bs-tertiary: #d9e4ef;
  --bs-quaternary: #4388cd;
  --bs-border-radius: 0;
  --bs-link-color: #005cb8;
  --bs-link-hover-color: #005cb8;
  --bs-link-color-rgb: rgb(0, 92, 184);
  --bs-body-bg: #ffffff;
  --bs-body-color: #000;
  --bs-body-font-family: "Segoe UI";
  --bs-body-font-size: 1.1rem;
  
  /* Dimensioni */
  --wid-100: 100%;
  --hg-img: 60vh;
  
  /* Spaziature */
  --pad-l-10p: 10%;
  --pad-r-10p: 10%;
  --p-0: 0;
}

/*===========================================
  FONTS
===========================================*/
@font-face {
  font-family: "Segoe UI";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/segoe-ui.ttf") format("truetype");
}

@font-face {
  font-family: "Segoe UI Bold";
  font-style: bold;
  font-weight: 400;
  src: url("../fonts/segoe-ui-bold.ttf") format("truetype");
}

/*===========================================
  LAYOUT BASE
===========================================*/
html {
  scroll-padding-top: 130px;
  height: 100%;
}

body {
  font-family: var(--bs-body-font-family);
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/*===========================================
  TIPOGRAFIA
===========================================*/
h1 {
  font-weight: bold;
  font-size: 1.6rem;
}

h2 {
  font-weight: bold;
  font-size: 1.4rem;
}

h3 {
  font-weight: bold;
  font-size: 1.3rem;
}

/*===========================================
  LINKS
===========================================*/
a {
  color: var(--bs-link-color) !important;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: var(--bs-link-color) !important;
  text-decoration: underline;
}

a:hover h2 {
  color: #000;
  text-decoration: underline;
}

/*===========================================
  BREADCRUMB
===========================================*/
.breadcrumb-item.active {
  color: black !important;
}

/*===========================================
  HEADER
===========================================*/
.header-row {
  padding-left: var(--pad-l-10p);
}

/* Immagine di sfondo header */
.background-image {
  height: 600px;
  background: #004f9e url(/images/AdobeStock_1375002200.jpeg) no-repeat center center;
  background-size: cover;
}

@media screen and (max-width: 992px) {
  .background-image {
    height: 350px;
  }
}

/*===========================================
  MENU
===========================================*/
.menu-row {
  background-color: var(--bs-primary);
}

.menu-row .nav-link {
  color: var(--bs-light) !important;
}

.mod-menu .nav-item {
  font-size: 20px;
  position: relative;
}

.mod-menu .nav-item.current::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: var(--wid-100);
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent,
    var(--bs-light),
    transparent
  );
}

@media (max-width: 991px) {
  .mod-menu .nav-item.current::after {
    width: 50%;
    background-image: linear-gradient(to right, var(--bs-light), transparent);
  }
}

.woriz {
  width: 65%;
}

@media (max-width: 1400px) {
  .woriz {
    width: 85%;
  }
  .woriz .nav-link {
    font-size: 1.2rem;
  }
}

.parent a::after {
  content: none;
}

/* Navbar toggler */
.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMzAnIGhlaWdodD0nMzAnIHZpZXdCb3g9JzAgMCAzMCAzMScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cmVjdCB3aWR0aD0nMzAnIGhlaWdodD0nMycgcng9JzEnIHN0eWxlPSdmaWxsOiNmZmZmZmY7Jy8+PHJlY3QgeT0nMTMnIHdpZHRoPSczMScgaGVpZ2h0PSczJyByeD0nMScgc3R5bGU9J2ZpbGw6I2ZmZmZmZjsnLz48cmVjdCB5PScyNicgd2lkdGg9JzMwJyBoZWlnaHQ9JzMnIHJ4PScxJyBzdHlsZT0nZmlsbDojZmZmZmZmOycvPjwvc3ZnPg==") !important;
}

/* Menu Mobile Hamburger */
.menu-btn-mobile {
  position: fixed;
  z-index: 4;
  top: 2%;
  right: 4%;
  height: 45px;
  width: 45px;
  line-height: 50px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 15px;
  border: 2px solid var(--bs-primary);
  background-color: var(--bs-tertiary);
  transition: all 0.3s ease-in-out;
}

.menu-btn-mobile span,
.menu-btn-mobile:before,
.menu-btn-mobile:after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 30%;
  width: 40%;
  border-bottom: 2px solid var(--bs-primary);
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.menu-btn-mobile:before {
  transform: translateY(-8px);
}

.menu-btn-mobile:after {
  transform: translateY(8px);
}

.close {
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background 0.6s;
}

.wrapper-mobile {
  position: fixed;
  top: 0;
  z-index: 2;
  right: -100%;
  height: 100%;
  width: 100%;
  background: #fff;
  transition: all 0.6s ease-in-out;
}

#active-mobile:checked ~ .wrapper-mobile {
  right: 0;
}

#active-mobile:checked + .menu-btn-mobile span {
  transform: scaleX(0);
}

#active-mobile:checked + .menu-btn-mobile:before {
  transform: rotate(45deg);
  border-color: var(--bs-primary);
}

#active-mobile:checked + .menu-btn-mobile:after {
  transform: rotate(-45deg);
  border-color: var(--bs-primary);
}

/*===========================================
  HOMEPAGE - SEZIONE CAROUSEL
===========================================*/
.carousel-item > img {
  width: var(--wid-100);
  height: var(--hg-img);
  object-fit: cover;
  background-repeat: no-repeat;
  display: block;
  min-height: 500px;
}

.text-block {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-250%);
  padding: 20px;
  border-radius: 15px;
  width: 50%;
  margin-left: 10%;
  margin-top: 5%;
}

@media (max-width: 768px) {
  .text-block {
    width: 80%;
  }
}

/*===========================================
  HOMEPAGE - SEZIONE NUMERI
===========================================*/
.sfondo-img-container {
  position: relative;
  background: #fff url(/images/immagini/numeri_AdobeStock_987242042.jpg) no-repeat center center;
  background-size: cover;
}

.numeri {
  color: var(--bs-light);
  font-size: 1.75rem;
  padding-top: 1.5em;
  padding-left: 1.25em;
  margin-bottom: 3em;
}

.numeri2 {
  color: var(--bs-light);
  font-size: 1rem;
}

.counter span {
  color: var(--bs-light);
  font-size: 3rem;
  background: none;
  text-indent: 0;
  width: auto;
}

@media (max-width: 768px) {
  .numeri {
    margin-bottom: 1em;
  }
}

/*===========================================
  HOMEPAGE - SEZIONE 3
===========================================*/
/*.home3 .mod-custom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: var(--wid-100);
  height: var(--hg-img);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 500px;
  position: relative;
}*/

@media (max-width: 768px) {
  .text-block3 {
    width: 100%;
  }
  .carousel-caption {
    width: 80% !important;
  }
}

/*===========================================
  UTILITIES
===========================================*/
.bg-blue {
  background: linear-gradient(180deg,
      rgba(0, 79, 158, 0.887),
      rgba(2, 51, 101, 0.936));
}

.bg-white-opacity {
  background-color: #ffffffe9;
  border-radius: 10px;
}

/* Margin responsive */
.margin-top {
  margin-top: 8%;
}

@media screen and (max-width: 991px) {
  .margin-top {
    margin-top: 5%;
  }
}

@media screen and (min-width: 992px) and (max-width: 1399px) {
  .margin-top {
    margin-top: 11%;
  }
}

@media screen and (min-width: 1601px) {
  .margin-top {
    margin-top: 6%;
  }
}

/*===========================================
  FOOTER
===========================================*/
.nav2 {
  /*background-color: #0f6efa;*/
  background-color: rgb(0, 79, 158) !important;
  min-height: 62px;
  display: flex;
  align-items: center;
  margin:0px;
  padding: 0px;
}

@media (min-width: 992px) {
 /* footer {
    background: linear-gradient(
      to right,
      #fff 37%,
      var(--bs-primary) 37%
    ) !important;
  }*/
}

@media (max-width: 991px) {
  .foot {
    padding: var(--p-0) !important;
  }
}

.foot {
  padding-left: var(--pad-l-10p);
  padding-right: var(--pad-r-10p);
}

.fab {
  width: 40px;
  height: 40px;
}

.facebook,
.twitter,
.linkedin,
.youtube,
.telefono {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
}

.facebook {
  background-image: url("svg/icon-fb-pallino.svg");
}

.twitter {
  background-image: url("svg/icon-twitter-pallino.svg");
}

.linkedin {
  background-image: url("svg/icon-linkedin-pallino.svg");
}

.youtube {
  background-image: url("svg/icon-youtube-pallino.svg");
}

.telefono {
  background-image: url("svg/icon-tel-pallino.svg");
}

.img-centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*===========================================
  SIDEBAR
===========================================*/
.sidebar {
  background: #fff !important;
  color: black;
}

.sidebar ul li a {
  font-size: 1rem;
}

.sidebar ul ul li a {
  width: calc(100% - 2rem);
}

.sidebotton {
  background: none;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  font-weight: bold;
  padding-top: 0;
  padding-bottom: 0.2em;
  min-width: 28px;
}

.sidebotton:focus {
  outline: none;
}

.show {
  display: block !important;
}

.lidiv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.lidiv a {
  color: black !important;
}

@media (max-width: 991px) {
  .sidebar-menu-row {
    position: static;
    width: auto;
  }
  .container {
    margin-left: 0;
  }
  .navbar-toggler {
    display: block;
  }
  .order-1 {
    order: 2 !important;
  }
  .order-2 {
    order: 1 !important;
  }
}

/*===========================================
  BANDI - RICERCA
===========================================*/
.com-tags__items form {
  margin-bottom: 5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.com-tags-tag__items {
  margin-bottom: 5%;
}

.btcerca {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  height: 38px;
}

.btpulisci {
  background-color: var(--bs-light) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.minwid {
  min-width: 200px;
}

.btcerca,
.btpulisci {
  border: none;
  border-radius: 10px !important;
  font-weight: bold !important;
  font-size: larger !important;
  box-shadow: 0 5px 5px 0 black;
}

#filter-search {
  box-shadow: 0 5px 5px 0 black;
}

/*===========================================
  PAGINAZIONE
===========================================*/
.center-align {
  display: flex;
  justify-content: center;
}

/*===========================================
  CARD BANDI
===========================================*/
.cardstyle {
  margin-bottom: 0.625em;
  height: 18em;
  background-color: var(--bs-quaternary);
  border-radius: 10px !important;
  border: none;
}

.cardstyle a {
  color: white !important;
  text-decoration: none;
  font-weight: bold;
  margin-top: 0.625em;
}

.cardstyle a:hover {
  text-decoration: underline;
  color: #000 !important;
}

.cardtitlestyle {
  font-size: 1.5rem;
  margin-right: 3.125em;
}

.cardbodystyle {
  overflow-y: auto;
  border-radius: 0.5rem !important;
}

hr {
  border: 1px solid rgb(0, 0, 0) !important;
}

.data-rounded {
  width: 6.25em;
  height: 6.25em;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 5px 5px 0;
  padding: 2%;
  position: absolute;
  top: -10%;
  right: -5%;
  text-align: center;
  z-index: 1;
}

.tag-body {
  color: white;
}

.card-body {
  background-color: var(--bs-primary);
}

/*===========================================
  CARD AGGREGAZIONE
===========================================*/

.ag-courses_box {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 50px 0;
}
.ag-courses_item {
  flex-basis: calc(25% - 30px);
  margin: 0 15px 30px;
  overflow: hidden;
  border-radius: 20px;
  height: 200px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  height: 200px;
  text-align: center;
  background-color: var(--bs-primary);
  color: white !important;
}


.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: underline;
}

.ag-courses-item_link:hover h3 {
  color: white;
  text-decoration: underline;
}

.ag-courses-item_link:hover .ag-courses-item_bg {
  transform: scale(10);
}

.p-date {
  color: #000;
}

.ag-courses-item_title {
  overflow: hidden;
  font-weight: bold;
  font-size: 30px;
  color: #000;
  z-index: 1;
  position: relative;
}

.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;
  border-radius: 40%;
  transition: all 0.5s ease;
}

/* Responsive Card Aggregazione */
@media only screen and (max-width: 979px) {
  .ag-courses_item {
    flex-basis: calc(50% - 30px);
  }

  .ag-courses-item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }
}

@media only screen and (max-width: 639px) {
  .ag-courses_item {
    flex-basis: 100%;
  }

  .ag-courses-item_title {
    min-height: 72px;
    line-height: 1;
    font-size: 24px;
  }

  .ag-courses-item_link {
    padding: 22px 40px;
  }

  .ag-courses-item_date-box {
    font-size: 16px;
  }
}

@media only screen and (max-width: 1200px) and (min-width: 978px) {
  .ag-courses_item {
    height: 440px;
  }

  .ag-courses-item_link {
    height: 440px;
  }
}

/*===========================================
  QUADRATO (ELEMENTO GRAFICO)
===========================================*/


@media screen and (min-width: 1200px) {
  .quadrato {
    height: 280px;
    width: 280px;
   /*background: linear-gradient(180deg,
        rgba(0, 79, 158, 0.887),
        rgba(2, 51, 101, 0.936)); */
    border-radius: 20px;
    padding: 5px;
    --color: #ffffff !important; 
    /* color: #fff; */
  }
}

@media screen and (min-width: 993px) and (max-width: 1199px) {
  .quadrato {
    height: 250px;
    width: 250px;
    background: linear-gradient(180deg,
        rgba(0, 79, 158, 0.887),
        rgba(2, 51, 101, 0.936));
    border-radius: 20px;
    padding: 5px;
    color: #fff;
    --color: #ffffff !important; 
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .quadrato {
    height: 220px;
    width: 220px;
    background: linear-gradient(180deg,
        rgba(0, 79, 158, 0.887),
        rgba(2, 51, 101, 0.936));
    border-radius: 20px;
    padding: 5px;
    color: #fff;
    --color: #ffffff !important; 
  }
}

@media screen and (max-width: 767px) {
  .quadrato {
    height: 250px;
    width: 250px;
    background: linear-gradient(180deg,
        rgba(0, 79, 158, 0.887),
        rgba(2, 51, 101, 0.936));
    border-radius: 20px;
    padding: 5px;
    color: #fff;
    --color: #ffffff !important; 
  }
}


/* icone di sprite che cambiano colore nei media */





@media screen and (min-width: 993px) and (max-width: 1199px) {
  .quadrato .icon-black {
  
    --color: #ffffff !important; 
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .quadrato .icon-black {
    
    --color: #ffffff !important; 
  }
}

@media screen and (max-width: 767px) {
  .quadrato .icon-black{
    
    --color: #ffffff !important; 
  }
}



/*===========================================
  SLIDER BOTTOM
===========================================*/
#slider-bottom .left {
  height: 100%;
  position: relative;
}

/*non lo carica lo aggiungo */
.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* accessibilita' focus menu footer */
/*.menu-row.nav2 .nav-link:hover,*/
.menu-row.nav2 .nav-link:focus,
.menu-row.nav2 .nav-link:focus-visible {
  outline: 2px solid #fff; 
  outline-offset: 2px;
  border: thin solid white; 
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); /* contorno bianco */
  border-radius: 4px; 
}
.ag-courses-item_title,
.ag-courses-item_title>.fw-bold.text-white{
  background-color: var(--bs-primary) !important;
}
