/*
Theme Name: Dgamado Minimalio Child
Description: Child theme for the Dgamado site.
Author: Manuel
Template: minimalio
Version: 0.1.0
Text Domain: dgamado-minimalio-child
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

/*
 * Put site-specific CSS overrides here.
 */

body,
button,
input,
select,
textarea {
	font-family: "Source Serif 4", Georgia, serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav__link,
.mobile-menu__link,
.wp-block-quote,
.dgamado-home-sections__title {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.nav__link,
.mobile-menu__link,
.dgamado-home-sections__title {
	letter-spacing: 0.06em;
}

.wp-block-heading,
.wp-block-quote p,
.entry-content p,
.footer-widget p {
	text-wrap: pretty;
}

.footer-widget a {
	color: inherit;
}

.header__brand:empty,
.header__social-block:empty {
	display: none;
}

.dgamado-footer-instagram__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
}

.dgamado-footer-instagram__icon {
	width: 0.95rem;
	height: 0.95rem;
	display: inline-block;
}

.dgamado-footer-instagram__link:hover,
.dgamado-footer-instagram__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.header-widget-wrapper {
	max-width: min(100%, 1160px);
	margin: 0 auto;
}

.header-widget-wrapper > .header-widget {
	width: 100%;
	margin: 0 auto;
}

#block-41 {
	display: flex;
	justify-content: center;
	margin-top: 0.25rem;
}

#block-41 .wp-block-columns,
#block-41 .wp-block-column,
#block-41 .wp-block-image {
	margin: 0;
}

#block-41 .wp-block-columns {
	justify-content: center;
}

#block-41 img {
	width: min(18rem, 48vw) !important;
}

body.home .header-widget-wrapper {
	display: grid;
	gap: 0.45rem;
}

body.home .dgamado-header-menu {
	margin: 0 auto 0.25rem;
}

body.home .dgamado-header-menu__list {
	justify-content: center;
}

body.home #block-58,
body.home #block-44,
body.home #block-59,
body.home #block-46 {
	max-width: 980px;
}

body.home #block-58 .wp-block-quote,
body.home #block-44 .wp-block-heading,
body.home #block-59 p {
	margin: 0;
}

body.home #block-58 .wp-block-quote p,
body.home #block-44,
body.home #block-59 {
	text-align: center;
}

body.home #block-58 .wp-block-quote p {
	max-width: 42rem;
	margin-inline: auto;
}

body.home #block-55 {
	display: none;
}

.dgamado-header-menu {
	width: 100%;
	margin: 0 auto 0.5rem;
}

.dgamado-header-menu .header__submenu-wrap {
	display: none;
}

.dgamado-header-menu__list {
	list-style: none;
	padding: 0;
	justify-content: center;
	row-gap: 0.5rem;
}

.dgamado-header-menu__list .nav__link {
	display: inline-block;
	padding-bottom: 0.1rem;
}

.dgamado-home-sections {
	max-width: 980px;
	margin: 1rem auto 0;
}

.dgamado-home-sections__toolbar {
	display: none;
}

.dgamado-home-sections__nav {
	display: none;
}

.dgamado-home-sections__viewport {
	overflow: visible;
	padding-inline: 0;
}

.dgamado-home-sections__track {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.dgamado-home-sections__item {
	width: 100%;
}

.dgamado-home-sections__title {
	margin: 0 0 0.9rem;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.03em;
}

.dgamado-home-sections__image-link {
	display: block;
	position: relative;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: #f3f0eb;
}

.dgamado-home-sections__image {
	display: block;
	width: 100%;
	height: clamp(18rem, 40vw, 35rem);
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

body.home .dgamado-home-sections__item:nth-child(2) .dgamado-home-sections__image {
	object-position: center bottom;
}

.dgamado-home-sections__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.dgamado-home-sections__button {
	display: inline-block;
	padding: 0.7rem 1.3rem;
	border: 1px solid #111;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	line-height: 1;
	pointer-events: none;
}

.dgamado-home-sections__image-link:hover .dgamado-home-sections__overlay,
.dgamado-home-sections__image-link:focus .dgamado-home-sections__overlay,
.dgamado-home-sections__image-link:focus-visible .dgamado-home-sections__overlay {
	opacity: 1;
}

.dgamado-home-sections__image-link:hover .dgamado-home-sections__image,
.dgamado-home-sections__image-link:focus .dgamado-home-sections__image,
.dgamado-home-sections__image-link:focus-visible .dgamado-home-sections__image {
	transform: scale(1.015);
	opacity: 0.92;
}

.dgamado-home-sections__image-link:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	body.home .header-widget-wrapper {
		gap: 0.75rem;
	}

	#block-41 img {
		width: min(14rem, 56vw) !important;
	}

	body.home .dgamado-header-menu {
		margin-bottom: 0.35rem;
	}

	.dgamado-home-sections__track {
		gap: 2rem;
	}

	.dgamado-home-sections {
		margin-top: 1rem;
	}

	.dgamado-home-sections__title {
		font-size: 1rem;
	}

	.dgamado-home-sections__image {
		height: clamp(15rem, 72vw, 24rem);
	}
}
