/* ================================================================
   PTA Template — PWA-ready stylesheet
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */

/* Fix: icon-book glyph missing in joomla-fontawesome mapping */
.icon-book:before { content: "\f02d"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-book-2:before { content: "\f518"; font-family: "Font Awesome 6 Free"; font-weight: 900; } /* book-open — used for Glossario */
/* Fix: icon-table (fa-table) missing in joomla-fontawesome mapping */
.icon-table:before { content: "\f0ce"; font-family: "Font Awesome 6 Free"; font-weight: 900; }

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; margin: 0; padding: 0; }
body.pta-site {
	margin: 0; padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
}

/* ── Homepage background (solo logati) ── */
body.pta-site.is-homepage.logged-in {
	background: #fff;
}
body.pta-site.is-homepage.logged-in::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url('../../../images/site/bg01.jpg') no-repeat top center;
	background-size: cover;
	opacity: .5;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	margin-top: 0;
	color: #222;
}
a { color: #1565C0; text-decoration: none; }
a:hover { color: #1976D2; text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-fluid { width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto; padding: 0 48px; }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
	background: #1565C0;
	color: #fff;
	padding: 6px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.topbar-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}
.topbar-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none !important;
}
.topbar-brand .header-logo,
.topbar-brand img { height: 38px; width: auto; }
.topbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* Topbar modules (login area, icons) */
.topbar-right .moduletable,
.topbar-right > div {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.topbar-user-area { display: flex; align-items: center; gap: 8px; }

/* Round icon buttons in topbar */
.topbar-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	color: #fff;
	font-size: 18px;
	text-decoration: none !important;
	position: relative;
	transition: background .15s;
}
.topbar-icon-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Avatar in topbar (replaces icon-user when available) */
.topbar-avatar-img {
	width: 100%; height: 100%;
	object-fit: cover; border-radius: 6px;
}
.topbar-icon-btn:has(.topbar-avatar-img) {
	padding: 0; overflow: hidden;
}

.topbar-badge {
	position: absolute; top: -4px; right: -4px;
	background: #E53935;
	color: #fff;
	font-size: 10px; font-weight: 700;
	min-width: 16px; height: 16px;
	border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

/* Text buttons (Accedi/Registrati) */
.topbar-text-btn {
	display: inline-flex; align-items: center;
	gap: 6px;
	padding: 6px 18px;
	border-radius: 20px;
	background: rgba(255,255,255,.15);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .15s;
	white-space: nowrap;
	border: 1px solid rgba(255,255,255,.25);
}
.topbar-text-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.topbar-text-btn [class^="icon-"] { font-size: 14px; }
.topbar-text-btn.btn-accent {
	background: #fff;
	color: #1565C0;
	border-color: #fff;
}
.topbar-text-btn.btn-accent:hover { background: rgba(255,255,255,.9); color: #1565C0; }
.topbar-guest-area {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Hamburger toggle ─────────────────────────────────────────── */
.sidebar-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 32px; height: 32px;
	background: rgba(255,255,255,.12);
	border: none;
	border-radius: 6px;
	padding: 6px;
	cursor: pointer;
	transition: background .15s;
	flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.22); }
.sidebar-toggle span {
	display: block;
	width: 100%; height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform .2s, opacity .2s;
}
.sidebar-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sidebar-toggle.open span:nth-child(2) { opacity: 0; }
.sidebar-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================================================================
   SIDEBAR DRAWER
   ================================================================ */
.sidebar-overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 1100;
	opacity: 0; visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }

.sidebar-drawer {
	position: fixed;
	top: 0; left: -280px;
	width: 280px; height: 100vh;
	background: #fff;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	transition: left .25s ease;
	box-shadow: 2px 0 12px rgba(0,0,0,.2);
}
.sidebar-drawer.open { left: 0; }

.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e0e0e0;
	background: #1565C0;
	color: #fff;
}
.sidebar-title { font-size: 16px; font-weight: 600; }
.sidebar-close {
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	font-size: 22px;
	width: 32px; height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.sidebar-close:hover { background: rgba(255,255,255,.25); }

.sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 0;
}

/* Sidebar quick menu items */
.sidebar-body .sidebar-quick-menu ul,
.sidebar-body ul.menu {
	list-style: none;
	margin: 0; padding: 0;
}
.sidebar-body .sidebar-quick-menu li a,
.sidebar-body ul.menu li a {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: background .12s, color .12s;
}
.sidebar-body .sidebar-quick-menu li a:hover,
.sidebar-body ul.menu li a:hover {
	background: #f5f5f5;
	color: #1565C0;
}
.sidebar-body .sidebar-quick-menu li a [class^="icon-"],
.sidebar-body ul.menu li a [class^="icon-"] {
	display: inline-flex;
	width: 24px;
	margin-right: 10px;
	font-size: 16px;
	justify-content: center;
}
.sidebar-body .sidebar-quick-menu li.divider {
	height: 1px;
	margin: 6px 16px;
	background: #e0e0e0;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.site-body {
	flex: 1 0 auto;
	padding: 24px 0;
}
.content-row {
	display: flex;
	gap: 20px;
}
.col-content {
	flex: 1;
	min-width: 0;
	min-height: 400px;
}
.col-aside {
	flex: 0 0 260px;
}
main#content {
	min-height: 400px;
}

/* ── Navigation bar ───────────────────────────────────────────── */
.main-nav {
	margin-bottom: 16px;
}
.main-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 2px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.main-nav li a {
	display: block;
	padding: 10px 18px;
	color: #555;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background .12s, color .12s;
}
.main-nav li a:hover,
.main-nav li.active a,
.main-nav li.current a { background: #1565C0; color: #fff; }

/* ================================================================
   HOMEPAGE / BLOG DESKTOP
   ================================================================ */
.blog_desktop {
	background: #fff;
	border: none;
	border-radius: 8px;
	padding: 8px;
	margin-bottom: 16px;
}
.blog_desktop h1 {
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	color: rgba(0,0,0,.7);
	padding: 4px 8px;
	margin: 4px 0;
}
.blog_desktop .category-desc { display: none; }

body.itemid-101 main#content {
	padding: 0 !important;
	min-height: auto;
}

/* ── Dashboard (homepage logati) ─────────────────────────────── */
body:not(.is-homepage) .user-dashboard { display: none; }
.user-dashboard {
	display: grid;
	grid-template-columns: 180px 1fr 1fr 1fr;
	grid-template-rows: auto;
	grid-template-areas: "profile strumenti riferimenti segreteria";
	gap: 20px;
	margin: 20px 0;
	padding: 0;
	align-items: stretch;
}

/* Profilo utente */
.dashboard-profile {
	grid-area: profile;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px;
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.dashboard-avatar {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1565C0, #1976D2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 32px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(21,101,192,.25);
	overflow: hidden;
}
.dashboard-avatar .icon-user {
	font-size: 40px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dashboard-avatar img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
.dashboard-username {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	text-align: center;
	word-break: break-word;
	max-width: 100%;
}
.dashboard-name-fields {
	display: flex; flex-direction: column; gap: 6px;
	width: 100%; text-align: center;
}
.dashboard-name-row {
	display: flex; flex-direction: column; gap: 1px;
}
.dashboard-label {
	font-size: 10px; font-weight: 600; color: #999;
	text-transform: uppercase; letter-spacing: 0.5px;
}
.dashboard-value {
	font-size: 14px; font-weight: 600; color: #222;
	word-break: break-word;
}
.dashboard-profile-edit {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.dashboard-profile-edit a {
	font-size: 12px; color: #1565C0; text-decoration: none;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 4px; transition: background .2s;
}
.dashboard-profile-edit a:hover {
	background: rgba(21,101,192,.08); text-decoration: none;
}
.dashboard-profile-edit .f90-logout-button {
	color: #b71c1c;
}
.dashboard-profile-edit .f90-logout-button:hover {
	background: rgba(183,28,28,.08);
}

/* Blocchi Strumenti e Riferimenti */
.dashboard-block {
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	padding: 24px;
}
.dashboard-block:nth-of-type(1) { grid-area: strumenti; }
.dashboard-block:nth-of-type(2) { grid-area: riferimenti; }
.dashboard-block:nth-of-type(3) { grid-area: segreteria; }

.dashboard-tools {
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	padding: 24px;
}
.dashboard-tools h3 {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.dashboard-tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.dashboard-tool-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: #f5f5f5;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: all .2s;
	border: 1px solid transparent;
}
.dashboard-tool-link:hover {
	background: #1565C0;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(21,101,192,.25);
	border-color: #1565C0;
}
.dashboard-tool-link .icon {
	font-size: 22px;
	flex-shrink: 0;
	color: #999;
	opacity: 0.7;
}
.dashboard-tool-link:hover .icon {
	color: #fff;
	opacity: 1;
}
.dashboard-tool-link span {
	font-size: 14px;
	font-weight: 500;
}

/* Riferimenti — accento visivo leggermente diverso */
.dashboard-references h3 {
	color: #555;
}

/* Segreteria — accento visivo */
.dashboard-secretary h3 {
	color: #555;
}

/* Responsive — tablet */
@media (max-width: 992px) {
	.user-dashboard {
		grid-template-columns: 160px 1fr 1fr;
		grid-template-areas:
			"profile strumenti riferimenti"
			"profile segreteria segreteria";
	}
}

/* Responsive — mobile */
@media (max-width: 768px) {
	.user-dashboard {
		grid-template-columns: 1fr;
		grid-template-areas:
			"profile"
			"strumenti"
			"riferimenti"
			"segreteria";
		gap: 16px;
	}
	.dashboard-profile {
		display: grid;
		grid-template-columns: 60px 1fr;
		grid-template-rows: auto;
		align-items: center;
		gap: 2px 12px;
		text-align: left;
	}
	.dashboard-avatar {
		width: 60px;
		height: 60px;
		font-size: 24px;
		grid-row: 1 / -1;
		align-self: center;
	}
	.dashboard-username {
		text-align: left;
	}
	.dashboard-name-fields { text-align: left; }
	.dashboard-profile-edit { margin-top: 0; }
	.dashboard-tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.dashboard-tools-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Homepage Stats / Monitoring Dashboard ──────────────────────── */
.hp-stats-dashboard {
	margin: 20px 0 28px;
	padding: 0;
}

.hp-stats-title {
	font-size: 15px;
	font-weight: 700;
	color: #444;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hp-stats-title .icon-chart {
	color: #1565C0;
	font-size: 18px;
}

.hp-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* Second row: roles card spans wider for pie chart */
.hp-stats-card--roles {
	grid-column: span 1;
}

.hp-stats-card {
	background: rgba(255,255,255,.50);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.30);
	border-radius: 10px;
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
	padding: 18px 16px;
}

.hp-stats-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e8eaed;
}

.hp-stats-icon {
	font-size: 16px;
}
.hp-stats-card--users .hp-stats-icon       { color: #1565C0; }
.hp-stats-card--users .hp-stats-card-header { border-bottom-color: #bbdefb; }
.hp-stats-card--training .hp-stats-icon       { color: #2e7d32; }
.hp-stats-card--training .hp-stats-card-header { border-bottom-color: #c8e6c9; }
.hp-stats-card--popular .hp-stats-icon       { color: #e65100; }
.hp-stats-card--popular .hp-stats-card-header { border-bottom-color: #ffe0b2; }
.hp-stats-card--recent .hp-stats-icon       { color: #6a1b9a; }
.hp-stats-card--recent .hp-stats-card-header { border-bottom-color: #e1bee7; }
.hp-stats-card--roles .hp-stats-icon       { color: #1565C0; }
.hp-stats-card--roles .hp-stats-card-header { border-bottom-color: #bbdefb; }

/* Pie chart */
.hp-stats-pie-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}
.hp-stats-pie-svg {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
}
.hp-stats-pie-total {
	font-size: 16px;
	font-weight: 800;
	fill: #333;
}
.hp-stats-pie-legend {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}
.hp-stats-pie-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
}
.hp-stats-pie-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.hp-stats-pie-label {
	font-size: 13px;
	color: #444;
	flex: 1;
}
.hp-stats-pie-val {
	font-size: 14px;
	font-weight: 700;
	color: #222;
}
.hp-stats-pie-val small {
	font-weight: 400;
	color: #888;
	font-size: 11px;
}

.hp-stats-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hp-stats-metric {
	text-align: center;
}

.hp-stats-number {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: #222;
	line-height: 1.2;
}
.hp-stats-number--live {
	color: #2e7d32;
}

.hp-stats-label {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 2px;
	line-height: 1.3;
}

/* Lists (top articles & recent users) */
.hp-stats-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: stats-rank;
}

.hp-stats-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f0;
	counter-increment: stats-rank;
}
.hp-stats-list li:last-child {
	border-bottom: none;
}

.hp-stats-list li::before {
	content: counter(stats-rank);
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f0f0f0;
	color: #666;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-stats-list-title {
	flex: 1;
	font-size: 13px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hp-stats-list-value {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: #666;
	background: #f5f5f5;
	padding: 2px 8px;
	border-radius: 10px;
}

/* Responsive: tablet */
@media (max-width: 992px) {
	.hp-stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Responsive: mobile */
@media (max-width: 576px) {
	.hp-stats-grid {
		grid-template-columns: 1fr;
	}
	.hp-stats-metrics {
		grid-template-columns: repeat(4, 1fr);
	}
	.hp-stats-pie-wrap {
		flex-direction: column;
		text-align: center;
	}
}

/* ── Profile Edit Modal ────────────────────────────────────────── */
.pta-modal-overlay {
	display: none; position: fixed; inset: 0; z-index: 10000;
	background: rgba(0,0,0,.5);
	align-items: center; justify-content: center; padding: 20px;
}
.pta-modal-overlay.is-open { display: flex; }
.pta-modal {
	background: #fff; border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,.2);
	width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
}
.pta-modal-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 24px 16px; border-bottom: 1px solid #e0e0e0;
}
.pta-modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #222; }
.pta-modal-close {
	background: none; border: none; font-size: 24px; color: #999;
	cursor: pointer; padding: 0; line-height: 1;
}
.pta-modal-close:hover { color: #333; }
.pta-modal-body { padding: 24px; }

/* Avatar upload area */
.pta-avatar-upload {
	display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.pta-avatar-preview {
	width: 80px; height: 80px; border-radius: 10px;
	background: linear-gradient(135deg, #1565C0, #1976D2);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; flex-shrink: 0;
}
.pta-avatar-preview img {
	width: 100%; height: 100%; object-fit: cover;
}
.pta-avatar-preview .icon-user { font-size: 36px; color: #fff; }
.pta-avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.pta-avatar-actions label {
	font-size: 13px; cursor: pointer; color: #1565C0; font-weight: 500;
	display: inline-flex; align-items: center; gap: 4px;
}
.pta-avatar-actions label:hover { text-decoration: underline; }
.pta-avatar-delete {
	background: none; border: none; color: #c62828;
	font-size: 12px; padding: 0; cursor: pointer; text-align: left;
}
.pta-avatar-delete:hover { text-decoration: underline; }
.pta-avatar-hint { font-size: 11px; color: #999; margin-top: 2px; }

/* Hide Joomla frontend-editing chrome on the dashboard module */
.user-dashboard > .btn.jmodedit,
.user-dashboard > [role="tooltip"] { display: none !important; }

/* Form fields */
.pta-form-group { margin-bottom: 16px; }
.pta-form-group label {
	display: block; font-size: 13px; font-weight: 600;
	color: #555; margin-bottom: 6px;
}
.pta-form-group input[type="text"],
.pta-form-group input[type="date"] {
	width: 100%; padding: 10px 12px;
	border: 1px solid #ccc; border-radius: 6px;
	font-size: 14px; color: #333;
	transition: border-color .2s; box-sizing: border-box;
}
.pta-form-group input:focus {
	border-color: #1565C0; outline: none;
	box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

/* Modal footer */
.pta-modal-footer {
	display: flex; justify-content: flex-end; gap: 12px;
	padding: 16px 24px 20px; border-top: 1px solid #e0e0e0;
}
.pta-modal-footer button {
	padding: 10px 24px; border-radius: 6px; font-size: 14px;
	font-weight: 500; cursor: pointer; border: none; transition: background .2s;
}
.pta-modal-cancel { background: #f5f5f5; color: #666; }
.pta-modal-cancel:hover { background: #e0e0e0; }
.pta-modal-save { background: #1565C0; color: #fff; }
.pta-modal-save:hover { background: #0d47a1; }
.pta-modal-save:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 480px) {
	.pta-modal { max-width: 100%; border-radius: 12px 12px 0 0; }
	.pta-avatar-upload { flex-direction: column; text-align: center; }
	.pta-avatar-actions { align-items: center; }
}

/* ── Strumenti (tools grid on homepage) — LEGACY ───────────────── */
div.desktop, div.training {
	border: 0;
	margin: 10px 0;
	padding: 0;
	background: transparent;
	text-align: center;
}
div.desktop {
	background: transparent;
}
div.training ul.thumb-list,
div.desktop ul.thumb-list {
	padding: 8px;
	margin: 8px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-radius: 10px;
}
ul.thumb-list li {
	display: inline-block;
	width: 13%;
	min-width: 70px;
	padding: 8px;
	text-align: center;
	position: relative;
}
ul.thumb-list li .item-container { text-align: center; }
ul.thumb-list li .thumb-item { text-align: center; }
ul.thumb-list li .thumb-item img {
	width: 100%;
	max-width: 120px;
	border-radius: 6px;
}

/* Category block colors */
ul.block-tools    { border-color: rgba(80,80,80,.3); }
ul.block-standard { border-color: rgba(80,80,80,.3); }
ul.block-rec      { border: 2px solid rgba(255,0,0,.3); background: #fff; }
ul.block-tec      { border: 2px solid rgba(200,60,0,.3); background: #fff; }
ul.block-spec     { border: 2px solid rgba(0,255,0,.3); background: #fff; }
ul.block-pro      { border: 2px solid rgba(0,60,200,.3); background: #fff; }
ul.block-protec   { border: 2px solid rgba(0,60,200,.3); background: #fff; }

/* ── Training open layout ─────────────────────────────────────── */
div.training-open {
	border: 0;
	margin: 10px 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* Glass effect sui container in homepage logata */
body.is-homepage.logged-in .item-page,
body.is-homepage.logged-in .blog_desktop {
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	padding: 20px;
}
.training-category {
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	display: flex;
	flex-direction: column;
}
.training-category h3 {
	margin: 0;
	padding: 10px 18px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	text-align: left;
	letter-spacing: .3px;
	background: transparent;
}
.training-section-description {
	padding: 0 18px 10px 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	border-bottom: 1px solid #eee;
	margin-bottom: 10px;
	text-align: left;
}
.training-section-description p {
	margin: 0 0 8px 0;
	text-align: left;
}
.training-section-description p:last-child {
	margin-bottom: 0;
}

/* === Vista categoria training === */
.training-category-view .page-header h1 {
	color: #1565C0;
	font-size: 26px;
	border-bottom: 2px solid #1565C0;
	padding-bottom: 10px;
}
.training-cat-description {
	padding: 15px 0;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 20px;
}
.training-cat-description p { margin: 0 0 10px 0; }

/* Elenco articoli nella vista training */
.training-articles { margin-bottom: 25px; }
.training-articles h3 {
	font-size: 20px;
	color: #333;
	margin-bottom: 12px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
}
.training-article-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.training-article-list li {
	border-bottom: 1px solid #eee;
}
.training-article-list li:last-child {
	border-bottom: none;
}
.training-article-list li a {
	display: block;
	padding: 10px 12px 10px 24px;
	color: #1565C0;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.5;
	position: relative;
	transition: background .15s, color .15s;
}
.training-article-list li a::before {
	content: "\203A";
	position: absolute;
	left: 8px;
	top: 10px;
	font-size: 18px;
	line-height: 1;
	color: #90a4ae;
}
.training-article-list li a:hover {
	background: #f0f4ff;
	color: #0D47A1;
	text-decoration: none;
}

.training-subcategories { margin-bottom: 25px; }
.training-subcategories h3 {
	font-size: 20px;
	color: #333;
	margin-bottom: 15px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
}
.training-modules-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

@media (min-width: 900px) {
	.training-modules-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.training-modules-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.training-modules-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}
.training-module-card {
	display: flex;
	flex-direction: column;
	padding: 15px 18px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #1565C0;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: box-shadow .2s, border-color .2s;
	min-height: 100px;
}

@media (max-width: 768px) {
	.training-module-card {
		padding: 12px 14px;
		min-height: 85px;
	}
}
.training-module-card:hover {
	box-shadow: 0 3px 10px rgba(0,0,0,.12);
	border-left-color: #0D47A1;
	text-decoration: none;
	color: #333;
}
.training-module-card .module-title {
	font-size: 16px;
	font-weight: 600;
	color: #1565C0;
	margin-bottom: 6px;
}
.training-module-card .module-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 6px;
}
.training-module-card .module-count {
	font-size: 12px;
	color: #999;
	margin-top: auto;
}

.training-category.cat-rec { border-left: 4px solid rgba(220,40,40,.85); }
.training-category.cat-tec { border-left: 4px solid rgba(190,70,0,.80); }
.training-category.cat-spec { border-left: 4px solid rgba(0,150,0,.80); }
.training-category.cat-pro { border-left: 4px solid rgba(0,60,200,.80); }
.training-category.cat-protec { border-left: 4px solid rgba(0,60,200,.80); }
.training-category.cat-demo { border-left: 4px solid rgba(80,80,80,.80); }

/* Training categories container - grid layout */
.training-open {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 20px 0;
}

@media (min-width: 600px) {
	.training-open {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (min-width: 900px) {
	.training-open {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1280px) {
	.training-open {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
	}
}

/* Training grid (buttons inside each category) */
.training-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 14px;
}

@media (min-width: 1280px) {
	.training-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Remove extra spacing in training grid */
.training-grid > p,
.training-grid > br {
	display: none;
}

/* Training buttons — shared base */
.training-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 40px;
	padding: 10px 72px 10px 14px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .2px;
	text-decoration: none;
	text-align: left;
	color: #fff;
	transition: filter .15s, box-shadow .15s;
	box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.training-btn.active { cursor: pointer; }
.training-btn.active:hover {
	filter: brightness(1.10);
	box-shadow: 0 3px 8px rgba(0,0,0,.18);
	text-decoration: none;
	color: #fff;
}
.training-btn.locked { cursor: default; opacity: .70; }
.training-btn.locked .tbl {
	flex: 1;
	text-align: left;
}
.training-btn.locked .tba {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	gap: 4px;
}

/* Round sub-buttons (info / store) */
.tbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.95);
	color: #666;
	font-size: 16px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
	cursor: pointer;
	outline: none;
}
.tbtn span[class^="icon-"],
.tbtn span[class*=" icon-"] {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
}
.tbtn:hover {
	background: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,.16), 0 2px 4px rgba(0,0,0,.12);
}
.tbtn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.tbtn.tbtn-info:hover {
	color: #1565C0;
	background: #E3F2FD;
}
.tbtn.tbtn-store:hover {
	color: #E65100;
	background: #FFF3E0;
}

/* Per-category button colors: rimossi, ora gestiti dinamicamente via style inline dal database */

/* ── Training Info Popup (modal) ──────────────────────────────── */
.tip-overlay {
	display: none;
	position: fixed; inset: 0;
	z-index: 10000;
	background: rgba(0,0,0,.55);
	justify-content: center;
	align-items: center;
}
.tip-overlay.open { display: flex; }
.tip-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 90%; max-width: 720px;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba(0,0,0,.3);
	animation: tipFadeIn .2s ease;
}
@keyframes tipFadeIn {
	from { opacity: 0; transform: scale(.95); }
	to   { opacity: 1; transform: scale(1); }
}
.tip-close {
	position: sticky; top: 0; float: right;
	z-index: 1;
	margin: 8px 8px 0 0;
	width: 32px; height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,.08);
	font-size: 20px; line-height: 1;
	color: #555;
	cursor: pointer;
	transition: background .15s;
}
.tip-close:hover { background: rgba(0,0,0,.15); }
.tip-body { padding: 24px 28px 28px; }
.tip-body img { max-width: 100%; height: auto; }
.tip-loading { text-align: center; padding: 40px 0; color: #888; font-size: 15px; }

/* ================================================================
   TOOLTIPS
   ================================================================ */
.nn_tooltips-link { border: 0; }

/* Bootstrap tooltip tuning */
.tooltip {
	font-size: 13px;
}
.tooltip.in {
	opacity: 1;
}
.tooltip-inner {
	max-width: 280px;
	padding: 8px 12px;
	background: #333;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
	line-height: 1.4;
}
.tooltip.top .tooltip-arrow { border-top-color: #333; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: #333; }
.tooltip.left .tooltip-arrow { border-left-color: #333; }
.tooltip.right .tooltip-arrow { border-right-color: #333; }

/* ================================================================
   COMUNICAZIONI (lista notifiche/messaggi)
   ================================================================ */
.comunicazioni-page .page-header h1 {
	display: flex;
	align-items: center;
	gap: 12px;
}
.comunicazioni-page .page-header h1 .icon-envelope {
	font-size: 28px;
	opacity: .6;
}
.comunicazioni-empty {
	text-align: center;
	padding: 60px 20px;
	color: #888;
}
.comunicazioni-empty .icon-info {
	font-size: 48px;
	display: block;
	margin-bottom: 16px;
	opacity: .4;
}
.comunicazioni-description {
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 20px;
	padding: 14px 18px;
	background: #f8fafc;
	border-left: 4px solid #1565C0;
	border-radius: 0 6px 6px 0;
}
.comunicazioni-description p:last-child { margin-bottom: 0; }
.comunicazioni-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.comunicazione-item {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #e8e8e8;
	align-items: flex-start;
}
.comunicazione-item:first-child {
	padding-top: 0;
}
.comunicazione-item:last-child {
	border-bottom: none;
}
.comunicazione-new {
	background: rgba(21,101,192,.03);
	margin: 0 -16px;
	padding-left: 16px;
	padding-right: 16px;
	border-radius: 8px;
	border-bottom-color: transparent;
}
.comunicazione-date {
	flex-shrink: 0;
	width: 100px;
	text-align: right;
	padding-top: 2px;
}
.comm-date-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
}
.comunicazione-date time {
	display: block;
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}
.comunicazione-body {
	flex: 1;
	min-width: 0;
}
.comunicazione-title {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}
.comunicazione-title a {
	color: #222;
	text-decoration: none;
}
.comunicazione-title a:hover {
	color: #1565C0;
}
.comm-badge-new {
	display: inline-block;
	background: #1565C0;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: .5px;
	vertical-align: middle;
	margin-left: 8px;
}
.comm-restricted {
	color: #999;
	font-size: 14px;
	margin-right: 4px;
}
.comunicazione-intro {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin-bottom: 8px;
}
.comunicazione-readmore {
	font-size: 13px;
	font-weight: 500;
	color: #1565C0;
	text-decoration: none;
}
.comunicazione-readmore:hover {
	text-decoration: underline;
}
.comunicazioni-pagination {
	margin-top: 24px;
	text-align: center;
}

/* Comunicazioni — responsive */
@media (max-width: 576px) {
	.comunicazione-item {
		flex-direction: column;
		gap: 6px;
	}
	.comunicazione-date {
		width: auto;
		text-align: left;
		display: flex;
		gap: 8px;
		align-items: baseline;
	}
	.comunicazione-date time {
		margin-top: 0;
	}
}

/* ================================================================
   FOOTER
   ================================================================ */
.bottombar {
	background: #1565C0;
	color: rgba(255,255,255,.9);
	padding: 32px 24px 24px;
	margin: 0;
	width: 100%;
}
.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.footer-logos {
	display: flex;
	align-items: center;
	gap: 24px;
}
.footer-logos img { height: 96px; width: auto; }
.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	font-size: 14px;
}
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep { margin: 0 10px; opacity: .5; }
.footer-copy {
	font-size: 13px;
	color: rgba(255,255,255,.6);
}

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-page { max-width: 640px; }
.contact-page .page-header { margin-bottom: 8px; }
.contact-page .contact-intro { color: #555; font-size: 15px; margin-bottom: 20px; }
.contact-form {
	background: #f9f9f9;
	border: none;
	border-radius: 8px;
	padding: 28px 24px;
}
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}
.contact-form label .required { color: #E53935; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color .2s, box-shadow .2s;
	background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #1565C0;
	box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.char-count { display: block; text-align: right; font-size: 12px; color: #999; margin-top: 4px; }
.form-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

/* Wide variant */
.contact-page-wide { max-width: 780px; }
.contact-form .form-section-title {
	font-size: 16px; font-weight: 700;
	color: #1565C0;
	border-top: 2px solid #1565C0;
	padding-top: 16px;
	margin: 28px 0 16px;
}
.contact-form .form-section-header {
	border-top: 2px solid #1565C0;
	padding-top: 16px;
	margin: 28px 0 16px;
}
.contact-form .form-section-header h3 {
	font-size: 16px; font-weight: 700;
	color: #1565C0;
	margin: 0 0 6px;
}
.contact-form .form-section-header h4 {
	font-size: 15px; font-weight: 600;
	color: #333;
	margin: 0 0 6px;
}
.contact-form .form-section-header p {
	font-size: 13px;
	color: #666;
	margin: 0 0 4px;
}
.contact-form .form-row-inline {
	display: flex; gap: 16px;
}
.contact-form .form-row-inline .form-group { flex: 1; }
.contact-form .form-group-half { flex: 0 0 calc(50% - 8px); }
.contact-form .form-group-quarter { flex: 0 0 calc(25% - 12px); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid #ccc; background: #fff; color: #333; transition: background .15s, color .15s; }
.btn:hover { background: #f5f5f5; }
.btn-primary { background: #1565C0; color: #fff; border-color: #1565C0; }
.btn-primary:hover { background: #1976D2; border-color: #1976D2; color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ================================================================
   HOMEPAGE HERO BANNER (pubblica)
   ================================================================ */

.pta-hero {
	position: relative;
	width: 100%;
	min-height: 240px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-radius: 0;
	overflow: hidden;
	margin: 0;
	display: flex;
	align-items: center;
}
.pta-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.20) 100%);
	z-index: 1;
}
.pta-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 32px 48px;
	color: #fff;
	box-sizing: border-box;
}
.pta-hero-title {
	font-size: 42px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 12px;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,.25);
	line-height: 1.15;
	max-width: 640px;
}
.pta-hero-text .pta-hero-subtitle {
	font-size: 20px;
	font-weight: 500;
	margin: 0 0 16px;
	color: rgba(255,255,255,.92);
	line-height: 1.4;
	max-width: 560px;
}
.pta-hero-text .pta-hero-desc {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255,255,255,.85);
	margin: 0 0 24px;
	max-width: 520px;
}
.pta-hero-text p:last-child { margin-bottom: 0; }

.pta-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 32px;
	background: #fff;
	color: #1565C0;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all .25s;
	box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.pta-hero-cta:hover {
	background: #e3f2fd;
	color: #0d47a1;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0,0,0,.22);
}

/* Responsive hero */
@media (max-width: 768px) {
	.pta-hero {
		min-height: 180px;
		border-radius: 0;
		margin: 0;
	}
	.pta-hero-content {
		padding: 24px 16px;
	}
	.pta-hero-title {
		font-size: 28px;
	}
	.pta-hero-text .pta-hero-subtitle {
		font-size: 16px;
	}
	.pta-hero-text .pta-hero-desc {
		font-size: 14px;
	}
	.pta-hero-cta {
		padding: 11px 24px;
		font-size: 14px;
	}
}
@media (max-width: 480px) {
	.pta-hero {
		min-height: 140px;
		border-radius: 0;
	}
	.pta-hero-content {
		padding: 28px 18px;
	}
	.pta-hero-title {
		font-size: 24px;
	}
}

/* ================================================================
   HOMEPAGE THREE-COLUMN INTRO
   ================================================================ */

.homepage-intro {
	display: grid;
	grid-template-columns: 1fr 1fr 300px;
	gap: 30px;
	margin-bottom: 40px;
	padding: 0;
	align-items: start;
}

.homepage-intro-left,
.homepage-intro-right {
	padding: 20px;
}

/* ── Homepage Login/Registration Panel ── */
.homepage-intro-login {
	padding: 0;
}

.hp-login-panel {
	background: rgba(255,255,255,.40);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
	padding: 28px 24px;
	border-top: 4px solid #1565C0;
}

.hp-login-header {
	text-align: center;
	margin-bottom: 12px;
}
.hp-login-header h3 {
	color: #1565C0;
	font-size: 20px;
	font-weight: 700;
	margin: 8px 0 0;
}
.hp-login-icon {
	font-size: 28px;
	color: #1565C0;
	opacity: .8;
}

.hp-login-subtitle {
	font-size: 13px;
	color: #666;
	text-align: center;
	line-height: 1.5;
	margin: 0 0 20px;
}

.hp-login-field {
	margin-bottom: 14px;
}
.hp-login-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #444;
	margin-bottom: 5px;
}
.hp-login-field label [class^="icon-"] {
	color: #1565C0;
	margin-right: 4px;
}
.hp-login-field input {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
	background: #fafbfc;
}
.hp-login-field input:focus {
	border-color: #1565C0;
	box-shadow: 0 0 0 3px rgba(21,101,192,.12);
	outline: none;
	background: #fff;
}
.hp-login-field input::placeholder {
	color: #aaa;
	font-size: 13px;
}

.hp-login-btn {
	width: 100%;
	padding: 11px 16px;
	background: linear-gradient(135deg, #1565C0, #1976D2);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.hp-login-btn:hover {
	background: linear-gradient(135deg, #1255a1, #1565C0);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(21,101,192,.30);
}

.hp-login-links {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
}
.hp-login-links a {
	font-size: 11px;
	color: #1565C0;
	text-decoration: none;
	transition: color .15s;
}
.hp-login-links a:hover {
	color: #0d47a1;
	text-decoration: underline;
}

.hp-login-divider {
	position: relative;
	text-align: center;
	margin: 18px 0;
	border-top: 1px solid #e0e0e0;
}
.hp-login-divider span {
	background: #fff;
	padding: 0 12px;
	color: #999;
	font-size: 12px;
	font-weight: 500;
	position: relative;
	top: -9px;
}

.hp-register-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 16px;
	background: #fff;
	color: #1565C0;
	border: 2px solid #1565C0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all .2s;
	box-sizing: border-box;
}
.hp-register-btn:hover {
	background: #1565C0;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(21,101,192,.25);
}

.hp-register-note {
	font-size: 11px;
	color: #888;
	text-align: center;
	line-height: 1.4;
	margin: 10px 0 0;
}

.homepage-intro h2,
.homepage-intro h3 {
	color: #1565C0;
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 24px;
	font-weight: 600;
}

.homepage-intro p {
	line-height: 1.7;
	margin-bottom: 16px;
	color: #555;
}

/* Homepage images: spacing & responsiveness */
.homepage-intro img {
	margin-bottom: 16px;
}
.homepage-intro-left img[style*="float"] {
	float: none !important;
	display: block;
	margin: 0 auto 16px;
}
.item-content img,
.plan-container img {
	max-width: 100%;
	height: auto;
	margin-bottom: 16px;
}

/* Responsive: two-column on tablet, stack on mobile */
@media (max-width: 1024px) {
	.homepage-intro {
		grid-template-columns: 1fr 1fr;
	}
	.homepage-intro-login {
		grid-column: 1 / -1;
		max-width: 380px;
		margin: 0 auto;
	}
}
@media (max-width: 768px) {
	.homepage-intro {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.homepage-intro-login {
		max-width: 100%;
	}
	.homepage-intro-left img,
	.homepage-intro img {
		width: 100% !important;
		height: auto !important;
		max-width: 100%;
	}
	.item-content img,
	.plan-container img {
		width: 100% !important;
		height: auto !important;
	}
}

/* ── Homepage Carousel (public) ── */
.homepage-carousel-wrap {
	margin-bottom: 36px;
}
.homepage-carousel-wrap .pta-carousel {
	margin-top: 0;
}

/* ================================================================
   FORM STYLING (LOGIN, REGISTRATION, USER FORMS)
   ================================================================ */

/* Remove fieldset borders */
fieldset {
	border: none;
	padding: 0;
	margin: 0 0 20px 0;
}

fieldset legend {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 16px;
	padding: 0;
}

/* General form controls */
.control-group,
.form-group {
	margin-bottom: 18px;
}

.control-label,
label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	transition: all .2s;
	background: #fff;
	box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #1565C0;
	box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

input[type="text"]:disabled,
input[type="password"]:disabled,
input[type="email"]:disabled,
select:disabled,
textarea:disabled {
	background: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Login & Registration Forms */
.com-users .login,
.com-users .registration,
.login-form,
.registration-form {
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border: none;
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.com-users .page-header h1,
.login-form h2,
.registration-form h2 {
	font-size: 24px;
	font-weight: 700;
	color: #222;
	text-align: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e0e0e0;
}

.com-users .form-horizontal .control-group {
	margin-bottom: 20px;
}

.com-users .form-horizontal .control-label {
	font-weight: 600;
	color: #444;
	margin-bottom: 8px;
}

.com-users .form-horizontal .controls {
	position: relative;
}

.com-users input[type="text"],
.com-users input[type="password"],
.com-users input[type="email"] {
	padding: 12px 14px;
	font-size: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
}

.com-users input[type="text"]:focus,
.com-users input[type="password"]:focus,
.com-users input[type="email"]:focus {
	border-color: #1565C0;
	box-shadow: 0 0 0 4px rgba(21,101,192,.1);
}

.com-users .btn,
.com-users button[type="submit"] {
	width: 100%;
	padding: 13px 20px;
	background: #1565C0;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	margin-top: 8px;
}

.com-users .btn:hover,
.com-users button[type="submit"]:hover {
	background: #1976D2;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(21,101,192,.25);
}

.com-users .btn:active,
.com-users button[type="submit"]:active {
	transform: translateY(0);
}

/* Remember me checkbox */
.com-users input[type="checkbox"] {
	width: auto;
	margin-right: 8px;
	cursor: pointer;
}

.com-users .control-group label[for*="remember"] {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
	cursor: pointer;
}

/* Links in forms */
.com-users a {
	color: #1565C0;
	text-decoration: none;
	font-weight: 500;
	transition: color .2s;
}

.com-users a:hover {
	color: #1976D2;
	text-decoration: underline;
}

/* Form footer links */
.com-users .form-horizontal > ul,
.login-form ul,
.registration-form ul {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	text-align: center;
	border-top: 1px solid #e0e0e0;
	padding-top: 20px;
}

.com-users .form-horizontal > ul li,
.login-form ul li,
.registration-form ul li {
	display: inline-block;
	margin: 0 12px;
	font-size: 14px;
}

/* Required field indicator */
.com-users .required,
.required {
	color: #E53935;
	font-weight: 700;
	margin-left: 3px;
}

/* Field descriptions */
.com-users .help-block,
.help-block {
	display: block;
	font-size: 13px;
	color: #666;
	margin-top: 6px;
	font-style: italic;
}

/* Registration specific */
.com-users.view-registration .control-group {
	margin-bottom: 18px;
}

.com-users.view-registration select {
	padding: 11px 14px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
}

/* Profile edit */
.com-users.view-profile .form-horizontal,
.com-users.view-edit .form-horizontal {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: none;
	border-radius: 12px;
	padding: 28px;
}

/* Hide Joomla's inline validation message inside labels
   (browser native required-tooltip is sufficient) */
label > span.form-control-feedback { display: none !important; }

/* Password toggle button */
.input-password-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.input-password-toggle .icon-eye,
.input-password-toggle .icon-eye-slash {
	font-size: 15px;
}

/* Validation states */
.com-users .invalid input,
.com-users input.invalid {
	border-color: #E53935 !important;
	box-shadow: 0 0 0 3px rgba(229,57,53,.1) !important;
}

.com-users .valid input,
.com-users input.valid {
	border-color: #43A047 !important;
}

/* Two-factor auth */
.com-users .btn-group {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.com-users .btn-group .btn {
	flex: 1;
	width: auto;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error, .alert-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
.alert-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-section { max-width: 780px; }
.faq-question {
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: background .12s;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-question:hover { background: #f8f9fa; }
.faq-question::after { content: '+'; font-size: 18px; color: #999; transition: transform .2s; }
.faq-question.active { background: #E3F2FD; border-color: #BBDEFB; }
.faq-question.active::after { content: '−'; color: #1565C0; }
.faq-answer {
	display: none;
	padding: 14px 18px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}
.faq-question.active + .faq-answer { display: block; }

/* ================================================================
   J2STORE PRODUCT GRID
   ================================================================ */
#content > div.blog.j2store > div.items-row > div > div > div.page-header > h2,
#content > div.blog.j2store > div.items-row > div > div > h2 {
	font-size: 15px; border: none; margin: 5px; text-align: center;
}
#content > div.blog.j2store > div.items-row > div > div { text-align: center; margin: 20px; }
#content > div.blog.j2store > div.items-row > div > div > img,
#content > div.blog.j2store > div.items-row > div > div > p > img {
	width: 180px; height: 180px;
}

/* ================================================================
   TRAINING HERO BANNER (immagine di categoria)
   ================================================================ */
.training-hero {
	position: relative;
	width: calc(100% + 96px);      /* sfonda il padding del container-fluid */
	margin-left: -48px;
	margin-top: -24px;              /* annulla il padding del site-body */
	margin-bottom: 28px;
	min-height: 260px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}
.training-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 32px 48px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, .65) 0%,
		rgba(0, 0, 0, .25) 50%,
		rgba(0, 0, 0, .05) 100%
	);
}
.training-hero__title {
	margin: 0;
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	line-height: 1.25;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	letter-spacing: -0.3px;
}

/* Responsive hero */
@media (min-width: 900px) {
	.training-hero { min-height: 320px; }
	.training-hero__title { font-size: 38px; }
}
@media (max-width: 768px) {
	.training-hero {
		width: calc(100% + 64px);
		margin-left: -32px;
		min-height: 200px;
	}
	.training-hero__overlay { padding: 24px 32px; }
	.training-hero__title { font-size: 26px; }
}
@media (max-width: 480px) {
	.training-hero {
		width: calc(100% + 32px);
		margin-left: -16px;
		min-height: 180px;
	}
	.training-hero__overlay { padding: 20px 16px; }
	.training-hero__title { font-size: 22px; }
}

/* ================================================================
   PROFILE
   ================================================================ */
.profile .dl-horizontal dt { font-weight: 600; color: #555; }
.profile .dl-horizontal dd { margin-bottom: 8px; }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.hidden      { display: none !important; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Joomla system messages */
/* Joomla system messages - Fixed position at top */
#system-message-container {
	position: fixed !important;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	width: 90%;
	max-width: 800px;
	pointer-events: none;
}

#system-message-container > * {
	pointer-events: auto;
}

#system-message-container .alert {
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	margin-bottom: 12px;
	animation: slideDown 0.3s ease-out;
	font-weight: 500;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#system-message-container .alert-heading {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 16px;
}

#system-message-container .alert ul {
	margin: 8px 0 0 0;
	padding-left: 20px;
}

#system-message-container .alert li {
	margin-bottom: 4px;
}

/* Pulsante chiudi messaggi */
#system-message-container .alert .btn-close,
#system-message-container .alert .close {
	float: right;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
	text-shadow: none;
	opacity: 0.5;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	margin-left: 12px;
}

#system-message-container .alert .btn-close:hover,
#system-message-container .alert .close:hover {
	opacity: 1;
}

/* Legacy Bootstrap compat (Joomla 3 core uses .span* / .row-fluid) */
.row-fluid { display: flex; flex-wrap: wrap; gap: 16px; }
.row-fluid .span12 { flex: 0 0 100%; }
.row-fluid .span9  { flex: 0 0 calc(75% - 8px); }
.row-fluid .span6  { flex: 0 0 calc(50% - 8px); }
.row-fluid .span3  { flex: 0 0 calc(25% - 8px); }
.well { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; margin-bottom: 16px; }

/* ================================================================
   CAROUSEL — 3 card visibili, scroll orizzontale
   ================================================================ */

/* Titolo modulo "Articoli in evidenza" */
.moduletable > .pta-carousel:first-child { margin-top: 0; }
.moduletable:has(.pta-carousel) {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}
.moduletable:has(.pta-carousel) > h3 {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: #1565C0;
	margin: 0 0 8px;
}

.pta-carousel {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 24px auto 32px;
}

/* Viewport che nasconde le card fuori campo */
.pta-carousel-viewport {
	overflow: hidden;
	border-radius: 12px;
}

/* Track: riga orizzontale di card, transizione con translateX */
.pta-carousel-track {
	display: flex;
	transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* Ogni card occupa 1/3 del viewport (gap gestito con padding) */
.pta-carousel-card {
	flex: 0 0 calc(100% / 3);
	box-sizing: border-box;
	padding: 0 8px;
}

/* Link wrapper: card completa */
.pta-carousel-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: #1d2939;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.pta-carousel-link:hover,
.pta-carousel-link:focus {
	text-decoration: none;
	color: #1d2939;
	box-shadow: 0 8px 28px rgba(0,0,0,.12);
	transform: translateY(-3px);
}

/* Immagine */
.pta-carousel-img {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f1f5f9;
}
.pta-carousel-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.pta-carousel-link:hover .pta-carousel-img img {
	transform: scale(1.05);
}

/* Placeholder SVG */
.pta-carousel-noimg svg {
	width: 100%;
	height: 100%;
}

/* Caption sotto l'immagine */
.pta-carousel-caption {
	padding: 14px 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.pta-carousel-caption h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d2939;
}
.pta-carousel-caption p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #475467;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
.pta-carousel-date {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	color: #98a2b3;
}

/* Frecce di navigazione */
.pta-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d0d5dd;
	border-radius: 50%;
	background: #fff;
	color: #344054;
	cursor: pointer;
	transition: all .2s ease;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.pta-carousel-btn:hover {
	background: #f0f4ff;
	border-color: #a8c4f7;
	color: #1a73e8;
}
.pta-carousel-btn:active {
	transform: translateY(-50%) scale(.92);
}
.pta-carousel-prev { left: -20px; }
.pta-carousel-next { right: -20px; }

.pta-carousel-btn svg {
	display: block;
	width: 20px;
	height: 20px;
}

/* ================================================================
   PAGINATION
   ================================================================ */

/* Wrapper */
.pta-pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 32px 0 24px;
	padding: 0;
}

/* Nav container */
.pta-pagination-nav {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* The list — HORIZONTAL via flexbox */
.pta-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Every item in the list */
.pta-pages > li {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Common link / span appearance */
.pta-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	color: #344054;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	cursor: pointer;
	transition: all .15s ease;
	user-select: none;
}

/* Hover */
a.pta-page-link:hover,
a.pta-page-link:focus {
	color: #1a73e8;
	background: #f0f4ff;
	border-color: #a8c4f7;
	text-decoration: none;
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
}

/* Navigation arrows (first/prev/next/last) */
.pta-page-nav {
	min-width: 40px;
	padding: 0 10px;
}
.pta-page-nav span[class^="icon-"],
.pta-page-nav span[class*=" icon-"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
}

/* Active page (current) */
.pta-pages > li.is-active .pta-page-link {
	color: #fff;
	background: #1a73e8;
	border-color: #1a73e8;
	cursor: default;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(26, 115, 232, .3);
}

/* Disabled items */
.pta-pages > li.is-disabled .pta-page-link {
	color: #c0c5cc;
	background: #f9fafb;
	border-color: #e5e7eb;
	cursor: default;
	pointer-events: none;
}
.pta-pages > li.is-disabled .pta-page-nav span[class^="icon-"],
.pta-pages > li.is-disabled .pta-page-nav span[class*=" icon-"] {
	opacity: .35;
}

/* Counter text ("Page 1 of 5") */
.pta-pagination-counter {
	display: block;
	text-align: center;
	font-size: 13px;
	color: #667085;
	margin-top: 2px;
}

/* Override Bootstrap 2 .pagination styles that might interfere */
.pta-pagination .pagination,
.pta-pagination ul {
	display: contents;
	margin: 0;
	padding: 0;
	box-shadow: none;
	border: none;
}

/* When pagination lives inside Joomla's blog layout wrapper <div class="pagination"> */
div.pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 32px 0 24px;
	text-align: center;
}
div.pagination > p.counter {
	order: 2;
	float: none;
	font-size: 13px;
	color: #667085;
	margin: 0;
}
div.pagination > .pta-pagination-nav {
	order: 1;
}
div.pagination ul {
	box-shadow: none;
}

/* Fallback: Joomla 4 default pagination structure when override doesn't load */
.pagination ul.pagination,
ul.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	list-style: none;
	margin: 16px 0;
	padding: 0;
	box-shadow: none;
	border: none;
}

.pagination ul.pagination li,
ul.pagination > li {
	display: flex;
	margin: 0;
	padding: 0;
}

.pagination ul.pagination li a,
.pagination ul.pagination li span,
ul.pagination > li > a,
ul.pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	color: #344054;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	transition: all .15s ease;
	user-select: none;
}

.pagination ul.pagination li a:hover,
.pagination ul.pagination li a:focus,
ul.pagination > li > a:hover,
ul.pagination > li > a:focus {
	color: #1a73e8;
	background: #f0f4ff;
	border-color: #a8c4f7;
	text-decoration: none;
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
}

.pagination ul.pagination li.active span,
.pagination ul.pagination li.active a,
ul.pagination > .active > a,
ul.pagination > .active > span {
	color: #fff;
	background: #1a73e8;
	border-color: #1a73e8;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(26, 115, 232, .3);
}

.pagination ul.pagination li.disabled span,
.pagination ul.pagination li.disabled a,
ul.pagination > .disabled > a,
ul.pagination > .disabled > span {
	color: #c0c5cc;
	background: #f9fafb;
	border-color: #e5e7eb;
	cursor: default;
	pointer-events: none;
	opacity: 0.6;
}

/* ================================================================
   NOTE / CALLOUT BOXES
   Classi: .note.ricorda .note.nota .note.attenzione
           .note.esempio .note.rifletti .note.idea  | .box-free
   ================================================================ */

/* --- Base .note ------------------------------------------------- */
.note {
	position: relative;
	margin: 20px 0;
	padding: 16px 16px 16px 52px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	overflow: hidden;
}

/* Icon pseudo-element (Font Awesome 6 Free – solid) */
.note::before {
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	left: 16px;
	top: 16px;
	font-size: 20px;
	line-height: 1;
	speak: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Heading inside note */
.note h2,
.note h3,
.note h4,
.note h5 {
	margin: 0 0 6px 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	line-height: 1.3;
}

/* Paragraph reset inside note */
.note p {
	margin: 0 0 6px;
}
.note p:last-child {
	margin-bottom: 0;
}

/* Lists inside note — default formatting */
.note ul,
.note ol {
	margin: 6px 0 6px 1.4em;
	padding: 0;
}
.note ul {
	list-style: disc;
}
.note ol {
	list-style: decimal;
}
.note li {
	margin: 0 0 3px;
	padding: 0;
}

/* --- note ricorda  (green – pencil/edit) ------------------------- */
.note.ricorda,
.note.remember {
	background: #f0fdf4;
	border-color: #86efac;
}
.note.ricorda::before,
.note.remember::before {
	content: "\f044";
	color: #16a34a;
}
.note.ricorda h2,
.note.ricorda h3,
.note.ricorda h4,
.note.ricorda h5,
.note.remember h2,
.note.remember h3,
.note.remember h4,
.note.remember h5 {
	color: #14532d;
}

/* --- note nota / info  (orange – magnifying glass) -------------- */
.note.nota,
.note.info {
	background: #fff7ed;
	border-color: #fdba74;
}
.note.nota::before,
.note.info::before {
	content: "\f002";
	color: #ea6c00;
}
.note.nota h2,
.note.nota h3,
.note.nota h4,
.note.nota h5,
.note.info h2,
.note.info h3,
.note.info h4,
.note.info h5 {
	color: #9a3412;
}

/* --- note attenzione  (amber – alert/warning) ------------------- */
.note.attenzione,
.note.warning {
	background: #fffbeb;
	border-color: #fcd34d;
}
.note.attenzione::before,
.note.warning::before {
	content: "\f071";
	color: #d97706;
}
.note.attenzione h2,
.note.attenzione h3,
.note.attenzione h4,
.note.attenzione h5,
.note.warning h2,
.note.warning h3,
.note.warning h4,
.note.warning h5 {
	color: #92400e;
}

/* --- note esempio  (pink – graduation-cap) ---------------------- */
.note.esempio,
.note.example {
	background: #fdf2f8;
	border-color: #f9a8d4;
}
.note.esempio::before,
.note.example::before {
	content: "\f19d";
	color: #db2777;
}
.note.esempio h2,
.note.esempio h3,
.note.esempio h4,
.note.esempio h5,
.note.example h2,
.note.example h3,
.note.example h4,
.note.example h5 {
	color: #9d174d;
}

/* --- note rifletti / reflect  (blue – hand/stop) ---------------- */
.note.rifletti,
.note.reflect {
	background: #eff6ff;
	border-color: #93c5fd;
}
.note.rifletti::before,
.note.reflect::before {
	content: "\f256";
	color: #2563eb;
}
.note.rifletti h2,
.note.rifletti h3,
.note.rifletti h4,
.note.rifletti h5,
.note.reflect h2,
.note.reflect h3,
.note.reflect h4,
.note.reflect h5 {
	color: #1e3a8a;
}

/* --- note idea  (yellow – lightbulb/lampadina) ------------------ */
.note.idea {
	background: #fefce8;
	border-color: #fde047;
}
.note.idea::before {
	content: "\f0eb";
	color: #ca8a04;
}
.note.idea h2,
.note.idea h3,
.note.idea h4,
.note.idea h5 {
	color: #854d0e;
}

/* --- box-free  (generic outlined box) ---------------------------- */
.box-free {
	margin: 20px 0;
	padding: 16px 20px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}
.box-free h5 {
	margin: 0 0 8px;
	font-weight: 700;
}

/* ================================================================
   TRAINING ARTICLE VIEW  (sidebar + prev/next)
   ================================================================ */

/* Nasconde "Pagina X di Y" — occupa spazio senza valore per l'utente */
.pagenavcounter { display: none !important; }

/* Toolbar bar (breadcrumb + fullscreen) */
.training-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f1f3f5;
	border-bottom: 1px solid #dee2e6;
	border-radius: 0;
	padding: 7px 16px;
	margin: 0 0 16px;
	position: sticky;
	top: 50px; /* flush under topbar */
	z-index: 100;
}

/* Toolbar title (replaces breadcrumb) */
.training-toolbar-title {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Fullscreen button */
.training-fullscreen-btn {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	color: #495057;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	font-size: 15px;
	line-height: 1;
}
.training-fullscreen-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	color: #212529;
}

/* Fullscreen mode */
.training-article-view.is-fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	overflow-y: auto;
}
/* Fancybox popup above fullscreen overlay */
.training-article-view.is-fullscreen ~ .fancybox-overlay { z-index: 10000; }
.training-article-view.is-fullscreen ~ .fancybox-wrap    { z-index: 10001; }
.fancybox-overlay { z-index: 10000 !important; }
.fancybox-wrap    { z-index: 10001 !important; }
.training-article-view.is-fullscreen .training-toolbar {
	top: 0;
}
.training-article-view.is-fullscreen .training-sidebar {
	display: none;
}
.training-article-view.is-fullscreen .training-sidebar.sidebar-open {
	display: block;
	top: 50px;
	max-height: calc(100vh - 66px);
}
.training-article-view.is-fullscreen .training-article-layout {
	padding: 0 60px 20px;
	gap: 16px;
	grid-template-columns: 1fr;
	font-size: 19px;
}
.training-article-view.is-fullscreen .training-article-body                  { font-size: 19px; }
.training-article-view.is-fullscreen .training-article-body h2                { font-size: 26px; }
.training-article-view.is-fullscreen .training-article-body h3                { font-size: 22px; }
.training-article-view.is-fullscreen .training-article-body table th,
.training-article-view.is-fullscreen .training-article-body table td          { font-size: 18px; }
.training-article-view.is-fullscreen .training-article-layout.sidebar-visible {
	grid-template-columns: 280px 1fr;
	padding: 0 20px 20px;
}
/* Fullscreen API native */
.training-article-view:fullscreen {
	background: #fff;
	overflow-y: auto;
}
.training-article-view:fullscreen .training-toolbar {
	position: sticky;
	top: 0;
}
.training-article-view:fullscreen .training-article-layout {
	padding: 0 20px 20px;
	gap: 16px;
	grid-template-columns: 1fr;
	font-size: 19px;
}
.training-article-view:fullscreen .training-article-body                  { font-size: 19px; }
.training-article-view:fullscreen .training-article-body h2                { font-size: 26px; }
.training-article-view:fullscreen .training-article-body h3                { font-size: 22px; }
.training-article-view:fullscreen .training-article-body table th,
.training-article-view:fullscreen .training-article-body table td          { font-size: 18px; }
.training-article-view:fullscreen .training-article-layout.sidebar-visible {
	grid-template-columns: 280px 1fr;
}
.training-article-view:-webkit-full-screen {
	background: #fff;
	overflow-y: auto;
}
.training-article-view:-webkit-full-screen .training-toolbar {
	position: sticky;
	top: 0;
}
.training-article-view:-webkit-full-screen .training-article-layout {
	padding: 0 20px 20px;
	gap: 16px;
	grid-template-columns: 1fr;
	font-size: 19px;
}
.training-article-view:-webkit-full-screen .training-article-body                  { font-size: 19px; }
.training-article-view:-webkit-full-screen .training-article-body h2                { font-size: 26px; }
.training-article-view:-webkit-full-screen .training-article-body h3                { font-size: 22px; }
.training-article-view:-webkit-full-screen .training-article-body table th,
.training-article-view:-webkit-full-screen .training-article-body table td          { font-size: 18px; }
.training-article-view:-webkit-full-screen .training-article-layout.sidebar-visible {
	grid-template-columns: 280px 1fr;
}

/* Two-column grid */
.training-article-layout {
	display: grid;
	grid-template-columns: 0fr 1fr;
	gap: 0;
	align-items: start;
	padding-top: 20px;
	transition: grid-template-columns .3s ease, gap .3s ease;
}
.training-article-layout.sidebar-visible {
	grid-template-columns: 280px 1fr;
	gap: 32px;
}

/* ─── Sidebar ─── */
.training-sidebar {
	position: sticky;
	top: 100px;                               /* topbar ~50px + toolbar ~40px + gap */
	max-height: calc(100vh - 116px);          /* viewport - top - bottom gap */
	overflow: hidden;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	min-width: 0;
	transition: opacity .25s ease, visibility .25s ease;
}
.training-sidebar.sidebar-open {
	overflow-y: auto;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.training-sidebar::-webkit-scrollbar {
	width: 5px;
}
.training-sidebar::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.training-sidebar-inner {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
}

/* Home button inside sidebar */
.sidebar-home-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin-bottom: 12px;
	background: #e3f2fd;
	border: 1px solid #bbdefb;
	border-radius: 8px;
	color: #1565C0;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.sidebar-home-btn:hover {
	background: #bbdefb;
	color: #0d47a1;
	text-decoration: none;
}
.sidebar-home-btn .icon-home {
	font-size: 15px;
}

/* Dashboard button — stesso stile blu, con margine ridotto */
.sidebar-dashboard-btn {
	margin-bottom: 6px;
}
.sidebar-home-btn + .sidebar-home-btn:not(.sidebar-dashboard-btn) {
	/* bottone Indice del corso: margine sotto prima del titolo modulo */
	margin-bottom: 12px;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	color: #495057;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	transition: background .15s, border-color .15s, color .15s;
}
.sidebar-toggle-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
}
.sidebar-toggle-btn.is-active {
	background: #1565C0;
	color: #fff;
	border-color: #1565C0;
}

.training-sidebar .sidebar-heading {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1565C0;
	line-height: 1.3;
}

/* Tree list */
.training-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.training-tree > ul > li {
	margin-bottom: 2px;
}
.training-tree ul ul {
	padding-left: 14px;
	border-left: 1px solid #e2e8f0;
	margin-left: 6px;
}

.training-tree li a {
	display: block;
	padding: 5px 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #475569;
	text-decoration: none;
	border-radius: 5px;
	transition: background .15s, color .15s;
}
.training-tree li a:hover {
	background: #e2e8f0;
	color: #1e293b;
}
.training-tree li.active > a {
	background: #1565C0;
	color: #fff;
	font-weight: 600;
}

/* <details> / <summary> for expandable nodes */
.training-tree details {
	margin-bottom: 2px;
}
.training-tree summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	padding: 5px 10px;
	border-radius: 5px;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background .15s;
}
.training-tree summary:hover {
	background: #e2e8f0;
}
/* Custom marker */
.training-tree summary::before {
	content: "▸";
	font-size: 11px;
	color: #94a3b8;
	transition: transform .2s;
	flex-shrink: 0;
}
.training-tree details[open] > summary::before {
	transform: rotate(90deg);
}
/* Remove native marker */
.training-tree summary::-webkit-details-marker {
	display: none;
}

/* ─── Sidebar tools section ─── */
.sidebar-tools-section {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}
.sidebar-tools-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin: 0 0 8px;
}
.sidebar-tools-heading .icon-cogs {
	font-size: 13px;
	color: #94a3b8;
}
.sidebar-tools-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sidebar-tools-list li {
	margin-bottom: 3px;
}
.sidebar-tool-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #1565C0;
	text-decoration: none;
	border-radius: 6px;
	background: #e3f2fd;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.sidebar-tool-link:hover {
	background: #bbdefb;
	border-color: #90caf9;
	color: #0d47a1;
	text-decoration: none;
}
.sidebar-tool-link .icon {
	font-size: 14px;
	flexShrink: 0;
	opacity: .7;
}

/* ─── Glossario sidebar ─── */
.sidebar-glossary-section {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}
.sidebar-glossary-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 600;
	color: #0f5f2e;
	text-decoration: none;
	border-radius: 6px;
	background: #e8f5e9;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.sidebar-glossary-link:hover,
.sidebar-glossary-link.active {
	background: #c8e6c9;
	border-color: #a5d6a7;
	color: #1b5e20;
	text-decoration: none;
}
.sidebar-glossary-link .icon-book-2 {
	font-size: 14px;
	opacity: .8;
}

/* ─── Tabelle negli articoli standard ─── */
[itemprop="articleBody"] table,
.item-page table,
.blog table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.5;
}
[itemprop="articleBody"] table th,
[itemprop="articleBody"] table td,
.item-page table th,
.item-page table td,
.blog table th,
.blog table td {
	padding: 8px 12px;
	border: 1px solid #d0d5dd;
}
[itemprop="articleBody"] table th,
.item-page table th,
.blog table th {
	background: #f1f5f9;
	font-weight: 600;
	color: #1d2939;
}
[itemprop="articleBody"] table tr:nth-child(even),
.item-page table tr:nth-child(even),
.blog table tr:nth-child(even) {
	background: #f9fafb;
}

/* ─── Article main content ─── */
.training-article-main .page-header {
	margin-bottom: 16px;
}
.training-article-main .page-header h1 {
	font-size: 24px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.training-article-main .page-header h1 {
		 font-size: 18px;
		 max-width: 95vw;
	}
}

.training-article-body {
	font-size: 15px;
	line-height: 1.8;
	color: #374151;
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
	overflow-x: hidden;
}
.training-article-body h2 {
	font-size: 20px;
	margin-top: 28px;
}
.training-article-body h3 {
	font-size: 17px;
	margin-top: 22px;
}
.training-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.training-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}
.training-article-body table th,
.training-article-body table td {
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	font-size: 14px;
}
.training-article-body table th {
	background: #f1f5f9;
	font-weight: 600;
}

/* ─── Liste enfatizzate ─── */
.training-article-body ul,
.training-article-body ol {
	margin: 18px 0;
	padding: 14px 20px 14px 40px;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;          /* clear floats */
}
.training-article-body ol {
}
.training-article-body ul li,
.training-article-body ol li {
	padding: 2px 0;
	border-bottom: 2px solid #fff;
	line-height: 1.7;
}
.training-article-body ul li:last-child,
.training-article-body ol li:last-child {
	border-bottom: none;
}
.training-article-body ul li::marker {
	color: #1565C0;
	font-size: 1.35em;
}
.training-article-body ol li::marker {
	color: #1565C0;
	font-weight: 800;
	font-size: 1.1em;
}
/* Liste annidate: senza sfondo e bordo aggiuntivi */
.training-article-body ul ul,
.training-article-body ul ol,
.training-article-body ol ul,
.training-article-body ol ol {
	background: transparent;
	border-left: 2px solid #cbd5e1;
	margin: 6px 0;
	padding: 4px 12px 4px 20px;
	border-radius: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
	.topbar-inner {
		flex-wrap: wrap;
	}
	.topbar-right {
		flex-wrap: wrap;
		gap: 6px;
	}
	.content-row {
		flex-direction: column;
	}
	.col-aside {
		flex: none;
		width: 100%;
	}
	.main-nav ul {
		flex-wrap: wrap;
	}
	ul.thumb-list li {
		width: 30%;
	}
	div.training-open {
		grid-template-columns: 1fr;
	}
	/* Carousel: 2 card visibili */
	.pta-carousel-card { flex: 0 0 50%; }
	.pta-carousel-prev { left: -12px; }
	.pta-carousel-next { right: -12px; }

	/* Training toolbar responsive */
	.training-toolbar {
		padding: 6px 12px;
	}
	.training-toolbar-title {
		font-size: 13px;
	}
	/* Training article: sidebar collapsibile su mobile */
	.training-article-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.training-sidebar {
		position: static;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		padding: 0;
		margin: 0;
		border: 0;
		transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
	}
	.training-sidebar.sidebar-open {
		max-height: 80vh;
		overflow-y: auto;
		opacity: 1;
		margin-bottom: 16px;
	}
	.training-sidebar-inner {
		padding: 12px;
	}
}

@media (max-width: 600px) {
	.container-fluid { padding: 0 16px; }
	.container { padding: 0 16px; }
	.training-grid { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
	.training-btn {
		min-height: 48px;
		font-size: 14px;
		padding: 12px 80px 12px 14px;
		border-radius: 6px;
	}
	.training-btn.locked .tba {
		right: 8px;
		gap: 6px;
	}
	.tbtn {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
	.tbtn span[class^="icon-"],
	.tbtn span[class*=" icon-"] {
		font-size: 18px;
	}
	.training-module-card .module-title { font-size: 15px; }
	.training-module-card .module-desc { font-size: 12.5px; }
	.training-category h3 { font-size: 16px; margin-bottom: 8px; }
	.tip-modal { width: 96%; border-radius: 8px; }
	.tip-body  { padding: 16px; }
	.contact-form .form-row-inline { flex-direction: column; gap: 0; }
	.contact-form .form-group-half,
	.contact-form .form-group-quarter { flex: none; width: 100%; }
	.footer-logos img { height: 72px; }

	/* Note / callout responsive */
	.note { padding: 14px 14px 14px 44px; font-size: 13px; }
	.note::before { left: 12px; top: 14px; font-size: 18px; }
	.box-free { padding: 14px 16px; }

	/* Pagination responsive */
	.pta-page-link {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 13px;
		border-radius: 6px;
	}
	.pta-page-nav span[class^="icon-"],
	.pta-page-nav span[class*=" icon-"] {
		font-size: 14px;
	}
	.pta-pagination { margin: 24px 0 16px; }
	
	/* Fallback pagination responsive */
	.pagination ul.pagination li a,
	.pagination ul.pagination li span,
	ul.pagination > li > a,
	ul.pagination > li > span {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 13px;
		border-radius: 6px;
	}
	div.pagination { margin: 24px 0 16px; }

	/* Carousel responsive */
	.pta-carousel { margin: 16px auto 24px; }
	.pta-carousel-card { flex: 0 0 100%; }
	.pta-carousel-viewport { border-radius: 8px; }
	.pta-carousel-caption { padding: 10px 12px 14px; }
	.pta-carousel-caption h4 { font-size: 14px; }
	.pta-carousel-caption p { font-size: 13px; -webkit-line-clamp: 1; }
	.pta-carousel-btn { width: 34px; height: 34px; }
	.pta-carousel-btn svg { width: 16px; height: 16px; }
	.pta-carousel-prev { left: -8px; }
	.pta-carousel-next { right: -8px; }
}

@media (max-width: 480px) {
	ul.thumb-list li { width: 45%; }
	.topbar-brand img { height: 28px; }
}

/* ================================================================
   SESSION EXPIRATION OVERLAY
   ================================================================ */
.pta-session-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}
.pta-session-overlay--visible {
	opacity: 1;
	visibility: visible;
}

.pta-session-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
	padding: 40px 36px 32px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	animation: ptaSessionIn .35s ease-out;
}
@keyframes ptaSessionIn {
	from { opacity: 0; transform: translateY(24px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pta-session-icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pta-session-icon--warning { color: #f59e0b; }
.pta-session-icon--expired  { color: #dc2626; }
.pta-session-title {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	margin: 0 0 8px;
}
.pta-session-text {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin: 0 0 24px;
}

.pta-session-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pta-session-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, box-shadow .2s;
}
.pta-session-btn--primary {
	background: #1565C0;
	color: #fff;
	box-shadow: 0 2px 8px rgba(21, 101, 192, .3);
}
.pta-session-btn--primary:hover {
	background: #1976D2;
	box-shadow: 0 4px 12px rgba(21, 101, 192, .4);
}
.pta-session-btn--secondary {
	background: #f5f5f5;
	color: #555;
}
.pta-session-btn--secondary:hover {
	background: #e8e8e8;
	color: #333;
}

@media (max-width: 480px) {
	.pta-session-box { padding: 28px 20px 24px; }
	.pta-session-icon { font-size: 40px; }
	.pta-session-title { font-size: 18px; }
}

/* ─── Page break visivo negli articoli inclusi (insertarticle) ─────────────── */
.insertarticle-pagebreak {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0 20px;
}
.insertarticle-pagebreak::before,
.insertarticle-pagebreak::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #d1d5db;
}
.insertarticle-pagebreak-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: #9ca3af;
	white-space: nowrap;
}

/* ─── Immagini float negli articoli ──────────────────────────────────────── */
/* Classi generate da TinyMCE / editor Joomla (Align left / Align right)     */
img.img-intro-left,
img.image-left,
img[style*="float: left"],
img[style*="float:left"] {
	float: left;
	margin: 0 20px 16px 0;
	max-width: 50%;
	height: auto;
	border-radius: 6px;
}
img.img-intro-right,
img.image-right,
img[style*="float: right"],
img[style*="float:right"] {
	float: right;
	margin: 0 0 16px 20px;
	max-width: 50%;
	height: auto;
	border-radius: 6px;
}
@media (max-width: 600px) {
	img.img-intro-left,
	img.image-left,
	img[style*="float: left"],
	img[style*="float:left"],
	img.img-intro-right,
	img.image-right,
	img[style*="float: right"],
	img[style*="float:right"] {
		float: none;
		display: block;
		max-width: 100%;
		margin: 0 0 16px 0;
	}
}
