/* Termoconfort CMP — isolated styles */
#tc-cmp-root{font-family:Arial,Helvetica,sans-serif;position:relative;z-index:9999}
#tc-cmp-root *{box-sizing:border-box}
#tc-cmp-root [hidden]{display:none!important}
.tc-cmp-banner{position:fixed;bottom:20px;right:20px;left:auto;width:min(425px,calc(100vw - 40px));max-height:min(82dvh,760px);overflow-y:auto;z-index:9999;color:#192735;background:#fff;box-shadow:0 12px 55px rgba(12,39,59,.23);border:1px solid #d8e7ee;border-top:4px solid #2fa3ec;border-radius:16px;padding:20px 21px 17px}
.tc-cmp-content{max-width:100%;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:16px}
.tc-cmp-kicker{color:#2686ba!important;font-size:12px!important;font-weight:700!important;letter-spacing:.13em!important;text-transform:uppercase!important;margin:0 0 7px!important}
#tc-cmp-root h2{font-family:inherit;font-size:clamp(22px,2vw,28px)!important;line-height:1.1!important;margin:0 0 8px!important;color:#132b3c!important;font-weight:800!important}
#tc-cmp-root h3{font-family:inherit;font-size:16px!important;line-height:1.3!important;margin:0 0 6px!important;color:#173348!important;font-weight:700!important}
#tc-cmp-root p{font-size:14px;line-height:1.55;color:#40576b;margin:0}
#tc-cmp-root a{color:#14689b;text-decoration:underline;text-underline-offset:2px}
.tc-cmp-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.tc-cmp-actions [data-cmp-action="customize"]{grid-column:1 / -1}
.tc-cmp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:8px;border:2px solid #177eb9;cursor:pointer;font:700 13px/1.2 inherit!important;letter-spacing:0!important;text-align:center;transition:filter .15s ease,background .15s ease;white-space:normal}
.tc-cmp-btn--solid{background:#1677ad;color:#fff}.tc-cmp-btn--line{background:#fff;color:#146d9f}
.tc-cmp-btn:hover{filter:brightness(.93)}.tc-cmp-btn:disabled{cursor:wait;opacity:.65}
#tc-cmp-root button:focus-visible,#tc-cmp-root a:focus-visible,#tc-cmp-root input:focus-visible{outline:3px solid #f2a54c!important;outline-offset:3px!important}
.tc-cmp-message{font-size:12px!important;color:#8a3600!important;min-height:0;max-width:100%;margin:9px 0 0!important}
/* Native <dialog> is centered by inset+auto margin: avoid doubling its UA centering with translate(). */
.tc-cmp-dialog{position:fixed;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:auto!important;transform:none!important;width:min(650px,calc(100vw - 26px));max-width:calc(100vw - 26px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;z-index:10001;padding:clamp(16px,3vw,28px);border-radius:16px;border:1px solid #bfd1df;background:white;color:#1b3549;box-shadow:0 24px 90px rgba(0,0,0,.32)}
.tc-cmp-dialog::backdrop{background:rgba(10,26,39,.56)}
/* Sticky heading keeps the close X within reach when the modal scrolls. */
.tc-cmp-dialog-head{position:sticky;top:-1px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0 12px;margin:-8px 0 14px;background:#fff;border-bottom:1px solid #e2eaf0}
.tc-cmp-dialog-head>div{min-width:0}
.tc-cmp-dialog-head h2{overflow-wrap:anywhere}
.tc-cmp-dialog .tc-cmp-close{position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;line-height:1;min-width:42px}
.tc-cmp-close{color:#244d68;font-size:21px;width:42px;height:42px;flex-shrink:0;border:1px solid #b8cedb;background:white;border-radius:50%;cursor:pointer}
.tc-cmp-categories{margin:18px 0 14px;display:grid;gap:10px}
.tc-cmp-category{border:1px solid #cbdbe4;background:#f7fafc;padding:13px 14px;border-radius:10px;display:flex;align-items:center;gap:14px;justify-content:space-between;cursor:pointer;position:relative}
.tc-cmp-category>div{min-width:0;flex:1}.tc-cmp-category p{font-size:13px!important}
.tc-cmp-locked{font-size:12px;white-space:nowrap;color:#416a83;background:#e6eff5;padding:6px 9px;border-radius:50px}
.tc-cmp-category input{position:absolute;opacity:0;width:1px;height:1px;right:24px}
.tc-cmp-switch{width:45px;height:26px;flex-shrink:0;background:#afbfca;border-radius:30px;position:relative;transition:background .18s ease}
.tc-cmp-switch:before{content:"";position:absolute;width:20px;height:20px;top:3px;left:3px;background:white;border-radius:50%;transition:transform .18s ease;box-shadow:0 1px 3px #0002}
.tc-cmp-category input:checked + .tc-cmp-switch{background:#177eb9}
.tc-cmp-category input:checked + .tc-cmp-switch:before{transform:translateX(19px)}
.tc-cmp-category:focus-within{outline:3px solid #f2a54c;outline-offset:2px}
#tc-cmp-root .tc-cmp-small{font-size:12px;color:#557082;line-height:1.5;margin:14px 0}
.tc-cmp-dialog-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}
@media(max-width:780px){.tc-cmp-content{gap:13px}.tc-cmp-banner{max-height:78dvh;overflow:auto}.tc-cmp-dialog-actions{grid-template-columns:1fr 1fr}.tc-cmp-dialog-actions [data-cmp-action="save"]{grid-column:1/-1}}
@media(max-width:430px){.tc-cmp-banner{left:12px;right:12px;bottom:12px;width:auto;padding:18px 16px 16px;border-radius:14px}.tc-cmp-actions{grid-template-columns:1fr 1fr;gap:8px}.tc-cmp-actions [data-cmp-action="customize"]{grid-column:1 / -1}.tc-cmp-dialog-actions{grid-template-columns:1fr}.tc-cmp-dialog-actions [data-cmp-action="save"]{grid-column:auto}.tc-cmp-category{padding:12px}.tc-cmp-locked{white-space:normal}}
@media(prefers-reduced-motion:reduce){.tc-cmp-btn,.tc-cmp-switch,.tc-cmp-switch:before{transition:none}}

.tc-policy{max-width:890px;margin:auto}.tc-policy h2{margin:30px 0 9px;font-size:clamp(21px,2.5vw,27px);color:#1a3648}.tc-policy p,.tc-policy li{line-height:1.75}.tc-policy ul{padding-left:22px}.tc-policy-table{overflow-x:auto}.tc-policy table{width:100%;border-collapse:collapse;font-size:14px;min-width:650px}.tc-policy th,.tc-policy td{text-align:left;padding:12px;border-bottom:1px solid #dde5ea;vertical-align:top}.tc-policy th{background:#eef5f9}.tc-policy-button{padding:13px 18px;color:white;background:#157baa;border:0;border-radius:8px;font-weight:700;cursor:pointer}.tc-policy-button:focus-visible{outline:3px solid #edaa45;outline-offset:3px}

#tc-cmp-root .tc-cmp-revoke-wrap{margin:8px 0;text-align:left}.tc-cmp-revoke{border:0;background:transparent;padding:5px 0;color:#23638b;text-decoration:underline;cursor:pointer;font-size:13px;font-weight:700}

/* Compact bottom-left popup: style scoped to CMP only. */
.tc-cmp-switch{pointer-events:none}
#tc-cmp-root .tc-cmp-banner h2{font-size:23px!important;line-height:1.15!important;margin-bottom:8px!important}
#tc-cmp-root .tc-cmp-banner .tc-cmp-text>p:not(.tc-cmp-kicker){font-size:13px!important;line-height:1.6!important;color:#465f70!important}
#tc-cmp-root .tc-cmp-banner .tc-cmp-actions button{width:100%;font-size:13px!important;min-height:43px}
#tc-cmp-root .tc-cmp-preview-label{font-size:11px!important;line-height:1.45!important;margin-top:10px!important;padding:8px 10px;background:#edf6fb;color:#225574!important;border-radius:7px}
@media(max-width:359px){#tc-cmp-root .tc-cmp-banner .tc-cmp-actions button{font-size:12px!important;padding:8px 7px!important}}


/* Controllo cookie permanente: sinistra; popup compatto: destra. */
#tc-cmp-root .tc-cmp-launcher{
  position:fixed;left:18px;bottom:18px;z-index:10002;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:49px;padding:0 15px 0 13px;border:1px solid #b9dce9;
  border-radius:999px;background:#fff;color:#155e83;
  font:700 13px/1.1 Arial,Helvetica,sans-serif!important;
  box-shadow:0 8px 28px rgba(11,36,52,.23);cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease;
}
#tc-cmp-root .tc-cmp-launcher svg{display:block;width:23px;height:23px;flex:none}
#tc-cmp-root .tc-cmp-launcher:hover{transform:translateY(-2px);box-shadow:0 11px 30px rgba(11,36,52,.28)}
#tc-cmp-root .tc-cmp-launcher:active{transform:translateY(0)}
#tc-cmp-root .tc-cmp-banner{left:auto!important;right:20px!important}
@media(max-width:430px){
 #tc-cmp-root .tc-cmp-banner{left:12px!important;right:12px!important;bottom:12px!important;width:auto}
 #tc-cmp-root .tc-cmp-launcher{left:12px;bottom:12px;min-height:46px;padding:0 13px 0 11px}
 /* When the banner occupies most of a narrow viewport, avoid covering its buttons. */
 #tc-cmp-root.tc-cmp-popup-visible .tc-cmp-launcher{bottom:calc(var(--tc-popup-height, 320px) + 22px)}
}
@media(prefers-reduced-motion:reduce){#tc-cmp-root .tc-cmp-launcher{transition:none}}

/* Extra-short and narrow viewports: keep the whole dialog inside the visible screen. */
@media(max-width:430px){.tc-cmp-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}.tc-cmp-dialog-head{gap:8px}}
@media(max-height:520px){.tc-cmp-dialog{max-height:calc(100dvh - 16px);padding:12px 16px}.tc-cmp-dialog-head{padding-top:6px;padding-bottom:7px;margin-top:-6px;margin-bottom:10px}}
