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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #303030;
  overflow-x: hidden;
  background: #F0F0F0;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.text-primary {
  color: #7D8376;
}

.bg-primary {
  background-color: #7D8376;
}

.border-primary {
  border-color: #7D8376;
}

.hover\:text-primary:hover {
  color: #7D8376;
}

.hover\:bg-primary:hover {
  background-color: #7D8376;
}

.focus\:ring-primary:focus {
  --tw-ring-color: #7D8376;
}

.text-accent {
  color: #A7AE9E;
}

.bg-accent {
  background-color: #A7AE9E;
}

/* Header entrance */

.header-brand,
.header-brand-sub,
.header-brand-logo {
  opacity: 0;
}

.splash-dismissed .header-brand-logo {
  animation: headerEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.splash-dismissed .header-brand {
  animation: headerEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.splash-dismissed .header-brand-sub {
  animation: headerEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes headerEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section animations - handled by AOS */



/* Specialty cards */
.specialty-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(125, 131, 118, 0.15);
}

.specialty-card .icon-wrap {
  transition: all 0.4s ease;
}

.specialty-card:hover .icon-wrap {
  transform: scale(1.1);
  color: #7D8376;
}

.specialty-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(125, 131, 118, 0.95), rgba(125, 131, 118, 0.8));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.specialty-card:hover .card-overlay {
  opacity: 1;
}

/* Brand carousel - infinite marquee */
.brand-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: scrollBrands 35s linear infinite;
  width: max-content;
}

.brand-track:hover {
  animation-play-state: paused;
}

.brand-item-img {
  flex: 0 0 auto;
  height: 36px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.brand-item-img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size:1.25rem;
  font-weight: 500;
  color: #303030;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  color: #7D8376;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #7D8376;
  color: #7D8376;
  transition: all 0.4s ease;
  font-size:1.1rem;
  font-weight: 600;
}

.faq-item.active .faq-question .icon {
  background: #7D8376;
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 0 0 1.5rem 0;
}

.faq-answer p {
  line-height: 1.8;
  color: #555;
  font-size:1.15rem;
}

.faq-answer ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.faq-answer ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  line-height: 1.6;
  color: #555;
  font-size:1.15rem;
}

.faq-answer ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #7D8376;
  font-weight: bold;
}

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tall {
  grid-row: span 2;
}

/* View transitions */
[data-view] {
  transition: opacity 0.3s ease;
}

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Internal header */
#header-internal {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Floating hamburger menu */
.menu-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.menu-float:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  color: #666;
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #f0efeb;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-link {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size:22px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #9a9690;
  text-decoration: none;
  line-height: 2.8;
  transition: color 0.25s ease;
}

.sidebar-link:hover {
  color: #6a6660;
}

.sidebar-nav {
  padding: 1.5rem 2rem 0;
  display: flex;
  flex-direction: column;
}

/* Loading skeleton for images */
.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animated background */
.animated-bg {
  background: #F0F0F0;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #7D8376, #A7AE9E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative dots pattern */
.dots-pattern {
  background-image: radial-gradient(rgba(125, 131, 118, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================================ */
/* PROPÓSITO SECTION - Minimalist */
/* ============================================================ */
.proposito-section {
  font-family: 'Raleway', sans-serif;
  background: #ffffff;
}

.proposito-label {
  font-size:19px;
  letter-spacing: 0.35em;
  color: #777;
  font-weight: 300;
  text-transform: lowercase;
}

.proposito-silaba {
  font-size:92px;
  font-weight: 200;
  color: #888;
  letter-spacing: 0.12em;
  line-height: 1;
}

@media (max-width: 767px) {
  .proposito-silaba {
    font-size:56px;
  }
}

.proposito-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.proposito-play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(1.05);
}

.proposito-texto {
  font-family: 'Raleway', sans-serif;
  font-size:19px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #888;
}

.proposito-cta {
  display: block;
  width: 60%;
  margin: 0 auto;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size:16px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #aaa;
  text-decoration: none;
  border-bottom: 0.5px solid #aaa;
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.proposito-cta:hover {
  color: #666;
  border-bottom-color: #666;
}

/* ============================================================ */
/* ESPECIALIDADES GRID CELLS */
/* ============================================================ */
.especialidade-cell {
  transition: all 0.4s ease;
}

.especialidade-cell:hover {
  filter: brightness(1.05);
}

/* Especialidade grid items hover */
[data-view="home"][id="especialidades"] a,
#especialidades a {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-view="home"][id="especialidades"] a:hover,
#especialidades a:hover {
  filter: brightness(1.08);
  transform: scale(1.01);
  z-index: 2;
}

.especialidade-cell .cell-bg {
  transition: transform 0.6s ease;
}

.especialidade-cell:hover .cell-bg {
  transform: scale(1.05);
}

/* ============================================================ */
/* PRODUCT SECTION (Radiesse) */
/* ============================================================ */
.produto-section {
  position: relative;
}

.produto-section .produto-overlay {
  transition: opacity 0.3s ease;
}

.produto-arrow {
  font-family: 'Inter', sans-serif;
  font-weight: 100;
  transition: all 0.3s ease;
}

.produto-arrow:hover {
  transform: translateY(-50%) scale(1.2);
}

/* Smooth image reveal on load */
img {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* ============================================================ */
/* SPECIALTY PAGES (dermatologia.html, estetica.html, etc.) */
/* ============================================================ */

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.nav-link {
  font-size:1.0rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #888;
  text-decoration: none;
  transition: color 0.25s ease;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #7D8376;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: #7D8376;
  color: white;
  font-size:0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif;
}

.btn-primary:hover {
  background: #6a7064;
  transform: translateY(-1px);
}

/* Section title */
.section-title {
  display: inline-block;
  font-size:0.9rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #b0aca8;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 0.5rem;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size:1.3rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #888;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.mobile-nav a:hover {
  color: #7D8376;
}

/* ============================================================ */
/* DÚVIDAS FREQUENTES */
/* ============================================================ */
.duvidas-label {
  font-size:19px;
  letter-spacing: 0.35em;
  color: #777;
  font-weight: 300;
  text-transform: lowercase;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 0.5rem;
}

.duvidas-silabas {
  font-size:84px;
  font-weight: 200;
  color: #c8c5c0;
  letter-spacing: 0.08em;
  line-height: 1.05;
  font-family: 'Raleway', sans-serif;
}

@media (max-width: 767px) {
  .duvidas-silabas {
    font-size:56px;
  }
}

.duvidas-subtitle {
  font-size:22px;
  font-weight: 300;
  color: #b0aca8;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 6px;
}

/* Search */
.duvidas-search-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

.duvidas-search-input {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid #ccc;
  padding: 0.6rem 2rem 0.6rem 0;
  font-size:20px;
  font-weight: 300;
  font-family: 'Raleway', sans-serif;
  color: #777;
  background: transparent;
  outline: none;
  letter-spacing: 0.05em;
}

.duvidas-search-input::placeholder {
  color: #ddd;
  font-weight: 300;
}

.duvidas-search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* FAQ items */
.duvidas-item {
  border-bottom: 0.5px solid #e0ddd8;
}

.duvidas-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-size:21px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #666;
  font-family: 'Raleway', sans-serif;
  text-align: left;
  transition: color 0.25s ease;
}

.duvidas-question:hover {
  color: #7D8376;
}

.duvidas-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:22px;
  font-weight: 200;
  color: #888;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.duvidas-item.active .duvidas-icon {
  transform: rotate(45deg);
  color: #888;
}

.duvidas-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.duvidas-item.active .duvidas-answer {
  max-height: 500px;
  padding: 0 0 1.5rem 0;
}

.duvidas-answer p {
  font-size:20px;
  font-weight: 300;
  line-height: 2;
  color: #666;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.03em;
}

/* Search hide */
.duvidas-item.hidden {
  display: none;
}

.duvidas-no-results {
  display: none;
  text-align: center;
  font-size:17px;
  font-weight: 300;
  color: #ccc;
  font-family: 'Raleway', sans-serif;
  padding: 3rem 0;
  letter-spacing: 0.08em;
}

.duvidas-no-results.visible {
  display: block;
}

/* ============================================================ */
/* MODAL AGENDE SUA CONSULTA */
/* ============================================================ */
.agende-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #eeece8;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agende-modal.open {
  opacity: 1;
  pointer-events: all;
}

.agende-modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 100vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  transform: scale(0.97);
  transition: transform 0.3s ease;
}

.agende-modal.open .agende-modal-content {
  transform: scale(1);
}

.agende-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size:38px;
  font-weight: 200;
  color: #ccc;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
  z-index: 10000;
}

.agende-modal-close:hover {
  color: #999;
}

.agende-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.agende-title {
  font-size:20px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #b0aca8;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

.agende-subtitle {
  font-size:16px;
  font-weight: 300;
  color: #ccc;
  font-family: 'Raleway', sans-serif;
  text-align: center;
  margin-top: -0.75rem;
}

.agende-whatsapp-btn {
  display: inline-block;
  font-size:16px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #aaa;
  text-decoration: none;
  border-bottom: 0.5px solid #aaa;
  padding-bottom: 4px;
  font-family: 'Raleway', sans-serif;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.agende-whatsapp-btn:hover {
  color: #666;
  border-bottom-color: #666;
}

.agende-divider {
  font-size:15px;
  font-weight: 300;
  color: #ddd;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

.agende-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agende-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.agende-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agende-label {
  font-size:15px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #ccc;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
}

.agende-input {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid #ccc;
  padding: 0.5rem 0;
  font-size:17px;
  font-weight: 300;
  font-family: 'Raleway', sans-serif;
  color: #999;
  background: transparent;
  outline: none;
  letter-spacing: 0.03em;
}

.agende-input::placeholder {
  color: #eee;
  font-weight: 300;
}

.agende-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.agende-input-wrap .agende-input {
  padding-right: 1.5rem;
}

.agende-input-icon {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  pointer-events: none;
}

.agende-submit-btn {
  display: inline-block;
  font-size:15px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #aaa;
  background: none;
  border: none;
  border-bottom: 0.5px solid #aaa;
  padding-bottom: 4px;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin: 0 auto;
  margin-top: 0.5rem;
}

.agende-submit-btn:hover {
  color: #666;
  border-bottom-color: #666;
}

.agende-logo {
  opacity: 0.4;
  display: block;
  margin: 0 auto;
}

/* ============================================================ */
/* NOVA CLÍNICA - Gallery Slider */
/* ============================================================ */
.gallery-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 420px;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-grid {
  display: flex;
  height: 100%;
  flex-shrink: 0;
  gap: 2px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2px;
  flex-shrink: 0;
}

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

.gallery-col:not(:has(+ *)) .gallery-img {
  height: 100%;
}

.gallery-col .gallery-img:only-child {
  height: 100%;
}

.gallery-col:has(:nth-child(2)) .gallery-img {
  height: calc(50% - 1px);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size:22px;
  color: #888;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.gallery-slider:hover .gallery-arrow {
  opacity: 1;
  pointer-events: all;
}

.gallery-arrow:hover {
  background: rgba(255,255,255,1);
  color: #333;
}

.gallery-arrow-left {
  left: 1rem;
}

.gallery-arrow-right {
  right: 1rem;
}

.gallery-arrow.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================ */
/* SPLASH / INTRO SCREEN */
/* ============================================================ */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealCenter {
  0% {
    opacity: 0;
    clip-path: inset(0 50% 0 50%);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.splash-content > * {
  opacity: 0;
}

#splash-screen:not(.hidden) .splash-main {
  animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

#splash-screen:not(.hidden) .splash-name > .splash-name-line {
  animation: revealCenter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

#splash-screen:not(.hidden) .splash-name-row {
  animation: revealCenter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

#splash-screen:not(.hidden) .splash-entre-text {
  animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

#splash-screen:not(.hidden) .splash-links {
  animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

#splash-screen:not(.hidden) .splash-bottom {
  animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  background: #969891;
}

#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#splash-screen.fade-out {
  opacity: 0;
}

.splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(150, 152, 145, 0.72);
  z-index: 2;
}

.splash-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
}

.splash-main {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.splash-logo {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}



.splash-logo-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/logo-entre.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

.splash-entre-text {
  position: relative;
  z-index: 1;
  font-size:20px;
  font-weight: 300;
  color: white;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.15em;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s ease;
}

.splash-logo:hover .splash-entre-text {
  opacity: 0.7;
}

.splash-name {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
}

.splash-name-line {
  font-size:92px;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: white;
  font-family: 'Raleway', sans-serif;
  line-height: 1.05;
}

.splash-name-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.splash-name-sub {
  font-size:26px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: white;
  font-family: 'Raleway', sans-serif;
  line-height: 1.3;
  text-align: left;
  padding-bottom: 0.25rem;
}

.splash-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.splash-link {
  font-size:17px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: white;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  transition: opacity 0.3s ease;
}

.splash-link:hover {
  opacity: 0.7;
}

.splash-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  padding: 0 3rem;
}

.splash-link-icon:hover {
  opacity: 0.6;
}

.splash-bottom {
  font-size:12px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: white;
  opacity: 0.5;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

/* Global sound toggle button */
.sound-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10001;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  color: #666;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.sound-toggle .icon-on {
  display: none;
}

.sound-toggle.sound-on .icon-on {
  display: block;
}

.sound-toggle.sound-on .icon-off {
  display: none;
}

@media (max-width: 767px) {
  .splash-main {
    flex-direction: column;
    gap: 1.5rem;
  }

  .splash-logo {
    width: 160px;
    height: 160px;
  }

  .splash-name {
    align-items: center;
    text-align: center;
  }

  .splash-name-line {
    font-size:42px;
  }

  .splash-name-row {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .splash-name-sub {
    font-size:18px;
    text-align: center;
    padding-bottom: 0;
  }

  .splash-links {
    flex-direction: column;
    gap: 1rem;
  }

  .splash-content {
    gap: 2rem;
  }
}

.proce-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

/* Footer responsive */
@media (max-width: 767px) {
  footer > div > div:first-child {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  footer > div > div:first-child > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer > div > div:first-child > div:last-child {
    align-items: center;
  }
  footer > div > div:first-child > div:last-child nav {
    align-items: center;
  }
}
