/* Il birrificio: carousel of every beer Retorto has brewed. Cards match the shop's product cards. */
.rt-birre {
	position: relative;
	width: 100%;
}

.rt-birre__frecce {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin: 0 0 1.25rem;
}

.rt-birre .rt-birre__freccia {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--rt-testo, #1d1d1b);
	background: #fff;
	border: 1px solid rgba(29, 29, 27, .15);
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s, color .2s, opacity .2s;
}

.rt-birre .rt-birre__freccia:hover:not(:disabled) {
	color: #fff;
	background: var(--rt-testo, #1d1d1b);
}

.rt-birre .rt-birre__freccia:disabled {
	opacity: .3;
	cursor: default;
}

.rt-birre__lista {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 1.75rem) / 4.4);
	gap: 1.75rem;
	margin: 0;
	padding: 0 0 1rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.rt-birre__lista::-webkit-scrollbar {
	display: none;
}

.rt-birre__lista:focus-visible {
	outline: 2px solid var(--rt-teal, #2ba9a9);
	outline-offset: 4px;
}

.rt-birra {
	scroll-snap-align: start;
	margin: 0;
}

.rt-birra__foto {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	margin: 0 0 1rem;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: var(--rt-birra-colore, #efeeee);
}

.rt-birra__foto .rt-birra__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}

/* Transparent bottle cutouts and beers without a photo sit on a neutral panel. */
.rt-birra--sagoma .rt-birra__foto {
	background: #efeeee;
}

.rt-birra--sagoma .rt-birra__foto .rt-birra__img {
	width: auto;
	height: 82%;
	object-fit: contain;
}

.rt-birra__nome-grande {
	padding: 1.5rem;
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}

.rt-birra--sagoma:has(.rt-birra__nome-grande) .rt-birra__foto {
	background: var(--rt-birra-colore, #1d1d1b);
}

.rt-birra--ritirata .rt-birra__img {
	filter: grayscale(30%);
}

.rt-birra__badge {
	position: absolute;
	top: .9rem;
	left: .9rem;
	padding: .35em .8em;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rt-testo, #1d1d1b);
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(29, 29, 27, .12);
}

.rt-birra__acquista {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	padding: .85em 1.6em;
	font-size: .9375rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--rt-testo, #1d1d1b);
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(29, 29, 27, .12);
	transform: translate(-50%, .5rem);
	opacity: 0;
	transition: opacity .25s, transform .25s;
}

a.rt-birra__foto:hover .rt-birra__acquista,
a.rt-birra__foto:focus-visible .rt-birra__acquista {
	transform: translate(-50%, 0);
	opacity: 1;
}

a.rt-birra__foto:hover .rt-birra__img {
	transform: scale(1.03);
}

.rt-birra .rt-birra__nome {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.25;
}

.rt-birra__nome a {
	color: inherit;
	text-decoration: none;
}

.rt-birra .rt-birra__stile {
	margin: .25rem 0 .75rem;
	font-size: 1rem;
	line-height: 1.4;
	color: rgba(29, 29, 27, .7);
}

.rt-birra__formati {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rt-birra__formati li {
	padding: .3em .7em;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rt-testo, #1d1d1b);
	background: #f2f2f0;
}

@media (hover: none) {
	.rt-birra__acquista {
		display: none;
	}
}

@media (max-width: 1024px) {
	.rt-birre__lista {
		grid-auto-columns: calc((100% - 2 * 1.25rem) / 2.6);
		gap: 1.25rem;
	}
}

@media (max-width: 767px) {
	.rt-birre__lista {
		grid-auto-columns: 68%;
		gap: 1rem;
	}

	.rt-birre__frecce {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-birre__lista {
		scroll-behavior: auto;
	}
}
