:root {
    --rfs-primary: #0f6b78;
    --rfs-accent: #f2a541;
    --rfs-dark: #10232a;
    --rfs-light: #f7fafb;
    --rfs-border: rgba(16, 35, 42, 0.12);
}

body {
    color: var(--rfs-dark);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--rfs-primary); }
a:hover { color: #0a505a; }

.rfs-navbar {
    background: linear-gradient(135deg, var(--rfs-primary), #073d47);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rfs-navbar-main {
    flex-wrap: wrap;
    padding-bottom: 0;
}

.rfs-nav-breadcrumb {
    margin-top: .35rem;
    padding: .45rem 0 .6rem;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.12);
}

.rfs-nav-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255,255,255,.56);
    font-size: .92rem;
}

.rfs-nav-breadcrumb .breadcrumb-item,
.rfs-nav-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,.74);
}

.rfs-nav-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.rfs-nav-breadcrumb a:hover {
    text-decoration: underline;
}

.navbar-brand { letter-spacing: .01em; }
.nav-link.active { font-weight: 700; }

.rfs-breadcrumb {
    background: linear-gradient(135deg, var(--rfs-primary), #073d47);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.rfs-section { padding: 72px 0; }

.rfs-hero {
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(242,165,65,.22), transparent 34%),
        linear-gradient(135deg, var(--rfs-primary), var(--rfs-secondary));
    padding: 96px 0;
}

.rfs-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rfs-hero .lead {
    color: rgba(255,255,255,.84);
    font-size: 1.18rem;
    margin-top: 1.25rem;
}

.rfs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--rfs-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    margin-bottom: .8rem;
}

.rfs-eyebrow.dark { color: var(--rfs-primary); }

.rfs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.75rem;
}

.rfs-image-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.82);
    font-weight: 800;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, rgba(255,255,255,.14) 10px 20px);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 24px 70px rgba(0,0,0,.20);
}

.rfs-rounded-image {
    border-radius: 12px;
    min-height: 320px;
    color: var(--rfs-primary);
    background:
        linear-gradient(135deg, rgba(15,107,120,.16), rgba(242,165,65,.18)),
        repeating-linear-gradient(45deg, rgba(15,107,120,.08) 0 10px, rgba(15,107,120,.12) 10px 20px);
}

.rfs-content-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--rfs-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(16,35,42,.08);
}

.rfs-content-card h2,
.rfs-cards-services h2,
.rfs-steps h2,
.rfs-faq h2,
.rfs-contacts h2,
.rfs-cta h2 {
    font-weight: 800;
    letter-spacing: -.03em;
}

.rfs-richtext p:last-child { margin-bottom: 0; }

.rfs-service-card,
.rfs-step,
.rfs-form {
    border: 1px solid var(--rfs-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 42px rgba(16,35,42,.07);
}

.rfs-card-body { padding: 1.4rem; }
.rfs-service-card h3,
.rfs-step h3 {
    font-size: 1.15rem;
    font-weight: 800;
}
.rfs-service-card p,
.rfs-step p { color: #5f6d73; }
.rfs-card-link { font-weight: 800; text-decoration: none; }

.rfs-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.rfs-steps { background: var(--rfs-light); }
.rfs-step { padding: 1.4rem; }
.rfs-step-number {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--rfs-primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.accordion-button:not(.collapsed) {
    color: var(--rfs-primary);
    background: rgba(15,107,120,.08);
}

.rfs-cta-box {
    color: #fff;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rfs-primary), var(--rfs-secondary));
    box-shadow: 0 24px 70px rgba(16,35,42,.16);
}

.rfs-cta-box p {
    color: rgba(255,255,255,.82);
    max-width: 780px;
    margin: 1rem auto 1.5rem;
}

.rfs-form { padding: 1.5rem; }
.rfs-contact-list p { margin-bottom: .55rem; }

.rfs-footer {
    color: rgba(255,255,255,.82);
    background: #0b2e35;
}
.rfs-footer h2,
.rfs-footer h3 { color: #fff; }
.rfs-footer a { color: #fff; text-decoration: none; }
.rfs-footer a:hover { text-decoration: underline; }
.rfs-footer hr { border-color: rgba(255,255,255,.18); }

@media (max-width: 767.98px) {
    .rfs-section { padding: 52px 0; }
    .rfs-hero { padding: 72px 0; }
    .rfs-actions { justify-content: flex-start; }
}

/* RFS v0.4 - immagini responsive non tagliate */
.rfs-hero-image,
.rfs-rounded-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #eef5f6;
}
.rfs-card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    display: block;
    object-fit: contain;
    background: #f4f7f8;
}
.rfs-service-card {
    display: flex;
    flex-direction: column;
}
.rfs-service-card .rfs-card-body {
    flex: 1 1 auto;
}


/* RFS v0.5 - cards_grid_base */

/* R90-7 - layout compatto generico Cards grid base */
.rfs-cards-grid-layout {
    --rfs-cards-grid-gap: 1.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--rfs-cards-grid-gap);
    position: relative;
}

@media (min-width: 768px) {
    .rfs-cards-grid-layout[data-rfs-cards-grid-columns="2"],
    .rfs-cards-grid-layout[data-rfs-cards-grid-columns="3"],
    .rfs-cards-grid-layout[data-rfs-cards-grid-columns="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .rfs-cards-grid-layout[data-rfs-cards-grid-columns="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .rfs-cards-grid-layout[data-rfs-cards-grid-columns="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.rfs-cards-grid-layout.rfs-cards-grid-positioned {
    display: block;
}

.rfs-cards-grid-positioned > .rfs-cards-grid-item {
    top: 0;
    left: 0;
}

.rfs-cards-grid-item {
    min-width: 0;
}
.rfs-cards-grid-base.rfs-cards-grid-soft { background: var(--rfs-light); }
.rfs-grid-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rfs-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 14px 42px rgba(16,35,42,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.rfs-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 54px rgba(16,35,42,.10);
}
.rfs-grid-card-media {
    background: #f4f7f8;
    overflow: hidden;
}
.rfs-grid-card-media img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.rfs-image-mode-contain {
    min-height: 190px;
    display: grid;
    place-items: center;
}
.rfs-image-mode-contain img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
}
.rfs-image-mode-cover img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}
.rfs-image-mode-natural img {
    height: auto;
    object-fit: contain;
}
.rfs-grid-card-body {
    flex: 1 1 auto;
    padding: 1.4rem;
}
.rfs-cards-grid-compact .rfs-grid-card-body { padding: 1.05rem; }
.rfs-grid-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.rfs-grid-card p { color: #5f6d73; }


/* RFS v0.5.1 - animazioni leggere selezionabili */
.rfs-anim {
    animation-duration: .72s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    animation-delay: var(--rfs-anim-delay, 0ms);
}
.rfs-anim-fade-up { animation-name: rfsFadeUp; }
.rfs-anim-fade-right { animation-name: rfsFadeRight; }
.rfs-anim-fade-left { animation-name: rfsFadeLeft; }
.rfs-anim-zoom-in { animation-name: rfsZoomIn; }
@keyframes rfsFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rfsFadeRight { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes rfsFadeLeft { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes rfsZoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .rfs-anim { animation: none !important; }
}


/* RFS v0.5.5 - adattamento immagini anche per cards_services */
.rfs-card-img.rfs-card-img-mode-contain {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}
.rfs-card-img.rfs-card-img-mode-cover {
    width: 100%;
    height: 220px;
    max-height: none;
    object-fit: cover;
}
.rfs-card-img.rfs-card-img-mode-natural {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}


/* RFS v0.5.6 - adattamento immagini uniforme per sezioni con immagine */
.rfs-hero-image-mode-contain,
.rfs-text-image-mode-contain {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}
.rfs-hero-image-mode-cover,
.rfs-text-image-mode-cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.rfs-hero-image-mode-natural,
.rfs-text-image-mode-natural {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .rfs-hero-image-mode-cover,
    .rfs-text-image-mode-cover {
        height: 280px;
    }
}


/* RFS v0.5.7 - sezioni Parallax, Slider, Gallery */
.rfs-parallax-section {
    position: relative;
    min-height: var(--rfs-parallax-height, 460px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}
.rfs-parallax-fixed { background-attachment: fixed; }
.rfs-parallax-overlay {
    position: absolute;
    inset: 0;
    background: var(--rfs-parallax-overlay-color, rgba(0, 0, 0, var(--rfs-parallax-overlay, .45)));
}
.rfs-parallax-content { padding: 4rem 0; }
.rfs-parallax-content h2 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; }
.rfs-parallax-content .rfs-richtext { font-size: 1.15rem; color: rgba(255,255,255,.9); }
.rfs-eyebrow.light { color: rgba(255,255,255,.82); }

.rfs-slider { border-radius: 1.4rem; }
.rfs-slider .carousel-item { height: var(--rfs-slider-height, 460px); background: #e2e8f0; }
.rfs-slider-img { width: 100%; height: 100%; display: block; background: #f1f5f9; }
.rfs-slider-img.rfs-image-mode-cover { object-fit: cover; }
.rfs-slider-img.rfs-image-mode-contain { object-fit: contain; }
.rfs-slider-img.rfs-image-mode-natural { object-fit: contain; height: auto; max-height: var(--rfs-slider-height, 460px); margin: 0 auto; }
.rfs-slider-placeholder { height: var(--rfs-slider-height, 460px); display: grid; place-items: center; color: #64748b; font-weight: 800; background: linear-gradient(135deg,#e2e8f0,#f8fafc); }
.rfs-slider-caption { right: 8%; left: 8%; bottom: 2rem; padding: 0; border-radius: 0; background: transparent; backdrop-filter: none; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.rfs-slider-caption h3 { font-weight: 800; }
.rfs-slider-caption .rfs-richtext { color: rgba(255,255,255,.95); }

.rfs-gallery-item { position: relative; margin: 0; border-radius: 1.1rem; overflow: hidden; border: 1px solid rgba(15,23,42,.08); background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.rfs-gallery-img { width: 100%; display: block; background: #f1f5f9; }
.rfs-gallery-img.rfs-image-mode-cover { height: 260px; object-fit: cover; }
.rfs-gallery-img.rfs-image-mode-contain { height: 260px; object-fit: contain; }
.rfs-gallery-img.rfs-image-mode-natural { height: auto; object-fit: contain; }
.rfs-gallery-placeholder { height: 260px; display: grid; place-items: center; background: #f1f5f9; color: #64748b; font-weight: 800; }
.rfs-gallery-item figcaption { padding: .8rem 1rem; color: #475569; font-size: .95rem; }
.rfs-gallery-soft .rfs-gallery-item { background: #f8fafc; }
.rfs-gallery-masonry .rfs-gallery-img.rfs-image-mode-cover { height: auto; aspect-ratio: auto; }
@media (max-width: 991.98px) {
    .rfs-parallax-fixed { background-attachment: scroll; }
    .rfs-parallax-section { min-height: min(var(--rfs-parallax-height, 460px), 420px); }
    .rfs-slider .carousel-item, .rfs-slider-placeholder { height: 320px; }
    .rfs-slider-caption { position: absolute; bottom: 1rem; padding: .85rem; }
}
@media (max-width: 575.98px) {
    .rfs-gallery-img.rfs-image-mode-cover,
    .rfs-gallery-img.rfs-image-mode-contain { height: 210px; }
}


/* RFS v0.5.8 - parallax a doppia velocità */
.rfs-parallax-js {
    background-attachment: scroll;
    background-position: center var(--rfs-parallax-y, 50%);
    will-change: background-position;
}
.rfs-parallax-speed-slow { --rfs-parallax-speed-label: slow; }
.rfs-parallax-speed-fast { --rfs-parallax-speed-label: fast; }
@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
    .rfs-parallax-js {
        background-position: center center !important;
        will-change: auto;
    }
}


/* RFS TinyMCE content utility classes */
.rfs-text-highlight {
    background: rgba(255, 193, 7, 0.22);
    padding: 0 .18rem;
    border-radius: .2rem;
}
.rfs-text-small {
    font-size: .92rem;
    color: #5f6c7b;
}
.rfs-editor-box {
    padding: 1rem 1.15rem;
    border-left: 4px solid #0d6efd;
    background: rgba(13, 110, 253, 0.06);
    border-radius: .65rem;
    margin: 1rem 0;
}
.rfs-content table,
.rfs-card-text table,
.rfs-faq-answer table,
.rfs-step-text table,
.rfs-cta-text table {
    width: 100%;
}

/* RFS v0.5.14 - posizione immagine selezionabile */
.rfs-img-pos-center { object-position: center center; }
.rfs-img-pos-top { object-position: center top; }
.rfs-img-pos-bottom { object-position: center bottom; }
.rfs-img-pos-left { object-position: left center; }
.rfs-img-pos-right { object-position: right center; }

.rfs-parallax-section {
    background-position: var(--rfs-bg-x, 50%) var(--rfs-bg-base-y, 50%);
}
.rfs-parallax-js {
    background-position: var(--rfs-bg-x, 50%) calc(var(--rfs-bg-base-y, 50%) + var(--rfs-parallax-y, 0px));
}
.rfs-parallax-fixed {
    background-attachment: fixed;
    background-position: var(--rfs-bg-x, 50%) var(--rfs-bg-base-y, 50%);
}
@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
    .rfs-parallax-fixed {
        background-attachment: scroll;
    }
    .rfs-parallax-js {
        background-position: var(--rfs-bg-x, 50%) var(--rfs-bg-base-y, 50%) !important;
    }
}


/* RFS v0.5.15 - fix parallax Alto/Basso: sfondo sempre coperto con buffer interno */
.rfs-parallax-section {
    background-image: none !important;
    background-color: #0f172a;
}
.rfs-parallax-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--rfs-parallax-buffer, 90px));
    bottom: calc(-1 * var(--rfs-parallax-buffer, 90px));
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--rfs-bg-x, 50%) var(--rfs-bg-base-y, 50%);
    transform: translate3d(0, var(--rfs-parallax-y, 0px), 0);
    will-change: transform;
    z-index: 0;
}
.rfs-parallax-overlay { z-index: 1; }
.rfs-parallax-section > .container { z-index: 2; }
.rfs-parallax-fixed .rfs-parallax-bg {
    top: 0;
    bottom: 0;
    transform: none;
    will-change: auto;
}
.rfs-parallax-section[data-rfs-crop-mode="focus"] .rfs-parallax-bg {
    top: 0;
    bottom: 0;
    transform: none !important;
    will-change: auto;
}

.rfs-parallax-js {
    background-position: initial !important;
}
.rfs-parallax-fixed {
    background-position: initial !important;
}
@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
    .rfs-parallax-bg {
        top: 0;
        bottom: 0;
        transform: none !important;
        will-change: auto;
    }
}

/* RFS v0.5.16 - controlli maschera parallax */
.rfs-live-range { accent-color: #0d6efd; }

/* RFS v0.7 - Form contatti */
.rfs-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.rfs-contact-list a { font-weight: 700; }

/* RFS v0.8 - dati aziendali */
.rfs-footer-logo{max-width:180px;max-height:80px;width:auto;height:auto;object-fit:contain;display:block}.rfs-contact-list p{margin-bottom:.5rem}

/* RFS v1.2 - sezioni video e fullscreen */
.rfs-video-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:1.25rem;overflow:hidden;background:#0f172a;box-shadow:0 1.25rem 3rem rgba(15,23,42,.16)}
.rfs-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.rfs-video-player{width:100%;max-width:100%;border-radius:1.25rem;background:#0f172a;display:block}
.rfs-video-placeholder{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;border-radius:1.25rem;background:#e5e7eb;color:#64748b;font-weight:700}
.rfs-video-fullscreen{position:relative;min-height:var(--rfs-video-cover-height,100vh);display:flex;align-items:center;overflow:hidden;background:#0f172a;color:#fff;padding:0}
.rfs-video-cover-media,.rfs-video-cover-media video,.rfs-video-cover-media img,.rfs-video-cover-media iframe,.rfs-video-cover-fallback{position:absolute;inset:0;width:100%;height:100%}
.rfs-video-cover-media video,.rfs-video-cover-media img{object-fit:cover}.rfs-video-cover-media iframe{border:0;transform:scale(1.18);transform-origin:center center;pointer-events:none}
.rfs-video-cover-fallback{background:linear-gradient(135deg,#0f172a,#1d4ed8)}
.rfs-video-cover-overlay{position:absolute;inset:0;background:var(--rfs-video-overlay-color,rgba(0,0,0,.45));z-index:1}
.rfs-video-fullscreen>.container{z-index:2}.rfs-video-cover-content h2{font-size:clamp(2.2rem,5vw,5.6rem);line-height:.98;color:#fff}.rfs-video-cover-content .rfs-richtext{font-size:clamp(1.05rem,1.6vw,1.35rem);color:rgba(255,255,255,.9)}
.rfs-media-cover{position:relative;min-height:var(--rfs-media-cover-height,85vh);display:flex;align-items:center;overflow:hidden;background:#0f172a;color:#fff;padding:0}.rfs-media-cover-img,.rfs-media-cover-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.rfs-media-cover-placeholder{background:linear-gradient(135deg,#111827,#334155)}.rfs-media-cover-overlay{position:absolute;inset:0;background:var(--rfs-media-cover-overlay-color,rgba(0,0,0,.35));z-index:1}.rfs-media-cover>.container{z-index:2}.rfs-media-cover-content h2{font-size:clamp(2.1rem,4.4vw,5rem);line-height:1;color:#fff}.rfs-media-cover-content .rfs-richtext{font-size:clamp(1.05rem,1.5vw,1.25rem);color:rgba(255,255,255,.92)}
.rfs-card-video{width:100%;border-radius:1rem 1rem 0 0;overflow:hidden;background:#0f172a}.rfs-card-video .rfs-video-frame{border-radius:0;box-shadow:none}.rfs-card-video .rfs-video-player{border-radius:0;box-shadow:none}
@media(max-width:767.98px){.rfs-video-fullscreen,.rfs-media-cover{min-height:70vh}.rfs-video-cover-content h2,.rfs-media-cover-content h2{font-size:2.35rem}}

/* RFS v1.5 - Tema grafico globale */
body {
    color: var(--rfs-body-text, var(--rfs-dark));
    background: var(--rfs-body-bg, #fff);
    font-family: var(--rfs-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
h1, h2, h3, h4, h5, h6,
.rfs-hero h1,
.rfs-content-card h2,
.rfs-cards-services h2,
.rfs-steps h2,
.rfs-faq h2,
.rfs-contacts h2,
.rfs-cta h2,
.rfs-grid-card h3,
.rfs-service-card h3,
.rfs-step h3 {
    color: var(--rfs-heading-color, inherit);
    font-family: var(--rfs-heading-font, var(--rfs-body-font, system-ui));
}
.rfs-hero h1,
.rfs-hero h2,
.rfs-hero h3,
.rfs-cta-box h2,
.rfs-footer h2,
.rfs-footer h3,
.rfs-parallax-content h2,
.rfs-slider-caption h3,
.rfs-video-cover-content h2,
.rfs-media-cover-content h2 {
    color: inherit;
}
.rfs-navbar {
    color: var(--rfs-nav-text, #fff);
    background: linear-gradient(135deg, var(--rfs-nav-bg, var(--rfs-primary)), color-mix(in srgb, var(--rfs-nav-bg, var(--rfs-primary)) 65%, #000));
}
.rfs-navbar.rfs-navbar-flat,
body.rfs-theme-navbar-flat .rfs-navbar {
    background: var(--rfs-nav-bg, var(--rfs-primary));
}
.rfs-navbar .navbar-brand,
.rfs-navbar .nav-link,
.rfs-navbar .navbar-text,
.rfs-nav-breadcrumb .breadcrumb-item,
.rfs-nav-breadcrumb .breadcrumb-item.active,
.rfs-nav-breadcrumb a {
    color: var(--rfs-nav-text, #fff) !important;
}
.rfs-footer {
    color: color-mix(in srgb, var(--rfs-footer-text, #fff) 82%, transparent);
    background: var(--rfs-footer-bg, #0b2e35);
}
.rfs-footer h2,
.rfs-footer h3,
.rfs-footer a {
    color: var(--rfs-footer-text, #fff);
}
.rfs-content-card,
.rfs-service-card,
.rfs-step,
.rfs-form,
.rfs-grid-card,
.rfs-gallery-item,
.rfs-video-frame,
.rfs-cta-box,
.rfs-image-placeholder,
.rfs-rounded-image,
.rfs-video-player,
.rfs-video-placeholder {
    border-radius: var(--rfs-card-radius, 12px);
    box-shadow: var(--rfs-card-shadow, 0 14px 42px rgba(16,35,42,.07));
}
.btn {
    border-radius: var(--rfs-button-radius, 8px);
}
.btn-primary {
    --bs-btn-bg: var(--rfs-primary);
    --bs-btn-border-color: var(--rfs-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--rfs-primary) 86%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--rfs-primary) 86%, #000);
}
.btn-warning {
    --bs-btn-bg: var(--rfs-accent);
    --bs-btn-border-color: var(--rfs-accent);
}
.rfs-section-spacing-compact .rfs-section { padding-top: 48px; padding-bottom: 48px; }
.rfs-section-spacing-large .rfs-section { padding-top: 96px; padding-bottom: 96px; }

/* RFS v1.5.2 - applicazione font più forte e uniforme */
html,
body,
.rfs-navbar,
.rfs-footer,
.rfs-section,
.rfs-richtext,
.rfs-card,
.rfs-service-card,
.rfs-grid-card,
.rfs-content-card,
.rfs-step,
.rfs-faq,
.rfs-contacts,
.rfs-cta,
.rfs-media-cover,
.rfs-video-fullscreen,
button,
input,
select,
textarea,
.btn {
    font-family: var(--rfs-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

h1, h2, h3, h4, h5, h6,
.rfs-title,
.rfs-hero h1,
.rfs-hero h2,
.rfs-hero h3,
.rfs-content-card h2,
.rfs-cards-services h2,
.rfs-steps h2,
.rfs-faq h2,
.rfs-contacts h2,
.rfs-cta h2,
.rfs-cta-box h2,
.rfs-footer h2,
.rfs-footer h3,
.rfs-grid-card h3,
.rfs-service-card h3,
.rfs-step h3,
.rfs-parallax-content h2,
.rfs-slider-caption h3,
.rfs-video-cover-content h2,
.rfs-media-cover-content h2 {
    font-family: var(--rfs-heading-font, var(--rfs-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
}

/* RFS v1.6 - pagine legali */
.rfs-legal-document {
    background: color-mix(in srgb, var(--rfs-body-bg, #fff) 92%, var(--rfs-primary, #0f6b78));
}
.rfs-legal-card {
    background: #fff;
    border-radius: var(--rfs-card-radius, 12px);
    box-shadow: var(--rfs-card-shadow, 0 12px 30px rgba(0,0,0,.08));
    padding: clamp(1.25rem, 2vw, 2.25rem);
}
.rfs-legal-block {
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}
.rfs-legal-block h3 {
    font-size: 1.15rem;
    margin-bottom: .65rem;
}
.rfs-legal-note {
    border-left: 4px solid var(--rfs-accent, #f2a541);
    background: color-mix(in srgb, var(--rfs-accent, #f2a541) 12%, #fff);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}
.rfs-footer-legal-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* RFS v1.6.1 - cookie banner con preferenze */
.rfs-cookie-banner[hidden] {
    display: none !important;
}
.rfs-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.22));
}
.rfs-cookie-card {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: min(var(--rfs-card-radius, 12px), 18px);
    background: #fff;
    color: #14242b;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    border: 1px solid rgba(0,0,0,.08);
}
.rfs-cookie-content {
    max-width: 720px;
}
.rfs-cookie-content a {
    color: var(--rfs-primary, #0f6b78);
    font-weight: 700;
}
.rfs-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}
.rfs-cookie-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.rfs-cookie-choice:last-child {
    border-bottom: 0;
}
.rfs-footer-cookie-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
}
.rfs-footer-cookie-btn:hover,
.rfs-footer-cookie-btn:focus {
    opacity: .85;
}
.rfs-consent-placeholder {
    border: 1px dashed rgba(0,0,0,.25);
    border-radius: var(--rfs-card-radius, 12px);
    padding: 1rem;
    background: rgba(0,0,0,.04);
    text-align: center;
}
@media (max-width: 767.98px) {
    .rfs-cookie-card {
        display: block;
    }
    .rfs-cookie-actions {
        justify-content: stretch;
        margin-top: 1rem;
    }
    .rfs-cookie-actions .btn {
        width: 100%;
    }
    .rfs-cookie-choice {
        align-items: flex-start;
    }
}

/* RFS v1.8.3 - sfondo e stile per singola sezione */
.rfs-section-custom-bg {
    background-image: none;
}
.rfs-section-text-light,
.rfs-section-text-light .lead,
.rfs-section-text-light .rfs-richtext,
.rfs-section-text-light .rfs-richtext p,
.rfs-section-text-light > .container p:not(.rfs-eyebrow),
.rfs-section-text-light .text-muted {
    color: rgba(255,255,255,.86) !important;
}
.rfs-section-text-light h1,
.rfs-section-text-light h2,
.rfs-section-text-light h3,
.rfs-section-text-light h4,
.rfs-section-text-light h5,
.rfs-section-text-light h6 {
    color: #fff !important;
}
.rfs-section-text-light .rfs-eyebrow.dark,
.rfs-section-text-light .rfs-eyebrow {
    color: var(--rfs-accent) !important;
}
.rfs-section-text-dark,
.rfs-section-text-dark .lead,
.rfs-section-text-dark .rfs-richtext,
.rfs-section-text-dark .rfs-richtext p,
.rfs-section-text-dark .text-muted {
    color: #42535b !important;
}
.rfs-section-text-dark h1,
.rfs-section-text-dark h2,
.rfs-section-text-dark h3,
.rfs-section-text-dark h4,
.rfs-section-text-dark h5,
.rfs-section-text-dark h6 {
    color: var(--rfs-heading-color) !important;
}
.rfs-section-text-custom h1,
.rfs-section-text-custom h2,
.rfs-section-text-custom h3,
.rfs-section-text-custom h4,
.rfs-section-text-custom h5,
.rfs-section-text-custom h6,
.rfs-section-text-custom .lead,
.rfs-section-text-custom .rfs-richtext,
.rfs-section-text-custom .rfs-richtext p,
.rfs-section-text-custom .text-muted {
    color: inherit !important;
}

/* RFS v1.8.6 - card style overrides */
.rfs-service-card[style],
.rfs-grid-card[style] {
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.rfs-service-card[style] h1,
.rfs-service-card[style] h2,
.rfs-service-card[style] h3,
.rfs-service-card[style] h4,
.rfs-service-card[style] p,
.rfs-service-card[style] .rfs-richtext,
.rfs-service-card[style] .rfs-card-body,
.rfs-grid-card[style] h1,
.rfs-grid-card[style] h2,
.rfs-grid-card[style] h3,
.rfs-grid-card[style] h4,
.rfs-grid-card[style] p,
.rfs-grid-card[style] .rfs-richtext,
.rfs-grid-card[style] .rfs-grid-card-body {
  color: inherit;
}
.rfs-service-card[style] .text-muted,
.rfs-grid-card[style] .text-muted {
  color: inherit !important;
  opacity: .78;
}


/* RFS v1.8.9 - sfondo uniforme e gallery senza spazio didascalia vuota */
.rfs-manage-section { position: relative; }
.rfs-manage-toolbar { position: relative; z-index: 80; }
.rfs-manage-actions { position: relative; z-index: 90; }
.rfs-manage-toolbar .btn { pointer-events: auto; }
.rfs-inline-modal { z-index: 1080; }
.rfs-gallery-item.rfs-no-caption { display: block; }
.rfs-gallery-item.rfs-no-caption .rfs-gallery-img { margin-bottom: 0; }
.rfs-gallery-item.rfs-no-caption .rfs-gallery-img.rfs-image-mode-cover { height: 260px; object-fit: cover; }
.rfs-gallery-masonry .rfs-gallery-item.rfs-no-caption .rfs-gallery-img.rfs-image-mode-cover { height: auto; }
.rfs-section[style*="background"],
.rfs-section[style*="background-color"] { background-clip: border-box; }
.accordion-item[style], .rfs-step[style], .rfs-gallery-item[style] { background-clip: padding-box; }

/* RFS - logo header configurabile */
.rfs-header-logo {
  height: var(--rfs-header-logo-height, 44px);
  max-height: 120px;
  width: auto;
  max-width: min(46vw, 560px);
  display: block;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .rfs-header-logo {
    max-height: 56px;
    max-width: min(58vw, 320px);
  }
}
/* MASTER-TINY-81 - centered rich lists */
/*
 * Nei contenitori con testo centrato una lista block larga 100%
 * lascia il marker sul margine sinistro mentre il testo del LI
 * viene centrato.
 *
 * La lista diventa quindi un blocco inline centrato come unità,
 * mantenendo al proprio interno il normale allineamento da lista.
 */
.text-center .rfs-richtext > ul,
.text-center .rfs-richtext > ol,
.rfs-richtext.text-center > ul,
.rfs-richtext.text-center > ol {
    display: inline-block;
    max-width: 100%;
    padding-left: 1.5rem;
    text-align: left;
}

/* ============================================================
   MASTER-TINY-115 - explicit rich table background

   Se il CMS conserva uno sfondo esplicito sul tag <table>,
   le celle Bootstrap non devono coprirlo con il proprio fondo.
   La regola non interviene sulle tabelle senza background-color.
   ============================================================ */

.rfs-richtext table[style*="background-color"] > :not(caption) > * > *:not([style*="background-color"]) {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-hover-bg: transparent;

    background-color: transparent !important;
    box-shadow: none !important;
}
/* ============================================================
   MASTER-TINY-120 - CMS controlled borderless rich table

   Il CMS espone un preset senza bordi tramite classe autorizzata.
   Non richiede CSS libero inserito dall'utilizzatore.
   ============================================================ */

.rfs-richtext table.rfs-table-borderless {
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

/*
 * MASTER-TINY-177
 *
 * Le celle della tabella borderless restano senza bordi per
 * default, ma un bordo inline esplicito impostato dall'utente
 * sulla singola cella può avere precedenza.
 */
.rfs-richtext table.rfs-table-borderless > :not(caption) > * > * {
    border-width: 0;
    border-style: none;
    border-color: transparent;
}
/* ============================================================
   MASTER-TINY-128 - CMS controlled rich table backgrounds

   Lo sfondo della tabella è rappresentato da classi autorizzate.
   I colori seguono automaticamente il Tema CMS.
   ============================================================ */

.rfs-richtext table.rfs-table-bg-transparent {
    background-color: transparent !important;
}

.rfs-richtext table.rfs-table-bg-primary {
    background-color: var(--rfs-primary, #0f6b78) !important;
}

.rfs-richtext table.rfs-table-bg-secondary {
    background-color: var(--rfs-secondary, #143642) !important;
}

.rfs-richtext table.rfs-table-bg-accent {
    background-color: var(--rfs-accent, #f2a541) !important;
}

.rfs-richtext table.rfs-table-bg-body {
    background-color: var(--rfs-body-bg, #ffffff) !important;
}

/*
 * Bootstrap applica il proprio fondo alle celle.
 * Quando esiste una classe sfondo CMS, le celle devono lasciare
 * visibile lo sfondo governato dalla tabella.
 */
.rfs-richtext table[class*="rfs-table-bg-"] > :not(caption) > * > *:not([style*="background-color"]) {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-hover-bg: transparent;

    background-color: transparent !important;
    box-shadow: none !important;
}
/* ============================================================
   MASTER-TINY-149 - independent CMS table background attribute

   class = struttura/bordi
   data-rfs-table-bg = sfondo

   Le vecchie classi MASTER-TINY-128 restano supportate per
   retrocompatibilità.
   ============================================================ */

.rfs-richtext table[data-rfs-table-bg="transparent"] {
    background-color: transparent !important;
}

.rfs-richtext table[data-rfs-table-bg="primary"] {
    background-color: var(--rfs-primary, #0f6b78) !important;
}

.rfs-richtext table[data-rfs-table-bg="secondary"] {
    background-color: var(--rfs-secondary, #143642) !important;
}

.rfs-richtext table[data-rfs-table-bg="accent"] {
    background-color: var(--rfs-accent, #f2a541) !important;
}

.rfs-richtext table[data-rfs-table-bg="body"] {
    background-color: var(--rfs-body-bg, #ffffff) !important;
}

.rfs-richtext table[data-rfs-table-bg] > :not(caption) > * > *:not([style*="background-color"]) {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-active-bg: transparent;
    --bs-table-hover-bg: transparent;

    background-color: transparent !important;
    box-shadow: none !important;
}
/* MASTER-TINY-166
   Una cella con background-color inline ha priorità sullo
   sfondo generale CMS della tabella. */
/* ============================================================
   MASTER-TINY-190 - independent alternating table rows

   class = struttura/bordi
   data-rfs-table-bg = sfondo
   data-rfs-table-striped = righe alternate

   Un background esplicito della singola cella mantiene priorità.
   table-striped resta supportata per contenuti legacy.
   ============================================================ */

.rfs-richtext table[data-rfs-table-striped="1"]
tbody > tr:nth-of-type(odd) > *:not([style*="background-color"]),
.rfs-richtext table.table-striped:not([data-rfs-table-striped])
tbody > tr:nth-of-type(odd) > *:not([style*="background-color"]) {
    background-color: rgba(0, 0, 0, .06) !important;
}
/* ============================================================
   MASTER-TINY-231 - rich media controlled sizing

   Media inseriti nel testo tramite Tiny RICH-MEDIA.
   Le dimensioni sono preset CMS, non valori pixel arbitrari.
   ============================================================ */

.rfs-richtext figure.rfs-editor-media {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-size-small {
    width: 25%;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-size-medium {
    width: 50%;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-size-large {
    width: 75%;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-size-full {
    width: 100%;
}

/*
 * MASTER-TINY-240
 *
 * Sinistra/Destra sono anche preset di affiancamento:
 * il testo successivo parte dall'alto accanto al media.
 * Centro rimane invece un elemento a blocco.
 */
.rfs-richtext figure.rfs-editor-media.rfs-media-align-left {
    float: left;
    margin: 0 1rem 1rem 0;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-align-center {
    float: none;
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.rfs-richtext figure.rfs-editor-media.rfs-media-align-right {
    float: right;
    margin: 0 0 1rem 1rem;
}

/*
 * Impedisce ai float RICH-MEDIA di uscire dal contenitore
 * e interferire con ciò che segue la rfs-richtext.
 */
.rfs-richtext::after {
    content: "";
    display: block;
    clear: both;
}

.rfs-richtext figure.rfs-editor-media > img,
.rfs-richtext figure.rfs-editor-media > video,
.rfs-richtext figure.rfs-editor-media > iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

.rfs-richtext figure.rfs-editor-media > img,
.rfs-richtext figure.rfs-editor-media > video {
    height: auto;
}

.rfs-richtext figure.rfs-editor-media > iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media (max-width: 767.98px) {
    .rfs-richtext figure.rfs-editor-media,
    .rfs-richtext figure.rfs-editor-media.rfs-media-size-small,
    .rfs-richtext figure.rfs-editor-media.rfs-media-size-medium,
    .rfs-richtext figure.rfs-editor-media.rfs-media-size-large,
    .rfs-richtext figure.rfs-editor-media.rfs-media-size-full {
        float: none;
        clear: both;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
}