/*
Theme Name: vitta.care
Theme URI: https://vitta.care
Author: vitta.care Team
Author URI: https://vitta.care
Description: Tema profissional para vitta.care - Transformando o Cuidado com a Saúde
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitta-care
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   1. TOKENS E VARIÁVEIS CSS
   ============================================ */

:root {
    /* Cores */
    --primary-blue: #233c73;
    --primary-green: #41aa96;      /* VERDE VITTA PRINCIPAL */
    --vitta-green-dark: #328173;   /* Tom mais escuro para hover */
    --dark-blue: #192451;          /* Fundo do Footer */
    --light-gray: #f3f4f6;
    --text-dark: #353535;
    --text-light: #fff;
    --border-light: #eee;
    --white: #fff;                 /* Padronizado */

    /* Dimensões */
    --header-height: 90px;         /* Altura média do header */
    --max-content-width: 1400px;
    
    /* Espaçamentos (Base 8px) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Bordas e Sombras */
    --radius-sm: 6px;
    --radius-md: 15px;
    --radius-vitta: 0 30px 0px 30px; /* Formato principal da marca */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);

    /* Tipografia */
    --font-base: 1rem;
    --h1-size: 2.8rem;
    --h2-size: 2.5rem;
    --h3-size: 1.5rem;
    --h4-size: 1.1em;

    /* Z-Index */
    --z-header: 1000;
    --z-hero-content: 900;
    --z-hero-overlay: 800;
}


/* ============================================
   2. RESET E ESTILOS BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* GARANTIDO: Fonte Nunito padrão do site */
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    width: 100%;
    overflow-x: hidden;
    background-color: var(--white);
    font-size: var(--font-base);
}

/* Reset Adicional */
a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Padronização de Tipografia */
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

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


/* ============================================
   3. LAYOUT GLOBAL
   ============================================ */

.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* Correção de Ancoragem para Header Fixo */
#quem_somos,
#servicos,
#servicos_accordion,
#valores,
#depoimentos,
#contato {
    scroll-margin-top: calc(var(--header-height) + var(--spacing-sm));
}


/* ============================================
   4. HEADER FIXO
   ============================================ */

.custom-header {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    box-shadow: var(--shadow-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* CONTÊINER INTERNO DO HEADER */
.header-content {
    display: flex;
    justify-content: space-between; /* mantém logo à esquerda e restante à direita */
    align-items: center;
    width: 100%;
    gap: var(--spacing-md);
}

/* NOVO - agrupa menu + social icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px; /* ajuste do espaçamento entre menu e ícones */
}

/* LOGO */
.custom-logo-link .custom-logo {
    max-width: 250px;
    height: auto;
    display: block;
}



/* MENU PRINCIPAL */
.nav-menu {
    display: flex;
    background: var(--primary-blue);
    border-radius: var(--radius-vitta) !important;
    padding: 0 var(--spacing-sm);
    align-items: center;
    height: 50px;
    gap: 0;
    margin-left: 0 !important; /* evita deslocamentos */
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-light);
    padding: 8px 12px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu a:focus {
    background: var(--primary-green);
    color: var(--primary-blue);
    height: 40px;
    border-radius: var(--radius-vitta) !important;
    outline: none;
}

/* ÍCONES SOCIAIS */
.social-icons-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0;
}

/* Limita a altura da logo dentro do header */
 .custom-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* Garante alinhamento perfeito */
.custom-header .site-branding,
.custom-header .header-right {
    display: flex;
    align-items: center;
}


/* ============================================
   5. CARROSSEL HERO — VERSÃO FINAL CORRIGIDA
   ============================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    height: auto !important;
    min-height: 450px;
    overflow: hidden;
    background: #000;
}

/* Slide base */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(0); /* impede a “folha” de subir */
    transition: opacity .8s ease-in-out;
    height: 100% !important;
    width: 100%;
}

/* Slide ativo — fica SEMPRE perfeitamente alinhado */
.carousel-slide.active {
    opacity: 1 !important;
    z-index: 2;
    position: absolute;  /* ← isso corrige o problema do tablet */
    inset: 0;
}

/* Imagem */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 3;
}

/* Conteúdo */
.carousel-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Texto */
.carousel-text {
    max-width: 850px;
    padding: 20px;
}

.carousel-text h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.carousel-text p {
    color: rgba(255,255,255,.9);
    font-size: 1.4rem;
    margin-bottom: 35px;
}

/* Botões */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: none;
    border: none;
    color: #fff;
    z-index: 5;
    cursor: pointer;
    padding: 12px;
    transition: .3s;
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: .3s;
}

.dot.active {
    background: var(--primary-green);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVIDADE — FIX FINAL (MOBILE + TABLET)
   ============================================ */

@media (max-width: 992px) {

    .hero-carousel {
        min-height: 420px;
    }

    .carousel-content {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .carousel-text h1 {
        font-size: 2rem;
    }

    .carousel-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    .hero-carousel {
        min-height: 380px !important;
    }

    .carousel-slide img {
        height: 100% !important;
        min-height: 380px;
    }

    .carousel-content {
        padding: 30px;
        padding-bottom: 90px;
    }

    .carousel-text h1 {
        font-size: 1.6rem;
    }

    .carousel-text p {
        font-size: 1rem;
    }
}


/* ============================================
   6. SEÇÃO QUEM SOMOS
   ============================================ */

.quem_somos {
    background: var(--light-gray);
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.about-image {
    background: var(--border-light);
    height: 350px;
    border-radius: var(--radius-md);
}

.about-text h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.about-text .label {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}


/* ============================================
   7. SEÇÃO SERVIÇOS (FLIP CARDS)
   ============================================ */

.servicos {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    color: var(--text-dark);
}

.services-header {
    max-width: var(--max-content-width);
    margin: 0 auto var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-header h2 {
    color: var(--primary-blue);
    font-weight: 700;
}

.services-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.flip-card {
    background: transparent;
    perspective: 1000px;
    height: 350px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    will-change: transform;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-vitta);
    padding: var(--spacing-md);
    
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
}

.flip-card-front {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-vitta);
}

.flip-card-front .icon-wrapper {
    width: 80px; 
    height: 80px; 
    margin: 0 auto var(--spacing-sm); 
    display: flex; 
    justify-content: center;
    align-items: center;
}

.flip-card-front .icon-wrapper img {
    width: 100%;
    height: 100%;
    filter: invert(72%) sepia(21%) saturate(542%) hue-rotate(113deg) brightness(97%) contrast(85%);
    transition: filter 0.3s ease;
}

.flip-card:hover .flip-card-front .icon-wrapper img {
    filter: invert(62%) sepia(21%) saturate(542%) hue-rotate(113deg) brightness(87%) contrast(85%);
}

.flip-card-front h3 {
    color: var(--primary-blue);
    margin-bottom: 0; 
    text-align: center;
}

.flip-card-back {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
}


/* ============================================
   8. SEÇÃO ACORDEÃO – APARÊNCIA IGUAL À IMAGEM
   ============================================ */

.servicos-accordion-section {
    background: var(--white);
    padding: 0 var(--spacing-md) var(--spacing-xl);
    color: var(--text-dark);
}

.accordion-container-main {
    max-width: 900px;
    margin: var(--spacing-lg) auto 0;
}

/* ============================
   ITEM PRINCIPAL (CARD)
   ============================ */
.accordion-item-main {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Cabeçalho */
.accordion-header-main {
    width: 100%;
    padding: 22px 26px;
    background-color: #1f3b6b; /* azul mais escuro similar à imagem */
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background 0.25s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(31,59,107,0.12);
}

/* Título principal - sem ícone antes */
.accordion-header-main .accordion-title-main {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

/* Ícone principal à direita */
.accordion-header-main .icon-main {
    display: inline-block;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* Quando aberto */
.accordion-header-main.active {
    /* mantém o azul do botão quando aberto (como no print) */
    background-color: #243f74;
    box-shadow: 0 8px 22px rgba(36,63,116,0.12);
}

.accordion-header-main.active .icon-main {
    content: "×";
    transform: rotate(0deg);
}

/* Conteúdo principal */
.accordion-content-main {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.45s ease;
    padding: 0 26px;
    border-radius: 0 0 8px 8px;
}

.accordion-content-main p {
    padding: 14px 0 22px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ============================
   SUB-ACCORDION
   ============================ */
.accordion-item-sub {
    background: #ffffff !important;
}

.accordion-header-sub {
    padding: 18px 26px;
    background: #ffffff;
    color: var(--primary-blue);
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    transition: background 0.3s;
}

/* ícone à esquerda do subitem */
.accordion-header-sub .icon-sub {
    display: inline-block;
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    width: 22px;
    text-align: center;
}

.accordion-header-sub.active .icon-sub {
    transform: rotate(0deg);
    color: var(--primary-blue);
}

.accordion-header-sub:hover {
    background-color: #f5f7fa;
}

.accordion-content-sub {
    background-color: #f8f9fb;
    padding: 0 26px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.accordion-header-sub.active + .accordion-content-sub {
    padding: 18px 26px 20px 26px;
}

.accordion-content-sub p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-dark);
}

/* ============================================
   9. SEÇÃO VALORES
   ============================================ */

.valores {
    background: var(--primary-green);
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--white);
}

.values-header {
    max-width: 1000px;
    margin: 0 auto 50px;
    text-align: center;
}

.values-header .label {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
}

.values-header h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    margin-top: 10px;
}

.values-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}


/* ============================================
   10. SEÇÃO DEPOIMENTOS
   ============================================ */

.depoimentos {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: var(--text-dark);
}

.testimonials-header {
    max-width: 1000px;
    margin: 0 auto var(--spacing-xl);
}

.testimonials-header h2 {
    font-size: var(--h2-size);
    color: var(--primary-blue);
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.review-card {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: left;
    transition: 0.3s;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.review-card p {
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.author-details strong {
    display: block;
    color: var(--primary-blue);
}

.author-details span {
    font-size: 14px;
    color: #727272;
}


/* ============================================
   11. SEÇÃO CONTATO (CTA)
   ============================================ */

.contato {
    background: var(--primary-blue);
    padding: 60px var(--spacing-md);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}


/* ============================================
   12. BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: var(--radius-vitta) !important; 
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(65, 170, 150, 0.3);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--vitta-green-dark); 
    color: var(--primary-blue);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--primary-blue);
}


/* ============================================
   13. FOOTER
   ============================================ */

.site-footer {
    background: var(--dark-blue); 
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: var(--spacing-md);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.site-footer h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
}

.logo-v {
    background-color: var(--primary-green);
    color: var(--dark-blue);
    padding: 2px 7px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 0.9em;
    line-height: 1;
}

.footer-menu a:hover {
    color: var(--primary-green);
    opacity: 1;
}

.copyright-info .heart-icon {
    color: var(--primary-green);
	text-align: right;
    width: 100%;
}

.social-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    display: flex;
    justify-content: flex-end;
}


/* ============================================
   14. ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}


/* ============================================
   15. RESPONSIVIDADE (MEDIA QUERIES)
   ============================================ */

@media (max-width: 992px) {
    .footer-section {
        margin-bottom: var(--spacing-md);
    }
    
    .carousel-text h1 {
        font-size: 2.2rem;
    }
}


@media (max-width: 768px) {
    /* Ajustes Gerais */
    h2 { font-size: 2rem; }
    h1 { font-size: 2.5rem; }
    .quem_somos, .servicos, .depoimentos, .valores { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

    .about-content {
        grid-template-columns: 1fr;
    }

    .carousel-text h1 {
        font-size: 1.8rem;
    }

    .carousel-text p {
        font-size: 1.125rem; 
    }
    
    .nav-menu {
        display: none;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        padding-bottom: var(--spacing-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        margin-top: var(--spacing-sm);
        justify-content: center;
        width: 100%;
    }
    
    .social-links a {
        margin: 0 10px;
    }

    /* Ajustes para accordion em mobile */
    .accordion-header-main {
        padding: 16px 18px;
        font-size: 1rem;
    }
    .accordion-header-sub {
        padding: 14px 18px;
    }
}

/* ===========================================================
   FIX 1 — Aplicar Nunito em todo o accordion
   =========================================================== */

.accordion-container-main,
.accordion-container-main * {
    font-family: "Nunito", sans-serif !important;
}

/* ===========================================================
   FIX 2 — Alinhamento perfeito dos blocos de serviços
   =========================================================== */

/* Força todos os sub-itens a terem a mesma largura */
.accordion-item-sub {
    width: 100%;
    margin: 0 !important;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #e6e6e6;
    border-radius: 0 !important;
}

/* HEADER dos sub-itens */
.accordion-header-sub {
    width: 100%;
    background: #ffffff;
    border: none !important;
    padding: 16px 22px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none !important;
}

/* Remove qualquer sombra ou borda que cause “degraus” */
.accordion-item-sub,
.accordion-header-sub {
    box-shadow: none !important;
}

/* Conteúdo interno */
.accordion-content-sub {
    width: 100%;
    background: #fff;
    border-top: none !important;
    box-shadow: none !important;
    padding: 18px 24px !important;
}

/* Garantir que nada quebre para o lado */
.accordion-content-main,
.accordion-item-sub,
.accordion-header-sub,
.accordion-content-sub {
    display: block;
    box-sizing: border-box;
}
.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* empurra o autor para baixo */
}

.review-card p {
    flex-grow: 1; /* faz o texto ocupar o espaço vertical necessário */
}

.review-author {
    margin-top: auto; /* garante que fique colado no fundo */
}

/* FIX DEFINITIVO — Remove o espaço que o site-title ocupa no header */
.custom-header .site-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.header-container {
    max-width: 1200px; /* ajuste perfeito igual sua screenshot */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    width: 100%;
}	
	.about-image {
    background-image: url('https://vitta.care/wp-content/uploads/2025/12/placeholder.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: var(--radius-md);
    width: 100%;
    height: 350px;
}

/* ============================================================
   PATCH 1 — FIX INSTAGRAM VAZANDO NO MOBILE
   ============================================================ */
@media (max-width: 480px) {

    /* Agrupamento do menu + social */
    .header-right {
        gap: 10px !important;
        max-width: 120px;
        overflow: hidden;
        flex-shrink: 1;
    }

    /* Ícones sociais reduzidos */
    .social-icons-header img,
    .social-icons-header svg {
        width: 26px !important;
        height: 26px !important;
        object-fit: contain;
    }

    /* Logo menor evita colisão */
    .custom-logo-link .custom-logo {
        max-width: 170px !important;
    }
}

/* ============================================================
   PATCH 2 — HERO: REDUZ TEXTO + ORGANIZA EM TELAS MUITO PEQUENAS
   ============================================================ */
@media (max-width: 480px) {

    .carousel-content {
        padding: 20px;
        padding-bottom: 80px;
    }

    .carousel-text {
        max-width: 90%;
    }

    .carousel-text h1 {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .carousel-text p {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
    }

    /* Botões laterais ficam menores e não invadem o texto */
    .carousel-nav {
        font-size: 22px !important;
        padding: 6px !important;
    }

    /* Dots mais compactos */
    .dot {
        width: 10px !important;
        height: 10px !important;
    }

    .dot.active {
        width: 24px !important;
    }
}

/* ============================================================
   PATCH 3 — GARANTIA: HERO NUNCA TRANSBORDA
   ============================================================ */
@media (max-width: 390px) {

    .carousel-text h1 {
        font-size: 1.25rem !important;
    }

    .carousel-text p {
        font-size: 0.9rem !important;
    }
}

/* ====== PATCH: CORREÇÃO HEADER + HERO PARA TABLET (768px — 1024px) ====== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Ajustes gerais do header para caber em larguras de tablet */
  .custom-header {
    padding: 16px 0 !important;          /* diminui espaço vertical sem alterar a estética */
    height: var(--header-height);        /* mantém a referência do site */
  }

  /* Container central mais estreito (mantém o alinhamento central) */
  .header-container {
    max-width: 760px !important;
    padding: 0 10px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  /* Ajusta o espaçamento entre elementos do header */
  .header-content {
    gap: 12px !important;
    align-items: center;
    display: flex;
  }

  /* Logo menor para tablet */
  .custom-logo-link .custom-logo {
    max-width: 170px !important;
    height: auto !important;
    display: block;
  }

  /* Faz o nav ser flexível e encolher antes de ultrapassar o header */
  .nav-menu,
  .main-nav ul {
    display: flex !important;
    flex: 1 1 auto !important;     /* permite encolher e crescer */
    min-width: 0 !important;       /* essencial para que flex items encolham corretamente */
    justify-content: center;
    padding: 0 6px !important;
    gap: 10px !important;
  }

  /* Links do menu ocupando menos espaço */
  .nav-menu a,
  .main-nav ul li a {
    padding: 8px 10px !important;
    font-size: 15px !important;
    white-space: nowrap;
  }

  /* Grupo do menu + ícones à direita (social) */
  .header-right {
    flex: 0 0 auto !important;   /* não permite crescer demais */
    gap: 8px !important;
    align-items: center;
    display: flex;
  }

  /* Reduce social icon size so it doesn't overflow */
  .social-icons-header img,
  .social-icons-header svg,
  .header-right img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  /* Garante que o menu não empurre conteúdo para fora */
  .custom-header,
  .header-container,
  .header-content,
  .nav-menu {
    box-sizing: border-box !important;
  }

  /* Pequenos ajustes do hero para não transbordar para baixo do header */
  .hero-carousel {
    margin-top: calc(var(--header-height) - 6px) !important;
    min-height: 420px !important;
  }

  .carousel-content {
    padding: 24px 18px 72px 18px !important;
  }

  .carousel-text h1 {
    font-size: 2.0rem !important;
    line-height: 1.15 !important;
  }
  .carousel-text p {
    font-size: 1.05rem !important;
  }
}

/* Segurança extra: se quiser um fallback em 800px exatos */
@media (min-width: 780px) and (max-width: 820px) {
  .header-container { max-width: 760px !important; }
  .custom-logo-link .custom-logo { max-width: 165px !important; }
  .nav-menu a { font-size: 15px !important; padding: 8px 10px !important; }
}

/* ============================================================
   FOOTER — Ajuste fino final para mobile vertical
   ============================================================ */
@media (max-width: 480px) {

  /* =============================
     1) Reduz espaçamento superior
     ============================= */
  .site-footer {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  /* =============================
     2) Centraliza a logo perfeitamente
     ============================= */
  .footer-logo {
    margin: 0 auto 10px auto !important;
    transform: scale(1.30); /* menor e mais proporcional */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Corrige qualquer deslocamento interno da logo */
  .footer-logo img,
  .footer-logo svg {
    margin: 0 auto !important;
  }

  /* =============================
     3) Reduz espaço entre logo → Empresa
     ============================= */
  .footer-columns {
    margin-top: 5px !important;
    padding-top: 0 !important;
    gap: 10px !important;
  }

  .footer-columns h4 {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }

  /* =============================
     4) Reduz espaço entre menu → sociais
     ============================= */
  .social-links {
    margin-top: 8px !important;
    margin-bottom: 5px !important;
    gap: 8px !important;
  }

  /* =============================
     5) Linha e texto final mais próximos
     ============================= */
  .footer-bottom {
    margin-top: 5px !important;
  }

  .footer-bottom hr {
    margin: 8px auto !important;
    width: 85%;
  }

  .footer-bottom p {
    margin-top: 5px !important;
    font-size: 0.82rem !important;
  }
}
