/*
	InfoAteneo - stile comune delle pagine iniziali
	  InfoAteneo     https://infoateneo.uniroma3.it/            /var/www/html/css/infoateneo.css
	  InfoContenuti  https://infocontenuti.uniroma3.it/ic/      /home/infocontenuti/ic/index-adm/styles/default/css/infoateneo.css
	  InfoVideo      https://infovideo.uniroma3.it/             /home/iv/web/css/infoateneo.css
	Il file è lo stesso nei tre posti: si modifica una volta e si copia negli altri due.
	I caratteri sono in ../fonts/ rispetto a questo file.
	01/11/2026 - Joram Marino
*/

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
	--ink: #13294b;        /* blu del logo di Ateneo */
	--ink-soft: #3d5070;
	--paper: #f4f6f9;
	--white: #ffffff;
	--teal: #0a7f80;       /* InfoContenuti, come l'icona della parte pubblica */
	--teal-dark: #086a6b;
	--teal-tint: #e3f2f1;
	--screen: #0d1a2e;     /* InfoVideo: il monitor */
	--screen-2: #1d2a40;
	--gold: #e8b400;
	--line: #d5dbe4;
	--line-strong: #9fb0c8;
	--radius: 10px;
	--measure: 66ch;
}

/* --- Base -------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Atkinson Hyperlegible", "Verdana", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.55;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
code { font-size: .92em; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Testi in due lingue: si mostra solo quella scelta (infoateneo.js) */
html:not(.en) [lang="en"]:not(html),
html.en [lang="it"]:not(html) { display: none; }

/* --- Intestazione ------------------------------------------------------------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand span { font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; padding-left: 18px; border-left: 1px solid var(--line); }
.langs { display: flex; gap: 4px; }
.langs button {
	font: inherit; font-size: .95rem; color: var(--ink-soft); background: none; border: 1px solid transparent;
	border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); font-weight: 700; }

/* --- Titoli e testi ------------------------------------------------------------- */
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.1; margin: 0 0 22px; letter-spacing: -.01em; max-width: 16ch; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 10px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }
.intro { margin: 0 0 28px; max-width: var(--measure); color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: .95rem; max-width: var(--measure); }

/* --- Pulsante e collegamenti ------------------------------------------------------ */
.go {
	display: inline-block; margin: 8px 0 22px; padding: 11px 20px; border-radius: 8px;
	font-weight: 700; text-decoration: none; color: #fff; background: var(--teal);
}
.go:hover { background: var(--teal-dark); }
.go.video { background: var(--screen); }
.go.video:hover { background: var(--screen-2); }
.hero .go { margin: 28px 0 0; }
.hint { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* Elenco di collegamenti con una nota a destra */
.links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; text-decoration: none; }
.links a:hover strong { text-decoration: underline; }
.links small { color: var(--ink-soft); font-size: .92rem; text-align: right; }

/* Schede: icona, titolo e una riga di descrizione */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
	display: flex; gap: 16px; align-items: flex-start; background: var(--white);
	border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none;
}
.card:hover { border-color: var(--line-strong); }
.card:hover b { text-decoration: underline; }
.card img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.card b { display: block; font-size: 1.15rem; }
.card span { color: var(--ink-soft); font-size: .97rem; }
.cards.big .card { padding: 22px 22px; align-items: center; }
.cards.big .card img { width: 72px; height: 72px; }
.cards.big .card b { font-size: 1.25rem; }
.band .card { background: var(--paper); }   /* sulla fascia bianca le schede hanno il fondo chiaro */

/* Termini (la metafora televisiva) */
.terms { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: var(--measure); }
.terms li { padding-left: 14px; border-left: 3px solid var(--gold); }

/* --- Apertura: testo e monitor ------------------------------------------------ */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }

.monitor { justify-self: center; width: 100%; max-width: 460px; }
.screen {
	background: var(--screen); color: #fff; border-radius: 14px; overflow: hidden;
	border: 10px solid var(--screen-2); box-shadow: 0 18px 40px -18px rgba(13, 26, 46, .55);
	aspect-ratio: 16 / 10;
}
.stand { width: 26%; height: 22px; margin: 0 auto; background: var(--screen-2); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.screen > * { min-width: 0; }

/* Monitor con orologio (InfoAteneo, InfoContenuti) */
.screen.face-clock { padding: 26px 28px 24px; display: flex; flex-direction: column; }
.face-clock .clock { font-weight: 700; font-size: clamp(3rem, 7vw, 4.3rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.face-clock .date { margin-top: 6px; color: #b9c4d6; font-size: 1rem; }
.face-clock .feed { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid #2c3b55; display: grid; gap: 6px; font-size: 1rem; }
.face-clock .feed li { display: flex; gap: 10px; align-items: baseline; }
.face-clock .feed li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }

/* Monitor come quelli veri: intestazione, corpo e piè di pagina (InfoVideo) */
.screen.face-board { display: grid; grid-template-rows: auto 1fr auto; }
.s-head { background: var(--ink); padding: 8px 16px; font-weight: 700; font-size: .95rem; text-align: right; color: #e9eef6; }
.s-body { padding: 14px 16px; display: grid; gap: 7px; align-content: start; font-size: .92rem; }
.s-title { color: var(--gold); font-weight: 700; text-align: center; margin-bottom: 2px; }
.s-row { display: grid; grid-template-columns: 3.4em 7.6em 1fr; gap: 10px; color: #dfe6f1; }
.s-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-row b, .s-row.now { color: #fff; }
.s-foot { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; border-top: 1px solid #2c3b55; font-size: .9rem; }
.s-foot .tick { color: #3ccf6a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-foot .clock { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 700; }

/* --- Fascia bianca: colonne o schede --------------------------------------------- */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.band .wrap.pad { padding-top: 48px; padding-bottom: 52px; }
.col { padding: 56px 48px 60px 0; min-width: 0; }
.col + .col { padding: 56px 0 60px 48px; border-left: 1px solid var(--line); }
.col h2 { font-size: 1.85rem; line-height: 1.15; margin: 0 0 6px; display: flex; align-items: center; gap: 14px; }
.col h2 img { width: 44px; height: 44px; }
.col h2.plain { font-size: 1.6rem; margin-bottom: 10px; }
.col .what { margin: 0 0 18px; color: var(--ink-soft); font-size: 1.1rem; }
.col p { max-width: var(--measure); }
.col .cards { grid-template-columns: 1fr; }

/* --- Sezioni su fondo chiaro --------------------------------------------------- */
.part .wrap { padding-top: 56px; padding-bottom: 64px; }
.part + .part .wrap { padding-top: 0; }

/* Da dove arrivano le informazioni (InfoAteneo) */
.diagram { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; align-items: center; gap: 14px; }
.node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.node b { display: block; }
.node span { color: var(--ink-soft); font-size: .95rem; }
.stack { display: grid; gap: 10px; }
.hub { background: var(--teal-tint); border-color: #9fd0cd; padding: 22px; }
.hub b { font-size: 1.25rem; color: #075f60; }
.node.screen-node { background: var(--screen); border-color: var(--screen); color: #fff; }
.node.screen-node span { color: #b9c4d6; }
.arrow { width: 40px; height: 14px; color: #8a97ab; }

/* Storia (InfoAteneo) */
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.25rem; list-style-position: outside; margin-left: 1.1em; }
.timeline { list-style: none; margin: 0 0 28px; padding: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding: 12px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; max-width: var(--measure); }

/* --- Piè di pagina ------------------------------------------------------------- */
footer { background: var(--ink); color: #d7deea; font-size: .95rem; }
footer .wrap { padding-top: 28px; padding-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
footer p { margin: 0; }
footer a { color: #fff; }

/* --- Schermi stretti ----------------------------------------------------------- */
@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
	.band .wrap.cols { grid-template-columns: 1fr; }
	.col, .col + .col { padding: 40px 0 44px; border-left: 0; }
	.col + .col { border-top: 1px solid var(--line); }
	.band .wrap.pad { padding-top: 32px; padding-bottom: 36px; }
	.part .wrap { padding-top: 44px; padding-bottom: 48px; }
	.diagram { grid-template-columns: 1fr; }
	.arrow { transform: rotate(90deg); justify-self: center; }
	.timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
	.wrap { padding: 0 16px; }
	.brand img { height: 36px; }
	.brand span { font-size: 1.15rem; padding-left: 12px; }
	.brand { gap: 12px; }
	.links a { flex-direction: column; gap: 0; }
	.links small { text-align: left; }
	.cards { grid-template-columns: 1fr; }
	.cards.big .card img { width: 56px; height: 56px; }
	.screen { border-width: 8px; }
	.screen.face-clock { padding: 18px 20px; }
	.screen.face-board { aspect-ratio: auto; }
	.s-body { font-size: .82rem; padding-bottom: 18px; }
	.s-row { grid-template-columns: 3em 7.2em 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
