/*!
 * DentaPro Classico — theme.css
 * Build precompilata Tailwind 3 ridotta alle classi usate dai template.
 * Per estensioni custom, usare i tag <style> nel customizer o ricompilare da src/.
 */

@import url('https://fonts.bunny.net/css?family=inter:300,400,500,600|playfair-display:600,700');

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.font-sans { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Colori brand */
.bg-clinic-blue { background-color: #1e3a8a; }
.bg-clinic-light { background-color: #eff6ff; }
.bg-clinic-gold { background-color: #d4af37; }
.text-clinic-blue { color: #1e3a8a; }
.text-clinic-light { color: #eff6ff; }
.text-clinic-gold { color: #d4af37; }
.border-clinic-blue { border-color: #1e3a8a; }
.hover\:bg-clinic-blue:hover { background-color: #1e3a8a; }
.hover\:bg-blue-900:hover { background-color: #1e3a8a; }
.hover\:bg-yellow-300:hover { background-color: #fde047; }
.hover\:text-clinic-gold:hover { color: #d4af37; }
.hover\:text-clinic-blue:hover { color: #1e3a8a; }
.hover\:border-clinic-blue:hover { border-color: #1e3a8a; }

/* Utility minime */
.container { width: 100%; margin-left: auto; margin-right: auto; max-width: 1280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-9 { padding: 2.25rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.pt-8 { padding-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-7 { gap: 1.75rem; } .gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.5rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: .05em; }
.tracking-widest { letter-spacing: .1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgba(255,255,255,.9); }
.bg-white\/95 { background-color: rgba(255,255,255,.95); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-green-500 { background-color: #22c55e; }
.text-white { color: #fff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-emerald-600 { color: #059669; }
.text-blue-100 { color: #dbeafe; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.border-blue-100 { border-color: #dbeafe; }

/* Flexbox / Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.inset-0 { inset: 0; }
.w-2 { width: .5rem; } .h-2 { height: .5rem; }
.w-3 { width: .75rem; } .h-3 { height: .75rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; } .h-11 { height: 2.75rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-24 { width: 6rem; } .h-24 { height: 6rem; }
.w-32 { width: 8rem; } .h-32 { height: 8rem; }
.w-96 { width: 24rem; } .h-96 { height: 24rem; }
.shrink-0, .flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.opacity-80 { opacity: .8; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-clinic-blue { --tw-gradient-from: #1e3a8a; --tw-gradient-stops: var(--tw-gradient-from), #3b82f6, #06b6d4; }

/* Transitions / animations */
.transition { transition: all .15s cubic-bezier(.4,0,.2,1); }
.transition-colors { transition: color .15s, background-color .15s, border-color .15s; }
.duration-300 { transition-duration: .3s; }
.hover\:-translate-y-1:hover { transform: translateY(-.25rem); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
.hover\:scale-105:hover { transform: scale(1.05); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.animate-pulse { animation: dpcPulse 1.8s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes dpcPulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }

/* Card hover */
.card-shadow { box-shadow: 0 10px 40px -10px rgba(30,58,138,.08); }
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(30,58,138,.15); }

/* ===== Hero deco e immagini fedeli al prototipo ===== */
.dpc-hero-bg-deco {
	background: #1e3a8a;
	border-radius: 3rem;
	transform: rotate(3deg) scale(1.05);
	opacity: .1;
}
.dpc-hero-img { height: 540px; max-height: 70vh; }
@media (max-width: 768px) { .dpc-hero-img { height: 380px; } }
.dpc-hero-placeholder {
	min-height: 540px;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
	border-radius: 3rem;
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,.6);
	font-family: Georgia, serif;
	font-size: 1.5rem;
}
.dpc-hero-placeholder::after {
	content: '🦷';
	font-size: 8rem;
	opacity: .5;
}

/* Doctor image */
.dpc-doctor-img { height: 600px; max-height: 80vh; }
@media (max-width: 768px) { .dpc-doctor-img { height: 420px; } }

/* Floating badge animato */
.dpc-float-badge {
	animation: dpcBounce 3.6s ease-in-out infinite;
}
@keyframes dpcBounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* Avatar stack hero */
.dpc-avatars { display: flex; }
.dpc-avatars > * { margin-left: -10px; }
.dpc-avatars > *:first-child { margin-left: 0; }

/* Blob blur per CTA section */
.dpc-blur-circle {
	transform: translate(50%, -50%);
	filter: blur(60px);
}

/* Reveal animations — opacità 0 solo quando JS è attivo. Fallback safe
 * per utenti con JS disabilitato: contenuto immediatamente visibile. */
html.dpc-js-on .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.5,0,0,1), transform .8s cubic-bezier(.5,0,0,1);
	will-change: opacity, transform;
}
html.dpc-js-on .reveal.reveal-active { opacity: 1; transform: translateY(0); }
/* Failsafe: se per qualche motivo `.reveal-active` non viene applicato entro 2s,
 * mostriamo comunque il contenuto (utenti su mobile lento, scroll non rilevato, ecc.). */
@keyframes dpcRevealFallback { to { opacity: 1; transform: translateY(0); } }
html.dpc-js-on .reveal { animation: dpcRevealFallback 0s linear 2s forwards; }
html.dpc-js-on .reveal.reveal-active { animation: none; }

/* Body container nice scroll */
html { scroll-behavior: smooth; }

/* Yellow stars for testimonials */
.text-yellow-400 { color: #fbbf24; }

/* Slate semantics extra used by front-page */
.bg-blue-800 { background-color: #1e40af; }
.text-blue-200 { color: #bfdbfe; }
.text-blue-300 { color: #93c5fd; }
.bg-white\/10 { background-color: rgba(255,255,255,.1); }
.opacity-5 { opacity: .05; }

/* Card hover sui treatments con padding & radius più ampi */
.rounded-3xl { border-radius: 1.5rem; }

/* Trust strip ★ */
.text-xs { font-size: .75rem; line-height: 1rem; }

/* Better italic title */
.italic { font-style: italic; }

/* Section spacing extra */
.md\:py-24 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; } }
.md\:p-16 { padding: 2rem; }
@media (min-width: 768px) { .md\:p-16 { padding: 4rem; } }
.md\:p-8 { padding: 1.75rem; }
@media (min-width: 768px) { .md\:p-8 { padding: 2rem; } }
.md\:w-5\/12 { width: 100%; }
.md\:w-7\/12 { width: 100%; }
@media (min-width: 768px) {
	.md\:w-5\/12 { width: 41.6667%; }
	.md\:w-7\/12 { width: 58.3333%; }
}

/* Inline-flex helper */
.inline-flex { display: inline-flex; }

/* Bg yellow & gradient star color */
.bg-yellow-400 { background-color: #fbbf24; }

/* Improve spacing nav menu wp_nav_menu output */
.flex.items-center.gap-7 ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.flex.items-center.gap-7 li > a { color: #475569; transition: color .15s; }
.flex.items-center.gap-7 li > a:hover { color: #1e3a8a; }

/* SVG icon size consistency */
svg.w-3 { width: .75rem; }
svg.h-3 { height: .75rem; }
svg.w-7 { width: 1.75rem; }
svg.h-7 { height: 1.75rem; }

/* Prose minimale */
.prose { color: #334155; line-height: 1.7; font-size: 1.0625rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Playfair Display', Georgia, serif; color: #0f172a; font-weight: 700; margin-top: 1.8em; margin-bottom: .6em; }
.prose h2 { font-size: 1.65em; } .prose h3 { font-size: 1.3em; }
.prose p { margin: .9em 0; }
.prose a { color: #1e3a8a; text-decoration: underline; }
.prose ul, .prose ol { margin: .9em 0; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose blockquote { border-left: 4px solid #1e3a8a; padding-left: 1.2em; margin: 1.5em 0; color: #475569; font-style: italic; }
.prose img { border-radius: .75rem; margin: 1.5em 0; }
.prose-lg { font-size: 1.125rem; }

/* Modulo contatti */
.dp-contact { display: flex; flex-direction: column; gap: 14px; }
.dp-contact-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.dp-contact-sub { color: #64748b; margin: -8px 0 4px; }
.dp-contact label { font-size: 13px; font-weight: 600; color: #334155; display: block; margin-bottom: 4px; }
.dp-contact input[type="text"], .dp-contact input[type="email"], .dp-contact input[type="tel"], .dp-contact textarea { width: 100%; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; }
.dp-contact input:focus, .dp-contact textarea:focus { outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.dp-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dp-consent { display: flex; gap: 10px; font-size: 13px; color: #475569; align-items: flex-start; cursor: pointer; }
.dp-consent input { margin-top: 2px; }
.dp-contact-submit { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; border: 0; padding: 14px 28px; border-radius: 99px; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 4px 14px rgba(30,58,138,.3); }
.dp-contact-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,58,138,.4); }
.dp-contact-ok { background: #d1fae5; color: #047857; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.dp-contact-err { background: #fee2e2; color: #b91c1c; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }

/* Responsive */
@media (min-width: 768px) {
	.md\:block { display: block; }
	.md\:flex { display: flex; }
	.md\:hidden { display: none; }
	.md\:flex-row { flex-direction: row; }
	.md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
	.md\:col-span-2 { grid-column: span 2 / span 2; }
	.md\:col-span-3 { grid-column: span 3 / span 3; }
	.md\:w-1\/2 { width: 50%; }
	.md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
	.md\:p-9 { padding: 2.25rem; }
	.md\:text-5xl { font-size: 3rem; line-height: 1; }
	.md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
	.sm\:flex-row { flex-direction: row; }
}
@media (max-width: 640px) {
	.dp-row-2 { grid-template-columns: 1fr; }
	.text-5xl { font-size: 2.25rem; }
	.text-6xl { font-size: 2.75rem; }
}
