/* ==============================
   MICRO-RIFINITURE TIPOGRAFICHE
   Versione 1.1 — ottobre 2025
   ============================== */

/* 1️⃣ Titoli, intestazioni e link principali */
.lazTop span, .lazTop a {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  text-decoration: none;
}

.lazTop a:hover {
  text-decoration: underline;
}

/* 2️⃣ Tabelle dei messaggi */
#lazTable td {
  padding: 8px 10px;
  line-height: 1.55;
}

#lazTable tr[bgcolor] td {
  border-bottom: 1px solid #e0e0e0;
}

.message_name {
  font-size: 0.95rem;
  font-weight: bold;
  color: #222;
}

.message {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 4px;
  word-break: break-word;
}

/* 3️⃣ Permalink e dettagli (data, IP, browser) */
.permalink {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px;
}

.permalink img {
  vertical-align: middle;
  opacity: 0.8;
}

/* 4️⃣ Navigazione inferiore */
.navigation {
  font-size: 0.9rem;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* 5️⃣ Spaziature generali */
body {
  line-height: 1.55;
  letter-spacing: 0.02em;
}

table {
  margin-top: 6px;
  margin-bottom: 12px;
}

/* 6️⃣ Responsive tuning */
@media (max-width: 640px) {
  .message {
    font-size: 1rem;
    line-height: 1.65;
  }

  .permalink {
    font-size: 0.85rem;
  }

  .message_name {
    font-size: 1rem;
  }

  .lazTop {
    text-align: center;
  }

  .navigation {
    justify-content: center;
    gap: 4px 6px;
  }
}
/* --- GUESTBOOK HEADER MODERNO --- */

.gb-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e3e3e3;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  color: #444;
}

.gb-stats {
  font-weight: 400;
  color: #333;
}

.gb-stats strong {
  color: #c22;
  font-weight: 700;
  margin-left: 4px;
}

.gb-online {
  color: #888;
  font-size: 0.9rem;
  margin-left: 6px;
}

.gb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* --- BOTTONI MODERNI --- */

.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background-color: #0066cc; /* blu Catania */
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
}

.gb-btn:hover {
  background-color: #e53935; /* rosso acceso al passaggio */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.gb-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Variante "secondaria" (per Aggiorna o Home) */
.gb-btn.secondary {
  background-color: #f5f5f5;
  color: #222;
  border: 1px solid #ddd;
}

.gb-btn.secondary:hover {
  background-color: #e53935;
  color: #fff;
  border-color: #e53935;
}
.gb-lock img {
  vertical-align: middle;
  margin-left: 4px;
}

.gb-navigation {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.gb-navigation a,
.gb-navigation span {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  margin: 0 0.15rem;
  border-radius: 4px;
  background: #f4f4f4;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.gb-navigation a:hover {
  background: #0055cc;
  color: #fff;
}

.gb-navigation .current {
  background: #c22;
  color: #fff;
  font-weight: 600;
}
/* --- GENERAL RESET --- */
.gb-header-wrapper,
.gb-topnav,
.gb-bottomnav,
.gb-table-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- HEADER --- */
.gb-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ddd;
}

.gb-logo img {
  max-width: 100%;
  height: auto;
}

.gb-subinfo {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.gb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gb-btn {
  background: linear-gradient(90deg, #0055cc, #007bff);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s;
}
.gb-btn:hover {
  background: linear-gradient(90deg, #c22, #e33);
}

.gb-jump select {
  padding: 0.3rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* --- TOP NAVIGATION --- */
.gb-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.gb-info {
  color: #444;
}
.gb-total {
  color: #c22;
  font-weight: 700;
}
.gb-pages {
  margin-top: 0.4rem;
}
.gb-pages a,
.gb-pages span {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0 0.1rem;
  border-radius: 4px;
  background: #f4f4f4;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.gb-pages a:hover {
  background: #0055cc;
  color: #fff;
}
.gb-pages .current {
  background: #c22;
  color: #fff;
  font-weight: 600;
}

/* --- TABLE --- */
.gb-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.gb-table th {
  background: #f8f8f8;
  text-align: left;
  padding: 0.5rem;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}
.gb-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.gb-table tr:nth-child(even) {
  background: #fafafa;
}

/* --- BOTTOM NAVIGATION --- */
.gb-bottomnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #555;
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: 0.6rem;
}
.gb-html {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  .gb-header, .gb-topnav, .gb-bottomnav {
    flex-direction: column;
    align-items: flex-start;
  }
  .gb-actions {
    justify-content: flex-start;
  }
  .gb-pages {
    margin-top: 0.4rem;
  }
}
