/* Stili speciali per Natale */

#testata { background: transparent url(/natale/img/avvento-natale-epifania-2023.png) no-repeat center top; }

#riquadro-natale-home {
  width: 138px;
  height: 200px;
  background: transparent url(/natale/img/candela.jpg) no-repeat;
}

#riquadro-natale-home h2 {
  width: 138px;
  height: 200px;
}

#riquadro-natale-home h2 span {
  display: none;
}

section::after {
  content: url(/natale/img/divisore.png);
  margin: 0.3rem auto 0 auto;
}

section section::after,
section:last-child::after {
  content: "";
  margin: 0;
}

#contenuto h3,
section h3:first-child,
section h4:first-child {
  clear: both;
  width: 80%;
  margin: 1.5rem auto 1rem auto;
  padding: 0.4rem 0;
  color: #fff !important;
  background: none !important;
  background-color: #fc3b3b !important;
  border-radius: 4px;
}

#contenuto h3 a, #contenuto h3 a:visited,
section h3 a, section h3 a:visited {
  color: #fff;
}

#barra-laterale .riquadro > h2,
#barra-laterale .riquadro > h3:first-child {
  background-color: #fc3b3b;
  border-bottom-color: #fff;
}

#contenuto h3:first-child {
  margin-top: 0 !important;
}

#contenuto h3.pagination {
  width: 100%;
  margin: 0.5rem auto 0 auto;
  color: red !important;
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

#casina-di-natale {
  margin: 50px auto 1rem auto;
  width: 230px;
  height: 176px;
  background: transparent url(/natale/img/casina.png);
}

.left  { float: left; }
.right { float: right; }

#calendario-avvento {
  overflow: hidden;
}

#calendario-avvento strong {
  color: #000;
}

#calendario-avvento ul {
  padding: 0;
  margin-left: 0.5rem;
}

#calendario-avvento li {
  list-style-type: none;
  min-height: 35px;
  background: transparent url(/natale/img/default_img.png) no-repeat 0 0;
  padding: 0 0 0 45px;
  border-bottom: 3px solid red;
}

#curiosita p {
  width: 60%;
  margin: 1rem auto;
}

.mantello-bianco,
.mantello-rosso,
.mantello-blu,
.mantello-viola {
  display: inline-block;
  border: 1px solid;
  padding: 0.1rem;
  white-space: nowrap;
}

.mantello-bianco { border-color: #000000; color: #000000; }
.mantello-rosso  { border-color: #ff0000; color: #ff0000; }
.mantello-blu    { border-color: #0015ff; color: #0015ff; }
.mantello-viola  { border-color: #c000cf; color: #c000cf; }

.solidali {
  margin: 1rem auto;
}

.solidali h5 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  clear: both;
}

.solidali h5 > p {
  margin-top: 0;
}

.solidali img {
  display: block;
  margin: 0 auto;
  border: 0;
}

/* menu calendario avvento */

#elenco-giorni, #imgotd {
  width: 99%;
  margin: 1rem auto 0 auto;
  text-align: center;
}

#elenco-giorni p, #imgotd a {
  display: inline-block;
  vertical-align: top;
  width: 150px;
  padding: 0.5rem;
  margin: 1px 1px 4px 1px;
  text-align: center;
  font-size: 90%;
  font-weight: bold;
  line-height: 105%;
  word-wrap: normal !important;
  overflow: hidden;
  border: 2px solid transparent;
}

#elenco-giorni p.oggi, #imgotd {
  border: 2px solid red;
}

#elenco-giorni p.giorno-passato {
  border: 2px solid red;
}

#elenco-giorni p img {
  width: 150px;
  height: 150px;
}

#calendario-di-oggi {
  display: block;
  margin: 0 auto;
  width: auto;
}

#calendario-di-oggi h4 {
  margin-bottom: 0;
}

#imgotd {
  display: inline-block;
  width: auto;
}

#imgotd a {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#elenco-giorni a span.rosso {
  text-decoration: underline;
  text-decoration-color: red;
}

#elenco-giorni p img, #imgodt a img {
  display: block;
  margin: 0 auto;
  border: 0;
}

/* siti */

#siti-categoria-intro {
  margin: 0 auto 1rem auto;
}

#siti-categoria-intro h3 {
  margin-bottom: 0;
}

#siti-categoria-intro h4 {
  margin: 1rem auto 0 auto;
  text-align: left;
}

.siti-categorie {
  font-size: 120%;
}

.siti-categorie-correlate {
  margin: 0 auto 1rem auto;
}

.siti-categorie-correlate-compatta {
  width: 80%;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  line-height: 150%;
}

.siti-categorie-correlate-compatta p {
  margin: 0;
}

.siti-categorie-correlate-compatta a {
  white-space: nowrap;
}

.siti-link {
  font-size: 110%;
  color: red !important;
}

.siti-url {
  font-size: 95%;
  font-weight: bold;
}

.siti-url-sicuro {
  color: #008000 !important;
  font-size: 95%;
  font-weight: bold;
}

.siti-info {
  color: #008000;
  font-size: 90%;
  font-weight: bold;
}

#siti-ricerca {
  margin: 0 auto 1rem auto;
  text-align: center;
}

.note-categoria strong {
  color: #000;
}

ul.lista {
  list-style-type: none !important;
  margin-bottom: 1rem !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
  padding: 0 !important;
}

.lista li {
  list-style-type: none;
  background: transparent url(/natale/img/pallina_rossa.png) no-repeat 0 0;
  padding-left: 35px;
  margin-left: 0;
  margin-bottom: 1rem;
}

.listamc ul {
  list-style-position: outside;
  list-style-type: none !important;
  margin-left: 0 !important;
  text-indent: 35px !important;
  padding: 0 0 0 0 !important;
}

.listamc li {
  min-height: 35px;
  padding-left: 30px;
  background: transparent url(/natale/img/pallina_rossa.png) no-repeat 0 0;
  line-height: 37px;
}

.lista li:nth-child(even),
.listamc li:nth-child(even) {
  background: transparent url(/natale/img/pallina_verde.png) no-repeat 0 0;
}

#toc {
  width: 80%;
  margin: 0 auto;
  font-size: 95%;
}

.navigazione-cap {
  margin-top: 0;
  margin-bottom: 0.2rem;
  text-align: center;
}

.navigazione ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  text-indent: 0;
  font-weight: bold;
  text-align: center;
}

.navigazione li {
  display: inline;
  margin-left: 0;
  padding-right: 0.2rem;
  text-indent: 0;
  white-space: nowrap;
}

.navigazione li::after {
  content: " - ";
}

.navigazione li:last-child::after {
  content: "";
}

img.divisore {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  height: auto;
}

strong {
  color: red;
}

hr {
  height: 0;
  border: 0;
  border-top: 3px dotted red;
}

@media screen and (max-width: 450px) {
  #elenco-giorni p {
    display: inline-block !important;
    margin-left: 0;
    margin-right: 0;
  }

  #contenuto h3 {
    width: 90%;
  }
}

@media screen and (max-width: 760px) {
  #casina-di-natale {
    display: none !important;
  }

  .listamc ul {
    margin-left: 0 !important;
    text-indent: 0 !important;
    padding: 0 0 0 5px !important;
  }

  .listamc li {
    min-height: 35px !important;
    text-indent: 35px !important;
  }
}

@supports ( display: flex ) {
  #elenco-giorni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #elenco-giorni p {
		display: flex;
    flex-wrap: wrap;
    overflow: visible;
    line-height: initial;
  }

  #elenco-giorni p img {
    display: inline-block;
  }
}

@media print {
  #intro::before {
    content: url(/natale/img/avvento-natale-epifania-2023-p.png);
  }

  #calendario-avvento li {
    padding: 0 0 5px 0;
    margin: 0;
    vertical-align: middle;
  }

  #calendario-avvento li::before {
    content: url(/natale/img/default_img.png);
    padding: 0 8px 0 0;
    margin: 0;
    vertical-align: middle;
  }

  #barra-laterale {
    display: none !important;
  }
  #contenuto, #intro { width: 99%; }

  #intestazione {
    width: 100%;
    height: 1.5rem;
    background-image: none;
    background-color: transparent;
  }

  #intro::before {
    display: block;
    width: 100%;
    height: 105px;
    text-align: center;
  }

  #intro {
    margin: 1rem auto 1rem;
    padding: 0.5em;
    text-align: justify !important;
  }

  #intestazione h1 {
    margin: 0.5em auto 0 auto;
  }

  ul.lista, .listamc ul {
    list-style-type: circle !important;
    margin-left: 1.2rem !important;
    padding-left: initial !important;
    text-indent: initial !important;
  }

  .lista li, .listamc li {
    list-style-type: circle;
    padding-left: initial;
    margin-left: 0;
    background: none !important;
  }
}
