html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.content-title {
  font-weight: normal;
  background: #f1f1f1;
  padding-bottom: 0.5rem;
  padding: 1.4rem 1rem 1rem 1rem;
}

nav {
  color: #fff;
  background: #022436;
  width: 18vw !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 18vw !important;
  overflow: hidden;
}

nav .nav-list {
  overflow-y: auto;
  padding-bottom: 1rem;
  flex-grow: 1;
  width: 100%;
}

nav h4 {
  padding: 0.5rem;
  color: white;
}

nav .logo {
  margin-bottom: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  min-width: 18vw;
}

nav .logo:hover {
  cursor: pointer;
  background-color: #043C5A;
}

nav .logo img {
  max-width: 10rem;
}

nav .accordion-item {
  background-color: #022436;
  border: none;
  border-radius: 0;
  color: white;
}

nav .accordion-item .accordion-header {
  color: white;
  background-color: inherit;
}

nav .accordion-item .accordion-header button {
  color: white;
  background-color: inherit;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav .accordion-item .accordion-header button:hover {
  background-color: #043C5A;
}



nav .nav-item {
  border: none;
  padding: 0.5rem 1rem;
  display: flex;
  width: 100%;
}

nav .nav-item:hover {
  background-color: #043C5A;
}

nav .nav-item.active {
  background-color: #36637B;
  border-right: 4px solid #3FB2E3;
}

nav .nav-item.active .nav-link {
  font-weight: bold;
}

nav .nav-item.active .nav-link i {
  color: #3FB2E3;
}

nav .accordion-body {
  padding: 0;
}

nav .accordion-body .nav-item {
  background-color: #033046;
}

nav .accordion-body .nav-item:hover {
  background-color: #043C5A;
}

.section-title {
  font-size: 0.825rem;
  font-weight: bold;
  padding: 1rem;
  width: 100%;
}

#content {
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#content > *:not(h1) {
  overflow-y: auto;
}

.content-body > * {
  padding: 1rem 2rem;
}

.code-box {
  margin-top: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f5f5f5;
  font-family: monospace;
  position: relative;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  margin-left: 0 !important;
  overflow: auto;
  font-size: 1rem !important;
}

.btn-clipboard {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  display: block;
  padding: 0.25rem 0.5rem;
  font-size: 0.65em;
  color: #0d6efd;
  background-color: #fff;
  border: 1px solid;
  border-radius: 0.25rem;
}

.btn-clipboard:hover {
  opacity: 0.8;
}

.component-box {
  margin-bottom: 20px;
}

section, footer {
  padding: 1rem 2rem 1rem;
}

#palette-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.swatch {
  width: 100%;
  height: 60px;
  border: 1px solid #999;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.color-code {
  font-family: monospace;
  font-size: 0.9rem;
  text-align: center;
}

.fs0{
  display:none;
}

.ptl{
  display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crea 3 colonne di larghezza uguale */
    gap: 16px; /* Spazio tra le colonne */
    padding: 16px; /* Padding opzionale */
    font-size: 2rem;
}

.ptl small {
  font-size: 0.65em;
}

.ptl a {
  color: #e74c3c;
  text-decoration: none;
}

.ptl a:hover, .ptl a:focus {
  box-shadow: 0 1px #e74c3c;
}

.bshadow0, .ptl input {
  box-shadow: inset 0 -2px #e7e7e7;
}

.ptl input:hover {
  box-shadow: inset 0 -2px #ccc;
}

.ptl input, .ptl fieldset {
  font-family: sans-serif;
  font-size: 1em;
  margin: 0;
  padding: 0;
  border: 0;
}

.ptl input {
  color: inherit;
  line-height: 1.5;
  height: 1.5em;
  padding: 0.25em 0;
}

.ptl input:focus {
  outline: none;
  box-shadow: inset 0 -2px #449fdb;
}

.liga {
  width: 80%;
  width: calc(100% - 2.5em);
}

.talign-right {
  text-align: right;
}

.talign-center {
  text-align: center;
}

.bgc1 {
  background: #f1f1f1;
  min-height: 4rem;
  overflow-y: hidden !important;
}

.fgc1 {
  color: #999;
}