.details {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 60px 0 40px;
}

.details-inner {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.details-main {
    min-width: 0;
}

/* =====================================================
   SIDEBAR CTA
   ===================================================== */
.details-sidebar {
    position: sticky;
    top: 50%;
}

.sidebar-cta {
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    background-color: var(--clr-bg);
    border-top: 3px solid var(--clr-red);
}

.sidebar-cta__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--clr-dark);
}

.sidebar-cta__text {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

.container {
    width: 80%;
}

/* =====================================================
   SECTION BLOCKS
   ===================================================== */
.section-block {
    padding: 52px 0;
    border-top: 1px solid var(--clr-border);
}

.section-block:first-child {
    border-top: none;
    padding-top: 0;
}

.section-block__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 28px;
    color: var(--clr-dark);
    padding-left: 20px;
    border-left: 3px solid var(--clr-red);
}

.section-block__body {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.8;
    color: #3a3a3c;
}

.section-block__body p {
    margin: 0 0 18px;
}

.section-block__body p:last-child {
    margin-bottom: 0;
}

.section-block__body ul,
.section-block__body ol {
    padding-left: 24px;
    margin: 0 0 18px;
}

.section-block__body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.section-block__body strong {
    font-weight: 700;
    color: var(--clr-dark);
}

.section-block__body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--clr-dark);
}

@media screen and (max-width: 800px) {
    .details {
        padding: 40px 0 20px;
    }

    .details-inner {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 0;
    }

    .details-sidebar {
        position: static;
        margin-top: 40px;
    }

    .section-block {
        padding: 36px 0;
    }

    .section-block__title {
        font-size: 22px;
        padding-left: 14px;
    }

    .section-block__body {
        font-size: 16px;
    }
}
.line{
    width: 100%;
    border-top: 1px solid #E41925;
    position:relative;
    margin-top: 200px;
    margin-bottom:5px;
}
.flex{
    display:flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.flex p{
    margin:0 10px 0 10px;
}

.info{
    margin:0 50px 50px 0;
}
.img img{
    width:80%;
}

.line .parentKey{
    position:relative;
    left:10%;
    top:50%;
    transform: translateY(-50%);
    margin:0;
    color: #E41925;
    padding:0 10px 5px 10px;
    background-color:  #ebe8e7;
    font-size: 20px;
    width:max-content;
    box-sizing: border-box;
    text-transform: uppercase;
}

.line .parentKey::before{
    position:absolute;
    bottom: 0;
    left:0;
    content: '';
    border: 1px solid #E41925;
    border-radius: 5px;
    width:100%;
    box-sizing: border-box;
}
/* circle position override — base in gmde_shared.css */
.circle-container {
    top: -100px;
}

.title{
    font-size: 50px;
}

.numbered-line{
    margin: 100px 0 100px 0;
    width:100%;
    border-bottom: 1px solid #E41925;
    position:relative;
}

.numbered-line::after{
    content: attr(data-number);
    font-family: 'EB Garamond', sans-serif;
    position: absolute;
    height:100px;
    width:100px;
    bottom:-50px;
    left: 20%;
    background-color: #fafafa;
    padding: 0 10px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 85px;
    font-weight: bold;
    text-shadow: -1px 0 #E41925, 0 1px #E41925, 1px 0 #E41925, 0 -1px #E41925;
    color: #fafafa;
}

/* newsletter → gmde_shared.css */

.word-line{
    width: 100%;
    border-top: 1px solid #E41925;
    position:relative;
    margin-top: 100px;
    margin-bottom:5px;
}

.word-line .parentKey{
    position:relative;
    left:10%;
    top:50%;
    transform: translateY(-50%);
    margin:0;
    padding:0 10px 5px 10px;
    background-color: #fafafa;
    font-size: 20px;
    width:max-content;
    box-sizing: border-box;
    text-transform: uppercase;
}

.word-line .parentKey .decoration{
    color: #E41925;
    position:relative;
}

.word-line .parentKey .decoration:before{
    position:absolute;
    bottom: -5px;
    left:0;
    content: '';
    border: 1px solid #E41925;
    border-radius: 5px;
    height: 5px;
    width:100%;
    box-sizing: border-box;
}

.cards{
    display:flex;
    justify-content: center;
    align-items: flex-start;
}

.cards .card{
    width:100%;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 280px;
}
.cards .card .flex{
    display:flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
}

.card img{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* =====================================================
   SOLUTION PILLS
   ===================================================== */
.solution-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.solution-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid #E41925;
    color: #E41925;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.solution-pill:hover {
    background-color: #E41925;
    color: #fff;
}

/* =====================================================
   HERO SPLIT (titolo sx, immagine dx)
   ===================================================== */
.detail-hero {
    padding: 140px 0 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #ebe7e7;
}

.detail-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    gap: 60px;
}

.detail-hero__info {
    display: flex;
    flex-direction: column;
    width: 45%;
    gap: 16px;
}

.detail-hero__image {
    width: 50%;
    border-radius: 25px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@media screen and (max-width: 800px) {
    .detail-hero {
        padding: 120px 0 40px;
    }

    .detail-hero__inner {
        flex-direction: column;
        width: 90%;
        gap: 30px;
    }

    .detail-hero__info {
        width: 100%;
    }

    .detail-hero__image {
        width: 100%;
    }
}

@media screen and (max-width: 800px){

    .line{
    margin-top: 115px;
    }

    .parentKey:before{
        display: none;
    }

    .circle-container{
        display: none;
    }

    .title{
        margin-top: 10px;
        font-size: 25px;
        font-weight: 700;
    }

    #serviceContainer{
        display: flex;
        flex-direction: column-reverse;
    }

    .container{
        width: 90%;
    }

    .numbered-line::after{
        left: 20px;
    }
    .img img{
        width: 90%;
    }

    .line .parentKey{
        left: 20px;
    }

    /* newsletter mobile → gmde_shared.css */

    .word-line .parentKey{
        left: 20px;
        font-weight: 700;
    }

    .cards{
        flex-direction: column;
    }

    .cards .card .flex{
        margin-top: 15px;
    }
}