/* Lucarelli – Home page AgID
 * Stili aggiuntivi al tema "Design Scuole Italia" (Bootstrap Italia).
 * Contrasti verificati WCAG 2.1 AA; focus visibile da tastiera; nessuna animazione automatica.
 */
:root {
	--lhp-primary: #ab2b3e;      /* rosso del tema, versione scura: 6,9:1 su bianco */
	--lhp-text: #1a1a1a;
	--lhp-muted: #5c6f82;        /* grigio Bootstrap Italia: 5,1:1 su bianco */
	--lhp-border: #d9dadb;
	--lhp-focus: #ff9900;        /* colore di focus di Bootstrap Italia */
}

/* ---------- Copertina ---------- */
.lhp-hero > .container { width: 100%; }
.lhp-hero .hero-title.lhp-hero__text { padding: 56px 0; }
.lhp-hero .hero-title h1 { color: #fff; margin-bottom: 16px; }
.lhp-hero__kicker { margin-bottom: 8px; }
.lhp-hero__sub { margin-bottom: 0; }
.lhp-hero__lead {
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.55;
	max-width: 34em;
	margin: 20px 0 0;
}
.lhp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lhp-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 4px;
	border: 2px solid #fff;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}
.lhp-btn--solid { background: #fff; color: var(--lhp-primary); }
.lhp-btn--solid:hover { background: #f2f2f2; color: var(--lhp-primary-dark, #7d1f2d); text-decoration: none; }
.lhp-btn--outline { background: transparent; color: #fff; }
.lhp-btn--outline:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.lhp-btn:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 3px; box-shadow: none; }

.lhp-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: #455b71;
	z-index: 1;
}
.lhp-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767.98px) {
	.lhp-hero.section-hero-left { flex-direction: column; align-items: stretch; min-height: 0; }
	.lhp-hero .hero-title.lhp-hero__text { padding: 36px 0 32px; }
	.lhp-hero .hero-title h1 { font-size: 2rem; letter-spacing: -0.5px; padding: 0; }
	.lhp-hero__media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.lhp-btn { flex: 1 1 100%; justify-content: center; }
}


/* Altezza della copertina */
.lhp-hero.lhp-hero--h-compatta { min-height: 300px; }
.lhp-hero.lhp-hero--h-media { min-height: 380px; }
.lhp-hero--h-compatta .hero-title.lhp-hero__text { padding: 28px 0; }
.lhp-hero--h-compatta .hero-title h1 { font-size: 2.5rem; margin-bottom: 8px; letter-spacing: -1px; }
.lhp-hero--h-compatta .lhp-hero__kicker { font-size: 1.125rem; margin-bottom: 4px; }
.lhp-hero--h-compatta .lhp-hero__sub { font-size: 1.375rem; }
.lhp-hero--h-compatta .lhp-hero__lead { font-size: 1rem; margin-top: 12px; }
.lhp-hero--h-compatta .lhp-hero__actions { margin-top: 18px; }
.lhp-hero--h-media .hero-title.lhp-hero__text { padding: 40px 0; }
.lhp-hero--h-media .hero-title h1 { font-size: 2.875rem; margin-bottom: 12px; }
@media (max-width: 767.98px) {
	.lhp-hero--h-compatta .lhp-hero__media { aspect-ratio: 21 / 9; }
	.lhp-hero--h-compatta .hero-title h1 { font-size: 1.75rem; }
	.lhp-hero--h-media .lhp-hero__media { aspect-ratio: 2 / 1; }
}

/* ---------- Accesso rapido ---------- */
.lhp-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 576px) { .lhp-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .lhp-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) {
	.lhp-tiles[data-count="4"], .lhp-tiles[data-count="7"], .lhp-tiles[data-count="8"] { grid-template-columns: repeat(4, 1fr); }
}
.lhp-tiles > li { margin: 0; }
.lhp-tile {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	min-height: 88px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--lhp-border);
	border-left: 4px solid var(--lhp-primary);
	border-radius: 4px;
	color: var(--lhp-text);
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	transition: box-shadow .15s ease, border-color .15s ease;
}
.lhp-tile:hover {
	color: var(--lhp-text);
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	border-color: var(--lhp-primary);
}
.lhp-tile:hover .lhp-tile__title { text-decoration: underline; }
.lhp-tile:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; box-shadow: none; }
.lhp-tile__icon { flex: 0 0 auto; color: var(--lhp-primary); display: flex; }
.lhp-tile__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.lhp-tile__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--lhp-text); }
.lhp-tile__desc { margin-top: 4px; font-size: .9375rem; line-height: 1.4; color: var(--lhp-muted); }
.lhp-tile__arrow, .lhp-tile__ext { flex: 0 0 auto; color: var(--lhp-primary); }

/* ---------- In evidenza ---------- */
.lhp-evidenza .lhp-evidenza__item > .card { height: 100%; }

/* ---------- Banner in griglia fissa ---------- */
.lhp-logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (min-width: 768px) { .lhp-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .lhp-logos { grid-template-columns: repeat(4, 1fr); } }
.lhp-logos__link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 96px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--lhp-border);
	border-radius: 4px;
}
a.lhp-logos__link:hover { border-color: var(--lhp-primary); }
a.lhp-logos__link:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-logos__img { max-width: 100%; max-height: 110px; width: auto; height: auto; }


/* ---------- Il sito per te (ingressi per profilo) ---------- */
.lhp-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 576px) { .lhp-doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .lhp-doors[data-count="3"] { grid-template-columns: repeat(3, 1fr); } .lhp-doors[data-count="4"] { grid-template-columns: repeat(4, 1fr); } }
.lhp-doors > li { margin: 0; }
.lhp-door {
	position: relative; display: flex; flex-direction: column; height: 100%; min-height: 190px;
	padding: 24px 22px 20px; border-radius: 6px; background: #fff; color: var(--lhp-text);
	border: 1px solid var(--lhp-border); border-top: 6px solid var(--lhp-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06); text-decoration: none;
}
.lhp-door:hover { color: var(--lhp-text); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.lhp-door:hover .lhp-door__title { text-decoration: underline; }
.lhp-door:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-door__icon { color: var(--lhp-primary); margin-bottom: 12px; display: flex; }
.lhp-icon--lg { width: 44px; height: 44px; }
.lhp-door__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.lhp-door__desc { margin-top: 6px; color: var(--lhp-muted); font-size: .9375rem; line-height: 1.45; flex: 1 1 auto; }
.lhp-door__go { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--lhp-primary); }
.lhp-door--evid { background: var(--lhp-primary); color: #fff; border-color: var(--lhp-primary); }
.lhp-door--evid:hover { color: #fff; }
.lhp-door--evid .lhp-door__icon, .lhp-door--evid .lhp-door__go { color: #fff; }
.lhp-door--evid .lhp-door__desc { color: #fff; }
.lhp-door__badge { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--lhp-primary); font-size: .8125rem; font-weight: 700; }
/* Ingresso evidenziato (periodo di orientamento): fascia intera, gli altri sotto in una riga. */
.lhp-doors__item--evid { grid-column: 1 / -1; }
.lhp-door--evid { min-height: 0; }
@media (min-width: 768px) {
	.lhp-door--evid { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon badge go" "icon title go" "icon desc go"; column-gap: 24px; align-items: center; padding: 28px 32px; }
	.lhp-door--evid .lhp-door__icon { grid-area: icon; margin: 0; }
	.lhp-door--evid .lhp-door__badge { grid-area: badge; margin-bottom: 6px; justify-self: start; }
	.lhp-door--evid .lhp-door__title { grid-area: title; font-size: 1.5rem; }
	.lhp-door--evid .lhp-door__desc { grid-area: desc; }
	.lhp-door--evid .lhp-door__go { grid-area: go; margin: 0; font-size: 1.0625rem; }
	.lhp-door--evid .lhp-icon--lg { width: 56px; height: 56px; }
}
@media (min-width: 992px) {
	.lhp-doors[data-evid="1"][data-count="4"] { grid-template-columns: repeat(3, 1fr); }
	.lhp-doors[data-evid="1"][data-count="3"] { grid-template-columns: repeat(2, 1fr); }
}


/* Smartphone: ingressi compatti in orizzontale (icona a sinistra, testo a destra). */
@media (max-width: 767.98px) {
	.lhp-door, .lhp-door--evid { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon badge" "icon title" "icon desc"; column-gap: 16px; align-items: center; min-height: 0; padding: 16px 18px; border-top-width: 4px; }
	.lhp-door__icon { grid-area: icon; margin: 0; }
	.lhp-door__badge { grid-area: badge; justify-self: start; margin-bottom: 6px; }
	.lhp-door__title { grid-area: title; font-size: 1.125rem; }
	.lhp-door__desc { grid-area: desc; margin-top: 2px; }
	.lhp-door__go { display: none; }
	.lhp-icon--lg { width: 36px; height: 36px; }
	.lhp-doors { gap: 12px; }
}

/* ---------- Elenchi semplici (circolari, eventi, atti) ---------- */
.lhp-profilo-extra { margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid var(--lhp-border); }
.lhp-plist { margin-bottom: 28px; }
.lhp-plist__list { list-style: none; margin: 0; padding: 0; }
.lhp-plist__list li { padding: 12px 0; border-bottom: 1px solid var(--lhp-border); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.lhp-plist__list a { font-weight: 600; }
.lhp-plist__meta { color: var(--lhp-muted); font-size: .875rem; white-space: nowrap; }

/* ---------- Pagine del plugin ---------- */
.lhp-lead { font-size: 1.125rem; line-height: 1.55; color: #33485c; max-width: 46em; margin-top: 8px; }
.lhp-block { margin: 8px 0 40px; }
.lhp-block > h2 { margin-bottom: 16px; }
.lhp-content { margin-bottom: 32px; }
.lhp-mono { font-family: "Roboto Mono", ui-monospace, monospace; letter-spacing: .02em; }
.lhp-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lhp-events { grid-template-columns: repeat(3, 1fr); } }
.lhp-event { padding: 18px 20px; border: 1px solid var(--lhp-border); border-left: 4px solid var(--lhp-primary); border-radius: 4px; background: #fff; }
.lhp-event__date { margin: 0 0 6px; font-weight: 700; color: var(--lhp-primary); }
.lhp-event__now { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--lhp-primary); color: #fff; font-size: .75rem; vertical-align: middle; }
.lhp-event__title { margin: 0; }
.lhp-event__place { margin: 6px 0 0; color: var(--lhp-muted); font-size: .9375rem; }
.lhp-cta { padding: 24px; background: #f5f5f5; border-radius: 6px; }
.lhp-btn-main { min-height: 48px; display: inline-flex; align-items: center; }
.lhp-code { font-family: "Roboto Mono", ui-monospace, monospace; }

/* Riepilogo progetti */
.lhp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
@media (min-width: 768px) { .lhp-stats { grid-template-columns: repeat(4, 1fr); } }
.lhp-stat { padding: 18px 20px; border-radius: 6px; background: #f5f5f5; }
.lhp-stat dt { font-size: .875rem; font-weight: 600; color: var(--lhp-muted); text-transform: uppercase; letter-spacing: .04em; }
.lhp-stat dd { margin: 4px 0 0; font-size: 1.75rem; font-weight: 700; color: var(--lhp-text); line-height: 1.2; }
.lhp-programma { padding-top: 24px; border-top: 1px solid var(--lhp-border); }
.lhp-programma__meta { color: var(--lhp-muted); margin: -8px 0 16px; }
.lhp-loghi { margin: 0 0 20px; }
.lhp-loghi__img { display: block; max-width: 100%; height: auto; max-height: 90px; width: auto; }
.lhp-loghi__text { margin: 8px 0 0; font-size: .875rem; color: var(--lhp-muted); }
.lhp-loghi--progetto { padding: 16px 0; border-bottom: 1px solid var(--lhp-border); margin-bottom: 28px; }
.lhp-pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lhp-pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .lhp-pcards { grid-template-columns: repeat(3, 1fr); } }
.lhp-pcard { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--lhp-border); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.lhp-pcard__title { margin: 0 0 8px; line-height: 1.3; }
.lhp-pcard__text { color: #33485c; font-size: .9375rem; margin-bottom: 12px; }
.lhp-pcard__data { margin: auto 0 0; display: grid; gap: 4px; font-size: .875rem; }
.lhp-pcard__data div { display: flex; gap: 8px; }
.lhp-pcard__data dt { color: var(--lhp-muted); font-weight: 600; min-width: 64px; }
.lhp-pcard__data dd { margin: 0; }
.lhp-status { align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; border: 1px solid currentColor; }
.lhp-status--autorizzato { color: #0059b3; background: #e8f1fb; }
.lhp-status--in_corso { color: #8a4b00; background: #fff4e5; }
.lhp-status--concluso { color: #00703c; background: #e7f5ee; }

/* Scheda progetto */
.lhp-factsheet { padding: 20px 22px; border-radius: 6px; background: #f5f5f5; margin-bottom: 32px; }
.lhp-factsheet dl { margin: 0; }
.lhp-factsheet dt { font-size: .8125rem; font-weight: 600; color: var(--lhp-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; }
.lhp-factsheet dt:first-child { margin-top: 4px; }
.lhp-factsheet dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.lhp-table th { white-space: nowrap; }


/* ---------- Novità per profilo ---------- */
.lhp-filters ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lhp-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid #5c6f82; border-radius: 999px; color: #33485c; font-weight: 600; text-decoration: none; background: #fff; }
.lhp-chip:hover { border-color: var(--lhp-primary); color: var(--lhp-primary); text-decoration: none; }
.lhp-chip--on, .lhp-chip--on:hover { background: #33485c; border-color: #33485c; color: #fff; }
.lhp-chip:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-feed { list-style: none; margin: 0; padding: 0; }
.lhp-feed__item { padding: 18px 0; border-bottom: 1px solid var(--lhp-border); }
.lhp-feed__item:first-child { padding-top: 4px; }
.lhp-feed__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; font-size: .875rem; }
.lhp-feed__date { color: var(--lhp-muted); }
.lhp-feed__extra { color: #8a4b00; font-weight: 600; }
.lhp-feed__title { margin: 0; line-height: 1.35; }
.lhp-feed__title a { text-decoration: none; }
.lhp-feed__title a:hover { text-decoration: underline; }
.lhp-feed__desc { margin: 6px 0 0; color: #33485c; font-size: .9375rem; }
.lhp-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; border: 1px solid currentColor; }
.lhp-tag--circolare { color: #0059b3; background: #e7f1fb; }
.lhp-tag--notizia { color: #00703c; background: #e5f4e4; }
.lhp-tag--evento { color: #8a4b00; background: #f9eeda; }
.lhp-feed-evid { margin-bottom: 20px; padding: 4px 20px; background: #f5f5f5; border-left: 4px solid var(--lhp-primary); border-radius: 4px; }
.lhp-feed-evid__title { margin: 14px 0 0; text-transform: uppercase; letter-spacing: .06em; color: var(--lhp-primary); }
.lhp-feed-evid .lhp-feed__item:last-child { border-bottom: 0; }
.lhp-sidemenu { position: sticky; top: 16px; border: 1px solid var(--lhp-border); border-radius: 6px; background: #fff; }
.lhp-sidemenu__toggle { display: none; }
.lhp-sidemenu nav { padding: 16px 18px; }
.lhp-sidemenu__title { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: #33485c; }
.lhp-sidemenu__list { list-style: none; margin: 0; padding: 0; }
.lhp-sidemenu__list li { border-bottom: 1px solid #eee; }
.lhp-sidemenu__list a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.lhp-sidemenu__list a:hover { text-decoration: underline; }
.lhp-sidemenu__all { margin: 12px 0 0; font-size: .9375rem; }
@media (max-width: 991.98px) {
	.lhp-sidemenu { position: static; }
	.lhp-sidemenu__toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 16px; font-weight: 700; cursor: pointer; list-style: none; }
	.lhp-sidemenu__toggle::-webkit-details-marker { display: none; }
	.lhp-sidemenu__toggle::after { content: "▾"; }
	.lhp-sidemenu[open] .lhp-sidemenu__toggle::after { content: "▴"; }
	.lhp-sidemenu__toggle:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
	.lhp-sidemenu__title { display: none; }
	.lhp-sidemenu nav { padding-top: 0; }
}


/* ---------- Ricerca ---------- */
.lhp-search-count { font-size: 1.0625rem; color: #33485c; margin-bottom: 4px; }
.lhp-rtype { display: inline-block; margin: 0 8px 6px 0; padding: 2px 10px; border-radius: 4px; font-size: .8125rem; font-weight: 700; color: #33485c; background: #eef0f2; border: 1px solid #5c6f82; }
.lhp-rtype--circolare { color: #0059b3; background: #e7f1fb; border-color: #0059b3; }
.lhp-rtype--post { color: #00703c; background: #e5f4e4; border-color: #00703c; }
.lhp-rtype--evento { color: #8a4b00; background: #f9eeda; border-color: #8a4b00; }
.lhp-rtype--servizio { color: #6b1d78; background: #f4e8f6; border-color: #6b1d78; }
.lhp-bestbets { margin-bottom: 28px; padding: 18px 20px; background: #fff; border: 1px solid var(--lhp-border); border-left: 4px solid var(--lhp-primary); border-radius: 6px; }
.lhp-bestbets__title { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--lhp-primary); }
.lhp-bestbets__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .lhp-bestbets__list { grid-template-columns: repeat(2, 1fr); } }
.lhp-bestbet { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border: 1px solid var(--lhp-border); border-radius: 4px; text-decoration: none; color: var(--lhp-text); }
.lhp-bestbet:hover { border-color: var(--lhp-primary); text-decoration: none; color: var(--lhp-text); }
.lhp-bestbet:hover .lhp-bestbet__title { text-decoration: underline; }
.lhp-bestbet:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-bestbet__title { font-weight: 700; font-size: 1.0625rem; }
.lhp-bestbet__desc { margin-top: 4px; font-size: .9375rem; color: var(--lhp-muted); }
.lhp-bestbet .lhp-rtype { align-self: flex-start; }
.lhp-noresults { padding: 20px 0; }


/* ---------- In evidenza compatta ---------- */
.lhp-evc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lhp-evc__list[data-count="2"] { grid-template-columns: repeat(2, 1fr); } .lhp-evc__list[data-count="3"], .lhp-evc__list[data-count="4"], .lhp-evc__list[data-count="6"] { grid-template-columns: repeat(3, 1fr); } }
.lhp-evc__item { padding: 16px 18px; background: #f5f5f5; border-left: 4px solid var(--lhp-primary); border-radius: 4px; }
.lhp-evc__title { margin: 0; line-height: 1.3; }
.lhp-evc__title a { text-decoration: none; }
.lhp-evc__title a:hover { text-decoration: underline; }
.lhp-evc__desc { margin: 6px 0 0; font-size: .9375rem; color: #33485c; }

/* ---------- Etichette del pubblico ---------- */
.lhp-pub { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 700; border: 1px solid currentColor; }
.lhp-pub--famiglie { color: #00703c; background: #e5f4e4; }
.lhp-pub--personale { color: #0059b3; background: #e7f1fb; }
.lhp-pub--tutti { color: #33485c; background: #eef0f2; }

/* ---------- Novità in elenco ---------- */
.lhp-novita__cols { display: grid; grid-template-columns: 1fr; gap: 24px 40px; }
@media (min-width: 992px) { .lhp-novita__cols { grid-template-columns: 1fr 1fr; } }
.lhp-novita__coltitle { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--lhp-primary); text-transform: uppercase; letter-spacing: .05em; }
.lhp-novita__list { list-style: none; margin: 0; padding: 0; }
.lhp-novita__item { padding: 12px 0; border-bottom: 1px solid var(--lhp-border); }
.lhp-novita__item .lhp-feed__meta { margin-bottom: 4px; }
.lhp-novita__num { font-weight: 700; color: #33485c; font-size: .875rem; }
.lhp-novita__link { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; text-decoration: none; display: inline-block; }
.lhp-novita__link:hover { text-decoration: underline; }
.lhp-novita__all { margin: 10px 0 0; font-weight: 600; }
@media (max-width: 767.98px) { .lhp-novita__item:nth-child(n+5) { display: none; } }
.lhp-novita__eventi { margin-top: 32px; }
.lhp-evrow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lhp-evrow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .lhp-evrow { grid-template-columns: repeat(4, 1fr); } }
.lhp-evrow__link { display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px 12px; border: 1px solid var(--lhp-border); border-radius: 4px; text-decoration: none; color: var(--lhp-text); background: #fff; }
.lhp-evrow__link:hover { border-color: var(--lhp-primary); color: var(--lhp-text); text-decoration: none; }
.lhp-evrow__link:hover .lhp-evrow__title { text-decoration: underline; }
.lhp-evrow__link:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-evrow__date { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 4px; background: var(--lhp-primary); color: #fff; line-height: 1; }
.lhp-evrow__day { font-size: 1.375rem; font-weight: 700; }
.lhp-evrow__month { font-size: .8125rem; text-transform: uppercase; margin-top: 2px; }
.lhp-evrow__body { display: flex; flex-direction: column; min-width: 0; }
.lhp-evrow__title { font-weight: 700; line-height: 1.3; }
.lhp-evrow__when { font-size: .875rem; color: var(--lhp-muted); margin-top: 2px; }


/* ---------- Pagina evento ---------- */
.lhp-part { margin-bottom: 32px; }
.lhp-part__list { display: grid; gap: 8px 24px; grid-template-columns: 1fr; margin: 0 0 16px; }
@media (min-width: 576px) { .lhp-part__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lhp-part__list dt { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lhp-muted); }
.lhp-part__list dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; }
.lhp-part__note { padding: 12px 16px; background: #f5f5f5; border-radius: 4px; }
.lhp-part .btn { margin: 0 8px 8px 0; }
.lhp-prog { margin-bottom: 32px; }
.lhp-prog caption { caption-side: top; color: var(--lhp-muted); font-size: .875rem; }
.lhp-prog th[scope="row"] { white-space: nowrap; }
.lhp-ics { margin-top: 4px; }


/* ---------- Scegli il tuo percorso ---------- */
.lhp-percorsi { border-top: 1px solid var(--lhp-border); }
.lhp-percorsi__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.lhp-percorsi__cta { font-weight: 700; }
.lhp-percorsi__group { margin-top: 20px; }
.lhp-percorsi__gtitle { margin: 0 0 12px; color: #33485c; }
.lhp-pc { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .lhp-pc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .lhp-pc { grid-template-columns: repeat(4, 1fr); } }
.lhp-pc > li { margin: 0; }
.lhp-pc__card { display: flex; flex-direction: column; height: 100%; padding: 18px 20px; border: 1px solid var(--lhp-border); border-top: 4px solid #0059b3; border-radius: 6px; background: #fff; color: var(--lhp-text); text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.lhp-pc__card:hover { color: var(--lhp-text); text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.lhp-pc__card:hover .lhp-pc__name { text-decoration: underline; }
.lhp-pc__card:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-pc__badge { align-self: flex-start; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: #0059b3; background: #e7f1fb; border: 1px solid #0059b3; }
.lhp-pc__name { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.lhp-pc__text { margin-top: 8px; color: #33485c; font-size: .9375rem; line-height: 1.45; flex: 1 1 auto; }
.lhp-pc__art { margin-top: 10px; font-size: .875rem; font-weight: 600; color: var(--lhp-muted); }
.lhp-pc__go { margin-top: 12px; font-weight: 700; color: #0059b3; }

@media (prefers-reduced-motion: reduce) {
	.lhp-tile { transition: none; }
}
@media print {
	.lhp-hero__media, .lhp-tile__icon, .lhp-tile__arrow, .lhp-tile__ext { display: none !important; }
}

/* ---------- Colori per famiglia di indirizzo (testo ≥ 5,4:1) ---------- */
.lhp-pc__card { border-top-color: var(--lhp-fam, #0059b3); }
.lhp-pc__card .lhp-pc__badge, .lhp-inbreve__badge { color: var(--lhp-fam, #0059b3); background: var(--lhp-fam-bg, #e7f1fb); border-color: var(--lhp-fam, #0059b3); }
.lhp-pc__card .lhp-pc__go { color: var(--lhp-fam, #0059b3); }

/* ---------- Pagina dell'indirizzo ---------- */
.lhp-ind { --lhp-fam: #0059b3; --lhp-fam-bg: #e7f1fb; margin-bottom: 24px; }
.lhp-inbreve { border-left: 4px solid var(--lhp-fam); background: #f7f9fa; border-radius: 0 6px 6px 0; padding: 16px 20px; margin-bottom: 24px; max-width: 46rem; }
.lhp-inbreve__badge { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border: 1px solid; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.lhp-inbreve__list { margin: 0; display: grid; gap: 6px; }
.lhp-inbreve__list div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lhp-inbreve__list dt { min-width: 8.5rem; font-weight: 700; color: #33485c; }
.lhp-inbreve__list dd { margin: 0; flex: 1 1 16rem; }
.lhp-ord__nota { max-width: 46rem; padding: 12px 16px; background: var(--lhp-fam-bg); border-radius: 6px; color: var(--lhp-text); }
.lhp-ord__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; border-bottom: 2px solid var(--lhp-border); }
.lhp-ord__tab { display: flex; flex-direction: column; align-items: flex-start; min-height: 48px; padding: 10px 16px; margin-bottom: -2px; border: 2px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: #33485c; font-weight: 700; text-align: left; cursor: pointer; }
.lhp-ord__tab[aria-selected="true"] { border-color: var(--lhp-border); border-top: 4px solid var(--lhp-fam); background: #fff; color: var(--lhp-fam); }
.lhp-ord__tab:hover .lhp-ord__tabname { text-decoration: underline; }
.lhp-ord__tab:focus-visible, .lhp-ord__panel:focus-visible, .lhp-orario__wrap:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-ord__tabsub { font-weight: 400; font-size: .875rem; color: var(--lhp-muted); }
.lhp-ord__panel { padding-top: 16px; }
.lhp-ord--js .lhp-ord__ptitle--tab { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lhp-ord:not(.lhp-ord--js) .lhp-ord__panel + .lhp-ord__panel { margin-top: 24px; border-top: 1px solid var(--lhp-border); }
.lhp-ord__ptitle { color: var(--lhp-fam); }
.lhp-ord__avviso { max-width: 46rem; padding: 12px 16px; border: 1px solid var(--lhp-fam); border-left-width: 4px; border-radius: 6px; font-weight: 600; }
.lhp-ord__h { margin: 24px 0 10px; }
.lhp-art { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lhp-art { grid-template-columns: repeat(2, 1fr); } }
.lhp-art__card { margin: 0; padding: 16px 18px; border: 1px solid var(--lhp-border); border-top: 4px solid var(--lhp-fam); border-radius: 6px; background: #fff; }
.lhp-art__name { margin: 0 0 6px; font-size: 1.125rem; color: var(--lhp-fam); }
.lhp-art__desc { margin: 0 0 8px; font-size: .9375rem; }
.lhp-art__label { margin: 8px 0 4px; font-weight: 700; font-size: .875rem; color: #33485c; }
.lhp-art__card ul { margin: 0; padding-left: 1.2em; font-size: .9375rem; }
.lhp-orario__wrap { overflow-x: auto; margin: 0 0 8px; max-width: 46rem; }
.lhp-orario { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.lhp-orario caption { caption-side: top; padding: 0 0 8px; font-weight: 700; color: var(--lhp-text); text-align: left; }
.lhp-orario__unit { font-weight: 400; color: var(--lhp-muted); }
.lhp-orario th, .lhp-orario td { padding: 6px 10px; border-bottom: 1px solid var(--lhp-border); vertical-align: top; }
.lhp-orario thead th { background: var(--lhp-fam-bg); color: var(--lhp-text); border-bottom: 2px solid var(--lhp-fam); text-align: center; white-space: nowrap; }
.lhp-orario thead th:first-child, .lhp-orario tbody th, .lhp-orario tfoot th { text-align: left; }
.lhp-orario tbody th { font-weight: 400; }
.lhp-orario td { text-align: center; white-space: nowrap; }
.lhp-orario__area th { background: #f2f4f6; font-weight: 700 !important; font-size: .875rem; color: #33485c; }
.lhp-orario tfoot th, .lhp-orario tfoot td { font-weight: 700; border-top: 2px solid #33485c; border-bottom: 0; }
.lhp-orario__lab { color: var(--lhp-muted); font-size: .8125rem; }
.lhp-orario__nota { max-width: 46rem; font-size: .875rem; color: var(--lhp-muted); margin-bottom: 20px; }
.lhp-ind__cta { margin-top: 24px; }
@media print { .lhp-ord__tabs { display: none !important; } .lhp-ord__panel[hidden] { display: block !important; } }

/* ---------- Offerta formativa ---------- */
.lhp-percorsi--page { border-top: 0; }
.lhp-percorsi--page .lhp-percorsi__group:first-of-type { margin-top: 8px; }
.lhp-toc { margin: 0 0 32px; padding: 16px 20px; background: #f7f9fa; border-radius: 6px; max-width: 46rem; }
.lhp-toc__title { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: #33485c; }
.lhp-toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lhp-toc a { font-weight: 600; }
.lhp-steps-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .lhp-steps-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); } .lhp-steps-grid[data-count="3"] { grid-template-columns: 1.3fr 1fr 1fr; } }
.lhp-steps-col { padding: 18px 20px; border: 1px solid var(--lhp-border); border-radius: 6px; background: #fff; }
.lhp-steps-col__title { margin: 0 0 14px; color: #33485c; }
.lhp-steps { list-style: none; margin: 0; padding: 0; counter-reset: lhp-step; }
.lhp-steps__item { position: relative; padding: 0 0 16px 44px; counter-increment: lhp-step; }
.lhp-steps__item::before { content: counter(lhp-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #0059b3; color: #fff; font-weight: 700; font-size: .9375rem; display: flex; align-items: center; justify-content: center; }
.lhp-steps__item:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: #c5d7ea; }
.lhp-steps__when { display: block; font-weight: 700; line-height: 1.3; padding-top: 4px; }
.lhp-steps__what { display: block; margin-top: 2px; font-size: .9375rem; color: #33485c; }
.lhp-steps-col__more { margin: 4px 0 0; font-weight: 700; }
.lhp-off-nota { max-width: 46rem; padding: 12px 16px; background: #e7f1fb; border-left: 4px solid #0059b3; border-radius: 0 6px 6px 0; }
.lhp-olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .lhp-olist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .lhp-olist { grid-template-columns: repeat(3, 1fr); } }
.lhp-olist > li { margin: 0; }
.lhp-olist__card { display: flex; flex-direction: column; height: 100%; padding: 16px 18px; border: 1px solid var(--lhp-border); border-radius: 6px; background: #fff; color: var(--lhp-text); text-decoration: none; }
.lhp-olist__card:hover { color: var(--lhp-text); text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.lhp-olist__card:hover .lhp-olist__title { text-decoration: underline; }
.lhp-olist__card:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-olist__title { font-weight: 700; color: #0059b3; font-size: 1.0625rem; }
.lhp-olist__title::after { content: " →"; }
.lhp-olist__text { margin-top: 4px; font-size: .9375rem; color: #33485c; }
.lhp-olist--doc .lhp-olist__card { border-left: 4px solid #33485c; }
.lhp-off-cta { margin-top: 8px; }

/* ---------- Bacheca sindacale ---------- */
.lhp-rsu__dicitura { margin: 0 0 24px; padding: 14px 18px; background: #f7f9fa; border-left: 4px solid #5c6f82; border-radius: 0 6px 6px 0; font-size: .875rem; color: #33485c; }
.lhp-rsu__dicitura p { margin: 0; }
.lhp-rsu__dicitura--fine { margin-top: 32px; }
.lhp-rsu__filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.lhp-rsu__filtri-label { font-weight: 700; color: #33485c; }
.lhp-rsu__filtri ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lhp-rsu__filtro { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 2px solid #5c2d91; border-radius: 999px; color: #5c2d91; font-weight: 600; text-decoration: none; }
.lhp-rsu__filtro:hover { background: #f1eaf8; color: #5c2d91; text-decoration: none; }
.lhp-rsu__filtro[aria-current="page"] { background: #5c2d91; color: #fff; }
.lhp-rsu__filtro:focus-visible { outline: 3px solid var(--lhp-focus); outline-offset: 2px; }
.lhp-rsu__n { font-weight: 400; margin-left: 4px; }
.lhp-rsu__h { margin: 8px 0 12px; }
.lhp-rsu__per { font-weight: 400; color: var(--lhp-muted); }
.lhp-rsu__list { list-style: none; margin: 0; padding: 0; }
.lhp-rsu__item { padding: 16px 0; border-bottom: 1px solid var(--lhp-border); }
.lhp-rsu__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 4px; font-size: .875rem; }
.lhp-rsu__date { color: var(--lhp-muted); font-weight: 600; }
.lhp-rsu__dest { padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: .8125rem; border: 1px solid; }
.lhp-rsu__dest--docenti { color: #0059b3; background: #e7f1fb; }
.lhp-rsu__dest--ata { color: #00703c; background: #e6f4ec; }
.lhp-rsu__dest--tutti { color: #5c2d91; background: #f1eaf8; }
.lhp-rsu__em { color: #33485c; font-weight: 600; }
.lhp-rsu__title { margin: 0 0 4px; }
.lhp-rsu__exc { margin: 0; font-size: .9375rem; color: #33485c; }
.lhp-rsu__att { margin: 4px 0 0; font-size: .875rem; color: var(--lhp-muted); }
.lhp-rsu__empty { padding: 16px; background: #f7f9fa; border-radius: 6px; }
.lhp-rsu__switch { margin-top: 20px; font-weight: 600; }
.lhp-rsu__aside { margin-top: 24px; }
@media (min-width: 992px) { .lhp-rsu__aside { margin-top: 0; } }
.lhp-rsu__box { padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--lhp-border); border-radius: 6px; font-size: .9375rem; }
.lhp-rsu__box ul { margin: 0 0 8px; padding-left: 1.1em; }
.lhp-rsu__box p { margin: 0; }
.lhp-rsu__kicker { font-weight: 700; color: #5c2d91; margin-bottom: 8px; }
.lhp-rsu__scaduto { padding: 10px 14px; border: 1px solid #5c6f82; border-radius: 6px; }
.lhp-rsu__dl { display: grid; gap: 4px; margin: 0 0 24px; padding: 14px 18px; background: #f7f9fa; border-radius: 6px; }
.lhp-rsu__dl div { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.lhp-rsu__dl dt { min-width: 9rem; font-weight: 700; color: #33485c; }
.lhp-rsu__dl dd { margin: 0; }
.lhp-rsu__files { padding-left: 1.1em; }
.lhp-rsu__fileinfo { color: var(--lhp-muted); font-size: .875rem; }
.lhp-tag--rsu { color: #5c2d91; background: #f1eaf8; }
.lhp-feed__rsu { color: #5c2d91; font-weight: 700; }
