
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
body {
  --font-color: #000000A8;
  --background-color: #ffffff;
  --font-color-strong: rgba(0, 0, 0, 0.8);
  
  font-family: "Inter", sans-serif;
  color: var(--font-color);
  padding-top: 69px;
  background-color: var(--background-color);
  font-size: 17px!important;
}

[id]::before {
  content: "";
  display: block;
  height: 10px; /* altezza del menù */
  margin-top: -10px; /* negativo dello stesso valore */
  visibility: hidden;
}
#introduction::before {
  height: 90px;
  margin-top: -90px;
}


h1{
  font-size:2em
}

.docs-content {
  background-color: var(--background-color);
  padding: 100px 3rem 1500px 3rem;
  margin-left: 300px;
  max-width: 1440px;
}

.navbar {
  background: var(--background-color);
  overflow-y: auto;
}

.logo{
  background-image: url(../images/home/logo-white.png)!important;
  height: 60px;
  width: 200px;
  position: relative;
  z-index: 9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-link{
  padding: 20px 8px;
  color: #25272b;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background-color: transparent;
  margin: 0 6px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.docs-sidebar .nav-link{
  text-transform: none;
}

.section-header h1{
  font-size: 30px;
  padding-top: .5em;
  padding-bottom: .3em;
  border-bottom: 1px solid rgba(204, 204, 204, .6);
  margin-bottom: 21px;
  margin-top: 100px;
  color: var(--font-color-strong);
}

.section-header-no-bt h1{
  font-size: 30px;
  padding-top: .5em;
  padding-bottom: .3em;
  border-bottom: 1px solid rgba(204, 204, 204, .6);
  margin-bottom: 21px;
  color: var(--font-color-strong);
}

h2, h3, h4, h5, h6{
  color: var(--font-color-strong);
}

.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
}

.sidebar .nav-link {
  color: #1a1a1a;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #e8e8f7;
  color: #252759;
  border-radius: 0px;
  border-left: 3px solid #252759!important;
}

.sidebar h6 {
  font-size: 1rem;
  color: #252759;
  padding-left: 0.25rem;
}

.wrapper{
  position: relative;
  
}

.docs-sidebar{
  width: 300px;
  position: fixed;
  z-index: 10;
  top: 80px;
  height: calc(100% - 69px);
  background: #fff;
  overflow: hidden;
  scrollbar-color: rgba(0,0,0,0.2) #f5f5f5;
  scrollbar-width: thin;
  transition: transform 0.35s ease-in-out;
}

.img-fluid{
  width: 100%;
  height: 240px;
}

.img-fluid{
  width: fit-content;
  height: 240px;
}

.img-zoom{
  display: grid;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 99999; /* Ensure overlay is always above */
}
.overlay img {
  width: 90%;
  height: auto;
}
.overlay .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 100000; /* Ensure close button is above everything */
}
.overlay.show {
  visibility: visible;
  opacity: 1;
}
/* Hide navbar and other elements when overlay is active */
body.overlay-active {
  overflow: hidden;
}

.content .main-table em{
  display:block
}
.content .main-table th,.content .main-table td{
  text-align:left;
  vertical-align:top;
  line-height:1.6
}
.content .main-table th{
  padding:5px 10px;
  border-bottom:1px solid #ccc;
  vertical-align:bottom
}
.content .main-table td{
  padding:10px
}
.content .main-table tr:last-child{
  /*border-bottom:1px solid #ccc*/
}
.content .main-table tr:nth-child(odd)>td{
  /*background-color:#fff*/
}
.content .main-table tr:nth-child(even)>td{
  /*background-color:#fff*/
}

.content .main-table {
  padding: 1rem;
  /*background: white;*/
  border-radius: 5px;
  /*border: 1px solid lightgray;*/
  margin-bottom: 1rem;
  background-color: rgba(238, 241, 244, 0.33);
}
.content .main-table tbody:before {
  content: '';
  display: block;
  height: 20px;
}

.content .main-table th {
  border-bottom: 1px solid #dae1e9!important;
  vertical-align: bottom!important;
  font-size: 12px!important;
  font-weight: 600!important;
  color: #797f86!important;
}

.code {
  border: solid 1px #dae1e9!important;
  background-color: white!important;
  color: #670aba!important;
  font-size: 12px!important;
}

.prettyprint{
  border: solid 1px #dae1e9 !important;
  background-color: white !important;
  color: #670aba !important;
  font-size: 14px !important;
  padding: 3px 8px;
  border-radius: 2px;
}

.content blockquote{
  padding-left: 20px!important;
}

.main-table{
  font-size: 15px!important;
}

.navbar{
  background: #ffffff !important;
}

.sub-header{
  border-top: 1px solid #dae1e9!important;
  padding-top: 20px!important;
  padding-bottom: 6px!important;
  margin-top: 100px!important;
  font-size: 22px!important;
  text-transform: none!important;
  font-weight: 600;
}

.tocify-wrapper{
  background-color: white !important;
}

p.no-m-b{
  margin-bottom: 0!important;
}


/* Effetto zoom per le immagini */
.zoom {
  transition: transform 0.3s ease;
  cursor: pointer;
}
.zoom:hover {
  transform: scale(1.1);
}

.tocify-item{
  color: black;
}

.item-img{
  display: grid;
  grid-template-columns: auto auto;
  margin-bottom: 15px;
}

.item-img img{
  height: auto;
  width: auto;
  max-height: 300px ;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.img-fluid{
  width: 100%;
  height: 240px;
}

h4{
  margin-top: 25px;
  font-size: 12px!important;
}

h3{
  font-size: 15px !important;
  margin-top: 20px;
  
}

#img_swagger{
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow: scroll;
}

.swagger-ui .wrapper{
  margin: unset;
  padding-left: 0;
}

.swagger-ui .markdown p{
  font-size: 14px!important;
}

pre{
  font-size: 13px !important;

}


.nav-item .nav-item .nav-link{
  text-transform: none;
  padding: 10px 8px;
  opacity: 75%;
  font-size: 13px;
}

.nav-item .nav-item .nav-link.active{
  border-left: 3px solid var(--font-color-strong)!important;
  border-radius: 0px;
}

.sub-section{
  /*padding-left: 30px;*/
  /*border-left: 3px solid rgba(204, 204, 204, .6);*/
}

.esempio-in-classi{
  border: 1px solid #dae1e9;
  border-radius: 5px;
  padding: 5px;
  margin-right: 5px;
  background: white;
  font-size: 10px!important;
  max-height: 100px;
}
