/*TOKENS*/
:root {
  --black:    #0A0A0A;
  --charcoal: #1A1A1A;
  --cream:    #F5F0E8;
  --cream-dim:#C8BFB0;
  --red:      #C8421A;
  --red-dark: #9E3314;
  --gold:     #8B6914;
  --gold-lt:  #C9A84C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  --nav-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/*RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hidden { display: none !important; }

/*LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.2s forwards;
  text-transform: uppercase;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 0.25rem 0;
}
.loader-letter { display: inline-block; opacity: 0; transform: translateY(60px); }
.loader-sub {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 1.4s forwards;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(245,240,232,0.15);
  margin: 2rem auto 0;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  animation: barFill 1.8s var(--ease-out-expo) 0.5s forwards;
}
@keyframes barFill { to { width: 100%; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/*NAVBAR*/
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(245,240,232,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--red) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  color: var(--cream) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red) !important; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/*HERO*/
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background-image: url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.45) 60%, rgba(200,66,26,0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo) 0.3s, transform 0.9s var(--ease-out-expo) 0.3s;
}
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold-lt);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease 2s forwards;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cream-dim), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/*BUTTONS*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
}
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,66,26,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,232,0.3);
}
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/*ZOOM PORTAL*/
.zoom-portal {
  position: relative;
  height: 60vh;
  overflow: hidden;
}
.zoom-portal-inner {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
  will-change: transform;
}

/*SECTIONS*/
.section { padding: 7rem 0; }
.section-dark { background: var(--charcoal); }
.section-eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.body-text {
  color: var(--cream-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 540px;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .body-text { margin: 0 auto; }

/*SCROLL REVEAL*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/*SOBRE*/
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sobre-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}
.sobre-image { position: relative; }
.sobre-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}
.sobre-image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--red);
  color: var(--cream);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 2px;
}

/*MENU TABS*/
.menu-tabs {
  display: flex;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.1);
}
.menu-tab {
  padding: 0.75rem 1.75rem;
  background: none;
  border: none;
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  flex-shrink: 0;
}
.menu-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
}
.menu-tab:hover { color: var(--cream); }
.menu-tab.active { color: var(--cream); }
.menu-tab.active::after { transform: scaleX(1); }

/*MENU GRID*/
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.menu-grid > .menu-card {
  flex: 0 0 calc(25% - 1.125rem);
}

/*CARDS*/
.menu-card {
  background: rgba(245,240,232,0.04);
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.35s;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(200,66,26,0.3);
}

/*IMAGEM DO CARD*/
.menu-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}
.menu-card:hover .menu-card-img { transform: scale(1.06); }

.menu-card-body { padding: 1.25rem; }
.menu-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.menu-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}
.price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-lt);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-card-body p {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.6;
}
.menu-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--red);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  font-weight: 600;
}

.drinks-title {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245,240,232,0.08);
}
.drinks-title:first-of-type { margin-top: 0; }

/*HORÁRIOS*/
.horarios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.horario-table {
  margin: 2rem 0;
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.horario-row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(245,240,232,0.06);
  font-size: 0.9rem;
  transition: background 0.2s;
}
.horario-row:last-child { border-bottom: none; }
.horario-row:hover { background: rgba(245,240,232,0.04); }
.horario-row.closed { color: var(--cream-dim); opacity: 0.5; }
.horario-row.highlight { background: rgba(200,66,26,0.08); }
.horario-row.highlight span:last-child { color: var(--gold-lt); }
.morada {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}
.morada svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.morada strong { color: var(--cream); }
.horarios-map iframe {
  border-radius: 3px;
  filter: grayscale(80%) invert(90%) hue-rotate(180deg);
  opacity: 0.85;
  transition: opacity 0.3s;
}
.horarios-map iframe:hover { opacity: 1; }

/* CONTACTO */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contacto-links { 
  display: flex; 
  flex-direction: column; 
  gap: 1.25rem; /* Ligeiro aumento para proporcionalidade */
  margin-top: 2rem; 
}

.contacto-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
  transition: color 0.25s;
}
.contacto-link svg { color: var(--red); }
.contacto-link:hover { color: var(--cream); }

/* Aumentado o gap entre cada grupo de inputs de 1.25rem para 1.75rem */
.contacto-form { 
  display: flex; 
  flex-direction: column; 
  gap: 1.75rem; 
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 0.45rem; 
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245, 240, 232, 0.3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(200, 66, 26, 0.05);
}

.form-group select option { background: var(--charcoal); }

/* Aumentado o gap horizontal da linha dupla (Data e Turno) de 1rem para 1.5rem */
.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1.5rem; 
}

/* Dica extra: Se quiseres dar ainda mais destaque/separação ao botão final */
#btn-reservar {
  margin-top: 0.5rem;
}

.reserva-feedback {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeUp 0.4s ease;
}
.reserva-feedback--sucesso {
  background: rgba(45, 106, 45, 0.15);
  border: 1px solid rgba(45, 106, 45, 0.4);
  color: #7ECB7E;
}
.reserva-feedback--erro {
  background: rgba(200, 66, 26, 0.12);
  border: 1px solid rgba(200, 66, 26, 0.35);
  color: #F08060;
}
#btn-reservar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/*FOOTER*/
footer {
  background: #050505;
  border-top: 1px solid rgba(245,240,232,0.06);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.footer-links { display: flex; gap: 2rem; margin: 0.5rem 0; }
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--red); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  margin-top: 0.5rem;
}

/*NEON ITALY*/
.italy-neon {
  display: flex;
  justify-content: center;
  gap: 200px;
  margin: 1.8rem 0 1.2rem;
}
.neon-rect {
  width: 52px; height: 10px;
  border-radius: 6px;
  opacity: 0.15;
  animation: neonTurnOn 0.9s forwards;
  flex-shrink: 0;
}
.neon-rect.green {
  background: #009246;
  animation-delay: 0.3s;
  box-shadow: 0 0 8px #009246, 0 0 20px #009246, 0 0 40px #009246, 0 0 60px rgba(0,146,70,0.6);
}
.neon-rect.white {
  background: #f8f8f8;
  animation-delay: 0.8s;
  box-shadow: 0 0 8px #fff, 0 0 22px #fff, 0 0 45px #e0e0e0, 0 0 65px rgba(255,255,255,0.5);
}
.neon-rect.red {
  background: #ce2b38;
  animation-delay: 1.3s;
  box-shadow: 0 0 8px #ce2b38, 0 0 20px #ce2b38, 0 0 40px #ce2b38, 0 0 65px rgba(206,43,56,0.7);
}
@keyframes neonTurnOn {
  0%   { opacity: 0.1; filter: brightness(0.6); }
  100% { opacity: 1;   filter: brightness(1.15); }
}

/*MENU PAGE (menu.html overrides)*/
.menu-page html,
.menu-page body {
  overflow-y: visible !important;
  height: auto !important;
  min-height: 100vh;
}
.section { min-height: auto; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .menu-grid > .menu-card { flex: 0 0 calc(33.333% - 1rem); }
}
@media (max-width: 900px) {
  .menu-grid > .menu-card { flex: 0 0 calc(50% - 0.75rem); }
  .sobre-grid,
  .horarios-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-image { order: -1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-title { font-size: 2.8rem; }
  .sobre-stats { flex-direction: column; gap: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .menu-tabs { overflow-x: auto; }
  .section { padding: 4rem 0; }
  .loader-logo { font-size: 2.5rem; }
  .loader-tagline { font-size: 0.75rem; letter-spacing: 0.15em; }
  .italy-neon { gap: 60px; }
  .neon-rect { width: 36px; }
  .lang-selector { margin-left: 0.5rem; }
  .lang-btn { font-size: 1rem; }
}

@media (max-width: 480px) {
  .menu-grid > .menu-card { flex: 0 0 100%; }
}

/*REDUCED MOTION*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/*LANGUAGE SELECTOR*/
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
  padding: 2px;
  border-radius: 2px;
}

.lang-btn:hover  { opacity: 0.75; transform: scale(1.15); }
.lang-btn.active { opacity: 1;    transform: scale(1.15); }

/* Espaço 3D */
.carousel-3d-viewport {
  position: relative;
  width: 100%;
  height: 560px; /* AUMENTADO de 480px para 560px para dar espaço ao reflexo inferior */
  perspective: 1400px; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* O anel que roda */
.carousel-3d-ring {
  width: 220px; 
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Transição amortecida ultra suave */
}

/* Cada Foto */
.carousel-3d-item {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--charcoal);
  
  /* IMPORTANTE: mudado para visible para permitir sombras 3D e reflexos */
  overflow: visible; 
  
  /* Transições para suavizar a entrada/saída de foco */
  transition: transform 0.8s, filter 0.8s, opacity 0.8s;
  transform-style: preserve-3d;
  
  /* Espelhamento inferior elegante (funciona melhor em fundos escuros) */
  -webkit-box-reflect: bottom 10px linear-gradient(transparent, transparent 75%, rgba(255, 255, 255, 0.15));
}

.carousel-3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === SELETORES DE FOCO E PROFUNDIDADE ATIVADOS PELO JS === */

/* 1. Foto em foco na frente */
.carousel-3d-item.active-focus {
  filter: brightness(1.1) contrast(1.05); 
  opacity: 1;
  z-index: 50; 
  box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.2),      /* Sombra nítida de proximidade */
    0 15px 30px rgba(0, 0, 0, 0.35),    /* Sombra intermédia de volume */
    0 30px 60px rgba(0, 0, 0, 0.5);     /* Sombra gigante e suave de altitude */
}

/* Estado 2: Fotos que estão a transitar para as laterais (Meio-termo) */
.carousel-3d-item {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Estado 3: Fotos completamente afastadas lá atrás no ANEL */
.carousel-3d-item.blur-background {
  filter: blur(5px) brightness(0.35); 
  opacity: 0.25; 
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}