:root {
  --tm-bright-bg: #f6fbff;
  --tm-bright-ink: #071525;
  --tm-bright-muted: #526b83;
  --tm-bright-paper: #ffffff;
  --tm-bright-line: rgba(12, 80, 145, 0.14);
  --tm-bright-blue: #126bd8;
  --tm-bright-blue-deep: #0a3f96;
  --tm-bright-red: #c9232d;
  --tm-bright-orange: #ea5b1f;
  --tm-bright-orange-deep: #b63a10;
  --tm-bright-gold: #d7a629;
  --tm-bright-mint: #139a78;
  --tm-bright-shadow: 0 22px 52px rgba(7, 21, 37, 0.12);
}

html[data-tm-path] body,
html[data-tm-path] main {
  background: var(--tm-bright-bg) !important;
  color: var(--tm-bright-ink) !important;
}

/* Fail-safe: exported animation wrappers start invisible until JS hydrates. */
body main [style*="opacity:0"],
body main [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

body main.relative.min-h-screen {
  background:
    radial-gradient(circle at 16% 10%, rgba(18, 107, 216, 0.16), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(234, 91, 31, 0.14), transparent 30%),
    linear-gradient(135deg, #fbfdff, #edf7ff 48%, #fff7ef) !important;
}

html[data-tm-path] body,
html[data-tm-path] body * {
  letter-spacing: 0 !important;
}

html[data-tm-path] header,
html[data-tm-path] header.fixed,
html[data-tm-path] header[class*="fixed"] {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(12, 80, 145, 0.12) !important;
  box-shadow: 0 14px 34px rgba(7, 21, 37, 0.08) !important;
  color: var(--tm-bright-ink) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
}

html[data-tm-path] header *,
html[data-tm-path] footer *,
html[data-tm-path] section:nth-of-type(even) *,
html[data-tm-path] section:nth-of-type(odd) * {
  color: inherit;
}

html[data-tm-path] section {
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] section:nth-of-type(odd) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(228, 245, 255, 0.96) 48%, rgba(255, 248, 225, 0.96) 100%) !important;
}

html[data-tm-path] section:nth-of-type(even),
html[data-tm-path="contatti"] section:nth-of-type(3) {
  background: #ffffff !important;
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] main > section:first-of-type > div[aria-hidden="true"] {
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.96) 0%, rgba(221, 244, 255, 0.94) 46%, rgba(255, 245, 216, 0.95) 100%) !important;
}

html[data-tm-path] main > section:first-of-type > div[aria-hidden="true"] > div {
  opacity: 0.24 !important;
}

html[data-tm-path] .blur-3xl {
  display: none !important;
}

html[data-tm-path] h1,
html[data-tm-path] h2,
html[data-tm-path] h3,
html[data-tm-path] h4,
html[data-tm-path] p,
html[data-tm-path] li,
html[data-tm-path] label,
html[data-tm-path] span,
html[data-tm-path] div {
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] [class*="text-white/"] {
  color: var(--tm-bright-muted) !important;
}

html[data-tm-path] main > :not(footer) [class*="text-white/"],
html[data-tm-path] main > :not(footer) [class~="text-white"] {
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] [class*="text-gold"],
html[data-tm-path] [class*="text-finanza"] {
  color: var(--tm-bright-blue) !important;
}

html[data-tm-path] .eyebrow,
html[data-tm-path] .eyebrow.text-gold-light,
html[data-tm-path] .eyebrow.text-gold,
html[data-tm-path] .eyebrow.text-finanza-light {
  color: var(--tm-bright-red) !important;
}

html[data-tm-path="finanziario"] .eyebrow,
html[data-tm-path="finanziario"] [class*="text-finanza"],
html[data-tm-path="home"] .glass-blue [class*="text-finanza"] {
  color: var(--tm-bright-blue) !important;
}

html[data-tm-path="assicurativo"] .eyebrow,
html[data-tm-path="assicurativo"] [class*="text-gold"],
html[data-tm-path="home"] .glass-gold [class*="text-gold"] {
  color: var(--tm-bright-orange) !important;
}

html[data-tm-path="home"] .glass-blue {
  border-color: rgba(18, 107, 216, 0.34) !important;
  box-shadow: 0 22px 52px rgba(18, 107, 216, 0.14) !important;
}

html[data-tm-path="home"] .glass-gold {
  border-color: rgba(234, 91, 31, 0.38) !important;
  box-shadow: 0 22px 52px rgba(234, 91, 31, 0.16) !important;
}

html[data-tm-path] [class*="bg-navy"],
html[data-tm-path] [class*="glass"],
html[data-tm-path] form {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--tm-bright-line) !important;
  box-shadow: var(--tm-bright-shadow) !important;
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path="home"] [class~="glass-blue"] {
  background:
    linear-gradient(180deg, rgba(18, 107, 216, 0.08), rgba(255, 255, 255, 0.94) 34%),
    #ffffff !important;
  border-color: rgba(18, 107, 216, 0.34) !important;
  box-shadow: 0 22px 52px rgba(18, 107, 216, 0.14) !important;
}

html[data-tm-path="home"] [class~="glass-gold"] {
  background:
    linear-gradient(180deg, rgba(234, 91, 31, 0.1), rgba(255, 255, 255, 0.94) 34%),
    #ffffff !important;
  border-color: rgba(234, 91, 31, 0.38) !important;
  box-shadow: 0 22px 52px rgba(234, 91, 31, 0.16) !important;
}

html[data-tm-path] #configuratore {
  background: #ffffff !important;
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] #configuratore > div > .glass,
html[data-tm-path] #configuratore [class*="glass"] {
  background: #ffffff !important;
  border-color: rgba(12, 80, 145, 0.12) !important;
  box-shadow: 0 24px 58px rgba(7, 21, 37, 0.1) !important;
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] #configuratore h2,
html[data-tm-path] #configuratore h3,
html[data-tm-path] #configuratore p,
html[data-tm-path] #configuratore button,
html[data-tm-path] #configuratore .tm-config-category-card,
html[data-tm-path] #configuratore .tm-config-category-card div,
html[data-tm-path] #configuratore .tm-config-category-card span {
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] #configuratore [class*="text-white/"] {
  color: var(--tm-bright-muted) !important;
}

html[data-tm-path] #configuratore .h-1 {
  background: rgba(12, 80, 145, 0.12) !important;
}

html[data-tm-path] [class*="bg-gold"],
html[data-tm-path] button[type="submit"],
html[data-tm-path] a[class*="bg-gold"] {
  background: linear-gradient(135deg, var(--tm-bright-red), #ee693f) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 30px rgba(201, 35, 45, 0.2) !important;
}

html[data-tm-path] [class*="bg-finanza"],
html[data-tm-path] a[class*="bg-finanza"] {
  background: linear-gradient(135deg, var(--tm-bright-blue), #55a8ff) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 30px rgba(18, 107, 216, 0.18) !important;
}

html[data-tm-path="assicurativo"] button[type="submit"],
html[data-tm-path="assicurativo"] [class*="bg-gold"],
html[data-tm-path="assicurativo"] a[class*="bg-gold"],
html[data-tm-path="home"] .glass-gold [class*="bg-gold"] {
  background: linear-gradient(135deg, var(--tm-bright-orange-deep), var(--tm-bright-orange)) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(234, 91, 31, 0.2) !important;
}

html[data-tm-path="finanziario"] button[type="submit"],
html[data-tm-path="finanziario"] [class*="bg-finanza"],
html[data-tm-path="finanziario"] a[class*="bg-finanza"],
html[data-tm-path="home"] .glass-blue [class*="bg-finanza"] {
  background: linear-gradient(135deg, var(--tm-bright-blue-deep), var(--tm-bright-blue)) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(18, 107, 216, 0.2) !important;
}

html[data-tm-path="finanziario"] section:nth-of-type(2) .font-serif,
html[data-tm-path="finanziario"] section:nth-of-type(2) .font-serif span {
  color: var(--tm-bright-blue-deep) !important;
}

html[data-tm-path="assicurativo"] section:nth-of-type(2) .font-serif,
html[data-tm-path="assicurativo"] section:nth-of-type(2) .font-serif span {
  color: var(--tm-bright-orange-deep) !important;
}

html[data-tm-path="finanziario"] section:nth-of-type(2) [class*="text-white/"],
html[data-tm-path="assicurativo"] section:nth-of-type(2) [class*="text-white/"] {
  color: var(--tm-bright-muted) !important;
}

html[data-tm-path] a[class*="border"],
html[data-tm-path] button[class*="border"] {
  border-color: rgba(12, 80, 145, 0.18) !important;
}

html[data-tm-path] input,
html[data-tm-path] select,
html[data-tm-path] textarea {
  background: #ffffff !important;
  color: var(--tm-bright-ink) !important;
  border-color: rgba(12, 80, 145, 0.18) !important;
}

html[data-tm-path] footer {
  background: #071525 !important;
  color: #ffffff !important;
}

html[data-tm-path] footer h3,
html[data-tm-path] footer p,
html[data-tm-path] footer li,
html[data-tm-path] footer a,
html[data-tm-path] footer span,
html[data-tm-path] footer div {
  color: rgba(255, 255, 255, 0.78) !important;
}

html[data-tm-path] footer [class*="text-gold"] {
  color: #f4cf62 !important;
}

html[data-tm-path] .tm-insurance-rail-wrap {
  position: relative;
  margin: 0 -0.5rem;
}

html[data-tm-path] .tm-config-category-rail {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 1rem !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0.5rem 1.05rem !important;
  -webkit-overflow-scrolling: touch;
}

html[data-tm-path] .tm-config-category-rail::-webkit-scrollbar {
  height: 10px;
}

html[data-tm-path] .tm-config-category-rail::-webkit-scrollbar-track {
  background: rgba(12, 80, 145, 0.08);
  border-radius: 999px;
}

html[data-tm-path] .tm-config-category-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--tm-bright-blue), var(--tm-bright-red));
  border-radius: 999px;
}

html[data-tm-path] .tm-config-category-card {
  min-width: min(82vw, 330px) !important;
  max-width: 360px !important;
  min-height: 330px !important;
  flex: 0 0 min(82vw, 330px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  scroll-snap-align: start;
  overflow: hidden !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(12, 80, 145, 0.14) !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 18px 42px rgba(7, 21, 37, 0.12) !important;
  color: var(--tm-bright-ink) !important;
}

html[data-tm-path] .tm-config-category-card:hover,
html[data-tm-path] .tm-config-category-card:focus-visible {
  border-color: rgba(201, 35, 45, 0.42) !important;
  box-shadow: 0 24px 56px rgba(201, 35, 45, 0.16) !important;
  transform: translateY(-3px);
}

html[data-tm-path] .tm-config-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dff4ff;
}

html[data-tm-path] .tm-config-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-tm-path] .tm-config-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 21, 37, 0.22));
}

html[data-tm-path] .tm-config-category-card > div:not(.tm-config-card-media) {
  padding: 0 1.25rem 1.25rem !important;
}

html[data-tm-path] .tm-config-category-card .font-serif {
  color: var(--tm-bright-ink) !important;
  font-size: 1.42rem !important;
  line-height: 1.1 !important;
}

html[data-tm-path] .tm-config-category-card [class*="text-xs"] {
  color: var(--tm-bright-muted) !important;
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
}

html[data-tm-path] .tm-config-category-card svg {
  color: var(--tm-bright-red) !important;
}

html[data-tm-path] .tm-scroll-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.4rem 0 1rem;
  color: var(--tm-bright-muted) !important;
  font-size: 0.78rem;
}

html[data-tm-path] .tm-scroll-note strong {
  color: var(--tm-bright-red) !important;
}

html[data-tm-path] .tm-scroll-controls {
  display: flex;
  gap: 0.45rem;
}

html[data-tm-path] .tm-scroll-controls button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 80, 145, 0.18);
  background: #ffffff;
  color: var(--tm-bright-ink) !important;
  box-shadow: 0 10px 24px rgba(7, 21, 37, 0.09);
}

@media (min-width: 768px) {
  html[data-tm-path] .tm-config-category-card {
    min-width: 340px !important;
    flex-basis: 340px !important;
  }
}

@media (max-width: 767px) {
  html[data-tm-path] .tm-scroll-note {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-tm-path] .tm-config-category-card {
    min-height: 310px !important;
  }
}

/* Apple-glass readability pass: final overrides for generated static styles. */
html[data-tm-path] body,
html[data-tm-path] main,
html[data-tm-path="home"] main.relative {
  background:
    radial-gradient(circle at 16% 10%, rgba(18, 107, 216, 0.16), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(234, 91, 31, 0.14), transparent 30%),
    linear-gradient(135deg, #fbfdff 0%, #edf7ff 48%, #fff7ef 100%) !important;
}

html[data-tm-path] main > :not(footer) {
  color: #0a2d57 !important;
}

html[data-tm-path] main > :not(footer) :where(h1, h2, h3, h4, strong) {
  color: #09264a !important;
}

html[data-tm-path] main > :not(footer) :where(p, li, label, small, div, span, button, a) {
  color: #294761 !important;
}

html[data-tm-path] main > :not(footer) :where([class*="text-white/"], [class~="text-white"]) {
  color: #38536c !important;
}

html[data-tm-path] main > :not(footer) :where(.glass, .glass-soft, [class*="bg-navy"], form) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48)) !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 60px rgba(31, 63, 102, 0.13) !important;
  color: #0a2d57 !important;
  backdrop-filter: blur(24px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
}

html[data-tm-path="finanziario"] main > :not(footer) :where([class*="text-finanza"], .eyebrow),
html[data-tm-path="home"] .glass-blue :where([class*="text-finanza"], .eyebrow) {
  color: var(--tm-bright-blue) !important;
}

html[data-tm-path="assicurativo"] main > :not(footer) :where([class*="text-gold"], .eyebrow),
html[data-tm-path="home"] .glass-gold :where([class*="text-gold"], .eyebrow) {
  color: var(--tm-bright-orange) !important;
}

html[data-tm-path] main > :not(footer) :where([class*="bg-finanza"], a[class*="bg-finanza"], button[class*="bg-finanza"]) {
  background: linear-gradient(135deg, #0a3f96, #126bd8) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #ffffff !important;
}

html[data-tm-path] main > :not(footer) :where([class*="bg-gold"], a[class*="bg-gold"], button[class*="bg-gold"]) {
  background: linear-gradient(135deg, #b63a10, #ea5b1f) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  color: #ffffff !important;
}

html[data-tm-path] main > :not(footer) :where([class*="bg-finanza"], [class*="bg-gold"]) * {
  color: #ffffff !important;
}

html[data-tm-path] #calcolatore {
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 107, 216, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(247, 252, 255, 0.96), rgba(255, 248, 239, 0.9)) !important;
}

html[data-tm-path] #calcolatore h2,
html[data-tm-path] #calcolatore h3,
html[data-tm-path] #calcolatore strong {
  color: #0a3f96 !important;
}

html[data-tm-path] #calcolatore p,
html[data-tm-path] #calcolatore label,
html[data-tm-path] #calcolatore span,
html[data-tm-path] #calcolatore div {
  color: #38536c !important;
}

html[data-tm-path] #calcolatore [class*="bg-navy"],
html[data-tm-path] #calcolatore .glass,
html[data-tm-path] #calcolatore form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 66px rgba(31, 63, 102, 0.14) !important;
  backdrop-filter: blur(26px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.24) !important;
}

html[data-tm-path] #calcolatore button:not([class*="bg-finanza"]):not([class*="bg-gold"]) {
  background: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(18, 107, 216, 0.16) !important;
  color: #0a3f96 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html[data-tm-path] #calcolatore button[class*="bg-finanza"] {
  background: linear-gradient(135deg, #0a3f96, #126bd8) !important;
  color: #ffffff !important;
}

html[data-tm-path] #calcolatore button[class*="bg-finanza"] * {
  color: #ffffff !important;
}

html[data-tm-path] #calcolatore input,
html[data-tm-path] #calcolatore select,
html[data-tm-path] #calcolatore textarea {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(18, 107, 216, 0.18) !important;
  color: #09264a !important;
}

html[data-tm-path] footer {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 247, 255, 0.56)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 -20px 60px rgba(31, 63, 102, 0.12) !important;
  color: #294761 !important;
  backdrop-filter: blur(24px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
}

html[data-tm-path] footer :where(h3, p, li, a, span, div) {
  color: #294761 !important;
}

html[data-tm-path] footer :where([class*="text-white/"], [class~="text-white"]) {
  color: #38536c !important;
}

html[data-tm-path] footer :where([class*="text-gold"], [class*="text-finanza"]) {
  color: #0a3f96 !important;
}

html[data-tm-path] #calcolatore :where([class*="bg-finanza"], [class*="bg-gold"]) :where(p, span, div, strong, label) {
  color: #ffffff !important;
}

html[data-tm-path] body main footer,
html[data-tm-path] body main footer.relative {
  background-color: rgba(255, 255, 255, 0.74) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.58)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 -20px 60px rgba(31, 63, 102, 0.12) !important;
  color: #294761 !important;
  backdrop-filter: blur(24px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
}

html[data-tm-path] body main footer *,
html[data-tm-path] body main footer h3,
html[data-tm-path] body main footer p,
html[data-tm-path] body main footer li,
html[data-tm-path] body main footer a,
html[data-tm-path] body main footer span,
html[data-tm-path] body main footer div {
  color: #294761 !important;
}

html[data-tm-path] body main footer [class*="text-white/"],
html[data-tm-path] body main footer [class~="text-white"] {
  color: #38536c !important;
}

html[data-tm-path] body main footer [class*="text-gold"],
html[data-tm-path] body main footer [class*="text-finanza"],
html[data-tm-path] body main footer a:hover {
  color: #0a3f96 !important;
}

html[data-tm-path] body main footer a[class*="border"] {
  border-color: rgba(18, 107, 216, 0.18) !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

html[data-tm-path="home"] body main > .relative.z-10 .text-center h1,
html[data-tm-path="home"] body main > .relative.z-10 .text-center h1 span {
  color: #f8fbff !important;
  text-shadow:
    0 2px 18px rgba(4, 8, 15, 0.34),
    0 1px 2px rgba(4, 8, 15, 0.22) !important;
}

html[data-tm-path="home"] body main > .relative.z-10 .text-center p {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 12px rgba(4, 8, 15, 0.28) !important;
}

html[data-tm-path="home"] body main > .relative.z-10 .text-center .eyebrow {
  color: #ff6f61 !important;
  text-shadow: 0 1px 10px rgba(4, 8, 15, 0.26) !important;
}

html[data-tm-path] body main > section:first-of-type h1 {
  color: #09264a !important;
}

html[data-tm-path] body main > section:first-of-type p {
  color: #38536c !important;
}

html[data-tm-path] body main header,
html[data-tm-path] body main header.fixed,
html[data-tm-path] body main header[class*="fixed"] {
  background-color: rgba(255, 255, 255, 0.7) !important;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.5)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 18px 48px rgba(31, 63, 102, 0.12) !important;
  color: #294761 !important;
  backdrop-filter: blur(24px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
}

html[data-tm-path] body main header *,
html[data-tm-path] body main header a,
html[data-tm-path] body main header div,
html[data-tm-path] body main header span,
html[data-tm-path] body main header nav {
  color: #294761 !important;
}

html[data-tm-path] body main header [class*="text-white/"],
html[data-tm-path] body main header [class~="text-white"] {
  color: #38536c !important;
}

html[data-tm-path="finanziario"] body main header [class*="text-finanza"],
html[data-tm-path] body main header a[href="/finanziario/"]:not([class*="bg-finanza"]) {
  color: #0a3f96 !important;
}

html[data-tm-path="assicurativo"] body main header [class*="text-gold"],
html[data-tm-path] body main header a[href="/assicurativo/"]:not([class*="bg-gold"]) {
  color: #b63a10 !important;
}

html[data-tm-path] body main header a[class*="bg-finanza"],
html[data-tm-path] body main header a[class*="bg-gold"] {
  color: #ffffff !important;
}

html[data-tm-path] body main header button span {
  background: #294761 !important;
}

html[data-tm-path] .tm-social-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

html[data-tm-path] .tm-header-social {
  display: none;
}

html[data-tm-path] .tm-footer-social {
  margin-top: 1rem;
}

html[data-tm-path] .tm-social-link {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0a3f96 !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)) !important;
  border: 1px solid rgba(18, 107, 216, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(31, 63, 102, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

html[data-tm-path] .tm-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 107, 216, 0.34) !important;
  color: #ea5b1f !important;
}

html[data-tm-path] .tm-social-link-disabled {
  opacity: 0.55;
  cursor: default;
}

html[data-tm-path] .tm-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: currentColor;
}

@media (min-width: 768px) {
  html[data-tm-path] .tm-header-social {
    display: flex;
  }
}

/* Contact/request blocks: prevent generated page styles from leaving white text on glass. */
html[data-tm-path="contatti"] body main section,
html[data-tm-path="contatti"] body main section * {
  color: #294761 !important;
}

html[data-tm-path="contatti"] body main :where(.glass, [class*="bg-navy"], form, .input) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5)) !important;
  border-color: rgba(18, 107, 216, 0.16) !important;
  color: #294761 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 48px rgba(31, 63, 102, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

html[data-tm-path="contatti"] body main :where(h1, h2, h3, h4, strong) {
  color: #09264a !important;
}

html[data-tm-path="contatti"] body main :where(p, label, li, span, div) {
  color: #38536c !important;
}

html[data-tm-path="contatti"] body main :where(a, [class*="text-gold"], [class*="text-finanza"], .eyebrow) {
  color: #0a3f96 !important;
}

html[data-tm-path="contatti"] body main :where([class*="bg-gold"], button[type="submit"]) {
  background: linear-gradient(135deg, rgba(182, 58, 16, 0.88), rgba(234, 91, 31, 0.82)) !important;
  color: #ffffff !important;
}

html[data-tm-path="contatti"] body main :where([class*="bg-gold"], button[type="submit"]) * {
  color: #ffffff !important;
}

html[data-tm-path="contatti"] body main input,
html[data-tm-path="contatti"] body main textarea {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(18, 107, 216, 0.18) !important;
  color: #09264a !important;
}

html[data-tm-path="contatti"] body main input::placeholder,
html[data-tm-path="contatti"] body main textarea::placeholder {
  color: #6c8192 !important;
}

/* Softer Apple-glass treatment for the first insurance configurator choice rail. */
html[data-tm-path="assicurativo"] #configuratore .tm-scroll-note strong,
html[data-tm-path="assicurativo"] #configuratore .tm-config-category-card svg {
  color: #c66f43 !important;
}

html[data-tm-path="assicurativo"] #configuratore .tm-config-category-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 243, 0.48)),
    linear-gradient(180deg, rgba(234, 91, 31, 0.08), rgba(255, 255, 255, 0.46)) !important;
  border-color: rgba(234, 91, 31, 0.15) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 20px 48px rgba(144, 72, 33, 0.1) !important;
  color: #294761 !important;
  backdrop-filter: blur(24px) saturate(1.14) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.14) !important;
}

html[data-tm-path="assicurativo"] #configuratore .tm-config-category-card:hover,
html[data-tm-path="assicurativo"] #configuratore .tm-config-category-card:focus-visible {
  border-color: rgba(234, 91, 31, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 58px rgba(144, 72, 33, 0.13) !important;
  transform: translateY(-2px);
}

html[data-tm-path="assicurativo"] #configuratore .tm-config-card-media {
  background:
    radial-gradient(circle at 24% 20%, rgba(234, 91, 31, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(255, 248, 243, 0.9), rgba(237, 247, 255, 0.66)) !important;
}

html[data-tm-path="assicurativo"] #configuratore .tm-config-card-media::after {
  background: linear-gradient(180deg, transparent, rgba(234, 91, 31, 0.12)) !important;
}

html[data-tm-path] body main a[href*="wa.me"],
html[data-tm-path] body main footer a[href*="wa.me"],
html[data-tm-path="contatti"] body main a[href*="wa.me"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 0.72rem 1rem !important;
  background: linear-gradient(135deg, #128c7e, #25d366) !important;
  border-color: rgba(37, 211, 102, 0.38) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.22) !important;
}

html[data-tm-path] body main a[href*="wa.me"] *,
html[data-tm-path] body main footer a[href*="wa.me"] * {
  color: #ffffff !important;
}

html[data-tm-path] body main #calcolatore [class*="bg-finanza"],
html[data-tm-path] body main #calcolatore [class*="bg-gold"],
html[data-tm-path] body main #calcolatore [class*="bg-finanza"] p,
html[data-tm-path] body main #calcolatore [class*="bg-finanza"] span,
html[data-tm-path] body main #calcolatore [class*="bg-finanza"] div,
html[data-tm-path] body main #calcolatore [class*="bg-finanza"] strong,
html[data-tm-path] body main #calcolatore [class*="bg-finanza"] label,
html[data-tm-path] body main #calcolatore [class*="bg-gold"] p,
html[data-tm-path] body main #calcolatore [class*="bg-gold"] span,
html[data-tm-path] body main #calcolatore [class*="bg-gold"] div,
html[data-tm-path] body main #calcolatore [class*="bg-gold"] strong,
html[data-tm-path] body main #calcolatore [class*="bg-gold"] label {
  color: #ffffff !important;
}

html[data-tm-path="contatti"] body main section [class*="bg-navy"] *,
html[data-tm-path="contatti"] body main section .glass *,
html[data-tm-path="contatti"] body main form *,
html[data-tm-path="contatti"] body main .input {
  color: #294761 !important;
}

html[data-tm-path="contatti"] body main section [class*="bg-navy"] a,
html[data-tm-path="contatti"] body main section .glass a,
html[data-tm-path="contatti"] body main form a,
html[data-tm-path="contatti"] body main [class*="text-gold"],
html[data-tm-path="contatti"] body main [class*="text-finanza"] {
  color: #0a3f96 !important;
}

html[data-tm-path="contatti"] body main a[href*="wa.me"],
html[data-tm-path] body main a[href*="wa.me"] {
  color: #ffffff !important;
}

html[data-tm-path="contatti"] body main a[href*="wa.me"] *,
html[data-tm-path] body main a[href*="wa.me"] * {
  color: #ffffff !important;
}

html[data-tm-path="contatti"] body main button[class*="bg-gold"],
html[data-tm-path="contatti"] body main button[type="submit"],
html[data-tm-path="contatti"] body main button[class*="bg-gold"] *,
html[data-tm-path="contatti"] body main button[type="submit"] * {
  color: #ffffff !important;
}

html[data-tm-path] body main a[href^="tel:"],
html[data-tm-path] body main footer a[href^="tel:"],
html[data-tm-path="contatti"] body main a[href^="tel:"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  border-radius: 999px !important;
  padding: 0.72rem 1rem !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)) !important;
  border: 1px solid rgba(18, 107, 216, 0.24) !important;
  color: #0a3f96 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(31, 63, 102, 0.12) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

html[data-tm-path] body main a[href^="tel:"] *,
html[data-tm-path] body main footer a[href^="tel:"] * {
  color: #0a3f96 !important;
  stroke: currentColor !important;
}

/* Booking/contact cards: keep the lower "prenota" area readable on light glass. */
html[data-tm-path="contatti"] body main section div[class*="bg-navy"],
html[data-tm-path="contatti"] body main section div[class*="glass"],
html[data-tm-path="contatti"] body main section form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.56)) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  color: #294761 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 56px rgba(31, 63, 102, 0.13) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
}

html[data-tm-path="contatti"] body main section div[class*="bg-navy"] h2,
html[data-tm-path="contatti"] body main section div[class*="bg-navy"] h3,
html[data-tm-path="contatti"] body main section div[class*="glass"] h2,
html[data-tm-path="contatti"] body main section div[class*="glass"] h3 {
  color: #09264a !important;
}

html[data-tm-path="contatti"] body main section div[class*="bg-navy"] [class*="text-gold"]:not(a[href*="wa.me"]):not(a[href^="tel:"]),
html[data-tm-path="contatti"] body main section div[class*="glass"] [class*="text-gold"]:not(a[href*="wa.me"]):not(a[href^="tel:"]) {
  color: #b63a10 !important;
}

html[data-tm-path="contatti"] body main section a[href^="tel:"] {
  color: #0a3f96 !important;
}

html[data-tm-path="contatti"] body main section a[href*="wa.me"],
html[data-tm-path="contatti"] body main section a[href*="wa.me"] * {
  color: #ffffff !important;
}
