html * {-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}
h6 { margin-bottom: 0; }

@media (max-width: 767px) {
    body.is-inner-page h1 {
        font-size: 4.8rem;
    }
}

.contact-form {
    --bs-gutter-x: 1rem;
}
:root {
    --rs-theme-red: #237d6c;
    --rs-theme-red-hover: #1a6258;
    --rs-title-primary: #142340;
    --rs-text-primary: #2a3d5c;
}

.rs-btn.has-theme-red.has-bg::before {
    background-color: #1a6258;
}

/* Preloader */
#pre-load .loader-container.has-theme-red .loader-icon img {
    filter: none;
}

/* Header */
.rs-header-area.has-bg-blue {
    background: linear-gradient(135deg, rgba(18, 64, 55, 0.7) 0%, rgba(35, 125, 108, 0.5) 50%, rgba(12, 45, 38, 0.7) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rs-header-area.has-bg-blue.rs-sticky-header {
    background: linear-gradient(135deg, rgba(18, 64, 55, 0.97) 0%, rgba(35, 125, 108, 0.92) 50%, rgba(12, 45, 38, 0.97) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rs-banner-four .rs-banner-subtitle::before,
.rs-banner-four .rs-banner-subtitle::after {
    background-color: #b4b5b8;
}

/* Floating pill header */
.rs-header-area {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 10px 14px;
}
.rs-header-area .rs-header-inner {
    background: linear-gradient(135deg, rgba(18, 64, 55, 0.85) 0%, rgba(35, 125, 108, 0.75) 50%, rgba(12, 45, 38, 0.85) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 60px;
    padding: 10px 15px;
}
@media (min-width: 992px) {
    .rs-header-area {
        padding: 16px 24px;
    }
    .rs-header-area .rs-header-inner {
        padding: 0 24px;
    }
}

/* Phone icon mobile header */
.rs-header-phone-mobile {
    color: #fff!important;
    font-size: 24px;
    padding-right: 12px;
    margin-right: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s;
    height: 40px;
}
.rs-header-phone-mobile:hover {
    color: #fff;
    opacity: 1;
}
@media (max-width: 991px) {
    .rs-header-hamburger {
        margin-left: -12px;
        padding-right: 10px;
    }
}

/* Section title radial gradient */
h1.rs-section-title,
h2.rs-section-title {
    background: radial-gradient(ellipse at center, #142340 0%, #237d6c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -1px;
    font-size: 52px;
}

/* Gradient title animation (replaces rs-split-text-enable split-in-fade) */
@keyframes rs-title-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rs-title-anim {
    animation: rs-title-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (max-width: 1366px) { h1.rs-section-title, h2.rs-section-title { font-size: 45px; } }
@media (max-width: 1199px) { h1.rs-section-title, h2.rs-section-title { font-size: 40px; } }
@media (max-width: 991px)  { h1.rs-section-title, h2.rs-section-title { font-size: 36px; } }
@media (max-width: 767px)  { h1.rs-section-title, h2.rs-section-title { font-size: 36px; } }
@media (max-width: 575px)  { h1.rs-section-title, h2.rs-section-title { font-size: 36px; } }

/* Section subtitle badge */
.rs-section-subtitle.has-bg-field {
    background: none;
    color: var(--rs-theme-red);
}
h2.rs-section-subtitle {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin-bottom: 0;
}

/* Banner YouTube video background */
.rs-banner-video-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}
.rs-banner-video-item .rs-banner-subtitle {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 18px;
    margin-bottom: 0;
    line-height: 1.4em;
    width: 80%;
}
.rs-banner-ytbg-el {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.rs-banner-ytbg-cover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
    background-size: cover; background-position: center;
    transition: opacity 0.8s ease; pointer-events: none;
}
.rs-banner-ytbg-cover.hidden { opacity: 0; }
.rs-banner-ytbg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    background: rgba(13, 42, 60, 0.5);
}
.rs-banner-video-content { position: relative; z-index: 4; }

/* Video slide in swiper: youtube-background wrapper must cover the slide */
.rs-banner-slide--video .youtube-background {
    top: 0 !important;
    left: 0 !important;
    z-index: 0;
}
.rs-banner-slide--video .rs-banner-item-wrapper {
    overflow: hidden;
}
.rs-banner-slide--video .rs-banner-title {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
    color: transparent;
    text-shadow: none;
}
.rs-banner-slide--video .rs-banner-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
    background: none;
    padding: 0;
    height: auto;
    display: block;
    margin-bottom: 16px;
}
.rs-banner-slide--video .rs-banner-subtitle::before,
.rs-banner-slide--video .rs-banner-subtitle::after {
    display: none;
}

/* Video button rotating text */
.rs-rotate-btn .rs-text-circle span {
    font-size: 13px;
    letter-spacing: -0.5px;
}

/* Feature area */
.rs-feature-icon i {
    font-size: 52px;
    color: var(--rs-theme-red);
    line-height: 1;
    display: block;
}
@media (max-width: 480px) {
    .rs-feature-three .rs-feature-item {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .rs-feature-three .rs-feature-icon i {
        font-size: 36px;
        min-width: 36px;
    }
}
.rs-feature-area.rs-feature-three {
    background-color: #f4f5f6;
}
.rs-feature-three .rs-feature-title {
    color: #142340;
}
.rs-feature-three .rs-feature-descrip p {
    color: #2a3d5c;
    line-height: 1.5;
}

/* About section layout */
@media (min-width: 992px) {
    .rs-about-four .rs-about-wrapper {
        padding-left: 2.5rem;
    }
}

/* About section images */
.rs-about-four .rs-about-thumb {
    overflow: hidden;
}
.rs-about-four .rs-about-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
}
.rs-about-four .rs-about-thumb.has-large-thumb {
    border: 4px solid #ffffff;
}
.rs-about-four .rs-about-thumb.has-large-thumb img {
    aspect-ratio: 4/5;
}
.rs-about-four .rs-about-video-btn {
    position: relative;
    z-index: 10;
}

/* Banner */
.rs-banner-four .rs-banner-title {
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    text-stroke: 2px #ffffff;
    text-transform: uppercase;
}
.rs-banner-four .rs-banner-title div {
    color: #ffffff;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}
.rs-banner-four .rs-banner-btn {
    margin-top: 40px;
}

/* Services section */
.rs-servcies-area {
    background-color: #f4f5f6;
}
@media (min-width: 992px) {
    .rs-services-title-row {
        display: flex;
        align-items: baseline;
        gap: 2rem;
    }
    .rs-services-title-row .descrip {
        flex: 1;
    }
}
@media (max-width: 575px) {
    .rs-services-title-row .rs-section-title {
        font-size: 36px !important;
    }
}

/* Services grid */
.rs-services-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    text-decoration: none;
}
.rs-services-grid-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.rs-services-grid-item:hover .rs-services-grid-bg {
    transform: scale(1.06);
}
.rs-services-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 30, 43, 0.82) 0%, rgba(10, 30, 43, 0.1) 55%, transparent 100%);
}
.rs-services-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
}
.rs-services-grid-title {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
/* Desktop: griglia */
@media (min-width: 576px) {
    .rs-services-swiper {
        overflow: visible !important;
    }
    .rs-services-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 360px 360px;
        gap: 16px;
        transform: none !important;
        will-change: auto !important;
    }
    .rs-services-grid-item--1 { grid-column: 1 / 3; grid-row: 1; }
    .rs-services-grid-item--2 { grid-column: 1;     grid-row: 2; }
    .rs-services-grid-item--3 { grid-column: 2;     grid-row: 2; }
    .rs-services-grid-item--4 { grid-column: 3;     grid-row: 1 / 3; }
}
@media (min-width: 576px) and (max-width: 991px) {
    .rs-services-swiper .swiper-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 240px 240px;
    }
    .rs-services-grid-item--1 { grid-column: 1 / 3; grid-row: 1; }
    .rs-services-grid-item--2 { grid-column: 1;     grid-row: 2; }
    .rs-services-grid-item--3 { grid-column: 2;     grid-row: 2; }
    .rs-services-grid-item--4 { grid-column: 1 / 3; grid-row: 3; }
}
/* Mobile: carosello */
@media (max-width: 575px) {
    .rs-services-swiper {
        padding-bottom: 50px !important;
    }
    .rs-services-swiper .swiper-slide {
        aspect-ratio: 3 / 4;
    }
    .rs-services-grid-title {
        font-size: 20px;
    }
}
.rs-services-pagination {
    display: none;
}
@media (max-width: 575px) {
    .rs-services-pagination {
        display: block;
        position: relative !important;
        bottom: auto !important;
        margin-top: 20px;
    }
    .rs-services-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: #b4b5b8;
        opacity: 1;
    }
    .rs-services-pagination .swiper-pagination-bullet-active {
        background: var(--rs-theme-red);
        width: 24px;
        border-radius: 5px;
    }
}

/* CTA thumb */
.rs-cta-two .rs-cta-thumb img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

/* CTA */
.rs-cta-two .rs-cta-bg-thumb {
    background: linear-gradient(135deg, #0a1e2b 0%, #0d2a3c 50%, #061520 100%) !important;
}
.rs-cta-two .rs-cta-bg-thumb {
    border-radius: 16px;
}
.rs-cta-two .rs-cta-content-wrapper p {
    color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 991px) {
    .rs-cta-two .rs-cta-content-wrapper p {
        display: none;
    }
}
@media (min-width: 992px) {
    .rs-cta-two .rs-cta-content-wrapper {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
    .rs-cta-two .rs-cta-content-wrapper .rs-cta-text {
        flex: 1;
    }
    .rs-cta-two .rs-cta-content-wrapper .rs-cta-title {
        margin-bottom: 10px;
    }
    .rs-cta-two .rs-cta-content-wrapper p {
        margin-bottom: 0;
    }
    .rs-cta-two .rs-cta-content-wrapper .rs-cta-btn {
        flex: 0 0 auto;
    }
}

/* News card rounded corners */
.rs-news-swiper .rs-blog-item {
    border-radius: 8px;
    overflow: hidden;
}

/* News card equal height */
.rs-news-swiper .swiper-wrapper {
    align-items: stretch;
}
.rs-news-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.rs-news-swiper .rs-blog-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.rs-news-swiper .rs-blog-thumb {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.rs-news-swiper .rs-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rs-news-swiper .rs-blog-content {
    flex: 1;
}

/* News carousel pagination */
.rs-news-swiper {
    padding-bottom: 50px !important;
}
.rs-news-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
}
.rs-news-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #b4b5b8;
    opacity: 1;
}
.rs-news-pagination .swiper-pagination-bullet-active {
    background: var(--rs-theme-red);
    width: 24px;
    border-radius: 5px;
}

/* News card date tag */
.rs-blog-tag.has-theme-red span {
    background-color: #0d293b;
    color: #fff;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

/* Footer background */
.rs-footer-area.rs-footer-two {
    background-color: #1b3e3e;
    position: relative;
    overflow: hidden;
}
.rs-footer-area.rs-footer-two::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 66%;
    width: 60%;
    background-image: url('/immagini/logotipo.svg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 767px) {
    .rs-footer-area.rs-footer-two::before {
        display: none;
    }
}
.rs-footer-area.rs-footer-two > * {
    position: relative;
    z-index: 1;
}

/* Footer */
.rs-footer-two .rs-footer-widget-address {
    color: var(--rs-text-secondary);
}
.rs-footer-two .rs-footer-widget-address,
.rs-footer-two .rs-footer-widget-address a,
.rs-footer-two .rs-footer-widget-email a,
.rs-footer-two .rs-footer-widget-number a,
.rs-footer-two .rs-footer-widget-links a,
.rs-footer-two .rs-footer-widget-description {
    font-size: 15px;
}

/* Footer stroke text */
.rs-footer-stroke-text.has-theme-red {
    -webkit-text-stroke-color: #237d6c;
}

/* Footer mobile: smaller text for address/phone/email */
@media (max-width: 575px) {
    .rs-footer-two .rs-footer-widget-address,
    .rs-footer-two .rs-footer-widget-address a,
    .rs-footer-two .rs-footer-widget-email a,
    .rs-footer-two .rs-footer-widget-number a {
        font-size: 12px;
    }
    .rs-footer-two .footer-2-col-3 .rs-footer-widget-title,
    .rs-footer-two .footer-2-col-phone .rs-footer-widget-title {
        font-size: 13px;
    }
}
:root, [data-bs-theme="light"] {
  --bs-border-radius: 4.375rem;
  border:2px solid;
}