@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
    --ml-blue: #0345bf;
    --ml-blue-dark: #044cd0;
    --ml-text: #252525;
    --ml-green: #03e16d;
    --ml-grey: #b9b9b9;
    --ml-light: #f4f1f1;
    --ml-container: 1140px;
    --ml-header-h: 60px;
    --ml-font: "Plus Jakarta Sans", "Century Gothic", "Avenir Next", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ml-text); background: #fff; font-family: var(--ml-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ml-blue); }
a:hover { color: var(--ml-blue-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ml-font); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 20px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
button, input, textarea, select { font-family: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.ml-skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ml-blue); padding: 10px 16px; z-index: 1000; }
.ml-skip:focus { left: 0; }
.ml-container { width: 100%; max-width: var(--ml-container); margin: 0 auto; padding-left: 15px; padding-right: 15px; }

.ml-topbar { background: var(--ml-blue); color: #e8effc; font-size: 14px; }
.ml-topbar a { color: #fff; text-decoration: none; }
.ml-topbar a:hover { text-decoration: underline; }
.ml-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.ml-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.ml-social a { display: inline-flex; padding: 2px; }

.ml-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); transition: box-shadow .2s; }
.ml-header.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.admin-bar .ml-header { top: 32px; }
.ml-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: var(--ml-header-h); }
.ml-logo { display: block; flex: none; line-height: 0; }
.ml-logo img { height: var(--ml-header-h); width: auto; }

.ml-menu, .ml-menu ul { list-style: none; margin: 0; padding: 0; }
.ml-menu { display: flex; align-items: center; gap: 4px; }
.ml-menu li { position: relative; }
.ml-menu > li > a, .ml-menu > li > .ml-menu-label { display: block; padding: 0 14px; line-height: var(--ml-header-h); font-size: 15px; font-weight: 600; color: var(--ml-text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.ml-menu > li:hover > a, .ml-menu > li:focus-within > a, .ml-menu > li > a[aria-current], .ml-menu > li.current-menu-ancestor > a, .ml-menu > li:hover > .ml-menu-label, .ml-menu > li.current-menu-ancestor > .ml-menu-label { color: var(--ml-blue); }
.ml-menu .menu-item-has-children > a::after, .ml-menu > .menu-item-has-children > .ml-menu-label::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.ml-submenu-toggle { display: none; }

.ml-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-top: 3px solid var(--ml-blue); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 10; }
.ml-menu li:hover > .sub-menu, .ml-menu li:focus-within > .sub-menu, .ml-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ml-menu .sub-menu li > a, .ml-menu .sub-menu li > .ml-menu-label { display: block; padding: 8px 20px; font-size: 14px; color: var(--ml-text); text-decoration: none; }
.ml-menu .sub-menu li > a:hover { color: var(--ml-blue); background: #f6f8fd; }
.ml-menu .sub-menu .sub-menu { top: -11px; left: 100%; }

.ml-menu > .ml-mega { position: static; }
.ml-menu > .ml-mega > .sub-menu { left: auto; right: 15px; width: min(880px, calc(100% - 30px)); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }
.ml-menu > .ml-mega > .sub-menu > li > .ml-menu-label, .ml-menu > .ml-mega > .sub-menu > li > a { padding: 6px 0; font-size: 16px; font-weight: 700; color: var(--ml-blue); border-bottom: 2px solid #e4ebf8; margin-bottom: 6px; }
.ml-menu > .ml-mega > .sub-menu > li.ml-wide { grid-column: 1 / -1; order: -1; }
.ml-menu > .ml-mega .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
.ml-menu > .ml-mega .sub-menu .sub-menu li > a { padding: 5px 0; }

.ml-burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; }
.ml-burger-bars, .ml-burger-bars::before, .ml-burger-bars::after { display: block; width: 24px; height: 2px; background: var(--ml-text); position: relative; margin: 0 auto; transition: transform .2s, background .2s; }
.ml-burger-bars::before, .ml-burger-bars::after { content: ""; position: absolute; left: 0; }
.ml-burger-bars::before { top: -7px; } .ml-burger-bars::after { top: 7px; }
.ml-burger[aria-expanded="true"] .ml-burger-bars { background: transparent; }
.ml-burger[aria-expanded="true"] .ml-burger-bars::before { top: 0; transform: rotate(45deg); }
.ml-burger[aria-expanded="true"] .ml-burger-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 991px) {
    :root { --ml-header-h: 50px; }
    .ml-burger { display: block; }
    .ml-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; box-shadow: -8px 0 24px rgba(0, 0, 0, .18); padding: 70px 0 30px; overflow-y: auto; transform: translateX(105%); transition: transform .25s; z-index: 200; }
    .ml-nav.is-open { transform: none; }
    .ml-burger { position: relative; z-index: 210; }
    .ml-menu { display: block; }
    .ml-menu > .ml-mega { position: relative; }
    .ml-menu > li > a, .ml-menu > li > .ml-menu-label { line-height: 1.4; padding: 12px 20px; white-space: normal; }
    .ml-menu .menu-item-has-children > a::after, .ml-menu > .menu-item-has-children > .ml-menu-label::after { display: none; }
    .ml-submenu-toggle { display: block; position: absolute; right: 0; top: 0; width: 48px; height: 46px; background: none; border: 0; cursor: pointer; }
    .ml-submenu-toggle::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border-right: 2px solid var(--ml-text); border-bottom: 2px solid var(--ml-text); transform: rotate(45deg); transition: transform .2s; }
    li.is-open > .ml-submenu-toggle::before { transform: rotate(-135deg); }
    .ml-menu .sub-menu, .ml-menu .sub-menu .sub-menu, .ml-menu > .ml-mega > .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; width: auto; min-width: 0; grid-template-columns: 1fr; }
    .ml-menu li.is-open > .sub-menu { display: block; }
    .ml-menu > .ml-mega > .sub-menu { padding: 0 0 0 16px; }
    .ml-menu > .ml-mega > .sub-menu > li.ml-wide { order: 0; }
    .ml-menu > .ml-mega > .sub-menu > li > .ml-menu-label, .ml-menu > .ml-mega > .sub-menu > li > a { border: 0; margin: 0; font-size: 14px; }
    .ml-menu > .ml-mega .sub-menu .sub-menu { display: none; }
    .ml-menu > .ml-mega .sub-menu li.is-open > .sub-menu { display: block; }
    .ml-menu .sub-menu li > a, .ml-menu .sub-menu li > .ml-menu-label { padding: 10px 14px; }
    .admin-bar .ml-header { top: 46px; }
}

.ml-main { min-height: 50vh; }
.ml-section { padding-top: 50px; padding-bottom: 50px; }
.ml-section-title { padding-bottom: 0; }
.ml-page-title { margin-bottom: .5em; }
.ml-meta { color: #666; font-size: 14px; }
.ml-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 14px; color: #666; }
.ml-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.ml-breadcrumb a { text-decoration: none; }

.entry-content > * { max-width: var(--ml-container); margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.entry-content.ml-container > * { padding-left: 0; padding-right: 0; }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > .alignfull > *:not(.alignfull), .entry-content .wp-block-cover__inner-container > * { max-width: var(--ml-container); margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.entry-content > .alignfull > .ml-slider { max-width: none; margin: 0; padding: 0; }
.entry-content .wp-block-cover__inner-container { width: 100%; }
.entry-content .wp-block-cover { min-height: 0; align-items: flex-start; padding-left: 0; padding-right: 0; }
.entry-content .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-content .wp-block-group.ml-row { margin-top: 0; margin-bottom: 0; }
.entry-content .wp-block-columns { gap: 30px; margin-bottom: 0; }
.entry-content .wp-block-image { margin: 0 0 1em; }
.entry-content .wp-block-image img { display: block; max-width: 100%; height: auto; }
.entry-content .wp-block-image.aligncenter { text-align: center; }
.entry-content .wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }
.is-justified { text-align: justify; }
.wp-block-heading a { text-decoration: none; }

.wp-block-button__link, .ml-button { font-family: var(--ml-font); display: inline-block; background: var(--ml-blue); color: #fff; border: 0; border-radius: 3px; padding: 11px 26px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s; }
.wp-block-button__link:hover, .ml-button:hover { background: var(--ml-blue-dark); color: #fff; }
.wp-block-button__link.has-background:hover { filter: brightness(.92); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1em; }

.ml-slider { position: relative; height: calc(100vh - 110px); min-height: 350px; max-height: 900px; overflow: hidden; background: #111; color: #fff; }
.ml-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: center; justify-content: center; text-align: center; }
.ml-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(3, 69, 191, .30), rgba(3, 40, 120, .50)); }
.ml-slide.is-active { opacity: 1; visibility: visible; }
.ml-slide-inner { position: relative; max-width: 980px; padding: 0 70px; }
.ml-slide-title { margin: 0; color: #fff; font-size: clamp(28px, 5.4vw, 72px); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.ml-slide-text { margin: 20px 0 0; color: #fff; font-size: clamp(16px, 2.4vw, 30px); font-style: italic; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.ml-slider-prev, .ml-slider-next { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); cursor: pointer; z-index: 3; }
.ml-slider-prev { left: 16px; } .ml-slider-next { right: 16px; }
.ml-slider-prev:hover, .ml-slider-next:hover { background: rgba(255, 255, 255, .4); }
.ml-slider-prev::before, .ml-slider-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translate(-30%, -50%) rotate(45deg); }
.ml-slider-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.ml-slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.ml-slider-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.ml-slider-dots button[aria-current="true"] { background: #fff; }

.ml-tile { text-align: center; }
.ml-tile a { position: relative; display: block; overflow: hidden; }
.ml-tile a::after { content: ""; position: absolute; inset: 0; background: rgba(119, 219, 31, .5); opacity: 0; transition: opacity .25s; }
.ml-tile a:hover::after, .ml-tile a:focus-visible::after { opacity: 1; }
.ml-tile figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ml-text); }
.ml-feature { text-align: center; margin-bottom: 30px; }
.ml-feature img { transition: transform .3s; }
.ml-feature a:hover img { transform: scale(1.06); }
.ml-feature h3 { font-size: 20px; }
.ml-feature h3 a { color: inherit; }
.ml-testimonial { max-width: 800px; margin: 0 auto; text-align: center; font-style: italic; position: relative; }
.ml-testimonial::before { content: "\201C"; display: block; font-size: 72px; line-height: .6; color: var(--ml-blue); font-family: Georgia, serif; }
.zoom-effect { overflow: hidden; }
.zoom-effect img { transition: transform .3s ease; }
.zoom-effect img:hover { transform: scale(1.1); }

.ml-product { gap: 30px; margin-bottom: 1em; }
.ml-product .wp-block-media-text__media img { max-width: 100%; height: auto; }
.ml-product .wp-block-media-text__content { padding: 0; }
.ml-cta { margin-top: 30px; }

.ml-tabs-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0 !important; border-bottom: 2px solid var(--ml-blue); max-width: var(--ml-container); margin-left: auto; margin-right: auto; }
.ml-tabs-nav button { background: #f1f1f1; color: var(--ml-text); border: 0; padding: 12px 22px; font-size: 16px; font-weight: 600; cursor: pointer; }
.ml-tabs-nav button[aria-selected="true"] { background: var(--ml-blue); color: #fff; }
.ml-tabs.is-enhanced .ml-tab { display: none; }
.ml-tabs.is-enhanced .ml-tab.is-active { display: block; }
.ml-tabs.is-enhanced .ml-tab > .wp-block-heading:first-child { display: none; }
.ml-tabs > .ml-tab { max-width: none; padding: 0; }

.ml-map { margin: 0; }
.ml-map iframe { display: block; width: 100%; height: 480px; border: 0; }
.ml-map p { margin: 8px 0 0; font-size: 14px; }

.ml-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ml-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid #dde3ee; border-radius: 4px; color: var(--ml-text); text-decoration: none; background: #fff; transition: box-shadow .2s, border-color .2s; }
.ml-card:hover { border-color: var(--ml-blue); box-shadow: 0 6px 20px rgba(3, 69, 191, .12); color: var(--ml-text); }
.ml-card-icon { flex: none; width: 72px; }
.ml-card-icon img { width: 72px; height: 72px; object-fit: contain; }
.ml-card-title { display: block; font-weight: 700; color: var(--ml-blue); margin-bottom: 4px; }
.ml-card-text { display: block; font-size: 14px; line-height: 1.5; }
.ml-posts { display: grid; gap: 30px; }
.ml-post-card h2 { font-size: 24px; margin-bottom: 4px; }
.ml-post-card h2 a { text-decoration: none; }
.ml-more { font-weight: 600; }
.navigation.pagination { margin-top: 30px; }
.navigation.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.navigation.pagination a, .navigation.pagination span { padding: 6px 12px; border: 1px solid #dde3ee; text-decoration: none; }

.ml-form { max-width: 720px; }
.ml-form p { margin-bottom: 16px; }
.ml-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.ml-form input[type="text"], .ml-form input[type="email"], .ml-form input[type="tel"], .ml-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c3d6; border-radius: 3px; font: inherit; background: #fff; }
.ml-form input:focus, .ml-form textarea:focus { outline: 2px solid var(--ml-blue); outline-offset: 1px; border-color: var(--ml-blue); }
.ml-consent label { font-weight: 400; font-size: 14px; }
.ml-consent input { margin-right: 8px; }
.ml-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ml-notice { max-width: 720px; padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; font-weight: 600; }
.ml-notice-ok { background: #e6f7ee; color: #0b5d36; border: 1px solid #9fdcbc; }
.ml-notice-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f0b4b4; }

.ml-footer { background: var(--ml-blue); color: #fff; font-size: 14px; }
.ml-footer a { color: #d6e2fa; }
.ml-footer a:hover { color: #fff; }
.ml-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.ml-footer p { margin: 0 0 6px; }
.ml-footer .ml-small { font-size: 13px; }
.ml-footer-bar { border-top: 1px solid rgba(255, 255, 255, .22); padding: 16px 0; }
.ml-footer-bar p { margin: 0; text-align: center; font-size: 13px; }
@media (max-width: 900px) { .ml-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ml-footer-grid { grid-template-columns: 1fr; } .ml-topbar-inner { justify-content: center; } }

.ml-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ml-blue); cursor: pointer; z-index: 90; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ml-top[hidden] { display: none; }
.ml-top::before { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: translate(-50%, -30%) rotate(45deg); }

@media (max-width: 781px) {
    .ml-slide-inner { padding: 0 54px; }
    .entry-content .wp-block-columns { gap: 20px; }
    .ml-product { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

.entry-content .wp-block-cover.has-parallax { align-items: center; }
.entry-content .wp-block-cover.has-parallax .wp-block-cover__image-background { background-position: center; }

.ml-claim { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 0; }
.entry-content > .wp-block-cover.alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.entry-content > .wp-block-cover > .wp-block-cover__image-background, .entry-content > .wp-block-cover > .wp-block-cover__background { max-width: none; width: 100%; margin: 0; padding: 0; }

/* Sezione "Soluzioni informatiche": fondo blu brand al posto del grigio */
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] {
    background: radial-gradient(900px 420px at 10% 0%, rgba(3, 225, 109, .28), transparent 70%), linear-gradient(135deg, #0345bf 0%, #0a2f86 100%) !important;
    color: #fff;
}
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > h1 { color: #fff; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > p.has-text-align-center { color: var(--ml-green); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature:hover { transform: translateY(-8px); }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature img { border-radius: 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature a:hover img { transform: scale(1.04); }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature h3, .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature h3 a { color: #fff; }

/* Soluzioni: griglia a righe allineate (le voci nel markup sono in 3 colonne impilate) */
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; align-items: start; margin-top: 64px; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column { display: contents; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature { margin-bottom: 0; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-feature h3 { margin-top: 14px; margin-bottom: 0; min-height: 2.5em; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(1) > :nth-child(1) { order: 1; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(2) > :nth-child(1) { order: 2; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(3) > :nth-child(1) { order: 3; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(1) > :nth-child(2) { order: 4; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(2) > :nth-child(2) { order: 5; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(3) > :nth-child(2) { order: 6; }
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(1) > :nth-child(3) { order: 7; grid-column: 2; }
@media (max-width: 900px) {
    .home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns { grid-template-columns: repeat(2, 1fr); }
    .home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns > .wp-block-column:nth-child(1) > :nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] > .wp-block-columns { grid-template-columns: 1fr; }
}
.home .entry-content .wp-block-group.has-background[style*="b9b9b9" i] { padding-bottom: 90px !important; }

/* Citazione: box largo quanto il container */
.ml-testimonial { position: relative; max-width: none; margin: 40px 0 0; padding: 56px 48px 40px; border: 1px solid #dde3ee; }
.ml-testimonial::before { position: absolute; top: 0; left: 50%; transform: translate(-50%, calc(-50% + 8px)); margin: 0; padding: 0 18px; height: 96px; overflow: visible; background: #fff; font-size: 110px; line-height: 1.1; }
@media (max-width: 700px) { .ml-testimonial { padding: 28px 20px; } }

/* Testo nel parallasse: ombra per la leggibilità */
.entry-content .wp-block-cover.has-parallax .wp-block-cover__inner-container p { text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 14px rgba(0, 0, 0, .25); }

/* Footer: alto, importante, blu più scuro */
.ml-footer { position: relative; background: linear-gradient(180deg, #082a78 0%, #061d57 100%); color: #dbe5fa; font-size: 16px; line-height: 1.7; border-top: 5px solid var(--ml-green); }
.ml-footer-grid { padding-top: 96px; padding-bottom: 80px; gap: 48px; }
.ml-footer p { margin: 0 0 10px; }
.ml-footer .ml-small { font-size: 15px; }
.ml-footer-col:nth-child(n+3) > p:first-child { margin-bottom: 20px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ml-green); }
.ml-footer-col:first-child > p:first-child { margin-bottom: 14px; font-size: 18px; color: #fff; }
.ml-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .2s, border-color .2s; }
.ml-footer a:hover { color: var(--ml-green); border-bottom-color: var(--ml-green); }
.ml-footer-bar { background: rgba(0, 0, 0, .22); border-top: 0; padding: 22px 0; }
.ml-footer-bar p { font-size: 14px; color: #aebbd9; }
@media (max-width: 900px) { .ml-footer-grid { padding-top: 64px; padding-bottom: 48px; } }

/* Tab schede: tutte su una riga */
.ml-tabs-nav { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.ml-tabs-nav button { flex: 1 1 auto; white-space: nowrap; text-align: center; font-size: clamp(12px, 1.15vw, 15px); padding: 12px clamp(6px, .9vw, 14px); }

/* ===== Pagine interne (tutte tranne la home) ===== */
body:not(.home) .entry-content { color: var(--ml-text); font-size: 17px; }

/* Titolo di pagina: primo titolo della pagina, grande e in blu brand */
body:not(.home) .entry-content > .ml-row:first-child { padding-top: 64px !important; padding-bottom: 8px !important; }
body:not(.home) .entry-content > .ml-row:first-child > .wp-block-heading:first-child { position: relative; margin: 0 0 .4em; padding-bottom: 18px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--ml-blue) !important; }
body:not(.home) .entry-content > .ml-row:first-child > .wp-block-heading:first-child::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 3px; background: var(--ml-green); }

/* Gerarchia dei titoli nel contenuto */
body:not(.home) .entry-content h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ml-blue); font-weight: 800; }
body:not(.home) .entry-content h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--ml-blue); font-weight: 700; }
body:not(.home) .entry-content h4 { font-size: 20px; color: var(--ml-text); }
body:not(.home) .entry-content li { margin-bottom: .45em; }
body:not(.home) .entry-content li::marker { color: var(--ml-green); }

/* Fasce chiare con titolo di sezione */
body:not(.home) .entry-content .wp-block-group.has-background[style*="f4f1f1" i],
body:not(.home) .entry-content .wp-block-group.has-background[style*="f9f9f9" i] { background-color: #eef3fc !important; color: var(--ml-text); }
body:not(.home) .entry-content .wp-block-group.has-background[style*="f4f1f1" i] { padding-top: 28px !important; padding-bottom: 28px !important; border-left: 6px solid var(--ml-green); }
body:not(.home) .entry-content .wp-block-group.has-background[style*="f4f1f1" i] > .wp-block-heading { margin-bottom: 0; }

/* Fasce ex grigio (#b9b9b9): tinta azzurra chiara, testo scuro, mai blu pieno */
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] { background: #e7eefb !important; color: var(--ml-text); padding-top: 64px !important; padding-bottom: 64px !important; }
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .wp-block-heading,
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] h1,
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] h2,
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] h3 { color: var(--ml-blue); }
body:not(.home) .entry-content .wp-block-group.has-background[style*="b9b9b9" i] .ml-tile figcaption { color: var(--ml-text); font-size: 15px; }
body:not(.home) .entry-content .ml-tile a { border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(3, 69, 191, .12); }
body:not(.home) .entry-content .ml-tile a::after { background: rgba(3, 225, 109, .35); }

/* Pulsanti: testo sempre leggibile */
.entry-content .wp-block-button__link.has-background[style*="03E16D" i] { color: #04210f !important; }
.entry-content .wp-block-button__link { border-radius: 6px; }

/* Schede (tabs) */
.ml-tabs-nav button[aria-selected="true"] { background: var(--ml-blue); color: #fff; }
.ml-tabs-nav button:hover:not([aria-selected="true"]) { background: #dfe8f8; color: var(--ml-blue); }

/* Moduli (demo, lavora con noi) */
.ml-form label { color: var(--ml-text); }
.ml-form input[type="submit"], .ml-form button[type="submit"] { background: var(--ml-blue); color: #fff; border: 0; border-radius: 6px; padding: 12px 28px; font-size: 16px; font-weight: 600; cursor: pointer; }
.ml-form input[type="submit"]:hover, .ml-form button[type="submit"]:hover { background: var(--ml-blue-dark); }
