/**
 * DV OPA Disclaimer — Stili
 * Brand: Digital Value / Deon theme
 * Colors: cyan #57b8e0, gradient brand, dark navy #0f1221
 * Font: Archivo (buttons), DM Sans (body)
 * border-radius: 0 (Deon convention)
 */

/* ============================================================
   Nascondi titolo e data del tema per il CPT dv_opa
   (il tema Deon li stampa fuori dal canvas Elementor)
   ============================================================ */

body.single-dv_opa .qodef-e-title,
body.single-dv_opa .entry-title,
body.single-dv_opa .entry-date,
body.single-dv_opa .qodef-info-separator-end {
	display: none !important;
}

/* ============================================================
   Overlay
   ============================================================ */

#dv-opa-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.93);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* ============================================================
   Modal container
   ============================================================ */

#dv-opa-modal {
	background: #ffffff;
	width: 90%;
	max-width: 720px;
	max-height: 90vh;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Header
   ============================================================ */

#dv-opa-modal-header {
	background: #0f1221;
	padding: 24px 32px;
	flex-shrink: 0;
}

#dv-opa-title {
	margin: 0;
	color: #ffffff;
	font-family: 'Archivo', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ============================================================
   Body
   ============================================================ */

#dv-opa-modal-body {
	padding: 28px 32px;
	overflow-y: auto;
	flex: 1 1 auto;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #2d2d2d;
}

#dv-opa-modal-body p {
	margin: 0 0 16px;
}

#dv-opa-modal-body p:last-child {
	margin-bottom: 0;
}

#dv-opa-modal-body a {
	color: #57b8e0;
	text-decoration: underline;
}

#dv-opa-modal-body a:hover {
	color: #3a9bc7;
}

/* ============================================================
   Footer / Buttons
   ============================================================ */

#dv-opa-modal-footer {
	padding: 20px 32px 28px;
	display: flex;
	gap: 16px;
	flex-shrink: 0;
	border-top: 1px solid #e8e8e8;
	background: #fafafa;
	flex-wrap: wrap;
}

.dv-opa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Archivo', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 14px 32px;
	border-radius: 0;
	cursor: pointer;
	border: none;
	outline: none;
	transition: opacity 0.2s ease, transform 0.1s ease;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}

.dv-opa-btn:focus-visible {
	outline: 2px solid #57b8e0;
	outline-offset: 2px;
}

/* Bottone Accetto — gradient brand */
.dv-opa-btn-accept {
	background: linear-gradient(45deg, #5cc3ee, #5d91ef, #5e5ef0, #947be1, #ca97d2);
	color: #ffffff;
	flex: 1 1 auto;
	min-width: 140px;
}

.dv-opa-btn-accept:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.dv-opa-btn-accept:active {
	transform: translateY(0);
}

.dv-opa-btn-accept:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

/* Bottone Non Accetto — outline trasparente */
.dv-opa-btn-reject {
	background: transparent;
	color: #0f1221;
	border: 1px solid #0f1221;
	flex: 0 0 auto;
}

.dv-opa-btn-reject:hover {
	background: #0f1221;
	color: #ffffff;
}

/* ============================================================
   Body lock quando il modal è aperto
   ============================================================ */

body.dv-opa-active {
	overflow: hidden !important;
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */

@media (max-width: 600px) {

	#dv-opa-modal-header {
		padding: 18px 20px;
	}

	#dv-opa-modal-body {
		padding: 20px 20px;
		font-size: 13px;
	}

	#dv-opa-modal-footer {
		padding: 16px 20px 20px;
		flex-direction: column;
		gap: 10px;
	}

	.dv-opa-btn {
		width: 100%;
		text-align: center;
		padding: 14px 20px;
	}

	.dv-opa-btn-accept {
		order: 1;
	}

	.dv-opa-btn-reject {
		order: 2;
	}
}
