/* ==========================================================================
   Cardio Catania — stile principale
   Colori e font dal reference del cliente (reference/reference.png).
   Mobile first: i breakpoint aggiungono, non tolgono.
   ========================================================================== */

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Palette del reference */
	--c-primary: #F56F27;        /* arancio: pulsanti, accenti */
	--c-primary-hover: #E15C14;
	--c-primary-text: #C4520F;   /* arancio scurito per testi piccoli (contrasto AA) */
	--c-primary-soft: #FEEFE6;
	--c-ink: #1F242E;            /* blu notte: titoli */
	--c-text: #4A5261;           /* testo corrente */
	--c-muted: #6B7280;
	--c-bg: #F4f2f1;             /* crema: sfondo pagina */
	--c-surface: #FFFFFF;
	--c-sand: #F3F1ED;           /* chip, campi */
	--c-line: #ECEAE4;
	--c-sun: #FAE7AE;            /* forma gialla dietro la foto */
	--c-ok: #419C64;             /* puntini verdi */
	--c-wa: #25D366;

	--f-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 1px 2px rgba(31, 36, 46, .04), 0 8px 24px rgba(31, 36, 46, .06);
	--shadow-lg: 0 2px 4px rgba(31, 36, 46, .04), 0 18px 48px rgba(31, 36, 46, .12);

	--gutter: 16px;
	--header-h: 64px;
	--max: 1200px;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	padding-bottom: 72px; /* spazio per la barra azioni su smartphone */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--c-ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Tipografia ---------- */

.eyebrow {
	color: var(--c-primary-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.section-title, .page-title {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(30px, 6vw, 46px);
	letter-spacing: -.01em;
}
.section-title--sm { font-size: clamp(26px, 4vw, 34px); margin-bottom: 24px; }
.subsection-title { font-family: var(--f-display); font-size: clamp(24px, 4vw, 30px); margin-bottom: 20px; }
.section-text { margin-top: 14px; font-size: 17px; max-width: 620px; }

.prose { font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--f-display); margin-top: 1.6em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--c-primary-text); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--c-primary); font-style: italic; }
.prose img { border-radius: var(--radius); }

/* ---------- Pulsanti ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border-radius: var(--radius-sm); border: 1.5px solid transparent;
	font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(245, 111, 39, .25); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--ghost { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-text); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 54px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.round-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink);
	cursor: pointer; transition: border-color .2s, color .2s, opacity .2s;
}
.round-btn:hover { border-color: var(--c-primary); color: var(--c-primary-text); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--c-ink); white-space: nowrap; letter-spacing: -.01em; }
.brand__accent { color: var(--c-primary); }
.brand__tagline { display: none; font-size: 12.5px; color: var(--c-muted); white-space: nowrap; }
.brand--light .brand__name { color: #fff; }
@media (min-width: 480px) and (max-width: 899px), (min-width: 1280px) { .brand__tagline { display: inline; } }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--c-ink); font-size: 15px; }
.header-phone .icon { color: var(--c-primary); }
.site-header__actions .btn { display: none; }

.nav-toggle {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer;
}
.nav-toggle .nav-toggle__open { display: grid; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }

/* Menu mobile: pannello a tendina */
.nav {
	position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
	max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
	background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
	padding: 8px var(--gutter) 24px;
	transform: translateY(-8px); opacity: 0; visibility: hidden;
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__link {
	display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-line);
	text-decoration: none; font-weight: 600; font-size: 18px; color: var(--c-ink);
}
.nav__mobile-actions { display: grid; gap: 10px; margin-top: 20px; }

@media (min-width: 900px) {
	.site-header__actions .btn { display: inline-flex; }
	.nav-toggle, .nav__mobile-actions { display: none; }
	.nav {
		position: static; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none;
		padding: 0; transform: none; opacity: 1; visibility: visible;
	}
	.nav__list { display: flex; gap: 4px; }
	.nav__link { border: 0; padding: 8px 10px; font-size: 15px; white-space: nowrap; font-weight: 500; color: var(--c-text); border-radius: 8px; transition: color .2s; }
	.nav__link:hover, .nav__link.is-active { color: var(--c-primary-text); }
}
@media (min-width: 1200px) { .header-phone { display: inline-flex; white-space: nowrap; } }

/* ---------- Sezioni ---------- */

.section { padding: 64px 0; }
.section--white { background: var(--c-surface); }
.section--tight { padding: 40px 0 64px !important; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-head { margin-bottom: 36px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-cta { margin-top: 32px; text-align: center; }

/* ---------- Hero ---------- */

.hero {
	padding: 40px 0 56px; overflow: hidden;
	/* Gradiente: bianco in alto a sinistra (sotto il testo) → crema → arancio chiaro; la forma arancio è l'SVG .hero__bg-shape */
	background:
		radial-gradient(ellipse 40% 50% at 8% 100%, hsl(45 85% 88% / .45) 0%, hsl(45 85% 88% / 0) 70%),
		linear-gradient(160deg, #FFFFFF 0%, var(--c-bg) 45%, hsl(25 70% 95%) 100%);
}
@media (max-width: 1099px) {
	/* Su smartphone/tablet la foto sta sotto il testo: l'alone si sposta in basso al centro */
	.hero { background:
		radial-gradient(ellipse 90% 40% at 50% 85%, hsl(21 85% 90% / .75) 0%, hsl(21 85% 92% / 0) 70%),
		linear-gradient(180deg, #FFFFFF 0%, var(--c-bg) 50%, hsl(25 70% 95%) 100%); }
}
.hero { position: relative; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero__content { position: relative; z-index: 2; }

/* Forma gialla organica dietro la foto (come nel reference): più grande della foto, spostata a destra */
.hero__blob {
	position: absolute; z-index: 0; pointer-events: none;
	left: 0%; right: 0%; top: 20%; bottom: 10%;
	background: var(--c-primary); /* #FAE7AE */
	border-radius:  58% 42% 46% 54% / 46% 58% 42% 54%;
	opacity: .2;
}

/* ===== ALONI SFOCATI (prova) — inizio. Per tornare indietro: $cc_hero_glow = false in section-hero.php, oppure cancella questo blocco. ===== */
/* Due copie della forma gialla, molto sfocate: una in alto a sinistra, una in basso a destra della sezione */
.hero__glow {
	position: absolute; z-index: 0; pointer-events: none;
	width: 70vw; max-width: 900px; aspect-ratio: 1.15;
	background: var(--c-primary); /* #FAE7AE, come la forma dietro la foto */
	border-radius: 58% 42% 46% 54% / 46% 58% 42% 54%;
	filter: blur(220px);
	opacity: .2;
}
.hero__glow--tl { top: -30%; left: -30%; }
.hero__glow--br { bottom: -35%; right: -30%; transform: rotate(180deg); }
@media (max-width: 1099px) {
	.hero__glow { width: 110vw; filter: blur(140px); } /* su schermi piccoli un blur così alto farebbe sparire la forma */
}
/* ===== ALONI SFOCATI (prova) — fine ===== */

.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 13.5vw, 80px); line-height: 1.02; letter-spacing: -.02em; }
.hero__title-accent { display: block; color: var(--c-primary); }
.hero__title-end { display: block; }
.hero__text { margin-top: 20px; font-size: 18px; max-width: 460px; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn--ghost { background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__cta .btn .icon:last-child { transition: transform .2s; }
.hero__cta .btn:hover .icon:last-child { transform: translateX(3px); }

.chip, .chip-btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 40px; padding: 8px 14px; border-radius: 999px;
	background: var(--c-sand); border: 1px solid transparent; color: var(--c-ink);
	font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip-btn .icon { width: 18px; height: 18px; color: var(--c-primary); }
.chip-btn:hover { border-color: var(--c-primary); }
.chip[aria-selected="true"] { background: var(--c-primary); color: #fff; }
.chip__count { font-size: 12px; opacity: .7; }

/* Punti di forza: fascia subito sotto la sezione iniziale */
.trust { position: relative; z-index: 2; background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: 0 -1px 0 var(--c-line); }
.trust__list { display: grid; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.trust__item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--c-ink); }
/* Punto arancio (come i pallini degli elenchi), senza icona */
.trust__check { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c-primary); }
@media (min-width: 768px) {
	/* Una riga centrata, con separatori sottili tra le voci */
	.trust__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding-top: 22px; padding-bottom: 22px; }
	.trust__item { padding: 4px 28px; white-space: nowrap; }
	.trust__item + .trust__item { border-left: 1px solid var(--c-line); }
}

/* Foto scontornata (PNG/WebP trasparente), senza cornice: su desktop poggia sul bordo inferiore della sezione,
   dietro c'è solo il quadrato ruotato dello sfondo (.hero__bg-shape). */
.hero__frame { position: relative; max-width: 320px; margin-inline: auto; }
.hero__img { position: relative; z-index: 1; width: 100%; height: auto; }

/* Esami in evidenza attorno alla foto: card traslucide (sfocano lo sfondo), cliccabili → elenco prestazioni filtrato */
.hero__media { position: relative; }
.hero__services { position: relative; z-index: 3; display: grid; gap: 8px; max-width: 360px; margin: -28px auto 0; }
.service__link {
	display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
	border-radius: 16px; text-decoration: none; color: var(--c-ink);
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: 0 2px 4px rgba(31, 36, 46, .05), 0 12px 30px rgba(31, 36, 46, .12);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service__link:hover, .service__link:focus-visible { transform: translateY(-2px); border-color: var(--c-primary); box-shadow: 0 4px 8px rgba(31, 36, 46, .06), 0 18px 40px rgba(31, 36, 46, .16); }
.service__icon {
	display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
	background: var(--c-primary); color: #fff;
}
.service__icon .icon { width: 24px; height: 24px; }
.service__text { display: grid; line-height: 1.25; }
.service__text strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.service__text small { font-size: 12.5px; color: var(--c-muted); white-space: nowrap; }

@media (min-width: 1100px) {
	/* Desktop: le tre card sfalsate attorno alla foto — una a sinistra (all'altezza del volto), due a destra */
	.hero__services { position: static; display: block; margin: 0; max-width: none; }
	.service { position: absolute; z-index: 3; }
	.service--1 { top: 37%; left: -8%; }
	.service--2 { top: 50%; right: -6%; }
	.service--3 { bottom: 25%; left: -3%; }
	.service { animation: cc-float 6s ease-in-out infinite; }
	.service--2 { animation-delay: -2s; }
	.service--3 { animation-delay: -4s; }
}
@keyframes cc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* Collage (3 o 4 foto, campo "Collage foto" del pannello): prima foto grande e verticale, le altre a fianco */
.collage {
	position: relative; display: grid; gap: 10px; max-width: 440px; margin-inline: auto;
	grid-template-columns: 1.15fr 1fr;
}
.collage::before { /* forma arancio tenue dietro il collage, spostata in basso a destra */
	content: ""; position: absolute; z-index: 0; inset: 18% -14px -14px 22%;
	border-radius: var(--radius-lg);
	background: linear-gradient(160deg, hsl(21 80% 91%), hsl(21 62% 82%));
}
.collage--3 { grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1.05; }
.collage--4 { grid-template-rows: 1fr 1fr .78fr; aspect-ratio: 1 / 1.3; }
.collage__item {
	position: relative; z-index: 1; margin: 0; overflow: hidden; min-height: 0;
	border-radius: var(--radius); background: var(--c-sand);
	box-shadow: 0 2px 4px rgba(31, 36, 46, .06), 0 14px 34px rgba(31, 36, 46, .14);
}
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--1 { grid-row: 1 / 3; }
.collage__item--1 img { object-position: center 18%; } /* ritratto: tiene il volto in vista */
.collage__item--4 { grid-column: 1 / -1; }
@media (min-width: 600px) { .collage { gap: 14px; } }

/* Due colonne solo da 1100px: sotto, testo e foto uno sopra l'altro */
@media (min-width: 1100px) {
	.hero { padding: 72px 0 96px; }
	.hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
	/* La foto poggia sul bordo inferiore della sezione (annulla il padding in basso) */
	.hero__media { align-self: end; margin-bottom: -96px; margin-top: -76px; } /* margin-top negativo: la foto sale verso l'alto */
	.hero__title { font-size: clamp(60px, 5.8vw, 86px); }
	.hero__frame { max-width: 460px; }
	.collage { max-width: 500px; margin-right: 14px; } /* margine per la forma che sporge a destra */
}

/* ---------- Il centro ---------- */

.centro { display: grid; gap: 8px; }
.centro__text { max-width: 760px; }
@media (min-width: 900px) {
	.centro { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
	.centro .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
}

.readmore { margin-top: 1em; }
.readmore__toggle {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
	background: none; border: 0; padding: 6px 0; cursor: pointer;
	color: var(--c-primary-text); font-weight: 700; font-size: 16px;
}
.readmore__toggle .icon { transition: transform .2s; }
.readmore__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.gallery { margin-top: 56px; }
.gallery__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gallery__count { font-size: 14px; color: var(--c-muted); }

/* Carosello generico: scroll orizzontale con aggancio, funziona anche senza JS */
.carousel-nav { display: none; gap: 8px; }
.carousel-nav--below { justify-content: center; margin-top: 20px; }
@media (min-width: 768px) { .carousel-nav { display: flex; } }

.gallery__track, .reviews__track, .posts-track {
	display: grid; grid-auto-flow: column; gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar, .reviews__track::-webkit-scrollbar, .posts-track::-webkit-scrollbar { display: none; }
.gallery__track > *, .reviews__track > *, .posts-track > * { scroll-snap-align: start; }
@media (hover: hover) and (pointer: fine) {
	.is-draggable { cursor: grab; }
	.is-draggable.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
	.is-draggable.is-dragging a { pointer-events: none; }
	.is-draggable img { -webkit-user-drag: none; }
}

.gallery__track {
	grid-auto-columns: 82%;
	padding: 0 var(--gutter);
	scroll-padding: 0 var(--gutter);
}
@media (min-width: 600px) { .gallery__track { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .gallery__track { grid-auto-columns: 30%; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); } }
.gallery__item a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-sand); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
@media (hover: hover) { .gallery__item a:hover img { transform: scale(1.04); } }

.lightbox {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
	border: 0; background: rgba(17, 20, 26, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(17, 20, 26, .94); }
.lightbox__img { max-width: 94vw; max-height: 84dvh; object-fit: contain; border-radius: 6px; }
.lightbox .round-btn { position: absolute; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Medici ---------- */

.doctors { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .doctors { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doctor {
	display: flex; flex-direction: column;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
}
.doctor__photo { position: relative; aspect-ratio: 4 / 5; background: var(--c-sand); overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s; }
.doctor__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-primary); }
.doctor__placeholder .icon { width: 48px; height: 48px; }

.doctor__bio {
	position: absolute; inset: 0;
	background: rgba(31, 36, 46, .93); color: #fff;
	padding: 14px; overflow-y: auto;
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	font-size: 13.5px; line-height: 1.5;
}
@media (min-width: 768px) { .doctor__bio { padding: 24px; font-size: 15px; line-height: 1.55; } }
.doctor__bio-inner > * + * { margin-top: .8em; }
.doctor.is-open .doctor__bio { opacity: 1; visibility: visible; }

.doctor__body { position: relative; padding: 12px 12px 14px; flex: 1; }
.doctor__name { font-family: var(--f-display); font-size: 17px; }
.doctor__role { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--c-muted); }
@media (min-width: 768px) {
	.doctor__body { padding: 18px 20px 20px; }
	.doctor__name { font-size: 22px; }
	.doctor__role { font-size: 15px; }
}
.doctor__toggle {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
	background: none; border: 0; padding: 4px 0; cursor: pointer;
	color: var(--c-primary-text); font-weight: 700; font-size: 14.5px;
}
.doctor__toggle .icon { width: 18px; height: 18px; transition: transform .2s; }
.doctor.is-open .doctor__toggle .icon { transform: rotate(45deg); }

/* Al passaggio del mouse (solo dispositivi con puntatore) la biografia compare da sola */
@media (hover: hover) and (pointer: fine) {
	.doctor--has-bio:hover .doctor__bio, .doctor--has-bio:focus-within .doctor__bio { opacity: 1; visibility: visible; }
	.doctor:hover .doctor__photo img { transform: scale(1.03); }
}

/* ---------- Prestazioni e patologie: un'unica sezione, due colonne ---------- */

/* In alto: una colonna centrata — sopratitolo, titolo, testo e sotto la ricerca */
.prest__head { display: grid; justify-items: center; text-align: center; margin-bottom: 40px; }
.prest__head .section-head { margin-bottom: 20px; }
.prest__head .section-text { margin-inline: auto; }
.prest__head .search { max-width: 480px; text-align: left; } /* testo del campo e risultati restano a sinistra dentro il campo */
.prest__head .search__status { text-align: center; }

/* Gruppi (Visite, Esami, Riabilitazione, Visite a domicilio): due colonne bilanciate su desktop.
   Con le colonne CSS il browser distribuisce i gruppi da solo, anche quando la ricerca ne nasconde alcuni. */
.prest__groups { columns: 1; column-gap: 64px; }
@media (min-width: 900px) { .prest__groups { columns: 2; } }
.prest__group { break-inside: avoid; margin-bottom: 36px; }
.prest__group-title {
	display: flex; align-items: baseline; gap: 10px;
	font-family: var(--f-display); font-size: clamp(22px, 3vw, 26px);
	margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary-soft);
}
.prest__group-count { font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--c-muted); }
.prest__groups .prest__group { margin-top: 0 !important; } /* nelle colonne lo spazio tra gruppi è solo il margin-bottom */

/* ---------- Patologie: card per area (stile diverso dall'elenco delle prestazioni) ---------- */

.patologie__head, .patologie__head .section-text { max-width: none; } /* titolo e paragrafo a tutta larghezza */
.areas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.area-card {
	display: flex; flex-direction: column;
	padding: 24px; border-radius: var(--radius-lg);
	background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow);
	transition: transform .2s, box-shadow .2s;
}
.area-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.area-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.area-card__icon {
	display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
	background: var(--c-sun); color: var(--c-primary-text);
}
.area-card__icon .icon { width: 28px; height: 28px; }
.area-card__title { font-family: var(--f-display); font-size: 21px; line-height: 1.2; }

/* Voci: righe separate da linee sottili, senza pallini; freccia al passaggio del mouse */
.area-card__list .item {
	position: relative; display: flex; align-items: center; gap: 10px;
	padding: 11px 26px 11px 0; border-top: 1px solid var(--c-line); line-height: 1.4;
}
.area-card__list .item::before { content: none; }
.area-card__list .item__title { font-size: 15.5px; font-weight: 500; }
.area-card__list .item__link { text-decoration: none; transition: color .15s; }
.area-card__list .item__link::after { content: ""; position: absolute; inset: 0; } /* tutta la riga cliccabile */
.area-card__list .item--link::after {
	content: "→"; position: absolute; right: 2px; top: 50%; transform: translate(-4px, -50%);
	color: var(--c-primary); font-weight: 700; opacity: 0; transition: opacity .15s, transform .15s;
}
.area-card__list .item--link:hover .item__link, .area-card__list .item--link:focus-within .item__link { color: var(--c-primary-text); }
.area-card__list .item--link:hover::after, .area-card__list .item--link:focus-within::after { opacity: 1; transform: translate(0, -50%); }
.area-card__list .item--link:hover, .area-card__list .item--link:focus-within { background: none; }
.area-card__list .item--link .item__info { margin-right: -2px; }
.area-card__list .item__note { right: -10px; }

/* Card finale: invito a prenotare, arancio pieno */
.area-card--cta {
	justify-content: center; gap: 12px;
	background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}
.area-card--cta .area-card__title { color: #fff; font-size: 24px; }
.area-card--cta p { color: rgba(255, 255, 255, .92); }
.btn--light { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--c-primary-text); }
.btn--light:hover { background: var(--c-sun); }
.btn--light .icon:last-child { transition: transform .2s; }
.btn--light:hover .icon:last-child { transform: translateX(3px); }
.search { position: relative; width: 100%; max-width: 440px; }
.search__icon { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--c-muted); pointer-events: none; }
.search__input {
	width: 100%; min-height: 48px; padding: 12px 14px 12px 44px;
	border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-bg);
	font: inherit; font-size: 16px; color: var(--c-ink);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search__input:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(245, 111, 39, .18); }
.search__status { margin-top: 8px; font-size: 14px; color: var(--c-muted); }
.search__status:empty { display: none; }
.search__empty { padding: 4px 0; color: var(--c-muted); }
.search__empty a { color: var(--c-primary-text); font-weight: 700; }

.tabs__panel-title { display: none; font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 14px; }
.tabs.is-searching .tabs__list { display: none; }
.tabs.is-searching .tabs__panel-title, .tabs.is-all .tabs__panel-title { display: block; }
.tabs__panel:not([hidden]) ~ .tabs__panel:not([hidden]) { margin-top: 32px; }

/* Elenco puntato: niente bordi né riquadri, pallino arancio */
.bullets { display: grid; gap: 12px; }
@media (min-width: 768px) { .bullets--2col { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.bullets .item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-left: 22px; line-height: 1.45; }
.bullets .item::before {
	content: ""; position: absolute; left: 3px; top: .5em;
	width: 9px; height: 9px; border-radius: 50%; background: var(--c-primary);
}
.item__title { flex: 1; font-weight: 500; color: var(--c-ink); font-size: 16.5px; }
.item mark { background: var(--c-sun); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Prestazioni cliccabili: sfondo colorato al passaggio del mouse, tutta la riga porta al modulo di contatto */
.prest .bullets { gap: 0; }
.bullets .item--link {
	padding: 4px 10px 4px 32px; margin-inline: -10px; border-radius: 10px;
	transition: background-color .15s;
}
.bullets .item--link::before { left: 13px; top: calc(4px + .5em); } /* pallino centrato sulla prima riga */
.item__link { text-decoration: none; transition: color .15s; }
.item__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* link esteso a tutta la riga */
.item--link .item__info { position: relative; z-index: 2; } /* l'icona info resta cliccabile sopra il link */
.item--link:hover, .item--link:focus-within { background: var(--c-primary-soft); }
.item--link:hover .item__link, .item--link:focus-within .item__link { color: var(--c-primary-text); }
.item__link:focus-visible { outline: none; }
.item--link:has(.item__link:focus-visible) { box-shadow: 0 0 0 2px var(--c-primary); }

/* Nota: icona info (Material Symbols) a fine riga, fumetto al passaggio del mouse / focus / tocco */
.item__info {
	display: inline-grid; place-items: center; flex: none;
	width: 30px; height: 30px; margin: -4px -6px -4px 0; padding: 0;
	border: 0; border-radius: 50%; background: none; color: var(--c-muted); cursor: help;
	transition: color .2s, background-color .2s;
}
.item__info .icon { width: 20px; height: 20px; }
.item__info:hover, .item__info:focus-visible, .item__info[aria-expanded="true"] { color: var(--c-primary-text); background: var(--c-primary-soft); }
.item__note {
	position: absolute; z-index: 5; right: -6px; bottom: calc(100% + 6px);
	max-width: min(300px, 100%);
	padding: 8px 12px; border-radius: 8px;
	background: var(--c-ink); color: #fff; font-size: 13.5px; line-height: 1.4; font-weight: 500;
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	pointer-events: none;
}
.item__note::after { /* freccia verso l'icona */
	content: ""; position: absolute; right: 15px; top: 100%;
	border: 6px solid transparent; border-top-color: var(--c-ink);
}
.item__note mark { background: rgba(250, 231, 174, .35); color: #fff; }
.item__info:hover + .item__note, .item__info:focus-visible + .item__note, .item__info[aria-expanded="true"] + .item__note {
	opacity: 1; visibility: visible; transform: none;
}

/* Documenti e "non trovi la prestazione" */
.docs { display: flex; flex-wrap: wrap; gap: 10px; }
.doc {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	border-radius: var(--radius-sm); background: var(--c-primary-soft); color: var(--c-ink);
	text-decoration: none; font-weight: 600; font-size: 15px;
}
.doc .icon { color: var(--c-primary-text); }
.doc:hover { text-decoration: underline; }
/* "Non trovi la prestazione?": riquadro cliccabile sotto l'elenco → modulo di contatto */
.callout {
	display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px 18px;
	border-radius: var(--radius); background: var(--c-bg); border: 1px dashed var(--c-line);
	color: var(--c-text); text-decoration: none;
	transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.callout__text { flex: 1; }
.callout__text strong { color: var(--c-ink); }
.callout__arrow {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: var(--c-surface); color: var(--c-primary-text); border: 1px solid var(--c-line);
	transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.callout__arrow .icon { width: 20px; height: 20px; }
.callout:hover, .callout:focus-visible {
	background: var(--c-primary-soft); border-style: solid; border-color: var(--c-primary);
	box-shadow: var(--shadow); transform: translateY(-1px);
}
.callout:hover .callout__arrow, .callout:focus-visible .callout__arrow { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateX(3px); }
.tabs.is-searching .callout { margin-top: 20px; }

/* Il modulo evidenziato per un attimo quando ci si arriva da un link */
.contatti__form.is-highlight { animation: cc-highlight 1.6s ease; }
@keyframes cc-highlight {
	0%, 100% { box-shadow: var(--shadow-lg); }
	25% { box-shadow: 0 0 0 4px rgba(245, 111, 39, .35), var(--shadow-lg); }
}

/* ---------- Recensioni ---------- */

.rating { display: flex; align-items: center; gap: 14px; }
.rating__value { font-family: var(--f-display); font-size: 48px; font-weight: 700; color: var(--c-ink); line-height: 1; }
.rating__count { font-size: 14px; color: var(--c-muted); margin-top: 2px; }
.stars { display: inline-flex; gap: 2px; color: #D7D3CA; }
.stars .icon { width: 18px; height: 18px; }
.stars .is-on { color: #F5B301; fill: #F5B301; }

.reviews__track { grid-auto-columns: 86%; }
@media (min-width: 700px) { .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1050px) { .reviews__track { grid-auto-columns: calc((100% - 32px) / 3); } }
.review {
	display: flex; flex-direction: column; gap: 14px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 22px; box-shadow: var(--shadow);
}
.review__text { margin: 0; font-size: 15.5px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-size: 15px; line-height: 1.3; }
.review__author small { color: var(--c-muted); }
.review__avatar {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--c-primary-soft); color: var(--c-primary-text); font-weight: 700;
}
.review__link { font-size: 14px; color: var(--c-primary-text); display: inline-flex; gap: 4px; align-items: center; }
.review__link .icon { width: 16px; height: 16px; }

/* ---------- Articoli ---------- */

.posts-track { grid-auto-columns: 82%; }
@media (min-width: 640px) { .posts-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1000px) { .posts-track { grid-auto-columns: calc((100% - 32px) / 3); } }

.posts-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.post-card {
	position: relative; height: 100%; display: flex; flex-direction: column;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.post-card__media { display: block; aspect-ratio: 3 / 2; background: var(--c-sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-primary); background: var(--c-primary-soft); }
.post-card__placeholder .icon { width: 44px; height: 44px; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--c-muted); }
.post-card__title { font-family: var(--f-display); font-size: 21px; line-height: 1.25; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* tutta la card cliccabile */
.post-card__excerpt { font-size: 15px; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary-text); font-weight: 700; font-size: 14.5px; }
.post-card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
@media (hover: hover) {
	.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
	.post-card:hover .post-card__more .icon { transform: translateX(3px); }
}

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: var(--c-surface);
	text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.empty { text-align: center; color: var(--c-muted); padding: 40px 0; }

/* ---------- Dove siamo ---------- */

.dove { display: grid; gap: 36px; }
@media (min-width: 900px) { .dove { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; } }

.info-list { display: grid; gap: 20px; margin: 28px 0 32px; }
.info-list li { display: flex; gap: 14px; }
.info-list__icon {
	display: grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary-text);
}
.info-list h3 { font-family: var(--f-body); font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.info-list p { font-size: 15.5px; }

.map {
	position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--c-sand) repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 255, 255, .5) 22px 23px);
	border: 1px solid var(--c-line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
	position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
	padding: 24px; text-align: center; font-size: 14.5px; color: var(--c-muted);
}
.map__placeholder p { max-width: 320px; }
.map__pin { width: 40px; height: 40px; color: var(--c-primary); }

/* ---------- Contatti e modulo ---------- */

.contatti { display: grid; gap: 40px; }
@media (min-width: 900px) { .contatti { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.channels { display: grid; gap: 10px; margin-top: 28px; }
.channel {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.channel strong { display: block; color: var(--c-ink); font-size: 16px; word-break: break-word; }
.channel small { display: block; color: var(--c-muted); font-size: 13.5px; }
.channel > span:nth-child(2) { flex: 1; min-width: 0; }
.channel__icon {
	display: grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: 12px; background: var(--c-surface); color: var(--c-primary-text); border: 1px solid var(--c-line);
}
.channel__icon--wa { color: #128C4A; }
.channel__arrow { color: var(--c-muted); transition: transform .2s, color .2s; }
.channel:hover { border-color: var(--c-primary); }
.channel:hover .channel__arrow { transform: translateX(3px); color: var(--c-primary); }
.channel--primary { background: var(--c-primary); border-color: var(--c-primary); }
.channel--primary strong, .channel--primary small, .channel--primary .channel__arrow { color: #fff; }
.channel--primary .channel__icon { background: rgba(255, 255, 255, .18); border-color: transparent; color: #fff; }
.channel--primary:hover { background: var(--c-primary-hover); }
.channel--primary:hover .channel__arrow { color: #fff; }

.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
@media (min-width: 768px) { .card { padding: 32px; } }
.card__title { font-family: var(--f-display); font-size: 24px; margin-bottom: 20px; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field label { display: block; font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--c-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-bg);
	font: inherit; font-size: 16px; color: var(--c-ink); /* 16px evita lo zoom su iOS */
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(245, 111, 39, .18); }
.field__help { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.field__error { font-size: 13.5px; color: #B42318; margin-top: 6px; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #B42318; }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-primary); }
.field--check label { font-weight: 400; font-size: 14px; color: var(--c-text); margin: 0; }
.field--check label a { color: var(--c-primary-text); }
.field--check .field__error { grid-column: 1 / -1; }

.form__status { font-size: 15px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok, .form__status[data-status="inviato"] { color: #166534; background: #ECFDF3; padding: 12px 14px; border-radius: var(--radius-sm); }
.form__status.is-error, .form__status[data-status="errore"] { color: #B42318; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Domande frequenti ---------- */

.faq__head { text-align: center; }
.faq__head .section-text { margin-inline: auto; }
.faq__list { display: grid; gap: 10px; }
.faq__more { margin-top: 10px; }
.faq__item {
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--c-primary); box-shadow: var(--shadow); }
.faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 20px; cursor: pointer; list-style: none;
	font-weight: 600; font-size: 16.5px; color: var(--c-ink); line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-primary-text); }
.faq__icon {
	display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
	background: var(--c-primary-soft); color: var(--c-primary-text); transition: transform .2s, background-color .2s, color .2s;
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__a { padding: 0 20px 20px; font-size: 16px; }
.faq__toggle-wrap { margin-top: 24px; text-align: center; }
.faq__toggle .icon { transition: transform .2s; }
.faq__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ---------- Pagine interne e articoli ---------- */

.page-hero { padding: 48px 0 32px; }
.page-hero--center { text-align: center; padding: 96px 0; }
.page-hero--center .section-text { margin-inline: auto; }
@media (min-width: 768px) { .page-hero { padding: 72px 0 40px; } }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--c-primary-text); text-decoration: none; }
.back-link .icon { width: 18px; height: 18px; }
.article__meta { margin-top: 14px; color: var(--c-muted); font-size: 15px; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); }
.article__content { padding-top: 36px; padding-bottom: 24px; }
.article-cta {
	display: grid; gap: 18px; align-items: center; margin: 24px 0 72px;
	padding: 24px; border-radius: var(--radius-lg); background: var(--c-sun);
}
.article-cta__title { font-family: var(--f-display); font-size: 24px; margin-bottom: 6px; }
@media (min-width: 640px) { .article-cta { grid-template-columns: 1fr auto; padding: 32px; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--c-ink); color: #C9CDD5; padding: 56px 0 24px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 12px; max-width: 340px; }
.site-footer__small { font-size: 13.5px; color: #9AA1AD; }
.site-footer__title { font-family: var(--f-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { display: inline-flex; align-items: flex-start; gap: 10px; }
.site-footer__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c-primary); }
.site-footer__list--plain strong { color: #fff; font-weight: 600; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
	margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13.5px; color: #9AA1AD;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer .link-button { color: inherit; text-decoration: none; font-size: inherit; }
.site-footer .link-button:hover { color: #fff; text-decoration: underline; }

/* ---------- Barra azioni (smartphone) e WhatsApp flottante (computer) ---------- */

.action-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96); border-top: 1px solid var(--c-line);
	box-shadow: 0 -6px 20px rgba(31, 36, 46, .08);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.action-bar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-height: 52px; border-radius: 12px; text-decoration: none;
	font-size: 12.5px; font-weight: 700; color: var(--c-ink); background: var(--c-sand);
}
.action-bar__item .icon { width: 22px; height: 22px; }
.action-bar__item--wa .icon { color: #128C4A; }
.action-bar__item--primary { background: var(--c-primary); color: #fff; }
/* In home la barra entra solo dopo la prima schermata (la sezione iniziale ha già i pulsanti) */
.action-bar { transition: transform .3s ease, visibility .3s; }
.js .home .action-bar:not(.is-visible) { transform: translateY(110%); visibility: hidden; }
@media (min-width: 900px) { .action-bar { display: none; } }

.wa-float {
	position: fixed; right: 24px; bottom: 24px; z-index: 60;
	display: none; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: var(--c-wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
@media (min-width: 900px) { .wa-float { display: grid; } }

/* ---------- Banner cookie ---------- */

.consent {
	position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
	display: grid; gap: 14px; padding: 18px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); font-size: 14.5px;
}
.consent a { color: var(--c-primary-text); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) {
	.consent { left: 24px; right: auto; bottom: 24px; max-width: 460px; }
}

/* ---------- Comparsa delle sezioni allo scorrimento ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Pagina "Sito in arrivo" (inc/coming-soon.php) ---------- */

.soon-page { background: #fff; }
.soon {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 24px; padding: 48px var(--gutter) 32px; text-align: center;
}
.soon__glow {
	position: absolute; z-index: -1; pointer-events: none;
	width: 110vw; max-width: 900px; aspect-ratio: 1.15;
	background: var(--c-primary); opacity: .22; filter: blur(140px);
	border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
}
.soon__glow--tl { top: -35%; left: -40%; }
.soon__glow--br { bottom: -40%; right: -40%; background: var(--c-sun); opacity: .9; }
.soon__card { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon__brand { margin: 0 0 8px; flex-direction: column; align-items: center; gap: 4px; }
.soon__brand .brand__name { font-size: 26px; }
.soon__tagline { font-size: 14px; color: var(--c-muted); letter-spacing: .02em; }
.soon__title { margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--c-ink); font-size: clamp(34px, 9vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.soon__text { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.6; }
.soon__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 8px; }
.soon__actions .btn { width: 100%; }
.soon__info { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--c-text); }
.soon__info li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.soon__info .icon { color: var(--c-primary-text); }
.soon__info a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; }
.soon__info a:hover { color: var(--c-primary-text); text-decoration-color: currentColor; }

@media (min-width: 700px) {
	.soon__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
	.soon__actions .btn { width: auto; }
}
