/* E20 Events Factory — theme.css
 * Layout, marquee, asymmetric grids, hover overlays, pill buttons.
 * Tokens come from theme.json (--wp--preset--*).
 */

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  color: var(--wp--preset--color--body-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--wp--preset--font-family--display), serif;
  color: var(--wp--preset--color--heading);
  font-weight: 400;
}

a {
  transition: color 0.2s ease;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 8px 0;
}

.site-header > .wp-block-group.alignwide {
  max-width: 1290px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-dark);
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent);
}

.site-header .wp-block-site-logo,
.site-header .wp-block-site-logo a {
  display: inline-block;
}

.site-header .wp-block-site-logo img {
  max-height: 52px;
  width: auto;
  height: auto;
}

.e20-header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--wp--preset--color--text-dark);
}

.e20-header-social a:hover {
  color: var(--wp--preset--color--accent);
}

/* ---------- Pill buttons ---------- */

.e20-btn-pill .wp-block-button__link {
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--text-dark);
  background: transparent;
  color: var(--wp--preset--color--text-dark);
  padding: 14px 32px;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.e20-btn-pill .wp-block-button__link:hover {
  background: var(--wp--preset--color--text-dark);
  color: var(--wp--preset--color--base);
}

.e20-btn-pill.is-on-dark .wp-block-button__link {
  border-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--base);
}

.e20-btn-pill.is-on-dark .wp-block-button__link:hover {
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--text-dark);
}

.e20-btn-gold .wp-block-button__link {
  border-radius: 999px;
  background: var(--wp--preset--color--accent);
  border: 1px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  padding: 14px 32px;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.e20-btn-gold .wp-block-button__link:hover {
  background: var(--wp--preset--color--accent-warm);
  border-color: var(--wp--preset--color--accent-warm);
  color: var(--wp--preset--color--base);
}

/* ---------- Eyebrow ---------- */

.e20-eyebrow {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 16px;
}

.is-on-dark .e20-eyebrow {
  color: var(--wp--preset--color--accent);
}

/* ---------- Hero ---------- */

.e20-hero {
  padding: 80px 0 120px;
  background: var(--wp--preset--color--base);
  position: relative;
  overflow: hidden;
}

.e20-hero__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.e20-hero__text {
  position: relative;
  z-index: 2;
}

.e20-hero__title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--wp--preset--color--heading);
  margin: 24px 0 32px;
}

.e20-hero__lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--wp--preset--color--body-text);
  max-width: 480px;
}

.e20-hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.e20-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.e20-hero__media .e20-hero__img--lead {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 9;
}

.e20-hero__media .e20-hero__img--a {
  aspect-ratio: 3 / 4;
}
.e20-hero__media .e20-hero__img--b {
  aspect-ratio: 3 / 4;
}

.e20-hero__cta {
  margin-top: 40px;
}

.e20-hero__btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--heading);
  background: transparent;
  color: var(--wp--preset--color--heading);
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.e20-hero__btn:hover {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
}

.e20-hero__scroll {
  position: absolute;
  bottom: -40px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-dark);
  text-decoration: none;
}

.e20-hero__scroll::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 1px solid var(--wp--preset--color--accent);
  border-radius: 50%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E8B500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>")
    center center no-repeat;
  animation: e20-bounce 1.6s ease-in-out infinite;
}

@keyframes e20-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 900px) {
  .e20-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .e20-hero__scroll {
    display: none;
  }
}

/* ---------- About hero (Chi siamo group photo) ---------- */

.e20-about-hero {
  margin: 0;
  padding: 0 24px;
}
.e20-about-hero__figure {
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
}
.e20-about-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 32%;
}

/* ---------- Hero compact (inner pages) ---------- */

.e20-hero-compact {
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 100px 24px 80px;
  text-align: center;
}

.e20-hero-compact h1 {
  font-size: clamp(40px, 5vw, 57px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 16px 0 0;
}

/* ---------- Client logos strip ---------- */

.e20-clients {
  padding: 60px 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.e20-clients__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.e20-clients__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 40px;
  align-items: center;
  justify-items: center;
}

.e20-clients__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}

img.e20-client-logo {
  max-height: 200px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.e20-clients__link {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--text-dark);
  padding-bottom: 4px;
}

.e20-clients__link:hover {
  color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

@media (max-width: 1100px) {
  .e20-clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .e20-clients__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .e20-clients__cell {
    min-height: 140px;
  }
  img.e20-client-logo {
    max-height: 140px;
    max-width: 140px;
  }
}

@media (max-width: 420px) {
  .e20-clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- About / Welcome ---------- */

.e20-about {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-about__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.e20-about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.e20-about__media .e20-about__img-a {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.e20-about__media .e20-about__img-b {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.e20-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.e20-about__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.e20-about__play::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 24 24' fill='%23221F1E'><path d='M8 5v14l11-7z'/></svg>");
  background-repeat: no-repeat;
  background-position: 55% 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.e20-about__title {
  font-size: clamp(36px, 4vw, 47px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--wp--preset--color--heading);
  margin: 16px 0 24px;
}

.e20-about__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 32px;
}

.e20-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.e20-checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--wp--preset--color--text-dark);
  line-height: 1.6;
}

.e20-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23941d81' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>")
    no-repeat center;
}

.e20-about__origins {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 8px 0 32px;
}
.e20-about__origins-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-dark);
  opacity: 0.55;
}
.e20-about__origins-logos {
  display: flex;
  align-items: center;
  gap: 72px;
  flex-wrap: wrap;
}
.e20-about__origins-logos img {
  max-height: 180px;
  max-width: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .e20-about__origins-logos {
    gap: 40px;
  }
  .e20-about__origins-logos img {
    max-height: 120px;
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .e20-about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .e20-about__media .e20-about__img-b {
    margin-top: 0;
  }
  .e20-about__origins {
    align-items: center;
    text-align: center;
  }
  .e20-about__origins-logos {
    justify-content: center;
  }
}

/* ---------- Services list (numbered rows) ---------- */

.e20-services-list {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-services-list__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-services-list__head {
  margin-bottom: 64px;
  max-width: 720px;
}

.e20-services-list__head h2 {
  font-size: clamp(36px, 4vw, 47px);
  letter-spacing: -1px;
  line-height: 1.1;
}

.e20-services-list__rows {
  border-top: 1px solid var(--wp--preset--color--border);
}

.e20-services-list__row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.e20-services-list__row:hover {
  transform: translateX(8px);
}

.e20-services-list__row .num {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 28px;
  color: var(--wp--preset--color--text-light);
}

.e20-services-list__row .title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(24px, 2.5vw, 35px);
  color: var(--wp--preset--color--heading);
  letter-spacing: -0.5px;
}

.e20-services-list__row .desc {
  font-size: 15px;
  color: var(--wp--preset--color--body-text);
  line-height: 1.6;
}

.e20-services-list__row .arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23221F1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'></line><polyline points='12 5 19 12 12 19'></polyline></svg>")
    center center no-repeat;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.e20-services-list__row:hover .arrow {
  background-color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  transform: translateX(4px);
}

@media (max-width: 800px) {
  .e20-services-list__row {
    grid-template-columns: 60px 1fr 44px;
  }
  .e20-services-list__row .desc {
    display: none;
  }
}

/* ---------- Testimonials ---------- */

.e20-testimonials {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
  text-align: center;
}

.e20-testimonials__inner {
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.e20-testimonials__head h2 {
  font-size: clamp(36px, 4vw, 47px);
  letter-spacing: -1px;
  margin-bottom: 64px;
}

.e20-testimonials__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.e20-testimonials__track::-webkit-scrollbar {
  display: none;
}

.e20-testimonials__slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.e20-testimonials__quote {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  color: var(--wp--preset--color--heading);
  max-width: 760px;
  margin: 0 auto 40px;
}

.e20-testimonials__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.e20-testimonials__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wp--preset--color--border);
  overflow: hidden;
}

.e20-testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e20-testimonials__name {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 19px;
  color: var(--wp--preset--color--heading);
}

.e20-testimonials__location {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-light);
}

.e20-testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.e20-testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--border);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.e20-testimonials__btn:hover {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

.e20-testimonials__btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--wp--preset--color--text-dark);
}
.e20-testimonials__btn:hover svg {
  stroke: var(--wp--preset--color--base);
}

.e20-testimonials__dots {
  display: inline-flex;
  gap: 8px;
}

.e20-testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wp--preset--color--border);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s;
}

.e20-testimonials__dot.is-active {
  background: var(--wp--preset--color--accent);
}

/* ---------- Marquee ---------- */

.e20-marquee {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
  padding: 32px 0;
  overflow: hidden;
  white-space: nowrap;
}

.e20-marquee__track {
  display: inline-flex;
  animation: e20-marquee 35s linear infinite;
  will-change: transform;
}

.e20-marquee__track:hover {
  animation-play-state: paused;
}

.e20-marquee__item {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -1px;
  padding: 0 32px;
  color: var(--wp--preset--color--base);
}

.e20-marquee__sep {
  color: var(--wp--preset--color--accent);
  padding: 0 16px;
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(40px, 6vw, 80px);
}

@keyframes e20-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- Awards / Portfolio ---------- */

.e20-awards {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
  padding: 120px 0;
}

.e20-awards__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-awards__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.e20-awards__head .e20-eyebrow {
  color: var(--wp--preset--color--accent);
}

.e20-awards__title {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--wp--preset--color--base);
  margin: 0;
}

.e20-awards__body {
  font-size: 16px;
  color: var(--wp--preset--color--text-light);
  line-height: 1.7;
  margin: 0;
}

.e20-awards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.e20-awards__grid .e20-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--wp--preset--color--base);
  aspect-ratio: 4 / 5;
}

.e20-awards__grid .e20-card--wide {
  grid-column: span 2;
  aspect-ratio: 8 / 5;
}

.e20-awards__grid .e20-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.e20-awards__grid .e20-card:hover img {
  transform: scale(1.04);
}

.e20-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.75) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.35s ease;
}

.e20-awards__grid .e20-card:hover .e20-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.e20-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.e20-awards__grid .e20-card:hover .e20-card__inner {
  transform: translateY(0);
}

.e20-card__title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--wp--preset--color--base);
  margin: 0;
}

.e20-card__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'></line><polyline points='12 5 19 12 12 19'></polyline></svg>")
    center center no-repeat;
  flex-shrink: 0;
  transition:
    background-color 0.35s,
    border-color 0.35s,
    transform 0.35s;
}

.e20-awards__grid .e20-card:hover .e20-card__arrow {
  background-color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .e20-awards__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .e20-awards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .e20-awards__grid .e20-card--wide {
    grid-column: span 2;
  }
}

/* ---------- Stats ---------- */

.e20-stats {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.e20-stats__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.e20-stats__item {
  text-align: center;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.e20-stats__item:first-child {
  border-left: 0;
}

.e20-stats__num {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--wp--preset--color--base);
  margin-bottom: 16px;
  display: block;
}

.e20-stats__label {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-light);
}

@media (max-width: 800px) {
  .e20-stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .e20-stats__item:nth-child(3) {
    border-left: 0;
  }
}

/* ---------- Blog 2-card ---------- */

.e20-blog {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-blog__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-blog__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 0 0 64px;
}

.e20-blog__head > h2,
.e20-blog__head > p {
  margin: 0;
}

.e20-blog__head h2 {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.e20-blog__head p {
  font-size: 16px;
  color: var(--wp--preset--color--body-text);
  line-height: 1.7;
}

.e20-blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.e20-blog__card {
  text-decoration: none;
  color: inherit;
}

.e20-blog__card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
}

.e20-blog__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.e20-blog__card:hover .e20-blog__card-media img {
  transform: scale(1.05);
}

.e20-blog__card-date {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  padding: 6px 12px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.e20-blog__card-title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--wp--preset--color--heading);
  margin: 0;
}

.e20-blog__card:hover .e20-blog__card-title {
  color: var(--wp--preset--color--accent);
}

@media (max-width: 800px) {
  .e20-blog__head,
  .e20-blog__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Big CTA ---------- */

.e20-cta-big {
  padding: 140px 24px;
  text-align: center;
  background: var(--wp--preset--color--base);
}

.e20-cta-big__inner {
  max-width: 760px;
  margin: 0 auto;
}

.e20-cta-big h2 {
  font-size: clamp(36px, 5vw, 57px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 16px 0 40px;
}

/* ---------- Instagram ---------- */

.e20-instagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.e20-instagram .e20-ig-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.e20-instagram .e20-ig-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.e20-instagram .e20-ig-tile:hover img {
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .e20-instagram {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Agenda (alternating event rows) ---------- */

.e20-agenda {
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--body-text);
  padding: 120px 0;
}

.e20-agenda__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-agenda__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 96px;
}

.e20-agenda__head h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--wp--preset--color--heading);
  margin: 16px 0 24px;
}

.e20-agenda__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--wp--preset--color--body-text);
  margin: 0;
}

.e20-agenda__list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.e20-agenda__row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.e20-agenda__row.is-reversed {
  direction: rtl;
}
.e20-agenda__row.is-reversed > * {
  direction: ltr;
}

.e20-agenda__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wp--preset--color--border);
}

.e20-agenda__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.e20-agenda__media:hover img {
  transform: scale(1.05);
}

.e20-agenda__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.e20-agenda__play::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 24 24' fill='%23221F1E'><path d='M8 5v14l11-7z'/></svg>");
  background-repeat: no-repeat;
  background-position: 55% 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.e20-agenda__body {
  padding: 0 16px;
}

.e20-agenda__date {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.e20-agenda__date .e20-agenda__day {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--wp--preset--color--heading);
  line-height: 1;
}

.e20-agenda__date .e20-agenda__sep {
  color: var(--wp--preset--color--text-light);
  font-weight: 300;
}

.e20-agenda__date .e20-agenda__month {
  color: var(--wp--preset--color--accent);
}

.e20-agenda__date .e20-agenda__year {
  color: var(--wp--preset--color--text-light);
  font-weight: 400;
}

.e20-agenda__title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 24px;
}

.e20-agenda__title a {
  color: var(--wp--preset--color--heading);
  text-decoration: none;
  transition: color 0.25s ease;
}

.e20-agenda__title a:hover {
  color: var(--wp--preset--color--accent);
}

.e20-agenda__excerpt {
  font-size: 17px;
  line-height: 1.75;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 32px;
  max-width: 480px;
}

.e20-agenda__link {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--wp--preset--color--accent);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.e20-agenda__link:hover {
  color: var(--wp--preset--color--heading);
  border-color: var(--wp--preset--color--heading);
  transform: translateX(4px);
}

.e20-agenda__empty {
  text-align: center;
  color: var(--wp--preset--color--body-text);
  font-size: 17px;
}

@media (max-width: 900px) {
  .e20-agenda__list {
    gap: 64px;
  }
  .e20-agenda__row,
  .e20-agenda__row.is-reversed {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  .e20-agenda__body {
    padding: 0;
  }
}

/* ---------- Calendar (CPT cards) ---------- */

.e20-calendar {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
  padding: 120px 0;
}

.e20-calendar__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-calendar__head {
  margin-bottom: 64px;
  max-width: 720px;
}

.e20-calendar__head h2 {
  font-size: clamp(36px, 4vw, 57px);
  letter-spacing: -1.5px;
  color: var(--wp--preset--color--base);
}

.e20-calendar__grid-wrap {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-calendar .wp-block-query > .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.e20-calendar .wp-block-post {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.e20-calendar .wp-block-post:hover {
  background: rgba(232, 181, 0, 0.08);
  border-color: var(--wp--preset--color--accent);
}

.e20-calendar .wp-block-post-date {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  padding: 10px 18px;
  border: 1px solid rgba(232, 181, 0, 0.5);
  border-radius: 999px;
  margin: 0;
}

.e20-calendar .wp-block-post-title,
.e20-calendar .wp-block-post-title a {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--wp--preset--color--base);
  text-decoration: none;
  margin: 0;
}

.e20-calendar .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

.e20-calendar .wp-block-post-excerpt__excerpt,
.e20-calendar .wp-block-post-excerpt p {
  color: var(--wp--preset--color--text-light);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

.e20-calendar .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.e20-calendar .wp-block-post-excerpt__more-link:hover {
  color: var(--wp--preset--color--base);
}

@media (max-width: 900px) {
  .e20-calendar .wp-block-query > .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* ---------- Partners (founder cards) ---------- */

.e20-partners {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-partners__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-partners__head {
  text-align: center;
  margin-bottom: 80px;
}

.e20-partners__head h2 {
  font-size: clamp(36px, 4vw, 57px);
  letter-spacing: -1.5px;
  margin: 16px 0 0;
}

.e20-partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.e20-partners__card {
  text-align: center;
}

.e20-partners__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
}

.e20-partners__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e20-partners__name {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--wp--preset--color--heading);
  margin: 0 0 8px;
}

.e20-partners__role {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 16px;
}

.e20-partners__bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 20px;
}

.e20-partners__avatar {
  display: block;
  transition: transform 0.4s ease;
}

.e20-partners__avatar:hover {
  transform: scale(1.03);
}

.e20-partners__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.e20-partners__name a:hover {
  color: var(--wp--preset--color--accent);
}

.e20-partners__more {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--wp--preset--color--accent);
  transition:
    color 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.e20-partners__more:hover {
  color: var(--wp--preset--color--heading);
  border-color: var(--wp--preset--color--heading);
  transform: translateX(4px);
}

/* ---------- Profile (single partner page) ---------- */

.e20-profile {
  padding: 80px 0 120px;
  background: var(--wp--preset--color--base);
}

.e20-profile__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.e20-profile__side {
  position: sticky;
  top: 120px;
  text-align: left;
}

.e20-profile__avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 32px;
}

.e20-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e20-profile__role {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wp--preset--color--text-light);
  margin: 0 0 24px;
}

.e20-profile__back {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.e20-profile__back:hover {
  border-bottom-color: var(--wp--preset--color--accent);
}

.e20-profile__bio p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 24px;
}

.e20-profile__bio p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--display), serif;
  /* Drop cap must span exactly 2 body line-boxes (body p = 17px × 1.8 = 30.6px,
     so 2 lines = 61.2px). The float box height = font-size × line-height; at
     55 × 1.05 = 57.8px it clears the 3rd line with ~3px margin (verified in
     Chrome + Firefox). Larger boxes (≥61.6px) bump the 3rd line. */
  font-size: 55px;
  line-height: 1.05;
  float: left;
  padding: 0 12px 0 0;
  color: var(--wp--preset--color--heading);
}

@media (max-width: 900px) {
  .e20-profile__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .e20-profile__side {
    position: static;
    text-align: center;
  }
  .e20-profile__avatar {
    margin: 0 auto 24px;
  }
}

@media (max-width: 900px) {
  .e20-partners__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact block ---------- */

.e20-contact {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-contact__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.e20-contact h2 {
  font-size: clamp(36px, 4vw, 47px);
  letter-spacing: -1px;
  margin: 16px 0 32px;
}

.e20-contact .wpcf7-form p {
  margin-bottom: 16px;
}

.e20-contact .wpcf7-form input[type="text"],
.e20-contact .wpcf7-form input[type="email"],
.e20-contact .wpcf7-form input[type="tel"],
.e20-contact .wpcf7-form textarea,
.e20-contact .wpcf7-form select {
  width: 100%;
  border: 1px solid var(--wp--preset--color--border);
  background: transparent;
  padding: 14px 16px;
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 15px;
  color: var(--wp--preset--color--text-dark);
  border-radius: 0;
  box-sizing: border-box;
}

.e20-contact .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2328265b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  padding-right: 44px;
  cursor: pointer;
  line-height: 1.4;
}

.e20-contact .wpcf7-form select::-ms-expand {
  display: none;
}

.e20-contact .wpcf7-form input:focus,
.e20-contact .wpcf7-form textarea:focus,
.e20-contact .wpcf7-form select:focus {
  outline: 0;
  border-color: var(--wp--preset--color--accent);
}

.e20-contact .wpcf7-form input[type="submit"] {
  background: var(--wp--preset--color--accent);
  border: 1px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}

.e20-contact .wpcf7-form input[type="submit"]:hover {
  background: var(--wp--preset--color--accent-warm);
  color: var(--wp--preset--color--base);
}

.e20-contact__info p {
  color: var(--wp--preset--color--body-text);
  margin: 4px 0;
}
.e20-contact__info h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .e20-contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
  padding: 80px 24px 40px;
  text-align: center;
}

.site-footer .wp-block-site-logo img {
  filter: brightness(0) invert(1);
  max-height: 52px;
  width: auto;
  height: auto;
  margin: 16px auto;
}

.site-footer .wp-block-social-links a {
  color: var(--wp--preset--color--base);
}
.site-footer .wp-block-social-links a:hover {
  color: var(--wp--preset--color--accent);
}

.site-footer__sep {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 32px auto;
  max-width: 1290px;
}

.site-footer__copy,
.site-footer__copy a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

.site-footer__copy a:hover {
  color: var(--wp--preset--color--accent);
}

.site-footer__legal,
.site-footer__legal a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

.site-footer__legal {
  margin-top: 10px;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--wp--preset--color--accent);
  outline: none;
}

.site-footer__credit {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--base);
  opacity: 0.55;
  margin-top: 12px;
}
.site-footer__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}
.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--wp--preset--color--accent);
  border-bottom-color: var(--wp--preset--color--accent);
  opacity: 1;
  outline: none;
}

/* ---------- Generic section utilities ---------- */

.e20-section {
  padding: 80px 0;
}

.e20-section--dark {
  background: var(--wp--preset--color--surface-dark);
  color: var(--wp--preset--color--base);
}

.e20-container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.e20-section-head h2 {
  font-size: clamp(36px, 4vw, 57px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
}

.e20-section-head p {
  font-size: 16px;
  color: var(--wp--preset--color--body-text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 800px) {
  .e20-section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Single post (press / evento) ---------- */

.e20-post-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 62vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: flex-end;
  color: var(--wp--preset--color--base);
}

.e20-post-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.e20-post-hero__eyebrow {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin: 0 0 24px;
}

.e20-post-hero__title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--wp--preset--color--base);
  margin: 0 0 24px;
}

.e20-post-hero__date {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.e20-post-body {
  padding: 80px 24px 120px;
  background: var(--wp--preset--color--base);
}

.e20-post-body > .wp-block-post-content,
.e20-post-body .wp-block-post-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.e20-post-body .wp-block-post-content p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 24px;
}

.e20-post-body .wp-block-post-content p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 72px;
  line-height: 1;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--wp--preset--color--heading);
}

.e20-post-body .wp-block-post-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1px;
  margin: 48px 0 16px;
  color: var(--wp--preset--color--heading);
}

.e20-post-body .wp-block-post-content h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.5px;
  margin: 32px 0 12px;
  color: var(--wp--preset--color--heading);
}

.e20-post-body .wp-block-post-content blockquote {
  border-left: 3px solid var(--wp--preset--color--accent);
  padding: 8px 0 8px 32px;
  margin: 32px 0;
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--wp--preset--color--heading);
}

.e20-post-body .wp-block-image {
  margin: 32px 0;
}

/* Event-specific: venue line + gallery */

.e20-post-body .wp-block-post-content p.e20-evt-venue {
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 16px 0;
  margin: 0 0 32px;
}

.e20-post-body .wp-block-post-content p.e20-evt-venue::first-letter {
  font-family: inherit;
  font-size: inherit;
  float: none;
  padding: 0;
  color: inherit;
}

.e20-post-body .wp-block-post-content h3.e20-evt-gallery-head {
  margin-top: 64px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1px;
}

.e20-post-body .wp-block-post-content > .e20-evt-gallery,
.e20-post-body .e20-evt-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.e20-post-body .e20-evt-gallery__cell {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--wp--preset--color--border);
}

.e20-post-body .e20-evt-gallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.e20-post-body .e20-evt-gallery__cell:hover img {
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .e20-post-body .e20-evt-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.e20-post-body .e20-evt-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 2rem;
}

.e20-post-body .e20-evt-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Service detail (event type pages) ---------- */

.e20-detail {
  padding: 80px 0 120px;
  background: var(--wp--preset--color--base);
}

.e20-detail__inner {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-detail__hero {
  margin: 0 0 64px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.e20-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.e20-detail__content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.e20-detail__content > div + div {
  padding-top: 0;
}

.e20-detail__lede {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--wp--preset--color--heading);
  letter-spacing: -0.5px;
  margin: 0;
}

.e20-detail__title {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--wp--preset--color--heading);
  margin: 8px 0 32px;
}

.e20-detail__sub {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--wp--preset--color--heading);
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}

.e20-detail__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--wp--preset--color--body-text);
  margin: 32px 0 0;
}

.e20-detail__left {
  padding-top: 8px;
}

@media (max-width: 900px) {
  .e20-detail__content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .e20-detail__hero {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Intro (chi-siamo) ---------- */

.e20-intro {
  padding: 120px 0;
  background: var(--wp--preset--color--base);
}

.e20-intro__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.e20-intro__title {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--wp--preset--color--heading);
  margin: 16px 0 12px;
}

/* Subtitle below the split Chi Siamo title ("Un'agenzia che racconta storie.").
   Sized between title and body, muted, in the display serif to echo the title. */
.e20-intro__subtitle {
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--wp--preset--color--text-light);
  margin: 0 0 32px;
}

.e20-intro__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--wp--preset--color--body-text);
  margin: 0 0 20px;
}

/* ---------- Burger + off-canvas drawer ---------- */

.e20-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.e20-burger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp--preset--color--text-dark);
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

body.e20-drawer-open .e20-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.e20-drawer-open .e20-burger__bar:nth-child(2) {
  opacity: 0;
}

body.e20-drawer-open .e20-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.e20-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.e20-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.e20-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 63, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.e20-drawer.is-open .e20-drawer__backdrop {
  opacity: 1;
}

.e20-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--wp--preset--color--base);
  padding: 88px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.e20-drawer.is-open .e20-drawer__panel {
  transform: translateX(0);
}

.e20-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 50%;
  background: transparent;
  color: var(--wp--preset--color--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.e20-drawer__close:hover {
  background: var(--wp--preset--color--text-dark);
  border-color: var(--wp--preset--color--text-dark);
  color: var(--wp--preset--color--base);
}

.e20-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.e20-drawer__nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--wp--preset--font-family--display), serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--heading);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.e20-drawer__nav a:hover {
  color: var(--wp--preset--color--accent);
  padding-left: 8px;
}

.e20-drawer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--body), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease;
}

.e20-drawer__cta:hover {
  background: var(--wp--preset--color--accent-warm);
  color: var(--wp--preset--color--base);
}

.e20-drawer__social {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--wp--preset--color--border);
}

.e20-drawer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--wp--preset--color--text-dark);
  transition: color 0.25s ease;
}

.e20-drawer__social a:hover {
  color: var(--wp--preset--color--accent);
}

body.e20-drawer-open {
  overflow: hidden;
}

/* ---------- Header breakpoint (<= 1100px) ---------- */

@media (max-width: 1100px) {
  /* Header: hide desktop nav + social + CTA, show burger */
  .site-header .wp-block-navigation,
  .site-header .e20-header-social,
  .site-header .e20-btn-gold {
    display: none !important;
  }

  .e20-burger {
    display: inline-flex;
  }
}

/* ---------- Mobile breakpoints (<= 900px) ---------- */

@media (max-width: 900px) {
  .site-header > .wp-block-group.alignwide {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Generic container padding */
  .e20-hero__inner,
  .e20-about__inner,
  .e20-services-list__inner,
  .e20-testimonials__inner,
  .e20-awards__inner,
  .e20-stats__inner,
  .e20-blog__inner,
  .e20-calendar__grid-wrap,
  .e20-partners__inner,
  .e20-contact__inner,
  .e20-agenda__inner,
  .e20-detail__inner,
  .e20-intro__inner,
  .e20-profile__inner,
  .e20-clients__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hero */
  .e20-hero {
    padding: 48px 0 64px;
  }
  .e20-hero__title {
    font-size: clamp(36px, 9vw, 52px);
    letter-spacing: -1px;
  }

  /* About */
  .e20-about {
    padding: 64px 0;
  }

  /* Services list */
  .e20-services-list {
    padding: 64px 0;
  }
  .e20-services-list__head {
    margin-bottom: 32px;
  }

  /* Testimonials */
  .e20-testimonials {
    padding: 64px 0;
  }
  .e20-testimonials__head h2 {
    margin-bottom: 40px;
  }

  /* Awards */
  .e20-awards {
    padding: 64px 0;
  }
  .e20-awards__title {
    font-size: clamp(32px, 8vw, 40px);
  }

  /* Stats */
  .e20-stats {
    padding: 48px 0;
  }
  .e20-stats__num {
    font-size: clamp(44px, 12vw, 64px);
  }

  /* Blog */
  .e20-blog {
    padding: 64px 0;
  }
  .e20-blog__head {
    margin-bottom: 32px;
  }

  /* Calendar / agenda */
  .e20-agenda {
    padding: 64px 0;
  }
  .e20-agenda__head {
    margin-bottom: 48px;
  }
  .e20-agenda__list {
    gap: 48px;
  }

  /* CTA big */
  .e20-cta-big {
    padding: 80px 16px;
  }

  /* Contact block */
  .e20-contact {
    padding: 64px 0;
  }
  .e20-contact h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  /* Partners */
  .e20-partners {
    padding: 64px 0;
  }
  .e20-partners__head {
    margin-bottom: 48px;
  }

  /* Profile */
  .e20-profile {
    padding: 48px 0 80px;
  }

  /* Intro (chi-siamo) */
  .e20-intro {
    padding: 64px 0;
  }

  /* Detail (event-type pages) */
  .e20-detail {
    padding: 48px 0 80px;
  }
  .e20-detail__hero {
    margin-bottom: 32px;
  }

  /* Hero compact */
  .e20-hero-compact {
    padding: 56px 16px 48px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 16px 32px;
  }
}

@media (max-width: 600px) {
  .e20-hero__title {
    font-size: 36px;
  }
  .e20-marquee {
    padding: 20px 0;
  }
  .e20-marquee__item,
  .e20-marquee__sep {
    font-size: 32px;
    padding: 0 16px;
  }
  .e20-agenda__title {
    font-size: 28px;
  }
  .e20-agenda__date .e20-agenda__day {
    font-size: 36px;
  }
}

/* ---------- Editor visibility ---------- */

.e20-pattern-note {
  background: #fff8e0;
  border: 1px dashed var(--wp--preset--color--accent);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--wp--preset--color--text-dark);
  font-family: var(--wp--preset--font-family--body), sans-serif;
}

/* ---------- Cookie consent (vanilla-cookieconsent v3) brand overrides ---------- */
/* Map the library's documented --cc-* variables onto theme.json design tokens.
   Garante: Accept (filled) and Reject (outlined) buttons share equal visual weight. */

#cc-main {
  --cc-font-family: var(--wp--preset--font-family--body), sans-serif;
  --cc-bg: var(--wp--preset--color--base);
  --cc-primary-color: var(--wp--preset--color--text-dark);
  --cc-secondary-color: var(--wp--preset--color--text-dark);
  --cc-link-color: var(--wp--preset--color--accent);

  /* Accept all — brand accent */
  --cc-btn-primary-bg: var(--wp--preset--color--accent);
  --cc-btn-primary-color: var(--wp--preset--color--base);
  --cc-btn-primary-border-color: var(--wp--preset--color--accent);
  --cc-btn-primary-hover-bg: var(--wp--preset--color--accent-warm);
  --cc-btn-primary-hover-color: var(--wp--preset--color--base);
  --cc-btn-primary-hover-border-color: var(--wp--preset--color--accent-warm);

  /* Reject all — outlined accent (equal weight, not a muted grey) */
  --cc-btn-secondary-bg: var(--wp--preset--color--base);
  --cc-btn-secondary-color: var(--wp--preset--color--accent);
  --cc-btn-secondary-border-color: var(--wp--preset--color--accent);
  --cc-btn-secondary-hover-bg: var(--wp--preset--color--accent);
  --cc-btn-secondary-hover-color: var(--wp--preset--color--base);
  --cc-btn-secondary-hover-border-color: var(--wp--preset--color--accent);

  --cc-separator-border-color: var(--wp--preset--color--border);
  --cc-cookie-category-block-bg: var(--wp--preset--color--base);
  --cc-cookie-category-block-border: var(--wp--preset--color--border);
  --cc-cookie-category-block-hover-bg: color-mix(
    in srgb,
    var(--wp--preset--color--border) 35%,
    var(--wp--preset--color--base)
  );
  --cc-cookie-category-block-hover-border: var(--wp--preset--color--border);
  --cc-toggle-on-bg: var(--wp--preset--color--accent);
  --cc-toggle-readonly-bg: var(--wp--preset--color--border);

  --cc-btn-border-radius: 999px;
  --cc-modal-border-radius: 14px;
  --cc-pm-toggle-border-radius: 999px;
}

#cc-main .pm__badge {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
}

/* ---------- Legal pages (privacy / cookie policy) ---------- */

.e20-legal {
  padding-top: 64px;
  padding-bottom: 80px;
}

.e20-legal h1 {
  margin-bottom: 0.6em;
}

.e20-legal h2 {
  margin-top: 1.6em;
}

.e20-legal .wp-block-table {
  font-size: 14px;
}

.e20-legal .wp-block-table th,
.e20-legal .wp-block-table td {
  border: 1px solid var(--wp--preset--color--border);
  padding: 8px 12px;
  text-align: left;
}

/* Year-group headings for portfolio listing (past-events pattern). */
.e20-agenda__year-head {
  font-family: var(--wp--preset--font-family--display, inherit);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--accent);
  margin: 3.5rem 0 1.25rem;
  line-height: 1;
}
.e20-agenda__year-head:first-of-type {
  margin-top: 1rem;
}
.e20-agenda__list--year + .e20-agenda__year-head {
  border-top: 1px solid
    color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
  padding-top: 2.5rem;
}
