body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    padding-bottom: 50px;
}
h1, h2, h3, h4, h5, h6, a {
    color: #06c;
}
.row, .header {
    margin-top: 15px;
    margin-bottom: 25px;
}
.header > div:not(.novita,.a-breve),
.importante > div {
    background: #06c;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 5px;
    -ms-flex: 0 0 calc(100% - 30px);
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin-left: 15px;
}
.header img:not(.screenshot) {
    max-width: 300px;
}

.header.v2 > div {
    background: #003882;
}

.header.v3 > div {
    background: #09768D;
}

.header img.screenshot {
    border-radius: 4px;
    background: #fff;
    padding: 10px;
}

.header h1, .header h2, .header h3,
.header h4, .header h5, .header h6, .header a {
    color: #fff !important;
}

.header .badge-light {
    color: #06c !important;
    padding: .40em .6em .45em .6em;
    margin: 2px;
}

.header.v2 .badge-light {
    color: #003882 !important;
}

.header.v3 .badge-light {
    color: #09768D !important;
}

.importante > div {
    background: #e30613;
    color: #fff !important;
}

.importante h1, .importante h2, .importante h3,
.importante h4, .importante h5, .importante h6, .importante a {
    color: #fff !important;
}

.importante strong {
    text-decoration: underline;
}

.disabled {
    filter: url("data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
    opacity: .3;
    
    pointer-events: none; /* Impedisce clic, hover e interazioni del mouse */
    user-select: none;     /* Impedisce la selezione del testo */
}

.btn svg {
    margin-top: -5px;
}

@media (max-width: 575px) {
    .card-vuota {
        display: none;
    }
}

@media (min-width: 576px) {
    .card-vuota {
        visibility: hidden;
    }
}

.donazione > div {
    background: #28a745;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 5px;
    -ms-flex: 0 0 calc(100% - 30px);
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin-left: 15px;
}

.donazione > div,
.donazione > div h1, .donazione > div h2,
.donazione > div h3, .donazione > div h4,
.donazione > div p {
    color: #fff;
}

.donazione > div .btn {
    margin: 5px;
    text-transform: uppercase;
}

.novita, .a-breve {
    background-color: transparent !important;
    background-image: url(../img/novita.png) !important;
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    background-position: top left !important;
    width: 100px;
    height: 100px;
    position: absolute;
    z-index: 9;
    border-radius: 0 !important;
    margin: 0;
    top: 13px;
    left: 13px;
}

.a-breve {
    background-image: url(../img/a_breve.png) !important;
}

.attualmente > div {
    background: #17a2b8;
}

.numero {
    color: #ffc107;
    font-size: 2.2rem;
}

/* Stile base per la card disabilitata */
.card.disable {
    opacity: 0.65; /* Rende la card leggermente trasparente */
    pointer-events: none; /* Disabilita tutti gli eventi del mouse (click, hover, ecc.) */
    user-select: none; /* Previene la selezione del testo */
    filter: grayscale(100%); /* Rende tutto il contenuto della card in bianco e nero */
}

/* Opzionale: se usi un link (<a>) come card, cambia il cursore */
.card.disable a {
    cursor: default;
}

.sfondo-v1 {
    background: #06c !important;
}

.sfondo-v2 {
    background: #003882 !important;
}

.sfondo-v3 {
    background: #09768D !important;
}

#menu {
    border-radius: 5px;
}

#menu > #navbarScroll > ul > li > a {
    color: #fff;
}

#menu .navbar-brand > img {
    max-height: 40px;
}

.navbar-toggler {
  border-color: #ffffff !important;
}

.navbar-dark .navbar-toggler-icon,
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#menu .nav-item {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

@media (max-width: 991.98px) {
  #menu .navbar-nav {
    text-align: center !important;
  }

  #menu .nav-item {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  #menu .dropdown-menu {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
  }

  #menu .dropdown-menu .dropdown-item {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #menu .dropdown-menu .dropdown-item:hover,
  #menu .dropdown-menu .dropdown-item:focus {
    background-color: transparent !important;
    color: #ffffff !important;
  }
}

#menu .nav-link svg {
  width: 1rem;            /* 16px */
  height: 1rem;           /* 16px */
  vertical-align: -0.125em; /* Allinea l'icona alla base del testo */
  margin-right: 0.35rem;   /* Separa leggermente l'icona dalla parola */
}
