/* ═══════════════════════════════════════════════
   eCura Landing — Custom CSS
   Fedele al design originale ecura.it
════════════════════════════════════════════════ */

:root {
  --activeColor: #068D86;
  --activeColorHover: #05B1A8;
  --white: #FFF;
  --beige: #f7f4ef;
  --black: #000;
  --darkblue: #080E49;
  --antracite: #3D3C3B;
  --brandgrey: #E3DFDD;
  --lightgrey: #F5F5F5;
  --linegrey: #f0f0f0;
  --grey: #666;
  --green: #068D86;
  --red: #ff0033;
  --blu: #0059c7;
  --font1: "Roboto", sans-serif;
}

* { box-sizing: border-box; }

body {
  background: var(--white);
  font-family: var(--font1);
  font-weight: 300;
  font-size: 18px;
  color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: var(--black);
}

a { color: var(--activeColor); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--activeColorHover); }

.green { color: var(--activeColor) !important; }
.bgevidence2 { background: rgb(241 255 254); }
.r30 { border-radius: 30px; }

/* ── CTA Buttons ── */
.cta-standard,
.cta-standard-green,
.cta-standard-white {
  display: inline-block;
  font-weight: 400;
  font-size: 16px;
  padding: 8px 22px;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  width: max-content;
}
.cta-standard { background: var(--black); color: var(--white); }
.cta-standard:hover { background: var(--activeColor); color: var(--white); }
.cta-standard-green { background: var(--activeColor); color: var(--white); }
.cta-standard-green:hover { background: var(--activeColorHover); color: var(--white); }
.cta-standard-white { background: var(--white); color: var(--black); }
.cta-standard-white:hover { background: var(--activeColor); color: var(--white); }
.cta-standard.long, .cta-standard-green.long { width: 100%; text-align: center; }
.cta-standard-green.big, .cta-standard.big { font-size: 20px; padding: 12px 28px; }

/* ── HEADER / NAV ── */
#full_top_nav {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}
.full_top_nav_wrapper { padding: 12px 20px; }

.top_Menu {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
}
.top_Menu a {
  color: var(--black);
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s;
}
.top_Menu a:hover, .top_Menu a.active { color: var(--activeColor); }

/* Hamburger */
#hamburgerWrap { cursor: pointer; padding: 8px; }
#hamburger { display: flex; flex-direction: column; gap: 5px; }
#hamburger .line { width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* Mobile menu */
#mobileMenu {
  background: var(--white);
  padding: 16px 20px;
  border-top: 1px solid var(--linegrey);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#mobileMenu ul { list-style: none; margin: 0; padding: 0; }
#mobileMenu ul li { border-bottom: 1px solid var(--linegrey); }
#mobileMenu ul li:last-child { border-bottom: 0; }
#mobileMenu ul li a { display: block; padding: 12px 0; color: var(--black); font-size: 16px; }
#mobileMenu ul li a.cta { color: var(--activeColor); font-weight: 600; }

/* ── HERO ── */
.heroSection {
  border-bottom-right-radius: 80px;
  overflow: hidden;
  box-shadow: 0 20px 100px -70px #088d86;
}
.hero-bg {
  background: url('../img/hero-lg.webp') no-repeat right center;
  background-size: cover;
  min-height: 800px;
}
.heroContent {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Gradiente scuro sul lato sinistro — garantisce leggibilità testo bianco
   indipendentemente dai colori chiari della foto hero */
.heroContent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 14, 73, 0.72) 0%,
    rgba(8, 14, 73, 0.50) 40%,
    rgba(8, 14, 73, 0.10) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}
.heroContent .textOverlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  z-index: 2;
}
.heroContent h1 {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 42px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.heroContent .display-6, .heroContent .lead {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.heroContent strong {
  color: #ffffff;
}
.heroContentDx {
  background: linear-gradient(144deg, #fff 0%, #f2f2f2 100%);
}
.heroContentDx h3 { margin-bottom: 20px; }

/* ── FEAT CARDS ── */
#featCards .card {
  background: var(--lightgrey);
  border-radius: 30px;
  border: 0;
  padding: 20px;
  transition: background 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27), color 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27), transform 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27);
  position: relative;
}
#featCards .card:hover {
  background: var(--activeColor);
  color: var(--white);
}
#featCards .card:hover h5, #featCards .card:hover p { color: var(--white); }
#featCards .card .iconWrap {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--activeColor);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s;
}
#featCards .card:hover .iconWrap { background: rgba(255,255,255,0.2); }

/* ── PROBLEM QUOTES ── */
.problem-quote {
  background: var(--lightgrey);
  border-left: 4px solid var(--activeColor);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 16px;
}

/* ── FUNCTIONALITY CARDS ── */
.func-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--linegrey);
  transition: box-shadow 0.3s, transform 0.3s;
}
.func-card:hover {
  box-shadow: 0 8px 32px rgba(6,141,134,0.12);
  transform: translateY(-4px);
}
.func-card h6 { font-size: 14px; margin: 0; }

/* ── COMPARISON TABLE ── */
.table-comparison { border-radius: 12px; overflow: hidden; }
.table-comparison thead th { background: var(--activeColor); color: var(--white); font-weight: 600; }
.table-comparison tbody tr:nth-child(even) { background: var(--lightgrey); }
.check-yes { color: var(--activeColor); font-size: 20px; font-weight: 700; }
.check-no { color: #dc2626; font-size: 18px; }

/* ── PRICING CARDS ── */
.pricing-card {
  border-radius: 20px;
  border: 1px solid var(--linegrey);
  transition: box-shadow 0.3s, transform 0.3s;
}
.pricing-card:hover {
  box-shadow: 0 12px 40px rgba(6,141,134,0.15);
  transform: translateY(-6px);
}
.pricing-card.bestseller {
  border: 2px solid var(--activeColor);
  position: relative;
}
.price-badge {
  display: inline-block;
  background: var(--lightgrey);
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-badge.popular {
  background: var(--black);
  color: var(--white);
}
.certified-badge {
  display: inline-block;
  background: rgba(6,141,134,0.1);
  color: var(--activeColor);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.plan-name { font-size: 28px; margin: 8px 0; }
.plan-option { }
.plan-tier { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); }
.plan-price { font-size: 32px; font-weight: 700; color: var(--black); }
.plan-price span { font-size: 16px; font-weight: 300; }
.plan-renewal { font-size: 13px; color: var(--grey); }

ul.checked {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
ul.checked li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 15px;
}
ul.checked li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--activeColor);
  font-weight: 700;
}

/* ── SERVICE PLAN CARDS ── */
.service-plan-card {
  background: var(--white);
  border: 1px solid var(--linegrey);
  border-radius: 16px;
}
.service-plan-card.featured {
  border-color: var(--activeColor);
  background: rgba(6,141,134,0.03);
}
.service-plan-card li { padding: 6px 0; font-size: 15px; }

/* ── FAQ ── */
.accordion-button:not(.collapsed) {
  background: rgba(6,141,134,0.08);
  color: var(--activeColor);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(6,141,134,0.25); }

/* ── REVIEWS ── */
.review-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
}
.stars { color: #fbbf24; font-size: 20px; letter-spacing: 3px; }
.reviewer strong { font-size: 15px; }

/* ── FORM ── */
.ecura-form .form-control,
.ecura-form .form-select {
  border-radius: 10px;
  border: 1px solid var(--brandgrey);
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ecura-form .form-control:focus,
.ecura-form .form-select:focus {
  border-color: var(--activeColor);
  box-shadow: 0 0 0 3px rgba(6,141,134,0.15);
}
.ecura-form .form-control.is-invalid,
.ecura-form .form-select.is-invalid {
  border-color: var(--red);
}
.ecura-form .form-check-input:checked {
  background-color: var(--activeColor);
  border-color: var(--activeColor);
}

/* ── #whyEcura badge certificazione ── */
/* Badge spostato come elemento inline in HTML: rimosso ::after con top negativo
   che causava sovrapposizione sul testo SEO-intro (violazione Core Web Vitals / CLS) */
#whyEcura { position: relative; }

/* Badge certificazione inline — centrato sopra il titolo, dentro la sezione */
.cert-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: 0;
}
.cert-badge-wrap img {
  width: 100px;
  height: auto;
  display: block;
}

/* ── FOOTER ── */
footer a:hover { color: var(--activeColor) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .hero-bg { min-height: 500px; }
  .heroContent .textOverlay { bottom: 40px; }
  .heroSection { border-bottom-right-radius: 40px; }
}

@media (max-width: 768px) {
  .hero-bg { min-height: 400px; background-position: center center; }
  .heroContent .textOverlay { bottom: 20px; }
  .heroContent h1 { font-size: 22px; }
  .cert-badge-wrap img { width: 80px; }
  .plan-price { font-size: 26px; }
}

/* ── RESPONSIVE TABLET (≤768px) ── */
@media (max-width: 768px) {
  /* Hero: override inline min-height */
  .hero-bg-col { min-height: 400px !important; }

  /* Pricing cards: 1 per row */
  #pricingCards .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; margin-bottom: 20px; }

  /* Comparison table: horizontal scroll */
  .table-comparison-wrap, .comp-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-comparison { min-width: 500px; }

  /* FAQ: reduce padding */
  #faqSection .accordion-button { padding: 14px 16px; font-size: 16px; }
  #faqSection .accordion-body { padding: 0 16px 16px; }

  /* Hero: remove bottom dead space */
  .heroSection { border-bottom-right-radius: 24px; }

  /* Buttons stacked */
  .cta-standard.big, .cta-standard-green.big { font-size: 17px; padding: 10px 22px; }
}

/* ── RESPONSIVE MOBILE (≤576px) ── */
@media (max-width: 576px) {
  /* Hero: compact, image pushed back — overrides inline style */
  .hero-bg,
  .hero-bg-col {
    min-height: 300px !important;
    background-position: 65% center !important;
  }
  .heroSection { border-bottom-right-radius: 16px; }

  /* Hero text overlay: flow naturally, no absolute bottom */
  .heroContent .textOverlay {
    position: relative !important;
    bottom: auto !important;
    padding: 28px 16px 20px;
    background: linear-gradient(180deg, rgba(6,141,134,0.85) 0%, rgba(8,14,73,0.80) 100%);
  }
  /* Su mobile il gradiente laterale ::before non serve — il textOverlay ha già lo sfondo */
  .heroContent::before { display: none; }
  .heroContent h1 { font-size: 1.3rem; margin-bottom: 10px; }
  .heroContent .display-6 { font-size: 1rem; }
  .heroContent .lead { font-size: 0.95rem; }

  /* Body font reduce */
  body { font-size: 16px; }

  /* Nav: smaller padding */
  .full_top_nav_wrapper { padding: 8px 16px; }

  /* Footer: single-column stacking */
  footer .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 28px;
    text-align: left;
  }
  footer .row > [class*="col-"]:last-child { margin-bottom: 0; }

  /* Pricing cards: full width, no transform on hover */
  .pricing-card { margin-bottom: 16px; }
  .pricing-card:hover { transform: none; }

  /* Service plan cards */
  #pricingPlan .card { margin-bottom: 16px; }

  /* Section panels: reduce border-radius */
  .lightGreyBg, .blackPanel { border-radius: 24px; }
  #featCards .card { border-radius: 16px; }

  /* Stat badges: 2-col */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* CTA buttons: full width on xs */
  .cta-standard.long, .cta-standard-green.long,
  .hero-cta .cta-standard, .hero-cta .cta-standard-green { width: 100%; text-align: center; }

  /* Buttons side by side → stacked */
  .d-flex.gap-3.flex-wrap { flex-direction: column; gap: 10px !important; }

  /* Comparison table: scroll */
  .table-comparison-wrap, .comp-table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    border-radius: 8px;
  }
  .table-comparison { min-width: 480px; font-size: 13px; }
  .table-comparison th, .table-comparison td { padding: 10px 8px; }

  /* h2 extra: reduce on mobile */
  h2.extra, .h2.extra { font-size: 26px; }
  h1.extra { font-size: 32px; }
}

/* ── A11Y: link distinguibili oltre il colore ── */
main a:not([class]):not(.skip-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.top_Menu a, footer a, .blog-article-list a { text-decoration: none; }

/* ── A11Y: touch target mobile — solo padding, non min-height che rompe layout ── */
@media (max-width: 767px) {
  .cta-standard, .cta-standard-green,
  .cta-standard-white, .cta-standard-black {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ── PERF: picture element — no layout shift ── */
picture { display: block; }

/* ── PERF: WebP overrides for CSS background images ──
   Usiamo background shorthand con !important per sovrascrivere
   css.css che usa background: url(...) shorthand (stessa specificità) */
.protectionBan .banner {
  background: url('../img/protezione-anziani.webp') no-repeat center center !important;
  background-size: cover !important;
}

.focusBan-bg {
  background: url('../img/perche-ci-scelgono.webp') no-repeat center center !important;
  background-size: cover !important;
  height: 700px;
  border-radius: 80px;
}

/* ── PERF: Forza GPU compositing su slide AOS senza will-change globale ── */
[data-aos] {
  backface-visibility: hidden;
}

/* ── PERF: Carousel — sostituisce transition:all con solo proprieta composite ──
   max-height, padding, width, height, background-* sono NON composite (causano reflow).
   Usiamo opacity + transform che sono GPU-only (zero reflow). */
#functionCarousel .carousel-item-wrapper {
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}
#functionCarousel .carousel-item-image {
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}
#functionCarousel .carousel-item-image img {
  transition: opacity 0.4s ease !important;
}
#functionCarousel .carousel-item-content {
  /* Sostituiamo max-height:0→500px (non compositable) con visibility+opacity */
  max-height: none !important;
  overflow: visible !important;
  transition: opacity 0.4s ease !important;
}
#functionCarousel .owl-item:not(.active.center) .carousel-item-content {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
#functionCarousel .owl-item.active.center .carousel-item-content {
  opacity: 1;
  visibility: visible;
}

/* ── A11Y: Contrasto link e testi ── */
/* Verde #068D86 su bianco = 3.5:1 (< 4.5:1 AA) → scuriamo a #055F5A = 5.1:1 */
input[type="submit"].cta-standard-green,
button.cta-standard-green,
a.cta-standard-green {
  background: #055F5A !important;
  font-weight: 600 !important;
}
input[type="submit"].cta-standard-green:hover,
button.cta-standard-green:hover,
a.cta-standard-green:hover {
  background: #068D86 !important;
}
/* Link distinguibili (contrasto colore per ipovedenti) */
.ecura-email,
a.text-decoration-none[href^="http"],
a[style*="color:#068D86"],
a[style*="color: #068D86"] {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
/* Privacy Policy link nel footer — bianco su verde: OK, ma testo piccolo */
footer a { color: inherit; }

/* ── A11Y: focus-visible su tutti i link interattivi ── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #055F5A;
  outline-offset: 3px;
}

/* ── PERF: WebP override per sidly-front (carousel center item) ── */
#functionCarousel .owl-item.active.center .carousel-item-image {
  background-image: url('../img/sidly-front.webp') !important;
  background-color: var(--black);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PERF: Override transition:all → solo proprietà composite (GPU-only)
   css.css usa transition:all su 28 selettori → causa 42 elementi
   "Evita animazioni non composite" in PageSpeed.
   Proprietà non-composite: border-*-radius, font-size, padding-*,
   color, background-color, width, height → causano reflow + paint.
   Sostituiamo con: background, color, transform, box-shadow, opacity
   (tutte gestite dal compositor thread senza reflow).
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Link generici: solo color */
a:link,
a:visited {
  transition: color 0.3s ease-in-out !important;
}

/* 2. CTA standard (tutti i tipi): background + color + transform */
input[type="submit"].cta-standard,
button.cta-standard,
a.cta-standard,
input[type="submit"].cta-standard:hover,
button.cta-standard:hover,
a.cta-standard:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out, transform 0.2s ease !important;
}

input[type="submit"].cta-standard-white,
button.cta-standard-white,
a.cta-standard-white,
input[type="submit"].cta-standard-white:hover,
button.cta-standard-white:hover,
a.cta-standard-white:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

input[type="submit"].cta-standard-green,
button.cta-standard-green,
a.cta-standard-green,
input[type="submit"].cta-standard-green:hover,
button.cta-standard-green:hover,
a.cta-standard-green:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

input[type="submit"].cta-standard-black,
button.cta-standard-black,
a.cta-standard-black,
input[type="submit"].cta-standard-black:hover,
button.cta-standard-black:hover,
a.cta-standard-black:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

input[type="submit"].cta-standard-outline,
button.cta-standard-outline,
a.cta-standard-outline,
input[type="submit"].cta-standard-outline:hover,
button.cta-standard-outline:hover,
a.cta-standard-outline:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

input[type="submit"].cta-standard-outline-black,
button.cta-standard-outline-black,
a.cta-standard-outline-black,
input[type="submit"].cta-standard-outline-black:hover,
button.cta-standard-outline-black:hover,
a.cta-standard-outline-black:hover {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

/* 3. Feature cards: solo transform + box-shadow (GPU-only) */
#featCards .card,
#featCardsContent.card {
  transition: transform 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27), box-shadow 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27), background 0.3s !important;
}

/* 4. Nav link: solo color */
.top_nav_wrapper .top_nav ul.top_Menu > li > a {
  transition: color 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27) !important;
}

/* 5. Hamburger lines: solo transform + opacity (già GPU-only) */
#hamburgerWrap #hamburger .line,
#hamburgerWrap #hamburger.is-active .line {
  transition: transform 0.3s cubic-bezier(0.32, 0.4, 0.55, 1.27), opacity 0.3s !important;
}

/* 6. FAQ accordion button ::before: solo background */
#faqAccordion .accordion-button::before {
  transition: background 0.3s ease !important;
}

/* 7. Testimonial carousel nav + dots */
#testimonialCarousel .owl-nav button {
  transition: background 0.3s ease !important;
}
#testimonialCarousel .owl-dots .owl-dot span {
  transition: background 0.3s ease, transform 0.3s ease !important;
}

/* 8. Function carousel nav + dots */
#functionCarousel .owl-nav button {
  transition: background 0.3s ease !important;
}
#functionCarousel .owl-dots .owl-dot span {
  transition: background 0.3s ease, transform 0.3s ease !important;
}

/* 9. Pricing plan card: transform + box-shadow */
#pricingPlan .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* 10. Promotitle: nessuna animazione necessaria */
.promotitle {
  transition: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PERF: Fix accordion Bootstrap — border-*-color non composite (v=5)
   Bootstrap usa transition:all su .accordion-button → causa border-bottom-color,
   border-left-color, border-right-color, border-top-color, border-bottom-left-radius,
   border-bottom-right-radius, border-top-left-radius, border-top-right-radius 
   Non composite → causano reflow + paint → PageSpeed "24 animazioni non-composite"
   Fix: override esplicito su tutti i selettori accordion con solo proprietà composite.
   ═══════════════════════════════════════════════════════════════════════ */

/* Bootstrap .accordion-button ha transition:all — override con composite-only */
.accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}
.accordion-button::before,
.accordion-button::after {
  transition: transform 0.3s ease, background-color 0.3s ease, filter 0.3s ease !important;
}
/* Bootstrap .accordion-item ha border-radius animate — fix con none */
.accordion-item {
  transition: none !important;
}

/* #benefitsAccordion .accordion-button già override ma Bootstrap aggiunge border-*-color */
#benefitsAccordion .accordion-button,
#faqAccordion .accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Fix .cta-standard-black link a: color è non-composite (ma è solo colore, accettabile)
   Le istanze restanti sono gli anchor link nel footer e seo-intro */
a.cta-standard-black,
a.cta-standard-white,
a.cta-standard-outline,
a.cta-standard-outline-black {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

/* Fix skip-link e social links: transition:all → solo color */
.skip-link,
footer a,
.text-muted a {
  transition: color 0.3s ease, opacity 0.3s ease !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PERF: Elementi [data-aos] — visibili immediatamente senza AOS.init()
   AOS.init() chiama getBoundingClientRect() → forced reflow → CLS 0.548
   Con questa regola gli elementi sono già visibili, AOS.init non serve.
   ═══════════════════════════════════════════════════════════════════════ */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   A11Y: Contrasto nav link + touch target
   #068D86 su bianco = 3.5:1 (< 4.5:1 WCAG AA) → scuriamo a #055F5A
   ═══════════════════════════════════════════════════════════════════════ */

/* Nav link: hover → #055F5A (scuro, 5.1:1) invece di #068D86 */
.top_nav_wrapper .top_nav ul.top_Menu > li:hover > a,
.top_nav_wrapper .top_nav ul.top_Menu > li > a:hover,
.top_nav_wrapper .top_nav ul.top_Menu > li > a.active {
  color: #055F5A !important;
}

/* Tel link in nav: colore + touch target minimo 44x44px */
#nav-tel-link {
  color: #055F5A !important;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex !important;
  align-items: center;
  padding: 8px 4px;
}
#nav-tel-link svg {
  stroke: #055F5A !important;
}

/* CTA nav "Richiedi info": touch target minimo */
.ctaWdgt .cta-standard-green {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   A11Y: Contrasto .activeColor su sfondo chiaro
   #068D86 su bianco/beige = 3.5:1 (< 4.5:1 WCAG AA)
   → scuriamo a #055F5A per AA su sfondo bianco/chiaro
   (sui fondi scuri il testo appare bianco quindi non impatta)
   ═══════════════════════════════════════════════════════════════════════ */
.activeColor,
.activecolor {
  color: #055F5A !important;
}

/* Prezzi nelle card pricing (su sfondo nero → white, ok) */
#pricingPlan .activeColor,
#pricingPlan .activecolor {
  color: var(--activeColor) !important; /* su sfondo nero: 3.5:1 ma accettabile per strong/prezzo */
}
