/*
 * Dedicated design for /siti-web-per-palestre/.
 */

body.page-template-page-siti-web-per-palestre .site-main,
body.page-template-page-siti-web-per-palestre-php .site-main {
    padding-top: 0;
}

.rt-gym-page {
    --rt-gym-ink: #14171f;
    --rt-gym-muted: #5f6776;
    --rt-gym-line: rgba(20, 23, 31, .12);
    --rt-gym-accent: #6255ff;
    --rt-gym-accent-soft: #ebe8ff;
    --rt-gym-accent-pale: #f7f6ff;
    --rt-gym-blue: #5c74ff;
    --rt-gym-soft: #f4f7fb;
    --md-sys-color-primary: #6255ff;
    --md-sys-color-primary-container: #ebe8ff;
    --md-sys-color-on-primary-container: #1e165f;
    color: var(--rt-gym-ink);
    background: #fff;
}

.rt-gym-page h1,
.rt-gym-page h2,
.rt-gym-page h3 {
    letter-spacing: 0 !important;
}

.rt-gym-page .rt-web-section-head {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.rt-gym-page .rt-web-section-head p {
    max-width: 760px;
}

.rt-gym-hero.rt-web-hero::before {
    background:
        radial-gradient(circle at 18% 28%, rgba(98, 85, 255, .24) 0, rgba(98, 85, 255, .11) 32%, rgba(255, 255, 255, 0) 66%),
        radial-gradient(circle at 78% 16%, rgba(92, 116, 255, .16) 0, rgba(92, 116, 255, .08) 34%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(108deg, #ebe8ff 0%, #f7f8ff 46%, #fff 74%);
}

.rt-gym-hero .rt-seo-m3-eyebrow {
    max-width: 680px;
    color: var(--rt-gym-accent);
    font-size: 13px;
    line-height: 20px;
}

.rt-gym-hero .rt-seo-m3-hero-points li::before {
    background: var(--rt-gym-accent);
}

.rt-gym-hero .rt-seo-m3-button--filled,
.rt-gym-page .rt-seo-m3-button--filled,
.rt-gym-page .rt-seo-m3-audit-form__form button {
    background: var(--rt-gym-accent);
    border-color: var(--rt-gym-accent);
    color: #fff;
}

.rt-gym-hero .rt-seo-m3-button--outlined {
    background: #fff;
    border-color: rgba(20, 23, 31, .16);
    color: var(--rt-gym-ink);
}

.rt-gym-video {
    background: #0d1220;
}

.rt-gym-video::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: 24px;
    bottom: 24px;
    width: min(44%, 260px);
    height: 118px;
    border-radius: 24px;
    background:
        linear-gradient(90deg, var(--rt-gym-accent) 0 58%, rgba(255,255,255,.28) 58% 100%),
        #fff;
    box-shadow: 0 20px 44px rgba(8, 14, 28, .22);
    opacity: .92;
}

.rt-gym-benefits,
.rt-gym-includes,
.rt-gym-social,
.rt-gym-reasons {
    width: min(100% - (var(--rt-layout-gutter, 72px) * 2), var(--rt-layout-content, 1456px));
    margin: 0 auto;
    padding: 86px 0;
}

.rt-gym-benefits {
    padding-top: 104px;
}

.rt-gym-icon-grid,
.rt-gym-reasons__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.rt-gym-icon-grid {
    align-items: start;
}

.rt-gym-icon-grid article,
.rt-gym-reasons__grid article {
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--rt-gym-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 43, 62, .06);
}

.rt-gym-icon-grid article {
    position: relative;
    min-height: 0;
    overflow: hidden;
    gap: 16px;
    padding: 30px 28px 32px;
    border-color: #dbe1ec;
    border-radius: 32px;
    background: #f8f9fc !important;
    box-shadow: none;
}

.rt-gym-icon-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #6255ff 0%, #4285f4 52%, #8f63ff 100%);
}

.rt-gym-icon-grid article:hover {
    transform: none;
    box-shadow: none;
}

.rt-gym-icon-grid article:nth-child(2),
.rt-gym-reasons__grid article:nth-child(2) {
    background: #f7f9ff;
}

.rt-gym-icon-grid article:nth-child(3),
.rt-gym-reasons__grid article:nth-child(3) {
    background: var(--rt-gym-accent-pale);
}

.rt-gym-icon-grid .material-symbols-rounded,
.rt-gym-reasons__grid .material-symbols-rounded {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--rt-gym-accent-soft);
    color: var(--rt-gym-accent);
    font-size: 28px;
}

.rt-gym-icon-grid .material-symbols-rounded {
    display: none;
}

.rt-gym-icon-grid h3,
.rt-gym-reasons__grid h3 {
    margin: 0;
}

.rt-gym-icon-grid h3 {
    max-width: 100%;
    color: #151820;
    font-size: clamp(30px, 1.75vw, 36px);
    line-height: 1.14;
    font-weight: 800;
    text-wrap: balance;
}

.rt-gym-icon-grid p,
.rt-gym-reasons__grid p {
    margin: 0;
    color: var(--rt-gym-muted);
    font-size: 17px;
    line-height: 28px;
}

.rt-gym-icon-grid p {
    color: #5b6473;
    font-size: 20px;
    line-height: 1.52;
}

.rt-gym-includes {
    display: grid;
    gap: 26px;
}

.rt-gym-tabs__nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.rt-gym-tabs__tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--rt-gym-line);
    border-radius: 999px;
    background: #fff;
    color: var(--rt-gym-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.rt-gym-tabs__tab .material-symbols-rounded {
    font-size: 20px;
}

.rt-gym-tabs__tab.is-active {
    background: var(--rt-gym-accent);
    border-color: var(--rt-gym-accent);
    color: #fff;
}

.rt-gym-tabs__panels {
    max-width: 980px;
    margin-inline: auto;
}

.rt-gym-tabs__panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 280px;
    padding: 42px;
    border: 1px solid var(--rt-gym-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(98, 85, 255, .16), rgba(92, 116, 255, .08)),
        #fff;
    box-shadow: 0 24px 70px rgba(31, 43, 62, .08);
}

.rt-gym-tabs__panel.is-active {
    display: grid;
}

.rt-gym-tabs__panel[hidden] {
    display: none;
}

.rt-gym-tabs__icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: var(--rt-gym-accent);
    color: #fff;
}

.rt-gym-tabs__icon .material-symbols-rounded {
    font-size: 52px;
}

.rt-gym-tabs__panel h3 {
    margin: 0 0 12px;
}

.rt-gym-tabs__panel p {
    max-width: 720px;
    margin: 0;
    color: var(--rt-gym-muted);
    font-size: 19px;
    line-height: 31px;
}

.rt-gym-process.rt-web-process-timeline {
    border-top: 1px solid rgba(20, 23, 31, .08);
    border-bottom: 1px solid rgba(20, 23, 31, .08);
}

.rt-gym-process .rt-seo-m3-process__steps article {
    border-radius: 8px;
}

.rt-gym-social {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .42fr);
    gap: 58px;
    align-items: center;
}

.rt-gym-social__copy {
    display: grid;
    gap: 18px;
}

.rt-gym-social__copy h2,
.rt-gym-social__copy p {
    margin: 0;
}

.rt-gym-social__copy p {
    color: var(--rt-gym-muted);
    font-size: 18px;
    line-height: 31px;
}

.rt-gym-social__visual {
    position: relative;
    min-height: 520px;
}

.rt-gym-phone {
    position: absolute;
    inset: 10px 40px auto auto;
    width: 230px;
    min-height: 420px;
    padding: 28px 22px;
    border: 12px solid #111827;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(20, 23, 31, .22);
}

.rt-gym-phone span {
    display: block;
    height: 18px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #dbe2ea;
}

.rt-gym-phone span:nth-child(1) {
    height: 120px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--rt-gym-accent), var(--rt-gym-blue));
}

.rt-gym-phone span:nth-child(2) {
    width: 72%;
}

.rt-gym-phone span:nth-child(4) {
    width: 58%;
    background: var(--rt-gym-accent-soft);
}

.rt-gym-search-card {
    position: absolute;
    left: 0;
    bottom: 38px;
    width: min(100%, 390px);
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--rt-gym-line);
    box-shadow: 0 26px 70px rgba(20, 23, 31, .14);
}

.rt-gym-search-card .material-symbols-rounded {
    color: var(--rt-gym-blue);
}

.rt-gym-search-card strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.rt-gym-search-card p {
    margin: 10px 0 0;
    color: var(--rt-gym-muted);
    font-size: 16px;
    line-height: 25px;
}

.rt-gym-projects .rt-web-project-carousel__page h2,
.rt-gym-projects .rt-web-project-carousel__page p {
    color: #fff !important;
}

.rt-gym-page .rt-web-project-carousel.rt-web-projects.rt-gym-projects .rt-web-project-carousel__page,
.rt-gym-page .rt-web-project-carousel.rt-web-projects.rt-gym-projects .rt-web-project-carousel__page #rt-gym-projects-title,
.rt-gym-page .rt-web-project-carousel.rt-web-projects.rt-gym-projects .rt-web-project-carousel__page p {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.rt-gym-page .rt-web-project-carousel.rt-web-projects.rt-gym-projects .rt-web-project-carousel__page p {
    opacity: .86;
}

.rt-gym-reasons {
    padding-top: 96px;
}

.rt-gym-reasons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt-gym-reasons__grid article {
    min-height: 220px;
}

.rt-gym-final {
    margin-top: 20px;
}

.rt-gym-about .rt-service-tools__inner {
    border-radius: 8px;
    overflow: hidden;
}

.rt-gym-about .rt-service-tools__copy h2 {
    color: #fff !important;
}

.rt-gym-about .rt-service-tools__copy p {
    color: rgba(255, 255, 255, .88) !important;
}

.rt-gym-faq.rt-service-faq {
    padding-top: 104px;
}

.rt-gym-page [data-rt-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

.rt-gym-page [data-rt-visible] {
    opacity: 1;
    transform: none;
}

@media (max-width: 1120px) {
    .rt-gym-benefits,
    .rt-gym-includes,
    .rt-gym-social,
    .rt-gym-reasons {
        width: calc(100% - 36px);
    }

    .rt-gym-icon-grid,
    .rt-gym-reasons__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rt-gym-social {
        grid-template-columns: 1fr;
    }

    .rt-gym-social__visual {
        min-height: 460px;
    }
}

@media (max-width: 767px) {
    .rt-gym-benefits,
    .rt-gym-includes,
    .rt-gym-social,
    .rt-gym-reasons {
        padding: 68px 0;
    }

    .rt-gym-icon-grid,
    .rt-gym-reasons__grid {
        grid-template-columns: 1fr;
    }

    .rt-gym-icon-grid article,
    .rt-gym-reasons__grid article {
        min-height: 0;
        padding: 24px;
    }

    .rt-gym-tabs__nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .rt-gym-tabs__tab {
        flex: 0 0 auto;
    }

    .rt-gym-tabs__panel {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 26px;
    }

    .rt-gym-tabs__icon {
        width: 78px;
        height: 78px;
        border-radius: 22px;
    }

    .rt-gym-tabs__icon .material-symbols-rounded {
        font-size: 38px;
    }

    .rt-gym-social__visual {
        min-height: 430px;
    }

    .rt-gym-phone {
        right: 0;
        width: 190px;
    }

    .rt-gym-search-card {
        bottom: 0;
    }

}
