.andx-avis-org {
  --avis-blue: var(--e-global-color-primary, #004b93);
  --avis-blue-dark: #06395f;
  --avis-blue-deep: #003e72;
  --avis-blue-soft: #eef8ff;
  --avis-blue-soft-2: #dff2ff;
  --avis-red: #e30613;
  --avis-text: #163a59;
  --avis-muted: #667f96;
  --avis-border: #cfe4f5;
  --avis-card: #ffffff;
  --avis-radius: 22px;
  --avis-shadow: 0 18px 45px rgba(6, 57, 95, .08);
  color: var(--avis-text);
  font-family: inherit;
  line-height: 1.45;
  max-width: 1180px;
  margin-inline: auto;
}

.andx-avis-org *,
.andx-avis-org *::before,
.andx-avis-org *::after {
  box-sizing: border-box;
}

.andx-avis-org a {
  color: inherit;
}

.andx-avis-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 50px) clamp(22px, 4vw, 52px);
  border: 1px solid var(--avis-border);
  border-left: 8px solid var(--avis-red);
  border-radius: 0 var(--avis-radius) var(--avis-radius) 0;
  background:
    radial-gradient(circle at 95% 24%, rgba(0, 137, 207, .13) 0 0, rgba(0, 137, 207, .13) 150px, transparent 151px),
    linear-gradient(135deg, #ffffff 0%, #f7fcff 100%);
}

.andx-avis-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 46px;
  top: 30px;
  border-radius: 50%;
  background: rgba(0, 137, 207, .08);
  pointer-events: none;
}

.andx-avis-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.andx-avis-kicker,
.andx-avis-label {
  margin: 0 0 10px;
  color: var(--avis-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.andx-avis-hero h2,
.andx-avis-section h2,
.andx-avis-president h2 {
  margin: 0;
  color: var(--avis-blue-dark);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.andx-avis-hero p:not(.andx-avis-kicker) {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--avis-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.andx-avis-anchor-nav,
.andx-avis-region-nav,
.andx-avis-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 24px;
}

.andx-avis-anchor-nav a,
.andx-avis-region-nav a,
.andx-avis-letter-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 20px;
  border: 1px solid var(--avis-border);
  border-radius: 999px;
  background: #fff;
  color: #006ab8;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.andx-avis-anchor-nav a:hover,
.andx-avis-region-nav a:hover,
.andx-avis-letter-nav button:hover,
.andx-avis-anchor-nav a:focus-visible,
.andx-avis-region-nav a:focus-visible,
.andx-avis-letter-nav button:focus-visible {
  border-color: #9ccded;
  background: var(--avis-blue-soft);
  transform: translateY(-1px);
  outline: none;
}

.andx-avis-letter-nav button {
  cursor: pointer;
  font-family: inherit;
}

.andx-avis-letter-nav button.is-active {
  border-color: var(--avis-red);
  background: var(--avis-red);
  color: #fff;
}

.andx-avis-president {
  margin: 0 0 clamp(34px, 5vw, 64px);
  scroll-margin-top: 120px;
}

.andx-avis-president-card {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 2fr);
  overflow: hidden;
  border-radius: var(--avis-radius);
  background: var(--avis-blue-dark);
  box-shadow: var(--avis-shadow);
}

.andx-avis-president-media {
  min-height: 330px;
  background: #f5f8fb;
}

.andx-avis-president-media .andx-avis-img,
.andx-avis-person-media .andx-avis-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.andx-avis-president-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, var(--avis-blue-dark), #004f8e);
  color: #fff;
}

.andx-avis-president-content .andx-avis-label {
  color: #fff;
}

.andx-avis-president-content h2 {
  color: #fff;
  font-size: clamp(38px, 5vw, 60px);
}

.andx-avis-president-content p:not(.andx-avis-label) {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(17px, 2vw, 21px);
}

.andx-avis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.andx-avis-pill,
.andx-avis-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.1;
}

.andx-avis-pill-light {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 15px;
}

.andx-avis-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.andx-avis-section {
  margin: 0 0 clamp(40px, 6vw, 74px);
  scroll-margin-top: 120px;
}

.andx-avis-section-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--avis-border);
}

.andx-avis-section h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.andx-avis-card-grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.andx-avis-card-grid-executive {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.andx-avis-card-grid-council {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.andx-avis-person-card {
  overflow: hidden;
  border: 1px solid var(--avis-border);
  border-radius: 18px;
  background: var(--avis-card);
  box-shadow: 0 10px 28px rgba(6, 57, 95, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.andx-avis-person-card:hover {
  border-color: #b9daf0;
  box-shadow: 0 16px 38px rgba(6, 57, 95, .1);
  transform: translateY(-2px);
}

.andx-avis-person-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: #f3f8fc;
}

.andx-avis-role-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--avis-red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 8px 22px rgba(227, 6, 19, .2);
}

.andx-avis-person-body {
  padding: 18px 18px 20px;
}

.andx-avis-person-body h3 {
  margin: 0;
  color: var(--avis-blue-dark);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.andx-avis-role-text {
  margin: 5px 0 0;
  color: var(--avis-muted);
  font-size: 14px;
  font-weight: 700;
}

.andx-avis-region-pill {
  min-height: 30px;
  margin-top: 16px;
  padding: 7px 12px;
  background: #eaf5fc;
  color: #0065ad;
  font-size: 13px;
}

.andx-avis-region-nav,
.andx-avis-letter-nav {
  margin: -8px 0 24px;
  padding-bottom: 2px;
}

.andx-avis-region-list {
  display: grid;
  gap: 18px;
}

.andx-avis-region-block {
  overflow: hidden;
  border: 1px solid var(--avis-border);
  border-radius: var(--avis-radius);
  background: linear-gradient(180deg, #ffffff, #fbfeff);
  box-shadow: 0 10px 34px rgba(6, 57, 95, .055);
  scroll-margin-top: 120px;
}

.andx-avis-region-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: var(--avis-blue-dark);
  cursor: pointer;
  list-style: none;
}

.andx-avis-region-block summary::-webkit-details-marker {
  display: none;
}

.andx-avis-region-block summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #006ab8;
  border-bottom: 2px solid #006ab8;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.andx-avis-region-block[open] summary::after {
  transform: rotate(225deg);
}

.andx-avis-region-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.andx-avis-region-dot {
  position: relative;
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--avis-red);
}

.andx-avis-region-dot::before,
.andx-avis-region-dot::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 12px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .2s ease;
}

.andx-avis-region-dot::before {
  transform: rotate(90deg);
}

.andx-avis-region-block[open] .andx-avis-region-dot::before {
  transform: rotate(0deg);
}

.andx-avis-region-count {
  margin-left: auto;
  color: var(--avis-muted);
  font-weight: 800;
  white-space: nowrap;
}

.andx-avis-region-block .andx-avis-card-grid {
  padding: 0 22px 24px;
}

.andx-avis-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f3f9fd, #eaf5fc);
}

.andx-avis-placeholder svg {
  width: 54%;
  max-width: 130px;
  fill: #c6dceb;
}

@media (max-width: 1100px) {
  .andx-avis-card-grid-executive,
  .andx-avis-card-grid-council {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .andx-avis-hero {
    border-left-width: 6px;
  }

  .andx-avis-president-card {
    grid-template-columns: 1fr;
  }

  .andx-avis-president-media,
  .andx-avis-president-content {
    min-height: auto;
  }

  .andx-avis-president-media {
    aspect-ratio: 4 / 3.3;
  }

  .andx-avis-card-grid-executive,
  .andx-avis-card-grid-council {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .andx-avis-region-nav,
  .andx-avis-letter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .andx-avis-region-nav a,
  .andx-avis-letter-nav button {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .andx-avis-org {
    max-width: 100%;
  }

  .andx-avis-hero {
    padding: 26px 20px;
  }

  .andx-avis-anchor-nav a,
  .andx-avis-region-nav a {
    width: 100%;
  }

  .andx-avis-card-grid-executive,
  .andx-avis-card-grid-council {
    grid-template-columns: 1fr;
  }

  .andx-avis-region-block summary {
    align-items: flex-start;
    padding: 18px;
  }

  .andx-avis-region-count {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .andx-avis-region-title {
    align-items: flex-start;
  }

  .andx-avis-region-block .andx-avis-card-grid {
    padding: 0 16px 18px;
  }
}

/* v1.5 - Consiglio Nazionale: griglia fotografica senza accordion */
.andx-avis-council-flat-grid {
  gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 30px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 0;
  background: #f7f8fa;
}

.andx-avis-person-card-council {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  scroll-margin-top: 120px;
}

.andx-avis-person-card-council:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.andx-avis-person-card-council .andx-avis-person-media {
  aspect-ratio: 4 / 4.65;
  border-radius: 0;
  background: #eef2f5;
}

.andx-avis-person-card-council .andx-avis-person-media .andx-avis-img {
  object-fit: cover;
  object-position: center top;
}

.andx-avis-person-card-council .andx-avis-person-body {
  position: relative;
  z-index: 2;
  width: min(90%, 250px);
  min-height: 118px;
  margin: -70px auto 0;
  padding: 18px 5px 19px;
  border-top: 5px solid var(--avis-red);
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 57, 95, .065);
}

.andx-avis-person-card-council .andx-avis-person-body h3 {
  color: #454545;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.andx-avis-region-text {
  margin: 6px 0 0;
  color: var(--avis-blue-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.andx-avis-person-card-council .andx-avis-role-text {
  margin: 6px 0 0;
  color: #4e4e4e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.andx-avis-person-card-council.andx-avis-card-highlight .andx-avis-person-body,
.andx-avis-person-card-council:target .andx-avis-person-body {
  box-shadow: 0 16px 38px rgba(227, 6, 19, .16);
}

.andx-avis-person-card-council.andx-avis-card-highlight .andx-avis-person-body {
  border-top-color: var(--avis-blue);
}

@media (max-width: 820px) {
  .andx-avis-council-flat-grid {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .andx-avis-council-flat-grid {
    padding: 18px;
  }

  .andx-avis-person-card-council .andx-avis-person-body {
    width: 86%;
  }
}


/* v1.6 - filtro alfabetico Consiglio Nazionale */
.andx-avis-person-card-council.is-hidden {
  display: none;
}

.andx-avis-letter-nav {
  align-items: center;
}

.andx-avis-letter-nav button {
  min-width: 42px;
  padding-inline: 14px;
}

.andx-avis-letter-nav button[data-letter="all"] {
  min-width: 74px;
}
