/* Invenicement — shared styles */
:root {
  --red: #e30613;
  --red-dark: #b80510;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #eeeeee;
  --gray-200: #e2e2e2;
  --gray-400: #9a9a9a;
  --gray-500: #6b6b6b;
  --gray-600: #555555;
  --gray-700: #3a3a3a;
  --whatsapp: #25d366;
  --font: "Manrope", "Segoe UI", sans-serif;
  --container: 1160px;
  --header-h: 76px;
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.22s ease;
  --page-pad: clamp(1.25rem, 3vw, 2.5rem);
  --text: clamp(0.98rem, 0.92rem + 0.35vw, 1.08rem);
  --h1: clamp(2.15rem, 1.4rem + 3.5vw, 4.4rem);
  --h2: clamp(1.65rem, 1.2rem + 2vw, 3rem);
  --h3: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  font-size: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - (var(--page-pad) * 2), var(--container));
  margin-inline: auto;
}

/* ——— Header (fixed, logo flush left) ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.site-header .container.site-header__inner,
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-pad);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  letter-spacing: -0.03em;
  color: var(--black);
  margin-right: auto;
}

.logo img,
.logo svg {
  width: clamp(34px, 8vw, 42px);
  height: clamp(34px, 8vw, 42px);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
  flex-shrink: 0;
}

.nav a {
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  font-weight: 560;
  color: var(--gray-500);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--black);
}

.nav a.is-active {
  color: var(--black);
  font-weight: 750;
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  font-size: 1.02rem;
  font-weight: 750;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--gray-700);
}

.btn--disabled,
.btn:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.05rem;
  padding: 1rem 1.6rem;
}

.btn--whatsapp:hover {
  filter: brightness(0.95);
}

.btn--full {
  width: 100%;
}

/* ——— Eyebrows / labels ——— */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.eyebrow--red {
  color: var(--red);
}

.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero--home {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background:
    radial-gradient(ellipse 55% 55% at 92% 8%, rgba(227, 6, 19, 0.42), transparent 55%),
    radial-gradient(ellipse 35% 40% at 100% 35%, rgba(227, 6, 19, 0.18), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0e0e0e 100%);
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}

.hero--home .container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 5.5rem var(--page-pad);
  text-align: left;
}

.hero__content {
  max-width: min(40rem, 100%);
  margin: 0;
  text-align: left;
}

.hero--home .hero__actions {
  justify-content: flex-start;
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 1.15rem 0 1.4rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.28rem);
  max-width: 38rem;
  margin-bottom: 2.15rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.hero--page {
  padding: 5rem 0 4.25rem;
  background:
    radial-gradient(ellipse 55% 55% at 92% 8%, rgba(227, 6, 19, 0.42), transparent 55%),
    radial-gradient(ellipse 35% 40% at 100% 35%, rgba(227, 6, 19, 0.18), transparent 50%),
    linear-gradient(180deg, #050505 0%, #0e0e0e 100%);
}

.hero--page .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-pad);
  text-align: left;
}

.hero--page h1 {
  margin-bottom: 1.15rem;
  max-width: 18ch;
  text-align: left;
}

.hero--page p {
  max-width: 42rem;
  text-align: left;
  margin-left: 0;
}

.hero--join {
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(227, 6, 19, 0.35), transparent 55%),
    linear-gradient(105deg, #000 35%, #220808 100%);
}

.hero--join h1 {
  max-width: 16ch;
  font-size: var(--h1);
}

.hero--join p {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
}

/* ——— Sections ——— */
.section {
  padding: 5.75rem 0;
}

.section--tight {
  padding-top: 0;
}

.section__head {
  margin-bottom: 2.75rem;
  text-align: left;
}

.section__head--center {
  text-align: left;
  max-width: none;
  margin-inline: 0;
  margin-bottom: 3rem;
}

.section__head h2 {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.75rem 0 1rem;
  overflow-wrap: anywhere;
}

.section__head p {
  color: var(--gray-500);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
  line-height: 1.7;
}

.about-title {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.75rem 0 1.4rem;
  overflow-wrap: anywhere;
}

/* Chi siamo */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
  align-items: start;
}

.about-grid p {
  color: var(--gray-500);
  margin-bottom: 1.15rem;
  font-size: 1.12rem;
  line-height: 1.75;
}

.stats {
  display: flex;
  flex-direction: column;
}

.stat {
  border-top: 2.5px solid var(--red);
  padding: 1.5rem 0 1.9rem;
}

.stat__num {
  font-size: clamp(3.2rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  text-transform: uppercase;
}

/* Reports */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.75rem;
  overflow: visible;
}

.tabs button {
  padding: 1rem 0;
  font-size: 1.08rem;
  font-weight: 550;
  color: var(--gray-400);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

.tabs button.is-active {
  color: var(--black);
  font-weight: 750;
  border-bottom-color: var(--red);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.tab-desc {
  color: var(--gray-500);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.9rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.report-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.report-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.report-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.badge--red {
  background: var(--red);
  color: var(--white);
}

.badge--gray {
  background: var(--gray-400);
  color: var(--white);
}

.badge--outline {
  border: 1.5px solid var(--red);
  color: var(--red);
  background: transparent;
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
}

.badge--muted {
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  background: transparent;
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
}

.report-card__date {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.report-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.report-card p {
  color: var(--gray-500);
  font-size: 1rem;
  flex: 1;
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.report-card__link {
  font-weight: 750;
  font-size: 1rem;
  border-bottom: 1.5px solid currentColor;
  align-self: flex-start;
  cursor: pointer;
  transition: color var(--transition);
}

.report-card__link:hover {
  color: var(--red);
}

/* PDF modal */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.report-modal.is-open {
  display: flex;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.report-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  height: min(86vh, 820px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.28s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.report-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.report-modal__head h3 {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.report-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--gray-600);
  transition: background var(--transition);
}

.report-modal__close:hover {
  background: var(--gray-100);
  color: var(--black);
}

.report-modal__body {
  flex: 1;
  background: #f3f3f3;
  position: relative;
}

.report-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.report-modal__empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.6;
}

.report-modal__empty.is-visible {
  display: flex;
}

.report-modal__empty code {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--black);
}

body.modal-open {
  overflow: hidden;
}

/* Events carousel */
.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
}

.carousel {
  position: relative;
  margin-top: 0.75rem;
  padding-inline: 3.25rem;
}

.carousel__track-wrap {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 1.35rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-card {
  flex: 0 0 calc((100% - 2.7rem) / 3);
  background: #141414;
  border: 1px solid #262626;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-card__img {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #1a1a1a, #2a1010),
    radial-gradient(circle at 30% 40%, rgba(227, 6, 19, 0.35), transparent 50%);
  position: relative;
  overflow: hidden;
}

.event-card__img svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.event-card__body {
  padding: 1.4rem 1.35rem 1.6rem;
}

.event-card__date {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.event-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.event-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem;
  line-height: 1.55;
}

.carousel__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel__btn--prev {
  left: 0;
}

.carousel__btn--next {
  right: 0;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.carousel__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #444;
  transition: background var(--transition), transform var(--transition);
}

.carousel__dots button.is-active {
  background: var(--red);
  transform: scale(1.2);
}

/* Workshops */
.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.workshop-card {
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workshop-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.workshop-card__icon {
  width: 46px;
  height: 46px;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.workshop-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.workshop-card__sub {
  color: var(--gray-500);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  flex: 1;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  background: var(--red);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.workshop-card .link-red {
  margin-top: auto;
  align-self: flex-start;
}

.link-red {
  color: var(--red);
  font-weight: 750;
  font-size: 1.05rem;
}

.link-red:hover {
  text-decoration: underline;
}

/* ——— Team ——— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
  margin-left: 8.3rem;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 650;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--black);
  background: var(--white);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover {
  border-color: #bbb;
}

.filter-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.75rem 1.5rem;
}

.member {
  text-align: center;
}

.member.is-hidden {
  display: none;
}

.member__photo {
  width: min(168px, 72%);
  aspect-ratio: 1;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--white);
  background: linear-gradient(145deg, #2c2c2c, #111);
}

.member__name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.member__role {
  color: var(--gray-500);
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.member__dept {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red);
}

/* ——— Associati (larger) ——— */
.page-associati .section__head h2 {
  font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  text-align: left;
}

.page-associati .eyebrow {
  font-size: 0.9rem;
  text-align: left;
}

.page-associati .container,
.page-team .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-pad);
  text-align: left;
}

.page-associati .site-header .container,
.page-team .site-header .container,
.page-associati .site-footer .container,
.page-team .site-footer .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--page-pad);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.benefit-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.85rem 1.55rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.benefit-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.benefit-card__icon {
  color: var(--red);
  margin-bottom: 1.15rem;
}

.benefit-card__icon svg {
  width: 34px;
  height: 34px;
}

.benefit-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.benefit-card p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.65;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.plan-card {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2.15rem;
  display: flex;
  flex-direction: column;
}

.plan-card--open {
  border-color: var(--red);
  border-width: 1.5px;
  box-shadow: 0 16px 40px rgba(227, 6, 19, 0.06);
}

.plan-card__flag {
  position: absolute;
  top: 0;
  right: 1.4rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 8px 8px;
}

.plan-card .badge {
  align-self: flex-start;
  margin-bottom: 1.3rem;
}

.plan-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.plan-card > p {
  color: var(--gray-500);
  margin-bottom: 1.3rem;
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.7;
}

.plan-list {
  margin-bottom: 1.7rem;
}

.plan-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--red);
}

.whatsapp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  margin-bottom: 2.75rem;
}

.whatsapp-banner h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.whatsapp-banner p {
  color: var(--gray-500);
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact-box {
  text-align: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3.25rem 1.75rem;
  max-width: none;
  margin-inline: 0;
}

.contact-box h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 1.7rem;
}

.contact-box a.email {
  color: var(--red);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3.75rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.footer-brand__tag {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.98rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.footer-col > a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-col > a:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.02rem;
  margin-bottom: 1.15rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-size: 1.02rem;
  transition: color var(--transition);
}

.socials a:hover {
  color: var(--white);
  background: transparent;
}

.socials__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.socials a:hover .socials__icon {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  :root {
    --header-h: 70px;
  }
}

@media (max-width: 960px) {
  :root {
    --h1: clamp(2rem, 1.3rem + 3.2vw, 3.2rem);
    --h2: clamp(1.55rem, 1.15rem + 1.8vw, 2.35rem);
  }

  .about-grid,
  .workshop-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .about-grid p,
  .tab-desc,
  .report-card p,
  .benefit-card p,
  .plan-card > p {
    font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.08rem);
  }

  .report-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .event-card {
    flex-basis: calc((100% - 1.35rem) / 2);
  }

  .event-card h3,
  .report-card h3,
  .benefit-card h3,
  .workshop-card h3 {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carousel {
    padding-inline: 2.75rem;
  }

  .tabs button {
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  }

  .stat__num {
    font-size: clamp(2.6rem, 2rem + 2.5vw, 3.5rem);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
    --page-pad: 1.15rem;
    --h1: clamp(1.85rem, 1.2rem + 4vw, 2.6rem);
    --h2: clamp(1.45rem, 1.1rem + 2.2vw, 2rem);
  }

  .btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--page-pad) 1rem;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 199;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--gray-100);
    white-space: normal;
    font-size: 1.05rem;
  }

  .nav a.is-active {
    border-bottom-color: var(--gray-100);
    box-shadow: inset 0 -2px 0 var(--red);
  }

  .report-grid,
  .benefits-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-card {
    flex-basis: 100%;
  }

  .carousel {
    padding-inline: 2.35rem;
  }

  .whatsapp-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-banner h3,
  .plan-card h3,
  .contact-box h3 {
    font-size: clamp(1.25rem, 1rem + 1.5vw, 1.55rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero--page {
    padding: 3rem 0 2.5rem;
  }

  .hero--home .container {
    padding-block: 3.5rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .member__name {
    font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.05rem);
  }

  .member__role {
    font-size: 0.9rem;
  }

  .page-associati .section__head h2 {
    font-size: var(--h2);
  }
}

@media (max-width: 480px) {
  :root {
    --page-pad: 1rem;
    --h1: clamp(1.7rem, 1.15rem + 5vw, 2.2rem);
    --h2: clamp(1.35rem, 1.05rem + 2.5vw, 1.75rem);
  }

  .container {
    width: min(100% - (var(--page-pad) * 2), var(--container));
  }

  .report-grid,
  .benefits-grid,
  .team-grid,
  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
  }

  .carousel__btn {
    width: 40px;
    height: 40px;
  }

  .tabs {
    gap: 0.35rem 1.25rem;
  }

  .tabs button {
    font-size: 0.95rem;
    padding: 0.85rem 0;
  }

  .report-card,
  .workshop-card,
  .benefit-card,
  .plan-card {
    padding: 1.25rem;
  }

  .stat__num {
    font-size: clamp(2.3rem, 12vw, 3rem);
  }

  .site-footer {
    padding: 2.75rem 0 1.35rem;
  }
}
