/* ============ Colori e temi ============ */
:root {
  --bg: #FFF6EA;
  --bg-2: #FFFFFF;
  --ink: #1A1423;
  --ink-soft: #5D5468;
  --line: rgba(26, 20, 35, 0.12);
  --shadow: 0 2px 0 rgba(26, 20, 35, 0.9);

  --blu: #2F54EB;
  --blu-try1: #034DC3;
  --rosa: #FF4D9D;
  --giallo: #FFC93C;
  --verde: #17C98E;
  --arancio: #FF7A2F;
  --viola: #8B5CF6;

  --on-color: #1A1423;
  --todo-bg: #FFF1A8;
  --todo-ink: #6B4E00;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: 16px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140F1C;
    --bg-2: #1F1829;
    --ink: #F8F1E6;
    --ink-soft: #B9AFC6;
    --line: rgba(248, 241, 230, 0.14);
    --shadow: 0 2px 0 rgba(0, 0, 0, 0.9);
    --blu: #5B7BFF;
    --rosa: #FF6AAE;
    --giallo: #FFD25C;
    --verde: #2EDCA0;
    --arancio: #FF8C4A;
    --viola: #A07BFF;
    --todo-bg: #4A3C00;
    --todo-ink: #FFE58A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #140F1C;
  --bg-2: #1F1829;
  --ink: #F8F1E6;
  --ink-soft: #B9AFC6;
  --line: rgba(248, 241, 230, 0.14);
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.9);
  --blu: #5B7BFF;
  --rosa: #FF6AAE;
  --giallo: #FFD25C;
  --verde: #2EDCA0;
  --arancio: #FF8C4A;
  --viola: #A07BFF;
  --todo-bg: #4A3C00;
  --todo-ink: #FFE58A;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--giallo); color: #1A1423; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-radius: 6px;
  padding: 0 .3em;
  outline: 1px dashed currentColor;
  outline-offset: 1px;
}

:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; border-radius: 8px; }

/* ============ Barra in alto ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.logo-badge {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: #FFFFFF; color: #1A1423;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-6deg); transition: transform .3s;
}
.logo-badge svg { width: 86%; height: 86%; display: block; }
.logo:hover .logo-badge { transform: rotate(6deg) scale(1.05); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: var(--line); }
.tools { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .tools { margin-left: 12px; }
}
.pill-btn {
  font: 700 13px var(--font-body); letter-spacing: .04em;
  height: 38px; min-width: 38px; padding: 0 12px;
  border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--ink);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: transform .15s, background .2s;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn .off { opacity: .4; }
.pill-btn svg { width: 18px; height: 18px; }

/* ============ Hero ============ */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 88px 0 110px; } }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0;
  animation: float 16s ease-in-out infinite;
}
.blob.b1 { width: 380px; height: 380px; background: var(--rosa); top: -80px; right: -60px; }
.blob.b2 { width: 300px; height: 300px; background: var(--giallo); bottom: -60px; left: -80px; animation-delay: -5s; }
.blob.b3 { width: 260px; height: 260px; background: var(--blu); top: 40%; right: 30%; opacity: .35; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(.95); }
}

.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }

.hello {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  background: var(--bg-2); border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 16px 6px 8px; box-shadow: 3px 3px 0 var(--ink);
}
.hello .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--verde);
  display: grid; place-items: center;
}
.hello .dot::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1A1423;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,20,35,.5); } 100% { box-shadow: 0 0 0 10px rgba(26,20,35,0); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 104px);
  line-height: .98; letter-spacing: -0.035em; font-weight: 800;
  margin: 26px 0 22px;
}
.hero h1 .line { display: block; }
.rotator {
  display: inline-block; position: relative;
  padding: 0 .18em; margin-left: -.06em;
  border-radius: .18em;
  color: #1A1423;
  background: var(--giallo);
  transform: rotate(-2deg);
  transition: background-color .4s;
  white-space: nowrap;
}
.rotator .word { display: inline-block; animation: wordIn .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes wordIn { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 36ch; margin: 0 0 32px; }
.hero .lead strong { color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px var(--font-body);
  text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 4px 4px 0 var(--rosa); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--rosa); }
.btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Avatar con testo che gira */
.avatar-zone { position: relative; justify-self: center; width: min(360px, 82vw); aspect-ratio: 1; }
.avatar {
  position: absolute; inset: 16%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--rosa), var(--arancio), var(--giallo), var(--verde), var(--blu), var(--viola), var(--rosa));
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  display: grid; place-items: center; overflow: hidden;
}
.avatar span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 14vw, 104px); color: #1A1423; letter-spacing: -0.04em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.ring text { font: 700 13.5px var(--font-body); letter-spacing: .25em; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; z-index: 2;
  font: 800 14px var(--font-display);
  padding: 8px 14px; border-radius: 12px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  color: #1A1423; white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.sticker.s1 { background: var(--verde); top: 6%; left: -2%; transform: rotate(-8deg); }
.sticker.s2 { background: var(--giallo); bottom: 10%; right: -4%; transform: rotate(7deg); animation-delay: -2s; }
.sticker.s3 { background: var(--blu); color: #fff; bottom: 2%; left: 8%; transform: rotate(-4deg); animation-delay: -3.5s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ============ Nastro competenze ============ */
.marquee {
  background: var(--ink); color: var(--bg);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.5deg); margin: 0 -20px;
  overflow: hidden; padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 36px; width: max-content;
  animation: slide 38s linear infinite;
  font: 800 clamp(20px, 3vw, 30px) var(--font-display);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; }
.marquee-track i { font-style: normal; color: var(--giallo); }
.marquee-track span:nth-child(3n+2) i { color: var(--rosa); }
.marquee-track span:nth-child(3n) i { color: var(--verde); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ Sezioni ============ */
section { padding: 88px 0; }
@media (min-width: 900px) { section { padding: 120px 0; } }
.eyebrow {
  display: inline-block; font: 700 13px var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px;
  background: var(--c, var(--rosa)); color: #1A1423;
  border: 2px solid var(--ink);
  transform: rotate(-2deg);
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 40px; max-width: 16ch;
}

/* Chi sono */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.about-text p { font-size: clamp(18px, 2vw, 21px); margin: 0 0 20px; }
.about-text p:first-child { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.45; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
@media (min-width: 900px) { .stats { grid-template-columns: 1fr; } }
.stat {
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 18px; background: var(--bg-2);
  box-shadow: 4px 4px 0 var(--c);
  display: flex; flex-direction: column; gap: 4px;
}
@media (min-width: 900px) { .stat { flex-direction: row; align-items: center; gap: 18px; padding: 20px 24px; } }
.stat b { font: 800 clamp(40px, 6vw, 56px) / 1 var(--font-display); color: var(--c); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.stat span { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
@media (min-width: 900px) { .stat span { font-size: 16px; } }

/* Progetti */
.projects { display: grid; gap: 36px; }
.project {
  --pc: var(--blu);
  position: relative;
  border: 3px solid var(--ink); border-radius: 30px;
  background: var(--bg-2);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  display: grid;
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  transform-style: preserve-3d;
}
@media (min-width: 900px) { .project { grid-template-columns: 1fr 1.1fr; } .project:nth-child(even) .project-visual { order: 2; } }
.project.c-blu { --pc: var(--blu-try1); }
.project.c-verde { --pc: var(--verde); }
.project.c-lime { --pc: #CDF765; }

.project-visual {
  position: relative; min-height: 300px;
  background: var(--pc);
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
@media (min-width: 900px) { .project-visual { border-bottom: 0; border-right: 3px solid var(--ink); min-height: 520px; } .project:nth-child(even) .project-visual { border-right: 0; border-left: 3px solid var(--ink); } }

.project-body { padding: 28px 22px 32px; }
@media (min-width: 900px) { .project-body { padding: 44px 44px 44px; } }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font: 700 13px var(--font-body);
  padding: 5px 12px; border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--bg); color: var(--ink);
}
.chip.solid { background: var(--pc); color: #fff; }
.c-verde .chip.solid, .c-lime .chip.solid { color: #1A1423; }
.project h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; margin: 0;
}
.project .subtitle { font: 600 18px var(--font-display); color: var(--ink-soft); margin: 6px 0 16px; }
.project .role { font-weight: 700; font-size: 15px; margin: 0 0 14px; }
.project .desc { margin: 0 0 22px; color: var(--ink-soft); }
.did-title { font: 800 14px var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.did { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.did li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.did li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--pc); border: 2px solid var(--ink);
  transform: rotate(8deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tags span { font: 600 13px var(--font-body); padding: 5px 11px; border-radius: 8px; background: var(--line); }

/* Visual TRY1 */
.try1-visual { width: 100%; height: 100%; position: absolute; inset: 0; }
.try1-visual .photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.try1-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,77,195,0) 45%, rgba(3,77,195,.85) 100%);
}
.try1-visual .mark {
  position: absolute; left: 22px; bottom: 22px; z-index: 1;
  width: 72px; height: 72px; border-radius: 18px; background: #fff;
  border: 3px solid #1A1423; box-shadow: 4px 4px 0 #1A1423;
  display: grid; place-items: center; transform: rotate(-6deg);
}
.try1-visual .mark img { width: 44px; height: 44px; }
.try1-visual .tagline {
  position: absolute; right: 22px; bottom: 30px; z-index: 1;
  font: 800 clamp(20px, 2.6vw, 28px) / 1.05 var(--font-display); color: #fff; text-align: right;
  max-width: 10ch; text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* Visual Revrs: mini schermata dell app (palette carta, lime, clay) */
.revrs-visual {
  position: relative; place-self: stretch; width: 100%; min-height: inherit;
  background: radial-gradient(circle at 70% 15%, #E8F5B8 0%, #CDF765 55%, #B9E640 100%);
  display: grid; place-items: center; padding: 28px;
}
.revrs-card {
  width: min(340px, 100%);
  background: #FBFBF4; color: #14221F;
  border-radius: 30px; overflow: hidden;
  border: 3px solid #14221F;
  box-shadow: 8px 8px 0 #14221F;
  font-family: var(--font-body);
  transform: rotate(-2deg);
}
.revrs-head { background: #14221F; color: #FBFBF4; padding: 18px 20px 20px; }
.revrs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.revrs-top b { font: 800 20px var(--font-display); letter-spacing: -.01em; }
.revrs-top b i { font-style: normal; color: #CDF765; }
.revrs-top small { font-size: 10px; color: rgba(251,251,244,.55); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.revrs-score { display: flex; align-items: center; gap: 16px; }
.revrs-ring { width: 96px; height: 96px; flex: none; }
.revrs-ring .track { stroke: rgba(251,251,244,.12); }
.revrs-ring .val { stroke: #CDF765; stroke-linecap: round; stroke-dasharray: 0 302; transition: stroke-dasharray 1.6s cubic-bezier(.2,.8,.3,1) .2s; }
.revealed .revrs-ring .val { stroke-dasharray: 260 302; }
.revrs-ring text { fill: #FBFBF4; font: 800 30px var(--font-display); }
.revrs-age small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #CDF765; font-weight: 700; }
.revrs-age b { font: 800 32px/1.1 var(--font-display); }
.revrs-age span { display: block; font-size: 12px; color: rgba(251,251,244,.6); }
.revrs-bodywrap { padding: 16px; }
.revrs-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.revrs-sys {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(20,34,31,.1);
  border-radius: 14px; padding: 8px 10px; font-size: 12px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(20,34,31,.05);
}
.revrs-sys i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); flex: none; }
.revrs-sys em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--sc); }
.revrs-insight {
  margin-top: 10px; font-size: 12px; line-height: 1.45;
  background: #F3DCD1; color: #8A3A20; font-weight: 600;
  border-radius: 14px; padding: 10px 12px;
}

/* Percorso (timeline) */
.journey-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .journey-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.col-title { font: 800 26px var(--font-display); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.col-title::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--c); border: 2px solid var(--ink); transform: rotate(10deg); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px dashed var(--line); display: grid; gap: 28px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -39.5px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--ink);
}
.timeline .when { font: 700 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.timeline h4 { font: 800 22px/1.2 var(--font-display); margin: 4px 0 2px; }
.timeline .where { font-weight: 600; margin: 0 0 8px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.lang {
  border: 2px solid var(--ink); border-radius: 14px; padding: 10px 16px; background: var(--bg-2);
  font-weight: 700;
}
.lang small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; }

/* Competenze */
.skills-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
.skill-box {
  border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 24px; background: var(--c);
  color: #1A1423;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s;
}
.skill-box:nth-child(odd) { transform: rotate(-.8deg); }
.skill-box:nth-child(even) { transform: rotate(.8deg); }
.skill-box:hover { transform: rotate(0) translateY(-4px); }
.skill-box h3 { font: 800 24px var(--font-display); margin: 0 0 16px; }
.skill-box.c-blu { color: #fff; }
.skill-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-box li {
  font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,.85); color: #1A1423;
  border: 2px solid #1A1423; border-radius: 999px; padding: 6px 14px;
}

/* Contatti */
.contact {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
  border-radius: 36px; margin: 0 var(--gutter);
  padding: 72px 24px; text-align: center;
}
@media (min-width: 900px) { .contact { padding: 110px 48px; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; } }
.contact .blob { opacity: .5; }
.contact > :not(.blob) { position: relative; z-index: 1; }
.contact h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 11vw, 128px); line-height: .95; letter-spacing: -0.04em; margin: 0 0 18px;
}
.contact h2 .hl { color: var(--rosa); font-style: italic; }
.contact p { font-size: clamp(18px, 2.2vw, 21px); opacity: .8; max-width: 46ch; margin: 0 auto 36px; white-space: pre-line; }
.contact .cta-row { justify-content: center; }
.contact .btn { border-color: var(--bg); }
.contact .btn-primary { background: var(--giallo); color: #1A1423; box-shadow: 4px 4px 0 var(--rosa); }
.contact .btn-ghost { background: transparent; color: var(--bg); box-shadow: 4px 4px 0 var(--verde); }
.copied { display: block; margin-top: 18px; font-weight: 700; color: var(--verde); min-height: 1.5em; }

footer { padding: 40px 0 48px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ============ Animazioni allo scroll ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.project.revealed { transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .7s ease; }

/* Punti elenco nelle esperienze */
.timeline .points { margin: 10px 0 0; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 4px; }
.timeline .points li::before { content: none; }
.timeline .points li::marker { color: var(--c); }

/* Attivita */
.extras { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.extras li {
  border: 2px solid var(--ink); border-radius: 14px; padding: 10px 16px;
  background: var(--bg-2); font-weight: 600; font-size: 15px; line-height: 1.4;
}

/* Link Privacy e finestra */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
dialog.privacy {
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  border: 3px solid var(--ink); border-radius: 26px; padding: 28px 24px;
  background: var(--bg-2); color: var(--ink); box-shadow: 8px 8px 0 var(--rosa);
}
dialog.privacy::backdrop { background: rgba(20, 15, 28, .55); backdrop-filter: blur(3px); }
dialog.privacy h2 { font: 800 34px var(--font-display); margin: 0 0 14px; }
dialog.privacy p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 12px; }
dialog.privacy .close { float: right; }
