/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:#ffffff;
color:#363435;
line-height:1.6;
}

/* ESPAÇAMENTO PADRÃO */
.servicos,
.pneus,
.noticias,
#contato{
  padding:110px 8%;
}

h1,h2,h3{
font-weight:600;
}

h2{
text-align:center;
margin-bottom:60px;
color:#0167b1;
font-size:32px;
}

.seo-h1{
position:absolute;
left:-9999px;
}


/* ================= HEADER ================= */

header{
position:fixed;
width:100%;
top:0;
left:0;
background:#fff;
box-shadow: 0 10px 40px rgba(0,0,0,0.9);
z-index:1000;
}

.container{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 8%; /* antes 16px */
transition:0.3s ease;
}

.logo{
  font-size:22px;
  font-weight:700;
  letter-spacing:1px;
  color:#0167b1;
}

.logo{
  display:flex;
  align-items:center;
  height:100%;
}

.logo img{
height:60px; /* antes 65px */
width:auto;
transition:0.3s ease;
}

/* quando rolar a página */
header.scrolled .logo img{
  height:48px;
}

nav ul{
display:flex;
gap:35px;
list-style:none;
align-items:center; /* <-- adiciona isso */
}

nav a{
  text-decoration:none;
  color:#363435;
  font-weight:600; /* antes 500 já estava, mantém elegante */
  font-size:15px;
  letter-spacing:0.5px;
  transition:0.3s;
}


nav ul{
display:flex;
gap:28px; /* antes 35px */
list-style:none;
align-items:center;
}

nav a:hover{
color:#0167b1;
}

.hamburger{
display:none;
font-size:26px;
cursor:pointer;
color:#0167b1;
}


header.scrolled{
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(6px);
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
}


.btn-contato{
background:#0167b1;
color:#fff !important;
padding:10px 26px;
border-radius:40px;
font-weight:600;
transition:all 0.3s ease;
display:inline-flex;   /* melhor alinhamento */
align-items:center;    /* centraliza texto */
}

.btn-contato:hover{
background:#014f86;
transform:translateY(-2px);
box-shadow:0 6px 18px rgba(1,103,177,0.35);
}
/* ================= HERO / SLIDER ================= */

/* HERO FULL */

.hero{
  height:calc(100vh - 90px);
  margin-top:90px;
  position:relative;
  overflow:hidden;
}

/* SLIDER */
.slider{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity .8s ease-in-out;
}

.slide.active{
  opacity:1;
}

/* SETAS */
/* SETAS CLEAN */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: none;
  font-size: 42px;
  cursor: pointer;
  z-index: 5;
  transition: 0.3s ease;
  opacity: 0.7;
}

.prev:hover, .next:hover {
  opacity: 1;
  color: #fff112;
}

.prev { left: 25px; }
.next { right: 25px; }

/* BOLINHAS */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}

.dot.active {
  background: #fff112;
}

/* RESPONSIVO */
@media(max-width:768px){
  .hero{
  height: 10vh;
  min-height: 300px;
}

  .prev, .next{
    font-size:22px;
    padding:8px 12px;
  }
}


/* ================= RICCI PNEUS ================= */

/* ===== ANIMAÇÃO LATERAL RICCI ===== */

/* Estado inicial */
.ricci-texto,
.ricci-imagens{
  opacity:0;
  transition:all 0.9s cubic-bezier(.2,.8,.2,1);
}

/* Texto entra da esquerda */
.ricci-texto{
  transform:translateX(-80px);
  filter:blur(6px);
}

/* Imagens entram da direita */
.ricci-imagens{
  transform:translateX(80px);
  filter:blur(6px);
}

/* Quando ativado */
.ricci-texto.show,
.ricci-imagens.show{
  opacity:1;
  transform:translateX(0);
  filter:blur(0);
}

.ricci{
  background:#ffffff;
  padding:120px 8%;
}

.ricci-container{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
}

.ricci-texto h2{
  text-align:left;
  font-size:34px;
  margin-bottom:30px;
}

.ricci-texto p{
  margin-bottom:18px;
  font-size:15.5px;
  color:#555;
}

.ricci-texto strong{
  color:#0167b1;
}

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

.ricci-imagens img{
  width:100%;
  aspect-ratio: 4 / 3; /* controla proporção */
  object-fit:cover;
  border-radius:16px;
  transition:0.4s ease;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.ricci-imagens img:hover{
  transform:scale(1.05);
}


/* RESPONSIVO */

@media(max-width:768px){

  .ricci{
    padding:80px 6%;
  }

  .ricci-container{
    grid-template-columns:1fr; /* texto em cima, imagens embaixo */
    gap:40px;
  }

  .ricci-texto h2{
    text-align:center;
  }

  .ricci-imagens{
    grid-template-columns:repeat(2,1fr); /* mantém 2 por linha */
    gap:14px;
  }

  .ricci-imagens img{
    aspect-ratio: 4 / 3; /* mantém proporção correta */
  }

}
/* ================= RICCI quem somos ================= */

.ricci{
  padding:100px 6%;
  background:linear-gradient(to bottom, #ffffff, #f5f5f5);
}

.ricci-container{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  align-items:center;
}

/* ================= TEXTO ================= */

.ricci-texto h2{
  font-size:42px;
  font-weight:800;
  margin-bottom:25px;
  letter-spacing:1px;
  position:relative;
}

.ricci-texto h2::after{
  content:"";
  width:60px;
  height:4px;
  background:#000;
  position:absolute;
  bottom:-10px;
  left:0;
}

.ricci-texto p{
  font-size:17px;
  line-height:1.8;
  color:#555;
  margin-bottom:18px;
}

.ricci-texto strong{
  color:#000;
}

/* ================= IMAGENS ================= */

.ricci-imagens{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.ricci-imagens img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:18px;
  cursor:pointer;
  transition:all 0.4s ease;
  box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.ricci-imagens img:hover{
  transform:translateY(-8px) scale(1.03);
  box-shadow:0 25px 45px rgba(0,0,0,0.15);
}

/* ===== MODAL IMAGEM ===== */

.img-modal{
  display: none; /* começa fechado */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-modal img{
  max-width: 90%;
  max-height: 90%;
}

.close-modal{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVO ================= */

@media(max-width:992px){
  .ricci-container{
    grid-template-columns:1fr;
  }

  .ricci-texto{
    text-align:center;
  }

  .ricci-texto h2::after{
    left:50%;
    transform:translateX(-50%);
  }

  .ricci-imagens{
    margin-top:40px;
  }
}

@media(max-width:600px){
  .ricci{
    padding:70px 5%;
  }

  .ricci-imagens img{
    height:180px;
  }
}


/* ===== GRID serviços ===== */

.servicos-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:50px;
  text-align:center;
}

/* ===== ITEM SEM CARD ===== */

.servico-box{
  background:none;
  box-shadow:none;
  padding:0;
  border-radius:0;

  opacity:0;
  transform:translateY(40px);
  transition:all 0.6s ease;
}

.servico-box.show{
  opacity:1;
  transform:translateY(0);
}

/* ===== IMAGEM MAIOR E REDONDA ===== */

.servico-box img{
  width:200px;       /* AUMENTEI */
  height:200px;      /* AUMENTEI */
  object-fit:cover;
  border-radius:50%;
  display:block;
  margin:0 auto 25px;
  box-shadow:0 15px 35px rgba(0,0,0,0.15);
  transition:0.4s ease;
}

/* efeito leve ao passar mouse */
.servico-box:hover img{
  transform:scale(1.08);
}

/* ===== TÍTULO ===== */

.servico-box h3{
  margin-bottom:12px;
  color:#0167b1;
  font-size:22px;
}

/* ===== TEXTO ===== */

.servico-box p{
  max-width:280px;
  margin:0 auto;
  color:#555;
  line-height:1.6;
}

/* ===== RESPONSIVO ===== */

@media(max-width:992px){
  .servicos-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

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

  .servico-box img{
    width:160px;
    height:160px;
  }
}

/* ================= PNEUS ELEGANTE ================= */

/* ===== ANIMAÇÃO ENTRADA PNEUS ===== */

.pneu-box{
  opacity:0;
  transform:scale(0.9) translateY(30px);
  filter:blur(8px);
  transition:all 0.8s cubic-bezier(.2,.8,.2,1);

  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 25px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  align-items:center; /* CENTRALIZA TUDO */
  text-align:center;  /* CENTRALIZA TEXTO */
}

/* Quando aparecer */
.pneu-box.show{
  opacity:1;
  transform:scale(1) translateY(0);
  filter:blur(0);
}

.pneus{
  background:#f9f9f9;
}

.pneus-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:40px;
}

.pneu-box img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition:0.6s ease;
}

.pneu-box h3{
  font-size:18px;
  margin:20px 20px 10px;
  color:#363435;
  font-weight:600;
}

.btn-whats{
  margin:0 20px 25px;
  padding:12px;
  border-radius:30px;
  text-decoration:none;
  text-align:center;
  font-weight:500;
  background:#0167b1;
  color:#fff;
  transition:0.3s ease;
  width:80%; /* deixa o botão proporcional */
}

/* HOVER PREMIUM */
.pneu-box:hover{
  transform:translateY(-8px);
  box-shadow:0 15px 40px rgba(0,0,0,0.12);
}

.pneu-box:hover img{
  transform:scale(1.05);
}

.btn-whats:hover{
  background:#fff112;
  color:#363435;
}

/* RESPONSIVO */
@media(max-width:1100px){
  .pneus-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

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

/* ================= NOTÍCIAS ================= */

.noticias-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:35px;
}

.noticia-box{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  cursor:pointer;
  transition:0.3s;
}

.noticia-box img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.noticia-box h3{
  padding:25px;
  color:#0167b1;
}

.noticia-box:hover{
  transform:scale(1.04);
}

/* ================= MODAL ================= */

.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
justify-content:center;
align-items:center;
z-index:9999;
padding:20px;
}

.modal-img{
width:100%;
height:250px;
object-fit:cover;
border-radius:12px;
margin-bottom:20px;
}

.modal-content{
background:#fff;
padding:50px;
border-radius:20px;
max-width:650px;
width:100%;
}

.modal-content span{
float:right;
font-size:24px;
cursor:pointer;
color:#0167b1;
}

@media (max-width:768px){

.modal-content{
padding:20px;
max-width:95%;
max-height:85vh;
overflow:auto;
}

.modal-img{
height:140px;
margin-bottom:12px;
}

}

/* ================= CONTATO ================= */

#contato p{
text-align:center;
margin-bottom:10px;
}

.mapa{
margin-top:40px;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

/* ================= FOOTER ================= */

footer{
background:#0167b1;
color:#fff;
padding:80px 8%;
margin-top:100px;
}

.footer-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:50px;
}

.footer-container p:hover{
transform:translateX(5px);
transition:0.3s;
}

.footer-container h3{
margin-bottom:15px;
color:#fff112;
}

/* textos com ícone */
.footer-container p{
display:flex;
align-items:center;
gap:10px;
margin-bottom:8px;
}

.footer-container i{
color:#fff112;
font-size:16px;
}

.footer-container a{
color:#fff;
text-decoration:none;
}

.footer-container a:hover{
color:#fff112;
}

.footer-bottom{
margin-top:60px;
text-align:center;
opacity:0.8;
font-size:14px;
}

.footer-bottom a{
color:#fff;
text-decoration:none;
}

.footer-bottom a:hover{
color:#fff112;
}

/* redes sociais */

.social-icons a{
color:#fff112;
font-size:22px;
margin-right:15px;
transition:0.3s;
}

.social-icons a:hover{
color:#ffffff;
}

.footer-bottom{
margin-top:60px;
text-align:center;
opacity:0.7;
font-size:14px;
}

.footer-logo{
margin-top:15px;
width:140px;
height:auto;
opacity:0.9;
transition:0.3s;
}

.footer-logo:hover{
opacity:1;
transform:scale(1.05);
}


/* ================= RESPONSIVO ================= */

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

@media(max-width:768px){

  /* HERO */
  .hero{
    height:35vh;
    margin-top:65px;
  }

  /* LOGO */
  .logo img{
    height:40px;
  }

  header.scrolled .logo img{
    height:34px;
  }

  /* ESPAÇAMENTO */
  .servicos,
  .pneus,
  .noticias,
  #contato{
    padding:80px 6%;
  }

  /* MENU MOBILE */
  nav{
    display:none;
    position:absolute;
    top:75px; /* aumentei porque seu menu ficou mais alto */
    left:0;
    width:100%;
    background:#fff;
    padding:25px 0;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
  }

  nav ul{
    flex-direction:column;
    align-items:center;
    gap:25px;
  }

  nav.active{
    display:block;
  }

  .hamburger{
    display:block;
  }

  /* GRIDS */
  .servicos-grid{
    grid-template-columns:1fr;
  }

  .noticias-grid{
    grid-template-columns:1fr;
  }

  .pneus-grid{
    grid-template-columns:1fr;
  }

}

/* ================= WHATS FLOAT ================= */

.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  width:60px;
  height:60px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
  z-index:9999;
  transition:0.3s ease;
  animation:pulse 2s infinite;
  font-size:0;
}

.whatsapp-float i{
  font-size:32px;
  color:#fff;
  line-height:1;
}

.whatsapp-float{
  text-decoration:none;
  font-size:0;
}


.whatsapp-float:hover{
  transform:scale(1.1);
  box-shadow:0 15px 35px rgba(0,0,0,0.3);
}

/* ANIMAÇÃO SUAVE */
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,0.6);}
  70%{box-shadow:0 0 0 15px rgba(37,211,102,0);}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

/* MOBILE */
@media(max-width:768px){
  .whatsapp-float{
    width:55px;
    height:55px;
    bottom:20px;
    right:20px;
  }
}



/* ===== SEÇÃO INSTAGRAM ===== */

.instagram-section{
  padding:80px 0;
  background:#ffffff;
  text-align:center;
}

/* Título */
.insta-title{
  font-size:28px;
  font-weight:600;
  margin-bottom:40px;
  color:#363435;
}

/* Wrapper que controla o tamanho */
.insta-wrapper{
  width:100%;
  max-width:900px;   /* ← controla o tamanho aqui */
  margin:0 auto;
}


/* Widget */
.elfsight-app-333ffb32-b6a9-4708-a12c-20875abdae4e{
  width:100% !important;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,0.06);
  transition:0.4s ease;
}

/* Hover suave */
.elfsight-app-333ffb32-b6a9-4708-a12c-20875abdae4e:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 60px rgba(0,0,0,0.10);
}

/* Responsivo */
@media(max-width:768px){

  .instagram-section{
    padding:50px 15px;
  }

  .insta-wrapper{
    max-width:100%;
  }

  .elfsight-app-333ffb32-b6a9-4708-a12c-20875abdae4e{
    border-radius:15px;
  }

}


/* ================= BANNER MEIO ================= */

/* ================= BANNER MEIO ================= */

#bmeio{
  padding:60px 8%;
  display:flex;
  justify-content:center;
}

.bmeio{
  width:100%;
  max-width: 1200px; /* limita no desktop */
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,0.12);
}

.bmeio img{
  width:100%;
  height:auto;              /* mantém proporção real */
  display:block;
  transition:0.5s ease;
}

.bmeio:hover img{
  transform:scale(1.03);
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .bmeio{
    height:200px;      /* 🔥 aumenta altura */
  }

  .bmeio img{
    width:100%;
    height:100%;
    object-fit:cover;  /* mantém proporção e preenche */
  }

}
/* ================= MOBILE PEQUENO ================= */

@media(max-width:480px){

  #bmeio{
    padding:20px 2%;        /* quase tela cheia */
  }

}