.home-modern {
    --home-navy: #102341;
    --home-navy-deep: #08172c;
    --home-blue: #1f5f9d;
    --home-sky: #26c3da;
    --home-mint: #31a98d;
    --home-ink: #17253a;
    --home-muted: #617087;
    --home-line: #dce4ee;
    --home-surface: #ffffff;
    --home-soft: #f4f7fb;
    color: var(--home-ink);
    overflow: hidden;
    background: var(--home-surface);
}

.home-modern .home-shell {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
}

.home-modern .home-section {
    padding: 88px 0;
}

.home-modern .home-eyebrow {
    margin: 0 0 14px;
    color: var(--home-sky);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-modern .home-section-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.home-modern .home-section-heading h2,
.home-modern .home-editorial-card h2,
.home-modern .home-final-cta h2 {
    margin: 0 0 14px;
    color: var(--home-navy);
    font-size: 38px;
    line-height: 1.18;
}

.home-modern .home-section-heading > p:last-child,
.home-modern .home-final-cta p {
    margin: 0;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.7;
}

.home-modern .home-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-image: url("../img/home/hero-torre-controle.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-modern .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 23, 44, 0.92) 0%, rgba(8, 23, 44, 0.56) 48%, rgba(8, 23, 44, 0.04) 100%);
    pointer-events: none;
}

.home-modern .home-hero-layout {
    position: relative;
    z-index: 1;
    display: block;
    padding-top: 74px;
    padding-bottom: 74px;
}

.home-modern .home-hero-content {
    max-width: 720px;
}

.home-modern .home-hero-content h1 {
    max-width: 700px;
    margin: 0;
    color: #ffffff;
    font-size: 58px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-modern .home-hero-description {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d9e5f2;
    font-size: 19px;
    line-height: 1.7;
}

.home-modern .home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.home-modern .home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-modern .home-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.home-modern .home-button-primary {
    color: var(--home-navy-deep);
    background: var(--home-sky);
    box-shadow: 0 12px 30px rgba(38, 195, 218, 0.2);
}

.home-modern .home-button-primary:hover {
    color: var(--home-navy-deep);
    background: #58d6e7;
}

.home-modern .home-button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.06);
}

.home-modern .home-button-secondary:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.home-modern .home-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
    color: #f7fbff;
    font-size: 13px;
    font-weight: 700;
}

.home-modern .home-hero-highlights span {
    position: relative;
    padding-left: 18px;
    color: #F2F6FA;
}

.home-modern .home-hero-highlights span::before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--home-sky);
    box-shadow: 0 0 0 4px rgba(38, 195, 218, 0.14);
}

.home-modern .home-courses {
    scroll-margin-top: 20px;
    background: var(--home-soft);
}

.home-modern .home-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-modern .home-course-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 35, 65, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 35, 65, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-modern .home-course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 112, 202, 0.18);
    box-shadow: 0 16px 36px rgba(16, 35, 65, 0.1);
}

.home-modern .home-course-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dce5ef;
}

.home-modern .home-course-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 300ms ease;
}

.home-modern .home-course-card:hover .home-course-image img {
    transform: scale(1.035);
}

.home-modern .home-course-body {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    box-sizing: border-box;
    padding: 24px;
}

.home-modern .home-course-body h3 {
    margin: 0 0 12px;
    color: var(--home-navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.home-modern .home-course-description {
    flex-grow: 1;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-modern .home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 22px;
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease;
}

.home-modern .home-text-link:hover {
    color: var(--home-navy);
    text-decoration: none;
}

.home-modern .home-text-link span {
    font-size: 18px;
    transition: transform 180ms ease;
}

.home-modern .home-text-link:hover span {
    transform: translateX(3px);
}

.home-modern .home-platform {
    position: relative;
    background: var(--home-navy);
}

.home-modern .home-platform::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 80px solid rgba(38, 195, 218, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.home-modern .home-section-heading-light h2,
.home-modern .home-section-heading-light > p:last-child {
    color: #ffffff;
}

.home-modern .home-section-heading-light > p:last-child {
    color: #c8d6e6;
}

.home-modern .home-platform-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-modern .home-platform-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #dce7f1;
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 14px 32px rgba(4, 18, 38, 0.16);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.home-modern .home-platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 195, 218, 0.3);
    background: rgba(255, 255, 255, 0.105);
    box-shadow: 0 20px 40px rgba(4, 18, 38, 0.22);
}

.home-modern .home-platform-icon {
    width: 170px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.home-modern .home-platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-modern .home-platform-card:nth-child(-n+2) .home-platform-icon img {
    transform: scale(1.23);
    transform-origin: left bottom;
}

.home-modern .home-platform-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.3;
}

.home-modern .home-platform-card > div:last-child,
.home-modern .home-platform-card > div:last-child p {
    margin: 0;
    color: #d8e4ef;
    font-size: 14px;
    line-height: 1.7;
}

.home-modern .home-editorial {
    padding-top: 70px;
    padding-bottom: 0;
    background: var(--home-surface);
}

.home-modern .home-editorial-card {
    padding: 42px 48px;
    border-left: 4px solid var(--home-sky);
    border-radius: 0 14px 14px 0;
    background: var(--home-soft);
}

.home-modern .home-editorial-card > div,
.home-modern .home-editorial-card > div p {
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.75;
}

.home-modern .home-approved {
    background: var(--home-surface);
}

.home-modern .home-approved-carousel {
    position: relative;
    padding: 0 42px;
}

.home-modern .home-approved-card {
    min-width: 0;
    box-sizing: border-box;
    padding: 7px;
}

.home-modern .home-approved-card > img {
    width: 286px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(16, 35, 65, 0.12);
}

.home-modern .home-flyup {
    background: #f5f8fc;
}

.home-modern .home-flyup-heading {
    max-width: 760px;
}

.home-modern .home-flyup-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
    overflow: hidden;
    padding: 52px 60px;
    box-sizing: border-box;
    border: 1px solid rgba(16, 35, 65, 0.09);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(16, 35, 65, 0.08);
}

.home-modern .home-flyup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.home-modern .home-flyup-logo img {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.home-modern .home-flyup-content {
    min-width: 0;
}

.home-modern .home-flyup-brand {
    margin: 0 0 18px;
    color: var(--home-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.home-modern .home-flyup-description {
    margin: 0 0 28px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.75;
}

.home-modern .home-flyup-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--home-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-modern .home-flyup-link:hover {
    color: var(--home-navy);
    background: var(--home-sky);
    text-decoration: none;
    transform: translateY(-2px);
}

.home-modern .home-flyup-link span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 900px) {
    .home-modern .home-flyup-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px;
    }

    .home-modern .home-flyup-logo img {
        width: 300px;
    }
}

@media (max-width: 640px) {
    .home-modern .home-flyup-heading {
        margin-bottom: 32px;
    }

    .home-modern .home-flyup-panel {
        gap: 26px;
        padding: 36px 24px 30px;
        border-radius: 20px;
    }

    .home-modern .home-flyup-logo img {
        width: 260px;
    }

    .home-modern .home-flyup-brand {
        font-size: 20px;
    }

    .home-modern .home-flyup-link {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 1024px) {
    .home-modern .home-approved-card {
        margin-right: -2.5px;
    }
}

/* Rodapé exclusivo da Home */
.home-modern + .dv-container {
    color: #cbd6e2;
    background: #081a30;
    border-top: 1px solid rgba(38, 195, 218, 0.22);
}

.home-modern + .dv-container > .dv-center {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.home-modern + .dv-container .dv-slide,
.home-modern + .dv-container .dv-line-three {
    width: 100%;
    float: none;
}

.home-modern + .dv-container .dv-line-three {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.home-modern + .dv-container .dv-line-three > .dv-column {
    width: auto;
    min-width: 0;
    float: none;
    overflow: visible;
}

.home-modern + .dv-container .dv-p-hdpi {
    padding: 28px 0;
}

.home-modern + .dv-container .dv-column:nth-child(2) .dv-p-hdpi::before,
.home-modern + .dv-container .dv-column:nth-child(3) .dv-p-hdpi::before {
    display: block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-modern + .dv-container .dv-column:nth-child(2) .dv-p-hdpi::before {
    content: "Links úteis";
}

.home-modern + .dv-container .dv-column:nth-child(3) .dv-p-hdpi::before {
    content: "Segurança";
}

.home-modern + .dv-container p {
    margin-top: 0;
    margin-bottom: 9px;
    color: #ffffff;
    line-height: 1.45;
}

.home-modern + .dv-container a {
    color: #cbd6e2;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.home-modern + .dv-container a:hover {
    color: #26c3da;
    text-decoration: none;
}

.home-modern + .dv-container .dv-column:first-child .dv-p-hdpi > a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.home-modern + .dv-container .dv-column:first-child .dv-p-hdpi > a:hover {
    background: #26c3da;
}

.home-modern + .dv-container .dv-column:first-child .dv-p-hdpi > a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-modern + .dv-container .dv-column:nth-child(3) img {
    width: 112px;
    height: auto;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .home-modern + .dv-container .dv-line-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 32px;
    }

    .home-modern + .dv-container .dv-column:nth-child(3) {
        grid-column: 1 / -1;
        text-align: left;
    }

    .home-modern + .dv-container .dv-column:nth-child(3) .dv-p-hdpi {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .home-modern + .dv-container > .dv-center {
        padding: 0 20px;
    }

    .home-modern + .dv-container .dv-line-three {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-modern + .dv-container .dv-column:nth-child(3) {
        grid-column: auto;
    }

    .home-modern + .dv-container .dv-p-hdpi,
    .home-modern + .dv-container .dv-column:nth-child(3) .dv-p-hdpi {
        padding: 22px 0;
    }

    .home-modern + .dv-container .dv-column + .dv-column {
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }
}

.home-modern .home-carousel-arrow {
    width: 42px;
    height: 42px;
    top: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-line);
    border-radius: 50%;
    color: var(--home-navy);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 35, 65, 0.12);
}

.home-modern .home-carousel-arrow img {
    width: 18px;
    height: auto;
}

.home-modern .home-carousel-prev {
    left: -4px;
}

.home-modern .home-carousel-next {
    right: -4px;
}

.home-modern .home-carousel-dots {
    margin-top: 20px;
}

.home-modern .home-campaigns {
    background: var(--home-soft);
}

.home-modern .home-campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-modern .home-campaign-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    background: #ffffff;
}

.home-modern .home-campaign-image {
    display: block;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #dce5ef;
}

.home-modern .home-campaign-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-modern .home-campaign-body {
    padding: 22px 24px 24px;
}

.home-modern .home-campaign-body h3 {
    margin: 0;
    color: var(--home-navy);
    font-size: 18px;
    line-height: 1.4;
}

.home-modern .home-partners {
    padding-top: 72px;
    padding-bottom: 72px;
    background: #ffffff;
}

.home-modern .home-section-heading-compact {
    margin-bottom: 30px;
}

.home-modern .home-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-modern .home-partner-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    background: #ffffff;
}

.home-modern .home-partner-card a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--home-soft);
}

.home-modern .home-partner-card img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
}

.home-modern .home-partner-card p {
    margin: 13px 4px 2px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.55;
}

.home-modern .home-final-cta {
    padding: 66px 0;
    background: linear-gradient(125deg, var(--home-blue), var(--home-navy));
}

.home-modern .home-final-cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.home-modern .home-final-cta h2 {
    color: #ffffff;
}

.home-modern .home-final-cta p {
    color: #d4e1ee;
}

.home-modern .home-final-cta .home-actions {
    flex: 0 0 auto;
    margin-top: 0;
}

.home-modern .home-button-light {
    color: var(--home-navy);
    background: #ffffff;
}

.home-modern .home-button-light:hover {
    color: var(--home-navy);
    background: #edf7fa;
}

.home-modern .home-button-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.58);
}

.home-modern .home-button-outline-light:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

@media only screen and (max-width: 980px) {
    .home-modern .home-section {
        padding: 72px 0;
    }

    .home-modern .home-hero {
        min-height: auto;
    }

    .home-modern .home-hero-content h1 {
        font-size: 46px;
    }

    .home-modern .home-course-grid,
    .home-modern .home-campaign-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-modern .home-platform-card {
        padding: 26px;
    }

    .home-modern .home-final-cta-layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }
}

@media only screen and (max-width: 720px) {
    .home-modern .home-shell {
        width: calc(100% - 32px);
    }

    .home-modern .home-section {
        padding: 58px 0;
    }

    .home-modern .home-section-heading {
        margin-bottom: 32px;
    }

    .home-modern .home-section-heading h2,
    .home-modern .home-editorial-card h2,
    .home-modern .home-final-cta h2 {
        font-size: 30px;
    }

    .home-modern .home-hero-layout {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .home-modern .home-hero-content h1 {
        font-size: 40px;
    }

    .home-modern .home-hero-description {
        font-size: 17px;
    }

    .home-modern .home-course-grid,
    .home-modern .home-platform-grid,
    .home-modern .home-campaign-grid,
    .home-modern .home-partner-grid {
        grid-template-columns: 1fr;
    }

    .home-modern .home-course-body {
        min-height: 0;
    }

    .home-modern .home-platform-card {
        padding: 28px;
    }

    .home-modern .home-editorial {
        padding-top: 54px;
        padding-bottom: 0;
    }

    .home-modern .home-editorial-card {
        padding: 30px 26px;
    }

    .home-modern .home-approved-carousel {
        padding: 0 32px;
    }

    .home-modern .home-partner-card img {
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }
}

@media only screen and (max-width: 480px) {
    .home-modern .home-shell {
        width: calc(100% - 24px);
    }

    .home-modern .home-hero-layout {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .home-modern .home-hero-content h1 {
        font-size: 34px;
    }

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

    .home-modern .home-button {
        width: 100%;
        min-height: 52px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .home-modern .home-hero-highlights {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-modern .home-course-body,
    .home-modern .home-campaign-body {
        padding: 20px;
    }

    .home-modern .home-platform-card {
        padding: 24px;
    }

    .home-modern .home-final-cta .home-actions {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-modern .home-button,
    .home-modern .home-course-card,
    .home-modern .home-course-image img,
    .home-modern .home-platform-card,
    .home-modern .home-text-link span {
        transition: none;
    }
}
