/* Specimen Drawers website.
   Layout and components follow the web kit "Design Civic Museums Site Model" (header slim/central/nav, hero with
   place cards, info cards, horizontal feature cards, object grid, documents list, support band, generic text page
   with page index, footer); colours, fonts and marks are the app's (Learnova tokens, Inter). See docs/DESIGN_MAP_SITE.md. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-bold.woff2") format("woff2"); }

:root {
  --purple: #7C3AED;      /* app sd_purple — kit primary #0066cc */
  --purple-dark: #6929D8;
  --deep: #6232B5;        /* app sd_deep — kit accent band #5e1d54 */
  --violet: #9912E7;      /* app sd_violet */
  --accent: #B0228F;      /* app sd_magenta, darkened for text contrast — kit link #7d2670 */
  --ink: #1A1A1A;         /* kit #1a1a1a */
  --ink-2: #3C3C43;       /* app secondary ink — kit #2f475e */
  --muted: #5E5E6B;       /* kit #5c6f82 */
  --line: #DCDCE3;        /* kit #c5c7c9 */
  --card: #FAF8FE;        /* kit card #fbf9fb, purple-tinted */
  --alt: #F8F5FE;         /* kit section ground #fbf9fb */
  --band: #F3EEFD;        /* kit feedback band #f6eff5 */
  --badge: #EDE4FD;       /* kit badge #ecdfec */
  --lavender: #D0B8F8;    /* app sd_lavender */
  --slim: #2A1D5C;        /* app sd_station_panel — kit slim header #333333 */
  --night: #1C1240;       /* app sd_station_bg — kit footer #03313a */
  --radius: 4px;          /* kit radius */
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* kit drop shadow y8 blur16 15 % */
  --gutter: 72px;         /* kit desktop margin */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #FFFFFF; color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 28px; font-weight: 400;
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga", "calt";
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #FFFFFF; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(1296px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 10; background: #FFFFFF; color: var(--ink); padding: 8px 16px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 24px; height: 24px; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header (kit "Header / Full": slim 48 + central 120 + nav 72) ---------- */
.hdr-slim { background: var(--slim); color: #FFFFFF; font-size: 16px; line-height: 24px; }
.hdr-slim .wrap { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr-slim-r { color: var(--lavender); white-space: nowrap; }
.hdr-central { background: var(--purple); color: #FFFFFF; }
.hdr-central .wrap { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 72px; height: 72px; }
.brand-name { display: block; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.brand-tag { display: block; font-size: 16px; line-height: 24px; }
.hdr-mail { display: flex; align-items: center; gap: 16px; color: #FFFFFF; text-decoration: none; font-size: 16px; line-height: 24px; }
.hdr-mail:hover { color: #FFFFFF; text-decoration: underline; }
.hdr-mail .disc { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: var(--purple); display: flex; align-items: center; justify-content: center; }
.hdr-mail .disc .ico { width: 20px; height: 20px; }
.hdr-nav { background: #FFFFFF; border-bottom: 1px solid var(--ink); }
.hdr-nav .wrap { min-height: 72px; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.hdr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.hdr-nav li { display: flex; }
.hdr-nav ul a { display: flex; align-items: center; font-weight: 600; font-size: 18px; line-height: 28px; text-decoration: none; color: var(--purple); border-bottom: 3px solid transparent; padding-top: 3px; white-space: nowrap; }
.hdr-nav ul a:hover { border-bottom-color: var(--lavender); }
.hdr-nav ul a[aria-current="page"] { border-bottom-color: var(--deep); color: var(--deep); }
.hdr-nav .btn { align-self: center; }

/* ---------- Buttons and links (kit "Button / Primary Filled", "Link / Icon right") ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); background: var(--purple); color: #FFFFFF; font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; border: 2px solid var(--purple); }
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: #FFFFFF; }
.btn-mini { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 16px; }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--deep); }
.btn-light:hover { background: var(--badge); border-color: var(--badge); color: var(--deep); }
.btn-ghost { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; color: #FFFFFF; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 18px; line-height: 28px; text-decoration: none; }
.more:hover { color: var(--accent); text-decoration: underline; }
.more-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.more-row .more { font-size: 16px; line-height: 24px; }

/* ---------- Alert (kit "Alert") ---------- */
.alert { background: var(--accent); color: #FFFFFF; font-size: 16px; line-height: 24px; }
.alert .wrap { display: flex; align-items: flex-start; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.alert .ico { margin-top: 0; color: #FFFFFF; }
.alert strong { font-weight: 700; }

/* ---------- Hero (kit "Hero", Viewport=Desktop, Places=Many) ---------- */
.contours { background-color: var(--deep); background-image: url("img/contours.svg"); background-size: cover; background-position: center; }
.hero { color: #FFFFFF; }
.hero .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 48px; }
.hero h1 { font-size: 44px; line-height: 52px; font-weight: 700; max-width: 900px; }
.hero-text { margin-top: 16px; font-size: 18px; line-height: 28px; max-width: 640px; }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.place { display: flex; width: 416px; max-width: 100%; min-height: 80px; color: #FFFFFF; text-decoration: none; }
.place img { width: 142px; height: 80px; object-fit: cover; flex: none; }
.place span { flex: 1; display: flex; align-items: center; padding: 16px 24px; background: rgba(28, 18, 64, 0.8); font-weight: 600; font-size: 18px; line-height: 24px; }
.place:hover span { background: rgba(28, 18, 64, 0.95); text-decoration: underline; }
.ctas { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Sections ---------- */
.sec { padding: 80px 0; }
.sec-alt { background: var(--alt); }
.sec-title { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--ink); }
.sec-sub { margin-top: 16px; font-size: 22px; line-height: 32px; color: var(--ink-2); max-width: 860px; }
.sec-head { margin-bottom: 32px; }

/* Info cards (kit "Card / Service" extended, "S - Info") */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.info { background: var(--card); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.info-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.info h3 { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--ink); }
.info-top .ico { width: 48px; height: 48px; color: var(--purple); }
.info ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.info li { display: flex; gap: 12px; color: var(--ink-2); }
.info li .ico { color: var(--purple); margin-top: 2px; }
.info li strong { color: var(--ink); font-weight: 600; }
.info .more { margin-top: auto; }

/* Feature cards (kit "Card / Exhibition", horizontal) */
.features { display: flex; flex-direction: column; gap: 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 636fr) minmax(0, 660fr); background: #FFFFFF; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature img { width: 100%; height: 100%; aspect-ratio: 636 / 550; object-fit: cover; object-position: center top; }
.feature-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.feature h3 { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--ink); }
.feature-sub { margin-top: 8px; font-size: 22px; line-height: 30px; font-weight: 600; color: var(--deep); }
.feature-text { color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.feature li + li { margin-top: 4px; }
.badge { align-self: flex-start; margin-top: auto; background: var(--badge); color: var(--deep); border-radius: var(--radius); padding: 4px 16px; font-weight: 600; font-size: 14px; line-height: 16px; }

/* Object grid (kit "S - Works", "Card / Object") */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.work h3 { margin-top: 16px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.work-area { margin-top: 8px; font-weight: 600; font-size: 17px; line-height: 24px; color: var(--deep); }
.work-text { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Documents list (kit "S - Documents") — sources and licences */
.docs { max-width: 856px; margin: 0 auto; }
.doc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.doc { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc:first-child { border-bottom-color: var(--ink); }
.doc .ico { width: 32px; height: 32px; color: var(--purple); }
.doc h3 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.doc p { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.doc .lic { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--muted); }
.doc .lic a { color: var(--accent); font-weight: 600; }
.docs-note { margin-top: 32px; padding: 24px; background: #FFFFFF; border-left: 4px solid var(--deep); color: var(--ink-2); font-size: 16px; line-height: 24px; }
.docs-note strong { color: var(--ink); }

/* Support band (kit "Vuoi supportare il museo?") */
.support { color: #FFFFFF; text-align: center; }
.support .wrap { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.support h2 { font-size: 40px; line-height: 48px; font-weight: 700; }
.support p { max-width: 720px; }
.support .btn { margin-top: 24px; }

/* Feedback band + card (kit "S - Feedback"), used for the contact card on text pages */
.band { background: var(--band); padding: 80px 0; }
.band-card { max-width: 636px; margin: 0 auto; background: #FFFFFF; padding: 24px; box-shadow: var(--shadow); }
.band-card h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.band-card p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--ink-2); }

/* ---------- Text page (kit "[D] Foglia | Testo generico") ---------- */
.crumbs { padding: 24px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 18px; line-height: 28px; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; padding: 0 10px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.titlebar { color: #FFFFFF; }
.titlebar .wrap { min-height: 152px; padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.titlebar h1 { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.03em; }
.titlebar p { color: var(--badge); font-size: 18px; line-height: 28px; }
.doc-page .wrap { display: grid; grid-template-columns: 306px minmax(0, 856px); justify-content: space-between; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.toc { align-self: start; position: sticky; top: 24px; }
.toc-head { padding: 24px; font-weight: 600; font-size: 18px; line-height: 24px; color: var(--ink-2); }
.toc-bar { height: 4px; background: var(--line); }
.toc-bar span { display: block; height: 4px; width: 100%; background: linear-gradient(90deg, var(--deep), var(--violet)); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; align-items: center; min-height: 52px; padding: 12px 24px; border-left: 2px solid transparent; font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; color: var(--purple); }
.toc li a:hover { border-left-color: var(--deep); color: var(--deep); background: var(--card); }
.prose section { padding: 40px 0 0; scroll-margin-top: 24px; }
.prose section:first-child { padding-top: 0; }
.prose h2 { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--ink); }
.prose h3 { margin-top: 32px; font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.prose p, .prose ul { margin-top: 16px; color: var(--ink-2); }
.prose ul { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { margin-top: 0; font-size: 20px; line-height: 30px; color: var(--ink); }
.facts { margin-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.box { margin-top: 24px; padding: 24px; background: var(--card); border-left: 4px solid var(--purple); }
.box p:first-child { margin-top: 0; }
.stamp { margin-top: 48px; padding: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 16px; color: var(--muted); }
.stamp strong { font-weight: 600; color: var(--muted); }

/* 404 */
.lost .wrap { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 72px; align-items: center; }
.lost p { color: var(--ink-2); max-width: 640px; }
.lost p + p { margin-top: 16px; }
.lost .ctas { margin-top: 32px; }
.lost img { width: 270px; border-radius: 24px; box-shadow: var(--shadow); }

/* ---------- Footer (kit "Footer", Viewport=Desktop) ---------- */
.ftr { background: var(--night); color: #FFFFFF; font-size: 16px; line-height: 24px; }
.ftr a { color: #FFFFFF; text-decoration: none; }
.ftr a:hover { text-decoration: underline; color: #FFFFFF; }
.ftr-top { padding-top: 40px; padding-bottom: 40px; }
.ftr-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; line-height: 32px; font-weight: 600; }
.ftr-brand img { width: 48px; height: 48px; }
.ftr-cols { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.ftr-cols + .ftr-cols { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ftr h2 { font-size: 16px; line-height: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.ftr ul { list-style: none; margin: 16px 0 0; padding: 0; }
.ftr li { margin-top: 8px; }
.ftr p { margin-top: 16px; color: #E4DAFB; }
.ftr-wide { grid-column: span 2; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ftr-bottom .wrap { min-height: 64px; padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; font-size: 14px; line-height: 20px; }
.ftr-bottom ul { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr-bottom li { margin: 0; font-weight: 600; }
.ftr-bottom small { font-size: 14px; color: #E4DAFB; }

/* ---------- Responsive (kit mobile viewport 375, margin 12 → 16 here) ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .doc-page .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--card); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-wide { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; line-height: 26px; }
  .hdr-slim-r { display: none; }
  .hdr-central .wrap { min-height: 88px; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 24px; line-height: 32px; }
  .brand-tag { font-size: 14px; line-height: 20px; }
  .hdr-mail .label { display: none; }
  .hdr-nav .wrap { min-height: 56px; }
  .hdr-nav ul { flex-wrap: wrap; gap: 0 24px; padding: 4px 0; }
  .hdr-nav ul a { font-size: 16px; line-height: 24px; padding: 10px 0 7px; }
  .hdr-nav .btn { display: none; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .place { width: 100%; }
  .ctas .btn { flex: 1 1 100%; }
  .sec { padding: 48px 0; }
  .sec-title, .support h2 { font-size: 30px; line-height: 38px; }
  .sec-sub { font-size: 19px; line-height: 28px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .info { padding: 24px; }
  .info h3, .feature h3 { font-size: 24px; line-height: 32px; }
  .feature-body { padding: 24px; }
  .feature-sub { font-size: 19px; line-height: 26px; }
  .works { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc { gap: 16px; grid-template-columns: 28px minmax(0, 1fr); }
  .doc .ico { width: 28px; height: 28px; }
  .crumbs ol { font-size: 16px; line-height: 24px; }
  .titlebar .wrap { min-height: 120px; padding-top: 32px; padding-bottom: 32px; }
  .titlebar h1 { font-size: 34px; line-height: 42px; }
  .doc-page .wrap { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  .prose h2 { font-size: 26px; line-height: 34px; }
  .prose h3 { font-size: 20px; line-height: 28px; }
  .prose .lead { font-size: 18px; line-height: 28px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .band { padding: 48px 0; }
  .lost .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .lost img { width: 220px; }
  .ftr-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 21px; line-height: 28px; }
  .brand-tag { font-size: 13px; line-height: 18px; }
}
