/* =========================================================
   Giro Alto — Blog styles (child theme de Twenty Twenty-Three)
   ========================================================= */

/* Base */
body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: #111318;
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.single-post,
body.blog,
body.home {
	background: #ffffff;
}

/* ---------- Header ---------- */
.giroalto-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
	border-bottom: 1px solid #cbd5e1;
	backdrop-filter: saturate(180%) blur(8px);
}

.giroalto-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	height: 80px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.giroalto-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: opacity 0.2s;
}

.giroalto-logo:hover {
	opacity: 0.8;
}

.giroalto-logo img {
	height: 40px;
	width: auto;
	object-fit: contain;
	display: block;
}

.giroalto-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.giroalto-nav a {
	font-family: 'Sora', system-ui, -apple-system, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #475569;
	text-decoration: none;
	transition: color 0.2s;
	line-height: 1;
}

.giroalto-nav a:hover,
.giroalto-nav a.is-active {
	color: #0097b2;
}

@media (max-width: 640px) {
	.giroalto-header-inner {
		height: 64px;
		padding: 0 16px;
		gap: 16px;
	}
	.giroalto-logo img {
		height: 30px;
	}
	.giroalto-nav {
		gap: 16px;
	}
	.giroalto-nav a {
		font-size: 0.6875rem;
		letter-spacing: 0.08em;
	}
}

/* ---------- Article ---------- */
.giroalto-article {
	max-width: 100% !important;
}

.giroalto-article .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
}

.giroalto-article > .wp-block-post-title,
.giroalto-article .wp-block-post-title {
	font-family: 'Sora', system-ui, -apple-system, sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.1 !important;
	color: #111318 !important;
}

.giroalto-article-meta {
	align-items: center;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	padding: 16px 0;
}

.giroalto-article-meta > * {
	margin: 0 !important;
}

.giroalto-article .wp-block-post-content {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1e293b;
}

.giroalto-article .wp-block-post-content > * + * {
	margin-top: 1.25rem;
}

.giroalto-article .wp-block-post-content p {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1e293b;
	margin-bottom: 0;
}

.giroalto-article .wp-block-post-content h2 {
	font-family: 'Sora', system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-top: 2.5rem !important;
	margin-bottom: 1rem !important;
	color: #111318;
}

.giroalto-article .wp-block-post-content h3 {
	font-family: 'Sora', system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.3;
	margin-top: 2rem !important;
	margin-bottom: 0.75rem !important;
	color: #111318;
}

.giroalto-article .wp-block-post-content a {
	color: #0097b2;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color 0.2s;
}

.giroalto-article .wp-block-post-content a:hover {
	color: #111318;
	text-decoration-thickness: 2px;
}

.giroalto-article .wp-block-post-content blockquote {
	margin: 2rem 0;
	padding: 20px 24px;
	border-left: 4px solid #0097b2;
	background: #f8fafc;
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #334155;
}

.giroalto-article .wp-block-post-content ul,
.giroalto-article .wp-block-post-content ol {
	padding-left: 1.5rem;
}

.giroalto-article .wp-block-post-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}

.giroalto-article .wp-block-post-content img,
.giroalto-article .wp-block-post-content figure {
	border-radius: 8px;
}

.giroalto-article .wp-block-post-content pre,
.giroalto-article .wp-block-post-content code {
	font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 6px;
}

.giroalto-article .wp-block-post-content pre {
	padding: 20px 24px;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}

.giroalto-article .wp-block-post-content :not(pre) > code {
	padding: 2px 6px;
	font-size: 0.875em;
}

/* ---------- Blog home / listing ---------- */
.giroalto-blog-home h1.wp-block-heading {
	font-family: 'Sora', system-ui, -apple-system, sans-serif;
	font-weight: 800;
	font-size: clamp(2.5rem, 6vw, 4rem);
	letter-spacing: -0.03em;
	line-height: 1;
	text-transform: uppercase;
	color: #111318;
}

.giroalto-post-grid .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

@media (max-width: 900px) {
	.giroalto-post-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.giroalto-post-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

.giroalto-post-card {
	display: flex;
	flex-direction: column;
}

.giroalto-post-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 0;
}

.giroalto-post-card .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.giroalto-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.giroalto-post-card .wp-block-post-title {
	font-family: 'Sora', system-ui, -apple-system, sans-serif !important;
	font-weight: 700 !important;
	font-size: 1.25rem !important;
	line-height: 1.25 !important;
	color: #111318 !important;
	margin: 12px 0 0 !important;
	letter-spacing: -0.01em;
}

.giroalto-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.giroalto-post-card .wp-block-post-title a:hover {
	color: #0097b2;
}

.giroalto-post-card .wp-block-post-date,
.giroalto-post-card .wp-block-post-date time {
	font-family: 'Sora', system-ui, -apple-system, sans-serif;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #0097b2 !important;
}

.giroalto-post-card .wp-block-post-excerpt {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #475569;
}

.giroalto-post-card .wp-block-post-excerpt__more-link {
	display: none;
}

/* Pagination */
.wp-block-query-pagination {
	margin-top: 60px !important;
	gap: 8px !important;
	font-family: 'Sora', system-ui, sans-serif;
	font-weight: 600;
}

.wp-block-query-pagination a,
.wp-block-query-pagination-numbers .page-numbers {
	color: #475569;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.wp-block-query-pagination a:hover {
	color: #0097b2;
	background: #f1f5f9;
}

.wp-block-query-pagination-numbers .current {
	background: #0097b2;
	color: #ffffff;
	padding: 8px 12px;
	border-radius: 4px;
}

/* ---------- Author card ---------- */
.giroalto-author-card {
	align-items: center;
}

.giroalto-author-card .wp-block-avatar img {
	border-radius: 50%;
	width: 72px;
	height: 72px;
	object-fit: cover;
	display: block;
}

.giroalto-author-card .wp-block-post-author-name {
	margin: 0 !important;
	font-family: 'Sora', system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	color: #111318;
	line-height: 1.2;
}

.giroalto-author-card .wp-block-post-author-name a {
	color: inherit;
	text-decoration: none;
}

.giroalto-author-card .wp-block-post-author-name a:hover {
	color: #0097b2;
}

.giroalto-author-card .wp-block-post-author-biography {
	margin: 4px 0 0 !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #475569;
}

/* Author name em linha no meta-row do topo */
.giroalto-article-meta .wp-block-post-author-name {
	font-family: 'Sora', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
	margin: 0 !important;
}

.giroalto-article-meta .wp-block-post-author-name::before {
	content: "Por ";
	color: #94a3b8;
	font-weight: 500;
}

/* ---------- Comments ---------- */
.giroalto-comments {
	border-top: 1px solid #e2e8f0;
	padding-top: 40px;
}

.giroalto-comments .wp-block-comments-title {
	font-family: 'Sora', system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	color: #111318;
	margin: 0 0 28px !important;
	letter-spacing: -0.01em;
}

.giroalto-comments .wp-block-comment-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

.giroalto-comments .wp-block-comment-template > li {
	padding: 20px 0;
	border-bottom: 1px solid #f1f5f9;
}

.giroalto-comments .wp-block-comment-template > li:last-child {
	border-bottom: none;
}

.giroalto-comments .wp-block-comment-template .wp-block-columns {
	gap: 16px;
	margin-bottom: 0;
}

.giroalto-comments .wp-block-avatar img {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	object-fit: cover;
	display: block;
}

.giroalto-comments .wp-block-comment-author-name {
	font-family: 'Sora', system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	color: #111318;
	margin: 0 !important;
	line-height: 1.3;
}

.giroalto-comments .wp-block-comment-author-name a {
	color: inherit;
	text-decoration: none;
}

.giroalto-comments .wp-block-comment-author-name a:hover {
	color: #0097b2;
}

.giroalto-comments .wp-block-comment-date {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0 !important;
	font-family: 'Inter', system-ui, sans-serif;
}

.giroalto-comments .wp-block-comment-content {
	margin-top: 8px !important;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #1e293b;
}

.giroalto-comments .wp-block-comment-content p {
	margin: 0 0 0.5rem !important;
	line-height: 1.65;
}

.giroalto-comments .wp-block-comment-reply-link {
	margin-top: 8px !important;
	font-family: 'Sora', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.giroalto-comments .wp-block-comment-reply-link a {
	color: #0097b2;
	text-decoration: none;
}

.giroalto-comments .wp-block-comment-reply-link a:hover {
	text-decoration: underline;
}

/* Reply thread indentation */
.giroalto-comments .wp-block-comment-template .wp-block-comment-template {
	margin-top: 16px;
	padding-left: 24px;
	border-left: 2px solid #e2e8f0;
}

/* Comment form */
.giroalto-comments .wp-block-post-comments-form {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e2e8f0;
}

.giroalto-comments .comment-reply-title,
.giroalto-comments #reply-title {
	font-family: 'Sora', system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	color: #111318;
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.giroalto-comments .comment-form label {
	display: block;
	font-family: 'Sora', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #475569;
	margin-bottom: 6px;
}

.giroalto-comments .comment-form input[type="text"],
.giroalto-comments .comment-form input[type="email"],
.giroalto-comments .comment-form input[type="url"],
.giroalto-comments .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9375rem;
	color: #111318;
	background: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
	margin-bottom: 18px;
}

.giroalto-comments .comment-form input:focus,
.giroalto-comments .comment-form textarea:focus {
	outline: none;
	border-color: #0097b2;
	box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.15);
}

.giroalto-comments .comment-form textarea {
	min-height: 120px;
	resize: vertical;
	line-height: 1.6;
}

.giroalto-comments .comment-form .form-submit {
	margin-top: 8px;
}

.giroalto-comments .comment-form input[type="submit"],
.giroalto-comments .comment-form .submit {
	background: #0097b2;
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	font-family: 'Sora', system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.giroalto-comments .comment-form input[type="submit"]:hover {
	background: #007a8f;
}

.giroalto-comments .comment-form input[type="submit"]:active {
	transform: translateY(1px);
}

.giroalto-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 16px;
}

.giroalto-comments .comment-form-cookies-consent label {
	font-weight: 400;
	font-size: 0.8125rem;
	text-transform: none;
	letter-spacing: 0;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.giroalto-comments .comment-notes,
.giroalto-comments .logged-in-as {
	font-size: 0.8125rem;
	color: #64748b;
	margin-bottom: 20px;
}

.giroalto-comments .logged-in-as a,
.giroalto-comments .comment-notes a {
	color: #0097b2;
	text-decoration: none;
}

.giroalto-comments .no-comments,
.giroalto-comments .comments-closed {
	font-size: 0.9375rem;
	color: #64748b;
	text-align: center;
	padding: 24px 0;
}

/* ---------- Footer ---------- */
.giroalto-footer {
	width: 100%;
	padding: 60px 24px;
	background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
	border-top: 1px solid #cbd5e1;
	margin-top: 80px;
}

.giroalto-footer-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.giroalto-footer-logo img {
	height: 36px;
	width: auto;
	object-fit: contain;
}

.giroalto-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.giroalto-footer-nav a {
	font-family: 'Sora', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
	text-decoration: none;
	transition: color 0.2s;
}

.giroalto-footer-nav a:hover {
	color: #0097b2;
}

.giroalto-footer-copy {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0;
}

/* Hide default TwentyTwentyThree site title/tagline if they somehow leak */
.wp-block-site-title,
.wp-block-site-tagline {
	display: none;
}
