/**
 * Widget: page|children — card figli (2/riga) + immagine verticale.
 */

.page-children {
    /* outer = colore della fascia successiva (mostrato sotto gli angoli) */
    background-color: var(--icotea-homepage-section2);
    border-radius: 0 0 50px 50px;
}

.page-children-container {
    /* fascia di questa sezione: continua il colore sotto l'hero (#E7ECEC) */
    padding: var(--website-padding-top-bottom) 0;
}


.page-children.pgch {
}

.page-children .pgch-title {
    margin: 0 0 32px;
    text-align: center;
    font-family: var(--icotea-font-heading);
    font-size: 2.625rem;   /* 42px */
    line-height: 1.15;
    font-weight: 700;
    color: var(--icotea-brand-blue);
}

.page-children .pgch-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;   /* card | immagine verticale */
    gap: 24px;
    align-items: stretch;
}

/* Card 2 per riga */
.page-children .pgch-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.page-children .pgch-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    min-width: 0;
}

.page-children .pgch-card-title {
    margin: 0;
    font-family: var(--icotea-font-heading);
    font-size: 1.75rem;    /* ~28px */
    line-height: 1.2;
    font-weight: 700;
    color: var(--icotea-second-title);
}

.page-children .pgch-card-desc {
    font-family: var(--icotea-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #314158;
}
.page-children .pgch-card-desc :last-child { margin-bottom: 0; }

/* Footer card: icona a sinistra, CTA a destra */
.page-children .pgch-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.page-children .pgch-card-icon {
    display: inline-flex;
    align-items: center;
    max-height: 64px;
}
.page-children .pgch-card-icon img {
    max-width: 140px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.page-children .pgch-card-cta { flex: none; }

/* Immagine verticale a destra (alta come le due righe di card) */
.page-children .pgch-media {
    border-radius: 24px;
    overflow: hidden;
    min-height: 100%;
}
.page-children .pgch-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 991px) {
    .page-children .pgch-grid { grid-template-columns: 1fr; }
    .page-children .pgch-media { min-height: 320px; order: -1; }
}
@media (max-width: 575px) {
    .page-children.pgch { padding: var(--website-padding-top-bottom-mini) 0; }
    .page-children .pgch-cards { grid-template-columns: 1fr; }
    .page-children .pgch-title { font-size: 1.875rem; }
}
