/*
Theme Name: Lista Avocati Blog
Theme URI: https://lista-avocati.ro/blog/
Description: Child theme for the Lista Avocati blog, visually integrated with the main site.
Author: GitHub Copilot
Template: generatepress
Version: 1.0.0
Text Domain: lista-avocati-blog
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--la-background: #ede5dc;
	--la-foreground: #342820;
	--la-card: #ffffff;
	--la-primary: #452214;
	--la-primary-foreground: #ead8b8;
	--la-accent: #d4a574;
	--la-accent-foreground: #2b1810;
	--la-muted: #d4cec4;
	--la-muted-foreground: #6f6259;
	--la-border: #d8d0c5;
	--la-shadow: 0 18px 48px rgba(43, 24, 16, 0.12);
	--la-shadow-soft: 0 8px 24px rgba(43, 24, 16, 0.08);
	--la-radius: 18px;
	--la-container: 1200px;
}

body {
	background: var(--la-background);
	color: var(--la-foreground);
	font-family: 'Inter', system-ui, sans-serif;
}

body.admin-bar .la-wa-widget {
	top: auto;
}

body .site,
body .site-content,
body .content-area,
body .site-main {
	background: transparent;
}

h1,
h2,
h3,
h4,
.entry-title,
.widget-title,
.la-brand,
.la-hero-title,
.la-section-title,
.la-cta-title {
	font-family: 'DM Serif Display', serif;
	letter-spacing: 0.01em;
}

a {
	color: var(--la-primary);
}

a:hover {
	color: var(--la-accent-foreground);
}

.inside-header,
.site-content,
.inside-footer-widgets,
.inside-site-info,
.separate-containers .inside-article,
.widget-area .widget,
.one-container .site-content,
.separate-containers .comments-area,
.separate-containers .page-header,
.paging-navigation,
.site-main .paging-navigation {
	max-width: var(--la-container);
	margin-left: auto;
	margin-right: auto;
}

.site.grid-container {
	max-width: none;
}

.site-content {
	padding: 40px 20px 0;
}

.la-shell {
	max-width: var(--la-container);
	margin: 0 auto;
	padding: 0 20px;
}

.la-topbar {
	background: linear-gradient(180deg, rgba(69, 34, 20, 0.98), rgba(43, 24, 16, 0.98));
	border-bottom: 2px solid var(--la-accent);
	box-shadow: var(--la-shadow-soft);
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(14px);
}

.la-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
}

.la-brand-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.la-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 1px solid var(--la-accent);
	border-radius: 10px;
	color: var(--la-accent);
	font-size: 1.125rem;
	line-height: 1;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.04);
}

.la-brand::before {
	content: "§";
	font-size: 1rem;
	line-height: 1;
}

.la-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.la-nav a {
	color: var(--la-primary-foreground);
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.la-nav a:hover,
.la-nav a:focus {
	background: rgba(255, 255, 255, 0.08);
	color: #fff7eb;
	transform: translateY(-1px);
}

.site-main > *:first-child {
	margin-top: 0;
}

.la-hero {
	position: relative;
	overflow: hidden;
	padding: 40px;
	border-radius: 28px;
	background:
		radial-gradient(circle at top right, rgba(212, 165, 116, 0.28), transparent 34%),
		linear-gradient(135deg, rgba(69, 34, 20, 0.98), rgba(43, 24, 16, 0.92));
	color: #f8efe4;
	box-shadow: var(--la-shadow);
	margin-bottom: 32px;
}

.la-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(transparent 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 60px 60px;
	opacity: 0.2;
	pointer-events: none;
}

.la-hero-inner,
.la-post-hero-inner {
	position: relative;
	z-index: 1;
}

.la-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--la-accent);
	margin-bottom: 18px;
}

.la-hero-title,
.la-post-title {
	font-size: clamp(2.3rem, 5vw, 4.5rem);
	line-height: 1.05;
	margin: 0 0 16px;
	color: #fff7eb;
}

.la-hero-copy,
.la-post-summary {
	max-width: 760px;
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(248, 239, 228, 0.88);
	margin-bottom: 22px;
}

.la-actions,
.la-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.la-button,
.la-button:visited,
body .wp-block-button__link.la-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-shadow: var(--la-shadow-soft);
}

.la-button:hover,
.la-button:focus {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(43, 24, 16, 0.14);
}

.la-button-primary,
.la-button-primary:visited {
	background: var(--la-accent);
	color: var(--la-accent-foreground);
}

.la-button-secondary,
.la-button-secondary:visited {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(234, 216, 184, 0.5);
	color: #fff7eb;
}

.la-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 36px;
}

.la-card,
.separate-containers .inside-article,
.widget-area .widget,
.separate-containers .comments-area,
.separate-containers .page-header {
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(216, 208, 197, 0.8);
	border-radius: 24px;
	box-shadow: var(--la-shadow-soft);
	backdrop-filter: blur(12px);
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header {
	padding: 32px;
	margin-bottom: 28px;
}

.la-card {
	padding: 28px;
}

.la-section-title {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	line-height: 1.1;
	margin: 0 0 20px;
	color: var(--la-primary);
}

.la-meta-row,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	font-size: 0.9rem;
	color: var(--la-muted-foreground);
	margin-bottom: 18px;
}

.la-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.la-chip-list a {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(69, 34, 20, 0.06);
	border: 1px solid rgba(69, 34, 20, 0.1);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--la-primary);
}

.la-chip-list a:hover {
	background: rgba(212, 165, 116, 0.22);
	border-color: rgba(212, 165, 116, 0.4);
}

.la-wa-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
}

.la-wa-panel {
	width: min(320px, calc(100vw - 32px));
	background: #ffffff;
	border: 1px solid rgba(216, 208, 197, 0.9);
	border-radius: 18px;
	box-shadow: 0 22px 48px rgba(43, 24, 16, 0.18);
	overflow: hidden;
	display: none;
}

.la-wa-widget.is-open .la-wa-panel {
	display: block;
}

.la-wa-header {
	background: #075e54;
	color: #ffffff;
	padding: 16px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.la-wa-title {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
}

.la-wa-subtitle {
	margin-top: 4px;
	font-size: 0.9rem;
	line-height: 1.3;
	opacity: 0.92;
}

.la-wa-close {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 28px;
	height: 28px;
}

.la-wa-close:hover,
.la-wa-close:focus {
	color: #ffffff;
	outline: none;
}

.la-wa-body {
	padding: 16px;
	background: #e5ddd5;
}

.la-wa-bubble {
	background: #ffffff;
	border-radius: 14px;
	padding: 14px;
	box-shadow: 0 6px 16px rgba(43, 24, 16, 0.08);
}

.la-wa-bubble-label {
	font-size: 0.74rem;
	line-height: 1.2;
	color: var(--la-muted-foreground);
	margin-bottom: 6px;
	font-weight: 600;
}

.la-wa-bubble p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--la-foreground);
}

.la-wa-actions {
	padding: 16px;
	background: #ffffff;
}

.la-wa-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	border-radius: 999px;
	background: #25d366;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.la-wa-link:hover,
.la-wa-link:focus {
	background: #20bd5a;
	color: #ffffff;
	transform: translateY(-1px);
}

.la-wa-fab {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: 0;
	background: #25d366;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
	cursor: pointer;
	font-size: 1.7rem;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.la-wa-fab:hover,
.la-wa-fab:focus {
	background: #20bd5a;
	transform: translateY(-1px);
	outline: none;
}

.la-wa-fab-icon-close {
	display: none;
	font-size: 2rem;
	margin-top: -2px;
}

.la-wa-widget.is-open .la-wa-fab-icon-message {
	display: none;
}

.la-wa-widget.is-open .la-wa-fab-icon-close {
	display: inline;
}

.la-post-list,
.la-post-grid {
	display: grid;
	gap: 18px;
}

.la-post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.la-post-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(216, 208, 197, 0.84);
	box-shadow: var(--la-shadow-soft);
}

.la-post-card h3,
.la-post-card h2 {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.2;
}

.la-post-card p {
	margin: 0;
	color: var(--la-muted-foreground);
	line-height: 1.7;
}

.la-post-card .la-read-more {
	margin-top: auto;
	font-weight: 700;
	text-decoration: none;
	color: var(--la-primary);
}

.la-sidebar-stack {
	display: grid;
	gap: 20px;
}

.la-cta-band {
	padding: 28px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(255, 255, 255, 0.92));
	border: 1px solid rgba(212, 165, 116, 0.42);
	box-shadow: var(--la-shadow-soft);
}

.la-cta-title {
	font-size: 1.9rem;
	margin: 0 0 10px;
	color: var(--la-primary);
}

.la-cta-copy {
	margin: 0 0 18px;
	line-height: 1.7;
	color: var(--la-muted-foreground);
}

.la-page-links,
.la-post-links {
	display: grid;
	gap: 16px;
}

.la-page-links a,
.la-post-links a {
	text-decoration: none;
	font-weight: 700;
}

.la-post-links a:hover {
	text-decoration: underline;
}

.la-stats-band {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 32px;
}

.la-stat-card {
	padding: 22px 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.74);
	border: 1px solid rgba(216, 208, 197, 0.8);
	box-shadow: var(--la-shadow-soft);
	display: grid;
	gap: 8px;
}

.la-stat-card strong {
	font-size: 1.7rem;
	line-height: 1;
	color: var(--la-primary);
	font-family: 'DM Serif Display', serif;
}

.la-stat-card span {
	color: var(--la-muted-foreground);
	line-height: 1.6;
	font-size: 0.95rem;
}

.la-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.la-category-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(216, 208, 197, 0.84);
	box-shadow: var(--la-shadow-soft);
}

.la-category-card h3 {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.2;
}

.la-category-card p {
	margin: 0;
	color: var(--la-muted-foreground);
	line-height: 1.7;
}

.la-card-trust,
.la-card-author {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(212, 165, 116, 0.08));
	border-color: rgba(212, 165, 116, 0.26);
}

.la-trust-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 16px;
}

.la-trust-list li {
	display: grid;
	gap: 6px;
}

.la-trust-list strong {
	color: var(--la-primary);
	font-size: 1rem;
}

.la-trust-list span {
	color: var(--la-muted-foreground);
	line-height: 1.65;
	font-size: 0.94rem;
}

.la-breadcrumbs {
	margin: 8px 0 22px;
	font-size: 0.92rem;
}

.la-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	color: var(--la-muted-foreground);
}

.la-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.la-breadcrumbs li:not(:last-child)::after {
	content: '/';
	color: var(--la-muted-foreground);
}

.la-breadcrumbs a {
	text-decoration: none;
	font-weight: 600;
}

.la-breadcrumbs .current {
	color: var(--la-muted-foreground);
}

.la-sticky-sidebar {
	position: sticky;
	top: 104px;
	align-self: start;
}

.la-related-grid-container {
	margin: 14px 0 34px;
}

.la-post-hero {
	margin-bottom: 24px;
}

.la-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 28px;
	align-items: start;
}

.la-prose {
	font-size: 1.02rem;
	line-height: 1.85;
	color: var(--la-foreground);
}

.la-prose > *:first-child {
	margin-top: 0;
}

.la-prose h2,
.la-prose h3,
.la-prose h4 {
	color: var(--la-primary);
	margin-top: 1.8em;
	margin-bottom: 0.7em;
}

.la-prose p,
.la-prose ul,
.la-prose ol,
.la-prose blockquote {
	margin-bottom: 1.1em;
}

.la-prose blockquote {
	padding: 18px 22px;
	border-left: 4px solid var(--la-accent);
	background: rgba(69, 34, 20, 0.05);
	border-radius: 0 16px 16px 0;
}

.la-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(216, 208, 197, 1), transparent);
	margin: 26px 0;
	border: 0;
}

.la-site-footer {
	margin-top: 56px;
	padding: 42px 0 34px;
	border-top: 1px solid rgba(216, 208, 197, 0.95);
	background: rgba(255, 255, 255, 0.5);
}

.la-footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--la-muted-foreground);
}

.la-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
}

.la-footer-links a {
	text-decoration: none;
	color: var(--la-muted-foreground);
}

.la-footer-links a:hover {
	color: var(--la-foreground);
}

.la-hidden-admin {
	display: none !important;
}

#generate-slideout-menu,
.main-navigation,
.site-header,
.inside-site-info .menu,
.entry-header .cat-links,
.entry-header .tags-links,
.nav-links,
.post-navigation,
.comments-area,
.comment-respond,
.entry-meta .byline,
.entry-meta .comments-link,
.entry-meta .edit-link {
	display: none !important;
}

@media (max-width: 1024px) {
	.la-stats-band,
	.la-category-grid,
	.la-grid,
	.la-article-layout {
		grid-template-columns: 1fr;
	}

	.la-post-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.la-topbar-inner {
		flex-direction: column;
		justify-content: center;
		padding: 14px 0;
	}

	.la-nav {
		justify-content: center;
	}

	.la-hero,
	.separate-containers .inside-article,
	.separate-containers .comments-area,
	.separate-containers .page-header,
	.la-card,
	.la-cta-band {
		padding: 22px;
		border-radius: 22px;
	}

	.la-site-footer {
		padding-top: 34px;
	}

	.la-sticky-sidebar {
		position: static;
	}

	.site-content {
		padding-left: 16px;
		padding-right: 16px;
	}
}