/* Stili limitati alla home: header, footer e pagine interne restano autonomi. */
.hm-home {
    --hm-ink: #183b3d;
    --hm-muted: #4f686a;
    --hm-teal: #14676b;
    --hm-mint: #e6f3ef;
    --hm-line: #d7e6e2;
    color: var(--hm-ink);
    background: #fff;
    font-family: 'Jost', sans-serif;
    overflow-x: clip;
}
.hm-home *, .hm-home *::before, .hm-home *::after { box-sizing: border-box; }
.hm-home .hm-container { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.hm-home h1, .hm-home h2, .hm-home h3, .hm-home p { margin: 0; }
.hm-home h1, .hm-home h2, .hm-home h3 { color: var(--hm-ink); font-family: inherit; font-weight: 500; }
.hm-home h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -.025em; }
.hm-home h3 { font-size: 26px; line-height: 1.25; }
.hm-home p { color: var(--hm-muted); font-size: 18px; line-height: 1.7; }
.hm-home a { color: inherit; text-decoration: none; }
.hm-home img { display: block; max-width: 100%; }
.hm-home a:focus-visible, .hm-home button:focus-visible, .hm-home input:focus-visible,
.hm-home select:focus-visible, .hm-home textarea:focus-visible { outline: 3px solid #247c80; outline-offset: 4px; }
.hm-home .hm-eyebrow { color: var(--hm-teal); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.hm-home .hm-section { padding-block: 90px; }
.hm-home .hm-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.hm-home .hm-section-head > p { max-width: 340px; }
.hm-home .hm-section-head .hm-text-link { flex-shrink: 0; }
.hm-home .hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 20px; }
.hm-home .hm-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; border-radius: 12px; font: 600 16px/1.4 'Jost', sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.hm-home .hm-button-primary { background: var(--hm-teal); color: #fff; }
.hm-home .hm-button-primary:hover { background: #104f52; transform: translateY(-2px); }
.hm-home .hm-button-outline { background: transparent; color: var(--hm-teal); border-color: var(--hm-teal); }
.hm-home .hm-button-outline:hover { background: #dcece7; transform: translateY(-2px); }
.hm-home .hm-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--hm-teal); font-size: 16px; font-weight: 600; }
.hm-home .hm-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hm-home .hm-hero { background: linear-gradient(115deg, #f5faf8 0%, #edf6f2 65%, #dfefeb 100%); padding-block: 66px 80px; }
.hm-home .hm-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
.hm-home .hm-hero-copy { min-width: 0; }
.hm-home h1 { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.12; letter-spacing: -.035em; }
.hm-home h1 strong { color: var(--hm-teal); font-weight: 600; }
.hm-home .hm-doctor-name { display: block; margin-bottom: 10px; }
.hm-home .hm-lead { margin-top: 24px; max-width: 580px; }
.hm-home .hm-hero-media { position: relative; min-width: 0; padding-bottom: 24px; }
.hm-home .hm-photo-frame { border-radius: 140px 24px 24px 24px; overflow: hidden; background: #e8f2ee; box-shadow: 0 24px 70px #183b3d12; }
.hm-home .hm-photo-frame img { width: 100%; height: auto; }
.hm-home .hm-photo-note { position: absolute; left: -24px; right: 28px; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--hm-line); border-radius: 16px; box-shadow: 0 16px 40px #183b3d12; }
.hm-home .hm-note-mark { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--hm-mint); color: var(--hm-teal); font-size: 32px; }
.hm-home .hm-photo-note strong { display: block; font-size: 19px; }
.hm-home .hm-photo-note div > span { display: block; font-size: 14px; color: var(--hm-muted); line-height: 1.4; }
.hm-home .hm-specialties { padding-block: 60px 0; }
.hm-home .hm-specialty-grid, .hm-home .hm-booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hm-home .hm-specialty { position: relative; display: flex; align-items: flex-start; gap: 28px; min-height: 230px; padding: 36px; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 22px; background: var(--hm-mint); transition: transform .2s, box-shadow .2s; }
.hm-home .hm-specialty:hover { transform: translateY(-4px); box-shadow: 0 16px 40px #183b3d12; }
.hm-home .hm-specialty > div { position: relative; z-index: 1; }
.hm-home .hm-specialty-number { color: var(--hm-teal); font-size: 14px; font-weight: 600; padding-top: 8px; }
.hm-home .hm-card-label { font-size: 16px; }
.hm-home .hm-specialty h3 { font-size: 48px; margin-block: 4px 22px; }
.hm-home .hm-card-link { font-size: 16px; font-weight: 500; }
.hm-home .hm-card-link > span { margin-left: 12px; }
.hm-home .hm-anatomy { position: absolute; right: 12px; top: 30px; width: 156px; height: 156px; color: #438d82; opacity: .15; }
.hm-home .hm-specialty-dark { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.hm-home .hm-specialty-dark h3, .hm-home .hm-specialty-dark p, .hm-home .hm-specialty-dark .hm-specialty-number { color: #fff; }
.hm-home .hm-specialty-dark .hm-anatomy { color: #b5e4d7; opacity: .2; }
.hm-home .hm-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hm-home .hm-about-photo { border-radius: 24px; overflow: hidden; }
.hm-home .hm-about-photo img { width: 100%; height: auto; }
.hm-home .hm-about-copy > p:not(.hm-eyebrow) { margin-top: 24px; }
.hm-home .hm-society-logo { width: 260px; height: auto; margin-block: 26px 16px; }
.hm-home .hm-video-section { background: #f4f8f6; }
.hm-home #hm-video { scroll-margin-top: 120px; }
.hm-home .hm-video-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: #102e30; }
.hm-home .hm-video-player > img { width: 100%; height: 100%; object-fit: cover; }
.hm-home .hm-video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; padding: 24px; background: #102e3080; color: #fff; text-align: center; }
.hm-home .hm-video-overlay p { font-size: clamp(24px, 3vw, 40px); color: #fff; }
.hm-home .hm-video-play { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--hm-teal); font-size: 28px; box-shadow: 0 0 0 12px #ffffff25; }
.hm-home .hm-video-play:hover { background: var(--hm-mint); }
.hm-home .hm-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-home .hm-booking-card { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; border: 1px solid var(--hm-line); border-radius: 22px; }
.hm-home .hm-service-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 12px; color: var(--hm-teal); background: var(--hm-mint); font-size: 28px; }
.hm-home .hm-booking-card p { margin-block: 16px 28px; }
.hm-home .hm-booking-card .hm-button { margin-top: auto; }
.hm-home .hm-booking-card .hm-text-link { margin-top: 12px; }
.hm-home .hm-booking-online { background: #f4f8f6; }
.hm-home .hm-news { background: #f4f8f6; }
.hm-home .hm-section-intro { max-width: 780px; margin-bottom: 32px; }
.hm-home .hm-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hm-home .hm-news-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--hm-line); border-radius: 20px; }
.hm-home .hm-news-image { display: block; aspect-ratio: 5 / 3; overflow: hidden; }
.hm-home .hm-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hm-home .hm-news-image:hover img { transform: scale(1.04); }
.hm-home .hm-news-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.hm-home .hm-news-body h3 { font-size: 23px; }
.hm-home .hm-news-body p { font-size: 16px; margin-block: 16px 20px; }
.hm-home .hm-news-body .hm-text-link { margin-top: auto; }
.hm-home .hm-reviews { padding-block: 75px; background: #fff; }
.hm-home #doc-reviews { padding-block: 0; background: transparent; }
.hm-home #doc-reviews .container { width: min(1280px, calc(100% - 64px)); max-width: none; padding: 0; }
.hm-home #doc-reviews h4 { font-size: clamp(30px, 3.2vw, 44px) !important; line-height: 1.2; color: var(--hm-ink); }
.hm-home #doc-reviews .card-review { background: #f4f8f6; border: 1px solid var(--hm-line); border-radius: 18px; box-shadow: none; }
.hm-home .hm-reviews-link { display: flex; justify-content: center; margin-top: 28px; }
.hm-home .hm-contact { background: var(--hm-ink); }
.hm-home .hm-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.hm-home .hm-contact-copy h2 { color: #fff; }
.hm-home .hm-contact-copy > p:not(.hm-eyebrow) { margin-top: 24px; color: #d3e4e0; }
.hm-home .hm-contact-copy .hm-eyebrow { color: #a6decc; }
.hm-home .hm-contact-links { list-style: none; padding: 0; margin: 32px 0 0; }
.hm-home .hm-contact-links li { padding-block: 16px; border-bottom: 1px solid #ffffff26; }
.hm-home .hm-contact-links li > span { display: block; font-size: 13px; color: #bcd7d0; margin-bottom: 4px; }
.hm-home .hm-contact-links a { color: #fff; font-size: 19px; overflow-wrap: anywhere; }
.hm-home .hm-contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm-home .hm-form { padding: 36px; border-radius: 24px; background: #fff; min-width: 0; }
.hm-home .hm-form h3 { margin-bottom: 26px; }
.hm-home .hm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hm-home .hm-form label { display: block; color: var(--hm-ink); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.hm-home .hm-form input:not([type="hidden"]):not([type="checkbox"]), .hm-home .hm-form select, .hm-home .hm-form textarea { width: 100%; border: 1px solid #cadbd5; border-radius: 10px; padding: 13px 14px; background: #f8fbfa; color: var(--hm-ink); font: 16px/1.4 'Jost', sans-serif; box-shadow: none; }
.hm-home .hm-form > label { margin-top: 18px; }
.hm-home .hm-form textarea { resize: vertical; }
.hm-home .hm-privacy { display: flex; align-items: flex-start; gap: 10px; margin-block: 22px; }
.hm-home .hm-privacy input { appearance: auto; width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--hm-teal); }
.hm-home .hm-privacy label { font-weight: 400; font-size: 14px; margin: 0; }
.hm-home .hm-privacy a { text-decoration: underline; }
.hm-home .hm-form .hm-button { width: 100%; }
.hm-home .hm-form .hm-button:disabled { opacity: .65; cursor: wait; transform: none; }
.hm-home .resultDiv { overflow-wrap: anywhere; }
.hm-home .resultDiv:empty { display: none; }
@media (max-width: 1150px) {
    .hm-home .hm-hero-grid { gap: 32px; }
    .hm-home .hm-two-columns { gap: 40px; }
    .hm-home .hm-contact-grid { gap: 40px; }
    .hm-home .hm-specialty { padding: 28px; gap: 18px; }
}
@media (max-width: 991px) {
    .hm-home .hm-hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hm-home h1 { font-size: 38px; }
    .hm-home .hm-photo-note { left: 0; right: 0; padding: 16px; }
    .hm-home .hm-photo-frame { border-top-left-radius: 90px; }
    .hm-home .hm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-home .hm-booking-card { padding: 28px; }
    .hm-home .hm-contact-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hm-home .hm-form { padding: 24px; }
}
@media (max-width: 767px) {
    .hm-home .hm-container, .hm-home #doc-reviews .container { width: calc(100% - 36px); }
    .hm-home .hm-section { padding-block: 56px; }
    .hm-home .hm-hero { padding-block: 36px 48px; }
    .hm-home .hm-hero-grid, .hm-home .hm-two-columns, .hm-home .hm-contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .hm-home h1 { font-size: clamp(32px, 8vw, 42px); }
    .hm-home .hm-lead { font-size: 17px; }
    .hm-home .hm-hero-media { width: min(100%, 480px); margin-inline: auto; }
    .hm-home .hm-photo-frame { border-radius: 90px 20px 20px 20px; }
    .hm-home .hm-photo-note { left: 12px; right: 12px; }
    .hm-home .hm-section-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
    .hm-home .hm-specialties { padding-top: 44px; }
    .hm-home .hm-specialty-grid, .hm-home .hm-booking-grid, .hm-home .hm-news-grid { grid-template-columns: 1fr; gap: 18px; }
    .hm-home .hm-specialty { min-height: 210px; }
    .hm-home .hm-about-copy p { font-size: 17px; }
    .hm-home .hm-video-player { border-radius: 18px; }
    .hm-home .hm-video-overlay { gap: 14px; padding: 14px; }
    .hm-home .hm-video-overlay p { font-size: 22px; }
    .hm-home .hm-video-play { width: 60px; height: 60px; font-size: 22px; box-shadow: 0 0 0 7px #ffffff25; }
    .hm-home .hm-video-overlay > span { font-size: 13px; }
    .hm-home .hm-reviews { padding-block: 56px; }
}
@media (max-width: 380px) {
    .hm-home .hm-actions { flex-direction: column; }
    .hm-home .hm-specialty { padding: 24px 20px; gap: 14px; }
    .hm-home .hm-card-link { font-size: 14px; }
    .hm-home .hm-form-grid { grid-template-columns: 1fr; }
    .hm-home .hm-form { padding: 22px 18px; }
    .hm-home .hm-booking-card .hm-button { width: 100%; padding-inline: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-home *, .hm-home *::before, .hm-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
