/* Ajustos d'accessibilitat i avisos legals (Webiting, novembre 2026) */

/* Menú "Serveis": ara és un <button> i s'obre també amb el teclat */
:where(button.dd-btn) { border: 0; background: transparent; font-family: inherit; line-height: inherit; }
.dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: all; }
.dd:focus-within .dd-btn svg { transform: rotate(180deg); }
.dd.dd-closed .dd-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.dd-btn:focus-visible, .dd-item:focus-visible { outline: 3px solid #3B4F8C; outline-offset: 2px; }

/* Camp antispam (honeypot): invisible per a les persones */
.flf-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Primera capa d'informació de protecció de dades i casella */
.flf-info { font-size: .74rem; line-height: 1.5; color: #4f4b45; margin: 6px 0 0; text-align: left; }
.flf-info a, .flf-consent a { color: inherit; text-decoration: underline; }
.flf-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: #2f2c28;
  margin: 8px 0 12px; cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; font-weight: 400; }
.flf-consent input[type="checkbox"] { width: 18px !important; height: 18px !important; min-width: 18px; padding: 0 !important;
  margin: 1px 0 0 !important; flex: 0 0 auto; border: 0; appearance: auto; -webkit-appearance: checkbox; accent-color: #3B4F8C; }
/* Formulari de la portada (fons fosc) */
.cta-form .flf-info, .cta-form .flf-consent { color: rgba(255, 255, 255, .92); }
.cta-form .flf-consent input[type="checkbox"] { background: #fff !important; }

/* Contrast de text (WCAG 1.4.3) */
p[style*="color:var(--border)"] { color: var(--muted, #706C65) !important; }
.btn-gold { background: #9A6420 !important; }
.btn-gold:hover { background: #86561A !important; }

/* Peu de pàgina fosc: logo, títols i enllaços llegibles */
footer .logo-text, footer .lt { color: #F4F1EA !important; }
footer .logo-text span, footer .lt span { color: #A9B8EC !important; }
footer h5 { color: #A8A8A8 !important; }
footer .ft-legal a, footer .fl a, footer .fleg a, footer .fb > p, footer .ft-bottom p { color: #A8A8A8 !important; }

/* Botons i etiquetes daurades amb text blanc */
.btn-go, .article-tag { background: #9A6420 !important; }
.tc-av[style*="gold"], .tc-av[style*="C4873A"], .tc-av[style*="c4873a"] { background: #9A6420 !important; }

/* Text blanc semitransparent sobre fons de color */
[style*="color:rgba(255,255,255,.4"], [style*="color:rgba(255,255,255,.5"], [style*="color:rgba(255,255,255,.6"] { color: rgba(255, 255, 255, .88) !important; }
.stat-lbl { color: rgba(255, 255, 255, .75) !important; }

/* Enllaços dins dels textos legals, distingibles sense dependre del color */
div[style*="padding:40px"] a { text-decoration: underline; }
footer em { color: #A9B8EC !important; }

/* Formulari emergent en mòbil: una sola columna (abans els camps sortien per la dreta) */
@media (max-width: 560px) {
  #sb-form div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  #sb-form input, #sb-form select, #sb-form textarea { min-width: 0; max-width: 100%; }
}
