/*
Theme Name: Panthera Child Theme
Theme URI: https://www.panthera.it
Description: Un tema figlio industriale per Twenty Twenty-Five, orientato al settore ingegneristico.
Author: NewLogic srl
Author URI: https://www.newlogic.it
Template: twentytwentyfive
Version: 1.0.6
Text Domain: panthera-child
*/

.sidebar-card-outer:not(:last-child) {
    margin-bottom: 24px !important;
}

.wp-block-acf-panthera-modulo-card {
    height: 100%;
}
.wp-block-acf-panthera-modulo-card > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.wp-block-acf-panthera-modulo-card .panthera-modulo-desc {
    flex-grow: 1;
}

.notes-container {
    border: 1px solid var(--wp--preset--color--blue-mono-3, #3D4B66) !important;
    padding: 32px !important;
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border-radius: 6px !important;
}

.open-point-card {
    border: 1px solid var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
    padding: 24px !important;
    background-color: var(--wp--preset--color--steel, #f7f9fb) !important;
    border-radius: 4px !important;
    font-family: var(--wp--preset--font-family--body, inherit) !important;
}

.open-point-title, .open-point-card h3 {
    font-family: var(--wp--preset--font-family--display, inherit) !important;
    text-transform: uppercase !important;
}

.open-points-decision-box {
    border: 1px solid var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
    padding: 24px !important;
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border-radius: 4px !important;
    font-family: var(--wp--preset--font-family--body, inherit) !important;
}

.open-points-todo-box {
    border: 1px solid var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
    padding: 24px !important;
    background-color: var(--wp--preset--color--steel, #f7f9fb) !important;
    border-radius: 4px !important;
    font-family: var(--wp--preset--font-family--body, inherit) !important;
}

.open-points-history-box {
    border: 1px solid var(--wp--preset--color--on-primary-container, #cbd5e1) !important;
    padding: 24px !important;
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border-radius: 4px !important;
    font-family: var(--wp--preset--font-family--body, inherit) !important;
}

/* 
 * ----------------------------------------------------
 * HERO RIGHT BLEED LAYOUT (IMAGE EXTENDS TO RIGHT EDGE)
 * ----------------------------------------------------
 */
@media (min-width: 782px) {
    .panthera-hero--bleed-right {
        overflow: hidden;
    }
    .panthera-hero--bleed-right .wp-block-columns.alignwide {
        max-width: none !important;
        padding-right: 0 !important;
    }
    .panthera-hero--bleed-right .wp-block-column:first-child {
        /* Align the left column as if it were inside alignwide */
        padding-left: max(var(--wp--style--root--padding-left, 32px), calc(50% - var(--wp--style--global--wide-size, 1440px) / 2));
        padding-right: var(--wp--preset--spacing--60, 48px); 
    }
    .panthera-hero--bleed-right .wp-block-column:last-child {
        /* Take up all the remaining space to the right edge */
        flex-grow: 1;
        flex-basis: auto !important;
        /* Remove internal paddings */
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .panthera-hero--bleed-right .wp-block-column:last-child > .wp-block-image,
    .panthera-hero--bleed-right .wp-block-column:last-child > .panthera-hero__media,
    .panthera-hero--bleed-right .wp-block-column:last-child > .wp-block-post-featured-image {
        width: 100%;
        height: 100%;
        margin: 0;
    }
    .panthera-hero--bleed-right .wp-block-column:last-child img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.panthera-card-stretch {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}