/* ===== FONT BASE MY PET ===== */

.mypet-wrap {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2b31;
}

    /* forza anche headings e bottoni */
    .mypet-wrap h1,
    .mypet-wrap h2,
    .mypet-wrap h3,
    .mypet-wrap h4,
    .mypet-wrap h5 {
        font-family: inherit;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .mypet-wrap p,
    .mypet-wrap span,
    .mypet-wrap div,
    .mypet-wrap label,
    .mypet-wrap input,
    .mypet-wrap select,
    .mypet-wrap textarea,
    .mypet-wrap button {
        font-family: inherit;
    }
.mypet-wrap {
    padding: 32px 16px 56px;
}

.mypet-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.mypet-hero {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 24px;
    background: linear-gradient(135deg, #eef7f2 0%, #f8fbff 100%);
    border: 1px solid #e5ece8;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.mypet-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4c7b68;
    margin-bottom: 10px;
}

.mypet-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.mypet-hero p {
    margin: 0;
    color: #44535c;
    line-height: 1.65;
    max-width: 760px;
}

.mypet-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.mypet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .18s ease;
}

.mypet-btn--primary {
    background: #1f7a53;
    color: #fff;
}

    .mypet-btn--primary:hover {
        background: #186342;
        color: #fff;
    }

.mypet-btn--ghost {
    background: #fff;
    color: #24333b;
    border: 1px solid #d9e4de;
}

    .mypet-btn--ghost:hover {
        background: #f6f9f7;
        color: #24333b;
    }

.mypet-usercard {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(22, 36, 28, .05);
}

.mypet-usercard__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6a7d75;
    margin-bottom: 8px;
}

.mypet-usercard__name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2b31;
}

.mypet-usercard__meta {
    margin-top: 6px;
    color: #5e6d76;
    word-break: break-word;
}

.mypet-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.mypet-stat {
    background: #fff;
    border: 1px solid #e7ece9;
    border-radius: 18px;
    padding: 18px;
}

.mypet-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1f2b31;
    line-height: 1;
    margin-bottom: 8px;
}

.mypet-stat__label {
    color: #5f7077;
    line-height: 1.4;
}

.mypet-empty {
    background: #fff;
    border: 1px dashed #cfdad4;
    border-radius: 24px;
    padding: 34px 24px;
    text-align: center;
    margin-bottom: 24px;
}

    .mypet-empty h2 {
        margin: 0 0 10px;
    }

    .mypet-empty p {
        max-width: 760px;
        margin: 0 auto 18px;
        color: #55656d;
        line-height: 1.7;
    }

.mypet-sectionhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .mypet-sectionhead h2 {
        margin: 0 0 6px;
    }

    .mypet-sectionhead p {
        margin: 0;
        color: #607078;
    }

.mypet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.mypet-card {
    background: #fff;
    border: 1px solid #e7ece9;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.mypet-card__media {
    height: 220px;
    background: #f4f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mypet-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mypet-card__placeholder {
    font-size: 46px;
    opacity: .7;
}

.mypet-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mypet-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

    .mypet-card__top h3 {
        margin: 0;
        font-size: 22px;
        line-height: 1.2;
    }

.mypet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

    .mypet-badge.is-active {
        background: #e8f8ef;
        color: #176b45;
    }

    .mypet-badge.is-archived {
        background: #f0f3f6;
        color: #56656d;
    }

    .mypet-badge.is-deceased {
        background: #fcebec;
        color: #9c2c32;
    }

    .mypet-badge.is-lost {
        background: #fff6df;
        color: #9b6a00;
    }

    .mypet-badge.is-unknown {
        background: #f1f1f1;
        color: #555;
    }

.mypet-meta {
    display: grid;
    gap: 8px;
    color: #52626a;
    line-height: 1.5;
    font-size: 14px;
}

.mypet-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.mypet-linkbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d7e3dc;
    border-radius: 12px;
    text-decoration: none;
    color: #22333a;
    background: #fff;
    font-weight: 700;
}

    .mypet-linkbtn:hover {
        background: #f6faf8;
        color: #22333a;
    }

.mypet-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.mypet-panel {
    background: #fff;
    border: 1px solid #e7ece9;
    border-radius: 20px;
    padding: 20px;
}

    .mypet-panel h3 {
        margin: 0 0 10px;
    }

    .mypet-panel p {
        margin: 0;
        color: #586871;
        line-height: 1.65;
    }

@media (max-width: 1080px) {
    .mypet-hero,
    .mypet-stats,
    .mypet-grid,
    .mypet-panels {
        grid-template-columns: 1fr 1fr;
    }

    .mypet-hero__content {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mypet-wrap {
        padding: 20px 12px 40px;
    }

    .mypet-hero,
    .mypet-stats,
    .mypet-grid,
    .mypet-panels {
        grid-template-columns: 1fr;
    }

    .mypet-hero {
        padding: 20px;
    }

    .mypet-hero__content {
        grid-column: auto;
    }

    .mypet-sectionhead {
        flex-direction: column;
        align-items: stretch;
    }

    .mypet-card__media {
        height: 200px;
    }

    .mypet-card__actions {
        flex-direction: column;
    }
}
.mypet-formgrid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.mypet-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mypet-field--full {
    grid-column: 1 / -1;
}

.mypet-input,
.mypet-select,
.mypet-textarea {
    width: 97%;
    border: 1px solid #d7e3dc;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

.mypet-textarea {
    min-height: 100px;
    resize: vertical;
}

.mypet-alert {
    background: #fff6df;
    border: 1px solid #f1dca7;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.mypet-alert--error {
    background: #fdecec;
    border-color: #f5b5b5;
}

.mypet-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
/*---------------VIEW---------------*/
.mypet-panel p {
    margin: 0 0 12px;
}

    .mypet-panel p:last-child {
        margin-bottom: 0;
    }

.mypet-sectionhead + .mypet-panels,
.mypet-sectionhead + .mypet-grid,
.mypet-sectionhead + .mypet-stats {
    margin-top: 0;
}
/*--------------------------------*/

