/*
Theme Name: BF GeneratePress Child V5
Template: generatepress
Version: 1.5
Description: Child theme test stile magazine per GeneratePress, hero 1 grande + 3 laterali.
*/

body { color:#111; background:#f5f5f5; }
a { color:#0b6b3a; }

.home .sidebar,
.home .widget-area { display:none!important; }
.home .content-area { width:100%!important; max-width:none!important; }

.bf-home-wrap {
  max-width:1180px;
  margin:0 auto;
  padding:24px 18px 70px;
  font-family:Arial, sans-serif;
  color:#111;
}

.bf-hero {
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(300px, 1fr);
  gap:24px;
  margin-bottom:28px;
  align-items:start;
}

.bf-main-card,
.bf-small-card,
.bf-card {
  display:block;
  text-decoration:none!important;
  color:#111!important;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.bf-main-card { height:auto; min-height:0; }

.bf-main-card img,
.bf-card img,
.bf-placeholder {
  width:100%;
  display:block;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#eee;
}

.bf-small-card img {
  width:100%;
  display:block;
  aspect-ratio:16/7.6;
  object-fit:cover;
  background:#eee;
}

.bf-main-content { padding:26px 28px 28px; }
.bf-label {
  display:inline-block;
  background:#f2b544;
  color:#111;
  padding:7px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  margin-bottom:12px;
}
.bf-main-content h1 {
  font-size:clamp(34px, 4.8vw, 62px);
  line-height:1.02;
  margin:0;
  color:#000;
  font-weight:900;
}
.bf-main-content p {
  font-size:19px;
  color:#333;
  line-height:1.45;
  margin:14px 0 0;
}

.bf-side {
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-self:start;
}
.bf-small-card h2 {
  font-size:20px;
  line-height:1.12;
  padding:13px 16px 15px;
  margin:0;
  color:#000;
  font-weight:850;
}

.bf-hot {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 48px;
}
.bf-hot a {
  background:#fff;
  color:#111!important;
  text-decoration:none!important;
  padding:11px 16px;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.bf-hot a:hover { background:#e8e8e8; }

.bf-section-title {
  font-size:34px;
  line-height:1.1;
  color:#000;
  font-weight:900;
  margin:48px 0 22px;
}
.bf-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.bf-card h2 {
  font-size:23px;
  line-height:1.15;
  margin:0;
  padding:15px 16px 6px;
  color:#000;
  font-weight:850;
}
.bf-card p {
  font-size:16px;
  line-height:1.45;
  color:#333;
  margin:0;
  padding:0 16px 18px;
}
.bf-list {
  display:grid;
  gap:14px;
}
.bf-list a {
  display:block;
  background:#fff;
  border-radius:18px;
  padding:18px 22px;
  color:#000!important;
  text-decoration:none!important;
  font-size:20px;
  font-weight:850;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}
.bf-list a:hover { background:#eee; color:#0b6b3a!important; }

@media(max-width:768px) {
  .bf-home-wrap { padding:16px 14px 50px; }
  .bf-hero { grid-template-columns:1fr; }
  .bf-grid { grid-template-columns:1fr; }
  .bf-main-content { padding:20px; }
  .bf-main-content h1 { font-size:38px; }
  .bf-section-title { font-size:29px; }
  .bf-small-card img { aspect-ratio:16/9; }
  .bf-small-card h2,
  .bf-card h2 { font-size:21px; }
}
