@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --accent: #111111;
  --accent-2: #444444;
  --dark: #0a0a0a;
  --card: #f7f7f7;
  --line: rgba(0, 0, 0, 0.10);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: #f0f0f0;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 0;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: #f0f0f0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 150ms ease;
}

.nav-social:hover {
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.brand img {
  width: 120px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}

.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.30)),
    url("/image/home-nero-baselice.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 120px 0 110px;
}

.hero-slider {
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000000;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.30));
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 5.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 58px);
  margin: 0 0 12px;
  line-height: 1.05;
}

.hero p {
  font-size: 18px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  padding: 0;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
}

.section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-full {
  grid-template-columns: 1fr;
}

.section-feature-band {
  background: linear-gradient(135deg, #0a0a0a, #2a2a2a);
  color: #ffffff;
}

.section-feature-band .eyebrow {
  color: #cccccc;
}

.section-feature-band p {
  color: rgba(255, 255, 255, 0.80);
}

.section-products-beige {
  background: #efefef;
}

.feature img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.strip {
  background: #f0f0f0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip .container {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 30px 0;
  text-align: center;
}

.strip strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
}

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

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

.gallery img {
  border-radius: 18px;
  height: 200px;
  object-fit: cover;
}

.cta {
  background: linear-gradient(135deg, #0a0a0a, #222222);
  color: #ffffff;
  border-radius: 28px;
  padding: 46px;
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cta h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  margin: 0;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-cta-full {
  padding-top: 0;
  padding-inline: 0;
}

.cta-full {
  width: 100%;
  max-width: none;
  border-radius: 0;
  padding-inline: max(4vw, calc((100vw - 1180px) / 2));
}

.footer {
  background: #f0f0f0;
  color: var(--ink);
  padding: 72px 0 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-layout {
  display: grid;
  gap: 42px;
  align-items: start;
  grid-template-columns: minmax(250px, 0.9fr) minmax(420px, 1.5fr);
}

.footer-company,
.footer-contact {
  font-size: 17px;
}

.footer-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #555555;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.footer h4,
.footer-form-intro {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.98;
  color: #111111;
}

.footer-company p {
  margin: 0 0 22px;
  max-width: 320px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  font-weight: 600;
}

.footer-links a,
.footer a {
  color: var(--ink);
}

.footer-form {
  display: grid;
  gap: 18px;
}

.footer-form-grid {
  display: grid;
  gap: 18px 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.footer-form label {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.footer-form span {
  font-weight: 500;
}

.footer-form input,
.footer-form select,
.footer-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  font: inherit;
  appearance: none;
}

.footer-form textarea {
  min-height: 230px;
  resize: vertical;
}

.footer-form-message {
  grid-column: 2;
  grid-row: 2 / span 4;
}

.footer-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.footer-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.footer-actions .btn.primary {
  border-radius: 0;
  padding-inline: 24px;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.30);
  color: var(--ink);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer .bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.50);
}

.page-hero {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18)),
    url("/wp-content/uploads/porchetta-1080x650.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0 70px;
}

.page-hero-allevamento {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18)),
    url("/image/allevamenti.webp") center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
}

.page-hero-allevamento .badge {
  background: transparent;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
  font-size: 18px;
  letter-spacing: 0.8px;
}

.page-hero-prodotti {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.22)),
    url("/image/prodotti-nero-di-baselice.webp") center/cover no-repeat;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 10px;
}

.page-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.hero .badge {
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-form-message {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 80px;
  }
  .hero-slider {
    min-height: 68vh;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-dots {
    bottom: 24px;
  }
  .cta {
    padding: 32px;
  }

  .cta-full {
    padding-inline: 24px;
  }
}
