/* ==========================================================================
   Avarice S.r.l. - foglio di stile del sito (Bootstrap 5.3 + personalizzazioni)
   ========================================================================== */

/* ---------- Font self-hosted (nessuna chiamata a Google Fonts) ---------- */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Merriweather Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/merriweather-sans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Variabili ---------- */
:root {
    --av-red: #f01400;          /* rosso del marchio: accenti e superfici grandi */
    --av-red-text: #c41000;     /* rosso per testi e link (contrasto AA su bianco) */
    --av-navy: #1f2a3c;
    --av-slate: #505c70;
    --av-muted: #4b5563;
    --av-light: #f5f6f8;
    --av-border: #e3e6eb;
    --av-radius: .75rem;
    --av-shadow: 0 .25rem 1.25rem rgba(31, 42, 60, .08);
    --av-header-h: 72px;

    --bs-font-sans-serif: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: #333a45;
    --bs-link-color: var(--av-red-text);
    --bs-link-color-rgb: 196, 16, 0;
    --bs-link-hover-color: #8f0c00;
    --bs-link-hover-color-rgb: 143, 12, 0;
    --bs-primary: var(--av-red-text);
    --bs-primary-rgb: 196, 16, 0;
}

html { scroll-padding-top: calc(var(--av-header-h) + 1rem); }
body { font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; }

h1, h2, h3, h4, .footer-title, .consent-title {
    font-family: "Merriweather Sans", var(--bs-font-sans-serif);
    color: var(--av-navy);
    font-weight: 700;
    line-height: 1.25;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }

img { max-width: 100%; height: auto; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--av-red); outline-offset: 2px; }
#main:focus { outline: none; }

.skip-link {
    position: absolute; top: .5rem; left: .5rem; z-index: 2000;
    background: #fff; padding: .5rem 1rem; border-radius: .5rem; box-shadow: var(--av-shadow);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pulsanti ---------- */
.btn-cta {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--av-red-text);
    --bs-btn-border-color: var(--av-red-text);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #9d0d00;
    --bs-btn-hover-border-color: #9d0d00;
    --bs-btn-focus-shadow-rgb: 240, 20, 0;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-font-weight: 600;
    border-radius: 999px;
}
.btn-cta-outline {
    --bs-btn-color: var(--av-red-text);
    --bs-btn-border-color: var(--av-red-text);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--av-red-text);
    --bs-btn-hover-border-color: var(--av-red-text);
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-font-weight: 600;
    border-radius: 999px;
}
.hero .btn-cta-outline, .page-hero .btn-cta-outline { --bs-btn-color: #fff; --bs-btn-border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--av-border); box-shadow: 0 2px 12px rgba(31, 42, 60, .08); }
.site-header .navbar { min-height: var(--av-header-h); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--av-navy); }
.navbar-brand:hover { color: var(--av-navy); }
.navbar-brand picture, .footer-brand picture { display: block; }
.brand-logo { display: block; height: 48px; width: auto; }
@media (max-width: 991.98px) { .brand-logo { height: 40px; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .brand-logo { height: 42px; } }
.navbar-toggler { border: 0; font-size: 1.75rem; color: var(--av-navy); }
.navbar-toggler:focus { box-shadow: none; }

.site-header .nav-link {
    font-weight: 600; color: var(--av-navy); padding: .5rem .85rem !important;
    border-radius: .5rem;
}
.site-header .nav-link:hover { color: var(--av-red-text); background: var(--av-light); }
.site-header .nav-link.active { color: var(--av-red-text); }
.lang-switch { flex-direction: row; gap: .25rem; }
.lang-switch .nav-link { font-size: .85rem; padding: .35rem .6rem !important; }
.lang-switch .nav-link.active { background: var(--av-navy); color: #fff; }
@media (min-width: 992px) {
    .lang-switch { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--av-border); }
}
@media (max-width: 991.98px) {
    .navbar-collapse { padding-bottom: 1rem; }
    .lang-switch { margin-top: .5rem; }
}

/* ---------- Hero home ---------- */
.hero {
    position: relative; color: #fff; text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: var(--av-navy) url("../img/background/hero-home.jpg?v=2") center / cover no-repeat;
    isolation: isolate;
}
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
}
.hero::before {
    background: linear-gradient(90deg, rgba(20, 28, 42, .12), rgba(20, 28, 42, .82) 32%, rgba(20, 28, 42, .82) 68%, rgba(20, 28, 42, .12));
}
.page-hero::before {
    background: linear-gradient(180deg, rgba(20, 28, 42, .55), rgba(20, 28, 42, .75));
}
@media (max-width: 767.98px) {
    .hero::before { background: rgba(20, 28, 42, .74); }
}
.hero-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; font-weight: 600; opacity: .9; margin-bottom: .75rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 46rem; margin: 0 auto 2rem; }

/* ---------- Hero pagine interne: immagine dalla classe header-wrapper-* (ViewBag.CssHeaderWrapper o PageHeroModel.CssClass) ---------- */
.page-hero {
    position: relative; isolation: isolate; color: #fff; text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: var(--av-navy) center / cover no-repeat; /* senza classe di pagina: solo blu */
}
.page-hero-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .75rem; }
.page-hero-intro { max-width: 50rem; margin: 0 auto; font-size: 1.15rem; opacity: .95; }
.page-hero-intro p:last-child { margin-bottom: 0; }

.header-wrapper-about { background-image: url("../img/background/heading-background-about.jpg?v=2"); }
.header-wrapper-meeting { background-image: url("../img/background/heading-background-meeting.jpg?v=3"); }
.header-wrapper-partners { background-image: url("../img/background/heading-background-partners.jpg?v=2"); }
.header-wrapper-consulting { background-image: url("../img/background/heading-background-consulting.jpg?v=3"); }
.header-wrapper-technology { background-image: url("../img/background/heading-background-technology.jpg?v=2"); }
.header-wrapper-ai {background-image: url("../img/background/heading-background-ai.jpg?v=3");}
.header-wrapper-itprojects { background-image: url("../img/background/heading-background-itprojects.jpg?v=3"); }
.header-wrapper-products { background-image: url("../img/background/heading-background-products.jpg?v=2"); }
.header-wrapper-contact { background-image: url("../img/background/heading-background-contacts.jpg?v=2"); }
.heading-background-teamwork { background-image: url("../img/background/heading-background-teamwork.jpg?v=3"); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--av-light); }
.section-intro { max-width: 52rem; margin: 0 auto 2.5rem; text-align: center; color: var(--av-muted); font-size: 1.125rem; }
.section-intro p:last-child { margin-bottom: 0; }
.prose { max-width: 52rem; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose :first-child { margin-top: 0; }
.prose table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--av-border); padding: .6rem .75rem; vertical-align: top; text-align: left; }
.prose th { background: var(--av-light); }

/* ---------- Card ---------- */
.card-feature {
    height: 100%; border: 1px solid var(--av-border); border-radius: var(--av-radius);
    overflow: hidden; background: #fff; box-shadow: var(--av-shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.card-feature:hover { transform: translateY(-3px); box-shadow: 0 .75rem 2rem rgba(31, 42, 60, .12); }
.card-feature .card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 0; background: var(--av-light); }
.card-feature .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-feature .card-title { font-size: 1.25rem; margin-bottom: .75rem; }
.card-feature .card-title a { color: var(--av-navy); text-decoration: none; }
.card-feature .card-title a::after { content: ""; position: absolute; inset: 0; } /* intera card cliccabile */
.card-feature { position: relative; }
.card-feature .card-text { color: var(--av-muted); }
.card-feature .card-text p:last-child { margin-bottom: 0; }
.card-feature .card-more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--av-red-text); display: inline-flex; align-items: center; gap: .4rem; }

/* Blocchi icona (SharePoint, Prodotti) */
.feature-block { height: 100%; padding: 2rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); }
.feature-block .feature-icon {
    width: 3.25rem; height: 3.25rem; border-radius: .75rem; display: grid; place-items: center;
    background: rgba(240, 20, 0, .08); color: var(--av-red-text); font-size: 1.5rem; margin-bottom: 1rem;
}

/* Box laterale (opportunità di lavoro, contatti) */
.aside-box { background: var(--av-navy); color: #e6e9ef; border-radius: var(--av-radius); padding: 2rem; }
.aside-box h2, .aside-box h3 { color: #fff; font-size: 1.35rem; }
.aside-box a:not(.btn) { color: #fff; }

.highlight-box { background: #fff8e6; border: 1px solid #f3dca0; border-radius: var(--av-radius); padding: 1.5rem; margin-top: 1.5rem; }

/* ---------- Liste tecnologie ---------- */
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem;
    border-radius: 50%; background: var(--av-red);
}
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: .8rem; background: var(--av-light); border: 1px solid var(--av-border); border-radius: 999px; padding: .15rem .65rem; color: var(--av-slate); }

/* ---------- Filtri ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter-bar button {
    border: 1px solid var(--av-border); background: #fff; color: var(--av-navy);
    border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-size: .9rem;
}
.filter-bar button:hover { border-color: var(--av-red-text); color: var(--av-red-text); }
.filter-bar button[aria-pressed="true"] { background: var(--av-navy); border-color: var(--av-navy); color: #fff; }

/* ---------- Case study ---------- */
.project-card .card-img { aspect-ratio: 16 / 10; }

/* ---------- Contatti ---------- */
.contact-card { height: 100%; text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; }
.contact-card .icon { font-size: 1.75rem; color: var(--av-red-text); margin-bottom: .75rem; }
.contact-card a { font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.contact-card p { color: var(--av-muted); margin: .25rem 0 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--av-navy); color: #c8d0dc; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer .btn-link:hover { text-decoration: underline; color: #fff; }
.site-footer .btn-link { color: #fff; text-decoration: none; font-size: inherit; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-brand img { display: block; height: 40px; width: auto; }
.footer-links li, .footer-contacts li { margin-bottom: .45rem; }
/* Link rapidi su due colonne (anche su telefono: sono voci brevi) */
.footer-links-2col { columns: 2; column-gap: 2rem; }
.footer-links-2col li { break-inside: avoid; }
.footer-contacts li { display: flex; align-items: center; gap: .6rem; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-bottom .list-inline-item:not(:last-child)::after { content: "·"; margin-left: .5rem; color: #7d8898; }

.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
    width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--av-red-text); color: #fff; box-shadow: var(--av-shadow);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: #9d0d00; }

/* ---------- Banner cookie ---------- */
.consent-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080;
    background: var(--av-navy); color: #e6e9ef; padding: 1.5rem 0;
    box-shadow: 0 -.5rem 2rem rgba(0, 0, 0, .25);
}
.consent-banner .container { position: relative; max-width: 960px; }
.consent-banner a { color: #fff; }
.consent-title { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; padding-right: 2.5rem; }
.consent-close { position: absolute; top: -.25rem; right: .75rem; background: none; border: 0; color: #fff; font-size: 1.25rem; padding: .25rem; }
.consent-prefs { display: grid; gap: 1rem; margin: 1rem 0; padding: 1rem; border-radius: .5rem; background: rgba(255, 255, 255, .06); font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.consent-actions .btn { min-width: 9rem; font-weight: 600; }
@media (max-width: 575.98px) { .consent-actions .btn { flex: 1 1 100%; } }

/* ---------- Pagina errore / 404 ---------- */
.error-page { min-height: 50vh; display: grid; place-items: center; text-align: center; }

/* ---------- Passi del metodo (pagina AI) ---------- */
.step-number { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--av-navy); color: #fff; font-weight: 700; margin-bottom: 1rem; }

.tag-list-dark li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.feature-block .tag-list { margin-top: .5rem; }
.contact-card-primary { border-color: var(--av-red-text); box-shadow: var(--av-shadow); }
.contact-card h2 { margin-bottom: .5rem; }

/* ---------- Loghi clienti (Chi siamo) ---------- */
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.logo-wall-item { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.25rem 1rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; text-align: center; text-decoration: none; color: var(--av-navy); transition: box-shadow .2s, transform .2s; }
a.logo-wall-item:hover { box-shadow: var(--av-shadow); transform: translateY(-2px); color: var(--av-red-text); }
.logo-wall-item img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.logo-wall-name { font-size: .9rem; font-weight: 600; line-height: 1.3; }

/* ---------- Consulenza: navigazione interna e sezioni ---------- */
.anchor-nav { margin: 2rem 0 clamp(2.5rem, 6vw, 4rem); gap: .75rem; }
.anchor-nav a { border: 1px solid var(--av-border); background: #fff; color: var(--av-navy); border-radius: 999px; padding: .55rem 1.25rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.anchor-nav a:hover { border-color: var(--av-red-text); color: var(--av-red-text); }
.consulting-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.consulting-body ul { padding-left: 1.2rem; }
.consulting-body ul.check-list { padding-left: 0; }
.consulting-body :last-child { margin-bottom: 0; }

/* ---------- Case study: banda del settore ---------- */
.card-sector { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; background: var(--av-navy); }
.card-sector .icon { font-size: 1.25rem; }
.card-sector.sector-healthcare { background: linear-gradient(90deg, #1f2a3c, #2f6f8f); }
.card-sector.sector-logistics { background: linear-gradient(90deg, #1f2a3c, #4b6a4f); }
.card-sector.sector-industry { background: linear-gradient(90deg, #1f2a3c, #8a3b2a); }
.card-sector.sector-enterprise { background: linear-gradient(90deg, #1f2a3c, #5a4b7a); }
.card-sector.sector-ict { background: linear-gradient(90deg, #1f2a3c, #505c70); }
.card-sector.sector-ai { background: linear-gradient(90deg, #1f2a3c, #c41000); }

/* ---------- Prodotti ---------- */
.product-card .card-img { aspect-ratio: 16 / 10; }
.product-card .card-title { margin-bottom: .25rem; }
.product-tagline { font-weight: 600; color: var(--av-red-text); margin-bottom: .75rem; }
.product-card .check-list li { font-size: .95rem; }
/* Modello di distribuzione (SaaS / on-premise) su schede e panoramiche prodotto */
.product-delivery { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; padding: .2rem .65rem; border-radius: 999px; background: #eef1f5; color: var(--av-slate); font-size: .8rem !important; font-weight: 600; line-height: 1.4; }
.product-delivery .icon { font-size: .9em; }
.breadcrumb { font-size: .9rem; }

/* ---------- Menu: pulsante Contattaci ---------- */
.nav-item-cta { display: flex; align-items: center; }
.nav-item-cta .btn { padding: .4rem 1rem; font-weight: 600; }
@media (min-width: 992px) { .nav-item-cta { margin-left: .75rem; } }
@media (max-width: 991.98px) { .nav-item-cta { padding: .5rem 0; } }

/* ---------- Contatti ---------- */
.contact-main { height: 100%; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--av-radius); background: var(--av-navy); color: #fff; }
.contact-main h2 { color: #fff; margin-bottom: .75rem; }
.contact-main-lead { font-size: 1.1rem; opacity: .92; margin-bottom: 1.5rem; }
.contact-main .btn .icon { margin-right: .35rem; }
.contact-main-address { margin: .6rem 0 0; font-size: .9rem; opacity: .8; }
.contact-next-title { color: #fff; margin: 2rem 0 .75rem; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .85; }
.contact-next { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-next li { counter-increment: step; position: relative; padding-left: 2.4rem; min-height: 1.8rem; line-height: 1.8rem; }
.contact-next li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--av-red); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; line-height: 1.8rem; }
.contact-other { height: 100%; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--av-border); }
.contact-list li:first-child { border-top: 0; padding-top: .25rem; }
.contact-list .icon { flex: none; font-size: 1.2rem; margin-top: .15rem; color: var(--av-red-text); }
.contact-list strong { display: block; color: var(--av-navy); }
.contact-list span { display: block; font-size: .9rem; color: var(--av-muted); }
.contact-list a { font-weight: 600; word-break: break-word; }
.region-card { height: 100%; padding: 1.75rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); }
.region-card h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .4rem; margin: .5rem 0 .6rem; }
.region-card h3 .icon { color: var(--av-red-text); }
.region-card p { color: var(--av-muted); }
.region-label { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 999px; background: var(--av-light); color: var(--av-slate); }
.region-hq { border-color: var(--av-red-text); box-shadow: var(--av-shadow); }
.region-hq .region-label { background: var(--av-red-text); color: #fff; }
.section-compact { padding: 2rem 0; }
.company-data { max-width: 56rem; margin: 0 auto; text-align: center; font-size: .9rem; color: var(--av-muted); }
.company-data h2 { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--av-slate); }

/* ---------- Sotto-sito prodotto (WMS) ---------- */
.product-subnav { position: sticky; top: var(--av-header-h); z-index: 1020; background: #fff; border-bottom: 1px solid var(--av-border); box-shadow: 0 2px 10px rgba(31, 42, 60, .05); }
.product-subnav .container { display: flex; align-items: center; gap: 1rem; min-height: 3.25rem; }
.product-subnav-brand { font-weight: 800; color: var(--av-navy); white-space: nowrap; padding-right: 1rem; border-right: 1px solid var(--av-border); }
.product-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; position: relative; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.product-subnav ul::-webkit-scrollbar { display: none; }
.product-subnav a:not(.btn) { display: block; white-space: nowrap; padding: .9rem .7rem; font-size: .92rem; font-weight: 600; color: var(--av-slate); text-decoration: none; border-bottom: 3px solid transparent; }
.product-subnav a:not(.btn):hover { color: var(--av-red-text); }
.product-subnav a.active { color: var(--av-navy); border-bottom-color: var(--av-red); }
.product-subnav-cta { white-space: nowrap; }
@media (max-width: 767.98px) { .product-subnav-brand, .product-subnav-cta { display: none; } }
.product-subnav ~ section[id] { scroll-margin-top: calc(var(--av-header-h) + 4.5rem); }
.feature-icon-lg { width: 3.75rem; height: 3.75rem; border-radius: .9rem; display: grid; place-items: center; background: rgba(240, 20, 0, .08); color: var(--av-red-text); font-size: 1.75rem; margin-bottom: 1rem; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: none; }
.flow-step { position: relative; padding: 1.5rem 1.25rem; border-radius: var(--av-radius); background: var(--av-light); border: 1px solid var(--av-border); }
.flow-step strong { display: block; color: var(--av-navy); font-size: 1.1rem; margin-bottom: .35rem; }
.flow-step span:not(.step-number) { color: var(--av-muted); font-size: .95rem; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 2.25rem; right: -.85rem; width: .7rem; height: .7rem; border-top: 2px solid var(--av-red); border-right: 2px solid var(--av-red); transform: rotate(45deg); }
@media (max-width: 991.98px) { .flow { grid-template-columns: 1fr; } .flow-step:not(:last-child)::after { top: auto; bottom: -.8rem; right: auto; left: 2rem; transform: rotate(135deg); } }
.module-card { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.5rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 2rem rgba(31, 42, 60, .12); }
.module-card .icon { font-size: 1.5rem; color: var(--av-red-text); }
.module-card strong { color: var(--av-navy); font-size: 1.1rem; }
.module-card span { color: var(--av-muted); }
.prose-lg { font-size: 1.1rem; line-height: 1.75; }
.prose-lg p:last-child { margin-bottom: 0; }
.prose-lg h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.compare-card { position: relative; height: 100%; padding: 2rem 1.75rem 1.75rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); }
.compare-card h3 { font-size: 1.3rem; margin: .75rem 0 1rem; }
.compare-card .check-list { margin-bottom: 0; }
.compare-card-accent { border-color: var(--av-red-text); box-shadow: var(--av-shadow); }
.compare-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; background: var(--av-navy); color: #fff; }
.compare-card-accent .compare-tag { background: var(--av-red-text); }
.product-demo { background: #fdf1ef; border-top: 1px solid #f6d6d0; }

/* ---------- Sotto-sito CuraDomus (colori del marchio: blu #0662a3, verde #50a349) ---------- */
:root { --cd-blue: #0662a3; --cd-blue-dark: #054d80; --cd-green: #50a349; --cd-light: #eef5fb; }
.cd-hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0; color: var(--av-navy);
    background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,0) 68%), #eef4fb url("../img/products/curadomus/hero.jpg?v=3") right center / auto 100% no-repeat; }
.cd-hero-text { max-width: 36rem; }
.cd-hero h1 { color: var(--cd-blue); font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem); margin-bottom: .75rem; }
.cd-hero-intro { font-size: 1.2rem; color: var(--av-slate); margin-bottom: 0; }
@media (max-width: 767.98px) { .cd-hero { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8)), #eef4fb url("../img/products/curadomus/hero.jpg?v=3") 80% center / auto 100% no-repeat; } }
.product-cd .product-subnav-logo { flex: none; padding-right: 1rem; border-right: 1px solid var(--av-border); }
.product-cd .product-subnav-logo img { height: 34px; width: auto; display: block; }
.product-cd a.active { border-bottom-color: var(--cd-green); }
.product-cd a:not(.btn):hover { color: var(--cd-blue); }
@media (max-width: 767.98px) { .product-cd .product-subnav-logo { display: none; } }
.btn-cd { --bs-btn-color: #fff; --bs-btn-bg: var(--cd-blue); --bs-btn-border-color: var(--cd-blue); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--cd-blue-dark); --bs-btn-hover-border-color: var(--cd-blue-dark); --bs-btn-active-bg: var(--cd-blue-dark); font-weight: 600; }
.feature-block-cd .feature-icon { background: rgba(6, 98, 163, .08); color: var(--cd-blue); }
.compare-card-cd { border-color: var(--cd-blue); box-shadow: var(--av-shadow); }
.compare-card-cd .compare-tag { background: var(--cd-green); }
.product-demo-cd { background: var(--cd-light); border-top-color: #d6e6f5; }

/* ---------- Schermate di prodotto (compaiono solo se il file esiste) ---------- */
.shot { margin: 0; }
.shot-frame { border-radius: .75rem; overflow: hidden; background: #fff; border: 1px solid var(--av-border); box-shadow: 0 .75rem 2rem rgba(31, 42, 60, .12); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; gap: .35rem; padding: .55rem .75rem; background: #eef1f5; border-bottom: 1px solid var(--av-border); }
.shot-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #cfd5de; }
.shot-mobile .shot-frame { border-radius: 1.5rem; border: 6px solid #1f2a3c; max-width: 280px; margin: 0 auto; }
.shot-plain img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .75rem; text-align: center; font-size: .9rem; color: var(--av-muted); }
.shot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; aspect-ratio: 16 / 10; padding: 1rem; text-align: center; background: repeating-linear-gradient(45deg, #f7f8fa, #f7f8fa 12px, #eef1f5 12px, #eef1f5 24px); border: 2px dashed #c9d1dc; color: var(--av-slate); }
.shot-placeholder .icon { font-size: 2rem; opacity: .6; }
.shot-placeholder code { font-size: .75rem; color: var(--av-muted); word-break: break-all; }
.shot-mobile .shot-placeholder { aspect-ratio: 9 / 19; border: 0; }

/* ---------- Incontri conoscitivi (/meeting) ---------- */
.meet-info p { color: var(--av-muted); }
.meet-steps li { line-height: 1.5; min-height: 1.8rem; padding-top: .1rem; }
.meet-form { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; box-shadow: var(--av-shadow); }
.meet-block { margin: 0 0 1.75rem; padding: 0; border: 0; }
.meet-block legend { font-size: 1.15rem; font-weight: 700; color: var(--av-navy); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.meet-num { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--av-navy); color: #fff; font-size: .9rem; }
.meet-hint { font-size: .88rem; color: var(--av-muted); }
/* Badge di reCAPTCHA v3 nascosto: l'informativa richiesta da Google è nella nota sotto il modulo (Meet_Privacy_Note) */
.grecaptcha-badge { visibility: hidden; }
.meet-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; max-height: 22rem; overflow-y: auto; padding: .25rem; }
.meet-day { border: 1px solid var(--av-border); border-radius: .75rem; padding: .75rem; background: var(--av-light); }
.meet-day-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; text-transform: capitalize; }
.meet-day-label span { font-size: .85rem; color: var(--av-muted); }
.meet-day-label strong { color: var(--av-navy); }
.meet-slots { display: flex; flex-wrap: wrap; gap: .4rem; }
.meet-slot-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.meet-slot { display: inline-block; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--av-border); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.meet-slot:hover { border-color: var(--av-red-text); color: var(--av-red-text); }
.meet-slot-input:checked + .meet-slot { background: var(--av-red-text); border-color: var(--av-red-text); color: #fff; }
.meet-slot-input:focus-visible + .meet-slot { outline: 3px solid rgba(196, 16, 0, .35); outline-offset: 2px; }
.meet-selected { margin: .75rem 0 0; font-size: .95rem; text-transform: none; }
.meet-error { color: #b02a37; font-size: .9rem; margin: .5rem 0 0; }
.meet-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meet-result { max-width: 40rem; margin: 0 auto; text-align: center; }
.meet-band { padding: clamp(2rem, 5vw, 3rem) 0; background: #fdf1ef; border-top: 1px solid #f6d6d0; border-bottom: 1px solid #f6d6d0; }
.meet-band-inner { display: flex; align-items: center; gap: 1.5rem; }
.meet-band-icon { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--av-red-text); font-size: 1.6rem; box-shadow: var(--av-shadow); }
.meet-band-text { flex: 1; }
.meet-band-text h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin-bottom: .35rem; }
.meet-band-text p { margin: 0; color: var(--av-muted); }
.meet-band .btn { flex: none; }
@media (max-width: 767.98px) { .meet-band-inner { flex-direction: column; text-align: center; } }
.contact-meet { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.contact-meet p { opacity: .9; margin-bottom: .75rem; }
.contact-meet .btn .icon { margin-right: .35rem; }
.meet-review { max-width: 44rem; margin: 0 auto; }
.meet-review-data { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem 1rem; padding: 1.5rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: var(--av-light); margin-bottom: 1.5rem; }
.meet-review-data dt { color: var(--av-muted); font-weight: 600; }
.meet-review-data dd { margin: 0; }
.meet-review-msg { white-space: pre-line; }

/* ===== Case study: pagine di dettaglio (Views/ITProjects/Cases) ===== */
.case-hero .container { text-align: center; }
.case-back { display: inline-flex; align-items: center; gap: .35rem; color: #fff; opacity: .85; font-weight: 600; font-size: .9rem; text-decoration: none; margin-bottom: 1.25rem; }
.case-back:hover { opacity: 1; color: #fff; text-decoration: underline; }
.case-sectors { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.case-sectors li { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.case-facts { padding: 1.75rem; border-radius: var(--av-radius); background: var(--av-light); border: 1px solid var(--av-border); }
.case-facts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.case-facts dl { margin: 0 0 1.25rem; }
.case-facts dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--av-slate); }
.case-facts dd { margin: 0 0 .9rem; color: var(--av-navy); }
.case-facts-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--av-slate); margin-bottom: .5rem; }
.flow-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .flow-4 { grid-template-columns: 1fr; } }
.case-point { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.5rem; border: 1px solid var(--av-border); border-radius: var(--av-radius); background: #fff; }
.case-point .icon { font-size: 1.5rem; color: var(--av-red-text); margin-bottom: .25rem; }
.case-point strong { color: var(--av-navy); font-size: 1.1rem; }
.case-point span { color: var(--av-muted); }
.case-result { max-width: 50rem; margin: 0 auto; padding-left: 1.5rem; border-left: 4px solid var(--av-red); }
.case-pairs { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.case-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: .75rem; }
.case-pair-side { display: flex; flex-direction: column; justify-content: center; }
.case-pair-side { padding: .9rem 1.1rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); color: var(--av-navy); font-weight: 600; box-shadow: 0 .25rem .75rem rgba(31, 42, 60, .06); }
.case-pair-side small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--av-slate); margin-bottom: .2rem; }
.case-pair-link { align-self: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--av-red-text); font-size: 1.25rem; }
.case-pair-link em { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.case-pairs-note { margin: .75rem 0 0; font-size: .85rem; color: var(--av-muted); }
@media (max-width: 575.98px) { .case-pair { grid-template-columns: 1fr; } .case-pair-link { flex-direction: row; } .case-pair-link .icon { transform: rotate(90deg); } }
.case-table-wrap { max-width: 56rem; margin: 3rem auto 0; padding: 1.75rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); box-shadow: 0 .75rem 2rem rgba(31, 42, 60, .08); }
.case-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.case-table th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--av-slate); padding: .6rem .75rem; border-bottom: 2px solid var(--av-border); text-align: left; }
.case-table td { padding: .75rem; border-bottom: 1px solid var(--av-border); color: var(--av-navy); vertical-align: top; }
.case-table tr:last-child td { border-bottom: 0; }
.case-table .is-noshow td { background: #fdf1ef; }
.case-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.case-badge-ok { background: #e7f4ea; color: #1e6b34; }
.case-badge-warn { background: #fbe1dd; color: #9d0d00; }
.case-badge-info { background: #e6eef8; color: #1f4f8a; }
.case-cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.case-cycle-step { position: relative; padding: 1.25rem 1rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); }
.case-cycle-step strong { display: block; color: var(--av-navy); margin-bottom: .3rem; }
.case-cycle-step span:not(.step-number) { color: var(--av-muted); font-size: .9rem; }
.case-cycle-step:not(:last-child)::after { content: ""; position: absolute; top: 2rem; right: -.8rem; width: .6rem; height: .6rem; border-top: 2px solid var(--av-red); border-right: 2px solid var(--av-red); transform: rotate(45deg); }
.case-cycle-note { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 1.75rem auto 0; max-width: 48rem; text-align: center; color: var(--av-slate); }
.case-cycle-note .icon { flex: none; font-size: 1.4rem; color: var(--av-red-text); }
@media (max-width: 1199.98px) { .case-cycle { grid-template-columns: repeat(3, 1fr); } .case-cycle-step:nth-child(3)::after { display: none; } }
@media (max-width: 767.98px) { .case-cycle { grid-template-columns: 1fr; } .case-cycle-step::after { display: none; } }
/* Pagina Open source su misura */
.header-wrapper-opensource { background-image: url("../img/background/heading-background-opensource.jpg?v=2"); }
.os-card { height: 100%; display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); }
.os-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.os-card-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: #eef1f5; color: var(--av-red-text); font-size: 1.35rem; }
.os-card-kind { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--av-muted); }
.os-card h3 { margin: 0; font-size: 1.4rem; }
.os-card .check-list li { font-size: .95rem; }
.os-card-ours { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--av-border); color: var(--av-slate); font-size: .95rem; }
.os-trademarks { margin: 2rem 0 0; font-size: .8rem; color: var(--av-muted); text-align: center; }

/* Prodotti dei partner (pagina Prodotti) */
.partner-products-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.partner-products-head img { flex: none; width: 150px; height: auto; }
.partner-products-head h2 { margin-bottom: .35rem; }
@media (max-width: 575.98px) { .partner-products-head { flex-direction: column; align-items: flex-start; gap: .75rem; } }
.partner-products-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; color: var(--av-slate); font-size: .95rem; }
.partner-products-points li::before { content: "✓"; color: var(--av-red-text); font-weight: 700; margin-right: .4rem; }
.partner-product { height: 100%; display: flex; flex-direction: column; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); overflow: hidden; }
.partner-product-logo { display: flex; align-items: center; justify-content: center; min-height: 110px; background: var(--av-navy); padding: 1.25rem; }
.partner-product-logo img { width: 180px; max-width: 100%; height: auto; }
.partner-product-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.partner-product-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.partner-product-body p:not(.product-delivery) { color: var(--av-muted); }
.partner-product-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.partner-products-note { margin: 1.5rem 0 0; font-size: .85rem; color: var(--av-muted); }

/* Pagina Partner */
.partner-id { margin-bottom: 1rem; }
.partner-logo { display: block; width: 100%; max-width: 300px; height: auto; margin-bottom: .75rem; }
.partner-id h2 { margin-bottom: .25rem; }
.partner-where { display: flex; align-items: center; gap: .35rem; color: var(--av-muted); font-weight: 600; }
.partner-where .icon { color: var(--av-red-text); }
.partner-together-title { font-size: 1.35rem; margin-bottom: 1rem; }
.case-point-row { flex-direction: row; align-items: flex-start; gap: 1rem; }
.case-point-row .icon { flex: none; margin: .15rem 0 0; }
.case-point-row strong, .case-point-row span { display: block; }
.case-chain { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; counter-reset: chain; }
.case-chain li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--av-radius); background: #fff; border: 1px solid var(--av-border); counter-increment: chain; }
.case-chain li::before { content: counter(chain); grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--av-navy); color: #fff; font-weight: 700; }
.case-chain li:not(:last-child)::after { content: ""; position: absolute; left: 2.45rem; bottom: -.8rem; width: 2px; height: .8rem; background: var(--av-red); }
.case-chain strong { color: var(--av-navy); }
.case-chain span { color: var(--av-muted); font-size: .95rem; }
.case-stats-band { background: var(--av-navy); color: #fff; padding: clamp(2rem, 5vw, 3rem) 0; }
.case-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.case-stat strong { display: block; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem); line-height: 1.1; color: #fff; }
.case-stat span { display: block; margin-top: .35rem; font-size: .9rem; color: #c9d1dc; }
@media (max-width: 991.98px) { .case-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .case-stats { grid-template-columns: repeat(2, 1fr); } }
.case-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 52rem; position: relative; }
.case-timeline::before { content: ""; position: absolute; left: 3.25rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--av-border); }
.case-timeline li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0 0 1.75rem; }
.case-timeline li:last-child { padding-bottom: 0; }
.case-year { position: relative; z-index: 1; justify-self: center; align-self: start; padding: .25rem .8rem; border-radius: 999px; background: var(--av-red); color: #fff; font-weight: 700; }
.case-timeline strong { display: block; color: var(--av-navy); font-size: 1.1rem; margin-bottom: .2rem; }
.case-timeline p { margin: 0; color: var(--av-muted); }
.case-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; counter-reset: step; }
.case-steps li { position: relative; padding: .55rem 1.1rem .55rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--av-border); color: var(--av-navy); font-weight: 600; counter-increment: step; box-shadow: 0 .25rem .75rem rgba(31, 42, 60, .06); }
.case-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 50%; background: var(--av-navy); color: #fff; font-size: .8rem; }
.case-steps li:not(:last-child)::after { content: ""; position: absolute; right: -1.15rem; top: 50%; width: .5rem; height: .5rem; border-top: 2px solid var(--av-red); border-right: 2px solid var(--av-red); transform: translateY(-50%) rotate(45deg); }
/* Immagini di intestazione dei prodotti (una sola per tutte le sottosezioni).
   WMS: /content/img/products/wms/header.jpg (consigliato 1920x600, soggetto al centro: sopra c'è un velo scuro); senza file resta il blu.
   CuraDomus sottosezioni: /content/img/products/curadomus/header.jpg (come hero.jpg: 1920x600, soggetto a destra); senza file si vede hero.jpg. */
.page-hero.product-wms { background-image: url("../img/products/wms/header.jpg?v=3"); }
.cd-hero.cd-hero-sub { background-image: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,0) 68%), url("../img/products/curadomus/header.jpg?v=3"), url("../img/products/curadomus/hero.jpg?v=3"); background-position: 0 0, right center, right center; background-size: auto, auto 100%, auto 100%; background-repeat: no-repeat; }
@media (max-width: 767.98px) { .cd-hero.cd-hero-sub { background-image: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8)), url("../img/products/curadomus/header.jpg?v=3"), url("../img/products/curadomus/hero.jpg?v=3"); background-position: 0 0, 80% center, 80% center; } }
/* Home: "Chi siamo" su due colonne con punti chiave e fascia loghi clienti */
.home-about-text { font-size: 1.2rem; line-height: 1.7; color: var(--bs-body-color); margin-bottom: 1.5rem; }
.home-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.home-facts li { display: flex; gap: .85rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--av-radius); background: var(--av-light); border: 1px solid var(--av-border); }
.home-facts .icon { flex: none; font-size: 1.5rem; color: var(--av-red-text); margin-top: .1rem; }
.home-facts strong { display: block; color: var(--av-navy); margin-bottom: .2rem; }
.home-facts span { display: block; color: var(--av-muted); font-size: .92rem; }
@media (max-width: 575.98px) { .home-facts { grid-template-columns: 1fr; } }
.home-clients { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--av-border); text-align: center; }
.home-clients-title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--av-slate); margin-bottom: 1.25rem; }
.home-clients ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.home-clients img { max-height: 44px; max-width: 130px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.home-clients img:hover { filter: none; opacity: 1; }
/* Sottomenu prodotti su schermi stretti: le voci scorrono in orizzontale con una sfumatura che indica che ce ne sono altre */
.product-subnav ul.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
.product-subnav ul.fade-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem); mask-image: linear-gradient(to right, transparent, #000 3rem); }
.product-subnav ul.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
@media (max-width: 1199.98px) { .product-subnav-cta { display: none; } .product-subnav-logo img { height: 28px; } }
@media (max-width: 767.98px) { .product-subnav .container { gap: .5rem; min-height: 2.9rem; } .product-subnav a:not(.btn) { padding: .75rem .55rem; font-size: .88rem; } }
/* Frecce del sottomenu prodotti (create da main.js, visibili solo se le voci non stanno nella riga) */
.product-subnav-scroll { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.product-subnav-arrow { flex: none; width: 2rem; height: 2rem; border: 1px solid var(--av-border); border-radius: 50%; background: #fff; color: var(--av-navy); font-size: 1.35rem; line-height: 1; display: grid; place-items: center; padding: 0 0 .15rem; cursor: pointer; box-shadow: 0 1px 4px rgba(31, 42, 60, .1); }
.product-subnav-arrow:hover { color: var(--av-red-text); border-color: var(--av-red-text); }
.product-subnav-arrow[hidden] { display: none; }
@media (hover: none) { .product-subnav-arrow { display: none; } }
