
/* Almond Tree — cookie banner e preferenze, versione 1 */
.at-cookie-banner,.at-cookie-dialog{font-family:Arial,system-ui,-apple-system,sans-serif;letter-spacing:normal;color:#263e36}
.at-cookie-banner{position:fixed;z-index:9000;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #d9e2d8;box-shadow:0 -12px 48px rgba(23,53,40,.16);max-height:min(75vh,500px);overflow-y:auto;overscroll-behavior:contain}
.at-cookie-banner[hidden]{display:none!important}
.at-cookie-inner{width:min(100% - 72px,1280px);margin:auto;padding:25px 0 22px}
.at-cookie-kicker{margin:0 0 8px;font-size:10px;font-weight:800;letter-spacing:.15em;color:#6c816e;line-height:1.4}
.at-cookie-symbol{font-size:15px;margin-right:5px;color:#8b9c88}
.at-cookie-copy h2{font-family:Arial,system-ui,sans-serif;margin:0 0 9px;color:#263e36;font-size:clamp(20px,2.1vw,26px);letter-spacing:-.035em;line-height:1.2}
.at-cookie-copy p{font-size:14px;line-height:1.57;max-width:1050px;color:#4b6151;margin:0}
.at-cookie-copy a,.at-cookie-policy-link{text-decoration:underline;text-underline-offset:3px;color:#345842;font-weight:700}
.at-cookie-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px}
.at-cookie-decision-actions{display:flex;align-items:center;gap:12px}
.at-cookie-btn{cursor:pointer;min-height:45px;border-radius:7px;border:1px solid transparent;font-family:Arial,system-ui,sans-serif;font-size:13px;font-weight:700;letter-spacing:0;padding:12px 22px;line-height:1.35;transition:background .18s,transform .18s}
.at-cookie-btn:hover{transform:translateY(-1px)}
.at-cookie-btn:focus-visible,.at-cookie-modal-close:focus-visible,.at-cookie-policy-link:focus-visible{outline:3px solid #5a846b;outline-offset:3px}
.at-cookie-btn--primary{color:#fff;background:#526e56;border-color:#526e56}
.at-cookie-btn--primary:hover{background:#3e5842}
.at-cookie-btn--outline{color:#35523f;background:#fff;border-color:#91a594}
.at-cookie-btn--outline:hover{background:#edf2eb}
.at-cookie-btn--secondary{color:#35523f;background:#edf2eb;border-color:#edf2eb}
.at-cookie-btn--secondary:hover{background:#e1eae0}
.at-cookie-decision-actions .at-cookie-btn{min-width:145px}
.at-cookie-dialog{position:fixed;z-index:9100;width:min(760px,calc(100% - 36px));max-height:min(87vh,820px);border:1px solid #dce5dc;border-radius:13px;padding:0;background:#fff;box-shadow:0 22px 90px rgba(11,37,22,.25);overflow:hidden;color:#243c2e}
.at-cookie-dialog:not([open]){display:none}
.at-cookie-dialog::backdrop{background:rgba(16,38,27,.45)}
.at-cookie-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 31px 20px;border-bottom:1px solid #e4ebe4}
.at-cookie-modal-header h2{font-family:Arial,system-ui,sans-serif;font-size:clamp(24px,3vw,35px);line-height:1.17;letter-spacing:-.035em;margin:0;max-width:560px;color:#263e36}
.at-cookie-modal-close{background:#f0f3ee;border:0;color:#415845;width:36px;height:36px;border-radius:8px;flex:0 0 36px;font-size:26px;line-height:1;cursor:pointer}
.at-cookie-modal-content{padding:22px 31px 20px;overflow-y:auto;max-height:calc(min(87vh,820px) - 225px)}
.at-cookie-modal-content>p{font-size:14px;color:#4f6253;line-height:1.65;margin:0 0 15px}
.at-cookie-category{display:flex;justify-content:space-between;gap:28px;padding:20px 0;border-top:1px solid #e4ebe4;align-items:center}
.at-cookie-category-info{min-width:0;max-width:520px}
.at-cookie-category-info h3{font-family:Arial,system-ui,sans-serif;font-size:17px;line-height:1.3;color:#294235;margin:0 0 5px;letter-spacing:0}
.at-cookie-category-info p{font-size:13px;color:#607365;line-height:1.54;margin:0}
.at-cookie-toggle-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:86px;color:#718375;font-size:11px;font-weight:700;white-space:nowrap}
.at-cookie-toggle-label input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.at-cookie-toggle{width:54px;height:29px;border-radius:30px;background:#d9dede;position:relative;display:block;flex:none}
.at-cookie-toggle:before{content:'×';position:absolute;top:3px;left:3px;border-radius:50%;width:23px;height:23px;display:flex;align-items:center;justify-content:center;background:#fff;color:#8e9691;font-size:17px;line-height:1}
.at-cookie-toggle-label input:checked+.at-cookie-toggle{background:#c5dfcb}
.at-cookie-toggle-label input:checked+.at-cookie-toggle:before{content:'✓';left:auto;right:3px;color:#467e54}
.at-cookie-modal-content .at-cookie-fineprint{padding:12px 15px;background:#f4f7f2;border-left:3px solid #8b9c88;font-size:12px;color:#536957;margin:8px 0 0}
.at-cookie-modal-footer{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:17px 31px;border-top:1px solid #e4ebe4;background:#fbfcfa}
.at-cookie-modal-footer .at-cookie-btn{min-width:125px}
.at-cookie-dialog button{touch-action:manipulation}
@media(max-width:760px){.at-cookie-inner{width:calc(100% - 36px);padding:20px 0}.at-cookie-copy p{font-size:13px}.at-cookie-actions{flex-direction:column;align-items:stretch;gap:12px}.at-cookie-actions>.at-cookie-btn{width:100%}.at-cookie-decision-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.at-cookie-decision-actions .at-cookie-btn{width:100%;min-width:0}.at-cookie-modal-header{padding:22px 19px 16px}.at-cookie-modal-content{padding:17px 19px;max-height:calc(min(87vh,820px) - 225px)}.at-cookie-modal-footer{padding:14px 19px;display:grid;grid-template-columns:1fr 1fr}.at-cookie-modal-footer .at-cookie-btn{min-width:0;padding:11px 8px}.at-cookie-modal-footer [data-cookie-save]{grid-column:1/-1}.at-cookie-category{gap:14px}.at-cookie-category-info p{font-size:12px}.at-cookie-category-info h3{font-size:15px}}
@media(max-width:390px){.at-cookie-copy p{font-size:12px}.at-cookie-btn{font-size:12px;padding:10px 13px}.at-cookie-modal-content{max-height:calc(min(87vh,820px) - 240px)}.at-cookie-toggle-label{min-width:67px}}
@media(prefers-reduced-motion:reduce){.at-cookie-btn{transition:none}}
