/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f1f1f;
  background: #fff;
  line-height: 1.6;
}

h1, h2 {
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
  font-weight: 700;
}

/* Titoli righe partner con stesso font dei titoli principali */
.partners-row__title {
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
  display: none;
}

.partners-subrow__title {
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
}

/* Nascondi solo il titolo "Partner" (prima sottosezione) */
.partners-row .partners-subrow:first-of-type .partners-subrow__title {
  display: none;
}

a {
  color: #2c3e50;
  text-decoration: none;
}

a:hover {
  color: #9E8C74;
}

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

.container {
  width: min(1400px, 96%);
  margin: 0 auto;
}

header.site-header {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header__logo {
  text-align: center;
}

.header__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__logo .custom-logo,
.header__logo-img {
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
}

.header__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 769px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .header__logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .header__nav {
    grid-column: 3;
    justify-self: end;
  }
}

.brand__title {
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1f1f1f;
  text-decoration: none;
}

.header__logo-link:hover .brand__title {
  color: #9E8C74;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header__menu {
  position: fixed;
  top: 148px;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 20px;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.header__menu li {
  margin: 0;
  width: 100%;
}

.header__menu a {
  display: block;
  padding: 10px 16px;
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: center;
}

.header__menu a:hover,
.header__menu a:focus {
  color: #9E8C74;
  background: #f5f1ec;
}

.header__menu a + a {
  border-top: 1px solid #f0f0f0;
}

.header__menu .current-menu-item > a,
.header__menu .current_page_item > a {
  color: #9E8C74;
  font-weight: 600;
}

.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.header__menu-toggle:focus {
  outline: 2px solid #9E8C74;
  outline-offset: 2px;
}

.header__menu-toggle-icon,
.header__menu-toggle-icon::before,
.header__menu-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #1f1f1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__menu-toggle-icon {
  position: relative;
}

.header__menu-toggle-icon::before,
.header__menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.header__menu-toggle-icon::before {
  top: -8px;
}

.header__menu-toggle-icon::after {
  bottom: -8px;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon {
  background: transparent;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.header__menu-toggle[aria-expanded="true"] + .header__menu,
.header__nav:has(.header__menu-toggle[aria-expanded="true"]) .header__menu {
  max-height: 500px;
  opacity: 1;
}

/* Responsive: menu mobile */
@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .header__logo .custom-logo,
  .header__logo-img {
    max-height: 80px;
  }

  .header__nav {
    width: auto;
    justify-content: flex-end;
  }

  .header__menu a {
    padding: 14px 16px;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: #f5f1ec;
  width: 100%;
}

.hero__slides {
  position: relative;
  width: 100%;
  min-height: 600px;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.hero__media img.hero-placeholder-img {
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 60px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.hero__content h1,
.hero__content h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 56px;
  line-height: 1.2;
  margin: 0;
}

.hero__content h1 {
  font-size: 64px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 26px;
  line-height: 1.5;
  margin-top: 2px;
  margin-bottom: 0;
	font-weight:bold;
}

.hero__content .meta {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__content .cta {
  align-self: center;
  margin-top: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero singolo evento */
.hero--single {
  min-height: 500px;
  position: relative;
}

.hero--single .hero__slide {
  position: relative !important;
  min-height: 500px;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.hero--single .hero__media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0) 60%);
  z-index: 2;
}

.hero--single .hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.hero--single .hero__content h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 48px;
  margin: 0;
}

/* Hero per pagine standard */
.hero--page {
  background: #9E8C74;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  width: 100%;
}

.hero__content--page {
  max-width: 1200px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
}

.hero__content--page h1 {
  color: #fff;
  font-size: 48px;
  margin: 0;
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
}

.single-evento main.section {
  padding-top: 40px;
}

.single-evento .event-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #5a4634;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.single-evento .event-single__back:hover {
  color: #2c3e50;
}

.single-evento .event-single__back i {
  font-size: 14px;
}

.single-evento .event-single__info {
  margin: 32px 0 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f5f0e9;
}

.single-evento .event-single__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  color: #5a4634;
}

.single-evento .event-single__meta-item--datetime {
  font-weight: 600;
}

.single-evento .event-single__cta .cta {
  white-space: nowrap;
}

.single-evento .event-single__map {
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.single-evento .event-single__map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  filter: grayscale(100%);
}

.single-evento .event-single__map-title {
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.single-evento .event-single__layout {
  display: grid;
  gap: 32px;
  align-items: flex-start;
}

.single-evento .event-single__layout--with-poster {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}

.single-evento .event-single__layout--no-poster {
  grid-template-columns: minmax(0, 1fr);
}

.single-evento .event-single__poster {
  margin-top: 16px;
}

.single-evento .event-single__poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.single-evento .event-single__main {
  min-width: 0;
}

.single-evento .event-single__title {
  font-family: "Bodoni Moda", "Bodoni MT", "Bodoni", serif;
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #1f1f1f;
}

.single-evento .event-single__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .single-evento .event-single__poster {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .single-evento .event-single__layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .single-evento .event-single__poster {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .single-evento .event-single__info {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero .container {
  position: relative;
  z-index: 4;
  width: 100%;
}

/* Social share buttons */
.social-share {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #eee;
}

.social-share h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1f1f1f;
}

.social-share__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  padding: 0;
}

.social-share__button svg {
  width: 20px;
  height: 20px;
}

.social-share__button:hover {
  background: #333;
  transform: scale(1.1);
}

.social-share__button--facebook:hover,
.social-share__button--twitter:hover,
.social-share__button--linkedin:hover,
.social-share__button--whatsapp:hover,
.social-share__button--copy:hover {
  background: #333;
}

.hero .container[style*="display:flex"] {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: flex-end;
  padding: 24px 40px;
}

/* Pallini di navigazione per l'hero slider */
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.1);
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  background: #f0e7db;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero__content .badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  align-self: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #9E8C74;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(158, 140, 116, 0.25);
}

.cta:hover,
.cta:focus {
  color: #fff;
}

.cta.secondary {
  background: #2c3e50;
}

.section {
  padding: 72px 0;
}

.section__title {
  font-size: 48px;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

/* Sezione partner: titolo e loghi centrati */
.section--partners .section__title,
.block-partner-grid .section__title {
  text-align: center;
  display: none;
}

.section--partners,
.block-partner-grid {
  padding-top: 40px;
}

.section--partners .container {
  width: min(950px, 96%);
  margin: 0 auto;
  text-align: center;
}

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

.cards.cards--3cols {
  grid-template-columns: repeat(3, 1fr);
}

.cards.cards--4cols {
  grid-template-columns: repeat(4, 1fr) !important;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cards > .card {
  height: 100%;
}

.card__media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card__media img.event-placeholder-img {
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: grayscale(100%);
}

/* Locandina evento in evidenza: tutta visibile in verticale, altezza fissa */
.card__media img.event-poster-img {
  height: 450px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.card:hover .card__media img.event-poster-img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  /* Riduci lo spazio verticale delle sezioni su mobile */
  .section {
    padding: 40px 0;
  }

  /* Sezione Eventi subito sotto lo slider: ancora meno spazio sopra */
  #eventi.section {
    padding-top: 24px;
  }

  /* Riduci dimensione h2 su mobile e centra */
  h2 {
    font-size: 32px;
    text-align: center;
  }

  .section__title {
    font-size: 32px;
    text-align: center;
  }

  .cards,
  .cards.cards--3cols,
  .cards.cards--4cols {
    grid-template-columns: 1fr !important;
  }

  /* Eventi slider: su mobile ogni slide occupa tutta la larghezza */
  .eventi-slider__slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 0 9px;
  }

  /* Track dello slider: su mobile mostra tutte le slide in colonna */
  .eventi-slider__track {
    flex-wrap: wrap !important;
    transform: none !important;
  }
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Stili card evento - ordine: data, titolo, tipo, scopri */
.card__date {
  font-size: 16px;
  font-weight: 600;
  color: #9E8C74;
  margin-bottom: 0;
}

.card__location {
  font-size: 14px;
  font-weight: 600;
  color: #6b6b6b;
  margin-top: -4px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card__title {
  font-weight: 800 !important;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #1f1f1f;
}

.card__type {
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
  margin-top: 4px;
}

.card__cta {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: auto;
  display: inline-block;
  width: max-content;
  align-self: flex-end;
}

#eventi .card__cta {
  font-size: 16px;
}

/* Card Programma completo */
.card--programma {
  position: relative;
}

.card__media--programma {
  position: relative;
  height: 300px;
  background: #9E8C74;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__media--programma img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.card__body--programma {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.card__title--programma {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Slider eventi in evidenza (quando ci sono più di 4 eventi) */
.eventi-slider {
  position: relative;
  overflow: hidden;
}

.eventi-slider__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.5s ease;
  will-change: transform;
}

.eventi-slider__slide {
  flex: 0 0 25%;
  width: 25%;
  padding: 0 9px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eventi-slider__slide .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Assicura che tutte le card__body abbiano la stessa altezza fissa */
.eventi-slider__slide .card__body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 240px;
  padding-bottom: 40px;
  overflow: hidden;
}

.eventi-slider__slide .card__cta {
  position: absolute;
  bottom: 16px;
  right: 16px;
  margin: 0;
  z-index: 10;
}

.eventi-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.eventi-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.eventi-slider__dot:hover {
  background: #9E8C74;
}

.eventi-slider__dot.is-active {
  background: #9E8C74;
}

/* Pulsante "Vedi calendario completo" sotto la griglia eventi in evidenza */
.eventi__more {
  margin-top: 28px;
  text-align: center;
}

.eventi__more .cta {
  padding-inline: 28px;
  background: #9E8C74;
}

.meta {
  font-size: 13px;
  color: #6b6b6b;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.newsletter {
  background: #d6c2ae;
  padding: 32px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  align-items: center;
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #c9b49d;
  border-radius: 8px;
  font-size: 14px;
}

/* Home gallery slider (tra La Rassegna e News) */
.section--gallery {
  padding-top: 24px;
  padding-left: 0;
  padding-right: 0;
}

.home-gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
}

.home-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.home-gallery__slide {
  flex: 0 0 33.3333%;
  display: block;
  margin: 0;
  padding: 0;
}

.home-gallery__img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  object-fit: cover;
  filter: grayscale(100%);
  box-shadow: none;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: center;
  text-align: center;
  color: #5a4634;
}

/* Override per la sezione Partner & Istituzioni: loghi centrati come gruppo */
.section--partners .partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.section--partners .partners-row--organizzatori img {
  height: 140px;
}

/* Loghi partner desaturati (homepage fallback + archive) */
.partners img,
.partner-card__logo img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.partners img:hover,
.partner-card__logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

footer.site-footer {
  padding: 48px 0 24px;
  background: #f5f0e9;
  border-top: 1px solid #e6d9c9;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.footer__col--logo {
  display: flex;
  justify-content: flex-start;
}

.footer__col--menu {
  display: flex;
  justify-content: center;
}

.footer__col--copyright {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #5a4634;
  line-height: 1.3;
}

.footer__site-title {
  font-weight: 600;
  font-size: 16px;
  color: #1f1f1f;
  margin-bottom: 0;
  line-height: 1.2;
}

.footer__tagline {
  font-size: 12px;
  color: #5a4634;
  line-height: 1.2;
}

.footer__unipi {
  font-size: 13px;
  color: #5a4634;
  margin-top: 0;
  line-height: 1.2;
}

.footer__unipi a {
  color: #5a4634;
  text-decoration: none;
}

.footer__unipi a:hover {
  color: #9E8C74;
}

.footer__logo {
  margin-bottom: 0;
}

.footer__logo .custom-logo,
.footer__logo-img {
  max-height: 70px;
  width: auto;
  height: auto;
  display: block;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
}

.footer__site-title {
  font-weight: 600;
  font-size: 18px;
  color: #1f1f1f;
}

.footer__bottom {
  margin-top: 28px;
  font-size: 13px;
  color: #6a6a6a;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__bottom-left,
.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom-logo .custom-logo {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.footer__bottom-logo-img {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.footer__bottom-title {
  font-weight: 500;
}


.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2ece4;
  font-size: 12px;
}

.footer-nav {
  margin-top: 0;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  font-size: 14px;
  color: #5a4634;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #9E8C74;
}

/* Evidenzia "Tutti gli eventi" nel filtro sezioni */
.filters__sections #sezione-evento-all + .filters__section-label span {
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filters select,
.filters input,
.filters button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
}

.filters__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.filters__section-radio {
  display: none;
}

.filters__section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #5a4634;
}

.filters__section-label i {
  font-size: 16px;
}

.filters__section-radio:checked + .filters__section-label {
  border-color: #9E8C74;
  background: #f5f0e9;
  color: #2c3e50;
}

.filters__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.eventi-archive__alert {
  margin: 12px 0 22px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffaf2;
  border: 1px solid #f0e0c2;
  font-size: 13px;
  color: #6b6b6b;
  font-style: italic;
}

@media (max-width: 960px) {
  .hero__slides,
  .hero__slide {
    min-height: 500px;
  }
  .hero__content {
    padding: 40px 24px;
    text-align: center;
  }
  .hero__content h1 {
    font-size: 40px;
  }
  .hero__content p {
    font-size: 18px;
  }
  .hero__content h2 {
    font-size: 32px;
  }
  /* Eventi in evidenza: su schermi tipo tablet/mobile mostra una colonna sola */
  .cards,
  .cards.cards--3cols,
  .cards.cards--4cols {
    grid-template-columns: 1fr;
  }
  .newsletter {
    grid-template-columns: 1fr;
  }
  .hero .container[style*="display:flex"] {
    padding: 20px;
  }
  .hero--page {
    min-height: 160px;
    padding: 40px 0;
  }
  .hero__content--page h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__col--logo,
  .footer__col--menu,
  .footer__col--copyright {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero__slides,
  .hero__slide {
    min-height: 380px;
  }
  .hero__content {
    padding: 32px 20px;
  }
  .hero__content h1 {
    font-size: 32px;
  }
  .hero__content p {
    font-size: 14px;
  }
  .hero__content h2 {
    font-size: 28px;
  }

  /* Riduci ulteriormente h2 su schermi molto piccoli e centra */
  h2 {
    font-size: 28px;
    text-align: center;
  }

  .section__title {
    font-size: 28px;
    text-align: center;
  }
  .hero button[data-sf-prev],
  .hero button[data-sf-next] {
    padding: 6px 10px;
    font-size: 14px;
  }
  .hero--page {
    min-height: 140px;
    padding: 32px 0;
  }
  .hero__content--page {
    padding: 0 20px;
  }
  .hero__content--page h1 {
    font-size: 28px;
  }
}

