/* ------------------- Conteúdo Principal ------------------- */
main {
  flex: 1;
  padding: 120px 5% 40px;
  color: #333;
  position: relative;
  z-index: 1;
}

/* Títulos */
#Titulo {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
  color: #38186c;
}

#Titulo.show {
  opacity: 1;
  transform: translateY(0);
}

#Titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --------- Card de Contato --------- */
.contato-card {
  background: linear-gradient(135deg, #4a2a7a, #38186c);
  border-radius: 20px;
  padding: 50px 40px;
  margin: 0 auto 60px auto;
  max-width: 1200px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.contato-card.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 2em;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #ffd700, #981f1b);
  margin: 20px auto;
  border-radius: 2px;
}

.contact-subtitle {
  color: #e0e0e0;
  font-size: 1.1em;
  margin-top: 10px;
  opacity: 0.9;
}

/* Grid de Contatos */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(152, 31, 27, 0.3);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38186c, #981f1b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-icon i {
  color: #fff;
  font-size: 1.8em;
}

.contact-details {
  flex: 1;
  min-width: 0; /* Importante para textos longos */
}

.contact-details h3 {
  font-size: 1.3em;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-details p {
  color: #fff;
  margin-bottom: 5px;
  font-size: 1.1em;
  font-weight: 500;
}

/* Estilos específicos para emails longos */
.email-wrapper {
  display: block;
  width: 100%;
  margin-bottom: 5px;
}

.contact-email {
  color: #fff;
  font-size: 1.05em;
  font-weight: 500;
  word-break: break-all; /* Quebra o email em várias linhas */
  overflow-wrap: break-word;
  hyphens: auto; /* Adiciona hífen quando necessário */
  display: inline-block;
  width: 100%;
  line-height: 1.4;
}

.institucional-email {
  font-size: 1em; /* Um pouco menor para caber melhor */
  word-break: break-word;
  line-height: 1.5;
}

.contact-info {
  color: #e0e0e0;
  font-size: 0.9em;
  margin-top: 8px;
  opacity: 0.8;
  line-height: 1.4;
}

/* Seção de Redes Sociais */
.social-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  margin-top: 40px;
}

.social-section h3 {
  text-align: center;
  color: #fff;
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: 600;
}

.social-subtitle {
  text-align: center;
  color: #e0e0e0;
  margin-bottom: 30px;
  font-size: 1em;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.social-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.social-card.facebook:hover {
  border-color: #1877f2;
}

.social-card.instagram:hover {
  border-color: #e4405f;
}

.social-card.whatsapp:hover {
  border-color: #25d366;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.5em;
  color: white;
}

.facebook .social-icon {
  background: linear-gradient(135deg, #1877f2, #0d5fcc);
}

.instagram .social-icon {
  background: linear-gradient(135deg, #e4405f, #c13584);
}

.whatsapp .social-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-info h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 5px;
  font-weight: 600;
}

.social-info p {
  color: #e0e0e0;
  font-size: 0.9em;
  margin: 0;
}

/* --------- Google Maps --------- */
.map-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin: 0 auto 60px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.map-container.show {
  opacity: 1;
  transform: translateY(0);
}

.map-header {
  text-align: center;
  margin-bottom: 30px;
}

.map-header h2 {
  font-size: 2em;
  color: #38186c;
  margin-bottom: 10px;
  font-weight: 700;
}

.map-subtitle {
  color: #666;
  font-size: 1.1em;
}

.map-wrapper {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* --------- Formulário de Contato --------- */
.form-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin: 0 auto 60px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.form-container.show {
  opacity: 1;
  transform: translateY(0);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2em;
  color: #38186c;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-subtitle {
  color: #666;
  font-size: 1.1em;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #38186c;
  font-weight: 600;
  font-size: 1em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #38186c;
  box-shadow: 0 0 0 3px rgba(56, 24, 108, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  background: linear-gradient(90deg, #38186c, #981f1b);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: linear-gradient(90deg, #981f1b, #38186c);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(152, 31, 27, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-submit:disabled:hover {
  background: linear-gradient(90deg, #38186c, #981f1b);
  transform: none !important;
  box-shadow: none !important;
}

.form-disclaimer {
  color: #666;
  font-size: 0.9em;
  margin-top: 15px;
  text-align: center;
}

/* Mensagem de sucesso do formulário */
.form-success {
  color: #28a745;
  font-size: 0.95em;
  margin-top: 10px;
  text-align: center;
  padding: 10px 15px;
  background: #d4edda;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  animation: fadeIn 0.5s ease;
  display: none;
}

.form-success i {
  margin-right: 8px;
  font-size: 1.1em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animação do spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feedback de validação */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #dc3545 !important;
}

.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group textarea:focus:invalid {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: #28a745 !important;
}

.form-group input:focus:valid,
.form-group select:focus:valid,
.form-group textarea:focus:valid {
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Mensagem de informação do formulário */
.form-info {
  color: #666;
  font-size: 0.85em;
  margin-top: 10px;
  text-align: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #38186c;
}

.form-info i {
  color: #38186c;
  margin-right: 5px;
}

/* ------------------- Responsivo ------------------- */
@media(max-width: 1200px) {
  .contato-card,
  .map-container,
  .form-container {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media(max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .map-wrapper iframe {
    height: 350px;
  }
}

@media(max-width: 768px) {
  main {
    padding: 100px 20px 30px;
  }
  
  #Titulo {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 1.1em;
    margin-bottom: 40px;
  }
  
  .contato-card {
    padding: 30px 25px;
  }
  
  .contact-header h2 {
    font-size: 1.6em;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
  
  .contact-icon i {
    font-size: 1.5em;
  }
  
  .contact-details h3 {
    font-size: 1.2em;
  }
  
  .contact-email {
    font-size: 1em;
    line-height: 1.5;
  }
  
  .institucional-email {
    font-size: 0.95em;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container,
  .form-container {
    padding: 30px 25px;
  }
  
  .map-header h2,
  .form-header h2 {
    font-size: 1.8em;
  }
  
  .map-wrapper iframe {
    height: 300px;
  }
  
  .btn-submit {
    padding: 12px 30px;
    font-size: 1em;
    width: 100%;
  }
  
  .form-success {
    font-size: 0.9em;
    padding: 8px 12px;
  }
}

@media(max-width: 480px) {
  #Titulo {
    font-size: 1.8em;
  }
  
  .section-subtitle {
    font-size: 1em;
  }
  
  .contato-card,
  .map-container,
  .form-container {
    padding: 25px 20px;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .contact-header h2 {
    font-size: 1.4em;
  }
  
  .contact-details h3 {
    font-size: 1.1em;
  }
  
  .contact-email {
    font-size: 0.95em;
  }
  
  .institucional-email {
    font-size: 0.9em;
  }
  
  .map-wrapper iframe {
    height: 250px;
  }
  
  .btn-submit {
    padding: 12px 20px;
    font-size: 0.95em;
  }
  
  .form-disclaimer {
    font-size: 0.8em;
  }
  
  .form-success {
    font-size: 0.85em;
    padding: 6px 10px;
  }
}