/* Custom overrides per Bootstrap Italia */

/* Smooth page transitions — View Transitions API (Chrome 126+, Safari 18.2+) */
@view-transition {
    navigation: auto;
}
::view-transition-old(root) {
    animation: vt-fade-out 0.18s ease-out;
}
::view-transition-new(root) {
    animation: vt-fade-in 0.18s ease-in;
}
@keyframes vt-fade-out { to   { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* Base font-size increase - scala tutto il tema proporzionalmente */
html {
    font-size: 18px;
}

/* Header logo SVG inline */
.header-logo-svg {
    display: flex;
    align-items: center;
}

.header-logo-svg svg {
    height: 50px;
    width: auto;
    max-width: 180px;
}

@media (min-width: 992px) {
    .header-logo-svg svg {
        height: 55px;
        max-width: 200px;
    }
}

/* Footer logo SVG inline */
.footer-logo-svg {
    height: 48px;
    display: flex;
    align-items: center;
}

.footer-logo-svg svg {
    height: 48px;
    width: auto;
}

/* Hero Page Section - blocco riutilizzabile per pagine interne */
.hero-page {
    background: linear-gradient(to bottom, #f0f6fc 0%, #ffffff 100%);
    padding: 2rem 0 3rem;
    overflow: visible;
    min-height: 400px;
}

@media (min-width: 992px) {
    .hero-page {
        min-height: 520px;
    }
}

@media (min-width: 1200px) {
    .hero-page {
        min-height: 580px;
    }
}

@media (min-width: 1400px) {
    .hero-page {
        min-height: 640px;
    }
}

.hero-page .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    background-color: #17324d !important;
}

.hero-page h1 {
    color: #17324d;
    font-size: 2rem;
    line-height: 1.2;
}

.hero-page .lead {
    font-size: 1.125rem;
    max-width: 450px;
}

.hero-page .hero-illustration {
    position: static;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-page .hero-illustration img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

@media (min-width: 768px) {
    .hero-page {
        padding: 3rem 0 4rem;
    }

    .hero-page h1 {
        font-size: 2.5rem;
    }

    .hero-page .hero-illustration img {
        max-width: 380px;
    }
}

@media (min-width: 992px) {
    .hero-page h1 {
        font-size: 3rem;
    }

    .hero-page .hero-illustration img {
        max-width: 420px;
    }
}

@media (min-width: 1200px) {
    .hero-page .hero-illustration img {
        max-width: 460px;
    }
}

@media (min-width: 1400px) {
    .hero-page .hero-illustration img {
        max-width: 500px;
    }
}

/* Hero smartphone mockup con video */
.hero-smartphone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.smartphone-frame {
    position: relative;
    max-width: 280px;
}

.smartphone-mask {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.smartphone-video {
    position: absolute;
    top: 3%;
    left: 5%;
    width: 81%;
    height: 90%;
    object-fit: cover;
    border-radius: 32px;
    z-index: 1;
}

@media (min-width: 768px) {
    .smartphone-frame {
        max-width: 320px;
    }
}

@media (min-width: 992px) {
    .smartphone-frame {
        max-width: 360px;
    }
}

/* Hero section with illustration */
.section-hero {
    position: relative;
    padding: 2rem 0 3rem;
    min-height: 400px;
}

.section-hero-illustration {
    overflow: hidden;
}

.bg-gradient-bottom-top {
    background: linear-gradient(to top, #e8f0fe 0%, #ffffff 100%);
}

.hero-illustration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.section-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #17324d;
    line-height: 1.2;
}

.section-hero .hero-subtitle {
    color: #5c6f82;
    font-size: 1.125rem;
    max-width: 580px;
}

@media (min-width: 768px) {
    .section-hero {
        min-height: 450px;
        padding: 3rem 0 4rem;
    }

    .section-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .section-hero {
        min-height: 500px;
    }

    .section-hero h1 {
        font-size: 3rem;
    }
}

/* Intro section with video */
.section-intro .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .section-intro .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .section-intro .section-title {
        font-size: 2.25rem;
    }
}

.box-screencast {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.box-screencast video {
    display: block;
    width: 100%;
    height: auto;
}

/* Features carousel section (Bootstrap Italia Splide) */
.section-features {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f6fc 100%);
    overflow: visible;
    padding-bottom: 3rem;
}

.section-features .it-carousel-wrapper {
    padding-bottom: 2rem;
}

.section-features .splide__pagination {
    bottom: -1.5rem;
}

.section-features .card-icon-large {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.section-features .card-icon-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-features .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
}

.section-features .card-body {
    text-align: center;
}

.section-features .svg-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.section-features .svg-icon .icon-feature {
    width: 80px;
    height: 80px;
}

.section-features .feature-icon-circle {
    width: 80px;
    height: 80px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.section-features .feature-icon-circle .icon {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.section-features .card-title {
    font-size: 1rem;
    color: #17324d;
    margin: 0;
    line-height: 1.4;
}

.section-features .card-title strong {
    display: block;
    font-weight: 700;
}

/* Case studies section */
.section-case-studies h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
}

@media (min-width: 768px) {
    .section-case-studies h2 {
        font-size: 2rem;
    }
}

/* Ensure equal height cards in case studies */
.section-case-studies .row {
    display: flex;
    flex-wrap: wrap;
}

.section-case-studies .row > [class*="col-"] {
    display: flex;
}

/* Card inline case study con sfondo azzurro */
.case-study-card {
    background-color: #0066cc !important;
    border: none !important;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card .it-card-inline-content {
    padding: 1.5rem;
}

.case-study-card .it-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.case-study-card .it-card-title a {
    color: #fff !important;
    text-decoration: none;
}

.case-study-card .it-card-title a:hover {
    text-decoration: underline;
}

.case-study-card .it-card-text {
    color: #fff !important;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.case-study-card .it-card-image-wrapper {
    flex-shrink: 0;
}

.case-study-card .it-card-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Section Carousel - Componente riutilizzabile */
.section-carousel {
    overflow: hidden;
}

.section-carousel .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .section-carousel .section-title {
        font-size: 2rem;
    }
}

/* Bootstrap Italia Carousel customization */
.section-carousel .it-carousel-wrapper {
    padding-bottom: 2rem;
}

.section-carousel .splide__pagination {
    bottom: 0;
}

.section-carousel .splide__pagination__page {
    background: #d9dadb;
}

.section-carousel .splide__pagination__page.is-active {
    background: #0066cc;
}

.card-illustration {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.card-illustration .card-body {
    padding: 2rem;
    text-align: center;
}

.card-illustration .svg-illustration {
    margin-bottom: 1.5rem;
}

.card-illustration .svg-illustration img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.card-illustration h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #17324d;
    margin: 0;
    line-height: 1.4;
}

.card-illustration h3 strong {
    font-weight: 700;
}


.bg-gradient-top-bottom {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f6fc 100%);
}

.section-services .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .section-services .section-title {
        font-size: 2rem;
    }
}

.services-slider {
    height: 400px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.services-slider::before,
.services-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
    pointer-events: none;
}

.services-slider::before {
    top: 0;
    background: linear-gradient(to bottom, #f0f6fc, transparent);
}

.services-slider::after {
    bottom: 0;
    background: linear-gradient(to top, #f0f6fc, transparent);
}

.services-slider-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slide-up 25s linear infinite;
}

.services-slider:hover .services-slider-track {
    animation-play-state: paused;
}

@keyframes slide-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.service-card-text {
    font-size: 1rem;
    font-weight: 500;
    color: #17324d;
    line-height: 1.3;
}

/* Prose content styling per pagine Markdown */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #0066cc;
    text-decoration: underline;
}

.prose a:hover {
    color: #004999;
}

/* =============================================
   SITE HEADER
   ============================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.625rem 0;
}

/* Brand */
.site-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.site-brand .header-logo {
    height: 48px;
    width: auto;
}

.site-brand .header-logo-svg {
    height: 48px;
    display: flex;
    align-items: center;
}

.site-brand .header-logo-svg svg {
    height: 48px;
    width: auto;
}

.site-brand .header-payoff {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
    color: #8a94a6;
    text-transform: none;
    border-left: 1px solid #8a94a6;
    padding-left: 10px;
    margin-left: 12px;
    justify-content: center;
    align-self: stretch;
}

/* Custom inline SVG icons (GitLab, X) — same size and color as Bootstrap Italia icons */
.site-social .social-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-social .social-icon-svg svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

.footer-social-links .social-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-links .social-icon-svg svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

/* Social cards custom SVG icons (xl size to match icon-xl) */
.social-icon-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-xl svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
    display: block;
}

/* Desktop nav */
.site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
}

.site-nav-link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.75rem;
    color: #17324d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus {
    color: #0066cc;
    background: #f0f6ff;
}

.site-nav-link .icon {
    fill: currentColor;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Desktop dropdown */
.site-nav-item {
    position: relative;
}

.site-dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 220px;
    z-index: 200;
}

.site-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.site-nav-item.has-dropdown:hover .site-dropdown {
    display: block !important;
}

.site-dropdown li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #17324d;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.site-dropdown li a:hover {
    color: #0066cc;
    background: #f0f6ff;
}

/* Right zone */
.site-header-right {
    margin-left: auto;
    gap: 1rem;
}

.site-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-social a {
    display: flex;
    align-items: center;
    color: #17324d;
    transition: color 0.2s;
}

.site-social a:hover {
    color: #0066cc;
}

.site-social .icon {
    fill: currentColor;
    width: 22px;
    height: 22px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.4rem;
}

.lang-list a {
    color: #17324d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-list a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.lang-list .current-lang {
    color: #17324d;
    font-size: 0.875rem;
    font-weight: 700;
}

.lang-separator {
    color: #d9dadb;
    font-size: 0.875rem;
}

/* Hamburger button */
.site-hamburger {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-hamburger .icon {
    fill: #17324d;
    width: 26px;
    height: 26px;
}

/* Mobile sidebar (navbar-collapsable) */
.navbar-collapsable {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    z-index: 1100;
    background: #fff;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.navbar-collapsable .overlay {
    display: none;
}

.navbar-collapsable .close-div {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem;
    border-bottom: 1px solid #e8ecef;
}

.navbar-collapsable .close-div .close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.navbar-collapsable .close-div .close-menu .icon {
    fill: #17324d;
    width: 24px;
    height: 24px;
}

.navbar-collapsable .menu-wrapper {
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: #17324d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-link:hover {
    background: #f0f6ff;
    color: #0066cc;
}

.mobile-nav-link .icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.mobile-nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #f8f9fa;
}

.mobile-nav-submenu.open {
    display: block;
}

.mobile-nav-sublink {
    display: block;
    padding: 0.6rem 1.75rem;
    color: #17324d;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-nav-sublink:hover {
    background: #e8f0fe;
    color: #0066cc;
}

/* Backdrop behind sidebar */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1099;
}

/* Card spacing */
.card-wrapper {
    height: 100%;
}

.card {
    height: 100%;
}

/* Section spacing */
.section {
    padding: 60px 0;
}

/* Callout improvements */
.callout {
    border-radius: 8px;
}

/* About section (Chi siamo) */
.section-about .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
}

.section-about .card-icon-large {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.section-about .card-body-large {
    padding: 2rem 1.5rem;
}

.section-about .svg-icon-red {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-about .svg-icon-red .icon-chisiamo {
    width: 64px;
    height: 64px;
}

.section-about h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #17324d;
    line-height: 1.4;
}

.section-about h3 strong {
    font-weight: 700;
}

.text-underline {
    text-decoration: underline;
}

/* Certifications and awards section */
.section img {
    max-width: 100%;
    height: auto;
}

.section-certifications .it-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.section-certifications .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0066cc;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.section-certifications .splide__arrow:hover {
    background: #004c99;
}

.section-certifications .splide__arrow svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}

.section-certifications .splide__arrow--prev svg {
    transform: scaleX(-1);
}

.section-certifications .splide__arrow--prev {
    left: 0 !important;
    right: auto !important;
}

.section-certifications .splide__arrow--next {
    right: 0 !important;
    left: auto !important;
}

.certification-item {
    padding: 1rem;
}

.certification-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Improve button contrast */
.btn-outline-white {
    border-color: white;
    color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: #0066cc;
}

/* Footer styling */
.footer-wrapper {
    background-color: #323b4b;
    color: #fff;
    padding: 64px 0;
    font-size: 1rem;
}

.footer-logo-container {
    margin-bottom: 0;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-payoff {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    padding-left: 10px;
    margin-left: 12px;
    justify-content: center;
    align-self: stretch;
}

.footer-box p {
    margin: 0;
    font-size: 1rem;
}

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

.footer-contact-list li {
    display: flex;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.footer-contact-list li span {
    width: 58px;
}

.footer-contact-list li p {
    margin: 0;
}

.footer-contact-list li a {
    color: #fff;
    text-decoration: none;
}

.footer-contact-list li a:hover {
    text-decoration: underline;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 1.06rem;
}

.footer-list li {
    margin: 0 0 5px 0;
}

.footer-list li a {
    color: #fff;
    text-decoration: none;
}

.footer-list li a:hover {
    text-decoration: underline;
}

.footer-social-box p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-social-links {
    display: flex;
    gap: 5px;
}

.footer-social-links a {
    color: #fff;
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: block;
}

.footer-social-links a:hover {
    opacity: 0.8;
}

.footer-social-links .icon {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.footer-disclaimer {
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-disclaimer p {
    margin: 0;
}

.footer-disclaimer a {
    color: #fff;
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}


/* Team section */
.section-team {
    background: linear-gradient(to bottom, #f0f6fc 0%, #ffffff 100%);
}

.section-team h2 {
    color: #17324d;
    font-weight: 700;
}

.team-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    color: #17324d;
    font-weight: 600;
}

/* HubSpot form wrapper */
.hubspot-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hubspot-form-wrapper h2 {
    color: #17324d;
    font-weight: 700;
    font-size: 1.75rem;
}

.hubspot-form-wrapper p {
    color: #8a94a6;
}

.hubspot-form-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* Legal pages template (termini, privacy, cookie policy) */
.page-legal {
    background-color: #fff;
    padding: 80px 60px 50px 60px;
    border-radius: 20px;
    box-shadow: 0 2.9rem 1.7rem -0.5rem rgba(176, 183, 195, 0.32);
}

.page-legal h1 {
    font-family: "Titillium Web", sans-serif;
    color: #323b4b;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.legal-content {
    font-size: 1.38rem;
    line-height: 1.67;
    color: #8a94a6;
    letter-spacing: 0;
    font-weight: 400;
}

.legal-content p {
    line-height: 1.67;
    margin: 0 0 35px 0;
}

.legal-content a {
    color: #323b4b;
    font-weight: 600;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #0066cc;
}

.legal-content strong {
    color: #323b4b;
}

/* Services section - card con icone */
.section-services {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-services h2 {
    color: #17324d;
    font-weight: 700;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon .icon {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.service-icon .icon-primary {
    fill: #fff;
}

.service-icon-img {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    color: #17324d;
    font-weight: 600;
}

/* Services illustration section (cosa-fa page style) */
.section-services-illustration {
    background: #fff;
}

.section-services-illustration h2 {
    color: #17324d;
    font-weight: 700;
}

.row-illustration {
    margin-bottom: 4rem;
}

.row-illustration:last-child {
    margin-bottom: 0;
}

.row-illustration .illustration-svg {
    width: 100%;
    height: auto;
    max-width: 320px;
    margin: 0 auto;
    display: block;
}

.box-illustration-content {
    padding: 1.5rem 0;
}

.box-illustration-content h3 {
    color: #17324d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.box-illustration-content p {
    color: #5c6f82;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.box-illustration-content a.icon-arrow-right {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.box-illustration-content a.icon-arrow-right::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066cc'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.box-illustration-content a.icon-arrow-right:hover {
    color: #004999;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .row-illustration .illustration-svg {
        max-width: 100%;
    }

    .box-illustration-content {
        padding: 2rem 0;
    }

    .box-illustration-content h3 {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .box-illustration-content h3 {
        font-size: 2rem;
    }

    .box-illustration-content p {
        font-size: 1.15rem;
    }
}

/* Service detail page styles (cosa-fa subpages) - WordPress port */

/* Hero article style */
.h1-article {
    font-size: 2rem;
    font-weight: 700;
    color: #17324d;
    line-height: 1.2;
}

.hero-p-article {
    font-size: 1.15rem;
    color: #5c6f82;
    line-height: 1.6;
}

.box-hero-illustration {
    text-align: center;
}

.box-hero-illustration img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .h1-article {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .h1-article {
        font-size: 3rem;
    }
}

/* Badge container */
.badge-top {
    position: relative;
}

.badge-container {
    margin-bottom: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.badge-gray-dark {
    background-color: #17324d;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
}

.badge-gray-dark:hover {
    background-color: #0d1f30;
    color: #fff;
    text-decoration: none;
}

/* Article container */
.article-container {
    padding: 2rem 0;
}

/* Cosa fa content */
.cosa-fa-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5c6f82;
}

.cosa-fa-content p {
    margin-bottom: 1.25rem;
}

.cosa-fa-content strong {
    color: #17324d;
}

/* Long description content (come-funziona detail pages) */
.long-description-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5c6f82;
}

.long-description-content p {
    margin-bottom: 1.25rem;
}

.long-description-content strong {
    color: #17324d;
}

.long-description-content a {
    color: #0066cc;
    text-decoration: underline;
}

.long-description-content a:hover {
    color: #004c99;
}

/* Aspetti normativi/tecnologici content */
.aspetti-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5c6f82;
}

.aspetti-content p {
    margin-bottom: 1.25rem;
}

.aspetti-content strong {
    color: #17324d;
}

.aspetti-content a {
    color: #0066cc;
    text-decoration: underline;
}

.aspetti-content a:hover {
    color: #004c99;
}

/* H2 headings in article content */
.article-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #17324d;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Spacer */
.spacer {
    height: 50px;
}

/* Card border link style (come funziona) */
.card-border {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-border:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

.card-simple-icon-left .card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.card-simple-icon-left .svg-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 1rem;
}

.card-simple-icon-left .svg-icon .icon {
    width: 24px;
    height: 24px;
    fill: #0066cc;
}

.card-simple-icon-left .card-content {
    flex: 1;
}

.card-simple-icon-left .card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #17324d;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.card-simple-icon-left .card-body a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.card-simple-icon-left .card-icon {
    flex-shrink: 0;
    margin-left: 1rem;
}

.card-simple-icon-left .card-icon .icon {
    width: 20px;
    height: 20px;
    fill: #0066cc;
}

.card-simple-icon-left:hover .card-content h3 {
    color: #0066cc;
}

/* Card featured (Esempi section) */
.card-featured {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .card-featured {
        flex-direction: row;
    }
}

.card-featured .card-image {
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

@media (min-width: 992px) {
    .card-featured .card-image {
        width: 40%;
        min-height: 300px;
    }
}

.card-featured .card-body {
    padding: 2rem;
    color: #fff;
}

@media (min-width: 992px) {
    .card-featured .card-body {
        width: 60%;
        padding: 2.5rem;
    }
}

.card-featured .badge-white {
    background-color: #fff;
    color: #0066cc;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
}

.card-featured h3 {
    color: #fff;
    font-weight: 700;
}

.card-featured p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.card-featured p a {
    color: #fff;
    text-decoration: underline;
}

.card-featured p a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* OC Block styles */
.oc-block {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.block-document {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.block-articolo-esterno {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Aggiungi altri override custom se necessario */

/* Card icon left style (come-funziona features) */
.card-icon-left {
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-icon-left:hover {
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.2);
}

.card-icon-left .card-body {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
}

.card-icon-left .svg-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin-right: 1.5rem;
}

.card-icon-left .svg-icon .feature-icon-svg {
    width: 100%;
    height: 100%;
    /* Filtro per colorare le icone di azzurro */
    filter: invert(27%) sepia(95%) saturate(1640%) hue-rotate(199deg) brightness(97%) contrast(101%);
}

.card-icon-left .card-content {
    flex: 1;
}

.card-icon-left .card-content h3 {
    font-size: 1.33rem;
    font-weight: 700;
    color: #17324d;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.card-icon-left .card-content p {
    font-size: 1rem;
    color: #5c6f82;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

.card-icon-left .card-content a.icon-arrow-right {
    color: #0066cc;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-icon-left .card-content a.icon-arrow-right::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066cc'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.card-icon-left .card-content a.icon-arrow-right:hover {
    color: #004999;
    text-decoration: underline;
}

/* Service hero icon for come-funziona detail pages */
.service-hero-icon {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    /* Filtro per colorare le icone di azzurro */
    filter: invert(27%) sepia(95%) saturate(1640%) hue-rotate(199deg) brightness(97%) contrast(101%);
}

@media (min-width: 768px) {
    .service-hero-icon {
        max-width: 160px;
        max-height: 160px;
    }
}

/* Desktop/Notebook screencast mockup */
.box-screencast-desktop {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.box-screencast-desktop-bg {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.box-screencast-desktop-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.box-screencast-desktop video {
    position: absolute;
    top: 6.5%;
    left: 12%;
    width: 76%;
    height: auto;
    z-index: 1;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .box-screencast-desktop video {
        top: 6%;
        left: 11.5%;
        width: 77%;
    }
}

/* Quotes carousel section */
.section-quotes {
    background-color: #0066cc;
    color: #fff;
}

.section-quotes .splide__track {
    overflow: hidden;
}

.section-quotes .splide__list {
    display: flex;
}

.section-quotes .splide__slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 1rem;
}

.section-quotes .blockquote-large {
    position: relative;
    margin: 0;
    padding: 2rem 0;
}

.section-quotes .quote-icon {
    margin-bottom: 1.5rem;
}

.section-quotes .quote-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-quotes .quote-text {
        font-size: 1.75rem;
    }
}

.section-quotes .blockquote-author {
    font-size: 1rem;
    color: #fff;
    display: block;
}

.section-quotes .author-name {
    font-weight: 700;
}

.section-quotes .author-role {
    font-weight: 400;
}

.section-quotes .btn-outline-white {
    color: #fff;
    border-color: #fff;
    background: transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.section-quotes .btn-outline-white:hover {
    background: #fff;
    color: #0066cc;
}

/* Splide pagination for quotes */
.section-quotes .splide__pagination {
    bottom: -2rem;
    padding: 0;
}

.section-quotes .splide__pagination__page {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 50%;
    margin: 0 4px;
    opacity: 1;
}

.section-quotes .splide__pagination__page.is-active {
    background: #fff;
    transform: none;
}

/* Social cards section */
.section-social h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #17324d;
}

.card-social {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-social:hover {
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.card-social .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-social .social-icon .icon {
    width: 48px;
    height: 48px;
    fill: #000;
}

.card-social .social-icon .social-icon-xl svg {
    fill: #000;
}

.card-social h3 {
    color: #17324d;
    font-weight: 700;
}

.card-social .btn-outline-primary {
    border-color: #0066cc;
    color: #0066cc;
    font-weight: 600;
}

.card-social .btn-outline-primary:hover {
    background-color: #0066cc;
    color: #fff;
}
