/**
 * CAMINHO - Exposição Fotográfica
 * Estilos da Landing Page
 */

/* ============================================
   HERO
   ============================================ */

.caminho-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #111 url('/images/caminho/caminho_hero.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.caminho-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.caminho-hero-content {
  position: relative;
  z-index: 2;
  padding: 2em;
}

.caminho-hero-content h1 {
  font-size: 5em;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 0.2em;
  text-transform: uppercase;
}

.caminho-subtitle {
  font-size: 1.3em;
  letter-spacing: 0.15em;
  margin-bottom: 0.3em;
  opacity: 0.9;
}

.caminho-meta {
  margin-top: 2em;
  opacity: 0.7;
}

.caminho-meta p {
  font-size: 0.9em;
  margin-bottom: 0.2em;
  letter-spacing: 0.05em;
}

.caminho-meta i {
  margin-right: 0.4em;
  width: 1em;
  text-align: center;
}

/* Horário - versão desktop (visível) */
.caminho-schedule-full {
  font-size: 0.85em;
  line-height: 1.2;
  opacity: 0.85;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

/* Horário - versão mobile (escondida em desktop) */
.caminho-schedule-mobile {
  display: none !important;
}

.caminho-hero .button.style2.down {
  margin-top: 2em;
}

.caminho-hero .button.style2.down::before {
  color: #fff !important;
}

.caminho-hero .button.style2.down::after {
  border-color: #fff !important;
  color: #fff !important;
}

.caminho-hero .button.style2.down {
  background-image: url("images/dark-arrow.svg") !important;
  border-color: #fff !important;
}

/* ============================================
   SECÇÕES GENÉRICAS
   ============================================ */

.caminho-section {
  padding: 5em 2em;
}

.caminho-container {
  max-width: 1100px;
  margin: 0 auto;
}

.caminho-section h2 {
  font-size: 2em;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.8em;
  color: #333;
}

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

.caminho-text p {
  font-size: 1.05em;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.2em;
  text-align: justify;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.caminho-text p.caminho-acknowledgements {
  font-size: 0.80em;
}

/* ============================================
   EXPOSIÇÃO MONTADA
   ============================================ */

.caminho-room-section {
  background: #fff;
  padding-top: 0;
  padding-bottom: 7em;
}

.caminho-room-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.caminho-room-item {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 2;
}

.caminho-room-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   GALERIA
   ============================================ */

.caminho-gallery-section {
  background: #f5f5f5;
}

.caminho-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.caminho-gallery-item {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 2;
}

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

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

.caminho-gallery-note {
  text-align: center;
  color: #999;
  font-size: 0.85em;
  margin-top: 1.5em;
}

/* ============================================
   LIVRO DE VISITAS
   ============================================ */

.caminho-guestbook-section {
  background: #fff;
}

.caminho-guestbook-intro {
  text-align: center;
  color: #666;
  margin-bottom: 0.15em;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.caminho-guestbook-sub {
  text-align: center;
  color: #999;
  font-size: 0.85em;
  margin-bottom: 3.5em;
}

/* Alertas */
.caminho-alert {
  padding: 1.2em;
  border-radius: 4px;
  margin-bottom: 2em;
  font-size: 0.95em;
}

.caminho-alert-success {
  background: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
}

.caminho-alert-error {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.caminho-alert ul {
  margin: 0.5em 0 0 1.5em;
}

/* Formulário */
.caminho-guestbook-form-wrap {
  max-width: 700px;
  margin: 0 auto 3em auto;
}

.caminho-form-row {
  display: flex;
  gap: 1em;
}

.caminho-form-half {
  flex: 1;
}

.caminho-form-field {
  margin-bottom: 1.2em;
}

.caminho-form-field label {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4em;
  color: #333;
}

.caminho-form-field .required {
  color: #dc3545;
}

.caminho-form-field .optional {
  font-weight: 400;
  text-transform: none;
  color: #999;
  font-size: 0.95em;
  letter-spacing: 0;
}

.caminho-form-field input,
.caminho-form-field textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  background: #fafafa;
  transition: border-color 0.2s;
}

.caminho-form-field input:focus,
.caminho-form-field textarea:focus {
  outline: none;
  border-color: #333;
  background: #fff;
}

.caminho-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.caminho-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 1.5em;
  height: 2.6em;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.caminho-btn:hover {
  background: #555;
}

/* Mensagens aprovadas - carrossel slide */
.caminho-messages-carousel {
  position: relative;
  min-height: 160px;
  margin-bottom: 5.5em;
  overflow: hidden;
}

.caminho-messages-carousel .caminho-quote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
  visibility: hidden;
}

.caminho-messages-carousel .caminho-quote.active {
  position: relative;
  transform: translateX(0);
  visibility: visible;
}

.caminho-messages-carousel .caminho-quote.exit {
  transform: translateX(-100%);
  visibility: visible;
}

.caminho-messages-carousel .caminho-quote.reset {
  transition: none !important;
  transform: translateX(100%);
  visibility: hidden;
}

.caminho-quote {
  background: #fff;
  padding: 1.8em 2em;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.caminho-quote p {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
  margin: 0;
}

.caminho-quote cite {
  display: block;
  text-align: right;
  margin-top: 0.8em;
  font-family: 'Source Sans Pro', sans-serif;
  font-style: normal;
  font-size: 0.85em;
  color: #999;
  letter-spacing: 0.05em;
}

.caminho-quote cite::before {
  content: '— ';
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 980px) {
  .caminho-hero-content h1 {
    font-size: 3.5em;
  }
}

@media screen and (max-width: 736px) {
  .caminho-section {
    padding: 3em 1.5em;
  }

  .caminho-hero-content h1 {
    font-size: 2.8em;
    letter-spacing: 0.15em;
  }

  .caminho-subtitle {
    font-size: 1.1em;
  }

  .caminho-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .caminho-room-gallery {
    grid-template-columns: 1fr;
  }

  .caminho-form-row {
    flex-direction: column;
    gap: 0;
  }

  .caminho-text p {
    text-align: left;
  }

  .caminho-schedule-full {
    display: none;
  }

  .caminho-schedule-mobile {
    display: block !important;
    font-size: 0.9em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    opacity: 0.85;
  }

  .caminho-schedule-mobile summary {
    cursor: pointer;
    list-style: none;
    letter-spacing: 0.05em;
  }

  .caminho-schedule-mobile summary::-webkit-details-marker {
    display: none;
  }

  .caminho-schedule-mobile summary::after {
    content: ' ▾';
    font-size: 0.8em;
  }

  .caminho-schedule-mobile[open] summary::after {
    content: ' ▴';
  }

  .caminho-schedule-mobile span {
    display: block;
    font-size: 0.9em;
    line-height: 1.3;
    margin-top: 0.3em;
    opacity: 0.9;
  }
}

@media screen and (max-width: 480px) {
  .caminho-hero-content h1 {
    font-size: 2.2em;
  }

  .caminho-gallery {
    grid-template-columns: 1fr;
  }

  .caminho-message-meta {
    flex-direction: column;
    gap: 0.2em;
  }
}
