/* Targeted contrast fixes; keep the approved Home layout and typography. */
.valutenze-premium .proof-strip span,
.valutenze-premium .result-cards small,
.valutenze-premium .review-scores small,
.valutenze-premium .review-card footer small,
.valutenze-premium .footer-brand address,
.valutenze-premium .footer-bottom,
.valutenze-premium .detail-footer > div { color: #52657e; }
.valutenze-premium .request-card h2 { margin: 11px 0 4px; font: 700 14px/1.25 'Valutenze Display',sans-serif; }
.valutenze-table-scroll { max-width:100%; overflow-x:auto; margin-bottom:1.5em; }
.valutenze-table-scroll:focus-visible { outline:3px solid #285cc9; outline-offset:3px; }
.valutenze-table-scroll table { margin-bottom:0; }
.entry-content { overflow-wrap:break-word; }

.valutenze-social-links { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 24px; padding-top:20px; margin-top:20px; border-top:1px solid #d9e5ef; font-size:13px; color:#52657e; }
.valutenze-social-links a { display:inline-flex; align-items:center; min-height:44px; color:#173f94; font-weight:600; text-decoration:underline; text-underline-offset:4px; }
.valutenze-social-links a:focus-visible { outline:3px solid #275dc4; outline-offset:4px; border-radius:3px; }

/* Astra article footer: account for the existing horizontal margins. */
body.single-post #colophon .site-above-footer-wrap,
body.page-id-4591 #colophon .site-above-footer-wrap { width:auto; }
/* Preserve room for the article menu on the narrowest phone viewports. */
@media (max-width:360px) { body.single-post #ast-mobile-header img.custom-logo { max-width:180px !important; } }

/* Center Astra's arrow independently of global SVG and line-height rules. */
#ast-scroll-top .ast-icon.icon-arrow { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; line-height:1; }
#ast-scroll-top .ast-icon.icon-arrow svg { display:block; position:static; width:16px; height:10px; margin:0; transform:rotate(180deg); }

/* Retain the original logo artwork while increasing its luminance on navy. */
html[data-valutenze-theme="dark"] .valutenze-premium :is(.brand, .footer-brand) img {
  filter: brightness(1.65) saturate(.9);
}

@media (max-width: 640px) {
  #valutenze-savings-control {
    padding-top: 4px;
    padding-bottom: 6px;
  }

  #valutenze-savings-control .savings-switch {
    gap: 5px;
  }

  #valutenze-savings-control .savings-switch__copy {
    min-height: 0;
  }

  .valutenze-premium .hero {
    padding-top: 30px;
  }

  .valutenze-premium .hero h1 {
    font-size: clamp(36px, 11.5vw, 45px);
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .valutenze-premium .private-hero {
    padding-top: 28px;
  }

  .valutenze-premium .private-hero__copy h1 {
    font-size: clamp(32px, 10vw, 43px);
    margin-bottom: 16px;
  }

  .valutenze-premium .private-hero__copy > p {
    margin-bottom: 20px;
  }

  .valutenze-premium :is(.problem-card, .service-card, .journey li) p {
    font-size: 15px;
    line-height: 1.6;
  }

  .valutenze-premium .ecosystem-caption {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Brand icons retain accessible names and touch-sized links in both footers. */
.valutenze-social-icons {
  gap: 8px 12px;
}

.valutenze-social-icons > span {
  flex-basis: 100%;
  text-align: center;
}

.valutenze-social-icons a {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line, #d9e5ef);
  border-radius: 10px;
  color: var(--blue-deep, #173f94);
  text-decoration: none;
}

.valutenze-social-icons a:hover {
  background-color: var(--sky-soft, #edf5fd);
}

.valutenze-social-icons svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.valutenze-office-opening {
  margin-block: 12px 24px;
  font-weight: 600;
}

/* Place the social row below the full Astra footer grid. */
#colophon .valutenze-social-icons {
  width: min(100% - 40px, 1180px);
  margin: 28px auto 0;
  padding: 20px 0 0;
  box-sizing: border-box;
}
#colophon .valutenze-footer-logo {
  width: 220px !important;
  max-width: 100% !important;
  height: auto !important;
  background: transparent !important;
}
html[data-valutenze-theme="dark"] #colophon .valutenze-footer-logo {
  filter: brightness(1.65) saturate(.9);
}
.valutenze-cookie-policy { max-width: 860px; margin-inline: auto; line-height: 1.75; }
.valutenze-cookie-policy h2 { margin: 2em 0 .6em; font-size: clamp(22px, 4vw, 28px); }
.valutenze-cookie-policy h3 { margin: 1.5em 0 .5em; font-size: 19px; }
.valutenze-cookie-policy a { text-decoration: underline; text-underline-offset: 3px; }
.valutenze-cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.valutenze-cookie-actions button {
  min-height: 44px; padding: 12px 20px; border: 1px solid #285cc9;
  border-radius: 10px; font: inherit; background: #285cc9; color: white; white-space: normal;
}
.valutenze-cookie-actions button:focus-visible { outline: 3px solid #82adff; outline-offset: 3px; }
.valutenze-cookie-policy #CookieDeclaration { overflow-wrap: anywhere; }
.valutenze-cookie-policy #CookieDeclaration table { font-size: 14px; }
html[data-valutenze-theme="dark"] .valutenze-cookie-policy #CookieDeclaration,
html[data-valutenze-theme="dark"] .valutenze-cookie-policy #CookieDeclaration :is(p, td, th, a, span) {
  color: #dce8ff !important;
  background-color: transparent !important;
}

#colophon .site-above-footer-wrap { width: auto; margin-inline: 0; }
#colophon .valutenze-social-icons { justify-self: center; margin-inline: auto !important; }

html[data-valutenze-theme="dark"] .valutenze-social-icons > span { color: #b8cde9; }
@media (max-width: 360px) {
  #ast-mobile-header img.custom-logo { max-width: 180px !important; height: auto !important; }
}

/* The retained Contatti URL uses the same request flow as Premium pages. */
.valutenze-contact-request {
  width: min(100%, 800px); margin: 24px auto; padding: clamp(20px, 4vw, 32px);
  border: 1px solid #adc4e8; border-radius: 18px; line-height: 1.65;
}
.valutenze-contact-request p:last-child { margin-bottom: 0; }
body.page-id-46 .entry-content .valutenze-contact-request a {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
  margin: 4px 0 20px; padding: 12px 20px; border-radius: 10px;
  background: #285cc9; color: #fff !important; text-decoration: none; line-height: 1.5;
}
body.page-id-46 .entry-content .valutenze-contact-request a:focus-visible {
  outline: 3px solid #82adff; outline-offset: 4px;
}

/* Keep the journey connector visible against the dark section surface. */
html[data-valutenze-theme="dark"] body.valutenze-premium .journey-track::before {
  background-color: #789cc9;
}

/* Align the legal paragraph with the compact footer links. */
.valutenze-premium .detail-footer > .site-shell > p {
  margin: 0;
}

/* Keep mobile navigation available on the right across all Premium headers. */
@media (max-width: 1050px) {
  body.valutenze-premium .site-header .nav-wrap,
  body.valutenze-premium .detail-header .detail-nav { gap: 12px; }
  body.valutenze-premium .site-header .nav-wrap > .nav-actions,
  body.valutenze-premium .detail-header .detail-nav > nav,
  body.valutenze-premium .detail-header .detail-nav > a:not(.brand) { display: none; }
  body.valutenze-premium .valutenze-mobile-menu {
    display: block; position: relative; flex: 0 0 46px;
    margin-inline-start: auto; z-index: 20;
  }
  body.valutenze-premium .valutenze-mobile-menu > summary {
    display: grid; place-items: center; width: 46px; height: 46px;
    padding: 0; color: var(--navy); background: #fff;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    list-style: none;
  }
  body.valutenze-premium .valutenze-mobile-menu > summary::-webkit-details-marker { display: none; }
  body.valutenze-premium .valutenze-mobile-menu > summary:focus-visible { outline: 3px solid #275ccc; outline-offset: 3px; }
  body.valutenze-premium .valutenze-mobile-menu > nav {
    display: block; position: absolute; inset: 54px 0 auto auto;
    width: min(300px, calc(100vw - 32px)); min-width: 0;
    max-height: 65vh; max-height: 65dvh; overflow-y: auto;
    overscroll-behavior: contain; padding: 8px;
    color: var(--navy); background: #fff;
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 12px 32px #10233f26;
  }
  body.valutenze-premium .valutenze-mobile-menu:not([open]) > nav { display: none; }
  body.valutenze-premium .valutenze-mobile-menu > nav > a,
  body.valutenze-premium .detail-nav .valutenze-mobile-menu > nav > a:first-child {
    display: block; min-height: 44px; padding: 11px 12px;
    font-size: 16px; line-height: 22px; font-weight: 650;
    white-space: normal; border-radius: 8px;
  }
  body.valutenze-premium .valutenze-mobile-menu > nav > a:hover,
  body.valutenze-premium .valutenze-mobile-menu > nav > a:focus-visible { background: #eaf2ff; color: #17469c; }
  html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-mobile-menu > summary,
  html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-mobile-menu > nav { background: #122236; color: #eef4ff; border-color: #38506b; }
}

@media (max-width: 1050px) {
  html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-mobile-menu > nav > a { color: #eef4ff; }
  html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-mobile-menu > nav > a:hover,
  html[data-valutenze-theme="dark"] body.valutenze-premium .valutenze-mobile-menu > nav > a:focus-visible { background: #213d5c; color: #fff; }
}

/* Legacy Astra pages and articles retain their native mobile navigation. */
#ast-mobile-header .main-header-menu-toggle {
  min-width: 46px; min-height: 46px;
}
#ast-mobile-header .ast-menu-toggle {
  min-width: 44px; min-height: 44px;
}
#ast-mobile-header :is(.main-header-menu-toggle, .ast-menu-toggle, .menu-link):focus-visible {
  outline: 3px solid #285cc9; outline-offset: -3px;
}
html[data-valutenze-theme="dark"] #ast-mobile-header :is(.main-header-menu, .sub-menu) {
  background-color: #122236 !important;
}
html[data-valutenze-theme="dark"] #ast-mobile-header .menu-link {
  color: #eef4ff !important; border-color: #38506b !important;
}
html[data-valutenze-theme="dark"] #ast-mobile-header :is(.main-header-menu-toggle, .ast-menu-toggle) {
  color: #b8d0ff !important;
}
html[data-valutenze-theme="dark"] #ast-mobile-header .menu-link:hover,
html[data-valutenze-theme="dark"] #ast-mobile-header .menu-link:focus-visible {
  background-color: #213d5c !important; color: #fff !important;
}
html[data-valutenze-theme="dark"] #ast-mobile-header :is(.main-header-menu-toggle, .ast-menu-toggle, .menu-link):focus-visible {
  outline-color: #b8d0ff;
}

/* Long formulae scroll within the article instead of widening the mobile page. */
@media (max-width: 921px) {
  body.single-post .entry-content math {
    display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 4px;
  }
}
