/* WordPress integration for the approved Rodá V6 visual system. */
html {
	scroll-padding-top: 7rem;
}

body.roda-theme,
.roda-theme .wp-site-blocks {
	background: #fff;
	color: var(--ink);
}

.roda-theme .wp-site-blocks {
	padding: 0;
}

.roda-theme .wp-site-blocks > *,
.roda-theme .wp-site-blocks main > *,
.roda-theme .wp-site-blocks footer > *,
.roda-theme .wp-site-blocks header > * {
	margin-block-start: 0;
}

.roda-theme .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.roda-theme .site-header {
	padding: 0;
}

.roda-theme .header-main {
	width: 100%;
	max-width: none;
	margin: 0;
}

.roda-theme .brand,
.roda-theme .footer-brand {
	flex: 0 0 auto;
}

.roda-theme .brand img,
.roda-theme .footer-brand img {
	object-fit: contain;
}

.roda-theme .desktop-nav {
	flex: 0 0 auto;
	justify-content: flex-start;
	margin-left: auto;
}

.roda-theme .desktop-nav .wp-block-navigation__container {
	gap: clamp(0.75rem, 2vw, 1.7rem);
}

.roda-theme .desktop-nav .wp-block-navigation-item__content {
	position: relative;
	color: #e1d5c8;
	font-family: var(--sans);
	font-weight: 400;
	text-decoration: none;
}

.roda-theme.home-page .desktop-nav .wp-block-navigation-item__content {
	color: #e1d5c8;
}

.roda-theme .desktop-nav .wp-block-navigation-item__content:hover,
.roda-theme .desktop-nav .current-menu-item > .wp-block-navigation-item__content {
	color: #fff7e9;
}

.roda-theme .desktop-nav .wp-block-navigation-item__content::after {
	position: absolute;
	right: 100%;
	bottom: -0.35rem;
	left: 0;
	height: 1px;
	background: var(--red);
	content: "";
	transition: right 0.2s;
}

.roda-theme .desktop-nav .wp-block-navigation-item__content:hover::after,
.roda-theme .desktop-nav .current-menu-item > .wp-block-navigation-item__content::after {
	right: 0;
}

.roda-theme .header-actions {
	flex: 0 0 auto;
}

.roda-theme .header-reserve {
	padding: 0;
	border: 0;
}

.roda-theme .header-reserve .wp-block-button__link {
	padding: 0.7rem 1rem;
	border: 1px solid #a89f95;
	background: transparent;
	color: #f1e8dc;
	font-family: var(--sans);
	font-size: 0.85rem;
	letter-spacing: 0;
	text-transform: none;
}

.roda-theme .header-reserve .wp-block-button__link:hover {
	border-color: var(--red-dark);
	background: var(--red-dark);
	color: #fff;
}

.roda-theme.home-page .header-reserve .wp-block-button__link {
	border-color: rgba(245, 234, 216, 0.65);
	color: var(--paper);
}

.roda-theme .roda-opening-notice {
	width: 100%;
	margin: 0;
	padding: 0.35rem 1rem;
	border-bottom: 1px solid var(--rule);
	background: #fff;
	color: var(--red-dark);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-align: center;
}

.roda-theme .site-header > .roda-opening-notice {
	position: absolute;
	top: 4.9rem;
	right: clamp(1rem, 3.8vw, 3.5rem);
	z-index: 2;
	width: auto;
	padding: 0.25rem 0;
	border: 0;
	background: transparent;
	color: var(--gold);
	font-size: 0.62rem;
	text-align: right;
}

.roda-theme .wp-block-post-content,
.roda-theme .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.roda-theme .hero {
	max-width: none;
	margin: 0;
}

.roda-theme .hero-copy,
.roda-theme .hero-photo,
.roda-theme .wine-teaser,
.roda-theme .place,
.roda-theme .services,
.roda-theme .visit,
.roda-theme .story,
.roda-theme .dishes {
	max-width: none;
}

.roda-theme .hero-photo.wp-block-image,
.roda-theme .dish-photo.wp-block-image,
.roda-theme .wine-teaser-photo.wp-block-image {
	margin: 0;
}

.roda-theme .hero-photo img,
.roda-theme .dish-photo img,
.roda-theme .wine-teaser-photo img,
.roda-theme .place-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roda-theme .hero h1.roda-dynamic-hero-title em {
	display: block;
}

.roda-theme .hero h1.roda-dynamic-hero-title {
	color: var(--paper);
}

.roda-theme .hero-actions .wp-block-button__link,
.roda-theme .place .wp-block-button__link,
.roda-theme .visit .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.15rem;
	padding: 0.78rem 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--red);
	color: var(--white);
	font-family: var(--sans);
	font-size: 0.91rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}

.roda-theme .hero-actions .button-outline {
	border: 0;
}

.roda-theme .hero-actions .button-outline .wp-block-button__link {
	border: 1px solid rgba(245, 234, 216, 0.65);
	background: transparent;
	color: var(--paper);
}

.roda-theme .hero-actions .button-outline .wp-block-button__link:hover {
	background: rgba(245, 234, 216, 0.1);
}

.roda-theme .wine-teaser .button-light {
	border: 0;
}

.roda-theme .wine-teaser .button-light .wp-block-button__link {
	background: var(--paper);
	color: var(--red-dark);
	font-family: var(--sans);
	font-size: 0.91rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

/* Core assigns its global ink color directly to headings and paragraphs. Restore
 * the approved light hierarchy inside the dark V6 wine panel. */
.roda-theme .wine-teaser .eyebrow {
	color: #f0bd77;
}

.roda-theme .wine-teaser h2 {
	color: var(--white);
}

.roda-theme .wine-teaser p:not(.eyebrow) {
	color: rgba(255, 247, 236, 0.84);
}

.roda-theme .wine-teaser-copy > * {
	margin-block-start: 0;
}

.roda-theme .wine-teaser-copy h2 {
	margin-top: 0.8rem;
}

.roda-theme .wine-teaser-copy p:not(.eyebrow) {
	margin-top: 1.15rem;
}

.roda-theme .wine-teaser-copy > .wp-block-buttons {
	margin-top: 1.55rem;
}

.roda-theme .mystery-card.has-no-image {
	background: var(--red-dark);
}

.roda-theme .mystery-card.has-no-image .mystery-result {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(1.5rem, 5vw, 4rem);
	text-align: center;
}

.roda-theme .mystery-image,
.roda-theme .mystery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 63%;
}

.roda-theme .mystery-result {
	z-index: 2;
}

.roda-theme .mystery-result h3 {
	color: var(--white);
}

.roda-theme .mystery-result .mystery-description {
	max-width: 38rem;
	margin-top: 0.7rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.roda-theme .mystery-result .mystery-description > * {
	margin: 0;
}

.roda-theme .mystery-date {
	margin-top: 0.75rem;
	font-size: 0.75rem;
	opacity: 0.85;
}

.roda-theme .mystery-reset {
	margin-top: 1rem;
	padding: 0.45rem 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.roda-theme .mystery-card:not(.is-revealed) .mystery-result {
	visibility: hidden;
}

.roda-theme .mystery-card.is-revealed .mystery-result {
	visibility: visible;
}

.roda-theme .mystery-card.is-revealed .mystery-cover {
	pointer-events: none;
}

.roda-theme .dish-grid {
	display: flex;
	max-width: none;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.roda-theme .dish-card {
	display: block;
	margin: 0;
}

.roda-theme .dish-card > .wp-block-group {
	display: flex;
	flex-direction: column;
	min-height: 9.2rem;
	padding: 1.2rem 1.25rem;
}

.roda-theme .dish-card h3,
.roda-theme .dish-card p {
	margin: 0;
}

.roda-theme .dish-card h3 {
	margin-top: 0.4rem;
}

.roda-theme .dish-card p {
	margin-top: 0.65rem;
}

.roda-theme .carousel-controls .wp-block-button__link {
	display: grid;
	width: 2.7rem;
	height: 2.7rem;
	padding: 0;
	place-items: center;
	border: 1px solid #a69789;
	background: #fff;
	color: var(--ink);
	font-size: 1.25rem;
}

.roda-theme .carousel-controls .wp-block-button__link[aria-disabled="true"] {
	opacity: 0.38;
	pointer-events: none;
}

.roda-theme .wine-teaser > .wp-block-group,
.roda-theme .place > .wp-block-group {
	margin: 0;
}

/* Gutenberg layout classes add centering, block gaps and grid gaps that are not
 * present in the approved V6 composition. Keep the blocks editable while making
 * their front-end geometry match the original layout. */
.roda-theme .wine-teaser {
	grid-template-columns: 0.76fr 1.24fr;
	gap: 0;
}

.roda-theme .place {
	grid-template-columns: 1.1fr 0.9fr;
	gap: 0;
}

.roda-theme .story > .wp-block-group:first-child > *,
.roda-theme .story-content > *,
.roda-theme .wine-teaser-copy > *,
.roda-theme .place-copy > * {
	margin-inline: 0 !important;
}

.roda-theme .story > .wp-block-group:first-child > h2 {
	margin-block-start: 0;
}

.roda-theme .values > .wp-block-group > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.roda-theme .values > .wp-block-group > p {
	margin-top: 0.35rem;
}

.roda-theme .section-intro.split > .wp-block-group:first-child > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.roda-theme .section-intro.split > .wp-block-group:first-child > .eyebrow {
	margin-bottom: 0.85rem;
}

.roda-theme .wine-teaser-photo.wp-block-image {
	position: relative;
	min-height: 25rem;
	overflow: hidden;
}

.roda-theme .wine-teaser-photo.wp-block-image img {
	position: absolute;
	inset: 0;
}

.roda-theme .place-copy > .wp-block-buttons {
	margin-top: 1.5rem;
}

.roda-theme .place-gallery > .wp-block-image {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(1) {
	grid-column: 1;
	grid-row: 1 / 3;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
}

.roda-theme .place-gallery > .wp-block-image img {
	position: static;
	inset: auto;
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	border: 0;
	object-fit: cover;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(1) img {
	object-position: 50% 58%;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(2) img {
	object-position: 50% 65%;
}

.roda-theme .place-gallery > .wp-block-image:nth-child(3) img {
	object-position: 50% 58%;
}

@media (min-width: 851px) {
	.roda-theme .place-gallery {
		height: 36rem;
		min-height: 0;
	}
}

.roda-theme .service-grid > .wp-block-group,
.roda-theme .values > .wp-block-group {
	margin: 0;
}

.roda-theme .wine-drawer-body > .wp-block-group,
.roda-theme .wine-drawer-body > .wp-block-columns {
	max-width: none;
	margin-block-start: 0;
}

.roda-theme .wine-catalog {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.roda-theme .wine-product {
	display: grid;
	grid-template-columns: 40% 60%;
	min-height: 18rem;
	margin: 0;
	border: 1px solid var(--rule);
	background: #fff;
}

.roda-theme .wine-product-image,
.roda-theme .wine-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.roda-theme .wine-product-copy {
	padding: clamp(1rem, 2.5vw, 2rem);
}

.roda-theme .wine-product-copy > * {
	margin-top: 0;
}

.roda-theme .wine-visit-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roda-theme .wine-page-content {
	padding: clamp(2.5rem, 5vw, 5rem) clamp(1.15rem, 7vw, 7rem);
	background: #fff;
	color: var(--ink);
}

/* The Vinos blueprint keeps a single semantic H1 for document structure, while
 * the approved composition starts directly with its editorial content. */
.roda-theme .wine-page-title,
.roda-theme .wine-page > .interior-hero:first-child {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.roda-theme .wine-page-content > .alignwide {
	width: min(100%, 78rem);
	max-width: 78rem;
	margin-inline: auto;
}

.roda-theme .wine-page-content > .wine-drawer-intro {
	width: min(100%, 65rem);
	grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1fr);
}

.roda-theme .wine-page-content > .wine-drawer-intro img {
	max-height: 32rem;
}

.roda-theme .roda-news-hero {
	background: #fff;
}

.roda-theme .editorial-page-intro,
.roda-theme .editorial-page-section,
.roda-theme .editorial-page-cta {
	margin-block: clamp(2rem, 4vw, 4rem);
}

.roda-theme .editorial-page-cta {
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--soft);
}

.roda-theme .article-header {
	padding: clamp(3.5rem, 6vw, 6rem) clamp(1.15rem, 7vw, 7rem) clamp(2.5rem, 4vw, 4rem);
}

.roda-theme .article-header > * {
	max-width: 68rem;
	margin-inline: auto;
}

.roda-theme .article-header .wp-block-post-featured-image {
	margin-top: 2.5rem;
}

.roda-theme .article-shell > .article-hero {
	width: min(calc(100% - 2.4rem), 78rem);
	max-width: 78rem;
	margin: 0 auto;
}

.roda-theme .article-shell > .article-hero img {
	width: 100%;
	max-height: 48rem;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.roda-theme .article-body {
	padding: 3rem 1.2rem 5rem;
}

.roda-theme .news-grid {
	gap: clamp(1rem, 3vw, 2.5rem);
}

.roda-theme .news-card {
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--soft);
}

.roda-theme .news-card .wp-block-post-featured-image {
	aspect-ratio: 4 / 3;
	margin-bottom: 1rem;
}

.roda-theme .news-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.roda-theme .news-card-copy {
	padding: clamp(1.35rem, 3vw, 2.25rem);
}

.roda-theme .news-grid > .wp-block-post:first-child {
	grid-column: 1 / -1;
}

.roda-theme .news-grid > .wp-block-post:first-child .news-card:has(.wp-block-post-featured-image) {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: stretch;
}

.roda-theme .news-grid > .wp-block-post:first-child .wp-block-post-featured-image {
	height: 100%;
	min-height: 25rem;
	margin: 0;
	aspect-ratio: auto;
}

.roda-theme .news-grid > .wp-block-post:first-child .news-card-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.roda-theme .site-footer .roda-opening-notice {
	padding: 0;
	border: 0;
	background: transparent;
	color: #bfb3a8;
	text-align: left;
}

/* Gutenberg's flex layout utility is emitted after theme styles. The footer is
 * intentionally a V6 grid, so its structural rows must win that cascade. */
.roda-theme .site-footer .footer-main,
.roda-theme .site-footer .footer-base {
	display: grid;
}

.roda-theme .footer-navigation .wp-block-navigation__container {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 0.8rem 2rem;
}

.roda-theme .footer-contact p,
.roda-theme .footer-base p {
	margin: 0;
}

.roda-theme .footer-contact .footer-address {
	display: block;
	margin: 0;
	color: #f1e8dc;
	font-family: var(--serif);
	font-size: clamp(1.55rem, 2vw, 1.9rem);
	font-style: normal;
	font-weight: 400;
	letter-spacing: -0.012em;
	line-height: 1.2;
}

.roda-theme .footer-contact .footer-address::before {
	content: none;
}

.roda-theme .footer-contact .footer-address a {
	color: inherit;
	text-decoration: none;
}

.roda-theme .footer-contact .footer-address a:hover {
	color: #f5d792;
	text-decoration: none;
}

.roda-theme .footer-contact .footer-address span {
	display: block;
	margin-top: 0.5rem;
	color: #ddd0c4;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
}

.roda-theme .footer-social.wp-block-social-links {
	display: flex;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.roda-theme .footer-social .wp-social-link {
	margin: 0;
	background: transparent;
	color: #f1e8dc;
}

.roda-theme .footer-social .wp-social-link a {
	padding: 0;
}

.roda-theme .footer-social .wp-social-link svg {
	width: 1.24rem;
	height: 1.24rem;
}

.roda-theme .footer-base > p:nth-child(2) {
	text-align: center;
}

.roda-theme .footer-navigation .wp-block-navigation-item__content,
.roda-theme .footer-social a,
.roda-theme .footer-contact a,
.roda-theme .footer-credit a {
	color: inherit;
}

.roda-theme .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.2rem;
	background-color: #201b18 !important;
	color: #f1e8dc !important;
}

.roda-theme .desktop-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #f1e8dc;
}

.roda-theme .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #f1e8dc;
}

.roda-theme .roda-mobile-break {
	display: none;
}

.roda-theme .wp-block-navigation__responsive-container-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(245, 234, 216, 0.65);
	border-radius: 50%;
	background: transparent;
	color: var(--paper);
}

@media (min-width: 851px) {
	.roda-theme .wp-block-navigation__responsive-container-open {
		display: none;
	}
}

@media (max-width: 900px) {
	.roda-theme .header-main {
		padding-inline: 1rem;
	}

	.roda-theme .header-actions {
		display: none;
	}

	.roda-theme .wine-catalog {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 601px) and (max-width: 850px) {
	.roda-theme .wine-teaser {
		grid-template-columns: 1fr 1.15fr;
	}

	.roda-theme .place {
		grid-template-columns: 1fr;
	}

	.roda-theme .place-gallery {
		height: 34rem;
		min-height: 0;
	}
}

@media (max-width: 600px) {
	.roda-theme .wine-teaser,
	.roda-theme .place {
		grid-template-columns: 1fr;
	}

	.roda-theme .wine-teaser-photo.wp-block-image {
		height: 13rem;
		min-height: 0;
	}

	.roda-theme .roda-mobile-break {
		display: inline;
	}

	.roda-theme .footer-contact .footer-address {
		font-size: clamp(1.55rem, 5.4vw, 1.8rem);
	}

	.roda-theme .services h2 {
		max-width: 13ch;
	}

	.roda-theme .hero-actions .wp-block-button__link {
		min-height: 2.9rem;
		padding: 0.7rem 1rem;
		font-size: 0.8rem;
	}

	.roda-theme .place-gallery > .wp-block-image:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: 1;
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.roda-theme .place-gallery > .wp-block-image:nth-child(2),
	.roda-theme .place-gallery > .wp-block-image:nth-child(3) {
		grid-row: 2;
		aspect-ratio: 1 / 1;
		height: auto;
	}

	.roda-theme .place-gallery > .wp-block-image:nth-child(2) {
		grid-column: 1;
	}

	.roda-theme .place-gallery > .wp-block-image:nth-child(3) {
		grid-column: 2;
	}

	.roda-theme .wine-product {
		grid-template-columns: 38% 62%;
		min-height: 15rem;
	}

	.roda-theme .news-grid {
		grid-template-columns: 1fr;
	}

	.roda-theme .news-grid > .wp-block-post:first-child .news-card:has(.wp-block-post-featured-image),
	.roda-theme .wine-page-content > .wine-drawer-intro {
		grid-template-columns: 1fr;
	}

	.roda-theme .news-grid > .wp-block-post:first-child .wp-block-post-featured-image {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.roda-theme .wine-page-content > .wine-drawer-intro img {
		max-height: none;
		aspect-ratio: 2 / 3;
	}
}

@media (min-width: 601px) and (max-width: 850px) {
	.roda-theme .footer-navigation .wp-block-navigation__container {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem 2rem;
	}

	.roda-theme .footer-base > p:nth-child(2) {
		grid-column: 1 / 3;
		grid-row: 2;
		text-align: left;
	}

	.roda-theme .footer-credit {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 430px) {
	.roda-theme .footer-base > p:nth-child(2),
	.roda-theme .footer-credit {
		grid-column: 1;
		grid-row: auto;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.roda-theme .footer-navigation .wp-block-navigation__container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: start;
		gap: 0.9rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roda-theme *,
	.roda-theme *::before,
	.roda-theme *::after {
		scroll-behavior: auto;
	}
}

