/* Home page pubblica (v1.6.0): stili dedicati, caricati dopo styles.css */

body.home .topbar { position: sticky; top: 0; z-index: 20; }

body.home .home-hero {
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 74px) clamp(30px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
}
body.home .home-hero::after { content: none; }
body.home .home-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; margin: 10px 0 12px; }
body.home .home-hero p { font-size: clamp(.95rem, 1.5vw, 1.05rem); line-height: 1.6; max-width: 620px; color: rgba(255,255,255,.8); }

.home-quick { display: grid; gap: 14px; }
.home-quick-card {
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: white;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease;
}
.home-quick-card:hover, .home-quick-card:focus-visible { background: rgba(255,255,255,.18); transform: translateY(-2px); outline: none; }
.home-quick-tag { font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: #8bd1f5; }
.home-quick-card strong { font-size: 1.08rem; }
.home-quick-card span:not(.home-quick-tag) { font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.78); }
.home-quick-card em { font-style: normal; font-weight: 800; font-size: .84rem; color: white; margin-top: 4px; }

.home-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px clamp(18px, 5vw, 74px);
  background: white;
  border-bottom: 1px solid var(--line);
}
.home-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 750; font-size: .88rem; color: var(--blue-900); }
.home-nav a:hover { background: var(--blue-100); }

body.home .home-shell { padding-top: 26px; margin-top: 0; }
body.home .public-filter { margin-top: 0; }
.home-section { margin-top: 18px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); box-shadow: none; scroll-margin-top: 84px; }
.home-section:first-child { margin-top: 0; }
.home-section .section-head p { max-width: 820px; }
.home-toolbar { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }

.home-legend { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fbfcfe; }
.home-legend summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--blue-900); font-size: .9rem; }
.home-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 4px 0 14px; }
.home-legend-grid div { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; line-height: 1.45; }
.home-legend-grid strong { color: var(--blue-900); }
.home-legend-grid span { color: var(--muted); }

.home-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-doc { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.home-doc strong { color: var(--blue-900); }
.home-doc span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
a.home-doc:hover { border-color: var(--blue-700); background: var(--blue-100); }

.home-footer { text-align: left; padding: 30px clamp(18px, 5vw, 74px); }
.home-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(1460px, 100%); margin: 0 auto; }
.home-footer-grid div { display: flex; flex-direction: column; gap: 6px; }
.home-footer-grid strong { color: white; font-size: .9rem; }
.home-footer-grid a { color: rgba(255,255,255,.78); }
.home-footer-grid a:hover { color: white; text-decoration: underline; }

body.home table thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body.home .public-table tbody tr:nth-child(even) td { background: #fafcfe; }

@media (max-width: 1000px) {
  body.home .home-hero { grid-template-columns: 1fr; }
  .home-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .home-legend-grid, .home-docs { grid-template-columns: 1fr; }
  .home-section { scroll-margin-top: 120px; }
  body.home .home-toolbar .field { max-width: none; }
}
