@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../font/Roboto-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto-Bold";
  font-style: bold;
  font-weight: 600;
  src: url("../font/Roboto-Bold.ttf") format("truetype");
}

:root {
  --bs-primary: #00264d;
  --bs-primary-rgb: 0, 38, 77;
  --bs-secondary: #0066cc;
  --bs-secondary-rgb: 0, 102, 204;
  --bs-tertiary: #dceaf7;
  --bs-tertiary-rgb: 220, 234, 247;
  --verde: #ebfff0;
  --giallo: #fffbe1;
  --bs-link-color: #0066cc;
  --bs-link-hover-color: #0066cc;
  --bs-body-bg: #fff;
  --bs-body-color: #000;
  --bs-body-font-family: "Roboto";
  --bs-success: #198754;
  --bs-alert: #ffc107;
  --bs-warning: #dc3545;
}

/* 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;
}

/* LG breakpoint */
@media (min-width: 992px) {

  /* CUSTOM WIDTHS */
  .w-lg-25 {
    width: 25% !important;
  }

  .w-lg-50 {
    width: 50% !important;
  }

  .w-lg-75 {
    width: 75% !important;
  }

  .w-lg-100 {
    width: 100% !important;
  }
}

/* MD breakpoint*/
@media (max-width: 768px) {

  /* CUSTOM WIDTHS */
  .w-md-25 {
    width: 25% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .w-md-75 {
    width: 75% !important;
  }

  .w-md-100 {
    width: 100% !important;
  }
}

/* SM breakpoint */
@media (max-width: 576px) {

  /* CUSTOM WIDTHS */
  .w-sm-25 {
    width: 25% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }

  .w-sm-75 {
    width: 75% !important;
  }

  .w-sm-100 {
    width: 100% !important;
  }
}

body {
  font-family: var(--bs-body-font-family);
}

.bg-warning {
  background-color: var(--bs-warning) !important;
  color: #000 !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
  color: #000 !important;
}

.tag-aperto {
  background-color: var(--bs-success) !important;
  color: white !important;
  font-weight: bold !important;
}

.tag-prorogato {
  background-color: var(--bs-alert) !important;
  color: #000000 !important;
  font-weight: bold !important;
}

.tag-chiuso {
  background-color: var(--bs-warning) !important;
  color: white !important;
  font-weight: bold !important;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
  font-weight: bold;
}

a:hover,
a:active {
  text-decoration: underline;
  color: var(--bs-link-hover-color);
}

a:focus-visible,
a:focus {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}


.accordion {
  --bs-accordion-bg: var(--bs-secondary);
  --bs-accordion-active-bg: var(--bs-secondary);
  --bs-accordion-border-color: #ffffff;
}

.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: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}

/*bottoni*/
.btn:focus-visible,
.btn:focus {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}

.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: 10px;
  --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 {
  text-decoration: underline;
  box-shadow: none;
}


.btn-primary:focus-visible,
.btn-primary:focus {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}


.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: 10px;
  --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;
}

.btn-secondary:focus-visible,
.btn-secondary:focus {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;

}

.bg-tertiary {
  background-color: var(--bs-tertiary);
}

/*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;
}

/* Offcanvas */
.offcanvas {
  --bs-offcanvas-width: 600px;
}

.offcanvas-body a,
.offcanvas-body button {
  white-space: normal !important;
  /* permette l'andata a capo */
  word-break: break-word;
  /* forza il ritorno a capo se necessario */
  display: block;
  /* assicura che l'elemento rispetti i margini e si adatti alla larghezza */
  line-height: 1.3;
  /* migliora la leggibilità delle righe multiple */
}

.offcanvas-body li {
  overflow-wrap: break-word;
}

/* image proporzionata */
.image-wrapper {
  aspect-ratio: 16 / 9;
  /* impostare proporzione (es. 16:9, 4:3, 1:1, ecc.) */
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* taglia l’immagine mantenendo il centro */
  display: block;
}

.btn:focus-visible {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}

.form-control:focus,
.form-control:focus-visible {
  outline: 3px solid var(--bs-primary);
  box-shadow: 0 0 0 4px #fff;
}

