/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #ffffff; /* Branco para texto */
    --secondary-color: #0d0d0d; /* Quase preto para fundo */
    --accent-color: #00f0ff; /* Ciano para destaque (manter forte) */
    --modula-green: #4CAF50; /* Verde da Modula Dor */
    --dark-gray: #222222;
    --light-gray: #cccccc;
    --font-family-body: 'Montserrat', sans-serif;
    --font-family-heading: 'Playfair Display', serif; /* Fonte mais elegante para títulos */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    font-family: var(--font-family-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--light-gray);
}

/* --- Componentes Reutilizáveis --- */

.logo-top {
    position: absolute;
    top: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease-out;
}

.logo-top img {
    height: 30px;
    width: auto;
}

.section.active .logo-top {
    opacity: 1;
    transform: translateY(0);
}


.page-number {
    position: absolute;
    bottom: 40px;
    right: 60px;
    color: var(--light-gray);
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.section.active .page-number {
    opacity: 1;
    transform: translateY(0);
}

.icon-square {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animações específicas dos quadrados nos títulos */
.section.active .feedback-title .icon-square { transform: translateY(-50%) scale(1); transition-delay: 0.2s; }
.section.active .locations-text .icon-square { transform: translateY(-50%) scale(1); transition-delay: 0.2s; }
.section.active .services-info .icon-square { transform: translateY(-50%) scale(1); transition-delay: 0.2s; }
.section.active .videos-title .icon-square { transform: translateY(-50%) scale(1); transition-delay: 0.2s; }


/* --- HEADER (NavBar) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.8s ease-out;
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    height: 30px;
    width: auto;
}

.header .logo span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--modula-green); /* Usando o verde da Modula Dor */
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--modula-green); /* Usando o verde da Modula Dor */
}

/* --- Page 01: Hero Section --- */
.hero-section {
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    transform: translateY(0);
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.5);
    transform: scale(1.1);
    transition: all 1.5s ease-out;
}

.hero-section.active .hero-bg-img {
    transform: scale(1);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--primary-color);
}

.hero-content .logo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 1s ease-out 0.5s;
}

.hero-content .logo-hero img {
    height: 40px;
    width: auto;
}

.hero-content .logo-hero span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family-body);
}

.hero-content h1 {
    font-size: 5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.8s;
}

.hero-content p {
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out 1.2s;
}

.hero-section.active .hero-content .logo-hero {
    opacity: 1;
    transform: translateY(0);
}
.hero-section.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}
.hero-section.active .hero-content p {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page 02: Quem é o Dr. Lucas Farias? --- */
.about-section {
    background-color: var(--secondary-color);
}

.about-section .content-wrapper {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text {
    flex: 2;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out 0.3s;
}

.about-text h2 {
    font-size: 3rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--modula-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.8s;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-section.active .about-img {
    opacity: 1;
    transform: translateX(0);
}

.about-section.active .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-section.active .about-text h2::after {
    transform: scaleX(1);
}

/* --- Page 03: Feedback dos Pacientes --- */
.feedback-section {
    background-color: var(--dark-gray); /* Um tom um pouco mais escuro */
}

.feedback-section .content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.feedback-title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.feedback-title h2 {
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.feedback-title .icon-square {
    position: absolute;
    background-color: var(--modula-green);
    width: 30px;
    height: 30px;
    left: -50px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition-delay: 0.2s;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.feedback-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.feedback-item:nth-child(1) { transition-delay: 0.7s; }
.feedback-item:nth-child(2) { transition-delay: 0.9s; }
.feedback-item:nth-child(3) { transition-delay: 1.1s; }

.feedback-item .stars-rating {
    height: 30px; /* Tamanho das estrelas */
    margin-bottom: 15px;
}

.feedback-item .feedback-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.feedback-item .patient-name {
    font-weight: 600;
    color: var(--modula-green);
    margin-bottom: 5px;
}

.feedback-item .feedback-date {
    font-size: 0.8rem;
    color: var(--light-gray);
}

.feedback-section.active .feedback-title {
    opacity: 1;
    transform: translateX(0);
}

.feedback-section.active .feedback-item {
    opacity: 1;
    transform: translateY(0);
}


/* --- Page 04: Onde Atendemos (Locais de Atendimento) --- */
.locations-section {
    background-color: var(--secondary-color);
}

.locations-section .content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.locations-text {
    flex: 1;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.locations-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    position: relative;
}

.locations-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--modula-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.8s;
}

.location-item {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.location-item:nth-child(2) { transition-delay: 1.0s; }
.location-item:nth-child(3) { transition-delay: 1.2s; }


.location-item h3 {
    font-size: 1.8rem;
    color: var(--modula-green);
    margin-bottom: 10px;
}

.location-item p {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.locations-map-placeholder {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-gray);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out 0.3s;
}

.locations-map-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.locations-map-placeholder .map-note {
    font-size: 1rem;
    color: var(--light-gray);
    text-align: center;
}

.locations-section.active .locations-text {
    opacity: 1;
    transform: translateX(0);
}
.locations-section.active .locations-text h2::after {
    transform: scaleX(1);
}
.locations-section.active .location-item {
    opacity: 1;
    transform: translateY(0);
}
.locations-section.active .locations-map-placeholder {
    opacity: 1;
    transform: translateX(0);
}

/* --- Page 05: Áreas de Atuação / Serviços --- */
.services-section {
    background-color: var(--dark-gray);
}

.services-section .content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.services-info {
    flex: 1;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.services-info h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    position: relative;
}

.services-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--modula-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.8s;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}
.service-item:nth-child(1) { transition-delay: 1.0s; }
.service-item:nth-child(2) { transition-delay: 1.2s; }
.service-item:nth-child(3) { transition-delay: 1.4s; }

.service-item i {
    font-size: 2rem;
    color: var(--modula-green);
}

.services-info .convenio-text {
    font-size: 1.1rem;
    color: var(--light-gray);
}

.services-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out 0.3s;
}

.services-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.services-section.active .services-info {
    opacity: 1;
    transform: translateX(0);
}
.services-section.active .services-info h2::after {
    transform: scaleX(1);
}
.services-section.active .service-item {
    opacity: 1;
    transform: translateX(0);
}
.services-section.active .services-image {
    opacity: 1;
    transform: translateX(0);
}

/* --- Page 06: Conteúdos / Vídeos (Produção) --- */
.videos-section {
    background-color: var(--secondary-color);
    align-items: flex-start;
}

.videos-section .content-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.videos-title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    margin-top: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.videos-title h2 {
    font-size: 4rem;
    margin: 0;
    text-transform: lowercase;
    position: relative;
    z-index: 1;
}

.videos-title .icon-square {
    position: absolute;
    background-color: var(--modula-green);
    width: 30px;
    height: 30px;
    left: -50px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition-delay: 0.2s;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsivo, mínimo 300px */
    gap: 40px;
    width: 100%;
}

.video-item {
    display: flex;
    flex-direction: column;
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.video-item:nth-child(1) { transition-delay: 0.5s; }
.video-item:nth-child(2) { transition-delay: 0.7s; }
.video-item:nth-child(3) { transition-delay: 0.9s; }

.video-placeholder {
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 */
    position: relative;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-gray);
    font-size: 1.2rem;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-placeholder:hover img {
    transform: scale(1.05);
}

.placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2; /* Para ficar por cima da imagem */
}

.placeholder-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.placeholder-overlay .fas.fa-play-circle {
    font-size: 3rem;
    color: var(--modula-green);
}

.video-description {
    padding: 20px;
    font-size: 1rem;
    text-align: center;
    color: var(--primary-color);
}

.videos-section.active .videos-title {
    opacity: 1;
    transform: translateX(0);
}

.videos-section.active .video-item {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page 07: Contato --- */
.contact-section {
    background-color: var(--secondary-color);
    overflow: hidden;
}

.contact-section .content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.contact-info {
    text-align: left;
    margin-right: 80px;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    position: relative;
}
.contact-info h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--modula-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.8s;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.schedule-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--modula-green);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 1.0s;
}

.schedule-button:hover {
    background-color: #388E3C; /* Um tom mais escuro de verde no hover */
    transform: translateY(-3px);
}

.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.social-icons a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.social-icons a:nth-child(1) { transition-delay: 1.2s; }
.social-icons a:nth-child(2) { transition-delay: 1.4s; }


.social-icons img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    vertical-align: middle;
}

.social-icons a:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--modula-green));
}

.contact-note {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 20px;
}

.contact-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.contact-image img {
    height: 90%;
    width: auto;
    object-fit: contain;
    transform: translateX(100%);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-phrases {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    text-align: right;
    z-index: 2;
}

.contact-phrases h2 {
    font-size: 5rem;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    color: var(--dark-gray);
    opacity: 0;
    transition: all 1s ease-out;
}

.contact-phrases .your-vision {
    transform: translateX(100px);
    transition-delay: 0.5s;
}

.contact-phrases .vision-word {
    transform: translateX(100px);
    color: var(--modula-green);
    transition-delay: 0.7s;
}

.contact-phrases .my-gratitude {
    transform: translateX(100px);
    transition-delay: 0.9s;
}

.contact-section.active .contact-info {
    opacity: 1;
    transform: translateX(0);
}
.contact-section.active .contact-info h2::after {
    transform: scaleX(1);
}
.contact-section.active .schedule-button {
    opacity: 1;
    transform: translateY(0);
}
.contact-section.active .social-icons a {
    opacity: 1;
    transform: translateY(0);
}
.contact-section.active .contact-image img {
    transform: translateX(0);
}
.contact-section.active .contact-phrases .your-vision,
.contact-section.active .contact-phrases .vision-word,
.contact-section.active .contact-phrases .my-gratitude {
    opacity: 0.2;
    transform: translateX(0);
}

/* Continue do CSS anterior... */

/* ------------------------------------- */
/* ANIMAÇÕES (para ativar via JavaScript) */
/* ------------------------------------- */

/* Animações dos quadrados nos títulos (já definidas na parte 1, mas reforçando que dependem de .active) */
.section.active .feedback-title .icon-square,
.section.active .locations-text .icon-square,
.section.active .services-info .icon-square,
.section.active .videos-title .icon-square {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition-delay: 0.2s;
}

/* Animações adicionais para elementos na seção de contato */
.contact-section.active .contact-info > *:not(.schedule-button, .social-icons),
.contact-section.active .schedule-button,
.contact-section.active .social-icons a {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
.contact-section.active .contact-info h2::after {
    transform: scaleX(1);
}

/* ------------------------------------- */
/* MEDIA QUERIES (Responsividade) */
/* ------------------------------------- */

@media (max-width: 1200px) {
    .section {
        padding: 30px 40px;
    }

    .header {
        padding: 15px 40px;
    }

    .navbar ul {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: 3px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-section .content-wrapper,
    .locations-section .content-wrapper,
    .services-section .content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .about-img,
    .locations-map-placeholder,
    .services-image {
        flex: none; /* Reset flex */
        width: 80%; /* Ajuste a largura da imagem */
    }

    .about-text,
    .locations-text,
    .services-info {
        flex: none; /* Reset flex */
        width: 100%;
        text-align: center;
    }

    .about-text h2,
    .locations-text h2,
    .services-info h2 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .about-text h2::after,
    .locations-text h2::after,
    .services-info h2::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }
    .about-section.active .about-text h2::after,
    .locations-section.active .locations-text h2::after,
    .services-section.active .services-info h2::after {
        transform: translateX(-50%) scaleX(1);
    }

    .feedback-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .videos-section .content-wrapper {
        align-items: center;
    }
    .videos-title {
        transform: translateX(0); /* Remove translation for smaller screens */
    }
    .videos-title h2 {
        font-size: 3rem;
    }
    .videos-title .icon-square {
        left: -30px; /* Adjust position */
        width: 25px;
        height: 25px;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .contact-section .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
    }
    .contact-section.active .contact-info h2::after {
        transform: translateX(-50%) scaleX(1);
    }


    .social-icons {
        justify-content: center;
    }

    .contact-image {
        position: relative;
        height: auto;
        width: 80%;
        margin-top: 40px;
    }
    .contact-image img {
        height: auto;
        width: 100%;
        object-fit: contain;
        transform: translateY(100%); /* Animar de baixo para cima */
    }
    .contact-section.active .contact-image img {
        transform: translateY(0);
    }

    .contact-phrases {
        position: relative;
        top: auto;
        right: auto;
        transform: translateY(0);
        margin-top: 40px;
        text-align: center;
        width: 100%;
    }
    .contact-phrases h2 {
        font-size: 3rem; /* Diminuir o tamanho das frases no final */
        color: var(--light-gray); /* Ajustar cor para melhor contraste em fundo liso */
    }
    .contact-section.active .contact-phrases .your-vision,
    .contact-section.active .contact-phrases .vision-word,
    .contact-section.active .contact-phrases .my-gratitude {
        opacity: 1; /* Torna as frases totalmente visíveis */
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 20px;
    }

    .logo-top,
    .page-number {
        left: 20px;
        right: 20px;
        font-size: 0.8rem;
    }

    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        margin-top: 10px;
    }
    .navbar a {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-text h2,
    .locations-text h2,
    .services-info h2,
    .feedback-title h2,
    .videos-title h2 {
        font-size: 2.2rem;
    }

    .about-text p,
    .location-item p,
    .service-list,
    .services-info .convenio-text,
    .contact-info p {
        font-size: 1rem;
    }

    .location-item h3 {
        font-size: 1.5rem;
    }

    .feedback-grid,
    .video-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }

    .contact-phrases h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    .header .logo span {
        font-size: 1rem;
    }
    .header .logo img {
        height: 25px;
    }

    .navbar ul {
        gap: 8px 10px;
    }
    .navbar a {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }

    .logo-hero img {
        height: 30px;
    }
    .logo-hero span {
        font-size: 1.2rem;
    }

    .about-text h2,
    .locations-text h2,
    .services-info h2,
    .feedback-title h2,
    .videos-title h2 {
        font-size: 1.8rem;
    }

    .feedback-item {
        padding: 20px;
    }

    .schedule-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .social-icons img {
        height: 35px;
    }

    .contact-phrases h2 {
        font-size: 2rem;
    }
}
