/*
Theme Name: Vallverdú
Theme URI: https://www.vallverdu.org/
Author: Thanks Studio
Author URI: https://thanks.studio/
Description: Tema propi de vallverdu.org. Reprodueix el disseny que tenia el web amb The7, sense dependre'n.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vallverdu
*/

/* ==========================================================================
   Fonts (Roboto variable, allotjada al tema)
   ========================================================================== */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/roboto-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--vv-font: "Roboto", Helvetica, Arial, Verdana, sans-serif;
	--vv-accent: #1ebbf0;
	--vv-accent-2: #39dfaa;
	--vv-gradient: linear-gradient(135deg, #1ebbf0 30%, #39dfaa 100%);
	--vv-gradient-line: linear-gradient(to left, #1ebbf0 30%, #39dfaa 100%);
	--vv-text: #85868c;
	--vv-title: #333333;
	--vv-page-title: #595959;
	--vv-muted: #b4b5bb;
	--vv-box: #f7f7f7;
	--vv-header: #e0ead7;
	--vv-footer: #1a1c20;
	--vv-divider: rgba(51, 51, 51, 0.12);
	--vv-input-bg: #fdfdfd;
	--vv-input-text: #8b8d94;
	--vv-wrap: 1300px;
	--vv-gutter: 50px;
	--vv-header-h: 168px;
	--vv-sticky-h: 60px;
	--vv-admin-bar: 0px;
}

.admin-bar {
	--vv-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar {
		--vv-admin-bar: 46px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: var(--vv-text);
	font: 400 15px/27px var(--vv-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

a {
	color: var(--vv-accent);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 10px;
	color: var(--vv-title);
	font-family: var(--vv-font);
	font-weight: 700;
}

h1 { font-size: 44px; line-height: 54px; }
h2 { font-size: 34px; line-height: 44px; }
h3 { font-size: 24px; line-height: 34px; }
h4 { font-size: 20px; line-height: 30px; }
h5 { font-size: 16px; line-height: 26px; }
h6 { font-size: 14px; line-height: 24px; }

p {
	margin: 0 0 10px;
}

ul,
ol {
	margin: 0 0 10px 20px;
	padding: 0;
}

blockquote {
	margin: 0 0 10px;
	padding: 20px 25px;
	border-radius: 1px;
	background: var(--vv-box);
	color: var(--vv-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
}

table {
	width: 100%;
	margin: 0 0 10px;
	border-collapse: collapse;
	border-bottom: 1px solid var(--vv-divider);
}

/* Les taules antigues porten amplades en HTML (width="95"): s'han de sumar al farciment. */
td,
th {
	box-sizing: content-box;
	padding: 5px 10px 5px 5px;
	border-top: 1px solid var(--vv-divider);
	text-align: left;
	vertical-align: top;
}

hr {
	height: 0;
	margin: 0 0 10px;
	border: 0;
	border-top: 1px solid var(--vv-divider);
}

input,
textarea,
select,
button {
	font-family: var(--vv-font);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
	max-width: 100%;
	margin: 0 0 10px;
	padding: 5px 15px;
	border: 1px solid var(--vv-divider);
	border-radius: 1px;
	background: var(--vv-input-bg);
	color: var(--vv-input-text);
	font-size: 14px;
	line-height: 25px;
}

input::placeholder,
textarea::placeholder {
	color: var(--vv-input-text);
	opacity: 0.5;
}

select {
	height: 38px;
	padding: 5px 30px 5px 15px;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--vv-input-text) 50%),
		linear-gradient(135deg, var(--vv-input-text) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 0;
	border-radius: 1px;
	background: var(--vv-gradient);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: linear-gradient(135deg, #23aadd 30%, #37ce9d 100%);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 10px 15px;
	clip: auto;
	background: #fff;
	color: var(--vv-title);
}

.wrap {
	width: 100%;
	max-width: var(--vv-wrap);
	margin: 0 auto;
	padding: 0 var(--vv-gutter);
}

/* Alineacions i peus d'imatge de l'editor clàssic */

.aligncenter {
	display: block;
	margin: 0 auto 10px;
}

.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 20px;
}

.wp-caption {
	max-width: 100%;
	text-align: center;
}

.wp-caption-text {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 23px;
}

.post-meta,
.comments-area,
.album-grid {
	clear: both;
}

/* ==========================================================================
   Capçalera
   ========================================================================== */

.site-header-holder {
	min-height: var(--vv-header-h);
}

.site-header {
	position: relative;
	z-index: 102;
	background: var(--vv-header);
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.07);
}

.site-header__bar {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	height: var(--vv-header-h);
}

.site-branding {
	display: flex;
	flex: none;
	align-items: center;
	padding-right: 5px;
}

.site-branding a {
	display: block;
	line-height: 0;
}

.site-branding img {
	display: block;
}

.site-branding .logo--small {
	display: none;
}

/* Menú principal */

.main-nav {
	display: flex;
	flex: 1;
	justify-content: center;
}

.main-nav__list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav__list > li {
	position: relative;
	display: flex;
}

.main-nav__list > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 18px 14px;
	padding: 4px;
	color: var(--vv-title);
	text-decoration: none;
}

.main-nav__list > li:first-child > a {
	margin-left: 0;
}

.main-nav__list > li:last-child > a {
	margin-right: 0;
}

.main-nav .menu-text {
	position: relative;
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 21px;
}

.main-nav__list > li > a .menu-text::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 1px;
	width: 0;
	height: 2px;
	background: var(--vv-gradient-line);
	opacity: 0.85;
	pointer-events: none;
	transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav__list > li > a:hover .menu-text::after,
.main-nav__list > li > a:focus-visible .menu-text::after,
.main-nav__list > li:hover > a .menu-text::after,
.main-nav__list > li.current-menu-item > a .menu-text::after,
.main-nav__list > li.current-menu-ancestor > a .menu-text::after {
	width: 100%;
}

/* Submenús */

.main-nav .sub-menu {
	position: absolute;
	z-index: 200;
	top: 100%;
	left: 0;
	width: 280px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-nav__list > li:hover > .sub-menu,
.main-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.main-nav .sub-menu a {
	display: flex;
	align-items: center;
	padding: 10px;
	color: var(--vv-title);
	text-decoration: none;
}

.main-nav .sub-menu .menu-text {
	font-size: 13px;
	font-weight: 500;
	line-height: 17px;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu .current-menu-item > a {
	color: var(--vv-accent);
}

/* Capçalera fixa en fer scroll (escriptori) */

.site-header.is-stuck {
	position: fixed;
	top: var(--vv-admin-bar);
	right: 0;
	left: 0;
	animation: vv-fade-in 0.4s ease;
}

.site-header.is-stuck .site-header__bar {
	height: var(--vv-sticky-h);
}

.site-header.is-stuck .site-branding {
	padding-right: 18px;
}

.site-header.is-stuck .logo--full {
	display: none;
}

.site-header.is-stuck .logo--small {
	display: block;
	max-height: var(--vv-sticky-h);
	width: auto;
}

.site-header.is-stuck .main-nav__list > li > a {
	margin-top: 0;
	margin-bottom: 0;
}

.site-header.is-stuck .main-nav .sub-menu {
	top: 100%;
}

@keyframes vv-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Botó del menú mòbil */

.menu-toggle {
	display: none;
	position: relative;
	align-self: center;
	width: 26px;
	height: 26px;
	padding: 5px 2px;
	border: 0;
	background: none;
	cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
	position: absolute;
	left: 2px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--vv-title);
}

.menu-toggle__lines {
	top: 12px;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
	content: "";
	left: 0;
}

.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }

/* ==========================================================================
   Menú mòbil (panell lateral)
   ========================================================================== */

/* Capa fixa de la mida de la finestra: el panell amagat no pot eixamplar la pàgina. */
.mobile-menu-layer {
	position: fixed;
	z-index: 9998;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.mobile-menu-open .mobile-menu-layer {
	pointer-events: auto;
}

.mobile-menu-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 300px;
	max-width: 100%;
	padding: 45px 30px 30px;
	overflow-y: auto;
	background: #fff;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-open .mobile-menu {
	transform: none;
	visibility: visible;
}

.mobile-menu-open .mobile-menu-overlay {
	opacity: 1;
	visibility: visible;
}

.mobile-menu-open {
	overflow: hidden;
}

.mobile-menu__close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: var(--vv-gradient);
	cursor: pointer;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 6px;
	width: 18px;
	height: 2px;
	background: #fff;
	transform: rotate(45deg);
}

.mobile-menu__close::after {
	transform: rotate(-45deg);
}

.mobile-menu__list,
.mobile-menu__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu__list > li {
	position: relative;
	border-bottom: 1px solid var(--vv-divider);
}

.mobile-menu__list > li:last-child {
	border-bottom: 0;
}

.mobile-menu__list a {
	display: block;
	padding: 15px 25px 15px 0;
	color: var(--vv-title);
	line-height: 20px;
	text-decoration: none;
}

.mobile-menu__list .menu-text {
	display: inline;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
}

.mobile-menu__list .current-menu-item > a .menu-text {
	background: var(--vv-gradient-line);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

.mobile-menu__list .sub-menu {
	display: none;
	padding: 0 0 20px 20px;
}

.mobile-menu__list .is-open > .sub-menu {
	display: block;
}

.mobile-menu__list .sub-menu a {
	padding: 5px 0;
	line-height: 17px;
}

.mobile-menu__list .sub-menu .menu-text {
	font-size: 13px;
	font-weight: 500;
	line-height: 17px;
}

.submenu-toggle {
	position: absolute;
	top: 12px;
	right: 0;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.is-open > .submenu-toggle {
	transform: rotate(45deg);
}

.submenu-toggle::before,
.submenu-toggle::after {
	content: "";
	position: absolute;
	top: 12px;
	left: 6px;
	width: 14px;
	height: 1px;
	background: var(--vv-muted);
	transition: transform 0.2s ease;
}

.submenu-toggle::after {
	transform: rotate(90deg);
}

/* ==========================================================================
   Títol de pàgina i molles de pa
   ========================================================================== */

.page-title__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-top: 35px;
	padding-bottom: 25px;
	text-align: center;
}

.page-title__inner::after {
	content: "";
	position: absolute;
	right: var(--vv-gutter);
	bottom: 0;
	left: var(--vv-gutter);
	border-bottom: 5px dotted rgba(51, 51, 51, 0.11);
}

.page-title h1 {
	margin: 0;
	color: var(--vv-page-title);
	font-size: 42px;
	line-height: 48px;
}

.breadcrumbs {
	margin: 8px 0 0;
	padding: 10px 0 0;
	list-style: none;
	color: var(--vv-muted);
	font-size: 14px;
	line-height: 23px;
}

.breadcrumbs li {
	display: inline-block;
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 9px 0 8px;
	color: rgba(180, 181, 187, 0.5);
}

.breadcrumbs a {
	color: var(--vv-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--vv-title);
}

/* ==========================================================================
   Estructura principal
   ========================================================================== */

.site-main {
	padding: 70px 0;
}

.main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.has-sidebar .main-grid {
	grid-template-columns: minmax(0, 1fr) 325px;
	column-gap: 50px;
}

.content {
	min-width: 0;
}

.sidebar {
	border-left: 1px solid var(--vv-divider);
}

.sidebar__inner {
	padding-left: 50px;
}

/* ==========================================================================
   Llistat del blog (portada)
   ========================================================================== */

.post-card {
	position: relative;
	margin: 0 0 20px;
	padding: 25px 25px 0;
	border-radius: 1px;
	background: var(--vv-box);
}

.post-card.has-post-thumbnail {
	display: flex;
	align-items: flex-start;
}

.post-card__media {
	flex: 0 0 30%;
	padding: 0 30px 25px 0;
	line-height: 0;
}

.post-card__media img {
	display: block;
	width: 100%;
}

.post-card__body {
	flex: 1;
	min-width: 0;
	padding-bottom: 10px;
}

.entry-title {
	margin: 0 0 10px;
	color: var(--vv-title);
	font-size: 20px;
	line-height: 30px;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--vv-accent);
}

.entry-meta {
	padding: 0 0 10px;
	color: var(--vv-muted);
	font-size: 13px;
	line-height: 23px;
}

.entry-meta > * {
	position: relative;
	display: inline-block;
	margin-right: 6px;
	padding-right: 9px;
}

.entry-meta > *::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 3px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 50%;
	background: var(--vv-muted);
}

.entry-meta > *:last-child {
	margin-right: 0;
	padding-right: 0;
}

.entry-meta > *:last-child::after {
	display: none;
}

.entry-meta a {
	color: inherit;
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--vv-title);
}

.more-link {
	position: relative;
	display: table;
	margin: 0 0 10px;
	padding: 0 0 6px;
	color: var(--vv-title);
	font-size: 13px;
	font-weight: 700;
	line-height: 17px;
	text-decoration: none;
}

.more-link::after {
	content: "";
	display: inline-block;
	margin-left: 5px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	vertical-align: 0;
}

.more-link::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--vv-gradient);
	transition: width 0.3s ease;
}

.more-link:hover::before {
	width: 100%;
}

/* Paginació */

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 50px 0 0;
	padding: 0 0 2px;
}

.pagination a,
.pagination span {
	position: relative;
	display: block;
	margin: 0 6px;
	padding: 1px 8px;
	color: var(--vv-title);
	text-align: center;
	text-decoration: none;
}

.pagination a::after,
.pagination .current::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 2px;
	background: var(--vv-gradient-line);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pagination a:hover::after,
.pagination .current::after {
	opacity: 1;
}

.pagination .is-disabled {
	opacity: 0;
	pointer-events: none;
}

/* ==========================================================================
   Arxius i cerca (graella de 3 columnes)
   ========================================================================== */

.archive-description {
	margin: 0 0 40px;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	margin: -10px;
}

.post-grid.is-masonry {
	display: flex;
	align-items: flex-start;
}

.post-grid__col {
	flex: 1;
	min-width: 0;
}

.post-grid__cell {
	padding: 10px;
}

.grid-card {
	background: var(--vv-box);
	border-radius: 1px;
}

.grid-card__media {
	line-height: 0;
}

.grid-card__media img {
	display: block;
	width: 100%;
}

.grid-card__body {
	padding: 10px 25px;
}

.grid-card .entry-title {
	margin: 0;
	padding: 10px 0 0;
}

.grid-card .entry-title + .entry-meta {
	padding-top: 10px;
}

.no-results {
	text-align: center;
}

.no-results h2 {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 44px;
}

.no-results p {
	margin: 0 0 10px;
}

.error404 .content {
	min-height: 500px;
}

/* Cerca */

.search-form {
	position: relative;
}

.search-form__input[type="search"] {
	display: block;
	width: 100%;
	margin: 0;
	padding-right: 45px;
	appearance: none;
}

.search-form .search-form__submit,
.search-form .search-form__submit:hover {
	position: absolute;
	top: 0;
	right: 0;
	width: 45px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.search-form__submit svg {
	width: 16px;
	height: 16px;
	fill: var(--vv-input-text);
}

.search-form__submit:hover svg {
	fill: var(--vv-title);
}

/* ==========================================================================
   Barra lateral i ginys
   ========================================================================== */

.widget {
	padding: 0 0 30px;
	font-size: 14px;
	line-height: 25px;
}

.widget + .widget {
	padding-top: 30px;
}

.widget-title {
	margin: 0 0 15px;
	color: var(--vv-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
}

.widget ul {
	margin: 0;
	list-style: none;
}

.widget a {
	color: var(--vv-title);
	text-decoration: none;
}

.widget a:hover {
	color: var(--vv-accent);
}

.recent-posts li {
	padding: 0 0 15px;
}

.recent-posts li:last-child {
	padding-bottom: 0;
}

.recent-posts article {
	display: flex;
}

.recent-posts__img {
	flex: none;
}

.recent-posts__img a {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 15px 5px 0;
	overflow: hidden;
	border: 1px solid rgba(133, 134, 140, 0.15);
	border-radius: 50%;
	line-height: 0;
}

.recent-posts__img img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
}

.recent-posts__img .has-image {
	border: 0;
}

.recent-posts__content {
	min-width: 0;
}

.recent-posts__content > a {
	display: inline-block;
}

.recent-posts time {
	display: block;
	margin: 5px 0 0;
}

/* ==========================================================================
   Entrada individual
   ========================================================================== */

.post-thumbnail {
	position: relative;
	margin: 0 0 45px;
	line-height: 0;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.fancy-date {
	position: absolute;
	z-index: 30;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 42px;
	padding: 2px 0;
	background: #fff;
	color: #222;
	font-family: Arial, sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.fancy-date span {
	position: relative;
	display: block;
}

.fancy-date__month,
.fancy-date__year {
	padding: 1px;
	font-size: 12px;
	line-height: 22px;
}

.fancy-date__month {
	margin: 0 0 2px;
}

.fancy-date__day {
	margin: 0 0 3px;
	padding: 2px;
	font-size: 22px;
	line-height: 28px;
}

.fancy-date__month::after,
.fancy-date__day::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 14px;
	height: 2px;
	margin-left: -7px;
	background: var(--vv-gradient);
}

.entry-content {
	margin: 0 0 50px;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content :is(h1, h2, h3, h4, h5, h6) a {
	color: inherit;
	text-decoration: none;
}

.entry-content :is(h1, h2, h3, h4, h5, h6) a:hover {
	color: var(--vv-accent);
}

.page-content > .entry-content {
	margin-bottom: 0;
}
.post-meta .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.single-post .site-main .post {
	margin-bottom: 50px;
}

.page-links {
	clear: both;
	margin: 0 0 20px;
}

/* ==========================================================================
   Comentaris
   ========================================================================== */

.comments-area {
	display: flex;
	flex-direction: column;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 30px;
	color: var(--vv-title);
	font-size: 24px;
	line-height: 34px;
}

.comment-reply-title small {
	margin-left: 10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	vertical-align: middle;
}

.comment-list {
	margin: 0;
	padding: 0 0 50px;
	list-style: none;
}

.comment-list .children {
	margin: 20px 0 0;
	padding: 0 0 0 40px;
	list-style: none;
}

.comment-list li + li {
	margin-top: 20px;
}

.comment-body {
	position: relative;
	margin: 0;
	padding: 20px 20px 10px 100px;
	border-radius: 1px;
	background: var(--vv-box);
}

.comment-author .avatar {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #e2e2e2 0%, #fbfbfb 70%);
}

.comment-author-name {
	display: block;
	margin: 0 0 5px;
	color: var(--vv-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
}

.comment-author-name a {
	color: inherit;
	text-decoration: none;
}

.comment-metadata {
	margin: 0 0 20px;
	color: var(--vv-muted);
	font-size: 13px;
	line-height: 23px;
}

.comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.comment-content {
	display: flow-root;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 25px;
}

.comment-awaiting-moderation {
	font-size: 13px;
}

.reply {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 23px;
	text-align: right;
}

.reply a {
	margin-left: 10px;
	color: var(--vv-muted);
	text-decoration: none;
}

.reply a:hover {
	color: var(--vv-title);
}

.comment-notes,
.logged-in-as {
	margin: 0 0 15px;
	font-size: 13px;
	line-height: 23px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
	display: block;
	width: 100%;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
	height: 38px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email {
	display: flow-root;
	margin: 0;
}

.comment-form-comment,
.comment-form-email {
	margin-bottom: 10px;
}

.comment-form-cookies-consent {
	margin: 0 0 20px;
}

.comment-form-cookies-consent input {
	margin: 0 5px 0 0;
}

.comment-form-cookies-consent label {
	font-size: 13px;
	line-height: 23px;
}

.form-submit {
	margin: 0;
}

/* ==========================================================================
   Àlbums de fotos
   ========================================================================== */

.album-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin: 0 0 45px;
}

.album-grid__item {
	display: block;
	flex: 0 0 auto;
	height: 280px;
	line-height: 0;
}

.album-grid__item img {
	display: block;
	width: auto;
	max-width: none;
	height: 100%;
}

.album-grid.is-justified .album-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.album-footer {
	margin: 0 0 50px;
	padding: 25px 0;
	border-top: 1px solid var(--vv-divider);
	border-bottom: 1px solid var(--vv-divider);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
	display: none;
}

.lightbox__img {
	max-width: calc(100vw - 120px);
	max-height: calc(100vh - 80px);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox__btn {
	position: absolute;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-size: 30px;
	line-height: 44px;
	cursor: pointer;
	opacity: 0.75;
}

.lightbox__btn:hover {
	opacity: 1;
}

.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { top: 50%; left: 10px; margin-top: -22px; }
.lightbox__next { top: 50%; right: 10px; margin-top: -22px; }

.lightbox__counter {
	position: absolute;
	top: 18px;
	left: 20px;
	color: #fff;
	font-size: 13px;
	opacity: 0.75;
}

/* ==========================================================================
   Peu
   ========================================================================== */

.site-footer {
	background: var(--vv-footer);
	color: #fff;
	font-size: 13px;
	line-height: 23px;
}

.bottom-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.bottom-bar p {
	margin: 0;
}

.bottom-bar a {
	color: #fff;
	text-decoration: none;
}

.bottom-bar a:hover {
	opacity: 0.7;
}

.bottom-menu {
	display: flex;
	gap: 20px;
	margin: 0;
	list-style: none;
}

.scroll-top {
	position: fixed;
	z-index: 101;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 1px;
	background: rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease, background 0.3s ease;
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	background: var(--vv-gradient);
}

.scroll-top svg {
	width: 14px;
	height: 14px;
	fill: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Capçalera mòbil: menú amagat i botó visible */
@media screen and (max-width: 1050px) {
	.site-header {
		background: #fff;
	}

	.site-header__bar {
		padding: 0 20px;
	}

	.main-nav {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	/* En tauleta la capçalera fixa conserva l'alçada i el logotip gran. */
	.site-header.is-stuck .site-header__bar {
		height: var(--vv-header-h);
	}

	.site-header.is-stuck .logo--full {
		display: block;
	}

	.site-header.is-stuck .logo--small {
		display: none;
	}
}

@media screen and (max-width: 990px) {
	/* Bloc normal (no graella): el marge final del contingut es fusiona amb el de la barra lateral. */
	.has-sidebar .main-grid {
		display: block;
	}

	.sidebar {
		margin-top: 60px;
		border-left: 0;
	}

	.sidebar__inner {
		padding-left: 0;
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bottom-bar {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
}

@media screen and (max-width: 778px) {
	:root {
		--vv-gutter: 20px;
		--vv-header-h: 64px;
	}

	.site-header-holder {
		position: sticky;
		z-index: 102;
		top: var(--vv-admin-bar);
		min-height: 0;
	}

	.site-header,
	.site-header.is-stuck {
		position: relative;
		top: auto;
		animation: none;
	}

	.site-header__bar,
	.site-header.is-stuck .site-header__bar {
		height: 64px;
	}

	.site-branding .logo--full,
	.site-header.is-stuck .logo--full {
		display: none;
	}

	.site-branding .logo--small,
	.site-header.is-stuck .logo--small {
		display: block;
		max-height: 64px;
		width: auto;
	}

	.page-title h1 {
		font-size: 24px;
		line-height: 34px;
	}

	.breadcrumbs {
		display: none;
	}

	.post-card.has-post-thumbnail {
		display: block;
	}

	.post-card__media {
		padding-right: 0;
	}

	.album-footer {
		padding: 12px 0 13px;
	}
}

@media screen and (max-width: 767px) {
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
		margin: 0 -10px;
	}
}

@media screen and (max-width: 600px) {
	/* Per sota de 600 px la barra d'administració no és fixa. */
	.admin-bar .site-header-holder {
		top: 0;
	}
}
