.stm32mcuportfolio-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.stm32mcuportfolio-header img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.stm32mcuportfolio-header h1 {
    color: #03234B;
    font-family: Arial;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 66.667% */
    letter-spacing: var(--Letter-Spacing-Body-S, 0.42px);
}

.stm32mcuportfolio-columns {
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); */
    /* gap: 12px; */
    background: #fff;
    padding: 30px 20px;
    max-width: 1060px;
    margin: 0 auto;
    border: 1px solid #dfdfdf;
    display: block;
}

.stm32mcuportfolio-column {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #F7F8FA;
    /* width: 48%; */
    margin: 0 5px;
}

.stm32mcuportfolio-column-header {
    text-align: center;
    background: #03234B;
    width: 100%;
    padding: 10px 0 15px;
}

.stm32mcuportfolio-column-header .stm32mcuportfolio-icon {
    margin: 5px;
}

.stm32mcuportfolio-box {
    position: relative;
    background: #fff;
    padding: 0px 3px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-self: stretch;
    display: flex;
    cursor: pointer;
    border: 2px solid #0047B2;
    transition: transform 0.2s, background 0.2s;
    border-radius: 3px;
    border: 1.5px solid var(--Stroke-Default, #DBDEE2);
    background: var(--Surface-Main, #FFF);
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.06);
    min-height: 90px;
    min-width: 150px;
    max-width: 190px;
    height: auto;
}

.stm32mcuportfolio-box:hover {
    background: #E0ECFF;
    outline: 2px solid #0047B2;
}

.stm32mcuportfolio-box h4 {
    color: var(--Text-Title, #03234B);
    text-align: center;

    /* Typescale/Body/Body S - ME */font-family: Arial;
    font-size: var(--Font-Size-Body-S, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: var(--Line-Height-Body-S, 24px);
      letter-spacing: var(--Letter-Spacing-Body-S, 0.42px);
    margin: 0;
}

.stm32mcuportfolio-box p {
    color: var(--Text-Primary, #4C545C);
    text-align: center;

    /* Typescale/Body/Caption - RE */font-family: Arial;font-size: var(--Font-Size-Caption, 12px);font-style: normal;font-weight: 400;line-height: var(--Line-Height-Caption, 18px);
    /* 150% */margin: 0;}

/* Tooltip personalizzato */
.stm32mcuportfolio-tooltip {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: auto;
    min-width: 240px;
    z-index: 10;
}

.stm32mcuportfolio-tooltip table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.stm32mcuportfolio-tooltip td {
    padding: 4px 6px;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.stm32mcuportfolio-box:hover .stm32mcuportfolio-tooltip {
    display: flex;
    top: 0;
    left: 180%;
    display: flex;
    max-width: 326px;
    padding: 8px;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 0;
    border: 0;
    background: var(--Surface-Main, #FFF);
}

/* Responsive */
@media (max-width: 1000px) {
    .stm32mcuportfolio-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stm32mcuportfolio-columns {
        grid-template-columns: 1fr;
    }
}

.stm32mcuportfolio-column-header h3 {
    color: var(--Text-Inverse, #FFF);
    text-align: center;

    /* Typescale/Body/Body S - ME */
    font-family: Arial;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: var(--Line-Height-Body-S, 24px);
    /* 171.429% */
    letter-spacing: var(--Letter-Spacing-Body-S, 0.42px);
    margin: 0;
    margin-top: 9px;
}

.stm32mcuportfolio-boxes {
    display: flex;
    align-content: center;
    flex-direction: column;
    padding: 15px 5px;
    gap: 19px;
    height: 470px;
    justify-content: flex-end;
    position: relative;
}

.stm32mcuportfolio-box:hover .stm32mcuportfolio-tooltip table tr:nth-child(odd) {
    background: #F7F8FA;
    padding: 7px 4px 7px 14px;
}

.stm32mcuportfolio-tooltip td:first-child {
    color: var(--Text-Secondary, #6A7077);
    border: 0px !important;

/* Typescale/Body/Caption - RE */
    font-family: Arial;
    font-size: var(--Font-Size-Caption, 12px);
    font-style: normal;
    font-weight: 500;
    line-height: var(--Line-Height-Caption, 18px); /* 150% */
    min-width: 80px;
}

.stm32mcuportfolio-tooltip td:last-child {
    color: var(--Text-Secondary, #6A7077);
    border: 0px !important;

/* Typescale/Body/Caption - ME */
    font-family: Arial;
    font-size: var(--Font-Size-Caption, 12px);
    font-style: normal;
    font-weight: 700;
    line-height: var(--Line-Height-Caption, 18px); /* 150% */
}

.stm32mcuportfolio-box:hover .stm32mcuportfolio-tooltip:before {
    content: '';
    position: absolute;
    border-right: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    left: -10px;
    top: 23%;
    transform: translateY(-50%);
}

.mcu-banner {
    display: flex;
    flex-wrap: wrap;
    background: #03234b;
    padding: 10px;
    gap: 50px;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
}

.mcu-text {
    color: #fff;
    text-align: left;
    width: 500px;
}

.ss-button-yellow {
    height: 48px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: #ffd200;
    color: #03234b;
    border-radius: 10px 0 10px 0;
}
 
.ss-button-yellow:hover {
    background-color: #ffdb33;
}
 
.ss-button-yellow:active {
    background-color: #f5ca00;
}

.ss-button-yellow img {
    height: 40px;
}

.stm32mcuportfolio-column {
    float: none !important;
}


.stm32mcuportfolio-column:nth-child(4)  .stm32mcuportfolio-box:hover .stm32mcuportfolio-tooltip {
    left: auto;
    right: 40px;
}

.stm32mcuportfolio-column:nth-child(4) .stm32mcuportfolio-box .stm32mcuportfolio-tooltip:before {
    border-left: 10px solid #fff;
    border-right: 0;
    left: auto;
    right: -10px;
}

.stm32mcuportfolio-header a:hover svg path {
    fill: #3cb4e6;
}

.stm32mcuportfolio-column > a:hover {
    background: #3cb4e6;
}

table tbody tr:last-child > td {
    border: 0;
    margin: 0;
}

.stm32mcuportfolio-footnote-container {
    display: flex;
    gap: 8px;
    margin: 20px 5px 0;
}

.stm32mcuportfolio-boxes-col {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.stm32mcuportfolio-box.fake-box {
    opacity: 0;
    cursor: default;
}

.stm32mcuportfolio-tooltip td:first-child b {
    font-weight: 100;
}

@media only screen and (max-width: 600px) {
    .mcu-banner {
        gap: 10px;
    }
    .mcu-text {
        width: unset;
    }
  }

  @media (min-width: 1025px) {
    .stm32mcuportfolio-boxes.mixed-signal-boxes {
        border: 2px solid #03234B;
        padding: 10px 16px;
        position: relative;
        margin-top: 15px;
        margin: 15px;
    }

    .stm32mcuportfolio-boxes.mixed-signal-boxes:before {
        content: 'Mixed-signal MCUs';
        font-size: 14px;
        color: #03234B;
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-weight: 700;
        white-space: nowrap;
    }

      .stm32mcuportfolio-column:first-child {
            width: 39%;
        }
        
        .stm32mcuportfolio-column:nth-child(2){
            width: 57%;
        }
  }

  @media (min-width: 1025px) and (max-width: 1280px) {
    .stmicro.cxv1.js-st-sidebar-active .stm32mcuportfolio-columns-wrap {
        padding: 10px;
    }

    .stmicro.cxv1.js-st-sidebar-active .stm32mcuportfolio-boxes {
        padding: 10px;
    }

    .stm32mcuportfolio-box p {
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
        max-width: 100px;
        white-space: nowrap;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .stm32mcuportfolio-box {
        min-width: auto;
    }

    .stm32mcuportfolio-column:nth-child(2) .stm32mcuportfolio-boxes:not(:first-child) .stm32mcuportfolio-tooltip {
        top: 110%;
        left: auto;
        right: 100%;
        transform: translateX(-55%);
    }

    .stm32mcuportfolio-column:nth-child(2) .stm32mcuportfolio-boxes:not(:first-child) .stm32mcuportfolio-box:hover .stm32mcuportfolio-tooltip:before {
        right: -10px;
        left: auto;
        top: 23%;
        transform: translateY(-30%) rotate(180deg);
    }
}


  @media (max-width:1024px) {
    .stm32mcuportfolio-header a,
    .stm32mcuportfolio-box.fake-box {
        display: none;
    }

    .stm32mcuportfolio-header h1 {
        font-size: 24px;
    }

    .stm32mcuportfolio-column a h3 {
        font-size: 18px;
        color: #03234B;
        display: inline-block;
        margin: 0;
        margin-right: 8px;
        vertical-align: middle;
    }

    .stm32mcuportfolio-column a .stm32mcuportfolio-icon path {
        font-size: 18px;
        fill: #03234B;
    }

    .stm32mcuportfolio-container {
        background: #F6F7F9;
        margin-left: -20px;
        margin-right: -20px;
        padding: 26px 20px;
    }

    .stm32mcuportfolio-columns {
        display: block;
        border: 0;
        padding: 0;
        background: transparent;
    }

    .stm32mcuportfolio-column-header {
        background: transparent;
        color: #03234B;
        display: block;
        text-align: left;
        margin-bottom: 12px;
    }

    .stm32mcuportfolio-column-header .stm32mcuportfolio-icon {
        display: inline-block;
        vertical-align: text-top;
        margin: 0;
    }

    .stm32mcuportfolio-column {
        align-items: flex-start;
        margin-bottom: 38px;
        width: 100%;
        justify-content: flex-start;
        align-content: flex-start;
    }

    .stm32mcuportfolio-boxes-col {
        overflow-x: auto;
        position: relative;
        white-space: nowrap;
        display: inline-block;
        width: 100%;
    }

    .stm32mcuportfolio-boxes {
        display: inline-block;
        padding: 0;
        height: auto;
    }

    .stm32mcuportfolio-boxes a {
        display: inline-flex;
        vertical-align: middle;
        margin-right: 12px;
    }

    .stm32mcuportfolio-column > a:hover {
        background: transparent;
        color: inherit;
    }

    .stm32mcuportfolio-box:hover {
        outline: 0;
    }

    .stm32mcuportfolio-tooltip {
        display: none !important;
    }

  }