:root{
  --primary:#26136d;
  --primary-dark:#1b0e4d;
  --gold:#d4a017;
  --text:#1f2937;
  --muted:#6b7280;
  --bg:#ffffff;
  --soft:#f5f7fb;
  --border:#e5e7eb;
  --shadow:0 12px 30px rgba(38,19,109,.08);
  --shadow-soft:0 10px 24px rgba(38,19,109,.06);
  --shadow-strong:0 24px 60px rgba(38,19,109,.16);
  --radius:18px;
  --container:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease, opacity .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
img{max-width:100%;display:block}

.container{
  width:min(100% - 32px, var(--container));
  margin:0 auto;
}

.topbar{
  background:linear-gradient(90deg,#180c47 0%, var(--primary) 45%, #301a84 100%);
  color:#fff;
  font-size:13px;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:44px;
  flex-wrap:wrap;
  padding:8px 0;
}

.topbar-left,
.topbar-right{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.topbar strong{font-weight:700}

.header-ad{
  background:#fff;
  border-bottom:1px solid var(--border);
}

.header-ad-box{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed #d7dbeb;
  border-radius:14px;
  margin:14px 0;
  color:var(--muted);
  font-size:15px;
  background:linear-gradient(180deg,#fff 0%,#fafbff 100%);
  overflow:hidden;
  padding:12px 16px;
  position:relative;
  box-shadow:var(--shadow-soft);
}

.header-ad-render,
.ad-block-render{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.header-ad-box a,
.ad-block a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  overflow:hidden;
}

/* =========================
   TRAVA DE TAMANHOS DOS ANÚNCIOS
========================= */

/* TOPO / HEADER - padrão 970x120 */
#top-ad-rotator{
  min-height:120px;
  max-height:120px;
}

#top-ad-rotator img{
  width:100%;
  max-width:970px;
  height:120px;
  max-height:120px;
  object-fit:cover;
  object-position:center;
  margin:0 auto;
}

/* MEIO DA HOME - padrão 970x250 */
#middle-ad-rotator{
  min-height:250px;
  max-height:250px;
}

#middle-ad-rotator img{
  width:100%;
  max-width:970px;
  height:250px;
  max-height:250px;
  object-fit:cover;
  object-position:center;
  margin:0 auto;
}

/* BLOCO INFERIOR - padrão 600x300 */
#bottom-ad-rotator{
  min-height:300px;
  max-height:300px;
}

#bottom-ad-rotator img{
  width:100%;
  max-width:600px;
  height:300px;
  max-height:300px;
  object-fit:cover;
  object-position:center;
  margin:0 auto;
}

/* POPUP - padrão 800x600 */
.popup-content{
  min-height:600px;
}

.popup-content img{
  width:100%;
  max-width:800px;
  height:600px;
  max-height:600px;
  object-fit:cover;
  object-position:center;
  margin:0 auto;
}

/* fallback visual quando não houver imagem */
.header-ad-title,
.ad-block-title{
  width:100%;
  text-align:center;
  padding:12px;
}

.header-ad-title{
  color:var(--primary);
  font-weight:700;
  text-align:center;
}

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(223,227,242,.95);
  box-shadow:0 12px 30px rgba(15,10,42,.06);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:88px;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:10px 0;
}

.brand:hover{
  transform:translateY(-1px);
}

.brand-mark{
  width:58px;
  height:58px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary) 0%, #3a228f 100%);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:20px;
  box-shadow:var(--shadow);
  flex:0 0 auto;
}

.brand-text{
  min-width:0;
}

.brand-title{
  margin:0;
  color:var(--primary);
  font-size:28px;
  line-height:1;
  font-weight:800;
  letter-spacing:.5px;
}

.brand-subtitle{
  margin:6px 0 0;
  font-size:13px;
  color:var(--muted);
}

.menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.menu > a,
.dropdown-toggle{
  color:var(--primary);
  font-weight:700;
  font-size:15px;
  position:relative;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border-radius:12px;
}

.menu > a::after,
.dropdown-toggle::before{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold) 0%, #f0c44c 100%);
  opacity:0;
  transform:scaleX(.4);
  transition:opacity .2s ease, transform .2s ease;
}

.menu > a:hover,
.menu > a.active,
.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle{
  color:var(--gold);
  background:rgba(38,19,109,.04);
}

.menu > a:hover::after,
.menu > a.active::after,
.dropdown:hover .dropdown-toggle::before,
.dropdown.active .dropdown-toggle::before{
  opacity:1;
  transform:scaleX(1);
}

.dropdown{
  position:relative;
}

.dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}

.dropdown-toggle::after{
  content:"▼";
  font-size:10px;
  line-height:1;
  position:static;
}

.dropdown-menu{
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  min-width:280px;
  background:#fff;
  border:1px solid #e3e7f3;
  border-radius:18px;
  box-shadow:0 22px 50px rgba(38,19,109,.14);
  padding:10px;
  display:none;
  z-index:100;
}

.dropdown:hover .dropdown-menu{
  display:block;
}

.dropdown-menu a{
  display:block;
  padding:12px 14px;
  color:var(--primary);
  font-weight:700;
  font-size:15px;
  border-radius:12px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active{
  background:#f7f8ff;
  color:var(--gold);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  font-weight:700;
  transition:.2s ease;
  border:1px solid transparent;
  white-space:nowrap;
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary) 0%, #3a228f 100%);
  color:#fff;
  box-shadow:0 12px 30px rgba(38,19,109,.25);
}

.btn-primary:hover{
  background:linear-gradient(135deg,var(--primary-dark) 0%, #2a1873 100%);
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(38,19,109,.28);
}

.btn-outline{
  border-color:rgba(38,19,109,.18);
  color:var(--primary);
  background:#fff;
}

.btn-outline:hover{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(38,19,109,.14);
  border-color:var(--primary);
}

.hero{
  background:
    radial-gradient(circle at top right, rgba(38,19,109,.14), transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f3f5ff 100%);
  padding:64px 0 56px;
  border-bottom:1px solid #eceffc;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:stretch;
}

.hero-card,
.hero-side{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.hero-card,
.hero-side,
.card,
.event-item,
.news-item,
.mini-card,
.point,
.header-ad-box,
.ad-block{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.hero-card{
  padding:42px;
  background:linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
  box-shadow:0 18px 40px rgba(38,19,109,.08);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:#f4f1ff;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
  box-shadow:0 6px 14px rgba(38,19,109,.06);
}

.hero h1{
  margin:0 0 16px;
  font-size:52px;
  line-height:1.06;
  color:var(--primary);
  letter-spacing:-.03em;
}

.hero p{
  margin:0 0 26px;
  font-size:18px;
  color:#4b5563;
  max-width:720px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.point{
  background:linear-gradient(180deg,#f9fbff 0%, #f3f6fc 100%);
  border:1px solid #e7ebf6;
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 20px rgba(38,19,109,.04);
}

.point strong{
  display:block;
  color:var(--primary);
  font-size:15px;
  margin-bottom:6px;
}

.point span{
  color:var(--muted);
  font-size:14px;
}

.hero-side{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
  justify-content:center;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  box-shadow:0 18px 40px rgba(38,19,109,.06);
}

.mini-card{
  border:1px solid #e8eaf3;
  border-radius:18px;
  padding:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  box-shadow:0 10px 24px rgba(38,19,109,.06);
}

.mini-card h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:20px;
}

.mini-card p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:15px;
}

.mini-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#fff8e6;
  color:#8a6512;
  box-shadow:0 4px 12px rgba(212,160,23,.14);
}

.section{
  padding:90px 0;
  position:relative;
  background:linear-gradient(180deg,#f5f7ff 0%,#eef1fb 100%);
}

.section:nth-of-type(even){
  background:linear-gradient(180deg,#ffffff 0%,#fcfcff 100%);
}

.section + .section{
  border-top:1px solid #edf0fb;
}

.section-soft{
  background:linear-gradient(180deg,#f6f8fe 0%,#eef2fb 100%);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:34px;
  flex-wrap:wrap;
}

.section-head h2{
  margin:0;
  font-size:42px;
  color:var(--primary);
  letter-spacing:-.03em;
  font-weight:800;
}

.section-head p{
  margin:10px 0 0;
  color:var(--muted);
  max-width:720px;
  font-size:16px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}

.card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  border:1px solid #e6e9f5;
  border-radius:26px;
  box-shadow:0 18px 50px rgba(38,19,109,.10);
  overflow:hidden;
}

.card:hover,
.event-item:hover,
.news-item:hover,
.mini-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-strong);
  border-color:#d8ddf2;
}

.card-body{
  padding:28px;
}

.card-tag{
  display:inline-block;
  margin-bottom:12px;
  padding:7px 11px;
  border-radius:999px;
  background:#f4f1ff;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  box-shadow:0 4px 12px rgba(38,19,109,.08);
}

.card h3{
  margin:0 0 12px;
  color:var(--primary);
  font-size:26px;
  line-height:1.2;
}

.card p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

.event-list,
.news-list{
  display:grid;
  gap:22px;
}

.event-item,
.news-item{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  border:1px solid #e6e9f5;
  border-radius:22px;
  padding:24px;
  box-shadow:0 18px 50px rgba(38,19,109,.10);
}

.event-date{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  background:#f4f1ff;
  color:var(--primary);
  font-size:12px;
  font-weight:700;
  box-shadow:0 4px 12px rgba(38,19,109,.08);
}

.event-item h3,
.news-item h3{
  margin:0 0 10px;
  color:var(--primary);
  font-size:24px;
  transition:color .2s ease;
}

.card:hover h3,
.event-item:hover h3,
.news-item:hover h3,
.mini-card:hover h3{
  color:#3a228f;
}

.event-item p,
.news-item p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.6;
}

.ad-block{
  min-height:140px;
  border:2px dashed #cfd5ea;
  border-radius:24px;
  background:linear-gradient(180deg,#fff 0%,#fafbff 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--muted);
  padding:24px;
  overflow:hidden;
  position:relative;
  box-shadow:0 18px 50px rgba(38,19,109,.08);
}

.ad-block img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.ad-block-title{
  color:var(--primary);
  font-weight:700;
  text-align:center;
}

.cta{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--primary) 0%, #3a228f 100%);
  color:#fff;
  border-radius:32px;
  padding:44px;
  box-shadow:var(--shadow-strong);
}

.cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 38%);
  pointer-events:none;
}

.cta h2{
  position:relative;
  margin:0 0 12px;
  font-size:40px;
  color:#fff;
  letter-spacing:-.03em;
}

.cta p{
  position:relative;
  margin:0 0 20px;
  color:rgba(255,255,255,.86);
  max-width:760px;
  font-size:17px;
}

.cta .btn-outline{
  position:relative;
  border-color:#fff;
  color:#fff;
  background:transparent;
}

.cta .btn-outline:hover{
  background:#fff;
  color:var(--primary);
}

footer{
  background:#0f0a2a;
  color:#fff;
  margin-top:56px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:28px;
  padding:44px 0 24px;
}

.footer-title{
  margin:0 0 12px;
  font-size:22px;
  color:#fff;
}

.footer-text,
.footer-links a{
  color:rgba(255,255,255,.78);
  font-size:15px;
}

.footer-links{
  display:grid;
  gap:10px;
}

.footer-links a:hover{
  color:#fff;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:18px 0 26px;
  color:rgba(255,255,255,.65);
  font-size:14px;
}

.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}

.popup-box{
  position:relative;
  width:min(100%, 800px);
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}

.popup-title{
  padding:28px 24px;
  text-align:center;
  color:var(--primary);
  font-size:22px;
  font-weight:700;
  line-height:1.4;
}

.popup-close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border:none;
  border-radius:999px;
  background:rgba(0,0,0,0.78);
  color:#ffffff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}

.popup-close:hover{
  background:#000000;
}

@media (max-width: 1100px){
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:42px;
  }

  .section-head h2{
    font-size:34px;
  }

  .nav{
    min-height:auto;
    padding:12px 0;
  }

  .menu{
    gap:8px;
  }

  .menu > a,
  .dropdown-toggle{
    font-size:14px;
    padding:0 8px;
  }
}

@media (max-width: 820px){
  .nav{
    align-items:flex-start;
    padding:16px 0;
    flex-direction:column;
    gap:16px;
  }

  .menu{
    width:100%;
    justify-content:flex-start;
    gap:10px;
  }

  .menu > a,
  .dropdown-toggle,
  .btn{
    min-height:42px;
  }

  .dropdown{
    width:100%;
  }

  .dropdown-menu{
    position:static;
    display:block;
    min-width:100%;
    margin-top:10px;
    box-shadow:none;
    border-radius:16px;
  }

  .hero{
    padding:48px 0 42px;
  }

  .hero-card{
    padding:28px;
  }

  .hero h1{
    font-size:34px;
  }

  .hero p{
    font-size:16px;
  }

  .hero-points{
    grid-template-columns:1fr;
  }

  .section{
    padding:60px 0;
  }

  .section-head h2{
    font-size:28px;
  }

  .grid-3,
  .grid-2{
    gap:20px;
  }

  .card-body,
  .event-item,
  .news-item{
    padding:22px;
  }

  .cta{
    padding:30px;
  }

  .cta h2{
    font-size:30px;
  }

  .popup-box{
    width:min(100%, 520px);
  }

  #top-ad-rotator,
  #top-ad-rotator img{
    min-height:90px;
    max-height:90px;
    height:90px;
  }

  #middle-ad-rotator,
  #middle-ad-rotator img{
    min-height:180px;
    max-height:180px;
    height:180px;
  }

  #bottom-ad-rotator,
  #bottom-ad-rotator img{
    min-height:220px;
    max-height:220px;
    height:220px;
  }

  .popup-content{
    min-height:380px;
  }

  .popup-content img{
    height:380px;
    max-height:380px;
  }

  .header-ad-box{
    min-height:90px;
    padding:10px 12px;
  }
}

@media (max-width: 580px){
  .topbar{
    font-size:12px;
  }

  .topbar-inner{
    gap:8px;
    align-items:flex-start;
  }

  .topbar-left,
  .topbar-right{
    gap:8px 14px;
    width:100%;
  }

  .brand-title{
    font-size:24px;
  }

  .brand-subtitle{
    font-size:12px;
  }

  .menu{
    flex-direction:column;
    align-items:stretch;
  }

  .menu > a,
  .dropdown-toggle,
  .btn{
    width:100%;
    justify-content:flex-start;
  }

  .menu > a::after,
  .dropdown-toggle::before{
    left:14px;
    right:14px;
  }

  #top-ad-rotator,
  #top-ad-rotator img{
    min-height:70px;
    max-height:70px;
    height:70px;
  }

  #middle-ad-rotator,
  #middle-ad-rotator img{
    min-height:140px;
    max-height:140px;
    height:140px;
  }

  #bottom-ad-rotator,
  #bottom-ad-rotator img{
    min-height:180px;
    max-height:180px;
    height:180px;
  }

  .popup-content{
    min-height:260px;
  }

  .popup-content img{
    height:260px;
    max-height:260px;
  }
}

/* =========================
   GALERIA AVANÇADA
========================= */

.gallery-block{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:12px;
  margin:20px 0;
}

.gallery-main{
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  min-height:100%;
  box-shadow:var(--shadow-soft);
}

.gallery-main img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.gallery-side{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:12px;
}

.gallery-side img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  cursor:pointer;
  box-shadow:var(--shadow-soft);
}

.gallery-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}

.gallery-lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}

.gallery-lightbox.active{
  display:flex;
}

@media (max-width: 768px){
  .gallery-block{
    grid-template-columns:1fr;
  }

  .gallery-side{
    grid-template-columns:1fr 1fr;
    grid-template-rows:none;
  }
}



/* AJUSTE DO ANÚNCIO ENTRE OS BLOCOS (IGUAL AO TOPO) */
.ad-block:has(#middle-ad-rotator){
  min-height:auto !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  padding:14px 0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.ad-block:has(#middle-ad-rotator) .ad-block-render{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
}

.ad-block:has(#middle-ad-rotator) a{
  width:100% !important;
  height:auto !important;
  overflow:visible !important;
}

#middle-ad-rotator{
  width:970px !important;
  max-width:100% !important;
  min-height:0 !important;
  max-height:none !important;
  height:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto !important;
}

#middle-ad-rotator img{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  max-height:250px !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  margin:0 auto !important;
}

@media (max-width: 820px){
  .ad-block:has(#middle-ad-rotator){
    padding:10px 0 !important;
  }

  #middle-ad-rotator img{
    max-height:180px !important;
  }
}

@media (max-width: 580px){
  #middle-ad-rotator img{
    max-height:140px !important;
  }
}



/* =========================================================
   TRAVA FINAL DOS SLOTS DE ANÚNCIO
   Menor estica, maior encolhe, sempre respeitando o espaço
========================================================= */

/* regras base para qualquer imagem de anúncio */
#top-ad-rotator img,
#middle-ad-rotator img,
#bottom-ad-rotator img,
#popupContent img,
.popup-content img,
#lateral-1-ad-rotator img,
#lateral-2-ad-rotator img,
[data-ad-slot="lateral_1"] img,
[data-ad-slot="lateral_2"] img,
[data-ad-slot="anuncio_final"] img{
  display:block !important;
  margin:0 auto !important;
}

/* TOPO = 970x120 */
#top-ad-rotator{
  width:970px !important;
  max-width:100% !important;
  height:120px !important;
  min-height:120px !important;
  max-height:120px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#top-ad-rotator a{
  width:970px !important;
  max-width:100% !important;
  height:120px !important;
  display:block !important;
}
#top-ad-rotator img{
  width:970px !important;
  max-width:100% !important;
  height:120px !important;
  max-height:120px !important;
  object-fit:fill !important;
}

/* ENTRE = 970x250 */
#middle-ad-rotator{
  width:970px !important;
  max-width:100% !important;
  height:250px !important;
  min-height:250px !important;
  max-height:250px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#middle-ad-rotator a{
  width:970px !important;
  max-width:100% !important;
  height:250px !important;
  display:block !important;
}
#middle-ad-rotator img{
  width:970px !important;
  max-width:100% !important;
  height:250px !important;
  max-height:250px !important;
  object-fit:fill !important;
}

/* ANUNCIO FINAL = 600x300 */
#bottom-ad-rotator{
  width:600px !important;
  max-width:100% !important;
  height:300px !important;
  min-height:300px !important;
  max-height:300px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#bottom-ad-rotator a{
  width:600px !important;
  max-width:100% !important;
  height:300px !important;
  display:block !important;
}
#bottom-ad-rotator img{
  width:600px !important;
  max-width:100% !important;
  height:300px !important;
  max-height:300px !important;
  object-fit:fill !important;
}

/* LATERAL 1 e LATERAL 2 = 300x600
   já fica pronto para quando você colocar nas páginas internas */
#lateral-1-ad-rotator,
#lateral-2-ad-rotator,
[data-ad-slot="lateral_1"],
[data-ad-slot="lateral_2"]{
  width:300px !important;
  max-width:100% !important;
  height:600px !important;
  min-height:600px !important;
  max-height:600px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#lateral-1-ad-rotator a,
#lateral-2-ad-rotator a,
[data-ad-slot="lateral_1"] a,
[data-ad-slot="lateral_2"] a{
  width:300px !important;
  max-width:100% !important;
  height:600px !important;
  display:block !important;
}
#lateral-1-ad-rotator img,
#lateral-2-ad-rotator img,
[data-ad-slot="lateral_1"] img,
[data-ad-slot="lateral_2"] img{
  width:300px !important;
  max-width:100% !important;
  height:600px !important;
  max-height:600px !important;
  object-fit:fill !important;
}

/* POPUP = 800x600 */
.popup-content,
#popupContent{
  width:800px !important;
  max-width:100% !important;
  height:600px !important;
  min-height:600px !important;
  max-height:600px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.popup-content a,
#popupContent a{
  width:800px !important;
  max-width:100% !important;
  height:600px !important;
  display:block !important;
}
.popup-content img,
#popupContent img{
  width:800px !important;
  max-width:100% !important;
  height:600px !important;
  max-height:600px !important;
  object-fit:fill !important;
}

/* mobile */
@media (max-width: 768px){
  #top-ad-rotator,
  #top-ad-rotator a,
  #top-ad-rotator img{
    width:100% !important;
    height:90px !important;
    min-height:90px !important;
    max-height:90px !important;
  }

  #middle-ad-rotator,
  #middle-ad-rotator a,
  #middle-ad-rotator img{
    width:100% !important;
    height:180px !important;
    min-height:180px !important;
    max-height:180px !important;
  }

  #bottom-ad-rotator,
  #bottom-ad-rotator a,
  #bottom-ad-rotator img{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  #lateral-1-ad-rotator,
  #lateral-1-ad-rotator a,
  #lateral-1-ad-rotator img,
  #lateral-2-ad-rotator,
  #lateral-2-ad-rotator a,
  #lateral-2-ad-rotator img,
  [data-ad-slot="lateral_1"],
  [data-ad-slot="lateral_1"] a,
  [data-ad-slot="lateral_1"] img,
  [data-ad-slot="lateral_2"],
  [data-ad-slot="lateral_2"] a,
  [data-ad-slot="lateral_2"] img{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }

  .popup-content,
  .popup-content a,
  .popup-content img,
  #popupContent,
  #popupContent a,
  #popupContent img{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }
}
