/**
 * Region Page Styles
 * Tenuta Bally Theme - La Nostra Regione
 */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.tb-region-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body.tb-region-body,
body.tb-region-body .site,
.tb-region-page,
.tb-region-page .site-content,
.tb-region-page .content-area {
    background-color: #0a0a0a;
    transition: background-color 0.6s ease;
}

body.tb-region-body.tb-region--light,
body.tb-region-body.tb-region--light .site,
.tb-region-page.tb-region--light,
.tb-region-page.tb-region--light .site-content,
.tb-region-page.tb-region--light .content-area {
    background-color: #f8f8f8;
}

.tb-region-page .site-main {
    padding: 0;
    max-width: none;
    position: relative;
    z-index: 1;
}

/* Page-level parallax background */
.tb-region-parallax {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150vh;
    background-size: 120% auto;
    background-position: top center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tb-region-parallax.initialized {
    opacity: 1;
}

/* ==========================================================================
   Hero Section (Terroir)
   ========================================================================== */

.tb-region-hero {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -120px;
    padding-top: 280px;
    display: flex;
    align-items: flex-start;
    background-color: transparent;
    overflow: hidden;
    padding-bottom: 6rem;
}


.tb-region-hero__inner {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 12rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

.tb-region-hero__left {
    max-width: 340px;
    padding-top: 4rem;
}

.tb-region-hero__icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--tb-accent-color, #dda759);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tb-region-hero__icon i {
    font-size: 1.4rem;
    color: var(--tb-accent-color, #dda759);
}

.tb-region-hero__pretitle {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.tb-region-hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2.5rem;
}

.tb-region-hero__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.tb-region-hero__right {
    padding-top: 4rem;
    margin-left: auto;
    padding-right: 2rem;
}

.tb-region-hero__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.tb-region-hero__caption {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0 0;
    max-width: 400px;
}

/* ==========================================================================
   Region Stats Section
   ========================================================================== */

.tb-region-stats {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: transparent;
    padding: 5rem 4rem;
}

.tb-region-stats__title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.tb-region-stats__line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: background 0.6s ease;
}

.tb-region-stats__title h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    transition: color 0.6s ease;
}

.tb-region-stats__title h2 em {
    font-style: italic;
}

.tb-region-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.tb-region-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tb-region-stat__icon {
    margin-bottom: 1.5rem;
}

.tb-region-stat__icon svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.6s ease;
}

.tb-region-stat__value {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.6s ease;
}

.tb-region-stat__label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.6s ease;
}

/* Stats section - light mode colors */
.tb-region--light .tb-region-stats__line {
    background: rgba(0, 0, 0, 0.3);
}

.tb-region--light .tb-region-stats__title h2 {
    color: var(--tb-heading-color, #1a1a1a);
}

.tb-region--light .tb-region-stat__icon svg {
    color: rgba(0, 0, 0, 0.6);
}

.tb-region--light .tb-region-stat__value {
    color: var(--tb-heading-color, #1a1a1a);
}

.tb-region--light .tb-region-stat__label {
    color: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Climate Section
   ========================================================================== */

.tb-region-climate {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.tb-region-climate__image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.tb-region-climate__card {
    position: relative;
    width: 400px;
    max-width: 90%;
    background: var(--tb-primary-color, #141414);
    padding: 3rem;
    margin-top: -150px;
    margin-left: auto;
    margin-right: 4rem;
    border-radius: 4px;
    z-index: 1;
    will-change: transform;
}

.tb-region-climate__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.5rem;
}

.tb-region-climate__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ==========================================================================
   Soil Section
   ========================================================================== */

.tb-region-soil {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    height: 550px;
}

.tb-region-soil__left {
    background: var(--tb-primary-color, #141414);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.tb-region-soil__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.5rem;
}

.tb-region-soil__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.tb-region-soil__center {
    position: relative;
    background: var(--tb-primary-color, #141414);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tb-region-soil__caption {
    display: inline-block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    color: #fff;
    background: var(--tb-accent-color, #dda759);
    padding: 0.5rem 1.5rem;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Soil Slider */
.tb-soil-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tb-soil-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
}

.tb-soil-slider__slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tb-region-soil__right {
    background: var(--tb-primary-color, #141414);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.6s ease;
}

/* Soil right - light mode */
.tb-region--light .tb-region-soil__right {
    background: #fff;
}

.tb-region-soil__illustration {
    width: 140%;
    height: 180%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: -40%;
    left: -20%;
    opacity: 1;
    filter: invert(1);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

/* Illustration - light mode */
.tb-region--light .tb-region-soil__illustration {
    opacity: 0.9;
    filter: invert(0);
}

/* ==========================================================================
   Grape Varieties Section
   ========================================================================== */

.tb-region-grapes {
    padding: 6rem 2rem;
    margin-top: 4rem;
    background: transparent;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tb-region-grapes__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1rem;
    transition: color 0.6s ease;
}

.tb-region-grapes__intro {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 3rem;
    max-width: 700px;
    line-height: 1.7;
    transition: color 0.6s ease;
}

/* Grapes section - light mode */
.tb-region--light .tb-region-grapes__title {
    color: var(--tb-heading-color, #1a1a1a);
}

.tb-region--light .tb-region-grapes__intro {
    color: var(--tb-text-color, #555);
}

.tb-region-grapes__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tb-grape-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    background: #fff;
    transition: all 0.3s ease;
}

.tb-grape-card:hover {
    border-color: var(--tb-accent-color, #dda759);
    transform: translateY(-2px);
}

.tb-grape-card::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tb-grape-card--red::before {
    background: #722f37;
}

.tb-grape-card--white::before {
    background: #f5e6c4;
    border: 1px solid #ddd;
}

.tb-grape-card__name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: var(--tb-heading-color, #1a1a1a);
}

/* Grape Slider */
.tb-grape-slider {
    max-width: 1200px;
    margin: 3rem auto 0;
    overflow: hidden;
    position: relative;
}

.tb-grape-slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.tb-grape-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem;
}

.tb-grape-slide__content {
    text-align: left;
    padding-left: 2rem;
}

.tb-grape-slide__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 1.5rem;
    transition: color 0.6s ease;
}

.tb-grape-slide__desc {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    transition: color 0.6s ease;
}

/* Slider - light mode */
.tb-region--light .tb-grape-slide__title {
    color: var(--tb-heading-color, #1a1a1a);
}

.tb-region--light .tb-grape-slide__desc {
    color: var(--tb-text-color, #555);
}

.tb-grape-slide__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tb-grape-slide__image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tb-grape-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tb-grape-slider__arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tb-grape-slider__arrow:hover {
    border-color: var(--tb-accent-color, #dda759);
    background: var(--tb-accent-color, #dda759);
}

.tb-grape-slider__arrow:hover svg {
    stroke: #fff;
}

.tb-grape-slider__arrow svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.7);
    transition: stroke 0.3s ease;
}

.tb-grape-slider__dots {
    display: flex;
    gap: 0.75rem;
}

.tb-grape-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tb-grape-slider__dot:hover,
.tb-grape-slider__dot.active {
    background: var(--tb-accent-color, #dda759);
}

/* Slider nav - light mode */
.tb-region--light .tb-grape-slider__arrow {
    border-color: #ddd;
    background: #fff;
}

.tb-region--light .tb-grape-slider__arrow svg {
    stroke: #333;
}

.tb-region--light .tb-grape-slider__dot {
    background: #ddd;
}

/* ==========================================================================
   Sustainability Section
   ========================================================================== */

.tb-region-sustainability {
    display: grid;
    grid-template-columns: auto 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

.tb-region-sustainability__image {
    display: block;
    height: 550px;
    width: auto;
}

.tb-region-sustainability__content {
    background: var(--tb-primary-color, #141414);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.tb-region-sustainability__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--tb-accent-color, #dda759);
    margin: 0 0 2rem;
}

.tb-region-sustainability__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .tb-region-hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .tb-region-hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .tb-region-hero__left {
        max-width: 100%;
    }

    .tb-region-hero__right {
        padding-top: 0;
    }

    .tb-region-hero__image {
        max-width: 100%;
    }

    .tb-region-hero__caption {
        max-width: 100%;
    }

    .tb-region-stats {
        padding: 4rem 2rem;
    }

    .tb-region-stats__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tb-region-stat__value {
        font-size: 4rem;
    }

    .tb-region-climate {
        margin: 0 auto 3rem;
    }

    .tb-region-climate__image {
        height: 350px;
    }

    .tb-region-climate__card {
        width: 90%;
        max-width: 400px;
        margin-top: -100px;
        margin-right: auto;
        margin-left: auto;
        padding: 2rem;
    }

    .tb-region-soil {
        grid-template-columns: 1fr;
        max-width: 100%;
        height: auto;
    }

    .tb-region-soil__center {
        min-height: 300px;
        order: -1;
    }

    .tb-region-soil__left,
    .tb-region-soil__right {
        padding: 3rem 2rem;
    }

    .tb-region-soil__illustration {
        width: 120%;
        height: 150%;
        top: -25%;
        left: -10%;
    }

    .tb-region-sustainability {
        grid-template-columns: 1fr;
    }

    .tb-region-sustainability__image {
        min-height: 300px;
    }

    .tb-region-sustainability__content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575px) {
    .tb-region-hero {
        padding: 5rem 0 3rem;
    }

    .tb-region-hero__inner {
        padding: 0 1.5rem;
    }

    .tb-region-hero__pretitle {
        font-size: 2rem;
    }

    .tb-region-hero__text {
        font-size: 1.15rem;
    }

    .tb-region-hero__caption {
        font-size: 1rem;
    }

    .tb-region-stats {
        padding: 3rem 1.5rem;
    }

    .tb-region-stats__title {
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .tb-region-stats__line {
        width: 40px;
    }

    .tb-region-stats__title h2 {
        font-size: 1.5rem;
    }

    .tb-region-stat__value {
        font-size: 3.5rem;
    }

    .tb-region-climate__card {
        padding: 1.5rem;
        margin-top: -80px;
    }

    .tb-region-climate__title {
        font-size: 1.75rem;
    }

    .tb-region-climate__image {
        height: 280px;
    }

    .tb-region-soil__left,
    .tb-region-soil__right {
        padding: 2.5rem 1.5rem;
    }

    .tb-region-soil__title {
        font-size: 1.75rem;
    }

    .tb-region-grapes {
        padding: 4rem 1.5rem;
    }

    .tb-region-grapes__title {
        font-size: 2rem;
    }

    .tb-grape-card {
        padding: 0.875rem 1.5rem;
    }

    .tb-region-sustainability__content {
        padding: 2.5rem 1.5rem;
    }

    .tb-region-sustainability__title {
        font-size: 1.75rem;
    }

    .tb-region-sustainability__text {
        font-size: 1.1rem;
    }
}
