/* Madonie Nomad Residency 2026 — Poppins */

:root {
  --color-bg: #f4f1ea;
  --color-bg-alt: #ebe6dc;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-light: #f4f1ea;
  --color-accent: #c06c4c;
  --color-accent-hover: #a85a3d;
  --color-accent-soft: rgba(192, 108, 76, 0.14);
  --color-hero-gold: #ffb800;
  --gradient-hero-cta: linear-gradient(90deg, #8a3ffc 0%, #e62e84 100%);
  --color-announcement: #228d4d;
  --color-register-btn: #89b23f;
  --color-register-btn-hover: #7a9f38;
  --color-register-focus-soft: rgba(137, 178, 63, 0.2);
  --color-cta-bg: #f7f7f5;
  --color-program-section-bg: #f7f7f7;
  --color-nav-text: #4a5568;
  --color-lang-bg: #e2e8f0;
  --color-brand-green: #89b23f;
  --color-dark: #2c2824;
  --color-dark-mid: #3d3834;
  --color-border: rgba(51, 51, 51, 0.1);
  --gradient-placeholder: linear-gradient(135deg, #e2b8a5 0%, #8a8f9b 100%);
  --font: "Poppins", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 18px;
  --shadow: 0 8px 32px rgba(44, 40, 36, 0.06);
  --shadow-lg: 0 16px 48px rgba(44, 40, 36, 0.1);
  --header-h: 76px;
  --announce-h: 42px;
  --container: min(1140px, calc(100% - 40px));
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

/* Announcement */
.announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-announcement);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 0 16px;
}

/* Header */
.header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo__image {
  width: 180px;
  max-height: 62px;
  object-fit: contain;
}

.nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex: 1;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-nav-text);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-announcement);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn--header {
  background: var(--color-register-btn);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(137, 178, 63, 0.35);
  font-weight: 600;
}

.btn--header:hover {
  background: var(--color-register-btn-hover);
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-lang-bg);
  border: none;
}

.lang-switch__btn {
  min-width: 36px;
  padding: 5.6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.lang-switch__btn.is-active {
  background: #ffffff;
  color: var(--color-nav-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11.2px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-register-btn);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(137, 178, 63, 0.35);
}

.btn--primary:hover {
  background: var(--color-register-btn-hover);
}

.btn--outline {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--light {
  background: var(--color-surface);
  color: var(--color-dark);
}

.btn--light:hover {
  background: var(--color-bg);
}

.btn--sm {
  padding: 8.8px 17.6px;
  font-size: 14px;
}

.btn--lg {
  padding: 15.2px 32px;
  font-size: 16px;
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.header__actions .btn--sm {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(92vh, 920px);
  padding: calc(var(--announce-h) + var(--header-h) + 32px) 20px 64px;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.72)),
    url("img/castelbuono.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__tagline {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 700;
  letter-spacing: 2.56px;
  text-transform: uppercase;
  color: var(--color-hero-gold);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(24px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.32px;
  color: #ffffff;
  margin-bottom: 20px;
  white-space: nowrap;
  max-width: none;
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  max-width: 920px;
  line-height: 1.65;
}

.hero__meta {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: var(--color-hero-gold);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5.6px 8px;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 576px;
}

.hero__stats li:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  opacity: 0.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.btn--hero {
  background: var(--color-register-btn);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 28px rgba(137, 178, 63, 0.4);
}

.btn--hero:hover {
  background: var(--color-register-btn-hover);
}

.btn--hero-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.btn--hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.hero__note {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 21.6px;
    letter-spacing: -0.48px;
  }
}

/* Partners strip */
.partners-strip {
  padding: 56px 0 64px;
  background: #ffffff;
}

.partners-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-brand-green);
}

.partners-strip__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.24px;
  text-transform: uppercase;
  color: var(--color-brand-green);
  margin-bottom: 16px;
}

.partners-strip__divider {
  width: min(100%, 640px);
  height: 0;
  margin: 0 0 20px;
  border: none;
  border-top: 1px solid rgba(137, 178, 63, 0.35);
}

.partners-strip__orgs {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--color-brand-green);
  margin-bottom: 28px;
  line-height: 1.4;
}

.partners-strip__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 44px;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 34px;
}

.partners-strip__logo {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.partners-strip__logo--ministero,
.partners-strip__logo--emperia {
  max-width: 150px;
  max-height: 72px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.footer__orgs-logo--ministero,
.footer__orgs-logo-tile--emperia .footer__orgs-logo--emperia {
  max-width: 150px;
  max-height: 72px;
}

.footer__orgs-logo-tile.logo-tile--emperia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-sizing: content-box;
  box-shadow: 0 0 0 1px rgba(137, 178, 63, 0.12);
  line-height: 0;
}

.footer__orgs-logo-tile--emperia .footer__orgs-logo--emperia {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.partners-strip__logo--sosvima {
  max-width: 220px;
  max-height: 120px;
}

.partners-strip__logo--castelbuono,
.partners-strip__logo--collesano {
  max-width: 130px;
  max-height: 100px;
}

.footer__orgs-logo--sosvima {
  max-width: 220px;
  max-height: 120px;
}

.footer__orgs-logo--castelbuono,
.footer__orgs-logo--collesano {
  max-height: 100px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 832px;
}

.badges li {
  padding: 8.8px 17.6px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(137, 178, 63, 0.12);
  color: var(--color-brand-green);
  border: 1px solid rgba(137, 178, 63, 0.25);
  border-radius: var(--radius-sm);
}

.partners-strip__text {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  color: #515151;
  max-width: 832px;
  margin: 0;
  line-height: 1.75;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-announcement);
  color: #ffffff;
}

.section--cta {
  background: var(--color-cta-bg);
}

.section__header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section__header--light .section__lead {
  color: rgba(255, 255, 255, 0.92);
}

.section__header h2,
.section__title-center {
  font-family: var(--font);
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section--dark .section__header h2,
.section--dark .section__title-center {
  color: #ffffff;
}

.section__title-center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 44px;
}

.section__lead {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.92);
}

.section__cta-wrap {
  text-align: center;
  margin-top: 44px;
}

/* About — Cosa è Madonie Nomad Residency */
.section--about {
  background: #ffffff;
  padding-top: 72px;
  padding-bottom: 64px;
}

.about-intro {
  max-width: 832px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-intro h2 {
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: #515151;
  margin-bottom: 20px;
}

.about-intro p {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  color: #515151;
  line-height: 1.75;
  margin: 0;
}

.about-visual {
  margin: 0;
  width: 100%;
}

.about-visual img {
  width: 100%;
  display: block;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-cards {
  margin-top: 48px;
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
}

.cards--3 {
  grid-template-columns: 1fr;
}

.card {
  min-height: 152px;
  padding: 32px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 288px;
}

/* Split */
.split {
  display: grid;
  gap: 44px;
  align-items: center;
}

.split__content h2 {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 24px;
}

.split__content .section__lead {
  margin-bottom: 24px;
}

.split__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.visual-block {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--gradient-placeholder);
  box-shadow: var(--shadow-lg);
}

/* Check list */
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14.4px;
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8.8px;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Why attend */
.section--why {
  background: #ffffff;
}

.section--why .section__title-center {
  color: var(--color-text);
  margin-bottom: 44px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin-inline: auto;
}

.why-card {
  min-height: 120px;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border-left: 5px solid var(--color-brand-green);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.why-card p {
  max-width: 220px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: balance;
}

/* Pillars */
#assi {
  background: #ffffff;
}

#castelbuono {
  background: #ffffff;
}

.section--pillars .section__title-center {
  color: #111827;
  margin-bottom: 48px;
}

.pillars {
  display: grid;
  gap: 24px;
}

.pillar {
  min-height: 264px;
  padding: 44px 36px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pillar__num {
  display: block;
  font-size: clamp(32px, 4vw, 42.4px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.48px;
  color: #228d4d;
  margin-bottom: 28px;
}

.pillar h3 {
  font-size: clamp(15.68px, 1.35vw, 18px);
  font-weight: 600;
  min-height: 22.4px;
  margin-bottom: 16px;
  color: #515151;
  line-height: 1.4;
  white-space: nowrap;
}

.pillar p {
  max-width: 336px;
  font-size: 15px;
  font-weight: 400;
  min-height: 79.2px;
  color: #515151;
  line-height: 1.65;
  white-space: pre-line;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 20px;
}

.timeline__item {
  padding: 28px 32px;
  background: var(--color-dark-mid);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.section--dark .timeline__item {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.timeline__item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section--dark .timeline__item h3 {
  color: var(--color-announcement);
}

.timeline__item p {
  font-size: 15px;
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.65;
}

.section--dark .timeline__item p {
  color: #515151;
}

.section--dark .btn--light {
  background: var(--color-register-btn);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section--dark .btn--light:hover {
  background: var(--color-register-btn-hover);
  color: #ffffff;
}

/* Audience */
.section--audience {
  background: #ffffff;
  text-align: center;
}

.section--audience .section__header {
  max-width: 832px;
  margin-inline: auto;
  text-align: center;
}

.section--audience .section__header h2 {
  color: #515151;
}

.section--audience .section__lead {
  color: #515151;
  font-size: clamp(16px, 2vw, 18px);
}

.tags {
  max-width: 1088px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tags span {
  min-height: 68px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  color: var(--color-announcement);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.tags span:hover {
  color: #1a7340;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Stats / Speaker */
#speaker {
  background: #ffffff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 36px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat__value {
  display: block;
  font-family: var(--font);
  font-size: clamp(20px, 2.8vw, 23px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-announcement);
  margin-bottom: 5.6px;
}

.stat__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Program schedule */
.section__header--center {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.section__lead--center {
  margin-inline: auto;
}

.program-schedule {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

#programma {
  background: var(--color-program-section-bg);
}

.program-day {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.program-day summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-announcement);
}

.program-day summary::-webkit-details-marker {
  display: none;
}

.program-day summary::after {
  content: "+";
  font-size: 21.6px;
  font-weight: 400;
  color: var(--color-brand-green);
  flex-shrink: 0;
}

.program-day[open] summary::after {
  content: "−";
}

.program-day__label {
  line-height: 1.35;
}

.program-slots {
  list-style: none;
  margin: 0;
  padding: 4px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.program-slot {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) 1fr;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
  align-items: baseline;
}

.program-slot:last-child {
  border-bottom: none;
}

.program-slot time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-announcement);
  white-space: nowrap;
}

.program-slot > span:last-child {
  color: var(--color-text);
  font-weight: 500;
}

.program-download {
  margin-top: 40px;
  text-align: center;
}

.program-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.program-download__btn:hover {
  border-color: var(--color-announcement);
  color: var(--color-announcement);
}

.program-download__note {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .program-slot {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* FAQ */
#faq {
  background: var(--color-announcement);
  color: #ffffff;
}

#faq .section__title-center {
  color: #ffffff;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 21.6px;
  font-weight: 400;
  color: var(--color-announcement);
  flex-shrink: 0;
}

#faq .faq__item {
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

#faq .faq__item summary {
  color: var(--color-announcement);
}

#faq .faq__item summary::after {
  color: var(--color-announcement);
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

#faq .faq__item p {
  color: #515151;
}

/* CTA + Form */
.cta-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.cta-grid__copy h2 {
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-grid__copy > p {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  line-height: 1.75;
}

.cta-grid__lead {
  margin-bottom: 0;
}

.cta-grid__lead-continue {
  margin-top: 20px;
  margin-bottom: 24px;
}

.cta-grid__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.cta-grid__media {
  margin: 32px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.cta-grid__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.form {
  padding: 32px 36px 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6.4px;
  margin-bottom: 16px;
}

.form__field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form__field input,
.form__field select,
.form__field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__field input,
.form__field select {
  height: 42px;
}

.form__field textarea {
  min-height: 88px;
  resize: vertical;
}

.form__field textarea::placeholder {
  color: rgba(102, 102, 102, 0.72);
  font-size: 14px;
  font-weight: 400;
}

.form__field select {
  appearance: none;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form__field select:invalid {
  font-size: 14px;
  font-weight: 400;
  color: rgba(102, 102, 102, 0.72);
}

.form__field select option {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-register-btn);
  box-shadow: 0 0 0 3px var(--color-register-focus-soft);
}

.section--cta .form__field input,
.section--cta .form__field select,
.section--cta .form__field textarea {
  background-color: var(--color-cta-bg);
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form__checkbox input {
  margin-top: 3.2px;
  flex-shrink: 0;
  accent-color: var(--color-register-btn);
}

.form__privacy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__privacy-link:hover {
  color: var(--color-announcement);
}

.form__days {
  margin: 0 0 12px;
  padding: 0;
  border: none;
}

.form__days legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  padding: 0;
}

.form__days-hint {
  flex: 0 0 100%;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 400;
}

.form__days-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
}

.form__days-option:last-child {
  margin-bottom: 0;
}

.form__days-option input {
  flex-shrink: 0;
  accent-color: var(--color-register-btn);
}

.form__days-error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #9b2c2c;
}

.form__error {
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #9b2c2c;
  background: rgba(155, 44, 44, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form__success {
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #2d6a4a;
  background: rgba(45, 106, 74, 0.1);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form__disclaimer {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

/* Footer */
.footer {
  padding: 72px 0 32px;
  background: var(--color-announcement);
  color: #ffffff;
}

.footer__grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__logo {
  width: 180px;
  max-height: 62px;
  object-fit: contain;
  margin-left: -48px;
  margin-bottom: 18px;
}

.footer__tagline {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.footer__location {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.footer__nav h4,
.footer__contact h4,
.footer__partner h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.24px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a,
.footer__contact a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: #ffffff;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__partner .btn--outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: transparent;
}

.footer__partner .btn--outline:hover {
  border-color: #ffffff;
  color: var(--color-announcement);
  background: #ffffff;
}

.footer__orgs {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  text-align: center;
}

.footer__orgs-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4.48px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.footer__orgs-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 44px;
}

.footer__orgs-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer__orgs-logo--ministero {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.footer__disclaimer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile nav */
body.nav-open {
  overflow: hidden;
}

body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: calc(var(--announce-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 32px;
  gap: 24px;
  z-index: 99;
}

body.nav-open .nav a {
  font-size: 20px;
  color: var(--color-nav-text);
}

/* Responsive */
@media (min-width: 640px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tags {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .partners-strip__logos,
  .footer__orgs-logos {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .partners-strip__logo {
    flex: 0 1 auto;
    max-width: 58px;
  }

  .partners-strip__logo--ministero,
  .partners-strip__logo--emperia {
    max-width: 58px;
    max-height: 34px;
  }

  .footer__orgs-logo--ministero,
  .footer__orgs-logo-tile--emperia .footer__orgs-logo--emperia {
    max-width: 58px;
    max-height: 34px;
  }

  .footer__orgs-logo-tile.logo-tile--emperia,
  .footer__orgs-logo--ministero {
    padding: 3px 5px;
  }

  .partners-strip__logo--sosvima {
    max-width: 68px;
    max-height: 44px;
  }

  .footer__orgs-logo--sosvima {
    max-width: 64px;
    max-height: 40px;
  }

  .partners-strip__logo--castelbuono,
  .partners-strip__logo--collesano {
    max-width: 44px;
    max-height: 42px;
  }

  .footer__orgs-logo--castelbuono,
  .footer__orgs-logo--collesano {
    max-height: 38px;
  }

  .partners-strip__logo {
    flex: 0 1 auto;
    max-width: 68px;
  }

  .footer__orgs-logo {
    flex: 0 1 auto;
    max-width: 58px;
  }

}

@media (max-width: 399px) {
  .partners-strip__logos,
  .footer__orgs-logos {
    gap: 6px;
  }

  .partners-strip__logo {
    max-width: 48px;
  }

  .partners-strip__logo--ministero,
  .partners-strip__logo--emperia {
    max-width: 50px;
    max-height: 28px;
  }

  .footer__orgs-logo--ministero,
  .footer__orgs-logo-tile--emperia .footer__orgs-logo--emperia {
    max-width: 48px;
    max-height: 28px;
  }

  .footer__orgs-logo-tile.logo-tile--emperia,
  .footer__orgs-logo--ministero {
    padding: 2px 4px;
  }

  .partners-strip__logo--sosvima {
    max-width: 56px;
    max-height: 36px;
  }

  .footer__orgs-logo--sosvima {
    max-width: 52px;
    max-height: 34px;
  }

  .partners-strip__logo--castelbuono,
  .partners-strip__logo--collesano {
    max-width: 38px;
    max-height: 36px;
  }

  .footer__orgs-logo--castelbuono,
  .footer__orgs-logo--collesano {
    max-height: 32px;
  }

  .partners-strip__logo {
    max-width: 56px;
  }

  .footer__orgs-logo {
    max-width: 48px;
  }

}

@media (max-width: 767px) {
  .section--cta .container {
    display: flex;
    justify-content: center;
  }

  .cards,
  .why-grid,
  .pillars,
  .timeline,
  .tags,
  .stats,
  .cta-grid {
    justify-items: center;
  }

  .cta-grid {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .card,
  .why-card,
  .pillar,
  .timeline__item,
  .stat,
  .form,
  .cta-grid__copy,
  .tags span {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .card,
  .pillar,
  .timeline__item,
  .cta-grid__copy {
    text-align: center;
  }

  .card p,
  .pillar p,
  .cta-grid__copy > p {
    margin-inline: auto;
  }

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

  .footer {
    text-align: center;
  }

  .footer__grid {
    justify-items: center;
  }

  .footer__logo {
    margin: 0 auto 18px;
  }

  .footer__brand,
  .footer__nav,
  .footer__contact,
  .footer__partner {
    width: 100%;
    max-width: 420px;
    align-items: center;
  }

  .footer__copy {
    text-align: center;
  }
}

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

  .header__actions .btn--sm {
    display: inline-flex;
  }

  .nav {
    display: flex;
    justify-self: center;
  }

  .header__actions {
    justify-self: end;
  }

  .menu-toggle {
    display: none;
  }

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

  .split--reverse .split__content {
    order: 2;
  }

  .split--reverse .split__visual {
    order: 1;
  }

  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
  }

  .cta-grid__copy {
    display: flex;
    flex-direction: column;
  }

  .cta-grid__media {
    flex: 1;
    margin-top: 28px;
    max-height: none;
    min-height: 280px;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(88vh, 960px);
    padding-bottom: 80px;
  }

  .section {
    padding: 96px 0;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tags {
    grid-template-columns: repeat(4, 1fr);
  }
}
