/* ═══════════════════════════════════════════════
   Vision APS - Stylesheet
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1628;
  --navy-mid:   #122040;
  --blue:       #1a3a6e;
  --accent:     #2e6af6;
  --accent-lt:  #5b8cf8;
  --gold:       #f0b429;
  --white:      #ffffff;
  --off-white:  #f6f8fc;
  --gray-100:   #eef1f7;
  --gray-300:   #c6cfe0;
  --gray-500:   #7a8aaa;
  --gray-700:   #3d4e6a;
  --text:       #1a2540;
  --text-light: #4a5775;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(10,22,40,.07);
  --shadow:     0 4px 20px rgba(10,22,40,.10);
  --shadow-lg:  0 12px 48px rgba(10,22,40,.16);

  --transition: .25s ease;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 100px;
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #1b55d8; border-color: #1b55d8; box-shadow: 0 6px 20px rgba(46,106,246,.3); }

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--off-white); box-shadow: 0 6px 20px rgba(255,255,255,.2); }

.btn-lg { font-size: 1rem; padding: 16px 32px; }
.btn-nav { font-size: .82rem; padding: 10px 20px; }
.btn-full { width: 100%; justify-content: center; }


/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition),
              padding var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-v {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-link-highlight { color: var(--gold) !important; font-weight: 700; }
.nav-link-highlight:hover { background: rgba(240,180,41,.12) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3560 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 70% 50%, rgba(46,106,246,.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(240,180,41,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-text { max-width: 560px; }

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  font-family: var(--font-serif);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  object-fit: cover;
}
.hero-img.img-placeholder {
  border: 2px dashed rgba(255,255,255,.25);
}


/* ─────────────────────────────────────────────
   PLACEHOLDERS (replace with real <img>)
───────────────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-100) 0%, #dde5f5 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: attr(data-label);
  font-size: .78rem;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}

.logo-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 56px;
  flex-shrink: 0;
  position: relative;
}
.logo-placeholder::after {
  content: attr(data-label);
  font-size: .72rem;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
  padding: 8px;
}

.logo-real {
  width: 140px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}
.logo-real img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(.7);
  transition: filter var(--transition);
}
.logo-real:hover img { filter: grayscale(0) opacity(1); }
.logo-real--sm { width: 120px; height: 48px; }


/* ─────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  font-weight: 500;
}


/* ─────────────────────────────────────────────
   GENERIC SECTION STYLES
───────────────────────────────────────────── */
.section       { padding: 96px 0; }
.section-alt   { background: var(--off-white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow-light { color: var(--gold) !important; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
}
.title-light { color: var(--white) !important; }
.title-light em { color: var(--gold) !important; }

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────
   SPLIT LAYOUT (Chi siamo / Contatti)
───────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-text { max-width: 480px; }
.split-text .section-eyebrow { display: block; }
.split-text .section-title { margin-bottom: 20px; }
.split-text p { color: var(--text-light); margin-bottom: 16px; }
.split-text .btn { margin-top: 8px; }

.split-visual { position: relative; }

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

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-badge strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}
.about-badge span {
  font-size: .78rem;
  color: var(--text-light);
  max-width: 140px;
  line-height: 1.4;
}


/* ─────────────────────────────────────────────
   PROGRAMS GRID
───────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.program-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}

.program-card-img {
  overflow: hidden;
}
.program-card-img .img-placeholder,
.program-card-img img {
  width: 100%;
  height: 220px;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.program-card-img--sm .img-placeholder,
.program-card-img--sm img {
  height: 180px;
  border-radius: 0;
}

.program-card--featured .program-card-img .img-placeholder,
.program-card--featured .program-card-img img {
  height: 100%;
  min-height: 300px;
}

.program-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(46,106,246,.1);
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.program-card--featured .program-tag {
  color: var(--gold);
  background: rgba(240,180,41,.15);
}

.program-card-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.program-card-body p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
  flex: 1;
}

.program-card--featured .program-card-body p {
  color: rgba(255,255,255,.72);
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.program-features li {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  padding-left: 20px;
  position: relative;
}
.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}


/* ─────────────────────────────────────────────
   PAIDÉIA HIGHLIGHT
───────────────────────────────────────────── */
.paideía-highlight {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--blue) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.paideía-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 500px at 80% 50%, rgba(46,106,246,.2) 0%, transparent 70%);
  pointer-events: none;
}

.paideía-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.paideía-text {
  color: rgba(255,255,255,.85);
}
.paideía-text p {
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.15);
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(240,180,41,.2);
}

.timeline-item strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* Variant for use on light-background sections (e.g. Milestones) */
.timeline--light .timeline-item:not(:last-child)::after {
  background: var(--gray-200, #dde3ee);
}
.timeline--light .timeline-item strong {
  color: var(--text);
}
.timeline--light .timeline-item p {
  color: var(--gray-500);
}

.paideía-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.paideía-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.paideía-img-2 {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--radius-lg);
}


/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.testimonial-card--highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: transparent;
}

.testimonial-img .avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.testimonial-img .avatar-placeholder::after { font-size: .6rem; padding: 4px; }

.testimonial-card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
  flex: 1;
}
.testimonial-card--highlight p { color: rgba(255,255,255,.8); }

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card footer strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-card--highlight footer strong { color: var(--white); }

.testimonial-card footer span {
  font-size: .78rem;
  color: var(--gray-500);
}
.testimonial-card--highlight footer span { color: rgba(255,255,255,.5); }


/* ─────────────────────────────────────────────
   5x1000
───────────────────────────────────────────── */
.five-mille {
  background: linear-gradient(135deg, var(--gold) 0%, #e0a41a 100%);
  padding: 72px 0;
}

.five-mille-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-navy { color: var(--navy) !important; }

.five-mille-text .section-title { color: var(--navy); margin-bottom: 16px; }
.five-mille-text .section-title em {
  font-style: italic;
  color: var(--white);
  font-family: var(--font-serif);
}
.five-mille-text p {
  color: rgba(10,22,40,.75);
  font-size: 1.05rem;
  line-height: 1.7;
}

.five-mille-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.five-mille-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.five-mille-cf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--off-white);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.five-mille-cf span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
}

.cf-copy-btn {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.cf-copy-btn:hover { background: #1b55d8; }
.cf-copy-btn.copied { background: #2f9e5b; }

.five-mille-note {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   PARTNERS
───────────────────────────────────────────── */
.partners-section {
  margin-bottom: 48px;
}

.partners-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.partners-logos--sm .logo-placeholder {
  width: 120px;
  height: 48px;
}

.partner-item {
  position: relative;
}
.partner-trigger {
  background: none;
  border: none;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  font: inherit;
}
.partner-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  max-width: 80vw;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  border: 1px solid var(--gray-100);
  padding: 16px;
  text-align: left;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.partner-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: var(--white);
}
.partner-popover strong {
  display: block;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 6px;
}
.partner-popover p {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}
.partner-item.open .partner-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.become-partner {
  text-align: center;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.become-partner p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}


/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}
.contact-icon {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item a { color: var(--accent); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition),
              transform var(--transition);
}
.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,106,246,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-note {
  font-size: .75rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }


/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-cf { font-size: .78rem; color: rgba(255,255,255,.4); }

.logo-light { color: var(--white); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}


/* ─────────────────────────────────────────────
   TEXT PLACEHOLDER (for unverified data points)
───────────────────────────────────────────── */
.text-placeholder {
  display: inline-block;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  font-size: .85em;
  font-style: italic;
}


/* ─────────────────────────────────────────────
   EDITION PAGES - shared
───────────────────────────────────────────── */
.edition-hero {
  min-height: 60vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3560 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.edition-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 500px at 75% 40%, rgba(46,106,246,.18) 0%, transparent 70%);
  pointer-events: none;
}
.edition-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 48px;
}

.edition-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.edition-badge.status-open { background: #48bb78; color: var(--white); }

.edition-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.edition-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--font-serif);
}
.edition-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.edition-hero-meta span {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.edition-hero-meta .text-placeholder {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
}
.edition-hero p.edition-intro {
  max-width: 640px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.edition-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 640px;
}
.edition-stat strong {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.edition-stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

.edition-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edition-gallery .img-placeholder {
  aspect-ratio: 4/3;
}
.edition-gallery .img-placeholder:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.edition-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.edition-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.edition-nav a:hover { text-decoration: underline; }
.edition-nav .edition-nav-center a {
  color: var(--text-light);
  font-weight: 500;
}


/* ─────────────────────────────────────────────
   ALUMNI GRID (real photos)
───────────────────────────────────────────── */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.alumni-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.alumni-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  border: 2px solid var(--gray-100);
}
.alumni-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.alumni-item span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.alumni-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.alumni-linkedin:hover { text-decoration: underline; }
.alumni-linkedin svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Sponsor blurb cards */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sponsor-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sponsor-card .logo-real {
  width: 100px;
  height: 44px;
}
.sponsor-card .logo-real img { filter: none; }
.sponsor-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.sponsor-card-body strong {
  display: block;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 4px;
}


/* ─────────────────────────────────────────────
   TEAM BOARD GRID
───────────────────────────────────────────── */
.team-board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-board-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.team-board-card .alumni-photo { width: 100px; height: 100px; }
.team-board-card strong { font-size: 1rem; color: var(--text); }
.team-board-card span {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ─────────────────────────────────────────────
   EDITIONS HUB PAGE
───────────────────────────────────────────── */
.editions-hero {
  min-height: 46vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3560 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.editions-hero .container { padding: 48px 24px; }
.editions-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.editions-hero h1 em { font-style: italic; color: var(--gold); font-family: var(--font-serif); }
.editions-hero p {
  max-width: 600px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.editions-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.edition-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.edition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.edition-card .img-placeholder,
.edition-card > img {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
}

.edition-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.edition-card-body .edition-badge { margin-bottom: 0; }
.edition-card-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.edition-card-body p { font-size: .88rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.edition-card-body a { font-size: .85rem; font-weight: 600; color: var(--accent); }
.edition-card-body a:hover { text-decoration: underline; }

.edition-card--open {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: none;
}
.edition-card--open .edition-card-body h3,
.edition-card--open .edition-card-body p { color: var(--white); }
.edition-card--open .edition-card-body p { color: rgba(255,255,255,.72); }


/* ─────────────────────────────────────────────
   MAPPA BORSE DI STUDIO
───────────────────────────────────────────── */
.map-hero {
  min-height: 40vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3560 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.map-hero .container { padding: 48px 24px; }
.map-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.map-hero h1 em { font-style: italic; color: var(--gold); font-family: var(--font-serif); }
.map-hero p {
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.map-app {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  padding: 10px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.map-search input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
}
.map-search input::placeholder { color: var(--gray-500); }
.map-search-icon { color: var(--gray-500); }

.map-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: relative;
}

.leaflet-map {
  width: 100%;
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Custom gold pin marker */
.vision-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  border: 2px solid var(--navy);
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform var(--transition), background var(--transition);
}
.vision-pin::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  background: var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.vision-pin.active,
.vision-pin:hover { background: var(--accent-lt); transform: rotate(-45deg) scale(1.15); }

/* Leaflet chrome restyle to match Vision palette */
.leaflet-popup-content-wrapper {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); }
.leaflet-popup-content strong { display: block; margin-bottom: 4px; color: var(--white); }
.leaflet-popup-content span { color: rgba(255,255,255,.65); font-size: .78rem; }
.leaflet-popup-tip { background: var(--navy); }
.leaflet-control-zoom a {
  background: var(--white) !important;
  color: var(--navy) !important;
}
.leaflet-control-attribution {
  background: rgba(10,22,40,.75) !important;
  color: rgba(255,255,255,.6) !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,.8) !important; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--text-light);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); display: inline-block;
}

/* Panel showing uni/scholarship card */
.map-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  min-height: 480px;
  max-height: 640px;
  overflow-y: auto;
  padding: 28px;
}

.map-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 420px;
  color: var(--gray-500);
  gap: 12px;
}
.map-panel-empty strong { color: var(--text); font-size: 1.05rem; }

.uni-card-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(46,106,246,.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.uni-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.uni-card-loc {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.uni-card-section {
  margin-bottom: 22px;
}
.uni-card-section h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.uni-course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uni-course-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .88rem;
  padding: 8px 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}
.uni-course-item span:first-child { color: var(--text); font-weight: 500; }
.uni-course-item span:last-child { color: var(--gray-500); font-size: .78rem; white-space: nowrap; }

.uni-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .88rem;
  color: var(--text-light);
}
.uni-contact-list a { color: var(--accent); font-weight: 500; }

.sch-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
}
.sch-card strong { display: block; font-size: 1rem; margin-bottom: 8px; }
.sch-card-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sch-card-row:last-of-type { border-bottom: none; }
.sch-card .btn { margin-top: 14px; }


/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: .1s; }
[data-animate-delay="2"] { transition-delay: .2s; }
[data-animate-delay="3"] { transition-delay: .3s; }
[data-animate-delay="4"] { transition-delay: .4s; }


/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .program-card--featured {
    grid-column: 1 / -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-card:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(10,22,40,.98);
    padding: 24px;
    gap: 4px;
  }
  .nav-links.open a {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }
  .hero-visual { display: none; }

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

  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-text { max-width: 100%; }
  .about-badge { right: 0; bottom: -16px; }

  .programs-grid { grid-template-columns: 1fr; }
  .program-card--featured { grid-template-columns: 1fr; }

  .paideía-inner { grid-template-columns: 1fr; gap: 48px; }
  .paideía-visual { display: none; }

  .five-mille-inner { grid-template-columns: 1fr; gap: 32px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .edition-stats { grid-template-columns: 1fr 1fr; }
  .edition-gallery { grid-template-columns: 1fr 1fr; }
  .edition-gallery .img-placeholder:first-child { grid-column: 1 / 3; grid-row: auto; }

  .editions-grid { grid-template-columns: 1fr; }
  .edition-card { flex-direction: column; }
  .edition-card .img-placeholder,
  .edition-card > img { width: 100%; height: 160px; }

  .alumni-grid { grid-template-columns: repeat(3, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-card { flex-direction: column; }
  .team-board-grid { grid-template-columns: repeat(2, 1fr); }

  .map-app { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .team-board-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.2rem; }
  .become-partner { padding: 32px 24px; flex-direction: column; text-align: center; }
  .partners-logos { justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .partner-popover { width: 220px; }
}
