/* =====================================================================
   francescoraggi-2026 · RESTYLING (grafica della tela approvata il 26/11/2026)
   Livello A: ridisegna le classi già usate dalle pagine (nessuna pagina perde contenuti).
   Livello B: componenti nuovi (prefisso r-) per le pagine rifatte.
   Caricato DOPO style.css.
   ===================================================================== */

/* ---------- Caratteri (ospitati sul sito, niente Google Fonts esterni) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-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+2190-2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-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; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-italic.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: #193A4E;        /* blu del logo: titoli, fondi scuri */
  --ink: #0F2533;         /* inchiostro */
  --txt: #3E4F5B;         /* testo secondario */
  --small: #56646E;       /* testo piccolo */
  --cyan: #1AAFCA;        /* azzurro del logo: solo decori e numeri grandi */
  --link: #0B7A90;        /* azzurro scuro: link ed etichette */
  --sky: #E6F6FA;         /* azzurro chiaro di fondo */
  --sky-on-blue: #7FD9EA; /* azzurro su fondo blu */
  --page: #F5F7F8;        /* fondo pagina */
  --books: #EEF0F2;
  --warm: #F1F0EE;
  --line: #E3E8EC;
  --field: #C9D3DA;
  --wa: #25A55F;
  --star: #E8A21E;
  --cta: var(--link);
  --font: var(--txt);
  --grey: var(--line);
  --shadow: 0 10px 30px rgba(15, 37, 51, .08);
  --radius: 12px;
  --bar: 40px;
  --head: 76px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ===================================================================== */
/* LIVELLO A — classi esistenti                                          */
/* ===================================================================== */

body { font-family: var(--sans); font-weight: 400; color: var(--txt); background: #fff; font-size: 17px; line-height: 1.6; }
a { color: var(--link); }
a:hover { color: var(--blue); }
em { color: inherit; }
p { font-size: 17px; line-height: 1.6; color: var(--txt); }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); color: var(--blue); letter-spacing: -0.01em; }
h1 { font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 34px; line-height: 1.2; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -0.005em; }
h4 { font-size: 17px; line-height: 1.4; font-weight: 800; }
blockquote { color: var(--blue); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.container { max-width: 1200px; padding: 0 24px; }
.container.narrow { max-width: 880px; }
.container.wide { max-width: 1200px; }
.sec { padding: 72px 0; }

/* Etichette e testi speciali */
.small-label, .hero-text p { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.hero-text h2, .h2 { font-size: 30px; font-weight: 700; color: var(--blue); }
.hr { height: 3px; max-width: 64px; border-radius: 3px; background: var(--cyan); }
.hr-big { background: var(--line); height: 1px; }
.cta-color { color: var(--link); }
.blue { color: var(--blue); }

/* Fondi delle sezioni */
.bg-grey, .sec.bg-muted { background-color: var(--page); }
.hero-bg, .hero { background-color: var(--warm); }
.bg-blue, .cta-bg { background-color: var(--blue); }
.bg-blue h2, .bg-blue h3, .bg-blue h4, .bg-blue p, .bg-blue li, .cta-bg h2, .cta-bg h3, .cta-bg p, .cta-bg li { color: #fff; }
.bg-blue p, .cta-bg p { color: #DCE8EE; }
.bg-blue a:not(.btn):not(.btn-big):not(.btn-primary), .cta-bg a:not(.btn):not(.btn-big):not(.btn-primary) { color: var(--sky-on-blue); }
.bg-light { background-color: rgba(255, 255, 255, .08); border-radius: 16px; padding: 24px; }
.cta__wrapper { background: var(--blue); border-radius: 24px; padding: 40px 32px; }
.cta__wrapper p { color: #DCE8EE; }
.cta__wrapper h2, .cta__wrapper strong { color: #fff; }
.cta-bg .cta__wrapper { background: transparent; padding: 0; }

/* Pulsanti */
.btn, .btn-primary, .btn-big, .wp-block-button__link {
  font-family: var(--sans); background-color: var(--blue) !important; color: #fff !important; border-radius: 12px;
  font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.3;
  padding: 15px 24px !important; width: fit-content; max-width: 100%; display: block; transition: filter .2s, background-color .2s;
}
.btn:hover, .btn-primary:hover, .btn-big:hover, .wp-block-button__link:hover { background-color: var(--ink) !important; }
.btn-big { width: fit-content; min-width: 0; }
.btn-secondary { font-family: var(--sans); background: #fff; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 12px; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 14px 22px !important; width: fit-content; }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.bg-blue .btn, .cta-bg .btn, .bg-blue .btn-big, .cta-bg .btn-big, .cta__wrapper .btn, .cta__wrapper .btn-big { background-color: #fff !important; color: var(--blue) !important; }
.bg-blue .btn:hover, .cta-bg .btn:hover, .cta__wrapper .btn:hover { background-color: var(--sky) !important; }
a[href*="wa.me"].btn, a[href*="wa.me"].btn-big, a[href*="whatsapp"].btn, a[href*="wa.me"].btn-primary { background-color: var(--wa) !important; color: #fff !important; }

/* Riquadri (griglie, icone, casi, articoli) */
.new-grid .el-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.new-grid .el-item::before { display: none; }
.bg-grey .new-grid .el-item, .sec.bg-muted .new-grid .el-item { background: #fff; }
.new-grid h4, .new-grid .el-title { font-size: 19px; font-weight: 800; color: var(--blue); }
.bg-blue .new-grid .el-item, .cta-bg .new-grid .el-item { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.bg-blue .new-grid .el-item *, .cta-bg .new-grid .el-item * { color: #DCE8EE; }
.bg-blue .new-grid .el-title { color: #fff; }
.new-grid.numbers .el-meta { color: var(--cyan); font-size: 34px; line-height: 1; }
.number-grid { border-top: 1px solid var(--line); }
.number-grid .el-content .number { color: var(--cyan); font-size: 28px; }

.icone__wrapper { gap: 20px; align-items: stretch; }
.icone__wrapper > a, .icone__wrapper > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; min-height: 0; transition: border-color .2s, transform .2s; }
.icone__wrapper > a:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: none; }
.icone__wrapper img { width: 96px; height: 96px; object-fit: contain; }
.icone__wrapper h3 { font-size: 18px; line-height: 1.3; color: var(--blue); }
.icone__wrapper span, .icone__wrapper p { font-size: 15px; line-height: 1.5; color: var(--txt); }

.yg .el-item { min-width: 0; }
.yg .el-title { color: var(--blue); font-weight: 800; }
.yg .el-meta { color: var(--link); font-weight: 700; letter-spacing: .06em; }
.yg .el-image { border-radius: 14px; }

.steps__wrapper .steps span { width: 36px; height: 36px; background: var(--sky); color: var(--link); font-size: 17px; }
.colored__wrapper .box { border-radius: 16px; padding: 20px; }

.new-ul li { color: var(--txt) !important; font-size: 17px !important; }
.new-ul li::before, .ai-text li::before { background: var(--cyan); width: 8px; height: 8px; top: 11px; }
.custom-list h4 { color: var(--blue); }

/* Casi clinici */
.case-card { border: 1px solid var(--line); border-radius: 20px; }
.case-head { background: var(--blue); color: var(--sky-on-blue); padding: 26px 32px; }
.case-highlight { background: var(--sky); border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; }
.case-foot { background: var(--page); color: var(--small); font-style: normal; }
.case-table th { color: var(--small); }

/* Domande frequenti */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
details.faq + details.faq { margin-top: 12px; }
details.faq summary { color: var(--blue); font-weight: 700; }
details.faq summary::after { color: var(--link); top: -4px; }
details.faq > :not(summary) { color: var(--txt); }
.new-faq .el-item:not(:last-child) { border-bottom: 1px solid var(--line); }

/* Moduli (Contact Form 7) */
.input, .textarea, .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: 10px; padding: 12px 14px; width: 100%; max-width: 100%;
}
.input:focus, .textarea:focus, .wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--link); outline: 2px solid var(--sky); outline-offset: 0; }
.contactform .btn, .wpcf7-submit { transform: none; margin: 16px 0 0; width: 100%; max-width: none; background: var(--blue) !important; color: #fff !important; border-radius: 12px; font-weight: 800; font-size: 16px; padding: 15px !important; }
.contactform .privacy__wrapper { width: 100%; align-items: flex-start; }
.wpcf7-list-item-label, .contactform .privacy__wrapper a { font-size: 13px; color: var(--txt); }
.form-bg { background: var(--blue); }
.form-bg .panel, .form-bg .rw, .marker { background: #fff; border-radius: 20px; padding: 28px; }
.form-bg .rw + .rw { margin-top: 20px; }
.form-bg h2, .form-bg .h2 { color: var(--blue); }
.phone-form { color: var(--link); font-weight: 700; }
.studio__wrapper { border-bottom: 1px solid var(--line); }
.studio__wrapper .indirizzo { color: var(--blue); }

/* Immagini più morbide */
.el.img img, .wp-block-image img, .prose img, .cols img:not(.logo-img) { border-radius: 16px; }
.el.video { border-radius: 16px; overflow: hidden; }

/* ---------- Barra in alto (computer) ---------- */
.cta-bar { background: var(--blue); }
.cta-bar a, .cta-bar .place { font-size: 13px; font-weight: 600; color: #DCE8EE; }
.cta-bar a { color: #fff; }
.cta-bar a:hover { color: var(--sky-on-blue); }
.cta-bar svg { width: 15px; height: 15px; }

/* ---------- Testata ---------- */
.site-header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); }
.logo-img { width: auto; height: 44px; }
.nav .menu { column-gap: 22px; }
.nav .menu > li > a, .nav .menu > li > .sub-toggle:not(.sub-toggle-ico) { font-family: var(--sans); font-size: 15px; font-weight: 600; text-transform: none; color: var(--ink); }
.nav .menu > li > a:hover, .nav .menu > li:hover > .sub-toggle, .nav .menu > li.open > .sub-toggle { color: var(--link); }
.nav .menu > li.current-menu-item > a, .nav .menu > li.current-menu-ancestor > a, .nav .menu > li.current-menu-ancestor > .sub-toggle { color: var(--link); }
.nav .menu > li.current-menu-item > a::before { bottom: 18px; background: var(--cyan); border-radius: 2px; }
.nav .sub-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; width: 280px; }
.nav .sub-menu a { font-size: 15px; font-weight: 600; text-transform: none; color: var(--ink); padding: 7px 0; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { color: var(--link); }
.head-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.head-wa:hover { color: #fff; filter: brightness(1.08); }
.head-wa svg { width: 18px; height: 18px; }
.menu-item-lang > a { font-size: 13px !important; font-weight: 700 !important; color: var(--small) !important; border: 1px solid var(--line); border-radius: 999px; height: auto !important; padding: 5px 10px !important; }

/* Briciole */
.breadcrumb { font-size: 14px; text-transform: none; }
.breadcrumb li, .breadcrumb a, .breadcrumb li:last-child a { color: var(--small); }
.breadcrumb a:hover { color: var(--link); }

/* ---------- Articoli ed elenchi del blog ---------- */
.single-articolo .post-title { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; color: var(--blue); }
.single-articolo .post-hero { border-radius: 18px; aspect-ratio: 16 / 9; }
.single-articolo .post-content { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #22333F; }
.single-articolo .post-content p { font-size: 20px; line-height: 1.7; color: #22333F; padding: 0; margin: 0 0 22px; }
.single-articolo .post-content li { font-size: 19px; line-height: 1.65; color: #22333F; }
.single-articolo h2, .single-articolo h3, .single-articolo h4 { font-family: var(--sans); letter-spacing: -0.01em; color: var(--blue); }
.single-articolo h2 { font-size: 28px; padding-top: 18px; }
.single-articolo h3 { font-size: 22px; }
.single-articolo .post-content a { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(11, 122, 144, .35); text-underline-offset: 3px; }
.single-articolo .post-content blockquote { font-style: italic; font-size: 24px; line-height: 1.45; border-left: 4px solid var(--cyan); padding: 4px 0 4px 22px; margin: 26px 0; }
.single-articolo .post-content .uk-card, .single-articolo .post-content .wp-block-group, .single-articolo .post-content table, .single-articolo .post-content figcaption { font-family: var(--sans); }
.uk-card { border: 1px solid var(--line); border-radius: 18px; box-shadow: none; font-family: var(--sans); }
.uk-card .uk-text-small, .uk-card p { color: var(--txt); }

.post-card, .articoli-list .el-item { border: 1px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; box-shadow: none; transition: border-color .2s, transform .2s; }
.post-card:hover, .articoli-list .el-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.post-card .post-thumb img, .articoli-list .post-thumb img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.post-card h2, .post-card h3, .articoli-list .el-title { font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; margin: 18px 20px 8px; }
.post-card .post-ex { margin: 0 20px 16px; font-size: 15px; color: var(--txt); }
.post-card .post-more, .articoli-list .btn-big { margin: auto 20px 22px; background: transparent !important; color: var(--link) !important; padding: 0 !important; text-align: left; font-size: 15px; font-weight: 700; }
.post-card .post-more::after, .articoli-list .btn-big::after { content: " →"; }
.articoli-list .el-item > *:not(.post-thumb) { padding-left: 20px; padding-right: 20px; }
.nav-links .page-numbers { border-radius: 10px; border-color: var(--line); }
.nav-links .current { background: var(--blue); border-color: var(--blue); }
.right__wrapper > .bg-white, .right__wrapper .bg-white { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.right__wrapper .side-h, .right__wrapper h4 { letter-spacing: -0.01em; }

/* ---------- Piè di pagina ---------- */
.foot-main { background: var(--ink); padding: 56px 0; }
.foot-main p, .foot-main .address p { color: #B9C7D0; font-size: 15px; }
.foot-main strong { color: #fff; }
.social a { background: rgba(255, 255, 255, .1); }
.foot-social img { border-radius: 10px; }
.social a:hover { background: #fff; }
.city::before { background: var(--cyan); }
.address .dot { background: rgba(255, 255, 255, .1); }
.abilitazione p, .abilitazione i { color: #8FA2AE; font-style: normal; }
.abilitazione a { color: #DCE8EE; }
.foot-legal { background: #0A1B26; }
.foot-legal p { color: #8FA2AE; }
.foot-legal a { color: #DCE8EE; }

/* WhatsApp fisso (computer) */
.wa-fisso { background: var(--wa); font-family: var(--sans); box-shadow: 0 8px 24px rgba(15, 37, 51, .22); }

/* ===================================================================== */
/* LIVELLO B — componenti nuovi                                           */
/* ===================================================================== */

.r-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.r-sec { padding: 72px 0; }
.r-sec--tight { padding: 40px 0; }
.r-bg-page { background: var(--page); }
.r-bg-white { background: #fff; }
.r-bg-line { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-label { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin: 0 0 8px; }
.r-h1 { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.r-h2 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--blue); }
.r-h3 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--blue); }
.r-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--txt); max-width: 560px; }
.r-text { font-size: 18px; line-height: 1.7; color: #2C3D49; }
.r-muted { font-size: 13px; color: var(--small); }
.r-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.r-head > p { margin: 0; max-width: 420px; color: var(--txt); }
.r-sec * + .r-h2, .r-sec * + .r-h3 { margin-top: 0; }
.r-stack { display: flex; flex-direction: column; gap: 18px; }
.r-stack > * { margin: 0; }
.r-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Pulsanti nuovi */
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; padding: 16px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 0; cursor: pointer; font-family: var(--sans); transition: filter .2s, background-color .2s; }
.r-btn:hover { color: #fff; background: var(--ink); }
.r-btn--ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); padding: 14.5px 24px; }
.r-btn--ghost:hover { background: var(--blue); color: #fff; }
.r-btn--wa { background: var(--wa); color: #fff; }
.r-btn--wa:hover { background: var(--wa); filter: brightness(1.08); color: #fff; }
.r-btn--white { background: #fff; color: var(--blue); }
.r-btn--white:hover { background: var(--sky); color: var(--blue); }
.r-link { font-weight: 700; color: var(--link); }

/* Eroe diviso */
.r-hero { background: linear-gradient(90deg, #fff 0%, #fff 45%, var(--warm) 45%); }
.r-hero--white { background: #fff; }
.r-hero > .r-wrap { display: flex; flex-wrap: wrap; align-items: stretch; }
.r-hero-text { flex: 1 1 520px; padding: 88px 40px 88px 0; display: flex; flex-direction: column; gap: 24px; justify-content: center; min-width: 0; }
.r-hero-text > * { margin: 0; }
.r-hero-img { flex: 1 1 420px; min-height: 520px; background-color: var(--warm); background-size: cover; background-position: 78% 20%; position: relative; overflow: hidden; }
.r-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 20%; border-radius: 0; }
.r-hero-img--round { border-radius: 0 0 0 32px; min-height: 460px; }
.r-trust { display: flex; gap: 6px 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--txt); }
.r-trust strong { color: var(--blue); font-size: 18px; }
.r-crumbs { font-size: 14px; color: var(--small); }
.r-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 580px; }
.r-fact { background: var(--page); border-radius: 14px; padding: 16px; }
.r-fact strong { display: block; font-size: 21px; line-height: 1.2; color: var(--blue); }
.r-fact span { font-size: 14px; color: var(--txt); }

/* Griglie */
.r-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.r-grid > * { min-width: 0; margin: 0; }

/* Schede */
.r-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: border-color .2s, transform .2s; }
.r-card > * { margin: 0; }
a.r-card:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--ink); }
.r-card strong, .r-card .r-card-t { font-size: 20px; line-height: 1.3; color: var(--blue); font-weight: 800; }
.r-card p, .r-card .r-card-d { font-size: 16px; color: var(--txt); line-height: 1.5; }
.r-card .r-more { font-weight: 700; color: var(--link); margin-top: auto; }
.r-card--dark { background: var(--blue); border-color: var(--blue); color: #fff; }
.r-card--dark strong, .r-card--dark .r-card-t { color: #fff; }
.r-card--dark p, .r-card--dark .r-card-d { color: #DCE8EE; }
.r-card--dark .r-more { color: var(--sky-on-blue); }
a.r-card--dark:hover { color: #fff; }
.r-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; flex: none; }
.r-ico svg { width: 22px; height: 22px; stroke: var(--link); fill: none; stroke-width: 2; }
.r-card--dark .r-ico { background: rgba(255, 255, 255, .12); }
.r-card--dark .r-ico svg { stroke: var(--sky-on-blue); }

/* Pannello bianco grande */
.r-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 56px; }

/* Tre passi del metodo */
.r-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.r-step { display: flex; flex-direction: column; gap: 10px; }
.r-step > * { margin: 0; }
.r-num { font-size: 48px; font-weight: 800; color: var(--cyan); line-height: 1; }
.r-step strong { font-size: 21px; color: var(--blue); }
.r-step p { color: var(--txt); line-height: 1.55; font-size: 16px; }
.r-steps--small .r-num { font-size: 28px; }
.r-steps--cards .r-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; gap: 8px; }

/* Pillole delle metodiche */
.r-pills { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.r-pills--plain { margin-top: 0; padding-top: 0; border-top: 0; }
.r-pills > strong { color: var(--blue); margin-right: 8px; }
.r-pill { background: var(--page); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-weight: 600; color: var(--blue); font-size: 15px; line-height: 1.3; }
a.r-pill:hover { border-color: var(--cyan); color: var(--blue); }
.r-pill--white { background: #fff; }
.r-pill--todo { background: #fff; border: 1px dashed #9AAAB5; }

/* Blocco del medico */
.r-doc { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.r-doc-img { flex: 1 1 420px; min-width: 0; width: 100%; max-width: 520px; height: 480px; object-fit: cover; object-position: 55% 20%; border-radius: 24px; }
.r-doc-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.r-doc-text > * { margin: 0; }
.r-quote { margin: 4px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cyan); font-size: 22px; font-weight: 700; color: var(--blue); font-style: normal; }
.r-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.r-list li { position: relative; padding-left: 22px; }
.r-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* Come si lavora (6 punti + Aristotele) */
.r-studio { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.r-studio-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.r-studio-text > * { margin: 0; }
.r-six { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.r-six span { background: var(--page); border-radius: 12px; padding: 14px 16px; font-weight: 600; color: var(--blue); }
.r-aristotle { margin: 8px 0 0; padding: 18px 22px; background: var(--blue); color: #fff; border-radius: 16px; font-size: 19px; line-height: 1.5; }
.r-aristotle cite { display: block; font-style: normal; font-size: 15px; color: var(--sky-on-blue); font-weight: 700; margin-top: 4px; }
.r-studio-img { flex: 1 1 320px; min-width: 0; width: 100%; max-width: 400px; height: 470px; object-fit: cover; object-position: 50% 15%; border-radius: 24px; }

/* Recensioni Google (carosello senza librerie) */
.r-reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.r-reviews-head > div > * { margin: 0; }
.r-reviews-head p { margin-top: 6px; color: var(--txt); }
.r-arrows { display: flex; gap: 8px; }
.r-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field); background: #fff; color: var(--blue); font-size: 18px; cursor: pointer; font-family: var(--sans); }
.r-arrow:hover { border-color: var(--blue); }
.r-arrow:disabled { opacity: .35; cursor: default; }
.r-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scroll-behavior: smooth; scrollbar-width: thin; }
.r-review { margin: 0; flex: 0 0 340px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.r-review-top { display: flex; justify-content: space-between; align-items: center; }
.r-stars { color: var(--star); letter-spacing: 2px; }
.r-tag { font-size: 12px; font-weight: 700; color: var(--link); background: var(--sky); padding: 3px 9px; border-radius: 999px; }
.r-review blockquote { margin: 0; line-height: 1.55; color: #2C3D49; font-size: 15px; font-weight: 400; }
.r-review blockquote.r-long { max-height: 14.5em; overflow: hidden; position: relative; }
.r-review blockquote.r-long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.r-review.open blockquote.r-long { max-height: none; }
.r-review.open blockquote.r-long::after { display: none; }
.r-review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--sans); }
.r-review figcaption { font-size: 13px; color: var(--small); margin-top: auto; }
.r-review figcaption strong { color: var(--blue); }
.r-reviews-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--small); }
.r-reviews-foot a { font-weight: 700; font-size: 15px; }
.r-main .r-review { flex-basis: 300px; }

/* Video e libri */
.r-media { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.r-media > * { margin: 0; }
.r-media:hover { color: var(--ink); }
.r-media--video { background: var(--sky); }
.r-media--books { background: var(--books); }
.r-media img { display: block; width: 100%; height: auto; border-radius: 14px; }
.r-media strong { font-size: 24px; color: var(--blue); }
.r-media p { color: var(--txt); line-height: 1.55; }
.r-play { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.r-play img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.r-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(15, 37, 51, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat; }

/* Schede blog */
.r-post { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: border-color .2s, transform .2s; }
.r-post:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--ink); }
.r-post img, .r-post .r-post-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; border-radius: 0; }
.r-post .r-post-ph { display: flex; align-items: center; justify-content: center; background: var(--blue); color: var(--sky-on-blue); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-align: center; padding: 10px; }
.r-post-b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.r-post-b > * { margin: 0; }
.r-post .r-tag { align-self: flex-start; }
.r-post strong { font-size: 18px; line-height: 1.35; color: var(--blue); }
.r-post .r-meta { font-size: 13px; color: var(--small); }

/* Blocco finale blu con WhatsApp e modulo */
.r-final { background: var(--blue); color: #fff; border-radius: 28px; padding: 48px; display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.r-final-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.r-final-text > * { margin: 0; }
.r-final-text strong.r-final-t, .r-final-t { font-size: 34px; line-height: 1.15; color: #fff; font-weight: 800; }
.r-final-text p, .r-final-text span { color: #DCE8EE; font-size: 18px; line-height: 1.5; }
.r-final-text .r-btn { align-self: flex-start; font-size: 17px; font-weight: 800; border-radius: 14px; margin-top: 6px; }
.r-final-text .r-small { font-size: 15px; }
.r-form { flex: 1 1 420px; background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; min-width: 0; }
.r-form > strong { display: block; font-size: 20px; color: var(--blue); margin-bottom: 12px; }
.r-form p { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.r-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.r-form .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.r-form .privacy__wrapper, .r-form .wpcf7-acceptance { font-weight: 400; }
.r-form .wpcf7-response-output { margin: 12px 0 0 !important; border-radius: 10px; font-size: 14px; }
.r-final--short .r-form { flex-basis: 100%; }
.r-sedi { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 6px; }
.r-sedi p { margin: 0; font-size: 15px; line-height: 1.5; color: #DCE8EE; }
.r-sedi strong { color: #fff; }
.r-sedi a { color: var(--sky-on-blue); font-weight: 700; }
.r-more-info { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.r-more-info summary { cursor: pointer; font-weight: 700; color: var(--link); }
.r-more-info h3 { font-size: 17px; margin: 18px 0 8px; }
.r-more-info ul { margin: 0; padding-left: 20px; color: var(--txt); font-size: 16px; line-height: 1.55; }
.r-more-info li + li { margin-top: 4px; }
.r-doc-quote { font-style: italic; color: var(--txt); font-size: 16px; line-height: 1.6; border-left: 3px solid var(--line); padding-left: 16px; }

/* Pagine terapia e problema */
.r-layout { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.r-toc { flex: 0 1 240px; position: sticky; top: calc(var(--bar) + var(--head) + 20px); display: flex; flex-direction: column; gap: 2px; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.r-toc strong { color: var(--blue); margin-bottom: 8px; }
.r-toc a { padding: 6px 0; }
.r-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.r-main > section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.r-main > section > * { margin: 0; }
.r-main h2 { font-size: 32px; }
.r-main p, .r-main li { font-size: 18px; line-height: 1.7; color: #2C3D49; }
.r-note { background: var(--sky); border-radius: 16px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; line-height: 1.6; }
.r-note > * { margin: 0; }
.r-note strong { color: var(--blue); }
.r-alert { border: 1px solid #F2C9C9; background: #FFF6F6; border-radius: 16px; padding: 20px 24px; font-size: 16px; line-height: 1.6; }
.r-alert strong { color: #9B1C1C; }
.r-band { background: var(--blue); color: #fff; border-radius: 20px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.r-band strong { font-size: 22px; color: #fff; }
.r-band p, .r-band span { color: #DCE8EE; margin: 0; }
.r-dots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.r-dot { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; gap: 14px; line-height: 1.55; }
.r-dot i { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex: none; }
.r-author { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.r-author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 52% 18%; }
.r-author div { flex: 1 1 300px; line-height: 1.55; }
.r-author strong { color: var(--blue); font-size: 18px; }
.r-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.r-faq details + details { margin-top: 12px; }
.r-faq summary { font-weight: 700; color: var(--blue); cursor: pointer; }
.r-faq details > :not(summary) { margin: 10px 0 0; color: var(--txt); line-height: 1.6; }
.r-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); }
.r-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Articolo */
.r-inbreve { font-family: var(--sans); background: var(--sky); border-radius: 16px; padding: 22px 26px; font-size: 16px; line-height: 1.6; margin: 0 0 26px; }
.r-inbreve strong:first-child { display: block; color: var(--blue); margin-bottom: 8px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.r-inbreve ul { margin: 0; padding-left: 20px; }
.single-articolo .post-content .r-inbreve li { font-family: var(--sans); font-size: 16px; }
.r-numbers { font-family: var(--sans); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 26px; }
.r-numbers div { background: var(--page); border-radius: 14px; padding: 20px; }
.r-numbers strong { display: block; font-size: 36px; color: var(--blue); }
.r-numbers span { font-size: 15px; color: var(--txt); }
.r-side-book { background: var(--blue); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.r-side-book > * { margin: 0; }
.r-side-book .r-label { color: var(--sky-on-blue); font-size: 13px; margin: 0; }
.r-side-book strong { font-size: 19px; line-height: 1.3; color: #fff; }
.r-side-book p { color: #DCE8EE; font-size: 15px; }
.r-side-book a { color: #fff; font-weight: 700; }

/* Articolo: testata, colonne, firma, indice */
.r-art-head { padding: 0 0 44px; }
.r-art-head-in { max-width: 820px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 18px; }
.r-art-head-in > * { margin: 0; }
.r-art-head .crumbs { padding: 28px 0 0; }
.r-art-head .crumbs .container { padding: 0; }
.r-art-head .post-hero { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; }
.r-art-head .post-title { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; color: var(--blue); }
.r-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--txt); }
.r-byline strong a { color: var(--blue); }
.r-avatar { border-radius: 50%; object-fit: cover; object-position: 52% 18%; }
.r-art { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.r-art .single-articolo { flex: 999 1 560px; max-width: 720px; min-width: 0; padding: 0; background: none; box-shadow: none; }
.r-art .post-side { flex: 1 1 280px; max-width: 340px; min-width: 0; }
.r-art .right__wrapper { display: flex; flex-direction: column; gap: 16px; }
.r-art .r-reviews { font-family: var(--sans); margin-top: 32px; }
.r-art .r-reviews .r-review { flex-basis: 300px; }
.r-art .r-reviews blockquote { font-family: var(--sans); font-size: 15px; font-style: normal; border: 0; padding: 0; margin: 0; color: #2C3D49; }
.r-toc--art { position: static; flex: none; }
.r-toc--art a { font-size: 15px; line-height: 1.4; }

/* Barra fissa da telefono (WhatsApp · Chiama) */
.r-mobilebar { display: none; }

/* ===================================================================== */
/* Telefono e tablet                                                      */
/* ===================================================================== */
@media (max-width: 1199px) {
  .nav .menu { column-gap: 16px; }
  .nav .menu > li > a, .nav .menu > li > .sub-toggle:not(.sub-toggle-ico) { font-size: 14px; }
  .head-wa .head-wa-t { display: none; }
  .head-wa { padding: 11px; }
}
@media (max-width: 959px) {
  :root { --head: 64px; --bar: 72px; }
  body { font-size: 16px; }
  p { font-size: 16px; }
  h1 { font-size: 32px; line-height: 1.1; text-align: left; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  .container { max-width: 640px; padding: 0 20px; }
  .sec { padding: 44px 0; }
  .hero-text, .hero-text p, .hero-text h2, .h2 { text-align: left; }
  .hr { margin: 20px 0; }
  .btn { margin-left: 0; margin-right: 0; }

  .logo-img { height: 34px; }
  .head-wa { display: none; }
  .nav-toggle { border: 1px solid var(--line); border-radius: 12px; }
  .nav { background: #fff; border-left: 1px solid var(--line); }
  .nav .menu > li { border-bottom: 1px solid var(--line); }
  .nav .menu > li > a, .nav .menu > li > .sub-toggle:not(.sub-toggle-ico) { color: var(--ink); font-size: 16px; }
  .nav .menu > li.current-menu-item > a { color: var(--link); font-weight: 800; }
  .nav .sub-menu a { color: var(--txt); font-size: 15px; }
  .sub-toggle .caret { border-color: var(--blue); }
  .menu-item-lang > a { border: 0; padding: 14px 0 !important; font-size: 16px !important; }

  /* barra in basso: WhatsApp verde + Chiama */
  .cta-bar { background: #fff; border-top: 1px solid var(--line); height: var(--bar); }
  .cta-bar-in { padding: 12px 16px; }
  .cta-bar-links { gap: 10px; }
  .cta-bar-links::before { display: none; }
  .cta-bar-links a { width: auto; flex: 1; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 800; justify-content: center; }
  .cta-bar-links a[href^="tel:"] { order: 2; background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
  .cta-bar-links a[href^="tel:"] svg { fill: var(--blue); }
  .cta-bar-links a[href*="wa.me"] { order: 1; background: var(--wa); color: #fff; }
  .wa-fisso { display: none; }
  .foot-legal { padding-bottom: calc(var(--bar) + 16px); }

  .r-sec { padding: 44px 0; }
  .r-wrap { padding: 0 20px; }
  .r-h1 { font-size: 34px; line-height: 1.1; }
  .r-h2 { font-size: 28px; }
  .r-lead { font-size: 17px; }
  .r-hero { background: #fff; }
  .r-hero > .r-wrap { padding: 0; flex-direction: column-reverse; }
  .r-hero-text { padding: 26px 20px 32px; flex-basis: auto; gap: 16px; }
  .r-hero-img { flex-basis: auto; min-height: 280px; background-position: 55% 18%; }
  .r-hero-img img { object-position: 55% 18%; }
  .r-hero-img--round { border-radius: 0; }
  .r-hero-text .r-row .r-btn { width: 100%; }
  .r-trust { gap: 8px 18px; font-size: 13px; }
  .r-facts { grid-template-columns: 1fr; }
  .r-grid, .r-grid--2, .r-grid--4, .r-steps, .r-dots, .r-numbers { grid-template-columns: 1fr; }
  .r-grid--4.r-blog { grid-template-columns: 1fr; }
  .r-panel { padding: 28px 22px; border-radius: 20px; }
  .r-steps { gap: 24px; margin-top: 24px; }
  .r-num { font-size: 36px; }
  .r-doc, .r-studio { gap: 28px; }
  .r-doc-img { height: 340px; max-width: none; }
  .r-studio-img { height: 380px; max-width: none; order: -1; }
  .r-six { grid-template-columns: 1fr; }
  .r-review, .r-main .r-review { flex-basis: 84%; }
  .r-arrows { display: none; }
  .r-media { padding: 22px; }
  .r-final { padding: 26px 20px; border-radius: 20px; gap: 22px; }
  .r-final-t, .r-final-text strong.r-final-t { font-size: 24px; }
  .r-final-text .r-btn { width: 100%; }
  .r-form { padding: 18px; }
  .r-toc { position: static; flex-basis: 100%; }
  .r-layout { gap: 28px; }
  .r-main { gap: 40px; }
  .r-main h2 { font-size: 26px; }
  .r-main p, .r-main li { font-size: 17px; }
  .single-articolo .post-title, .r-art-head .post-title { font-size: 30px; }
  .r-art-head-in { padding: 0 20px; }
  .r-art-head .post-hero { aspect-ratio: 16 / 9; }
  .r-art { padding: 32px 20px 56px; gap: 36px; }
  .r-art .post-side { max-width: none; }
  .single-articolo .post-content, .single-articolo .post-content p { font-size: 18px; }
  .single-articolo .post-content li { font-size: 17px; }
}
@media print {
  .head-wa, .r-arrows { display: none !important; }
}
