/* CNMS - Centro Nuovo Modello di Sviluppo */
/* Color scheme: primary #993333 (maroon), dark #7a2929 */

:root {
    --bs-primary: #993333;
    --bs-primary-rgb: 153, 51, 51;
    --bs-link-color: #993333;
    --bs-link-hover-color: #7a2929;
    --color-primary: #993333;
    --color-primary-darker: #7a2929;
}

/* Logo */
.header-logo { max-height: 60px; width: auto; }
.footer-logo { max-height: 60px; width: auto; filter: brightness(0) invert(1); }

/* Custom overrides per Bootstrap Italia */

/* 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 {
    display: flex;
    align-items: center;
}

.footer-logo-svg svg {
    height: 40px;
    width: auto;
    max-width: 160px;
}

/* Hero Page Section - blocco riutilizzabile per pagine interne */
.hero-page {
    background: linear-gradient(to bottom, #fdf5f5 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, #faeaea 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%, #fdf5f5 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: #993333;
    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: #993333 !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: #993333;
}

.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%, #fdf5f5 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, #fdf5f5, transparent);
}

.services-slider::after {
    bottom: 0;
    background: linear-gradient(to top, #fdf5f5, 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, #993333 0%, #7a2929 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: #993333;
    text-decoration: underline;
}

.prose a:hover {
    color: #7a2929;
}

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

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

.site-header::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(to right, #ead5a4 0%, #ead5a4 25%, #eef4de 25%, #eef4de 50%, #e7f6f4 50%, #e7f6f4 75%, #fae6c6 75%, #fae6c6 100%);
}

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

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

.header-logo-combo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #e8a820;
    padding: 0.3rem 0.75rem 0.3rem 0.4rem;
    border-radius: 6px;
}

.header-logo-graphic {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-logo-textimg {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.site-brand .header-logo {
    height: 70px;
    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.91rem;
    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: #993333;
    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: #993333;
    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: #993333;
}

.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: #993333;
    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: #993333;
}

.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: #faeaea;
    color: #993333;
}

/* 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: #993333;
    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: #993333;
}

/* Sticky footer — prevents white bar below footer on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1 0 auto;
}
.footer-wrapper {
    flex-shrink: 0;
}

/* Footer styling */
.footer-wrapper {
    background-color: #2c1a0e;
    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: 40px;
    width: auto;
    margin-right: 15px;
}

.footer-payoff {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    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: 17px;
    margin-left: 20px;
    justify-content: center;
}

.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, #fdf5f5 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: #993333;
}

.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, #993333 0%, #7a2929 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: #993333;
    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: #7a2929;
    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: #993333;
    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: #993333;
    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: #993333;
    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: #993333;
}

.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: #993333;
}

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

/* Card featured (Esempi section) */
.card-featured {
    background: linear-gradient(135deg, #993333 0%, #7a2929 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: #993333;
    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: #993333;
    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: #7a2929;
    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: #993333;
    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: #993333;
}

/* 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: #993333;
    color: #993333;
    font-weight: 600;
}

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

/* Stat counter blocks (sezione Chi siamo in homepage) */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #993333;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
}
.stat-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #17324d;
    margin-top: 0.25rem;
}
.stat-desc {
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 220px;
}

/* Tipo badges — colori distinti per tipo di contenuto */
.badge[class*="tipo-"] {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 0.2em 0.55em;
}
.tipo-libro    { background: #0b5ed7; color: #fff; }
.tipo-dossier  { background: #993333; color: #fff; }
.tipo-campagna { background: #198754; color: #fff; }
.tipo-articolo { background: #e67e22; color: #fff; }
.tipo-strumento { background: #6f42c1; color: #fff; }
.tipo-archivio  { background: #6c757d; color: #fff; }

/* PDF link indicator */
a[href$=".pdf"]::after {
    content: " PDF";
    display: inline-block;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: #993333;
    border-radius: 3px;
    padding: 0.1em 0.45em;
    margin-left: 0.35em;
    vertical-align: middle;
    line-height: 1.6;
}

/* Document download block (bottom of single pages with PDF) */
.doc-download-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid #e8ecef;
    padding-top: 1.25rem;
}

.doc-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 110px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.doc-thumb-link:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.28);
}

.doc-thumb {
    display: block;
    width: 100%;
    height: auto;
}

.doc-download-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.doc-filename {
    font-size: 0.85rem;
    font-weight: 600;
    color: #17324d;
    word-break: break-word;
}

.doc-download-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.doc-btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.doc-btn-open {
    background: #993333;
    color: #fff !important;
}

.doc-btn-open:hover { background: #7a2929; }

.doc-btn-save {
    background: transparent;
    color: #993333 !important;
    border: 1.5px solid #993333;
}

.doc-btn-save:hover {
    background: #993333;
    color: #fff !important;
}

/* No extra PDF badge on these buttons */
.doc-btn::after { display: none !important; }

@media (max-width: 576px) {
    .doc-download-block { flex-wrap: wrap; }
    .doc-thumb-link { width: 80px; }
}

/* Thumbnail on list/taxonomy cards */
.pdf-card-thumb {
    height: 140px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid #e0e0e0;
}

/* Placeholder when no image available */
.card-img-placeholder {
    height: 140px;
    background: linear-gradient(135deg, #e8eef5 0%, #d4dde8 100%);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-placeholder::before {
    content: "";
    display: block;
    width: 40px;
    height: 48px;
    background-color: #b0bec5;
    clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
    opacity: 0.5;
}

/* Book cover card thumbnail */
.book-cover-card {
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Book cover float on single page */
.book-cover-float {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 160px;
    text-align: center;
}

.book-cover-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 2px;
    display: block;
}

.book-cover-link {
    text-decoration: none;
    display: block;
}

.book-cover-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #993333;
    font-weight: 500;
}

.book-cover-link:hover .book-cover-img {
    box-shadow: 0 4px 14px rgba(153,51,51,0.25);
}

@media (max-width: 576px) {
    .book-cover-float {
        float: none;
        margin: 0 auto 1.5rem;
        display: block;
    }
}

/* Homepage hero logo — max native 180px, keep sharp */
.hero-logo-img {
    width: 440px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.12));
    image-rendering: auto;
}

/* Book covers carousel */
#books-carousel {
    position: relative;
    /* Make room for the absolutely-positioned side arrows */
    margin-left: 50px;
    margin-right: 50px;
}

.book-slide-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
}

.book-slide-cover {
    width: 100%;
    max-width: 140px;
    height: 200px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 2px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.book-slide-link:hover .book-slide-cover {
    box-shadow: 0 6px 18px rgba(153,51,51,0.25);
    transform: translateY(-3px);
}

.book-slide-title {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: #5c6f82;
    text-align: center;
    line-height: 1.3;
    max-width: 140px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Stat cards with link hover */
.stat-card-link {
    transition: box-shadow 0.2s, transform 0.2s;
}

a:hover .stat-card-link {
    box-shadow: 0 4px 16px rgba(153,51,51,0.15) !important;
    transform: translateY(-2px);
}

a:hover .stat-number {
    color: #993333;
}

/* Breadcrumb */
.breadcrumb-nav {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8ecef;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #8a94a6;
}

.breadcrumb-item a {
    color: #993333;
    text-decoration: none;
}

.breadcrumb-item a:hover { text-decoration: underline; }

.breadcrumb-item.active {
    color: #5c6f82;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40ch;
}

/* Buttons: override Bootstrap Italia blue with site maroon */
.btn-primary {
    --bs-btn-bg: #993333;
    --bs-btn-border-color: #993333;
    --bs-btn-hover-bg: #7a2929;
    --bs-btn-hover-border-color: #7a2929;
    --bs-btn-active-bg: #7a2929;
    --bs-btn-active-border-color: #7a2929;
    --bs-btn-disabled-bg: #993333;
    --bs-btn-disabled-border-color: #993333;
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: #993333;
    --bs-btn-border-color: #993333;
    --bs-btn-hover-bg: #993333;
    --bs-btn-hover-border-color: #993333;
    --bs-btn-active-bg: #7a2929;
}

/* Splide carousel arrows: site maroon */
.splide__arrow {
    background: #993333 !important;
}
.splide__arrow:hover {
    background: #7a2929 !important;
}
.splide__arrow svg {
    fill: #fff !important;
}

/* Splide pagination dots */
.splide__pagination__page.is-active {
    background: #993333 !important;
}

/* Hero senza immagine: no min-height forzata */
.hero-page--text-only {
    min-height: 0 !important;
}
@media (min-width: 992px) { .hero-page--text-only { min-height: 0 !important; } }
@media (min-width: 1200px) { .hero-page--text-only { min-height: 0 !important; } }
@media (min-width: 1400px) { .hero-page--text-only { min-height: 0 !important; } }

/* Campagna logo + sito box */
.campagna-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    max-width: 320px;
}
.campagna-logo {
    max-height: 100px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
}

/* Card logo box (campagne senza cover) */
.card-img-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    padding: 1rem;
}
.card-img-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/* Logo campagna decorativo (float) */
.campagna-logo-float {
    float: right;
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    margin: 0 0 1rem 1.5rem;
}

/* Footer logo stack (graphic + text, entrambi bianchi) */
.footer-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 130px;
}
.footer-logo-stack .footer-logo {
    width: 130px;
    height: 61px;
    object-fit: contain;
    object-position: left center;
    max-height: none;
    margin-right: 0;
    filter: brightness(0) invert(1);
}
.footer-logo-text-img {
    width: 130px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
    max-height: none;
    filter: brightness(0) invert(1);
}
