@font-face {
  font-family: "TitilliumWeb";
  font-style: normal;
  font-weight: 400;
  src: url("../font/TitilliumWeb-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "TitilliumWeb-Bold";
  font-style: bold;
  font-weight: 600;
  src: url("../font/TitilliumWeb-Bold.ttf") format("truetype");
}

:root {
  --bs-primary: #020e61;
  --bs-primary-rgb: 2, 14, 97;
  --bs-secondary: #01148d;
  --bs-secondary-rgb: 1, 20, 141;
  --bs-tertiary: #dceaf7;
  --bs-tertiary-rgb: 220, 234, 247;
  --blu: #093880;
  --blu-elettrico: #2a12d8;
  --navi: #20509a;
  --navi-scuro: #102749;
  --grigio: #405982;
  --bluette: #0751ab;
  --bs-link-color: #0066cc;
  --bs-link-hover-color: #0066cc;
  --bs-body-bg: #fff;
  --bs-body-color: #000;
  --bs-body-font-family: "TitilliumWeb";
}

.bg-tertiary {
  background-color: var(--bs-tertiary);
}
.bg-blu {
  background-color: var(--blu);
}
.bg-blu-elettrico {
  background-color: var(--blu-elettrico);
}
.bg-navi {
  background-color: var(--navi);
}
.bg-navi-scuro {
  background-color: var(--navi-scuro);
}
.bg-grigio {
  background-color: var(--grigio);
}
.bg-bluette {
  background-color: var(--bluette);
}

/* NAVBAR E STICKY E LOGO */
#mainNavbar {
  transition: all 0.3s ease;
}

#stickyLogo img,
#stickyLogomobile img {
  height: 100px;
  /* grandezza iniziale */
  transition: height 0.3s ease;
}

/* Quando si scrolla, navbar e logo si rimpiccioliscono */
#mainNavbar.shrink #stickyLogo img,
#mainNavbar.shrink #stickyLogomobile img {
  height: 60px;
  /* più piccolo in sticky */
}

#mainNavbar.shrink {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* fine NAVBAR E STICKY E LOGO */

/* TITOLI */
h1 {
  font-weight: bold;
  font-size: 1.6rem;
}

h2 {
  font-weight: bold;
  font-size: 1.4rem;
}

h3 {
  font-weight: bold;
  font-size: 1.2rem;
}

p {
  font-size: 1.1rem;
}

body {
  font-family: var(--bs-body-font-family);
}

.img-full-width {
  background-image: url("/images/LD/Izs_in_Fiore_s1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  width: 100%;
  /*height: 55vh;*/
  min-height: 55vh;
  height: auto;
  position: relative;
}

/*Immagine grande di sfondo del PRIMO modulo con immagine grande */
@media screen and (max-width: 768px) {
  .background-image-mobile {
    background-color: var(--bs-primary);
  }
}
@media screen and (min-width: 769px) {
  .background-image-container {
    background-image: url("/images/LD/Izs_in_Fiore_s1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    width: 100%;
    /*height: 55vh;*/
    min-height: 55vh;
    height: auto;
    position: relative;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 20, 141, 0.834);
    z-index: 1;
  }

  .background-image-container .container {
    position: relative;
    z-index: 2;
    /* sopra a overlay */
  }
}

/* @media screen and (min-width: 426px) and (max-width: 768px) {
  .background-image-container {
    height: 25vh;
  }
}

@media (max-width: 425px) {
  .background-image-container {
    height: 25vh;
  }
}
 */

.background-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.721); */
  z-index: 1;
}
/*FINE immagine grande di sfondo del primo modulo*/

/*Footer ancorato bottom*/
html,
body {
  margin: 0;
  padding: 0;
  max-height: 100%;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* fine Footer ancorato bottom*/

.shadow-0 {
  box-shadow: none !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
  color: #000 !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
  color: #000 !important;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
  font-weight: bold;

  &:hover,
  &:active,
  &:focus {
    text-decoration: underline;
    color: var(--bs-link-hover-color);
  }
}

a:focus-visible {
  outline: 2px solid #fd0000 !important;
}

.accordion {
  --bs-accordion-bg: none;
  --bs-accordion-active-bg: var(--bs-secondary);
  --bs-accordion-border-color: var(--bs-secondary);
}

.accordion-button::after {
  background-color: #fff;
  border-radius: 20px;
}

.accordion-button:hover {
  z-index: 2;
  text-decoration: underline;
}

.accordion-button:focus,
.accordion-button:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
  box-shadow: none;
}

/*bottoni*/
.btn:focus-visible,
.btn:focus {
  outline: medium dotted var(--bs-secondary) !important;
}

.btn-primary {
  font-weight: bold;
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: none;
  box-shadow: 2px 2px 5px -3px #000000;
  border-radius: 0;
  --bs-btn-border-width: none;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: none;
  --bs-btn-focus-shadow-rgb: 29, 41, 75;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6f7376;
  --bs-btn-disabled-border-color: #6f7376;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible {
  text-decoration: underline;
  box-shadow: none;
}

.btn-secondary {
  font-weight: bold;
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: none;
  box-shadow: 2px 2px 5px -3px #000000;
  border-radius: 0;
  --bs-btn-border-width: none;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: none;
  --bs-btn-active-shadow: none;
  --bs-btn-focus-shadow-rgb: 29, 41, 75;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6f7376;
  --bs-btn-disabled-border-color: #6f7376;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus-visible {
  text-decoration: underline;
  box-shadow: none;
}

.button {
  font-weight: bold;
  --bs-btn-color: #000000;
  --bs-btn-bg: var(--bs-tertiary);
  --bs-btn-border-color: none;
  box-shadow: none;
  border-radius: 5px;
  --bs-btn-border-width: none;
  --bs-btn-hover-color: #000000;
  --bs-btn-hover-bg: var(--bs-tertiary);
  --bs-btn-hover-border-color: none;
  --bs-btn-active-color: #000000;
  --bs-btn-active-bg: var(--bs-tertiary);
  --bs-btn-active-border-color: none;
  --bs-btn-active-shadow: none;
  --bs-btn-focus-shadow-rgb: 29, 41, 75;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6f7376;
  --bs-btn-disabled-border-color: #6f7376;
}

.button:hover,
.button:active,
.button:focus-visible {
  text-decoration: underline;
  box-shadow: none;
}

/*Prove freccia*/
.dropdown-toggle::after {
  display: none !important;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-menu {
  border-radius: 0;
  border: none !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: unset !important;
}

.breadcrumb-item {
  font-weight: bold;
  color: #000 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #000 !important;
}

/*animazione freccia per icona del menu mobile*/
.accordion-button:not(.collapsed) .dropdown-arrow {
  transform: rotate(-180deg);
}

.mobile-accordion .accordion-button::after {
  background-image: none;
  content: none;
}

#stickyLogo {
  transition: opacity 0.3s ease-in-out;
}

.stuck #stickyLogo {
  display: block !important;
  opacity: 1;
}

#simple-list-example {
  position: sticky;
  top: 9%;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* Carousel news */
.carousel-indicators {
  margin-bottom: -2rem;
}

.carousel-indicators [data-bs-target] {
  background-color: black;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.border-end {
  border-right: 2px solid #000 !important;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
}
/* 
button.carousel-control-prev:focus,
button.carousel-control-next:focus {
  outline: 2px solid #000;
} */

button.carousel-control-prev:focus-visible,
button.carousel-control-next:focus-visible {
  outline: 2px solid #000;
}

/* fine Carousel news */

.offcanvas,
.offcanvas-header,
.offcanvas-body,
.offcanvas .nav-item a {
  background-color: var(--bs-primary) !important;
}
