/* ══════════════════════════════════════════════════════════════════════════
   pagine.css — stile condiviso delle pagine interne
   (connecting-labs.html, connecting-mind.html)
   Riprende la palette e la tipografia della home. NON serve alla home.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0d1f3c;
  --navy-mid:    #16304f;
  --navy-light:  #1e3d60;
  --gold:        #c9a962;
  --gold-light:  #e2c87a;
  --white:       #ffffff;
  --off-white:   #f9f8f6;
  --gray-light:  #f0ede8;
  --gray:        #888888;
  --text:        #1a1a1a;
  --text-light:  #555555;
  --radius:      8px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 6vw;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--white);
  text-decoration: none; letter-spacing: .03em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  margin: 0 auto; display: flex; gap: 1.5rem;
  list-style: none; align-items: center; white-space: nowrap;
}
.nav-links a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .88rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.attivo { color: var(--gold); }
.nav-links a sup { font-size: .6em; vertical-align: super; line-height: 0; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: var(--navy); flex-direction: column;
  align-items: center; justify-content: center; gap: 1.6rem;
}
.mobile-nav:target { display: flex; }
.mobile-link {
  color: var(--white); text-decoration: none;
  font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mobile-link:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 1.6rem; right: 2rem;
  color: var(--white); font-size: 1.6rem; text-decoration: none;
}

@media (max-width: 1500px) {
  #main-nav { padding: 1.2rem 3vw; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .8rem; letter-spacing: .03em; }
}
@media (max-width: 1300px) {
  .nav-links { gap: .75rem; }
  .nav-links a { font-size: .74rem; letter-spacing: .015em; }
  .nav-logo { font-size: 1.02rem; }
}
@media (max-width: 1150px) {
  #main-nav { padding: 1rem 2vw; }
  .nav-links { gap: .55rem; }
  .nav-links a { font-size: .68rem; letter-spacing: 0; }
  .nav-logo { font-size: .95rem; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── HERO DI PAGINA ── */
.page-hero {
  background: var(--navy);
  padding: 10rem 6vw 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(201,169,98,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(255,255,255,.05) 0%, transparent 55%);
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.page-kicker {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,169,98,.4); padding: .35rem 1.1rem;
  border-radius: 50px; margin-bottom: 1.6rem;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white); line-height: 1.15; font-weight: 600;
}
.page-title em { font-style: italic; color: var(--gold); }
.page-title sup { font-size: .38em; vertical-align: super; color: var(--gold); }
.page-sub {
  margin-top: 1.4rem; color: rgba(255,255,255,.82);
  font-size: clamp(1.02rem, 2vw, 1.24rem); max-width: 720px;
}
.breadcrumb { margin-bottom: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ── LAYOUT CONTENUTO ── */
.page-body { max-width: 1180px; margin: 0 auto; padding: 4.5rem 6vw 5rem; }
.page-body--narrow { max-width: 860px; }

.page-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 6vw 5rem;
  align-items: start;
}

/* indice laterale */
.toc { position: sticky; top: 6.5rem; }
.toc-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .1rem; }
.toc a {
  display: block; padding: .5rem 0 .5rem 1rem;
  border-left: 2px solid var(--gray-light);
  color: var(--text-light); text-decoration: none;
  font-size: .9rem; font-weight: 600; line-height: 1.35;
  transition: color var(--transition), border-color var(--transition);
}
.toc a::before { content: counter(toc) ". "; color: var(--gold); font-weight: 800; }
.toc a:hover, .toc a.attivo { color: var(--navy); border-left-color: var(--gold); }

/* ── TIPOGRAFIA CONTENUTO ── */
.prosa h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--navy); font-weight: 600; line-height: 1.2;
  margin: 3.5rem 0 .4rem;
}
.prosa h2:first-child { margin-top: 0; }
.prosa h3 {
  font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin: 2.6rem 0 .9rem;
}
.prosa h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem; color: var(--navy); font-weight: 600;
  margin: 2rem 0 .5rem;
}
.prosa p { color: var(--text-light); font-size: 1.02rem; margin-bottom: 1.15rem; }
.prosa p.lead {
  font-size: clamp(1.08rem, 2vw, 1.2rem); color: var(--text);
  font-weight: 400; margin-bottom: 1.6rem;
}
.prosa strong { color: var(--navy); }
.prosa em { font-style: italic; }
.prosa ul, .prosa ol { margin: 0 0 1.4rem 1.3rem; color: var(--text-light); }
.prosa li { margin-bottom: .5rem; font-size: 1.01rem; }
.divider-gold { width: 56px; height: 3px; background: var(--gold); margin: 1.1rem 0 1.8rem; }

.callout {
  margin: 2.2rem 0;
  padding: 1.7rem 2rem;
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: rgba(255,255,255,.92);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.6;
}
.callout em { color: var(--gold-light); font-style: italic; }

.nota {
  margin: 2rem 0;
  padding: 1.3rem 1.6rem;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: .96rem; color: var(--text-light);
}
.nota strong { color: var(--navy); }

/* ── CARD / GRIGLIE ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem; margin: 2rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.card .card-num {
  font-family: 'Playfair Display', serif; font-size: 1.9rem;
  color: var(--gold); line-height: 1; margin-bottom: .5rem;
}
.card h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: .5rem; }
.card p { color: var(--text-light); font-size: .94rem; margin: 0; }

/* ── TABELLE MODULI ── */
.tabella-moduli {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0 2.5rem;
  font-size: .95rem;
}
.tabella-moduli thead th {
  background: var(--navy); color: var(--white);
  text-align: left; padding: .85rem 1.1rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.tabella-moduli tbody td {
  padding: .95rem 1.1rem; border-bottom: 1px solid var(--gray-light);
  vertical-align: top; color: var(--text-light);
}
.tabella-moduli tbody tr:nth-child(odd) { background: var(--off-white); }
.tabella-moduli tbody td:first-child { color: var(--navy); font-weight: 700; width: 38%; }

/* ── BOX INVESTIMENTO / STAGE ── */
.box-scuro {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 2.6rem 2.4rem; margin: 2.5rem 0;
}
.box-scuro h3 { color: var(--gold); margin-top: 0; }
.box-scuro h4 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.3rem; margin: 0 0 .6rem; }
.box-scuro p { color: rgba(255,255,255,.82); margin-bottom: .9rem; }
.box-scuro ul { margin-left: 1.2rem; color: rgba(255,255,255,.85); }
.box-scuro li { margin-bottom: .45rem; }
.prezzo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.1;
}
.prezzo small { display: block; font-family: 'Nunito', sans-serif; font-size: .82rem; color: rgba(255,255,255,.6); letter-spacing: .06em; margin-top: .3rem; }

.stage-header {
  display: flex; align-items: baseline; gap: 1rem;
  margin: 3.5rem 0 .3rem; flex-wrap: wrap;
}
.stage-num {
  font-family: 'Playfair Display', serif; font-size: 2.6rem;
  color: var(--gold); line-height: 1;
}
.stage-titolo {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy); font-weight: 600;
}
.stage-obiettivo {
  color: var(--text-light); font-style: italic;
  margin: .3rem 0 1.2rem; font-size: 1.02rem;
}

/* ── BOTTONI ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem;
  letter-spacing: .04em; padding: .9rem 2.4rem;
  border: none; border-radius: 4px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background var(--transition), transform .2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  color: var(--navy); font-weight: 800; font-size: .92rem;
  text-decoration: none; border-bottom: 2px solid var(--gold);
  padding-bottom: 2px; display: inline-block;
}
.btn-ghost:hover { color: var(--gold); }

/* ── FORM ── */
.form-box {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem;
  margin: 2.5rem 0;
}
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--gray-light); border-radius: 4px;
  font-family: 'Nunito', sans-serif; font-size: .95rem;
  background: var(--white); color: var(--text);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-submit {
  background: var(--gold); color: var(--navy);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem;
  letter-spacing: .04em; padding: .95rem 2.4rem;
  border: none; border-radius: 4px; cursor: pointer; width: 100%;
  transition: background var(--transition);
}
.form-submit:hover { background: var(--gold-light); }
.form-privacy { font-size: .8rem; color: var(--gray); margin-top: .9rem; text-align: center; }

/* ── CTA FINALE ── */
.cta-finale {
  background: var(--navy); text-align: center;
  padding: 5rem 6vw;
}
.cta-finale h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--white); font-weight: 600; margin-bottom: 1rem;
}
.cta-finale p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 2rem; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 3.5rem 6vw 1.5rem; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: .3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-nav a {
  color: rgba(255,255,255,.72); text-decoration: none;
  font-size: .85rem; font-weight: 600;
}
.footer-nav a:hover { color: var(--gold); }
.social-links { display: flex; gap: 1rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.1); color: var(--white);
  text-decoration: none; font-weight: 800; font-size: .85rem;
}
.social-link:hover { background: var(--gold); color: var(--navy); }
.footer-copy {
  max-width: 1180px; margin: 1.4rem auto 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-size: .78rem; color: rgba(255,255,255,.4);
}
.footer-copy a { color: rgba(255,255,255,.5); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .toc {
    position: static;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
  }
  .toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .2rem 1.2rem; }
}
@media (max-width: 700px) {
  .page-hero { padding: 8rem 6vw 3.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .tabella-moduli { font-size: .88rem; }
  .tabella-moduli thead { display: none; }
  .tabella-moduli tbody td { display: block; border-bottom: none; padding: .35rem 1rem; }
  .tabella-moduli tbody td:first-child { width: 100%; padding-top: 1rem; }
  .tabella-moduli tbody td:last-child { padding-bottom: 1rem; border-bottom: 1px solid var(--gray-light); }
  .box-scuro, .form-box { padding: 1.8rem 1.4rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ISCRIZIONE AGLI EVENTI (iscrizione.php)
   ══════════════════════════════════════════════════════════════════════════ */
.esito {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  background: var(--off-white);
  font-size: 1rem; line-height: 1.65; color: var(--text-light);
}
.esito h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.esito p { margin-bottom: .8rem; }
.esito p:last-child { margin-bottom: 0; }
.esito strong { color: var(--navy); }
.esito-ok   { border-left-color: #1a7f37; background: #f2fbf4; }
.esito-err  { border-left-color: #b42318; background: #fdf3f2; color: #7a271a; }
.esito-err strong { color: #7a271a; }
.esito-info { border-left-color: var(--gold); background: var(--off-white); }

.posti-info { color: var(--text-light); font-size: .96rem; margin-bottom: 1.5rem; }
.posti-info strong { color: var(--navy); }

.consenso { margin-bottom: 1rem; }
.consenso label {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .92rem; line-height: 1.55; color: var(--text-light);
  cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400;
}
.consenso input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: .18rem;
  flex-shrink: 0; accent-color: var(--gold); cursor: pointer;
}
.consenso a { color: var(--navy); font-weight: 700; }
