* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --event-red: #c21718;
    --event-blue: #3f5da6;
    --event-red-light: #e85859;
    --event-blue-light: #5f7dc6;
}

@font-face {
  font-family: 'Carnas';
  src: url('fonts/Carnas-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Carnas', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Accordion */
.accordion {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: var(--event-red);
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: var(--event-red-light);
}

.accordion-content {
  display: none;
  background: #fff;
  padding: 1.5rem;
}

.accordion-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--event-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--event-red);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .logo-img {
        height: 50px;
    }
}

/* Main Content */
main {
    margin-top: 70px;
}

section {
    min-height: 50vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
	margin: 0 auto;
}

.container.full-width {
  max-width: 100%;
  padding: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--event-red);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Hero Section */
#evento {
    background-color: wheat;
	background-image: url("img/fundo-1920x1080.png");
	background-size: cover;
  	background-repeat: no-repeat;
	background-position: center;
	width: 100%;
 	height: 80vh; /* altura do hero */
    color: white;
}

#evento h1,
#evento .subtitle {
    color: var(--event-red);
}

.hero-logo {
    width: auto;
    height: 250px;
    max-width: 400px;
    object-fit: contain;
    margin-bottom: 2rem;
}



.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--event-red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
	font-size: 1.3rem;

}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Estilo para details/summary para parecer acordeão */
/* melhor aparência no mobile */
details.day {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 6rem; /* ajusta rolagem ao abrir */
}

.day-summary {
  padding: 1rem 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--event-red);
  color: #fff;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.day[open] .day-summary {
  background: var(--event-red-light);
}

.day-content {
  padding: 1rem 1.2rem 1.5rem;
  animation: fadeIn 0.3s ease;
}

/* toque mais confortável em telas pequenas */
@media (max-width: 600px) {
  .day-summary {
    font-size: 1rem;
    padding: 1rem;
  }
}


/* evita marker no summary em alguns navegadores */
summary::-webkit-details-marker { display: none; }
summary::marker { font-size: 0; }

/* Grid Sections */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--event-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card .time {
    color: var(--event-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Palestrantes */
.speaker {
    text-align: center;
}

.speaker-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--event-red), var(--event-blue));
    margin: 0 auto 1rem;
}

/* Local */
#local {
    background-color: #f8f9fa;
}

.map-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Mantém proporção 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px; /* Opcional, deixa os cantos arredondados */
}

.map-placeholder	 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*Mapa*/
.image-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 90vw;
}

.clickable-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 95%;
  max-height: 90%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  touch-action: none; /* Necessário para o pinch-zoom */
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

/* Responsivo */
@media (max-width: 600px) {
  .modal-content {
    max-width: 100%;
    max-height: 95%;
  }

  .close {
    font-size: 28px;
    right: 15px;
  }
}

/* Form */
form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: #333;
}

input,
textarea,
select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--event-red);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--event-red), var(--event-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--event-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 9999;
	pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero-logo {
        height: 180px;
        max-width: 80%;
    }
}