/*
Theme Name:  Radio Treviso
Description: Tema figlio di Divi per Radio Treviso.
Template:    Divi
Version:     0.2.0
Text Domain: radio-treviso
*/

:root {
	--rt-navy: #153643;
	--rt-navy-deep: #0e2630;
	--rt-orange: #ee7d22;
	--rt-orange-dark: #d4661a;
	--rt-sand: #f4a259;
	--rt-light: #f7f7f7;
	--rt-text: #2b2b2b;
	--rt-serif: 'Lora', Georgia, serif;
	--rt-label: 'Oswald', 'Arial Narrow', sans-serif;
	--rt-player-h: 64px;
}

body {
	font-family: var(--rt-serif);
	color: var(--rt-text);
	padding-bottom: var(--rt-player-h);
}

/* ---------- Header ---------- */

#main-header {
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

#top-menu li a,
.et_mobile_menu li a {
	font-family: var(--rt-label);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	color: var(--rt-navy);
}

#top-menu li.current-menu-item > a,
#top-menu li a:hover {
	color: var(--rt-orange) !important;
	opacity: 1 !important;
}

#top-menu li.rt-menu-listen > a {
	background: var(--rt-orange);
	color: #fff !important;
	padding: 10px 20px !important;
	border-radius: 100px;
	margin-top: -10px;
}

#top-menu li.rt-menu-listen > a:hover {
	background: var(--rt-orange-dark);
}

.mobile_menu_bar:before {
	color: var(--rt-orange) !important;
}

/* ---------- Content helpers ---------- */

/* Hero: photo on the right, buttons side by side */
.rt-hero {
	background-position: right center !important;
}

.rt-hero .et_pb_button_module_wrapper {
	display: inline-block;
	margin-right: 12px;
}

@media (max-width: 767px) {
	/* The side gradient doesn't cover the photo on narrow screens: veil it all */
	.rt-hero {
		box-shadow: inset 0 0 0 100vmax rgba(14, 38, 48, .72);
	}
}

.et_pb_text a,
.et_pb_blurb_description a {
	color: var(--rt-orange);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.rt-dark .et_pb_text a,
.rt-dark .et_pb_blurb_description a {
	color: var(--rt-sand);
}

.rt-apps {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
}

.rt-apps a {
	border: 0 !important;
}

.rt-apps img {
	height: 40px;
	width: auto;
}

.rt-logo-badge {
	height: 52px;
	width: auto;
	margin-top: 8px;
	opacity: .9;
}

.rt-quote {
	font-family: var(--rt-serif);
	font-style: italic;
}

.rt-contacts {
	list-style: none;
	padding: 0 !important;
	margin: 0;
}

.rt-contacts li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 20px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.rt-contacts li span {
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	color: #888;
}

.rt-checks {
	list-style: none !important;
	padding: 0 !important;
}

/* Equal-height rows: stretch the card to the column height */
.et_pb_equal_columns > .et_pb_column > .et_pb_blurb:only-child {
	height: 100%;
}

.rt-checks li {
	list-style: none;
	position: relative;
	padding: 10px 0 10px 36px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.rt-dark .rt-checks li {
	border-bottom-color: rgba(255, 255, 255, .12);
}

.rt-checks li:before {
	content: '';
	position: absolute;
	left: 0;
	top: 17px;
	width: 18px;
	height: 10px;
	border-left: 3px solid var(--rt-orange);
	border-bottom: 3px solid var(--rt-orange);
	transform: rotate(-45deg);
}

/* Press clippings: large, zoomable */
.rt-press-row {
	padding: 50px 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.rt-press-row:last-of-type {
	border-bottom: 0;
}

.rt-press-row .et_pb_image a {
	cursor: zoom-in;
	border: 0;
}

.rt-press-row .et_pb_image img {
	transition: transform .4s;
}

.rt-press-row .et_pb_image:hover img {
	transform: scale(1.02);
}

.rt-btn {
	display: inline-block;
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 14px;
	color: #fff;
	background: var(--rt-orange);
	border: 0;
	border-radius: 100px;
	padding: 12px 26px;
	cursor: pointer;
	transition: background .2s;
}

.rt-btn:hover {
	background: var(--rt-orange-dark);
}

/* ---------- Mobile: one column ---------- */

/* Divi 5 keeps custom-gutter rows side by side on phones: stack every row */
@media (max-width: 767px) {
	.et_pb_row {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.et_pb_row > .et_pb_column {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		margin-right: 0 !important;
		margin-bottom: 30px !important;
	}

	.et_pb_row > .et_pb_column:last-child {
		margin-bottom: 0 !important;
	}

	/* Press clippings: headline first, then the page */
	.rt-press-row > .et_pb_column_3_5 {
		order: 2;
	}

	.rt-press-row {
		padding: 30px 0 !important;
	}
}

/* ---------- Footer ---------- */

#main-footer.rt-footer {
	background: var(--rt-navy-deep);
	border-top: 4px solid var(--rt-orange);
	color: rgba(255, 255, 255, .75);
	font-size: 15px;
	line-height: 1.8em;
}

.rt-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 70px 0 50px;
}

.rt-footer h5 {
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 15px;
	color: rgba(255, 255, 255, .45);
	margin-bottom: 14px;
}

.rt-footer__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.rt-footer__logo img {
	width: 220px;
	height: auto;
}

.rt-footer ul {
	list-style: none;
	padding: 0;
}

.rt-footer a {
	color: #fff;
}

.rt-footer a:hover {
	color: var(--rt-sand);
}

.rt-footer .rt-btn {
	margin-top: 18px;
}

.rt-footer #footer-bottom {
	background: #0a1c24;
	padding: 24px 0;
}

.rt-footer__legal {
	font-size: 12px;
	line-height: 1.7em;
	color: rgba(255, 255, 255, .5);
}

.rt-footer__links {
	font-size: 12px;
	margin-top: 8px;
}

@media (max-width: 980px) {
	.rt-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.rt-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ---------- Live player ---------- */

.rt-player {
	position: fixed;
	z-index: 99999;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--rt-player-h);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 24px;
	background: var(--rt-navy-deep);
	color: #fff;
	box-shadow: 0 -6px 30px rgba(0, 0, 0, .2);
}

.rt-player__btn {
	flex: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--rt-orange);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .2s, transform .2s;
}

.rt-player__btn:hover {
	background: var(--rt-orange-dark);
	transform: scale(1.06);
}

.rt-player__btn svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}

.rt-player .rt-icon-pause,
.rt-player[data-state="playing"] .rt-icon-play,
.rt-player[data-state="loading"] .rt-icon-play {
	display: none;
}

.rt-player[data-state="playing"] .rt-icon-pause,
.rt-player[data-state="loading"] .rt-icon-pause {
	display: block;
}

.rt-player[data-state="loading"] .rt-player__btn {
	animation: rt-pulse 1s infinite;
}

.rt-player__info {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.rt-player__info strong {
	font-family: var(--rt-serif);
	font-size: 17px;
}

.rt-player__live {
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 11px;
	color: rgba(255, 255, 255, .6);
}

.rt-player__live i {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e53935;
	margin-right: 6px;
	vertical-align: 1px;
}

.rt-player__eq {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 18px;
	opacity: 0;
	transition: opacity .3s;
}

.rt-player__eq i {
	width: 3px;
	height: 100%;
	background: var(--rt-orange);
	animation: rt-eq 1s ease-in-out infinite;
	animation-play-state: paused;
}

.rt-player__eq i:nth-child(2) { animation-delay: -.3s; }
.rt-player__eq i:nth-child(3) { animation-delay: -.6s; }
.rt-player__eq i:nth-child(4) { animation-delay: -.9s; }

.rt-player[data-state="playing"] .rt-player__eq {
	opacity: 1;
}

.rt-player[data-state="playing"] .rt-player__eq i {
	animation-play-state: running;
}

.rt-player__dab {
	margin-left: auto;
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
}

/* ---------- Pop-up window ---------- */

.rt-popup-page {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: var(--rt-navy);
	color: #fff;
	font-family: var(--rt-serif);
}

.rt-popup {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 24px;
	box-sizing: border-box;
	text-align: center;
}

.rt-popup__logo {
	width: 200px;
	height: auto;
	border-radius: 10px;
	background: #fff;
	padding: 10px 16px;
	margin-bottom: 26px;
}

.rt-player--popup {
	position: static;
	height: auto;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	background: none;
	box-shadow: none;
}

.rt-player--popup .rt-player__btn {
	width: 84px;
	height: 84px;
	box-shadow: 0 10px 40px rgba(238, 125, 34, .45);
}

.rt-player--popup .rt-player__btn svg {
	width: 44px;
	height: 44px;
}

.rt-player--popup .rt-player__info {
	align-items: center;
}

.rt-player--popup .rt-player__info strong {
	font-size: 24px;
}

.rt-player__volume {
	width: 180px;
	accent-color: var(--rt-orange);
}

.rt-popup__note {
	margin: 18px 0 6px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .7);
}

.rt-popup__dab {
	font-family: var(--rt-label);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 11px;
	color: rgba(255, 255, 255, .45);
}

@keyframes rt-eq {
	0%, 100% { transform: scaleY(.25); transform-origin: bottom; }
	50% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes rt-pulse {
	50% { opacity: .6; }
}

@media (max-width: 600px) {
	.rt-player {
		padding: 0 16px;
	}

	.rt-player__dab {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-player__eq i,
	.rt-player[data-state="loading"] .rt-player__btn {
		animation: none;
	}
}
