/*
Theme Name: CityWall WP
Version: 1.0.5
Text Domain: citywall-wp
*/

.ap-elementor-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ap-elementor-course-grid a {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 8px;
  background: #173f35;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ap-elementor-course-grid a:hover {
  background: #b59a6d;
  color: #11141b;
}

@media screen and (max-width: 991px) {
  .ap-elementor-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 576px) {
  .ap-elementor-course-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero logo in first slide */
.home-one .banner .hero-logo-wrap {
  margin-top: 16px;
}

.home-one .banner .hero-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 576px) {
  .home-one .banner .hero-logo {
    width: 190px;
    max-width: 190px;
  }
}

/* Home services section */
.home-services .service-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-services .service-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.home-services .service-body {
  background: #fff;
  margin: -40px 24px 24px;
  padding: 24px 24px 18px;
  border: 1px dashed rgba(181, 154, 109, 0.5);
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.home-services .service-icon {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b59a6d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b59a6d;
  font-size: 20px;
}

.home-services .service-body h4 {
  margin: 10px 0 10px;
}

.home-services .service-body p {
  margin-bottom: 16px;
}

.home-services .service-link {
  color: #b59a6d;
  font-weight: 600;
  margin-top: auto;
}

.home-services .service-link:hover {
  color: #11141b;
}

/* Home media library */
.home-media-library,
.home-fototeca-banner {
  padding: 36px 0 12px;
}

.home-media-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-media-library__item,
.home-fototeca-banner__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(185, 157, 106, 0.5);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  padding: 26px 30px;
}

.home-media-library__item--photo,
.home-fototeca-banner__inner {
  background-image: url("http://www.areeprotette.org/wp-content/uploads/2026/03/shutterstock_2574756181-scaled.jpg");
}

.home-media-library__item--video {
  background-image: url("http://www.areeprotette.org/wp-content/uploads/2026/01/Aree-Marine-Protette-copia-scaled-e1770809420241.jpg");
}

.home-media-library__overlay,
.home-fototeca-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.08) 0%, rgba(10, 16, 24, 0.52) 100%);
}

.home-media-library__title,
.home-fototeca-banner__title {
  position: relative;
  z-index: 1;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
}

@media screen and (max-width: 576px) {
  .home-media-library,
  .home-fototeca-banner {
    padding: 24px 0 8px;
  }

  .home-media-library__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-media-library__item,
  .home-fototeca-banner__inner {
    min-height: 230px;
    padding: 18px 20px;
  }
}

/* Banner images: keep aspect ratio without stretching */
.banner .images-optimization > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Guide bar (match original banner input style) */
.banner-input-field {
  border: 1px dashed #b59a6d;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.banner-input-field input#solution {
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
}

.banner-input-field input#solution::placeholder {
  white-space: normal;
}

.banner-input-field a {
  background: #b59a6d;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.banner-input-field a:hover {
  color: #fff;
}

.home-one .banner-input-field {
  border-width: 2px;
  padding: 16px 20px;
}

.home-one .banner-input-field input#solution {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.home-one .banner-input-field input#solution::placeholder {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: #11141b;
}

.home-one .banner-input-field a {
  padding: 12px 20px;
  font-size: 22px;
  font-weight: 600;
}

.home-one .guide-cta-wrap {
  max-width: 100%;
}

.home-one .guide-cta-bar {
  border-style: solid;
}

.home-one .guide-cta-bar .guide-bar-left {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.home-one .guide-cta-bar .guide-bar-logo {
  width: 192px;
  max-width: 192px;
  height: auto;
  flex: 0 0 auto;
}

.home-one .guide-cta-bar .guide-bar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: #11141b;
  text-align: center;
}

.home-pre-news-banner-slot {
  width: 100%;
  margin: 34px 0 36px;
  padding: 0;
}

.home-pre-news-banner-slot .container {
  padding-left: 12px;
  padding-right: 12px;
}

.home-event-banner {
  background: #ffffff;
  border: 2px solid #b59a6d;
  box-shadow: 0 10px 24px rgba(17, 20, 27, 0.08);
  overflow: hidden;
}

.home-event-banner__visual {
  padding: 8px 12px 4px;
  border-bottom: 1px solid rgba(181, 154, 109, 0.38);
  background: #ffffff;
}

.home-event-banner__visual img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  max-height: 150px;
  object-fit: contain;
  object-position: center center;
  transform: scale(1);
  animation: citywall-event-zoom 12s ease-in-out infinite alternate;
}

.home-event-banner__content {
  padding: 20px 22px 16px;
  text-align: center;
}

.home-event-banner__content-box {
  max-width: none;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(181, 154, 109, 0.45);
  padding: 16px 16px 14px;
}

.home-event-banner__kicker {
  margin: 0 0 6px;
  color: #594A3C;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 400;
}

.home-event-banner__title {
  margin: 0 0 14px;
  color: #b59a6d;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 700;
}

.home-event-banner__title-main,
.home-event-banner__title-sub {
  display: block;
}

.home-event-banner__title-main {
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.04;
}

.home-event-banner__title-sub {
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.08;
}

.home-event-banner__theme {
  margin: 0 0 8px;
  color: #594A3C;
  font-size: clamp(18px, 1.72vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

@media screen and (min-width: 992px) {
  .home-event-banner__theme {
    white-space: normal;
  }
}

.home-event-banner__theme-sub {
  margin: 0 0 16px;
  color: #594A3C;
  font-size: clamp(16px, 1.55vw, 34px);
  line-height: 1.25;
  font-style: italic;
  font-weight: 500;
}

.home-event-banner__place,
.home-event-banner__date,
.home-event-banner__venue,
.home-event-banner__hours {
  margin: 0;
  color: #594A3C;
}

.home-event-banner__place {
  font-size: 30px;
  line-height: 1.08;
  margin-bottom: 12px;
  font-weight: 500;
}

.home-event-banner__place em {
  display: block;
  font-size: 0.48em;
  font-style: italic;
  font-weight: 400;
}

.home-event-banner__date {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-event-banner__access {
  margin: 0 0 12px;
  color: #b59a6d;
  line-height: 1.2;
}

.home-event-banner__access span {
  display: block;
}

.home-event-banner__access span:first-child {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-event-banner__access span:last-child {
  font-size: 18px;
  font-weight: 500;
}

.home-event-banner__hours {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #b59a6d;
  margin-bottom: 8px;
}

.home-event-banner__venue {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.home-event-banner__venue span {
  display: block;
}

.home-event-banner__venue span:first-of-type {
  font-size: 19px;
  line-height: 1.2;
}

.home-event-banner__venue span:last-of-type {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.home-event-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 4px;
}

.home-event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #b59a6d;
  color: #b59a6d;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-event-btn:hover {
  background: #b59a6d;
  color: #fff;
}

.home-event-btn.home-event-btn--primary {
  background: #b59a6d;
  border-color: #b59a6d;
  color: #fff;
}

.home-event-btn.home-event-btn--primary:hover {
  background: #9e8458;
  border-color: #9e8458;
}

.home-event-banner__contact {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #11141b;
}

.home-event-banner__contact a {
  color: #b59a6d;
  font-weight: 600;
  text-decoration: underline;
}

.home-event-banner__contact-hours {
  margin-left: 8px;
  color: #4a4a4a;
}

.home-event-registration {
  margin-top: 12px;
}

.home-event-registration__box {
  border: 1px solid rgba(122, 46, 31, 0.3);
  background: #ffffff;
  padding: 16px 16px 18px;
}

.home-event-registration__box h4 {
  margin: 0 0 6px;
  color: #b59a6d;
  font-size: 24px;
}

.home-event-registration__box > p {
  margin: 0 0 12px;
  font-size: 15px;
}

.home-event-registration__notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.3;
}

.home-event-registration__notice--success {
  border-color: #2c7a2e;
  background: #ecf8ec;
  color: #1f5f22;
}

.home-event-registration__notice--error {
  border-color: #8a1f24;
  background: #fdecee;
  color: #7d1218;
}

.home-event-registration__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.home-event-registration__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-event-registration__form label span {
  font-size: 14px;
  font-weight: 600;
  color: #11141b;
}

.home-event-registration__form input[type="text"],
.home-event-registration__form input[type="email"] {
  border: 1px solid #d8d8d8;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.2;
  color: #11141b;
  background: #fff;
}

.home-event-registration__privacy {
  grid-column: 1 / -1;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
}

.home-event-registration__privacy input {
  margin-top: 3px;
}

.home-event-registration__submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid #b59a6d;
  background: #b59a6d;
  color: #fff;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.25s ease;
}

.home-event-registration__submit:hover {
  background: #9e8458;
  border-color: #9e8458;
}

.home-one .newsroom {
  margin-top: 44px !important;
}

@keyframes citywall-event-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-event-banner__visual img {
    animation: none;
    transform: none;
  }
}

@media screen and (max-width: 992px) {
  .home-one .banner-input-field {
    flex-wrap: wrap;
    gap: 16px;
  }

  .home-one .banner-input-field input#solution,
  .home-one .banner-input-field input#solution::placeholder {
    font-size: 18px;
  }

  .home-one .banner-input-field a {
    font-size: 19px;
  }

  .home-one .guide-cta-bar .guide-bar-logo {
    width: 152px;
    max-width: 152px;
  }

  .home-one .guide-cta-bar .guide-bar-text {
    font-size: 18px;
  }

  .home-pre-news-banner-slot {
    margin: 28px 0 30px;
  }

  .home-pre-news-banner-slot .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-event-banner__visual {
    padding: 6px 10px 4px;
  }

  .home-event-banner__visual img {
    max-height: 118px;
  }

  .home-event-banner__content {
    padding: 18px 16px 14px;
  }

  .home-event-banner__content-box {
    padding: 14px 12px 12px;
  }

  .home-event-banner__kicker {
    font-size: 30px;
  }

  .home-event-banner__title {
    font-size: clamp(22px, 3.6vw, 38px);
  }

  .home-event-banner__title-main {
    font-size: clamp(24px, 3.2vw, 42px);
  }

  .home-event-banner__title-sub {
    font-size: clamp(20px, 2.8vw, 34px);
  }

  .home-event-banner__theme {
    font-size: clamp(19px, 2.5vw, 34px);
    margin-bottom: 7px;
  }

  .home-event-banner__theme-sub {
    font-size: clamp(15px, 2vw, 27px);
    margin-bottom: 14px;
  }

  .home-event-banner__place {
    font-size: 27px;
  }

  .home-event-banner__date {
    font-size: 24px;
  }

  .home-event-banner__access span:first-child {
    font-size: 18px;
  }

  .home-event-banner__access span:last-child {
    font-size: 16px;
  }

  .home-event-banner__hours {
    font-size: 17px;
  }

  .home-event-banner__venue {
    font-size: 18px;
  }

  .home-event-banner__venue span:first-of-type {
    font-size: 17px;
  }

  .home-event-banner__venue span:last-of-type {
    font-size: 21px;
  }

  .home-event-registration__box h4 {
    font-size: 22px;
  }

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

@media screen and (max-width: 576px) {
  .home-one .banner-input-field {
    padding: 16px;
  }

  .home-one .banner-input-field input#solution,
  .home-one .banner-input-field input#solution::placeholder {
    font-size: 16px;
  }

  .home-one .banner-input-field a {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
  }

  .home-one .guide-cta-bar .guide-bar-left {
    width: 100%;
  }

  .home-one .guide-cta-bar .guide-bar-logo {
    width: 124px;
    max-width: 124px;
  }

  .home-one .guide-cta-bar .guide-bar-text {
    font-size: 16px;
  }

  .home-pre-news-banner-slot {
    margin: 22px 0 22px;
  }

  .home-pre-news-banner-slot .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .home-event-banner__visual {
    padding: 4px 8px 2px;
  }

  .home-event-banner__visual img {
    max-height: 96px;
  }

  .home-event-banner__content {
    padding: 14px 10px 14px;
  }

  .home-event-banner__content-box {
    padding: 12px 8px 10px;
  }

  .home-event-banner__kicker {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .home-event-banner__title {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .home-event-banner__title-main {
    font-size: 28px;
  }

  .home-event-banner__title-sub {
    font-size: 22px;
  }

  .home-event-banner__theme {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .home-event-banner__theme-sub {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .home-event-banner__place {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .home-event-banner__date {
    font-size: 20px;
  }

  .home-event-banner__access span:first-child {
    font-size: 16px;
  }

  .home-event-banner__access span:last-child {
    font-size: 14px;
  }

  .home-event-banner__hours {
    font-size: 15px;
  }

  .home-event-banner__venue {
    font-size: 15px;
  }

  .home-event-banner__venue span:first-of-type {
    font-size: 14px;
  }

  .home-event-banner__venue span:last-of-type {
    font-size: 17px;
  }

  .home-event-banner__actions {
    gap: 8px;
  }

  .home-event-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 14px;
  }

  .home-event-banner__contact {
    font-size: 15px;
  }

  .home-event-banner__contact-hours {
    margin-left: 0;
    display: block;
    margin-top: 2px;
  }

  .home-event-registration {
    margin-top: 12px;
  }

  .home-event-registration__box {
    padding: 16px 12px 18px;
  }

  .home-event-registration__box h4 {
    font-size: 22px;
  }

  .home-event-registration__box > p {
    font-size: 15px;
  }

  .home-event-registration__submit {
    width: 100%;
    justify-self: stretch;
  }

  .home-one .newsroom {
    margin-top: 28px !important;
  }
}

/* Comitato tecnico - scientifico */
.committee-members .committee-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.committee-members .member-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 8px 0 12px;
}

.committee-members .card-body {
  text-align: center;
}

/* Centro Studi: smaller top image */
.centro-photo-small {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Libretto band */
.libretto-band {
  padding: 40px 0 20px;
}

.libretto-band .libretto-content h2 {
  margin-bottom: 12px;
}

.libretto-band .libretto-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.libretto-band .libretto-btn {
  display: inline-block;
  background: #b59a6d;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.libretto-band .libretto-btn:hover {
  color: #fff;
}

/* Armonia News spacing */
.page-template-page-armonia-news .cityWall-btn {
  margin-top: 24px;
}

.libretto-band .libretto-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Sistema Federparchi links: right arrow, black */
#sistemaAccordion .accordion-button {
  color: #b59a6d;
  text-decoration: none;
}

#sistemaAccordion .accordion-button::after {
  margin-left: auto;
  transform: none;
  color: #11141b;
  background-image: none;
  content: "›";
  font-size: 22px;
  line-height: 1;
}

#parchiAccordionSpecialistici .accordion-button,
#parchiAccordionMonotematici .accordion-button,
#parchiAccordionBase .accordion-button {
  color: #b59a6d;
  text-decoration: none;
  background: #f2f2f2;
}

#parchiAccordionSpecialistici .accordion-button::after,
#parchiAccordionMonotematici .accordion-button::after,
#parchiAccordionBase .accordion-button::after {
  margin-left: auto;
  transform: none;
  color: #11141b;
  background-image: none;
  content: "›";
  font-size: 22px;
  line-height: 1;
}


/* Centro Studi accordion (Sedi) match Corsi colors */
#centroAccordionSede .accordion-button,
#centroAccordionSezioni .accordion-button,
#centroAccordionSede .accordion-button:not(.collapsed),
#centroAccordionSezioni .accordion-button:not(.collapsed) {
  color: #b59a6d !important;
  text-decoration: none;
  background: #f2f2f2 !important;
  box-shadow: none !important;
  border: 1px solid #d7c2a0 !important;
}

#centroAccordionSede .accordion-button:focus,
#centroAccordionSezioni .accordion-button:focus {
  box-shadow: none !important;
  border-color: #d7c2a0 !important;
}

#centroAccordionSede .accordion-button::after,
#centroAccordionSezioni .accordion-button::after {
  background-image: none !important;
  content: "›";
  font-size: 22px;
  line-height: 1;
  color: #11141b;
  transform: rotate(0deg);
}

#centroAccordionSede .accordion-button:not(.collapsed)::after,
#centroAccordionSezioni .accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
}

#parchiAccordionSpecialistici .course-link-item,
#parchiAccordionMonotematici .course-link-item,
#parchiAccordionBase .course-link-item {
  color: #212529;
  text-decoration: none;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  font-size: 16px !important;
  line-height: 1.5;
  font-weight: 400;
}

#parchiAccordionSpecialistici .accordion-header,
#parchiAccordionMonotematici .accordion-header,
#parchiAccordionBase .accordion-header {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

#parchiAccordionSpecialistici .course-link-item::after,
#parchiAccordionMonotematici .course-link-item::after,
#parchiAccordionBase .course-link-item::after {
  margin-left: auto;
  transform: none;
  color: #11141b;
  background-image: none;
  content: "›";
  font-size: 22px;
  line-height: 1;
}

#parchiAccordionSpecialistici .course-link-item:hover,
#parchiAccordionMonotematici .course-link-item:hover,
#parchiAccordionBase .course-link-item:hover {
  color: #b59a6d;
  text-decoration: none;
}


/* Centro Studi: keep course boxes typography equal to original template */
#parchiAccordionSpecialistici .accordion-item .accordion-header,
#parchiAccordionMonotematici .accordion-item .accordion-header,
#parchiAccordionBase .accordion-item .accordion-header {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  margin: 0 !important;
}

#parchiAccordionSpecialistici .accordion-button,
#parchiAccordionMonotematici .accordion-button,
#parchiAccordionBase .accordion-button,
#parchiAccordionSpecialistici .course-link-item,
#parchiAccordionMonotematici .course-link-item,
#parchiAccordionBase .course-link-item {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  color: #b59a6d !important;
  text-transform: none !important;
}

/* Service Details (match original layout) */
.service-details .details-link ul li + li {
  margin-top: 12px;
}

.service-details .details-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f7f7 !important;
  border: 1px solid #d7c2a0 !important;
  padding: 14px 16px;
  color: #11141b !important;
}

.service-details .details-link a h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.service-details .details-link a i {
  color: #b59a6d !important;
}

.service-details .Contact-advice {
  margin-top: 20px;
}

.service-details .Contact-advice .img-bg {
  width: 100%;
}

.service-details .Contact-advice .cover-images-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 28px 22px;
  background: rgba(181, 154, 109, 0.78);
}


.service-details .Contact-advice .support {
  max-width: 70px;
  margin: 14px auto;
}

.service-details .download-files {
  margin-top: 20px;
  background: #b59a6d;
  gap: 12px;
  padding: 14px 12px;
}

.service-details .download-files h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.service-details .download-files .download {
  max-width: 34px;
}

/* Service Details banner overlay */
.service-details .banner .images-optimization img {
  width: 100%;
  min-height: 200px;
  max-height: 426px;
}

.service-details .banner .images-optimization .cover-images-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  height: 100%;
}

.service-details .banner .images-optimization .cover-images-overlay .banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.service-details .banner .home-about-link {
  bottom: 0;
  position: absolute;
}

.service-details .banner .home-about-link ul {
  display: flex;
  background-color: #b59a6d;
  width: fit-content;
  padding: 20px 30px;
}

.service-details .banner .home-about-link ul li {
  transition: all 0.5s ease;
  position: relative;
}

.service-details .banner .home-about-link ul li a::before {
  border-bottom: 2px solid #11141b;
  content: "";
  position: absolute;
  width: 5%;
  bottom: 0px;
  transition: all 0.5s ease;
}

.service-details .banner .home-about-link ul li a:hover::before {
  width: 100%;
}

@media screen and (max-width: 576px) {
  .home-services .service-image img {
    height: 220px;
  }

  .home-services .service-body {
    margin: -30px 16px 16px;
    padding: 20px 18px 16px;
  }

  .banner-input-field {
    padding: 10px 12px;
  }

  .banner-input-field a {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* Testimonials: narrower and collapsible */
.our-testimonials .testimonial-slider-wrap {
  max-width: 980px;
  margin: 0 auto;
}

@media screen and (max-width: 992px) {
  .our-testimonials .testimonial-slider-wrap {
    max-width: 100%;
  }
}

/* Gallery section spacing */
.city-highlights-photos .section-title {
  padding-left: 30px;
  padding-right: 30px;
}

@media screen and (max-width: 576px) {
  .city-highlights-photos .section-title {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.city-highlights-photos .city-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-left: 30px;
  padding-right: 30px;
}

.city-highlights-photos .city-gallery-grid .gallery-item {
  overflow: hidden;
  border-radius: 6px;
}

.city-highlights-photos .city-gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 992px) {
  .city-highlights-photos .city-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 576px) {
  .city-highlights-photos .city-gallery-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
  .city-highlights-photos .city-gallery-grid img {
    height: 200px;
  }
}

/* Home cards */
.banner-card .home-cards-grid-static {
  margin-top: 2px;
}

.banner-card .home-uniform-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(181, 154, 109, 0.35);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.banner-card .home-uniform-card:hover,
.banner-card .home-uniform-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(181, 154, 109, 0.6);
  box-shadow: 0 10px 24px rgba(14, 20, 27, 0.12);
}

.banner-card .home-uniform-card .card-img-top {
  height: 150px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 10px;
}

.banner-card .home-uniform-card .card-img-top.armonia-home-image {
  padding: 8px 10px;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.banner-card .home-uniform-card .card-body {
  min-height: 140px;
  padding: 16px;
}

.banner-card .home-uniform-card .card-title {
  min-height: 46px;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.banner-card .home-uniform-card .card-text {
  font-size: 17px;
  line-height: 1.5;
}

.banner-card .home-featured-boxes {
  margin-top: 16px !important;
}

.banner-card .home-featured-boxes .home-featured-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  min-height: 0;
}

.banner-card .home-featured-boxes .home-featured-card .card-img-top {
  width: 100%;
  height: 210px;
  padding: 12px;
  border-right: 0;
  border-bottom: 0;
}

.banner-card .home-featured-boxes .home-featured-card .card-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.banner-card .home-featured-boxes .home-featured-card .card-title {
  min-height: 0;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.banner-card .home-featured-boxes .home-featured-card .card-text {
  font-size: 16px;
  line-height: 1.45;
}

.banner-card .home-uniform-card:hover .card-title,
.banner-card .home-uniform-card:focus-within .card-title {
  color: #b59a6d;
}

.about-company .company-details .chi-siamo-split-vertical {
  margin-top: 10px;
}

.about-company .company-details .chi-siamo-split-vertical p {
  margin-bottom: 16px;
}

.about-company .company-details .chi-siamo-split-vertical .company-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-company .company-details .chi-siamo-middle-image {
  margin: 24px 0 28px;
}

.about-company .company-details .chi-siamo-middle-image img {
  width: 100%;
  max-width: 640px;
  height: auto;
}

@media screen and (max-width: 768px) {
  .banner-card .home-uniform-card .card-img-top {
    height: 138px;
    padding: 8px;
  }

  .banner-card .home-uniform-card .card-img-top.armonia-home-image {
    padding: 8px 10px;
    object-position: center;
    transform: none;
  }

  .banner-card .home-uniform-card .card-body {
    min-height: 118px;
    padding: 14px;
  }

  .banner-card .home-featured-boxes .home-featured-card {
    min-height: 0;
  }

  .banner-card .home-featured-boxes .home-featured-card .card-img-top {
    height: 170px;
    width: 100%;
    padding: 10px;
    border-right: 0;
    border-bottom: 0;
  }

  .banner-card .home-featured-boxes .home-featured-card .card-title {
    font-size: 18px;
  }

  .banner-card .home-featured-boxes .home-featured-card .card-text {
    font-size: 15px;
  }
}


.site-logo {
  height: 80px;
  width: auto;
  display: block;
}

.side-logo {
  height: 80px;
}

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
}

@media screen and (max-width: 576px) {
  .site-logo {
    height: 64px;
  }
  .side-logo {
    height: 80px;
  }
  .footer-logo {
    height: 64px;
  }
}
.side-logo {
  max-width: 180px;
  height: auto;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

/* Normalize logo sizing/alignment */
.brand-logo .navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-logo {
  max-height: 56px;
  width: auto;
  height: auto;
}

.side-logo {
  max-height: 48px;
  width: auto;
  height: auto;
}

.footer-logo {
  max-height: 52px;
  width: auto;
  height: auto;
}

@media screen and (max-width: 576px) {
  .site-logo {
    max-height: 48px;
  }
  .side-logo {
    max-height: 44px;
  }
  .footer-logo {
    max-height: 46px;
  }
}
.banner .banner-content h1,
.banner .banner-content h2 {
  font-weight: 400;
}

@media screen and (max-width: 576px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .banner .images-optimization {
    min-height: 360px;
  }

  .home-services .service-card {
    border-radius: 10px;
  }

  .home-services .service-body {
    margin: -32px 16px 16px;
    padding: 20px 18px 16px;
  }

  .projects-details .details,
  .blog-post .details,
  .page .entry-content {
    padding-top: 8px;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #0e141b;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-banner__link {
  color: #b99d6a;
  text-decoration: none;
  font-weight: 600;
}
.cookie-banner__link:hover {
  text-decoration: underline;
}
.cookie-banner__btn {
  background: #b99d6a;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
}
.cookie-banner__btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .cookie-banner__content {
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Photo Gallery page */
.photo-gallery-page .wp-block-gallery,
.photo-gallery-page .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.photo-gallery-page .wp-block-gallery figure,
.photo-gallery-page .gallery .gallery-item {
  margin: 0;
}
.photo-gallery-page .wp-block-gallery img,
.photo-gallery-page .gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Photo/Video upload forms (frontend) */
.user-photo-upload-form,
.user-video-upload-form {
  background: #ffffff;
  border: 1px solid rgba(185, 157, 106, 0.35);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.user-photo-upload-form label,
.user-video-upload-form label {
  color: #0e141b;
  font-weight: 600;
}
.user-photo-upload-form .form-control,
.user-video-upload-form .form-control {
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.user-photo-upload-form .form-check-label a,
.user-video-upload-form .form-check-label a {
  color: #b99d6a;
  font-weight: 600;
}
.user-photo-upload-form .btn,
.user-video-upload-form .btn {
  background: #b99d6a;
  border: 1px solid #b99d6a;
  color: #ffffff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
}
.user-photo-upload-form .btn:hover,
.user-video-upload-form .btn:hover {
  opacity: 0.9;
}

@media screen and (max-width: 768px) {
  .citywall-fototeca-grid,
  .citywall-videoteca-grid {
    grid-template-columns: 1fr !important;
  }

  .citywall-fototeca-filters,
  .citywall-videoteca-filters {
    flex-direction: column;
  }

  .citywall-fototeca-filters select,
  .citywall-fototeca-filters button,
  .citywall-videoteca-filters select,
  .citywall-videoteca-filters button {
    width: 100%;
  }
}


/* Armonia home card: no clipped letters */
.banner-card .card.armonia-card {
  overflow: hidden !important;
}

.banner-card .card.armonia-card img.armonia-fill-image {
  width: 100% !important;
  height: 210px !important;
  max-width: none !important;
  padding: 10px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #fff !important;
}

@media screen and (max-width: 576px) {
  .banner-card .card.armonia-card img.armonia-fill-image {
    height: 170px !important;
  }
}




/* Registro home card: enlarge logo */
.banner-card .card.registro-card img.registro-fill-image {
  width: 100% !important;
  height: 210px !important;
  max-width: none !important;
  padding: 10px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #fff !important;
}

@media screen and (max-width: 576px) {
  .banner-card .card.registro-card img.registro-fill-image {
    height: 170px !important;
  }
}

.banner-card .home-featured-boxes .home-featured-card .card-body,
.banner-card .home-featured-boxes .home-featured-card .card-title,
.banner-card .home-featured-boxes .home-featured-card .card-text {
  display: none !important;
}

/* Registro Nazionale page: more vertical spacing between text and ambiti section */
.service-details .global-transaction-advisory.registry-gap {
  margin-top: 78px !important;
}

@media screen and (max-width: 767px) {
  .service-details .global-transaction-advisory.registry-gap {
    margin-top: 46px !important;
  }
}

/* Service templates: keep side menu visible while scrolling */
@media screen and (min-width: 992px) {
  body[class*="page-template-page-servizi"] .service-details,
  body[class*="page-template-page-servizi"] .service-details .container,
  body[class*="page-template-page-servizi"] .service-details .row {
    overflow: visible !important;
  }

  body[class*="page-template-page-servizi"] .service-details .row > .col-md-4 {
    align-self: stretch;
  }

  body[class*="page-template-page-servizi"] .service-details .row > .col-md-4 > .details-link {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 20;
  }

  .admin-bar body[class*="page-template-page-servizi"] .service-details .row > .col-md-4 > .details-link {
    top: 152px;
  }
}

/* Registro nazionale: offset for in-page anchor navigation */
#registro-overview,
#registro-ambiti,
#registro-categorie,
#registro-contatti,
#ambito-valorizzazione,
#ambito-turismo,
#ambito-faunistici,
#ambito-forestali {
  scroll-margin-top: 150px;
}

#servizi-overview,
#servizi-focus,
#servizi-vantaggi,
#servizi-contatti {
  scroll-margin-top: 150px;
}

/* Side menu refinements */
.navSidebar-button {
  width: 42px;
  height: 42px;
  border: 1px dashed #b59a6d;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b59a6d;
  font-size: 18px;
  transition: all 0.25s ease;
}

.navSidebar-button:hover {
  background: #b59a6d;
  color: #ffffff;
}

@media screen and (min-width: 992px) {
  .navbar-details .navigation-link {
    align-items: center;
  }

  .navbar-details .navigation-link .navbar-nav {
    align-items: center;
  }

  .navbar-details .navigation-link .getStart-sideMenu {
    align-self: center;
  }

  .navbar-details .navigation-link .said-navbar {
    display: flex;
    align-items: center;
  }

  .navbar-details .navigation-link .said-navbar > a.navSidebar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    line-height: 1;
  }

  .navbar-details .navigation-link .said-navbar > a.navSidebar-button i {
    font-size: 18px;
    line-height: 1;
    margin: 0;
  }
}

.citywall-user-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.citywall-upload-submenu {
  position: relative;
}

.citywall-upload-submenu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #b99d6a;
  border-radius: 4px;
  background: #fff;
  color: #0e141b;
  font-size: 12px;
  user-select: none;
}

.citywall-upload-submenu summary::-webkit-details-marker {
  display: none;
}

.citywall-upload-submenu[open] summary {
  background: #b99d6a;
  color: #fff;
}

.citywall-upload-submenu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid rgba(185, 157, 106, 0.45);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3000;
}

.citywall-upload-submenu-panel a {
  display: block;
  color: #0e141b;
  font-size: 12px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
}

.citywall-upload-submenu-panel a:hover {
  background: rgba(185, 157, 106, 0.14);
}

@media screen and (max-width: 991px) {
  .citywall-user-tools {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .citywall-upload-submenu-panel {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
}

#mySidenav.sidenav {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f1620 0%, #0b1220 100%);
  box-shadow: -18px 0 35px rgba(0, 0, 0, 0.35);
  transition: width 0.35s ease;
  z-index: 12000;
  padding-bottom: 28px;
}

#mySidenav.sidenav.is-open {
  border-left: 1px solid rgba(185, 157, 106, 0.35);
}

body.sidenav-open {
  overflow: hidden;
}

body.sidenav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 11999;
}

#mySidenav .side-logo-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

#mySidenav .side-logo {
  max-height: 56px;
  width: auto;
}

#mySidenav .closebtn {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.95;
}

#mySidenav .closebtn:hover {
  color: #b59a6d;
}

#mySidenav .our-mission,
#mySidenav .contact {
  padding: 0 22px;
}

#mySidenav .our-mission h4,
#mySidenav .contact h4 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.15;
}

#mySidenav .con-info ul {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#mySidenav .con-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  font-size: 17px;
}

#mySidenav .con-info ul li i {
  color: #b59a6d;
  min-width: 18px;
  margin-top: 4px;
}

#mySidenav .social-link {
  margin-top: 24px;
}

#mySidenav .social-link ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#mySidenav .social-link ul li a {
  width: 40px;
  height: 40px;
  border: 1px dashed rgba(185, 157, 106, 0.75);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
}

#mySidenav .social-link ul li a:hover {
  color: #0f1620;
  background: #b59a6d;
}

@media screen and (max-width: 576px) {
  .navSidebar-button {
    width: 40px;
    height: 40px;
  }

  #mySidenav .side-logo-button {
    padding: 14px 16px 12px;
  }

  #mySidenav .our-mission,
  #mySidenav .contact {
    padding: 0 16px;
  }

  #mySidenav .our-mission h4,
  #mySidenav .contact h4 {
    font-size: 30px;
  }

  #mySidenav .con-info ul li {
    font-size: 16px;
  }
}


/* Centro Studi: sticky side menu like service templates */
@media screen and (min-width: 992px) {
  body.page-template-page-centro-studi .service-details,
  body.page-template-page-centro-studi .service-details .container,
  body.page-template-page-centro-studi .service-details .row {
    overflow: visible !important;
  }

  body.page-template-page-centro-studi .service-details .row > .col-md-4 {
    align-self: stretch;
  }

  body.page-template-page-centro-studi .service-details .row > .col-md-4 > .details-link {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 20;
  }

  .admin-bar body.page-template-page-centro-studi .service-details .row > .col-md-4 > .details-link {
    top: 152px;
  }
}

/* Sistema Federparchi: sticky side menu like Centro Studi */
@media screen and (min-width: 992px) {
  body.page-template-page-sistema-federparchi .service-details,
  body.page-template-page-sistema-federparchi .service-details .container,
  body.page-template-page-sistema-federparchi .service-details .row {
    overflow: visible !important;
  }

  body.page-template-page-sistema-federparchi .service-details .row > .col-md-4 {
    align-self: stretch;
  }

  body.page-template-page-sistema-federparchi .service-details .row > .col-md-4 > .details-link {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 20;
  }

.admin-bar body.page-template-page-sistema-federparchi .service-details .row > .col-md-4 > .details-link {
    top: 152px;
  }
}

/* Chi siamo page */
.chi-siamo-page .details-link a {
  padding: 18px 20px;
}

.chi-siamo-page .details-link a h4 {
  font-size: 20px;
  line-height: 1.35;
}

.chi-siamo-page .chi-siamo-body h2 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 22px;
}

.chi-siamo-page .chi-siamo-body p,
.chi-siamo-page .chi-siamo-body li {
  font-size: 22px;
  line-height: 1.75;
}

.chi-siamo-page .chi-siamo-services-list {
  padding-left: 24px;
  margin: 8px 0 24px;
}

@media screen and (min-width: 992px) {
  .chi-siamo-page .service-details,
  .chi-siamo-page .service-details .container,
  .chi-siamo-page .service-details .row {
    overflow: visible !important;
  }

  .chi-siamo-page .service-details .row > .col-md-4 {
    align-self: stretch;
  }

  .chi-siamo-page .service-details .row > .col-md-4 > .details-link {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 20;
  }

  .admin-bar .chi-siamo-page .service-details .row > .col-md-4 > .details-link {
    top: 152px;
  }
}

@media screen and (max-width: 992px) {
  .chi-siamo-page .chi-siamo-body h2 {
    font-size: 34px;
  }

  .chi-siamo-page .chi-siamo-body p,
  .chi-siamo-page .chi-siamo-body li {
    font-size: 19px;
  }
}

@media screen and (max-width: 576px) {
  .chi-siamo-page .chi-siamo-body h2 {
    font-size: 30px;
  }

  .chi-siamo-page .details-link a h4,
  .chi-siamo-page .chi-siamo-body p,
  .chi-siamo-page .chi-siamo-body li {
    font-size: 17px;
  }
}

#centro-overview,
#centro-sedi,
#centro-programma,
#centro-comitato,
#centro-contatti {
  scroll-margin-top: 150px;
}

/* Header desktop: vertical offset for primary nav block */
:root {
  --citywall-header-menu-offset: 0px;
}

@media screen and (min-width: 992px) {
  .navbar-details .navigation-link .navbar-nav {
    position: relative;
    top: var(--citywall-header-menu-offset);
  }
}

/* News page: always show posts grid (disable legacy hide/show behavior) */
.blog .blog-page .blog-card {
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

/* Home: work in progress notice */
.home-work-progress-banner {
  margin: 28px 0 0;
}

.home-work-progress-banner__box {
  border: 1px dashed #b59a6d;
  background: #f8f6f1;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: #11141b;
}

.home-work-progress-banner__box strong {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.home-work-progress-banner__box span {
  font-size: 16px;
  line-height: 1.5;
}

@media screen and (max-width: 576px) {
  .home-work-progress-banner__box {
    padding: 14px 16px;
  }

  .home-work-progress-banner__box strong {
    font-size: 18px;
  }

  .home-work-progress-banner__box span {
    font-size: 15px;
  }
}

/* Elementor Toggle: style like boxed gold-outline buttons */
.ap-toggle-menu.elementor-widget-toggle .elementor-toggle {
  border: 0;
}

.ap-toggle-menu.elementor-widget-toggle .elementor-toggle-item {
  margin-bottom: 16px;
}

.ap-toggle-menu.elementor-widget-toggle .elementor-tab-title {
  border: 1px solid #d7c2a0 !important;
  background: #f2f2f2 !important;
  border-radius: 0 !important;
  padding: 26px 78px 26px 36px !important;
  color: #11141b !important;
  font-family: "Raleway", sans-serif !important;
  font-weight: 400 !important;
  font-size: 54px !important;
  line-height: 1.18 !important;
  position: relative;
}

.ap-toggle-menu.elementor-widget-toggle .elementor-tab-title .elementor-toggle-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #11141b !important;
  font-size: 24px;
}

.ap-toggle-menu.elementor-widget-toggle .elementor-tab-content {
  border: 1px solid #d7c2a0 !important;
  border-top: 0 !important;
  background: #ffffff;
  padding: 22px 30px !important;
  color: #11141b;
  font-size: 20px;
  line-height: 1.5;
}

@media screen and (max-width: 992px) {
  .ap-toggle-menu.elementor-widget-toggle .elementor-tab-title {
    font-size: 34px !important;
    padding: 20px 64px 20px 22px !important;
  }

  .ap-toggle-menu.elementor-widget-toggle .elementor-tab-title .elementor-toggle-icon {
    right: 22px;
  }
}

@media screen and (max-width: 576px) {
  .ap-toggle-menu.elementor-widget-toggle .elementor-toggle-item {
    margin-bottom: 12px;
  }

  .ap-toggle-menu.elementor-widget-toggle .elementor-tab-title {
    font-size: 27px !important;
    padding: 16px 50px 16px 16px !important;
  }

  .ap-toggle-menu.elementor-widget-toggle .elementor-tab-title .elementor-toggle-icon {
    right: 14px;
    font-size: 20px;
  }

  .ap-toggle-menu.elementor-widget-toggle .elementor-tab-content {
    padding: 16px !important;
    font-size: 17px;
  }
}

/* Footer courses showcase */
.ap-courses-footer-banner {
  padding: 48px 0 30px;
  background: transparent;
  overflow: visible;
}

#corsi-professioni {
  scroll-margin-top: 120px;
}

.ap-courses-footer-banner .container {
  overflow: visible;
}

.ap-courses-footer-banner__header {
  margin: 0 0 60px;
  padding: 0 4px;
  text-align: center;
}

.ap-courses-footer-banner__header-title {
  margin: 0 0 8px;
  color: #b59a6d;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.1;
  font-weight: 700;
}

.ap-courses-footer-banner__header-subtitle {
  margin: 0;
  color: #b59a6d;
  font-size: clamp(22px, 1.6vw, 32px);
  line-height: 1.35;
  font-weight: 700;
}

.ap-courses-footer-banner__shell {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(181, 154, 109, 0.5);
  border-radius: 26px;
  padding: 6px 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  background: linear-gradient(135deg, #0f141d 0%, #141c2a 52%, #0f141d 100%);
  transition: border-color 0.34s ease, box-shadow 0.34s ease;
}

.ap-courses-footer-banner__shell:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(181, 154, 109, 0.5);
}

.ap-courses-footer-banner__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(181, 154, 109, 0.12), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(181, 154, 109, 0.1), transparent 36%),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.02) 18px 22px);
}

.ap-courses-footer-banner__deck {
  position: relative;
  z-index: 1;
  margin: -18px 0;
  overflow: visible;
}

.ap-courses-footer-banner__intro {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 8px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.ap-courses-footer-banner__intro::before {
  content: none;
}

.ap-courses-footer-banner__intro-title {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(44px, 4vw, 70px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 10ch;
}

.ap-courses-footer-banner__intro-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 1.45vw, 28px);
  line-height: 1.56;
  font-weight: 600;
  max-width: 20ch;
}

.ap-courses-footer-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 3px;
  margin: 0;
  padding: 6px 0 12px;
  align-items: start;
  transform: none;
}

.ap-courses-footer-banner__intro-slot {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 8px 10px 6px;
}

.ap-courses-footer-banner__intro-slot-text {
  margin: 0;
  color: #b59a6d;
  font-size: clamp(34px, 2.5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 10ch;
}

.ap-course-tile {
  --tile-min-height: 360px;
  --tile-offset: 0px;
  position: relative;
  display: block;
  width: calc(100% - 10px);
  justify-self: center;
  min-height: var(--tile-min-height);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: #1a2230;
  border: 1px solid rgba(181, 154, 109, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translate3d(0, var(--tile-offset), 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 20px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ap-course-tile img {
  width: 100%;
  height: 100%;
  min-height: var(--tile-min-height);
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.5s ease;
  will-change: transform;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ap-course-tile:nth-of-type(1) {
  --tile-offset: -16px;
}

.ap-course-tile:nth-of-type(2) {
  --tile-offset: -32px;
}

.ap-course-tile:nth-of-type(3) {
  --tile-offset: -24px;
}

.ap-course-tile:nth-of-type(4) {
  --tile-offset: 0px;
}

.ap-course-tile:nth-of-type(5) {
  --tile-offset: 16px;
}

.ap-course-tile:nth-of-type(6) {
  --tile-offset: 0px;
}

.ap-course-tile:nth-of-type(7) {
  --tile-offset: 32px;
}

.ap-course-tile__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.2) 0%, rgba(232, 238, 246, 0.12) 38%, rgba(22, 30, 44, 0.56) 100%),
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.14), transparent 38%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ap-course-tile__overlay {
    background: linear-gradient(180deg, rgba(24, 31, 42, 0.28) 0%, rgba(22, 30, 44, 0.78) 100%);
  }
}

.ap-course-tile__title {
  color: #ffffff;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}

.ap-course-tile__cta {
  color: #b59a6d;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.ap-course-tile:hover,
.ap-course-tile:focus-visible {
  transform: translate3d(0, calc(var(--tile-offset) - 10px), 0) scale(1.02);
  border-color: rgba(181, 154, 109, 0.95);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
}

.ap-course-tile:hover img,
.ap-course-tile:focus-visible img {
  transform: scale(1.11);
}

@media screen and (max-width: 1200px) {
  .ap-courses-footer-banner__deck {
    margin: -8px 0;
  }

  .ap-courses-footer-banner__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    column-gap: 22px;
    row-gap: 3px;
    padding: 10px 0 4px;
    transform: none;
  }

  .ap-course-tile {
    --tile-offset: 0px !important;
    --tile-min-height: 360px;
  }

  .ap-courses-footer-banner__intro-slot {
    min-height: 200px;
    padding: 8px 4px;
  }

  .ap-courses-footer-banner__intro-slot-text {
    font-size: clamp(32px, 4vw, 44px);
    max-width: 11ch;
  }
}

@media screen and (max-width: 767px) {
  .ap-courses-footer-banner__shell {
    border-radius: 16px;
    padding: 18px;
  }

  .ap-courses-footer-banner__header {
    margin-bottom: 22px;
    padding: 0 2px;
  }

  .ap-courses-footer-banner__header-title {
    font-size: 38px;
    margin-bottom: 6px;
    line-height: 1.08;
  }

  .ap-courses-footer-banner__header-subtitle {
    font-size: 23px;
  }

  .ap-courses-footer-banner__intro {
    border-radius: 0;
    padding: 0 4px 10px;
  }

  .ap-courses-footer-banner__intro-title {
    font-size: 42px;
    margin-bottom: 14px;
    line-height: 1.08;
  }

  .ap-courses-footer-banner__intro-copy {
    font-size: 21px;
    line-height: 1.48;
  }

  .ap-courses-footer-banner__grid {
    grid-template-columns: 1fr;
    row-gap: 3px;
    margin: 0;
    padding: 8px 0 0;
    transform: none;
  }

  .ap-courses-footer-banner__intro-slot {
    min-height: 0;
    padding: 2px 2px 8px;
    justify-content: center;
  }

  .ap-courses-footer-banner__intro-slot-text {
    max-width: none;
    text-align: center;
    font-size: 31px;
    line-height: 1.12;
  }

  .ap-course-tile {
    width: 100%;
  }

  .ap-course-tile,
  .ap-course-tile img {
    min-height: 280px;
  }

  .ap-course-tile {
    --tile-min-height: 280px;
    --tile-offset: 0px !important;
  }

  .ap-course-tile__title {
    font-size: 20px;
  }
}

/* Footer: force readable white text */
footer .subscribe-content h3,
footer .subscribe-content p,
footer .our-details h4,
footer .our-details p,
footer .our-details li,
footer .our-details span,
footer .our-details strong,
footer .our-details a,
footer .term-and-condition .copy-right,
footer .term-and-condition .copy-right span,
footer .term-and-condition a {
  color: #ffffff !important;
}

footer .our-details a:hover,
footer .term-and-condition a:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

footer .footer-legal-link {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

footer .footer-legal-sep {
  margin: 0 6px;
  opacity: 0.9;
}

/* Utility: force white text inside specific Elementor box */
.box-testo-bianco,
.box-testo-bianco * {
  color: #ffffff !important;
}

/* Ensure same behavior in Elementor editor preview */
body.elementor-editor-active .box-testo-bianco,
body.elementor-editor-active .box-testo-bianco * {
  color: #ffffff !important;
}

/* Extra-specific Elementor overrides (when widget styles force dark text) */
.box-testo-bianco .elementor-widget-container,
.box-testo-bianco .elementor-widget-container *,
.box-testo-bianco .elementor-heading-title,
.box-testo-bianco .elementor-text-editor,
.box-testo-bianco .elementor-text-editor *,
.box-testo-bianco .elementor-icon-list-text,
.box-testo-bianco .elementor-button-text {
  color: #ffffff !important;
}

/* Elementor text widgets: allow chosen widget/container color to cascade */
body .post-details .Home-financing .elementor-widget-text-editor .elementor-widget-container {
  color: inherit;
}

body .post-details .Home-financing .elementor-widget-text-editor p,
body .post-details .Home-financing .elementor-widget-text-editor li,
body .post-details .Home-financing .elementor-widget-text-editor span,
body .post-details .Home-financing .elementor-widget-text-editor strong,
body .post-details .Home-financing .elementor-widget-text-editor em,
body .post-details .Home-financing .elementor-widget-text-editor a {
  color: inherit;
}

/* Elementor shortcode: category news grid */
.citywall-news-grid-shortcode .blog-card {
  gap: 0;
}

.citywall-news-grid-shortcode .blog-card .col {
  padding: 10px;
}

.citywall-news-grid-shortcode .card {
  transition: transform 2s ease;
  overflow: hidden;
  box-shadow: 0 1px 5px -3px;
}

.citywall-news-grid-shortcode .card img {
  transition: transform 2s ease;
  overflow: hidden;
}

.citywall-news-grid-shortcode .card:hover img {
  transform: scale(1.1);
}

.citywall-news-grid-shortcode .card a {
  color: #b59a6d;
  transition: 1s;
}

.citywall-news-grid-shortcode .card:hover a {
  color: #11141b;
}

.citywall-news-grid-shortcode .card .user,
.citywall-news-grid-shortcode .card .comment {
  display: flex;
  align-items: center;
}

.citywall-news-grid-shortcode .card .card-body img {
  width: 20px;
  margin-right: 5px;
}

.citywall-news-grid-shortcode .latest-date {
  background-color: #fff;
  color: #b59a6d;
  box-shadow: #b59a6d 0 3px 1px 1px;
  margin-top: -32px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
  font-size: 13px;
}

.citywall-news-grid-shortcode .latest-date .mb-n2 {
  margin-bottom: -5px;
}

.citywall-news-grid-shortcode .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 40px;
  background-color: #b59a6d;
  border-radius: 6px;
  margin: 40px 0 0 auto;
}

.citywall-news-grid-shortcode .pagination ul {
  margin: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.citywall-news-grid-shortcode .pagination ul li a,
.citywall-news-grid-shortcode .pagination ul li span {
  display: flex;
  margin: 0 5px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  background-position: 0 -45px;
  transition: background-position 0.5s;
  background-color: transparent;
  color: #11141b;
}

.citywall-news-grid-shortcode .pagination ul li .active-link {
  background-image: linear-gradient(#11141b, #b59a6d);
  background-repeat: no-repeat;
  color: #fff;
  background-position: 0 0;
}

.citywall-news-grid-shortcode .pagination .btn1,
.citywall-news-grid-shortcode .pagination .btn2 {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  background: transparent;
  color: #11141b;
}

.citywall-news-grid-shortcode .citywall-news-grid-empty {
  border: 1px dashed rgba(181, 154, 109, 0.8);
  padding: 18px 20px;
  background: #f8f6f1;
}

@media screen and (max-width: 576px) {
  .citywall-news-grid-shortcode .pagination {
    padding: 10px 20px;
    margin-right: 0;
  }

  .citywall-news-grid-shortcode .pagination ul {
    margin: 0 10px;
    flex-wrap: wrap;
  }

  .citywall-news-grid-shortcode .latest-date {
    display: none;
  }
}
