/*
Theme Name: Clinica HiTech
Theme URI: https://clinicahitech.it/
Author: Clinica HiTech
Description: Ricostruzione del tema storico Enfold 2021 di Clinica HiTech, realizzata su codice WordPress moderno.
Version: 2.1.4
Text Domain: clinicahitech
*/

@font-face {
	font-family: "Arimo";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/arimo-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Arimo";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/arimo-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Arimo";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/arimo-italic-latin.woff2") format("woff2");
}

:root {
	--ink: #102d50;
	--ink-soft: #557087;
	--blue-900: #0d3e75;
	--blue-700: #175a9c;
	--blue-500: #2386c5;
	--cyan: #14a7b7;
	--cyan-soft: #dff6f7;
	--magenta: #c4297a;
	--surface: #ffffff;
	--surface-soft: #f5f8fb;
	--line: #dce7ef;
	--shadow: 0 22px 55px rgba(13, 62, 117, 0.12);
	--radius: 22px;
	--container: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: "Arimo", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

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

.screen-reader-text:focus {
	z-index: 10000;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	overflow: visible;
	clip: auto;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--blue-900);
	white-space: normal;
}

a {
	color: var(--blue-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--magenta);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--blue-700);
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.55em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(2.45rem, 5vw, 4.85rem);
}

h2 {
	font-size: clamp(2rem, 3.6vw, 3.15rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
	margin: 0 0 1.15em;
}

.site-shell {
	width: min(calc(100% - 40px), var(--container));
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	z-index: 9999;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	transform: translateY(-140%);
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	z-index: 900;
	top: 0;
	border-bottom: 1px solid rgba(220, 231, 239, 0.9);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(14px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 92px;
	gap: 28px;
}

.brand {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand img {
	width: min(300px, 48vw);
	max-height: 72px;
	object-fit: contain;
	object-position: left center;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav ul a {
	display: inline-flex;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink);
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-nav ul a:hover,
.primary-nav .current-menu-item > a {
	background: var(--surface-soft);
	color: var(--blue-700);
}

.header-cta,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--blue-700);
	box-shadow: 0 10px 26px rgba(23, 90, 156, 0.2);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover,
.button:hover {
	transform: translateY(-2px);
	background: var(--blue-900);
	box-shadow: 0 15px 34px rgba(23, 90, 156, 0.28);
	color: #fff;
}

.button--secondary {
	border-color: rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.button--secondary:hover {
	background: rgba(255, 255, 255, 0.16);
}

.button--light {
	background: #fff;
	box-shadow: none;
	color: var(--blue-900);
}

.button--light:hover {
	background: #fff;
	color: var(--blue-900);
}

.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--surface-soft);
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px auto;
	border-radius: 99px;
	background: currentColor;
	content: "";
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span {
	opacity: 0;
}

.menu-open .menu-toggle::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle::after {
	transform: translateY(-7px) rotate(-45deg);
}

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	min-height: 680px;
	place-items: center;
	overflow: hidden;
	background: var(--blue-900);
	color: #fff;
}

.hero::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	background-image: url("assets/images/hero-medical.webp");
	background-position: center;
	background-size: cover;
	content: "";
}

.hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 34, 68, 0.93) 0%, rgba(13, 62, 117, 0.78) 45%, rgba(13, 62, 117, 0.35) 100%),
		radial-gradient(circle at 78% 42%, rgba(20, 167, 183, 0.26), transparent 42%);
	content: "";
}

.hero-content {
	width: min(760px, 100%);
	padding-block: 96px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--blue-700);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 34px;
	height: 2px;
	background: currentColor;
	content: "";
}

.hero .eyebrow {
	color: #8ee7ee;
}

.hero h1 {
	max-width: 730px;
	color: #fff;
}

.hero-lead {
	max-width: 650px;
	margin-bottom: 30px;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: -42px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
	box-shadow: var(--shadow);
}

.hero-fact {
	padding: 28px;
	background: #fff;
}

.hero-fact strong {
	display: block;
	margin-bottom: 4px;
	color: var(--blue-900);
	font-size: 1.15rem;
}

.hero-fact span {
	display: block;
	color: var(--ink-soft);
	font-size: 0.94rem;
	line-height: 1.45;
}

.section {
	padding-block: clamp(72px, 9vw, 118px);
}

.section--soft {
	background: var(--surface-soft);
}

.section--dark {
	position: relative;
	overflow: hidden;
	background: var(--blue-900);
	color: rgba(255, 255, 255, 0.82);
}

.section--dark::after {
	position: absolute;
	right: -180px;
	bottom: -280px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: rgba(20, 167, 183, 0.15);
	content: "";
}

.section--dark h2,
.section--dark h3 {
	color: #fff;
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
	align-items: end;
	gap: 48px;
	margin-bottom: 42px;
}

.section-heading p {
	margin: 0;
	color: var(--ink-soft);
}

.treatment-group + .treatment-group {
	margin-top: 78px;
}

.group-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.group-heading h3 {
	margin: 0;
}

.group-kicker {
	color: var(--magenta);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

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

.treatment-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(13, 62, 117, 0.08);
	color: var(--ink);
	text-decoration: none;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.treatment-card:hover {
	transform: translateY(-5px);
	border-color: rgba(20, 167, 183, 0.48);
	box-shadow: var(--shadow);
	color: var(--ink);
}

.treatment-card figure {
	position: relative;
	aspect-ratio: 500 / 356;
	margin: 0;
	overflow: hidden;
	background: #eaf1f6;
}

.treatment-card figure::after {
	position: absolute;
	inset: 0;
	border-bottom: 3px solid var(--cyan);
	background: linear-gradient(180deg, transparent 66%, rgba(13, 62, 117, 0.08));
	content: "";
}

.treatment-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.treatment-card:hover img {
	transform: scale(1.025);
}

.treatment-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.treatment-card h3 {
	margin-bottom: 8px;
	font-size: 1.24rem;
}

.treatment-card p {
	margin: 0 0 20px;
	color: var(--ink-soft);
	font-size: 0.94rem;
	line-height: 1.5;
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--blue-700);
	font-size: 0.9rem;
	font-weight: 700;
}

.card-link::after {
	content: "→";
	transition: transform 0.2s ease;
}

.treatment-card:hover .card-link::after {
	transform: translateX(4px);
}

.why-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 42px;
}

.why-card {
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.07);
}

.why-icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: 20px;
	place-items: center;
	border-radius: 14px;
	background: rgba(142, 231, 238, 0.14);
	color: #8ee7ee;
	font-size: 1.35rem;
	font-weight: 700;
}

.why-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.94rem;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
	align-items: center;
	gap: clamp(40px, 7vw, 90px);
}

.info-panel {
	padding: clamp(32px, 5vw, 56px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.info-list {
	display: grid;
	gap: 18px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.info-list li {
	position: relative;
	padding-left: 32px;
	color: var(--ink-soft);
}

.info-list li::before {
	position: absolute;
	top: 0.12em;
	left: 0;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: var(--cyan-soft);
	color: var(--blue-700);
	content: "✓";
	font-size: 0.75rem;
	font-weight: 700;
}

.cta-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	padding: clamp(34px, 6vw, 64px);
	border-radius: 28px;
	background: linear-gradient(135deg, var(--blue-900), var(--blue-700) 58%, var(--cyan));
	box-shadow: var(--shadow);
	color: rgba(255, 255, 255, 0.82);
}

.cta-panel h2 {
	max-width: 700px;
	color: #fff;
}

.cta-panel p {
	max-width: 670px;
	margin-bottom: 0;
}

.page-hero {
	padding-block: 76px 62px;
	background:
		linear-gradient(135deg, rgba(13, 62, 117, 0.96), rgba(23, 90, 156, 0.9)),
		url("assets/images/hero-medical.webp") center / cover;
	color: rgba(255, 255, 255, 0.8);
}

.page-hero h1 {
	max-width: 900px;
	color: #fff;
	font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.page-hero .eyebrow {
	color: #8ee7ee;
}

.breadcrumbs {
	margin-bottom: 24px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.87rem;
}

.breadcrumbs a {
	color: #fff;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 70px;
}

.prose {
	max-width: 820px;
}

.catalogue-intro {
	margin-bottom: 72px;
}

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

.prose h2,
.prose h3 {
	margin-top: 1.55em;
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
}

.prose blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border-left: 4px solid var(--cyan);
	border-radius: 0 14px 14px 0;
	background: var(--surface-soft);
}

.prose img {
	margin-block: 28px;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.sidebar-card {
	position: sticky;
	top: 124px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface-soft);
}

.sidebar-card h2 {
	font-size: 1.35rem;
}

.sidebar-card p {
	color: var(--ink-soft);
	font-size: 0.94rem;
}

.treatment-visual {
	margin-bottom: 38px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-soft);
}

.treatment-visual img {
	width: 100%;
	border-radius: 14px;
}

.notice {
	padding: 20px 22px;
	border: 1px solid #cae4e8;
	border-radius: 14px;
	background: #f0fbfc;
	color: #294d63;
	font-size: 0.94rem;
}

.location-grid,
.contact-grid,
.team-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-block: 30px 42px;
}

.location-card,
.contact-card,
.team-grid article,
.team-lead {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface-soft);
}

.location-card h2,
.contact-card h2,
.team-grid h3,
.team-lead h2 {
	margin-top: 0;
}

.location-card address,
.contact-card address,
.footer-contact {
	font-style: normal;
}

.team-grid article p {
	margin-bottom: 0;
	color: var(--ink-soft);
}

.team-lead {
	margin-block: 28px 42px;
	border-color: #cae4e8;
	background: #f0fbfc;
}

.footer-contact {
	line-height: 1.7;
}

.footer-legal {
	margin-top: 16px !important;
	padding-top: 16px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer {
	padding-block: 64px 26px;
	background: #082b54;
	color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.7fr 0.7fr;
	gap: 54px;
}

.footer-brand img {
	width: min(300px, 100%);
	padding: 10px;
	border-radius: 12px;
	background: #fff;
}

.footer-brand p {
	max-width: 440px;
	margin-top: 20px;
}

.site-footer h2 {
	color: #fff;
	font-size: 1.05rem;
	letter-spacing: 0;
}

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

.site-footer li + li {
	margin-top: 8px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.site-footer a:hover {
	color: #8ee7ee;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 54px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
}

.empty-state {
	padding: 44px;
	border: 1px dashed #b7cad9;
	border-radius: var(--radius);
	background: var(--surface-soft);
	text-align: center;
}

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

.post-card {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
}

.post-card time {
	color: var(--magenta);
	font-size: 0.82rem;
	font-weight: 700;
}

.post-card h2 {
	margin-top: 10px;
	font-size: 1.35rem;
}

.post-card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.post-card h2 a:hover {
	color: var(--blue-700);
}

@media (max-width: 1040px) {
	.menu-toggle {
		display: block;
	}

	.primary-nav {
		position: fixed;
		inset: 92px 0 auto;
		display: none;
		max-height: calc(100vh - 92px);
		overflow: auto;
		padding: 24px;
		border-top: 1px solid var(--line);
		background: #fff;
		box-shadow: 0 24px 50px rgba(13, 62, 117, 0.12);
	}

	.menu-open .primary-nav {
		display: block;
	}

	.primary-nav ul {
		align-items: stretch;
		flex-direction: column;
	}

		.primary-nav ul a {
			padding: 14px 12px;
		}

	.header-cta {
		margin-top: 12px;
	}

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

	.content-layout {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.sidebar-card {
		position: static;
	}
}

@media (max-width: 760px) {
	.location-grid,
	.contact-grid,
	.team-grid {
		grid-template-columns: 1fr;
	}

	body {
		font-size: 16px;
	}

	.site-shell {
		width: min(calc(100% - 28px), var(--container));
	}

	.header-inner {
		min-height: 78px;
	}

	.brand img {
		width: min(240px, 65vw);
		max-height: 58px;
	}

	.primary-nav {
		inset-block-start: 78px;
		max-height: calc(100vh - 78px);
	}

	.hero {
		min-height: 630px;
	}

	.hero-content {
		padding-block: 76px 112px;
	}

	.hero::after {
		background: linear-gradient(90deg, rgba(7, 34, 68, 0.94), rgba(13, 62, 117, 0.76));
	}

	.hero::before {
		background-image: url("assets/images/hero-medical-960.webp");
	}

	.hero-facts {
		grid-template-columns: 1fr;
		margin-top: -66px;
	}

	.hero-fact {
		padding: 22px;
	}

	.section {
		padding-block: 68px;
	}

	.section-heading,
	.split,
	.cta-panel,
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cards,
	.why-grid,
	.post-list {
		grid-template-columns: 1fr;
	}

	.group-heading,
	.footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.treatment-group + .treatment-group {
		margin-top: 58px;
	}

	.cta-panel {
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
