/*
 * Brand Page — all sections styling.
 *
 * Sections:
 *   1. .brandpage-hero        (hero top — 2 banners)
 *   2. .brandpage-split       (hero split — full-width bg, image left, text right)
 *   3. .brandpage-products    (product grid — 5 per row)
 *   4. .brandpage-imgtext     (image + text alternating rows)
 *   5. .brandpage-brands      (6 brand cards)
 *   6. .brandpage-categories  (category grid)
 *   7. .brandpage-partners    (hook wrapper)
 */

/* ==================================================================
   GLOBAL
   ================================================================== */

.brandpage {
    font-family: 'Inter', sans-serif;
    color: #2a1a46;
}

/* ==================================================================
   PAGE OVERRIDES — remove spacing above first hero
   ================================================================== */

.page-module-th_brandpage-display .breadcrumb__wrapper {
    margin-bottom: 0;
}

.page-module-th_brandpage-display #content-wrapper {
    margin-bottom: 0 !important;
}

.page-module-th_brandpage-display .page-content {
    padding: 0;
    margin: 0;
}

.page-module-th_brandpage-display #content-wrapper .page-header {
    display: none !important;
}

/* ==================================================================
   SECTION 1 — Hero Top (2 banners)
   Desktop: height 720px, title 44px, subtitle 20px, text width 33%
   ================================================================== */

.brandpage-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 720px;
    padding: 80px 15px;
    background-color: #000;
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.brandpage-hero__inner {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.brandpage-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 33%;
    text-align: left;
}

.brandpage-hero__title {
    margin: 0;
    color: #ebe9ef;
    font-family: "Inter", Sans-serif;
    font-size: 44px;
    font-weight: 700;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 120%;
    letter-spacing: 0px;
}

.brandpage-hero__subtitle {
    margin: 0;
    color: #ebe9ef;
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 140%;
    letter-spacing: 0px;
}

/* Tablet */
@media (max-width: 1024px) {
    .brandpage-hero {
        height: 60vh;
        padding: 60px 15px;
    }
    .brandpage-hero__text {
        width: 50%;
    }
    .brandpage-hero__title {
        font-size: 40px;
        line-height: 140%;
    }
    .brandpage-hero__subtitle {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brandpage-hero {
        height: 100vh;
        padding: 36px 15px;
        background-position: center center;
    }
    .brandpage-hero__text {
        width: 100%;
    }
    .brandpage-hero__title {
        font-size: 32px;
        line-height: 140%;
    }
    .brandpage-hero__subtitle {
        font-size: 16px;
    }
}

/* ==================================================================
   SECTION 2 — Hero Split
   Desktop: full-width bg, image left 50%, text right with padding-left
   ================================================================== */

.brandpage-split {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 725px;
    height: auto;
    padding: 72px 15px;
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    box-sizing: border-box;
}

.brandpage-split__inner {
    display: flex;
    align-items: center;
    gap: 100px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.brandpage-split__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.brandpage-split__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brandpage-split__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-left: 200px;
}

.brandpage-split__title {
    margin: 0;
    color: #fff;
    font-family: "Inter", Sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 120%;
}

.brandpage-split__subtitle {
    margin: 0;
    text-align: left;
    color: #ebe9ef;
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 140%;
    letter-spacing: 0px;
    word-spacing: 0em;
}

/* Tablet */
@media (max-width: 1024px) {
    .brandpage-split {
        height: auto;
        padding: 48px 15px;
    }
    .brandpage-split__inner {
        flex-direction: column;
        gap: 30px;
    }
    .brandpage-split__image {
        flex: none;
        max-width: 100%;
    }
    .brandpage-split__content {
        padding-left: 0;
    }
    .brandpage-split__title {
        font-size: 40px;
    }
    .brandpage-split__subtitle {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brandpage-split {
        height: auto;
        padding: 36px 15px;
        background-position: center center;
    }
    .brandpage-split__inner {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }
    .brandpage-split__image {
        flex: none;
        max-width: 100%;
    }
    .brandpage-split__content {
        padding-left: 0;
        padding: 0;
    }
    .brandpage-split__title {
        font-size: 24px;
        line-height: 140%;
    }
    .brandpage-split__subtitle {
        font-size: 18px;
    }
}

/* ==================================================================
   SECTION 3 — Products Grid
   Desktop: 5 columns, padding 72px, title 44px
   ================================================================== */

.brandpage-products {
    padding: 72px 15px;
    max-width: 1440px;
    margin: 0 auto;
}

.brandpage-products__title {
    margin: 0 0 40px;
    text-align: left;
    color: #2a1a46;
    font-family: "Inter", Sans-serif;
    font-size: 44px;
    font-weight: 700;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 120%;
    letter-spacing: 0px;
    word-spacing: 0em;
}

.brandpage-products__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.brandpage-products__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brandpage-products__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brandpage-products__image {
    width: 320px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.brandpage-products__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.brandpage-products__link:hover .brandpage-products__image img {
    transform: scale(1.05);
}

.brandpage-products__name {
    margin: 0 0 12px;
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    color: #2a1a46;
}

.brandpage-products__btn {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    word-spacing: 0px;
    fill: #29b4d6;
    color: #29b4d6;
    text-decoration: none;
    transition: color .2s ease;
}

.brandpage-products__btn:hover {
    color: #1a8fa8;
    text-decoration: underline;
}

/* Tablet: 5 → 3 columns */
@media (max-width: 1024px) {
    .brandpage-products {
        padding: 48px 15px;
    }
    .brandpage-products__title {
        font-size: 40px;
        margin-bottom: 48px;
    }
    .brandpage-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .brandpage-products__image {
        width: 100%;
        height: 240px;
    }
}

/* Mobile: 3 → 2 columns (or 1) */
@media (max-width: 767px) {
    .brandpage-products {
        padding: 36px 15px;
    }
    .brandpage-products__title {
        font-size: 24px;
        line-height: 1.1em;
        margin-bottom: 24px;
    }
    .brandpage-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .brandpage-products__image {
        height: 180px;
    }
    .brandpage-products__name {
        font-size: 16px;
    }
}

/* ==================================================================
   SECTION 4 — Image + Text Rows
   Desktop: 2 columns row, gap 100px, padding 72px
   ================================================================== */

.brandpage-imgtext {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 72px 15px;
    background-color: #ebe9ef;
    box-sizing: border-box;
}

.brandpage-imgtext__row {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.brandpage-imgtext__row:last-child {
    margin-bottom: 0;
}

.brandpage-imgtext__row--reverse {
    flex-direction: row-reverse;
}

.brandpage-imgtext__image {
    flex: 0 0 50%;
    max-width: 50%;
}

.brandpage-imgtext__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.brandpage-imgtext__text {
    flex: 1;
    text-align: left;
    color: #625182;
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 140%;
    letter-spacing: 0px;
    word-spacing: 0em;
}

.brandpage-imgtext__row:first-child .brandpage-imgtext__text {
    padding-left: 180px;
}

.brandpage-imgtext__row--reverse .brandpage-imgtext__text {
    padding-right: 180px;
}

.brandpage-imgtext__text p {
    margin: 0 0 16px;
}

.brandpage-imgtext__text p:last-child {
    margin-bottom: 0;
}

/* Tablet: columns → stacked, image after text */
@media (max-width: 1024px) {
    .brandpage-imgtext {
        padding: 48px 15px;
    }
    .brandpage-imgtext__row,
    .brandpage-imgtext__row--reverse {
        flex-direction: column;
        gap: 30px;
    }
    .brandpage-imgtext__image {
        flex: none;
        max-width: 100%;
        order: 99999;
    }
    .brandpage-imgtext__row:first-child .brandpage-imgtext__text {
        padding-left: 0;
    }
    .brandpage-imgtext__row--reverse .brandpage-imgtext__text {
        padding-right: 0;
    }
    .brandpage-imgtext__text {
        text-align: left;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brandpage-imgtext {
        padding: 36px 15px;
    }
    .brandpage-imgtext__row,
    .brandpage-imgtext__row--reverse {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 36px;
    }
    .brandpage-imgtext__image {
        flex: none;
        max-width: 100%;
        order: 99999;
    }
    .brandpage-imgtext__row:first-child .brandpage-imgtext__text {
        padding-left: 0;
    }
    .brandpage-imgtext__row--reverse .brandpage-imgtext__text {
        padding-right: 0;
    }
    .brandpage-imgtext__image img {
        border-radius: 0;
    }
    .brandpage-imgtext__text {
        font-size: 18px;
        text-align: left;
    }
}

/* ==================================================================
   SECTION 5 — Brand Cards (6)
   Desktop: 6 columns, padding 72px, title 44px center
   ================================================================== */

.brandpage-brands {
    padding: 72px 15px;
    max-width: 1440px;
    margin: 0 auto;
}

.brandpage-brands__title {
    margin: 0 0 40px;
    text-align: center;
    color: #2a1a46;
    font-family: "Inter", Sans-serif;
    font-size: 44px;
    font-weight: 700;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 120%;
    letter-spacing: 0px;
    word-spacing: 0em;
}

.brandpage-brands__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brandpage-brands__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border: none;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
}

.brandpage-brands__card:hover {
    box-shadow: 0 8px 24px rgba(42, 26, 70, 0.1);
    transform: translateY(-4px);
}

.brandpage-brands__icon {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brandpage-brands__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brandpage-brands__card-title {
    margin: 0 0 8px;
    color: #2a1a46;
    font-family: "Inter", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 140%;
}

.brandpage-brands__card-motto {
    margin: 0 0 12px;
    text-align: center;
    color: #7c6d96;
    font-family: "Inter", Sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.brandpage-brands__card-desc {
    margin: 0;
    text-align: center;
    color: #625182;
    font-family: "Inter", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}

/* Tablet: 6 → 2 columns */
@media (max-width: 1024px) {
    .brandpage-brands {
        padding: 48px 15px;
    }
    .brandpage-brands__title {
        font-size: 40px;
        margin-bottom: 48px;
    }
    .brandpage-brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 2 → 1 column */
@media (max-width: 767px) {
    .brandpage-brands {
        padding: 36px 15px;
    }
    .brandpage-brands__title {
        font-size: 24px;
        line-height: 1.1em;
        margin-bottom: 24px;
    }
    .brandpage-brands__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .brandpage-brands__card-desc {
        font-size: 16px;
    }
}

/* ==================================================================
   SECTION 6 — Categories
   Desktop: uses .th_product_categories from custom_shop_3.css
   Only wrapper styles here; card styles come from theme
   ================================================================== */

.brandpage-categories {
    padding: 72px 15px;
    max-width: 1440px;
    margin: 0 auto;
}

.brandpage-categories .th_pc_header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .brandpage-categories {
        padding: 48px 15px;
    }
    .brandpage-categories .th_pc_heading {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brandpage-categories {
        padding: 36px 15px;
    }
    .brandpage-categories .th_pc_heading {
        font-size: 24px;
        line-height: 1.1em;
    }
    .brandpage-categories .th_pc_subheading {
        font-size: 18px;
        text-align: left;
    }
    .brandpage-categories .th_pc_header {
        max-width: 100%;
        padding-bottom: 24px;
    }
}

/* ==================================================================
   SECTION 7 — Partners Hook (th_colaboratori carousel)
   Full bleed wrapper
   ================================================================== */

.brandpage .th-colaboratori {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Tablet */
@media (max-width: 1024px) {
    .brandpage .th-colaboratori .th-colaboratori-title {
        font-size: 40px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brandpage .th-colaboratori {
        padding: 36px 15px 0;
    }
    .brandpage .th-colaboratori .th-colaboratori-header {
        width: 100% !important;
        padding-bottom: 24px;
    }
    .brandpage .th-colaboratori .th-colaboratori-title {
        font-size: 24px !important;
        line-height: 1.1em !important;
        text-align: center !important;
    }
    .brandpage .th-colaboratori .th-colaboratori-text {
        font-size: 18px !important;
        text-align: left !important;
    }
}
