body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

header {
  position: static;
  text-align: center;
  width: 100%;
  padding: 32px 16px 28px;
  background: var(--primary);
  border: none;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.15);
  margin-bottom: 0;
}

header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
header h1 a { color: inherit; text-decoration: none; }
header h1 a:hover { color: rgba(255, 255, 255, 0.85); }

header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

header b {
  color: #fbbf24;
}

.favorites {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 16px;
}
.favorites h3 {
  margin: 12px 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}
.favorites ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.favorites li {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.favorites li:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.favorites a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.favorites a .emoji { font-size: 1.1rem; }

.main-section {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 20px 16px 0;
}
.search-section { margin-bottom: 20px; }
.search-section h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.categories-section { width: 100%; }
.categories-section h3 {
  margin: 16px 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  justify-items: center;
}
.card {
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  max-width: 260px;
  cursor: pointer;
}
.card:hover { border-color: var(--primary); }
.card a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

#searchResults {
  margin-top: 16px;
  text-align: left;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
#resultsContainer h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}
#resultsContainer ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
#resultsContainer li { margin: 4px 0; }
#resultsContainer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
#resultsContainer a:hover { color: var(--primary-hover); }

.info-sections {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 24px auto;
}
.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
}
.contact p { color: var(--text); font-size: 1rem; }
.contact a { color: var(--primary); font-weight: 600; }

.monitoring {
  width: 100%;
  max-width: 900px;
  margin: 16px auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.monitoring strong { color: var(--primary); }

.my-supplenze {
  width: 100%;
  max-width: 700px;
  margin-bottom: 24px;
}
.supplenze-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.supplenze-table th,
.supplenze-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}
.supplenze-table th {
  color: var(--text);
  font-weight: 700;
}
