/*
Theme Name: Sorrentino
Theme URI: https://www.dottorsorrentino.it/
Author: Salto di Paolillo Domenico
Description: Tema su misura per lo studio pediatrico e dermatologico del Dott. Felice Sorrentino. Leggero, senza page builder, mobile-first. Testi, contatti e foto della home si modificano da Aspetto › Personalizza › Studio Sorrentino.
Version: 1.3.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sorrentino
*/

/* ==========================================================================
   Font (self-hosted: nessuna chiamata a Google Fonts)
   ========================================================================== */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2");
}

/* ==========================================================================
   Variabili
   ========================================================================== */
:root {
	--c-brand: #22B2AA;
	--c-brand-soft: #BFE6E2;
	--c-accent: #0B7A74;
	--c-accent-soft: #E9F7F6;
	--c-ink: #123634;
	--c-text: #3A5856;
	--c-muted: #4B6664;
	--c-line: #D3ECE9;
	--c-line-soft: #E1F0EE;
	--c-tint: #E9F7F6;
	--c-soft: #F4FBFA;
	--c-media: #D6EFEC;
	--c-cta: #097068;
	--c-cta-hover: #0A5F5A;
	--c-dark: #0F3B39;
	--c-dark-2: #17504D;
	--c-on-dark: #CDE9E6;
	--c-cta-on-dark: var(--c-brand);
	--c-white: #FFFFFF;

	--f-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-sm: 14px;
	--radius: 20px;
	--radius-lg: 28px;
	--shadow: 0 12px 32px rgba(23, 48, 46, 0.14);

	--container: 1200px;
	--gutter: 16px;
	--section-y: 56px;
	--header-h: 68px;
}

@media (min-width: 720px) {
	:root {
		--gutter: 24px;
		--section-y: 88px;
		--header-h: 80px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

svg.icon {
	flex: none;
}

a {
	color: var(--c-accent);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--c-ink);
}

:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--f-display);
	font-weight: 800;
	line-height: 1.15;
	color: var(--c-ink);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	background: var(--c-ink);
	color: var(--c-white);
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
	color: var(--c-white);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(760px + 2 * var(--gutter));
}

/* ==========================================================================
   Pulsanti
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--lg {
	min-height: 56px;
	padding: 14px 26px;
	font-size: 1.0625rem;
}

.btn--cta {
	background: var(--c-cta);
	color: var(--c-white);
}

.btn--cta:hover {
	background: var(--c-cta-hover);
	color: var(--c-white);
}

.btn--outline {
	background: var(--c-white);
	color: var(--c-ink);
	border-color: var(--c-ink);
}

.btn--outline:hover {
	background: var(--c-ink);
	color: var(--c-white);
}

.btn--light {
	background: var(--c-white);
	color: var(--c-accent);
	align-self: flex-start;
}

.btn--light:hover {
	background: var(--c-tint);
	color: var(--c-ink);
}

.btn--cta-dark {
	background: var(--c-cta-on-dark);
	color: var(--c-ink);
}

.btn--cta-dark:hover {
	background: var(--c-white);
	color: var(--c-ink);
}

.btn--ghost-light {
	background: transparent;
	color: var(--c-white);
	border-color: var(--c-white);
}

.btn--ghost-light:hover {
	background: var(--c-white);
	color: var(--c-ink);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
}

.link-arrow:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Header e navigazione
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line-soft);
	box-shadow: inset 0 3px 0 var(--c-brand);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--c-ink);
	text-decoration: none;
	min-width: 0;
}

.brand:hover {
	color: var(--c-ink);
}

.brand__mark {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--c-brand);
	color: var(--c-white);
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand__logo {
	flex: none;
	width: auto;
	height: 52px;
	max-width: 180px;
	object-fit: contain;
}

@media (min-width: 960px) {
	.brand__logo {
		height: 60px;
	}
}

/* Logo con nome accanto: logo più compatto, il testo resta leggibile */
.brand--logo-text .brand__logo {
	height: 44px;
	max-width: 96px;
}

@media (min-width: 960px) {
	.brand--logo-text .brand__logo {
		height: 52px;
		max-width: 120px;
	}
}

@media (max-width: 379px) {
	.brand--logo-text .brand__tagline {
		display: none;
	}
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.brand__name {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1rem;
}

.brand__tagline {
	font-size: 0.8125rem;
	color: var(--c-muted);
}

.nav-toggle {
	flex: none;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	background: var(--c-white);
	color: var(--c-ink);
	cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline-flex;
}

.nav-toggle__open {
	display: inline-flex;
}

/* Menu mobile: pannello a tutto schermo sotto l'header */
.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: calc(100vh - var(--header-h));
	height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	background: var(--c-white);
	padding: 8px var(--gutter) 32px;
	flex-direction: column;
	gap: 24px;
}

.site-nav.is-open {
	display: flex;
}

.site-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--c-line-soft);
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.375rem;
	color: var(--c-ink);
	text-decoration: none;
}

.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
}

.site-nav .sub-menu a {
	font-size: 1.0625rem;
}

.site-nav__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.site-nav__actions .btn {
	min-height: 54px;
}

.site-nav__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 960px) {
	.brand__name {
		font-size: 1.125rem;
	}

	.brand__tagline {
		font-size: 0.875rem;
	}

	.brand__mark {
		width: 46px;
		height: 46px;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav,
	.site-nav.is-open {
		display: flex;
		position: static;
		height: auto;
		overflow: visible;
		padding: 0;
		flex-direction: row;
		align-items: center;
		gap: 28px;
		background: none;
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 28px;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .menu a {
		padding: 8px 0;
		border: 0;
		font-family: var(--f-body);
		font-weight: 400;
		font-size: 1rem;
	}

	.site-nav .menu a:hover,
	.site-nav .current-menu-item > a {
		color: var(--c-accent);
	}

	.site-nav .current-menu-item > a {
		font-weight: 700;
	}

	.site-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: -16px;
		min-width: 220px;
		padding: 8px 16px;
		background: var(--c-white);
		border: 1px solid var(--c-line);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow);
	}

	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		display: block;
	}

	.site-nav__actions {
		flex-direction: row;
	}

	.site-nav__phone {
		display: none;
	}
}

/* ==========================================================================
   Sezioni comuni
   ========================================================================== */
.section {
	padding-block: var(--section-y);
}

.section--tint {
	background: var(--c-tint);
}

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

.section--compact {
	padding-block: calc(var(--section-y) * 0.7);
}

.section--first {
	padding-top: 32px;
}

.section__head {
	max-width: 680px;
	margin-bottom: 32px;
}

.section__head--row {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.section__head--row .section__title {
	margin-bottom: 0;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 24px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-brand);
}

.eyebrow a {
	text-decoration: none;
}

.section__title {
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
}

.section__title--sm {
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.lead {
	color: var(--c-text);
}

.grid {
	display: grid;
	gap: 20px;
}

.grid--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.media-placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-media);
	color: var(--c-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	background: var(--c-tint);
	padding-block: 32px 48px;
}

.hero__inner {
	display: grid;
	gap: 32px;
	align-items: center;
}

.hero__media {
	position: relative;
	order: -1;
}

.hero__media::before {
	content: "";
	position: absolute;
	inset: 14px -10px -10px 14px;
	border: 3px solid var(--c-brand);
	border-radius: var(--radius);
	pointer-events: none;
}

.hero__photo {
	position: relative;
}

.hero__photo {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: #BFE6E2;
}

.hero__photo img,
.doctor__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero__title {
	font-size: clamp(2rem, 1.2rem + 3.6vw, 3.375rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}

.hero__text {
	font-size: 1.125rem;
	color: var(--c-text);
	max-width: 540px;
	margin-bottom: 24px;
}

.checklist {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 0.9375rem;
	color: var(--c-text);
}

.checklist li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.checklist .icon {
	color: var(--c-accent);
}

.hero__stat {
	display: none;
}

.hero__photo,
.hero__stat {
	z-index: 1;
}

@media (min-width: 900px) {
	.hero {
		padding-block: 80px;
	}

	.hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 56px;
	}

	.hero__media {
		order: 0;
	}

	.hero__photo {
		aspect-ratio: 4 / 5;
		border-radius: var(--radius-lg);
	}

	.hero__media::before {
		inset: 24px -20px -20px 24px;
		border-radius: var(--radius-lg);
	}

	.hero__stat {
		position: absolute;
		left: -24px;
		bottom: 32px;
		max-width: 250px;
		padding: 18px 22px;
		background: var(--c-white);
		border-radius: 18px;
		box-shadow: var(--shadow);
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.hero__stat strong {
		font-family: var(--f-display);
		font-weight: 800;
		font-size: 1.625rem;
		color: var(--c-accent);
	}

	.hero__stat span {
		font-size: 0.9375rem;
		color: var(--c-text);
		line-height: 1.4;
	}
}

/* ==========================================================================
   Card
   ========================================================================== */
.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
	text-decoration: none;
}

.card--link {
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card--link:hover {
	color: var(--c-ink);
	border-color: var(--c-brand);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	background: var(--c-tint);
	color: var(--c-accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.card__title {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.3;
}

.card__text {
	margin: 0;
	font-size: 1rem;
	color: var(--c-muted);
}

.card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--c-accent);
}

.card--accent {
	background: var(--c-accent);
	box-shadow: inset 0 6px 0 var(--c-brand);
	border-color: var(--c-accent);
	color: var(--c-white);
	justify-content: center;
	gap: 14px;
}

.card--accent .card__title {
	color: var(--c-white);
	font-size: 1.375rem;
}

.card--accent .card__text {
	color: #E3F6F4;
}

/* Card articolo */
.card--post {
	padding: 0;
	overflow: hidden;
}

.card--post__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--c-ink);
	text-decoration: none;
}

.card--post__link:hover {
	color: var(--c-ink);
}

.card--post__link:hover .card__title {
	color: var(--c-accent);
}

.card--post__media {
	aspect-ratio: 16 / 10;
	background: var(--c-media);
	overflow: hidden;
}

.card--post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.card--post__link:hover .card--post__media img {
	transform: scale(1.03);
}

.card--post__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.post-date {
	font-size: 0.875rem;
	color: var(--c-muted);
}

/* ==========================================================================
   Aree (chips)
   ========================================================================== */
.chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--c-white);
	border: 1px solid var(--c-brand-soft);
	font-weight: 700;
	font-size: 0.9375rem;
}

/* ==========================================================================
   Dottore
   ========================================================================== */
.split {
	display: grid;
	gap: 32px;
	align-items: center;
}

.doctor__photo {
	aspect-ratio: 1 / 1;
	max-width: 420px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #D9F0ED;
}

.badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px;
	margin: 8px 0 24px;
}

.badge {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border-radius: var(--radius-sm);
	background: var(--c-tint);
}

.badge strong {
	font-family: var(--f-display);
	font-size: 1rem;
}

.badge span {
	font-size: 0.9375rem;
	color: var(--c-text);
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}

	.doctor__photo {
		max-width: none;
	}
}

/* ==========================================================================
   Prenotazione
   ========================================================================== */
.booking {
	display: grid;
	gap: 32px;
	padding: 32px 22px;
	border-radius: var(--radius-lg);
	background: var(--c-dark);
	color: var(--c-white);
}

.booking__title {
	color: var(--c-white);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
}

.booking__text {
	color: var(--c-on-dark);
	margin-bottom: 24px;
}

.contact-list {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 1rem;
	color: var(--c-on-dark);
}

.contact-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.contact-list .icon {
	margin-top: 3px;
	color: #7FD8D2;
}

.contact-list a {
	color: var(--c-white);
}

.contact-list a:hover {
	color: var(--c-cta-on-dark);
}

.booking__map {
	min-height: 240px;
	border-radius: 22px;
	background: var(--c-dark-2);
	color: var(--c-on-dark);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
	background-size: 22px 22px;
	transition: background-color 0.15s ease;
}

.booking__map:hover {
	color: var(--c-white);
	background-color: #1D5E5A;
}

.booking__map-pin {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--c-brand);
	color: #0F3B39;
	display: flex;
	align-items: center;
	justify-content: center;
}

.booking__map-address {
	font-weight: 700;
	color: var(--c-white);
}

.booking__map-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9375rem;
}

@media (min-width: 900px) {
	.booking {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		padding: 56px;
	}

	.booking__map {
		min-height: 100%;
	}
}

/* ==========================================================================
   Pagine interne e articoli
   ========================================================================== */
.page-hero {
	background: var(--c-tint);
	padding-block: 40px;
	border-bottom: 3px solid var(--c-brand);
}

.page-hero__title {
	font-size: clamp(1.875rem, 1.2rem + 2.8vw, 2.875rem);
	margin-bottom: 12px;
}

.page-hero__text {
	color: var(--c-text);
	max-width: 680px;
}

.entry__meta {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.entry__thumb {
	margin: 0 0 32px;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry__thumb img {
	display: block;
	width: 100%;
}

.entry__content {
	font-size: 1.125rem;
	line-height: 1.7;
}

.entry__content > * {
	margin-block: 0 1.1em;
}

.entry__content h2 {
	font-size: 1.75rem;
	margin-top: 1.6em;
}

.entry__content h3 {
	font-size: 1.375rem;
	margin-top: 1.4em;
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.3em;
}

.entry__content li {
	margin-bottom: 0.4em;
}

.entry__content img {
	border-radius: var(--radius-sm);
}

.entry__content figure {
	margin-inline: 0;
}

.entry__content figcaption,
.wp-caption-text {
	font-size: 0.9375rem;
	color: var(--c-muted);
	margin-top: 8px;
}

.entry__content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--c-brand);
	color: var(--c-text);
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
}

.entry__content th,
.entry__content td {
	border: 1px solid var(--c-line);
	padding: 8px 12px;
	text-align: left;
}

.entry__disclaimer {
	margin-top: 40px;
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	background: var(--c-soft);
	font-size: 0.9375rem;
	color: var(--c-muted);
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.gallery-item {
	margin: 0;
}

/* Navigazione articoli */
.post-navigation {
	margin-top: 40px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--c-ink);
	height: 100%;
}

.post-navigation a:hover {
	border-color: var(--c-accent);
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-label {
	font-size: 0.875rem;
	color: var(--c-muted);
}

.nav-title {
	font-family: var(--f-display);
	font-weight: 700;
}

/* Paginazione */
.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	min-width: 46px;
	min-height: 46px;
	padding: 10px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--c-line);
	background: var(--c-white);
	text-decoration: none;
	color: var(--c-ink);
	font-weight: 700;
}

.page-numbers.current {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-white);
}

/* Commenti */
.comments {
	margin-top: 48px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 24px;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--c-line-soft);
}

.comment-author .avatar {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-metadata {
	font-size: 0.875rem;
}

.comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #AFCFCB;
	border-radius: 12px;
	font: inherit;
	color: var(--c-ink);
	background: var(--c-white);
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

/* Ricerca */
.search-form {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit {
	min-height: 48px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.empty {
	text-align: center;
	padding: 40px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--c-line-soft);
	padding-block: 32px;
	font-size: 0.9375rem;
	color: var(--c-muted);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 32px;
}

.site-footer p {
	margin: 0 0 4px;
}

.site-footer__name {
	font-family: var(--f-display);
	font-weight: 700;
	color: var(--c-ink);
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

/* ==========================================================================
   Barra CTA mobile
   ========================================================================== */
.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 10px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: var(--c-white);
	border-top: 1px solid var(--c-line);
	box-shadow: 0 -8px 24px rgba(23, 48, 46, 0.1);
}

.mobile-bar .btn {
	min-height: 50px;
}

body.has-mobile-bar {
	padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

body.nav-open .mobile-bar {
	display: none;
}

@media (min-width: 960px) {
	.mobile-bar {
		display: none;
	}

	body.has-mobile-bar {
		padding-bottom: 0;
	}
}

/* ==========================================================================
   Stampa
   ========================================================================== */
@media print {
	.site-header,
	.mobile-bar,
	.booking__map,
	.post-navigation,
	.comments {
		display: none !important;
	}
}

/* ==========================================================================
   Animazioni
   Attive solo con JavaScript e se l'utente non ha chiesto di ridurre il movimento.
   ========================================================================== */
@keyframes sorrentino-up {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes sorrentino-zoom {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes sorrentino-frame {
	from { opacity: 0; transform: translate(-14px, -14px); }
	to { opacity: 1; transform: none; }
}

@keyframes sorrentino-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.92); }
	to { opacity: 1; transform: none; }
}

@keyframes sorrentino-beat {
	0%, 60%, 100% { transform: scale(1); }
	15% { transform: scale(1.14); }
	30% { transform: scale(1); }
	45% { transform: scale(1.08); }
}

@keyframes sorrentino-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 178, 170, 0.55); }
	70% { box-shadow: 0 0 0 16px rgba(34, 178, 170, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 178, 170, 0); }
}

@keyframes sorrentino-bar-in {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {

	/* Header: ombra quando si scorre */
	.site-header {
		transition: box-shadow 0.25s ease;
	}

	.site-header.is-scrolled {
		box-shadow: inset 0 3px 0 var(--c-brand), 0 6px 24px rgba(15, 59, 57, 0.08);
	}

	/* Cuore del logo: battito leggero ogni pochi secondi */
	.brand__mark .icon {
		animation: sorrentino-beat 2.8s ease-in-out 1.2s infinite;
		transform-origin: center;
	}

	/* Apertura della home */
	.js .hero__content > * {
		opacity: 0;
		animation: sorrentino-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	.js .hero__content > :nth-child(1) { animation-delay: 0.05s; }
	.js .hero__content > :nth-child(2) { animation-delay: 0.15s; }
	.js .hero__content > :nth-child(3) { animation-delay: 0.25s; }
	.js .hero__content > :nth-child(4) { animation-delay: 0.35s; }
	.js .hero__content > :nth-child(5) { animation-delay: 0.45s; }

	.js .hero__photo {
		opacity: 0;
		animation: sorrentino-zoom 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
	}

	.js .hero__media::before {
		opacity: 0;
		animation: sorrentino-frame 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s forwards;
	}

	.js .hero__stat {
		opacity: 0;
		animation: sorrentino-pop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.8s forwards;
	}

	/* Comparsa allo scorrimento */
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
		transition-delay: var(--reveal-delay, 0s);
	}

	.js [data-reveal="zoom"] {
		transform: scale(0.95);
	}

	.js [data-reveal="left"] {
		transform: translateX(-32px);
	}

	.js [data-reveal="right"] {
		transform: translateX(32px);
	}

	.js [data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}

	/* Le card, una volta comparse, tornano alle transizioni di hover rapide */
	.js .card[data-reveal].is-visible {
		transition: opacity 0.7s ease, transform 0.25s ease, border-color 0.15s ease, box-shadow 0.25s ease;
	}

	.js .card--link[data-reveal].is-visible:hover {
		transform: translateY(-4px);
	}

	/* Pulsanti: leggero sollevamento */
	.btn {
		transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
	}

	.btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 20px rgba(15, 59, 57, 0.16);
	}

	.btn:active {
		transform: translateY(0);
		box-shadow: none;
	}

	.btn .icon,
	.link-arrow .icon,
	.card__more .icon {
		transition: transform 0.2s ease;
	}

	.link-arrow:hover .icon,
	.card--link:hover .card__more .icon {
		transform: translateX(4px);
	}

	/* Card servizi: icona che si colora al passaggio */
	.card__icon {
		transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	}

	.card--link:hover .card__icon {
		background: var(--c-brand);
		color: var(--c-white);
		transform: rotate(-6deg) scale(1.06);
	}

	/* Chip delle aree */
	.chip {
		transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	}

	.chip:hover {
		background: var(--c-brand-soft);
		border-color: var(--c-brand);
		transform: translateY(-2px);
	}

	/* Pin della mappa che "chiama" */
	.booking__map-pin {
		animation: sorrentino-pulse 2.4s ease-out infinite;
	}

	.booking__map:hover .booking__map-pin {
		transform: translateY(-4px);
		transition: transform 0.25s ease;
	}

	/* Barra CTA su mobile che sale dal basso */
	.mobile-bar {
		animation: sorrentino-bar-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
	}

	/* Menu mobile: voci in sequenza */
	.site-nav.is-open .menu > li,
	.site-nav.is-open .site-nav__actions {
		opacity: 0;
		animation: sorrentino-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	.site-nav.is-open .menu > li:nth-child(1) { animation-delay: 0.03s; }
	.site-nav.is-open .menu > li:nth-child(2) { animation-delay: 0.08s; }
	.site-nav.is-open .menu > li:nth-child(3) { animation-delay: 0.13s; }
	.site-nav.is-open .menu > li:nth-child(4) { animation-delay: 0.18s; }
	.site-nav.is-open .menu > li:nth-child(5) { animation-delay: 0.23s; }
	.site-nav.is-open .menu > li:nth-child(6) { animation-delay: 0.28s; }
	.site-nav.is-open .site-nav__actions { animation-delay: 0.3s; }

	@media (min-width: 960px) {
		.site-nav.is-open .menu > li,
		.site-nav.is-open .site-nav__actions {
			opacity: 1;
			animation: none;
		}
	}
}

/* ==========================================================================
   Contenuti del Muffin Builder (BeTheme) non ancora convertiti
   ========================================================================== */
.mfn-legacy + .mfn-legacy {
	margin-top: 2rem;
}
.mfn-legacy__cols {
	display: grid;
	gap: 1.5rem 2rem;
}
@media (min-width: 720px) {
	.mfn-legacy__cols {
		display: flex;
		flex-wrap: wrap;
	}
	.mfn-legacy__col {
		flex: 1 1 calc(var(--mfn-col, 100%) - 2rem);
		min-width: 0;
	}
}
.mfn-legacy img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.mfn-legacy .wp-block-image {
	margin: 0 0 1rem;
}
.mfn-legacy__details {
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	margin: 0 0 0.75rem;
}
.mfn-legacy__details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--c-ink);
}
.mfn-legacy__details[open] summary {
	margin-bottom: 0.5rem;
}
