/* ============ Hero Soluzioni ============ */
.solutions-hero-section {
    background: #fab802;
    padding: 40px 0 140px 0;
    overflow: visible; /* era hidden */
}

.breadcrumb {
    color: #1B1E3D;
    font-family: "Open Sans";
    font-size: 15px;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: #1B1E3D;
    text-decoration: none;
    opacity: 0.7;
}

.breadcrumb span {
    font-weight: 700;
}

.solutions-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1; /* resta sotto il box bianco (che ha z-index: 10) */
}

.solutions-hero-content h1 {
    color: #1B1E3D;
    font-family: "Abhaya Libre";
    font-size: 56px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    margin: 0;
}

.solutions-hero-content h1 b {
    font-weight: 700;
}

.solutions-hero-illustration {
    flex-shrink: 0;
    width: 560px; /* più grande, come nello screenshot */
    margin-bottom: -100px; /* la fa "scendere" oltre il bordo della sezione */
}

.solutions-hero-illustration img {
    width: 110%;
    height: auto;
}

/* ============ Box bianco a pillola (già esistente, riattivato qui) ============ */
.section-title {
    border-radius: 100px 100px 30px 30px;
    background: #FFF;
    margin-top: -80px;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
    position: relative;
    z-index: 10;
}

.section-title p {
    color: #636363;
    font-family: "Open Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    text-align: center;
    margin: 0;
}

/* ============ Dettagli Soluzioni (riusa classi .dettagli-* della home) ============ */
.dettagli-section-soluzioni {
    padding-top: 80px;
    background: #FFF;
}

/* Variante: immagine sopra, header e testo sotto */
.dettagli-card-image-top .dettagli-image {
    margin-bottom: 24px;
}

.dettagli-card-image-top .dettagli-card-header {
    margin-bottom: 16px;
}

.dettagli-card-vertical .dettagli-image {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Variante: card orizzontale impilata (testo sopra, immagine sotto a piena larghezza) */
.dettagli-card-horizontal.stacked .dettagli-card-body {
    flex-direction: column;
    align-items: stretch;
}

.dettagli-card-horizontal.stacked .dettagli-image {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 24px;
}

/* ============ I nostri piani ============ */
.piani-section {
    padding: 100px 0;
    background: #FAFAFA;
}

.piani-title {
    text-align: center;
    margin-bottom: 60px;
}

.piani-title h2 {
    color: #2E2E2E;
    font-family: "Abhaya Libre";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
}

.piani-title h2 b {
    font-weight: 700;
}

.piani-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================= */
/* DARK MODE — Pagina Soluzioni                  */
/* ============================================= */

body.dark-mode .solutions-hero-section {
    background: #0F192E;
}

body.dark-mode .breadcrumb {
    color: #FFF;
}

body.dark-mode .breadcrumb a {
    color: #FFF;
}

body.dark-mode .solutions-hero-content h1 {
    color: #FFF;
}

body.dark-mode .section-title {
    background: #1F2E47;
}

body.dark-mode .section-title p {
    color: #C7D0DE;
}

body.dark-mode .piani-title h2 {
    color: #FFF;
}

body.dark-mode .piani-section {
    background: #27354A;
}

body.dark-mode .site-main {
    background: #1F2E47;
}

/* Responsive */
@media (max-width: 1024px) {
    .solutions-hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .solutions-hero-content h1 {
        text-align: center;
    }

    .solutions-hero-illustration {
        width: 320px;
    }

    .section-title {
        padding: 50px 40px;
    }

    .piani-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .solutions-hero-content h1 {
        font-size: 36px;
    }

    .piani-title h2 {
        font-size: 32px;
    }
}