body {
  font-family: "Segoe UI", sans-serif;
  padding: 2rem;
  max-width: 750px;
  margin: auto;
  background-color: #e4f2ff;
  color: #333;
}
h1 {
  text-align: center;
  color: #14527a;
  margin-bottom: 0.5rem;
}
.intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
#messaggio {
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}
.filters {
  text-align: center;
  margin-bottom: 2rem;
}
.toggle-container {
  text-align: center;
  margin: 1.5rem 0;
}
.entry {
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid #3a8dde;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border-radius: 6px;
}
.entry.today {
  border-left-color: #4aa3ff;
  background-color: #d9f1ff;
}
.entry h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.meta {
  font-size: 0.85rem;
  color: #666;
}
.hidden {
  display: none;
}
.month {
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.month-header {
  padding: 0.8rem 1rem;
  background: #e4e8ff;
  color: #283b6c;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}
.month .days {
  display: none;
  padding: 1rem;
}
.highlight {
  outline: 3px solid #4aa3ff;
  outline-offset: 4px;
}
.top-link {
  text-align: center;
  margin: 3rem 0 1rem;
}
.top-link a {
  text-decoration: none;
  font-size: 1rem;
  color: #2c3e50;
}
@media (max-width: 600px) {
  .filters label {
    display: block;
    margin: 0.5rem 0;
  }
  .entry {
    padding: 0.8rem;
  }
}

/* Sfondo respiro azzurro–verde */
body {
  min-height: 100vh;
  background:
    radial-gradient(40% 50% at 0% 0%,   rgba(160, 220, 190, 0.65), transparent 60%),
    radial-gradient(40% 50% at 100% 0%,  rgba(140, 205, 210, 0.60), transparent 60%),
    radial-gradient(40% 50% at 0% 100%,  rgba(190, 235, 200, 0.60), transparent 60%),
    radial-gradient(40% 50% at 100% 100%,rgba(155, 210, 225, 0.65), transparent 60%),
    linear-gradient(120deg, #e4f2ff, #d8f3e3, #eaf9f0);
  background-size: 200% 200%;
  animation: respiroVerde 8s ease-in-out infinite;
}

@keyframes respiroVerde {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}60%  { transform: translate(calc(var(--x,0px) + 8px), calc(var(--y,0px) - 80px)) scale(1.05) rotate(8deg); opacity: .9; }
  100% { transform: translate(calc(var(--x,0px) + 12px), calc(var(--y,0px) - 140px)) scale(1) rotate(14deg); opacity: 0; }
}

/* Slight polish for top-link visibility on pastel bg */
.top-link a { background: rgba(255,255,255,.6); padding:.3rem .6rem; border-radius: 999px; }

#sendHugBtn, .hug-actions { flex-direction: column; align-items: center; text-align: center;    margin: 0.25rem 0 1.4rem; }

.hug-actions { flex-direction: column; align-items: center; justify-content: center;    margin: 0.25rem 0 1.4rem; }

.hug-btn { text-transform: uppercase; letter-spacing: .4px; }

.hug-feedback {  text-align: center;  margin-top: .45rem; }


.read-messages {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
}

.read-btn {
  border: 0;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #4aa3ff, #7cd1ff);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .08s ease, box-shadow .18s ease, opacity .18s ease;
}

.read-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}

.read-btn:active {
  transform: translateY(0);
  opacity: .9;
}
