/* Bits Lifestyle Portugal – partner pages. Layout lives inline in the templates (from the design); this file adds base, states and mobile fixes. */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#F6F2EA}
a{color:#0E1B2C}a:hover{color:#8A6A12}
img,video{max-width:100%}
input[type=range]{accent-color:#D4A72C;width:100%}
input,button,select,textarea{font:inherit}
input[type=text],input[type=email],input[type=tel],input[type=url]{width:100%;background:#fff;color:#0E1B2C;font-weight:500}
input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #D4A72C;outline-offset:2px}
input[aria-invalid=true]{border-color:#B3261E!important;background:#FFF6F5}
section[id]{scroll-margin-top:16px}
button:disabled{opacity:.85}
button[type=submit]:not(:disabled){cursor:pointer}
.bl-msg.ok{background:#E7F4EA;color:#14532D;border:1px solid #9BD3A8}
.bl-msg.err{background:#FDECEA;color:#7F1D1D;border:1px solid #F2B8B5}

/* grids: never wider than the screen */
[style*="grid-template-columns: repeat(auto-fit, minmax(340px"]{grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr))!important}
[style*="grid-template-columns: repeat(auto-fit, minmax(320px"]{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))!important}
[style*="grid-template-columns: repeat(auto-fit, minmax(260px"]{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))!important}
[style*="grid-template-columns: repeat(auto-fit, minmax(240px"]{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))!important}
[style*="grid-template-columns: repeat(auto-fit, minmax(200px"]{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))!important}
[style*="flex: 1 1 520px"],[style*="flex: 1 1 480px"],[style*="flex: 1 1 420px"],[style*="flex: 1 1 380px"]{flex-basis:min(100%,380px)!important}

@media (max-width:720px){
  h1{font-size:clamp(34px,9vw,56px)!important}
  h2{font-size:clamp(28px,7vw,40px)!important}
  header>div,section>div,footer>div,main{padding-left:20px!important;padding-right:20px!important}
  section>div{padding-top:48px!important;padding-bottom:48px!important}
  header nav{display:none!important}
  [style*="padding: 32px"]{padding:22px!important}
}
