/* Variables */
:root {
    --color-dark: #1A243A;
    --color-teal: #00A69C;
    --color-beige: #F2EBE5;
    --color-brown: #8C7362;
    --color-light-blue: #70BCD4;
    --color-dark-teal: #496E6B;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Full-width override for hello-elementor container constraints */
body .site-content,
body #content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .site-main,
body #primary {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
}

/* Global content alignment container */
.rei-main-container {
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
}

/* Base styles */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.btn-sm {
    padding: 6px 18px;
    font-size: 0.75rem;
}

.btn:hover {
    opacity: 0.8;
}

.btn-teal {
    background: var(--color-teal);
    color: #fff;
}

.btn-dark {
    background: var(--color-dark);
    color: #fff;
}

.btn-brown {
    background: var(--color-brown);
    color: #fff;
    border: 1px solid var(--color-brown);
}

.btn-dark-blue {
    background: var(--color-dark);
    color: #fff;
    border: 1px solid var(--color-dark);
}

.dummy-img {
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
    border: 1px dashed #ccc;
    font-weight: 500;
}

/* Header */
.site-header {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 100% !important;
}

.rei-header-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 2rem;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.rei-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rei-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--color-dark);
}

/* HEADER LAYOUT */
.rei-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO HEADER */
.site-branding .rei-logo-wrapper {
    max-width: 70px;
    /* cambia qui se lo vuoi più grande/piccolo */
}

.site-branding .site-logo {
    width: 100%;
    height: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* Burger Toggle Styles */
.rei-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1100;
    outline: none !important;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hamburger Animation */
.rei-menu-toggle.is-active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.rei-menu-toggle.is-active .hamburger span:nth-child(2) {
    opacity: 0;
}

.rei-menu-toggle.is-active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .rei-menu-toggle {
        display: block !important;
        flex: 0 0 auto !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 10px !important;
        border: none !important;
        box-shadow: none !important;
    }

    .rei-header-container {
        padding: 0.8rem 1.5rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-branding {
        flex: 0 0 auto !important;
        max-width: 50% !important;
        margin: 0 !important;
    }

    .site-branding .rei-logo-wrapper {
        max-width: 60px !important;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        box-sizing: border-box;
    }

    .main-navigation.is-active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section - 3 Column Layout */
.rei-hero {
    background: #f4f4f4;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-3-col-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    /* More vertical air */
    gap: 0;
    box-sizing: border-box;
}

.hero-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-col-logo {
    align-items: center;
}

.hero-col-image {
    flex: 1.2;
    align-items: center;
}

.hero-col-text {
    align-items: flex-end;
    text-align: right;
}

.hero-large-logo {
    max-width: 550px;
    width: 100%;
    height: auto;
}

.hero-standing-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-text-wrap {
    text-align: right;
}

.hero-title {
    font-size: 5rem;
    /* Even larger */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1A243A;
    line-height: 0.9;
}

.hero-subtitle {
    font-size: 2rem;
    color: #333;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Responsive Hero */

/* Activities Banner */
.activities-banner {
    background: #2b3b5c;
    color: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
}

.activities-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.activities-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.activities-banner h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Activities List */
.rei-activities {
    background: #ffffff;
    /* White background */
    padding: 6rem 2rem;
}

.activities-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.activity-card {
    display: flex;
    background: transparent;
    /* Changed from solid color */
    align-items: stretch;
    position: relative;
    padding-left: 20px;
    /* Space for the image overlap */
}

.activity-img {
    width: 380px;
    /* Wider image */
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    /* Ensure image is above the background block */
    border-radius: 12px;
}

.activity-img .dummy-img,
.activity-img .real-img {
    border-radius: 12px;
    height: 200px;
    /* Fixed height for image */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.activity-img .real-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.activity-label {
    position: absolute;
    bottom: 20px;
    /* Moved up slightly */
    left: -20px;
    /* Pulled out to the left */
    background: #2b3b5c;
    /* Darker blue label background */
    color: #fff;
    padding: 8px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    /* Slight rounding for the label itself */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.activity-info {
    background: #36425F;
    padding: 2rem 2.5rem 2rem 5rem;
    /* Left padding to ensure text doesn't hit image */
    display: flex;
    align-items: center;
    /* Center vertically */
    flex-grow: 1;
    text-align: left;
    margin-left: -40px;
    /* Overlap with the image */
    margin-top: 20px;
    /* Slight offset vertically */
    margin-bottom: 20px;
    border-radius: 4px 8px 8px 4px;
    position: relative;
    /* For absolute button positioning */
    z-index: 1;
}

.activity-info p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
    padding-right: 140px;
    /* Space for the button */
    color: #ffffff;
    /* Make the description text white */
}

.activity-info p strong {
    font-weight: 700;
}

.activity-btn {
    position: absolute;
    bottom: -15px;
    /* Overlapping the bottom edge */
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 166, 156, 0.3);
    border-radius: 20px;
}


/* Activities Section (Boxed Quote) */
.rei-activity-section {
    padding: 8rem 2rem 4rem;
    background: #fff;
    position: relative;
    overflow: visible;
}

.rei-activity-box {
    background: #36425F;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
    text-align: center;
    border-radius: 0;
}

.activity-box-content h2.activity-quote {
    color: #fff;
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.activity-box-content h3.activity-subtitle {
    color: #00A69C;
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 0;
}

/* Container for the 6 cards */
.rei-activities {
    padding: 4rem 2rem 10rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
}

/* Transform Section Header (Boxed Title Row) - If still needed, but user wants 'Box Style' */
.rei-transform-section {
    padding: 10rem 2rem;
    background: #fff;
    position: relative;
    overflow: visible;
}



.rei-transform-box {
    background: #EED7CC;
    max-width: 1400px;
    margin: 0 auto;
    height: 650px;
    display: flex;
    align-items: center;
    position: relative;
}

.transform-layout-wrap {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding: 0;
}

.t-card {
    width: 50%;
    padding: 4rem 3.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0;
    z-index: 1;
    box-sizing: border-box;
}

.t-card-teal {
    background: #00A69C;
    color: #fff;
    text-align: right;
    align-items: flex-end;
}

.t-card-teal .t-subtitle,
.t-card-teal .t-desc {
    text-align: right;
}

.t-card-dark h3,
.t-card-teal h3 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.t-card-dark {
    background: #36425F;
    color: #fff;
    padding-right: 15%;
}

.t-card-teal {
    background: #00A69C;
    color: #fff;
}

.t-divider {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

.t-desc {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 400;
}

.t-card-teal {
    background: #00A69C;
    color: #fff;
    text-align: right;
    align-items: flex-end;
    padding-left: 15%;
}

.t-card-teal .t-subtitle,
.t-card-teal .t-desc {
    text-align: right;
}

.transform-center-img-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -160px;
    height: 950px;
    width: auto;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.transform-barbara-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.rei-transform {
    padding: 6rem 0 10rem 0;
    text-align: center;
    background: #fff;
    overflow: visible;
}

/* Mastery Section (Boxed) */
.rei-mastery-section {
    /* padding: 8rem 2rem; */
    background: #fff;
    position: relative;
    overflow: visible;
    margin-top: -120px;
    /* ← AUMENTA o DIMINUISCI */

}

.rei-mastery-box {
    background: #EBE8E4;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.mastery-logos-bar {
    padding: 2rem 4rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 600px;
}

.mastery-logo-item {
    display: flex;
    align-items: center;
}

.mastery-logo-img {
    height: 140px;
    width: auto;
}

.mastery-text-wrap {
    text-align: left;
}

.mastery-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    color: #574F49;
    line-height: 0.9;
    margin: 0;
}

.mastery-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #574F49;
    margin: 0;
}

.mastery-content {
    padding: 1rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mastery-quote {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    color: #574F49;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.mastery-btn {
    padding: 18px 50px;
    border-radius: 40px;
    background: #7D6B5D;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.mastery-btn:hover {
    background: #6D5B4D;
}

/* =============================================
   Business Section Refinement
   ============================================= */
.rei-business-section {
    padding: 10rem 2rem 5rem;
    position: relative;
    background: #fff;
    overflow: visible;
}

.rei-business-box {
    background: #70BCD4;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    border-radius: 0;
    display: flex;
    justify-content: flex-end;
}

.business-overlap-img {
    position: absolute;
    left: -40px;
    top: -80px;
    width: 32%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.section-box-content {
    width: 75%;
    padding: 4rem 6rem 4rem 2rem;
    box-sizing: border-box;
}

.section-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 30px;
}

.section-logo {
    height: 45px;
    width: auto;
}

.box-title {
    font-size: 5rem;
    margin: 0;
    color: #1A243A;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.box-title.italic {
    font-style: italic;
    color: #A6C2C0;
    font-size: 3.5rem;
    text-transform: lowercase;
}

.btn-box {
    background: #36425F;
    color: #fff;
    padding: 12px 30px;
    border-radius: 12px;
    white-space: nowrap;
}

.section-box-body h3 {
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-box-body p {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.box-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #1A243A !important;
    margin-top: 2.5rem !important;
}

/* =============================================
   Domicilio Section Refinement
   ============================================= */
.rei-domicilio-section {
    padding: 8rem 2rem 10rem;
    position: relative;
    background: #fff;
}

.rei-domicilio-box {
    background: #496E6B;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.domicilio-overlap-img {
    position: absolute;
    left: 4rem;
    top: -120px;
    width: 20%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.domicilio-main-text {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 4rem 2rem;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-col-img {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.footer-barbara-img {
    height: 380px;
    width: auto;
    object-fit: contain;
    object-position: bottom;
}

.footer-col-contact {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-separator {
    border: none;
    border-top: 1px solid #c4c4c4;
    width: 100%;
    max-width: 250px;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--color-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    /* Larger font size for FontAwesome icons */
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.05);
    background: var(--bg-pink);
}

.social-icon i {
    color: #fff;
}

.contact-info p,
.legal-info p {
    margin: 0 0 15px;
    font-size: 1rem;
    color: #555;
}

.contact-info strong {
    color: var(--color-dark);
    font-size: 1.1rem;
}

.footer-col-quote {
    width: 40%;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-image-wrap {
        /* Change aspect ratio to tall so text can stack below or on top */
        aspect-ratio: 4 / 3;
    }

    .hero-content-overlay {
        padding: 0 2rem;
        margin-top: 0;
    }

    .hero-text-box h2 {
        font-size: 2.2rem;
    }

    .hero-logo-img {
        max-width: 200px;
    }

    .transform-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .t-card {
        width: 100%;
        padding: 3rem;
    }

    .t-card-dark,
    .t-card-teal {
        padding-right: 3rem;
        padding-left: 3rem;
    }

    .transform-barbara-img {
        display: none;
    }

    .rei-business,
    .rei-domicilio {
        flex-direction: column;
        align-items: center;
    }

    .business-photo,
    .domicilio-photo {
        width: 60%;
        max-width: 350px;
        margin-top: 0;
    }

    .business-content,
    .domicilio-content {
        padding: 2rem;
    }

    .business-header-row h2 {
        font-size: 3rem;
    }

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

    .footer-col {
        width: 100%;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Specific Banner Section (#attivita) */
    #attivita .rei-activity-box {
        padding: 3rem 1.5rem !important;
        width: auto !important;
        margin: 0 1rem !important;
    }

    #attivita .activity-quote {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
    }

    #attivita .activity-subtitle {
        font-size: 1.1rem !important;
    }

    .rei-activities {
        padding: 4rem 1.5rem !important;
    }

    .rei-transform-box {
        height: auto !important;
        padding: 4rem 1.5rem !important;
    }

    .rei-mastery-section {
        margin-top: 0;
        padding: 5rem 1.5rem;
    }

    .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Hero Responsive Stacking: Logo > Image > Text */
    .hero-3-col-container {
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
    }

    .hero-col {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    .hero-col-logo {
        order: 1 !important;
    }

    .hero-col-image {
        order: 2 !important;
    }

    .hero-col-text {
        order: 3 !important;
        text-align: center !important;
    }

    .hero-large-logo {
        max-width: 180px !important;
        margin: 0 auto !important;
    }

    .hero-standing-img {
        max-width: 450px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    /* Activity Cards */
    .activity-card {
        flex-direction: column !important;
        height: auto !important;
        padding-left: 0 !important;
    }

    .activity-img {
        width: 100% !important;
        height: 250px !important;
    }

    .activity-img .dummy-img,
    .activity-img .real-img {
        border-radius: 12px 12px 0 0 !important;
    }

    .activity-label {
        left: 20px !important;
        bottom: 10px !important;
    }

    .activity-info {
        margin-left: 0 !important;
        margin-top: -20px !important;
        padding: 3rem 2rem 4rem !important;
        border-radius: 0 0 12px 12px !important;
        text-align: center !important;
    }

    .activity-info p {
        max-width: 100% !important;
        padding-right: 0 !important;
        font-size: 1.1rem !important;
    }

    .activity-btn {
        position: absolute !important;
        bottom: -20px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        white-space: nowrap !important;
        z-index: 10 !important;
    }

    /* Transform Section */
    .transform-layout-wrap {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .t-card {
        width: 100% !important;
    }

    .transform-barbara-img {
        display: none !important;
    }

    /* Mastery Section */
    .mastery-logos-bar {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        width: 100% !important;
        padding: 1rem !important;
    }

    .mastery-logo-img {
        height: 80px !important;
    }

    .mastery-text-wrap h2 {
        font-size: 3rem !important;
    }

    /* Business & Domicilio Mobile */
    .rei-business-box {
        flex-direction: column !important;
    }

    .rei-domicilio-box {
        flex-direction: column !important;
    }

    .business-overlap-img,
    .domicilio-overlap-img {
        position: relative !important;
        width: 80% !important;
        max-width: 350px !important;
        margin: 2rem auto 0 auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: block !important;
    }

    .section-box-content {
        width: 100% !important;
        padding: 3rem 1.5rem !important;
    }

    .section-box-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }

    .box-title {
        font-size: 3rem !important;
        word-break: break-word;
        /* Prevents overflow if still too long */
    }

    .box-title.italic {
        font-size: 2.5rem !important;
    }

    .footer-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   Barbara Page Template Styles
   ========================================================================== */

.page-template-page-barbara {
    --bg-pink: #ebd4cf;
    --bg-dark-blue: #3d4a60;
    --text-accent: #d8b2a7;
    background-color: #ffffff;
}

.page-template-page-barbara .b-section {
    padding: 80px 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-template-page-barbara .b-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-template-page-barbara h1,
.page-template-page-barbara h2,
.page-template-page-barbara h3,
.page-template-page-barbara .b-title,
.page-template-page-barbara .b-title-dark-blue,
.page-template-page-barbara .section-title-pink {
    font-family: var(--font-heading);
    margin-top: 0;
}

/* Hero Section */
.b-hero {
    padding-top: 40px !important;
}

.b-hero-floated-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.b-hero-floated-wrap::after {
    content: "";
    display: table;
    clear: both;
}

.barbara-photo-floated {
    float: left;
    width: 400px;
    height: auto;
    margin-right: 50px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.b-hero-floated-wrap .b-title {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 30px;
    font-weight: 400;
    margin-top: 10px;
}

.b-hero-floated-wrap .b-title strong {
    font-weight: 700;
}

.b-hero-floated-wrap p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.b-hero-floated-wrap .b-intro {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Ideatrice Section (Dark Blue) */
.b-ideatrice {
    background-color: var(--bg-dark-blue);
    color: #fff;
    padding: 60px 0 !important;
}

.b-ideatrice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.b-ideatrice .text-column {
    flex: 1;
    min-width: 300px;
}

.b-ideatrice .section-title-pink {
    color: var(--text-accent);
    font-size: 3rem;
    margin-bottom: 10px;
}

.b-ideatrice .section-subtitle-white {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 30px;
}

.b-ideatrice .icons-column {
    display: flex;
    gap: 40px;
}

.b-icon-item {
    text-align: center;
}

.b-icon-item img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    /* Ensure icons are white */
}

.rei-loghi-img {
    max-height: 150px;
    width: auto;
}

@media (max-width: 600px) {
    .rei-loghi-img {
        max-height: 120px;
        max-width: 100%;
    }
}

.b-icon-item span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.rei-logo-inline {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Impedisce Section (Pink) */
.b-impedisce {
    background-color: var(--bg-pink);
    padding: 100px 0 !important;
}

.b-impedisce-content {
    max-width: 900px;
}

.b-impedisce .b-title-dark-blue {
    color: var(--bg-dark-blue);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 50px;
    font-weight: 700;
}

.b-impedisce .b-text-dark-blue {
    color: var(--bg-dark-blue);
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

/* Utenti Section */
.b-utenti {
    padding: 100px 0 !important;
}

.b-utenti h2 {
    color: var(--bg-dark-blue);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
}

.b-banner-blu {
    background-color: var(--bg-dark-blue);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 40px;
}

.b-banner-blu h3 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.b-banner-blu h3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #fff;
}

.rei-logo-banner {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Titoli Section (Pink Grid) */
.b-titoli {
    background-color: var(--bg-pink);
    padding: 80px 0 !important;
}

.b-lists-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.b-list-block {
    margin-bottom: 20px;
}

.b-list-title {
    color: var(--bg-dark-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.b-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b-list li {
    color: var(--bg-dark-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.b-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
}

/* Responsive */
@media (max-width: 991px) {

    .b-ideatrice-content {
        flex-direction: column;
    }

    .barbara-photo-floated {
        float: none;
        display: block;
        margin: 0 auto 30px;
        width: 100%;
        max-width: 400px;
    }

    .b-hero-floated-wrap {
        text-align: center;
    }

    .b-hero-floated-wrap p {
        text-align: left;
    }

    .b-ideatrice .icons-column {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .b-impedisce .b-title-dark-blue,
    .b-banner-blu h3 {
        font-size: 2.5rem;
    }
}



/* ==========================================================================
   "Il Metodo integra" Section
   ========================================================================== */
.b-metodo {
    background-color: var(--bg-dark-blue);
    padding: 80px 0 !important;
    color: #fff;
}

.b-metodo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.b-metodo-logo {
    flex: 0 0 300px;
    text-align: center;
}

.rei-logo-metodo {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.b-metodo-subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.b-metodo-text {
    flex: 1;
    min-width: 300px;
}

.b-metodo-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

.b-metodo-focus {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-accent);
    line-height: 1.4;
    font-weight: 500;
}

/* ==========================================================================
   Activity Single Page Template
   ========================================================================== */
.activity-single-page {
    background-color: #fff;
}

/* Activity Hero */
.activity-hero-section {
    padding-top: 60px !important;
}

.activity-hero-flex {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
    padding-left: 20px;
}

.activity-hero-img-wrap {
    width: 450px;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    border-radius: 12px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.activity-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    border-radius: 12px;
}

.activity-hero-label {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: #2b3b5c;
    color: #fff;
    padding: 8px 30px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.activity-hero-text-wrap {
    flex-grow: 1;
    background: #36425F;
    color: #fff;
    border-radius: 4px 8px 8px 4px;
    padding: 3rem 4rem 3rem 5rem;
    display: flex;
    align-items: center;
    margin-left: -40px;
    margin-top: 20px;
    margin-bottom: 20px;
    z-index: 1;
}

.activity-hero-desc {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.activity-hero-desc strong {
    font-weight: 700;
}

/* Activity Main Content */
.activity-main-title {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.activity-main-intro {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    font-weight: 600;
}

/* Slider Gallery */
.activity-gallery-outer {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    position: relative;
}

.activity-gallery-wrapper {
    position: relative;
    border: 1px solid #ccc;
    background: #fafafa;
    overflow: hidden;
    border-radius: 4px;
    height: 400px;
}

.activity-gallery-slider {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.gallery-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #fdfdfd;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    font-size: 2rem;
    color: #666;
    letter-spacing: 1px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent !important;
    color: #000;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 3rem;
    z-index: 10;
    font-weight: 300;
    transition: opacity 0.2s;
}

.slider-btn:hover,
.slider-btn:focus {
    color: #000;
    opacity: 0.7;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

/* Lightbox */
.rei-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 4rem;
    cursor: pointer;
    padding: 0 2rem;
}

.rei-lightbox .lightbox-btn:hover,
.rei-lightbox .lightbox-close:hover,
.rei-lightbox .lightbox-btn:focus,
.rei-lightbox .lightbox-close:focus {
    color: rgba(255, 255, 255, 0.6) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.lightbox-content-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Details Grid */
.activity-details-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.activity-list-block {
    margin-bottom: 2.5rem;
}

.activity-list-block h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    letter-spacing: 0.5px;
}

.activity-list-block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.activity-list-block ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.4;
}

.activity-list-block ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #555;
    font-weight: bold;
}

.activity-list-block.no-bullets ul li::before {
    display: none;
}

.activity-list-block.no-bullets p {
    margin: 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

/* Right Col Info */
.activity-info-row {
    margin-bottom: 1.8rem;
}

.info-text h4 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.info-text p {
    margin: 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
    font-weight: 300;
}

.activity-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
    max-width: 100%;
}

.activity-price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-align: right;
    line-height: 1.2;
}

.price-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.activity-buy-btn {
    white-space: nowrap;
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Related Activities Section */
.rei-related-activities {
    padding: 3rem 0;
    background-color: #fdfdfd;
}

.related-activities-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-activities-header h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-teal);
    border: none;
    margin: 15px auto 0;
}

/* Small Cards Grid for Related */
.rei-related-activities .activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.rei-related-activities .activity-card {
    flex-direction: column;
    padding-left: 0;
    height: 100%;
}

.rei-related-activities .activity-img {
    width: 100%;
    height: 220px;
    position: relative;
    z-index: 3;
}

.rei-related-activities .activity-img .real-img,
.rei-related-activities .activity-img .dummy-img {
    border-radius: 12px;
}

.rei-related-activities .activity-label {
    top: 15px;
    bottom: auto !important;
    left: 15px !important;
    font-size: 0.9rem;
    padding: 6px 14px;
}

.rei-related-activities .activity-info {
    width: 90%;
    margin: -40px auto 0 auto !important;
    border-radius: 12px !important;
    position: relative;
    z-index: 1;
    padding: 4.5rem 2rem 2rem 2rem !important;
    /* Increased top padding to account for the card slipping under the image */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex: 1;
}

.rei-related-activities .activity-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    /* Reset inherited 140px space for button */
    text-align: center;
}

.rei-related-activities .activity-btn {
    position: relative;
    bottom: auto;
    right: auto;
    padding: 12px 24px;
    font-size: 0.9rem;
    align-self: center;
    margin: auto auto 0 auto;
    /* Pushes button to bottom and centers */
}

/* Responsive Grid */
@media (max-width: 900px) {
    .activity-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .activity-hero-flex {
        flex-direction: column;
        padding-left: 0;
        align-items: center;
    }

    .activity-hero-img-wrap {
        width: 100%;
        max-width: 450px;
        height: 250px;
    }

    .activity-hero-text-wrap {
        margin-left: 0;
        margin-top: -20px;
        margin-bottom: 0;
        border-radius: 0 0 12px 12px;
        padding: 3rem 2rem 2rem 2rem;
        max-width: 450px;
        width: 100%;
        z-index: 1;
    }

    .activity-hero-label {
        left: 20px;
    }

    .activity-main-title {
        font-size: 1.8rem;
        margin-top: 20px;
    }

    .slider-btn {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border-radius: 50% !important;
        padding: 0.5rem 1rem !important;
        font-size: 2rem !important;
    }

    .slider-btn:hover,
    .slider-btn:focus {
        background-color: rgba(255, 255, 255, 0.8) !important;
    }

    .prev-btn {
        left: 10px !important;
    }

    .next-btn {
        right: 10px !important;
    }

    .activity-price-row {
        gap: 15px;
    }

    .activity-single-page .b-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* =========================================
   PATHWAY PAGES (LE REDINI, FOCUS, MASTERY, BUSINESS)
   ========================================= */

/* --- Typography & Basics --- */
.rei-pathway-page {
    font-family: inherit;
    color: #3b4c68;
    padding-top: 20rem;
    /* Increased to ensure head clears fixed menu */
    overflow: visible !important;
    /* Ensure no clipping from top */
}

.pw-bg-pink {
    background-color: #f7e9ed;
}

.pw-bg-darkblue {
    background-color: #3b4c68;
}

.pw-bg-teal {
    background-color: #00b1a0;
}

.pw-bg-greybeige {
    background-color: #e3dcd3;
}

.pw-bg-taupe {
    background-color: #89796b;
}

.pw-bg-lightblue {
    background-color: #55a2b6;
}

.pw-bg-white {
    background-color: #ffffff;
}

.white-text {
    color: #ffffff !important;
}

.pw-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.pw-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.pw-center-align {
    text-align: center;
}

h1.pw-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    /* Assuming a serif is used for elegance based on mockup */
}

h1.pw-hero-title-huge {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.1;
}

.pw-hero-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    max-width: 400px;
}

.pw-h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    color: #3b4c68;
}

.pw-h3.pw-brown {
    color: #89796b;
}

.pw-h3.pw-darkblue {
    color: #3b4c68;
}

.pw-h3-white {
    color: #fff;
    font-size: 1.8rem;
    margin: 1.5rem 0;
}

.pw-h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.pw-h4.pw-darkblue {
    color: #3b4c68;
    margin-top: 2rem;
}

.pw-h4-white {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Lists --- */
.pw-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.pw-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.pw-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    font-weight: bold;
}

.pw-spaced li {
    margin-bottom: 1.5rem;
}

.white-dot li::before {
    color: #fff;
}

.pw-brown-dot li::before {
    color: #89796b;
}

.pw-grey-dot li::before {
    color: #999;
}

/* --- Base/Avanzato Hero Layout (Pink background, dark box left, img right) --- */
.pw-hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    padding-top: 8rem;
    /* Taller pink section to allow more overlap space */
    padding-bottom: 8rem;
    overflow: visible !important;
}

.pw-hero-box {
    width: 100%;
    /* Full width to pass behind Barbara completely */
    padding: 5rem 4rem;
    position: relative;
    z-index: 1;
    /* Below the image wrap */
}

.pw-hero-box .pw-hero-title,
.pw-hero-box .pw-hero-quote {
    max-width: 600px;
    /* Keep text readable on the left */
}

.pw-badge {
    position: absolute;
    top: 30px;
    right: 40px;
    /* Move far right, beyond Barbara's typical position */
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    opacity: 0.9;
    z-index: 4;
    /* Above everything */
}

.pw-hero-img-wrap {
    width: 45%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.pw-hero-img-wrap.right-overlap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Optional rounded clip if needed */
}

/* New specific class for standing hero portrait */
.pw-hero-standing-wrap {
    position: absolute;
    right: 20%;
    /* Shifted more to the left */
    top: 55%;
    /* Slightly lower to clear head and align feet */
    transform: translateY(-50%);
    height: 720px;
    /* Taller to ensure overlap above and below */
    z-index: 3;
    /* Above the blue box */
    pointer-events: none;
    overflow: visible !important;
}

.pw-hero-standing-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Ensure parents don't clip the overlapping image */
.rei-pathway-page main,
.pathway-hero,
.pw-container {
    overflow: visible !important;
}

.pathway-hero {
    margin-top: 8rem;
    /* Extra push to avoid fixed header overlap */
}

/* --- Mastery Hero Layout --- */
.pw-mastery-hero {
    text-align: center;
    padding: 5rem 1.5rem;
}

.pw-mastery-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mastery-logo-left img {
    max-width: 120px;
    height: auto;
}

.pw-mastery-logo-title {
    font-size: 3rem;
    font-weight: 300;
    color: #89796b;
    line-height: 1;
}

.pw-mastery-logo-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.pw-mastery-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #89796b;
    margin-bottom: 1rem;
}

.pw-mastery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #89796b;
}

/* --- Business Hero Layout --- */
.pw-hero-layout-business {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.pw-hero-img-business-wrap {
    position: absolute;
    left: -50px;
    bottom: -50px;
    /* Overlaps into the dark blue banner below */
    z-index: 3;
    width: 350px;
}

.pw-hero-img-business-wrap img {
    width: 100%;
    height: auto;
}

.pw-hero-business-content {
    margin-left: 350px;
    /* offset for image */
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.pw-business-quote {
    font-size: 1.3rem;
    font-weight: 600;
    color: #00b1a0;
    /* Teal color for the quote */
    margin-top: 1rem;
}

/* --- Banners --- */
.pathway-banner {
    padding: 3rem 0;
}

.pw-banner-text {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Footers & Investment Boxes --- */
.pw-footer-content {
    padding: 3rem;
    position: relative;
}

.pw-footer-quote {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.pw-investment-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pw-inv-label {
    font-size: 1.2rem;
    font-weight: 700;
}

.pw-inv-price {
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

.pw-inv-tax {
    font-size: 0.85rem;
    opacity: 0.8;
}

.pw-investment-mastery {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.pw-inv-mastery-btn {
    background-color: #e3dcd3;
    color: #89796b;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.2rem;
}

.pw-h5 {
    font-size: 1.2rem;
    color: #fff;
    margin: 1rem 0 0 0;
}

/* --- Form Box (Business) --- */
.pathway-form-footer {
    padding: 5rem 1.5rem;
}

/* Premium Form Styles */
.rei-premium-form {
    padding: 1.5rem 0 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 166, 156, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    width: 100%;
    resize: none;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 18px 25px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 15px;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    background: var(--color-dark);
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 36, 58, 0.2);
}

.btn-submit:hover {
    background: var(--color-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 156, 0.3);
}

@media (max-width: 768px) {
    .btn-submit {
        padding: 14px 15px;
        font-size: 0.9rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.pw-form-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    padding: 60px 40px 40px;
    margin-top: 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pw-form-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    color: #fff;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* --- Modal Styles --- */
.rei-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(26, 36, 58, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rei-modal-content {
    background-color: rgba(255, 255, 255, 0.98);
    margin: 40px auto;
    padding: 50px 40px 40px;
    border-radius: 24px;
    width: 92%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 10px;
    text-align: center;
}

.close-modal {
    color: var(--color-dark);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--color-teal);
}

.pw-form-placeholder {
    color: #89796b;
    font-size: 1.5rem;
}

@media (max-width: 600px) {
    .rei-modal-content {
        margin: 20% auto;
        padding: 60px 20px 30px;
    }

    .pw-form-badge {
        font-size: 0.8rem;
        padding: 10px 15px;
        width: 85%;
        top: -20px;
        white-space: normal;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .pw-hero-layout {
        flex-direction: column;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .pw-hero-box {
        width: 100%;
        padding: 3rem 2rem;
    }

    .pw-hero-img-wrap {
        position: relative;
        width: 90%;
        margin: -30px auto 0 auto;
        top: 0;
        transform: none;
        z-index: 3;
    }

    h1.pw-hero-title {
        font-size: 2.5rem;
    }

    .pw-investment-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pw-hero-layout-business {
        flex-direction: column;
        text-align: center;
    }

    .pw-hero-business-content {
        margin-left: 0;
        padding: 2rem 1rem;
    }

    .pw-hero-img-business-wrap {
        position: relative;
        left: 0;
        bottom: 0;
        width: 80%;
        margin: 2rem auto 0 auto;
    }

    .pw-form-badge {
        white-space: normal;
        width: 90%;
        font-size: 0.9rem;
    }

    .pw-mastery-logos {
        flex-direction: column;
    }

    .pw-hero-standing-wrap {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        margin-top: 2rem;
        display: flex;
        justify-content: center;
        transform: none;
    }

    .pw-hero-standing-wrap img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}
/* Testimonials Section */
.rei-testimonials-section {
    padding: 8rem 2rem;
    background: #fdfaf7;
    position: relative;
    overflow: hidden;
}

.rei-testimonials-box {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.testimonials-header .section-title {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.testimonials-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--color-brown);
    font-family: var(--font-heading);
    font-style: italic;
    margin: 0;
}

.testimonials-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Chrome/Safari/Firefox */
    -ms-overflow-style: none;
}

.testimonials-slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.testimonials-footer {
    text-align: center;
    margin-top: 3rem;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    padding: 0 1rem;
    width: max-content;
}

.testimonial-card {
    flex: 0 0 calc(33.333vw - 3rem); /* Adjusted for desktop view */
    max-width: 420px;
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    border: 1px solid rgba(0, 166, 156, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-teal);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 0.5rem;
    transform: translateY(-50%);
}

.slider-btn {
    pointer-events: auto;
    background: #fff;
    border: 1px solid var(--color-teal);
    color: var(--color-teal);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--color-teal);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 166, 156, 0.3);
}

.slider-btn i {
    transition: transform 0.3s ease;
}

.slider-btn:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .rei-testimonials-section {
        padding: 4rem 1rem;
    }
    .testimonials-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    .testimonial-card {
        flex: 0 0 100%;
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    .testimonials-header .section-title {
        font-size: 2.2rem;
    }
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .testimonial-author {
        font-size: 1.1rem;
        text-align: center;
    }
    .slider-controls {
        display: none !important; /* Force hide arrows on mobile */
    }
}

/* Dedicated Testimonials Page */
.testimonials-page-hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, #fdfaf7 0%, #fff 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 166, 156, 0.05);
}

.testimonials-page-hero .page-title {
    font-size: 4.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.testimonials-page-hero .page-subtitle {
    font-size: 1.4rem;
    color: var(--color-brown);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.6;
}

.testimonials-grid-section {
    padding: 6rem 0;
    background: #fff;
}

.rei-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-masonry {
    columns: 3;
    column-gap: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.testimonials-masonry .testimonial-card {
    display: inline-block;
    width: 100%;
    margin: 0;
    min-height: auto;
}

.testimonials-cta {
    padding: 8rem 2rem;
    background: #fdfaf7;
    text-align: center;
}

.testimonials-cta h2 {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.testimonials-cta p {
    font-size: 1.2rem;
    color: #4A5568;
    margin-bottom: 2.5rem;
}

.rei-btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--color-teal);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 166, 156, 0.2);
}

.rei-btn-primary:hover {
    background: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
}

@media (max-width: 1024px) {
    .testimonials-masonry {
        columns: 2;
    }
    .testimonials-page-hero .page-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-masonry {
        columns: 1;
    }
    .testimonials-page-hero {
        padding: 8rem 1rem 4rem;
    }
    .testimonials-page-hero .page-title {
        font-size: 2.8rem;
    }
    .testimonials-cta h2 {
        font-size: 2.2rem;
    }
}