/* =============================================================
   Ctrl Alt Hack - site.css
   Stile unico del sito: Windows XP + Ubuntu, retro anni '90.
   Nessuna risorsa esterna, font di sistema. Zero JavaScript.
   ============================================================= */

:root {
	--orange:   #E95420;   /* accento */
	--orange-dk:#C7411B;
	--aubergine:#2C001E;   /* scuro base */
	--term:     #300A24;   /* terminale */
	--purple:   #5E2750;   /* viola Ubuntu */
	--purple-lt:#7A3A6E;
	--paper:    #F6F1E7;   /* corpo finestra */
	--tan:      #DED3BE;   /* bordi/neutro */
	--tan-dk:   #B9A98C;
	--ink:      #2A2320;   /* testo */
	--ui:   "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "DejaVu Sans Mono", Consolas, "Liberation Mono", monospace;
	--serif:"Times New Roman", Times, serif;
}
* { box-sizing: border-box; }
body {
	margin: 0; padding: 26px 14px 56px; min-height: 100vh;
	font-family: var(--serif); color: var(--ink); font-size: 16px;
	background:
		radial-gradient(1100px 650px at 50% -12%, rgba(233,84,32,0.45), transparent 60%),
		linear-gradient(160deg, #3a0f33, var(--aubergine) 60%, #1b0012);
	background-attachment: fixed;
}
a { color: var(--orange-dk); } a:visited { color: var(--purple); } a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; }

/* ===== Finestra ===== */
.window {
	width: 860px; max-width: 100%; margin: 0 auto; background: var(--paper);
	border: 3px solid var(--purple); border-top: 0; border-radius: 9px 9px 2px 2px;
	box-shadow: 0 16px 44px rgba(0,0,0,0.5);
}
.titlebar {
	background: linear-gradient(180deg, var(--purple-lt), var(--purple) 55%, #491d42);
	color: #fff; font-family: var(--ui); font-weight: 700; font-size: 14px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.45); padding: 5px 7px;
	border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 8px;
}
.titlebar .tico { width: 18px; height: 18px; border-radius: 4px; background: var(--orange);
	flex: 0 0 auto; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.titlebar .ttxt { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.winbtns { display: flex; gap: 4px; flex: 0 0 auto; }
.winbtns b { width: 22px; height: 20px; border-radius: 4px; font-family: var(--ui);
	font-size: 12px; font-weight: 700; color: #fff; display: flex; align-items: center;
	justify-content: center; border: 1px solid rgba(255,255,255,0.6); }
.winbtns .b-min, .winbtns .b-max { background: rgba(255,255,255,0.18); }
.winbtns .b-cls { background: var(--orange); border-color: rgba(255,255,255,0.75); }

.inner { padding: 14px 18px 20px; }

/* ===== Intestazione sito ===== */
.brand { text-align: center; margin: 2px 0 6px; }
.brand h1 { font-family: var(--ui); font-weight: 700; font-size: 40px; letter-spacing: 1px;
	margin: 0; color: var(--aubergine); }
.brand h1 a { color: var(--aubergine); text-decoration: none; }
.brand h1 .orange { color: var(--orange); }
.brand .sub { font-style: italic; font-size: 15px; color: #6a5d50; margin: 2px 0 0; }
.inner.sub .brand h1 { font-size: 32px; }

/* ===== Nav: terminale Ubuntu ===== */
.termbar { background: var(--term); border-radius: 7px; margin: 10px 0 0; }
.termbar .bar { background: linear-gradient(var(--purple-lt), var(--purple)); color: #fff;
	font-family: var(--ui); font-size: 12px; font-weight: 500; padding: 3px 8px;
	border-radius: 7px 7px 0 0; display: flex; align-items: center; gap: 6px; }
.termbar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.termbar .d1 { background: var(--orange); } .termbar .d2 { background: #caa06a; } .termbar .d3 { background: #9d7790; }
.termbar .cmd { padding: 7px 10px; font-size: 14px; font-family: var(--mono); color: #efe3d6; line-height: 1.7; }
.termbar .prompt { color: var(--orange); font-weight: 700; }
.termbar .path { color: #caa06a; font-weight: 700; }
.termbar a { color: #f0b98f; text-decoration: none; font-weight: 700; }
.termbar a:hover { color: #fff; text-decoration: underline; }

/* ===== Ticker CVE (CSS puro) ===== */
.cve { background: var(--term); color: var(--orange); font-family: var(--mono); font-size: 13px;
	border-radius: 0 0 7px 7px; padding: 5px 0; margin: 0 0 12px; overflow: hidden; white-space: nowrap; }
.cve span { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== Home: hero + welcome ===== */
.hero { text-align: center; margin: 12px 0; }
.hero img { border: 3px solid #fff; outline: 1px solid var(--tan-dk); border-radius: 4px; max-width: 640px; width: 100%; }
.hero .welcome { font-weight: bold; color: var(--orange-dk); font-size: 17px; margin: 8px 0 0; font-family: var(--ui); }
.uc { color: var(--purple); font-weight: 700; }

hr.retro { border: 0; border-top: 1px solid var(--tan-dk); border-bottom: 1px solid #fff; margin: 14px 0; }

/* ===== Layout 2 colonne ===== */
table.layout { width: 100%; border-collapse: collapse; }
td.main { vertical-align: top; padding-right: 16px; }
td.side { vertical-align: top; width: 220px; padding-left: 14px; border-left: 1px dashed var(--tan-dk); }

/* ===== Pannelli ===== */
.panel { background: #fff; border: 1px solid var(--tan); border-radius: 6px; margin: 0 0 14px; overflow: hidden; }
.panel .head { background: linear-gradient(180deg, #f08a5b, var(--orange)); color: #fff; font-family: var(--ui);
	font-weight: 700; font-size: 15px; padding: 5px 10px; text-shadow: 1px 1px 1px rgba(0,0,0,0.3); }
.panel .body { padding: 9px 11px; font-size: 15px; }
.panel .body img { float: left; width: 92px; margin: 0 10px 4px 0; border: 1px solid var(--tan-dk); border-radius: 3px; }
.panel .body a { font-family: var(--mono); font-weight: 700; }

/* ===== Sidebar ===== */
.sideblock { margin: 0 0 14px; }
.sideblock h3 { font-family: var(--ui); color: var(--purple); font-size: 15px; margin: 0 0 5px; }
.sideblock p { font-size: 13px; margin: 0 0 8px; }
ul.news, ul.link-list { margin: 4px 0 4px 18px; padding: 0; font-size: 14px; }
ul.news li, ul.link-list li { margin: 0 0 5px; }
.newtag { color: #fff; background: var(--orange); font-family: var(--ui); font-size: 10px; font-weight: 700;
	padding: 0 4px; border-radius: 3px; }
.counter { font-family: var(--mono); background: var(--term); color: var(--orange); border: 1px solid #000;
	padding: 3px 7px; letter-spacing: 3px; display: inline-block; }
.sidecenter { text-align: center; } .tiny { font-size: 11px; color: #6a5d50; }

/* ===== Contenuto articolo ===== */
.article .backlink { font-family: var(--mono); font-weight: 700; }
.article h2, h2.art { font-family: var(--ui); color: var(--orange-dk); font-size: 25px; margin: 4px 0 2px; }
.article .meta, .meta { font-style: italic; font-size: 13px; color: #6a5d50; margin: 0 0 12px; }
.article h3, h3.art { font-family: var(--ui); color: var(--purple); font-size: 18px; margin: 18px 0 5px; }
.article h4 { font-family: var(--ui); color: var(--aubergine); font-size: 16px; margin: 16px 0 5px; }
.article p { line-height: 1.55; margin: 0 0 11px; }
.article ul, .article ol { margin: 4px 0 14px 22px; } .article li { margin: 0 0 4px; }

/* blocchi codice = finestra Terminale */
.article pre, pre.code { background: var(--term); color: #efe3d6; font-family: var(--mono); font-size: 13.5px;
	border-radius: 7px; padding: 9px 11px; overflow-x: auto; margin: 0 0 14px; line-height: 1.5; }
pre.code { padding: 0; overflow: hidden; }
pre.code .tt { background: linear-gradient(var(--purple-lt), var(--purple)); padding: 4px 9px; font-family: var(--ui);
	font-size: 11px; color: #fff; display: flex; align-items: center; gap: 6px; }
pre.code .tt .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
pre.code .cbody { padding: 9px 11px; display: block; overflow-x: auto; }
pre.code .p { color: var(--orange); font-weight: 700; } pre.code .pa { color: #caa06a; font-weight: 700; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article code, code.inline { font-family: var(--mono); background: #fff3e6; border: 1px solid #e3bd96; color: var(--orange-dk);
	padding: 0 4px; border-radius: 3px; font-size: 0.92em; }

.article figure, .article .article-media { margin: 1.4em 0; text-align: center; }
.article figure img, .article .article-media img, img.shot {
	border: 3px solid #fff; outline: 1px solid var(--tan-dk); border-radius: 4px; display: inline-block; }
.article figcaption, .caption { text-align: center; font-size: 12px; font-style: italic; color: #6a5d50; margin: 6px 0 0; }
.article blockquote, blockquote.note { background: #fff; border: 1px solid var(--tan); border-left: 4px solid var(--orange);
	padding: 9px 11px; margin: 0 0 14px; border-radius: 4px; font-size: 15px; }

/* lista articoli (indice sezione) - classe usata anche dagli script */
ul.check-list { list-style: none; margin: 4px 0 0; padding: 0; }
ul.check-list li { margin: 0; border-bottom: 1px solid var(--tan); }
ul.check-list li:last-child { border-bottom: 0; }
ul.check-list li a { display: block; padding: 8px 6px; font-family: var(--ui); font-weight: 700;
	text-decoration: none; }
ul.check-list li a::before { content: "\25B8  "; color: var(--orange); }
ul.check-list li a:hover { background: #fff6ef; }

/* ===== Footer ===== */
.footer { text-align: center; font-size: 12px; margin-top: 14px; border-top: 1px solid var(--tan-dk);
	padding-top: 9px; color: #6a5d50; }
.footer a { font-weight: 700; }
.footer .badge { display: inline-block; font-family: var(--ui); font-size: 10px; font-weight: 700; color: #fff;
	background: var(--purple); border: 1px solid var(--aubergine); padding: 2px 5px; border-radius: 3px; margin: 2px; }

/* ===== Social ===== */
.social { display: flex; gap: 9px; justify-content: center; margin: 0 0 10px; }
.social a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center;
	justify-content: center; background: var(--purple); border: 1px solid var(--purple-lt); color: #fff;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.social a:hover { transform: translateY(-2px); }
.social a.yt:hover { background: #FF0000; border-color: #FF0000; }
.social a.ig:hover { background: #E1306C; border-color: #E1306C; }
.social a.tt:hover { background: #111; border-color: #333; }
/* versione sidebar (home) con etichette */
.social.labeled { flex-direction: column; align-items: stretch; gap: 7px; }
.social.labeled a { width: auto; height: auto; border-radius: 6px; justify-content: flex-start; gap: 9px;
	padding: 7px 10px; font-family: var(--ui); font-weight: 700; font-size: 13px; text-decoration: none; }
.social.labeled a:hover { transform: translateX(2px); }

/* ===== Taskbar ===== */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: 34px; z-index: 200;
	background: linear-gradient(180deg, #4a1d44, var(--aubergine)); border-top: 1px solid var(--purple-lt);
	display: flex; align-items: center; font-family: var(--ui); }
.taskbar .start { display: flex; align-items: center; gap: 7px;
	background: linear-gradient(180deg, #f3733f, var(--orange-dk)); color: #fff; font-weight: 700; font-style: italic;
	font-size: 15px; height: 100%; padding: 0 16px 0 10px; border-right: 1px solid var(--aubergine);
	border-radius: 0 10px 10px 0; text-shadow: 1px 1px 1px rgba(0,0,0,0.4); text-decoration: none; }
.taskbar .start .circle { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--orange);
	font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.taskbar .tasks { flex: 1 1 auto; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.taskbar .tasks .tb { display: inline-block; background: var(--purple); color: #fff; font-size: 12px;
	padding: 3px 10px; margin-right: 5px; border: 1px solid var(--purple-lt); border-radius: 3px; }
.taskbar .tray { background: var(--purple); color: #fff; font-size: 12px; height: 100%; display: flex;
	align-items: center; padding: 0 12px; border-left: 1px solid var(--purple-lt); }

/* ===== Mobile ===== */
@media screen and (max-width: 760px) {
	body { padding: 12px 8px 52px; }
	.brand h1 { font-size: 30px; }
	td.main, td.side, table.layout, table.layout tbody, table.layout tr { display: block; width: 100%; }
	td.main { padding-right: 0; }
	td.side { padding-left: 0; border-left: 0; border-top: 1px dashed var(--tan-dk); padding-top: 12px; margin-top: 6px; }
	.termbar .cmd { font-size: 13px; }
	.taskbar .tasks { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cve span { animation: none; padding-left: 0; }
}
