/* Cosmano Lombardo – prototipi. Palette Search On (antracite, ciano, blu-grigio) + magenta WMF solo come accento. */
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-bold.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-extrabold.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-medium.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-semibold.woff2) format("woff2"); }

:root {
  --bg: #0c0d0f;
  --surface: #1c1c1c;
  --surface-2: #232628;
  --line: rgba(255, 255, 255, .14);
  --text: #f3f5f6;
  --muted: #98a3a9;
  --cyan: #3ac3d2;
  --slate: #41647c;
  --mag: #e11d6a;
  --paper: #f2f4f5;
  --ink: #131517;
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.display { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .9; text-transform: uppercase; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--gutter); max-width: 1500px; margin-inline: auto; }
.cy { color: var(--cyan); }

/* Rivelazione allo scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding: 120px var(--gutter) 64px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 13, 15, .94) 8%, rgba(12, 13, 15, .35) 60%, rgba(12, 13, 15, .6)), linear-gradient(0deg, var(--bg) 0, transparent 40%); }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4vw; align-items: end; max-width: 1500px; margin-inline: auto; width: 100%; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 10.5rem); margin-block: 22px 28px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .role { font: 500 clamp(1rem, 1.6vw, 1.3rem)/1.4 var(--body); max-width: 28ch; }
.hero .role b { display: block; font-weight: 600; color: var(--text); }
.hero .role span { color: var(--muted); }
.frame { position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 2 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--cyan); border-radius: 4px; z-index: -1; }
.scroll { position: absolute; left: var(--gutter); bottom: 28px; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.scroll::after { content: ""; width: 56px; height: 1px; background: var(--muted); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .frame { justify-self: start; width: min(78%, 340px); margin-top: 12px; } .scroll { display: none; } }

/* NUMERI */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.num { padding: clamp(36px, 7vw, 96px) var(--gutter); border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { display: block; font: 800 clamp(2.6rem, 6vw, 6rem)/1 var(--display); letter-spacing: -.04em; }
.num small { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 18ch; }
.num.hi b { color: var(--cyan); }
@media (max-width: 860px) { .nums { grid-template-columns: 1fr 1fr; } .num:nth-child(2) { border-right: 0; } .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* SEZIONI */
section { position: relative; }
.pad { padding-block: clamp(80px, 14vw, 190px); }
.sec-title { font-size: clamp(2.4rem, 6.5vw, 6.5rem); margin-top: 20px; }

/* LINEA DEL TEMPO (sticky) */
.tl { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; }
.tl-year { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.tl-year .big { font: 800 clamp(5rem, 18vw, 17rem)/.85 var(--display); letter-spacing: -.06em; color: var(--cyan); transition: opacity .3s; }
.tl-list { padding-block: 30vh; }
.step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 44px); opacity: .3; transition: opacity .4s, border-color .4s; }
.step.on { opacity: 1; border-color: var(--cyan); }
.step h3 { font: 800 clamp(1.6rem, 3vw, 2.8rem)/1.05 var(--display); letter-spacing: -.02em; margin-block: 10px 12px; }
.step p { color: var(--muted); max-width: 36ch; }
@media (max-width: 860px) { .tl { grid-template-columns: 1fr; } .tl-year { height: auto; position: static; padding-bottom: 10px; } .step { min-height: auto; padding-block: 30px; opacity: 1; } .tl-list { padding-block: 10px; } }

/* FASCIA FOTO */
.bleed { position: relative; height: min(90svh, 820px); overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bleed::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 13, 15, .85), transparent 55%); }
.bleed p { padding: var(--gutter); font: 800 clamp(1.8rem, 5vw, 4.4rem)/.98 var(--display); letter-spacing: -.03em; text-transform: uppercase; max-width: 16ch; }

/* MAPPA DEI MONDI */
.map { position: relative; margin-top: 56px; }
.map-stage { position: relative; aspect-ratio: 16 / 10; max-height: 82svh; margin-inline: auto; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-lines line { stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.map-lines line.on { stroke: var(--cyan); }
.map-core { position: absolute; left: 50%; top: 50%; width: clamp(150px, 20vw, 270px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; background: var(--cyan); box-shadow: 0 0 0 10px rgba(58, 195, 210, .14), 0 0 0 28px rgba(58, 195, 210, .06); }
.map-core img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 14px 20px; border: 1px solid var(--line); border-radius: 99px; background: rgba(28, 28, 28, .88); backdrop-filter: blur(8px); font: 700 clamp(13px, 1.3vw, 17px)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; transition: .25s; }
.node::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); margin-right: 10px; transition: .25s; }
.node:hover, .node.on { border-color: var(--cyan); background: var(--cyan); color: #06292d; }
.node:hover::before, .node.on::before { background: #06292d; }
.node small { display: none; }
.map-panel { margin-top: 28px; min-height: 120px; display: grid; grid-template-columns: auto 1fr; gap: 6vw; padding: 28px 0; border-top: 1px solid var(--line); }
.map-panel h3 { font: 800 clamp(1.5rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -.03em; }
.map-panel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; align-content: start; }
.map-panel li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--text); }
.map-panel[hidden] { display: none; }
.map--full .map-stage { aspect-ratio: auto; height: calc(100svh - 430px); min-height: 380px; max-height: none; }
@media (max-width: 860px) {
  .map-stage { aspect-ratio: auto; max-height: none; display: grid; gap: 10px; }
  .map-lines { display: none; }
  .map-core { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 28px; }
  .node { position: static; transform: none; border-radius: 14px; padding: 18px; text-align: left; white-space: normal; }
  .map--full .map-stage { height: auto; }
}

/* VOCE */
.voice { display: grid; grid-template-columns: 1fr 1.3fr; min-height: 90svh; }
.voice-photo { position: relative; background: var(--cyan); overflow: hidden; }
.voice-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.2); }
.voice-text { background: var(--surface); display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 7vw, 110px); }
.voice-text blockquote { font: 800 clamp(1.9rem, 4.2vw, 4rem)/1.02 var(--display); letter-spacing: -.03em; margin-block: 28px; }
.voice-text cite { font-style: normal; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .voice { grid-template-columns: 1fr; } .voice-photo { height: 60svh; } }

/* STAMPA */
.press { margin-top: 56px; border-top: 1px solid var(--line); }
.press a { display: grid; grid-template-columns: 90px 220px 1fr 40px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); transition: .25s; }
.press a:hover { padding-left: 16px; color: var(--cyan); }
.press .y { font: 800 14px/1 var(--display); color: var(--muted); }
.press .t { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.press .h { font: 700 clamp(1.1rem, 2vw, 1.7rem)/1.15 var(--display); letter-spacing: -.015em; }
.press .ar { text-align: right; }
@media (max-width: 760px) { .press a { grid-template-columns: 1fr; gap: 8px; } .press .ar { display: none; } }

/* CONTATTI / FOOTER */
.cta { background: var(--cyan); color: #06292d; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 7rem); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 99px; background: #06292d; color: var(--cyan); font: 700 15px/1 var(--display); transition: .25s; }
.btn:hover { transform: translateY(-3px); }
footer { padding: 28px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer.on-cta { background: var(--bg); }

/* ---------- PROTOTIPO B: viaggio a capitoli ---------- */
.chap { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 110px var(--gutter) 70px; }
.chap > img.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chap.dim::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 13, 15, .88), rgba(12, 13, 15, .2)); }
.chap .giant { font: 800 clamp(7rem, 32vw, 32rem)/.8 var(--display); letter-spacing: -.07em; }
.chap .cap { max-width: 26ch; margin-top: 28px; font: 700 clamp(1.2rem, 2.2vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; }
.chap .meta { margin-top: 16px; color: var(--muted); }
.chap .giant.name { font-size: clamp(3rem, 8.4vw, 9rem); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; max-width: 60%; }
.chap.c-cyan { background: var(--cyan); color: #06292d; }
.chap.c-cyan .meta, .chap.c-cyan .kicker { color: #0b4750; }
.chap.c-slate { background: var(--slate); }
.chap.c-slate .kicker { color: #bfe9ee; }
.chap.c-slate .meta { color: #cfdce5; }
.chap .side { position: absolute; right: var(--gutter); bottom: 0; height: 84%; width: auto; aspect-ratio: 2 / 3; }
.chap .side img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px 4px 0 0; }
.chap .side.duo { background: var(--cyan); }
.chap .side.duo img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); }
.dots { position: fixed; z-index: 40; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.dots a { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); transition: .25s; }
.dots a.on { background: var(--cyan); border-color: var(--cyan); transform: scale(1.5); }
@media (max-width: 860px) { .chap .side { display: none; } .dots { display: none; } }

/* IN DIALOGO CON (interviste condotte da lui sul canale WMF) */
.dial { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dc { position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border-radius: 6px; overflow: hidden; isolation: isolate; background: var(--surface-2); transition: transform .3s; }
.dc:hover { transform: translateY(-6px); }
.dc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 30% 20%, var(--g, var(--slate)), transparent 70%), linear-gradient(0deg, rgba(12, 13, 15, .9), transparent 70%); }
.dc:nth-child(1) { --g: var(--cyan); }
.dc:nth-child(2) { --g: var(--slate); }
.dc:nth-child(3) { --g: var(--mag); }
.dc:nth-child(4) { --g: #2a8a96; }
.dc .play { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); display: grid; place-items: center; font-size: 13px; padding-left: 3px; transition: .25s; }
.dc:hover .play { background: var(--cyan); border-color: var(--cyan); color: #06292d; }
.dc b { font: 800 clamp(1.4rem, 2.2vw, 2rem)/1 var(--display); letter-spacing: -.03em; }
.dc span { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .72); }
@media (max-width: 1000px) { .dial { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dial { grid-template-columns: 1fr; } .dc { aspect-ratio: 16 / 10; } }
