/* Root layout */
.cucciolate-root {
	--cucc-bg: #f6f7f9;
	--cucc-card: #ffffff;
	--cucc-text: #1d2327;
	--cucc-muted: #50575e;
	--cucc-border: #dcdcde;
	--cucc-accent: #b32d2e;
	--cucc-accent-soft: #fcf0f0;
	--cucc-radius: 12px;
	--cucc-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	color: var(--cucc-text);
	font-size: 1rem;
	line-height: 1.55;
	margin: 1.5rem 0 2.5rem;
}

.cucciolate-empty {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--cucc-muted);
	background: var(--cucc-card);
	border: 1px dashed var(--cucc-border);
	border-radius: var(--cucc-radius);
}

.cucciolate-block {
	background: var(--cucc-bg);
	border-radius: var(--cucc-radius);
	padding: clamp(1rem, 2.5vw, 1.75rem);
	margin-bottom: 2rem;
}

.cucciolate-block__head {
	margin-bottom: 1.25rem;
}

.cucciolate-block__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.2;
}

.cucciolate-block__intro {
	margin: 0;
	color: var(--cucc-muted);
	max-width: 65ch;
}

/* Genitori */
.cucciolate-parents {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.cucciolate-parents {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
	}
}

.cucciolate-parent {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: var(--cucc-card);
	border: 1px solid var(--cucc-border);
	border-radius: var(--cucc-radius);
	padding: 1rem;
	box-shadow: var(--cucc-shadow);
}

.cucciolate-parent--padre {
	background: #e8f4fd;
	border-color: #d4e8f5;
}

.cucciolate-parent--madre {
	background: #fdf0f6;
	border-color: #f5dce8;
}

.cucciolate-parent__fig {
	margin: 0;
	flex: 0 0 auto;
}

.cucciolate-parent__img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--cucc-border);
}

@media (min-width: 768px) {
	.cucciolate-parent__img {
		width: 120px;
		height: 120px;
	}
}

.cucciolate-parent__body {
	min-width: 0;
}

.cucciolate-parent__label {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cucc-muted);
}

.cucciolate-parent__name {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.cucciolate-parent__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	color: var(--cucc-muted);
}

.cucciolate-parent__meta li {
	margin: 0.2rem 0;
}

.cucciolate-k {
	font-weight: 600;
	color: var(--cucc-text);
	margin-right: 0.25rem;
}

/* Summary card */
.cucciolate-summary-card {
	background: var(--cucc-card);
	border: 1px solid var(--cucc-border);
	border-radius: var(--cucc-radius);
	padding: 1rem 1.1rem 1.15rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--cucc-shadow);
}

.cucciolate-summary-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.cucciolate-summary-card__text {
	margin: 0 0 1rem;
	color: var(--cucc-muted);
	max-width: 75ch;
}

/* Liste attesa */
.cucciolate-waitlists__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.cucciolate-waitlists__intro {
	margin: 0 0 0.75rem;
	color: var(--cucc-muted);
	max-width: 75ch;
}

.cucciolate-note-hint {
	background: var(--cucc-accent-soft);
	border: 1px solid #f0c6c7;
	color: #3c434a;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.cucciolate-preno-section {
	margin-bottom: 1.5rem;
}

.cucciolate-preno-section__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.cucciolate-preno-empty {
	margin: 0;
	color: var(--cucc-muted);
	font-style: italic;
}

/* Tables */
.cucciolate-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	border: 1px solid var(--cucc-border);
	background: var(--cucc-card);
}

.cucciolate-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	font-size: 0.95rem;
}

.cucciolate-table thead th {
	text-align: left;
	background: #f0f0f1;
	color: #2c3338;
	font-weight: 600;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--cucc-border);
	white-space: nowrap;
}

.cucciolate-table tbody td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--cucc-border);
	vertical-align: top;
}

.cucciolate-table tbody tr:last-child td {
	border-bottom: none;
}

.cucciolate-td-note {
	min-width: 180px;
}

.cucciolate-badge {
	display: inline-block;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cucciolate-badge--yes {
	background: #edfaef;
	color: #1e4620;
	border: 1px solid #c7e8c9;
}

.cucciolate-badge--no {
	background: #f6f7f7;
	color: #50575e;
	border: 1px solid var(--cucc-border);
}

/* Mobile card layout for tables */
@media (max-width: 640px) {
	.cucciolate-table--preno,
	.cucciolate-table--compact {
		min-width: 0;
	}

	.cucciolate-table thead {
		display: none;
	}

	.cucciolate-table tbody tr {
		display: block;
		border-bottom: 1px solid var(--cucc-border);
		padding: 0.65rem 0.75rem;
	}

	.cucciolate-table tbody tr:last-child {
		border-bottom: none;
	}

	.cucciolate-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.35rem 0;
		border: none;
	}

	.cucciolate-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--cucc-muted);
		flex: 0 0 42%;
	}
}

/* Banner sito (padding invariato = stessa “altezza” striscia) */
.cucciolate-site-banner {
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	background: #c40000;
	color: #ffffff;
	text-align: center;
	padding: 0.45rem 0.75rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

/* Link banner: colore esplicito (i temi sovrascrivono spesso le `a`) */
.cucciolate-site-banner--link,
.cucciolate-site-banner--link:link,
.cucciolate-site-banner--link:visited,
.cucciolate-site-banner--link:hover,
.cucciolate-site-banner--link:active,
.cucciolate-site-banner--link:focus {
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
}

.cucciolate-site-banner--link {
	pointer-events: auto;
	display: block;
	text-decoration: none;
	cursor: pointer;
	outline-offset: 2px;
}

.cucciolate-site-banner--link:focus-visible {
	outline: 2px solid #fff;
}

.admin-bar .cucciolate-site-banner {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .cucciolate-site-banner {
		top: 46px;
	}
}

.cucciolate-site-banner__text {
	display: inline-block;
	max-width: 100%;
	color: #ffffff;
	-webkit-text-fill-color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: 0.08em;
	font-size: clamp(1rem, 3.4vw, 1.35rem);
	animation: cucciolate-blink 1.1s step-end infinite;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 783px) {
	.cucciolate-site-banner__text {
		letter-spacing: 0.16em;
		font-size: 1.35rem;
	}
}

@keyframes cucciolate-blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cucciolate-site-banner__text {
		animation: none;
		opacity: 1;
	}
}

/* Spazio sotto banner fisso per non coprire contenuti */
body.cucciolate-has-banner {
	padding-top: 2.5rem;
}

@media (max-width: 782px) {
	body.cucciolate-has-banner {
		padding-top: 2.75rem;
	}
}
