/* =========================================================================
   Tema Rovati — stili
   Colori e caratteri base sono in theme.json; qui c'è solo il layout.
   ========================================================================= */

html { scroll-behavior: smooth; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > main, .wp-site-blocks > .rt-main { flex: 1 0 auto; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

/* ---------- Testata fissa ---------- */
.rt-sticky {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 var(--wp--preset--color--linea);
}
body.admin-bar .rt-sticky { top: var(--wp-admin--admin-bar--height, 32px); }

.rt-topbar .rt-follow { margin: 0; font-size: 11px; opacity: .85; }
.rt-topbar .rt-social { margin: 0; }
.rt-topbar .rt-social .wp-social-link {
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	padding: 3px;
}
.rt-topbar .rt-social .wp-social-link svg { width: 11px; height: 11px; }

.rt-header-inner { min-height: 61px; padding-block: 6px; }
.rt-logo img { display: block; }

/* Menu */
.rt-nav { font-size: 13px; }
.rt-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ardesia); }
.rt-nav .wp-block-navigation-item__content:hover,
.rt-nav .current-menu-item > .wp-block-navigation-item__content,
.rt-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--azzurro);
	text-decoration: none;
}
.rt-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-top: 2px solid var(--wp--preset--color--azzurro) !important;
	box-shadow: 0 8px 24px rgba(17, 20, 24, .10);
	padding: 6px 0;
	min-width: 260px !important;
}
.rt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 18px !important; }

.rt-search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--azzurro);
	padding: 4px;
	border: 0;
}
.rt-search .wp-block-search__input { border: 1px solid var(--wp--preset--color--linea); font-size: 13px; }

/* Menu su mobile */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 16px;
	padding-block: 4px;
}

/* ---------- Titolo pagina con filo azzurro ---------- */
.rt-page-title {
	position: relative;
	margin-top: 0;
	margin-bottom: 40px !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wp--preset--color--linea);
	color: var(--wp--preset--color--ardesia);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
}
.rt-page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 2px;
	background: var(--wp--preset--color--azzurro);
}
.rt-section-title {
	position: relative;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wp--preset--color--linea);
}
.rt-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 2px;
	background: var(--wp--preset--color--azzurro);
}

.rt-content > * + * { margin-block-start: 16px; }
.rt-content h1, .rt-content h2 { margin-block-start: 32px; }
.rt-content > :first-child { margin-block-start: 0; }

/* ---------- Fisarmoniche (blocco Dettagli) ---------- */
.wp-block-details {
	margin-block: 0 6px !important;
	background: var(--wp--preset--color--bianco);
}
.wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 17px 56px 17px 20px;
	background: var(--wp--preset--color--chiaro);
	color: var(--wp--preset--color--ardesia);
	font-family: var(--wp--preset--font-family--asap);
	font-size: 17px;
	line-height: 1.3;
	transition: background-color .2s, color .2s;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	line-height: 1;
}
.wp-block-details > summary:hover { background: #e4edf3; }
.wp-block-details[open] > summary {
	background: var(--wp--preset--color--azzurro);
	color: var(--wp--preset--color--bianco);
}
.wp-block-details[open] > summary::after { content: "–"; }
.wp-block-details > :not(summary) { padding-inline: 20px; }
.wp-block-details > summary + * { margin-top: 22px; }
.wp-block-details > :last-child { padding-bottom: 22px; }
.wp-block-details p { font-size: 14px; }

/* ---------- Citazioni ---------- */
.wp-block-pullquote {
	text-align: center;
	margin: 8px auto 40px;
	max-width: 960px;
}
.wp-block-pullquote blockquote p { margin: 0; }
.wp-block-pullquote cite {
	display: block;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	color: var(--wp--preset--color--azzurro);
	text-transform: none;
}

/* ---------- Griglia aree di interesse ---------- */
.rt-areas { row-gap: 40px !important; }
.rt-area { text-align: center; }
.rt-area figure { margin: 0 auto 10px; }
.rt-area img { width: auto; max-height: 80px; transition: transform .2s; }
.rt-area:hover img { transform: translateY(-3px); }
.rt-area h3 { margin: 0; font-size: 17px; }
.rt-area h3 a { color: var(--wp--preset--color--nero); }
.rt-area h3 a:hover { color: var(--wp--preset--color--azzurro); text-decoration: none; }

/* ---------- Schede (contatti, corsi) ---------- */
.is-style-rt-card {
	border: 1px solid var(--wp--preset--color--linea);
	border-top: 3px solid var(--wp--preset--color--azzurro);
	padding: 22px 20px !important;
	text-align: center;
	background: var(--wp--preset--color--bianco);
}
.is-style-rt-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--wp--preset--color--nero); }
.is-style-rt-card p { margin: 0 0 6px; font-size: 13px; }
.rt-card-icon::before {
	content: "";
	display: block;
	width: 30px;
	height: 26px;
	margin: 0 auto 14px;
	background: var(--wp--preset--color--azzurro);
	border-radius: 4px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M10 0h10a2 2 0 0 1 2 2v3h5a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h5V2a2 2 0 0 1 2-2zm1 2.5V5h8V2.5zM13 10v4H9v4h4v4h4v-4h4v-4h-4v-4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M10 0h10a2 2 0 0 1 2 2v3h5a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h5V2a2 2 0 0 1 2-2zm1 2.5V5h8V2.5zM13 10v4H9v4h4v4h4v-4h4v-4h-4v-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Scheda curriculum ---------- */
.rt-cv-card img { width: 100%; max-width: 280px; }
.rt-cv-card h4 { margin: 10px 0 0; color: var(--wp--preset--color--nero); font-size: 15px; }
.rt-cv-card h6 { margin: 0 0 8px; color: var(--wp--preset--color--azzurro); }
.rt-cv-card p { margin: 0; font-size: 13px; }
.rt-cv-card .wp-block-social-links { margin-top: 8px; }

/* ---------- Video ---------- */
.rt-videos h3 { font-size: 16px; margin: 10px 0 4px; color: var(--wp--preset--color--nero); }
.rt-videos .wp-block-embed { margin: 0; }

/* ---------- Slider della home ---------- */
.is-style-rt-slider {
	position: relative;
	overflow: hidden;
	background: #0b1015;
}
.is-style-rt-slider > .wp-block-cover {
	min-height: clamp(260px, 32vw, 460px) !important;
	margin: 0 !important;
}
.rt-slider-ready > .wp-block-cover {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
}
.rt-slider-anim > .wp-block-cover { transition: opacity .9s ease, visibility .9s; }
.rt-slider-ready > .wp-block-cover:first-of-type { position: relative; }
.rt-slider-ready > .wp-block-cover.is-active { opacity: 1; visibility: visible; z-index: 1; }
.is-style-rt-slider .wp-block-cover h2 {
	font-family: var(--wp--preset--font-family--asap);
	font-size: clamp(30px, 4.4vw, 56px);
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
	margin: 0;
}
.is-style-rt-slider .wp-block-cover h2 a { color: inherit; }
.is-style-rt-slider .wp-block-cover h2 a:hover { text-decoration: none; opacity: .9; }
.rt-slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.rt-slider-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.rt-slider-dots button[aria-current="true"] { background: #fff; }

/* ---------- Riquadri di prenotazione ---------- */
.rt-miodottore { min-height: 216px; }
.rt-doctolib {
	position: fixed;
	right: 12px;
	bottom: 0;
	z-index: 90;
	width: 300px;
	padding: 14px 16px 16px;
	background: #0596DE;
	color: #fff;
	text-align: center;
	font-size: 14px;
	border-radius: 6px 6px 0 0;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
}
.rt-doctolib img { height: 26px; width: auto; display: inline-block; }
.rt-doctolib span { display: block; margin: 8px 0 10px; }
.rt-doctolib a {
	display: block;
	width: 176px;
	margin: 0 auto;
	line-height: 40px;
	border-radius: 4px;
	background: #fff;
	color: #0596DE;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 13px;
}
.rt-doctolib a:hover { text-decoration: none; opacity: .92; }
.rt-doctolib-close {
	position: absolute;
	top: 4px;
	right: 6px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.rt-doctolib.is-closed { display: none; }

/* ---------- Modulo contatti (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-size: 12px; color: var(--wp--preset--color--ardesia); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 4px;
	padding: 9px 10px;
	border: 1px solid var(--wp--preset--color--linea);
	font: inherit;
	font-size: 13px;
	color: var(--wp--preset--color--nero);
}
.wpcf7 textarea { height: 130px; }
.wpcf7 input[type="submit"] {
	padding: 9px 24px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--azzurro);
	color: #fff;
	font-family: var(--wp--preset--font-family--asap);
	font-size: 15px;
	cursor: pointer;
}
.wpcf7 .wpcf7-acceptance { font-size: 12px; }

/* ---------- Piè di pagina ---------- */
.rt-footer { color: #cde2f4; }
.rt-footer p { margin: 0; }
.rt-footer a { color: #fff; }
.rt-totop a {
	display: inline-block;
	width: 28px;
	line-height: 26px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 3px;
	color: #fff;
}
.rt-totop a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.rt-page-title { margin-bottom: 28px !important; }
	.rt-doctolib {
		left: 0;
		right: 0;
		width: auto;
		border-radius: 0;
		padding: 10px 40px 10px 12px;
		display: flex;
		align-items: center;
		gap: 10px;
		font-size: 13px;
		text-align: left;
	}
	.rt-doctolib img { height: 20px; }
	.rt-doctolib span { margin: 0; flex: 1; }
	.rt-doctolib a { width: auto; padding: 0 14px; line-height: 34px; }
	.rt-home { padding-bottom: 60px; }
}

/* Titoli di sezione (Contatti, Richiedi informazioni) */
h2.rt-section-title { font-size: 22px; font-weight: 400; margin-bottom: 24px; }
.rt-header .wp-block-site-logo { margin: 0; }

/* ---------- Domande frequenti ---------- */
.rt-faq { margin-top: 8px; }
.rt-faq .wp-block-details > summary { font-size: 15px; padding-block: 13px; }
.rt-faq .wp-block-details[open] > summary { background: var(--wp--preset--color--ardesia); }
