:root {
  --primary: #0f172a;
  --accent: #dc2626;
  --accent-soft: #fef2f2;
  --blue: #0284c7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none !important;
  letter-spacing: -.4px;
}
.brand b { color: var(--accent); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 18px;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px;
  }
  .nav-links.open { display: flex; }
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 42px 0 36px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--primary);
  letter-spacing: -.6px;
}
.hero p {
  margin: 0 auto 18px;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 16px;
}
.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.rate-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }

.meta-search-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  text-align: left;
}
.meta-input-row {
  display: flex;
  gap: 10px;
}
.meta-input {
  flex: 1;
  height: 46px;
  padding: 0 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: 9px;
  font-size: 16px;
  color: var(--primary);
  outline: none;
}
.meta-input:focus { border-color: var(--accent); }
.portal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.btn-portal:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-portal-pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-portal-pri:hover { background: #b91c1c; color: #fff; }

.page-main { padding: 28px 0 54px; }
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.card-title {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-green { background: #dcfce7; color: #15803d; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

.tool-card {
  display: block;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.tool-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--primary); }
.tool-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); }

.pill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.pill-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
}
.pill-link:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.pill-link small { color: var(--text-light); font-weight: 600; }

.auction-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}
.auction-item h3 { margin: 6px 0 6px; font-size: 15.5px; color: var(--primary); line-height: 1.35; }
.auction-meta { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }

.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.form-control {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-size: 15px;
  color: var(--primary);
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.res-big { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.15; }
.res-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.res-row strong { color: var(--primary); }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 0 24px;
  margin-top: 24px;
}
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13.5px; font-weight: 600; }
.footer-legal { margin-top: 14px; font-size: 12.5px; color: var(--text-light); }


/* Trilingual Header Switcher IT | DE | FR */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--text-muted);
  padding: 2px 5px;
  border-radius: 5px;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}
.lang-sep { color: var(--border-strong); font-weight: 400; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px;
  }
  .nav-links.open { display: flex; }
}


/* Autocomplete Dropdown on Hero Search */
.meta-search-box { position: relative; }
.ac-results {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 66px;
  z-index: 650;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important;
  color: var(--primary);
  font-size: 14px;
}
.ac-item:hover { background: #f8fafc; }
.ac-item strong { display: block; color: var(--primary); }
.ac-item small { color: var(--text-light); font-size: 12.5px; }

/* GDPR / nLPD Cookie Banner */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
  padding: 14px 18px;
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-bar p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-bar-actions .btn-portal {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
