:root {
    --background: #fff;
    --accent-dark: #511528;
    --accent: #7b223c;
    --accent-light: #b04a70;
    --rose: #eb99b2;
    --text-dark: #222222;
    --bg-dark: #222222;
    --text-vinho: #7b223c;
    --card-bg: #fff;
    --text-light: rgba(81,21,40,0.92);
    --banner-text: #fff;
}

body {
    margin: 0;
    border: 0;
    background-color: var(--background);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.header {
    position: fixed;
    background: transparent;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em 0;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 1000;
    color: var(--background);
}
.header.scrolled {
    background: var(--bg-dark);
    color: #fff;
    box-shadow: 0 2px 16px rgba(81,21,40,0.08);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--banner-text);
}

.header nav a {
    color: var(--banner-text);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: var(--accent);
}

.parallax-banner {
    color: transparent;
    height: 80vh;
    width: 100vw;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;

}

.banner-overlay {
    text-align: center;
    padding: 2rem;
}

.banner-overlay h1 {
    color: var(--banner-text);
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.banner-overlay p {
    color: var(--banner-text);
    margin-bottom: 2rem;
}

.about-section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin-top: 1em;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid a {
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 2rem 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(81,21,40,0.08);
    border-radius: 4px;
    background-color: var(--card-bg);
    transition: transform 0.2s;
    cursor: pointer;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover .hover-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay i {
    color: white;
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay i {
    transform: translateY(0);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Permite que o clique passe através do overlay */
    cursor: pointer;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.elegant-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.elegant-btn.outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.image-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.phone-frame {
    background: #222;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    width: 650px;         /* Largura típica de iPhone 12/13 */
    height: 900px;        /* Altura de celular em pé */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 6px solid #444;
    overflow: hidden;
    padding: 0;
}

.modal-image {
    object-fit: contain;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    display: block;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.arrow:hover {
    background: rgba(0,0,0,0.8);
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }


.error-message {
    text-align: center;
    padding: 2rem;
    color: #ff6b6b;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
    margin: 0;
}

/* Seção Contato */
.contact-section {
    padding: 4rem 2rem;
    background: var(--card-bg);
    margin: 4rem auto;
    border-radius: 20px;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.contact-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent);
    border-radius: 20px;

}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-radius: 20px;
}

.info-item {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Box WhatsApp */
.whatsapp-box {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.whatsapp-header i {
    font-size: 2.5rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    color: #128C7E;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.whatsapp-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Botão Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    left: auto;
    max-width: 60px;
    max-height: 60px;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1) rotate(10deg);
}

#age-confirmation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.age-popup {
  background: #23232b;
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 0 30px 0 rgba(0,0,0,0.45);
  max-width: 330px;
  width: 96vw;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.age-popup button {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
  font-size: 1.05em;
}

#confirm-yes {
  background-color: #4caf50;
  color: #fff;
  padding: 10px;
}

#confirm-no {
  background-color: #e53935;
  color: #fff;
}

.age-popup button:hover {
  opacity: 0.85;
}

/* Mobile menu escondido por padrão */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--banner-text);
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s;
}

/* Responsivo */
@media (max-width: 900px) {
    .header {
        background: var(--bg-dark) !important;
        color: #fff !important;
        box-shadow: 0 2px 16px rgba(81,21,40,0.08);
        transition: none !important;
    }
    .logo {
        margin-left: 24px;
    }
    .header.scrolled {
        /* Mantém igual, para evitar flicker ao rolar */
        background: var(--bg-dark) !important;
        color: #fff !important;
        box-shadow: 0 2px 16px rgba(81,21,40,0.08);
    }
    .header-content {
        padding: 0 1rem;
    }
    .nav-menu {
        position: fixed;
        top: 68px;
        right: 0;
        width: 70vw;
        max-width: 300px;
        background: var(--bg-dark);
        box-shadow: -2px 0 18px rgba(81,21,40,0.17);
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 2.2rem;
        padding-left: 2rem;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(.61,-0.11,.5,1.23);
        z-index: 1100;
    }
    .nav-menu.open {
        transform: translateX(0);
    }
    .nav-menu a {
        color: #fff;
        font-size: 1.25rem;
        margin: 1.1rem 0;
        display: block;
    }
    .menu-toggle {
        display: block;
        z-index: 1200;
    }
    .header {
        padding: 0.6em 0;
    }
      body {
    font-size: 15px;
  }
  .header-content {
    padding: 0 8px;
  }
  .section-title, h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    body {
        font-size: 14px !important;
    }
    .header-content {
        padding: 0 5px !important;
    }
    .parallax-banner {
        height: 60vh !important;
    }
    .logo {
        font-size: 1.8rem !important;
        margin-left: 24px;
    }
    .section-title, h1 {
        font-size: 2.3rem !important;
    }
    h2 {
        font-size: 1.1rem !important;
    }
    h3 {
        font-size: 1rem !important;
    }
    p {
        font-size: 0.95rem !important;
    }
    .elegant-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.98rem;
        border-radius: 7px;
    }
    .card, .about-card, .contact-section {
        padding: 1.1rem 0.5rem;
        font-size: 0.98rem;
    }
    .gallery {
        gap: 3px;
        padding: 0 2px;
    }
    .gallery img {
        border-radius: 5px;
    }

    .gallery-grid {
        gap: 7px;
        max-width: 100vw;
    }
    .gallery img {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 4px;
        max-width: 100vw;
        padding: 0 2px;
    }
    .gallery img {
        border-radius: 4px;
    }
}

@media (max-width: 462px) {
  .whatsapp-float {
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 13px !important;
  }
  .logo {
    font-size: 1.5rem !important;
    margin-left: 18px;
  }
  .parallax-banner {
    height: 50vh !important;
  }
  .section-title, h1 {
    font-size: 1.7rem !important;
  }
  h2, h3 {
    font-size: 0.98rem !important; 
  }
  p {
    font-size: 0.85rem !important;
  }
  .card, .about-card, .contact-section {
    padding: 0.65rem 0.25rem !important;
    font-size: 0.93rem !important;
  }
  .gallery {
    gap: 2px;
    padding: 0 1px;
  }
  .elegant-btn {
    padding: 0.55rem 0.7rem;
    font-size: 0.91rem;
    border-radius: 5px;
  }
}

body, html {
    overflow-x: hidden; /* Isto remove qualquer scroll horizontal extra */
}