/* ==========================================================================
   Atman Medical, stili del tema child
   Colori e font ricavati dal Kit globale Elementor del sito originale.
   ========================================================================== */

:root {
	--atman-blue: #1B509F;     /* primario / testo */
	--atman-teal: #3BB8BB;     /* secondario / accento */
	--atman-light: #EDF4F4;    /* sfondi chiari */
	--atman-white: #FFFFFF;
	--atman-font: "Poppins", sans-serif;
	--atman-font-script: "Fasthand", cursive;
	--atman-max: 1140px;
	--atman-bp: 1024px;
}

body {
	font-family: var(--atman-font);
	color: var(--atman-blue);
}

.atman-container {
	max-width: var(--atman-max);
	margin: 0 auto;
	padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.atman-header {
	background: var(--atman-blue);
	position: relative;
	z-index: 100;
}

.atman-header__inner {
	max-width: var(--atman-max);
	min-height: 66px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atman-header .atman-menu,
.atman-header .atman-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atman-header .atman-menu {
	display: flex;
	justify-content: center;
	align-items: center;
}

.atman-header .atman-menu > li {
	position: relative;
}

.atman-header .atman-menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 13px 20px;
	font-family: var(--atman-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	color: var(--atman-teal);
	text-decoration: none;
	transition: color .2s ease;
}

.atman-header .atman-menu > li > a:hover,
.atman-header .atman-menu > li > a:focus-visible,
.atman-header .atman-menu > .current-menu-item > a,
.atman-header .atman-menu > .current-menu-ancestor > a {
	color: var(--atman-light);
}

/* freccia dei sottomenu */
.atman-header .atman-menu .menu-item-has-children > a::after {
	content: "";
	border: 5px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
	margin-top: 2px;
}

.atman-submenu-toggle {
	display: none;
}

/* sottomenu desktop */
.atman-header .atman-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--atman-light);
	box-shadow: 0 6px 18px rgba(27, 80, 159, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.atman-header .atman-menu li:hover > .sub-menu,
.atman-header .atman-menu li:focus-within > .sub-menu,
.atman-header .atman-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.atman-header .atman-menu .sub-menu a {
	color: var(--atman-blue);
	font-weight: 500;
	font-size: 15px;
}

.atman-header .atman-menu .sub-menu a:hover,
.atman-header .atman-menu .sub-menu .current-menu-item > a {
	background: var(--atman-blue);
	color: var(--atman-white);
}

/* burger: i reset con !important evitano che lo stile globale dei pulsanti del Kit Elementor lo deformi */
.atman-header .atman-burger {
	display: none;
	width: 44px;
	height: 44px;
	min-width: 0;
	margin: 0;
	padding: 10px !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
}

.atman-burger span {
	display: block;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background: var(--atman-light);
	transition: transform .2s ease, opacity .2s ease;
}

.atman-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.atman-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.atman-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

@media (max-width: 1024px) {
	.atman-header__inner {
		justify-content: center;
		flex-wrap: wrap;
	}

	.atman-header .atman-burger {
		display: flex;
	}

	.atman-nav {
		display: none;
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		background: var(--atman-light);
		box-shadow: 0 8px 20px rgba(27, 80, 159, .15);
	}

	.atman-nav.is-open {
		display: block;
	}

	.atman-header .atman-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.atman-header .atman-menu > li {
		display: flex;
		flex-wrap: wrap;
		border-bottom: 1px solid rgba(27, 80, 159, .1);
	}

	.atman-header .atman-menu a,
	.atman-header .atman-menu > li > a:hover,
	.atman-header .atman-menu > .current-menu-item > a {
		color: var(--atman-blue);
		flex: 1;
	}

	.atman-header .atman-menu > .current-menu-item > a {
		background: var(--atman-blue);
		color: var(--atman-white);
	}

	.atman-header .atman-menu .menu-item-has-children > a::after {
		display: none;
	}

	.atman-header .atman-menu .atman-submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 50px;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		color: var(--atman-blue) !important;
		cursor: pointer;
	}

	.atman-submenu-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s ease;
	}

	.is-open > .atman-submenu-toggle::before {
		transform: translateY(2px) rotate(-135deg);
	}

	.atman-header .atman-menu .sub-menu {
		position: static;
		width: 100%;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: var(--atman-white);
	}

	.atman-header .atman-menu li:hover > .sub-menu,
	.atman-header .atman-menu li:focus-within > .sub-menu {
		display: none;
	}

	.atman-header .atman-menu li.is-open > .sub-menu {
		display: block;
	}

	.atman-header .atman-menu .sub-menu a {
		padding-left: 36px;
	}
}

/* --------------------------------------------------------------------------
   Modulo contatti [atman_form]
   -------------------------------------------------------------------------- */
.atman-form {
	font-family: var(--atman-font);
}

.atman-form__grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

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

.atman-field {
	margin: 0 0 16px;
	padding: 0 8px;
	width: 100%;
}

.atman-field--half {
	width: 50%;
}

@media (max-width: 767px) {
	.atman-field--half {
		width: 100%;
	}
}

.atman-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	font-weight: 400;
	color: var(--atman-blue);
}

.atman-field input[type="text"],
.atman-field input[type="email"],
.atman-field input[type="tel"],
.atman-field textarea {
	width: 100%;
	padding: 8px 16px;
	font-family: var(--atman-font);
	font-size: 15px;
	color: #1f2124;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--atman-blue);
	border-radius: 0;
	box-shadow: none;
}

.atman-field input:focus,
.atman-field textarea:focus {
	outline: none;
	border-bottom-width: 2px;
	border-bottom-color: var(--atman-teal);
}

.atman-field--check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.atman-field--check input {
	margin-top: 5px;
	accent-color: var(--atman-blue);
}

.atman-field--check label {
	display: inline;
	margin: 0;
}

.atman-field--check a {
	color: var(--atman-teal);
}

.atman-form__submit,
.atman-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 24px;
	font-family: var(--atman-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--atman-white);
	background: var(--atman-blue);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background .2s ease;
}

.atman-btn {
	width: auto;
	background: var(--atman-teal);
}

.atman-form__submit:hover,
.atman-btn:hover {
	background: var(--atman-teal);
	color: var(--atman-white);
}

.atman-btn:hover {
	background: var(--atman-blue);
}

.atman-form__notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	font-size: 15px;
}

.atman-form__notice--ok {
	background: #e6f6f1;
	color: #0f6b4f;
}

.atman-form__notice--error {
	background: #fdecec;
	color: #a12626;
}

.atman-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Titoli, briciole, separatori
   -------------------------------------------------------------------------- */
.atman-page-title {
	font-family: var(--atman-font);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2em;
	color: var(--atman-blue);
	margin: 0 0 16px;
}

.atman-section-title {
	font-size: 30px;
	font-weight: 500;
	color: var(--atman-blue);
	margin: 0 0 30px;
}

.atman-kicker {
	font-family: var(--atman-font-script);
	font-size: 32px;
	color: var(--atman-blue);
	margin: 0;
}

.atman-divider {
	width: 60px;
	border: 0;
	border-top: 3px solid var(--atman-teal);
	margin: 10px 0 20px;
}

.rank-math-breadcrumb,
.atman-breadcrumb {
	font-size: 14px;
	margin-bottom: 12px;
}

.rank-math-breadcrumb a,
.atman-breadcrumb a {
	color: var(--atman-teal);
}

@media (max-width: 767px) {
	.atman-page-title { font-size: 30px; }
	.atman-section-title { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   Schede Staff / Servizi
   -------------------------------------------------------------------------- */
.atman-scheda__hero {
	padding: 60px 0;
	background: var(--atman-light);
}

.atman-scheda__grid {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 50px;
	align-items: start;
}

.atman-scheda__media img {
	width: 100%;
	height: auto;
	display: block;
}

.atman-scheda__content {
	font-size: 16px;
	line-height: 1.6em;
}

.atman-scheda__staff {
	padding: 60px 0;
}

@media (max-width: 767px) {
	.atman-scheda__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.atman-scheda__hero,
	.atman-scheda__staff {
		padding: 40px 0;
	}
}

/* Griglia [atman_staff] (sostituisce Posts > Cards di Elementor Pro) */
.atman-cards {
	display: grid;
	grid-template-columns: repeat(var(--atman-cols, 4), minmax(0, 1fr));
	gap: 30px;
}

@media (max-width: 1024px) {
	.atman-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.atman-cards { grid-template-columns: 1fr; }
}

.atman-card {
	background: var(--atman-white);
	box-shadow: 0 0 10px rgba(0, 0, 0, .15);
	transition: box-shadow .25s ease, transform .25s ease;
}

.atman-card:hover {
	box-shadow: 0 0 30px rgba(0, 0, 0, .15);
	transform: translateY(-2px);
}

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

.atman-card__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--atman-light);
}

.atman-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.atman-card__body {
	padding: 20px 24px 24px;
}

.atman-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3em;
	color: var(--atman-blue);
	margin: 0 0 8px;
}

.atman-card__excerpt {
	font-size: 14px;
	margin: 0 0 10px;
	color: #555;
}

.atman-card__more {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--atman-teal);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.atman-footer:not(.atman-footer--elementor) {
	background: var(--atman-light);
	color: var(--atman-blue);
	padding: 60px 20px 30px;
	font-size: 15px;
	line-height: 1.5em;
}

.atman-footer__top {
	max-width: var(--atman-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.atman-footer__logo {
	max-width: 216px;
	height: auto;
	display: block;
	margin-bottom: 20px;
}

.atman-footer__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .05em;
	margin: 0 0 6px;
}

.atman-footer__partner {
	max-width: 234px;
	height: auto;
	display: block;
}

.atman-footer__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--atman-blue);
	margin: 0 0 14px;
}

.atman-footer p {
	margin: 0 0 10px;
}

.atman-footer a {
	color: var(--atman-blue);
	text-decoration: none;
}

.atman-footer a:hover {
	color: var(--atman-teal);
}

.atman-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
}

.atman-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--atman-blue);
	color: var(--atman-white);
}

.atman-social a:hover {
	background: var(--atman-teal);
	color: var(--atman-white);
}

.atman-footer__divider {
	max-width: var(--atman-max);
	margin: 40px auto 24px;
	border: 0;
	border-top: 1px solid rgba(27, 80, 159, .25);
}

.atman-footer__bottom {
	max-width: var(--atman-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 2fr 1fr;
	gap: 20px;
	font-size: 13px;
}

.atman-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atman-footer__credits {
	text-align: right;
}

@media (max-width: 1024px) {
	.atman-footer__top,
	.atman-footer__bottom {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.atman-footer__top,
	.atman-footer__bottom {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.atman-footer__logo,
	.atman-footer__partner {
		margin-left: auto;
		margin-right: auto;
	}
	.atman-social {
		justify-content: center;
	}
	.atman-footer__credits {
		text-align: center;
	}
}

/* Pulsante torna su (selettore rinforzato: lo stile globale dei link del Kit lo colorava come lo sfondo) */
a.atman-totop,
a.atman-totop:hover,
a.atman-totop:focus {
	color: var(--atman-white) !important;
}

.atman-totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--atman-teal);
	color: var(--atman-white);
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
	z-index: 90;
}

.atman-totop.is-visible {
	opacity: 1;
	visibility: visible;
}

.atman-totop:hover {
	background: var(--atman-blue);
	color: var(--atman-white);
}

/* 404 */
.atman-404 {
	padding: 100px 0;
	text-align: center;
}

.atman-404__code {
	font-size: 120px;
	font-weight: 700;
	line-height: 1;
	color: var(--atman-teal);
	margin: 0 0 10px;
}
