/* Team Migliorati / revisione testata. Regole circoscritte: nessun reset dei widget immobiliari. */
body.tmr2026 {
    --tmr-navy: #102643;
    --tmr-red: #c51f3a;
    --tmr-cream: #f8f6f1;
    --tmr-line: #dce3ec;
    --tmr-admin-offset: 0px;
    --tmr-quickbar-height: 80px;
}
body.tmr2026.admin-bar { --tmr-admin-offset: 32px; }
body.tmr2026 .tmr2026-quickbar {
    position: sticky; top: var(--tmr-admin-offset); z-index: 10001;
    background: var(--tmr-navy); color: #fff;
    border-bottom: 3px solid var(--tmr-red);
    box-shadow: 0 5px 20px rgba(16,38,67,.12);
}
.tmr2026-quickbar-inner {
    max-width: 1560px; margin: 0 auto; min-height: 77px; padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    box-sizing: border-box;
}
body.tmr2026 .tmr2026-brand { display: flex; flex-direction: column; flex-shrink: 0; color: #fff; text-decoration: none; gap: 5px; }
.tmr2026-brand-name { font-size: 16px; line-height: 1.15; font-weight: 700; letter-spacing: .09em; }
.tmr2026-brand-detail { font-size: 10px; line-height: 1.3; letter-spacing: .07em; color: #d7e1ef; }
.tmr2026-services { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
body.tmr2026 .tmr2026-service {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 11px 14px; box-sizing: border-box;
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3;
    color: #fff; background: transparent; border: 1px solid transparent; border-radius: 4px;
    text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, border-color .18s ease;
}
body.tmr2026 .tmr2026-service:hover { color: #fff; background: #263c59; border-color: #546780; }
body.tmr2026 .tmr2026-service-primary { background: #fff; border-color: #fff; color: var(--tmr-navy); }
body.tmr2026 .tmr2026-service-primary:hover { background: var(--tmr-cream); border-color: var(--tmr-cream); color: var(--tmr-navy); }
body.tmr2026 .tmr2026-phone { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; text-decoration: none; padding: 12px 0; }
body.tmr2026 .tmr2026-phone:hover { text-decoration: underline; }
.tmr2026-quickbar a:focus-visible, .tmr2026-quickbar button:focus-visible { outline: 3px solid #f6cd67; outline-offset: 3px; }
body.tmr2026 #masthead { background: #fff; box-shadow: none; border-bottom: 1px solid var(--tmr-line); }
body.tmr2026 #masthead .rh-ultra-logo img { max-height: 74px; width: auto; max-width: 230px; object-fit: contain; }
body.tmr2026 #masthead .rh-ultra-main-menu > li > a { font-size: 14px; font-weight: 600; color: var(--tmr-navy); }
body.tmr2026 #masthead .rh-ultra-main-menu > li > a:hover { color: var(--tmr-red); }
body.tmr2026 .rh-sticky-header, body.tmr2026 .rh-mobile-sticky-header { top: calc(var(--tmr-admin-offset) + var(--tmr-quickbar-height)); }
body.tmr2026 #contact-form, body.tmr2026 #tmr2026-candidatura { scroll-margin-top: calc(var(--tmr-admin-offset) + var(--tmr-quickbar-height) + 40px); }
/* Dialogo nativo: focus e livello superiore gestiti dal browser. */
body.tmr2026 .tmr2026-dialog {
    box-sizing: border-box; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
    padding: 34px; border: 1px solid var(--tmr-line); border-radius: 12px; margin: auto;
    color: var(--tmr-navy); background: #fff; box-shadow: 0 30px 100px rgba(16,38,67,.28); overflow-y: auto;
}
.tmr2026-dialog::backdrop { background: rgba(10,22,39,.66); }
.tmr2026-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
body.tmr2026 .tmr2026-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .13em; color: #6b4e24; }
body.tmr2026 .tmr2026-dialog h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--tmr-navy); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0; font-weight: 400; }
body.tmr2026 .tmr2026-dialog-close { min-width: 44px; min-height: 44px; border: 1px solid var(--tmr-line); border-radius: 50%; padding: 0; background: #fff; color: var(--tmr-navy); cursor: pointer; font: 30px/1 Arial, sans-serif; }
body.tmr2026 .tmr2026-intro { font-size: 15px; color: #46546b; line-height: 1.6; margin: 22px 0; }
.tmr2026-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 15px; }
body.tmr2026 .tmr2026-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--tmr-navy); }
body.tmr2026 .tmr2026-fields input { box-sizing: border-box; display: block; width: 100%; min-height: 48px; border: 1px solid #8290a3; border-radius: 4px; background: #fff; color: #13243e; padding: 10px 12px; font-family: inherit; font-size: 16px; line-height: 1.4; }
body.tmr2026 .tmr2026-fields input::placeholder { color: #647085; opacity: 1; font-size: 14px; }
body.tmr2026 .tmr2026-calculate { display: flex; justify-content: space-between; gap: 20px; width: 100%; margin: 22px 0; border: 0; border-radius: 4px; min-height: 48px; padding: 14px 18px; background: var(--tmr-navy); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
body.tmr2026 .tmr2026-calculate:hover { background: #203f68; }
body.tmr2026 .tmr2026-result { background: var(--tmr-cream); border-left: 3px solid var(--tmr-red); padding: 20px; margin: 0 0 16px; }
body.tmr2026 .tmr2026-result small { display: block; color: #49586e; font-size: 13px; }
body.tmr2026 .tmr2026-result strong { display: block; margin-top: 5px; font-size: 36px; font-weight: 500; line-height: 1.25; color: var(--tmr-navy); }
body.tmr2026 .tmr2026-notice { color: #526078; font-size: 12px; line-height: 1.6; margin: 18px 0; }
body.tmr2026 .tmr2026-dialog-contact { color: var(--tmr-navy); text-decoration: underline; font-size: 14px; font-weight: 600; }
.tmr2026-dialog input:focus-visible, .tmr2026-dialog button:focus-visible, .tmr2026-dialog a:focus-visible { outline: 3px solid #2a67af; outline-offset: 3px; }
body.tmr2026 [hidden].tmr2026-result, body.tmr2026 [hidden].tmr2026-calculator-open { display: none !important; }
@media (max-width: 1200px) {
    .tmr2026-quickbar-inner { padding: 14px 20px; gap: 12px; }
    .tmr2026-brand-name { font-size: 14px; }
    body.tmr2026 .tmr2026-service { padding: 11px 10px; font-size: 12px; }
}
@media (max-width: 960px) {
    .tmr2026-quickbar-inner { flex-wrap: wrap; padding: 12px 18px; gap: 10px 16px; }
    .tmr2026-brand { order: 0; }
    body.tmr2026 .tmr2026-phone { order: 1; margin-left: auto; padding: 10px 0; }
    .tmr2026-services { order: 2; flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
    body.tmr2026 .tmr2026-service { white-space: normal; text-align: center; font-size: 12px; padding: 10px 8px; }
}
@media (max-width: 782px) { body.tmr2026.admin-bar { --tmr-admin-offset: 46px; } }
@media (max-width: 600px) { body.tmr2026.admin-bar { --tmr-admin-offset: 0px; } }
@media (max-width: 520px) {
    .tmr2026-services { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tmr2026-brand-detail { font-size: 9px; }
    body.tmr2026 .tmr2026-service { border-color: #52637d; }
    body.tmr2026 .tmr2026-service-primary { border-color: #fff; }
    body.tmr2026 .tmr2026-dialog { padding: 24px 20px; }
    .tmr2026-fields { grid-template-columns: 1fr; }
    body.tmr2026 .tmr2026-quickbar { position: relative; top: auto; }
    body.tmr2026 .rh-sticky-header, body.tmr2026 .rh-mobile-sticky-header { top: var(--tmr-admin-offset); }
}
@media (prefers-reduced-motion: reduce) { body.tmr2026 .tmr2026-service { transition: none; } }
