/*
Theme Name: Ricardo Tonelli Advocacia
Theme URI: https://ricardotonelli.com.br
Author: Ricardo Fajan Tonelli
Author URI: https://instagram.com/ricardotonelli.adv
Description: Tema WordPress profissional com posts integrados na home.
Version: 2.1
License: GNU General Public License v2 or later
Text Domain: ricardo-tonelli
*/

:root {
  --primary:#0b2c6b;
  --secondary:#f2f4f8;
  --accent:#25D366;
  --text:#1f2937;
  --white:#ffffff;
}

* { box-sizing:border-box; }

body {
  margin:0;
  font-family:'Segoe UI', Arial, sans-serif;
  color:var(--text);
  background:var(--secondary);
}

.container {
  max-width:1100px;
  margin:auto;
  padding:0 20px;
}

.hero {
  background:linear-gradient(135deg, var(--primary), #081f4a);
  color:var(--white);
  padding:80px 20px;
  text-align:center;
}

.logo {
  max-width:180px;
  margin-bottom:30px;
}

.btn {
  display:inline-block;
  margin-top:25px;
  padding:16px 34px;
  background:var(--white);
  color:var(--primary);
  font-weight:700;
  border-radius:6px;
  text-decoration:none;
}

.trust {
  background:var(--white);
  padding:20px;
  text-align:center;
  font-weight:600;
}

.areas {
  padding:70px 0;
}

.areas-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

.card {
  background:var(--white);
  padding:25px;
  border-radius:8px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  text-align:center;
  font-weight:600;
}

.about {
  background:var(--white);
  padding:80px 0;
}

.about-flex {
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  align-items:center;
}

.about img {
  max-width:320px;
  border-radius:10px;
}

.posts {
  background:var(--secondary);
  padding:80px 0;
}

.posts-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.post-card {
  background:var(--white);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.post-card img {
  width:100%;
  height:180px;
  object-fit:cover;
}

.post-card .content {
  padding:20px;
}

.post-card h3 {
  margin-top:0;
  font-size:1.1rem;
}

.form-section {
  background:var(--secondary);
  padding:80px 0;
}

form {
  max-width:420px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input, textarea {
  padding:14px;
  font-size:16px;
  border-radius:6px;
  border:1px solid #ccc;
}

button {
  padding:16px;
  background:var(--primary);
  color:var(--white);
  font-weight:700;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

footer {
  background:var(--primary);
  color:var(--white);
  text-align:center;
  padding:30px 20px;
}

.whatsapp-float {
  position:fixed;
  right:20px;
  bottom:20px;
  background:var(--accent);
  color:var(--white);
  padding:15px 22px;
  border-radius:50px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}
