/* Olos: passaporto digitale del prodotto (versione statica). */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --wool: #F2EFEA; --wool-deep: #E8E3DA; --wool-card: #FBFAF7;
  --peat: #262420; --peat-soft: #4A463F; --peat-muted: #736C61; --peat-line: #D8D1C5;
  --thread: #9A7B45; --thread-light: #C9AE7C; --thread-dark: #6F5630;
  --moss: #3E5F52; --moss-light: #DCE6E0;
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--wool); color: var(--peat); font-family: var(--sans); font-size: 15px; line-height: 1.6; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 16px; z-index: 2000; background: var(--peat); color: var(--wool); border-radius: 999px; padding: 8px 16px; }
.skip:focus { left: 16px; }

.wrap { max-width: 1152px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3, .big, .name, .val, .pct { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.hash { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.01em; word-break: break-all; }
.muted { color: var(--peat-muted); }
.soft { color: var(--peat-soft); }
.moss { color: var(--moss); }
.small { font-size: 13px; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 32px; height: 32px; stroke-width: 1.3; color: var(--thread); }
.seal { width: 20px; height: 20px; color: var(--thread); }
.seal.big { width: 40px; height: 40px; color: var(--thread-light); }

/* Barra superiore */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(242, 239, 234, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(216, 209, 197, 0.7); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand-name { font-family: var(--display); font-size: 20px; letter-spacing: 0.02em; white-space: nowrap; }
.topbar nav { display: flex; gap: 2px; overflow-x: auto; font-size: 13px; scrollbar-width: none; min-width: 0; mask-image: linear-gradient(to right, #000 85%, transparent); }
@media (min-width: 640px) { .topbar nav { mask-image: none; } }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { white-space: nowrap; border-radius: 999px; padding: 4px 10px; color: var(--peat-muted); }
.topbar nav a:hover { background: var(--wool-deep); color: var(--peat); }
.olos-home { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--peat-line); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.olos-home .seal { width: 22px; height: 22px; }
.olos-home:hover { color: var(--thread-dark); }
@media (max-width: 480px) { .olos-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Hero */
.hero { display: grid; gap: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
@media (min-width: 768px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; margin: 0; padding-top: 40px; } }
.photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background-image:
    radial-gradient(120% 80% at 50% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 7px);
}
@media (min-width: 768px) { .photo { border-radius: 2px; } }
.photo .garment-ill { position: absolute; left: 50%; top: 52%; width: 78%; max-width: 420px; transform: translate(-50%, -50%); }
.cert { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 8px; background: rgba(251, 250, 247, 0.95); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.photo-caption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.intro { padding: 32px var(--gutter) 16px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .intro { padding: 0 0 40px; } }
.kicker { font-size: 14px; color: var(--peat-muted); }
.hero h1 { margin-top: 12px; font-size: 44px; line-height: 0.98; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.desc { margin-top: 20px; max-width: 28rem; line-height: 1.65; color: var(--peat-soft); }
.serial { margin-top: 32px; display: flex; align-items: flex-end; gap: 20px; border-top: 1px solid var(--peat-line); padding-top: 24px; }
.serial .big { font-size: 56px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.serial .of { font-size: 30px; color: var(--peat-muted); }
.serial .small { padding-bottom: 6px; font-size: 14px; line-height: 1.4; color: var(--peat-muted); }
.hash.wide { letter-spacing: 0.08em; color: var(--peat); }
.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 16px 36px; } }
.facts dt { font-size: 12px; color: var(--peat-muted); }
.facts dd { margin-top: 2px; font-family: var(--display); font-size: 26px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.facts dd.text { font-size: 17px; line-height: 1.3; padding-top: 4px; }
.facts .of { font-size: 16px; color: var(--peat-muted); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Sezioni */
section { margin-top: 64px; }
@media (min-width: 768px) { section { margin-top: 96px; } }
.section-title { margin-bottom: 32px; max-width: 42rem; }
.section-title h2 { font-size: 34px; line-height: 1.15; scroll-margin-top: 96px; }
@media (min-width: 640px) { .section-title h2 { font-size: 42px; } }
.section-title p { margin-top: 12px; color: var(--peat-muted); line-height: 1.65; }
h3 { font-size: 24px; line-height: 1.2; }

/* Viaggio: mappa + tappe */
.journey { display: grid; gap: 48px; }
@media (min-width: 768px) { .journey { grid-template-columns: 1fr 1.05fr; gap: 56px; } .maps { position: sticky; top: 80px; align-self: start; } }
.map { width: 100%; height: auto; background: var(--wool-deep); border-radius: 2px; }
.map .land { fill: #DAD3C6; stroke: #CFC6B6; stroke-width: 0.5; }
.map .country { fill: #D0C7B6; }
.map .route { fill: none; stroke: var(--thread); stroke-width: 2.2; stroke-dasharray: 7 5; stroke-linecap: round; }
.map .pin rect { fill: var(--wool-card); stroke: var(--thread); stroke-width: 2; }
.map .pin text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--peat); }
.map .pin:hover rect, .map .pin:focus rect { fill: var(--thread); }
.map .pin:hover text, .map .pin:focus text { fill: #fff; }
.map.inset { margin-top: 12px; }
.map .inset-title { font-family: var(--display); font-size: 16px; fill: var(--peat-muted); }

.timeline li { position: relative; padding-left: 56px; scroll-margin-top: 96px; }
.timeline li:not(.last)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1.5px; background-image: linear-gradient(to bottom, var(--thread) 0 6px, transparent 6px 11px); background-size: 1.5px 11px; }
.timeline .num { position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(154, 123, 69, 0.6); background: var(--wool); color: var(--thread-dark); font-weight: 500; transition: background-color 200ms, color 200ms; }
.timeline li:has(details[open]) .num { background: var(--thread); border-color: var(--thread); color: #fff; }
.timeline .km { margin: -4px 0 12px; font-size: 12px; color: var(--peat-muted); }
.timeline details { padding-bottom: 40px; }
.timeline .last details { padding-bottom: 8px; }
.timeline summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary > span { display: block; }
.timeline .stage { display: block; font-size: 13px; color: var(--thread-dark); }
.timeline .step-title { display: block; margin-top: 2px; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; }
@media (min-width: 640px) { .timeline .step-title { font-size: 30px; } }
.timeline summary:hover .step-title { color: var(--peat-soft); }
.timeline .where { display: block; margin-top: 4px; font-size: 13px; color: var(--peat-muted); }
.timeline .verified { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--moss); }
.timeline .verified .ic { width: 14px; height: 14px; }
.timeline .chevron { width: 20px; height: 20px; margin-top: 24px; color: var(--peat-muted); transition: transform 300ms; }
.timeline details[open] .chevron { transform: rotate(180deg); }

.step-body { margin-top: 20px; display: grid; gap: 24px; }
.step-desc { max-width: 36rem; color: var(--peat-soft); line-height: 1.65; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 6px), repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 7px); }
.photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 8px 6px; font-size: 11px; color: rgba(255, 255, 255, 0.9); background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent); }
.step-facts { display: grid; gap: 20px; }
@media (min-width: 640px) { .step-facts { grid-template-columns: 1fr 1fr; } }
.step-facts dt { font-size: 13px; color: var(--peat-muted); }
.step-facts .name { margin-top: 4px; font-size: 20px; }
.step-facts .muted { font-size: 13px; }
.step-facts .soft { margin-top: 8px; font-size: 13px; line-height: 1.6; }
.step-facts .moss { margin-top: 4px; font-size: 13px; }
.certs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.certs span { border: 1px solid rgba(154, 123, 69, 0.4); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--thread-dark); }
.step-body h4 { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.docs { display: grid; gap: 8px; container-type: inline-size; }
.doc { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--peat-line); background: var(--wool-card); border-radius: 2px; padding: 16px; }
@container (min-width: 560px) { .doc { flex-direction: row; align-items: center; } .doc .ic-lg { display: block; } }
.doc .ic-lg { display: none; }
.doc-main { min-width: 0; flex: 1; }
.doc-title { font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 500; }
.status .ic { width: 14px; height: 14px; }
.status.verified { background: var(--moss-light); color: var(--moss); }
.status.pending { background: #FEF3C7; color: #92400E; }
.status.expired { background: #E7E5E4; color: #57534E; }
.status.rejected { background: #FEE2E2; color: #B91C1C; }
.doc-meta { margin-top: 4px; font-size: 12px; color: var(--peat-muted); }
.doc-meta .sep { margin: 0 6px; color: var(--peat-line); }
.doc-actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--peat-line); border-radius: 999px; padding: 6px 12px; font-size: 13px; transition: border-color 150ms, background-color 150ms; }
.chip:hover { border-color: var(--peat); }
.chip .ic { width: 14px; height: 14px; }
.chip-dark { background: var(--peat); border-color: var(--peat); color: var(--wool); }
.chip-dark:hover { background: var(--peat-soft); }
.chain { font-size: 12px; color: var(--peat-muted); }

/* Materiali e impatto */
.two { display: grid; gap: 56px; }
@media (min-width: 768px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.bar { margin-top: 20px; display: flex; height: 12px; gap: 2px; overflow: hidden; border-radius: 999px; }
.bar span { display: block; height: 100%; }
.comp { margin-top: 24px; border-top: 1px solid var(--peat-line); border-bottom: 1px solid var(--peat-line); }
.comp li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--peat-line); }
.comp li:first-child { border-top: 0; }
.comp .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; align-self: center; }
.comp .lbl { flex: 1; }
.comp .lbl .muted { display: block; font-size: 13px; }
.comp .pct { font-size: 24px; font-variant-numeric: lining-nums tabular-nums; }
.impact { margin-top: 24px; display: grid; gap: 28px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.row .muted { display: block; font-size: 12px; }
.val { font-size: 24px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.unit { font-family: var(--sans); font-size: 15px; color: var(--peat-muted); letter-spacing: 0; }
.meter { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--wool-deep); }
.meter span { display: block; height: 8px; border-radius: 999px; background: var(--peat); }
.meter .bench { background: var(--peat-line); }
.meter .moss-bg { background: var(--moss); }
.impact .small { margin-top: 6px; font-size: 12px; }
.row.total { border-top: 1px solid var(--peat-line); padding-top: 20px; }
.note { margin-top: 24px; font-size: 12px; line-height: 1.6; }

/* Cura */
@media (min-width: 768px) { .care { grid-template-columns: 1.2fr 1fr; } }
.care-list { border-top: 1px solid var(--peat-line); }
.care-list li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--peat-line); line-height: 1.6; }
.care-list .n { font-family: var(--display); font-size: 20px; color: var(--thread); font-variant-numeric: lining-nums tabular-nums; }
.care-side { display: grid; gap: 32px; align-content: start; }
.care-side > div { display: flex; gap: 16px; }
.care-side .ic { width: 20px; height: 20px; margin-top: 4px; color: var(--thread); stroke-width: 1.5; }
.care-side .ic.moss { color: var(--moss); }
.care-side p { margin-top: 8px; color: var(--peat-soft); line-height: 1.65; }

/* Autenticità */
.auth-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .auth-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.auth { background: var(--peat); color: var(--wool); border-radius: 2px; padding: 32px 24px; }
@media (min-width: 640px) { .auth { padding: 40px; } }
.auth-head { display: flex; gap: 16px; align-items: flex-start; }
.auth-title { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; }
@media (min-width: 640px) { .auth-title { font-size: 32px; } }
.auth-head p:not(.auth-title) { margin-top: 8px; max-width: 36rem; font-size: 14px; line-height: 1.65; color: rgba(242, 239, 234, 0.7); }
.auth-facts { margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; display: grid; gap: 24px; }
@media (min-width: 640px) { .auth-facts { grid-template-columns: 1fr 1fr; } }
.auth-facts dt { font-size: 13px; color: rgba(242, 239, 234, 0.6); }
.auth-facts dd { margin-top: 4px; }
.auth-facts dd.big { font-size: 24px; font-variant-numeric: lining-nums tabular-nums; }
.auth-facts .code { display: block; margin-top: 4px; font-size: 14px; letter-spacing: 0.08em; color: rgba(242, 239, 234, 0.8); }
.copy { display: flex; align-items: flex-start; gap: 8px; }
.copy .hash { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; }
.copy-btn { flex: none; border: 0; background: transparent; color: rgba(242, 239, 234, 0.6); border-radius: 999px; padding: 6px; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--wool); }
.copy-btn.done { color: var(--thread-light); }
.version { margin-top: 24px; font-size: 12px; color: rgba(242, 239, 234, 0.5); }
.auth-side { display: grid; gap: 40px; align-content: start; }
.auth-side p { margin-top: 8px; color: var(--peat-soft); line-height: 1.65; }
.with-icon { display: flex; gap: 12px; }
.with-icon .ic { width: 20px; height: 20px; margin-top: 4px; color: var(--thread); }
.report { border-top: 1px solid var(--peat-line); padding-top: 32px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; border: 1px solid var(--peat); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 500; transition: background-color 150ms, color 150ms; }
.btn-outline:hover { background: var(--peat); color: var(--wool); }

/* Footer */
footer { margin-top: 112px; border-top: 1px solid var(--peat-line); }
footer .wrap { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; padding-bottom: 40px; font-size: 13px; color: var(--peat-muted); }
@media (min-width: 768px) { footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
footer p { max-width: 36rem; line-height: 1.6; }
footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--peat); white-space: nowrap; }
footer a:hover { color: var(--thread-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
