/* Guasti di accessibilita e controlli: palette e contenuti esistenti conservati. */
footer[role="contentinfo"] .text-gray-500 { color: #cbd5e1; }
footer[role="contentinfo"] .text-gray-400 { color: #cbd5e1; }
footer.bg-gray-50 .text-gray-400 { color: #64748b; }
a[href*="wa.me"].text-white,
a[href*="wa.me"].bg-\[\#25D366\] { background-color: #087f3f; }
a[href^="tel:"].text-green-600 { color: #08743b; }
.text-\[\#25D366\] { color: #087f3f; }
.avatar-teal { background-color: #087568; }
.avatar-amber { background-color: #975900; }
.avatar-emerald { background-color: #087747; }
.avatar-cyan { background-color: #08708c; }
.avatar-orange { background-color: #b8440a; }
.rd-carousel-dot { width: 24px; height: 24px; padding: 8px; background-clip: content-box; }
[role="dialog"][x-show="showModal"] button[aria-label] { color: #475569; }
:is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid #003781;
  outline-offset: 3px;
}
footer[role="contentinfo"] :is(a,button):focus-visible { outline-color: #fff; }
[data-mobile-menu] { background: #fff !important; }
@media (max-width: 1023px) {
  [data-mobile-menu] {
    max-height: calc(100dvh - 4rem - var(--rd-bottom-bar, 0px));
    overscroll-behavior: contain;
    scroll-padding: 1rem;
  }
}
@media (max-width: 767px) {
  a.fixed[href*="wa.me"] { position: static; margin: 1rem 1rem 1rem auto; }
  #rd-cookie-banner {
    position: relative !important;
    inset: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: .75rem 1rem !important;
    font-size: .8125rem !important;
    line-height: 1.4 !important;
    z-index: 20 !important;
  }
  #rd-cookie-banner > div { gap: .5rem !important; }
  .rd-consent-open [aria-labelledby="hero-heading"] > .relative.max-w-7xl {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .rd-consent-open #hero-heading { margin-bottom: .75rem; }
  .rd-consent-open #hero-heading + p { font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }
  .rd-consent-open #hero-heading + p + div { gap: .5rem; margin-bottom: 1.5rem; }
  .rd-consent-open #hero-heading + p + div > a { padding-top: .625rem; padding-bottom: .625rem; min-height: 44px; }
}
@media (max-width: 359px) {
  .rd-consent-open #hero-heading { font-size: 1.625rem; line-height: 1.15; }
}

/* Elementi decorativi e pagine di servizio: contrasto, senza cambiare i testi. */
.solution-number { color: #7589a6; }
[aria-labelledby="testimonial-heading"] .text-gray-400 { color: #64748b; }
.rd-not-found { display: flex; flex-direction: column; min-height: 100dvh; }
.rd-not-found main { flex: 1; min-height: 0; padding-top: 2rem; padding-bottom: 2rem; }
.rd-not-found a[aria-label="Torna alla homepage"],
.rd-not-found a[href="index.html"].text-white { background-color: #003781; }
.rd-not-found footer { position: static; color: #64748b; }
.rd-not-found footer :is(a,button):hover { color: #003781; }
@media (max-width: 359px) {
  [aria-labelledby="hero-heading"].py-16 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  [aria-labelledby="hero-heading"].py-16 nav { margin-bottom: 1rem; }
  [aria-labelledby="hero-heading"].py-16 h1 + p { font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }
  [aria-labelledby="hero-heading"].py-16 h1 + p + div { gap: .5rem; }
  [aria-labelledby="hero-heading"].py-16 h1 + p + div > a { padding-top: .625rem; padding-bottom: .625rem; min-height: 44px; }
  #hero-heading.text-4xl { font-size: 1.875rem; }
}
/* Primo schermo stretto: spazio riservato ai controlli, stesso contenuto. */
@media (max-width: 359px) {
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 { padding-top: .75rem; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 > .relative.max-w-7xl { padding-top: 0; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 nav { margin-bottom: .5rem; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 h1 { font-size: 1.375rem; margin-bottom: .5rem; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 h1 + p { font-size: .9375rem; line-height: 1.4; margin-bottom: .75rem; }
  [aria-labelledby="hero-heading"] .text-center > .inline-flex.mb-6 { padding-top: .25rem; padding-bottom: .25rem; margin-bottom: .5rem; }
  #main-content.flex-1.flex { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  #main-content.flex-1.flex .w-24 { width: 4rem; height: 4rem; margin-bottom: 1rem; }
  #main-content.flex-1.flex h1 { font-size: 1.875rem; margin-bottom: 1rem; }
  #main-content.flex-1.flex p { font-size: .875rem; line-height: 1.5; }
  #main-content.flex-1.flex .mb-12 { margin-bottom: 1.5rem; }
}
[aria-labelledby="hero-heading"] > div.absolute.bottom-0 { pointer-events: none; }
@media (max-width: 359px) {
  [aria-labelledby="hero-heading"].py-16 { padding-bottom: 4rem; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 #hero-heading { font-size: 1.375rem; margin-bottom: .5rem; }
  .rd-consent-open [aria-labelledby="hero-heading"].py-16 #hero-heading + p { font-size: .9375rem; line-height: 1.4; margin-bottom: .75rem; }
}
@media (max-width: 767px) {
  .rd-consent-open > div.fixed.bottom-0.inset-x-0 { position: static; }
}
