*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;              
  display: grid;                  
  place-items: center;            
  padding: 16px;                  
  font-family: 'Fira Sans', sans-serif !important;
  background-image: url("../img/backgound_welcomepage.jpg");
  background-repeat: no-repeat;      
  background-position: center center; 
  background-size: cover;
}

/* BOX PRINCIPALE */
.loginbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: min(96vw, 700px);        
  padding: clamp(16px, 3vw, 28px);
  background-color: #FFF;
  border-radius: 12px;           
  box-shadow: 0 2px 4px 0 #CCC;   
}

/* TITOLI */
h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 40px); 
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

.title {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 14px);
  text-align: center;
}

img { max-width: 100%; height: auto; }

.title img {
  width: clamp(56px, 12vw, 96px);
  height: auto;
}

p{
  margin: 0;
  margin-bottom: 15px;
  text-align: center;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 400;
}

.intro {
    margin-bottom: 0.8em;
    font-size: 1.2rem;
}

.ordinanza {
    font-size: 1.2rem;
}

.ordinanza span {
    display: block;
    margin-top: 0.3em;
    color: #555;
    font-style: italic;
}

.login {
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 10px;
}

.btn{
  width: 100%;
  max-width: 400px;               
  align-self: center;             
  padding: 14px 16px;
  border-radius: 8px;
  background-color: #347FC4;
  color: white;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid #347FC4;
  transition: box-shadow .2s ease, transform .06s ease, background-color .2s ease;
}

.btn:hover {
  background-color: rgb(0,90,150);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.btn:active {
  transform: translateY(1px); 
}

.commissario{
  margin: 8px auto 0;
  width: min(80%, 360px);
  display: block;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .loginbox { gap: 20px; }
}






