:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f5f7f6;
    background:
        radial-gradient(circle at 15% 0%, rgba(52, 122, 95, .20), transparent 34rem),
        radial-gradient(circle at 90% 20%, rgba(130, 91, 42, .14), transparent 30rem),
        #071713;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.seo-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.seo-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.brand-link img {
    display: block;
    width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.seo-topbar nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.seo-topbar nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: .94rem;
}

.top-cta,
.primary-cta,
.secondary-cta,
.final-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.top-cta,
.primary-cta,
.final-cta > a {
    background: #f4efe0;
    color: #0a2019;
}

.secondary-cta {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.05);
}

.seo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    min-height: 560px;
    padding: clamp(48px, 8vw, 90px) clamp(0px, 2vw, 18px);
}

.eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .72;
}

.seo-hero h1 {
    max-width: 800px;
    margin: 12px 0 22px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .99;
    letter-spacing: -.045em;
}

.hero-lead {
    max-width: 760px;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.seo-hero-copy > p:not(.hero-lead) {
    max-width: 720px;
    line-height: 1.7;
    opacity: .86;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-visual {
    display: grid;
    justify-items: center;
    gap: 24px;
}

.hero-visual > img {
    width: min(100%, 330px);
    height: auto;
}

.hero-cards {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards img {
    width: clamp(66px, 7vw, 92px);
    margin-left: -15px;
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.35));
}

.hero-cards img:first-child {
    margin-left: 0;
}

.seo-index,
.seo-section,
.final-cta {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    background: rgba(8, 27, 22, .78);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.seo-index strong {
    display: block;
    margin-bottom: 14px;
}

.seo-index > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-index a {
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    text-decoration: none;
    font-size: .92rem;
}

.seo-section h2,
.final-cta h2 {
    max-width: 850px;
    margin: 8px 0 18px;
    font-size: clamp(1.7rem, 3.8vw, 3rem);
    line-height: 1.07;
    letter-spacing: -.025em;
}

.seo-section > p {
    max-width: 900px;
    line-height: 1.78;
    font-size: 1.03rem;
}

.seo-highlight {
    background:
        linear-gradient(
            135deg,
            rgba(31, 86, 67, .72),
            rgba(8, 27, 22, .84)
        );
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.feature-grid article {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

.feature-grid strong {
    font-size: 1.13rem;
}

.feature-grid p {
    margin-bottom: 0;
    line-height: 1.55;
    opacity: .8;
}

.text-cta {
    display: inline-flex;
    margin-top: 12px;
    font-weight: 900;
    text-decoration: none;
}

.faq-section details {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
}

.faq-section summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 800;
}

.faq-section details p {
    max-width: 850px;
    margin: 0;
    padding: 0 18px 18px;
    line-height: 1.65;
}

.final-cta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.final-cta img {
    width: 110px;
    height: auto;
}

.final-cta h2 {
    margin-bottom: 8px;
}

.final-cta p {
    margin: 0;
    line-height: 1.6;
    opacity: .82;
}

.seo-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 4px 44px;
    font-size: .9rem;
    opacity: .76;
}

.seo-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.seo-footer a {
    text-decoration: none;
}

@media (max-width: 900px) {
    .seo-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: center;
    }

    .seo-hero-copy > p,
    .seo-hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 10px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .final-cta {
        grid-template-columns: 90px 1fr;
    }

    .final-cta > a {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .seo-page {
        width: min(100% - 20px, 1180px);
    }

    .seo-topbar {
        align-items: flex-start;
    }

    .brand-link img {
        width: 112px;
    }

    .seo-topbar nav {
        gap: 8px 12px;
    }

    .seo-topbar nav > a:not(.top-cta) {
        display: none;
    }

    .top-cta {
        min-height: 40px;
        padding: 0 13px;
        font-size: .82rem;
    }

    .seo-hero {
        padding-top: 44px;
        padding-bottom: 48px;
    }

    .seo-hero h1 {
        font-size: clamp(2.25rem, 13vw, 3.6rem);
    }

    .seo-index,
    .seo-section,
    .final-cta {
        padding: 21px 17px;
        border-radius: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .final-cta img {
        margin: 0 auto;
    }

    .seo-footer {
        flex-direction: column;
        text-align: center;
    }

    .seo-footer nav {
        justify-content: center;
    }
}

/* =========================================================
   R170 - TORNEI BURRACO
   ========================================================= */

.quick-summary {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    background: linear-gradient(
        135deg,
        rgba(31, 86, 67, .72),
        rgba(8, 27, 22, .84)
    );
}

.quick-summary h2 {
    margin: 8px 0 24px;
    font-size: clamp(1.7rem, 3.8vw, 3rem);
}

.quick-grid,
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-grid article,
.facts-grid article {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
}

.quick-grid strong {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.quick-grid span {
    font-weight: 800;
}

.facts-grid {
    margin-top: 28px;
}

.facts-grid strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.facts-grid p {
    margin: 0;
    line-height: 1.6;
}

.lesson-box {
    max-width: 900px;
    margin-top: 24px;
    padding: 21px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}

.lesson-box strong {
    display: block;
    margin-bottom: 8px;
}

.lesson-box p {
    margin: 0;
    line-height: 1.65;
}

.bracket-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.bracket-flow span {
    position: relative;
    padding: 18px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    text-align: center;
    font-weight: 900;
}

.bracket-flow span:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.guide-links a {
    display: block;
    padding: 17px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 760px) {
    .quick-grid,
    .facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bracket-flow {
        grid-template-columns: 1fr 1fr;
    }

    .bracket-flow span::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .quick-summary {
        padding: 21px 17px;
        border-radius: 20px;
    }

    .quick-grid,
    .facts-grid,
    .bracket-flow,
    .guide-links {
        grid-template-columns: 1fr;
    }
}


/* R178 - internal related guides */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.related-grid article {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

.related-grid h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.related-grid h3 a {
    color: inherit;
    text-decoration: none;
}

.related-grid h3 a:hover {
    text-decoration: underline;
}

.related-grid p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
