:root {
    --navy: #08243f;
    --navy-2: #0d365d;
    --gold: #b98a36;
    --gold-2: #d0a557;
    --cream: #f7f3eb;
    --white: #ffffff;
    --ink: #162235;
    --muted: #667085;
    --line: #e8edf3;
    --success: #0f7a4f;
    --warning: #946200;
    --error: #a51c30;
    --shadow: 0 24px 70px rgba(8, 36, 63, .14);
    --radius: 22px;
    --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    z-index: 999;
    padding: 10px 14px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 10px;
}
.skip-link:focus { top: 20px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(8, 36, 63, .08);
    backdrop-filter: blur(14px);
}
.navbar {
    height: var(--header-height);
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border: 2px solid rgba(185,138,54,.55);
    font-family: Georgia, serif;
    font-weight: 700;
}
.brand strong {
    display: block;
    color: var(--navy);
    letter-spacing: .04em;
    font-family: Georgia, "Times New Roman", serif;
}
.brand small {
    display: block;
    color: var(--gold);
    font-size: .78rem;
    margin-top: -2px;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--navy);
    font-size: .95rem;
    font-weight: 650;
}
.nav-links a { opacity: .9; }
.nav-links a:hover { color: var(--gold); }
.nav-contact {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eaf8ef;
    color: #08783d !important;
}
.nav-email { color: var(--muted) !important; }
.nav-toggle {
    display: none;
    border: 0;
    background: var(--navy);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 72px 0 52px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 25%, rgba(185,138,54,.16), transparent 30%),
        linear-gradient(115deg, #fff 0%, #f9fbfe 46%, #eff4fa 100%);
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    left: -10%;
    bottom: -22%;
    width: 80%;
    height: 44%;
    background: linear-gradient(135deg, var(--navy), #031629);
    border-top: 5px solid var(--gold);
    border-radius: 0 100% 0 0;
    z-index: -1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 44px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 800;
}
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.08; }
h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 5.35rem);
    letter-spacing: -.055em;
    max-width: 850px;
}
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -.035em;
}
h3 { font-size: 1.28rem; }
.hero-text {
    margin: 22px 0 30px;
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    color: #445166;
    max-width: 650px;
}
.hero-actions, .contact-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    min-height: 48px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-light):not(.btn-gold):not(.btn-calculator):not(.btn-outline) {
    color: var(--navy);
    background: white;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(185, 138, 54, .18);
}
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-light):not(.btn-gold):not(.btn-calculator):not(.btn-outline):hover {
    background: #fff8e8;
    box-shadow: 0 12px 26px rgba(185, 138, 54, .25);
}
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 14px 35px rgba(185, 138, 54, .3);
}
.btn-secondary {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    box-shadow: 0 14px 35px rgba(8, 36, 63, .22);
}
.btn-light {
    color: var(--navy);
    background: white;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(185, 138, 54, .18);
}
.btn-gold {
    color: var(--navy);
    background: linear-gradient(135deg, #f0d18b, var(--gold));
}
.full { width: 100%; }
.big { min-height: 60px; text-transform: uppercase; }
.trust-strip {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.trust-strip span {
    padding: 8px 12px;
    color: var(--navy);
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(8,36,63,.08);
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
}
.hero-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(185,138,54,.25);
    background: white;
}
.hero-card img { width: 100%; height: auto; }

.section { padding: 96px 0; }
.section-heading {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}
.section-heading p:not(.eyebrow), .contact-copy p, .guarantee-panel p {
    color: var(--muted);
    font-size: 1.08rem;
}
.align-left { text-align: left; margin: 0; }
.cards {
    display: grid;
    gap: 22px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card, .price-card, .contact-form, .guarantee-panel, .guarantees-list article, .step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 14px 45px rgba(8,36,63,.07);
}
.card {
    padding: 30px;
}
.icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--cream);
    font-size: 1.6rem;
    margin-bottom: 18px;
}
.card p, .step p, .guarantees-list p, .price-card li { color: #566176; }

.section-steps { background: linear-gradient(180deg, #fff, #f6f8fb); }
.split {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 42px;
    align-items: center;
}
.reverse { grid-template-columns: 1fr 1.05fr; }
.steps {
    display: grid;
    gap: 18px;
}
.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 24px;
}
.step span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-weight: 900;
    border: 3px solid var(--gold);
}

.section-pricing {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden;
}
.section-pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(208,165,87,.18), transparent 36%);
}
.section-pricing .container { position: relative; }
.section-pricing h2, .section-pricing .section-heading p:not(.eyebrow) { color: white; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.price-card {
    position: relative;
    padding: 34px;
    color: var(--ink);
}
.price-card.featured {
    border: 2px solid var(--gold);
    transform: translateY(-8px);
}
.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--navy);
    background: #f6d88f;
    font-weight: 900;
    font-size: .82rem;
}
.price-top p {
    margin: 0 0 4px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .78rem;
}
.price-top h3 { font-size: 2rem; }
.price-top strong {
    display: block;
    margin-top: 18px;
    color: var(--navy);
    font-size: 3.1rem;
    line-height: 1;
    font-family: Georgia, serif;
}
.price-top strong span {
    font-size: 1rem;
    color: var(--muted);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.price-top small { color: var(--muted); display: block; margin-top: 8px; }
.price-card ul {
    padding: 0;
    margin: 26px 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.price-card li {
    padding-left: 30px;
    position: relative;
}
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}
.deductible {
    margin-top: 24px;
    padding: 20px 22px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    color: white;
}
.deductible-title {
    margin-bottom: 8px;
    color: #f2cd78;
    font-size: 1.08rem;
    letter-spacing: .01em;
}
.deductible p {
    margin: 0 0 12px;
    color: white;
}
.deductible-regimes {
    padding: 12px 14px;
    background: rgba(255,255,255,.08);
    border-left: 4px solid var(--gold-2);
    border-radius: 10px;
}
.deductible small {
    display: block;
    margin-top: 11px;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}

.section-guarantees { background: #fbfcff; }
.guarantee-panel {
    padding: 38px;
    background: linear-gradient(135deg, var(--navy), #0f426f);
}
.guarantee-panel h2, .guarantee-panel p { color: white; }
.guarantees-list {
    display: grid;
    gap: 18px;
}
.guarantees-list article { padding: 26px; }
.guarantees-list h3::before {
    content: "§";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--gold);
}

.section-contact {
    background:
        linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.96)),
        url('hero-ti-ro-service.webp') center/cover no-repeat;
}
.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 40px;
    align-items: start;
}
.contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 28px);
}
.contact-box {
    margin-top: 26px;
}
.contact-box a {
    padding: 12px 16px;
    border-radius: 999px;
    background: white;
    border: 2px solid var(--gold);
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(185, 138, 54, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-box a:hover {
    transform: translateY(-1px);
    background: #fff8e8;
    box-shadow: 0 12px 26px rgba(185, 138, 54, .25);
}
.contact-form { padding: 30px; }
.field { margin-bottom: 18px; }
.field.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label, legend {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 800;
}
input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    background: #fff;
}
input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(185,138,54,.14);
}
.service-choice {
    margin: 8px 0 18px;
    padding: 0;
    border: 0;
}
.service-choice label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 10px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    cursor: pointer;
}
.service-choice input { margin-top: 4px; }
.service-choice small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}
.privacy-text {
    max-height: 190px;
    overflow: auto;
    padding: 16px;
    border-radius: 16px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    color: #475467;
    font-size: .92rem;
}
.privacy-text p { margin-bottom: 0; }
.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0;
    color: #344054;
    font-weight: 600;
}
.check input { margin-top: 5px; }
.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.alert {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
}
.alert ul { margin: 8px 0 0; }
.alert.success { color: var(--success); background: #eaf8ef; }
.alert.warning { color: var(--warning); background: #fff5d8; }
.alert.error { color: var(--error); background: #fff0f2; }

.site-footer {
    padding: 36px 0;
    color: #d9e3ef;
    background: #061a2e;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr .8fr;
    gap: 20px;
    align-items: start;
}
.footer-links {
    display: grid;
    gap: 8px;
    justify-content: end;
    text-align: right;
}
.footer-links a { color: #f2cf8c; }

@media (max-width: 1000px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 18px;
        background: white;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .hero-grid, .split, .reverse, .contact-grid { grid-template-columns: 1fr; }
    .contact-copy { position: static; }
    .cards.three { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    :root { --header-height: 70px; }
    .container { width: min(100% - 28px, 1160px); }
    .hero { padding: 44px 0 40px; }
    .hero::after { width: 130%; height: 26%; }
    .hero-card { border-radius: 22px; }
    .section { padding: 68px 0; }
    .pricing-grid, .field.two-col, .footer-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .footer-links { justify-content: start; text-align: left; }
    .step { grid-template-columns: 1fr; }
    h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* Area Clienti */
.nav-client {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--navy) !important;
    background: #fff8e8;
    border: 1px solid rgba(185,138,54,.38);
}
.nav-client:hover {
    background: var(--gold);
    color: white !important;
}

/* Pulsante Calcolatore fatture */
.nav-calculator {
    position: relative;
    padding: 10px 16px;
    border-radius: 999px;
    color: #061a2e !important;
    background: linear-gradient(135deg, #f6d88f, var(--gold));
    border: 1px solid rgba(8,36,63,.12);
    box-shadow: 0 10px 24px rgba(185,138,54,.24);
    font-weight: 900;
    letter-spacing: .045em;
}
.nav-calculator:hover {
    color: white !important;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-color: rgba(185,138,54,.7);
}
.btn-calculator {
    color: #061a2e;
    background:
        linear-gradient(135deg, #f9e4ad 0%, #d7a54f 46%, #b98a36 100%);
    border: 1px solid rgba(8,36,63,.14);
    box-shadow:
        0 18px 42px rgba(185,138,54,.36),
        inset 0 1px 0 rgba(255,255,255,.45);
    text-transform: uppercase;
}
.btn-calculator:hover {
    color: white;
    background: linear-gradient(135deg, var(--navy), #0f4777);
    box-shadow: 0 20px 48px rgba(8,36,63,.34);
}
.hero-calculator-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px;
    max-width: 690px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(8,36,63,.96), rgba(13,54,93,.92));
    border: 1px solid rgba(208,165,87,.52);
    box-shadow: 0 22px 55px rgba(8,36,63,.20);
}
.hero-calculator-row span {
    flex: 1 1 260px;
    color: #f7f3eb;
    font-weight: 700;
    font-size: .96rem;
}
.btn-calculator-hero {
    min-height: 54px;
    padding-inline: 26px;
    letter-spacing: .04em;
}
.btn-outline {
    color: var(--navy);
    background: rgba(255,255,255,.75);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(185,138,54,.18);
}
.btn-outline:hover {
    background: #fff8e8;
    transform: translateY(-1px);
}
.section-client-area {
    padding: 44px 0;
    background: linear-gradient(135deg, #071f38, #0d365d);
}
.client-access-card {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border-radius: 28px;
    color: white;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.client-access-card h2 {
    color: white;
    margin-bottom: 10px;
}
.client-access-card p {
    color: #e6edf5;
    margin-bottom: 0;
}
.client-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.client-badges span {
    padding: 8px 11px;
    border-radius: 999px;
    color: #f9e4b7;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(249,228,183,.25);
    font-size: .9rem;
    font-weight: 700;
}
.client-access-actions {
    display: grid;
    gap: 12px;
}
.client-access-actions small {
    color: #d9e3ef;
    text-align: center;
}
.access-page {
    background: #f7f9fc;
}
.access-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 70px;
    background:
        radial-gradient(circle at top right, rgba(185,138,54,.18), transparent 38%),
        linear-gradient(135deg, #f7f3eb 0%, #fff 46%, #edf3f9 100%);
}
.access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
    gap: 36px;
    align-items: center;
}
.access-copy h1 {
    max-width: 760px;
}
.access-panel {
    padding: 28px;
    border-radius: 28px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.access-panel h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--navy);
}
.access-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
    color: #344054;
}
.access-note {
    margin-top: 20px;
    padding: 14px;
    border-radius: 16px;
    color: var(--navy);
    background: #fff8e8;
    border: 1px solid rgba(185,138,54,.28);
}
.access-info {
    background: white;
}

@media (max-width: 1000px) {
    .client-access-card,
    .access-grid {
        grid-template-columns: 1fr;
    }
    .client-access-actions small {
        text-align: left;
    }
}

/* Area Clienti: collegamento personale SharePoint */
.sharepoint-saved-box {
    margin: 24px 0;
    padding: 22px;
    border-radius: 22px;
    color: var(--navy);
    background: #fff8e8;
    border: 1px solid rgba(185,138,54,.32);
    box-shadow: 0 18px 44px rgba(7,31,56,.10);
}
.sharepoint-saved-box .saved-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #6d4c10;
    background: rgba(185,138,54,.15);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sharepoint-saved-box strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.sharepoint-saved-box p {
    color: #344054;
    margin-bottom: 14px;
}
.hero-actions.compact {
    margin-top: 14px;
}
.client-link-form {
    margin: 26px 0 18px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(7,31,56,.10);
}
.client-link-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--navy);
    font-weight: 800;
}
.client-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}
.client-link-row input {
    min-height: 52px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid #cfd8e3;
    border-radius: 16px;
    color: var(--navy);
    background: white;
    font: inherit;
}
.client-link-row input:focus {
    outline: 3px solid rgba(185,138,54,.22);
    border-color: var(--gold);
}
.form-help {
    margin: 12px 0 0;
    color: #475467;
    font-size: .94rem;
}
.client-link-status {
    min-height: 22px;
    margin-top: 10px;
    font-weight: 700;
}
.client-link-status.is-ok { color: var(--success); }
.client-link-status.is-error { color: var(--error); }
.secondary-actions {
    margin-top: 10px;
}

@media (max-width: 760px) {
    .client-link-row {
        grid-template-columns: 1fr;
    }
    .client-link-row .btn {
        width: 100%;
    }
}


/* FIX Area Clienti 2026-07-01: gestione link SharePoint integrata */
.access-mode-badge {
    display: inline-flex;
    margin: 10px 0 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 129, .10);
    color: var(--navy);
    font-weight: 800;
    font-size: .88rem;
}
.saved-url-preview {
    word-break: break-all;
    margin: 12px 0;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(185,138,54,.22);
    color: #344054;
    font-size: .92rem;
}
.manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.client-link-status a {
    color: var(--navy);
    text-decoration: underline;
}
.link-danger {
    color: #b42318;
    font-weight: 800;
}
.access-warning {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #fff1f0;
    border: 1px solid rgba(180, 35, 24, .18);
    color: #7a271a;
}

/* Pagamenti pratica Stripe - aggiornamento 2026-07-07 */
.form-actions-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.payment-note {
    margin: 12px 0 0;
    color: #475467;
    font-size: .94rem;
    line-height: 1.45;
}
.payment-summary-card {
    margin: 24px 0;
    padding: 24px;
    border-radius: 24px;
    color: var(--navy);
    background: white;
    border: 1px solid rgba(185,138,54,.28);
    box-shadow: 0 18px 48px rgba(7,31,56,.10);
}
.payment-summary-card .saved-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #6d4c10;
    background: rgba(185,138,54,.15);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.payment-summary-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--navy);
}
.payment-summary-card p {
    margin: 6px 0;
    color: #344054;
}
.payment-page .access-copy {
    max-width: 820px;
}

@media (max-width: 760px) {
    .form-actions-dual {
        grid-template-columns: 1fr;
    }
}


/* Salvataggio progressivo lead MySQL */
.privacy-progressive-note {
    margin-top: 8px;
    font-size: 0.86rem;
    opacity: 0.82;
}
.autosave-status {
    min-height: 1.2em;
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: #4f5f74;
}
.autosave-status.saving { color: #8a6d1d; }
.autosave-status.saved { color: #1f6f43; }
.autosave-status.warning { color: #9a3412; }

/* SEO servizi - restyling blu/oro 2026-07-07 */
.seo-links-section {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: #f4f7fb;
    background:
        radial-gradient(circle at top left, rgba(208, 165, 87, .28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 248, 232, .12), transparent 36%),
        linear-gradient(135deg, #061a2e 0%, #0b2d4d 48%, #071f38 100%);
}
.seo-links-section::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(208, 165, 87, .22);
    border-radius: 34px;
    pointer-events: none;
}
.seo-links-section .container {
    position: relative;
    z-index: 1;
}
.seo-links-section .section-heading {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
}
.seo-links-section .section-heading .eyebrow {
    color: #f0d18b;
}
.seo-links-section .section-heading h2 {
    color: #ffffff;
}
.seo-links-section .section-heading p {
    color: #d9e3ef;
}
.seo-service-cards .card {
    display: flex;
    min-height: 255px;
    flex-direction: column;
    justify-content: space-between;
    color: #e6edf5;
    background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
    border: 1px solid rgba(208, 165, 87, .30);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .20);
    backdrop-filter: blur(8px);
}
.seo-service-cards .card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 209, 139, .72);
    box-shadow: 0 30px 82px rgba(0, 0, 0, .28);
}
.seo-service-cards .card h3 {
    color: #f5d58e;
}
.seo-service-cards .card p {
    color: #d9e3ef;
}
.seo-page-btn {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
    color: #061a2e !important;
    box-shadow: 0 14px 30px rgba(185, 138, 54, .24);
}
.seo-page-btn:hover {
    color: #061a2e !important;
}
.seo-disclaimer {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 18px;
    color: #f4f7fb;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(208, 165, 87, .24);
}

@media (max-width: 760px) {
    .hero-calculator-row {
        align-items: stretch;
        padding: 14px;
    }
    .btn-calculator-hero,
    .hero-calculator-row .btn {
        width: 100%;
    }
}

/* HOME DESKTOP - sticky destro corretto, fermo a fine home, senza invasione sezione successiva */
@media (min-width: 1001px) {
    .hero {
        position: relative;
        align-items: flex-start;
        padding-top: 24px;
        overflow: visible;
        isolation: isolate;
        z-index: 1;
    }

    /* La curva blu deve restare dentro la home: niente bottom negativo. */
    .hero::after {
        bottom: 0;
        height: 38%;
        width: 72%;
        left: -10%;
        z-index: -1;
        pointer-events: none;
    }

    .hero-grid {
        align-items: start;
    }

    .hero-copy,
    .hero-visual {
        align-self: start;
    }

    /* Sticky sul blocco destro completo: scritta sopra + immagine + pannello sotto. */
    .hero-visual {
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--header-height) + 18px);
        z-index: 2;
    }

    .hero-visual-eyebrow {
        margin: 0 0 12px;
    }

    .hero-card {
        margin-top: 0;
        overflow: hidden;
    }

    .hero-card picture,
    .hero-card img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .hero-proof-panel {
        margin-top: 14px;
        padding: 18px 20px;
        border-radius: 22px;
        background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,232,.96));
        border: 1px solid rgba(185,138,54,.32);
        box-shadow: 0 18px 46px rgba(8,36,63,.12);
        display: grid;
        gap: 14px;
    }

    .hero-proof-panel strong {
        display: block;
        color: var(--navy);
        font-size: 1.08rem;
        line-height: 1.18;
        font-weight: 900;
    }

    .hero-proof-panel span {
        display: block;
        margin-top: 4px;
        color: #475467;
        font-size: .96rem;
        line-height: 1.38;
        font-weight: 600;
    }

    .hero-proof-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-proof-tags span {
        margin: 0;
        padding: 7px 10px;
        border-radius: 999px;
        color: #061a2e;
        background: rgba(185,138,54,.16);
        border: 1px solid rgba(185,138,54,.28);
        font-size: .82rem;
        line-height: 1;
        font-weight: 900;
    }

    /* La sezione dopo la home deve coprire qualunque elemento decorativo della hero. */
    .section-problem {
        position: relative;
        z-index: 5;
        background: #fff;
    }
}

@media (max-width: 1000px) {
    .hero-visual {
        position: static;
    }

    .hero-proof-panel {
        margin-top: 14px;
        padding: 16px;
        border-radius: 20px;
        background: #fff8e8;
        border: 1px solid rgba(185,138,54,.28);
    }

    .hero-proof-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .hero-proof-tags span {
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(185,138,54,.14);
        color: var(--navy);
        font-weight: 800;
        font-size: .82rem;
    }
}

/* Istanze web SPEdiGIUS - griglia servizi 2026-07-30 */
.seo-service-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1180px) {
    .seo-service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .seo-service-cards { grid-template-columns: 1fr; }
}

/* Calcolatore e Fattura */
.section-calculator-invoice {
    background:linear-gradient(145deg,#071f39 0%,#0d365f 58%,#123c69 100%);
    color:#fff;
    position:relative;
    overflow:hidden;
}
.section-calculator-invoice::before {
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 12% 15%,rgba(241,210,122,.17),transparent 32%),radial-gradient(circle at 88% 82%,rgba(255,255,255,.08),transparent 27%);
    pointer-events:none;
}
.section-calculator-invoice .container { position:relative; }
.section-calculator-invoice .section-heading h2 { color:#fff; }
.section-calculator-invoice .section-heading p:not(.eyebrow) { color:#dce7f4; }
.calculator-invoice-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:30px; }
.calculator-invoice-card { position:relative; min-height:390px; padding:34px; border-radius:24px; border:1px solid rgba(241,210,122,.55); box-shadow:0 24px 60px rgba(0,0,0,.2); }
.calculator-invoice-card.calculator-mode { color:#102b49; background:linear-gradient(145deg,#fff,#fff8e6); }
.calculator-invoice-card.invoice-mode { color:#fff; background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.04)); backdrop-filter:blur(8px); }
.calculator-invoice-card h3 { font-size:30px; margin:0 0 14px; }
.calculator-invoice-card.invoice-mode h3 { color:#f1d27a; }
.calculator-invoice-card p { line-height:1.65; }
.calculator-invoice-card.invoice-mode p,.calculator-invoice-card.invoice-mode li { color:#e2ebf5; }
.calculator-invoice-card ul { padding-left:20px; margin:18px 0 24px; }
.calculator-invoice-card li { margin:9px 0; }
.calculator-invoice-icon { width:66px; height:66px; display:grid; place-items:center; border-radius:18px; margin-bottom:22px; color:#09213d; background:linear-gradient(135deg,#f1d27a,#c7a24a); font-size:25px; font-weight:900; box-shadow:0 12px 28px rgba(0,0,0,.22); }
.calculator-invoice-card .btn { margin-top:auto; }
.calculator-invoice-disclaimer { margin:24px 0 0; padding:18px 20px; border-radius:16px; color:#dfe9f4; background:rgba(0,0,0,.18); border-left:5px solid #c7a24a; line-height:1.55; }
@media (max-width:820px) { .calculator-invoice-grid { grid-template-columns:1fr; } .calculator-invoice-card { min-height:auto; } }


/* FATTURA SMART - sezione Calcolatore e Fattura */
.invoice-mode-smart { min-height:460px; }
.invoice-service-options { display:grid; grid-template-columns:1fr 1.2fr; gap:16px; margin-top:18px; }
.invoice-service-option { display:flex; flex-direction:column; align-items:flex-start; padding:20px; border-radius:18px; color:#102b49; background:#fff; border:1px solid rgba(241,210,122,.45); }
.invoice-service-option h4 { margin:6px 0 10px; font-size:1.25rem; color:#0a2948; }
.invoice-service-option p { color:#44566a !important; }
.invoice-service-option .btn { margin-top:auto; }
.invoice-service-label { color:#9a6c06; font-size:.76rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.smart-service-option { color:#fff; background:linear-gradient(145deg,#0b3157,#071f38); border-color:#d4ad50; }
.smart-service-option h4 { color:#f1d27a; }
.smart-service-option p,.smart-service-option li { color:#e7eef6 !important; }
.smart-service-option ul { margin:12px 0 20px; padding-left:18px; }
.smart-service-option .invoice-service-label { color:#f1d27a; }
@media (max-width:1050px){ .invoice-service-options{grid-template-columns:1fr;} }

/* Area Utility pubblica - 2026-09-02 */
.nav-utility {
    color: #fff !important;
    background: linear-gradient(135deg,#1976d2,#0b4f91);
    border: 2px solid #74b9ff;
    border-radius: 999px;
    padding: 9px 15px !important;
    box-shadow: 0 7px 18px rgba(11,79,145,.22);
}
.nav-utility:hover,.nav-utility:focus-visible,.nav-utility.is-active {
    color: #071f39 !important;
    background: #f1d27a;
    border-color: #f1d27a;
}
.utility-hero {
    padding: 92px 0 70px;
    color: #fff;
    background: radial-gradient(circle at 80% 18%,rgba(241,210,122,.20),transparent 30%),linear-gradient(145deg,#071f39,#0d467b);
}
.utility-hero h1 { margin: 8px 0 14px; color: #fff; font-size: clamp(2.5rem,6vw,4.8rem); }
.utility-hero p:not(.eyebrow) { max-width: 760px; color: #e4edf7; font-size: 1.14rem; line-height: 1.7; }
.utility-section { background: #f5f8fc; }
.utility-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.utility-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 390px; padding: 32px; background: #fff; border: 1px solid #d8e2ee; border-top: 5px solid #c7a24a; border-radius: 22px; box-shadow: 0 18px 46px rgba(7,31,57,.10); }
.utility-card h3 { margin: 8px 0 12px; color: #092a4a; font-size: 1.55rem; }
.utility-card > p:not(.utility-type):not(.utility-filename) { color: #4b5e72; line-height: 1.65; }
.utility-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 17px; background: #eaf4ff; font-size: 31px; }
.utility-type { margin: 0; color: #9a6c06; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.utility-filename { width: 100%; margin: auto 0 18px; padding: 11px 13px; overflow-wrap: anywhere; color: #46596d; background: #f2f5f8; border-radius: 10px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .82rem; }
.utility-download { width: 100%; text-align: center; }
.utility-pending { width: 100%; color: #667085; background: #e7ebf0; border: 1px solid #d0d5dd; cursor: not-allowed; text-align: center; }
.utility-card.is-unavailable { opacity: .78; }
.utility-security-note { margin-top: 28px; padding: 20px 22px; color: #273b50; background: #fff8e7; border-left: 5px solid #c7a24a; border-radius: 14px; line-height: 1.6; }
@media (max-width:800px) { .utility-grid { grid-template-columns: 1fr; } .utility-card { min-height: auto; } .utility-hero { padding: 70px 0 50px; } }
