.social-links a.instagram svg {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.hero-booking-btn {
  padding: .72rem 1.2rem .72rem .72rem;
  border: 1px solid #ffffffaa;
  border-radius: 9px;
  background: #fff;
  color: var(--gd);
  box-shadow: 0 10px 28px #001f1438;
}

.hero-booking-btn img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-booking-btn:hover,
.hero-booking-btn:focus-visible {
  background: #f3f7f4;
  color: var(--g);
  transform: translateY(-2px);
}

/* Sezione servizi: più compatta e con un'identità CISL più marcata. */
.services {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(180deg, #f4f7f3 0, #fff 72%);
  border-top: 6px solid var(--g);
}

.services .section-title {
  grid-template-columns: .75fr 1.35fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
  align-items: center;
}

.services .section-title h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.75rem);
}

.services .section-title > p:last-child {
  padding-left: 1.25rem;
  border-left: 3px solid var(--r);
}

.services .service-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 0;
  background: var(--line);
  box-shadow: 0 14px 34px #003c2620;
}

.services .service-list article {
  min-height: 0;
  padding: 1.5rem 1.65rem;
  border: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 34px 48px 1fr;
  column-gap: 1rem;
  align-items: center;
}

.services .service-list article > span {
  color: var(--r);
  font-weight: 700;
}

.services .service-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  font-size: 1.3rem;
  border-radius: 4px;
  background: var(--g);
  color: #fff;
}

.services .service-list h3 {
  margin: 0;
  font-size: 1.18rem;
}

.services .service-list p {
  grid-column: 3;
  margin: .45rem 0 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .services .section-title {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services .section-title > p:last-child {
    padding-left: 1rem;
  }
}

/* Pulsante dell'assistente: identità CISL e richiamo multimediale. */
.chat-launcher {
  min-width: 250px;
  min-height: 68px;
  padding: .65rem .85rem .65rem .7rem !important;
  gap: .75rem !important;
  border: 1px solid #ffffff40 !important;
  border-left: 5px solid var(--r) !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--gd), var(--g)) !important;
  box-shadow: 0 12px 32px #003c2650 !important;
  overflow: visible;
}

.chat-launcher::before {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid #007a4d45;
  border-radius: 12px;
  animation: launcherHalo 2.4s ease-out infinite;
}

.chat-launcher > span {
  animation: none;
}

.launcher-avatar {
  position: relative;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--g);
  box-shadow: inset 0 0 0 3px #dbece3;
}

.launcher-avatar b {
  font: 700 1.25rem Lora, Georgia, serif;
}

.launcher-avatar i {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--g);
  border-radius: 50%;
  background: #75e29f;
}

.launcher-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
}

.launcher-copy small {
  margin-bottom: .28rem;
  color: #cde5d8;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.launcher-copy strong {
  color: #fff;
  font-size: .86rem;
  white-space: nowrap;
}

.launcher-wave {
  height: 25px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.launcher-wave i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: #fff;
  animation: soundWave 1s ease-in-out infinite;
}

.launcher-wave i:nth-child(2) { animation-delay: .15s; }
.launcher-wave i:nth-child(3) { animation-delay: .3s; }
.launcher-wave i:nth-child(4) { animation-delay: .45s; }

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #004d31, #008a57) !important;
}

@keyframes soundWave {
  0%, 100% { height: 7px; opacity: .65; }
  50% { height: 23px; opacity: 1; }
}

@keyframes launcherHalo {
  0% { transform: scale(.98); opacity: .65; }
  75%, 100% { transform: scale(1.08); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher::before,
  .launcher-wave i { animation: none; }
}

@media (max-width: 560px) {
  .hero-card { display: none; }

  .chat-launcher {
    min-width: 205px;
    min-height: 58px;
    padding: .5rem .7rem .5rem .55rem !important;
    gap: .6rem !important;
  }

  .launcher-avatar {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .launcher-copy small { display: none; }
  .launcher-copy strong { font-size: .79rem; }
  .launcher-wave { height: 20px; }
}

@media (max-width: 650px) {
  .services {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .services .service-list {
    grid-template-columns: 1fr;
  }

  .services .service-list article {
    padding: 1.25rem;
  }
}

/* Identità istituzionale: grafica CISL senza fotografie personali. */
.hero {
  isolation: isolate;
  background: linear-gradient(118deg, #003c27 0%, #006b44 58%, #008656 100%);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 350px;
  height: 525px;
  right: 10vw;
  top: 50%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: .82;
  transform: translateY(-50%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -7%;
  bottom: -145px;
  width: 58%;
  height: 230px;
  border-radius: 50% 0 0 0;
  background: var(--r);
  transform: rotate(-7deg);
  opacity: .92;
}

.hero-overlay {
  z-index: 0;
  background: linear-gradient(90deg, #003723f0 0%, #005d3bba 57%, #006d4560 100%);
}

.hero-content,
.hero-card { z-index: 2; }

.page-intro:not(.activities-intro) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 35%, #1c9a6b 0 9%, transparent 9.3%),
    linear-gradient(115deg, #003c27 0%, #007149 100%);
}

.page-intro:not(.activities-intro)::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  right: -90px;
  top: -110px;
  border: 2px solid #ffffff25;
  border-radius: 50%;
  box-shadow: 0 0 0 58px #ffffff09, 0 0 0 118px #ffffff06;
}

.contact-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 88% 16%, #ffffff18 0 12%, transparent 12.5%),
    linear-gradient(135deg, #007a4d, #005638);
}

.contact-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -65px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  border: 24px solid #ffffff0e;
  border-radius: 50%;
}

.services .service-list article {
  background-image:
    radial-gradient(circle at 82% 18%, #ffffff18 0 10%, transparent 10.5%),
    linear-gradient(145deg, #087c52, #005f3c);
}

.services .service-list article:nth-child(2) {
  background-image: radial-gradient(circle at 18% 18%, #ffffff16 0 12%, transparent 12.5%), linear-gradient(145deg, #087c52, #005f3c);
}

.services .service-list article:nth-child(3) {
  background-image: radial-gradient(circle at 80% 78%, #ffffff14 0 14%, transparent 14.5%), linear-gradient(145deg, #087c52, #005f3c);
}

.services .service-list article:nth-child(4) {
  background-image: radial-gradient(circle at 20% 80%, #ffffff14 0 13%, transparent 13.5%), linear-gradient(145deg, #087c52, #005f3c);
}

@media (max-width: 560px) {
  .hero::before {
    width: 250px;
    height: 375px;
    right: -92px;
    top: 44%;
    opacity: .24;
  }
  .hero::after { width: 85%; height: 145px; bottom: -110px; }
}

/* Altre attività: schede editoriali con identità propria e navigazione compatta. */
header nav { gap: 1.45rem; }

.activities-intro {
  background-image: linear-gradient(90deg, #003c27f4, #007149d9), url('cislex-cover.jpg');
  background-position: center;
}

.activities-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  background: #f5f5f5;
}

.activity-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px #003d2720;
  border-bottom: 7px solid var(--g);
}

.prevention-card { border-bottom-color: #ed6e16; }
.archive-card { border-bottom-color: var(--r); }
.frontiere-card { border-bottom-color: #264f3f; }

.activity-cover {
  aspect-ratio: 2.43 / 1;
  overflow: hidden;
  background: #eef3ef;
}

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

.activity-body {
  position: relative;
  padding: 4.2rem 2rem 2rem;
}

.activity-logo {
  position: absolute;
  top: -56px;
  left: 2rem;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px #003d2730;
}

.activity-label {
  margin: 0 0 .55rem;
  color: var(--g);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.prevention-card .activity-label { color: #c95408; }
.archive-card .activity-label { color: var(--r); }
.frontiere-card .activity-label { color: #264f3f; }

.activity-copy h2 {
  margin: 0 0 1rem;
  color: var(--gd);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.activity-copy > p:not(.activity-label) {
  margin: 0;
  color: #5c6862;
  line-height: 1.65;
}

.activity-tags {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.activity-tags span {
  padding: .45rem .65rem;
  border-radius: 999px;
  background: #eaf4ef;
  color: var(--gd);
  font-size: .7rem;
  font-weight: 700;
}

.prevention-card .activity-tags span {
  background: #fff0e5;
  color: #8b3c08;
}

.archive-card .activity-tags span {
  background: #edf5f1;
  color: var(--gd);
}

.frontiere-card .activity-tags span {
  background: #f2efe7;
  color: #264f3f;
}

.archive-logo { object-position: 16% center; }
.frontiere-primary { background: #264f3f; }
.frontiere-primary:hover,
.frontiere-primary:focus-visible { background: #18382c; }

.activity-actions {
  margin-top: 1.75rem;
  display: grid;
  gap: .75rem;
}

.activity-actions .btn {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
}

.activity-primary { background: var(--g); color: #fff; }
.activity-primary.orange { background: #df600d; }
.activity-secondary { border: 1px solid var(--g); background: #fff; color: var(--gd); }
.activity-secondary span { font-size: 1.15rem; font-weight: 800; }

.activity-primary:hover,
.activity-primary:focus-visible { background: var(--gd); }
.activity-primary.orange:hover,
.activity-primary.orange:focus-visible { background: #b94800; }
.activity-secondary:hover,
.activity-secondary:focus-visible { background: #edf5f1; }

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

@media (max-width: 560px) {
  .activities-section {
    padding: 3rem 1.1rem;
    gap: 1.4rem;
  }

  .activity-body { padding: 3.6rem 1.25rem 1.35rem; }
  .activity-logo { left: 1.25rem; width: 96px; height: 96px; top: -48px; }
  .activity-actions .btn { padding-left: .8rem; padding-right: .8rem; }
}

/* Pulsanti principali coordinati con logo CISL e icone di servizio. */
.hero-call-btn,
.hero-guide {
  border: 1px solid #ffffffaa;
  border-radius: 9px;
  background: #fff;
  color: var(--gd);
  box-shadow: 0 10px 28px #001f1438;
}

.hero-call-btn {
  padding: .72rem 1.2rem .72rem .72rem;
}

.hero-call-btn img,
.hero-guide img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border-radius: 50%;
}

.button-symbol {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--r) !important;
  color: #fff !important;
  font-style: normal;
  font-weight: 800;
}

.phone-symbol {
  width: 28px;
  height: 28px;
  font-size: .95rem;
}

.hero-guide {
  min-height: 58px;
  padding: .7rem 1rem .7rem .7rem;
  gap: .65rem;
}

.hero-guide .pdf-symbol {
  width: 31px;
  height: 31px;
  padding: 0;
  font-size: .52rem;
}

.hero-call-btn:hover,
.hero-call-btn:focus-visible,
.hero-guide:hover,
.hero-guide:focus-visible {
  background: #f3f7f4;
  color: var(--g);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .hero-call-btn,
  .hero-guide {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-guide i {
    margin-left: auto;
  }
}

.hero-booking-btn,
.hero-call-btn,
.hero-guide {
  position: relative;
  justify-content: center;
  padding-left: 58px;
  padding-right: 58px;
  text-align: center;
}

.hero-booking-btn img,
.hero-call-btn img,
.hero-guide img {
  position: absolute;
  left: 12px;
}

.hero-guide i {
  position: absolute;
  right: 16px;
  margin: 0;
}

/* Intestazione senza barra istituzionale superiore. */
@media (max-width: 900px) {
  header nav.open { top: 78px; }
}

.launcher-avatar {
  overflow: visible;
}

.launcher-avatar img {
  width: 39px;
  height: 39px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

/* Contatti coordinati graficamente con la griglia dei servizi. */
.contact {
  position: relative;
  isolation: isolate;
  padding-top: 5rem;
  padding-bottom: 5rem;
  grid-template-columns: .72fr 1.28fr;
  gap: 3.5rem;
  background: #f5f5f5;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f5f5f5;
}

.contact-intro {
  padding: 2.25rem;
  border-radius: 9px;
  background-image: radial-gradient(circle at 88% 16%, #ffffff18 0 12%, transparent 12.5%), linear-gradient(135deg, #007a4d, #005638);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.contact-intro .kicker.green,
.contact-intro > p:not(.kicker) {
  color: #fff;
}

.contact-intro .kicker.green::before {
  background: var(--r);
}

.contact-intro h2 {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(2.25rem, 3.6vw, 3.7rem);
}

.contact-intro .green-btn {
  border-radius: 7px;
  background: #fff;
  color: var(--gd);
}

.contact-cards {
  gap: 1px;
  background: #ffffff55;
}

.contact-cards a {
  min-height: 190px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(145deg, #087c52, #006440);
  color: #fff;
}

.contact-cards a:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #006440, #005236);
}

.contact-cards span { color: #d2e8dc; }
.contact-cards b { color: #fff; }

.social-links a.whatsapp-channel svg { background: #25d366; }
.social-links a.youtube svg { background: #ff0000; }

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 560px) {
  .contact-intro { padding: 1.5rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards a { min-height: 145px; }
}

/* Pagine interne: introduzione breve e navigazione coerente. */
header nav a[aria-current="page"] {
  color: var(--g);
  text-decoration: underline;
  text-decoration-color: var(--r);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.page-intro {
  min-height: 390px;
  padding: 5.5rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background-image: radial-gradient(circle at 86% 35%, #1c9a6b 0 9%, transparent 9.3%), linear-gradient(115deg, #003c27 0%, #007149 100%);
  background-size: cover;
  background-position: center 35%;
}

.page-intro h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3.1rem, 6vw, 6rem);
}

.page-intro > p:last-child {
  max-width: 660px;
  margin: 0;
  color: #e0eee7;
  font-size: 1.05rem;
  line-height: 1.65;
}

.subpage-services {
  padding-top: 4rem;
}

.page-cta {
  margin-top: 2.25rem;
  text-align: center;
}

.page-cta .btn { border-radius: 7px; }

.subpage-contact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.social-page {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.social-badge {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.social-badge.facebook { background: #1877f2; }
.social-badge.instagram-badge { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.social-badge.whatsapp-badge { background: #25d366; }
.social-badge.youtube-badge { background: #f00; }

@media (max-width: 900px) {
  .page-intro {
    min-height: 330px;
    padding: 4rem 1.3rem;
  }
}

@media (max-width: 560px) {
  .page-intro {
    min-height: 285px;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .page-intro h1 { font-size: 3rem; }
  .social-page { padding: 3rem 1.3rem; }
}

.back-home-btn {
  width: max-content;
  margin-top: 1.6rem;
  padding: .8rem 1.05rem;
  border: 1px solid #ffffffaa;
  border-radius: 7px;
  background: #fff;
  color: var(--gd);
  font-size: .8rem;
  font-weight: 700;
}

.back-home-btn:hover { background: #edf4f0; }

/* Pagina social chiara, con schede verdi e separatore CISL. */
.social-page {
  border-bottom: 7px solid var(--g);
  background: #fff;
  color: var(--ink);
}

.social-page .social-copy .kicker { color: var(--g); }
.social-page .social-copy > p:last-child { color: #68736d; }

.social-page .social-links {
  gap: .8rem;
  background: transparent;
}

.social-page .social-links a {
  min-height: 128px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(145deg, #087c52, #006440);
  color: #fff;
  box-shadow: 0 9px 22px #003d2725;
}

.social-page .social-links a:hover {
  background: linear-gradient(145deg, #006440, #005236);
  color: #fff;
  transform: translateY(-3px);
}

.social-page .social-links a:last-child { grid-column: auto; }
.social-page .social-links i { color: #fff; }

.social-updates {
  grid-column: 1 / -1;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid #dce7e1;
}

.social-updates-heading { max-width: 720px; }
.social-updates-heading h2 { margin: .55rem 0 .8rem; }
.social-updates-heading > p:last-child { color: #68736d; }

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-feed-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #c8dbd1;
  border-radius: 16px;
  background: #f8fbf9;
  box-shadow: 0 12px 28px #003d2714;
}

.social-feed-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.social-feed-title small {
  display: block;
  color: var(--g);
  font-weight: 800;
  letter-spacing: .08em;
}

.social-feed-title h3 { margin: .1rem 0 0; font-size: 1.25rem; }

.facebook-feed {
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.facebook-feed iframe { width: 100%; max-width: 500px; display: block; margin: 0 auto; }

.facebook-direct-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #f8fbff, #e8f1ff);
  text-align: center;
}

.facebook-direct-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.facebook-direct-card .social-badge { width: 58px; height: 58px; flex-basis: 58px; font-size: 1.55rem; }
.facebook-direct-card h3 { margin: .45rem 0 .8rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.facebook-direct-card > p:not(.kicker) { max-width: 410px; margin: 0 auto 1rem; color: #586761; }
.facebook-direct-card .social-feed-link { width: min(100%, 330px); margin: 1.25rem auto 0; background: #1877f2; }
.facebook-direct-card .social-feed-link:hover { background: #0d5fc2; }

.youtube-latest {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  background: #052d20;
}

.youtube-latest iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feed-note { min-height: 3rem; margin: 1rem 0; color: #68736d; font-size: .9rem; }

.social-feed-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 9px;
  background: var(--g);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.social-feed-link:hover { background: var(--gd); color: #fff; }

/* Contatti più visivi e pulsanti centrati. */
.contact-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}

.contact-actions .btn {
  width: min(100%, 310px);
  min-height: 52px;
  margin: 0;
  border-radius: 7px;
  justify-content: center;
}

.contact-actions svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.whatsapp-contact-btn svg { color: #25d366; }

.contact-media {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: grid !important;
  place-items: center;
  border: 2px solid #ffffffcc;
  border-radius: 50%;
  color: #fff !important;
  font-size: 1.35rem !important;
  font-weight: 700;
}

.contact-cards a:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .back-home-btn { width: 100%; justify-content: center; text-align: center; }
  .social-page .social-links a:last-child { grid-column: auto; }
  .contact-cards a:last-child { grid-column: auto; }
  .social-updates { margin-top: 2.75rem; padding-top: 2.5rem; }
  .social-feed-grid { grid-template-columns: 1fr; }
  .social-feed-card { padding: .85rem; border-radius: 13px; }
  .facebook-feed { height: 470px; }
  .facebook-feed iframe { height: 470px; }
}

.presentation-video {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background: #fff;
}

.presentation-video h2 {
  margin: .7rem 0 1rem;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.03;
}

.presentation-video p:not(.kicker) {
  color: #68736d;
  line-height: 1.65;
}

.presentation-video a {
  display: inline-flex;
  margin-top: .75rem;
  padding: .85rem 1.1rem;
  background: var(--r);
  color: #fff;
  font-weight: 700;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gd);
  border: 8px solid var(--gd);
  box-shadow: 0 16px 38px #003c2630;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .presentation-video {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Servizi ispirati alla griglia del portale nazionale Sindacare. */
.services {
  background: #f5f5f5;
}

.services .service-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  background: transparent;
  box-shadow: none;
}

.services .service-list article {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  padding: 2rem 1.8rem;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-image: radial-gradient(circle at 82% 18%, #ffffff18 0 10%, transparent 10.5%), linear-gradient(145deg, #087c52, #005f3c);
  background-size: cover;
  background-position: center;
  box-shadow: 0 9px 24px #003d2725;
  transition: transform .25s ease, box-shadow .25s ease;
}

.services .service-list article:nth-child(2) { background-position: 62% center; }
.services .service-list article:nth-child(3) { background-position: 35% center; }
.services .service-list article:nth-child(4) { background-position: 75% center; }

.services .service-list article::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #005e3c05 5%, #004e32ba 100%);
}

.services .service-list article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px #003d2740;
}

.services .service-list article > span {
  position: absolute;
  top: 1.35rem;
  right: 1.45rem;
  color: #ffffffb8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.services .service-icon {
  width: 58px;
  height: 58px;
  margin: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
}

.services .service-list h3 {
  margin: 2.3rem 0 .65rem;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(1.3rem, 1.65vw, 1.75rem);
  line-height: 1.14;
}

.services .service-list p {
  grid-column: auto;
  margin: 0;
  color: #e4f1ea;
  font-size: .84rem;
  line-height: 1.48;
}

@media (max-width: 1100px) {
  .services .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .services .service-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services .service-list article {
    min-height: 255px;
    padding: 1.5rem;
  }

  .services .service-list h3 {
    margin-top: 1.8rem;
  }
}

/* Richiamo territoriale nei banner delle pagine interne. */
.page-intro,
.page-intro.activities-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(115deg, #003c27 0%, #007149 100%) !important;
  background-position: center;
}

.page-intro > * {
  position: relative;
  z-index: 1;
}

.page-intro:not(.sardinia-disabled)::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 190px;
  height: 285px;
  right: 8vw;
  top: 50%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  opacity: .48;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .page-intro:not(.sardinia-disabled)::after {
    width: 155px;
    height: 232px;
    right: 1.5rem;
    opacity: .28;
  }
}

@media (max-width: 560px) {
  .page-intro:not(.sardinia-disabled)::after {
    width: 130px;
    height: 195px;
    right: -35px;
    opacity: .18;
  }
}

/* Riquadri servizi senza motivi circolari e con approfondimenti esterni. */
.services .service-list article,
.services .service-list article:nth-child(2),
.services .service-list article:nth-child(3),
.services .service-list article:nth-child(4) {
  background-image: linear-gradient(145deg, #087c52, #005f3c);
}

.service-card-link {
  width: 100%;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid #ffffff42;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}

.service-card-link:hover,
.service-card-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--r);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Immagine istituzionale comune: home e banner interni. */
.hero {
  background-image: url('ufficio-cisl-consulenza.png');
  background-size: cover;
  background-position: center;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-overlay {
  background: linear-gradient(90deg, #003723f5 0%, #004b30df 42%, #00452b65 72%, #00331f20 100%);
}

.page-intro,
.page-intro.activities-intro {
  background-image: linear-gradient(90deg, #003723f3 0%, #005033cf 48%, #00472d52 82%), url('ufficio-cisl-consulenza.png') !important;
  background-size: cover;
  background-position: center 43%;
}

.page-intro:not(.sardinia-disabled)::after {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .page-intro,
  .page-intro.activities-intro {
    background-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, #003723f7 0%, #004b30e8 58%, #00452b8a 100%);
  }
}

@media (max-width: 560px) {
  .hero,
  .page-intro,
  .page-intro.activities-intro {
    background-position: 66% center;
  }
}

.services .service-list article.service-half {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .services .service-list article.service-half {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .services .service-list article.service-half {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .menu {
    position: relative;
    padding: 6px 4px 6px 52px;
  }

  .menu::before {
    content: "Menù";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
}

/* Area Riservata */
.reserved-body { background: #f1f4f2; }
.reserved-header { background: #fff; }
.reserved-header-label { display: inline-flex; align-items: center; gap: .55rem; color: var(--gd); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reserved-header-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 5px #e5f1eb; }
.reserved-home-link { border: 1px solid var(--g); color: var(--g); padding: .8rem 1rem; font-size: .78rem; font-weight: 700; }
.reserved-main { min-height: calc(100vh - 180px); }
.reserved-welcome { min-height: 330px; padding: 4.5rem 5vw; color: #fff; background: linear-gradient(105deg, rgba(0,70,43,.98), rgba(0,122,77,.92)), url('ufficio-cisl-consulenza.png') center 44%/cover; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.reserved-welcome h1 { font-size: clamp(3.3rem,6vw,6rem); margin-bottom: 1.1rem; }
.reserved-welcome > div:first-child > p:last-child { max-width: 630px; margin: 0; line-height: 1.65; color: #e2eee8; }
.reserved-status { min-width: 300px; padding: 1.2rem 1.35rem; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 1rem; box-shadow: 0 16px 40px #002c1c55; }
.reserved-status div { display: flex; flex-direction: column; gap: .2rem; }
.reserved-status small { color: var(--g); font-weight: 700; letter-spacing: .1em; }
.reserved-shield { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font-weight: 800; }
.reserved-dashboard { padding: 4.5rem 5vw 6rem; }
.dashboard-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.dashboard-heading h2 { margin: .4rem 0 0; font-size: clamp(2rem,3.5vw,3.6rem); }
.dashboard-heading > p { color: #68736d; line-height: 1.6; }
.dashboard-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 1rem; }
.dashboard-card { grid-column: span 2; min-height: 310px; padding: 1.7rem; background: #fff; border: 1px solid #dce2dd; border-bottom: 5px solid var(--g); border-radius: 12px; display: flex; flex-direction: column; transition: transform .2s ease,box-shadow .2s ease; }
.dashboard-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px #002c1c18; }
.dashboard-card.primary-card { grid-column: span 3; background: var(--gd); color: #fff; border-color: var(--gd); border-bottom-color: var(--r); }
.dashboard-card.primary-card + .dashboard-card { grid-column: span 3; }
.dashboard-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #e5f1eb; color: var(--g); font-weight: 800; margin-bottom: 2.2rem; }
.primary-card .dashboard-icon { background: #ffffff18; color: #fff; }
.mail-icon { color: #c5221f; background: #fff0ef; }
.drive-icon { color: #1769aa; background: #edf5ff; }
.dashboard-card small { color: var(--g); font-size: .65rem; letter-spacing: .12em; font-weight: 700; }
.primary-card small { color: #b9ddcc; }
.dashboard-card h3 { font-size: 1.45rem; margin: .55rem 0 .7rem; }
.dashboard-card p { color: #68736d; font-size: .88rem; line-height: 1.6; margin: 0 0 1.5rem; }
.primary-card p { color: #d5e6de; }
.dashboard-card b { margin-top: auto; color: var(--g); font-size: .8rem; }
.primary-card b { color: #fff; }
.dashboard-card b i { float: right; color: var(--r); font-style: normal; font-size: 1rem; }
.reserved-footer { background: #fff; }

@media (max-width: 900px) {
  .reserved-header { gap: 1rem; }
  .reserved-header-label { margin-left: auto; }
  .reserved-home-link { display: none; }
  .reserved-welcome { align-items: flex-start; flex-direction: column; padding: 3.5rem 1.3rem; }
  .reserved-status { min-width: 0; width: 100%; }
  .reserved-dashboard { padding: 3.5rem 1.3rem 5rem; }
  .dashboard-heading { grid-template-columns: 1fr; gap: .5rem; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-card,.dashboard-card.primary-card,.dashboard-card.primary-card + .dashboard-card { grid-column: auto; }
}

@media (max-width: 600px) {
  .reserved-header .logo img { width: 145px; }
  .reserved-header-label { font-size: .68rem; letter-spacing: .04em; }
  .reserved-welcome h1 { font-size: 3.3rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: 270px; }
}

/* Chi siamo */
.about-intro { background-position: center 42%; }
.about-page { display: grid; grid-template-columns: .75fr 1.25fr; gap: 7vw; padding-top: 6rem; padding-bottom: 7rem; background: #fff; }
.about-side { position: sticky; top: 2rem; align-self: start; }
.about-side h2 { font-size: clamp(2.7rem,4vw,4.5rem); line-height: 1; margin: 1rem 0 3rem; }
.about-mark { padding: 1.6rem; color: #fff; background: var(--gd); border-bottom: 5px solid var(--r); border-radius: 12px; }
.about-mark span { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1rem; border-radius: 50%; background: #fff; color: var(--g); font-weight: 800; }
.about-mark p { margin: 0; line-height: 1.6; color: #d8e8e0; }
.about-copy { border-top: 5px solid var(--g); padding-top: 2rem; }
.about-copy > p { margin: 0; padding: 1.55rem 0; border-bottom: 1px solid var(--line); color: #4f5b54; font-size: 1rem; line-height: 1.85; }
.about-copy .about-lead { padding-top: 0; color: var(--ink); font-family: 'Lora',Georgia,serif; font-size: 1.35rem; line-height: 1.65; }
.about-cta { margin-top: 2.4rem; padding: 2rem; background: #eef4f0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.about-cta p { margin: 0; font-weight: 700; }

@media (max-width: 1150px) and (min-width: 901px) {
  header { gap: 1.4rem; }
  header nav { gap: 1.15rem; font-size: .76rem; }
  .header-cta { padding: .9rem 1rem; }
}

@media (max-width: 800px) {
  .about-page { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 5rem; }
  .about-side { position: static; }
  .about-side h2 { margin-bottom: 2rem; }
  .about-cta { align-items: stretch; flex-direction: column; }
}
