/* Centered public frame with responsive internal content padding. */
body:has(.home-page) {
    background: linear-gradient(
        180deg,
        var(--bmf-public-frame-top) 0%,
        var(--bmf-public-frame-top) 50.5%,
        var(--bmf-public-frame-bottom) 51.5%,
        var(--bmf-public-frame-bottom) 100%
    ) fixed;
}
.home-page {
    width: calc(100% - 2 * var(--bmf-public-frame-gutter));
    max-width: var(--bmf-public-max-width);
    min-height: calc(100dvh - 20px);
    margin: 7px auto 13px;
    background: var(--bmf-public-frame-surface);
    color: var(--bmf-ink, #30282d);
    border-radius: var(--bmf-public-frame-radius);
    box-shadow: 0 14px 34px rgba(56, 45, 49, .14);
    overflow: clip;
    min-width: 0;
}
@media (max-width: 800px) {
    :root { --bmf-public-frame-gutter: 12px; --bmf-public-frame-radius: 17px; }
}
@media (max-width: 560px) {
    :root { --bmf-public-frame-gutter: 8px; --bmf-public-frame-radius: 14px; }
    .home-page { margin-top: 6px; margin-bottom: 8px; }
}
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page h1,.home-page h2,.home-page h3,.home-page p { margin-top: 0; }
.home-page button,.home-page input,.home-page select { font: inherit; }
/* Content fills the centered frame with responsive internal padding. */
.home-container {
    width: 100%;
    max-width: var(--bmf-public-max-width);
    margin-inline: auto;
    padding-inline: var(--bmf-public-gutter);
}
.home-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid #ebe6e8; }
.home-header__inner { height: 73px; display: flex; align-items: center; gap: 24px; }
.home-logo { display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -.9px; color: #382e34; text-decoration: none; }
.home-logo span:nth-child(2) { color: #b5567c; }
.home-header__nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.home-header__nav a { color: #5d5359; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-header__nav a:hover,.home-header__nav a:focus-visible { color: #b5567c; }
.home-header__actions { display: flex; align-items: center; }
.home-header__login { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 6px 15px; border: 1px solid #e6dde2; border-radius: 10px; background: #fff; color: #403239; font-size: 12px; font-weight: 700; cursor: pointer; }
.home-header__login:hover,.home-header__login:focus-visible { border-color: #bf7995; background: #fff7fa; }
.home-header__login--mobile,.home-header__toggle { display: none; }
.home-hero { padding-block: 70px 75px; display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.90fr); gap: clamp(30px,4.2vw,85px); align-items: center; }
.home-hero__copy { min-width: 0; }
.home-hero h1 { font-size: clamp(37px,3.75vw,58px); font-weight: 750; letter-spacing: -2.2px; line-height: 1.15; margin-bottom: 20px; }
.home-hero__lead { max-width: 610px; color: #7d737a; font-size: clamp(14px,1.1vw,17px); line-height: 1.67; margin-bottom: 27px; }
.home-hero__search { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: stretch; max-width: 750px; min-height: 69px; background: #fff; border: 1px solid #e7e0e4; border-radius: 12px; box-shadow: 0 4px 15px rgba(56,31,45,.07); }
.home-hero__search-field { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 16px; min-width: 0; }
.home-hero__search-field--treatment { border-left: 1px solid #d5c9d0; }
.home-hero__search-field span { font-size: 10px; font-weight: 750; letter-spacing: 1px; color: #95868e; }
.home-hero__search-field input,.home-hero__search-field select { border: 0; width: 100%; min-width: 0; background: transparent; outline: none; color: #3b3036; font-weight: 650; font-size: 13px; }
.home-hero__search-field:focus-within { background: #fff8fb; }
.home-hero__search-field input::placeholder { color: #9b8c95; }
.home-hero__search-field select { cursor: pointer; }
.home-hero__search-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 0; border-radius: 10px; margin: -1px; background: #b8587d; color: #fff; font-size: 13px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.home-hero__search-button:hover,.home-hero__search-button:focus-visible { background: #9d4066; }
.home-hero__assurances { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #847881; font-size: 11px; margin-top: 14px; }
.home-hero__assurances i { font-style: normal; color: #bbabb4; }
.home-hero__visual { min-height: 355px; aspect-ratio: 1.20; border-radius: 12px; display: grid; place-items: center; background: #c9bfc3; color: #fff; text-align: center; }
.home-hero__visual span { font-size: 12px; letter-spacing: 1.05px; font-weight: 650; }
.home-hero__result { margin-top: 17px; padding: 13px 15px; background: #fff7fa; border: 1px solid #edd8e1; border-radius: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #6e5863; }
.home-hero__result a { display: inline-flex; align-items: center; gap: 5px; color: #ac4872; font-weight: 700; }
.home-hero__result button { border: 0; background: transparent; text-decoration: underline; color: #776d72; cursor: pointer; }
.home-band { border-top: 1px solid #e9e2e6; }
.home-verification { padding-block: 56px 61px; }
.home-section-label { display: block; margin: 0 0 16px; padding-bottom: 11px; border-bottom: 1px solid #e9e1e5; color: #b45479; font-size: 11px; font-weight: 800; line-height: 1.35; letter-spacing: 1.65px; }
.home-verification__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-verification__grid article { padding: 19px 30px 4px 0; min-width: 0; }
.home-verification__grid article + article { border-left: 1px solid #ebe4e7; padding-left: 30px; }
.home-verification__number { display: block; color: #b1a2ab; font-size: 10px; margin-bottom: 14px; }
.home-verification__grid h3 { margin: 0 0 11px; font-size: 17px; letter-spacing: -.35px; font-weight: 700; }
.home-verification__grid p { max-width: 370px; margin: 0; color: #81747b; font-size: 12px; line-height: 1.72; }
.home-verification__grid p a { color: #a84971; text-decoration: underline; text-underline-offset: 3px; }
.home-discovery { padding-block: 58px 65px; }
.home-discovery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.home-discovery__panel { min-width: 0; scroll-margin-top: 105px; }
.home-treatments-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-treatment-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 55px; border: 0; border-bottom: 1px solid #e9e2e6; padding: 10px 9px 10px 0; background: transparent; text-align: left; cursor: pointer; }
.home-treatment-link:nth-child(even) { padding-left: 15px; border-left: 1px solid #e9e2e6; }
.home-treatment-link strong { font-size: 13px; font-weight: 650; color: #372e34; }
.home-treatment-link span { color: #aa9ca5; font-size: 11px; white-space: nowrap; }
.home-treatment-link:hover strong { color: #b5567c; }
.home-cities-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.home-city-card { min-width: 0; min-height: 77px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; border: 1px solid #e9e1e6; border-radius: 11px; background: #fff; padding: 12px 15px; text-align: left; cursor: pointer; }
.home-city-card strong { font-size: 13px; color: #372e34; font-weight: 700; }
.home-city-card span { font-size: 11px; color: #aa9ba4; }
.home-city-card:hover { border-color: #dca9bd; background: #fff8fb; }
.home-secondary-section { padding-block: 84px; scroll-margin-top: 100px; }
.home-section-intro { max-width: 650px; margin-bottom: 28px; }
.home-section-intro .home-section-label,.home-results__heading .home-section-label,.home-partner .home-section-label { display: inline-block; border: 0; padding-bottom: 0; margin-bottom: 13px; }
.home-section-intro h2,.home-results__heading h2,.home-partner h2 { margin: 0 0 13px; font-size: clamp(27px,2.4vw,38px); letter-spacing: -1.25px; line-height: 1.17; }
.home-section-intro p,.home-partner p { color: #84757e; font-size: 14px; line-height: 1.7; margin: 0; }
.home-how { border-top: 1px solid #f1e9ec; }
.home-how__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.home-how__grid article { border: 1px solid #ebe3e7; border-radius: 15px; background: #fff; padding: 26px; display: grid; align-content: start; }
.home-step-icon { display: grid; place-items: center; background: #fbedf2; color: #ae4e76; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 19px; }
.home-how__grid small { color: #b25880; font-size: 11px; }
.home-how__grid h3 { margin: 10px 0 8px; font-size: 17px; }
.home-how__grid p { margin: 0; color: #82747d; font-size: 13px; line-height: 1.65; }
.home-results { padding-block: 80px; background: #fcf9fa; scroll-margin-top: 90px; }
.home-results__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-text-link { display: inline-flex; gap: 6px; align-items: center; color: #ad5077; font-size: 12px; font-weight: 750; white-space: nowrap; }
.home-doctor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.home-doctor-card { min-width: 0; border: 1px solid #ece2e8; background: white; border-radius: 15px; padding: 23px; }
.home-doctor-card__top { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.home-doctor-card__avatar { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; background: #f5e4ec; color: #ad5077; font-size: 14px; font-weight: 800; flex: none; }
.home-doctor-card__specialty { color: #a3567a; background: #fcf2f6; padding: 6px 10px; border-radius: 20px; font-size: 11px; }
.home-doctor-card h3 { font-size: 17px; margin: 0 0 10px; }
.home-doctor-card__city { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9a8793; margin: 0 0 12px; }
.home-doctor-card__desc { font-size: 12px; line-height: 1.65; color: #82747d; min-height: 40px; margin: 0 0 15px; }
.home-doctor-card__action { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; background: transparent; border: 0; border-top: 1px solid #f0e7eb; text-align: left; color: #ad5077; font-size: 12px; font-weight: 750; cursor: pointer; }
.home-doctor-card__details { margin-top: 15px; padding: 14px; border-radius: 10px; background: #fbf4f7; font-size: 12px; }
.home-doctor-card__details p { margin: 5px 0 0; color: #82747d; }
.home-no-results { text-align: center; padding: 35px; background: white; border: 1px dashed #d8b4c5; border-radius: 14px; }
.home-no-results h3 { font-size: 18px; }
.home-no-results p { font-size: 13px; color: #81747c; }
.home-outline-button { border: 1px solid #dfbbc9; color: #a34b72; background: white; border-radius: 9px; padding: 11px 18px; cursor: pointer; }
.home-partner { margin-block: 84px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 44px 54px; background: #f9f0f4; border: 1px solid #f0e0e7; border-radius: 18px; scroll-margin-top: 100px; }
.home-partner h2 { color: #412d38; }
.home-partner p { max-width: 620px; }
.home-partner__button { border: 0; background: #b8587d; color: white; border-radius: 10px; padding: 15px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; font-weight: 750; cursor: pointer; }
.home-partner__button:hover { background: #9d4066; }
.home-faq { border-top: 1px solid #eee6eb; display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.home-faq__items { border-top: 1px solid #eee3e8; }
.home-faq .bmf-accordion__trigger { padding-block: 20px; }
.home-footer { border-top: 1px solid #e9e1e6; background: #fcfafb; }
.home-footer__inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.home-logo--footer { font-size: 18px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.home-footer nav a { font-size: 12px; color: #7e7179; }
.home-footer nav a:hover { color: #b5567c; }
.home-login-form { display: grid; gap: 16px; }
.home-login-form label { display: grid; gap: 7px; color: #574a51; font-size: 12px; font-weight: 700; }
.home-login-form input { min-height: 45px; width: 100%; border: 1px solid #e7dfe3; border-radius: 9px; padding: 10px 13px; font-size: 13px; }
.home-login-form input:focus { outline: 2px solid #e9bacd; outline-offset: 1px; }
.home-login-form__submit { border: none; background: #b8587d; border-radius: 9px; padding: 13px; font-size: 13px; font-weight: 750; color: white; cursor: pointer; }
.home-login-form__message { margin: 0; padding: 12px; background: #fff8fb; border: 1px solid #eed9e2; border-radius: 9px; color: #80556b; font-size: 12px; line-height: 1.5; }
#ricerca,#verifica,#faq { scroll-margin-top: 95px; }
@media(max-width:1100px){
    .home-hero { gap: 35px; }
    .home-hero h1 { font-size: clamp(34px,4vw,47px); letter-spacing: -1.7px; }
    .home-hero__visual { min-height: 300px; }
    .home-discovery__grid { gap: 28px; }
    .home-city-card { padding-inline: 10px; }
    .home-doctor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px){
    .home-header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 18px var(--bmf-public-gutter); background: #fff; border-bottom: 1px solid #e9e1e6; box-shadow: 0 14px 32px #493b441a; flex-direction: column; align-items: stretch; gap: 0; }
    .home-header__nav.is-open { display: flex; }
    .home-header__nav a { padding: 13px 4px; font-size: 13px; }
    .home-header__login--mobile { display: inline-flex; margin-top: 10px; }
    .home-header__actions > .home-header__login { display: none; }
    .home-header__actions { margin-left: auto; }
    .home-header__toggle { display: grid; place-items: center; border: 1px solid #ebe1e6; color: #a04a6d; background: white; width: 39px; height: 39px; border-radius: 9px; cursor: pointer; }
    .home-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 45px 50px; }
    .home-hero h1 { font-size: clamp(33px,6vw,49px); }
    .home-hero__visual { min-height: 270px; aspect-ratio: 1.85; }
    .home-verification__grid { gap: 0; }
    .home-verification__grid article { padding-right: 15px; }
    .home-verification__grid article + article { padding-left: 15px; }
    .home-discovery__grid { grid-template-columns: 1fr; gap: 36px; }
    .home-faq { grid-template-columns: 1fr; gap: 12px; }
}
@media(max-width:560px){
    .home-header__inner { height: 64px; }
    .home-logo { font-size: 20px; }
    .home-hero { padding-block: 38px 45px; }
    .home-hero h1 { font-size: clamp(32px,8.5vw,43px); letter-spacing: -1.5px; }
    .home-hero h1 br { display: none; }
    .home-hero__lead { font-size: 13px; }
    .home-hero__search { grid-template-columns: 1fr; }
    .home-hero__search-field { min-height: 59px; }
    .home-hero__search-field--treatment { border-left: 0; border-top: 1px solid #e9e1e6; }
    .home-hero__search-button { margin: 0; min-height: 51px; }
    .home-hero__assurances { gap: 6px; font-size: 10px; }
    .home-hero__visual { min-height: 210px; aspect-ratio: 1.4; }
    .home-verification,.home-discovery { padding-block: 43px; }
    .home-verification__grid { grid-template-columns: 1fr; }
    .home-verification__grid article { padding: 17px 0; }
    .home-verification__grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid #eee5e9; }
    .home-treatments-list { grid-template-columns: 1fr; }
    .home-treatment-link:nth-child(even) { border-left: 0; padding-left: 0; }
    .home-cities-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-secondary-section { padding-block: 56px; }
    .home-how__grid,.home-doctor-grid { grid-template-columns: 1fr; }
    .home-results { padding-block: 55px; }
    .home-results__heading { flex-direction: column; align-items: start; }
    .home-partner { margin-block: 55px; padding: 30px 23px; flex-direction: column; align-items: start; }
    .home-partner__button { width: 100%; }
    .home-footer__inner { padding-block: 30px; flex-direction: column; align-items: start; }
    .home-footer nav { gap: 16px; }
}
@media(prefers-reduced-motion:reduce){.home-page *{scroll-behavior:auto!important;transition:none!important}}
