/* --- FONT --- */

@font-face {
  font-family: "easyfont";
  src: url("/risorse/easyfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* --- CONTENUTO --- */


.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  /*filter: blur(2px);*/
}

#animatedCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #F7C873;
}

body {
  font-family: "easyfont";
  line-height: 1.6;
  color: white;
  padding: 20px;
background: #FBDB93;
background: linear-gradient(90deg,rgba(251, 219, 147, 1) 0%, rgba(255, 239, 200, 1) 100%);
  
}

header {
  text-align: center;
  padding: 2rem 0;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 10vw, 5rem);
  color: #dc143b;
}

header p {
  color: #bdc3c7;
  font-size: 1.1rem;
}

main {
  margin: 2rem 0;
}

article {
  /*background-color: rgba(228, 225, 224, 0.63);*/
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  margin: 0 auto;
  max-width: 800px;
  padding: 1.5rem;
  /*margin-bottom: 1.5rem;*/
  /*border-radius: 8px;*/
  color: #232323; /* Testo bianco per contrasto */
}

article h2 {
  color: #dc143b;
  margin-top: 0;
}

article:nth-child(odd) {
  background-color: rgba(231, 211, 211, 0.7); /* Giallo formaggio semi-trasparente */

}

article:nth-child(even) {
  background-color: rgba(238, 238, 238, 0.7); /* Rosso pomodoro semi-trasparente */

}

.date {
  font-size: 0.9rem;
  color: #798d80;
  margin: 0.5rem 0;
}

.content {
  margin: 1rem 0;
}

.content h2 {
  color: #2980b9;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.content p {
  margin: 0.8rem 0;
}

.content ul,
.content ol {
  margin: 0.8rem 0 0.8rem 1.5rem;
}

.content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  color: #7f8c8d;
  font-style: italic;
  margin: 0.8rem 0;
}

footer {
      background: repeating-linear-gradient(
        to right,
        #FFF2D0,
        #FFF2D0 50px,
        #BF4646 50px,
        #BF4646 100px
    );
  text-align: center;
  padding: 0.1rem;
  color: #bdc3c7;
  font-size: 0.9rem;
  border-top: 4px dashed #7EACB5;
  margin-top: 1rem;
}

.error {
  color: #e74c3c;
}

/* --- Pulsante Torna in Cima --- */

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fae7ad; /* Giallo formaggio */
  color: #388e3c; /* Verde basilico */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.1s, background-color 0.1s;
  z-index: 1000;
}

#back-to-top:hover {
  background-color: #fbc02d;
}

#back-to-top.show {
  opacity: 1;
}

/* Per mobile */
@media (max-width: 600px) {
  #back-to-top {
    width: 60px;
    height: 60px;
    font-size: 30px;
    bottom: 15px;
    right: 15px;
  }
}
