

/* corpo */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFB6C1;
    margin: 0;
      /* --- CORREÇÃO 1: Adiciona o espaçamento no topo para o header (Desktop) --- */
    padding-top: 110px; 
    text-align: center;
    overflow-x: hidden; /* evita rolagem lateral no mobile */
    }
    
    /* ========== Header fixo (barra com logo + nav) ========== */
    header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px; /* controla espaçamento interno */
    background-color: #d599a2;
    z-index: 1000;
    flex-wrap: wrap; /* permite quebrar no mobile */
    box-sizing: border-box; /* padding conta dentro da largura */
    }
    
    /* logo na barra */
    header .logo {
    height: 70px;
    width: auto;
    border-radius: 50%;
    }
    
    /* Nav na barra */
    header nav {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap; /* deixa quebrar no mobile */
    padding: 0 10px;
    max-width: 70%;
    justify-content:flex-end;
    }
    
    header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: color 0.2s;
    }
    
    header nav a:hover {
    color: #d63384;
    }
    
    /* Variáveis e ajuste de rolagem */
    :root {
    --scroll-offset: 132px; /* valor aproximado da altura do header */
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
    }
    
    
    /* ========== HERO / BANNER com imagem de fundo ========== */
    /* --- CORREÇÃO 2: Removi o #home daqui pois ele já é uma seção e não precisa de padding extra --- */
    .hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(rgba(255,182,193,0.45), rgba(192, 192, 192, 0.45)),
    url("salaoselma.png") center/cover no-repeat;
    background-attachment: scroll;
    }
    
    /* centraliza conteúdo do hero */
    .hero .hero-content {
    max-width: 1000px;
    width: 100%;
    color: #fff;
    }
    
    /* título sobre a imagem */
    .hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 56px);
    color: #ffffff; 
    text-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    .hero h1:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    /* ========== Seção Sobre ========== */
    #sobre {
    padding: 30px 16px;
    background: #fff0f5;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    }
    
    #sobre h2 {
    font-size: 20px;
    color: #9d757b;
    margin-bottom: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    #sobre h2:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    #sobre p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    }
    
    .titulo-contato {
    font-size: 20px;
    color: #d63384;
    }
    
    /* ========== Rodapé ========== */
    footer {
    background-color: #d599a2;
     color: white;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    }
    
    footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
    }
    
    footer a:hover {
    color: #ffcad4;
    }
    
    footer .mapa {
    margin-top: 20px;
    }
    
    footer .mapa h3 {
    margin-bottom: 10px;
    color: #fff;
    }
    
    /* Garante que mapas sejam responsivos */
    footer iframe,
    #contato iframe {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: none;
    border-radius: 12px;
    }
    
    /* ========== Seção Serviços ========== */
    #servicos {
    padding: 40px 16px;
    background: linear-gradient(to bottom, #fff0f5, #ffe4ec);
    text-align: center;
    margin: 40px auto;
    }
    
    #servicos h2 {
    font-size: 20px;
    color: #9d757b;
    margin-bottom: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    #servicos h2:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    .servicos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    }
    
    .servico {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    max-width: 90%; /* impede estourar no mobile */
    }
    
    .servico:hover {
    transform: scale(1.05);
    }
    
    .servico h3 {
    color: #d63384;
    margin-bottom: 15px;
    }
    
    .servico p {
    font-size: 14px;
    color: #444;
    }
    
    /* ========== Contato ========== */
    #contato {
    padding: 30px 16px;
    background: #fff0f5;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    }
    
    #contato h2 {
    font-size: 22px;
    color: #9d757b;
    margin-bottom: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    #contato h2:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    #contato p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    }
    
    #contato .mapa {
    margin-top: 20px;
    }
    
    /* ========== Galeria ========== */
    #galeria {
    padding: 40px 16px;
    background-color: #fff0f5;
    text-align: center;
    margin: 40px auto;
    }
    
    #galeria h2 {
    font-size: 20px;
    color: #9d757b;
    margin-bottom: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    #galeria h2:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    .galeria-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* ajuste p/ telas menores */
    gap: 15px;
    justify-items: center;
    }
    
    .galeria-container img {
    width: 100%;
     max-width: 300px; /* controla tamanho máximo */
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    object-fit: cover;
    }
    
    .galeria-container img:hover {
    transform: scale(1.05);
    }
    
    .galeria-container .item p {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    color: #555;
    }
    
    
    
    /* ========== Avaliações / Feedback ========== */
    #avaliacoes {
    padding: 40px 16px;
    background: linear-gradient(to bottom, #fff0f5, #ffe4ec);
    text-align: center;
    margin: 40px auto;
    /* scroll-margin-top já definido no topo via variável */
    }
    
    #avaliacoes h2 {
    color: #9d757b;
    margin-bottom: 50px;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    
    #avaliacoes h2:hover {
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
    cursor: pointer;
    }
    
    #avaliacoes h2::after {
    content: "";
    width: 60%;
    height: 3px;
    background: #d599a2;
    position: absolute;
     bottom: -8px;
    left: 20%;
    border-radius: 50px;
    }
    
    .avaliacoes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    }
    
    .avaliacao-card {
    background: #fff;
     border-radius: 20px;
    padding: 25px;
    width: 280px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    max-width: 90%; /* ajuste para mobile */
    }
    
    .avaliacao-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    }
    
    .comentario {
    font-style: italic;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
    }
    
    .estrelas {
    font-size: 22px;
    color: #FFD700; /* amarelo ouro */
    margin-bottom: 10px;
    }
    
    .cliente {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #9d757b;
    font-size: 16px;
    }
    
    .avaliacao-card::before {
    content: "❝";
    font-size: 40px;
    color: #d599a2;
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
    }
    
    /* ================================================= */
    /* CSS PARA DISPOSITIVOS MÓVEIS (CELULARES E TABLETS) */
    /* ================================================= */
    
    @media (max-width: 768px) {
    
        /* --- CORREÇÃO PARA ROLAGEM NO CELULAR --- */
        :root {
            /* Define que a rolagem deve parar 360px abaixo do topo */
            scroll-padding-top: 360px; 
        }
    
        /* --- CORREÇÃO PARA LAYOUT DO CONTEÚDO NO CELULAR --- */
        body {
            /* Empurra todo o conteúdo 360px para baixo, livrando o cabeçalho */
            padding-top: 360px; 
        }
    
        /* --- Ajustes no layout do cabeçalho --- */
        header {
            flex-direction: column;
            align-items: center;
            height: auto;
            padding: 10px;
        }
    
        header .logo {
            height: 60px;
            margin-bottom: 15px; /* Adiciona espaço entre o logo e o menu */
        }
    
        /* --- Ajustes no layout do menu de navegação --- */
        header nav {
            width: 100%; 
            justify-content: center; 
            flex-direction: column;
            gap: 12px;
            padding: 10px 0;
        }
    
        header nav a {
            font-size: 16px;
        }
    
      
    }
    
    /* ======================================= */
    /* CSS OTIMIZADO PARA BOTÕES FLUTUANTES    */
    /* ======================================= */
    
    /* O container que segura e posiciona os botões */
    .floating-buttons-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column; /* Empilha os botões na vertical */
    }
    
    /* ESTILO COMUM para TODOS os botões flutuantes */
    .floating-btn img {
        width: 60px; /* Mantemos o tamanho */
        height: auto; /* Deixamos a altura ser automática para não distorcer */
        transition: transform 0.2s;
        /* A mágica acontece aqui: uma sombra que se adapta ao formato do ícone */
        filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    }
    
    /* EFEITO HOVER para TODOS os botões */
    .floating-btn img:hover {
        transform: scale(1.1);
    }
    
    /* ESPAÇAMENTO (aplicado APENAS no botão do Instagram) */
    .instagram-float {
        margin-bottom: 15px; /* Empurra o botão de baixo para criar espaço */
    }

   
