/* ==========================
   Reset e base
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ol{list-style-position: inside;}

body {
  font-family: "Titillium_Web";
  font-size: 18px;
  line-height: 1.5;
  background-color: #eeeeef;
  color: #333;
}

#toggleNotifications {
  width: 80px;
  height: 40px;
  border-radius: 20px;
  background-color: #ccc;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

#toggleNotifications.active {
  background-color: #1a73e8;
}



        .player-id {
            margin-top: 20px;
            padding: 16px;
            background: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            display: block!important;
        }

        .player-id-label {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .player-id-value {
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: #1f2937;
            word-break: break-all;
        }




/* -------------------------------------------------------------------------------- */
/* ! Fonts */
/* -------------------------------------------------------------------------------- */
@font-face {
    font-family: 'Titillium_Web';
    src: url('/fonts/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'),
        url('/fonts/titillium-web-v10-latin-ext_latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium_Web';
    src: url('/fonts/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'),
        url('/fonts/titillium-web-v10-latin-ext_latin-600.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Titillium_Web';
    src: url('/fonts/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'),
        url('/fonts/titillium-web-v10-latin-ext_latin-700.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}





/* -------------------------------------------------------------------------------- */
/* ! NAV */
/* -------------------------------------------------------------------------------- */
.navbar-header{
  width: 100vw;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px 5px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow: 0 5px 30px #0000001a;
  z-index: 99;
  justify-content: space-between;
}

.navbar-header>.menu-button{
  height: 40px;
  margin-left: 5px;
  padding: 5px;
  width: 40px;
}

.navbar-header>.menu-button span{
  height: 2px;
  margin-top: 6px;
  background: #333;
  display: block;
  opacity: 1;
  transition: all .3s;
  width: 28px;
  transition: cubic-bezier(.215, .61, .355, 1);
}

.navbar-header h1{
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.navbar-header>a>img{
  height: 40px;
  float: right;
  margin-right: 5px;
}


.header__menu{
  position:absolute;
  top:70px;
  left: -100%;
  width: 100%;
  background: #066a9c;
  padding: 20px;
  height: 100vh;
  overflow: hidden;
  transition: all 1s cubic-bezier(.215, .61, .355, 1);
  list-style-type: none;
}

.menu-open .header__menu{left: 0;}
  .menu-open{overflow:hidden;}


.header__menu li,
#enablePush,
#disablePush{
  color: #fff;
  border: 1px solid;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

#enablePush,
#disablePush{width: 100%;}

.header__menu li a{color: #fff; text-decoration: none;}

.install-wizard-open .menu-button span,
#bugreport .menu-button span {
  display: none !important;
}





/* -------------------------------------------------------------------------------- */
/* ! STEP WIZARD - MODIFICA RUOLO - GESTIONE NOTIFICHE */
/* -------------------------------------------------------------------------------- */
.step {
  background-color: rgb(6, 106, 156);
  color: #fff;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 50px;
  height: calc(100vh - 50px);
}

.step h1{font-size: 35px; font-weight: 700; text-align: center; line-height: 1.2;}

.step h2{
  padding: 0;
  margin: 30px 0;
  font-weight: 400;
  font-size: 24px;
  text-align: center;
}

.step button,
#saveNewRole,
#toggleNotifications,
.button{
  border: 1px solid #fff;
  width: 100%;
  font-weight: 400;
  font-weight: 16px;
}


.step .role-list,
.role-list{list-style-type: none;}

.step .role-list li,
.role-list li{
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.step h2::after{display: none;}


#installMessage{padding: 20px; border-radius: 4px; border: 1px solid #fff; text-align: center; margin-bottom: 50px;}
#installMessage h3{margin-bottom: 10px;}



.role-list li.selected {
  background: #fff;
  color: rgb(6, 106, 156);
  font-weight: bold;
}


#saveRole,
#saveNewRole{margin-top: 50px;}




#change-role,
#manage-notifications {
  height: 100vh;
  padding:20px;
  background: rgb(6, 106, 156);
  color: #fff;
}

#changeRoleList li.selected {
  color: rgb(6, 106, 156);
  font-weight: bold;
  background: rgb(255, 255, 255);
}



#change-role a,
#manage-notifications a{text-decoration: none;}





 


/* -------------------------------------------------------------------------------- */
/* ! HOME */
/* -------------------------------------------------------------------------------- */

h2{
  padding: 30px 10px 0;
  position: relative;
  margin-bottom: 20px;
  font-size: 30px;
  margin-top: 50px;
}

h2:after {
  content: " ";
  width: 94%;
  height: 2px;
  background: #E26060;
  position: absolute;
  bottom: 0;
  left: 10px;
}

button{
  font-family: "Titillium_Web";
  font-size: 14px;
  box-shadow: inset 0 0 0 2px #066a9c;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: 20px auto;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: #066A9C;
  padding: 10px;
  border: none;
  border-radius: 4px;
  transition: all .4s cubic-bezier(.215, .61, .355, 1);
}


/* -------------------------------------------------------------------------------- */
/* ! CIRCOLARI E NOTIZIE - LIST*/
/* -------------------------------------------------------------------------------- */

.circolare-item,
.news-item{
  border: 1px solid #E26060;
  padding: 20px;
  background-color: #fff;
  margin: 10px 10px 30px;
  border-radius: 4px;
}

.circolare-item a,
.news-item a{text-decoration: none;}

.circolare-item a h3,
.news-item a h3{color: #e26060;}

.news-item img{width: 50%;}

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






/* -------------------------------------------------------------------------------- */
/* ! SINGLE */
/* -------------------------------------------------------------------------------- */
#circolare-detail,
#news-detail{
  padding: 20px;
  margin-top: 70px;
}

#circolare-detail h1,
#news-detail h1{
  font-size: 30px;
  line-height: 35px;
  margin-bottom: 20px;
}

#circolare-detail .numero-circ{
  color: #e26060;
  font-weight: 700;
  font-size: 18px;
}

#circolare-detail p{margin: 30px 0;}
#circolare-detail .signature{margin: 50px 0 30px 0;}


#news-detail img{
  width: 80%;
  margin: 20px 0;
  mix-blend-mode: multiply;
}

.buttons_actions{
  display: flex;
  justify-content: space-between;
}


.buttons_actions button{margin: 0 20px 50px 20px;}




/* -------------------------------------------------------------------------------- */
/* ! BUG REPORT */
/* -------------------------------------------------------------------------------- */
.form-container{
  margin-top: 80px;
  padding: 0 10px;
}

.form-container form{
  margin-top: 30px;
}

.form-container form input,
.form-container form textarea{
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

#formStatus {
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
}

#formStatus.success {
  background: #d4ffd4;
  color: #0a7a0a;
  border: 1px solid #6ad66a;
}

#formStatus.error {
  background: #ffd4d4;
  color: #a30000;
  border: 1px solid #ff6a6a;
}



/* -------------------------------------------------------------------------------- */
/* ! Helpers */
/* -------------------------------------------------------------------------------- */
.hidden {
  display: none;
}


button:hover:not(:disabled) {
  background-color: #155ab6;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ==========================
   Pulsante torna indietro
========================== */
.back-btn {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #1a73e8;
  font-weight: bold;
}

.back-btn:hover {
  text-decoration: underline;
}



/* -------------------------------------------------------------------------------- */
/* ! Animations */
/* -------------------------------------------------------------------------------- */

.loader {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  margin: 1rem auto;
}
.loader div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid #1a73e8;
  border-radius: 50%;
  animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #1a73e8 transparent transparent transparent;
}
.loader div:nth-child(1) {
  animation-delay: -0.45s;
}
.loader div:nth-child(2) {
  animation-delay: -0.3s;
}
.loader div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader.small {
  width: 32px;
  height: 32px;
}
.loader.small div {
  width: 25px;
  height: 25px;
  border-width: 4px;
}











/* Badge "NEW" in alto a destra */
.badge-new {
  display: inline-block;
  background-color: #ff3b30;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Pulsante segna come letta/non letta */
#toggleReadBtn {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

#toggleReadBtn:hover {
  background-color: #1558b0;
}



