body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: var(--system);
  font-family: Roboto, Geneva, Tahoma, sans-serif;
  overflow: auto;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 1100px;
  height: 600px;
  margin: auto;
  align-items: center;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px black;
  position: relative;
}

/* LOGO PRINCIPALE */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 200px;
  /* Dimensione fissa per il logo principale */
  max-width: 60%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.05);
  /* Effetto leggero al passaggio del mouse */
}

.mini-logo {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  /* Due colonne da 200px */
  grid-template-rows: repeat(2, 175px);
  /* Due righe da 200px */
  justify-content: center;
  align-items: center;
  width: 420px;
  /* Larghezza totale della griglia */
}

.logo-item {
  width: 180px;
  /* Larghezza fissa */
  height: 170px;
  /* Altezza fissa */
  background-size: auto;
  /* Riempe tutto il box, tagliando i bordi se necessario */
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  /* Opzionale */
}

.mini-logo img {
  width: 9rem;
  /* Dimensione standard dei mini-loghi */
  height: auto;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0.9;
  object-fit: cover;
}

.mini-logo img:hover {
  transform: scale(1.1);
  opacity: 1;
}

.upload {
  width: 3rem;
  height: auto;
  margin: 1rem;
}

.btn-upload {
  fill-opacity: 0;
  cursor: pointer;
}

.goBack {
  position: absolute;
  top: 10px;
  /* Spazio dall'alto */
  right: 10px;
  /* Spazio dalla destra */
  width: 2rem;
  cursor: pointer;
  z-index: 100;
  /* Assicura che rimanga visibile sopra gli altri elementi */
}

.goBack:hover {
  transform: scale(1.3);
}

.pswDimenticata {
  display: none;
}

.titolo {
  width: 100%;
  text-align: center;
  margin: 25px;
}

.title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.subTitle {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.text {
  font-size: 21px;
  font-weight: 500;
}



.accedi {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  margin-bottom: 20px;
}

.ticketSegnalazione {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  margin-bottom: 20px;
}

.modificaPsw {
  width: var(--dimesion);
  margin-bottom: 10px;
  padding: 10px 75px;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  background-color: rgb(73, 184, 0);
  color: white;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.generalButton {
  width: var(--dimesion);
  margin-bottom: 10px;
  padding: 10px 75px;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  background-color: rgb(168, 41, 32);
  color: white;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
}

.accedi button:hover {
  background-color: rgb(117, 27, 21);
}

.etichetta {
  display: flex;
  align-items: baseline;
  width: var(--dimesion);
  float: left;
  font-size: 17px;
}

.accedi input {
  margin-bottom: 20px;
  width: var(--dimesion);
  float: left;
  border-radius: 10px;
  font-size: 15px;
  height: 30px
}

select {
  margin-bottom: 10px;
  width: var(--dimesion);
  border-radius: 10px;
  font-size: 20px;
  height: 30px
}

.check {
  width: var(--dimesion);
  display: flex;
  flex-direction: row;
}

.check input {
  height: 13px;
  width: 10%;
}

.check label {
  font-size: 15px;
}

a {
  color: black;
}

.text {
  width: var(--dimesion);
  height: 200px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 20px;
  height: 30px;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  resize: none
}

.noshow {
  display: none;
}

.custom-file-upload {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

.custom-file-upload img {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  height: 50px;
  width: auto;
}

input[type="file"] {
  display: none;
}

.test {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--dimesion);
  border-style: outset;
}

.messaggio {
  color: var(--system);
  font-size: 17px;
  display: none;
  margin-top: auto;
}

.password-container {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.password-container input {
  width: 100%;
  padding-right: 30px;
  /* Spazio per l'icona */
}

.password-container svg {
  position: absolute;
  right: 10px;
  top: 35%;
  transform: translateY(-50%);
  cursor: pointer;
}

.wikiImg img{
  width: 250px;
  height: auto;
  border-radius: 15px;
  margin:50px;
  transition: transform .2s; 
}

.wikiImg img:hover{
  transform: scale(1.2);
}

.wikiTitle {
  margin: 0px;
  width: 100%;
  color: #d90000;
}
.wikiText{
  width:100%;
  font-family: var(--font-main);
}
.wikiUl{
  width: 100%;
}
hr{
  width: 100%;
}

/* Stile base rimane per grandi schermi */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .logo img {
    margin-right: 0;
    width: 30%;
  }

  .mini-logo img {
    width: 30%;
  }

  .mini-logo {
    grid-template-columns: repeat(4, 180px);
    /* Adatta le colonne per schermi medi */
    grid-template-rows: repeat(1, 160px);
    /* Riduci l'altezza delle righe */
    width: 105%;
    /* Riduci la larghezza totale */
  }

  .logo-item {
    width: 160px;
    /* Riduci la larghezza del logo */
    height: 150px;
    /* Riduci l'altezza del logo */
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    box-shadow: none;
    /* Rimuovi ombra per schermi piccoli */
  }

  .logo img {
    width: 50%;
    max-width: 200px;
  }

  .mini-logo {
    gap: 10px;
  }

  .mini-logo img {
    width: 80px;
  }

  .accedi {
    width: 90%;
  }

  .generalButton,
  .modificaPsw {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
  }

  .etichetta {
    font-size: 14px;
  }

  .accedi input {
    font-size: 14px;
  }

  .mini-logo {
    grid-template-columns: repeat(4, 125px);
    /* Adatta le colonne per schermi piccoli */
    grid-template-rows: repeat(1, 140px);
    /* Riduci l'altezza delle righe */
  }

  .logo-item {
    width: 140px;
    /* Riduci la larghezza del logo */
    height: 130px;
    /* Riduci l'altezza del logo */
    background-size: contain;
  }

  #log1 {
    background-size: 50%;
  }
}

@media (max-width: 500px) {

  body {
    min-height: auto;
    height: auto;
  }

  .loader {
    width: 80px;
    height: 80px;
  }

  .testo {
    font-size: 0.9rem;
  }

  .container {
    padding: 15px;
    border-radius: 0px;
    height: auto;
    min-height: 100vh;
  }

  .logo img {
    width: 40%;
    max-width: 180px;
  }

  .mini-logo img {
    width: 60px;
  }

  .title {
    font-size: 24px;
  }

  .subTitle {
    font-size: 18px;
  }

  .text {
    font-size: 16px;
  }

  .accedi {
    width: 100%;
    margin-top: 10px;
  }

  .generalButton,
  .modificaPsw {
    font-size: 14px;
    padding: 10px;
  }

  .ticketSegnalazione {
    width: 100%;
  }

  .mini-logo {
    grid-template-columns: repeat(4, 75px);
    /* Adatta le colonne per schermi molto piccoli */
    grid-template-rows: repeat(1, 85px);
    /* Riduci ulteriormente l'altezza delle righe */
    width: 250px;
    /* Riduci ulteriormente la larghezza della griglia */
  }

  .logo-item {
    width: 110px;
    /* Riduci la larghezza del logo */
    height: 100px;
    /* Riduci l'altezza del logo */
    background-size: contain;
  }

  #log1 {
    background-size: 50%;
    z-index: 1;
  }

}