/**
 * Estilos específicos Villaggio (home / banner) — arquivo estático, sem SASS.
 */

/* -------------------------------------------------------------------------
   1ª dobra: headline + CTA (sobre o overlay)
   ------------------------------------------------------------------------- */
.image-header .hero-fold-copy {
    position: absolute;
    z-index: 30;
    left: 6%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    max-width: min(980px, 88vw);
    box-sizing: border-box;
    color: #fff;
    text-align: left;
    pointer-events: none;
    margin-top: 80px;
}

.image-header .hero-fold-copy h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 34px !important;
    line-height: 1.18;
    font-weight: 500;
    margin: 0 0 28px;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.image-header .hero-fold-copy h1 strong {
    font-weight: 700;
}

.image-header .hero-fold-button {
    display: inline-block;
    background-color: #fff;
    color: #111;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 20px !important;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
    pointer-events: auto;
}

.image-header .hero-fold-button:hover {
    background-color: #f3f3f3;
    color: #000;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Tablet: um passo entre desktop e mobile */
@media (max-width: 991px) {
    .image-header .hero-fold-copy {
        left: 5%;
        max-width: min(840px, 92vw);
        margin-top: 64px;
    }

    .image-header .hero-fold-copy h1 {
        font-size: 30px !important;
        margin-bottom: 22px;
    }

    .image-header .hero-fold-button {
        font-size: 18px !important;
        padding: 14px 22px;
        line-height: 1.25;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .image-header .hero-fold-copy {
        left: 5%;
        right: 5%;
        top: 50%;
        transform: translateY(calc(-50% + 28px));
        width: auto;
        max-width: none;
        margin-top: 48px;
        text-align: left;
    }

    .image-header .hero-fold-copy h1 {
        font-size: clamp(18px, 5.2vw, 26px) !important;
        margin-bottom: 16px;
        overflow-wrap: anywhere;
    }

    .image-header .hero-fold-button {
        display: inline-block;
        max-width: 100%;
        font-size: clamp(15px, 3.8vw, 18px) !important;
        padding: 12px 18px;
        line-height: 1.25;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .image-header .hero-fold-copy {
        transform: translateY(calc(-50% + 20px));
        margin-top: 40px;
    }

    .image-header .hero-fold-copy h1 {
        font-size: 17px !important;
        line-height: 1.22;
    }

    .image-header .hero-fold-button {
        font-size: 14px !important;
        padding: 11px 16px;
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   Slider de capas: indicadores centralizados no banner, acima do overlay
   ------------------------------------------------------------------------- */
.image-header .capas-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-header .capas-indicators {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: auto;
}

.image-header .capas-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:
        background 0.3s ease,
        width 0.3s ease,
        border-radius 0.3s ease;
    flex-shrink: 0;
}

.image-header .capas-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.85);
}

.image-header .capas-indicators .indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .image-header .capas-indicators {
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        max-width: calc(100% - 24px);
        padding: 0 6px;
        box-sizing: border-box;
    }
}

/* -------------------------------------------------------------------------
   2ª dobra: portfólio (título + CTA parceiro)
   ------------------------------------------------------------------------- */
#about-us-1.portfolio-fold .portfolio-fold-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.25;
    color: #141414;
    margin: 0;
    letter-spacing: 0.02em;
}

#about-us-1.portfolio-fold .portfolio-fold-title strong {
    font-weight: 700;
}

/* Mesmo estilo do .hero-fold-button, com fundo preto e texto claro (portfólio + Nossa Fábrica) */
#about-us-1.portfolio-fold .portfolio-fold-cta,
#nossa-fabrica .portfolio-fold-cta {
    display: inline-block;
    background-color: #111;
    color: #fff !important;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px !important;
    line-height: 1;
    font-weight: 600;
    text-decoration: none !important;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

#about-us-1.portfolio-fold .portfolio-fold-cta strong,
#nossa-fabrica .portfolio-fold-cta strong {
    font-weight: 700;
}

#about-us-1.portfolio-fold .portfolio-fold-cta:hover,
#nossa-fabrica .portfolio-fold-cta:hover {
    background-color: #2a2a2a;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

@media (max-width: 991px) {
    #about-us-1.portfolio-fold .portfolio-fold-cta,
    #nossa-fabrica .portfolio-fold-cta {
        font-size: 18px !important;
        padding: 14px 22px;
        line-height: 1.25;
    }
}

@media (max-width: 767px) {
    #about-us-1.portfolio-fold .portfolio-fold-heading {
        padding-top: 2rem !important;
    }

    #about-us-1.portfolio-fold .portfolio-fold-title {
        font-size: clamp(1.65rem, 5.5vw, 2.25rem);
    }

    #about-us-1.portfolio-fold .portfolio-fold-cta,
    #nossa-fabrica .portfolio-fold-cta {
        display: inline-block;
        max-width: 100%;
        font-size: clamp(15px, 3.8vw, 18px) !important;
        padding: 12px 18px;
        line-height: 1.25;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    #about-us-1.portfolio-fold .portfolio-fold-cta,
    #nossa-fabrica .portfolio-fold-cta {
        font-size: 14px !important;
        padding: 11px 16px;
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   3ª dobra: Nossa Fábrica (texto + vídeo)
   ------------------------------------------------------------------------- */
#nossa-fabrica.fabrica-fold {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Bootstrap 3: .row é float — sem flex as colunas não “esticam” na altura do vídeo */
#nossa-fabrica .fabrica-fold-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#nossa-fabrica .fabrica-fold-text {
    text-align: left;
    padding-right: 1.5rem;
}

/* ≥992px (col-md-*): duas colunas lado a lado + mesma altura + texto centrado na vertical ao vídeo */
@media (min-width: 992px) {
    #nossa-fabrica .fabrica-fold-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    /* Clearfix ::before/::after viram “itens” no flex e quebram a linha */
    #nossa-fabrica .fabrica-fold-row::before,
    #nossa-fabrica .fabrica-fold-row::after {
        content: none !important;
        display: none !important;
    }

    #nossa-fabrica .fabrica-fold-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        float: none;
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
        padding-bottom: 0;
    }

    #nossa-fabrica .fabrica-fold-video {
        display: flex;
        align-items: center;
        justify-content: center;
        float: none;
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
    }
}

/* Empilhado: fluxo normal (evita flex herdado em telas onde md não atua) */
@media (max-width: 991px) {
    #nossa-fabrica .fabrica-fold-text,
    #nossa-fabrica .fabrica-fold-video {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
    }

    #nossa-fabrica .fabrica-fold-text {
        padding-right: 0;
        padding-bottom: 1.75rem;
    }
}

#nossa-fabrica .fabrica-fold-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: clamp(2.1rem, 3.5vw, 3.25rem);
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #141414;
    margin: 0 0 15px;
}

#nossa-fabrica .fabrica-fold-title strong {
    font-weight: 700;
}

#nossa-fabrica .fabrica-fold-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    margin: 0 0 20px;
}

#nossa-fabrica .fabrica-fold-body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px !important;
    line-height: 1.68;
    color: #2a2a2a;
    margin: 0 0 1.35rem;
    max-width: 500px;
    width: 100%;
    text-align: justify;
    margin-bottom: 40px;
}

#nossa-fabrica .fabrica-fold-cta-wrap {
    margin-top: 0.35rem;
    text-align: left;
}

#nossa-fabrica .fabrica-fold-video {
    text-align: center;
}

#nossa-fabrica .fabrica-fold-video-el {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    #nossa-fabrica.fabrica-fold {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    #nossa-fabrica .fabrica-fold-title {
        font-size: clamp(1.65rem, 5.5vw, 2.35rem);
    }

    #nossa-fabrica .fabrica-fold-subtitle {
        font-size: clamp(0.78rem, 2.4vw, 0.9rem);
    }

    #nossa-fabrica .fabrica-fold-body {
        font-size: clamp(1rem, 3.2vw, 1.1rem);
    }

    #nossa-fabrica .fabrica-fold-cta-wrap {
        text-align: center;
    }

    #nossa-fabrica .portfolio-fold-cta {
        width: 100%;
        max-width: 100%;
    }

    #nossa-fabrica .fabrica-fold-video-el {
        width: 100% !important;
    }
}

/* -------------------------------------------------------------------------
   4ª dobra: Depoimentos (Owl Carousel — 3 por linha no desktop)
   ------------------------------------------------------------------------- */
#depoimentos-home.depoimentos-fold,
#blog.bgsubgray {
    padding-top: 80px;
    padding-bottom: 80px;
}
#blog.bgsubgray {
    padding-bottom: 0 !important;
}

#depoimentos-home .depoimentos-fold-header {
    max-width: 1020px;
    margin: 0 auto 80px;
    padding: 0 0.5rem;
}

#depoimentos-home .depoimentos-fold-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 24px !important;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #141414;
    margin: 0 0 1rem;
}

#depoimentos-home .depoimentos-fold-title strong {
    font-weight: 700;
}

#depoimentos-home .depoimentos-fold-lead {
    font-family: "Montserrat", sans-serif;
    font-size: 16px !important;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

#depoimentos-home .depoimentos-slider-wrap {
    position: relative;
    padding: 0 52px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#depoimentos-home .testimonial-card {
    font-family: "Montserrat", sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 20px 15px 20px;
    margin: 0 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;

    min-height: 300px;
    box-sizing: border-box;
}

#depoimentos-home .owl-wrapper {
    display: flex !important;
    align-items: stretch;
}

#depoimentos-home .owl-item,
#depoimentos-home .owl-item .item {
    display: flex;
    align-items: stretch;
    height: 100%;
}

#depoimentos-home .testimonial-avatar-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto 1.25rem;
}

#depoimentos-home .testimonial-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #f0f0f0;
}

#depoimentos-home .testimonial-badge-google {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#depoimentos-home .testimonial-badge-google-g {
    font-size: 12px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(
        135deg,
        #4285f4 0%,
        #ea4335 40%,
        #fbbc04 65%,
        #34a853 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

#depoimentos-home .testimonial-quote {
    font-size: 16px !important;
    line-height: 1.65;
    color: #555;
    margin: 0 0 1rem;
    min-height: 4.5em;
}

#depoimentos-home .testimonial-name {
    font-size: 16px !important;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* Setas laterais (fora do Owl — API prev/next) */
#depoimentos-home .depoimentos-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

#depoimentos-home .depoimentos-nav-btn:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.04);
}

#depoimentos-home .depoimentos-nav-btn-prev {
    left: 0;
}

#depoimentos-home .depoimentos-nav-btn-next {
    right: 0;
}

#depoimentos-home .owl-pagination {
    margin-top: 1.75rem;
    text-align: center;
}

#depoimentos-home .owl-controls .owl-page span {
    background: #bbb !important;
    opacity: 0.6 !important;
}

#depoimentos-home .owl-controls .owl-page.active span,
#depoimentos-home .owl-controls.clickable .owl-page:hover span {
    background: #111 !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    #depoimentos-home.depoimentos-fold {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    #depoimentos-home .depoimentos-slider-wrap {
        padding: 0 40px 2.5rem;
    }

    #depoimentos-home .owl-controls .owl-buttons div {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    #depoimentos-home .testimonial-card {
        min-height: 0;
        margin: 0 4px;
    }

    #depoimentos-home .testimonial-quote {
        min-height: 0;
    }
}

/* -------------------------------------------------------------------------
   Dobra Blog (#blog): título da seção
   ------------------------------------------------------------------------- */
#blog .blog-fold-header {
    float: none;
    width: 100%;
    margin-bottom: 2.5rem;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

#blog .blog-fold-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #141414;
    margin: 0;
}

#blog .blog-fold-title-strong {
    font-weight: 700;
}

#blog .blog-fold-title-light {
    font-weight: 300;
}

@media (max-width: 767px) {
    #blog .blog-fold-header {
        margin-bottom: 1.75rem;
    }
}
