/* lamberti.info — stile anni '90, tecnologie di oggi */
:root {
  --teal: #008080;
  --gray: #c0c0c0;
  --light: #ffffff;
  --mid: #dfdfdf;
  --shade: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --blue: #1084d0;
  --ui: 'Tahoma', 'Verdana', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--teal); }
body {
  margin: 0; min-height: 100vh; font-family: var(--ui); font-size: 14px; color: #000;
  background-color: var(--teal);
  /* trama a puntini, come la carta da parati di Windows */
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 6px 6px;
  padding-bottom: 48px;
}
a { color: #0000ee; }
a:visited { color: #551a8b; }

/* ---------- scrivania ---------- */
.desktop {
  max-width: 1080px; margin: 0 auto; padding: 24px 16px 20px;
  display: grid; gap: 22px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start;
}
.desktop .main { grid-row: span 3; }
.badges { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .desktop { grid-template-columns: minmax(0, 1fr); padding: 14px 12px; }
  .desktop .main { grid-row: auto; }
}

/* ---------- finestre ---------- */
.win {
  min-width: 0; background: var(--gray); padding: 3px; position: relative;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--mid), inset -2px -2px var(--shade), inset 2px 2px var(--light), 6px 6px 0 rgba(0, 0, 0, .25);
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  animation: open .35s steps(6) backwards; animation-delay: calc(var(--i) * .12s);
}
.win.front { z-index: 5; }
.win.dragging { opacity: .92; }
@keyframes open { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
.bar {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 3px 0 5px;
  background: linear-gradient(90deg, var(--navy), var(--blue)); color: #fff; user-select: none;
}
.win:not(.front) .bar { background: linear-gradient(90deg, #7b7b7b, #b5b5b5); }
.bar h1, .bar h2 { flex: 1; margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .ico { font-size: 13px; }
@media (min-width: 821px) { .bar { cursor: move; } }
.btns { display: flex; gap: 2px; }
.btns i {
  width: 18px; height: 16px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #000; line-height: 1;
  background: var(--gray); box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shade), inset 2px 2px var(--mid);
}
.btns i:last-child { margin-left: 2px; }
.menu { padding: 3px 6px; font-size: 13px; word-spacing: 8px; }
.body { padding: 12px; }
.body.page {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ctext x='4' y='16' font-size='10' fill='%23f2f2ff'%3E%E2%98%85%3C/text%3E%3Ctext x='24' y='36' font-size='8' fill='%23fff0f6'%3E%E2%98%85%3C/text%3E%3C/svg%3E");
  margin: 0 3px 3px; text-align: center; font-family: 'Times New Roman', Times, serif; font-size: 17px;
  box-shadow: inset -1px -1px var(--light), inset 1px 1px var(--shade), inset -2px -2px var(--mid), inset 2px 2px var(--dark);
  padding: 16px 18px 22px;
}
.center { text-align: center; }

/* ---------- elementi anni '90 ---------- */
.marquee { max-width: 100%; overflow: hidden; white-space: nowrap; background: var(--navy); color: #ffff00; font-family: 'VT323', monospace; font-size: 22px; padding: 2px 0; border: 2px inset #c0c0c0; }
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

.wordart {
  margin: 26px 0 4px; font: italic 900 clamp(40px, 7.5vw, 74px)/1 'Times New Roman', Times, serif; letter-spacing: -1px;
  transform: perspective(500px) rotateX(14deg) skewX(-8deg);
}
.wordart span {
  background: linear-gradient(180deg, #ff2fa0 0%, #ffcc00 35%, #00e070 60%, #00a0ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #3a0066) drop-shadow(3px 3px 0 #000);
  display: inline-block; animation: wave 3s ease-in-out infinite;
}
.wordart span:last-child { animation-delay: .4s; }
@keyframes wave { 50% { transform: translateY(-5px); } }
.sub { margin: 10px 0 2px; font: italic 22px 'Times New Roman', serif; color: #800080; }
.tagline { margin: 4px 0 18px; font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', cursive; font-size: 19px; color: #004d00; }
.blink { animation: blink 1s steps(1) infinite; color: #ff0080; font-weight: 700; }
@keyframes blink { 50% { visibility: hidden; } }

.construction {
  display: inline-flex; gap: 10px; align-items: center; padding: 6px 12px; font: 700 15px 'Comic Sans MS', 'Comic Neue', cursive; letter-spacing: 1px;
  background: #ffd800; border: 6px solid transparent;
  border-image: repeating-linear-gradient(45deg, #000 0 10px, #ffd800 10px 20px) 6;
}
.construction span { line-height: 1.25; }
.construction img { width: 84px; height: auto; image-rendering: pixelated; }

hr.rainbow { border: 0; height: 5px; margin: 22px 0; background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, violet); }

.counter { font-size: 16px; }
.odo { display: flex; justify-content: center; gap: 2px; margin: 8px 0 4px; }
.odo b {
  display: inline-block; width: 24px; padding: 2px 0; font: 30px/1 'VT323', monospace; color: #39ff14; background: #000;
  border: 2px inset #808080; text-shadow: 0 0 6px #39ff14;
}
.counter small { display: block; color: #666; font-style: italic; }

/* ---------- icone contatti ---------- */
.icons { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; background: #fff;
  box-shadow: inset -1px -1px var(--light), inset 1px 1px var(--shade), inset -2px -2px var(--mid), inset 2px 2px var(--dark); }
.icons a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; color: #000; text-decoration: none; font-size: 13px; text-align: center; border: 1px dotted transparent; }
.icons .big { font-size: 34px; line-height: 1; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .3)); }
.icons a:hover, .icons a:focus-visible { background: var(--navy); color: #fff; border-color: #ffff00; outline: none; }
.icons a.off { color: #777; cursor: not-allowed; }

/* ---------- link all'arcade ---------- */
.arcade {
  position: relative; display: block; padding: 18px 12px 16px; background: #000; color: #fff; text-decoration: none;
  font-family: 'Silkscreen', monospace; border: 3px solid #3cbcfc; box-shadow: 0 0 0 3px #000, 0 0 18px #3cbcfc inset;
}
.arcade:visited { color: #fff; }
.arcade b { display: block; font-size: 22px; letter-spacing: 1px; color: #fcbc3c; text-shadow: 3px 3px 0 #d82800; }
.arcade small { display: block; margin: 8px 0; font-family: var(--ui); font-size: 13px; color: #9cf; }
.arcade .press { font-size: 13px; color: #fff; animation: blink 1s steps(1) infinite; }
.arcade:hover { border-color: #fc74b4; box-shadow: 0 0 0 3px #000, 0 0 24px #fc74b4 inset; }
.new {
  position: absolute; top: -12px; right: -10px; padding: 3px 7px; font: 700 13px var(--ui); color: #fff; background: #ff0000;
  transform: rotate(12deg); border: 2px solid #ffff00; animation: blink .8s steps(1) infinite;
}

/* ---------- lettore ---------- */
.lcd { display: flex; justify-content: space-between; padding: 6px 8px; background: #000; color: #39ff14; font: 22px 'VT323', monospace; border: 2px inset #808080; }
.viz { display: flex; align-items: flex-end; gap: 3px; height: 46px; padding: 4px; margin-top: 6px; background: #000; border: 2px inset #808080; }
.viz i { flex: 1; height: 8%; background: linear-gradient(to top, #39ff14, #ffff00 70%, #ff3030); transition: height .08s; }
.controls { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.hint { font-size: 12px; color: #444; font-style: italic; }
.b95 {
  min-width: 34px; height: 28px; padding: 0 10px; font: 700 13px var(--ui); color: #000; background: var(--gray); border: 0; cursor: pointer;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shade), inset 2px 2px var(--mid);
}
.b95:active, .b95[aria-pressed="true"], .b95[aria-expanded="true"] { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--light), inset 2px 2px var(--shade), inset -2px -2px var(--mid); }
.b95:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

/* ---------- bottoni 88x31 ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 0; }
.b88 {
  width: 88px; height: 31px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1;
  font-family: 'Silkscreen', monospace; font-size: 9px; text-decoration: none; border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.b88 b { font-weight: 400; } .b88 i { font-style: normal; font-size: 11px; }
.ns { background: linear-gradient(#003366, #0066cc); color: #fff; } .ns i { color: #ffcc00; }
.note { background: #fffde0; color: #000; }
.res { background: #000; color: #39ff14; }
.html { background: linear-gradient(#ff9900, #ff6600); color: #fff; }
.gdpr { background: #fff; color: #c00; } .gdpr i { text-decoration: line-through; }
.ring, .ring:visited { background: linear-gradient(90deg, #ff00cc, #3300ff); color: #fff; }
.ring:hover { filter: brightness(1.25); }

/* ---------- barra delle applicazioni ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 38px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 4px;
  background: var(--gray); box-shadow: inset 0 1px var(--mid), inset 0 2px var(--light);
}
.start { display: flex; align-items: center; gap: 5px; height: 30px; }
.flag {
  width: 18px; height: 16px; display: inline-block; transform: skewY(-6deg);
  background: conic-gradient(from 90deg at 50% 50%, #00a000 0 25%, #ffd800 0 50%, #0050ff 0 75%, #ff2020 0);
}
.task {
  flex: 0 1 200px; height: 30px; display: flex; align-items: center; padding: 0 8px; font-size: 13px; font-weight: 700; overflow: hidden; white-space: nowrap;
  box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--light), inset 2px 2px var(--shade), inset -2px -2px var(--mid);
  background-image: radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px); background-size: 2px 2px;
}
.tray { margin-left: auto; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px;
  box-shadow: inset 1px 1px var(--shade), inset -1px -1px var(--light); }
.startmenu {
  position: absolute; left: 4px; bottom: 38px; display: flex; min-width: 230px; background: var(--gray);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--mid), inset -2px -2px var(--shade), inset 2px 2px var(--light), 4px 4px 0 rgba(0, 0, 0, .25);
  padding: 3px;
}
.startmenu[hidden] { display: none; }
.startmenu .side {
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; color: #c0c0c0; font: 700 20px var(--ui);
  background: linear-gradient(#000080, #1084d0);
}
.startmenu .side b { color: #fff; }
.startmenu ul { list-style: none; margin: 0; padding: 2px; flex: 1; }
.startmenu a { display: block; padding: 9px 12px; color: #000; text-decoration: none; font-size: 14px; }
.startmenu a:hover, .startmenu a:focus-visible { background: var(--navy); color: #fff; outline: none; }
.startmenu .sep { height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--shade), inset 0 -1px var(--light); }

.shutdown { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; text-align: center; background: #000; color: #ff8a00; font: 30px 'VT323', monospace; cursor: pointer; }
.shutdown[hidden] { display: none; }
.shutdown small { color: #666; font-size: 20px; }

/* scia di stelline del cursore */
.spark { position: fixed; pointer-events: none; z-index: 60; font-size: 14px; animation: spark .8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--sx), 24px) scale(.2) rotate(180deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .marquee span { padding-left: 0; }
}

/* ---------- GIF e cringe ---------- */
img { image-rendering: pixelated; }
.gifrow { margin: 14px 0 0; }
.gifrow img { max-width: 100%; height: auto; }
.titlerow { display: flex; align-items: center; justify-content: center; gap: 4px; }
.titlerow .wordart { margin: 14px 0 4px; }
.dancer { width: 56px; height: auto; flex: none; }
.flip { transform: scaleX(-1); }
.inline { vertical-align: middle; width: 36px; height: auto; }
.fire { display: block; width: 100%; max-width: 400px; height: 14px; margin: 14px auto; }
.rainbowtext {
  background: linear-gradient(90deg, #f00, #f80, #dd0, #0b0, #08f, #a0f, #f00); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; animation: rb 3s linear infinite;
}
@keyframes rb { to { background-position: 200% 0; } }
.icons a { position: relative; }
.icons img { image-rendering: pixelated; }
.icons a > img:first-child { width: 48px; height: auto; }
.clicca { width: 92px; height: auto; margin-top: 2px; }
.badgegif { position: absolute; top: -6px; right: -4px; width: 46px; height: auto; transform: rotate(10deg); }
.guest p { margin: 0 0 10px; font-family: 'Comic Sans MS', 'Comic Neue', cursive; font-size: 15px; }
.guest .row { display: flex; flex-wrap: wrap; gap: 8px; }
.stars { color: #ffb400; letter-spacing: 2px; animation: blink 1.2s steps(1) infinite; }
.ie { background: linear-gradient(#e8f1ff, #9cc2f5); color: #003399; } .ie i { font-size: 10px; }
.footnote { flex-basis: 100%; margin: 8px 0 0; text-align: center; color: #e8ffff; font: italic 12px 'Times New Roman', serif; text-shadow: 1px 1px 0 #004040; }

/* la barra delle applicazioni resta solo su desktop */
@media (max-width: 820px) {
  .taskbar, .startmenu { display: none !important; }
  body { padding-bottom: 12px; }
  .dancer { width: 40px; }
  .construction { max-width: 100%; gap: 6px; padding: 6px 8px; font-size: 13px; }
  .construction img { width: 52px; }
}
