@import url('views/home.css');
@import url('views/who-we-are.css');
@import url('views/history.css');
@import url('views/the-founder.css');
@import url('views/our-philosophy.css');
@import url('views/our-brands.css');
@import url('views/group-in-the-world.css');
@import url('views/group-structure.css');
@import url('views/documents-group.css');
@import url('views/canal-etico.css');
@import url('views/privacy-policy.css');
@import url('views/corporate-governance.css');
@import url('views/master-franchising.css');
@import url('views/corporate-communication.css');
@import url('views/our-identity.css');
@import url('views/growth.css');
@import url('views/work-with-us.css');
@import url('views/social-responsibility.css');
@import url('views/social-initiatives.css');
@import url('views/report-sustainability.css');
@import url('views/contacts.css');
@import url('animations.css');


:root {
    --paragraph: 1.25rem;
    --primary-color: #b7dd45;
    --secondary-color: #ffffff;
    --accent-color: #007638;

    --tertiary-color: #22282f;
    --tertiary-color-text: #efeff0;
    --tertiary-color-text-secondary: #8EA0B6;

    --tecnocasa-grey: #424E5B;
    --tecnocasa-light-blue-grey: #E0E6EE;

    --spacing: -3%;
    --tangerine: 30%;

    --base-weight: 300;

    --xs-space: 1.5rem;
    --md-space: 2.2rem;
    --lg-space: 3.1rem;
    --xl-space: 4.5rem;
}

.w-45 {width: 45%;}
.w-65 {width: 65%;}
.w-85 {width: 85%;}

.int-spacing-top {
    padding-top: 5%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito", sans-serif !important;
    font-optical-sizing: auto;
    position: relative;
    overflow-x: hidden;
}

p {
    font-size: var(--paragraph);
    font-weight: var(--base-weight);
}

strong {font-weight: 700;}


/* 
.h1 {font-size:4.5rem;} 
.h2 {font-size:4rem;}
.h3 {font-size:3rem;}
.h4 {font-size:2.25rem;}
.h5 {font-size:1.75rem;}
.h6 {font-size:1.5rem;}
*/
.h1 {font-size: clamp(3.1rem, 4vw, 4.5rem);}
.h2 {font-size: clamp(2.8rem, 4vw, 4rem);}
.h3 {font-size: clamp(2.4rem, 4vw, 3rem);}
.h4 {font-size: clamp(1.9rem, 4vw, 2.25rem);}
.h5 {font-size: clamp(1.5rem, 4vw, 1.75rem);}
.h6 {font-size: clamp(1.2rem, 4vw, 1.5rem);}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: var(--base-weight);
    letter-spacing: var(--spacing);
}

.label-title {
    text-transform: uppercase;
    letter-spacing: var(--tangerine);
    font-weight: 300;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    /* border: 2px solid black; */
    border-radius: 50%;
    pointer-events: none; /* evita problemi con hover */
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    background-color: rgba(183,221,69,0.5);
    z-index:99999;
}

.pointer {
    cursor: pointer;
}
.close {
    width: 18px;
    height: 18px;
}

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


.navigator {
    position: absolute;
    z-index: 99;
    width: 100%;

    nav {
        display: flex;
        justify-content: space-between;
        height: 80px;
    
        .left-portion {
            display: flex;
            align-items: center;
    
            img {
                height: 50px;
                width: auto;
                padding-left: 20px;
            }
        }
    
        .right-portion {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-right: 20px;
            gap: 15px;

            span {
                font-size: 12px;
                font-weight: 700;
            }
    
            .lang-selector-icon {
                cursor: pointer;
            }
        }
    }
}
.navigator.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);

    transform: translateY(0);
    transition:
        transform .35s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.navigator.hidden {
    transform: translateY(-100%);
}

.lang-selector {
    margin: 22px;
    padding: 25px;
    width: 200px;
    position: fixed;
    top: 40px;
    right: 0;
    background-color: var(--tertiary-color);
    border-radius: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
    pointer-events: none;
    box-shadow: 0 9px 40px 0 rgba(0, 0, 0, 0.25);

    &.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .lang-row {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 20px;

        p {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 0;
            color: var(--secondary-color);
        }
    }
}

.full-screen-nav {
    height: 0;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--tecnocasa-grey);
    background-image: url("data:image/svg+xml,%3Csvg width='363' height='603' viewBox='0 0 363 603' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.2'%3E%3Cpath d='M313.5 603C403.242 603 476 530.242 476 440.5C476 350.758 403.242 278 313.5 278C223.758 278 151 350.758 151 440.5C151 530.242 223.758 603 313.5 603Z' fill='%2322282F'/%3E%3Cpath d='M313.907 0.265625L627.279 316.911L530.527 410.818L312.934 192.169L96.7705 409.377L0 315.488L312.084 1.5791L313.645 0L313.648 0.00488281L313.654 0L313.907 0.265625Z' fill='%2322282F'/%3E%3C/g%3E%3C/svg%3E%0A");
    /* background-size: 800px 800px; */
    background-position: right center;
    background-repeat: no-repeat;
    color: white;
    z-index: 100;
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    inset: 0;

    .padding-50 {
        padding: 50px;
    }

    .icon-size {
        width: 50px;
    }

    .title-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
        padding: 5% 5% 10% 5%;
        /* padding: 150px 0 0 100px; */

        .nav-title-container {
            margin-bottom:15px;
            /* height: 121px; */

            .nav-title {
                font-size: 42px;
                font-weight: 200;
                color: var(--secondary-color);
                text-decoration: none;
                /*text-align: right;*/                
                cursor: pointer;
                transition: color 0.3s ease;

                &.active,
                &:hover {
                    color: var(--primary-color);
                }

            }
        }
    }
    .side-subpage-block {
        padding: 5% 5% 10% 5%;
    }

    .side-title-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;

        .sub-page-group {
            position: absolute;
            left: 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;

            .sub-page {
                color: var(--secondary-color);
                font-size: 14px;
                font-weight: 300;
                margin-bottom: 3px;
            }

            a.sub-page {
                text-decoration: none;
                color: var(--secondary-color);
            }

            &.group-1 {
                /* top: 170px; */
                top: 0px;
            }

            &.group-2 {
                top: 100px;
            }

            &.group-3 {
                top: 200px;
            }

            &.group-4 {
                top: 290px;
            }

            &.hide {
                display: none;
            }

        }
    }

    .nav-indicator {
        position: absolute;
        left: 0;
        width: 5px;
        background-color: var(--primary-color);
        transition: top 0.3s ease, height 0.3s ease;
        z-index: 1;
    }

    /* Inline accordion panels cloned from the sub-page groups (mobile only). */
    .nav-sub-menu {
        display: none;
        flex-direction: column;
        gap: 14px;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        padding-left: 4px;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;

        .sub-page {
            color: var(--secondary-color);
            font-size: 16px;
            font-weight: 400;
            text-decoration: none;
        }
    }
}

/* Mobile: single-column accordion menu (see design). */
@media (max-width: 768px) {
    .full-screen-nav {
        overflow-y: auto;
        background-size: 500px 500px;
        background-position: calc(100% + 120px) center;
        /* width: 100%;
        height: 100%; */

        .padding-50 {
            padding: 28px;
        }

        img[alt="close"] {
            width: 26px;
            /* margin: 28px; */
            margin: 5px;
        }

        /* Collapse to one column: hide the desktop side column + indicator. */
        .side-title-container,
        .nav-indicator {
            display: none;
        }

        .title-container {
            flex: 1 1 100%;
            width: 100%;
            padding: 10px 28px 60px;
            justify-content: flex-start;
            align-items: stretch;
        }

        .nav-title-container {
            height: auto;
        }

        .nav-title {
            font-size: 34px;
            text-align: left;
            padding: 12px 0;
        }

        /* Accordion: the active title (single-active via JS) reveals its panel
           and, by the same logic, closes the previously open one. */
        .nav-sub-menu {
            display: flex;
        }

        .nav-title.active ~ .nav-sub-menu {
            max-height: 400px;
            opacity: 1;
            padding: 4px 0 18px 4px;
        }
    }
}

footer {
    width: 100%;
    min-height: 620px;
    background-color: var(--tertiary-color);
    background-image: url('/public/img/tc-pin-grey.svg');
    background-repeat: no-repeat;
    background-size: 620px 620px;
    background-position: calc(100% + 310px) center;
    padding: 5rem 4rem 1.5rem 4rem;

    .margin-footer-logo {
        margin-bottom: 70px;
    }

    .footer-logo {
        width: 230px;
    }

    .footer-title {
        color: var(--tertiary-color-text);
        font-size: 24px;
        margin-bottom: 40px;
        font-weight: 200;

        a {
            text-decoration: none;
            color: var(--tertiary-color-text);
        }
    }

    .footer-link {
        color: var(--tertiary-color-text-secondary);
        font-size: 14px;
        text-decoration: none;
        font-weight: var(--base-weight);
    }

    .footer-link-margin {
        margin-bottom: 8px;

        .nation a {
            color: var(--primary-color);
            font-weight: 600;
        }
    }

    .margin-footer-nations {
        p {font-size: 0.9rem;}        
        .title {color: var(--tertiary-color-text);}
        .list {color: var(--tertiary-color-text-secondary);}
    }
    .margin-footer-copyrights {
        p {
            font-size: 0.7rem;
            color: var(--tertiary-color-text);
            font-weight: 600;
            line-height: 1.5rem;
        }      
        
        .copyrights {
            a {
                color: var(--secondary-color);
                font-weight: 600;
            }
        }
    }
}

.highlight {
    background-color: var(--primary-color);
    color: white;
}

.column-width {
    max-width: 60%;
}

.btn-tc {
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    position: relative;
    display: inline-block;
    background-color: transparent;
    padding: 10px 40px;
    border: none;
    text-transform: uppercase;
    color: var(--accent-color);
    transition: color 0.3s ease;
    text-decoration: none;

    &::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        width: 100%;
        height: 2px;
        background-color: var(--accent-color) !important;
        transition: all 0.3s ease;
        z-index: -1;
    }

    &:hover::after {
        height: 100%;
    }

    &:hover {
        color: white;
    }
}

.asterics {
    width: 55px;
    height: 55px;
    margin-bottom: 1.5rem;
}

.page_internal {
    padding-left: 36px;
    padding-right: 36px;
}

.page-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--tertiary-color);
}

.heading-title {
    font-weight: 300;
    font-size: clamp(3.1rem, 4vw, 4.5rem);
    /* font-size: 72px; */
    /* line-height: 90px; */
    letter-spacing: var(--spacing);
}

.sub-heading-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--tecnocasa-grey);
    max-width: 70vw;
    max-width: 85ch;
}

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

.cust-row {
    display: flex;
    flex-direction: row;
}

.indicator-style {
    color: var(--primary-color);
    font-size: 100px;
    font-weight: 700;
}

.custom-container {
    /* width: 80vw; */

    @media (max-width: 768px) {
        width: 100vw;
    }
}

.loader-container {
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .loader {
        width: 48px;
        height: 48px;
        border: 5px solid var(--primary-color);
        border-bottom-color: transparent;
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quotes {
    display: flex;
    flex-direction: column;
    padding: 0 50px;
    cursor: pointer;

    .quote {
        display: flex;
        justify-content: space-between;
        padding: 30px 0;
        border-bottom: 2px solid var(--tecnocasa-light-blue-grey);

        p {
            font-size: 28px;
            font-weight: 400;
        }

        img {
            width: 30px;
            transition: transform 0.3s ease;
            cursor: pointer;

            &.open {
                transform: rotate(45deg);
            }
        }
    }
}

.full-quote {
    display: block;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-top 0.3s ease;

    &.open {
        max-height: 1000px;
        padding-top: 50px;
    }

    p {
        font-size: 20px;
        font-weight: 400;
        color: var(--tecnocasa-grey);

        span.when {
            font-weight: 700;
        }
    }
}

.arrow-button,
.splide__arrow {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: all 0.2s ease;
    margin: 0 5px;
    background-image: url('/public/img/arrow-left.svg');
    background-size: 40px 40px;

    &:hover {
        background-image: url('/public/img/arrow-left-white.svg');
        background-size: 40px 40px;
        background-color: var(--accent-color);
    }
}
.splide{
    position: relative;
    margin-bottom: 10%;

    .splide__slide a > .image-label {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; /* orizzontale */
        align-items: center;     /* verticale */
        opacity: 0;
        height: 100%;
        width: 100%;
        background-color:rgba(0, 0, 0, 0.45);
        transition: opacity 400ms ease-out;
        -webkit-transition: opacity 400ms ease-out;
        -moz-transition: opacity 400ms ease-out;
        -ms-transition: opacity 400ms ease-out;
        -o-transition: opacity 400ms ease-out;

        img {
            width: 34px !important; 
            height: 34px !important;
        }

        h6 {
            font-size: 1.8rem;
            color: var(--secondary-color);
            font-weight: 400;
            margin-top: 1rem;
            text-transform: capitalize;
        }
    }
    .splide__slide a:hover .image-label {
        opacity: 1;
        transition: opacity 400ms ease-out;
        -webkit-transition: opacity 400ms ease-out;
        -moz-transition: opacity 400ms ease-out;
        -ms-transition: opacity 400ms ease-out;
        -o-transition: opacity 400ms ease-out;
    }
}

.splide__arrows{
    position: absolute;
    bottom: -80px;
    right: 0;

    display: flex;
    gap: 12px;
    
}

.splide__arrow {
    transform: translateY(0%);
    position: relative !important;
    inset: auto !important;
    /* transform: none !important; */
    /* bottom: -10%; */
    top: auto;
    opacity: 1;
}
.splide__arrow > svg {
    display:none;
}

.load-more-container {
    justify-content: center;
    align-items: center;
    display: none;
    padding: 2rem;

    &.active {
        display: flex;
    }

    p {
        /* font-size: 16px; */
        font-weight: 400;
        color: rgba(142, 160, 182, 0.5);
        /* color: var(--tertiary-color-text-secondary); */
        cursor: pointer;
    }
}

.page-banner {
    background-color: var(--primary-color);
}

.end-page-container {
    min-height: 360px;
    padding: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

/* Carousel Component */
.carousel-wrapper {
    width: 100%;
    margin: 40px 0;
}

.carousel-nav-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 10px;
}

.carousel-prev:hover {
    transform: rotate(45deg);
}

.carousel-next {
    transform: rotate(180deg);
}

.carousel-next:hover {
    transform: rotate(225deg);
}

.carousel {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 15px;

    &::-webkit-scrollbar {
        display: none;
    }

    .carousel-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 500px;
        min-width: 500px;
        padding: 30px;
        flex-shrink: 0;

        .card-cover {
            width: 420px;
            height: 275px;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;

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

        .indicator {
            padding: 30px 10px;
        }

        .card-title {
            font-size: 42px;
            font-weight: 700;
            color: var(--tertiary-color);
            padding-top: 28px;
        }

        .card-desc {
            font-size: 18px;
            font-weight: 400;
            color: var(--tecnocasa-grey);
        }
    }
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0px 60px;
    justify-content: center;
    align-items: center;

    h1 {
        text-align: center;
    }

    p {
        text-align: center;
    }
}

.bg-divisor {
    max-width: 100%;
    margin: auto;

    img {
        width: 100%;
    }
}

/***************************/
/****** MEDIA QUERIES ******/
/***************************/


@media (max-width: 1460px) {
    .w-45 {width: 100%;}
}

@media (max-width: 991px) {
    .w-65 {
        width: 100%;
        padding: 2rem;
    }

    .full-screen-nav {
        gap: 60px;

        .title-container {
            flex: 1.8;
            .nav-title-container {
                .nav-title {
                    font-size: 38px;
                }
            }
        }
    }


    footer > .row {
        .footer-title {
            margin-top: 20px;
        }
    }
}


@media (max-width: 660px) {
    .w-75 {
        width: 100% !important;
    }

    .full-screen-nav {
        .title-container {
            flex: auto;

            .nav-title-container {
                .nav-title {
                    font-size: 28px;
                }
            }
        }
    }
    /* .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
        line-height: 1;
    } */
    .page-title {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    .bg-divisor {
        img {
            width: 100%;
            height: 1px;
            background-color: rgba(224, 230, 238, 0.8);
        }
    }
    footer {
        padding: 3rem 2rem;

        .margin-footer-logo {
            margin-bottom: 40px;
        }
    }
    footer > .row {
        display: block; 

        .footer-title {
            margin-top: 40px;
            margin-bottom: 10px;
        }
    }
}
@media (max-width: 390px) {
    .end-page-container {
        padding: 3.5rem 2rem;
    }
}
