@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&family=Barlow+Condensed:wght@600;700&display=swap");

:root {
  --erreci-bg: #ecebe8;
  --erreci-surface: #ffffff;
  --erreci-border: #d1d3cf;
  --erreci-text: #353332;
  --erreci-muted: #676c67;
  --erreci-primary: #008c2f;
  --erreci-primary-dark: #006b24;
  --erreci-ink: #3a3836;
  --erreci-soft-green: #e7f3ea;
  --erreci-soft-gray: #f4f3f0;
  --erreci-shadow: 0 12px 30px rgba(58, 56, 54, 0.12);
  --wp--style--global--content-size: 1380px;
  --wp--style--global--wide-size: 1660px;
}

body {
  font-family: "Barlow", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 138, 56, 0.06), transparent 18%),
    radial-gradient(circle at top, #f7f6f3 0%, var(--erreci-bg) 58%);
  color: var(--erreci-text);
}

.site {
  border-top: 4px solid var(--erreci-primary);
}

body:not(.erreci-shell-theme) header.wp-block-template-part {
  background: linear-gradient(180deg, rgba(248,247,244,0.98) 0%, rgba(239,238,234,0.96) 100%);
  border-bottom: 1px solid #d9ddd8;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-group.alignwide.is-content-justification-space-between.is-nowrap.is-layout-flex {
  max-width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-site-title {
  flex: 0 0 auto;
  margin: 0;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-group.is-content-justification-right.is-nowrap.is-layout-flex {
  flex: 1 1 auto;
  justify-content: flex-end;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation {
  width: auto;
  margin-left: auto;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
  display: block;
  position: relative;
  width: auto;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--erreci-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
}

.wp-block-site-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1;
}

.wp-block-site-title a {
  color: var(--erreci-ink);
  text-decoration: none;
  display: block;
  width: clamp(220px, 28vw, 430px);
  height: clamp(58px, 6vw, 92px);
  background-image: var(--erreci-logo-url);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

.wp-block-site-title a::before {
  display: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation,
body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation__responsive-container,
body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-navigation__responsive-container-content,
body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-page-list {
  width: 100%;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-page-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

body:not(.erreci-shell-theme) header.wp-block-template-part .wp-block-page-list > li:last-child {
  margin-left: auto;
}

body:not(.erreci-shell-theme).erreci-has-kopa-logo header.wp-block-template-part .wp-block-page-list > li:last-child > a[href*="/kopa-oven/"] {
  width: 118px;
  min-height: 38px;
  padding: 0;
  border-radius: 0;
  background-color: transparent !important;
  background-image: var(--erreci-kopa-logo-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: none;
}

body:not(.erreci-shell-theme).erreci-has-kopa-logo header.wp-block-template-part .wp-block-page-list > li:last-child > a[href*="/kopa-oven/"]:hover,
body:not(.erreci-shell-theme).erreci-has-kopa-logo header.wp-block-template-part .wp-block-page-list > li:last-child.current-menu-item > a[href*="/kopa-oven/"],
body:not(.erreci-shell-theme).erreci-has-kopa-logo header.wp-block-template-part .wp-block-page-list > li:last-child.current_page_item > a[href*="/kopa-oven/"] {
  background-color: transparent !important;
  transform: none;
}

.wp-block-navigation__container {
  gap: 0.3rem;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current_page_item > .wp-block-navigation-item__content {
  background: rgba(0, 140, 47, 0.1);
  color: var(--erreci-primary);
  transform: translateY(-1px);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  border-radius: 999px;
  border: 1px solid #d9dfdb;
  padding: 0.35rem;
}

.custom-logo-link,
.site-logo {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 78px;
  width: auto;
}

main.wp-block-group.is-layout-constrained,
.site-main {
  max-width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 1.6rem 0;
}

.wp-block-group.alignwide,
.wp-block-group.is-layout-constrained,
.wp-block-post-content.is-layout-constrained,
.wp-block-post-title {
  max-width: min(1520px, calc(100vw - 48px));
}

.wp-block-post-content-is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-header h1 {
  color: var(--erreci-text);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  letter-spacing: 0.02em;
}

.page .wp-block-post-title {
  display: none;
}

.entry-content h2 {
  border-bottom: 2px solid #e8ece9;
  padding-bottom: 0.25rem;
}

.erreci-filter-form {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #ffffff, #f5f4f1);
  border: 1px solid var(--erreci-border);
  border-left: 5px solid var(--erreci-primary);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.erreci-filter-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.erreci-filter-form select {
  min-width: 220px;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--erreci-border);
  border-radius: 8px;
  font-family: "Barlow", sans-serif;
  background: #fff;
}

.erreci-filter-form .actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.erreci-filter-form button,
.erreci-link-btn,
.preventivo-form button[type="submit"] {
  display: inline-block;
  background: var(--erreci-primary);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.erreci-filter-form button:hover,
.erreci-link-btn:hover,
.preventivo-form button[type="submit"]:hover {
  background: var(--erreci-primary-dark);
  transform: translateY(-1px);
}

.erreci-link-btn--ghost {
  background: transparent;
  color: var(--erreci-primary);
  border: 1px solid rgba(0, 140, 47, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 140, 47, 0.08);
}

.erreci-link-btn--ghost:hover {
  color: #fff;
}

.erreci-concessionario-grid,
.erreci-servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.erreci-card {
  background: var(--erreci-surface);
  border: 1px solid var(--erreci-border);
  border-radius: 18px;
  padding: 1.05rem;
  box-shadow: var(--erreci-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.erreci-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--erreci-primary), rgba(0, 140, 47, 0.05) 72%);
}

.erreci-card h3 {
  margin-top: 0;
  font-size: 1.18rem;
  line-height: 1.05;
}

.erreci-card h3 a {
  text-decoration: none;
}

.erreci-card p:last-child {
  margin-bottom: 0;
}

.erreci-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(58, 56, 54, 0.16);
  border-color: #bfcabf;
}

.erreci-card-media {
  margin: -1rem -1rem 0.95rem;
  aspect-ratio: 5 / 3.6;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0, 140, 47, 0.14), transparent 28%),
    linear-gradient(180deg, #f7faf7, #edf2ee);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.erreci-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.erreci-card:hover .erreci-card-media img {
  transform: scale(1.04);
}

.erreci-card-media--placeholder {
  display: flex;
  align-items: end;
  padding: 1rem;
}

.erreci-card-media--placeholder span {
  display: inline-flex;
  max-width: 14ch;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 1.35rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: #2f4735;
}

.erreci-chip {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--erreci-soft-green);
  color: #0f5b2b;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.6rem 0;
  font-weight: 600;
}

.erreci-chip--service {
  background: #eceeea;
  color: #434845;
}

.erreci-chip--muted {
  background: #f0efec;
  color: #5b605c;
}

.erreci-home-hero,
.erreci-home-section,
.erreci-catalog-hero,
.erreci-service-hero,
.erreci-service-section {
  margin-bottom: 1.6rem;
}

.erreci-home-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 140, 47, 0.14), transparent 32%),
    linear-gradient(140deg, #faf9f6 0%, #f0f2ed 55%, #e4e8e1 100%);
  border: 1px solid #d7ddd5;
  border-radius: 22px;
  padding: clamp(1.4rem, 3.4vw, 2.5rem);
  box-shadow: var(--erreci-shadow);
  min-height: min(72vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.erreci-home-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 4vw, 2.6rem);
  top: clamp(1rem, 3vw, 2rem);
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 1;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(0, 140, 47, 0.14), rgba(58, 56, 54, 0.06)),
    radial-gradient(circle at center, rgba(255,255,255,0.65), transparent 60%);
  border: 1px solid rgba(0, 140, 47, 0.12);
  transform: rotate(8deg);
}

.erreci-service-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 140, 47, 0.12), transparent 35%),
    linear-gradient(140deg, #faf9f6 0%, #f2f4f0 60%, #e7ebe5 100%);
  border: 1px solid #d8ded7;
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--erreci-shadow);
}

.erreci-eyebrow,
.erreci-section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--erreci-primary);
}

.erreci-home-hero h1,
.erreci-catalog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  max-width: min(100%, 30ch);
  margin: 0;
}

.erreci-service-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1;
  max-width: min(100%, 42ch);
  margin: 0;
}

.erreci-home-hero h1,
.erreci-catalog-hero h1,
.erreci-service-hero h1,
.wp-block-post-content > h1:first-child {
  text-wrap: balance;
}

.wp-block-post-content > h1:first-child {
  max-width: min(100%, 30ch);
}

.erreci-hero-copy,
.erreci-catalog-hero p,
.erreci-service-hero > p:not(.erreci-eyebrow) {
  max-width: 78ch;
  font-size: 1.04rem;
  color: var(--erreci-muted);
}

.erreci-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.15rem;
  position: relative;
  z-index: 1;
}

.erreci-hero-highlights,
.erreci-sector-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.erreci-hero-highlights li,
.erreci-sector-list li {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9e2dc;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}

.erreci-home-section,
.erreci-catalog-hero,
.erreci-service-section {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dde1db;
  border-radius: 18px;
  padding: 1.3rem;
}

.erreci-service-section--catalog {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,247,0.96));
}

.erreci-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.86fr);
  gap: 1.2rem;
  align-items: stretch;
}

.erreci-about-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.erreci-about-hero__panel,
.erreci-about-note {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245, 248, 245, 0.94)),
    linear-gradient(135deg, rgba(0,140,47,0.08), transparent 55%);
  border: 1px solid #d7e1d9;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 16px 32px rgba(31, 44, 36, 0.06);
}

.erreci-about-hero__label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--erreci-primary);
}

.erreci-about-hero__panel h2,
.erreci-about-note h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.06;
}

.erreci-about-fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.erreci-about-fact-list li {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e1e8e2;
}

.erreci-about-fact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.erreci-about-fact-list strong {
  font-size: 0.94rem;
}

.erreci-about-fact-list span {
  color: var(--erreci-muted);
}

.erreci-about-metrics {
  padding: 1rem 1.2rem;
}

.erreci-about-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.erreci-about-metric {
  background: linear-gradient(180deg, #fff, #f7faf7);
  border: 1px solid #dfe5df;
  border-radius: 16px;
  padding: 1rem;
}

.erreci-about-metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--erreci-ink);
}

.erreci-about-metric span {
  color: var(--erreci-muted);
}

.erreci-about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1.1rem;
  align-items: start;
}

.erreci-about-split__main > :last-child,
.erreci-about-note > :last-child {
  margin-bottom: 0;
}

.erreci-about-note {
  position: relative;
  overflow: hidden;
}

.erreci-about-note::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 47, 0.12), transparent 68%);
}

.erreci-about-note .erreci-sector-list {
  gap: 0.55rem;
}

.erreci-about-note .erreci-sector-list li {
  background: rgba(255, 255, 255, 0.92);
  padding: 0.48rem 0.75rem;
}

.erreci-about-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.erreci-about-step {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,246,0.96));
  border: 1px solid #dfe6df;
  border-radius: 18px;
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.erreci-about-step::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -22px;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 140, 47, 0.08), rgba(58, 56, 54, 0.04));
  transform: rotate(14deg);
}

.erreci-about-step__index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(0, 140, 47, 0.1);
  color: var(--erreci-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.erreci-about-step h3 {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.erreci-about-step p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.erreci-about-values .erreci-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,249,247,0.96)),
    linear-gradient(135deg, rgba(0,140,47,0.08), transparent 65%);
}

.erreci-about-dual-lists {
  display: grid;
  gap: 1rem;
}

.erreci-about-dual-lists > div {
  background: #fff;
  border: 1px solid #e2e6e1;
  border-radius: 18px;
  padding: 1rem;
}


.erreci-kopa-index {
  margin: 0 0 1rem;
}

.erreci-kopa-category {
  padding: 1.35rem;
}

.erreci-kopa-category__intro {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.erreci-kopa-category__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid #dde1db;
}

.erreci-kopa-category__copy h2 {
  margin-top: 0;
}

.erreci-kopa-product-card .erreci-card-media {
  aspect-ratio: 16 / 10;
}

.erreci-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e5e3;
  border-radius: 14px;
  background: #fff;
  margin: 0.85rem 0 1rem;
}

.erreci-data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.erreci-data-table th,
.erreci-data-table td {
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid #e7ebe7;
  text-align: left;
  vertical-align: top;
}

.erreci-data-table thead th {
  background: #f4f7f3;
  color: var(--erreci-muted);
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erreci-data-table tbody tr:nth-child(even) td {
  background: #fbfcfb;
}

.erreci-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.erreci-home-band,
.erreci-home-cta {
  background: linear-gradient(135deg, #2d2b2a 0%, #3a3836 50%, #1d6a34 100%);
  color: #fff;
}

.erreci-home-band .erreci-link-btn,
.erreci-home-cta .erreci-link-btn {
  background: #ffffff;
  color: var(--erreci-ink);
}

.erreci-home-band .erreci-link-btn--ghost,
.erreci-home-cta .erreci-link-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.26);
  box-shadow: none;
}

.erreci-home-band h2,
.erreci-home-cta h2,
.erreci-home-band p,
.erreci-home-cta p {
  color: inherit;
}

.erreci-home-band .erreci-section-kicker,
.erreci-home-cta .erreci-section-kicker {
  color: #91d0a3;
}

.erreci-section-heading {
  margin-bottom: 1rem;
}

.erreci-home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.erreci-category-card {
  text-decoration: none;
  color: var(--erreci-text);
  min-height: 170px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 244, 239, 0.94)),
    linear-gradient(135deg, rgba(0,140,47,0.08), transparent 55%);
}

.erreci-category-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.erreci-category-card span {
  color: var(--erreci-muted);
}

.erreci-service-card {
  min-height: 220px;
}

.page .wp-block-post-content > .erreci-service-hero:first-child,
.page .wp-block-post-content > .erreci-home-hero:first-child,
.page .wp-block-post-content > .erreci-catalog-hero:first-child {
  margin-top: 0;
}

.page .wp-block-post-content > .erreci-service-section > p:last-child,
.page .wp-block-post-content > .erreci-home-section > p:last-child {
  margin-bottom: 0;
}

body.blog main.wp-block-group,
body.archive main.wp-block-group,
body.search main.wp-block-group {
  max-width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 1.6rem 0;
}

body.blog .wp-block-query,
body.archive .wp-block-query,
body.search .wp-block-query {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dde1db;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--erreci-shadow);
}

body.blog .wp-block-post-template,
body.archive .wp-block-post-template,
body.search .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

body.blog .wp-block-post,
body.archive .wp-block-post,
body.search .wp-block-post {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,244,239,0.94)),
    linear-gradient(135deg, rgba(0,140,47,0.08), transparent 55%);
  border: 1px solid #dde1db;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 22px rgba(58, 56, 54, 0.08);
}

body.blog .wp-block-post-title,
body.archive .wp-block-post-title,
body.search .wp-block-post-title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.02;
  margin-bottom: 0.75rem;
}

body.blog .wp-block-post-title a,
body.archive .wp-block-post-title a,
body.search .wp-block-post-title a {
  color: var(--erreci-text);
  text-decoration: none;
}

body.blog .wp-block-post-excerpt,
body.archive .wp-block-post-excerpt,
body.search .wp-block-post-excerpt {
  color: var(--erreci-muted);
}

body.blog .wp-block-query-pagination,
body.archive .wp-block-query-pagination,
body.search .wp-block-query-pagination {
  margin-top: 1rem;
  justify-content: center;
}

.erreci-quick-categories {
  margin-bottom: 1rem;
}

.erreci-quick-categories__label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--erreci-muted);
}

.erreci-quick-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.erreci-quick-category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d6dad4;
  background: #fff;
  color: var(--erreci-text);
  text-decoration: none;
  padding: 0.48rem 0.78rem;
  font-weight: 600;
}

.erreci-quick-category.is-active,
.erreci-quick-category:hover {
  border-color: var(--erreci-primary);
  color: var(--erreci-primary);
}

.erreci-results-summary {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--erreci-muted);
  font-size: 0.95rem;
}

.erreci-product-page {
  background: var(--erreci-surface);
  border: 1px solid var(--erreci-border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: var(--erreci-shadow);
}

.erreci-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--erreci-muted);
  font-size: 0.92rem;
}

.erreci-product-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.erreci-product-breadcrumbs a:hover {
  color: var(--erreci-primary);
}

.erreci-product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-bottom: 1.35rem;
}

.erreci-product-hero__media,
.erreci-product-hero__copy {
  background: linear-gradient(180deg, #fff, #f5f5f1);
  border: 1px solid #dde1db;
  border-radius: 20px;
  overflow: hidden;
}

.erreci-product-hero__media {
  min-height: 360px;
}

.erreci-product-hero__media .erreci-card-media {
  margin: 0;
  height: 100%;
  aspect-ratio: auto;
}

.erreci-product-hero__media .erreci-card-media img,
.erreci-product-hero__image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.erreci-product-hero__copy {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.erreci-product-hero__copy h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 0.96;
}

.erreci-product-summary {
  margin: 0.3rem 0 1rem;
  color: var(--erreci-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.erreci-product-header .erreci-subtitle,
.erreci-product-hero__copy .erreci-subtitle {
  color: var(--erreci-muted);
  margin-top: -0.2rem;
  font-size: 1.05rem;
}

.erreci-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.45rem 0 1rem;
}

.erreci-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.erreci-gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--erreci-border);
}

.erreci-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  background: #f7f8f7;
  border: 1px solid #e2e5e3;
  border-radius: 10px;
  padding: 0.9rem;
}

.erreci-spec-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
  gap: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e2e5e3;
}

.erreci-spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.erreci-spec-list strong {
  color: var(--erreci-text);
}

.erreci-spec-list span {
  color: var(--erreci-muted);
}

.prodotto-singolo {
  padding-top: 1.1rem;
}

.erreci-product-page {
  padding: 1.4rem;
}

.erreci-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
  gap: 1.4rem;
  align-items: start;
}

.erreci-product-main,
.erreci-product-side {
  display: grid;
  gap: 1rem;
}

.erreci-product-main section,
.erreci-product-side section,
.erreci-product-cta {
  background: linear-gradient(180deg, #fff, #f5f5f1);
  border: 1px solid #dde1db;
  border-radius: 16px;
  padding: 1rem;
}

.erreci-product-copy {
  font-size: 1.03rem;
  line-height: 1.7;
}

.erreci-product-copy h3 {
  margin: 1.15rem 0 0.5rem;
}

.erreci-product-copy h2,
.erreci-product-main section > h2,
.erreci-product-side section > h2,
.erreci-product-cta h2 {
  margin-top: 0;
}

.erreci-product-side {
  position: sticky;
  top: 108px;
}

.erreci-product-docs {
  display: grid;
  gap: 0.8rem;
}

.erreci-product-docs p {
  margin: 0;
}

.erreci-product-cta {
  background: linear-gradient(180deg, #f4fbf6, #edf6ef);
  border-color: rgba(0, 140, 47, 0.18);
}

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

.erreci-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.entry-content details {
  background: #fff;
  border: 1px solid #dde2dc;
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.entry-content details + details {
  margin-top: 0.75rem;
}

.entry-content summary {
  cursor: pointer;
  font-weight: 700;
}

.preventivo-form {
  background: linear-gradient(180deg, #ffffff, #f5f4f1);
  border: 1px solid var(--erreci-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--erreci-shadow);
}

.preventivo-form input[type="text"],
.preventivo-form input[type="email"],
.preventivo-form textarea,
.preventivo-form select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--erreci-border);
  border-radius: 8px;
  font-family: "Barlow", sans-serif;
}

.wp-block-site-info,
.site-info {
  display: none !important;
}

.erreci-custom-footer {
  margin-top: 2rem;
  background:
    linear-gradient(135deg, #2e2c2b 0%, #393735 55%, #177038 100%);
  color: #f5f7f6;
  padding: 1.4rem 1rem 1rem;
}

.erreci-custom-footer__inner {
  max-width: min(1520px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) minmax(220px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.erreci-custom-footer h2,
.erreci-custom-footer p,
.erreci-custom-footer a {
  color: inherit;
}

.erreci-custom-footer__brand h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.erreci-custom-footer__nav {
  display: grid;
  gap: 0.55rem;
}

.erreci-custom-footer__nav a {
  text-decoration: none;
  font-weight: 600;
}

.erreci-custom-footer__nav a:hover {
  color: #97d2aa;
}

.erreci-custom-footer__contacts p {
  margin-top: 0;
}

.erreci-footer-legal {
  text-align: center;
  max-width: min(1520px, calc(100vw - 48px));
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #d7ddd9;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1280px) {
  .erreci-home-hero h1,
  .erreci-catalog-hero h1 {
    max-width: min(100%, 34ch);
  }

  .erreci-service-hero h1,
  .wp-block-post-content > h1:first-child {
    max-width: min(100%, 48ch);
  }

  .erreci-hero-copy,
  .erreci-catalog-hero p,
  .erreci-service-hero > p:not(.erreci-eyebrow) {
    max-width: 88ch;
  }
}

@media (max-width: 920px) {
  .erreci-about-hero,
  .erreci-about-split,
  .erreci-about-metric-grid,
  .erreci-about-process {
    grid-template-columns: 1fr;
  }

  .erreci-kopa-category__intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 1rem;
  }

  .erreci-home-hero h1,
  .erreci-catalog-hero h1,
  .erreci-service-hero h1,
  .wp-block-post-content > h1:first-child {
    max-width: none;
  }

  .wp-block-site-title a {
    width: min(62vw, 280px);
    height: 58px;
  }

  .erreci-home-hero::after {
    display: none;
  }

  .erreci-custom-footer__inner {
    grid-template-columns: 1fr;
  }

  .erreci-about-hero__panel,
  .erreci-about-note,
  .erreci-about-dual-lists > div,
  .erreci-about-metric,
  .erreci-about-step {
    padding: 1rem;
  }

  .erreci-has-kopa-logo header.wp-block-template-part .wp-block-page-list > li:last-child > a[href*="/kopa-oven/"] {
    width: 100px;
    min-height: 32px;
  }

  .erreci-product-hero {
    grid-template-columns: 1fr;
  }

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

  .erreci-product-side {
    position: static;
  }

  main.wp-block-group.is-layout-constrained,
  .site-main,
  .wp-block-group.alignwide,
  .wp-block-group.is-layout-constrained,
  .wp-block-post-content.is-layout-constrained,
  .wp-block-post-title,
  .erreci-custom-footer__inner,
  .erreci-footer-legal {
    max-width: calc(100vw - 24px);
  }
}
