/* 
    TRANCOSO TAÍPE — REFINED EDITION V16.2
    Aesthetic: Tropical Quiet Luxury / Organic Minimalism
*/

:root {
    --color-vinho: #490905;
    --color-marrom: #39362f;
    --ds-sand-50: #fdfaf6;
    --ds-warm-300: #c5bbb0;
    --ds-copper-500: #b07848;
    --color-creme: #fbe3c1;
    --color-sand: #f9f6f2;
    --color-text: #2c2c2c;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 15px 45px rgba(0,0,0,0.04);
}

/* --- CUSTOM SCROLLBAR (Design System) — Refined Elegance --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(177, 120, 72, 0.4);  /* Copper 40% opacity */
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(177, 120, 72, 0.95);  /* Copper 95% opacity */
    border-radius: 4px;
}

body {
    background-color: var(--color-sand) !important;
    color: var(--color-text);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

/* Page Wrapper */
.refined-page-wrapper {
    padding: 120px 20px;
    background: linear-gradient(180deg, var(--color-creme) 0%, var(--color-sand) 300px);
}

.refined-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Typography Refinement */
h1, h2, h3, .font-solea {
    font-family: 'Solea', serif !important;
    letter-spacing: 0.1em !important;
    
    color: var(--color-vinho);
}

.refined-header h1 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 10px;
}

.refined-breadcrumb {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 80px;
    opacity: 0.6;
}

/* Content Area */
.refined-content-area {
    background: #ffffff !important;
    padding: 80px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.refined-content-area h2 {
    margin-top: 60px;
    border-bottom: 1px solid var(--color-creme);
    padding-bottom: 15px;
}

/* Glassmorphism RD Forms */
.rd-conversion-form {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    margin: 60px 0;
}

/* Gallery Grid */
.refined-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 60px 0;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 1/1;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Buttons Animation */
@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ken Burns Effect — Subtle Zoom on Hero Images */
@keyframes kenBurns {
    from {
        background-size: 100% 100%;
    }
    to {
        background-size: 115% 115%;
    }
}

/* Buttons */
.btn-refined {
    display: inline-block;
    padding: 18px 40px;
    background: var(--color-vinho);
    color: #fff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInButton 0.8s ease-out 0.6s both;
}

.btn-refined:hover {
    background: var(--color-marrom);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hero CTA Buttons */
.ds-btn, .ds-btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: var(--color-vinho);
    color: #fff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInButton 0.8s ease-out 0.5s both;
}

.ds-btn:hover, .ds-btn-primary:hover {
    background: var(--color-marrom);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(73, 9, 5, 0.2);
}

/* Footer */
.refined-page-footer {
    margin-top: 100px;
    text-align: center;
    padding-bottom: 100px;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: var(--color-vinho);
    margin: 0 auto 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .refined-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .refined-content-area { padding: 40px 20px; }
    .refined-header h1 { font-size: 2.5rem; }
}

/* --- GOLD STANDARD SILO SYSTEM --- */
.lp-investor-wrapper {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.lp-section { padding: 100px 0; width: 100%; position: relative; overflow: hidden; }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Hero Refinement */
.lp-hero, .silo-hero {
    background-size: 100% 100% !important;
    background-position: center !important;
    background-attachment: scroll !important;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
    animation: kenBurns 12s ease-in-out infinite alternate !important;
}

.lp-hero::before, .silo-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
    pointer-events: none;
}

.silo-title {
    font-family: 'Solea', serif !important;
    font-size: 4rem !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    max-width: 850px;
    color: white !important;
    text-transform: uppercase;
}

.silo-subtitle {
    font-size: 1.25rem !important;
    margin-bottom: 40px !important;
    max-width: 650px;
    opacity: 0.95;
    color: white !important;
}

/* CONSOLIDATED .lp-title — Gold Standard (Unified across all LP pages) */
.lp-title {
    font-family: var(--ds-font-display);
    font-size: 4rem !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    max-width: 850px;
    color: white !important;
    text-transform: uppercase !important;
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .lp-title { font-size: 2.8rem !important; }
}

/* CONSOLIDATED FAQ — Gold Standard (Unified across all LP pages) */
.faq-item { border-bottom: 1px solid var(--ds-warm-100); padding: 10px 0; }
.faq-item summary { list-style: none; font-family: var(--ds-font-display); font-size: 1.25rem; padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; color: var(--ds-copper-500); font-size: 1.5rem; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-bottom: 30px; color: var(--ds-warm-600); line-height: 1.7; }

/* Form Refinement (Specific to Silo Pages - Image 3 Layout) */
.refined-form-container {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.refined-form-container .flex.gap-5 {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

@media screen and (max-width: 768px) {
    .refined-form-container .flex.gap-5 {
        flex-direction: column;
        gap: 40px;
    }
}

.refined-form-container .item-3 {
    flex: 1;
    width: 100%;
}

/* Titles from CF7 */
.refined-form-container .formulario_title.desk h3 {
    font-family: 'Solea', serif;
    font-size: 2rem;
    color: #4a2b12;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: normal;
}

.refined-form-container .formulario_title.mob {
    display: none;
}

@media screen and (max-width: 768px) {
    .refined-form-container .formulario_title.desk { display: none; }
    .refined-form-container .formulario_title.mob { 
        display: block; 
        font-family: 'Solea', serif;
        font-size: 2rem;
        color: #4a2b12;
        margin-bottom: 20px;
        text-transform: uppercase;
    }
}

/* Inputs with Icons on the left */
.refined-form-container input[type="text"],
.refined-form-container input[type="email"],
.refined-form-container input[type="tel"] {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px 0 12px 55px !important;
    border: none !important;
    border-bottom: 1px solid #e0d9d0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 40px 40px !important;
}

/* User Icon */
.refined-form-container input[name="nome"] {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'><circle cx='20' cy='20' r='20' fill='%23f6efe9'/><path d='M20 20c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z' fill='%23b07848'/></svg>") !important;
}

/* Envelope Icon */
.refined-form-container input[name="email"] {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'><circle cx='20' cy='20' r='20' fill='%23f6efe9'/><path d='M28 12H12c-1.1 0-1.99.9-1.99 2L10 26c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V14c0-1.1-.9-2-2-2zm0 4l-8 5-8-5v-2l8 5 8-5v2z' fill='%23b07848'/></svg>") !important;
}

/* Phone Icon */
.refined-form-container input[name="telefone"] {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'><circle cx='20' cy='20' r='20' fill='%23f6efe9'/><path d='M15 20c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V28c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z' fill='%23b07848'/></svg>") !important;
}

/* Submit Button */
.refined-form-container .submit {
    background: #a67c52 !important;
    color: white !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 16px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
}
.refined-form-container .submit:hover {
    background: #8b5d36 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Right Column Customizations */
.refined-form-container .formulario_col p {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.refined-form-container .wpcf7-list-item label {
    display: inline-flex !important;
    align-items: center;
    text-transform: none !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    color: #666 !important;
    cursor: pointer;
}

.refined-form-container .wpcf7-list-item {
    margin-right: 20px !important;
}

.refined-form-container input[type="checkbox"], 
.refined-form-container input[type="radio"] {
    margin-right: 8px !important;
    accent-color: #a67c52;
    width: 18px;
    height: 18px;
}

.refined-form-container .eh_whatsapp {
    margin-top: 10px;
    margin-bottom: 10px;
}

.refined-form-container .obs {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.refined-form-container .obs::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><rect width='24' height='24' rx='6' fill='%2356d25f'/><path fill='white' d='M12.031 18.042h-.011c-1.603 0-3.176-.43-4.551-1.24l-.326-.192-3.38.887.904-3.296-.211-.336c-.886-1.41-1.353-3.045-1.353-4.717 0-4.908 3.996-8.904 8.904-8.904 2.38 0 4.617.927 6.299 2.609 1.682 1.682 2.61 3.918 2.61 6.298-.001 4.907-3.998 8.905-8.905 8.905m5.457-11.905c-1.457-1.456-3.393-2.259-5.456-2.259-4.251 0-7.717 3.466-7.718 7.717 0 1.358.354 2.686 1.026 3.855l.115.2-1.077 3.923 4.013-1.052.196.116c1.139.675 2.433 1.031 3.754 1.031h.009c4.249 0 7.718-3.466 7.719-7.717 0-2.062-.803-3.998-2.259-5.455h-.001zm-3.565 6.467c-.196-.098-1.159-.572-1.34-.638-.18-.066-.312-.098-.444.098-.131.196-.505.638-.62.768-.114.131-.228.147-.424.049-.196-.098-.826-.305-1.575-.97-.582-.518-.975-1.157-1.089-1.354-.114-.196-.012-.303.086-.4.088-.088.196-.23.295-.344.098-.114.131-.196.196-.328.066-.131.033-.246-.016-.344-.049-.098-.444-1.071-.607-1.467-.16-.388-.321-.336-.444-.342-.114-.006-.245-.006-.376-.006-.131 0-.344.049-.524.246-.18.196-.688.672-.688 1.639s.704 1.901.802 2.032c.098.131 1.388 2.118 3.363 2.97 1.666.719 2.222.76 3.01.637.788-.123 2.213-.904 2.524-1.776.311-.872.311-1.623.218-1.776-.092-.153-.355-.246-.551-.344z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Global WhatsApp Float */
.wa-float { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px; 
    background: #25d366; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 35px; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); 
    z-index: 1000; 
    text-decoration: none; 
    transition: transform 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1);
    color: white;
}

.refined-form-container label {
    display: block !important;
    text-align: left !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #999 !important;
    margin-bottom: 5px !important;
}

/* Fix for CF7 internal spans */
.refined-form-container .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* --- DYNAMIC LAYOUT COMPONENTS --- */
.flex-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.flex-content {
    flex: 1;
    min-width: 300px;
}

.flex-image {
    flex: 1;
    min-width: 300px;
}

.flex-image img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 20px 20px 0px var(--ds-sand-50);
}

/* --- FAQ ACCORDION --- */
.faq-item {
    border-bottom: 1px solid var(--ds-warm-100);
    padding: 10px 0;
}

.faq-item summary {
    list-style: none;
    font-family: var(--ds-font-display, 'Solea', serif);
    font-size: 1.25rem;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    color: var(--ds-copper-500);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 30px;
    color: var(--ds-warm-600, #999);
    line-height: 1.7;
}

/* ROI Table & Other Components */
.roi-table-container {
    overflow-x: auto;
    border: 1px solid var(--ds-warm-100, #eee);
    border-radius: 8px;
    margin-top: 40px;
}

.roi-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.roi-table th {
    padding: 20px;
    background: var(--ds-sand-50);
    font-family: var(--ds-font-body, 'Montserrat', sans-serif);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--ds-warm-100, #eee);
}

.roi-table td {
    padding: 20px;
    border-bottom: 1px solid var(--ds-warm-50, #f0f0f0);
}

/* --- CONTENT SECTIONS (Quiet Luxury) --- */
.silo-content-blocks {
    padding: 20px 0;
}

.luxury-section {
    display: block;
    margin-bottom: 100px;
}

.luxury-section .lp-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

/* Alternating rows: Even sections flip image to the left */
.luxury-section:nth-child(even) .lp-container {
    flex-direction: row-reverse;
}

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

.luxury-image {
    flex: 1;
    min-width: 300px;
}

.luxury-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 20px 20px 0px var(--color-creme);
    transition: transform 0.5s ease;
}

.luxury-section:nth-child(even) .luxury-image img {
    box-shadow: -20px 20px 0px var(--color-creme);
}

.ds-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ds-copper-500);
    margin-bottom: 16px;
    display: block;
}

.luxury-text h2 {
    font-family: 'Solea', serif !important;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-marrom);
}

.luxury-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.luxury-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.luxury-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.luxury-list li span {
    color: var(--ds-copper-500);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* --- YOAST FAQ BLOCK (Quiet Luxury Accordion) --- */

.faqpage-section {
    background: #FFFFFF !important;
    padding: 100px 0;
}

.faqpage-section .wp-block-heading {
    text-align: center;
    font-family: 'Solea', serif !important;
    font-size: 2.8rem !important;
    margin-bottom: 50px !important;
    color: var(--color-vinho) !important;
}

.wp-block-yoast-seo-faq-block {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;
}

.schema-faq-section {
    border-bottom: 1px solid var(--ds-warm-300);
    padding: 10px 0;
}

.schema-faq-question {
    font-family: 'Solea', serif;
    font-size: 1.4rem;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-vinho) !important;
    font-weight: 500;
}

.schema-faq-question::after {
    content: '+';
    color: var(--ds-copper-500) !important;
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.schema-faq-section.active .schema-faq-question::after {
    transform: rotate(45deg);
}

.schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #555 !important;
    line-height: 1.7;
    padding: 0;
    margin: 0;
    opacity: 0;
}

.schema-faq-section.active .schema-faq-answer {
    max-height: 800px;
    padding-bottom: 30px;
    opacity: 1;
}

/* Reveal Effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .silo-title { font-size: 2.8rem !important; }
    
    /* Content sections on mobile */
    .luxury-section {
        margin-bottom: 60px;
    }
    .luxury-section .lp-container { 
        gap: 40px; 
        flex-direction: column !important; /* Stack text above image */
    }
    .luxury-text h2 {
        font-size: 2.2rem;
    }
    .luxury-image img {
        box-shadow: 10px 10px 0px var(--color-creme);
    }
    .luxury-section:nth-child(even) .luxury-image img {
        box-shadow: -10px 10px 0px var(--color-creme);
    }
}

/* --- INSTAGRAM GRID (Global) --- */
.instagram-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ig-item { position: relative; aspect-ratio: 1/1; overflow: hidden; display: block; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ig-item:hover img { transform: scale(1.1); }

@media (max-width: 768px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- STICKY CTA MOBILE --- */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
}
.sticky-cta-mobile .ds-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
    margin-right: 15px;
}
.sticky-cta-mobile .wa-icon {
    width: 45px;
    height: 45px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
}
@media (max-width: 768px) {
    .sticky-cta-mobile { display: flex; }
    .wa-float { display: none; } /* Hide the normal float button on mobile to avoid collision */
}

/* --- LIGHTBOX (Vanilla JS) --- */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 11, 8, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: 4px;
}
.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    text-decoration: none;
}
/* Make target images look clickable */
.ig-item img, .wp-block-image img {
    cursor: zoom-in;
}

/* --- PERFECT FORM ALIGNMENT --- */
.refined-form-container input[type="text"],
.refined-form-container input[type="email"],
.refined-form-container input[type="tel"],
.refined-form-container .wpcf7-text,
.refined-form-container .wpcf7-email,
.refined-form-container .wpcf7-tel,
.refined-form-container .wpcf7-submit,
.refined-form-container .submit {
    box-sizing: border-box !important;
    width: 100% !important;
}

/* --- LUXURIOUS FORM RIGHT CARD --- */
.lux-form-right-card {
    background: #fefdfb;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(193, 155, 118, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
}

.lux-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.lux-icon-circle {
    background: #f6efe9;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-section-header h4 {
    font-family: var(--ds-font-display, 'Solea', serif);
    font-size: 1.1rem;
    color: #4a2b12;
    margin: 0;
    letter-spacing: 0.05em;
}

.lux-divider {
    height: 1px;
    background: #e0d9d0;
    margin-bottom: 20px;
    opacity: 0.5;
}

.lux-sub-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    display: block;
    margin-bottom: 15px;
}

.lux-checkbox-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.lux-checkbox-grid .wpcf7-form-control-wrap {
    display: flex;
    gap: 20px;
    width: 100%;
}

.lux-checkbox-grid .wpcf7-checkbox {
    display: flex;
    gap: 20px;
    width: 100%;
}

.lux-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e0d9d0;
    border-radius: 8px;
    padding: 8px 10px  3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lux-card:hover {
    border-color: #b07848;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.lux-card label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    margin: 0 !important;
}

.lux-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-card input[type="checkbox"] {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.lux-card .wpcf7-list-item-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.lux-dotted-divider {
    border-bottom: 1px dashed #e0d9d0;
    margin: 30px 0;
}

.lux-plain-checkbox {
    display: block;
    margin-bottom: 20px;
}

.lux-plain-checkbox label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #555;
}

.lux-plain-checkbox input[type="checkbox"] {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.lux-whatsapp-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4fcf6;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lux-whatsapp-banner:hover {
    background: #ebfaee;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.08);
}

.lux-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-wa-icon i {
    font-size: 32px !important;
    color: #25D366 !important;
}

.lux-wa-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lux-wa-text strong {
    color: #3d6b4c;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 700;
}

.lux-wa-text span {
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.4;
}

.lux-wa-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CONVERSION SECTION --- */
.lp-conversion-section {
    background: #f9f6f2 !important;
}

.lp-conversion-card {
    background: white !important;
    padding: 80px !important;
    border-radius: 2px !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05) !important;
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

@media screen and (max-width: 768px) {
    .lp-conversion-card {
        padding: 40px 20px !important;
    }
}

.lp-conversion-tag {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: #b07848 !important;
    margin-bottom: 16px !important;
}

.lp-conversion-title {
    margin-bottom: 20px !important;
}

.lp-conversion-desc {
    font-size: 1.1rem !important;
    color: #555 !important;
    margin-bottom: 40px !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    padding-bottom: 30px !important;
}

.lp-conversion-desc::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 3px !important;
    background: #b07848 !important;
    z-index: 10 !important;
}


/* ==================================================================
   CAMADA DE APRESENTAÇÃO REFINADA — v17 (2026-07-23)
   Objetivo: elevar a percepção visual das páginas do silo
   (Quiet Luxury / editorial) mantendo a MESMA estrutura e o mesmo
   formato de experiência. Somente CSS — nenhuma marcação alterada.
   Carrega por último no refined-edition.css → vence empates de fonte.
   ================================================================== */

/* ---------- 1. HERÓI: foto sem distorção + profundidade ---------- */
/* Remove o zoom (kenBurns) que esticava a imagem para 100% 100% e
   deixa a foto em "cover" real. Texto ancorado embaixo (editorial). */
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    background-size: cover !important;
    background-position: center center !important;
    animation: none !important;
    min-height: 90vh !important;
    align-items: flex-end !important;
    padding-bottom: 9vh;
}

/* Véu chapado preto → gradiente que dá volume e legibilidade embaixo */
.lp-investor-wrapper .lp-hero::before,
.lp-investor-wrapper .silo-hero::before {
    background: linear-gradient(
        180deg,
        rgba(20, 15, 10, 0.20) 0%,
        rgba(20, 15, 10, 0.04) 32%,
        rgba(20, 15, 10, 0.42) 76%,
        rgba(20, 15, 10, 0.74) 100%
    ) !important;
}

.lp-investor-wrapper .lp-hero .lp-container,
.lp-investor-wrapper .silo-hero .lp-container {
    padding-top: 0;
    padding-bottom: 6px;
}

.lp-hero .lp-title,
.silo-hero .silo-title,
.lp-hero .silo-title {
    font-size: clamp(2.6rem, 5.4vw, 4.5rem) !important;
    letter-spacing: 0.005em !important;
    line-height: 1.05 !important;
    max-width: 16ch;
    text-shadow: 0 2px 34px rgba(0, 0, 0, 0.32);
    margin-bottom: 20px !important;
}

.lp-hero .lp-subtitle,
.silo-hero .silo-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.32rem) !important;
    line-height: 1.55 !important;
    max-width: 48ch;
    opacity: 0.96 !important;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 36px !important;
}

.lp-hero-cta { margin-top: 4px; }

/* Botão do herói: contorno claro sobre a foto, preenche no hover */
.lp-hero-cta .ds-btn,
.lp-hero-cta .ds-btn-primary {
    background: rgba(73, 9, 5, 0.0) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    padding: 19px 46px !important;
    letter-spacing: 0.22em !important;
    font-size: 0.78rem !important;
    backdrop-filter: blur(2px);
}
.lp-hero-cta .ds-btn:hover,
.lp-hero-cta .ds-btn-primary:hover {
    background: #ffffff !important;
    color: var(--color-vinho) !important;
    border-color: #ffffff !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

/* Indicador sutil de rolagem */
.lp-investor-wrapper .lp-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 22px;
    height: 34px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    z-index: 3;
    pointer-events: none;
}
.lp-investor-wrapper .lp-hero::after {
    background-image: radial-gradient(circle, rgba(255,255,255,0.9) 0 3px, transparent 3px);
    background-repeat: no-repeat;
    background-position: center 7px;
    animation: taipeScrollHint 1.8s ease-in-out infinite;
}
@keyframes taipeScrollHint {
    0%, 100% { background-position: center 7px; opacity: 0.9; }
    50%      { background-position: center 15px; opacity: 0.45; }
}

/* ---------- 2. RITMO DAS SEÇÕES ---------- */
.silo-content-blocks { padding: 90px 0 40px; }

.luxury-section { margin-bottom: 120px; }
.luxury-section:last-child { margin-bottom: 40px; }

.luxury-section .lp-container { gap: 72px; }

@media (max-width: 1024px) {
    .luxury-section { margin-bottom: 84px; }
    .luxury-section .lp-container { gap: 44px; }
}

/* Eyebrow com filete de cobre (marca editorial) */
.ds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem !important;
    letter-spacing: 0.26em !important;
    margin-bottom: 20px;
}
.ds-eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--ds-copper-500);
    display: inline-block;
    flex: none;
}
/* Em blocos centralizados (galerias) o filete aparece dos dois lados */
.luxury-text[style*="text-align:center"] .ds-eyebrow::after,
.luxury-text[style*="text-align: center"] .ds-eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--ds-copper-500);
    display: inline-block;
    flex: none;
}

.luxury-text h2 {
    font-size: clamp(2rem, 3.3vw, 3rem) !important;
    letter-spacing: -0.01em;
    line-height: 1.12 !important;
    color: var(--color-vinho) !important;
    margin-bottom: 26px !important;
}

.luxury-text p {
    color: #4a453f !important;
    font-size: 1.08rem !important;
    line-height: 1.78 !important;
}

.luxury-list li { margin-bottom: 16px; }
.luxury-list li span { color: var(--ds-copper-500); }

/* ---------- 3. TRATAMENTO DAS IMAGENS ---------- */
/* Sai o bloco creme chapado (invisível sobre fundo creme) e entra
   sombra direcional suave + leve zoom no hover = profundidade real. */
.luxury-image {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 34px 64px -28px rgba(30, 24, 19, 0.32);
    align-self: stretch;
    display: flex;
}
.luxury-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: none !important;
    transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.luxury-section:nth-child(even) .luxury-image img { box-shadow: none !important; }
.luxury-section:hover .luxury-image img { transform: scale(1.045); }

@media (max-width: 768px) {
    .luxury-image { align-self: auto; display: block; }
    .luxury-image img { box-shadow: none !important; }
}

/* ---------- 4. GALERIAS (tg-grid) ---------- */
.tg-grid { gap: 18px !important; margin-top: 48px !important; }
.tg-grid img {
    border-radius: 8px;
    box-shadow: 0 18px 40px -26px rgba(30, 24, 19, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    filter: saturate(1);
}
.tg-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 50px -22px rgba(30, 24, 19, 0.5);
    filter: saturate(1.05);
}

/* Chips (ex.: Esporte Park) mais refinados */
.tg-chips span {
    background: rgba(176, 120, 72, 0.07) !important;
    border: 1px solid rgba(176, 120, 72, 0.28) !important;
    color: var(--color-marrom) !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.01em;
}

/* ---------- 5. FAQ ---------- */
.faqpage-section { padding: 110px 0 !important; }
.faqpage-section .wp-block-heading { margin-bottom: 46px !important; }
.schema-faq-question { font-size: 1.28rem !important; padding: 24px 0 !important; }
.schema-faq-section { border-color: rgba(57, 54, 47, 0.12) !important; }

/* ---------- 6. DISCLAIMER (Lei 4.591/64) ---------- */
.silo-content-blocks .wp-block-paragraph:last-child,
.tg-disclaimer {
    max-width: 1000px;
    margin: 8px auto 0;
    padding: 26px 24px 0;
    border-top: 1px solid rgba(57, 54, 47, 0.12);
    font-size: 0.82rem !important;
    line-height: 1.7 !important;
    color: var(--ds-warm-500) !important;
    text-align: center;
}

/* ==================================================================
   7. DROPDOWN DO MENU — correção de legibilidade + acabamento
   Bug: o painel virou branco, mas o texto herdou a cor clara do
   painel escuro (#a89e93) → ilegível. Selector com specificity
   (0,0,1,3) igual à regra ofensora e mais recente → vence.
   ================================================================== */
header .taipe-dropdown,
header div .taipe-dropdown {
    background: #fffdfa !important;
    border: 1px solid rgba(57, 54, 47, 0.07) !important;
    border-top: 2px solid var(--ds-copper-500) !important;
    border-radius: 5px !important;
    box-shadow: 0 26px 64px rgba(30, 24, 19, 0.20) !important;
    padding: 14px 0 !important;
    min-width: 272px !important;
    left: -18px;
}

header .taipe-dropdown a,
header div .taipe-dropdown a,
.taipe-dropdown a {
    color: #3a352f !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    padding: 11px 26px !important;
}

header .taipe-dropdown a:hover,
header div .taipe-dropdown a:hover,
.taipe-dropdown a:hover {
    color: var(--ds-copper-600) !important;
    background: rgba(176, 120, 72, 0.07) !important;
    padding-left: 30px !important;
}

header .taipe-dropdown a.active,
header div .taipe-dropdown a.active {
    color: var(--ds-copper-600) !important;
    font-weight: 600 !important;
}

.taipe-dropdown .dropdown-divider {
    background: rgba(57, 54, 47, 0.10) !important;
    margin: 8px 26px !important;
}

/* Rótulo de grupo dentro do dropdown ("Assinaturas do projeto") */
.taipe-dropdown .dropdown-label {
    display: block;
    padding: 12px 26px 5px;
    font-family: var(--ds-font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ds-copper-500);
}

/* ---------- 8. MENU MOBILE (grupos + CTA) ---------- */
nav.mob .mob-group {
    color: var(--ds-copper-400) !important;
    font-family: var(--ds-font-body);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    margin-top: 22px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(176, 120, 72, 0.18);
}
nav.mob .mob-group:first-child { margin-top: 0; }
nav.mob .mob-cta a {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 26px !important;
    border: 1px solid rgba(176, 120, 72, 0.5);
    border-radius: 2px;
    color: var(--ds-copper-300) !important;
    letter-spacing: 0.18em !important;
}


/* ============================================================
   AJUSTES 2026-07-27 — fundo bege claro (site-wide) + nova marca
   ============================================================ */
:root { --color-sand: #f4eee2; }
body { background-color: #f4eee2 !important; }

/* Nova marca "TAÍPE — sua nova morada" (composição vertical, preto limpo) */
header .navbar-brand img,
header#main-header .navbar-brand img {
    height: 54px !important;
    width: auto !important;
    filter: none !important;
}
header#main-header.scrolled .navbar-brand img { height: 46px !important; }


/* ==================================================================
   CAMADA v19 (2026-07-28)
   1. Herói: altura reduzida e COM TETO — deixa de ocupar a tela inteira
      em monitores altos e antecipa o começo do conteúdo.
   2. Fundo bege consistente: fecha os dois pontos que ficaram no tom
      antigo (#f9f6f2 / --ds-sand-50) depois da troca global.
   ================================================================== */

/* 1. Herói ------------------------------------------------------- */
.lp-hero,
.silo-hero,
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    min-height: clamp(400px, 60vh, 620px) !important;
    height: auto !important;
}

@media (max-width: 900px) {
    .lp-hero,
    .silo-hero,
    .lp-investor-wrapper .lp-hero,
    .lp-investor-wrapper .silo-hero {
        min-height: clamp(340px, 52vh, 500px) !important;
    }
}

/* 2. Fundo bege ---------------------------------------------------- */
#lp-section-contact,
.lp-dynamic-section[style*="ds-sand-50"] {
    background: var(--color-sand) !important;
}

/* 3. Links do conteúdo: nunca azul do navegador -------------------- */
.silo-content-blocks p a,
.silo-content-blocks li a,
.silo-content-blocks .luxury-text a,
.lp-dynamic-section p a,
.lp-dynamic-section li a {
    color: var(--ds-copper-500);
    text-decoration: none;
    border-bottom: 1px solid rgba(176, 120, 72, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.silo-content-blocks p a:hover,
.silo-content-blocks li a:hover,
.silo-content-blocks .luxury-text a:hover,
.lp-dynamic-section p a:hover,
.lp-dynamic-section li a:hover {
    color: var(--color-vinho);
    border-bottom-color: var(--color-vinho);
}

/* 4. Ícones de site e Instagram (páginas de autores) --------------- */
.tg-social {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 26px !important;
}

.tg-social a,
.silo-content-blocks p.tg-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(176, 120, 72, 0.45);
    border-radius: 50%;
    color: var(--ds-copper-500) !important;
    background: transparent;
    transition: all 0.25s ease;
}

.tg-social a:hover,
.silo-content-blocks p.tg-social a:hover {
    background: var(--ds-copper-500);
    border-color: var(--ds-copper-500);
    color: #ffffff !important;
}

.tg-social svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* ---------- v19.1 — disclaimers alinhados à esquerda ---------- */
.silo-content-blocks > p,
.silo-content-blocks .wp-block-paragraph:last-child,
.tg-disclaimer,
.tg-disclaimer p {
    text-align: left !important;
}


/* ---------- v19.2 — nenhum link azul em lugar nenhum ----------
   :where() tem especificidade ZERO: substitui o azul padrão do navegador
   sem sobrescrever nada que o tema já estilize de propósito
   (menu, botões, cards de imprensa, links do rodapé). ---------- */
:where(a) { color: var(--ds-copper-500); }
:where(a:hover) { color: var(--color-vinho); }


/* ---------- v19.3 — faixa da FAQ/disclaimer em bege (era #FFFFFF) ---------- */
.faqpage-section { background: var(--color-sand) !important; }


/* ---------- v19.4 — logo do header: lockup TAÍPE + assinatura ----------
   A versão vertical (com a falésia) deixava "sua nova morada" em ~2px,
   ilegível. Este arquivo traz só a marca nominativa + a assinatura, que
   a essa altura renderiza a assinatura em ~10px. ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img {
    height: 56px !important;
    width: auto !important;
    filter: none !important;
}
header#main-header.scrolled .navbar-brand img { height: 48px !important; }


/* ---------- v19.5 — logo do rodapé: lockup completo (falésia + assinatura) ---------- */
.footer-ds-logo img {
    height: 116px !important;
    width: auto !important;
    max-width: 100%;
}
@media (max-width: 600px) { .footer-ds-logo img { height: 92px !important; } }


/* ---------- v19.6 — lockup ORIGINAL (falésia + TAÍPE + assinatura)
   com a assinatura ampliada 1,65x e a falésia a 85% da largura do TAÍPE.
   A 88px a assinatura renderiza ~8px (antes: ~2px). ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img {
    height: 88px !important;
    width: auto !important;
    filter: none !important;
}
header#main-header.scrolled .navbar-brand img { height: 72px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 68px !important; }
}
.footer-ds-logo img { height: 132px !important; width: auto !important; max-width: 100%; }
@media (max-width: 600px) { .footer-ds-logo img { height: 104px !important; } }


/* ---------- v19.7 — plantas e mapas não podem ser cortados ----------
   O tema usa object-fit:cover nas imagens de seção (bom p/ fotos, péssimo
   p/ desenho técnico). .tg-plan mostra a imagem inteira. ---------- */
.luxury-image img.tg-plan {
    height: auto !important;
    object-fit: contain !important;
    align-self: center;
}


/* ---------- v19.8 — logo do rodapé no mesmo tamanho da do header ---------- */
.footer-ds-logo img { height: 88px !important; }
@media (max-width: 600px) { .footer-ds-logo img { height: 72px !important; } }


/* ---------- v19.9 — header volta ao lockup tradicional (falésia + TAÍPE,
   sem a assinatura). A assinatura "sua nova morada" segue no rodapé. ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 72px !important; }
header#main-header.scrolled .navbar-brand img { height: 58px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 58px !important; }
}


/* ---------- v19.10 — planta sem moldura vazia ----------
   O .luxury-image estica até a altura do texto; com object-fit:contain
   sobrava caixa em volta do desenho. align-self:center encolhe o bloco. ---------- */
.luxury-image:has(> img.tg-plan) {
    align-self: center;
    background: transparent !important;
    box-shadow: none !important;
}
.luxury-image:has(> img.tg-plan) img.tg-plan { box-shadow: none !important; }


/* ---------- v19.11 — contraste do herói ----------
   O véu da v17 era muito leve (0.20 no topo, 0.04 no meio) e o título
   branco sumia em fotos claras. Gradiente mais firme, preservando a foto. ---------- */
.lp-investor-wrapper .lp-hero::before,
.lp-investor-wrapper .silo-hero::before,
.lp-hero::before,
.silo-hero::before {
    background: linear-gradient(
        180deg,
        rgba(20, 15, 10, 0.42) 0%,
        rgba(20, 15, 10, 0.30) 38%,
        rgba(20, 15, 10, 0.46) 72%,
        rgba(20, 15, 10, 0.62) 100%
    ) !important;
}
.lp-hero .lp-title, .silo-hero .silo-title, .lp-hero .silo-title {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55) !important;
}
.lp-hero .lp-subtitle, .silo-hero .silo-subtitle {
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6) !important;
}


/* ---------- v19.12 — header com a assinatura de volta, sem crescer ----------
   Lockup completo (falésia + TAÍPE + "sua nova morada"), proporção 2,33:1.
   A 76px o conjunto ocupa ~177px de largura — praticamente o mesmo espaço
   do lockup sem assinatura que estava ali (188px a 72px). ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 76px !important; }
header#main-header.scrolled .navbar-brand img { height: 62px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 62px !important; }
}


/* ---------- v19.13 — logo proporcional ao texto do header ----------
   O menu roda em 13px; a 54px o lockup deixa a palavra TAÍPE em ~19px
   (1,5x o texto do menu) e devolve o header a ~80px de altura. ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 54px !important; }
header#main-header.scrolled .navbar-brand img { height: 46px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 46px !important; }
}


/* ---------- v19.14 — assinatura da marca no herói ----------
   Mesma tipografia do lockup: caixa alta, peso leve e tracking largo,
   entrando como chapéu do título, acima do H1. ---------- */
.lp-hero .lp-assinatura,
.silo-hero .lp-assinatura {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.72rem, 0.95vw, 0.92rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.44em;
    color: #ffffff;
    opacity: 0.9;
    margin: 0 0 18px;
    padding-left: 0.44em;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 10;
}

@media (max-width: 700px) {
    .lp-hero .lp-assinatura { letter-spacing: 0.3em; margin-bottom: 12px; }
}


/* ---------- v19.15 — herói respeita o header fixo ----------
   Com a assinatura o bloco cresceu e o topo ficava escondido atrás do
   header (103px). Empurra o conteúdo para baixo do header e sobe um
   pouco o teto da altura. ---------- */
.lp-hero,
.silo-hero,
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    min-height: clamp(470px, 64vh, 660px) !important;
}

.lp-investor-wrapper .lp-hero .lp-container,
.lp-investor-wrapper .silo-hero .lp-container {
    padding-top: 96px !important;
}

@media (max-width: 900px) {
    .lp-investor-wrapper .lp-hero .lp-container { padding-top: 84px !important; }
}


/* ---------- v19.16 — folga do header pelo próprio herói ----------
   Padding no container só desloca metade (o conteúdo é centralizado).
   Aplicando no herói com box-sizing, a área útil já começa abaixo do
   header e a centralização passa a valer dentro dela. ---------- */
.lp-hero,
.silo-hero,
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    box-sizing: border-box;
    padding-top: 104px !important;
}

.lp-investor-wrapper .lp-hero .lp-container,
.lp-investor-wrapper .silo-hero .lp-container {
    padding-top: 0 !important;
}

@media (max-width: 900px) {
    .lp-hero, .lp-investor-wrapper .lp-hero { padding-top: 88px !important; }
}


/* ---------- v19.17 — respiro do bloco do herói ---------- */
.lp-hero,
.silo-hero,
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    min-height: clamp(530px, 66vh, 700px) !important;
}


/* ---------- v19.18 — assinatura com mais ar e presença ---------- */
.lp-hero,
.silo-hero,
.lp-investor-wrapper .lp-hero,
.lp-investor-wrapper .silo-hero {
    padding-top: 136px !important;
    min-height: clamp(560px, 68vh, 720px) !important;
}

.lp-hero .lp-assinatura,
.silo-hero .lp-assinatura {
    font-size: clamp(0.78rem, 1vw, 1rem);
    opacity: 1;
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .lp-hero, .lp-investor-wrapper .lp-hero { padding-top: 104px !important; }
}


/* ---------- v19.19 — arquivo OFICIAL da marca (Dropbox) ----------
   Proporção 2,17:1. Mantida a altura coerente com o menu (13px). ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 58px !important; }
header#main-header.scrolled .navbar-brand img { height: 48px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 48px !important; }
}
.footer-ds-logo img { height: 96px !important; }


/* ---------- v19.20 — Master Plan ampliável ---------- */
.tg-plan-zoom { display: block; position: relative; cursor: zoom-in; }
.tg-plan-zoom .tg-plan-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(30, 22, 16, 0.72);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.tg-plan-zoom:hover .tg-plan-hint { opacity: 1; }
@media (hover: none) { .tg-plan-zoom .tg-plan-hint { opacity: 1; } }


/* ---------- v19.21 — marca do Grupo Enseada e legendas de foto ---------- */
.luxury-image img.tg-marca {
    height: auto !important;
    object-fit: contain !important;
    max-width: 78%;
    margin: 0 auto;
    display: block;
    box-shadow: none !important;
}

.tg-marca-topo {
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 6px 24px 0;
    box-sizing: border-box;
    text-align: center;
}

.tg-marca-topo img {
    width: 100%;
    max-width: 340px;
    height: auto;
    opacity: 0.9;
}

.tg-legenda {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--ds-warm-900);
    opacity: 0.6;
    text-align: center;
}


/* ---------- v19.22 — marca centralizada e título do herói sem quebra feia ---------- */
.tg-marca-topo img { margin-left: auto !important; margin-right: auto !important; display: block; }

.lp-hero .lp-title,
.silo-hero .silo-title,
.lp-hero .silo-title {
    max-width: 20ch !important;
    text-wrap: balance;
}


/* ---------- v19.23 — planta com link de zoom ----------
   O seletor da v19.10 exigia filho direto; com o <a> de ampliar no meio
   ele parou de casar e a moldura vazia voltou. ---------- */
.luxury-image:has(img.tg-plan) {
    align-self: center;
    background: transparent !important;
    box-shadow: none !important;
}
.luxury-image:has(img.tg-plan) img.tg-plan { box-shadow: none !important; }
.luxury-image .tg-plan-zoom { display: block; width: 100%; }


/* ---------- v19.24 — logo do topo maior, com a assinatura legível ----------
   Arte oficial com a linha "sua nova morada" ampliada dentro do lockup:
   a 78px a assinatura sai a ~7px (no arquivo oficial puro daria ~3px). ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 78px !important; }
header#main-header.scrolled .navbar-brand img { height: 62px !important; }
@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 62px !important; }
}


/* ---------- v19.25 — marca do Enseada dentro do texto ---------- */
.luxury-text img.tg-marca-inline {
    width: 190px;
    max-width: 60%;
    height: auto;
    display: block;
    margin: 4px 0 20px;
    opacity: 0.9;
}


/* ---------- v19.26 — legenda embaixo da foto ----------
   O .luxury-image é flex; sem isso a legenda virava uma coluna
   estreita ao lado da imagem. ---------- */
.luxury-image:has(.tg-legenda) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.luxury-image .tg-legenda { width: 100%; }


/* ---------- v19.27 — ampliação da planta na própria página ---------- */
.tg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20, 15, 10, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    animation: tgFade 0.25s ease;
}

@keyframes tgFade { from { opacity: 0; } to { opacity: 1; } }

.tg-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.35s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.tg-lightbox.zoom { overflow: auto; cursor: zoom-out; }
.tg-lightbox.zoom img { transform: scale(2.2); cursor: zoom-out; }

.tg-lightbox-fechar {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.tg-lightbox-fechar:hover { background: rgba(255, 255, 255, 0.12); }

.tg-lightbox-dica {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tg-lightbox.zoom .tg-lightbox-dica { opacity: 0; }


/* ---------- v19.28 — redes sociais em ícone + topo mais claro ---------- */
header,
header#main-header {
    background: #fbf5ea !important;
}

header#main-header.scrolled {
    background: rgba(251, 245, 234, 0.96) !important;
}

.nav-social,
.mob-social {
    display: flex !important;
    align-items: center;
    gap: 16px;
}

.nav-social a,
.mob-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--ds-warm-900);
    opacity: 0.78;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    border: 0 !important;
}

.nav-social a:hover,
.mob-social a:hover {
    color: var(--ds-copper-500);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-social svg,
.mob-social svg { width: 20px; height: 20px; display: block; }

.mob-social { gap: 22px; padding: 14px 0 4px; }
.mob-social svg { width: 24px; height: 24px; }


/* ---------- v19.29 — galeria de empreendimentos com legenda + marca centralizada ---------- */
.tg-marca-topo {
    padding: 40px 24px 34px !important;
    margin-bottom: 0 !important;
}

.tg-emp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.tg-emp figure { margin: 0; }

.tg-emp img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.tg-emp figcaption {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--ds-warm-900);
    opacity: 0.65;
    text-align: center;
}

@media (max-width: 1024px) { .tg-emp { grid-template-columns: repeat(2, 1fr); } }


/* ---------- v19.30 — logo clássica + localidade em texto ----------
   A linha "Trancoso · Bahia" entra como texto (não imagem): fica
   nítida em qualquer tela e o tamanho é ajustável. ---------- */
header .navbar-brand,
header#main-header .navbar-brand {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

header .navbar-brand img,
header#main-header .navbar-brand img { height: 62px !important; }
header#main-header.scrolled .navbar-brand img { height: 50px !important; }

header .navbar-brand .brand-local {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ds-warm-900);
    opacity: 0.72;
    padding-left: 0.42em;
    line-height: 1;
    white-space: nowrap;
}

header#main-header.scrolled .navbar-brand .brand-local { font-size: 0.54rem; }

@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 50px !important; }
    header .navbar-brand .brand-local { font-size: 0.52rem; letter-spacing: 0.34em; }
}


/* ---------- v19.31 — logo menor e ícones sociais em linha ----------
   .taipe-nav li tem specificity maior que .nav-social: por isso os
   ícones empilhavam. Seletor com o mesmo peso resolve. ---------- */
header .navbar-brand img,
header#main-header .navbar-brand img { height: 48px !important; }
header#main-header.scrolled .navbar-brand img { height: 40px !important; }

header .navbar-brand .brand-local { font-size: 0.52rem; letter-spacing: 0.36em; }
header#main-header.scrolled .navbar-brand .brand-local { font-size: 0.48rem; }

header .taipe-nav li.nav-social,
header#main-header .taipe-nav li.nav-social {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    width: auto !important;
}

header .taipe-nav li.nav-social a { width: 21px; height: 21px; }

@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 42px !important; }
}


/* ---------- v19.32 — localidade na cor da marca ---------- */
header .navbar-brand .brand-local { color: #490906; opacity: 0.85; }


/* ---------- v19.33 — assinatura do herói com mais presença ----------
   Sobre foto clara o peso 300 sumia: sobe para 500, branco puro e
   sombra em duas camadas (uma curta para definir a letra, uma longa
   para separar do fundo). ---------- */
.lp-hero .lp-assinatura,
.silo-hero .lp-assinatura {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 26px rgba(0, 0, 0, 0.65) !important;
}

/* topo do véu um pouco mais firme, onde a assinatura fica */
.lp-investor-wrapper .lp-hero::before,
.lp-investor-wrapper .silo-hero::before,
.lp-hero::before,
.silo-hero::before {
    background: linear-gradient(
        180deg,
        rgba(20, 15, 10, 0.52) 0%,
        rgba(20, 15, 10, 0.32) 38%,
        rgba(20, 15, 10, 0.46) 72%,
        rgba(20, 15, 10, 0.62) 100%
    ) !important;
}


/* ---------- v19.34 — depoimento: título dentro da coluna, sem vão ---------- */
.tg-depo { align-items: flex-start; margin-top: 8px !important; }

.tg-depo > div > .ds-eyebrow { margin: 0 0 10px; }

.tg-depo .depo-titulo {
    font-size: clamp(1.5rem, 2.1vw, 2rem) !important;
    line-height: 1.15;
    margin: 0 0 22px !important;
    text-align: left;
}

.tg-depo .fala { margin-bottom: 16px; }
.tg-depo .fala-2 { margin-bottom: 18px; }


/* ---------- v19.35 — depoimento equilibrado ----------
   O vídeo (9:16) ficava 135px mais alto que o texto. Vídeo um pouco
   menor e a coluna de texto distribuída na mesma altura: título no
   topo, citação no meio, assinatura alinhada com a base do vídeo. ---------- */
.tg-depo video {
    flex: 0 0 330px !important;
    width: 330px !important;
}

.tg-depo > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 440px;
}

.tg-depo .fala { font-size: clamp(1.3rem, 2vw, 1.85rem) !important; }
.tg-depo .fala-2 { font-size: 1.02rem; }

@media (max-width: 900px) {
    .tg-depo video { flex: 0 0 auto !important; width: min(320px, 80vw) !important; }
    .tg-depo > div { min-height: 0; }
}


/* ---------- v19.36 — PDF dentro da ampliação ---------- */
.tg-lightbox iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    background: #fff;
}
.tg-lightbox:has(iframe) { cursor: default; padding: 28px 28px 28px; }


/* ---------- v19.37 — logo oficial em cobre (Trancoso, Bahia na arte) ---------- */
header .navbar-brand,
header#main-header .navbar-brand { gap: 0; }

header .navbar-brand img,
header#main-header .navbar-brand img { height: 62px !important; }
header#main-header.scrolled .navbar-brand img { height: 50px !important; }

@media (max-width: 900px) {
    header .navbar-brand img,
    header#main-header .navbar-brand img { height: 50px !important; }
}


/* ---------- v19.38 — botão de fechar sempre visível + link do PDF ---------- */
.tg-lightbox-fechar {
    background: rgba(20, 15, 10, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    z-index: 100000;
}

.tg-plan-pdf {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ds-copper-500) !important;
    border-bottom: 1px solid rgba(176, 120, 72, 0.4) !important;
    padding-bottom: 3px;
}

.tg-plan-pdf:hover { color: var(--color-vinho) !important; border-bottom-color: var(--color-vinho) !important; }


/* ---------- v19.39 — ampliação com barra fixa de fechar ----------
   O visualizador de PDF ocupa todo o iframe e engolia o botão. Agora a
   barra fica FORA do iframe, sempre clicável. ---------- */
.tg-lightbox {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    cursor: default;
}

.tg-lightbox-barra {
    flex: 0 0 auto;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: rgba(12, 9, 6, 0.96);
    color: #fff;
}

.tg-lightbox-titulo {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}

.tg-lightbox .tg-lightbox-fechar {
    position: static !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 18px;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
    color: #fff;
    cursor: pointer;
}

.tg-lightbox .tg-lightbox-fechar:hover { background: rgba(255, 255, 255, 0.16) !important; }

.tg-lightbox iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

.tg-lightbox-palco {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: auto;
    cursor: zoom-out;
}

.tg-lightbox-dica { display: none; }


/* ===================================================================
   v19.40 — LEGENDAS DE IMAGEM (28/08/2026)
   Pedido do cliente: legenda em todas as imagens de conteúdo, como no
   site institucional do grupo. O texto vem do alt de cada imagem e é
   aplicado pelo script "LEGENDAS DE IMAGEM" do footer.php.
   =================================================================== */
.luxury-image{position:relative}
.tg-capwrap{position:relative;display:block}
.tg-grid .tg-capwrap{height:100%}
.tg-mosaico .tg-capwrap{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 18px}
.tg-mosaico .tg-capwrap img{margin:0}
.tg-cap{position:absolute;right:10px;bottom:10px;z-index:2;max-width:84%;
  font-family:var(--ds-font-body,'Montserrat',sans-serif);
  font-size:.68rem;font-weight:500;letter-spacing:.05em;line-height:1.4;
  text-align:right;color:rgba(250,246,238,.95);background:rgba(30,24,19,.55);
  padding:.3em .75em;border-radius:4px;backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);pointer-events:none}
@media(max-width:640px){.tg-cap{font-size:.6rem;right:8px;bottom:8px;max-width:90%}}



/* ===================================================================
   v19.41 - LEGENDA UNICA, SEMPRE NO PADRAO BEGE (02/09/2026)
   A v19.40 aplicava a legenda automatica como faixa escura sobreposta
   a foto. O cliente pediu o padrao bege (.tg-legenda) em TODAS as
   legendas do site e, nas imagens que ja tinham legenda manual, as
   duas apareciam uma sobre a outra. O script do footer.php agora
   marca a legenda com "tg-legenda tg-cap" e pula a imagem que ja tem
   legenda; aqui se desfaz o que restava do overlay.
   =================================================================== */
.tg-cap {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 12px;
    padding: 0;
    background: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: var(--ds-font-body, 'Montserrat', sans-serif);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-align: center;
    color: var(--ds-warm-900);
    opacity: 0.6;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .tg-cap {
        font-size: 0.74rem;
        right: auto;
        bottom: auto;
        max-width: none;
    }
}

/* Mesmo tratamento da v19.26, agora tambem para a legenda automatica:
   o .luxury-image e flex, e sem isto a legenda virava coluna estreita
   ao lado da foto. */
.luxury-image:has(.tg-cap) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.luxury-image .tg-cap { width: 100%; }

/* Nas galerias a legenda passa a ocupar a linha de baixo do card. O
   height:100% da v19.40 servia ao overlay e agora achataria a foto. */
.tg-grid .tg-capwrap { height: auto; }
.tg-mosaico .tg-capwrap img { margin-bottom: 0; }
.tg-grid .tg-cap,
.tg-mosaico .tg-cap,
.tg-carrossel .tg-cap {
    font-size: 0.74rem;
    margin-top: 8px;
}


/* ===================================================================
   v19.42 - LEGENDA NA GALERIA E RESPIRO MENOR (02/09/2026)
   Na grade de 4 colunas a legenda invadia a linha de baixo: o item da
   grade estica por padrao, o "img{height:100%}" da propria pagina
   passava a valer contra a altura ja fechada da celula e a legenda
   sobrava para fora. Com o item em flex-column e alinhado ao topo, a
   linha cresce com foto + legenda. Tambem reduz o espaco entre a foto
   e o texto da legenda, em todo o site.
   =================================================================== */
.tg-grid .tg-capwrap {
    display: flex;
    flex-direction: column;
    align-self: start;
    height: auto;
    min-width: 0;
}
.tg-grid .tg-capwrap > img {
    height: auto;
    align-self: stretch;
}

.tg-cap,
.tg-legenda { margin-top: 8px; }

.tg-grid .tg-cap,
.tg-mosaico .tg-cap,
.tg-carrossel .tg-cap { margin-top: 6px; }
