/* Humanizza — responsive refinements (≤980px). Loaded after mobile.css. */

:root {
    --hz-title: clamp(1.5rem, 4.2vw, 2.25rem);
    --hz-title-line: clamp(1.85rem, 5vw, 2.75rem);
    --hz-section-y: clamp(2.5rem, 8vw, 5rem);
    --hz-card-pad: clamp(1.25rem, 4.5vw, 2rem);
    --hz-gutter: clamp(1rem, 4vw, 1.5rem);
    --hz-touch: 44px;
}

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #0f2a73;
    outline-offset: 3px;
}

.menu-item-sub span {
    display: block;
    width: 80%;
    margin: 20px auto -20px;
    color: #833b00;
    text-align: right;
}

/* WordPress admin bar + fixed header */
body.admin-bar header {
    top: 32px;
}

body.admin-bar .main-navigation {
    top: calc(15px + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }

    body.admin-bar .main-navigation {
        top: calc(15px + 46px);
    }
}

header .wrapper {
    overflow: visible;
}

/* Home hero */
.banners {
    padding-top: clamp(5.5rem, 10vw, 6.5rem);
    margin-bottom: 0;
    background: #ff7200;
}

/* Tab decorativo igual ao desktop — transição laranja → conteúdo */
.banners > .tab-reverse {
    display: block;
    z-index: 5;
    height: 50px;
}

.banners > .tab-reverse .tab-bar {
    width: calc(85% + 50px);
    right: -50px;
    background: #fff9f7;
}

.banners > .tab-reverse::before {
    left: 15%;
    margin-left: -50px;
}

.banner {
    min-height: clamp(31rem, 68vw, 38rem);
}

.banner-infos {
    position: absolute;
    inset: 0;
    transform: none;
    min-height: 100%;
    padding: 2rem var(--hz-gutter);
    justify-content: center;
}

.banner-infos .title,
.banner-infos p {
    width: min(48%, 28rem);
    max-width: 100%;
    text-align: left;
}

.banner-infos .title {
    margin: 0 0 1rem;
}

.banner-infos p {
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

.banner-calls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.banner-calls .tag {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
}

.banner-calls .tag-lg.tag-white {
    padding: 15px 40px;
    min-height: auto;
    display: inline-block;
}

.banner-calls .tag-lg.tag-underlined {
    padding: 5px 0;
    margin: 0 20px;
    min-height: auto;
    display: inline-block;
}

.banner .banner-bg img {
    top: 0;
    bottom: 0;
    height: 100%;
    object-fit: cover;
    object-position: 76% bottom;
    clip-path: inset(8px 0 50px 0);
    -webkit-mask-image: none;
    mask-image: none;
}

.banner .banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #ff7200 0%,
        rgba(255, 114, 0, 0.98) 34%,
        rgba(255, 114, 0, 0.72) 50%,
        rgba(255, 114, 0, 0) 72%
    );
}

/* Layout blocks — gutter global em style.css (.wrapper, .content) */

.main-navigation .hamburger {
    min-width: var(--hz-touch);
    min-height: var(--hz-touch);
}

.main-start-content {
    padding-top: clamp(5rem, 14vw, 7.5rem);
    padding-bottom: 1.5rem;
}

.block {
    padding: var(--hz-section-y) 0;
}

.title {
    font-size: var(--hz-title);
    line-height: var(--hz-title-line);
    width: min(100%, 36rem);
    margin-left: auto;
    margin-right: auto;
}

.blk-6,
.blk-5,
.blk-4,
.blk-3,
.blk-2 {
    width: min(100%, 36rem);
    max-width: 100%;
    box-sizing: border-box;
}

/* Services grid */
.services {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0 3rem;
    gap: 1rem;
    box-sizing: border-box;
}

.service {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.services .service.blk-3 {
    width: 100%;
    max-width: 100%;
}

.service-infos,
.service-button {
    padding: var(--hz-card-pad);
}

.service-infos h3 {
    font-size: clamp(1.35rem, 4.5vw, 1.8rem);
    line-height: 1.2;
}

.service-button {
    min-height: var(--hz-touch);
}

/* About */
.about {
    padding: var(--hz-section-y) var(--hz-gutter);
    box-sizing: border-box;
}

.about-wrapper {
    width: 100%;
    max-width: 100%;
}

.about-infos > .flex-row.space-btw {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about-infos .blk-5.nt {
    width: calc(50% - 0.5rem);
    margin: 0;
    box-sizing: border-box;
}

.about-infos .title,
.about-infos .call {
    text-align: left;
}

/* Why */
.why {
    padding: var(--hz-section-y) var(--hz-gutter) 0;
    box-sizing: border-box;
}

.why-wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: 1.5rem;
}

.why .option-block {
    padding: 3rem 1.25rem 1.25rem 1.25rem;
    background-position: 1.25rem 1.25rem;
    background-size: 18px;
    font-size: 1rem;
    line-height: 1.35rem;
}

/* Phrase ticker */
.phrase {
    min-height: 3.5rem;
    padding: 0.75rem 0;
}

.phrase h3 {
    font-size: clamp(0.9rem, 3.2vw, 1.2rem);
    line-height: 1.35rem;
    white-space: nowrap;
}

.phrase h3 svg {
    width: 1.25rem;
    height: auto;
    margin: 0 0.75rem;
    flex-shrink: 0;
}

/* Testimonials / carousel */
.testimonials {
    padding-block: var(--hz-section-y);
}

.testimonials-wrapper {
    min-height: auto;
    max-width: 100%;
    padding: 1.5rem var(--hz-gutter);
    box-sizing: border-box;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonials-wrapper > .blk-3 {
    width: 100%;
    margin: 0;
}

.testimonials .title,
.testimonials .tag {
    width: 100%;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    right: auto;
    width: calc(100% + var(--hz-gutter));
    max-width: none;
    margin-right: calc(var(--hz-gutter) * -1);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 var(--hz-gutter);
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel {
    flex-direction: row;
    align-items: stretch;
    gap: 0.875rem;
    padding-right: var(--hz-gutter);
}

.testimony {
    flex: 0 0 min(86vw, 21rem);
    width: min(86vw, 21rem);
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 1.5rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.testimony p,
.testimony:hover p,
.testimony:focus-within p {
    max-height: none;
    overflow: visible;
}

.testimonials .carousel-nav {
    display: flex;
    align-self: center;
    margin: 0.75rem 0 0;
}

.testimonials .carousel-nav .arrow {
    width: var(--hz-touch);
    height: var(--hz-touch);
}

.testimonials .carousel-status {
    min-width: 3.5rem;
    text-align: center;
}

/* CTA sections */
.start,
.start-home,
.start-contact {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.start-content {
    width: 100%;
    max-width: 100%;
    padding: var(--hz-section-y) var(--hz-gutter);
    box-sizing: border-box;
}

.start-home {
    background-size: cover;
    background-position: center;
}

.tag-lg {
    padding: 0.85rem 1.5rem;
    min-height: var(--hz-touch);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Service / inner pages */
.head-page {
    padding: clamp(5rem, 12vw, 6.5rem) var(--hz-gutter) var(--hz-section-y);
    box-sizing: border-box;
}

.head-page-infos-wrapper,
.head-page-infos,
.head-page-infos-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.head-page-infos h1 {
    font-size: var(--hz-title);
    line-height: var(--hz-title-line);
}

/* About page */
.content.head-page.head-page--quem-somos {
    padding: clamp(5.75rem, 14vw, 7rem) 0 3rem;
    overflow: visible;
    background: #fff9f7;
}

.head-page--quem-somos .head-page-media {
    width: 100%;
    min-height: clamp(20rem, 56vw, 29rem);
    max-height: none;
    border-radius: 0 0 2rem 0;
}

.head-page--quem-somos .head-page-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% + 52px);
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: 58% center;
    clip-path: inset(0 0 52px 0);
}

.head-page--quem-somos .head-page-infos-wrapper {
    position: relative;
    inset: auto;
    z-index: 3;
    width: min(calc(100% - (2 * var(--hz-gutter))), 44rem);
    height: auto;
    margin: -2.5rem auto 0;
    padding: clamp(1.5rem, 5vw, 2.25rem);
    border: 1px solid rgba(255, 114, 0, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(82, 79, 75, 0.1);
    box-sizing: border-box;
}

.head-page--quem-somos .head-page-infos {
    padding: 0;
}

.head-page--quem-somos .head-page-infos-text {
    width: 100%;
    margin: 0;
}

.head-page--quem-somos .head-page-infos h1 {
    margin: 0 0 1rem;
    color: #1d1e1b;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.08;
}

.head-page--quem-somos .head-page-infos h1 b,
.head-page--quem-somos .head-page-infos h1 strong {
    color: #ff7200;
}

.head-page--quem-somos .head-page-infos p {
    margin: 0 0 1.5rem;
    color: #524f4b;
    line-height: 1.5;
}

.head-page--quem-somos .head-page-infos a.tag {
    min-width: 10rem;
    margin: 0;
    color: #fff;
    background: #ff7200;
}

.about-audience {
    padding-top: var(--hz-section-y);
    padding-bottom: var(--hz-section-y);
    scroll-margin-top: 6rem;
}

.about-audience .for-who-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: min(100%, 56rem);
    margin-top: 1.5rem;
}

.about-audience .for-who-item {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: var(--hz-card-pad);
    box-sizing: border-box;
}

.about-audience .for-who-item svg {
    margin-bottom: 1.25rem;
}

.about-people-data {
    width: 100%;
    gap: clamp(1.5rem, 5vw, 3rem);
    padding: var(--hz-section-y) var(--hz-gutter);
    box-sizing: border-box;
}

.about-people-data > .blk-5,
.about-people-data > .blk-6 {
    width: min(100%, 36rem);
    margin: 0;
}

.about-people-data .title {
    width: 100%;
    margin: 0;
}

.about-people-data .image-block {
    width: 100%;
    height: auto;
}

.about-services {
    padding-top: var(--hz-section-y);
}

.title-block {
    width: min(100%, 36rem);
    padding: 2rem 1.25rem 3rem;
    box-sizing: border-box;
}

.questions {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--hz-gutter);
    box-sizing: border-box;
}

.for-who-item {
    width: min(100%, 18rem);
}

/* Service pages */
.content.head-page--servico {
    overflow: visible;
    padding: clamp(5.75rem, 14vw, 7rem) 0 3.5rem;
    background: #fff9f7;
}

.head-page--servico > img {
    display: block;
    width: 100%;
    height: clamp(15rem, 66vw, 24rem);
    object-fit: cover;
    object-position: right center;
}

.head-page--servico .head-page-infos-wrapper {
    position: relative;
    inset: auto;
    z-index: 2;
    display: block;
    width: calc(100% - (var(--hz-gutter) * 2));
    margin: -2rem auto 0;
    padding: 1.5rem;
    border: 1px solid rgba(15, 42, 115, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1rem 2.5rem rgba(15, 42, 115, 0.08);
}

.head-page--servico .head-page-infos {
    display: block;
    width: 100%;
    padding: 0;
}

.head-page--servico .head-page-infos-text {
    width: 100%;
    margin: 0;
}

.head-page--servico .head-page-infos h1 {
    margin: 0 0 1rem;
    color: #111;
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    line-height: 1.1;
    text-wrap: balance;
}

.head-page--servico .head-page-infos h1 b,
.head-page--servico .head-page-infos h1 strong {
    color: #ff7200;
}

.head-page--servico .head-page-infos p {
    margin: 0 0 1.25rem;
    color: #524f4b;
    font-size: 1rem;
    line-height: 1.55;
}

.head-page--servico .head-page-infos a {
    min-height: var(--hz-touch);
    background: #ff7200;
    color: #fff;
}

.service-audience,
.service-intro,
.service-accordion {
    padding: var(--hz-section-y) var(--hz-gutter);
    box-sizing: border-box;
}

.service-audience > .title,
.service-accordion > .title {
    width: min(100%, 44rem);
    margin-bottom: 2rem;
}

.service-audience .for-who-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: min(100%, 44rem);
}

.service-audience .for-who-item {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid rgba(15, 42, 115, 0.06);
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(15, 42, 115, 0.05);
}

.service-audience .for-who-item svg {
    width: 2rem;
    margin-bottom: 1rem;
}

.service-audience .for-who-item h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.service-intro .title-block {
    width: min(100%, 40rem);
    margin: 0 auto 2rem;
    padding: 2rem 1.25rem 3rem;
}

.service-intro .title-block h3 {
    margin: 1.25rem auto;
    font-size: clamp(1.3rem, 5vw, 1.75rem);
    line-height: 1.35;
}

.service-intro .title-block p {
    line-height: 1.65;
}

.service-intro > .image-block {
    width: min(100%, 56rem);
    height: auto;
    border-radius: 1.25rem;
}

.service-accordion .questions {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 0;
}

.service-accordion .question-item {
    min-height: 3.5rem;
    margin: 0 0 0.75rem;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 0.85rem;
}

.service-accordion .question-item-title svg,
.service-accordion .question-item .question-person {
    width: 1.5rem;
    margin-right: 0.875rem;
}

.service-accordion .question-item .question-plus {
    flex: 0 0 0.875rem;
    width: 0.875rem;
    margin-left: 0.75rem;
    transition: transform 180ms ease;
}

.service-accordion .question--active .question-plus {
    transform: rotate(45deg);
}

.service-accordion .question-show-wrapper {
    width: 100%;
    margin: 0 0 1rem;
    padding: 1.5rem;
    box-sizing: border-box;
    border-radius: 0.85rem;
}

.service-accordion .question-show-infos,
.service-accordion .question-show-infos p {
    width: 100%;
}

.service-accordion .question-show-infos svg {
    margin-bottom: 1rem;
}

.service-accordion .question-show-infos h3 {
    margin-bottom: 1rem;
    line-height: 1.35;
}

.service-accordion .question-show-infos p {
    margin: 0;
    line-height: 1.65;
}

/* Contact */
.contact-page {
    padding: clamp(5rem, 12vw, 7.5rem) 0 var(--hz-section-y);
}

.contact-head-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--hz-gutter);
    box-sizing: border-box;
}

.contact-head-title,
.contact-head-form {
    width: 100%;
}

.contact-head-form .form-block-button .wpcf7-spinner {
    position: static;
    margin: 0.5rem 0 0;
    transform: none;
}

.contact-infos {
    width: min(100%, 36rem);
    padding-left: var(--hz-gutter);
    padding-right: var(--hz-gutter);
    box-sizing: border-box;
}

.contact-map,
.contact-social {
    width: 100%;
}

.map-iframe,
.map-iframe iframe,
.humanizza-osm-map__canvas {
    height: min(60vh, 420px);
}

.humanizza-map-google-btn {
    min-height: var(--hz-touch);
    display: inline-flex;
    align-items: center;
}

/* Footer */
footer .wrapper {
    padding: 0 var(--hz-gutter);
    box-sizing: border-box;
}

.footer-block {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.footer-block .footer-dropdown .dropdown-items {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: transparent;
}

.footer-copy {
    padding: 1.25rem var(--hz-gutter);
    text-align: center;
    gap: 0.75rem;
}

.whatsapp-button {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    min-width: var(--hz-touch);
    min-height: var(--hz-touch);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tablet: 641px–980px */
@media (min-width: 641px) and (max-width: 980px) {
    .head-page--quem-somos .head-page-infos-wrapper {
        width: min(calc(100% - 4rem), 46rem);
        margin-top: -4rem;
    }

    .about-audience .for-who-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-people-data {
        flex-direction: row;
        align-items: center;
    }

    .about-people-data > .blk-5,
    .about-people-data > .blk-6 {
        width: calc(50% - 1rem);
    }

    .services {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .services .service.blk-3:not(:last-child) {
        width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        flex: 0 1 calc(50% - 0.5rem);
    }

    .services .service.blk-3:last-child {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .title {
        width: min(90%, 40rem);
    }

    .testimonials .title,
    .testimonials .tag {
        text-align: left;
    }

    .testimony {
        flex-basis: min(62vw, 22rem);
        width: min(62vw, 22rem);
    }

    .head-page--servico > img {
        height: clamp(20rem, 52vw, 28rem);
    }

    .head-page--servico .head-page-infos-wrapper {
        width: min(calc(100% - 3rem), 46rem);
        margin-top: -3rem;
        padding: 2rem;
    }

    .head-page--servico .head-page-infos h1 {
        font-size: clamp(2.25rem, 6vw, 3.25rem);
    }

    .service-audience .for-who-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        width: min(100%, 50rem);
    }

    .service-intro .title-block {
        padding: 3rem 2.5rem 4rem;
    }

    .service-accordion .questions {
        width: min(100%, 50rem);
    }

    .service-accordion .question-show-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 2rem;
    }

    .service-accordion .question-show-infos {
        width: 100%;
    }

    .service-accordion .question-show-infos p {
        width: 100%;
    }
}

/* Contact page: compact, content-driven mobile layout */
@media (max-width: 640px) {
    .content.head-page.head-page--quem-somos {
        padding-top: clamp(6.5rem, 24vw, 7.5rem);
        padding-bottom: 2.5rem;
    }

    .head-page--quem-somos .head-page-media {
        min-height: clamp(18rem, 82vw, 23rem);
        border-radius: 0 0 1.5rem 0;
    }

    .head-page--quem-somos .head-page-infos-wrapper {
        width: calc(100% - (2 * var(--hz-gutter)));
        margin-top: -2rem;
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .head-page--quem-somos .head-page-infos h1 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .head-page--quem-somos .head-page-infos a.tag {
        width: 100%;
        box-sizing: border-box;
    }

    .about-audience {
        padding-top: 2.5rem;
    }

    .about-audience .title,
    .about-audience > .tag {
        text-align: left;
        margin-left: 0;
    }

    .about-audience .for-who-item {
        border-radius: 1rem;
    }

    .about-people-data {
        align-items: flex-start;
    }

    .about-people-data .title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.18;
    }

    .banner {
        min-height: clamp(45rem, 180vw, 48rem);
    }

    .banner-infos {
        justify-content: flex-start;
        padding: 3rem var(--hz-gutter) 20rem;
    }

    .banner-infos .title,
    .banner-infos p {
        width: 100%;
    }

    .banner-infos .title {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.08;
    }

    .banner .banner-bg img {
        top: auto;
        height: 48%;
        object-position: 72% bottom;
        clip-path: inset(10px 0 50px 0);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem);
        mask-image: linear-gradient(to bottom, transparent 0, #000 1.75rem);
    }

    .banner .banner-bg::after {
        background: linear-gradient(
            to bottom,
            #ff7200 0%,
            #ff7200 54%,
            rgba(255, 114, 0, 0.95) 58%,
            rgba(255, 114, 0, 0.55) 64%,
            rgba(255, 114, 0, 0) 74%
        );
    }

    .contact-page.head-page {
        min-height: 0;
        padding: 7rem 0 2.5rem;
        overflow: visible;
        background: linear-gradient(145deg, #ff7b00 0%, #ff6500 100%);
        border-radius: 0 0 2rem 0;
    }

    .contact-page .contact-head-image {
        display: none;
    }

    .contact-page .contact-head {
        position: static;
        inset: auto;
        display: block;
    }

    .contact-page .contact-head-wrapper {
        width: 100%;
        padding: 0 var(--hz-gutter);
        gap: 2rem;
    }

    .contact-page .contact-head-title {
        width: 100%;
        margin: 0;
    }

    .contact-page .contact-head-title h1 {
        margin: 0 0 1rem;
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.05;
    }

    .contact-page .contact-head-title p {
        margin: 0 0 0.35rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .contact-page .contact-head-title ul {
        width: 100%;
        margin: 1.5rem 0 0;
    }

    .contact-page .contact-head-title ul li {
        align-items: flex-start;
        margin-bottom: 0.75rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .contact-page .contact-head-title ul li svg {
        flex: 0 0 1rem;
        width: 1rem;
        height: 1rem;
        margin: 0.15rem 0.75rem 0 0;
    }

    .contact-page .contact-head-form {
        width: 100%;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 1rem;
        background: rgba(196, 78, 0, 0.18);
        box-shadow: 0 1rem 2.5rem rgba(142, 53, 0, 0.12);
    }

    .contact-head-form .form-block {
        margin: 0 0 0.75rem;
    }

    .contact-head-form .form-block > p {
        gap: 0.75rem;
    }

    .contact-head-form .form-block .wpcf7-form-control-wrap {
        margin: 0;
    }

    .contact-head-form .form-input,
    .contact-head-form .form-select,
    .contact-head-form .form-message {
        width: 100%;
        min-height: 3.25rem;
        margin: 0;
        padding: 0.875rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 0.65rem;
        background: rgba(207, 77, 0, 0.38);
        color: #fff;
        font-size: 1rem;
        line-height: 1.25;
        text-indent: 0;
    }

    .contact-head-form .form-message {
        min-height: 8.5rem;
        max-height: 14rem;
    }

    .contact-head-form .form-input::placeholder,
    .contact-head-form .form-message::placeholder {
        color: rgba(255, 255, 255, 0.86);
    }

    .contact-head-form .form-block-select .select-chevron {
        right: 1rem;
    }

    .contact-head-form .form-block-button {
        margin: 0.25rem 0 0;
    }

    .contact-head-form .form-block-button > p {
        width: 100%;
    }

    .contact-head-form .form-block-button input[type="submit"] {
        width: 100%;
        min-height: 3.25rem;
        border-radius: 0.75rem;
        color: #e95e00;
        font-size: 1rem;
    }

    .contact-head-form .form-block-button .wpcf7-spinner {
        align-self: center;
        margin: 0.5rem 0 0;
    }

    .contact-head-form .form-recaptcha-notice {
        margin: 1rem 0 0;
        font-size: 0.68rem;
        line-height: 1.45;
        text-align: center;
    }

    .start-contact {
        isolation: isolate;
        width: 100%;
        min-height: 31rem;
        margin: 1rem 0 0;
        padding: 0;
        overflow: hidden;
        border-radius: 0;
        background-position: 32% center;
        background-size: cover;
    }

    .start-contact::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(
            to bottom,
            rgba(255, 104, 0, 0.02) 20%,
            rgba(255, 104, 0, 0.18) 48%,
            rgba(226, 77, 0, 0.96) 82%,
            #d94a00 100%
        );
    }

    .start-contact .start-content {
        width: 100%;
        min-height: 31rem;
        padding: 17rem var(--hz-gutter) 2rem;
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .start-contact .start-content h2 {
        width: min(100%, 22rem);
        margin: 0 0 1.25rem;
        color: #fff;
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1.1;
        text-align: left;
        text-wrap: balance;
        text-shadow: 0 2px 16px rgba(92, 25, 0, 0.2);
    }

    .start-contact .start-content h2 b,
    .start-contact .start-content h2 strong {
        color: #fff;
    }

    .start-contact .start-content a {
        width: 100%;
        min-height: 3.25rem;
        box-sizing: border-box;
        background: #fff;
        color: #e95e00;
    }

    .contact-infos {
        width: 100%;
        margin: 3rem auto;
        gap: 2rem;
    }

    .contact-social > img {
        display: block;
        width: 100%;
        height: auto;
    }

    .contact-social-block {
        margin-top: 1rem;
    }

    .contact-map-title {
        margin: 0 0 1rem;
        padding: 1rem;
    }
}

/* Contact page: tablet and intermediate widths */
@media (min-width: 641px) and (max-width: 980px) {
    .contact-page.head-page {
        min-height: 0;
        padding: 7.5rem 0 4rem;
        overflow: visible;
        background: linear-gradient(145deg, #ff7b00 0%, #ff6500 100%);
        border-radius: 0 0 3rem 0;
    }

    .contact-page .contact-head-image {
        display: none;
    }

    .contact-page .contact-head {
        position: static;
        inset: auto;
        display: block;
    }

    .contact-page .contact-head-wrapper {
        width: min(100%, 48rem);
        margin: 0 auto;
        padding: 0 clamp(1.5rem, 5vw, 3rem);
        gap: 2.5rem;
    }

    .contact-page .contact-head-title {
        width: 100%;
        margin: 0;
    }

    .contact-page .contact-head-title h1 {
        margin: 2rem 0 1rem;
        font-size: clamp(2.5rem, 7vw, 3.5rem);
        line-height: 1.05;
    }

    .contact-page .contact-head-title ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1.5rem;
        width: 100%;
        margin: 1.75rem 0 0;
    }

    .contact-page .contact-head-title ul li {
        align-items: flex-start;
        margin: 0;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .contact-page .contact-head-title ul li:last-child {
        grid-column: 1 / -1;
    }

    .contact-page .contact-head-title ul li svg {
        flex: 0 0 1rem;
        width: 1rem;
        height: 1rem;
        margin: 0.15rem 0.75rem 0 0;
    }

    .contact-page .contact-head-form {
        width: 100%;
        padding: clamp(1.25rem, 3vw, 2rem);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 1.25rem;
        background: rgba(196, 78, 0, 0.18);
        box-shadow: 0 1rem 3rem rgba(142, 53, 0, 0.12);
    }

    .contact-head-form .form-block {
        margin: 0 0 1rem;
    }

    .contact-head-form .form-block > p {
        flex-direction: row;
        gap: 1rem;
    }

    .contact-head-form .form-block .wpcf7-form-control-wrap {
        width: calc(50% - 0.5rem);
        margin: 0;
    }

    .contact-head-form .form-block .wpcf7-form-control-wrap:only-child,
    .contact-head-form .form-block-select .wpcf7-form-control-wrap,
    .contact-head-form .form-block:has(.form-message) .wpcf7-form-control-wrap {
        width: 100%;
    }

    .contact-head-form .form-input,
    .contact-head-form .form-select,
    .contact-head-form .form-message {
        width: 100%;
        min-height: 3.5rem;
        margin: 0;
        padding: 1rem 1.125rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 0.7rem;
        background: rgba(207, 77, 0, 0.38);
        color: #fff;
        font-size: 1rem;
        text-indent: 0;
    }

    .contact-head-form .form-message {
        min-height: 9rem;
        max-height: 16rem;
    }

    .contact-head-form .form-input::placeholder,
    .contact-head-form .form-message::placeholder {
        color: rgba(255, 255, 255, 0.86);
    }

    .contact-head-form .form-block-button {
        margin: 0.25rem 0 0;
    }

    .contact-head-form .form-block-button > p {
        justify-content: flex-end;
    }

    .contact-head-form .form-block-button input[type="submit"] {
        width: min(15rem, 42%);
        min-height: 3.5rem;
        border-radius: 0.75rem;
        color: #e95e00;
        font-size: 1rem;
    }

    .contact-head-form .form-block-button .wpcf7-spinner {
        position: absolute;
        top: 50%;
        right: calc(min(15rem, 42%) + 0.5rem);
        margin: 0;
        transform: translateY(-50%);
    }

    .contact-head-form .form-recaptcha-notice {
        margin: 1rem 0 0;
        line-height: 1.5;
        text-align: right;
    }

    .start-contact {
        isolation: isolate;
        width: 100%;
        min-height: 30rem;
        margin: 1.5rem 0 0;
        padding: 0;
        overflow: hidden;
        background-position: left center;
        background-size: cover;
    }

    .start-contact .start-content {
        width: 52%;
        min-height: 30rem;
        margin-left: auto;
        padding: 3rem clamp(1.5rem, 5vw, 3rem);
        box-sizing: border-box;
        align-items: flex-start;
        justify-content: center;
    }

    .start-contact .start-content h2 {
        width: 100%;
        margin: 0 0 1.5rem;
        color: #fff;
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.1;
        text-align: left;
        text-wrap: balance;
        text-shadow: 0 2px 18px rgba(92, 25, 0, 0.2);
    }

    .start-contact .start-content h2 b,
    .start-contact .start-content h2 strong {
        color: #fff;
    }

    .start-contact .start-content a {
        min-width: 13rem;
        min-height: 3.5rem;
        box-sizing: border-box;
        background: #fff;
        color: #e95e00;
    }

    .contact-infos {
        width: min(100%, 48rem);
        margin: 4rem auto;
        gap: 2.5rem;
    }

    .contact-social > img {
        display: block;
        width: 100%;
        height: auto;
    }

    .contact-map-title {
        margin: 0 0 1rem;
    }
}
