/**
 * Theme Name: Rey Child
 * Theme URI: http://reytheme.com/
 * Description: This is a child theme of Rey.
 * Author: Marius H.
 * Author URI:  https://twitter.com/mariushoria
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */


/* =========================================================
   SINGLE GIOCATORE
   ========================================================= */

.single-player {
	padding: 70px 0 100px;
}

.single-player__container {
	width: min(1200px, calc(100% - 50px));
	margin: 0 auto;
}


/* Torna al roster
--------------------------------------------------------- */

.single-player__back {
	margin-bottom: 35px;
}

.single-player__back a {
	display: inline-flex;
	align-items: center;
	gap: 10px;

	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;

	color: var(--blue);
	text-decoration: none;

	transition: color .2s ease;
}

.single-player__back a span {
	font-size: 21px;
	color: #b90c0b;

	transition: transform .2s ease;
}

.single-player__back a:hover {
	color: #b90c0b;
}

.single-player__back a:hover span {
	transform: translateX(-4px);
}


/* Layout
--------------------------------------------------------- */

.single-player__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	gap: 70px;
	align-items: start;
}


/* Titolo
--------------------------------------------------------- */

.single-player__header {
	margin-bottom: 35px;
}

.single-player__title {
	margin: 0;

	font-size: clamp(38px, 4vw, 62px);
	line-height: .95;
	font-weight: 400;
	text-transform: uppercase;

	color: var(--blue);
}

.single-player__line {
	width: 48px;
	height: 3px;

	margin-top: 20px;

	background: #b90c0b;
}


/* Contenuto WordPress
--------------------------------------------------------- */

.single-player__body {
	font-size: 17px;
	line-height: 1.7;
	color: #333;
}

.single-player__body > *:first-child {
	margin-top: 0;
}

.single-player__body p {
	margin-bottom: 1.5em;
}

.single-player__body h2,
.single-player__body h3,
.single-player__body h4 {
	color: var(--blue);
	margin-top: 1.8em;
	margin-bottom: .7em;
}


/* Immagini inserite dentro Gutenberg */

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

.single-player__body figure {
	margin-top: 35px;
	margin-bottom: 35px;
}

.single-player__body .wp-block-image img {
	width: 100%;
	height: auto;
}


/* Featured image
--------------------------------------------------------- */

.single-player__media {
	position: relative;
}

.single-player__image {
	position: sticky;
	top: 100px;
	overflow: hidden;
	background: #f5f5f5;
}

.single-player__featured {
	display: block;

	width: 100%;
	height: auto;

	object-fit: cover;
}


/* Piccolo dettaglio diagonale */

.single-player__image::after {
	content: "";
	position: absolute;

	top: -70px;
	right: 35px;

	width: 25px;
	height: 180px;

	background: #b90c0b;

	transform: rotate(40deg);
	transform-origin: center;

	pointer-events: none;
}

.single-player__role {
	margin-top: 15px;

	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;

	color: var(--blue);
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

	.single-player {
		padding: 50px 0 70px;
	}

	.single-player__grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 40px;
	}

	.single-player__title {
		font-size: 42px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.single-player {
		padding: 35px 0 60px;
	}

	.single-player__container {
		width: min(100% - 30px, 1200px);
	}

	.single-player__back {
		margin-bottom: 25px;
	}

	.single-player__grid {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}

	.single-player__content {
		display: contents;
	}

	.single-player__header {
		order: 1;
		margin-bottom: 0;
	}

	.single-player__media {
		order: 2;
		width: 100%;
	}

	.single-player__body {
		order: 3;
		font-size: 16px;
	}

	.single-player__image {
		position: relative;
		top: auto;
	}

	.single-player__title {
		font-size: 38px;
	}

}