/* S-Data Impianti (01) — landing dedicata (prefisso pi01-) */

body[data-sdata-page="prodotto-impianti-01"],
body[data-sdata-page="prova-attivata"] {
    font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body[data-sdata-page="prodotto-impianti-01"] #main-content {
    min-height: 50vh;
}

body[data-sdata-page="prodotto-impianti-01"] {
    background: #f1f5f9;
    color: #1e293b;
}

body[data-sdata-page="prodotto-impianti-01"] .skip-link,
body[data-sdata-page="prova-attivata"] .skip-link {
    position: absolute;
    top: -48px;
    left: 6px;
    background: #1d4ed8;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10002;
}

body[data-sdata-page="prodotto-impianti-01"] .skip-link:focus,
body[data-sdata-page="prova-attivata"] .skip-link:focus {
    top: 6px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body[data-sdata-page="prodotto-impianti-01"] .floating-contact {
    display: none !important;
}

body[data-sdata-page="prodotto-impianti-01"] .navbar {
    display: none !important;
}

.pi01-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 26, 0.97);
    border-bottom: 1px solid #1e293b;
}

.pi01-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pi01-nav__logo img {
    display: block;
    width: 140px;
    height: 34px;
    max-height: 36px;
    object-fit: contain;
}

.pi01-nav__links {
    display: flex;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.pi01-nav__links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.pi01-nav__links a:hover,
.pi01-nav__links a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.pi01-nav__cta {
    margin-left: auto;
    white-space: nowrap;
}

.pi01-hero {
    padding: 4rem 0 3rem;
    min-height: 22rem;
    contain-intrinsic-size: auto 22rem;
    background: linear-gradient(165deg, #0b0e1a 0%, #151a2e 55%, #0f1424 100%);
    color: #f4f6fb;
}

.pi01-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 960px) {
    .pi01-hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
        min-height: 18rem;
    }

    #pi01-media-dashboard {
        min-height: 14rem;
    }
}

.pi01-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    font-weight: 700;
}

.pi01-hero__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #c8d0e0;
    margin: 0 0 1.5rem;
}

.pi01-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pi01-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.pi01-btn--primary {
    background: #1d4ed8;
    color: #fff;
}

.pi01-btn--primary:hover,
.pi01-btn--primary:focus-visible {
    background: #1e40af;
    color: #fff;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.pi01-btn--block {
    width: 100%;
    margin-top: 1rem;
}

.pi01-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.pi01-btn--ghost {
    background: transparent;
    color: #e2e8f0;
    border-color: #475569;
}

.pi01-btn--ghost:hover,
.pi01-btn--ghost:focus-visible {
    border-color: #94a3b8;
    color: #fff;
}

.pi01-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #b8c4d9;
}

.pi01-trust li::before {
    content: "✓ ";
    color: #6ee7b7;
}

.pi01-media {
    display: none;
}

.pi01-media:not(:empty) {
    display: block;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.pi01-media img,
.pi01-media video {
    width: 100%;
    height: auto;
    display: block;
}

.pi01-hero__kicker {
    color: #94a3b8;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.pi01-hero__note {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 1rem 0 0;
    line-height: 1.45;
}

.pi01-section {
    padding: 3.5rem 0;
    background: #ffffff;
    color: #1e293b;
}

.pi01-section--alt {
    background: #f1f5f9;
}

.pi01-lead {
    color: #334155;
    margin: 0 0 1rem;
    line-height: 1.55;
}

.pi01-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.pi01-section h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 1rem;
    color: #0f172a;
}

.pi01-section p,
.pi01-section li {
    color: #334155;
}

.pi01-audience {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .pi01-audience {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pi01-audience .pi01-card p {
    margin: 0;
    line-height: 1.5;
}

.pi01-cta-row--center {
    justify-content: center;
}

.pi01-footer-cta__lead {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    color: #cbd5e1;
}

.pi01-section--alt h2,
.pi01-section--alt h3 {
    color: #0f172a;
}

.pi01-hero h2 {
    color: inherit;
}

.pi01-grid-3 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pi01-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pi01-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    min-height: 8.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pi01-section--alt .pi01-card {
    background: #fff;
}

.pi01-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.pi01-card ul {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.5;
}

.pi01-problems {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pi01-problems {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pi01-problems li {
    list-style: none;
    padding: 1rem;
    background: #fff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pi01-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
    font-size: 0.98rem;
    line-height: 1.5;
}

.pi01-pricing {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pi01-pricing {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pi01-price-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    min-height: 12.5rem;
}

.pi01-price-card--featured {
    border-color: #3b82f6;
}

.pi01-price-card .pi01-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.pi01-price-card .pi01-price-note {
    font-size: 0.9rem;
    color: #64748b;
}

.pi01-table-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.pi01-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pi01-table th,
.pi01-table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.pi01-table th {
    background: #f1f5f9;
    font-weight: 600;
}

.pi01-efattura--pending .pi01-pending-banner {
    display: block;
}

.pi01-pending-banner {
    display: none;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.pi01-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
}

.pi01-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.pi01-faq summary::-webkit-details-marker {
    display: none;
}

.pi01-faq summary::before {
    content: "+ ";
    color: #3b82f6;
}

.pi01-faq details[open] summary::before {
    content: "− ";
}

.pi01-faq .pi01-faq-a {
    margin: 0.75rem 0 0;
    line-height: 1.55;
    color: #334155;
}

.pi01-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pi01-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pi01-steps li {
    padding: 1rem 1rem 1rem 3rem;
    position: relative;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pi01-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pi01-footer-cta {
    text-align: center;
    padding: 3rem 0 4rem;
    background: #0b0e1a;
    color: #e2e8f0;
}

.pi01-footer-cta h2 {
    color: #fff;
}

.pi01-muted {
    font-size: 0.9rem;
    color: #475569;
}

.pi01-price-suffix {
    font-size: 1rem;
    font-weight: 400;
}

.pi01-footer {
    background: #0b0e1a;
    color: #e2e8f0;
    padding: 2.5rem 0;
    text-align: center;
}

.pi01-footer__inner p {
    margin: 0.35rem 0;
    color: #e2e8f0;
}

.pi01-footer .pi01-muted {
    color: #94a3b8;
}

.pi01-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.pi01-footer__links a {
    color: #93c5fd;
}

.pi01-footer__links a:hover,
.pi01-footer__links a:focus-visible {
    color: #fff;
}

body[data-sdata-page="prodotto-impianti-01"] .pi01-card h3 {
    color: #0f172a;
}

.pi01-contact-pre {
    font-size: 0.95rem;
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .pi01-btn {
        transition: none;
    }
}

/* Cookie + bottoni (solo pagine pi01, senza styles.css) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10000;
    display: none;
    padding: 12px 16px;
    max-height: 35vh;
    overflow-y: auto;
}

.cookie-content {
    max-width: 1120px;
    margin: 0 auto;
    color: #fff;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cookie-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.cookie-body p {
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.cookie-actions--compact .btn {
    flex: 1 1 auto;
    min-width: 8rem;
}

.cookie-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #93c5fd;
    font-size: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #1d4ed8;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.15rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-modal-body {
    padding: 16px 20px;
}

.cookie-option {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-checkbox input {
    width: 18px;
    height: 18px;
}

.cookie-label strong {
    color: #fff;
    display: block;
}

.cookie-label small {
    color: #94a3b8;
}

.cookie-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    body[data-sdata-page="prodotto-impianti-01"] .cookie-banner,
    body[data-sdata-page="prova-attivata"] .cookie-banner {
        max-height: 35vh;
        padding: 8px 10px;
    }

    body[data-sdata-page="prodotto-impianti-01"] .cookie-body,
    body[data-sdata-page="prova-attivata"] .cookie-body {
        display: none;
    }

    body[data-sdata-page="prodotto-impianti-01"] .cookie-header,
    body[data-sdata-page="prova-attivata"] .cookie-header {
        margin-bottom: 4px;
    }

    body[data-sdata-page="prodotto-impianti-01"] .cookie-header h3,
    body[data-sdata-page="prova-attivata"] .cookie-header h3 {
        font-size: 0.95rem;
    }

    .cookie-actions--compact {
        flex-direction: row;
        flex-wrap: nowrap;
        margin-bottom: 4px;
    }

    .cookie-actions--compact #accept-essential,
    .cookie-actions--compact #accept-all {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .cookie-actions--compact #customize {
        width: 100%;
        min-height: 36px;
        font-size: 0.78rem;
    }

    body[data-sdata-page="prodotto-impianti-01"] .pi01-hero,
    body[data-sdata-page="prova-attivata"] .pi01-hero {
        min-height: 18rem;
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    body[data-sdata-page="prodotto-impianti-01"] .pi01-hero h1 {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
        line-height: 1.2;
        min-height: 5.5rem;
    }
}
