
html, body, #app {
    height: 100%;
}

.custom-medium-btn {
    padding: 7px 45px;
    font-size: .8125rem;
}

.mud-button-root {
    color: #fff;
    text-align: center;
    letter-spacing: 0;
    /*background-color: #087d68 !important;*/
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    height: auto;
    /*margin-top: 20px;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    font-family: Inter, sans-serif;
    /*font-size: 17px;*/ /*QUi*/
    /*padding: 16px 24px;*/
    font-weight: 500;
    line-height: 17px;
    transition: background-color .3s, transform .5s;
    /*  position: static;*/
}




.text-small {
    padding: 4px 5px;
    font-size: .8125rem;
}

.mud-button-big {
    color: #fff;
    text-align: center;
    letter-spacing: 0;
    /*background-color: #087d68 !important;*/
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    height: auto;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    font-family: Inter, sans-serif;
    /*padding: 24px 36px;
    font-size: 28px;*/ /*QUi*/
    font-weight: 500;
    line-height: 17px;
    transition: background-color .3s, transform .5s;
    /*position: static;*/
}

.button.no-margin {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

.mud-button-filled.mud-button-filled-success {
    color: var(--mud-palette-success-text);
    background-color: var(--mud-palette-success);
}

.mud-button-filled.mud-button-filled-primary {
    color: var(--mud-palette-primary-text);
    background-color: var(--mud-palette-primary);
}


.heading-style-h1.new-brand {
    font-size: 3.7rem;
    font-weight: 700;
}

.heading-style-h1 {
    letter-spacing: -.06em;
    text-align: left;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-span-hero-home {
    display: block;
    color: var(--mud-palette-primary);
}

.padding-section-hero.home {
    padding-top: 120px;
    padding-bottom: 150px;
}


/*
    STRUTTURA Iniziale dentro DIV*/
.container-large.home_hero-post-gc {
    top: 64px;
}

.container-large {
    /*  width: 100%;*/
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

body {
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 20px;
}
/*

 Div1 a SX*/

/*.home_hero-grid-new-2 {
    grid-template-rows: auto;
    place-items: center start;
}*/

/*.w-layout-grid {
    grid-row-gap: 16px;
    grid-column-gap: 16px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}*/

.space-16 {
    height: 16px;
}

/*Div DX*/
/*.home_hero-lottie-wrapper {
    margin-left: 0;
    margin-right: 0;
    position: relative;*/
/*inset: -240px -231px auto auto;*/
/*}*/

.home_hero-lottie-wrapper {
    display: flex;
    justify-content: center; /* centra orizzontalmente */
    align-items: center; /* centra verticalmente */
    overflow: hidden; /* opzionale, taglia i bordi se l'immagine è più grande */
}

    .home_hero-lottie-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* riempie il box senza deformare */
        display: block;
    }

    .home_hero-lottie-wrapper .static-position {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.text-size-large.text-color-grey6 {
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    flex-flow: column;
    display: block;
}

.text-color-grey6 {
    color: var(--grey-6-7);
}

.text-size-large {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

/*.mud-toolbar {*/
/*    display: flex;
    position: relative;
    align-items: center;
    height: 56px;*/

/*text-align: left;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 72px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}*/


/*.mud-appbar {
    z-index: 999;
    border-bottom: 1px solid var(--light-grey);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-left: 3%;
    padding-right: 3%;
    display: flex;
    position: fixed;
    inset: 0% 0% auto;*/
/*box-shadow: 0 1px 16px #37363c17;*/
/*}*/





.static-position {
    position: relative !important;
}

.heading-style-h2 {
    color: #141d1e;
    letter-spacing: -.05em;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.heading-style-h4 {
    color: #141414;
    letter-spacing: -.5px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-align-center {
    text-align: center;
}



.service-card {
    color: var(--carbon-black);
    border-radius: 24px;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px;
    display: flex;
    min-height: 400px;
    height: 100%;
    /*aspect-ratio: 4 / 5;*/
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* lg */
    grid-auto-rows: 1fr;
    gap: 24px;
}

.w-inline-block {
    max-width: 100%;
    display: inline-block;
}


.service-img {
    /* max-height: 168px;*/
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
}

.service-card-text-wrapper {
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    display: flex;
}

.service-button {
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    color: var(--carbon-black);
    border-radius: 24px;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    display: flex;
}
/*.service-grid {
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 64px;
    display: grid;
}*/


/*CARD IN SERVIZI*/
.service-card.color-0-card {
    background-color: #fff2f1;
    border: 2px solid #f5e1df;
    border-radius: 38px;
}

.service-card.color-1-card {
    background-color: #f5f0fe;
    border: 2px solid #f5e1df;
    border-radius: 38px;
}

.service-card.color-2-card {
    background-color: #fdfceb;
    border: 2px solid #f5e1df;
    border-radius: 38px;
}

.service-image {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
    transform-style: preserve-3d;
    border-radius: 38px;
}

/*DETTAGLI SERVIZI*/
.service-detail-image {
    border-radius: 38px;
}

.m-servizi {
    margin: auto !important;
    margin-top: 4rem !important;
}

/*.hero-title {
     
    font-size: clamp(2rem, 8vw, 3.7rem) !important;
    line-height: 1.05;
    word-break: break-word;
}
*/
h1, .h1, .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 3.7rem) !important;
    line-height: 1.05;
    word-break: break-word;
}

h2, .h2 {
    font-size: clamp(1.4rem, 6vw, 2.6rem) !important;
    line-height: 1.15;
}

h3, .h3 {
    font-size: clamp(1.2rem, 5vw, 2rem) !important;
    line-height: 1.2;
}


@media (max-width: 600px) {
    .home_hero-post-gc {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.hero-upload-btn {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* MOBILE ONLY */
@media (max-width: 600px) {
    .hero-upload-btn {
        min-height: 48px;
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}
.hero-upload-btn {
    width: 100%;
    max-width: 320px; /* opzionale: evita pill enorme */
    margin: 0 auto; /* centra */
}

    /* Sistema il bottone Mud */
    .hero-upload-btn .mud-button-root {
        width: 100%;
        min-height: 52px;
        border-radius: 999px; /* pill pulita */
        padding: 10px 16px;
    }

    /* QUESTA è la parte che ti salva: */
    .hero-upload-btn .mud-button-label {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        white-space: normal !important; /* permette andare a capo bene */
        line-height: 1.15 !important;
        text-align: center !important;
    }

/* dimensione testo mobile */
@media (max-width: 600px) {
    .hero-upload-btn .mud-button-root {
        min-height: 48px !important;
        padding: 10px 14px !important;
    }

    .hero-upload-btn .mud-button-label {
        font-size: 0.95rem !important;
    }
}


/* MOBILE: dialog quasi fullscreen */
@media (max-width: 600px) {

    .checkup-dialog .mud-dialog {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px !important;
        border-radius: 14px !important;
    }

    .checkup-dialog .mud-dialog-content {
        padding: 12px !important;
        max-height: calc(100vh - 140px) !important; /* header+actions */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .checkup-dialog .mud-dialog-actions {
        padding: 10px 12px !important;
        position: sticky;
        bottom: 0;
        background: var(--mud-palette-surface);
        border-top: 1px solid rgba(0,0,0,.08);
        z-index: 2;
    }
}
@media (max-width: 600px) {

    /* Se usi MudGrid (flex) */
    .checkup-dialog .checkup-grid .mud-grid-item {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    /* Spaziatura migliore su mobile */
    .checkup-dialog .checkup-grid {
        row-gap: 10px !important;
    }
}
@media (max-width: 600px) {
    .checkup-dialog .mud-input-control,
    .checkup-dialog .mud-select,
    .checkup-dialog .mud-textfield {
        font-size: 16px !important; /* evita zoom iOS */
    }
}
@media (max-width: 600px) {

    /* Label sopra l’input */
    .checkup-dialog .mud-input-label {
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
    }

    /* Testo dentro input / select */
    .checkup-dialog .mud-input-root,
    .checkup-dialog .mud-select,
    .checkup-dialog input {
        font-size: 0.9rem !important;
        margin-top: 0.5rem !important;
    }

        /* Placeholder (se presenti) */
        .checkup-dialog input::placeholder {
            font-size: 0.85rem !important;
        }
}

/* Default: visibile ovunque */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* XS / SM */
@media (max-width: 600px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}