/* Adaptação móvel: mantém o tema original em telas a partir de 1000px. */
@media (max-width: 999px) {
  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 0; }
  *, *::before, *::after { box-sizing: border-box; }
  #centercolumn, #top, #topmenu, #header, #content, #footer, #content_bottom { width: 100%; max-width: 980px; }
  #main_container, #main_container_inner { background: #f9f9f9; }
  #top { height: auto; display: flex; flex-wrap: wrap; align-items: center; background: linear-gradient(#fff, #e4e4e4); }
  #logo { float: none; width: calc(100% - 280px); padding: 12px; }
  #logo img { max-width: 100%; height: auto; display: block; }
  #contact { float: none; margin: 12px auto; flex-shrink: 0; }
  #contact li { font-size: 15px; }
  #topmenu { float: none; height: auto; background: #292929; padding: 10px 16px 14px; }
  #nav { padding: 0; }
  #nav > ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  #nav li { float: none; margin: 0; }
  #nav li a, #nav li a:visited { padding: 12px 0; font-size: 16px; background: none; }
  #nav > br { display: none; }
  #nav > div { clear: both; font-size: 15px; line-height: 1.5; margin-top: 6px; }
  #header { height: auto; background: linear-gradient(120deg,#d3d3d3,#eee); }
  #header_content { padding: 20px 16px; display: flex; align-items: center; gap: 20px; }
  #slides_container { float: none; width: 42%; height: auto; background: none; flex-shrink: 0; }
  #slideshow { width: 100% !important; height: auto !important; aspect-ratio: 364 / 272; margin: 0; border: 5px solid white; box-shadow: 0 2px 10px #999; }
  #slideshow img { width: 100% !important; height: auto !important; }
  #introtext { float: none; width: auto; flex: 1; min-width: 0; }
  #introtext h1 { font-size: 24px; line-height: 1.15; }
  #introtext p { font-size: 16px; line-height: 1.55; }
  #maincontent { display: flex; flex-wrap: wrap; padding: 24px 16px; gap: 24px; }
  #main, #side { float: none; width: 100%; min-width: 0; }
  #maintext { padding: 0; }
  #maintext, .entry-content { overflow-wrap: anywhere; }
  .entry-content::after { content: ''; display: block; clear: both; }
  .entry-content > div[style] { max-width: 100%; }
  #content img, #content .attachment img { max-width: 100%; height: auto; }
  #side .sidebox, #side .side_bg, #side .widget-area, #side .c_middlesidebox, #side .c_topsidebox, #side .c_bottomsidebox, #side .contentbox { float: none; width: 100%; background-image: none; }
  #side .contentbox { padding: 16px; background: #eee; border-radius: 6px; }
  #content, #content input, #content textarea { font-size: 16px; }
  input, textarea, select { max-width: 100%; }
  input[type=text], input[type=email], textarea { padding: 10px; border: 1px solid #aaa; background: white; }
  input[type=submit], button { min-height: 44px; cursor: pointer; }
  iframe, video, embed, object { max-width: 100%; }
  iframe { width: 100%; }
  table { max-width: 100%; }
  #content_bottom { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px 16px; }
  .box_bottom { float: none; flex: 1 1 250px; width: auto; padding: 0; }
  .separator_box { display: none; }
  #footer { padding-bottom: 16px; overflow-wrap: anywhere; }
  #footer > div:not(#content_bottom) { padding: 0 16px; }
}
@media (max-width: 600px) {
  #logo { width: 100%; padding: 12px 16px 0; }
  #logo img { width: 100%; max-width: 600px; }
  #contact { margin: 12px auto 16px; }
  #nav > ul { justify-content: center; gap: 0 18px; }
  #nav > div { text-align: center; }
  #header_content { flex-direction: column; gap: 24px; }
  #slides_container { width: 100%; max-width: 374px; }
  #introtext { width: 100%; }
  #introtext h1 { font-size: 23px; line-height: 1.2; }
  #introtext p { text-align: left; }
  #maincontent { padding-top: 24px; }
  .entry-content > div[style], .one_half, .one_third, .one_fourth, .two-col1, .two-col2, .three-col1, .three-col2, .three-col3, .col1, .col2 { float: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; height: auto !important; }
  .entry-content img.alignnone { display: block; margin: 12px auto; }
  #content img.alignleft, #content img.alignright { float: none; display: block; margin: 12px auto; }
  #content h1 { font-size: 26px; }
  #content h2 { font-size: 23px; }
  #content table { display: block; overflow-x: auto; }
  .formcontainer form.contact-form fieldset div.form-submit input { margin-left: 0; }
}
