:root {
  --page-bg: #000;
  --text: #fff;
  --accent: #ef1f2f;
  --event-accent: #d99a22;
  --event-red: #ef1f2f;
  --hero-ratio: 4 / 3;
  --content-max: 1536px;
  --font-site: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-site);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
body { font-synthesis: none; }

.hero {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
  background: #000;
}

.hero__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
}

/* Copre soltanto il menu incorporato nel master grafico.
   Logo, testi, lineetta e mosaico restano parte dell'immagine unica. */
.hero__menu-mask {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 65.5%;
  height: 9.3%;
  background: #000;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 65.5%;
  height: 9.3%;
  display: flex;
  align-items: center;
  padding: 0 3.2% 0 4.3%;
  background: transparent;
}

.primary-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 34px);
}

.primary-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(10px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  background: transparent;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after { background: var(--accent); }
.primary-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

/* BLOCCO 2 — ASTE REALIZZATE */
.events-section {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background: #fff;
  color: #171717;
}

.events-heading {
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.9vw, 60px) clamp(20px, 2.4vw, 36px);
  background: #fff;
}

.events-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

.events-heading span {
  display: block;
  width: clamp(54px, 5vw, 78px);
  height: 4px;
  margin-top: clamp(14px, 1.5vw, 22px);
  background: var(--event-accent);
}

.events-list {
  width: 100%;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  background: #fff;
  border-top: 1px solid #efefef;
}

.event-card__media {
  min-width: 0;
  aspect-ratio: 1.82 / 1;
  overflow: hidden;
  background: #e8e8e8;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-card:first-child .event-card__media img {
  object-position: center 47%;
}

.event-card:nth-child(3) .event-card__media img {
  object-position: center 20%;
}

.event-card--reverse .event-card__media { order: 2; }
.event-card--reverse .event-card__content { order: 1; }

.event-card__content {
  min-width: 0;
  min-height: 100%;
  padding: clamp(28px, 3.7vw, 58px) clamp(32px, 4.2vw, 66px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
}

.event-card__content h3 {
  margin: 0 0 clamp(10px, 1vw, 16px);
  font-size: clamp(1.25rem, 1.75vw, 1.9rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.event-card__beneficiary {
  margin: 0 0 clamp(22px, 2vw, 32px) !important;
  color: var(--event-red);
  font-size: clamp(1rem, 1.25vw, 1.35rem) !important;
  font-weight: 600;
  line-height: 1.25 !important;
}

.event-card__content > p:not(.event-card__beneficiary) {
  max-width: 39ch;
  margin: 0 0 clamp(24px, 2.3vw, 36px);
  font-size: clamp(.98rem, 1.18vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
}

.event-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 15vw, 235px);
  min-height: clamp(48px, 4vw, 62px);
  padding: 12px 24px;
  color: #fff;
  background: var(--event-accent);
  border: 1px solid rgba(255,255,255,.45);
  text-decoration: none;
  font-size: clamp(.9rem, 1vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .02em;
  transition: filter .18s ease, transform .18s ease;
}

.event-card__button:hover,
.event-card__button:focus-visible {
  filter: brightness(.93);
  transform: translateY(-1px);
}
.event-card__button:focus-visible { outline: 3px solid #111; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero {
    width: 100%;
    aspect-ratio: var(--hero-ratio);
  }

  .hero__menu-mask {
    width: 69%;
    height: 11.5%;
  }

  .site-header {
    top: 0;
    right: 0;
    width: 69%;
    height: 11.5%;
    justify-content: flex-end;
    padding: 0 3.5vw;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(86vw, 360px);
    display: grid;
    gap: 0;
    padding: 10px 22px 18px;
    background: rgba(0,0,0,.97);
    border-top: 1px solid rgba(255,255,255,.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav a {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a::after { display: none; }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .event-card__content {
    padding: clamp(26px, 4.5vw, 42px);
  }
}

@media (max-width: 720px) {
  .events-heading {
    padding: 28px 22px 22px;
  }

  .events-heading h2 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__media,
  .event-card--reverse .event-card__media {
    order: 1;
    aspect-ratio: 16 / 9;
  }

  .event-card__content,
  .event-card--reverse .event-card__content {
    order: 2;
    padding: 28px 24px 32px;
  }

  .event-card__content h3 {
    font-size: clamp(1.18rem, 5.4vw, 1.5rem);
  }

  .event-card__beneficiary {
    margin-bottom: 18px !important;
    font-size: 1rem !important;
  }

  .event-card__content > p:not(.event-card__beneficiary) {
    max-width: none;
    font-size: .98rem;
    line-height: 1.52;
    margin-bottom: 24px;
  }

  .event-card__button {
    min-width: 180px;
    min-height: 48px;
    font-size: .9rem;
  }
}

@media (max-width: 520px) {
  /* Il master resta intero e non viene scomposto né ritagliato. */
  .hero {
    min-height: 0;
  }
  .hero__menu-mask,
  .site-header {
    width: 72%;
    height: 13%;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* BLOCCO 3 — TECNOLOGIA PROPRIETARIA / OGGI E DOMANI */
.technology-section {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  color: #171717;
  background: #fff;
}

.technology-intro {
  padding: clamp(42px, 5vw, 78px) clamp(24px, 6.8vw, 104px) clamp(34px, 4.2vw, 64px);
  background: #f3f3f1;
}

.technology-heading__line {
  display: block;
  width: clamp(48px, 4.4vw, 68px);
  height: 4px;
  margin-bottom: clamp(16px, 1.6vw, 24px);
  background: var(--accent);
}

.technology-heading h2,
.today-heading h2 {
  margin: 0;
  color: #171717;
  font-weight: 700;
  letter-spacing: -.035em;
}

.technology-heading h2 {
  max-width: 21ch;
  font-size: clamp(2rem, 3.6vw, 3.55rem);
  line-height: 1.04;
}

.technology-lead {
  max-width: 46ch;
  margin: clamp(26px, 2.8vw, 42px) 0 clamp(22px, 2vw, 30px);
  color: #252525;
  font-size: clamp(1.12rem, 1.65vw, 1.58rem);
  font-weight: 400;
  line-height: 1.5;
}

.technology-intro > p:not(.technology-lead) {
  max-width: 112ch;
  margin: 0 0 clamp(18px, 1.8vw, 26px);
  color: #626262;
  font-size: clamp(.94rem, 1.02vw, 1.08rem);
  font-weight: 400;
  line-height: 1.62;
}

.technology-features,
.today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.technology-features {
  margin-top: clamp(34px, 4vw, 62px);
}

.technology-card,
.today-card {
  border: 1px solid #d9d9d5;
  border-radius: 14px;
  background: #fff;
}

.technology-card {
  min-height: clamp(150px, 12vw, 190px);
  padding: clamp(24px, 2.2vw, 34px);
}

.technology-card h3,
.today-card h3 {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}

.technology-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.08rem, 1.25vw, 1.32rem);
}

.technology-card p,
.today-card p {
  margin: 0;
  color: #444;
  font-weight: 400;
}

.technology-card p {
  font-size: clamp(.92rem, .98vw, 1.04rem);
  line-height: 1.52;
}

.technology-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 1.8vw, 26px);
}

.technology-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(220px, 20vw, 300px);
  min-height: clamp(50px, 4.2vw, 64px);
  padding: 13px 28px;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  text-decoration: none;
  font-size: clamp(.88rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .02em;
  transition: filter .18s ease, transform .18s ease;
}

.technology-cta:hover,
.technology-cta:focus-visible {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.technology-cta:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.today-section {
  padding: clamp(42px, 4.8vw, 72px) clamp(24px, 6.8vw, 104px) clamp(54px, 6vw, 92px);
  background: #fff;
}

.today-heading {
  margin-bottom: clamp(30px, 3.4vw, 52px);
  text-align: center;
}

.today-heading h2 {
  font-size: clamp(2rem, 3.45vw, 3.35rem);
  line-height: 1.05;
}

.today-heading p {
  margin: 10px 0 0;
  color: #777;
  font-size: clamp(.98rem, 1.15vw, 1.18rem);
  font-weight: 400;
}

.today-card {
  min-height: clamp(180px, 15vw, 230px);
  padding: clamp(28px, 2.5vw, 38px);
  background: #f7f7f5;
}

.today-card h3 {
  font-size: clamp(1.08rem, 1.25vw, 1.32rem);
}

.today-card__line {
  display: block;
  width: 42px;
  height: 4px;
  margin: 16px 0 22px;
  background: var(--accent);
}

.today-card p {
  font-size: clamp(.93rem, 1vw, 1.05rem);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .technology-intro,
  .today-section {
    padding-left: clamp(26px, 5vw, 48px);
    padding-right: clamp(26px, 5vw, 48px);
  }
}

@media (max-width: 720px) {
  .technology-features,
  .today-grid {
    grid-template-columns: 1fr;
  }

  .technology-card,
  .today-card {
    min-height: 0;
  }

  .technology-heading h2 {
    max-width: none;
  }

  .technology-intro {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .today-section {
    padding-top: 40px;
    padding-bottom: 54px;
  }
}

/* BLOCCO 4 — STRUMENTI, NEWSLETTER, PARTNER E FOOTER */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-tools-section,
.newsletter-section,
.partners-section,
.site-footer {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-tools-section {
  background: #080808;
  color: #fff;
}

.site-tools-inner {
  padding: clamp(38px, 4.8vw, 72px) clamp(24px, 6.8vw, 104px);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
  margin-bottom: clamp(28px, 3vw, 44px);
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.site-search {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(255,255,255,.55);
  background: #000;
}

.site-search__icon {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 2px solid #aaa;
  border-radius: 50%;
  pointer-events: none;
}

.site-search__icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -7px;
  bottom: -3px;
  background: #aaa;
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-search input {
  min-width: 0;
  height: clamp(62px, 5.2vw, 78px);
  padding: 0 24px 0 64px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 500;
}

.site-search input::placeholder {
  color: #d4d4d4;
  opacity: 1;
}

.site-search button {
  min-width: clamp(110px, 10vw, 154px);
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: clamp(.86rem, .95vw, 1rem);
  font-weight: 700;
  letter-spacing: .03em;
}

.site-search button:hover,
.site-search button:focus-visible {
  filter: brightness(.92);
}

.site-search:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}

.search-results {
  max-width: 860px;
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: #111;
}

.search-result {
  display: block;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.search-result:last-child { border-bottom: 0; }
.search-result strong { display: block; margin-bottom: 4px; font-size: .98rem; }
.search-result span { color: #aaa; font-size: .86rem; line-height: 1.4; }
.search-result:hover,
.search-result:focus-visible { background: #1d1d1d; }
.search-result:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-results__empty { margin: 0; padding: 14px 16px; color: #bbb; }

.newsletter-section {
  color: #fff;
  background: var(--accent);
}

.newsletter-inner {
  padding: clamp(38px, 5vw, 76px) clamp(24px, 6.8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.newsletter-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(.88rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .14em;
}

.newsletter-copy h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.newsletter-copy p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(.98rem, 1.1vw, 1.15rem);
  line-height: 1.5;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.newsletter-form input {
  min-width: 0;
  height: clamp(58px, 4.8vw, 72px);
  padding: 0 22px;
  border: 2px solid #111;
  border-right: 0;
  background: #fff;
  color: #111;
  outline: 0;
  font-size: clamp(.98rem, 1.08vw, 1.12rem);
}

.newsletter-form input:focus {
  box-shadow: inset 0 0 0 2px rgba(239,31,47,.25);
}

.newsletter-form button {
  min-width: clamp(122px, 11vw, 170px);
  border: 2px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .03em;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: #fff;
  color: #111;
}

.newsletter-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 10px 0 0;
  color: #fff;
  font-size: .88rem;
  line-height: 1.4;
}

.partners-section {
  background: #080808;
  color: #fff;
}

.partners-inner {
  padding: clamp(48px, 5.5vw, 84px) clamp(24px, 6.8vw, 104px) clamp(58px, 6.5vw, 100px);
}

.partners-heading {
  text-align: center;
  margin-bottom: clamp(36px, 4.2vw, 64px);
}

.partners-heading > span {
  display: block;
  width: 52px;
  height: 4px;
  margin: 0 auto 20px;
  background: var(--accent);
}

.partners-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.partners-heading p {
  margin: 14px 0 0;
  color: #aaa;
  font-size: clamp(.95rem, 1.05vw, 1.1rem);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px) clamp(18px, 2.5vw, 38px);
  align-items: center;
}

.partner-logo {
  min-width: 0;
  min-height: clamp(105px, 10vw, 150px);
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  width: 100%;
  height: clamp(82px, 8vw, 118px);
  object-fit: contain;
  object-position: center;
  opacity: .9;
  transition: opacity .18s ease, transform .18s ease;
}

.partner-logo:hover img {
  opacity: 1;
  transform: scale(1.03);
}

/* Normalizzazione ottica dei file con proporzioni estreme */
.partner-logo:nth-child(1) img { max-width: 180px; }
.partner-logo:nth-child(2) img { max-width: 150px; }
.partner-logo:nth-child(3) img { max-width: 105px; height: 112px; }
.partner-logo:nth-child(4) img { max-width: 170px; }
.partner-logo:nth-child(5) img { max-width: 190px; }
.partner-logo:nth-child(6) img { max-width: 190px; }
.partner-logo:nth-child(7) img { max-width: 200px; }
.partner-logo:nth-child(8) img { max-width: 220px; }
.partner-logo:nth-child(9) img { max-width: 230px; }

.site-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
}

.site-footer__inner {
  min-height: 180px;
  padding: clamp(32px, 4vw, 58px) clamp(24px, 6.8vw, 104px);
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.site-footer__brand img {
  width: min(250px, 100%);
  height: auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.site-footer__links a,
.site-footer__links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ddd;
  text-decoration: none;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__links button:hover,
.site-footer__links button:focus-visible {
  color: var(--accent);
}

.site-footer__copyright {
  margin: 0;
  color: #888;
  font-size: .82rem;
  text-align: right;
}

.chat-launcher {
  position: fixed;
  z-index: 30;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.chat-launcher svg { width: 28px; height: 28px; fill: currentColor; }
.chat-launcher:hover,
.chat-launcher:focus-visible { filter: brightness(.94); }
.chat-launcher:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.chat-panel {
  position: fixed;
  z-index: 31;
  right: clamp(18px, 2vw, 28px);
  bottom: 96px;
  width: min(340px, calc(100vw - 36px));
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  background: #111;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.chat-panel__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 28px;
}
.chat-panel strong { display: block; margin-bottom: 12px; color: var(--accent); }
.chat-panel p { margin: 0; color: #ccc; font-size: .93rem; line-height: 1.55; }

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.22);
  background: #111;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.5);
}
.cookie-banner strong { color: var(--accent); }
.cookie-banner p { margin: 6px 0 0; color: #ccc; font-size: .88rem; line-height: 1.45; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}
.cookie-banner__actions button.is-primary { background: var(--accent); border-color: var(--accent); }

.site-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 36px));
  padding: 14px 18px;
  background: #fff;
  color: #111;
  border-left: 5px solid var(--accent);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  font-size: .9rem;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__brand img { margin: 0 auto; }
  .site-footer__copyright { text-align: center; }
}

@media (max-width: 780px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .newsletter-copy h2 { max-width: none; }
}

@media (max-width: 620px) {
  .site-tools-inner,
  .newsletter-inner,
  .partners-inner,
  .site-footer__inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-search {
    grid-template-columns: 1fr;
  }

  .site-search input {
    padding-left: 58px;
  }

  .site-search button {
    min-height: 50px;
  }

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

  .newsletter-form input {
    border-right: 2px solid #111;
  }

  .newsletter-form button {
    min-height: 54px;
    border-top: 0;
  }

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

  .partner-logo {
    min-height: 100px;
    padding: 8px;
  }

  .partner-logo img {
    height: 82px;
  }

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

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* REVISIONE APPROVATA — AREA FINALE HOME */
.site-tools-section {
  background: #f5f5f3;
  color: #171717;
  border-top: 1px solid #e3e3df;
}

.site-tools-inner {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(26px, 3vw, 42px);
  padding-bottom: clamp(26px, 3vw, 42px);
}

.social-links {
  justify-content: flex-start;
  gap: 20px;
  margin: 0;
}

.social-link {
  width: 29px;
  height: 29px;
  color: #171717;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
}

.social-link:focus-visible {
  outline-color: #171717;
}

.site-search {
  width: 100%;
  max-width: none;
  margin: 0;
  border-color: #bdbdb8;
  background: #fff;
}

.site-search__icon {
  left: 20px;
  width: 19px;
  height: 19px;
  border-color: #777;
}

.site-search__icon::after {
  background: #777;
}

.site-search input {
  height: 54px;
  padding-left: 54px;
  color: #171717;
  font-size: clamp(.92rem, 1vw, 1.02rem);
}

.site-search input::placeholder {
  color: #6a6a6a;
}

.site-search button {
  min-width: 118px;
}

.site-search:focus-within {
  border-color: #171717;
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.search-results {
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin: -18px 0 0;
  border-color: #d2d2ce;
  background: #fff;
  color: #171717;
}

.search-result {
  color: #171717;
  border-color: #e5e5e2;
}

.search-result span,
.search-results__empty {
  color: #666;
}

.search-result:hover,
.search-result:focus-visible {
  background: #f1f1ef;
}

.newsletter-inner {
  min-height: 0;
  padding-top: clamp(26px, 3vw, 42px);
  padding-bottom: clamp(26px, 3vw, 42px);
  grid-template-columns: minmax(220px, .65fr) minmax(420px, 1.35fr);
  gap: clamp(28px, 4vw, 64px);
}

.newsletter-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.25;
}

.newsletter-form input {
  height: 54px;
  font-size: 1rem;
}

.newsletter-form button {
  min-width: 132px;
}

.newsletter-status {
  margin-top: 7px;
  min-height: 0;
}

.partners-section {
  background: #f5f5f3;
  color: #171717;
  border-top: 1px solid #e3e3df;
}

.partners-inner {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(48px, 5.5vw, 82px);
}

.partners-heading h2 {
  color: #171717;
}

.partners-heading p {
  color: #686868;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3vw, 46px) clamp(18px, 2.4vw, 36px);
}

.partner-logo {
  flex: 0 1 calc(20% - 30px);
  min-width: 150px;
  min-height: clamp(100px, 9vw, 138px);
}

.partner-logo img {
  opacity: .82;
}

.site-footer {
  background: #0b0b0b;
  border-top: 0;
}

.site-footer__inner {
  min-height: 72px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.site-footer__privacy {
  color: #cfcfcf;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.site-footer__privacy:hover,
.site-footer__privacy:focus-visible {
  color: var(--accent);
}

.site-footer__copyright {
  color: #7d7d7d;
  font-size: .76rem;
  text-align: center;
}

/* Comando cookie discreto */
.cookie-settings-launcher {
  position: fixed;
  z-index: 41;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9c9c5;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #333;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.cookie-settings-launcher svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cookie-settings-launcher:hover,
.cookie-settings-launcher:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.cookie-notice {
  position: fixed;
  z-index: 42;
  left: 16px;
  bottom: 68px;
  width: min(410px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #d4d4d0;
  background: #fff;
  color: #171717;
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
}

.cookie-notice p {
  margin: 0 0 13px;
  font-size: .82rem;
  line-height: 1.45;
}

.cookie-notice__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-notice button,
.cookie-modal__actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #171717;
  background: #fff;
  color: #171717;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.cookie-notice button.is-primary,
.cookie-modal__actions button.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.56);
}

.cookie-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  color: #171717;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cookie-modal h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.cookie-modal__intro {
  margin: 0 0 20px;
  color: #626262;
  font-size: .9rem;
  line-height: 1.5;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-top: 1px solid #e5e5e2;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  margin-bottom: 5px;
  font-size: .93rem;
}

.cookie-option small {
  color: #6b6b6b;
  font-size: .78rem;
  line-height: 1.4;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.cookie-option--locked {
  opacity: .7;
}

.cookie-modal__actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e2;
}

@media (max-width: 1000px) {
  .site-tools-inner {
    grid-template-columns: auto minmax(360px, 1fr);
    gap: 30px;
  }

  .partner-logo {
    flex-basis: calc(33.333% - 28px);
  }

  .site-footer__inner {
    display: flex;
    flex-direction: row;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .site-tools-inner,
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .search-results {
    grid-column: 1;
    margin-top: -8px;
  }

  .newsletter-title {
    text-align: center;
  }

  .partner-logo {
    flex-basis: calc(50% - 18px);
    min-width: 120px;
  }
}

@media (max-width: 620px) {
  .site-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-search button {
    min-height: 0;
    min-width: 92px;
  }

  .newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .newsletter-form input {
    border-right: 0;
  }

  .newsletter-form button {
    min-height: 0;
    border-top: 2px solid #111;
    min-width: 105px;
  }

  .site-footer__inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .cookie-notice__actions,
  .cookie-modal__actions {
    justify-content: stretch;
  }

  .cookie-notice button,
  .cookie-modal__actions button {
    flex: 1 1 auto;
  }
}


/* REVISIONE 2 — marchio nei testi, social nel footer, ricerca compatta */
.brand-name {
  white-space: nowrap;
  font-family: var(--font-site);
  font-style: normal;
  font-weight: inherit;
}

.brand-name em {
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
}

/* La fascia strumenti contiene soltanto la ricerca: niente riga dedicata ai social. */
.site-tools-inner {
  display: block;
  padding-top: clamp(20px, 2.3vw, 32px);
  padding-bottom: clamp(20px, 2.3vw, 32px);
}

.site-search {
  width: min(920px, 100%);
  margin: 0 auto;
}

.search-results {
  width: min(920px, 100%);
  margin: 12px auto 0;
  grid-column: auto;
}

/* Titolo newsletter più evidente senza aumentare troppo l'altezza del blocco. */
.newsletter-title {
  font-size: clamp(1.65rem, 2.25vw, 2.45rem);
  letter-spacing: .075em;
  line-height: 1.08;
}

/* I social entrano nella fascia footer, sulla stessa riga di privacy e copyright. */
.site-footer__inner {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  justify-content: normal;
  gap: clamp(22px, 3vw, 46px);
  min-height: 76px;
}

.site-footer .social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin: 0;
}

.site-footer .social-link {
  width: 22px;
  height: 22px;
  color: #e7e7e7;
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: var(--accent);
}

.site-footer__privacy {
  justify-self: center;
}

.site-footer__copyright {
  justify-self: end;
}

@media (max-width: 720px) {
  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
  }

  .site-footer .social-links {
    width: 100%;
    justify-content: center;
  }

  .site-footer__privacy,
  .site-footer__copyright {
    justify-self: auto;
  }

  .newsletter-title {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
  }
}


/* REVISIONE 3 — area finale più compatta, social visibili, cookie non automatici */
.cookie-modal-backdrop[hidden],
.chat-panel[hidden],
.site-toast[hidden],
.search-results[hidden] {
  display: none !important;
}

.site-tools-section {
  background: #f5f5f3;
  border-top: 1px solid #e1e1dd;
}

.site-tools-inner {
  display: grid !important;
  grid-template-columns: auto minmax(320px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  padding-top: clamp(16px, 1.7vw, 24px);
  padding-bottom: clamp(16px, 1.7vw, 24px);
}

.site-tools-section .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
}

.site-tools-section .social-link {
  width: 24px;
  height: 24px;
  color: #202020;
}

.site-tools-section .social-link:hover,
.site-tools-section .social-link:focus-visible {
  color: var(--accent);
}

.site-search {
  width: 100%;
  max-width: 560px;
  min-height: 44px;
  margin: 0;
}

.site-search input {
  height: 44px;
  padding-left: 48px;
  font-size: .88rem;
}

.site-search__icon {
  left: 17px;
  width: 17px;
  height: 17px;
}

.site-search button {
  min-width: 92px;
  min-height: 44px;
  padding: 0 20px;
  font-size: .72rem;
}

.search-results {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  margin: -6px 0 0;
}

.newsletter-inner {
  grid-template-columns: auto minmax(360px, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  padding-top: clamp(20px, 2.2vw, 30px);
  padding-bottom: clamp(20px, 2.2vw, 30px);
}

.newsletter-title {
  white-space: nowrap;
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
  letter-spacing: .075em;
  line-height: 1;
}

.newsletter-form input {
  height: 46px;
  font-size: .92rem;
}

.newsletter-form button {
  min-width: 116px;
  min-height: 46px;
  font-size: .75rem;
}

.partners-inner {
  padding-top: clamp(28px, 3vw, 42px);
  padding-bottom: clamp(30px, 3.4vw, 48px);
}

.partners-heading {
  margin-bottom: clamp(22px, 2.5vw, 34px);
}

.partners-heading > span {
  width: 38px;
  height: 3px;
  margin-bottom: 10px;
}

.partners-heading h2 {
  font-size: clamp(1.45rem, 2.05vw, 1.95rem);
  line-height: 1.08;
}

.partners-heading p {
  margin-top: 7px;
  font-size: .78rem;
}

.partners-grid {
  gap: clamp(12px, 1.8vw, 24px) clamp(14px, 2vw, 28px);
}

.partner-logo {
  flex: 0 1 calc(20% - 24px);
  min-width: 118px;
  min-height: clamp(66px, 6.5vw, 88px);
  padding: 5px;
}

.partner-logo img {
  max-width: 145px;
  height: clamp(48px, 4.7vw, 64px);
  opacity: .78;
}

.site-footer__inner {
  min-height: 58px;
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.site-footer__privacy,
.site-footer__copyright {
  justify-self: auto;
}

.cookie-settings-launcher {
  width: 38px;
  height: 38px;
  left: 12px;
  bottom: 12px;
}

.cookie-settings-launcher svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .site-tools-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
  }

  .site-search {
    max-width: none;
  }

  .search-results {
    grid-column: 1 / -1;
    max-width: none;
  }

  .newsletter-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
  }

  .newsletter-title {
    font-size: clamp(1.25rem, 4.8vw, 1.75rem);
  }

  .partner-logo {
    flex-basis: calc(33.333% - 20px);
  }
}

@media (max-width: 540px) {
  .site-tools-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-tools-section .social-links {
    justify-content: center;
  }

  .site-search input {
    font-size: .8rem;
  }

  .site-search button {
    min-width: 80px;
    padding: 0 13px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .newsletter-title {
    text-align: center;
    white-space: nowrap;
    font-size: clamp(1.15rem, 6.2vw, 1.55rem);
  }

  .partner-logo {
    flex-basis: calc(50% - 14px);
    min-width: 100px;
    min-height: 62px;
  }

  .partner-logo img {
    height: 48px;
  }
}


/* REVISIONE FORMAT V3 — sfondi finali full-width e contenuti sulla griglia principale */
.site-tools-section,
.newsletter-section,
.partners-section,
.site-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-tools-inner,
.newsletter-inner,
.partners-inner,
.site-footer__inner {
  width: min(100%, var(--content-max));
  margin-left: auto;
  margin-right: auto;
}

.format-page .site-tools-inner,
.format-page .newsletter-inner,
.format-page .partners-inner,
.format-page .site-footer__inner {
  padding-left: clamp(24px, 5.4vw, 84px);
  padding-right: clamp(24px, 5.4vw, 84px);
}


/* REVISIONE 4 — struttura full-width condivisa HOME / IL FORMAT */
:root {
  --section-gutter: clamp(24px, 6.8vw, 104px);
}

/* HOME: gli sfondi occupano tutta la finestra; i contenuti restano nella griglia master. */
body:not(.format-page) main {
  width: 100%;
  max-width: none;
}

.events-section,
.technology-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.events-heading,
.events-list {
  width: min(100%, var(--content-max));
  margin-left: auto;
  margin-right: auto;
}

.technology-intro,
.today-section {
  width: 100%;
  max-width: none;
  padding-left: max(
    var(--section-gutter),
    calc((100vw - var(--content-max)) / 2 + var(--section-gutter))
  );
  padding-right: max(
    var(--section-gutter),
    calc((100vw - var(--content-max)) / 2 + var(--section-gutter))
  );
}

/* L'area finale è un componente full-width identico in entrambe le pagine. */
.site-tools-section,
.newsletter-section,
.partners-section,
.site-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-tools-inner,
.newsletter-inner,
.partners-inner,
.site-footer__inner {
  width: min(100%, var(--content-max));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .technology-intro,
  .today-section {
    padding-left: clamp(26px, 5vw, 48px);
    padding-right: clamp(26px, 5vw, 48px);
  }
}

@media (max-width: 720px) {
  .technology-intro,
  .today-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* =========================================================
   HEADER GLOBALE CONDIVISO — HOME / IL FORMAT / PAGINE FUTURE
   Il logo usa sempre la stessa classe e gli stessi valori.
   ========================================================= */
:root {
  /* Altezza globale bloccata: lascia respiro nero sopra e sotto il logo. */
  --site-header-height: 148px;
  --site-brand-width: 336px;
}

.site-header {
  position: relative;
  z-index: 100;
  top: auto;
  right: auto;
  width: 100%;
  height: var(--site-header-height);
  padding: 0;
  background: #000;
}

.site-header__inner {
  position: relative;
  width: min(100%, var(--content-max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 34.5% 65.5%;
  align-items: center;
}

.site-brand {
  display: block;
  width: var(--site-brand-width);
  max-width: calc(100% - 58px);
  margin-left: 29px;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header .primary-nav {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0 clamp(32px, 3.2vw, 49px) 0 clamp(43px, 4.3vw, 66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 34px);
  background: transparent;
  border: 0;
  transform: none;
  opacity: 1;
  visibility: visible;
}

.site-header .primary-nav a {
  padding: 0;
  color: #fff;
  border: 0;
  font-size: clamp(10px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.site-header .primary-nav a::after {
  display: block;
  bottom: -13px;
}

/* HOME — hero grafica priva di logo e menu, con raccordo laterale al nero. */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #000;
}

.hero__frame {
  position: relative;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.hero__art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(20px, 2.6vw, 42px);
  pointer-events: none;
}

.hero__frame::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,.58) 28%, rgba(0,0,0,.18) 68%, transparent 100%);
}

.hero__frame::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, rgba(0,0,0,.58) 28%, rgba(0,0,0,.18) 68%, transparent 100%);
}

.hero__menu-mask { display: none !important; }

@media (max-width: 1120px) {
  :root {
    --site-header-height: 116px;
    --site-brand-width: 250px;
  }

  .site-header__inner {
    grid-template-columns: 31% 69%;
  }

  .site-brand {
    max-width: calc(100% - 36px);
    margin-left: 18px;
  }

  .site-header .primary-nav {
    padding-left: 3.4%;
    padding-right: 2.8%;
  }

  .site-header .primary-nav a {
    font-size: clamp(10px, 1.05vw, 14px);
  }
}

@media (max-width: 900px) {
  :root {
    --site-header-height: 106px;
    --site-brand-width: 220px;
  }

  .site-header__inner {
    width: 100%;
    grid-template-columns: minmax(170px, 240px) 1fr;
    padding: 0 18px 0 20px;
  }

  .site-brand {
    max-width: 100%;
    margin-left: 0;
  }

  .site-header .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
    justify-self: end;
  }

  .site-header .primary-nav {
    position: absolute;
    z-index: 101;
    top: 100%;
    right: 0;
    width: min(86vw, 380px);
    height: auto;
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
    background: rgba(0,0,0,.985);
    border-top: 1px solid rgba(255,255,255,.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .site-header .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-header .primary-nav a {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .site-header .primary-nav a:last-child { border-bottom: 0; }
  .site-header .primary-nav a::after { display: none; }

  .hero__frame::before,
  .hero__frame::after {
    width: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --site-header-height: 96px;
    --site-brand-width: 190px;
  }

  .site-header__inner {
    grid-template-columns: minmax(150px, 210px) 1fr;
    padding-left: 16px;
    padding-right: 12px;
  }
}

@media (max-width: 500px) {
  :root { --site-brand-width: 164px; }
}

/* Neutralizza le vecchie proprietà di layout dell'header HOME ora non più sovrapposto. */
.site-header {
  display: block;
  align-items: initial;
  justify-content: initial;
}

/* REVISIONE 7 — HOME: raccordo sinistro più leggero, senza modificare la hero. */
.hero__frame::before {
  width: clamp(12px, 1.5vw, 24px);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, .52) 0%,
    rgba(0, 0, 0, .18) 48%,
    transparent 100%
  );
}

/* REVISIONE 15 — HERO VIDEO HOME / HERO GRAFICA PROTAGONISTI */
.hero__video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #6f6f6f;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__frame:has(.hero__video) {
    min-height: min(56.25vw, 864px);
    background: #6f6f6f url("assets/hero-anelli-poster.jpg") center / cover no-repeat;
  }
}

/* REVISIONE 22 — HOME: testo manifesto sovrapposto al video degli anelli. */
.hero--manifesto .hero__frame {
  min-height: clamp(480px, 48vw, 760px);
  background: #56595b;
}

.hero--manifesto .hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #56595b;
}

.hero--manifesto .hero__video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 86%, transparent 100%);
}

.hero--manifesto .hero__frame::before {
  z-index: 3;
  width: 56%;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.88) 34%,
    rgba(0,0,0,.56) 63%,
    rgba(0,0,0,.12) 86%,
    rgba(0,0,0,0) 100%
  );
}

.hero--manifesto .hero__frame::after {
  z-index: 3;
  right: 0;
  left: auto;
  width: 14%;
  background: linear-gradient(
    270deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,.76) 24%,
    rgba(0,0,0,.34) 58%,
    rgba(0,0,0,0) 100%
  );
}

.hero__copy {
  position: relative;
  z-index: 4;
  width: min(47%, 700px);
  padding: clamp(72px, 8vw, 126px) 0 clamp(68px, 7vw, 112px) clamp(34px, 5vw, 82px);
  color: #fff;
}

.hero__copy h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(42px, 4.2vw, 72px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

.hero__copy h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 28px;
  background: #e31e24;
}

.hero__copy p {
  max-width: 650px;
  margin: 28px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 400;
  line-height: 1.52;
}

@media (max-width: 900px) {
  .hero--manifesto .hero__frame {
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: #151719;
  }

  .hero--manifesto .hero__media {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    overflow: hidden;
  }

  .hero--manifesto .hero__video {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero--manifesto .hero__frame::before,
  .hero--manifesto .hero__frame::after {
    display: none;
  }

  .hero__copy {
    order: 1;
    width: 100%;
    padding: 54px 32px 46px;
    background: #0b0d0f;
  }

  .hero__copy h1 {
    font-size: clamp(38px, 8vw, 58px);
  }

  .hero__copy p {
    max-width: 760px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .hero__copy {
    padding: 42px 22px 36px;
  }

  .hero__copy h1 {
    font-size: clamp(34px, 10.2vw, 48px);
  }

  .hero__copy h1::after {
    width: 58px;
    height: 3px;
    margin-top: 22px;
  }

  .hero__copy p {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.55;
  }
}


/* REVISIONE 35 — PROTAGONISTI: nuova struttura operativa, senza blocco introduttivo ridondante. */

.protagonisti-section { background: #fff; color: #151515; }
.protagonisti-section--logos { background: #f7f7f5; }
.protagonisti-section--institutions { background: #fff; }
.protagonisti-inner { width: min(100%, var(--content-max)); margin: 0 auto; padding: clamp(54px, 6vw, 92px) clamp(28px, 5vw, 82px); }
.protagonisti-heading h2 { margin: 0; font: 700 clamp(30px, 3vw, 50px)/1.05 "Montserrat", Arial, sans-serif; letter-spacing: -.03em; }
.protagonisti-heading span { display: block; width: 64px; height: 4px; margin: 18px 0 14px; background: #ed1c2e; }
.protagonisti-heading p { max-width: 820px; margin: 0; font: 400 clamp(15px, 1.15vw, 19px)/1.55 "Montserrat", Arial, sans-serif; color: #4a4a4a; }
.protagonisti-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 26px; }
.protagonisti-filters button, .protagonisti-action button { border: 1px solid #d5d5d5; border-radius: 6px; background: #fff; padding: 11px 18px; font: 700 12px/1 "Montserrat", Arial, sans-serif; }
.protagonisti-filters button.is-active { background: #ed1c2e; border-color: #ed1c2e; color: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.person-card { overflow: hidden; border: 1px solid #dedede; border-radius: 10px; background: #fff; }
.person-card img { display: block; width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; }
.person-card div { padding: 14px 14px 16px; }
.person-card strong, .person-card small { display: block; font-family: "Montserrat", Arial, sans-serif; }
.person-card strong { font-size: 13px; }
.person-card small { margin-top: 7px; font-size: 12px; color: #666; }
.logo-placeholder-grid, .institution-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.logo-placeholder-grid div, .institution-grid figure { display: grid; place-items: center; min-height: 120px; margin: 0; border: 1px solid #dedede; border-radius: 10px; background: #fff; }
.logo-placeholder-grid div { color: #9a9a9a; font: 600 13px/1.2 "Montserrat", Arial, sans-serif; }
.institution-grid img { max-width: 74%; max-height: 72px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.protagonisti-action { display: flex; justify-content: center; margin-top: 28px; }
.protagonisti-action button { min-width: 230px; border-color: #ed1c2e; color: #ed1c2e; }
.network-band { background: #11151b; color: #fff; text-align: center; }
.network-band__inner { width: min(100%, var(--content-max)); margin: 0 auto; padding: clamp(48px, 5vw, 76px) 28px; }
.network-band__inner span { display: block; width: 54px; height: 4px; margin: 0 auto 18px; background: #ed1c2e; }
.network-band h2 { margin: 0; font: 700 clamp(27px, 2.8vw, 44px)/1.1 "Montserrat", Arial, sans-serif; }
.network-band p { margin: 16px 0 0; font: 400 clamp(15px, 1.1vw, 18px)/1.5 "Montserrat", Arial, sans-serif; color: #d6d9de; }
@media (max-width: 900px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-placeholder-grid, .institution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero__copy--protagonisti h1::before { width: 52px; height: 3px; margin-bottom: 16px; }
  .protagonisti-inner { padding: 46px 22px; }
  .people-grid, .logo-placeholder-grid, .institution-grid { grid-template-columns: 1fr; }
}


/* REVISIONE 43 — PROTAGONISTI: hero coordinata al frontend, titolo centrato nel box e raccordi visibili. */
.hero--protagonisti {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: #000;
}

.hero--protagonisti .hero__frame {
  position: relative;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  aspect-ratio: 1998 / 978;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.hero--protagonisti .hero__art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
}

/* Raccordo laterale: stretto, leggero, ma percepibile. */
.hero--protagonisti .hero__frame::before,
.hero--protagonisti .hero__frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(28px, 3.2vw, 54px);
  pointer-events: none;
}

.hero--protagonisti .hero__frame::before {
  left: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,.20) 42%,
    rgba(0,0,0,0) 100%);
}

.hero--protagonisti .hero__frame::after {
  right: 0;
  left: auto;
  background: linear-gradient(270deg,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,.20) 42%,
    rgba(0,0,0,0) 100%);
}

/* Raccordo inferiore della hero: sfumatura realmente percepibile verso il fondo nero. */
.hero--protagonisti .hero__bottom-fade {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(64px, 9vw, 128px);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.10) 36%,
    rgba(0,0,0,.34) 70%,
    rgba(0,0,0,.78) 100%);
}

/* Il wrapper coincide con il box nero reale dell'asset: x 0–28.7%, y 36.9–69.1%. */
.hero--protagonisti .hero__copy--protagonisti {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 36.9%;
  bottom: auto;
  width: 28.7%;
  height: 32.2%;
  padding: 0 3.0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  box-sizing: border-box;
}

.hero--protagonisti .hero__copy--protagonisti h1 {
  width: 100%;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 1.48vw, 29px);
  line-height: 1.38;
  letter-spacing: -.022em;
  font-weight: 700;
}

.hero--protagonisti .hero__copy--protagonisti h1 span {
  display: block;
  white-space: nowrap;
}

.hero--protagonisti .hero__copy--protagonisti h1::before {
  content: none;
  display: none;
}

.hero--protagonisti .hero__copy--protagonisti h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 20px;
  background: #ed1c2e;
}

.protagonisti-filters,
.protagonisti-action {
  display: none !important;
}

@media (max-width: 900px) {
  .hero--protagonisti .hero__frame {
    aspect-ratio: 1998 / 978;
  }

  .hero--protagonisti .hero__copy--protagonisti {
    left: 0;
    top: 36.9%;
    width: 28.7%;
    height: 32.2%;
    padding: 0 2.8%;
  }

  .hero--protagonisti .hero__copy--protagonisti h1 {
    font-size: clamp(9px, 1.48vw, 18px);
    line-height: 1.38;
  }

  .hero--protagonisti .hero__copy--protagonisti h1::after {
    width: clamp(28px, 3vw, 50px);
    height: 3px;
    margin-top: 10px;
  }
}


/* v48 — Slider PERSONE */
.people-slider { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 14px; }
.people-slider__viewport { overflow: hidden; }
.people-slider__track { display: flex; gap: 20px; transition: transform .42s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.people-slider .person-card { flex: 0 0 calc((100% - 60px)/4); min-width: 0; }
.people-slider .person-card[hidden] { display: none; }
.people-slider__arrow { width: 48px; height: 48px; border: 1px solid #d7d7d7; border-radius: 50%; background: #fff; color: #161616; font: 400 38px/1 Arial,sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: border-color .18s ease, color .18s ease, opacity .18s ease; }
.people-slider__arrow:hover { border-color: #ed1c2e; color: #ed1c2e; }
.people-slider__arrow:disabled { opacity: .28; cursor: default; }
.people-slider .person-card img { aspect-ratio: 1 / 1; object-position: center top; }
.people-slider .person-card strong { line-height: 1.3; }
@media (max-width: 980px) {
  .people-slider .person-card { flex-basis: calc((100% - 40px)/3); }
}
@media (max-width: 720px) {
  .people-slider { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; }
  .people-slider__arrow { width: 38px; height: 38px; font-size: 30px; }
  .people-slider .person-card { flex-basis: calc((100% - 16px)/2); }
  .people-slider__track { gap: 16px; }
  .protagonisti-filters { margin-top: 24px; }
  .protagonisti-filters button { padding: 10px 13px; font-size: 11px; }
}
@media (max-width: 470px) {
  .people-slider { grid-template-columns: 34px minmax(0,1fr) 34px; gap: 6px; }
  .people-slider__arrow { width: 34px; height: 34px; font-size: 27px; }
  .people-slider .person-card { flex-basis: 100%; }
}


/* v49 — Slider AZIENDE */
.company-slider { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 14px; }
.company-slider__viewport { overflow: hidden; }
.company-slider__track { display: flex; gap: 20px; transition: transform .42s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.company-slider .company-card { flex: 0 0 calc((100% - 60px)/4); min-width: 0; background: #fff; border: 1px solid #ececec; display: flex; flex-direction: column; }
.company-slider .company-card[hidden] { display: none; }
.company-slider__arrow { width: 48px; height: 48px; border: 1px solid #d7d7d7; border-radius: 50%; background: #fff; color: #161616; font: 400 38px/1 Arial,sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: border-color .18s ease, color .18s ease, opacity .18s ease; }
.company-slider__arrow:hover { border-color: #ed1c2e; color: #ed1c2e; }
.company-slider__arrow:disabled { opacity: .28; cursor: default; }
.company-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 18px; box-sizing: border-box; }
.company-card > div { padding: 14px 14px 16px; display: grid; gap: 5px; }
.company-card strong { font-size: 14px; line-height: 1.3; }
.company-card small { font-size: 10px; letter-spacing: .08em; color: #777; }
@media (max-width: 980px) {
  .company-slider .company-card { flex-basis: calc((100% - 40px)/3); }
}
@media (max-width: 720px) {
  .company-slider { grid-template-columns: 38px minmax(0,1fr) 38px; gap: 8px; }
  .company-slider__arrow { width: 38px; height: 38px; font-size: 30px; }
  .company-slider .company-card { flex-basis: calc((100% - 16px)/2); }
  .company-slider__track { gap: 16px; }
}
@media (max-width: 470px) {
  .company-slider { grid-template-columns: 34px minmax(0,1fr) 34px; gap: 6px; }
  .company-slider__arrow { width: 34px; height: 34px; font-size: 27px; }
  .company-slider .company-card { flex-basis: 100%; }
}

/* v50 — PROTAGONISTI: cornici uniformi, blocchi compatti, hero rifinita */
.protagonisti-section--people {
  background: #f5f5f3;
}

.protagonisti-inner {
  padding-top: clamp(36px, 4.2vw, 58px);
  padding-bottom: clamp(36px, 4.2vw, 58px);
}

.protagonisti-heading span {
  margin-top: 14px;
  margin-bottom: 10px;
}

.protagonisti-filters {
  margin-top: 20px;
  margin-bottom: 18px;
}

.person-card,
.company-card,
.company-slider .company-card {
  overflow: hidden;
  border: 1px solid #c7c7c4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .07);
}

.people-slider .person-card {
  border-color: #b9b9b5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
}

.person-card div,
.company-card > div {
  padding-top: 12px;
  padding-bottom: 13px;
}

.hero--protagonisti .hero__bottom-fade {
  height: clamp(82px, 11vw, 154px);
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.14) 32%,
    rgba(0,0,0,.45) 68%,
    rgba(0,0,0,.88) 100%);
}

.hero--protagonisti .hero__copy--protagonisti h1 {
  line-height: 1.62;
}

@media (max-width: 900px) {
  .hero--protagonisti .hero__copy--protagonisti h1 {
    line-height: 1.62;
  }
}

@media (max-width: 520px) {
  .protagonisti-inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* =========================================================
   PAGINA EVENTO — FEDERICA PELLEGRINI / BLOCCO 1
   Header globale + hero HTML responsive
   ========================================================= */
.event-page--federica {
  background: #020a12;
}

.event-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(590px, 68vw, 790px);
  overflow: hidden;
  background: #020a12;
}

.event-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.event-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 64% 50%;
}

.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(1, 10, 18, 1) 0%,
      rgba(1, 10, 18, .98) 25%,
      rgba(1, 10, 18, .87) 39%,
      rgba(1, 10, 18, .45) 54%,
      rgba(1, 10, 18, .08) 72%,
      rgba(1, 10, 18, .18) 100%),
    linear-gradient(180deg,
      rgba(1, 8, 15, .56) 0%,
      rgba(1, 8, 15, 0) 15%,
      rgba(1, 8, 15, 0) 76%,
      rgba(1, 8, 15, .92) 100%);
}

/* Sfumatura perimetrale: nessun bordo fotografico netto. */
.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow:
    inset 0 34px 40px -30px rgba(0, 0, 0, .95),
    inset 0 -80px 76px -46px rgba(0, 0, 0, 1),
    inset 48px 0 54px -46px rgba(0, 0, 0, .96),
    inset -48px 0 54px -46px rgba(0, 0, 0, .88);
}

.event-hero__inner {
  width: min(1540px, calc(100% - 96px));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 104px) 0 clamp(78px, 9vw, 126px);
}

.event-hero__copy {
  width: min(650px, 48%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}

.event-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 28px;
  padding: 11px 20px 10px;
  background: #e30613;
  color: #fff;
  font-size: clamp(.82rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1;
}

.event-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.55rem, 6.25vw, 7.05rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
}

.event-hero h1 span {
  display: block;
}

.event-hero__location {
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(1.85rem, 3.1vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
  text-transform: uppercase;
}

.event-hero__rule {
  display: block;
  width: 164px;
  height: 5px;
  margin: 34px 0 28px;
  background: #e30613;
}

.event-hero__description {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1.03rem, 1.3vw, 1.36rem);
  font-weight: 500;
  line-height: 1.52;
}

@media (max-width: 1050px) {
  .event-hero {
    min-height: 680px;
  }

  .event-hero__inner {
    width: min(100% - 56px, 920px);
  }

  .event-hero__copy {
    width: 58%;
  }

  .event-hero__media img {
    object-position: 67% 50%;
  }

  .event-hero::before {
    background:
      linear-gradient(90deg,
        rgba(1, 10, 18, 1) 0%,
        rgba(1, 10, 18, .96) 36%,
        rgba(1, 10, 18, .62) 58%,
        rgba(1, 10, 18, .16) 100%),
      linear-gradient(180deg,
        rgba(1, 8, 15, .58) 0%,
        rgba(1, 8, 15, 0) 18%,
        rgba(1, 8, 15, 0) 72%,
        rgba(1, 8, 15, .94) 100%);
  }
}

@media (max-width: 760px) {
  .event-hero {
    min-height: 780px;
  }

  .event-hero__media {
    inset: 43% 0 0;
  }

  .event-hero__media img {
    object-position: 58% 50%;
  }

  .event-hero::before {
    background:
      linear-gradient(180deg,
        #020a12 0%,
        #020a12 39%,
        rgba(2, 10, 18, .88) 48%,
        rgba(2, 10, 18, .18) 64%,
        rgba(2, 10, 18, .9) 100%);
  }

  .event-hero::after {
    box-shadow:
      inset 0 34px 40px -30px rgba(0, 0, 0, .95),
      inset 0 -76px 68px -42px rgba(0, 0, 0, 1),
      inset 28px 0 36px -32px rgba(0, 0, 0, .9),
      inset -28px 0 36px -32px rgba(0, 0, 0, .9);
  }

  .event-hero__inner {
    width: min(100% - 38px, 640px);
    align-items: flex-start;
    padding: 48px 0 400px;
  }

  .event-hero__copy {
    width: 100%;
  }

  .event-hero__eyebrow {
    margin-bottom: 22px;
  }

  .event-hero h1 {
    font-size: clamp(3rem, 15vw, 5.25rem);
    line-height: .88;
  }

  .event-hero__location {
    margin-top: 15px;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .event-hero__rule {
    width: 112px;
    height: 4px;
    margin: 26px 0 21px;
  }

  .event-hero__description {
    max-width: 590px;
    font-size: .98rem;
    line-height: 1.48;
  }
}

@media (max-width: 430px) {
  .event-hero {
    min-height: 735px;
  }

  .event-hero__media {
    inset: 50% 0 0;
  }

  .event-hero__inner {
    padding-top: 38px;
    padding-bottom: 345px;
  }

  .event-hero__eyebrow {
    min-height: 38px;
    padding: 10px 15px 9px;
    font-size: .72rem;
  }

  .event-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .event-hero__description {
    font-size: .9rem;
  }
}

/* =========================================================
   FEDERICA PELLEGRINI — BLOCCO 2: NUMERI DELL'ASTA
   ========================================================= */
.event-stats {
  background: #fff;
  padding: 34px 0 38px;
}

.event-stats__inner {
  width: min(1580px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.event-stat {
  position: relative;
  min-height: 188px;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-stat::before,
.event-stat:last-child::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #d9d9d9;
}

.event-stat::before { left: 0; }
.event-stat:last-child::after { right: 0; }

.event-stat svg {
  width: 54px;
  height: 54px;
  margin-bottom: 9px;
  fill: none;
  stroke: #df1c25;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-stat strong {
  display: block;
  color: #df1c25;
  font-size: clamp(2rem, 2.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}

.event-stat span {
  display: block;
  margin-top: 10px;
  color: #191919;
  font-size: clamp(.72rem, .86vw, .92rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .event-stats__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .event-stat:nth-child(4)::before { left: 0; }
  .event-stat:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    right: 0;
    width: 1px;
    background: #d9d9d9;
  }
}

@media (max-width: 700px) {
  .event-stats {
    padding: 24px 0 28px;
  }
  .event-stats__inner {
    width: min(100% - 28px, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-stat {
    min-height: 168px;
    padding: 12px 10px;
  }
  .event-stat:nth-child(3)::after { display: none; }
  .event-stat:nth-child(2n)::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    right: 0;
    width: 1px;
    background: #d9d9d9;
  }
}

/* =========================================================
   FEDERICA PELLEGRINI — REGOLE CONSOLIDATE (v59)
   Unica sezione attiva per questa pagina:
   - hero compatta e sfumata
   - blocco numeri allineato
   - continuità tra blocco 2 e 3
   - crop foto ricalibrati
   ========================================================= */
.event-page--federica main {
  padding-bottom: 40px;
}

.event-page--federica .event-hero {
  width: min(1480px, calc(100% - 48px));
  min-height: clamp(470px, 45vw, 610px);
  margin: 24px auto 0;
  border-radius: 2px;
}

.event-page--federica .event-hero::before {
  background:
    linear-gradient(90deg,
      rgba(1, 10, 18, 1) 0%,
      rgba(1, 10, 18, .97) 23%,
      rgba(1, 10, 18, .82) 38%,
      rgba(1, 10, 18, .34) 54%,
      rgba(1, 10, 18, .08) 72%,
      rgba(1, 10, 18, .72) 100%),
    linear-gradient(180deg,
      rgba(1, 8, 15, .62) 0%,
      rgba(1, 8, 15, 0) 18%,
      rgba(1, 8, 15, 0) 73%,
      rgba(1, 8, 15, .94) 100%);
}

.event-page--federica .event-hero::after {
  box-shadow:
    inset 0 34px 42px -30px rgba(0, 0, 0, .95),
    inset 0 -76px 72px -43px rgba(0, 0, 0, 1),
    inset 54px 0 58px -48px rgba(0, 0, 0, .98),
    inset -110px 0 96px -54px rgba(0, 0, 0, .98);
}

.event-page--federica .event-hero__inner {
  width: min(1320px, calc(100% - 80px));
  padding: clamp(44px, 5vw, 70px) 0 clamp(58px, 6vw, 84px);
}

.event-page--federica .event-hero__copy {
  width: min(560px, 47%);
}

.event-page--federica .event-hero h1 {
  font-size: clamp(3.1rem, 5.15vw, 5.9rem);
  line-height: .9;
}

.event-page--federica .event-hero__location {
  margin-top: 16px;
  font-size: clamp(1.55rem, 2.5vw, 2.7rem);
}

.event-page--federica .event-hero__rule {
  width: 132px;
  height: 4px;
  margin: 26px 0 22px;
}

.event-page--federica .event-hero__description {
  max-width: 560px;
  font-size: clamp(.9rem, 1.05vw, 1.08rem);
  line-height: 1.48;
}

.event-page--federica .event-stats {
  width: min(1480px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 24px 0 26px;
}

.event-page--federica .event-stats__inner {
  width: min(1320px, calc(100% - 56px));
}

.event-page--federica .event-stat {
  min-height: 158px;
  padding: 8px 18px;
}

.event-page--federica .event-stat::before,
.event-page--federica .event-stat:last-child::after {
  top: 16px;
  bottom: 16px;
}

.event-page--federica .event-stat svg {
  width: 46px;
  height: 46px;
  margin-bottom: 7px;
}

.event-page--federica .event-stat strong {
  font-size: clamp(1.8rem, 2.1vw, 2.65rem);
}

.event-page--federica .event-stat span {
  margin-top: 8px;
  font-size: clamp(.67rem, .73vw, .8rem);
}

/* Blocco 3 — v59: griglia a tutta larghezza interna, crop senza translateY. */
.event-page--federica .event-feature {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
}

.event-page--federica .event-feature__grid {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: .95fr .95fr 1.2fr;
}

.event-page--federica .event-feature-card {
  position: relative;
  min-width: 0;
  height: clamp(340px, 29vw, 410px);
  overflow: hidden;
}

.event-page--federica .event-feature-card--photo {
  background: #101318;
}

.event-page--federica .event-feature-card--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-page--federica .event-feature-card--photo:first-child img {
  object-position: 63% center;
}

.event-page--federica .event-feature-card--photo:nth-child(2) img {
  object-position: 50% 10%;
}

.event-page--federica .event-feature-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 36%, rgba(4,8,14,.82) 100%);
  pointer-events: none;
}

.event-page--federica .event-feature-card__overlay {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 2.8vw, 38px);
  right: 22px;
  bottom: clamp(22px, 2.8vw, 34px);
  color: #fff;
}

.event-page--federica .event-feature-card__overlay h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.45vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.event-page--federica .event-feature-card__overlay h2 span {
  display: inline-block;
  margin-top: 4px;
}

.event-page--federica .event-feature-card__overlay p {
  margin: 11px 0 0;
  font-size: clamp(.78rem, .84vw, .92rem);
  font-weight: 500;
}

.event-page--federica .event-feature-card__overlay .event-feature-card__brand {
  font-size: clamp(.68rem, .72vw, .78rem);
  letter-spacing: .045em;
}

.event-page--federica .event-feature-card__rule {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 17px;
  background: #df1c25;
}

.event-page--federica .event-feature-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 3.4vw, 48px);
  background: #f1f1f1;
  text-align: center;
}

.event-page--federica .event-feature-card__logo {
  display: block;
  width: min(350px, 72%);
  max-height: 86px;
  object-fit: contain;
  flex: 0 0 auto;
}

.event-page--federica .event-feature-card--text p {
  max-width: 570px;
  margin: 30px auto 0;
  color: #252525;
  font-size: clamp(1.04rem, 1.15vw, 1.24rem);
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .event-page--federica .event-hero,
  .event-page--federica .event-stats,
  .event-page--federica .event-feature {
    width: min(100% - 36px, 980px);
  }

  .event-page--federica .event-hero {
    min-height: 570px;
  }

  .event-page--federica .event-hero__inner {
    width: min(100% - 54px, 860px);
  }

  .event-page--federica .event-feature__grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-page--federica .event-feature-card {
    height: 420px;
  }

  .event-page--federica .event-feature-card--photo:first-child img {
    object-position: 62% center;
  }

  .event-page--federica .event-feature-card--photo:nth-child(2) img {
    object-position: 50% 8%;
  }

  .event-page--federica .event-feature-card--text {
    grid-column: 1 / -1;
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .event-page--federica .event-hero,
  .event-page--federica .event-stats,
  .event-page--federica .event-feature {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .event-page--federica .event-feature {
    margin-top: 0;
  }

  .event-page--federica .event-hero {
    min-height: 690px;
  }

  .event-page--federica .event-hero__inner {
    width: calc(100% - 34px);
    padding-top: 34px;
    padding-bottom: 350px;
  }

  .event-page--federica .event-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .event-page--federica .event-hero__description {
    font-size: .88rem;
  }

  .event-page--federica .event-feature__grid {
    grid-template-columns: 1fr;
  }

  .event-page--federica .event-feature-card {
    height: 430px;
  }

  .event-page--federica .event-feature-card--photo:first-child img {
    object-position: 61% center;
  }

  .event-page--federica .event-feature-card--photo:nth-child(2) img {
    object-position: 50% 7%;
  }

  .event-page--federica .event-feature-card--text {
    grid-column: auto;
    height: auto;
    min-height: 0;
    padding: 44px 24px 50px;
  }

  .event-page--federica .event-feature-card__logo {
    width: min(310px, 76%);
    max-height: 78px;
  }

  .event-page--federica .event-feature-card--text p {
    margin-top: 24px;
  }
}
