.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: "Helvetica Now Display";
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.42px;
}

.stm32mcuportfolio-rows {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #fff;
    padding: 24px;
    border: 1px solid #dfdfdf;
}

.stm32mcuportfolio-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #F7F8FA;
    gap: 65px;
    border: 1px solid #DBDEE2;
    border-radius: 3px;
}

.stm32mcuportfolio-row-header {
    text-align: center;
    color: #03234B;
    width: 185px;
}

.stm32mcuportfolio-row-header .stm32mcuportfolio-icon {
    margin: 10px 0;
    text-align: left;
    padding-left: 24px;
    display: flex;
}

.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 #DBDEE2;
    background: #FFF;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.06);
    min-height: 90px;
    min-width: 150px;
}

.stm32mcuportfolio-box:hover {
    background: #E0ECFF;
    outline: 2px solid #0047B2;
}

.stm32mcuportfolio-box h4 {
    color: var(--Text-Title, #03234B);
    text-align: center;
    font-family: "Helvetica Now Display";
    font-size: var(--Font-Size-Body-S, 14px);
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.42px;
    margin: 0;
}

.stm32mcuportfolio-box p {
    color: var(--Text-Primary, #4C545C);
    text-align: center;
    font-family: "Helvetica Now Display";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    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: 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: 288px;
    display: flex;
    max-width: 326px;
    padding: 8px;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 0;
    border: 0;
    background: #FFF;
}

/* Responsive */
@media (max-width: 1000px) {
    .stm32mcuportfolio-rows {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stm32mcuportfolio-rows {
        grid-template-columns: 1fr;
    }
}

.stm32mcuportfolio-row-header h3 {
    color: #03234B;
    text-align: left;
    font-family: "Helvetica Now Display";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.42px;
    padding: 24px 0 0 24px;
    margin: 0;
}

.stm32mcuportfolio-boxes {
    align-content: center;
    padding: 28px 33px 28px 0;
    gap: 20px 36px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.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;
    font-family: "Helvetica Now Display";
    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;

    font-family: "Helvetica Now Display";
    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: 50%;
    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-header a:hover svg path {
    fill: #3cb4e6;
}

.stm32mcuportfolio-row > a:hover {
    background: #3cb4e6;
}

.stm32mcuportfolio-icon svg path {
    fill: #6A7077;
}

.stm32mcuportfolio-boxes h4 svg {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
}

table tbody tr:last-child > td {
    border: 0;
    margin: 0;
}

.stm32mcuportfolio-footnote-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
    align-content: center;
    margin-top: 10px;
    /* height: 14px; */
    vertical-align: middle;
    flex-direction: row;
}

.stm32mcuportfolio-icon svg path {
    fill: #6A7077;
}

.stm32mcuportfolio-boxes h4 svg {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
}

.footnote-text {
    font-size: 12px;
    vertical-align: middle;
    display: flex;
    font-weight: 700;
    align-items: center;
    color: #525A63;
    font-style: normal;
    font-family: "Helvetica Now Display";
    letter-spacing: 0.6px;
}

@media (min-width: 1280px) {
    .stm32mcuportfolio-row:nth-child(4) .stm32mcuportfolio-boxes,
    .stm32mcuportfolio-row:nth-child(5) .stm32mcuportfolio-boxes {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      justify-content: start;
    }

    .stm32mcuportfolio-row:nth-child(4) .stm32mcuportfolio-boxes .stm32mcuportfolio-box:nth-child(4) {
        grid-column: 1; 
    }

}

@media (min-width: 1151px) and (max-width: 1280px){
    .js-st-micro.stmicro.cxv1.js-st-sidebar-default.productFolder-page-marker.js-st-sidebar-active .stm32mcuportfolio-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1150px){
    .js-st-micro.stmicro.cxv1.js-st-sidebar-default.productFolder-page-marker.js-st-sidebar-active .stm32mcuportfolio-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .stmicro.cxv1.js-st-sidebar-active .stm32mcuportfolio-rows-wrap {
        padding: 10px;
    }

    .stmicro.cxv1.js-st-sidebar-active .stm32mcuportfolio-boxes {
        padding: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .mcu-banner {
        gap: 10px;
    }
    .mcu-text {
        width: unset;
    }
  }


  @media (max-width:1024px) {
    .stm32mcuportfolio-header a {
        display: none;
    }

    .stm32mcuportfolio-header h1 {
        font-size: 24px;
    }

    .stm32mcuportfolio-row a h3 {
        font-size: 18px;
        color: #03234B;
        display: inline-block;
        margin: 0;
        margin-right: 8px;
        vertical-align: middle;
    }

    .stm32mcuportfolio-row a .stm32mcuportfolio-icon path {
        font-size: 18px;
        fill: #03234B;
    }

    .stm32mcuportfolio-container {
        background: #F6F7F9;
        margin-left: -20px;
        margin-right: -20px;
        padding: 26px 20px;
    }

    .stm32mcuportfolio-rows {
        display: block;
        border: 0;
        padding: 0;
        background: transparent;
    }

    .stm32mcuportfolio-row-header {
        background: transparent;
        color: #03234B;
        display: block;
        text-align: left;
        margin-bottom: 12px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .stm32mcuportfolio-row-header h3 {
        padding: 0;
    }

    .stm32mcuportfolio-row-header .stm32mcuportfolio-icon {
        display: inline-block;
        vertical-align: text-top;
        margin: 0;
        padding-left: 10px;
    }

    .stm32mcuportfolio-row {
        align-items: flex-start;
        margin-bottom: 38px;
        width: 100%;
        justify-content: flex-start;
        border: 0;
        flex-direction: column;
        align-content: flex-start;
        gap: 0;
    }

    .stm32mcuportfolio-boxes-row {
        overflow-x: auto;
        position: relative;
        white-space: nowrap;
        display: inline-block;
        width: 100%;
    }

    .stm32mcuportfolio-boxes {
        display: inline-block;
        padding: 0;
    }

    .stm32mcuportfolio-boxes a {
        display: inline-flex;
        vertical-align: middle;
        margin-right: 12px;
    }

    .stm32mcuportfolio-row > a:hover {
        background: transparent;
        color: inherit;
    }

    .stm32mcuportfolio-box:hover {
        outline: 0;
    }

    .stm32mcuportfolio-tooltip {
        display: none !important;
    }

    .stm32mcuportfolio-footnote-container {
        margin-top: -30px;
    }

  }