/* Guitar Bcn — notícies (guitar-noticia.php): fitxa (plantilla «Fitxa de notícia»: [gt_noticia_portada]
   [gt_noticia_cos] [gt_noticia_mes]) i llistat «Actualitat» ([gt_actualitat], pàgines 18 i 19).
   Figma 48:3879 «Notícia» i 48:3224 «Actualitat» (1440): mesures en px del disseny.
   Negre i blanc trencats (#1c1c1c / #f2efe9) i el rosa 05 (#c2899d) del quadrat i els píxels.
   Botons: sistema de botons (guitar/botons/botons.css), aquí no es redibuixen.
   Selectors amb el bloc davant: el kit i el reset de Hello estilitzen h1-h3, p i a. */

.gtnt-arr, .gtnt-foto, .gtnt, .gtnt-mes, .gtact {
	--gtn-n: #1c1c1c;
	--gtn-b: #f2efe9;
	--gtn-rosa: #c2899d;
	--gtn-font: var(--gt-font, "Halyard Display", system-ui, sans-serif);
	--gtn-lat: var(--gt-lat, clamp(20px, 6.25vw, 90px));
	--gtn-ease: var(--gt-ease, cubic-bezier(.22, .8, .2, 1));
	--gtn-gap: clamp(16px, 2.29vw, 33px);       /* entre columnes: 33 al Figma */
	--gtn-fila: clamp(48px, 5vw, 72px);         /* entre files de targetes */
}
.gtact__sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================= Targeta (llistat, destacada i «Més actualitat») ================= */
.gtnc { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; color: inherit; font-family: var(--gtn-font); }
.gtnc__foto { position: relative; overflow: hidden; aspect-ratio: 1; background: rgba(242, 239, 233, .08); }
.gtnc__foto .gtnc__img {
	position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0;
	object-fit: cover; object-position: var(--gtnc-focus, 50% 50%);
	transition: transform 1.1s var(--gtn-ease);
}
.gtnc__txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gtnc .gtnc__meta { margin: 0; padding: 0; font-family: var(--gtn-font); font-size: 15px; font-weight: 500; line-height: 17px; letter-spacing: 0; color: inherit; opacity: .72; }
.gtnc .gtnc__titol {
	margin: 0; padding: 0; font-family: var(--gtn-font); font-size: 30px; font-weight: 500; line-height: 32px;
	letter-spacing: 0; text-transform: none; color: inherit; overflow-wrap: anywhere;
}
.gtnc .gtnc__ent {
	margin: 0; padding: 0; font-family: var(--gtn-font); font-size: 15px; font-weight: 400; line-height: 18px; color: inherit;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
/* Un sol enllaç (el títol) que cobreix la targeta sencera. Sense rosa: el kit pinta els enllaços en hover. */
.gtnc .gtnc__a, .gtnc .gtnc__a:is(:link, :visited, :hover, :focus, :active) {
	color: inherit; text-decoration: underline; text-decoration-color: transparent;
	text-decoration-thickness: 2px; text-underline-offset: .14em;
	transition: text-decoration-color .3s var(--gtn-ease);
}
.gtnc .gtnc__a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gtnc:hover .gtnc__a, .gtnc .gtnc__a:focus-visible { text-decoration-color: currentColor; }
.gtnc:hover .gtnc__img { transform: scale(1.03); }
.gtnc .gtnc__a:focus-visible { outline: 0; box-shadow: none; }   /* el reset de Hello hi posa una vora blanca de 4 px */
.gtnc .gtnc__a:focus-visible::after { outline: 2px solid currentColor; outline-offset: 6px; }

/* La destacada: foto i text al costat, el text centrat a l'alçada de la foto (Figma 48:3286) */
.gtnc--dest .gtnc__titol, .gtnc.gtnc--dest .gtnc__titol { font-size: clamp(34px, 3.47vw, 50px); line-height: .9; }
@media (min-width: 768px) {
	.gtnc--dest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gtn-gap); align-items: center; }
}

/* Graella: 3 iguals (2 a la tauleta). Al mòbil, files compactes (foto petita i títol al costat). */
.gtnc-graella {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gtn-fila) var(--gtn-gap);
	margin: 0; padding: 0; list-style: none;
}
.gtnc-graella > li { margin: 0; padding: 0; min-width: 0; list-style: none; }
.gtnc-graella > li::marker { content: none; }

/* ================= Fitxa (Figma 48:3879) ================= */
body.gtnt-pagina { background: #f2efe9; }
.gtnt-arr.e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; }
.gtnt-arr .elementor-widget-shortcode, .gtnt-arr .elementor-shortcode { width: 100%; margin: 0; }

/* Foto a sang sota la capçalera: 1440 × 787, mai més alta que la pantalla */
.gtnt-foto {
	position: relative; margin: 0; overflow: hidden; background: var(--gtn-n);
	aspect-ratio: 1440 / 787; min-height: 220px; max-height: calc(100vh - var(--gt-cap-h, 96px)); max-height: calc(100svh - var(--gt-cap-h, 96px));
}
.gtnt-foto .gtnt-foto__img {
	position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0;
	object-fit: cover; object-position: var(--gtnt-focus, 50% 40%);
}

/* Text sobre crema: 100 a dalt i a baix, 90 a l'esquerra, 185 a la dreta */
.gtnt {
	display: block; background: var(--gtn-b); color: var(--gtn-n); font-family: var(--gtn-font);
	padding: clamp(48px, 6.94vw, 100px) calc(var(--gt-cont, 0px) + clamp(20px, 12.85vw, 185px)) clamp(64px, 6.94vw, 100px) var(--gtn-lat);
}
.gtnt__cap { max-width: 1110px; }
.gtnt .gtnt__meta { margin: 0 0 24px; padding: 0; font-family: var(--gtn-font); font-size: 15px; font-weight: 500; line-height: 17px; color: var(--gtn-n); opacity: .72; }
.gtnt .gtnt__titol {
	margin: 0; padding: 0; font-family: var(--gtn-font); font-weight: 500; font-style: normal;
	font-size: clamp(36px, 6.25vw, 90px); line-height: .8889; letter-spacing: 0; text-transform: none; color: var(--gtn-n);
	overflow-wrap: anywhere;
}
/* El text: el quadrat rosa a l'esquerra (25 × 23), 96 px d'aire i la columna de lectura.
   Cos 20/30 com la bio de la fitxa de concert (Javi la va voler més petita que el 30/32 del Figma);
   el 30/32 del Figma es queda per al subtítol. */
.gtnt__fila { display: grid; grid-template-columns: 25px minmax(0, 720px); column-gap: clamp(24px, 6.67vw, 96px); margin-top: clamp(40px, 6.39vw, 92px); }
.gtnt__px { display: block; width: 25px; height: 23px; margin-top: 4px; background: var(--gtn-rosa); }
.gtnt__cos { min-width: 0; font-family: var(--gtn-font); font-size: 20px; font-weight: 400; line-height: 30px; color: var(--gtn-n); }
.gtnt .gtnt__cos :is(p, ul, ol, blockquote, figure, table) { margin: 0 0 30px; font: inherit; color: inherit; }
.gtnt .gtnt__cos > :last-child { margin-bottom: 0; }
.gtnt .gtnt__cos .gtnt__lead { margin-bottom: 40px; font-size: 30px; line-height: 32px; }
.gtnt .gtnt__cos :is(h2, h3, h4) {
	margin: 48px 0 20px; padding: 0; font-family: var(--gtn-font); font-size: 30px; font-weight: 500; line-height: 32px;
	letter-spacing: 0; text-transform: none; color: var(--gtn-n);
}
.gtnt .gtnt__cos :is(ul, ol) { padding-left: 1.2em; }
.gtnt .gtnt__cos li { margin: 0 0 8px; }
.gtnt .gtnt__cos :is(strong, b) { font-weight: 500; }
.gtnt .gtnt__cos a, .gtnt .gtnt__cos a:is(:visited, :hover, :focus) { color: var(--gtn-n); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.gtnt .gtnt__cos a:hover { text-decoration-thickness: 2px; }
.gtnt .gtnt__cos a:focus-visible { outline: 2px solid var(--gtn-n); outline-offset: 3px; box-shadow: none; }
.gtnt .gtnt__cos blockquote { padding: 0 0 0 24px; border-left: 3px solid var(--gtn-rosa); font-size: 24px; line-height: 32px; }
.gtnt .gtnt__cos img { display: block; max-width: 100%; height: auto; }
.gtnt .gtnt__cos figcaption { margin-top: 8px; font-size: 15px; line-height: 18px; opacity: .72; }
.gtnt .gtnt__cos iframe { max-width: 100%; }

/* «Més actualitat» (no és al Figma): fosc, com el llistat i els «Altres concerts» de la fitxa de concert */
.gtnt-mes { display: block; background: var(--gtn-n); color: var(--gtn-b); font-family: var(--gtn-font); padding: clamp(64px, 6.94vw, 100px) var(--gtn-lat) clamp(72px, 8.33vw, 120px); }
.gtnt-mes__cap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; margin: 0 0 clamp(32px, 4.24vw, 61px); }
.gtnt-mes .gtnt-mes__tit {
	margin: 0; padding: 0; font-family: var(--gtn-font); font-size: clamp(44px, 6.25vw, 90px); font-weight: 500; line-height: .8889;
	letter-spacing: 0; text-transform: none; color: var(--gtn-b);
}

/* ================= Llistat (Figma 48:3224) ================= */
body.gt-actualitat.gt-v2 main.site-main { padding: 0; background: #1c1c1c; color: #f2efe9; }
body.gt-actualitat .site-main > .page-content { padding: 0; }
.gtact { display: block; background: var(--gtn-n); color: var(--gtn-b); font-family: var(--gtn-font); }

/* Capçalera (48:3279): trencadís difuminat + títol amb l'oval, com la de l'agenda */
.gtact__hero { position: relative; height: clamp(120px, 13.06vw, 188px); overflow: hidden; background: #b79a95; }
.gtact__hero-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.gtact__vel {
	position: relative; box-sizing: border-box; height: 100%;
	display: flex; align-items: center;
	padding: 19px var(--gtn-lat) 16px calc(var(--gtn-lat) - 1px);
	border: 1px solid rgba(201, 201, 201, .15);
	background: rgba(201, 201, 201, .31);
	-webkit-backdrop-filter: blur(12.4px); backdrop-filter: blur(12.4px);
}
.gtact .gtact__titol {
	position: relative; margin: 0; padding: 0;
	font-family: var(--gtn-font); font-weight: 500; font-style: normal;
	font-size: clamp(48px, 6.25vw, 90px); line-height: .8889; letter-spacing: 0; text-transform: none;
	color: #f2efe9;
}
.gtact__titol-t { position: relative; z-index: 1; display: inline-block; }
/* L'oval del Figma (481 × 81 al voltant d'«Actualidad»): 37 px a l'esquerra, 3 px amunt, i s'allarga amb el títol */
.gtact .gtact__ovalo {
	position: absolute; left: -.4111em; top: -.0333em; width: calc(100% + .793em); height: .9em; max-width: none;
	pointer-events: none; animation: gtact-oval 1.1s cubic-bezier(.65, 0, .35, 1) .2s both;
}
@keyframes gtact-oval { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.gtact__cos { padding: clamp(48px, 6.94vw, 100px) var(--gtn-lat) clamp(72px, 8.33vw, 120px); }
.gtact .gtact__buit { margin: 0; font-size: 20px; line-height: 30px; color: var(--gtn-b); }

/* Destacada: foto a la 1a columna, text a la 2a, píxels a la 3a (a baix, com al Figma) */
.gtact__dest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gtn-gap); align-items: end; }
.gtact__dest .gtnc--dest { grid-column: 1 / span 2; }
.gtact__px { display: block; max-width: 100%; height: auto; }
.gtact__px--dalt { grid-column: 3; justify-self: end; width: 269px; }
.gtact__graella { margin-top: clamp(56px, 6.94vw, 100px); }
.gtact__peu { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: var(--gtn-fila); }
.gtact__px--baix { width: 191px; margin-left: auto; }

/* ================= Tauleta (< 1100) ================= */
@media (max-width: 1099px) {
	.gtnc-graella { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gtact__dest { grid-template-columns: minmax(0, 1fr); }
	.gtact__dest .gtnc--dest { grid-column: 1; }
	.gtact__px--dalt { display: none; }
}

/* ================= Mòbil (< 768) ================= */
@media (max-width: 767px) {
	/* Fitxa */
	.gtnt-foto { aspect-ratio: 4 / 3; min-height: 0; }
	.gtnt { padding: 40px var(--gtn-lat) 56px; }
	.gtnt .gtnt__meta { margin-bottom: 16px; }
	.gtnt .gtnt__titol { line-height: .95; }
	.gtnt__fila { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
	.gtnt__px { width: 17px; height: 16px; margin: 0 0 20px; }
	.gtnt__cos { font-size: 18px; line-height: 28px; }
	.gtnt .gtnt__cos :is(p, ul, ol, blockquote, figure, table) { margin-bottom: 22px; }
	.gtnt .gtnt__cos .gtnt__lead { margin-bottom: 28px; font-size: 22px; line-height: 27px; }
	.gtnt .gtnt__cos :is(h2, h3, h4) { margin: 36px 0 16px; font-size: 24px; line-height: 27px; }
	.gtnt .gtnt__cos blockquote { padding-left: 18px; font-size: 20px; line-height: 28px; }
	.gtnt-mes__cap { align-items: flex-start; flex-direction: column; }

	/* Llistat */
	.gtact__vel { padding-top: 10px; padding-bottom: 8px; }
	.gtnc--dest { gap: 18px; }
	.gtnc.gtnc--dest .gtnc__titol { font-size: 34px; line-height: 31px; }
	.gtnc--dest .gtnc__txt { gap: 12px; }
	.gtact__graella { margin-top: 40px; }

	/* Files compactes: foto 104 × 104 i, al costat, la data i el títol; filet entre files */
	.gtnc-graella { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.gtnc-graella > li { padding: 20px 0; border-top: 1px solid rgba(242, 239, 233, .2); }
	.gtnc-graella > li:last-child { border-bottom: 1px solid rgba(242, 239, 233, .2); }
	.gtnc-graella .gtnc { flex-direction: row; align-items: flex-start; gap: 16px; }
	.gtnc-graella .gtnc__foto { flex: 0 0 104px; width: 104px; }
	.gtnc-graella .gtnc__txt { gap: 8px; padding-top: 2px; }
	.gtnc-graella .gtnc .gtnc__meta { font-size: 13px; line-height: 16px; }
	.gtnc-graella .gtnc .gtnc__titol { font-size: 20px; line-height: 23px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
	.gtnc-graella .gtnc .gtnc__ent { display: none; }
	.gtnc .gtnc__a:focus-visible::after { outline-offset: 3px; }
	.gtact__peu { margin-top: 40px; }
	.gtact__px--baix { width: 134px; }
}

@media (prefers-reduced-motion: reduce) {
	.gtact .gtact__ovalo { animation: none; }
	.gtnc__foto .gtnc__img { transition: none; }
	.gtnc:hover .gtnc__img { transform: none; }
}

/* Vídeos incrustats al cos (YouTube, Vimeo): tota l'amplada i 16:9 (al mòbil sortien a 341 × 450) */
.gtnt .gtnt__cos iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* Foto petita (notícies antigues, < 1200 px): a la seva mida, centrada sobre fosc, sense retallar ni estirar */
.gtnt-foto.gtnt-foto--petita {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: auto; min-height: 0; max-height: none;
	padding: clamp(24px, 3.9vw, 56px) var(--gtn-lat, 20px);
}
.gtnt-foto.gtnt-foto--petita .gtnt-foto__img {
	position: static; width: auto; height: auto;
	max-width: min(100%, var(--gtnt-w, 750px));
	max-height: calc(100svh - var(--gt-cap-h, 96px) - 112px);
	object-fit: contain;
}
