/* DentalFAN: banner cookie (layout come visilay.com, colori DentalFAN).
   Regole scopate su #df-consent e forzate con !important contro gli stili globali del tema per button e h2. */
#df-consent{
	--dfc-ink:#0A2E36;--dfc-navy:#071C21;--dfc-body:#3B4A4F;--dfc-muted:#5B6B70;
	--dfc-green:#58D700;--dfc-green-dark:#00AD04;--dfc-action:#007A03;--dfc-action-hover:#0A2E36;
	--dfc-tint:#F3FBEC;--dfc-grey-bg:#EEF2F3;--dfc-grey-bg-hover:#E2E8EC;--dfc-border:#E2E8EC;
	--dfc-head:"Raleway",system-ui,sans-serif;--dfc-text:"Figtree",system-ui,sans-serif;
	position:fixed!important;inset:0!important;z-index:999999!important;pointer-events:none;
	font-family:var(--dfc-text);color:var(--dfc-body);margin:0!important;padding:0!important
}
#df-consent[hidden],#df-consent .dfc-banner[hidden],#df-consent .dfc-panel[hidden]{display:none!important}
#df-consent *,#df-consent *::before,#df-consent *::after{box-sizing:border-box}
#df-consent .dfc-overlay{position:absolute!important;inset:0!important;background:rgba(7,28,33,.5)!important;pointer-events:auto}
.dfc-on-policy #df-consent .dfc-overlay{display:none!important}

#df-consent .dfc-banner,#df-consent .dfc-panel{
	position:absolute!important;background:#fff!important;border:0!important;border-top:5px solid var(--dfc-green)!important;
	border-radius:16px!important;box-shadow:0 18px 50px rgba(7,28,33,.25)!important;pointer-events:auto;
	max-height:calc(100vh - 32px);overflow-y:auto;text-align:left!important
}
/* banner: in basso al centro, largo e basso */
#df-consent .dfc-banner{left:50%!important;bottom:16px!important;transform:translateX(-50%)!important;width:min(900px,calc(100vw - 40px))!important;padding:22px 28px!important}
#df-consent .dfc-panel{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(620px,calc(100vw - 32px))!important;padding:24px 28px!important}

#df-consent .dfc-title{
	font-family:var(--dfc-head)!important;font-size:28px!important;line-height:1.15!important;font-weight:700!important;
	letter-spacing:-.01em;color:var(--dfc-ink)!important;margin:0 0 8px!important;padding:0 40px 0 0!important;text-transform:none!important
}
#df-consent .dfc-title--panel{font-size:22px!important;padding-right:8px!important}
#df-consent .dfc-body{font-family:var(--dfc-text)!important;font-size:15px!important;line-height:1.55!important;font-weight:400!important;color:var(--dfc-body)!important;margin:0!important}
#df-consent .dfc-link{font-size:13px!important;color:var(--dfc-action)!important;text-decoration:underline!important;text-underline-offset:2px;margin-left:8px;white-space:nowrap;font-weight:600}
#df-consent .dfc-body .dfc-link:first-of-type{margin-left:6px}
#df-consent .dfc-panel .dfc-body .dfc-link{margin-left:0;font-size:inherit!important}
#df-consent .dfc-link:hover{color:var(--dfc-ink)!important}

#df-consent .dfc-actions{display:flex!important;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:16px;margin-top:18px!important}
#df-consent .dfc-btn{
	appearance:none!important;-webkit-appearance:none!important;font-family:var(--dfc-text)!important;font-size:15px!important;font-weight:700!important;
	line-height:1!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;text-shadow:none!important;
	padding:14px 26px!important;margin:0!important;border:2px solid transparent!important;border-radius:10px!important;box-shadow:none!important;
	cursor:pointer;min-height:46px;flex:0 0 auto;transition:background-color .16s,border-color .16s,color .16s!important
}
#df-consent .dfc-btn--primary{background:var(--dfc-action)!important;border-color:var(--dfc-action)!important;color:#fff!important}
#df-consent .dfc-btn--primary:hover,#df-consent .dfc-btn--primary:focus-visible{background:var(--dfc-action-hover)!important;border-color:var(--dfc-action-hover)!important;color:#fff!important}
#df-consent .dfc-btn--grey{background:var(--dfc-grey-bg)!important;border-color:var(--dfc-grey-bg)!important;color:var(--dfc-ink)!important}
#df-consent .dfc-btn--grey:hover{background:var(--dfc-grey-bg-hover)!important;border-color:var(--dfc-grey-bg-hover)!important}
#df-consent .dfc-btn:focus{outline:none!important}
#df-consent .dfc-btn:focus-visible,#df-consent .dfc-close:focus-visible,#df-consent .dfc-link:focus-visible,#df-consent .dfc-switch input:focus-visible+.dfc-switch__track{outline:3px solid var(--dfc-green)!important;outline-offset:2px!important}

/* X di chiusura: solo il segno, grigia */
#df-consent .dfc-close{
	appearance:none!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
	font-family:var(--dfc-text)!important;font-size:28px!important;font-weight:400!important;line-height:1!important;color:var(--dfc-muted)!important;
	cursor:pointer;padding:0 4px!important;margin:0!important;min-height:0!important;width:auto!important
}
#df-consent .dfc-close:hover{color:var(--dfc-ink)!important}
#df-consent .dfc-close--banner{position:absolute!important;top:14px!important;right:18px!important;opacity:.7}
#df-consent .dfc-close--banner:hover{opacity:1}

#df-consent .dfc-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#df-consent .dfc-panel .dfc-body{margin-bottom:10px!important}
#df-consent .dfc-cats{display:grid}
#df-consent .dfc-cat{border-top:1px solid var(--dfc-border);padding:14px 0}
#df-consent .dfc-cat__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#df-consent .dfc-cat__label{font-family:var(--dfc-head);font-size:16px;font-weight:700;color:var(--dfc-ink)}
#df-consent .dfc-cat__locked{font-size:12px;font-weight:700;color:var(--dfc-action);text-transform:uppercase;letter-spacing:.05em;background:var(--dfc-tint);padding:5px 10px;border-radius:999px}
#df-consent .dfc-cat__desc{font-size:14px!important;line-height:1.5!important;color:var(--dfc-muted)!important;margin:6px 0 0!important}

#df-consent .dfc-switch{position:relative;display:inline-block;width:48px;height:28px;flex:0 0 auto;margin:0!important}
#df-consent .dfc-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
#df-consent .dfc-switch__track{position:absolute;inset:0;background:#C9D3D6;border-radius:999px;transition:background .15s;pointer-events:none}
#df-consent .dfc-switch__track::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(7,28,33,.3);transition:transform .15s}
#df-consent .dfc-switch input:checked+.dfc-switch__track{background:var(--dfc-green-dark)}
#df-consent .dfc-switch input:checked+.dfc-switch__track::after{transform:translateX(20px)}

/* contenuti bloccati (mappa Contatti) */
.dfc-blocked{position:relative;min-height:320px;border:1px dashed #C9D3D6;border-radius:16px;background:#F3FBEC;display:grid;place-items:center;padding:24px;box-sizing:border-box;width:100%;height:100%}
.dfc-blocked iframe{display:none}
.dfc-blocked.is-unlocked{border:0;background:none;padding:0;min-height:0;display:block}
.dfc-blocked.is-unlocked iframe{display:block;width:100%}
.dfc-blocked.is-unlocked .dfc-blocked__inner{display:none}
.dfc-blocked__inner{text-align:center;max-width:420px}
.dfc-blocked__text{font-family:"Figtree",system-ui,sans-serif;font-size:15px;line-height:1.6;color:#3B4A4F;margin:0 0 14px}
.dfc-blocked__btn{appearance:none;border:0!important;background:#007A03!important;color:#fff!important;font-family:"Figtree",system-ui,sans-serif;font-size:15px!important;font-weight:700!important;padding:12px 20px!important;border-radius:10px!important;cursor:pointer;text-transform:none!important;letter-spacing:0!important;line-height:1.2!important;min-height:44px}
.dfc-blocked__btn:hover{background:#0A2E36!important}

.dfc-reopen{cursor:pointer}

@media (max-width:720px){
	#df-consent .dfc-banner,#df-consent .dfc-panel{left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;transform:none!important;width:auto!important;padding:16px 18px!important}
	#df-consent .dfc-title{font-size:22px!important;margin:0 0 6px!important;padding-right:28px!important}
	#df-consent .dfc-title--panel{font-size:20px!important}
	#df-consent .dfc-body{font-size:14px!important;line-height:1.5!important}
	#df-consent .dfc-link{font-size:12px!important;white-space:normal}
	#df-consent .dfc-actions{gap:8px;margin-top:12px!important}
	#df-consent .dfc-btn{flex:1 1 0;min-width:0;padding:12px!important;min-height:44px}
	#df-consent .dfc-close--banner{top:10px!important;right:12px!important}
}
@media (max-width:359px){#df-consent .dfc-actions{flex-wrap:wrap}#df-consent .dfc-btn{flex:1 1 100%}}
@media (prefers-reduced-motion:reduce){#df-consent *{transition:none!important}}
.df-widget-google_maps .dfc-blocked{min-height:300px}
