:root {
    --color-bg: #f6f8fb;
    --color-surface: #ffffff;
    --color-surface-soft: #edf4fb;
    --color-surface-soft-orange: #fff4e0;
    --color-text: #172033;
    --color-muted: #5d6b82;
    --color-border: #dbe4ef;
    --color-primary: #2457a6;
    --color-primary-dark: #173b73;
    --color-accent: #f97316;
    --color-warning: #b87421;
    --nv-accent: var(--color-accent);
    --nv-text: var(--color-text);
    --shadow-soft: 0 14px 34px rgba(28, 44, 74, 0.1);
    --radius: 8px;
    --container: 1160px;
    --header-height: 74px;
    --app-banner-height: 0px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--app-banner-height) + 14px);
}

body {
    margin: 0;
    padding-top: calc(var(--header-height) + var(--app-banner-height));
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img,
svg,
canvas {
    max-width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.45);
    outline-offset: 3px;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    display: inline-grid;
    place-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 .45rem 0 0;
    border: 2px solid #111827;
    background: #fff;
    accent-color: var(--nv-accent);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    vertical-align: middle;
}

input[type="checkbox"] {
    border-radius: 5px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked {
    border-color: var(--nv-accent);
    background-color: var(--nv-accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10.5 8.5 14 15.5 6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 82% 82%;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .18);
}

input[type="radio"]:checked {
    border-color: var(--nv-accent);
    background: radial-gradient(circle, var(--nv-accent) 0 43%, transparent 46%), #fff;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .18);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.checkbox-wrapper-19 {
    box-sizing: border-box;
    --background-color: #fff;
    --checkbox-height: 35px;
    --checkbox-width: 35px;
    display: flex;
    position: relative;
    align-items: center;
    gap: .75rem;
}

.checkbox-wrapper-19 input[type="checkbox"],
.checkbox-wrapper-19 input[type="radio"] {
    position: absolute;
    z-index: 2;
    width: var(--checkbox-width);
    height: var(--checkbox-height);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.checkbox-wrapper-19 .check-box {
    position: relative;
    display: inline-block;
    flex: 0 0 var(--checkbox-width);
    width: var(--checkbox-width) !important;
    height: var(--checkbox-height) !important;
    min-width: var(--checkbox-width);
    min-height: var(--checkbox-height);
    aspect-ratio: 1 / 1;
    border: 2px solid #111827;
    border-radius: 5px;
    background-color: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.checkbox-wrapper-19 input[type="radio"] + .check-box {
    border-radius: 50%;
}

.checkbox-wrapper-19 .check-box.check-box-invalid,
.checkbox-wrapper-19.is-invalid .check-box,
.checkbox-wrapper-19.has-error .check-box {
    border-color: #dc3545;
}

.checkbox-wrapper-19 input[type="checkbox"]:focus-visible + .check-box,
.checkbox-wrapper-19 input[type="radio"]:focus-visible + .check-box {
    outline: 3px solid rgba(249, 115, 22, .34);
    outline-offset: 3px;
}

.checkbox-wrapper-19 .check-box::before,
.checkbox-wrapper-19 .check-box::after {
    position: absolute;
    display: inline-block;
    width: calc(var(--checkbox-height) * .2);
    height: 0;
    border-radius: 5px;
    background-color: var(--nv-accent);
    box-sizing: border-box;
    content: "";
    transform-origin: left top;
}

.checkbox-wrapper-19 .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-width) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--background-color);
    transform: rotate(-135deg);
}

.checkbox-wrapper-19 .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-width) * .05);
    transform: rotate(-45deg);
}

@keyframes dothabottomcheck-19 {
    0% { height: 0; }
    100% { height: calc(var(--checkbox-height) / 2); }
}

@keyframes dothatopcheck-19 {
    0% { height: 0; }
    50% { height: 0; }
    100% { height: calc(var(--checkbox-height) * 1.2); }
}

.checkbox-wrapper-19 input[type="checkbox"]:checked + .check-box,
.checkbox-wrapper-19 input[type="radio"]:checked + .check-box {
    border-color: var(--nv-accent);
    box-shadow: 0 10px 22px rgba(249, 115, 22, .18);
}

.checkbox-wrapper-19 input[type="checkbox"]:checked + .check-box::after,
.checkbox-wrapper-19 input[type="radio"]:checked + .check-box::after {
    height: calc(var(--checkbox-height) / 2);
    animation: dothabottomcheck-19 .2s ease 0s forwards;
}

.checkbox-wrapper-19 input[type="checkbox"]:checked + .check-box::before,
.checkbox-wrapper-19 input[type="radio"]:checked + .check-box::before {
    height: calc(var(--checkbox-height) * 1.2);
    animation: dothatopcheck-19 .4s ease 0s forwards;
}

.checkbox-wrapper-19 .label-text {
    color: var(--nv-text);
    cursor: pointer;
}

.consent-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .85rem;
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.consent-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, .28);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.consent-card.has-error {
    border-color: rgba(220, 38, 38, .55);
    background: #fff7f7;
}

.consent-card .text-muted {
    color: #64748b !important;
    line-height: 1.45;
}

.consent-card .checkbox-wrapper-19 {
    align-items: flex-start;
}

.consent-card .label-text {
    font-weight: 600;
    line-height: 35px;
}

@media (prefers-reduced-motion: reduce) {
    input[type="checkbox"],
    input[type="radio"],
    .checkbox-wrapper-19 .check-box,
    .checkbox-wrapper-19 .check-box::before,
    .checkbox-wrapper-19 .check-box::after {
        transition: none;
    }

    .checkbox-wrapper-19 input[type="checkbox"]:checked + .check-box::after,
    .checkbox-wrapper-19 input[type="radio"]:checked + .check-box::after,
    .checkbox-wrapper-19 input[type="checkbox"]:checked + .check-box::before,
    .checkbox-wrapper-19 input[type="radio"]:checked + .check-box::before {
        animation: none;
    }
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 4.35rem);
    line-height: 1.04;
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1100;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.navbar {
    min-height: var(--header-height);
    padding: 0;
}

.nav-container,
.navbar-nav,
.footer-grid,
.footer-bottom,
.hero-grid,
.content-grid,
.cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-container {
    min-height: var(--header-height);
    justify-content: space-between;
}

.navbar-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    max-width: 194px;
    padding: 0;
    color: var(--color-text);
    text-decoration: none;
}

.navbar-brand picture,
.mobile-menu-brand picture,
.navbar-brand img,
.mobile-menu-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.footer-brand {
    color: var(--color-text);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-infocamere-logo {
    display: block;
    max-width: 128px;
    height: auto;
    margin-top: 10px;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(16, 24, 40, 0.52);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.mobile-menu-backdrop:not([hidden]) {
    opacity: 1;
}

.app-download-banner {
    display: none;
    border-bottom: 1px solid rgba(36, 87, 166, .12);
    background: #ffffff;
}

.app-download-banner-inner {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding-block: 8px;
}

.app-download-banner img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.app-download-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 1px;
    line-height: 1.15;
}

.app-download-copy strong {
    overflow: hidden;
    color: var(--color-text);
    font-size: .95rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-download-copy span {
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 800;
}

.app-download-action {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.app-download-action:hover,
.app-download-action:focus {
    background: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}

.app-download-close {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
}

.app-download-close:hover,
.app-download-close:focus {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.navbar-toggler {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(36, 87, 166, .22);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #163b73, #2457a6);
    color: #fff;
    box-shadow: 0 12px 26px rgba(36, 87, 166, .18);
}

.site-header .navbar-toggler-icon {
    width: 20px;
    height: 2px;
    display: block;
    position: relative;
    background: #fff !important;
    background-image: none !important;
    border-radius: 999px;
}

.site-header .navbar-toggler-icon::before,
.site-header .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.site-header .navbar-toggler-icon::before {
    top: -7px;
}

.site-header .navbar-toggler-icon::after {
    top: 7px;
}

.navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    display: block;
    width: min(86vw, 390px);
    height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -28px 0 70px rgba(16, 24, 40, 0.22);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
}

.site-header .navbar-collapse.collapse {
    display: block;
}

.navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-brand {
    display: inline-flex;
    width: 174px;
    max-width: calc(100% - 58px);
}

.mobile-menu-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-soft);
    color: var(--color-text);
    cursor: pointer;
}

.navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.site-header .dropdown {
    position: relative;
}

.site-header .dropdown-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.site-header .dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .35em;
    vertical-align: .12em;
    content: "";
    border-top: .32em solid;
    border-right: .32em solid transparent;
    border-left: .32em solid transparent;
}

.site-header .dropdown-menu {
    display: none;
    min-width: 210px;
    margin: 6px 0 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 38px rgba(16, 24, 40, .12);
}

.site-header .dropdown-menu.show {
    display: block;
}

.site-header .dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: calc(var(--radius) - 2px);
    color: #000;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus,
.site-header .dropdown-item.active {
    background: var(--color-surface-soft);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.site-header .fi-services-menu {
    width: min(88vw, 760px);
    padding: 12px;
    border: 1px solid rgba(36, 87, 166, .16);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 251, .98)),
        #fff;
    box-shadow: 0 26px 70px rgba(16, 24, 40, .18);
}

.fi-services-menu-panel {
    display: block;
}

.fi-services-menu-head,
.fi-services-menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fi-services-menu-head {
    margin-bottom: 10px;
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(219, 228, 239, .9);
}

.fi-services-menu-kicker {
    color: var(--color-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fi-services-menu-head a,
.fi-services-menu-cta a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
}

.fi-services-menu-head a:hover,
.fi-services-menu-head a:focus,
.fi-services-menu-cta a:hover,
.fi-services-menu-cta a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.fi-services-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fi-services-menu-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon text";
    gap: 2px 10px;
    min-height: 86px;
    padding: 12px;
    border: 1px solid rgba(219, 228, 239, .9);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fi-services-menu-card span {
    grid-area: icon;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(36, 87, 166, .1);
    color: var(--color-primary);
    font-size: 1rem;
}

.fi-services-menu-card strong {
    grid-area: title;
    align-self: end;
    color: var(--color-text);
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.15;
}

.fi-services-menu-card small {
    grid-area: text;
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.fi-services-menu-card:hover,
.fi-services-menu-card:focus,
.fi-services-menu-card.active {
    border-color: rgba(249, 115, 22, .32);
    background: #fffaf4;
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

.fi-services-menu-card:hover span,
.fi-services-menu-card:focus span,
.fi-services-menu-card.active span {
    background: rgba(249, 115, 22, .14);
    color: var(--color-accent);
}

.fi-services-menu-cta {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: var(--color-surface-soft);
}

.fi-services-menu-cta span {
    color: var(--color-muted);
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.35;
}

.site-header .fi-tools-menu {
    width: min(86vw, 430px);
    padding: 12px;
    border: 1px solid rgba(36, 87, 166, .16);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 248, 251, .98)),
        #fff;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .17);
}

.fi-tools-menu-panel {
    display: block;
}

.fi-tools-menu-head {
    margin-bottom: 10px;
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(219, 228, 239, .9);
}

.fi-tools-menu-kicker {
    color: var(--color-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fi-tools-menu-grid {
    display: grid;
    gap: 8px;
}

.fi-tools-menu-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon text";
    gap: 2px 10px;
    min-height: 74px;
    padding: 11px;
    border: 1px solid rgba(219, 228, 239, .9);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fi-tools-menu-card span {
    grid-area: icon;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(36, 87, 166, .1);
    color: var(--color-primary);
    font-size: .98rem;
}

.fi-tools-menu-card strong {
    grid-area: title;
    align-self: end;
    color: var(--color-text);
    font-size: .94rem;
    font-weight: 900;
    line-height: 1.15;
}

.fi-tools-menu-card small {
    grid-area: text;
    color: var(--color-muted);
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.35;
}

.fi-tools-menu-card:hover,
.fi-tools-menu-card:focus,
.fi-tools-menu-card.active {
    border-color: rgba(249, 115, 22, .32);
    background: #fffaf4;
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

.fi-tools-menu-card:hover span,
.fi-tools-menu-card:focus span,
.fi-tools-menu-card.active span {
    background: rgba(249, 115, 22, .14);
    color: var(--color-accent);
}

.fi-global-search-cta {
    padding: clamp(34px, 5vw, 58px) 0;
    border-top: 1px solid rgba(219, 228, 239, .9);
    background:
        linear-gradient(135deg, rgba(237, 244, 251, .92), rgba(255, 244, 224, .72)),
        var(--color-surface);
}

.fi-global-search-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
}

.fi-global-search-copy h2 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.08;
}

.fi-global-search-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--color-muted);
    font-weight: 700;
    line-height: 1.65;
}

.fi-search-anchor-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--color-primary), #173b73);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(36, 87, 166, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fi-search-anchor-cta:hover,
.fi-search-anchor-cta:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(36, 87, 166, .3);
}

.fi-search-anchor-cta span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}

.fi-search-anchor-cta strong,
.fi-search-anchor-cta small {
    display: block;
}

.fi-search-anchor-cta small {
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.nav-link.catasto{
    background-color: rgba(107, 0, 0,0.1);
    color: #6b0000;
}
.nav-link.catasto.active{
    background-color: rgba(107, 0, 0,1);
    color: #ffffff;
}
.nav-link.active {
    background: var(--color-surface-soft);
    color: var(--color-primary-dark);
    text-decoration: none;
}
.nav-link:hover,
.nav-link.active:hover{
    background: var(--color-surface-soft-orange);
    color: var(--color-accent);
    text-decoration: none;
}
.nav-link-strong {
    color: var(--color-primary);
    background: rgba(36, 87, 166, 0.08);
}

body.is-mobile-menu-open {
    overflow: hidden;
}

.hero-section:not(.company-hero) {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 82px) 0;
    border-bottom: 1px solid rgba(93, 137, 218, .2);
    background:
        linear-gradient(120deg, rgba(9, 18, 32, .99) 0%, rgba(23, 59, 115, .98) 54%, rgba(36, 87, 166, .96) 100%),
        #091220;
    color: #fff;
}

.hero-section:not(.company-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .45));
    pointer-events: none;
}

.hero-section:not(.company-hero) .hero-grid {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-section:not(.company-hero) .hero-grid > * {
    flex: 0 1 min(920px, 100%);
}

.hero-section:not(.company-hero) .hero-grid h1 {
    max-width: 920px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.15rem, 4.7vw, 4.75rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-section:not(.company-hero) .hero-grid p {
    max-width: 760px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    font-weight: 650;
    line-height: 1.62;
}

.hero-panel,
.chart-panel,
.cart-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-section:not(.company-hero) .hero-panel {
    display: none !important;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

.btn-light {
    color: var(--color-primary-dark);
    background: #fff;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.w-100 {
    width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-section:not(.company-hero) .hero-actions > :nth-child(n+3) {
    display: none !important;
}

.hero-section:not(.company-hero) .search-box {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 720px;
    margin-top: 22px;
}

.search-box input {
    flex: 1 1 260px;
    min-height: 48px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
}

.section {
    padding: 30px 0;
}

.compact-section {
    padding: 28px 0;
}

.muted-section {
    background: var(--color-surface-soft);
    border-block: 1px solid var(--color-border);
}

.section-heading {
    max-width: 100%;
    margin-bottom: 26px;
}

.section-heading p,
.prose p {
    color: var(--color-muted);
}

.card-grid,
.summary-grid,
.package-grid,
.link-grid {
    display: grid;
    gap: 16px;
}

.card-grid,
.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.link-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.link-grid a,
.service-card,
.company-card,
.summary-card,
.package-card,
.faq-item,
.document-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.link-grid a {
    padding: 14px 16px;
    font-weight: 800;
}

.single-column {
    grid-template-columns: 1fr;
}

.service-card,
.company-card,
.summary-card,
.package-card {
    padding: 20px;
}

.service-card h3 a,
.company-card h3 a {
    color: var(--color-text);
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    font-weight: 800;
}

.company-list {
    display: grid;
    gap: 14px;
}

.company-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
    gap: 18px;
}

.company-card p {
    margin-bottom: 0;
    color: var(--color-muted);
}

.company-card-data,
.metric-list,
.data-table,
.inline-metrics {
    margin: 0;
}

.company-card-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.company-card-data div,
.metric-list div,
.data-table div {
    padding: 12px;
    background: #f9fbfe;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

dt {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

dd {
    margin: 0;
    font-weight: 800;
}

.metric-list {
    display: grid;
    gap: 12px;
}

.inline-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.status-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f6f1;
    color: #17694f;
    font-size: 0.78rem;
    font-weight: 800;
}

.breadcrumb-wrap {
    padding-top: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: 8px;
    color: var(--color-muted);
}

.content-grid {
    align-items: flex-start;
    justify-content: space-between;
}

.content-grid > * {
    flex: 1 1 0;
}

.data-table {
    display: grid;
    gap: 10px;
}

.chart-panel {
    padding: 20px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 16px 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-item p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.cta-band {
    padding: 42px 0;
    background: var(--color-primary-dark);
    color: #fff;
}

.cta-band p,
.cta-band .eyebrow {
    color: #dfeafe;
}

.cta-inner {
    justify-content: space-between;
    align-items: center;
}

.site-footer {
    padding: 30px 0 24px;
background: #000000;
background: -webkit-linear-gradient(41deg, rgba(23, 59, 115, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(3, 19, 38, 1) 50%, rgba(3, 3, 3, 1) 80%, rgba(6, 27, 56, 1) 100%);
background: -moz-linear-gradient(41deg, rgba(23, 59, 115, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(3, 19, 38, 1) 50%, rgba(3, 3, 3, 1) 80%, rgba(6, 27, 56, 1) 100%);
background: linear-gradient(41deg, rgba(23, 59, 115, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(3, 19, 38, 1) 50%, rgba(3, 3, 3, 1) 80%, rgba(6, 27, 56, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=0);
    color: #d8e2f0;
}

.site-footer a {
    color: #fff;
}

.site-footer p {
    max-width: 420px;
    color: #b7c5d7;
}

.footer-grid {
    align-items: flex-start;
    justify-content: space-between;
}

.footer-grid h2 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-bottom {
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #9fb0c5;
    font-size: 0.9rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .app-download-banner:not([hidden]) {
        display: block;
    }

    .site-header .fi-services-menu {
        width: 100%;
        padding: 10px;
        border-radius: var(--radius);
        box-shadow: 0 12px 26px rgba(16, 24, 40, .1);
    }

    .site-header .fi-tools-menu {
        width: 100%;
        padding: 10px;
        border-radius: var(--radius);
        box-shadow: 0 12px 26px rgba(16, 24, 40, .1);
    }

    .fi-services-menu-head,
    .fi-services-menu-cta {
        align-items: flex-start;
    }

    .fi-services-menu-grid {
        grid-template-columns: 1fr;
    }

    .fi-services-menu-card {
        min-height: 78px;
    }

    .fi-tools-menu-card {
        min-height: 70px;
    }

    .fi-services-menu-cta {
        flex-direction: column;
        gap: 8px;
    }

    .fi-global-search-cta-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .mobile-menu-backdrop,
    .mobile-menu-head {
        display: none !important;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        position: static;
        z-index: auto;
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        transform: none;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .navbar-collapse.collapse {
        display: flex;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }

    .nav-link {
        padding: 9px 10px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .site-header .dropdown-toggle {
        width: auto;
        text-align: center;
    }

    .site-header .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 0;
        transform: none;
        z-index: 1050;
        margin-top: 0;
    }

    .site-header .fi-services-dropdown .dropdown-menu {
        left: 0;
        right: auto;
    }

    .fi-services-menu-card:hover,
    .fi-services-menu-card:focus,
    .fi-tools-menu-card:hover,
    .fi-tools-menu-card:focus {
        transform: translateY(-1px);
    }

    .nav-link-strong {
        padding-inline: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1160px) {
    .navbar-brand {
        max-width: 168px;
    }

    .nav-link {
        padding-inline: 8px;
        font-size: 0.84rem;
    }
}

@media (max-width: 860px) {
    .hero-grid,
    .content-grid,
    .cta-inner,
    .footer-grid,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-panel {
        max-width: none;
    }

    .company-card {
        grid-template-columns: 1fr;
    }

    .company-card-data {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 68px;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .navbar-brand {
        max-width: 166px;
    }

    .navbar-brand img,
    .mobile-menu-brand img {
        max-height: 36px;
    }

    .hero-section:not(.company-hero) {
        padding: 48px 0 38px;
    }

    .section {
        padding: 46px 0;
    }

    .btn,
    .search-box button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-collapse,
    .mobile-menu-backdrop {
        transition: none;
    }
}

/* Global tech premium layer, excluding company-detail dedicated stylesheets. */
:root {
    --fi-glass-bg: rgba(255, 255, 255, .78);
    --fi-glass-line: rgba(36, 87, 166, .12);
    --fi-glass-shadow: 0 20px 58px rgba(16, 24, 40, .09);
    --fi-tech-blue: #5d89da;
}

.site-header {
    background: rgba(255, 255, 255, .84);
    border-bottom-color: rgba(36, 87, 166, .12);
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
    backdrop-filter: blur(18px);
}

.hero-section:not(.company-hero) {
    background:
        radial-gradient(circle at 84% 18%, rgba(93, 137, 218, .24), transparent 32%),
        linear-gradient(120deg, rgba(5, 11, 20, .99) 0%, rgba(18, 48, 94, .98) 56%, rgba(36, 87, 166, .96) 100%);
}

.hero-section:not(.company-hero)::after {
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(93, 137, 218, .9), transparent);
    content: "";
    pointer-events: none;
}

.section,
.muted-section,
.compact-section {
    position: relative;
}

.section:nth-of-type(even) {
    background:
        radial-gradient(circle at 92% 12%, rgba(36, 87, 166, .055), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.section-heading h2,
.prose h2,
.cta-band h2 {
    letter-spacing: 0;
}

.section-heading h2::after,
.prose h2::after {
    display: block;
    width: 58px;
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    content: "";
}

.link-grid a,
.service-card,
.summary-card,
.package-card,
.faq-item,
.document-item,
.chart-panel,
.cart-card {
    border-color: var(--fi-glass-line);
    background: var(--fi-glass-bg);
    box-shadow: var(--fi-glass-shadow);
    backdrop-filter: blur(14px);
}

.service-card,
.summary-card,
.package-card,
.faq-item {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card::before,
.summary-card::before,
.package-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #173b73, #2457a6, #5d89da);
    content: "";
    opacity: .72;
}

.service-card:hover,
.summary-card:hover,
.package-card:hover,
.link-grid a:hover,
.document-item:hover {
    border-color: rgba(36, 87, 166, .24);
    box-shadow: 0 26px 70px rgba(16, 24, 40, .13);
    transform: translateY(-3px);
}

.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 16%, rgba(93, 137, 218, .26), transparent 32%),
        linear-gradient(135deg, #050b14 0%, #10264a 58%, #173b73 100%);
}

.cta-band::before {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.btn-primary,
.search-box button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #173b73 0%, #2457a6 58%, #3b73d9 100%);
    box-shadow: 0 14px 30px rgba(36, 87, 166, .22);
}

.btn-primary:hover,
.search-box button:hover {
    background: linear-gradient(135deg, #132f5f 0%, #1e459f 58%, #3368cb 100%);
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(36, 87, 166, .28);
}

.btn-light,
.btn-outline {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
}

.reveal {
    transform: translateY(18px);
}

.reveal.is-visible {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .summary-card,
    .package-card,
    .link-grid a,
    .document-item,
    .btn-primary,
    .search-box button {
        transition: none;
        transform: none;
    }
}

/* Shared particles.js hero layer */
.fi-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: auto;
    opacity: .48;
    mix-blend-mode: screen;
}

.fi-hero-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.fi-home-hero-inner,
.fi-order-hero .container,
.fi-services-hero-grid,
.fi-region-hero-grid,
.fi-service-detail-hero-grid,
.fi-legal-hero-grid,
.fi-contact-hero-grid,
.fi-how-hero-grid,
.fi-limit-hero-grid,
.fi-preview-hero-grid,
.fi-catasto-hero-grid,
.hero-section:not(.company-hero) .hero-grid {
    position: relative;
    z-index: 2;
}

@media (max-width: 680px) {
    .fi-hero-particles {
        opacity: .3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fi-hero-particles {
        display: none;
    }
}
.claim{
    display: inline-block;
    width: 100%;
    background: -webkit-linear-gradient(329deg, #ff8800, #ff8800, #ffa136, #ffe02e, #ffa136, #ff8800, #ff8800);
	background: -o-linear-gradient(329deg, #ff8800, #ff8800, #ffa136, #ffe02e, #ffa136, #ff8800, #ff8800);
	background: linear-gradient(59deg, #ff8800, #ff8800, #ffa136, #ffe02e, #ffa136, #ff8800, #ff8800);
    background-size: 1000% 1000%;
    -webkit-animation: AnimationName 15s ease infinite;
    -moz-animation: AnimationName 15s ease infinite;
    animation: AnimationName 15s ease infinite;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: #000000;
    padding: 5px;
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

/* Contenitore esclusivo della sezione pacchetti */
.fi-packages-section-new.fi-packages-particles-host {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Layer particelle esclusivo per i pacchetti */
.fi-packages-section-new.fi-packages-particles-host
> .fi-hero-particles.fi-packages-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: .48;

    /* Evita che le particelle spariscano su sfondi chiari */
    mix-blend-mode: normal;
}

/* Canvas generato da particles.js */
.fi-packages-section-new.fi-packages-particles-host
> .fi-hero-particles.fi-packages-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Mantiene testo, pulsanti e card sopra le particelle */
.fi-packages-section-new.fi-packages-particles-host
> :not(.fi-hero-particles) {
    position: relative;
    z-index: 2;
}
