/* Componenti condivisi: header, menu mobile e footer. */
#header-main.mc-header, #menu-mobile.mc-mobile, #footer.mc-footer {
    --mc-ink: #183b3d;
    --mc-teal: #14676b;
    --mc-line: #d7e6e2;
    font-family: 'Jost', sans-serif;
    color: var(--mc-ink);
}
.mc-header *, .mc-mobile *, .mc-footer * { box-sizing: border-box; }
#header-main.mc-header { position: sticky !important; top: 0 !important; width: 100%; z-index: 1020; background: #fffffff5; border-bottom: 1px solid var(--mc-line); box-shadow: none; }
.mc-header-inner { width: min(1560px, calc(100% - 64px)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mc-logo { flex: 0 0 192px; display: block; }
.mc-logo img { display: block; width: 192px; height: auto !important; max-width: 100%; }
.mc-desktop-nav { min-width: 0; }
.mc-desktop-nav ul { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; list-style: none; }
.mc-desktop-nav a { display: flex; align-items: center; min-height: 52px; color: var(--mc-ink); font-size: 15px; line-height: 1.3; font-weight: 500; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.mc-desktop-nav a:hover, .mc-desktop-nav a[aria-current="page"], .mc-desktop-nav .active > a { color: var(--mc-teal); border-color: var(--mc-teal); }
.mc-book { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 18px; border: 1px solid #14676b; border-radius: 12px; background: #14676b; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.mc-book:hover { color: #fff; background: #104f52; }
.mc-header > .mc-header-inner > .mc-book { flex-shrink: 0; white-space: nowrap; }
.mc-toggle, .mc-close { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; padding: 0; border: 1px solid #d7e6e2; border-radius: 12px; background: #eef6f2; color: #14676b; cursor: pointer; }
.mc-toggle { display: none; }
.mc-header a:focus-visible, .mc-header button:focus-visible, .mc-mobile a:focus-visible, .mc-mobile button:focus-visible, .mc-footer a:focus-visible { outline: 3px solid #67bda9; outline-offset: 4px; }
#menu-mobile.mc-mobile { width: min(420px, 100%); background: #fff; }
.mc-mobile-top { padding: 22px 24px; border-bottom: 1px solid var(--mc-line); gap: 16px; }
.mc-mobile-body { padding: 12px 24px 28px; overscroll-behavior: contain; }
.mc-mobile-links { list-style: none; margin: 0; padding: 0; }
.mc-mobile-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; min-height: 54px; border-bottom: 1px solid #e5eeea; color: var(--mc-ink); font-size: 18px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.mc-mobile-links a > span { color: var(--mc-teal); }
.mc-mobile-links a[aria-current="page"], .mc-mobile-links .active > a { color: var(--mc-teal); background: #eef6f2; padding-inline: 12px; border-radius: 10px; }
.mc-mobile-contact { margin-top: 24px; background: #f3f8f5; border-radius: 18px; padding: 22px; }
.mc-mobile-contact .mc-book { width: 100%; margin-bottom: 20px; }
.mc-mobile-contact p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--mc-ink); overflow-wrap: anywhere; }
.mc-mobile-contact a:not(.mc-book) { color: var(--mc-teal); }
.mc-mobile-contact .mc-help { display: inline-block; min-height: 34px; font-size: 17px; font-weight: 600; }
#footer.mc-footer { background: #102e30; padding: 64px 0 0; color: #e4efeb; }
.mc-footer-inner { width: min(1280px, calc(100% - 64px)); margin: auto; }
.mc-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 64px; padding-bottom: 44px; }
.mc-footer-logo { display: inline-block; padding: 16px 20px; background: #fff; border-radius: 16px; }
.mc-footer-logo img { display: block; width: 192px; height: auto !important; }
#footer.mc-footer p { font-size: 15px; line-height: 1.65; color: #c4d9d2; margin: 20px 0 0; }
#footer.mc-footer h2 { color: #fff; font-family: inherit; font-size: 19px; font-weight: 500; line-height: 1.3; margin: 4px 0 20px; }
#footer.mc-footer a { text-decoration: none; }
#footer.mc-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mc-footer-links { list-style: none; padding: 0; margin: 0; }
.mc-footer-links a { display: inline-block; padding-block: 7px; color: #e4efeb; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.mc-footer-grid .mc-book { margin-top: 20px; color: #fff; background: #14676b; }
.mc-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.mc-social a { display: inline-flex; align-items: center; gap: 14px; min-height: 42px; padding: 8px 12px; border: 1px solid #ffffff35; border-radius: 10px; color: #fff; font-size: 14px; }
.mc-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px; border-top: 1px solid #ffffff25; }
#footer.mc-footer .mc-footer-bottom p { margin: 0; font-size: 13px; }
.mc-footer-bottom p img { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }
.mc-footer-bottom a { color: #e4efeb; }
.mc-footer-bottom nav { display: flex; flex-shrink: 0; gap: 20px; font-size: 13px; }
.mc-mobile-bar { display: none; }
/* La grafica delle recensioni rimane nel partial _reviews.twig. */
.hm-home .mc-reviews .mc-reviews-title { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; font-weight: 500; }
.hm-home .mc-reviews .mc-reviews-title span { color: #14676b !important; }
.hm-home .mc-reviews .card-review { padding: 24px; height: 100%; }
.hm-home .mc-reviews .mio-dott-img { width: 32px; height: 32px; flex-shrink: 0; }
.hm-home .mc-reviews .card-review .fs-3 { font-size: 20px !important; line-height: 1.3; }
.hm-home .mc-reviews .card-review .small { font-size: 13px; }
.hm-home .mc-reviews .review-text { margin-top: 18px; }
.hm-home .mc-reviews .review-text p { font-size: 16px; line-height: 1.65; }
/* Mantiene il pulsante Torna su sopra badge privacy e Google reCAPTCHA. */
.progress-wrap { bottom: 150px !important; }

@media (max-width: 1439px) {
    .mc-header > .mc-header-inner > .mc-book { display: none; }
    .mc-header-inner { width: calc(100% - 48px); }
    .mc-logo { flex-basis: 180px; }
    .mc-logo img { width: 180px; }
    .mc-desktop-nav ul { gap: 14px; }
    .mc-desktop-nav a { font-size: 14px; }
}
@media (max-width: 1150px) {
    .mc-desktop-nav { display: none; }
    .mc-toggle { display: inline-flex; }
    .mc-header-inner { min-height: 80px; }
    .mc-footer-grid { gap: 32px; }
}
@media (max-width: 767px) {
    .mc-header-inner { width: calc(100% - 36px); min-height: 76px; }
    .mc-footer-inner { width: calc(100% - 36px); }
    #footer.mc-footer { padding-top: 44px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mc-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .mc-footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
    .mc-mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1025; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d7e6e2; box-shadow: 0 -4px 24px #102e3012; }
    #footer.mc-footer .mc-mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 6px; border-radius: 10px; color: #14676b; background: #edf6f2; font-size: 13px; font-weight: 600; }
    #footer.mc-footer .mc-mobile-bar a:last-child { background: #14676b; color: #fff; gap: 8px; }
    .progress-wrap { bottom: calc(155px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 380px) {
    .mc-logo { flex-basis: 166px; }
    .mc-logo img { width: 166px; }
    .mc-mobile-top { padding-inline: 18px; }
    .mc-mobile-body { padding-inline: 18px; }
}
