@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Playfair+Display:ital,wght@1,400&family=Raleway:wght@400;500&display=swap');

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
img,picture,video,canvas,svg{ display:block; max-width:100%; }

:root{
  --bg: #f8ecda;
  --text: #2e2320;
  --muted: #6b4a3c;
  --brand: #81412a;
  --brand-700:#6d361f;
  --accent:#fff6e8;
  --font-title:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:'Raleway', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-playfair-italic: 'Playfair Display', serif;
  --fontplayfair: 'Playfair Display';
  --space-2: 1rem;
  --space-3: 1.5rem;
  --header-h: 80px;


/* Escala de títulos responsiva */
  --h1-size: clamp(2.2rem, 8vw, 3.5rem);   /* No mobile diminui, no PC chega a ~56px */
  --h2-size: clamp(1.9rem, 6vw, 2.7rem);   /* Entre 28px e 40px */
  --h3-size: clamp(1.4rem, 3vw, 1.8rem);   /* Entre 22px e 28px */
  --h4-size: 1.25rem;                      /* Fixo em 20px (já é um bom tamanho) */
  }

body {
  line-height: 1.6;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: var(--fontplayfair); /* ou --font-title se preferir */
  font-size: var(--h1-size);
  font-weight: 400;
  color: var(--brand);
}

h2 {
  font-family: var(--font-title);
  font-size: var(--h2-size);
  color: var(--brand);
}

h3 {
  font-family: var(--font-title);
  font-size: var(--h3-size);
  color: var(--brand);
}

h4 {
  font-family: var(--font-title);
  font-size: var(--h4-size);
  color: var(--brand);
}


main {
  flex: 1;
}



/* --------------------------------------------------- 
   1. ESTRUTURA GLOBAL DO HEADER 
   (O que não muda entre as páginas: layout, logo, fontes)
------------------------------------------------------ */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    
    /* CORREÇÃO AQUI: Dá um fundo creme/claro padrão para TODAS as páginas internas */
    background-color: var(--accent); 
    border-bottom: 1px solid rgba(129, 65, 42, 0.1); /* Linha sutil opcional para separar do conteúdo */
    
    transition: all 0.3s ease;
}

header nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

header a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.logo img {
    height: 80px; 
    width: auto;
    display: block;
    object-fit: contain;
}

/* Compensação de espaço para o conteúdo não sumir atrás do header fixo */
body { 
    padding-top: var(--header-h); 
}

/* --------------------------------------------------- 
   3. HEADER DA HOME (EXCEÇÃO)
------------------------------------------------------ */

body.home header {
    
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    /* O blur */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: none;
}

body.home header a {
    color: #ffffff; /* Ou var(--accent) se for sua cor clara */
} 
/* Na home, o conteúdo (Hero) deve começar no topo absoluto */
body.home { 
    padding-top: 0; 
}
/* ------------------------------------------------ HERO COM SLIDES --------------------------------------- */
.hero {
    position: relative;
    height: 100vh; /* Ocupa a tela toda */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bg);
    text-align: center;
}

/* Container das imagens */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: -1; /* Fica atrás do texto */
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* A imagem que estiver com a classe .active aparece */
.hero-slides img.active {
    opacity: 1;
}

/* Camada escura para dar leitura ao texto branco */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-title {
    color: var(--bg); 
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* -------------------------------------------------- SEÇÃO CHI SIAMO --------------------------------------------- */
#chisiamo .container{
  
  text-align:center;
  padding: 4rem 1rem;
}

#chisiamo p {
  font-size: 1.8rem;
  letter-spacing: 0.05em;          
  line-height: 1.6;
  font-weight: 400;
  max-width: 70ch;                 
  margin-inline: auto;
}
#chisiamo .firma {
  margin-top: 1.5rem;
  font-style: italic;
  text-align: right;               
  font-weight: 500;
  letter-spacing: 0.03em;          
}

/* ------------------------------------------------SEÇÃO PERCHÉ QUI (A DUE PASSI) ---------------------------------- */
#perchequi {
    padding: 4rem 0;
    background-color: var(--accent);
}

#perchequi-title {
    /* Alinhamento com a Grid */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    text-align: left; 

    /* Usando as variáveis do novo ROOT */
    font-family: var(--font-playfair-italic);
    font-size: var(--h2-size); /* Tamanho padronizado pelo clamp */
    font-weight: 400;
    font-style: italic;
    color: var(--brand);
}

/* Grid Responsiva */
.pq-grid {
    display: grid;
    /* Ajustei para minmax(300px) para não quebrar em celulares pequenos, 
       mas ele crescerá até preencher o espaço no desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* O Card com efeito de compressão */
.pq-item {
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(46, 35, 32, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 5 / 6; /* Fotos quadradas e imponentes */
}

/* Efeito de "apertar" o botão/card */
.pq-item:active {
    transform: scale(0.95);
}

.pq-card {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pq-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

/* Texto sobre a foto (Playfair Italic) */
.pq-item p {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Um pouco mais de respiro */
    margin: 0;
    
    color: var(--bg);
    /* ALTERAÇÃO: Agora usando a Playfair Italic para o texto interno */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: italic;
    font-size: var(--h3-size); /* Tamanho elegante e legível */
    
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    z-index: 2;
    transition: opacity 0.4s ease;
}

/* --- LÓGICA MOBILE (Sempre visível) --- */
.pq-card img {
    filter: brightness(0.65); 
}

.pq-item p {
    opacity: 1;
}

/* --- LÓGICA DESKTOP (Revelação no Hover) --- */
@media (min-width: 1024px) {
    
    .pq-item:hover {
        transform: scale(0.97);
    }

    .pq-card img {
        filter: brightness(1); /* Foto clara inicialmente */
    }

    .pq-item:hover .pq-card img {
        filter: brightness(0.55); /* Escurece para dar leitura ao texto */
    }

    .pq-item p {
        opacity: 0; /* Texto escondido */
    }

    .pq-item:hover p {
        opacity: 1; /* Texto aparece suavemente */
    }
}

/* ---------------------------------------------- SEÇÃO INTRO APPARTAMENTI ----------------------------------------- */

.intro-appartamenti {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
}

/* ========= IMAGEM =========== */

.intro-img img {
    width: 100%;
    height: auto; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
}

/* ======== TEXTO  ===== */

.intro-testo h2 {
    font-family: var(--font-playfair-italic);
    font-size: var(--h2-size);
    font-style: italic;
    font-weight: 400;
    color: var(--brand);
    margin-bottom: 1.5rem;
}

.intro-testo p {
    color: var(--brand);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 60ch;
}

/* =========== BOTÃO ========= */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--brand);
    color: var(--brand);
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    background: var(--brand);
    color: var(--bg);
    transform: scale(0.98);
}

.btn:active {
    transform: scale(0.95);
}

@media (min-width: 1024px) {
    .intro-appartamenti {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}




/* ---------------------------------------------- SEÇÃO RECENSIONI (Layout Final) ----------------------------------------- */

#recensioni {
    background-color: var(--bg);
    padding: 6rem 0;
}

/* O Container agora é um Grid que separa o Título do resto */
.reviews-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-areas: 
        "titulo titulo titulo"
        "marca comentario setas";
    grid-template-columns: 200px 1fr auto;
    gap: 2rem 4rem; 
    align-items: center;
}

.reviews-container h2 {
    grid-area: titulo;
    font-family: var(--font-playfair-italic);
    font-size: var(--h2-size);
    color: var(--brand);
    font-weight: 400;
    margin: 0 0 1rem 0;
    text-align: left; 
}

/* 2. LOGO (Abaixo do Título) */
.reviews-brand {
    grid-area: marca;
    display: flex;
    align-items: flex-start;
}

.booking-logo {
    max-width: 200px;
    height: auto;
}

/* 3. COMENTÁRIO (Centro - Altura Fixa para não pular) */
.reviews-slider {
    grid-area: comentario;
    position: relative;
    min-height: 180px; 
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(129, 65, 42, 0.2);
    padding-left: 3rem;
}

.review-item {
    display: none;
    width: 100%;
}

.review-item.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.review-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.review-author {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-700);
    text-transform: uppercase;
}

/* 4. SETAS (Canto Direito) */
.reviews-nav {
    grid-area: setas;
    display: flex;
    align-items: center;
}

/* Estilo base das setas */
.reviews-nav button {
    background-color: transparent;
    border: 1px solid var(--brand);
    color: var(--brand);
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ESTA É A CLASSE QUE FAZ A TROCA */
/* O botão que tiver essa classe FICARÁ MARROM */
.reviews-nav button.active-btn {
    background-color: var(--brand) !important;
    color: var(--accent) !important;
}

.reviews-nav button:not(.active-btn) {
    background-color: transparent;
    color: var(--brand);
}

/* Estado inicial: como você quer que o next comece marrom */
#nextBtn {
    background-color: var(--brand);
    color: var(--accent);
}

.reviews-nav button:first-child {
    border-right: none;
}
/* Animação */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .reviews-container {
        grid-template-areas: 
            "titulo"
            "marca"
            "comentario"
            "setas";
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .reviews-brand { justify-content: center; }
    .reviews-slider { border-left: none; padding-left: 0; min-height: auto; }
    .reviews-nav { justify-content: center; }
}
/* --------------IMAGEM FINAL / DIVISÓRIA ------------*/

.closing-image {
    width: 100%;
    height: 500px; 
    overflow: hidden;
}

.closing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------------- APPARTAMENTI  -----------------------------------------------------*/

#appartamenti  {
    background-color: #fff;
    padding-top: 50px;
    padding-bottom: 5rem;
}
/* Alinhamento do container geral */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3) 0;
    
}

/* Título Principal com a linha decorativa discreta embaixo */
#appartamenti-title {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--fontplayfair), serif;
}

#appartamenti-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--brand);
    border-radius: 2px;
   
}

/* O Card do Apartamento (Visual arredondado e acolhedor do print) */
.apt-card {
    background-color: var(--bg); /* Usa o tom creme suave */
    border-radius: 18px; /* Cantos suaves e modernos */
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(46, 35, 32, 0.04); /* Sombra super leve */
    transition: transform 0.3s ease;
}

.apt-card:hover {
    transform: translateY(-2px);
}

/* Flexbox para colocar Texto na esquerda e Imagem na direita */
.apt-card-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap; /* Garante que quebre linha no mobile */
}

/* Lado do Texto */
.apt-text-side {
    flex: 1.2;
    min-width: 300px;
}

.apt-text-side h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.apt-text-side p {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Lista de Recursos (Ícones/Pontos) */
.apt-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.apt-features li {
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    padding-left: 1.2rem;
}

/* O ponto elegante antes de cada item */
.apt-features li::before {
    content: "•";
    color: var(--brand);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Botão "Mostrare più foto" (Borda fina, elegante, igual ao print) */
.btn-gallery {
    background: transparent;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-gallery:hover {
    background-color: var(--brand);
    color: var(--accent);
}

/* Lado da Imagem com bordas arredondadas harmônicas */
.apt-image-side {
    flex: 1;
    min-width: 300px;
}

.apt-image-side figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.apt-image-side img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px; /* Casando com o design do card */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   ZONA DO BOTÃO DO WHATSAPP (AÇÃO FINAL ÚNICA)
   ========================================================================== */
.action-container {
    display: flex;
    justify-content: center;
    margin: 4rem 0 2rem 0;
}

.btn-whatsapp {
    background-color: #25D366; /* Verde oficial */
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Estilo pílula */
    
    /* Alinhamento Flexbox */
    display: inline-flex;
    align-items: center; /* Alinha o ícone e texto verticalmente */
    justify-content: center; /* Centraliza tudo dentro do botão */
    gap: 12px; /* Espaço fixo entre ícone e texto */
    
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}



/* ==========================================================================
   ESTILIZAÇÃO DO LIGHTBOX (MODAL DE FOTOS)
   ========================================================================== */

/* O fundo escuro que cobre a tela inteira */
.gallery-lightbox {
    position: fixed;
    inset: 0; /* Ocupa 100% da tela */
    z-index: 9999; /* Fica acima de tudo, inclusive do header */
    background-color: rgba(26, 20, 18, 0.95); /* Tom escuro baseado na sua paleta */
    backdrop-filter: blur(8px);
    
    /* Centraliza a imagem perfeitamente */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Escondido por padrão usando o atributo hidden do HTML */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Quando o JS ativa o lightbox, ele ganha essa classe ou perde o atributo hidden */
.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Controle do tamanho da imagem para não quebrar a tela */
.gallery-lightbox img {
    max-width: 85vw; 
    max-height: 80vh; 
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Estilo geral dos botões do Lightbox (Fechar, Próximo, Anterior) */
.gallery-lightbox button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.gallery-lightbox button:hover {
    background: var(--brand); /* Usa o tom terracota no hover */
    color: var(--accent);
    transform: scale(1.05);
}

/* Posicionamento dos botões na tela */
.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem !important;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE UNIFICADA - 768px)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. ESTILOS DO LIGHTBOX (GALERIA) */
    .gallery-lightbox img {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .gallery-lightbox button {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }

    /* 2. ESTILOS DOS CARDS DE APARTAMENTOS */
    .apt-card {
        padding: 1.5rem;
    }
    
    .apt-card-content {
        gap: 1.5rem;
        flex-direction: column-reverse; /* Imagem fica no topo no mobile, texto embaixo */
    }
    
    .apt-image-side img {
        height: 240px;
    }
    
    .apt-features {
        grid-template-columns: 1fr;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
     
}

/* ========================================================================== ESTILIZAÇÃO DA PÁGINA DE CONTATOS (CONTATTI) ========================================================================== */
#contatti {
    /* Garante um recuo seguro no topo para não colar embaixo do header fixed */
    padding-top: calc(var(--header-h) + 1.5rem); 
    padding-bottom: 5rem;
    background-color: white;
}

/* O elemento chave para alinhar o topo com o rodapé e o meio */
.contatti-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Título Principal */
#contatti-title {
    font-family: var(--fontplayfair), serif; 
    font-size: var(--h1-size);
    font-weight: 400;
    color: var(--brand);
    margin: 0 0 0.5rem 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#contatti-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--brand);
}

.contatti-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Grid perfeitamente simétrica ocupando 100% do wrapper interno */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    width: 100%;
}

/* ==========================================
   1. FORMULÁRIO DE CONTATO (CONTACT FORM)
   ========================================== */
.contact-form {
    background-color: var(--accent); 
    padding: 2.5rem;
    border-radius: 0; 
    border: 1px solid rgba(107, 74, 60, 0.15); 
    box-sizing: border-box;
}

.contact-form div {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    background-color: var(--bg); 
    border: 1px solid rgba(107, 74, 60, 0.15);
    border-radius: 0; 
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(129, 65, 42, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.form-note a {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 600;
}

.contact-form button[type="submit"] {
    background-color: var(--brand);
    color: var(--accent);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--brand-700);
    transform: translateY(-1px);
}

/* ==========================================
   2. CARD DE ASSISTÊNCIA E BOTÃO WHATSAPP
   ========================================== */
.whatsapp-cta {
    background-color: var(--accent);
    padding: 2.5rem;
    border-radius: 0; 
    border: 1px solid rgba(107, 74, 60, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.wa-content h3 {
    font-family: var(--font-title);
    font-size: var(--h3-size);
    color: var(--brand);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.wa-content p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem !important;
}

.wa-button {
    background-color: #25D366 !important;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 50px !important; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
    transition: all 0.3s ease;
}

.wa-button:hover {
    background-color: #20ba5a !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    color: #ffffff !important;
}

/* ==========================================
   3. MAPA (Corrigido largura máxima)
   ========================================== */
.contatti-mappa {
    width: 100%; /* Segue o tamanho total do wrapper perfeitamente alinhado */
    margin: 2rem 0 var(--space-3) 0;
    border: 1px solid #e3d2c2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(129, 65, 42, 0.08);
}

.gmap {
    width: 100%;  
    height: 450px;  
    border: 0;
    display: block;
}

/* ==========================================
   4. RESPONSIVIDADE (MOBILE)
   ========================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contatti-wrapper {
        padding: 0 1rem;
    }

    .contact-form, .whatsapp-cta {
        padding: 1.5rem;
    }
    
    .whatsapp-cta {
        text-align: center;
        align-items: center;
    }
    
    .wa-button {
        width: 100%;
    }

    .gmap {
        height: 300px; 
    }
}



/* ----------------------------------------------------------------------------- SERVIZI    ------------------------------------------------- */

/* CONTAINER PRINCIPAL (Aplicado no <main> para zerar fundos indesejados) */
main.container-servicos {
    max-width: 100%; 
    background-color: #ffffff; 
    padding: 0;
}

/* SECTION INTERNA (Centraliza o conteúdo e cria o espaçamento interno) */
#servicos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 0 1.5rem; /* Adiciona respiro no topo */
    box-sizing: border-box;
    background-color: #ffffff; /* Reforça o fundo branco atrás do título */
}

.container-servicos h1 {
    font-family: var(--fontplayfair); 
    font-size: var(--h1-size);
    font-weight: 400;
    color: var(--brand);
    text-align: left;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 3.5rem;
}

.container-servicos h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--brand);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 4vw, 4.5rem);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    background: var(--bg); 
    border-radius: 0; 
    box-shadow: none;
    margin-bottom: 6rem; 
}

/* CARDS */
.servico-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* TÍTULO DO CARD */
.servico-card h2 {
    font-family: var(--font-playfair-italic);
    font-size: var(--h3-size); 
    color: var(--brand); 
    font-weight: 500;
    text-transform: none; 
    letter-spacing: 0.1px;
    margin: 0;
}

/* FOTOS DOS SERVIÇOS */
.servico-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 0; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.servico-card img:hover {
    transform: scale(1.015);
    filter: brightness(0.95);
}

/* TEXTO DESCRITIVO */
.servico-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 60ch;
    color: var(--muted); 
    text-align: justify;
    margin: 0;
}


/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 780px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 3rem;
        margin-bottom: 4rem; /* Ajuste sutil no mobile para o footer */
    }

    .servico-card img {
        height: 280px;
    }

    .container-servicos h1 {
        letter-spacing: 0;
        margin-bottom: 2.5rem;
    }
}






/* ------------------------------------------ FOOTER ----------------------------------------------- */
/* ================= FOOTER GERAL ================= */
.site-footer {
  
  border-top: 1px solid #e3d2c2;
  background: linear-gradient(180deg, #fff 0%, #faf5f1 100%);
  color: var(--muted);
}

.footer-container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.site-footer > .footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* CONTAINER PARA ÍCONES LADO A LADO */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Espaço entre os ícones */
}

.site-footer h3,
.site-footer h4 {
  margin: 0;
  text-align: left;
}

.footer-address {
  margin: 0;
  line-height: 1.6;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Garante que elementos dentro do LI (como os links de ícones) fiquem lado a lado */
.footer-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
  transition: color .3s ease;
}

.site-footer a:hover {
  color: var(--brand);
}

/* AJUSTE DE TAMANHO DOS ÍCONES */
.whats-link {
  width: 130px; 
  height: 130px;
  object-fit: contain;
  display: block;
}

.insta-icon {
  width: 150px; 
  height: 150px;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #e3d2c2;
  padding: 1.5rem 0;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: .9rem;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 0;
  }
  
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  header ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  body { padding-top: 120px; }

  .site-footer > .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .site-footer h3,
  .site-footer h4 {
    text-align: center;
  }

  .footer-list {
    align-items: center;
  }

  /* Mantém os ícones lado a lado no mobile */
  .footer-list li {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}
