/* ===== Reset e Variáveis ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2ab34bdb;
    --color-menu: #2ab34ba1;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: "Montserrat", sans-serif;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: "Areqo4FUltraLight";
    src: url("../fonts/Areqo4FUltraLight.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-light);
    overflow-x: hidden;
}

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

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

/* ===== Header & Navigation ===== */
#header {
    position: absolute;
    top: 5vh;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 0;
    background: var(--color-menu);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}

.nav-menu a {
    color: var(--color-light);
    font-size: 35px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    font-family: "Areqo4FUltraLight", sans-serif;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.lang-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--color-light);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-light);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background: url('../assets/page-1.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: center;
    color: var(--color-light);
    position: relative;
    padding: 20px;
}

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

.hero-content,
.hero-logo {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.hero-ornament {
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q60 30 80 40 Q60 50 50 70 Q40 50 20 40 Q40 30 50 10" fill="none" stroke="white" stroke-width="2"/></svg>') center/contain no-repeat;
}

.hero-ornament.right {
    transform: scaleX(-1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    max-width: 1200px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 15vh;
}

.hero-logo img {
    width: 25vw;
    height: auto;
    /* filter: brightness(0) invert(1); */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Sections ===== */
.section {
    padding: 0px 20px;
    position: relative;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: left;
}

h2.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5vh 0;
}

h2.section-title span {
    width: fit-content;
    display: block;
    min-width: fit-content;
    padding: 0 1.5vw;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 3vh;
    background: var(--color-primary);
}

section#como-chegar h2.section-title {
    margin: 5vh 0 0;
}

.subsection-title {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-light);
    text-align: left;
    margin: 5vh 0;
}

.section-title span {
    font-style: italic !important;
    font-weight: 600;
}



.subsection-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== Content Grids ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse>* {
    direction: ltr;
}

.text-box {
    background: var(--color-primary);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 1.3;
}

.text-box p:last-child {
    margin-bottom: 0;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-box iframe,
.image-box video {
    height: auto;
    aspect-ratio: 9 / 16;
    width: 100%;
}

/* ===== Quem Somos Section ===== */
.quem-somos {
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

/* ===== Medicinas Section ===== */
.medicinas {
    position: relative;
    color: var(--color-light);
}

.medimagens {
    display: flex;
    justify-content: space-between;
    margin-top: 5vh;
}

.medimagens img,.medimagens div img, .medimagens div {
    /* width: 19.5%; */
    width: 100%;
    transition: var(--transition);
    border-radius: 38px;
    cursor: pointer;
}

.medimagens img:hover,.medimagens div img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.medicinas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.medicinas .container {
    position: relative;
    z-index: 2;
}

.medicinas .section-title {
    color: var(--color-dark);
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.medicina-item {
    width: 65vw;
    height: fit-content;
    margin: auto;
}

.popmedicinas .medicina-title {
    padding: 0;
}

.popup {
    display: none;
}

.popup>div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.popup .text-box {
    padding: 1vh 1vw 5vh;
    background-color: #5da050;
}

.medicina-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-light);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.medicina-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medicina-images img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.medicinas .text-box {
    background: var(--color-primary);
    color: var(--color-light);
}

/* ===== Galeria Section ===== */
.galeria {
    background: url('../assets/page-4.png') center/cover no-repeat;
    position: relative;
    min-height: fit-content;
}

.galeria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.galeria .container {
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.hospedagem .gallery-grid.small {
    grid-template-columns: unset;
    display: flex;
}

#galeria .gallery-grid {
    grid-template-columns: unset;
    display: flex;
    flex-wrap: wrap;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    flex: 1;
}

#galeria .gallery-grid .gallery-item {
    flex-basis: 23%;
    border-radius: 38px;
    aspect-ratio: 1;
}


.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.button {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    background: var(--color-primary);
    position: relative;
    z-index: 9;
    width: fit-content;
    height: fit-content;
    align-self: center;
    justify-self: center;
    font-size: 2rem;
    padding: 0.1rem 1rem;
    border-radius: 70px;
    cursor: pointer;
    transition: var(--transition);
    margin: 5vh auto 0;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===== Depoimentos Section ===== */
.depoimentos {
    background: url('../assets/page-5.png') center/cover no-repeat;
    position: relative;
}

.depoimentos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.depoimentos .container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.testimonial-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 9 / 16;
    max-width: 19%;
}

.testimonial-item video {
    aspect-ratio: 9/16;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

.popup {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #000000c7;
    z-index: 99999;
}

div#popupgaleria .gallery-grid .gallery-item {
    aspect-ratio: 1;
    min-width: 20%;
}

.close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 5vw;
    left: auto;
    width: fit-content;
    height: fit-content !important;
    font-size: 7vh;
}

div#popuptestimonial .testimonials-grid,
div#popupgaleria .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    scroll-behavior: smooth;
    overflow-y: scroll;
    height: 100vh;
    justify-content: flex-start;
    padding: 5vw 10vw
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: var(--color-dark);
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 25px solid var(--color-primary);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Como Chegar Section ===== */
.como-chegar {
    background: url('../assets/page-6.png') center/cover no-repeat;
    position: relative;
}

.como-chegar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.como-chegar .container {
    position: relative;
    z-index: 2;
}

.location-text {
    font-family: var(--font-body) !important;
    font-style: none !important;
    text-align: left;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: var(--color-primary);
    width: 100% !important;
    padding: 0 !important;
    line-height: 0;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
}

/* ===== Hospedagem Section ===== */
.hospedagem {
    background: url('../assets/page-7.png') center/cover no-repeat;
    position: relative;
}

.hospedagem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.hospedagem .container {
    position: relative;
    z-index: 2;
}

/* ===== Cerimônias Section ===== */
.cerimonias {
    background: url('../assets/page-8.png') center/cover no-repeat;
    position: relative;
}

.cerimonias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cerimonias .container {
    position: relative;
    z-index: 2;
}


/* ===== Contato Section ===== */
.contato {
    background: linear-gradient(135deg, var(--color-primary), #2a5d34);
    color: var(--color-light);
}

.contato .section-title {
    color: var(--color-light);
}

.contato .section-title span {
    width: 100%;
    text-align: center;
}

.contato .section-title::after {
    height: 0;
    width: 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-info {
    padding: 0 0 30px;
    border-radius: 15px;
}

.contact-info p {
    margin-bottom: 0px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-info a {
    color: var(--color-light);
    text-decoration: none;
}

.contact-info a:hover {
    opacity: 0.8;
}

#como-chegar .section-title.tiralinha,
#agenda .section-title.tiralinha {
    display: flex;
    align-items: flex-start;
    margin: 0;
}


#como-chegar .section-title.tiralinha span,
#agenda .section-title.tiralinha span {
    color: black;
}

.hide {
    color: transparent !important;
}

#como-chegar .section-title.tiralinha::after,
#agenda .section-title.tiralinha::after {
    width: 0;
    height: 0;
}

#agenda .section-title {
    margin: 5vh 0 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 40px 20px;
    text-align: center;
}

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

.footer-logo img {
    width: 80px;
    height: auto;
    margin: 0 auto 10px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.image-trigger {
    width: 200px;
    /* Tamanho das miniaturas */
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.image-trigger:hover {
    transform: scale(1.05);
}

/* ------------------ Estilo do Modal ------------------ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: none;
    z-index: 99999999999999999999;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    height: 100vmin;
    width: auto;
    image-orientation: unset;
    border-radius: 5px;
}

/* Botão de Fechar */
.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
    /* Acima do fundo do modal */
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Legenda da imagem */
#modal-caption {
    margin-top: 15px;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}

/* Animação (Zoom) */
.modal-content,
#modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}


.gridceri {
    margin-top: -10vh;
    grid-template-columns: 1.5fr 1fr;
}

.dropdown {
    max-width: 100%;
}

.dropdown-item {
    /* border: 1px solid #ccc; */
    overflow: hidden;
    margin-bottom: 12px;
}

.dropdown-header {
    background: var(--color-primary);
    color: white;
    width: 100% !important;
    padding: 1%;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
    font-weight: 700;
    border-radius: 6px;
}

.dropdown-header:hover {
    background: var(--color-primary);
    border: 1px solid #ccc;
}

.dropdown-content {
    background: var(--color-primary);
    color: white;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    /* espaço lateral */
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-radius: 6px;
    width: 100% !important;
}

.dropdown-item.active .dropdown-content {
    max-height: 200px;
    padding: 1%;
    padding-top: 10px;
    width: 100%;
    background: green;
    border: 1px solid #ccc;
}

.dropdown-item.active .dropdown-header {
    background: green;
    border: 1px solid #ccc;
}

.quemsomosgrid {
    grid-template-columns: 1.8fr 1fr;
}

.endereco {
    font-size: 23px;
    color: black;
    font-weight: 600;
    text-align: center;
    margin-top: 5vh;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {


    .hero {
        height: 40vh;
        margin-top: 9vh;
    }

    #header {
        top: 0;
    }

    .hero img {
        height: 7vh !important;
    }

    .nav-menu {
        gap: 15px;
    }

    .language-switcher {
        margin: 0 !important;
    }

    .nav-menu a {
        font-size: 25px;
        padding: 6px 8px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        display: flex;
        flex-direction: column;
    }

    .section-title::after {
        height: 1vh !important;
    }

    .medicina-item {
        width: 95vw;
    }

    #faq .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown {
        width: 98%;
    }

    .medimagens {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .medimagens>div,
    .medimagens>img {
        width: 48%;
    }

    #galeria .gallery-grid .gallery-item {
        flex-basis: 40%;
    }

    .popup .text-box {
        overflow-x: scroll;
        max-height: 95vh;
        justify-content: start;
    }

    .button {
        text-align: center;
        font-size: 1.3rem
    }

    .gridceri {
        margin-top: 5vh;
    }

    #cerimonias img {
        pointer-events: none;
    }

    .map-container .image-box {
        display: none;
    }

    .map-container iframe {
        width: 100% !important;
    }

    .hide {
        display: none !important;
    }

    .location-text {
        line-height: 1.5;
        text-align: center;
        font-size: 1rem;
        margin-bottom: 5vh;
    }

    .testimonials-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .testimonial-item {
        max-width: 47%;
    }

    #depoimentos .testimonial-item:nth-child(5) {
        display: none;
    }

    div#popupgaleria .gallery-grid .gallery-item {
        min-width: 45%;
    }

    .modal-content {
        height: auto;
        max-width: 100vmin;
    }

    .hospedagem .gallery-grid.small {
        flex-wrap: wrap;
    }

    .hospedagem .gallery-grid.small .gallery-item {
        min-width: 45%
    }

    .cerimonias img {
        pointer-events: none;
    }

    h2.section-title span {
        text-align: center;
    }

    .endereco {
        font-size: 13px;
    }

    .text-box p, .subsection-title {
        text-align: center;
    }
    .dropdown-item,.dropdown-content{
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(58, 125, 68, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
        max-height: 100vh;
        overflow-y: scroll;
    }

    .nav-menu a {
        font-size: 25px;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-ornament {
        width: 50px;
        height: 50px;
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr !important;
        direction: ltr;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.8rem;
    }

    .text-box {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-grid.small {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .close {
        z-index: 999999999999999999999999;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .medicina-title {
        font-size: 2rem;
        padding: 8px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Prevent Widows and Orphans ===== */
/* Evita palavras viúvas (palavras isoladas na última linha) */
p {
    /* Controla quebras de linha para evitar viúvas */
    orphans: 3;
    widows: 3;
    text-wrap: pretty;
    /* CSS moderno para melhor quebra de texto */
}

/* Classe específica para parágrafos que precisam de controle extra */
.no-widow {
    /* Mantém pelo menos 2 palavras na última linha */
    text-wrap: balance;
}

/* Para navegadores que não suportam text-wrap */
@supports not (text-wrap: pretty) {
    p {
        /* Fallback: mantém pelo menos 3 linhas no início e fim de colunas */
        orphans: 3;
        widows: 3;
    }
}

/* Aplica hifenização para melhor quebra de palavras em português */
p,
.text-box p,
.intro-text p {
    hyphens: none;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
}

/* Para títulos e textos curtos, evita hifenização */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title {
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    text-wrap: balance;
    /* Balanceia títulos para melhor aparência */
}

/* Classe utilitária para forçar quebra de linha antes das últimas palavras */
.break-avoid {
    display: inline-block;
}