:root {
  --green: #254f38;
  --deep: #183427;
  --leaf: #708b43;
  --gold: #b58b32;
  --cream: #f3eadb;
  --paper: #fffaf0;
  --white: #fffef9;
  --ink: #27231d;
  --muted: #6f675a;
  --body-copy: #625b50;
  --body-copy-size: 18px;
  --line: #ddcfbb;
  --shadow: 0 18px 50px rgba(33, 47, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.72), rgba(255, 250, 240, 0.82) 260px),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

iframe,
table,
video,
embed,
object {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 34px);
  padding: 10px clamp(16px, 4vw, 58px);
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(32, 46, 34, 0.08);
  backdrop-filter: blur(14px);
}

.site-header input[type="checkbox"],
.nav-toggle,
input[type="checkbox"].nav-toggle {
  display: none !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hamburger {
  display: none;
}

.hamburger {
  width: 44px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
}

.primary {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  font-family: Arial, sans-serif;
}

.sf-menu,
.sub-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sf-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
}

.sf-menu > li {
  position: relative;
}

.sf-menu a {
  display: block;
  padding: 10px 9px;
  color: var(--green);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.sf-menu > li > a:hover,
.sf-menu > li:hover > a {
  color: white;
  background: linear-gradient(180deg, var(--green), var(--deep));
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 20;
  display: none;
  width: 270px;
  max-height: 72vh;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.sub-menu a {
  padding: 9px 12px;
  border-bottom: 1px solid #eee7dc;
  font-size: 11px;
}

.sub-menu a:hover {
  color: white;
  background: var(--leaf);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 245px;
  color: var(--green);
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: block;
}

.brand strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  font-weight: 700;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1e2d24;
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: #1e2d24;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 33, 25, 0.84), rgba(22, 33, 25, 0.25));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 92px clamp(18px, 7vw, 96px) 70px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 23px);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 33, 25, 0.82), rgba(22, 33, 25, 0.22));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 clamp(18px, 7vw, 96px) clamp(56px, 12vh, 120px);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.wp-content .button,
.wp-content .button-1,
.wp-home .button,
.wp-home .button-1,
.wp-home .link {
  margin-top: 16px;
}

.wp-content .button a,
.wp-content .button-1 a,
.wp-home .button a,
.wp-home .button-1 a,
.wp-home .link a,
#slider-wrapper p a,
.wp-content a.read-more,
.wp-home a.read-more,
.content-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  color: white;
  background: linear-gradient(180deg, var(--green), var(--deep));
  border: 1px solid var(--deep);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(33, 47, 34, 0.12);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.wp-content .button a:hover,
.wp-content .button-1 a:hover,
.wp-home .button a:hover,
.wp-home .button-1 a:hover,
.wp-home .link a:hover,
#slider-wrapper p a:hover,
.wp-content a.read-more:hover,
.wp-home a.read-more:hover,
.content-callout a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.button.primary {
  color: #19271d;
  background: #f2d172;
  border-color: #f2d172;
}

.button.secondary {
  color: white;
}

.button.dark {
  margin-top: 22px;
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 14px 18px;
  color: white;
  background: var(--green);
  font-family: Arial, sans-serif;
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 6vw, 88px);
}

.compact {
  padding-top: clamp(38px, 5vw, 70px);
}

.narrow {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
}

h2 {
  max-width: 820px;
  margin: 0;
  color: var(--green);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 23px;
  line-height: 1.15;
}

p {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

.copy {
  color: var(--muted);
  font-size: 19px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--cream);
}

.feature-image img,
.product-grid img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  border-radius: 6px;
}

.feature-text p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  font-family: Arial, sans-serif;
}

.tag-list li {
  padding: 8px 12px;
  color: var(--green);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.section-head {
  margin-bottom: 34px;
}

.three-columns,
.product-grid,
.list-columns,
.link-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.three-columns article,
.product-grid article,
.list-columns div,
.contact-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.link-grid a {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: var(--green);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.link-grid a:hover {
  border-color: var(--gold);
}

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

.photo-grid img {
  width: 100%;
  min-height: 260px;
  height: 34vw;
  max-height: 430px;
  object-fit: cover;
  border-radius: 6px;
}

.three-columns p,
.product-grid p,
.list-columns p,
.products-intro p {
  color: var(--muted);
}

.products {
  background: #eef3e6;
}

.products-intro {
  max-width: 780px;
  margin-bottom: 30px;
}

.product-grid article {
  padding: 12px;
}

.product-grid h3,
.product-grid p {
  padding-inline: 10px;
}

.product-grid h3 {
  margin-top: 18px;
}

.product-grid p {
  margin-bottom: 12px;
}

.meat-list {
  background: var(--paper);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
  gap: 22px;
  background: var(--cream);
}

address {
  margin: 18px 0;
  font-style: normal;
}

.contact-links {
  display: grid;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

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

.reservation {
  margin-top: 22px;
  color: var(--muted);
}

iframe {
  width: 100%;
  min-height: 440px;
  border: 0;
  border-radius: 6px;
}

.footer {
  padding: 32px 18px;
  color: white;
  background: linear-gradient(180deg, var(--green), var(--deep));
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-reservation {
  display: grid;
  gap: 3px;
  width: min(720px, 100%);
  margin: 0 auto 20px;
  padding: 16px 18px;
  color: var(--deep);
  background: #fff4cf;
  border: 1px solid #d7c38b;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.footer-reservation strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.footer-reservation span {
  color: var(--body-copy);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer p + p {
  margin-top: 6px;
}

.footer a {
  color: white;
}

.wp-home,
.page-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.wp-home {
  padding: 22px 0 76px;
}

.home-clean {
  display: grid;
  gap: 34px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-slider {
  min-height: 310px;
}

.home-slider img {
  min-height: 310px;
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
}

.home-hero-copy .eyebrow,
.home-feature .eyebrow {
  color: var(--gold);
}

.home-hero-copy h1 {
  max-width: 520px;
  margin: 0;
  color: var(--green);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 540px;
  margin-top: 16px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-clean a.read-more.secondary {
  color: var(--green);
  background: #f7efd9;
  border-color: var(--line);
}

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

.home-cards article,
.home-feature {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-cards article {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.home-cards img {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.home-cards h2,
.home-feature h2 {
  margin: 18px 0 10px;
  color: var(--green);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.08;
}

.home-cards p,
.home-feature p {
  color: var(--body-copy);
  font-family: Arial, sans-serif;
  font-size: var(--body-copy-size);
  line-height: 1.55;
}

.home-cards ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-family: Arial, sans-serif;
}

.home-cards li {
  font-size: 15px;
}

.home-cards li a {
  display: block;
  padding: 9px 11px;
  color: var(--green);
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
}

.home-cards li a:hover {
  border-color: var(--gold);
}

.home-cards .read-more,
.home-feature .read-more {
  width: max-content;
  margin-top: auto;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
}

.home-feature > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 0;
}

.home-feature > div {
  padding: clamp(26px, 4vw, 50px);
}

.home-csr {
  display: flex;
  justify-content: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-csr img {
  width: auto;
  max-width: min(100%, 920px);
  height: auto;
  border-radius: 6px;
  box-shadow: none;
}

#slider-wrapper {
  position: relative;
  width: min(940px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 42px);
  margin: 0 auto 38px;
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#slider {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 320px;
  background: var(--deep);
}

#slider img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  animation: sliderFade 42s infinite;
}

#slider img:nth-child(1) { animation-delay: 0s; }
#slider img:nth-child(2) { animation-delay: 6s; }
#slider img:nth-child(3) { animation-delay: 12s; }
#slider img:nth-child(4) { animation-delay: 18s; }
#slider img:nth-child(5) { animation-delay: 24s; }
#slider img:nth-child(6) { animation-delay: 30s; }
#slider img:nth-child(7) { animation-delay: 36s; }

@keyframes sliderFade {
  0%, 15%, 100% { opacity: 0; }
  3%, 12% { opacity: 0.9; }
}

#slider-wrapper::after {
  content: "Prodotti genuini dai campi alla tavola";
  position: absolute;
  left: auto;
  right: clamp(24px, 5vw, 54px);
  top: 50%;
  bottom: auto;
  z-index: 2;
  width: min(390px, calc(50% - 42px));
  color: var(--green);
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  transform: translateY(-72%);
}

#slider-wrapper::before {
  content: "Agriturismo biologico a Belforte del Chienti, con cucina marchigiana, allevamento e vendita diretta.";
  position: absolute;
  left: auto;
  right: clamp(24px, 5vw, 54px);
  top: 50%;
  width: min(390px, calc(50% - 42px));
  z-index: 1;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  transform: translateY(22%);
}

.nivo-html-caption {
  display: none;
}

.nivo-html-caption h5 {
  margin: 0;
  font-size: 18px;
}

.page-shell {
  padding: clamp(42px, 6vw, 78px) 0 clamp(70px, 8vw, 108px);
}

.wp-content {
  position: relative;
  padding: clamp(24px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.wp-content :where(.wrapper, .indent-top-1, .indent-bot, .grid_24, .grid_22, .grid_16, .grid_8, .grid_7, .alpha, .omega, .prefix_1, .suffix_1) {
  width: auto !important;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.wp-content :where(.wrapper, .indent-top-1, .indent-bot) {
  display: block;
}

.wp-content :where(.box-24, .box-2, .box-3, .box-4, .box-5, .container-1, .container-2, .container-3) {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wp-content h1,
.wp-content h2,
.wp-home h1,
.wp-home h2 {
  color: var(--green);
}

.wp-content h1:first-child {
  margin-top: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wp-content h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.wp-content h2,
.wp-home h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
}

.wp-content h2 {
  margin-top: clamp(34px, 5vw, 58px);
  margin-bottom: 18px;
}

.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.wp-content p + h2,
.wp-content ul + h2,
.wp-content ol + h2,
.wp-content div + h2 {
  margin-top: clamp(42px, 6vw, 68px);
}

.wp-content p,
.wp-content li,
.wp-home p,
.wp-home li {
  color: var(--body-copy);
  font-size: var(--body-copy-size);
}

.wp-content :where(p, li, blockquote, span, strong, em, small),
.wp-home :where(p, li, blockquote, span, strong, em, small, .post-excerpt) {
  color: var(--body-copy) !important;
  font-size: var(--body-copy-size) !important;
  line-height: 1.6;
}

.wp-content p {
  margin-bottom: 20px;
}

.wp-content p strong:only-child,
.wp-content p > strong:first-child {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--green) !important;
  font-size: clamp(21px, 2.2vw, 28px) !important;
  line-height: 1.2;
}

.wp-content p:has(> strong:first-child) {
  margin-top: 28px;
  margin-bottom: 28px;
}

.wp-content h2 + p,
.wp-content h3 + p,
.wp-content h4 + p,
.wp-content h5 + p,
.wp-content h6 + p,
.wp-content p strong:only-child + br {
  margin-top: 0;
}

.wp-content :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *),
.wp-home :where(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *) {
  color: var(--green) !important;
}

.wp-content :where(a.read-more, .button a, .button-1 a, .content-callout a),
.wp-home :where(a.read-more, .button a, .button-1 a, .link a, .home-cards li a) {
  color: white !important;
  font-size: 13px !important;
  line-height: 1.1;
}

.wp-home :where(a.read-more.secondary) {
  color: var(--green) !important;
}

.wp-home :where(.home-cards li a, .textwidget li a) {
  color: var(--green) !important;
  font-size: 13px !important;
}

.wp-home :where(.home-cards li a:hover, .textwidget li a:hover) {
  color: white !important;
}

.wp-content a,
.wp-home a {
  color: var(--green);
  font-weight: 700;
}

.wp-content img,
.wp-home img {
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(33, 47, 34, 0.08);
}

.wp-content img[src*="prodotti-le-sodere"],
.wp-home img[src*="prodotti-le-sodere"],
.wp-content img[src*="Facebook_icon"],
.wp-home img[src*="Facebook_icon"] {
  width: auto;
  max-width: min(100%, 260px);
}

.wp-content .list-2 {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.wp-content .list-2 li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  color: var(--body-copy);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  font-size: var(--body-copy-size);
}

.wp-content .list-2 li img.alignleft,
.wp-content .list-2 li img {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  float: none;
}

.alignleft {
  float: left;
  margin: 5px 22px 16px 0;
}

.alignright {
  float: right;
  margin: 5px 0 16px 22px;
}

.aligncenter {
  margin-right: auto;
  margin-left: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  clear: both;
  margin: 30px 0;
  padding: 0;
}

.gallery br {
  display: none;
}

.gallery-item {
  position: relative;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(33, 47, 34, 0.08);
}

.gallery-icon a,
.gallery-icon img {
  display: block;
}

.gallery-icon a {
  position: relative;
  color: transparent;
}

.gallery-icon a::after {
  content: "Apri foto";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  color: white;
  background: rgba(24, 52, 39, 0.88);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery a:hover img {
  transform: scale(1.035);
}

.gallery a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-page .wp-content {
  width: min(1280px, 100%);
}

.gallery-page .wp-content > .wrapper,
.gallery-page .wp-content .grid_16 {
  display: block;
  width: 100%;
}

.gallery-page .content-callout {
  margin-bottom: 24px;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 46px);
  background: rgba(18, 28, 21, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0;
  justify-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-count {
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(37, 79, 56, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 32px;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 44px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  color: var(--body-copy);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(24, 52, 39, 0.22);
  font-family: Arial, sans-serif;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
}

.cookie-banner p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  display: inline-block;
  margin-top: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-actions button {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--green);
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.cookie-actions [data-cookie-accept] {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.cookie-actions button:hover {
  border-color: var(--gold);
}

.banner,
.picture,
.box-2,
.box-3,
.box-4,
.box-5 {
  overflow: hidden;
}

.box-2,
.box-3,
.box-4,
.box-5,
#widget_text {
  border-radius: 6px;
}

.wp-home .grid_8,
.wp-home .grid_7,
.wp-home .grid_16 {
  margin-bottom: 22px;
}

.wp-home .textwidget,
.wp-home .box-2,
.wp-home .box-3,
.wp-home .box-4,
.wp-home .box-5 {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wp-home .picture img {
  width: auto;
}

.banner {
  margin-bottom: 24px;
}

.content-callout {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 18px 20px;
  color: var(--deep);
  background: linear-gradient(135deg, #fff7db, #edf3df);
  border: 1px solid #d7c38b;
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(33, 47, 34, 0.08);
}

.content-callout strong {
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

.content-callout span {
  color: var(--muted);
  font-size: 16px;
}

.content-callout a {
  width: max-content;
  padding: 7px 12px;
  color: white;
  background: var(--green);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.home-clean .home-cards ul,
.wp-home .textwidget ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.home-clean .home-cards li,
.wp-home .textwidget li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: var(--body-copy-size);
}

.home-clean .home-cards li a,
.wp-home .textwidget li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--green);
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(33, 47, 34, 0.06);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.home-clean .home-cards li a:hover,
.wp-home .textwidget li a:hover {
  color: white;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.wrapper::after,
.wp-content::after,
.wp-home::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 860px) {
  .site-header,
  .split,
  .feature-band,
  .contact,
  .home-hero,
  .home-feature {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .hamburger {
    display: inline-flex;
    align-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .brand img {
    width: 58px;
    height: 46px;
  }

  .brand strong {
    font-size: clamp(27px, 8vw, 38px);
  }

  .brand-copy small {
    font-size: 11px;
    white-space: normal;
  }

  .primary {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    z-index: 60;
    width: min(92vw, 460px);
    max-height: min(70vh, 620px);
    display: none;
    justify-content: stretch;
    overflow: auto;
    padding: 12px;
    background: rgba(255, 254, 249, 0.98);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(24, 52, 39, 0.2);
    transform: translateX(-50%);
    -webkit-overflow-scrolling: touch;
  }

  .site-header.nav-open .primary {
    display: block;
  }

  .site-header.nav-open::after {
    content: none;
  }

  .site-header.nav-open .brand,
  .site-header.nav-open .hamburger {
    z-index: auto;
  }

  .site-header.nav-open .primary {
    z-index: 60;
  }

  .sf-menu {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 9px;
    padding: 0;
  }

  .sf-menu > li {
    width: 100%;
  }

  .sf-menu a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8f2e7;
    border: 1px solid var(--line);
    border-left: 4px solid var(--leaf);
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .sub-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    margin: 7px 0 4px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
  }

  .sub-menu a {
    min-height: 36px;
    padding: 9px 12px;
    background: #fffdf7;
    border-left-width: 2px;
    font-size: 11px;
  }

  .menu-item-has-children.is-open > .sub-menu {
    display: grid;
  }

  .three-columns,
  .product-grid,
  .list-columns,
  .photo-grid,
  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-feature > img {
    min-height: 240px;
  }

  .wp-home,
  .page-shell {
    width: min(100% - 24px, 760px);
  }

  .wp-content {
    padding: 24px 18px;
  }

  .wp-content h1 {
    font-size: clamp(34px, 10vw, 52px);
    overflow-wrap: anywhere;
  }

  .home-hero-copy h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .home-slider,
  .home-slider img {
    min-height: 250px;
  }

  .home-cards article,
  .home-feature > div {
    padding: 18px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  iframe {
    min-height: 320px;
  }

  .hero {
    min-height: 78vh;
  }

  #slider-wrapper {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 36px));
    padding-bottom: 0;
  }

  #slider-wrapper::after,
  #slider-wrapper::before {
    display: none;
  }

  .hero::after {
    background: rgba(22, 33, 25, 0.66);
  }
}

@media (max-width: 540px) {
  :root {
    --body-copy-size: 16px;
  }

  body {
    line-height: 1.55;
  }

  .site-header {
    padding: 10px 12px;
  }

  .brand img {
    width: 48px;
    height: 40px;
  }

  .brand strong {
    font-size: clamp(24px, 10vw, 34px);
  }

  .brand-copy small {
    font-size: 10px;
  }

  .sf-menu a {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .primary {
    top: calc(100% + 8px);
    width: min(92vw, 380px);
    max-height: min(68vh, 560px);
    border-radius: 0;
    padding: 10px;
  }

  .sub-menu {
    width: 100%;
  }

  .nav {
    font-size: 13px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .button {
    width: 100%;
  }

  .wp-home,
  .page-shell {
    width: calc(100% - 18px);
  }

  .wp-content {
    padding: 20px 14px;
    border-radius: 6px;
  }

  .wp-content h1 {
    font-size: clamp(31px, 12vw, 42px);
  }

  .wp-content h2,
  .wp-home h2 {
    font-size: clamp(23px, 8vw, 31px);
  }

  .home-clean {
    gap: 18px;
  }

  .home-hero-copy {
    padding: 20px 16px 22px;
  }

  .home-hero-copy h1 {
    font-size: clamp(30px, 11vw, 40px);
  }

  .home-actions,
  .home-actions a,
  .home-cards .read-more,
  .home-feature .read-more,
  .content-callout a {
    width: 100%;
  }

  .home-cards article,
  .home-feature > div {
    padding: 14px;
  }

  .home-cards img {
    aspect-ratio: 4 / 3;
  }

  .home-feature > img {
    min-height: 210px;
  }

  .wp-content .list-2 {
    width: 100%;
  }

  .wp-content .list-2 li {
    align-items: flex-start;
    padding: 9px 11px;
  }

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

  .lightbox {
    padding: 54px 10px 18px;
  }

  .lightbox-image {
    max-height: 72vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 38px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }

  .cookie-banner {
    left: 9px;
    right: 9px;
    bottom: 9px;
    display: grid;
    width: calc(100% - 18px);
    padding: 14px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #slider img,
  #slider img:first-child {
    min-height: 220px;
    height: 220px;
  }

  #slider {
    min-height: 0;
  }

  #slider-wrapper {
    padding-bottom: 0;
  }

  .alignleft,
  .alignright {
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 16px;
  }

  iframe {
    min-height: 260px;
  }
}
