/* Home: servizi di telemedicina in convenzione. */
.telemedicine-section {
    padding: clamp(48px, 6vw, 88px) 0 40px;
    background: linear-gradient(135deg, #f1f6ff 0%, #ffffff 55%, #eefafa 100%);
    color: #40536c;
}

.telemedicine-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    grid-template-areas: "poster heading" "poster details";
    align-items: start;
    gap: 22px clamp(28px, 4vw, 60px);
}

.telemedicine-layout > * {
    min-width: 0;
}

/* Prevent the theme's generic transitions from animating responsive sizing. */
.telemedicine-section span,
.telemedicine-section img {
    transition: none;
}

.telemedicine-heading {
    grid-area: heading;
    align-self: end;
}

.telemedicine-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #2363d5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.telemedicine-eyebrow > span {
    width: 26px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

.telemedicine-heading h2 {
    margin: 0;
    color: #1c304d;
    font-size: clamp(34px, 3.3vw, 48px);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.telemedicine-heading h2 > span {
    display: block;
    margin-top: 12px;
    color: #2363d5;
    font-size: .68em;
    line-height: 1.2;
    letter-spacing: 0;
}

.telemedicine-poster {
    grid-area: poster;
    align-self: center;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid #d9e6fa;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px -18px rgba(32, 79, 153, .28);
}

.telemedicine-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.telemedicine-details {
    grid-area: details;
}

.telemedicine-details > p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.75;
}

.telemedicine-details strong {
    color: #253f63;
    font-weight: 600;
}

.telemedicine-exams {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #dce6f3;
}

.telemedicine-exams h3 {
    margin: 0 0 6px;
    color: #1c304d;
    font-size: 27px;
    line-height: 1.2;
}

.telemedicine-exams > p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
}

.telemedicine-exam-list {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.telemedicine-exam-list li {
    min-width: 0;
    padding: 18px 10px;
    border: 1px solid #dce7f7;
    border-radius: 16px;
    background: #f1f6ff;
}

.telemedicine-exam-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #2363d5;
}

.telemedicine-exam-icon svg {
    width: 29px;
    height: 29px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.telemedicine-exam-name {
    display: block;
    color: #1c304d;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: normal;
}

.telemedicine-exam-name > span {
    display: block;
    margin-top: 4px;
    color: #42628d;
    font-family: 'Livvic', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.telemedicine-coverage {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 48px);
    align-items: center;
    margin-top: 40px;
    padding: clamp(24px, 3.5vw, 44px);
    border-radius: 24px;
    background: linear-gradient(115deg, #163763 0%, #1b4c93 100%);
    color: #eef4ff;
}

.telemedicine-coverage > div {
    min-width: 0;
}

.telemedicine-coverage p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}

.telemedicine-coverage .telemedicine-coverage-label {
    margin-bottom: 10px;
    color: #b8d9ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.telemedicine-coverage h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.2;
}

.telemedicine-coverage strong {
    color: #ffffff;
    font-weight: 600;
}

.telemedicine-contact {
    padding-left: clamp(24px, 3.5vw, 48px);
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.telemedicine-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
}

.telemedicine-button,
.telemedicine-phone {
    display: inline-flex;
    max-width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    transition: background-color .2s ease, color .2s ease;
}

.telemedicine-button {
    padding: 14px 20px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: #ffffff;
    color: #174781;
}

.telemedicine-button:hover,
.telemedicine-button:focus {
    background: #e8f2ff;
    color: #163763;
}

.telemedicine-phone {
    padding: 6px 0;
    color: #ffffff;
}

.telemedicine-phone:hover,
.telemedicine-phone:focus {
    color: #c9e6ff;
}

.telemedicine-button svg,
.telemedicine-phone svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.telemedicine-section a:focus-visible {
    outline: 3px solid #a4d8ff !important;
    outline-offset: 5px;
}

.telemedicine-signature {
    margin: 24px 0 0;
    color: #516682;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.telemedicine-signature strong {
    color: #253f63;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .telemedicine-exam-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .telemedicine-exam-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
    }

    .telemedicine-exam-icon {
        flex: 0 0 42px;
        margin: 0;
    }

    .telemedicine-exam-name > span {
        display: inline;
        margin: 0 0 0 4px;
    }
}

@media (max-width: 991.98px) {
    .telemedicine-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "poster" "details";
        gap: 30px;
    }

    .telemedicine-heading {
        max-width: 640px;
    }

    .telemedicine-heading h2 {
        font-size: 42px;
    }

    .telemedicine-exam-list {
        grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .telemedicine-exam-list li {
        display: block;
        padding: 18px 14px;
    }

    .telemedicine-exam-icon {
        margin-bottom: 12px;
    }

    .telemedicine-exam-name > span {
        display: block;
        margin: 4px 0 0;
    }

    .telemedicine-coverage {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 30px;
    }

    .telemedicine-contact {
        padding: 24px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
        border-left: 0;
    }

    .telemedicine-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 24px;
    }
}

@media (max-width: 767.98px) {
    .telemedicine-exam-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .telemedicine-exam-list li {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 16px;
    }

    .telemedicine-exam-icon {
        margin: 0;
    }

    .telemedicine-exam-name {
        flex: 1 1 11.5rem;
        min-width: 0;
        font-size: clamp(18px, 5vw, 21px);
    }
}

@media (max-width: 575.98px) {
    .telemedicine-section {
        padding-bottom: 32px;
    }

    .telemedicine-section > .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .telemedicine-heading h2 {
        font-size: 34px;
    }

    .telemedicine-poster {
        padding: 8px;
        border-radius: 20px;
    }

    .telemedicine-coverage {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .telemedicine-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .telemedicine-button {
        gap: 8px;
        padding: 14px 10px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .telemedicine-section a {
        transition: none;
    }
}
