.tac-course {
    --orange: #d35400;
    --cream: #f7dfcf;
    --wine: #7a1e2f;
    color: #1d1d1d;
    font-family: Montserrat, Arial, sans-serif;
    overflow: hidden;
}

.tac-course * {
    box-sizing: border-box;
}

.tac-course img {
    max-width: 100%;
    height: auto;
}

.tac-course h1,
.tac-course h2,
.tac-course h3,
.tac-course p {
    margin-top: 0;
}

#layout-content:has(.tac-course)+#layout-footer .footer {
    margin-top: 0;
}

.tac-course section {
    padding-left: max(20px, calc((100% - 1140px) / 2));
    padding-right: max(20px, calc((100% - 1140px) / 2));
}

.tac-course h2 {
    font:
        italic 500 clamp(42px, 5vw, 75px) / 1 "Playfair Display",
        serif;
}

.tac-course h2 span,
.tac-hero h1 span,
.tac-story h2 span {
    background: linear-gradient(90deg, #ff8c42, #d35400 50%, #a83e00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tac-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 40%;
    padding: 24px 25px;
    border: 1px solid #7a1e2f;
    border-radius: 100px;
    background: linear-gradient(67deg, #4a0f1c, #7a1e2f 40%, #b03a4c);
    box-shadow: 0 6px 13px #4a0f1c2e;
    color: #fff !important;
    font:
        700 18px Raleway,
        Arial,
        sans-serif;
    letter-spacing: 0.5px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.25s;
}

.tac-button:hover {
    box-shadow: 0 0 40px #7a1e2f80;
    transform: translateY(-2px);
}

.tac-button span {
    position: absolute;
    right: 25px;
    font: 28px/18px Arial;
}

.tac-button--orange,
.tac-learn .tac-button {
    border-color: var(--orange);
    background: linear-gradient(67deg, #a83e00, #d35400 40%, #ff8c42);
}

.tac-hero {
    display: flex;
    align-items: center;
    min-height: 1072px;
    border-bottom: 2px solid #b03a4c;
    background: #fff
        url("../img/cursos/torrao-de-acucar/Design-sem-nome-48.png") center left / cover
        no-repeat;
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
}

body:has(.tac-course) .navbar-dark .navbar-nav .nav-link,
body:has(.tac-course) .navbar-dark .navbar-nav .nav-link:focus,
body:has(.tac-course) .navbar-dark .navbar-nav .nav-link:hover {
    color: #edb354;
}

body:has(.tac-course) .navbar-dark:not(.bg-dark) .navbar-nav .nav-link.active {
    font-weight: 700;
}

body:has(.tac-course) .site-logo {
    filter: brightness(0) saturate(100%) invert(78%) sepia(43%) saturate(423%) hue-rotate(358deg) brightness(99%) contrast(89%);
}

body:has(.tac-course) .navbar-dark .navbar-toggler {
    border-color: #1d1d1d;
}

body:has(.tac-course) .navbar-dark.bg-dark .navbar-nav .nav-link,
body:has(.tac-course) .navbar-dark.bg-dark .navbar-nav .nav-link:focus,
body:has(.tac-course) .navbar-dark.bg-dark .navbar-nav .nav-link:hover {
    color: var(--light);
}

body:has(.tac-course) .navbar-dark.bg-dark .navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 400;
}

body:has(.tac-course) .navbar-dark.bg-dark .site-logo {
    filter: none;
}

body:has(.tac-course) .navbar-dark.bg-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55);
}

.tac-hero__content {
    width: min(50%, 570px);
}

.tac-eyebrow {
    display: block;
    margin-bottom: 22px;
    font:
        400 20px/1.6 Montserrat,
        sans-serif;
}

.tac-hero h1 {
    margin: 0;
    font:
        italic 500 75px/75px "Playfair Display",
        serif;
}

.tac-hero h1 span {
    font-size: 75px;
}

.tac-hero__headline {
    margin: 28px 0 22px !important;
    font:
        400 20px/1.6 Montserrat,
        sans-serif;
}

.tac-hero__description {
    margin: 0 !important;
    font:
        400 20px/1.6 Montserrat,
        sans-serif;
}

.tac-hero .tac-button {
    margin-top: 32px;
}

.tac-about {
    display: flex;
    align-items: center;
    min-height: 1000px;
    border-block: 2px solid #ffd1867a;
    background: var(--cream) url("../img/cursos/torrao-de-acucar/Design-sem-nome-55.png") top center/cover no-repeat;
}

.tac-about__content {
    width: min(50%, 570px);
    margin-left: 50%;
}

.tac-about hr {
    margin: 30px 0;
    border: 0;
    border-top: 2px solid #000;
}

.tac-about p {
    font:
        18px/22px Raleway,
        Arial,
        sans-serif;
}

.tac-about .tac-button {
    margin-top: 15px;
}

.tac-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 1080px;
    padding-top: 0;
    padding-bottom: 0;
}

.tac-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 8px;
    padding-top: 70px;
}

.tac-gallery img {
    width: 100%;
}

.tac-story__copy {
    padding: 100px 0 80px 40px;
}

.tac-story h2 {
    font-size: 62px;
    line-height: 62px;
}

.tac-story p {
    font-size: 20px;
    line-height: 1.6;
}

.tac-story .tac-button {
    margin-top: 15px;
}

.tac-ideal {
    min-height: 669px;
    margin-top: 70px;
    padding-top: 140px;
    padding-bottom: 70px;
    border-block: 2px solid #b03a4c;
    background: #f7dfcf;
}

.tac-ideal__heading {
    width: min(100%, 820px);
    margin: 0 auto 35px;
    text-align: center;
}

.tac-ideal__heading h2 {
    margin-bottom: 20px;
}

.tac-ideal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    width: min(100%, 1140px);
    margin: auto;
}

.tac-ideal__grid>img {
    width: 100%;
}

.tac-ideal h2 {
    margin-bottom: 40px;
    font-size: 62px;
    line-height: 62px;
}

.tac-lead {
    font-size: 20px;
    line-height: 1.2;
}

.tac-ideal h3 {
    font:
        700 29px Poppins,
        sans-serif;
}

.tac-list {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.tac-list li {
    position: relative;
    margin: 14px 0;
    padding-left: 30px;
    font:
        18px Poppins,
        sans-serif;
}

.tac-list--leaf li:before {
    position: absolute;
    left: 0;
    content: "✦";
    color: #395235;
}

.tac-list--check li:before {
    position: absolute;
    left: 0;
    content: "☑";
    color: var(--orange);
}

.tac-list--plus li:before {
    position: absolute;
    left: 0;
    content: "⊕";
    color: #308113;
}

.tac-ideal .tac-button {
    margin-top: 20px;
}

.tac-learn {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.tac-learn>h2 {
    margin-bottom: 20px;
}

.tac-learn>p {
    font-size: 20px;
}

.tac-learn__rule {
    width: min(570px, 100%);
    margin: 48px auto 56px;
    border-top: 2px solid #676767;
}

.tac-learn__cards {
    display: flex;
    width: min(856px, 100%);
    margin: 0 auto 80px;
    flex-direction: column;
    gap: 108px;
}

.tac-learn__cards article {
    position: relative;
    display: flex;
    min-height: 532px;
    align-items: center;
    padding: 40px 60px 40px 52%;
    justify-content: center;
    border-radius: 25px;
    background: linear-gradient(301deg, #a83e00, #ff8c42d6);
    color: #fff;
}

.tac-learn__cards article.tac-learn__card--wine {
    padding: 40px 52% 40px 35px;
    background: linear-gradient(253deg, #4a0f1c, #7a1e2f);
}

.tac-learn__cards img {
    position: absolute;
    top: -25px;
    bottom: -25px;
    left: 58px;
    width: 328px;
    height: 584px;
    border-radius: 20px;
    object-fit: cover;
}

.tac-learn__card--wine img {
    right: 58px;
    left: auto;
}

.tac-learn__card--wine h3 {
    color: #fff7e9;
}

.tac-learn__cards h3 {
    margin: 0;
    padding: 0;
    text-align: left;
    font:
        italic 500 48px/42px "Playfair Display",
        serif;
}

.tac-progressive {
    max-width: 94%;
    margin: 50px auto 30px;
    font-size: 18px !important;
    line-height: 1.6;
}

.tac-value {
    min-height: 669px;
    padding-top: 100px;
    padding-bottom: 100px;
    border-block: 2px solid #b03a4c;
    background: #f7f7f7;
    text-align: center;
}

.tac-value h2 {
    max-width: 670px;
    margin: auto;
    font-size: 62px;
    line-height: 62px;
}

.tac-value>p {
    max-width: 680px;
    margin: 35px auto;
    font-size: 20px;
    line-height: 1.6;
}

.tac-value>div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tac-value strong {
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(240deg, #a83e00, #d35400);
    color: #fff;
    font:
        400 22px/20px Raleway,
        sans-serif;
    text-transform: uppercase;
}

.tac-access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 917px;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--cream);
}

.tac-access__main,
.tac-access__extra {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tac-access__main {
    justify-content: center;
    padding: 60px 70px;
    text-align: center;
}

.tac-access__main h2 {
    max-width: 560px;
    margin-bottom: 30px;
    font:
        500 48px/1 "Playfair Display",
        serif;
    text-align: center;
    text-transform: uppercase;
}

.tac-access__main>p,
.tac-access__extra>p {
    max-width: 480px;
    font:
        22px/28px Raleway,
        sans-serif;
    text-align: center;
}

.tac-access__main .tac-list {
    width: min(100%, 500px);
    margin: 34px 0 0;
    text-align: left;
}

.tac-access__main .tac-list li {
    margin: 20px 0;
    font:
        22px Raleway,
        sans-serif;
}

.tac-access__extra {
    min-height: 817px;
    margin: 50px 0;
    justify-content: flex-start;
    padding: 35px 42px 28px;
    border-radius: 42px;
    background: #fff;
    box-shadow: 0 0 30px #0005;
}

.tac-access__extra img {
    width: min(100%, 581px);
    margin: 0 0 18px;
}

.tac-access__extra .tac-list {
    width: min(100%, 390px);
    margin: 26px 0;
}

.tac-access__extra .tac-list li {
    margin: 21px 0;
    font: 20px/1.35 Poppins, sans-serif;
}

.tac-access__extra .tac-button {
    width: min(100%, 456px);
    margin-top: auto;
    justify-content: center;
    border-color: var(--orange);
    background: linear-gradient(67deg, #a83e00, #d35400 40%, #ff8c42);
}

.tac-guarantee {
    display: flex;
    min-height: 650px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-top: 50px;
    padding-bottom: 80px;
    background: #fff;
    text-align: center;
}

.tac-guarantee > img {
    width: min(459px, 100%);
    filter: brightness(0) contrast(100%);
}

.tac-guarantee > h2 {
    margin: -42px 0 0;
    font-size: 62px;
    line-height: 1;
}

.tac-guarantee > h2 span {
    color: #1d1d1d;
    background: none;
    -webkit-text-fill-color: initial;
}

.tac-guarantee > p {
    width: min(60%, 684px);
    font:
        22px/28px Raleway,
        sans-serif;
}

.tac-guarantee .dl-price-lifetime {
    margin: 40px 10px 0;
    color: #54595f;
    font-family: "Abril Fatface", "Playfair Display", serif;
    font-size: 33px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}

.tac-guarantee .dl-price-lifetime span {
    color: #e06507;
}

.tac-guarantee .dl-price-box {
    position: relative;
    box-sizing: border-box;
    width: 710px;
    max-width: 66%;
    margin: 135px auto 25px;
    padding: 32px 88px 34px;
    border-radius: 15px;
    color: #fff;
    background: #e06507;
}

.tac-guarantee .dl-price-course-image {
    display: block;
    width: 360px;
    max-width: 100%;
    height: auto;
    margin: -113px auto 25px;
    filter: none;
}

.tac-guarantee .dl-price-course-title {
    margin: 0 0 14px;
    color: #fff;
    font-family: "Abril Fatface", "Playfair Display", serif;
    font-size: 49px;
    font-weight: 300;
    line-height: 0.8;
    text-transform: uppercase;
}

.tac-guarantee .dl-price-from {
    width: auto;
    margin: 0;
    color: #fff;
    font: 700 25px/1.2 Montserrat, sans-serif;
}

.tac-contact {
    display: flex;
    min-height: 558px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background: var(--cream);
    text-align: center;
}

.tac-contact h2 {
    font-size: 62px;
}

.tac-contact h2 span {
    color: #1a1a1a;
    background: none;
    -webkit-text-fill-color: initial;
}

.tac-contact p {
    width: min(50%, 570px);
    font:
        20px/1.2 Montserrat,
        sans-serif;
}

.tac-contact .tac-button {
    margin-top: 25px;
}

@media (max-width: 767px) {
    .tac-course section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tac-button {
        width: 100%;
        min-width: 0;
        padding: 20px;
        font-size: 15px;
    }

    .tac-button span {
        right: 20px;
    }

    .tac-hero {
        position: relative;
        min-height: 900px;
        align-items: flex-start;
        padding-top: 570px;
        padding-bottom: 45px;
        background: #fff;
        isolation: isolate;
    }

    .tac-hero::before,
    .tac-hero::after {
        position: absolute;
        z-index: 0;
        display: block;
        content: "";
        pointer-events: none;
    }

    .tac-hero::before {
        top: 100px;
        right: 0;
        left: 0;
        height: 470px;
        background: url("../img/cursos/torrao-de-acucar/Design-sem-nome-51.webp") top center / 360px auto no-repeat;
    }

    .tac-hero::after {
        top: 375px;
        right: 0;
        left: 0;
        height: 180px;
        background: url("../img/cursos/torrao-de-acucar/Design-sem-nome-7.png") center / 280px auto no-repeat;
    }

    .tac-hero__content {
        position: relative;
        z-index: 1;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .tac-eyebrow {
        margin: 0 0 8px;
        font-size: 16px;
    }

    .tac-hero h1,
    .tac-hero h1 span {
        font-size: 51px;
        line-height: 50px;
    }

    .tac-hero__headline,
    .tac-hero__description {
        font-size: 16px;
        line-height: 1.6;
    }

    .tac-hero__headline {
        margin: 20px 0 !important;
    }

    .tac-about {
        display: block;
        min-height: 0;
        padding-top: 310px;
        padding-bottom: 50px;
        background: var(--cream) url("../img/cursos/torrao-de-acucar/Design-sem-nome-54-1.webp") top center/contain no-repeat;
    }

    .tac-about__content {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .tac-about h2,
    .tac-story h2,
    .tac-ideal h2,
    .tac-value h2,
    .tac-contact h2 {
        font-size: 42px;
        line-height: 42px;
    }

    .tac-about p {
        font-size: 16px;
        line-height: 18px;
    }

    .tac-story {
        grid-template-columns: 1fr;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .tac-gallery {
        padding-top: 0;
    }

    .tac-story__copy {
        padding: 30px 0 0;
        text-align: center;
    }

    .tac-ideal {
        margin-top: 35px;
        padding-top: 65px;
        padding-bottom: 50px;
    }

    .tac-ideal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tac-ideal h2 {
        text-align: center;
    }

    .tac-ideal h3 {
        font-size: 18px;
    }

    .tac-list li {
        font-size: 17px;
    }

    .tac-learn {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .tac-learn__cards {
        gap: 80px;
        margin-bottom: 55px;
    }

    .tac-learn__cards article {
        min-height: 420px;
        /* A fonte em itálico avança alguns pixels além da caixa de texto.
           Esta folga impede que o título fique sob a imagem no celular. */
        padding: 35px 24px 35px 55%;
    }

    .tac-learn__cards article.tac-learn__card--wine {
        padding: 35px 55% 35px 24px;
    }

    .tac-learn__cards img {
        top: -18px;
        bottom: -18px;
        left: 20px;
        width: 42%;
        height: calc(100% + 36px);
    }

    .tac-learn__card--wine img {
        right: 20px;
        left: auto;
    }

    .tac-learn__cards h3 {
        font-size: clamp(27px, 7vw, 35px);
        line-height: .95;
    }

    .tac-progressive {
        max-width: 100%;
        font-size: 16px !important;
    }

    .tac-value {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .tac-value>div,
    .tac-access {
        grid-template-columns: 1fr;
    }

    .tac-value strong {
        min-height: 75px;
    }

    .tac-access {
        gap: 25px;
        padding-top: 0;
        padding-bottom: 25px;
    }

    .tac-access__main h2 {
        font-size: 36px;
    }

    .tac-access__main {
        padding: 60px 20px 20px;
    }

    .tac-access__extra {
        min-height: 0;
        margin: 20px 0 0;
        padding: 25px 20px 30px;
        border-radius: 30px;
    }

    .tac-access__main>p,
    .tac-access__extra>p {
        font-size: 16px;
        line-height: 18px;
    }

    .tac-access__main .tac-list li {
        font-size: 16px;
    }

    .tac-access__extra .tac-list {
        width: 100%;
    }

    .tac-guarantee {
        min-height: 0;
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .tac-guarantee > img {
        width: 69%;
    }

    .tac-guarantee > h2 {
        font-size: 42px;
    }

    .tac-guarantee > p {
        width: 100%;
        font-size: 16px;
        line-height: 18px;
    }

    .tac-guarantee .dl-price-lifetime {
        margin-top: 40px;
        font-size: 31px;
    }

    .tac-guarantee .dl-price-box {
        width: 100%;
        max-width: 100%;
        margin: 110px 0 25px;
        padding: 32px 24px;
    }

    .tac-guarantee .dl-price-course-image {
        width: 78%;
        max-width: none;
        margin: -83px auto 25px;
    }

    .tac-guarantee .dl-price-course-title {
        font-size: 23px;
        line-height: 1.4;
    }

    .tac-guarantee .dl-price-from {
        margin-top: 14px;
        font-size: 21px;
    }

    .tac-contact {
        min-height: 0;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .tac-contact p {
        width: 100%;
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    body:has(.tac-course) .navbar.fixed-top {
        background: var(--dark);
    }

    body:has(.tac-course) .site-logo {
        filter: none;
    }

    body:has(.tac-course) .navbar-dark .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.55);
    }
}
