/* FONT */
@font-face {
	font-family: 'TasaOrbiterDisplay';
	src: url('../fonts/TASAOrbiterDisplay-Regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'TasaOrbiterDisplay';
	src: url('../fonts/TASAOrbiterDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'TasaOrbiterDisplay';
	src: url('../fonts/TASAOrbiterDisplay-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'TasaOrbiterDisplay';
	src: url('../fonts/TASAOrbiterDisplay-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'TasaOrbiterDisplay';
	src: url('../fonts/TASAOrbiterDisplay-Black.woff2') format('woff2');
	font-weight: 800;
	font-display: swap;
}



/* RESET BASE */
html, body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	height: 100%;
	font-family: "TasaOrbiterDisplay", sans-serif !important;
	background: #000000 !important;
}
body {
	background-color: #000000;
}
header#site-header {
	display: none;
}


/* DESKTOP ROOT */
#desktop {
	position: relative;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background-image: url('../img/background-desktop.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}


/* LAYER ICONE */
#desktop-icons {
	position: absolute;
	inset: 0;
	pointer-events: none;
}


/* ICONA DESKTOP */
.desktop-icon {
	position: absolute;
	width: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	cursor: default;
	pointer-events: auto;
	user-select: none;
}


/* IMMAGINE ICONA */
.desktop-icon img {
	width: 100%;
	height: auto;
	pointer-events: none;
}
.desktop-icon[data-file-diretto] img {
	width: 60px;
}


/* TESTO ICONA */
.desktop-icon span {
	font-size: 14px;
	line-height: 1.1em;
	font-weight: 400;
	color: white;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


/* HOVER ICONA */
.desktop-icon:hover {
	transform: scale(1.05);
}


/* DOCK */
#dock {
	position: absolute;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 16px;
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}


/* ICONA DOCK */
.dock-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
	position: relative;
}
.dock-icon img {
	width: 100%;
	height: 100%;
}
span.badgeApp {
	font-size: 14px;
	line-height: 1em;
	font-weight: 500;
	position: absolute;
	top: -28px;
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(20px);
	padding: 4px 8px;
	border-radius: 4px;
	color: #000;
	transition: 0.3s ease-in-out;
	opacity: 0;
	visibility: hidden;
}
.dock-icon:hover .badgeApp {
	opacity: 1;
	visibility: visible;
	top: -35px;
}
span.badgeApp:before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid rgba(255,255,255,0.8);
	position: absolute;
	bottom: -4px;
	right: calc(50% - 4px);
}
.dock-icon.notifica:before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	background: #DA2727;
	border-radius: 10px;
	position: absolute;
	top: -2px;
	right: -3px;
}

/* PALLINO APP APERTA */
.dock-icon::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%) scale(0);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255,255,255,0.85);
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dock-icon.running::after {
	transform: translateX(-50%) scale(1);
}


/* CONTAINER FINESTRE */
#windows-container {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

@keyframes window-open {
	from {
		opacity: 0;
		transform: scale(0.85);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes window-close {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(0.85);
	}
}

@keyframes window-minimize {
	from {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	to {
		opacity: 0;
		transform: scale(0.6) translateY(60px);
	}
}

@keyframes window-unminimize {
	from {
		opacity: 0;
		transform: scale(0.6) translateY(60px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}


/* FINESTRA BASE */
.window {
	position: absolute;
	width: 700px;
	height: 500px;
	background: #1e1e1e;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
	overflow: hidden;
	pointer-events: auto;
	transition:
		top    0.3s cubic-bezier(0.4, 0, 0.2, 1),
		left   0.3s cubic-bezier(0.4, 0, 0.2, 1),
		width  0.3s cubic-bezier(0.4, 0, 0.2, 1),
		height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	animation: window-open 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	transform-origin: center center;
}
.window.is-dragging {
	transition: none !important;
}
.window.is-closing {
	animation: window-close 0.18s ease-in forwards;
	pointer-events: none;
}
.window.is-minimizing {
	animation: window-minimize 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
	pointer-events: none;
}
.window.is-unminimizing {
	animation: window-unminimize 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}


/* HEADER FINESTRA */
.window-header {
	height: 40px;
	background: rgba(40,40,40,0.9);
	display: flex;
	align-items: center;
	padding: 0 10px;
}


/* CONTROLS */
.window-controls {
	display: flex;
	gap: 8px;
}


/* BOTTONI MAC */
.control {
	width: 13px;
	height: 13px;
	border-radius: 50%;
}
.control:before {
	content: '';
	display: block;
	width: 13px;
	height: 13px;
	border-radius: 50px;
	background-image: url();
	background-position: center;
	background-repeat: no-repeat;
	background-size: 7px;
	opacity: 0;
	transition: 0.1s ease-in-out;
}
.control:hover:before {
	opacity: 1;
}
.control.close {
	background: #ff5f57;
}
.control.minimize {
	background: #febc2e;
}
.control.maximize {
	background: #28c840;
}
.control.close:before {
	background-image: url(/wp-content/themes/hello-elementor-child/assets/img/close_small.svg);
}
.control.minimize:before {
	background-image: url(/wp-content/themes/hello-elementor-child/assets/img/minimize_small.svg);
}
.control.maximize:before {
	background-image: url(/wp-content/themes/hello-elementor-child/assets/img/maximize_small.svg);
	background-size: 10px;
}


/* TITOLO */
.window-title {
	margin-left: 12px;
	color: white;
	font-size: 13px;
	display: none;
}


/* BODY FINESTRA */
.window-body {
	padding: 20px;
	color: white;
	height: calc(100% - 40px);
	overflow-y: auto;
}

/* SAFARI BODY — rimuove padding dal window-body */
.safari-body {
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
}


/* SAFARI TOOLBAR */
.safari-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 12px;
	background: #2a2a2a;
	border-bottom: 1px solid #3a3a3a;
	flex-shrink: 0;
	/* Rende la toolbar draggable al posto dell'header nascosto */
	cursor: grab;
}
.safari-toolbar:active {
	cursor: grabbing;
}
/* I controls dentro la toolbar non devono ereditare il cursore grab */
.safari-toolbar .window-controls {
	cursor: default;
	flex-shrink: 0;
}


/* BOTTONI NAV (back, forward, reload) */
.safari-nav-btn {
	background: none;
	border: none;
	color: #aaa;
	font-size: 16px;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 4px;
	line-height: 1;
	transition: color 0.15s, background 0.15s;
}
.safari-nav-btn:hover {
	color: white;
	background: rgba(255,255,255,0.1);
}


/* BARRA URL */
.safari-urlbar {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #3a3a3a;
	border-radius: 8px;
	padding: 0 10px;
	height: 28px;
}

.safari-favicon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.safari-url-input {
	flex: 1;
	background: none;
	border: none !important;
	padding: 0px 8px !important;
	outline: none;
	color: #e0e0e0;
	font-size: 12px;
	font-family: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
button.safari-nav-btn:focus {
	background-color: rgba(255,255,255,0.1);
}


/* IFRAME SAFARI */
.safari-frame {
	flex: 1;
	width: 100%;
	border: none;
	background: white;
	display: block;
}


/* PREVIEW */
.preview-frame {
	width: 100%;
	height: 100%;
	border: none;
	background: white;
}

.preview-image-wrap {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #141414;
	overflow: auto;
}

.preview-image {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
}


/* FINESTRA MINIMIZZATA */
.window.minimized .window-body {
	display: none;
}
.window.minimized .safari-toolbar {
	display: none;
}
.window.minimized .finder-body {
	display: none;
}


/* ========================= */
/* APP NOTE                  */
/* ========================= */

.notes-body {
	padding: 0 !important;
	overflow: hidden !important;
	height: calc(100% - 40px);
}

.notes-app {
	display: flex;
	height: 100%;
	background: #1e1e1e;
	overflow: hidden;
}

/* SIDEBAR */
.notes-sidebar {
	width: 220px;
	min-width: 220px;
	background: #242424;
	border-right: 1px solid rgba(255,255,255,0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.notes-sidebar-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,0.3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 16px 16px 8px;
	flex-shrink: 0;
}

.notes-list {
	flex: 1;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.notes-item {
	padding: 10px 14px;
	cursor: default;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	transition: background 0.1s;
}

.notes-item:hover {
	background: rgba(255,255,255,0.05);
}

.notes-item.active {
	background: rgb(154 106 255 / 12%);
	border-left: 3px solid #9A6AFF;
}

.notes-item-title {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.9);
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.notes-item-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.notes-item-date {
	font-size: 10px;
	color: rgba(255,255,255,0.3);
}

.notes-item-preview {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.notes-empty-item {
	padding: 20px 16px;
	font-size: 12px;
	color: rgba(255,255,255,0.25);
}

/* MAIN */
.notes-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.notes-empty-state {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.2);
	font-size: 13px;
}

.notes-detail {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px 28px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.notes-detail-title {
	font-size: 20px;
	font-weight: 700;
	color: rgba(255,255,255,0.95);
	margin-bottom: 4px;
}

.notes-detail-date {
	font-size: 11px;
	color: rgba(255,255,255,0.3);
	margin-bottom: 20px;
}

.notes-detail-content {
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
}

.notes-detail-content p {
	margin: 0 0 12px;
}

.notes-detail-content strong, .notes-detail-content b {
	color: rgba(255,255,255,0.95);
	font-weight: 600;
}

.notes-detail-content em, .notes-detail-content i {
	color: rgba(255,255,255,0.5);
}

.notes-detail-content ul, .notes-detail-content ol {
	padding-left: 20px;
	margin: 0 0 12px;
}

.notes-detail-content li {
	margin-bottom: 4px;
}

.notes-detail-content a {
	color: #9A6AFF;
	text-decoration: none;
}
.notes-detail-content a:hover {
	text-decoration: underline;
	color: #5F36B5;
}


/* ========================= */
/* NOTA RAPIDA               */
/* ========================= */

#quick-note {
	position: absolute;
	top: 40px;
	right: 40px;
	width: 220px;
	background: #1e1e1e;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 50;
	border: 0.5px solid rgb(255 255 255 / 30%);
}

.quick-note-header {
	height: 28px;
	background: #9A6AFF;
	display: flex;
	align-items: center;
	padding: 0 10px;
	cursor: grab;
	user-select: none;
}

.quick-note-header:active {
	cursor: grabbing;
}

.quick-note-title {
	font-size: 12px;
	font-weight: 700;
	color: rgba(255,255,255,0.8);
	text-transform: uppercase;
}

.quick-note-status {
	margin-left: auto;
	font-size: 11px;
	color: rgba(255,255,255,0.4);
}

.quick-note-body {
	background: #1e1e1e;
	border: none;
	outline: none;
	resize: none;
	width: 100%;
	height: 160px;
	padding: 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: white;
	box-sizing: border-box;
}

.quick-note-body::placeholder {
	color: rgba(255,255,255,0.4);
}

/* ========================= */
/* APP MAIL                  */
/* ========================= */

.mail-body-wrap {
	padding: 0 !important;
	overflow: hidden !important;
	height: calc(100% - 40px);
}

.mail-app {
	display: flex;
	height: 100%;
	background: #1e1e1e;
	overflow: hidden;
}

/* SIDEBAR */
.mail-sidebar {
	width: 220px;
	min-width: 220px;
	background: #242424;
	border-right: 1px solid rgba(255,255,255,0.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mail-sidebar-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,0.3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 16px 16px 8px;
	flex-shrink: 0;
}

.mail-item {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	cursor: default;
	border-left: 3px solid transparent;
}

.mail-item.active {
	background: rgba(0, 122, 255, 0.1);
	border-left-color: #9A6AFF;
}

.mail-item-from {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.9);
	margin-bottom: 2px;
}

.mail-item-subject {
	font-size: 12px;
	color: rgba(255,255,255,0.6);
	margin-bottom: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mail-item-preview {
	font-size: 11px;
	color: rgba(255,255,255,0.3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* MAIN */
.mail-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mail-header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	flex-shrink: 0;
}

.mail-subject {
	font-size: 18px;
	font-weight: 700;
	color: rgba(255,255,255,0.95);
	margin-bottom: 12px;
}

.mail-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mail-from {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mail-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #9A6AFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: white;
	flex-shrink: 0;
}

.mail-from-info {
	display: flex;
	flex-direction: column;
}

.mail-from-name {
	font-size: 16px;
	font-weight: 600;
	color: rgba(255,255,255,0.85);
}

.mail-from-addr {
	font-size: 13px;
	color: rgba(255,255,255,0.35);
}

.mail-to {
	font-size: 13px;
	color: rgba(255,255,255,0.3);
	padding-left: 42px;
}

.mail-to span {
	color: rgba(255,255,255,0.5);
}

/* CORPO */
.mail-body {
	flex: 1;
	padding: 24px 28px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.mail-body p {
	font-size: 14px;
	line-height: 1.75;
	color: white;
	margin: 0 0 14px;
}

.mail-body em {
	color: rgba(255,255,255,0.5);
}

.mail-body a {
	color: #9A6AFF;
	text-decoration: none;
}
.mail-body a:hover {
	text-decoration: underline;
}

/* REPLY BAR */
.mail-reply-bar {
	padding: 12px 24px;
	border-top: 1px solid rgba(255,255,255,0.06);
	flex-shrink: 0;
}

.mail-reply-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #9A6AFF;
	color: white;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.mail-reply-btn:hover {
	background: #9A6AFF;
	color: white;
}

/* ========================= */
/* FIGMA PREVIEW             */
/* ========================= */

.figma-body {
	padding: 0 !important;
	overflow: hidden !important;
	height: calc(100% - 40px);
}

.figma-preview {
	display: flex;
	height: 100%;
	background: #141414;
	overflow: hidden;
}

/* SIDEBAR MINIATURE */
.figma-sidebar {
	width: 120px;
	min-width: 120px;
	background: #1e1e1e;
	border-right: 1px solid rgba(255,255,255,0.06);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
	padding: 8px 0;
}

.figma-sidebar-label {
	font-size: 10px;
	font-weight: 600;
	color: rgba(255,255,255,0.25);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 4px 10px 8px;
	flex-shrink: 0;
}

.figma-thumb {
	padding: 6px 8px;
	cursor: default;
	border-left: 3px solid transparent;
	transition: background 0.1s;
}

.figma-thumb:hover {
	background: rgba(255,255,255,0.05);
}

.figma-thumb.active {
	border-left-color: #9A6AFF;
	background: rgba(154,106,255,0.2);
}

.figma-thumb img {
	width: 100%;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	pointer-events: none;
}

/* MAIN */
.figma-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.figma-image-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 20px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.figma-main-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.figma-counter {
	text-align: center;
	font-size: 11px;
	color: rgba(255,255,255,0.25);
	padding: 6px;
	flex-shrink: 0;
}
/* FIGMA — video support */
.figma-thumb-video {
	width: 100%;
	height: 70px;
	background: #0d0d0d;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}
.figma-play {
	font-size: 22px;
	color: rgba(255,255,255,0.5);
}
.figma-thumb.active .figma-play {
	color: #9A6AFF;
}
.figma-main-video {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
	outline: none;
}

/* ========================= */
/* RESPONSIVE — MOBILE       */
/* ========================= */

@media (max-width: 768px) {

	/* Dock più compatto */
	#dock {
		gap: 8px;
		padding: 8px 10px;
		bottom: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}
	.dock-icon {
		width: 44px;
		height: 44px;
	}
	.badgeApp {
		display: none;
	}

	/* Icone desktop più grandi per il touch */
	.desktop-icon {
		width: 64px;
	}
	.desktop-icon span {
		font-size: 14px;
	}

	/* Finestre a tutto schermo su mobile */
	.window {
		border-radius: 8px;
	}

	/* Note sidebar più stretta */
	.notes-sidebar {
		width: 160px;
		min-width: 160px;
	}

	/* Mail sidebar più stretta */
	.mail-sidebar {
		width: 160px;
		min-width: 160px;
		display: none;
	}
	.mail-header {
		padding: 20px 16px 16px;
	}
	.mail-body {
		padding: 24px 16px;
	}
	.mail-reply-bar {
		padding: 16px;
	}

	/* Figma sidebar più stretta */
	.figma-sidebar {
		width: 80px;
		min-width: 80px;
	}

	/* Nota rapida più piccola */
	#quick-note {
		width: 148px;
		right: 20px !important
	}
	.quick-note-body {
		height: 100px;
		/* Mantieni 16px per evitare zoom iOS, ma scala visivamente a ~14px */
		font-size: 16px;
		transform: scale(0.875);
		transform-origin: top left;
		width: calc(100% / 0.875);
	}

}

/* ========================= */
/* NOTE — MOBILE             */
/* ========================= */

.notes-mobile {
	flex-direction: column;
}

.notes-mobile-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.notes-mobile-item {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	cursor: default;
	gap: 8px;
}

.notes-mobile-item:active {
	background: rgba(255,255,255,0.05);
}

.notes-mobile-item-inner {
	flex: 1;
	min-width: 0;
}

.notes-mobile-chevron {
	font-size: 18px;
	color: rgba(255,255,255,0.25);
	flex-shrink: 0;
}

.notes-mobile-detail {
	display: none;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.notes-mobile-back {
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #ffc900;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	cursor: default;
	flex-shrink: 0;
}

.notes-mobile-back:active {
	opacity: 0.7;
}

.notes-mobile-detail .notes-detail-title {
	padding: 20px 16px 4px;
	font-size: 20px;
	line-height: 1em;
	font-weight: 700;
	color: white;
}

.notes-mobile-detail .notes-detail-date {
	padding: 0 16px 12px;
	font-size: 11px;
	color: rgba(255,255,255,0.3);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notes-mobile-detail .notes-detail-content {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}


/* ========================= */
/* TERMINAL WINDOW           */
/* ========================= */

.terminal-body-wrap {
	padding: 0 !important;
	overflow: hidden !important;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.terminal-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #1a1a1a;
}

.terminal-topbar {
	height: 40px;
	background: #2a2a2a;
	display: flex;
	align-items: center;
	padding: 0 12px;
	gap: 12px;
	flex-shrink: 0;
	cursor: grab;
}
.terminal-topbar:active {
	cursor: grabbing;
}
.terminal-topbar .window-controls {
	cursor: default;
	flex-shrink: 0;
}
.terminal-title {
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	flex: 1;
	text-align: center;
	font-family: monospace;
}

.terminal-body {
	flex: 1;
	padding: 16px 20px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
	font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
	font-size: 13px;
	line-height: 1.8;
}

.terminal-line {
	display: block;
	white-space: pre-wrap;
	word-break: break-word;
}

.terminal-prompt {
	color: #00c45a;
	font-weight: 600;
}

.terminal-cmd {
	color: rgba(255,255,255,0.75);
}

.terminal-output-line {
	color: rgba(255,255,255,0.7);
	padding-left: 4px;
}

.terminal-key {
	color: #00c45a;
	font-weight: 600;
}

.terminal-sep {
	color: rgba(255,255,255,0.3);
}

.terminal-val {
	color: rgba(255,255,255,0.85);
}

.terminal-cursor {
	color: #00c45a;
	animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0; }
}

/* ========================= */
/* PHOTOS APP                */
/* ========================= */

.photos-body {
	padding: 0 !important;
	overflow: hidden !important;
	height: calc(100% - 40px);
}

.photos-app {
	width: 100%;
	height: 100%;
	position: relative;
	background: #111;
	overflow: scroll;
}

/* GRIGLIA */
.photos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	padding: 24px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
	align-content: start;
}

.photos-thumb {
	aspect-ratio: 4/5;
	overflow: hidden;
	cursor: default;
	background: #1a1a1a;
	border-radius: 8px;
	cursor: pointer;
}

.photos-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.15s;
	pointer-events: none;
}

.photos-thumb:hover img {
	opacity: 0.85;
}

/* Thumbnail video */
.photos-thumb-loading {
	width: 100%;
	height: 100%;
	background: #1a1a1a;
	animation: photos-pulse 1.2s ease-in-out infinite;
}

@keyframes photos-pulse {
	0%, 100% { opacity: 0.4; }
	50%       { opacity: 0.8; }
}

.photos-thumb-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: white;
	text-shadow: 0 1px 8px rgba(0,0,0,0.8);
	pointer-events: none;
}

.photos-thumb {
	position: relative;
}

.photos-thumb-novideo {
	width: 100%;
	height: 100%;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photos-thumb-play-big {
	font-size: 28px;
	color: rgba(255,255,255,0.4);
}

/* LIGHTBOX */
.photos-lightbox {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.photos-lb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.92);
}

.photos-lb-wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90%;
	max-height: 90%;
	gap: 10px;
}

.photos-lb-img,
.photos-lb-video {
	max-width: 100%;
	max-height: 65vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.7);
	display: block;
}

.photos-lb-media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.photos-lb-caption {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	text-align: center;
}

.photos-lb-counter {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	color: rgba(255,255,255,0.3);
	z-index: 2;
}

.photos-lb-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 2;
	background: rgba(255,255,255,0.1);
	border: none;
	color: white;
	font-size: 0px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	padding: 0;
	background-image: url(https://dello.dev/wp-content/themes/hello-elementor-child/assets/img/icon_CloseLightbox.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 8px;
}
.photos-lb-close:hover {
	background-color: rgba(255,255,255,0.2);
}
.photos-lb-close:focus {
	background-color: #9A6AFF;
}

.photos-lb-prev,
.photos-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255,255,255,0.1);
	border: none;
	color: white;
	font-size: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	line-height: 1;
}
.photos-lb-prev {
	background-image: url(https://dello.dev/wp-content/themes/hello-elementor-child/assets/img/icon_ArrowPrev.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 7px;
	left: 12px;
}
.photos-lb-next {
	background-image: url(https://dello.dev/wp-content/themes/hello-elementor-child/assets/img/icon_ArrowNext.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 7px;
	right: 12px;
}
.photos-lb-prev:hover,
.photos-lb-next:hover {
	background-color: rgba(255,255,255,0.2) !important;
}
.photos-lb-prev:focus,
.photos-lb-next:focus {
	background-color: #9A6AFF !important;
}

@media (max-width: 768px) {
	.photos-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.photos-lb-prev { left: 6px; }
	.photos-lb-next { right: 6px; }
}