/*
Theme Name: Teramo Capoluogo
Version: 1.1.0
Text Domain: teramo-capoluogo
Requires PHP: 7.4
*/

:root {
	--tc-red: #d1262b;
	--tc-red-dark: #a91f25;
	--tc-ink: #11161c;
	--tc-blue: #476a9f;
	--tc-sand: #f5efe8;
	--tc-white: #ffffff;
	--tc-border: rgba(17, 22, 28, 0.08);
	--tc-radius: 12px;
	--tc-shadow: 0 8px 24px rgba(17, 22, 28, 0.15);
	--tc-container: min(1200px, calc(100vw - 32px));
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: geometricPrecision;
}

img {
	height: auto;
}

.homemaincarousel {
	background: #111;
}

.homemaincarousel .w-slider-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	padding: 0;
	margin-right: 3px;
	margin-left: 3px;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.6);
	appearance: none;
	cursor: pointer;
}

.homemaincarousel .w-slider-dot.w-active {
	background-color: #fff;
}

.homemaincarousel .w-slider-dot:focus {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.homemaincarousel .w-slide.is-hidden {
	display: none;
}

.section-default.rosso .btn {
	color: var(--tc-red);
}

.articoliconfotogriditem3,
.articoliconfotogriditem3__imagebox,
.articoliconfotogriditem__imagebox {
	position: relative;
	overflow: hidden;
}

.articoliconfotogriditem3__imagebox img,
.articoliconfotogriditem__imagebox img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footerlink {
	color: #fff;
}

.maincontent__body {
	color: #111;
}

.maincontent__body p {
	margin-top: 0;
	margin-bottom: 1.1em;
}

.maincontent__body img {
	height: auto;
}

.tc-empty-state {
	grid-column: 1 / -1;
	padding: 48px 24px;
	border-top: 6px solid var(--tc-red);
	box-shadow: 1px 1px 6px -3px #000;
	text-align: center;
	color: #111;
}

.tc-empty-state h2 {
	margin-top: 0;
}

.pager .page-numbers {
	display: inline-block;
	padding-right: 6px;
	padding-left: 6px;
	color: #111;
	text-decoration: none;
}

.pager .page-numbers.current {
	color: var(--tc-red);
}

.tc-tabs-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.tc-press-contact-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 40px;
}

.tc-luoghi-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tc-luogo-card {
	overflow: hidden;
	background: #fff;
	border-top: 6px solid var(--tc-red);
	box-shadow: 1px 1px 6px -3px #000;
}

.tc-luogo-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tc-luogo-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eee;
}

.tc-luogo-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tc-luogo-card__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 10px;
	background: rgba(209, 38, 43, 0.94);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.tc-luogo-card__body {
	padding: 18px;
	color: #111;
}

.tc-luogo-card__body h2 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 22px;
	line-height: 1.25;
}

.tc-luogo-card__body p {
	margin-top: 0;
	font-size: 14px;
	line-height: 1.5;
}

.tc-luogo-card__cta {
	color: var(--tc-red);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.tc-luogo-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}

.tc-project-facts {
	position: sticky;
	top: 24px;
	padding: 24px;
	border-top: 6px solid var(--tc-red);
	box-shadow: 1px 1px 6px -3px #000;
	color: #111;
}

.tc-project-facts h2 {
	margin-top: 0;
	font-size: 24px;
}

.tc-fact-row {
	display: grid;
	gap: 6px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.tc-fact-row span {
	color: #666;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.tc-fact-row strong {
	font-size: 15px;
	line-height: 1.35;
}

.tc-project-facts .btn {
	margin-top: 20px;
}

.tc-infobox-item {
	margin-left: 20px;
	font-size: 14px;
	line-height: 14px;
}

.tc-detail-block {
	margin-top: 56px;
}

.maincontent__body .teramo-imported-media {
	margin-top: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.maincontent__body .wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2px !important;
	align-items: stretch;
	width: 100%;
	max-width: none;
	margin-top: 10px;
	margin-right: 0;
	margin-bottom: 20px;
	margin-left: 0;
}

.maincontent__body .wp-block-gallery.has-nested-images figure.wp-block-image {
	position: relative;
	display: block !important;
	overflow: hidden;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding-top: 75%;
}

.maincontent__body .wp-block-gallery.has-nested-images figure.wp-block-image a,
.maincontent__body .wp-block-gallery.has-nested-images figure.wp-block-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.maincontent__body .wp-block-gallery.has-nested-images figure.wp-block-image img {
	object-fit: cover;
}

.maincontent__body .wp-block-video {
	width: 100%;
	max-width: none;
	margin-top: 10px;
	margin-right: 0;
	margin-left: 0;
}

.maincontent__body .wp-block-video video {
	display: block;
	width: 100%;
	max-width: 100%;
}

.presskit__content .heading-14 {
	font-size: 26px;
	line-height: 1.2;
}

@media screen and (max-width: 767px) {
	.mainnav-link {
		font-size: 11px;
	}

	.image-6 {
		width: 130px;
	}

	.tc-press-contact-grid,
	.tc-luoghi-grid,
	.tc-luogo-detail-grid {
		grid-template-columns: 1fr;
	}

	.presskit {
		display: block;
	}

	.div-block-61,
	.presskit__content {
		width: 100%;
	}

	.div-block-61 {
		height: 260px;
	}

	.tc-project-facts {
		position: static;
	}
}

@media screen and (max-width: 639px) {
	.maincontent__body .wp-block-gallery.has-nested-images {
		grid-template-columns: 1fr 1fr;
	}
}
