/*
Theme Name: TheBigAnimal 2026
Theme URI: https://thebiganimal.com
Author: The Big Animal
Description: Tema custom 2026 con menu superiore e home a mosaico 2x2.
Version: 1.0.0
Text Domain: thebiganimal2026
*/

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-topbar {
  width: 100%;
  height: 120px;
  padding: 10px 20px;
  background: #666;
  display: flex;
  justify-content: center;
}

.site-topbar-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 180px;
}

.site-branding img {
  max-height: 100px;
  width: auto;
  display: block;
}

.site-branding .site-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.top-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
}

.top-navigation a {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.home-mosaic {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mosaic-card {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mosaic-card--last-odd {
  grid-column: 1 / -1;
  width: calc((100% - 20px) / 2);
  justify-self: center;
}

.mosaic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.mosaic-card-title {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  z-index: 1;
}

.home-about-section {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.home-about-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 40px;
  line-height: 1.15;
}

.home-about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

.site-main {
  width: 100%;
  flex: 1 0 auto;
}

.content-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.category-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.category-title {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.2;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.category-card--last-single {
  grid-column: 2;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.category-card-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  z-index: 1;
}

.category-empty {
  font-size: 18px;
}

.single-post-wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.single-post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
}

.single-post-title {
  margin: 0 0 20px;
  font-size: 40px;
  line-height: 1.1;
}

.single-post-content {
  font-size: 18px;
  line-height: 1.6;
}

.site-footer {
  width: 100%;
  background: #f6f6f6;
  padding: 30px 20px;
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.site-footer-logo img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
}

.site-footer-contacts {
  min-width: 280px;
}

.site-footer-contacts h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.site-footer-contacts p {
  margin: 0 0 8px;
  font-size: 16px;
}

.site-footer-contacts a {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-topbar {
    height: auto;
  }

  .site-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }

  .home-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-card--last-odd {
    grid-column: auto;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card--last-single {
    grid-column: auto;
  }

  .single-post-title {
    font-size: 32px;
  }

  .home-about-title {
    font-size: 32px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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