/* ===========================
   The Bruumers — Per i turisti (tourists.html, en/tourists.html)
   Stessi token di styles.css: nero, oro, Outfit/Inter, card con bordo sottile.
   =========================== */

/* ── Hero: la strada sulla costa, il testo a sinistra ── */
.tr-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 760px);
    padding: 150px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.tr-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.tr-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.tr-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 45%, rgba(10, 10, 10, 0.25) 100%),
        linear-gradient(0deg, var(--black) 0%, rgba(10, 10, 10, 0) 35%);
}

.tr-hero-content {
    width: 100%;
}

.tr-hero-content > * {
    max-width: 640px;
}

.tr-hero-content > .tr-hero-title {
    max-width: 800px;
}

.tr-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6.4vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin: 4px 0 22px;
}

.tr-hero-lead {
    font-size: 18px;
    line-height: 1.8;
    color: #d4d4d4;
}

.tr-hero-lead strong {
    color: var(--text-primary);
}

.tr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
    list-style: none;
}

.tr-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 30px;
    background: rgba(10, 10, 10, 0.55);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tr-chips i {
    color: var(--gold);
}

.tr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Sezioni ── */
.tr-section {
    padding: 104px 0;
}

.tr-section-alt {
    background: var(--black-soft);
}

.tr-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tr-values .value-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.tr-center {
    text-align: center;
    margin-top: 40px;
}

/* ── Come funziona: quattro tappe lungo una strada tratteggiata ── */
.tr-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    list-style: none;
    counter-reset: none;
}

/* un tratto di strada da ogni tappa alla successiva (colonne da 28px di distanza) */
.tr-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(50% + 38px);
    width: calc(100% - 48px);
    border-top: 2px dashed rgba(201, 168, 76, 0.45);
}

.tr-step {
    position: relative;
    text-align: center;
}

.tr-step-pin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--black-soft);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    box-shadow: 0 0 0 8px var(--black-soft), 0 4px 24px rgba(201, 168, 76, 0.25);
}

.tr-step:last-child .tr-step-pin {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-size: 20px;
}

.tr-step h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tr-step p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.tr-step a,
.tr-rule p a,
.tr-faq a {
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}

.tr-step a:hover,
.tr-faq a:hover {
    color: var(--gold-light);
}

/* ── La prossima uscita (tourists.js) ── */
.tr-next {
    max-width: 760px;
    margin: 56px auto 0;
}

.tr-next-card {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 20px;
    background: var(--dark-card);
    transition: all 0.4s var(--ease);
}

.tr-next-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tr-next-img {
    width: 132px;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
    background: var(--dark);
}

.tr-next-body {
    min-width: 0;
}

.tr-next-kicker {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.tr-next-body h3 {
    margin: 4px 0 8px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.tr-next-date,
.tr-next-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.tr-next-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 2px;
}

.tr-next-date i,
.tr-next-meta i {
    width: 16px;
    color: var(--gold);
}

.tr-next-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

.tr-next-more {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Regolamento in breve ── */
.tr-rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tr-rule {
    display: flex;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: var(--dark-card);
    transition: border-color 0.4s var(--ease);
}

.tr-rule:hover {
    border-color: rgba(201, 168, 76, 0.2);
}

.tr-rule > i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    font-size: 18px;
    color: var(--gold);
}

.tr-rule h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tr-rule p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.tr-rule p.tr-rule-art {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tr-rule p.tr-rule-art a {
    border-bottom: none;
}

.tr-quote {
    margin: 56px auto 0;
    max-width: 760px;
    text-align: center;
}

.tr-quote p {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.tr-quote cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Cosa portare ── */
.tr-kit {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

.tr-kit-intro p {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tr-kit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.tr-kit-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: var(--dark-card);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.tr-kit-list i {
    margin-top: 4px;
    color: var(--gold);
}

.tr-kit-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Domande ── */
.tr-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-faq details {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: var(--dark-card);
    transition: border-color 0.3s var(--ease);
}

.tr-faq details[open] {
    border-color: rgba(201, 168, 76, 0.28);
}

.tr-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.tr-faq summary::-webkit-details-marker {
    display: none;
}

.tr-faq summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
}

.tr-faq details[open] summary::after {
    transform: rotate(45deg);
}

.tr-faq summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 14px;
}

.tr-faq details p {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ── Contatti ── */
.tr-cta {
    padding-top: 40px;
}

.tr-cta-box {
    padding: 64px 48px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at top, rgba(201, 168, 76, 0.12), transparent 60%),
        var(--dark-card);
    text-align: center;
}

.tr-cta-box > p {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 17px;
    color: var(--text-secondary);
}

.tr-cta-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    text-align: left;
}

.tr-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s var(--ease);
}

.tr-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tr-contact > i {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    color: var(--white);
}

.tr-contact span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tr-contact strong {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.tr-contact small {
    font-size: 13px;
    color: var(--text-muted);
}

.tr-contact-instagram > i {
    background: linear-gradient(45deg, var(--instagram-1), var(--instagram-3), var(--instagram-5));
}

.tr-contact-instagram:hover {
    border-color: rgba(220, 39, 67, 0.45);
}

.tr-contact-whatsapp > i {
    background: var(--whatsapp);
}

.tr-contact-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.45);
}

.tr-contact-rides > i {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.tr-contact-rides:hover {
    border-color: rgba(201, 168, 76, 0.45);
}

/* ── Tablet e telefono ── */
@media (max-width: 1024px) {
    .tr-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-cta-actions {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 860px) {
    .tr-steps {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 520px;
        margin: 0 auto;
    }

    /* la strada diventa verticale, le tappe a sinistra */
    .tr-step:not(:last-child)::after {
        top: 66px;
        bottom: 10px;
        left: 27px;
        width: 0;
        border-top: none;
        border-left: 2px dashed rgba(201, 168, 76, 0.45);
    }

    .tr-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 20px;
        padding-bottom: 32px;
        text-align: left;
    }

    .tr-step:last-child {
        padding-bottom: 0;
    }

    .tr-step-pin {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .tr-step h3 {
        margin-top: 12px;
    }

    .tr-rules {
        grid-template-columns: 1fr;
    }

    .tr-kit {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .tr-hero {
        min-height: 0;
        padding: 120px 0 56px;
    }

    .tr-hero-bg::after {
        background:
            linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.88) 55%, var(--black) 100%);
    }

    .tr-hero-lead {
        font-size: 16px;
    }

    .tr-hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .tr-section {
        padding: 72px 0;
    }

    .tr-values {
        grid-template-columns: 1fr;
    }

    .tr-rule {
        padding: 20px;
        gap: 14px;
    }

    .tr-next-card {
        gap: 16px;
        padding: 12px;
    }

    .tr-next-img {
        width: 92px;
    }

    .tr-next-body h3 {
        font-size: 18px;
    }

    .tr-cta-box {
        padding: 44px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-next-card,
    .tr-contact {
        transition: none;
    }

    .tr-next-card:hover,
    .tr-contact:hover {
        transform: none;
    }
}

@media print {
    .tr-hero-bg,
    .tr-hero-actions,
    .tr-cta,
    .tr-next {
        display: none !important;
    }
}
