/* ==========================================================================
   Post Grid — post-grid.css
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Wrap
   --------------------------------------------------------------------------- */

.pg-wrap {
	width: 100%;
}

/* ---------------------------------------------------------------------------
   Filters
   --------------------------------------------------------------------------- */

.pg-filters {
	display: flex;
	align-items: center;
	justify-content: end;
	gap: 12px;
	padding-block: 16px;
	flex-wrap: wrap;
}

.pg-filters__stagione {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pg-filters__tag {
	background: transparent;
	border: 1px solid #ccc;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

[data-tipologia] {
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

[data-tipologia].is-ready {
	opacity: 1;
}

.pg-filters__tag:hover,
.pg-filters__tag.is-active {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ---------------------------------------------------------------------------
   Dropdown custom
   --------------------------------------------------------------------------- */

.pg-dropdown {
	position: relative;
}

.pg-dropdown__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #ccc;
	padding: 20px 24px;
	cursor: pointer;
	white-space: nowrap;
	color: var(--gray-900, #231F20);
	height: 66px;

	/* body/xl */
	font-family: Poppins;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 26px;
	letter-spacing: 3px;
}

#pg-dropdown-menu {
	display: none !important;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	z-index: 10;
	flex-direction: column;
	padding: 20px 24px;
	cursor: pointer;
	white-space: nowrap;
	color: var(--gray-900, #231F20);

	/* body/xl */
	font-family: Poppins;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 26px;
	letter-spacing: 3px;
}

.pg-dropdown.is-open #pg-dropdown-menu {
	display: flex !important;
	gap: 20px
}

.pg-dropdown__option {
	background: none;
	border: none;
	text-align: left;
	font-size: 0.9rem;
	cursor: pointer;
	color: #918F8F;
	padding: 0px;


	/* body/xl */
	font-family: Poppins;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 26px;
	letter-spacing: 3px;
}

.pg-dropdown__option:hover {
	color: #000;
}

.pg-dropdown__option.is-active {
	color: #000;
}

/* ---------------------------------------------------------------------------
   Banner
   --------------------------------------------------------------------------- */

.pg-banner {
	width: 100%;
	background: #eee;
	padding: 32px;
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #999;
	margin-block: 16px;
}

/* ---------------------------------------------------------------------------
   Grid
   --------------------------------------------------------------------------- */

.pg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	row-gap: 30px;
	column-gap: 24px;
	grid-auto-flow: dense;
}

/* ---------------------------------------------------------------------------
   Post — base
   --------------------------------------------------------------------------- */

.pg-post {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: transparent;
	border-radius: 0px;
	overflow: hidden;
	align-self: start;
	transition: opacity 0.2s;
	position: relative;
}

.pg-post:hover {
	opacity: 0.85;
}

/* ---------------------------------------------------------------------------
   Post — image
   --------------------------------------------------------------------------- */

.pg-post__img img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* ---------------------------------------------------------------------------
   Post — content
   --------------------------------------------------------------------------- */

.pg-post__content {
	padding: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pg-post__category {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #000;
}

.pg-post__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.pg-post__date {
	font-size: 0.75rem;
	color: var(--gray-900);
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   Post — featured (2×2)
   --------------------------------------------------------------------------- */

.pg-post--featured {
	grid-column-end: span 2;
	grid-row-end: span 2;
	align-self: stretch;
}

.pg-post--featured .pg-post__img {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.pg-post--featured .pg-post__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Gradient overlay per la leggibilità del titolo */
.pg-post--featured .pg-post__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
			rgba(0, 0, 0, 0.75) 0%,
			rgba(0, 0, 0, 0.35) 45%,
			rgba(0, 0, 0, 0) 75%);
	pointer-events: none;
}

.pg-post--featured .pg-post__title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px;
	margin: 0;
	color: #fff;
	z-index: 1;
}

.pg-post--featured .pg-post__content {
	padding: 16px 0;
	flex-shrink: 0;
}

.pg-post--featured .pg-post__category,
.pg-post--featured .pg-post__date {
	color: inherit;
}

/* ---------------------------------------------------------------------------
   Post — filler
   --------------------------------------------------------------------------- */

.pg-post--filler {
	background: transparent;
	pointer-events: none;
	min-height: 0;
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */

.pg-pagination {
	padding-block: 24px;
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	font-family: Futura;
	font-size: 13px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

.pg-pagination__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pg-pagination__btn {
	min-width: 36px;
	height: 36px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	color: #DADADA;
	transition: color 0.2s;
}

.pg-pagination__btn:hover {
	color: #000;
}

.pg-pagination__btn.is-active {
	color: #000;
	font-weight: 600;
}

.pg-pagination__ellipsis {
	min-width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	color: #999;
}

.pg-pagination__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: none;
	cursor: pointer;
	color: #000;
	transition: opacity 0.2s;
}

.pg-pagination__arrow:hover {
	opacity: 0.6;
}

.pg-pagination__arrow.is-disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

.pg-pagination__arrow svg {
	fill: currentColor;
	height: 8px;
}

.pg-pagination__summary {
	margin: 8px 0 0;
	text-align: center;
	font-size: 12px;
	color: #231F20;
}


/* ---------------------------------------------------------------------------
   Inject slot
   --------------------------------------------------------------------------- */

.pg-inject-slot {
	grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------------
   Post branded
   --------------------------------------------------------------------------- */

.pg-post--branded .pg-post__img {
	outline: 2px solid #fff;
	outline-offset: -22px;
}

.pg-post--branded:before {
	content: 'spotlight';
	position: absolute;
	left: 20px;
	z-index: 2;
	display: block;
	background: #fff;
	text-transform: uppercase;
	font-size: 13px;
	padding: 2px 11px;
	top: 20px;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Archive variant
   --------------------------------------------------------------------------- */

.pg-grid--archive {
	grid-auto-flow: row;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

/* Desktop */
.pg-inject-slot {
	display: none;
}

#sidebar-desktop {
	display: flex;
}

#sidebar-tablet {
	display: none;
}

/* Tablet large */
@media (max-width: 1300px) {
	.pg-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pg-inject-slot {
		display: block;
	}

	#sidebar-desktop {
		display: none;
	}

	.pg-inject-slot #sidebar-tablet {
		display: block;
	}
}

/* Tablet */
@media (max-width: 767px) {}

/* Mobile */
@media (max-width: 478px) {}