/* Architecture update; preserve existing local fonts and visual identity. */
.area-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 38px; }
.area-card { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.area-card h3 { font: 30px/1.1 var(--font-serif); }
.area-card p { font-size: 14px; line-height: 1.7; }
.area-card .link-arrow { margin-top: auto; }
.area-card:hover { border-color: var(--accent); }
.aesthetic-intro { background: var(--peach-light); padding-block: 64px; }
.aesthetic-intro h2 { font-size: clamp(36px,4vw,52px); }
.aesthetic-intro .lead { max-width: 55ch; margin-top: 18px; }
.area-overview { padding-top: 20px; }
.service-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.75fr); gap: 80px; padding-block: 52px 72px; }
.service-aside { padding: 30px; background: var(--sage-light); align-self: start; border-radius: 6px; }
.service-aside h3 { font: 30px/1.1 var(--font-serif); margin-bottom: 20px; }
.service-aside .note { margin-top: 28px; }
.service-hero-action { padding-bottom: 20px; }
.verification { font-size: 14px; line-height: 1.8; background: #f2e8d8; border-left: 3px solid #9b7140; padding: 16px 20px; overflow-wrap: anywhere; }
.clinic-address { font-style: normal; margin-block: 20px; }
.clinic-map h2 { margin-bottom: 22px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; margin-top: 24px; border-radius: 6px; }
.clinic-map > p:last-child { margin-top: 22px; }
.input { width: 100%; min-height: 48px; font: inherit; background: var(--surface); }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.booking-grid h2 { margin-bottom: 22px; }
.booking-grid .note { margin-top: 16px; } .booking-grid .booking-note { margin: 0 0 22px; }
.form-grid { margin-block: 28px; }
.footer-booking { white-space: normal; text-align: center; gap: 0; }
.cookie-settings { border: 0; padding: 0; background: transparent; font: inherit; text-decoration: underline; }
.cookie-banner { position: fixed; bottom: 24px; left: 24px; z-index: 10020; width: min(520px,calc(100% - 48px)); background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: 8px; box-shadow: 0 10px 45px #263e4920; font-size: 13px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions button { flex: 1; border: 1px solid var(--accent); border-radius: 4px; padding: 12px; min-height: 44px; background: transparent; font-size: 12px; }
.cookie-actions button[data-consent=granted] { background: var(--accent); color: white; }
.mobile-actions { display: none; }
@media(min-width:981px) { .topnav-bar { gap: 18px; } .nav-links { gap: 16px; } .header-cta { font-size: 11px; padding-inline: 16px; } }
@media(min-width:981px) and (max-width:1250px) { .header-cta { display: none; } }
@media(max-width:980px) { .area-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .service-layout { gap: 32px; } }
@media(max-width:767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  .area-cards, .service-layout { grid-template-columns: 1fr; }
  .area-card { padding: 24px; }
  .service-layout { padding-top: 12px; }
  .hero-cta .btn, .close .btn { white-space: normal; text-align: center; gap: 12px; }
  .mobile-actions { position: fixed; display: grid; grid-template-columns: 1.75fr .65fr .85fr; gap: 6px; bottom: 0; left: 0; right: 0; z-index: 990; padding: 10px 10px calc(10px + env(safe-area-inset-bottom,0px)); background: var(--surface); border-top: 1px solid var(--border); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px; font-size: 11px; font-weight: 600; line-height: 1.3; border: 1px solid var(--border); border-radius: 5px; }
  .mobile-actions .mobile-booking { color: white; background: var(--accent); border-color: var(--accent); }
  .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom,0px)); left: 12px; width: calc(100% - 24px); padding: 18px; }
  .to-top { bottom: 90px; }
  .menu-lock .mobile-actions { visibility: hidden; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

.patient-path { border-block: 1px solid var(--border); padding-block: 28px; margin-block: 24px 8px; }
.patient-path ol { display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; padding: 0; margin-top: 16px; }
.patient-path li { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.patient-path li:not(:last-child)::after { content: "→"; color: var(--accent); }
.patient-path a { text-decoration: underline; text-underline-offset: 5px; }
.clinical-prose { max-width: 900px; }
.clinical-prose h2 { font-size: clamp(30px,4vw,46px); margin-bottom: 24px; }
.clinical-prose h3 { font: 400 28px/1.2 var(--font-serif); margin-block: 24px 14px; }
.clinical-prose p { font-size: 16px; line-height: 1.85; margin-bottom: 20px; overflow-wrap: anywhere; }
.clinical-prose .service-grid { margin-block: 26px; }
.service-section:has(+ .service-section) { padding-bottom: 20px; }
.hub-articles { list-style: none; padding: 0; }
.hub-articles li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.booking-choices { display: grid; gap: 20px; margin-bottom: 44px; }
.booking-choice { border: 1px solid var(--border); padding: 24px; border-radius: 6px; }
.booking-choice h3 { font: 400 30px/1.2 var(--font-serif); margin-bottom: 20px; }
.booking-choices .btn { white-space: normal; text-align: center; }
section[id] { scroll-margin-top: 110px; }
@media(min-width:981px) and (max-width:1380px) { .header-cta { display: none; } }
@media(max-width:767px) { .patient-path li { gap: 12px; } .patient-path ol { gap: 18px 12px; } .booking-choice { padding: 18px; } }

/* Original editorial compositions restored. Additions use that same system. */
.service-section .prose h2 { margin-bottom: 24px; }
.clinical-illustration { border-radius: 4px; padding: 28px 36px; align-self: center; }
.clinical-illustration .service-art { margin: 0 auto 20px; }
.clinical-illustration h3 { font: 400 34px/1.1 var(--font-serif); margin: 16px 0; }
.clinical-illustration p { font-size: 12px; line-height: 1.8; }
.clinical-illustration .kicker { color: inherit; }
.clinical-illustration.service-blue .prose, .clinical-illustration.service-blue p { color: #e1eaf2; }
.clinical-copy { max-width: 72ch; margin: 28px 0 40px; font-size: 15px; line-height: 1.9; }
.recovery-title { font: 400 34px/1.1 var(--font-serif); margin-bottom: 22px; }
.aesthetic-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
.verification-wrap { margin-bottom: 48px; }
[data-area="medicina-estetica"] .hero-page { background: var(--peach-light); }
[data-page="chirurgia-proctologia/piccola-chirurgia"] .hero-page,
[data-page="chirurgia-proctologia/pavimento-pelvico"] .hero-page { background: var(--sage-light); }
.service-section .faq { margin-top: 0; }
.service-section .faq summary { font-size: 16px; }
.treat .link-arrow { margin-top: 12px; }
.clinic-details h2 { font-size: 40px; }
.clinic-details h3 { margin-top: 26px; }
@media(max-width:767px) {
  .aesthetic-services { grid-template-columns: 1fr; }
  .clinical-illustration { padding: 24px; }
  .hero-clinical h1 { overflow-wrap: anywhere; }
  .clinical-copy { margin-bottom: 26px; }
  .contact-actions .btn { white-space: normal; text-align: center; }
}

/* Editorial area pages: explanatory sections, concise pathways, appointment information. */
.editorial-section { padding-block: 44px; }
.editorial-section h2 { font: 400 clamp(32px,4vw,48px)/1.1 var(--font-serif); margin-bottom: 24px; max-width: 26ch; }
.editorial-section h3 { font: 400 28px/1.2 var(--font-serif); margin-bottom: 16px; }
.editorial-section p { font-size: 16px; line-height: 1.85; margin-bottom: 22px; }
.editorial-grid, .clinic-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; margin-block: 30px; }
.editorial-grid article { padding: 26px; background: var(--sage-light); border-radius: 5px; }
.editorial-grid article:nth-child(2) { background: var(--peach-light); }
.treatment-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-block: 35px; }
.treatment-options article { border-top: 2px solid var(--accent); padding-top: 24px; }
.treatment-options .eyebrow { display: block; margin-bottom: 22px; }
.topic-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.topic-links article { border: 1px solid var(--border); border-radius: 5px; padding: 28px; }
.topic-links .eyebrow { font-size: 11px; }
.topic-links h3 a { text-decoration: none; }
.topic-links article p:not(.eyebrow) { font-size: 14px; }
.topic-links article:hover { border-color: var(--accent); }
.clinical-information { background: var(--sage-light); }
.clinical-information h2 { font-size: 32px; }
.clinical-information h3 { font-size: 25px; }
.clinical-information .note, .clinical-references { font-size: 13px; }
.clinical-references { padding-left: 20px; line-height: 1.8; }
.clinical-references a { text-decoration: underline; text-underline-offset: 3px; }
.clinical-references li { padding-block: 5px; overflow-wrap: anywhere; }
.clinic-summary article { padding-top: 20px; border-top: 1px solid var(--border); }
.clinical-prose .text-link { overflow-wrap: anywhere; }
.treatment-discussion { border-left: 2px solid var(--accent); padding-left: 26px; }
@media(max-width:767px) {
 .editorial-section { padding-block: 32px; }
 .editorial-grid,.clinic-summary,.treatment-options,.topic-links { grid-template-columns: 1fr; gap: 20px; }
 .topic-links article,.editorial-grid article { padding: 22px; }
 .editorial-section h2 { max-width: none; }
 .clinical-information h2 { font-size: 28px; }
 .treatment-discussion { padding-left: 18px; }
}

/* Clinical pathway pages: intro pair, step explorer, FAQ and related links. Without JS every step stays visible. */
.path-intro { padding-block: 64px 56px; }
.path-intro-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 64px; align-items: start; }
.path-about h2, .journey-panel h2, .path-faq h2 { font: 400 clamp(32px,4vw,48px)/1.1 var(--font-serif); letter-spacing: -.01em; margin-bottom: 24px; }
.path-about p { font-size: 17px; }
.path-about p:last-child, .path-when p:last-child, .journey-panel > p:last-child { margin-bottom: 0; }
.path-when { background: var(--sage-light); border-radius: 6px; padding: 34px 36px; }
[data-area="medicina-estetica"] .path-when { background: var(--peach-light); }
.path-when h2 { font: 400 30px/1.15 var(--font-serif); letter-spacing: -.01em; margin-bottom: 16px; }
.path-when p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.journey { background: var(--surface); border-block: 1px solid var(--border); padding-block: 72px; }
.journey-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 72px; align-items: start; scroll-margin-top: 130px; }
.journey-steps { position: sticky; top: calc(var(--header) + 28px); }
.journey-steps ol { list-style: none; padding: 0; margin: 22px 0 0; }
.journey-steps li { position: relative; padding-bottom: 14px; }
.journey-steps li:last-child { padding-bottom: 0; }
.journey-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 1px; background: var(--border); transition: background .2s ease; }
.journey-steps li.is-done:not(:last-child)::before { background: var(--accent); }
.journey-steps a { display: flex; align-items: center; gap: 16px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 22px; }
.journey-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg); transition: background .2s ease, border-color .2s ease, color .2s ease; }
.journey-steps a:hover { color: var(--fg); }
.journey-steps a:hover .journey-num, .journey-steps .is-done .journey-num { border-color: var(--accent); }
.journey-steps .is-done .journey-num { background: var(--blue-light); }
.journey-steps a[aria-selected="true"] { color: var(--fg); font-weight: 700; }
.journey-steps a[aria-selected="true"] .journey-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.journey-panel { max-width: 780px; scroll-margin-top: 130px; }
.journey-panel + .journey-panel { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
.js [data-journey] .journey-panel + .journey-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.js [data-journey] .journey-panel:not([hidden]) { animation: journey-in .35s ease both; }
@keyframes journey-in { from { opacity: 0; transform: translateY(10px); } }
.journey-count { color: var(--accent); margin-bottom: 18px; }
.journey-nav { display: none; }
.js .journey-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 780px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }
.journey-nav button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; font: 600 14px/1.3 var(--font-sans); color: var(--accent); text-align: left; cursor: pointer; }
.journey-nav button:hover { color: var(--fg); }
.journey-nav .journey-next, .journey-nav .journey-book { margin-left: auto; }
.journey-nav .journey-next { text-align: right; }
.journey-nav .journey-book { white-space: normal; }
.path-faq { background: var(--blue-light); }
.path-faq h2 { margin-bottom: 0; }
.path-faq .faq { margin-top: 0; }
.path-more-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 64px; align-items: start; }
.path-more h2 { font: 400 32px/1.15 var(--font-serif); letter-spacing: -.01em; margin-bottom: 24px; }
.path-related .hub-articles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.path-related .hub-articles li { padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: border-color .15s ease; }
.path-related .hub-articles li:hover { border-color: var(--accent); }
.path-related .hub-articles a { display: flex; justify-content: space-between; gap: 16px; height: 100%; padding: 16px 20px; font-size: 14px; line-height: 1.4; text-decoration: none; }
.path-articles .hub-articles li:first-child { padding-top: 0; }
.path-articles .note { font-size: 14px; line-height: 1.7; }
.path-about, .path-when, .path-related, .path-articles { scroll-margin-top: 130px; }
@media(max-width:980px) {
  .path-intro-grid, .path-more-grid { grid-template-columns: 1fr; gap: 36px; }
  .journey { padding-block: 48px; }
  .journey-layout { grid-template-columns: 1fr; gap: 32px; }
  .journey-steps { position: static; min-width: 0; }
  .js .journey-steps ol { display: flex; gap: 8px; margin-top: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .js .journey-steps ol::-webkit-scrollbar { display: none; }
  .js .journey-steps li { flex: none; padding: 0; scroll-snap-align: center; }
  .js .journey-steps li::before { display: none; }
  .js .journey-steps a { gap: 10px; padding: 5px 16px 5px 5px; border: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
  .js .journey-steps a[aria-selected="true"] { border-color: var(--accent); }
  .js .journey-num { width: 32px; height: 32px; font-size: 12px; }
}
@media(max-width:767px) {
  .path-intro { padding-block: 44px 40px; }
  .path-when { padding: 24px; }
  .path-about p { font-size: 16px; }
  .path-related .hub-articles { grid-template-columns: 1fr; }
  .journey-panel + .journey-panel { margin-top: 40px; padding-top: 40px; }
  .js .journey-nav { margin-top: 30px; }
  .journey-nav .journey-book { text-align: center; }
}
@media(prefers-reduced-motion:reduce) { .js [data-journey] .journey-panel:not([hidden]) { animation: none; } }

/* Language switch in the header bar; hidden by the server when only one language is available. */
.lang-switch { display: flex; align-items: center; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding-inline: 9px; color: var(--muted); text-decoration: none; }
.lang-flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); opacity: .55; transition: opacity .15s ease; }
.lang-switch a:hover .lang-flag, .lang-switch a[aria-current="true"] .lang-flag { opacity: 1; }
.lang-switch a + a { position: relative; }
.lang-switch a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; border-left: 1px solid var(--border); }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a[aria-current="true"] { color: var(--fg); }
.lang-switch a[aria-current="true"] span { text-decoration: underline; text-underline-offset: 5px; }
@media(max-width:980px) { .lang-switch { margin-left: auto; } .js .topnav-bar > .lang-switch + .btn-pill, .js .lang-switch ~ .nav-toggle { margin-left: 0; } }
@media(max-width:420px) { .topnav-bar { gap: 8px; } .lang-switch a { padding-inline: 6px; gap: 0; } .lang-switch a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .lang-switch ~ .nav-toggle .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .lang-switch ~ .nav-toggle { padding-inline: 12px; } }

/* 0.7.0: visit finder on the home page, symptom entry points on the proctology hub, visit cards on the contact page. */
.orientation-visit { font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.orientation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 14px; }
.orientation-actions .btn { white-space: normal; text-align: center; }
.symptom-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
#sintomi .lead { max-width: 62ch; margin: 18px 0 30px; }
#sintomi .note { margin-top: 26px; }
.booking-choice p { margin-bottom: 12px; }
.booking-choice .note { margin-bottom: 20px; }
.clinic-details .symptom-list { margin: 12px 0 22px; }
