/*
Theme Name: Dr. Francesco Raggi 2026
Theme URI: https://www.francescoraggi.it/
Author: Studio Dr. Francesco Raggi
Description: Tema su misura per francescoraggi.it, senza page builder (stessa base di ipok-2026). Colori, logo e disposizione del sito precedente.
Version: 1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: fr2026
*/

/* ============ 1. Basi ============ */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--blue: #17384b;
	--grey: #e9e6e6;
	--white: #fff;
	--cta: #1cadc8;
	--font: #6d7a8c;
	--trans: all 0.2s ease;
	--shadow: 0 3px 6px #00000045;
	--radius: 3px;
	--bar: 55px;
	--head: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.625;
	color: #6c6d74;
	background: #fff;
	padding-top: calc(var(--bar) + var(--head));
	overflow-x: clip;
}
html { scroll-padding-top: calc(var(--bar) + var(--head) + 20px); }
img, svg, video, iframe { max-width: 100%; vertical-align: middle; }
img { height: auto; }
a { color: var(--cta); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--font); text-decoration: none; }
b, strong { font-weight: 800; }
em { color: #2d2e33; }
hr { border: 0; border-top: 1px solid #e5e5e7; margin: 20px 0; }

p, ul, ol, dl, figure, address, pre, table, blockquote { margin: 0 0 20px; }
* + p, * + ul, * + ol, * + dl, * + figure, * + address, * + pre, * + table, * + blockquote { margin-top: 20px; }
ul, ol { padding-left: 30px; }
li > ul, li > ol { margin: 0; }
p { font-size: 16px; line-height: 1.5; color: var(--font); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; font-family: "Montserrat", sans-serif; color: var(--blue); text-transform: none; }
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 { margin-top: 40px; }
h1 { font-size: 42px; line-height: 1.2; font-weight: 900; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 18px; line-height: 36px; font-weight: 800; letter-spacing: -0.5px; }
h4 { font-size: 16px; line-height: 1.4; font-weight: 800; }
blockquote { font-size: 20px; line-height: 1.5; color: #2d2e33; }

.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; width: 1px; word-wrap: normal !important; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; color: var(--blue); padding: 12px 18px; font-weight: 800; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px dotted var(--blue); outline-offset: 2px; }

/* ============ 2. Contenitori e griglie ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 880px; }
.sec { padding: 70px 0; }
.sec-top0 { padding-top: 0; }
.sec-bot0 { padding-bottom: 0; }
.sec-small { padding: 40px 0; }
.cols { display: grid; gap: 40px; grid-template-columns: 1fr; }
.cols > * { min-width: 0; }
.cols > * > :first-child { margin-top: 0; }
.cols > * > :last-child { margin-bottom: 0; }
@media (min-width: 960px) {
	.cols-2 { grid-template-columns: 1fr 1fr; }
	.cols-3 { grid-template-columns: repeat(3, 1fr); }
	.cols-1-2 { grid-template-columns: 1fr 2fr; }
	.cols-2-1 { grid-template-columns: 2fr 1fr; }
	.cols.mid { align-items: center; }
	.col-center { display: flex; flex-direction: column; justify-content: center; }
}
.cols img { display: block; }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }

/* ============ 3. Barra blu in alto ============ */
.cta-bar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar); background: var(--blue); z-index: 1000; }
.cta-bar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.cta-bar a, .cta-bar .place { color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.cta-bar a:hover { color: var(--cta); }
.cta-bar-links { display: flex; column-gap: 30px; }
.cta-bar-places { display: flex; column-gap: 20px; }
.only-mob { display: none; }

/* ============ 4. Testata e menu ============ */
.site-header { position: fixed; top: var(--bar); left: 0; right: 0; height: var(--head); background: #fff; box-shadow: var(--shadow); z-index: 999; }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; flex: 0 0 auto; }
.logo-img { display: block; width: 200px; height: auto; }
.nav-toggle { display: none; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; column-gap: 20px; }
.nav .menu > li { position: relative; margin: 0; }
.nav .menu > li > a, .nav .menu > li > .sub-toggle:not(.sub-toggle-ico) {
	display: flex; align-items: center; height: var(--head); font-family: inherit; font-size: 11px; font-weight: 800; text-transform: uppercase;
	color: var(--font); background: none; border: 0; padding: 0; cursor: pointer; position: relative; letter-spacing: 0;
}
.nav .menu > li > a:hover, .nav .menu > li:hover > .sub-toggle, .nav .menu > li.open > .sub-toggle, .nav .menu > li > .sub-toggle:focus-visible { color: var(--cta); }
.nav .menu > li.current-menu-item > a, .nav .menu > li.current-menu-ancestor > a, .nav .menu > li.current-menu-ancestor > .sub-toggle { color: var(--cta); }
.nav .menu > li.current-menu-item > a::before { content: ""; position: absolute; bottom: 20px; left: 0; right: 0; height: 2px; background: var(--cta); }
.sub-toggle .caret { display: none; }
.sub-toggle-ico { display: none; }
.nav .sub-menu { list-style: none; margin: 0; padding: 25px; position: absolute; top: 100%; left: 0; width: 240px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 10; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu, .nav .menu > li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu li { margin: 0; }
.nav .sub-menu a { display: block; padding: 6px 0; font-size: 11px; line-height: 1.6; font-weight: 800; text-transform: uppercase; color: var(--font); }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { color: var(--cta); }

/* ============ 5. Briciole di pane ============ */
.crumbs { padding: 50px 0 0; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; }
.breadcrumb li { margin: 0; color: #999; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--cta); }
.breadcrumb li:last-child a { color: #2d2e33; }

/* ============ 6. Elementi del sito precedente (Simple Custom CSS and JS n. 14) ============ */
.flex { display: flex; }
.vertical, .justify { justify-content: center; }
.horizontal, .align { align-items: center; }
.column { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.around { justify-content: space-around; }
.evenly { justify-content: space-evenly; }
.r-gap-20 { row-gap: 20px; }
.c-gap-20 { column-gap: 20px; }
.c-gap-10 { column-gap: 10px; }
.c-gap-5 { column-gap: 5px; }
.circle { border-radius: 50%; }
.width { width: 100%; }
.blue { color: var(--blue); }
.center { margin: 0 auto; }
.block { display: block; }
.shadow { box-shadow: var(--shadow); }
.mgl-0 { margin-left: 0; }
.ml-10 p { margin-left: 20px; }
.left { text-align: left; }
.hover:hover { color: var(--cta); }
.cta-color { color: var(--cta); font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.pt-20 { padding-top: 20px !important; }
.bg-grey { background-color: #f3f3f3; }
.bg-blue { background-color: var(--blue); }
.bg-blue h2, .bg-blue p { color: #fff; }
.bg-white { background-color: var(--white); }
.bg-light { background-color: #204860; padding: 20px; }
.cta-bg { background-color: var(--cta); }
.hero-bg { background-color: #e9e6e6; }
.red { background-color: #c64923; }
.yellow { background-color: #f4be3f; }
.green { background-color: #5ad358; }
.blu { background-color: #80c7ef; }
.grecaptcha-badge { display: none; }

/* Pulsanti */
.btn, .btn-primary, .btn-big, .wp-block-button__link {
	color: var(--white) !important; background-color: var(--cta) !important; border-radius: var(--radius); text-align: center; line-height: 26px;
	letter-spacing: 1px; font-weight: 900; font-size: 13px; padding: 15px 0; margin-top: 30px; display: block; position: relative; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn { max-width: 150px; width: 100%; }
.btn-big { width: 250px; }
.btn-auto { max-width: none; width: auto; display: inline-block; padding: 15px 20px; }
.wp-block-button__link { padding: 15px 10px; margin: 0 auto; display: inline-block; }
.btn:hover, .btn-primary:hover, .btn-big:hover, .wp-block-button__link:hover { background-color: var(--blue) !important; color: var(--white) !important; }
.btn:active, .btn-primary:active, .btn-big:active { top: 2px; }
.btn-primary, .btn-secondary { text-transform: uppercase; margin-top: 0 !important; padding-left: 10px !important; padding-right: 10px !important; }
.btn-secondary { border-radius: var(--radius); background-color: var(--blue); color: #fff; text-align: center; line-height: 26px; letter-spacing: 1px; font-weight: 900; font-size: 13px; padding: 15px 0; display: block; position: relative; border: 1px solid var(--blue); transition: var(--trans); }
.btn-secondary:hover { color: var(--blue); background-color: #fff; }
.double-btn__wrapper { display: flex; column-gap: 20px; flex-wrap: wrap; }
.links__wrapper { display: flex; column-gap: 20px; flex-wrap: wrap; }
.links__wrapper .btn-big { margin-top: 20px; }

/* Tipografia speciale */
.hr { height: 3px; max-width: 150px; border-radius: var(--radius); background-color: var(--cta); border: 0; margin: 20px 0 0; }
.hr-big { height: 3px; border-radius: var(--radius); background-color: var(--cta); width: 90%; margin: 30px auto; display: block; border: 0; }
.small-label { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cta); margin-bottom: 16px; }
.hero-text h1 { margin: 0; }
.hero-text p { color: var(--cta); letter-spacing: 2px; font-weight: 700; margin: 20px 0; }
.hero-text h2, .h2 { font-size: 32px; font-weight: 600; color: var(--blue); line-height: 1.3; }
.hero-text h2 { margin: 20px 0 0; }

.text__wrapper h1 { margin-bottom: 20px; }
.text__wrapper h2 { font-size: 26px; line-height: 1.3; font-weight: 800; color: var(--blue); }
.text__wrapper h2, .text__wrapper h3 { margin-bottom: 10px; }
.text__wrapper * + h2, .text__wrapper * + h3 { margin-top: 20px; }
.text__wrapper ul { margin-left: 0; }
.text__wrapper a { color: var(--cta); }
.text__wrapper a:hover { color: var(--font); }

.cta__wrapper { background-color: var(--cta); padding: 40px 20px; color: var(--white); text-align: center; }
.cta__wrapper p { font-size: 19px; color: var(--white); margin: 0; }
.cta__wrapper p + p { margin-top: 20px; }
.cta__wrapper em, .cta__wrapper i { color: var(--white); }
.cta__wrapper h2 { color: var(--white); }

/* Riquadri con icona */
.icone__wrapper { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 20px; }
.icone__wrapper > a, .icone__wrapper > div { flex: 1 0 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--cta); padding: 10px; border-radius: var(--radius); min-height: 232px; text-align: center; }
.icone__wrapper > a:hover { box-shadow: var(--shadow); }
.icone__wrapper img { width: 150px; height: 150px; }
.icone__wrapper h3 { font-size: 16px; color: #0a0a0a; padding: 10px 0; font-weight: 800; line-height: 20px; margin: 0; }
.icone__wrapper span, .icone__wrapper p { font-size: 14px; color: #0a0a0a; text-align: center; line-height: 21px; margin: 0; }

/* Elenco con icone */
.custom-list { display: flex; align-items: center; margin-top: 20px; }
.custom-list img { flex: 0 0 40px; }
.custom-list p, .custom-list h4 { margin: 0 0 0 10px; }
.custom-list h4 { text-transform: none; font-weight: 800; color: var(--blue); }
.custom-list .custom-list-items { width: 80%; }

/* Elenchi con pallino */
.new-ul, .ai-text ul { margin-left: 30px; padding-left: 0; list-style: none; }
.new-ul li, .ai-text li { line-height: 30px; color: #000; position: relative; }
.new-ul li { font-size: 16px !important; line-height: 1.5 !important; color: var(--font) !important; }
.new-ul li::before, .ai-text li::before { content: ""; position: absolute; left: -20px; top: 10px; width: 10px; height: 10px; background: var(--cta); border-radius: 50%; }
.ai-text p { margin-bottom: 30px; }
.ai-divider { border-bottom: 1px solid var(--grey); }

/* Sezioni con immagine di sfondo */
.bg-ipertensione { background-image: url("/wp-content/uploads/2021/12/bg-ipertensione.webp"); background-size: cover; background-position: center; }
.form-bg { background-image: url("/wp-content/uploads/2022/01/bg-contact-form.webp"); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.form-bg .panel, .marker { background-color: #ffffffba; padding: 20px; border-radius: var(--radius); }
.height { min-height: 70vh; display: flex; align-items: center; }
.height .marker h1 { text-align: center; }
.bg-med-rigenerativa { background-image: url("/wp-content/uploads/2021/12/bg-med-rigenerativa.webp"); background-position: center center; background-size: cover; }
.bg-med-potenziativa { background-image: url("/wp-content/uploads/2021/12/bg-med-potenziativa.jpeg"); background-position: center center; background-repeat: no-repeat; background-size: contain; background-color: #000; }
.bg-ernia-disco, .bg-cura-diabete, .bg-cura-sinusite, .bg-adiposita-localizzata, .bg-placeholder, .bg-ozonoterapia, .bg-ozonoterapia-container, .bg-carbossiterapia, .bg-fototerapia, .bg-laser-endovena, .bg-vitamine-endovena, .bg-terapia-infusionale, .bg-acido-lipoico, .bg-nutrizione-clinica, .bg-intralipoterapia { background-position: center top; background-repeat: no-repeat; background-size: cover; }
.bg-ernia-disco { background-image: url("/wp-content/uploads/2021/12/bg-ernia-disco.webp"); }
.bg-cura-diabete { background-image: url("/wp-content/uploads/2021/12/bg-cura-diabete.webp"); }
.bg-cura-sinusite { background-image: url("/wp-content/uploads/2022/01/bg-cura-sinusite.jpeg"); }
.bg-adiposita-localizzata { background-image: url("/wp-content/uploads/2022/01/bg-adiposita-localizzata.webp"); }
.bg-placeholder { background-image: url("/wp-content/uploads/2022/01/placeholder-900-600.jpeg"); }
.bg-ozonoterapia { background-image: url("/wp-content/uploads/2022/01/bg-congresso-ozonoterapia.webp"); }
.bg-ozonoterapia-container { background-image: url("/wp-content/uploads/2022/01/img-ozonoterapia.webp"); }
.bg-carbossiterapia { background-image: url("/wp-content/uploads/2022/01/bg-carbossiterapia.webp"); }
.bg-fototerapia { background-image: url("/wp-content/uploads/2022/01/bg-fototerapia.webp"); }
.bg-laser-endovena, .bg-vitamine-endovena { background-image: url("/wp-content/uploads/2022/01/bg-laser-endovena.webp"); }
.bg-terapia-infusionale { background-image: url("/wp-content/uploads/2022/01/bg-terapia-infusionale.jpeg"); }
.bg-acido-lipoico { background-image: url("/wp-content/uploads/2022/01/bg-flebo-acido-lipoico.jpg"); }
.bg-nutrizione-clinica { background-image: url("/wp-content/uploads/2022/01/bg-nutrizione-clinica.jpg"); }
.bg-intralipoterapia { background-image: url("/wp-content/uploads/2022/01/bg-intralipoterapia.jpeg"); }

/* Contatti e moduli */
.phone-form { color: var(--cta); font-size: 18px; display: block; position: relative; }
.phone-form:hover { color: var(--blue); }
.form__wrapper p { margin: 20px 0; }
.contatti__wrapper { padding: 20px 10px; }
.studio__wrapper { display: flex; column-gap: 20px; border-bottom: 1px dotted var(--font); padding: 20px 10px; }
.studio__wrapper p { margin: 0; }
.studio__wrapper .comune { font-size: 20px; line-height: 24px; font-weight: 700; }
.studio__wrapper .indirizzo { font-size: 14px; line-height: 18px; font-weight: 800; color: var(--blue); }
.studio__wrapper .phone-form { margin: 20px 0; }
.input, .textarea { border: .5px solid var(--font); background-color: #fff; font-size: 13px; color: #6d7a8c; font-weight: 600; padding: 15px 10px 15px 20px; margin-bottom: 5px; border-radius: var(--radius); font-family: "Montserrat", sans-serif; resize: vertical; width: 90%; max-width: 100%; }
.contactform p { margin: 0 0 10px; }
.contactform .btn { margin: 20px auto; display: block; max-width: 200px; width: 100%; border: none; cursor: pointer; transform: translateX(-10%); }
.right__wrapper .contactform .btn { transform: none; }
.contactform .privacy__wrapper { width: 90%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contactform .privacy__wrapper br { display: none; }
.contactform .privacy__wrapper a { font-size: 13px; text-decoration: underline; font-weight: 700; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item-label { font-size: 13px; }
.wpcf7-not-valid-tip { font-size: 13px; text-align: center; margin-bottom: -10px; }
.wpcf7-not-valid { border: 1px solid #dc3232; box-shadow: 0 3px 6px #dc323252; }

/* Passi e riquadri colorati */
.steps__wrapper { display: flex; }
.steps__wrapper .steps { text-align: center; margin: 0 5px; flex: 1 0 18%; position: relative; }
.steps__wrapper .steps span { height: 25px; width: 25px; color: var(--white); border-radius: 50%; background-color: var(--cta); font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.steps__wrapper h3 { line-height: 110%; margin-bottom: 5px; }
.steps__wrapper .steps h3 { line-height: 19px; margin: 5px 0 10px; }
.steps__wrapper .steps p { font-size: 15px; line-height: 1.5; }
.steps__wrapper img { margin-bottom: 5px; }
.colored__wrapper .box { padding: 20px 10px 20px 0; }
.colored__wrapper h3, .colored__wrapper p { color: var(--white); }

/* Griglie di riquadri (ex "new-grid" di YOOtheme) */
.new-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .new-grid.g2 { grid-template-columns: repeat(2, 1fr); } .new-grid.g3 { grid-template-columns: repeat(3, 1fr); } .new-grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.new-grid .el-item { background-color: #f0f0f0; padding: 40px 20px; position: relative; display: flex; flex-direction: column; row-gap: 10px; }
.new-grid .el-item::before { content: ""; position: absolute; height: 4px; width: 60px; left: 20px; top: 0; background-color: var(--cta); }
.new-grid .el-item * { margin-top: 0 !important; margin-bottom: 0; }
.new-grid h4, .new-grid .el-title { font-size: 16px; text-transform: none; font-weight: 900; letter-spacing: 0; padding-bottom: 5px; color: var(--blue); }
.new-grid.white .el-item { background-color: #fff; }
.bg-blue .new-grid .el-item { background-color: #1f4860; }
.bg-blue .new-grid .el-item * { color: var(--grey); }
.new-grid.numbers .el-content { order: 3; }
.new-grid.numbers .el-meta { order: 1; color: var(--cta); font-size: 18px; font-weight: 800; }
.new-grid.numbers .el-title { order: 2; }
.new-grid.numbers .el-item::before { display: none; }
.number-grid { padding-top: 20px; border-top: 2px solid var(--cta); }
.number-grid .el-content { display: flex; align-items: center; column-gap: 20px; }
.number-grid .el-content .number { color: var(--cta); font-size: 18px; font-weight: 800; }
.number-grid .el-content p > strong { font-weight: 800; color: var(--blue); }
.new-faq .el-item:not(:last-child) { border-bottom: 1px solid var(--grey); padding-bottom: 30px; margin-bottom: 20px; }

/* Casi */
.case-card { margin-top: 44px; background: #fff; border: 1px solid var(--grey); border-radius: 4px; overflow: hidden; }
.case-head { background: var(--blue); color: var(--cta); padding: 26px 34px; }
.case-head h3 { color: #fff; }
.case-body { padding: 14px 34px 30px; }
.case-highlight { margin: 26px 34px 4px; padding: 20px 24px; background: var(--grey); border-left: 3px solid var(--cta); font-size: 1rem; }
.case-foot { padding: 22px 34px; background: var(--cta); font-size: .86rem; color: #fff; font-style: italic; }
table.case-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.case-table th, .case-table td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--grey); font-size: .98rem; }
.case-table th { font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* Domande frequenti a tendina */
details.faq { border-bottom: 1px solid var(--grey); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 800; color: var(--blue); list-style: none; position: relative; padding-right: 30px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--cta); }
details.faq[open] summary::after { content: "–"; }
details.faq > :not(summary) { margin-top: 12px; }

/* ============ 7. Testo semplice (pagine non a sezioni, articoli) ============ */
.prose > h1 { margin-bottom: 30px; }
.prose h2 { font-size: 26px; font-weight: 800; }
.prose h3 { line-height: 1.4; }
.prose a { font-weight: 700; }
.prose img { border-radius: 2px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.wp-block-media-text { margin: 30px 0; }
.wp-block-media-text.has-background { padding: 20px; }
.wp-block-media-text__content p { font-size: 16px; line-height: 1.5; color: var(--font); }
.wp-block-buttons { margin-top: 20px; }
.wp-block-embed { margin: 30px 0; }
.wp-block-image { margin: 30px 0; }

/* Riquadro autore (blocco 1519, classi della vecchia grafica) */
.uk-card { position: relative; background: #fff; color: #6c6d74; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); padding: 20px; }
.uk-card-body { padding: 20px; }
.uk-clearfix::after, .uk-clearfix::before { content: ""; display: table; }
.uk-clearfix::after { clear: both; }
.uk-float-left { float: left; }
.uk-border-circle { border-radius: 50%; }
.uk-overflow-hidden { overflow: hidden; }
.uk-text-small { font-size: 14px; line-height: 1.5; }
.uk-display-inline { display: inline; }
.uk-text-lowercase { text-transform: lowercase; }
.uk-margin-medium-top { margin-top: 40px !important; }
.uk-margin-medium-bottom { margin-bottom: 40px !important; }
.uk-margin-small-top { margin-top: 10px !important; }
.wp-block-post-date { display: inline; }
.uk-card .wp-block-group__inner-container > div { margin: 0; }

/* ============ 8. Articoli ============ */
.post-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 960px) { .post-layout { grid-template-columns: 2fr 1fr; } }
.single-articolo { padding: 20px; min-width: 0; }
.single-articolo .post-hero { display: block; width: 100%; height: auto; }
.single-articolo .post-title { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -1px; margin: 20px 0 0; }
.single-articolo h2, .single-articolo h3, .single-articolo h4 { color: var(--blue); font-weight: 800; line-height: 120%; letter-spacing: -1px; padding-top: 20px; }
.single-articolo h2 { font-size: 26px; }
.single-articolo h3 { font-size: 21px; }
.single-articolo p { padding-top: 10px; padding-bottom: 20px; margin: 0; }
.single-articolo .post-content a { font-weight: 800; color: var(--cta); }
.single-articolo .post-content .wp-block-button__link { color: #fff !important; }
.single-articolo .uk-card p { padding: 0; }
.post-side .right__wrapper { position: sticky; top: calc(var(--bar) + var(--head) + 20px); }
.right__wrapper .bg-white { padding: 20px; }
.right__wrapper .side-h { color: var(--blue); font-weight: 800; letter-spacing: -1px; font-size: 21px; text-align: center; margin: 0 0 20px; }
.right__wrapper .textarea { height: 70px; }
.right__wrapper .input { padding: 10px 10px 10px 20px; width: 100%; }
.right__wrapper .textarea { width: 100%; }
.right__wrapper .wpcf7-list-item-label { font-size: 12px; }
.right__wrapper .contactform .privacy__wrapper { width: 100%; }

/* Elenco articoli */
.list-h { margin-bottom: 40px; }
.post-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border: .5px solid var(--cta); border-radius: 5px; padding: 10px; display: flex; flex-direction: column; box-shadow: var(--shadow); background: #fff; }
.post-card .post-thumb img { display: block; width: 100%; height: 200px; object-fit: cover; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 120%; letter-spacing: -1px; font-weight: 800; margin: 15px 0 10px; }
.post-card h2 a, .post-card h3 a { color: var(--blue); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--cta); }
.post-card .post-ex { font-size: 14px; margin: 0 0 15px; }
.post-card .post-more { margin: auto auto 0; display: block; width: 100%; max-width: 200px; background-color: var(--cta); border-radius: var(--radius); color: #fff; font-weight: 800; text-align: center; padding: 10px; font-size: 13px; }
.post-card .post-more:hover { background-color: var(--blue); color: #fff; }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--grey); color: var(--blue); }
.nav-links .current { background: var(--cta); color: #fff; border-color: var(--cta); }

/* ============ 9. Piè di pagina ============ */
.site-footer { margin-top: 0; }
.foot-main { background: var(--blue) url("/wp-content/uploads/2021/12/footerbg.jpeg") center center repeat; padding: 70px 0; }
.foot-main p { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-social { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.foot-social p { margin: 25px 0; }
.social { display: flex; align-items: center; justify-content: space-evenly; width: 100%; }
.social a { display: flex; align-items: center; justify-content: center; height: 40px; width: 40px; border-radius: 50%; background-color: var(--cta); }
.social a:hover { background-color: #fff; }
.social a:hover svg { fill: var(--cta); stroke: var(--cta); }
.social a:hover svg circle[fill] { fill: var(--cta); }
.foot-place { display: flex; flex-direction: column; }
.city { position: relative; margin: 0 0 40px; }
.city::before { content: ""; position: absolute; bottom: -10px; left: 0; height: 2px; width: 50px; background-color: var(--cta); border-radius: var(--radius); }
.address { display: flex; align-items: flex-start; margin-bottom: 15px; }
.address .dot { flex: 0 0 25px; height: 25px; width: 25px; border-radius: 50%; background: var(--cta); display: flex; align-items: center; justify-content: center; }
.address p { width: 80%; margin: 0 0 0 10px; }
a.address { margin-top: auto; }
a.address:hover p { color: var(--cta); }
.abilitazione { margin-top: 40px; }
.abilitazione p { font-size: 13px; color: #fff; margin: 0; }
.abilitazione i { color: #fff; }
.abilitazione a { color: #fff; text-decoration: underline; }
.foot-legal { background-color: #192431; padding: 20px 0; text-align: center; }
.foot-legal p { color: #fff; font-size: 13px; margin: 0; }
.foot-legal a { color: #fff; }
.foot-legal a:hover { color: var(--cta); }

/* WhatsApp fisso */
.wa-fisso { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 12px 18px; border-radius: 40px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s; }
.wa-fisso:hover, .wa-fisso:focus { color: #fff; text-decoration: none; transform: scale(1.05); }

/* iubenda: pulsante delle preferenze nascosto come prima */
body .iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-float]:not([data-tp-anchored]) { margin: 0 !important; bottom: 56px !important; display: none !important; }

/* ============ 10. Home ============ */
.hero { background-color: #e9e6e6; padding-top: 70px; }
.hero .cols { align-items: end; }
.hero .hero-text { padding-bottom: 70px; align-self: center; }
.hero .btn { margin-top: 30px; }
.hero-img img { display: block; margin: 0 auto; }
.quote-sec { padding: 40px 0 0; }
.servizi-h { text-align: center; }
.servizi-h h3 { margin: 0; }
.servizi-h p { margin: 0; }
.ipok-sec { background-image: url("/wp-content/uploads/2021/12/bg-ipertensione.webp"); background-size: cover; background-position: center; }
.ipok-sec h2 { margin-top: 0; }
.reviews-sec { padding: 40px 0; }
.contact-sec .panel + .panel { margin-top: 0; }
.contact-sec .head-panel { text-align: center; margin-bottom: 0; }
.contact-sec .h2 { margin: 0; }
.home-blog h2 { text-align: center; margin: 0 0 40px; }

/* ============ 11. Telefono e tablet ============ */
@media (max-width: 959px) {
	:root { --head: 70px; }
	body { padding-top: var(--head); padding-bottom: var(--bar); }
	html { scroll-padding-top: calc(var(--head) + 20px); }
	.container { max-width: 540px; padding: 0 20px; }
	.sec { padding: 40px 0; }
	h1 { font-size: 28px; text-align: center; }
	.only-desk { display: none; }
	.only-mob { display: inline; }
	.cta-bar { top: auto; bottom: 0; }
	.cta-bar-places { display: none; }
	.cta-bar-in { padding: 0; }
	.cta-bar-links { width: 100%; height: 100%; column-gap: 0; position: relative; }
	.cta-bar-links::before { content: ""; position: absolute; height: 100%; width: 2px; background: #fff; left: 50%; top: 0; transform: translateX(-50%); }
	.cta-bar-links a { width: 50%; height: 100%; justify-content: center; }
	.site-header { top: 0; }
	.logo-img { width: 160px; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
	.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--blue); position: relative; transition: transform .2s, background .2s; }
	.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle .bars::before { top: -7px; }
	.nav-toggle .bars::after { top: 7px; }
	.nav-open .nav-toggle .bars { background: transparent; }
	.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }
	.nav { position: fixed; top: var(--head); right: 0; bottom: 0; width: min(320px, 88vw); background: var(--blue); padding: 20px 25px 80px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; z-index: 998; }
	.nav-open .nav { transform: none; box-shadow: -4px 0 16px rgba(0, 0, 0, .25); }
	.nav .menu { flex-direction: column; align-items: stretch; }
	.nav .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: center; }
	.nav .menu > li > a, .nav .menu > li > .sub-toggle:not(.sub-toggle-ico) { height: auto; padding: 14px 0; font-size: 14px; color: #fff; flex: 1 1 auto; text-align: left; }
	.nav .menu > li.current-menu-item > a { font-weight: 900; color: #fff; }
	.nav .menu > li.current-menu-item > a::before { display: none; }
	.sub-toggle .caret, .sub-toggle-ico { display: inline-block; }
	.sub-toggle-ico { background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
	.sub-toggle .caret { width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-left: auto; margin-right: 6px; transition: transform .2s; }
	.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg); }
	.nav .menu > li > .sub-toggle:not(.sub-toggle-ico) { display: flex; width: 100%; }
	.nav .sub-menu { position: static; width: 100%; padding: 0 0 10px 12px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav .menu > li.open > .sub-menu { display: block; }
	.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { display: none; }
	.nav .menu > li.open:hover > .sub-menu, .nav .menu > li.open:focus-within > .sub-menu { display: block; }
	.nav .sub-menu a { color: #fff; font-size: 13px; padding: 9px 0; text-transform: none; font-weight: 600; }
	.nav-open { overflow: hidden; }
	.crumbs { padding-top: 30px; }
	.hero { padding-top: 40px; }
	.hero-text { margin-top: 0; text-align: center; }
	.hero .hero-text { padding-bottom: 0; }
	.hero-text p, .hero-text h2, .h2 { text-align: center; }
	.hero-text h2, .h2 { font-size: 24px; }
	.hr { margin: 30px auto; display: block; }
	.btn { margin: 30px auto 0; }
	.icone__wrapper > a, .icone__wrapper > div { flex: 1 0 90%; }
	.bg-ipertensione .marker, .height .marker { margin-left: 0; }
	.links__wrapper, .steps__wrapper, .double-btn__wrapper { flex-direction: column; row-gap: 10px; }
	.double-btn__wrapper > a { width: calc(100% - 40px); margin: 0 auto; }
	.steps__wrapper br { display: none; }
	.steps__wrapper .steps { margin-bottom: 10px; }
	.order-1 { order: 1; }
	.order-2 { order: 2; }
	.ordering-mobile > div:first-child { order: 2; }
	.ordering-mobile > div:last-child { order: 1; }
	.btn-mobile { margin-top: 20px !important; }
	.contactform .btn { transform: none; }
	.contactform .privacy__wrapper { width: 100%; }
	.input, .textarea { width: 100%; }
	.foot-legal { padding-bottom: 80px; }
	.single-articolo .post-title { font-size: 26px; text-align: left; }
	.wa-fisso { padding: 14px; right: 14px; bottom: calc(var(--bar) + 14px); }
	.wa-fisso span { display: none; }
}
@media (max-width: 639px) {
	.container { padding: 0 15px; }
}
@media print {
	.cta-bar, .site-header, .wa-fisso, .post-side { display: none !important; }
	body { padding: 0; }
}

/* ============ 12. Pagine convertite dal vecchio builder ============ */
.sec.pt-0 { padding-top: 0; }
.sec.pb-0 { padding-bottom: 0; }
.sec.pt-xs { padding-top: 20px; }
.sec.pb-xs { padding-bottom: 20px; }
.sec.pt-s { padding-top: 40px; }
.sec.pb-s { padding-bottom: 40px; }
.sec.pt-l { padding-top: 140px; }
.sec.pb-l { padding-bottom: 140px; }
.sec.bg-muted { background-color: #f8f8f8; }
.sec.bg-cover { background-size: cover; background-position: center; background-repeat: no-repeat; }
.container.wide { max-width: 1480px; }
.container.full { max-width: none; }
.rw + .rw { margin-top: 40px; }
.rw.mt-s { margin-top: 20px; }
.rw.mt-0 { margin-top: 0; }
.form-bg .rw { background-color: #ffffffba; padding: 20px; border-radius: var(--radius); }
.form-bg .rw + .rw { margin-top: 0; }
.col > .el + .el { margin-top: 20px; }
.col > .el.m-0, .col > .el + .el.mt-0 { margin-top: 0; }
.col > .el.mt-m { margin-top: 40px; }
.col > .el.mt-l { margin-top: 70px; }
.col > .el.mt-s { margin-top: 10px; }
.el > :first-child { margin-top: 0; }
.el > :last-child { margin-bottom: 0; }
.el.tc { text-align: center; }
.el.tr { text-align: right; }
.el img { display: inline-block; }
.el.img img { display: block; }
.el.video { position: relative; aspect-ratio: 16 / 9; }
.el.video iframe, .el.video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yg { display: grid; gap: var(--gg, 40px); grid-template-columns: repeat(var(--gd, 1), minmax(0, 1fr)); }
@media (min-width: 640px) { .yg { grid-template-columns: repeat(var(--gs, var(--gd, 1)), minmax(0, 1fr)); } }
@media (min-width: 960px) { .yg { grid-template-columns: repeat(var(--gm, var(--gs, var(--gd, 1))), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .yg { grid-template-columns: repeat(var(--gl, var(--gm, var(--gs, var(--gd, 1)))), minmax(0, 1fr)); } }
.yg .el-item > * { margin: 0; }
.yg .el-item > * + * { margin-top: 10px; }
.yg .el-image { display: block; max-width: 100%; }
.yg .el-title { color: var(--blue); }
.yg .el-meta { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.yg .el-content > :first-child { margin-top: 0; }
.yg .el-content > :last-child { margin-bottom: 0; }
.el.list { list-style: none; padding: 0; }
.el.list > li + li { margin-top: 10px; }
.el.list.bullet { list-style: disc; padding-left: 30px; }
@media (min-width: 960px) {
	.cols.lay { grid-template-columns: var(--lay); }
}
@media (min-width: 640px) and (max-width: 959px) {
	.cols.lay-s { grid-template-columns: var(--lays); }
}
@media (max-width: 959px) {
	.sec.pt-l { padding-top: 70px; }
	.sec.pb-l { padding-bottom: 70px; }
}

/* ============ 13. Barra di amministrazione (solo per chi è collegato) ============ */
.admin-bar .cta-bar { top: 32px; }
.admin-bar .site-header { top: calc(var(--bar) + 32px); }
@media (max-width: 959px) {
	.admin-bar .cta-bar { top: auto; }
	.admin-bar .site-header { top: 32px; }
	.admin-bar .nav { top: calc(var(--head) + 32px); }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .nav { top: calc(var(--head) + 46px); }
}
@media (max-width: 600px) {
	#wpadminbar { position: fixed; }
}

/* ============ 14. Blog e colonna laterale ============ */
.articoli-list__wrapper { padding: 20px; }
.articoli-list { display: grid; gap: 20px; margin-top: 20px; }
.articoli-list .el-item { padding: 20px; border: .5px solid var(--cta); border-radius: 5px; }
.articoli-list .post-thumb img { display: block; width: 100%; height: auto; }
.articoli-list .el-title { font-size: 21px; font-weight: 800; line-height: 120%; margin: 15px 0 0; padding: 0; }
.articoli-list .el-title a { color: var(--blue); }
.articoli-list .el-title a:hover { color: var(--cta); }
.articoli-list .btn-big { margin-top: 20px; }
.right__wrapper { position: sticky; top: calc(var(--bar) + var(--head) + 20px); }
.right__wrapper > .bg-white { padding: 20px; }
.right__wrapper h4 { color: var(--blue); font-weight: 800; text-transform: none; letter-spacing: -1px; font-size: 21px; }
.nav-open .wa-fisso { display: none; }
.crumbs { padding: 25px 0; }
.breadcrumb { font-size: 11px; text-transform: uppercase; }
.breadcrumb li:last-child a { color: #999; }
@media (max-width: 959px) { .crumbs { padding: 20px 0; } }
.single-articolo .post-hero, .articoli-list .post-thumb img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; height: auto; }
