:root{
  --bg:#f7f3f4;
  --surface:#ffffff;
  --surface-soft:#fbf6f7;
  --text:#2b2224;
  --muted:#7b6e72;
  --primary:#8B1E2D;
  --primary-soft:#f1d7dc;
  --line:#eadfe2;
  --shadow:0 10px 24px rgba(0,0,0,0.05);
  --radius-xl:20px;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:10px;
  --danger:#c13b47;
  --warning:#d9901a;
  --success:#2f8d55;
}

*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  font-family:'Poppins', sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
}

.site-header{
  text-align:center;
  padding:10px 12px 8px;
}

.brand-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}

.brand{
  font-family:'Cormorant Garamond', serif;
  font-size:48px;
  line-height:1;
  letter-spacing:1px;
  color:var(--primary);
  font-weight:600;
}

.brand-subtitle{
  font-size:15px;
  color:var(--muted);
}

.brand-copy{
  font-size:15px;
  color:#5f5256;
}

.brand-badge{
  margin-top:5px;
  font-size:11px;
  border:1px solid var(--primary-soft);
  color:var(--primary);
  padding:6px 12px;
  border-radius:999px;
  background:#fff;
}

.page-shell{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:8px 14px 10px;
}

.page-shell--result{
  max-width:1260px;
}

.hero-card,
.panel,
.quiz-card,
.result-card{
  background:var(--surface);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  border:1px solid #f1e6e8;
}

.hero-card{
  max-width:700px;
  margin:0 auto;
  padding:26px 24px;
  text-align:center;
}

.hero-card--welcome{
  margin-top:4px;
}

.hero-icon{
  width:58px;
  height:58px;
  margin:0 auto 10px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:26px;
  background:var(--surface-soft);
}

.hero-title{
  font-size:34px;
  margin:0 0 10px;
  font-weight:600;
}

.hero-text{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.form-group{
  margin-top:18px;
  text-align:left;
}

.form-label{
  display:block;
  font-size:14px;
  margin-bottom:6px;
  color:#5f5256;
  font-weight:500;
}

.input,
.textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
  font-family:inherit;
  font-size:15px;
  outline:none;
  transition:.2s ease;
}

.input:focus,
.textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(139,30,45,0.08);
}

.textarea{
  min-height:96px;
  resize:vertical;
}

.btn{
  border:none;
  border-radius:12px;
  padding:11px 14px;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-secondary{
  background:#fff;
  color:var(--primary);
  border:1px solid var(--primary-soft);
}

.full-width{
  width:100%;
  margin-top:8px;
}

.panel{
  padding:24px 22px;
}

.eyebrow{
  margin:0 0 5px;
  color:var(--primary);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.panel-title{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.1;
  font-weight:600;
}

.panel-title--result{
  font-size:28px;
}

.panel-text{
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  margin:0;
}

.panel-text--result{
  max-width:520px;
}

.services-grid{
  display:grid;
  gap:16px;
  margin-top:18px;
}

.services-grid--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

.service-card{
  border:none;
  background:var(--surface-soft);
  border-radius:16px;
  padding:18px 16px;
  text-align:center;
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:.2s ease;
  min-height:172px;
  font-family:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.service-card:hover{
  transform:translateY(-2px);
}

.service-emoji{
  display:block;
  font-size:28px;
  line-height:1;
  margin-bottom:2px;
}

.service-title{
  display:block;
  font-size:18px;
  font-weight:600;
  color:var(--text);
}

.service-desc{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  max-width:220px;
}

.quiz-shell{
  max-width:820px;
  margin:0 auto;
}

.progress-wrap{
  margin-bottom:12px;
}

.progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
  font-size:13px;
  color:var(--muted);
}

.link-back{
  background:none;
  border:none;
  color:var(--muted);
  font:inherit;
  cursor:pointer;
  padding:0;
}

.progress-track{
  height:7px;
  width:100%;
  background:#eadfe2;
  border-radius:999px;
  overflow:hidden;
}

.progress-bar{
  height:100%;
  width:0%;
  background:var(--primary);
  border-radius:999px;
  transition:width .3s ease;
}

.quiz-card{
  padding:20px 18px;
}

.pill{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#fff;
  background:var(--primary);
  border-radius:999px;
  padding:8px 12px;
  margin-bottom:12px;
}

.question-step{
  display:none;
}

.question-step.is-active{
  display:block;
  animation:fadeUp .3s ease;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.question-title{
  font-size:28px;
  line-height:1.25;
  margin:0 0 10px;
  font-weight:600;
}

.question-label{
  font-size:22px;
  line-height:1.4;
  margin:0 0 8px;
  font-weight:500;
}

.question-subtitle{
  font-size:15px;
  color:var(--muted);
  margin:0 0 14px;
  line-height:1.6;
}

.question-extra{
  margin-top:12px;
}

.answers{
  display:grid;
  gap:10px;
}

.answer-btn{
  width:100%;
  text-align:left;
  padding:14px 16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  font-family:inherit;
  font-size:16px;
  cursor:pointer;
  transition:.2s ease;
}

.answer-btn:hover{
  border-color:var(--primary);
  background:#fffafb;
}

.compact-card{
  margin-top:14px;
}

.section-heading{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.3;
  font-weight:600;
}

.pretty-list{
  margin:0;
  padding-left:20px;
  color:#554a4e;
  font-size:15px;
  line-height:1.65;
}

.pretty-list li + li{
  margin-top:6px;
}

.result-shell{
  max-width:1220px;
  margin:0 auto;
}

.result-back{
  display:inline-block;
  margin-bottom:6px;
}

.result-card{
  padding:16px;
  border-radius:18px;
}

.result-header-grid{
  display:grid;
  grid-template-columns:1.3fr 0.8fr;
  gap:14px;
  align-items:start;
}

.score-panel{
  max-width:250px;
  width:100%;
  justify-self:end;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:var(--surface-soft);
}

.score-badge-line{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  margin-bottom:4px;
}

.score-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  background:var(--warning);
}

.score-level{
  font-size:13px;
  font-weight:600;
  color:var(--text);
}

.score-gauge-wrap{
  max-width:170px;
  margin:0 auto;
  position:relative;
}

.gauge-svg{
  width:100%;
  height:auto;
  display:block;
}

.gauge-bg{
  fill:none;
  stroke:#ddd3d7;
  stroke-width:12;
  stroke-linecap:round;
}

.gauge-progress{
  fill:none;
  stroke:var(--warning);
  stroke-width:12;
  stroke-linecap:round;
  stroke-dasharray:283;
  stroke-dashoffset:283;
  transition:stroke-dashoffset .9s ease, stroke .4s ease;
}

.score-center{
  position:absolute;
  left:50%;
  top:64%;
  transform:translate(-50%, -50%);
  text-align:center;
}

.score-value{
  font-size:24px;
  font-weight:700;
  color:var(--primary);
  line-height:1;
}

.score-percent{
  font-size:12px;
  color:var(--muted);
  line-height:1.2;
}

.score-label{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.result-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-areas:
    "summary errors"
    "summary consequences"
    "summary benefits"
    "gallery gallery";
  gap:10px;
  margin-top:12px;
  align-items:start;
}

.summary-card{ grid-area:summary; }
.errors-card{ grid-area:errors; }
.consequences-card{ grid-area:consequences; }
.benefits-card{ grid-area:benefits; }
.events-gallery-card{ grid-area:gallery; }

.info-card{
  height:fit-content;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}

.answers-recap{
  display:grid;
  gap:7px;
}

.recap-item{
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 9px;
  background:var(--surface-soft);
}

.recap-question{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:3px;
}

.recap-answer{
  display:block;
  font-weight:600;
  font-size:14px;
  color:var(--text);
}

.result-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.result-actions .btn{
  flex:1 1 220px;
  padding:10px 12px;
  font-size:13px;
}

.result-actions--single{
  margin-top:14px;
}

.events-gallery{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.event-figure{
  margin:0;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--surface-soft);
}

.event-figure img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#fff;
}

.event-figure figcaption{
  padding:10px;
  display:grid;
  gap:4px;
}

.event-figure strong{
  font-size:15px;
}

.event-figure span{
  font-size:14px;
  color:var(--muted);
  line-height:1.55;
}

.is-hidden{
  display:none !important;
}

.site-footer{
  text-align:center;
  padding:8px 10px 12px;
  font-size:11px;
  color:var(--muted);
}

.site-footer p{
  margin:2px 0;
}

@media (max-width: 980px){
  .result-header-grid{
    grid-template-columns:1fr;
  }

  .score-panel{
    justify-self:start;
  }

  .result-layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "summary"
      "errors"
      "consequences"
      "benefits"
      "gallery";
  }
}

@media (max-width: 820px){
  .services-grid--two{
    grid-template-columns:1fr;
    max-width:420px;
  }

  .events-gallery{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .brand{
    font-size:38px;
  }

  .hero-title{
    font-size:28px;
  }

  .question-title{
    font-size:24px;
  }

  .question-label{
    font-size:20px;
  }

  .panel,
  .hero-card,
  .quiz-card,
  .result-card{
    padding:14px;
  }

  .page-shell{
    padding:6px 8px 8px;
  }

  .service-card{
    min-height:auto;
  }

  .score-panel{
    max-width:220px;
  }

  .event-figure img{
    max-height:none;
  }
}

.question-title{
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2b2224;
}

.question-subtitle{
  font-size: 14px;
  color: #7b6e72;
  margin-bottom: 22px;
  line-height: 1.5;
}

.result-sections{
  align-items: start; 
}

.info-card{
  height: fit-content; 
}

.result-sections{
  grid-auto-rows: min-content;
}

.result-sections{
  align-items: start; 
}

.info-card{
  height: fit-content; 
}

.result-sections{
  grid-auto-rows: min-content;
}

.result-sections{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.info-card{
  break-inside: avoid;
}

.errors-card,
.consequences-card,
.benefits-card{
  height: fit-content;
}

.evento-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
  align-items:start;
}

.eventos-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.img-card{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--surface-soft);
}

.img-card img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#fff;
}

.img-card p{
  margin:0;
  padding:10px;
  font-size:14px;
  line-height:1.55;
  color:var(--text);
}

@media (max-width: 980px){
  .evento-layout{
    grid-template-columns:1fr;
  }
}

.risco-descricao{
  font-size:14px;
  margin:6px 0 10px;
  line-height:1.4;
  padding:8px;
  border-radius:8px;
  background:#F5F5F5;
  border-left:4px solid #A01733;
}

/* ===== AJUSTE FINAL PARA IMAGENS DE EVENTOS ===== */

.events-gallery-card,
.eventos-grid,
.img-card,
.event-figure{
  width:100%;
}

.img-card,
.event-figure{
  overflow:visible;
}

.img-card img,
.event-figure img{
  width:100%;
  height:auto;
  max-width:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#fff;
}

@media (min-width: 981px){
  .evento-layout{
    grid-template-columns:1fr 1fr;
    align-items:start;
  }

  .eventos-grid{
    gap:12px;
  }
}

@media (max-width: 980px){
  .img-card img,
  .event-figure img{
    width:100%;
    height:auto;
  }
}

@media (max-width: 640px){
  .img-card img,
  .event-figure img{
    width:100%;
    height:auto;
  }
}

/* ===== CARROSSEL DE EVENTOS ===== */

.events-gallery-card--carousel{
  padding:16px;
}

.event-carousel{
  display:grid;
  grid-template-columns:56px 1fr 56px;
  gap:12px;
  align-items:center;
  margin-top:10px;
}

.carousel-track-wrap{
  width:100%;
  overflow:hidden;
}

.carousel-track{
  position:relative;
  width:100%;
}

.carousel-slide{
  display:none;
  animation:fadeCarousel .35s ease;
}

.carousel-slide.active{
  display:block;
}

@keyframes fadeCarousel{
  from{
    opacity:0;
    transform:translateY(4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.carousel-image-box{
  width:100%;
  min-height:280px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  overflow:hidden;
}

.carousel-image-box img{
  width:100%;
  height:auto;
  max-height:520px;
  object-fit:contain;
  object-position:center;
  display:block;
}

.carousel-caption{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-soft);
}

.carousel-caption h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.3;
}

.carousel-caption p{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:var(--text);
}

.carousel-btn{
  width:56px;
  height:56px;
  border:none;
  border-radius:50%;
  background:var(--surface);
  color:var(--primary);
  font-size:34px;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.carousel-btn:hover{
  transform:translateY(-1px);
  background:#fffafb;
}

.carousel-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:14px;
}

.carousel-dot{
  width:12px;
  height:12px;
  border:none;
  border-radius:50%;
  background:#d7c7cb;
  cursor:pointer;
  transition:.2s ease;
}

.carousel-dot.active{
  background:var(--primary);
  transform:scale(1.1);
}

@media (min-width: 1200px){
  .carousel-image-box{
    min-height:360px;
  }

  .carousel-image-box img{
    max-height:600px;
  }
}

@media (max-width: 980px){
  .event-carousel{
    grid-template-columns:48px 1fr 48px;
    gap:8px;
  }

  .carousel-btn{
    width:48px;
    height:48px;
    font-size:30px;
  }

  .carousel-image-box{
    min-height:240px;
  }
}

@media (max-width: 640px){
  .event-carousel{
    grid-template-columns:1fr;
  }

  .carousel-btn{
    width:44px;
    height:44px;
    font-size:28px;
    margin:0 auto;
  }

  .carousel-btn-prev{
    order:2;
  }

  .carousel-track-wrap{
    order:1;
  }

  .carousel-btn-next{
    order:3;
  }

  .carousel-image-box{
    min-height:180px;
    padding:8px;
  }

  .carousel-image-box img{
    max-height:none;
  }

  .carousel-caption h3{
    font-size:16px;
  }

  .carousel-caption p{
    font-size:14px;
  }
}

.entender-hero{
  text-align:center;
  max-width:920px;
  margin:0 auto 18px;
  padding:28px 24px;
}

.entender-title{
  margin-bottom:10px;
}

.entender-text{
  max-width:760px;
  margin:0 auto;
}

.entender-cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin:18px 0;
}

.entender-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px 18px;
  box-shadow:var(--shadow);
  transition:.2s ease;
}

.entender-card:hover{
  transform:translateY(-2px);
}

.entender-card h2{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.2;
}

.entender-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

.entender-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:var(--surface-soft);
  margin-bottom:12px;
}

.entender-ajuda,
.entender-cta{
  margin-top:16px;
}

.entender-cta{
  text-align:center;
  padding:26px 22px;
}

.entender-cta-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--primary);
  font-size:12px;
  font-weight:600;
  margin-bottom:10px;
  border:1px solid var(--primary-soft);
}

@media (max-width: 900px){
  .entender-cards{
    grid-template-columns:1fr;
  }
}